@retailrocketgroup/retailrocket-create.multicast-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.
@@ -1,5 +1,5 @@
1
1
 
2
- > @easy-wizzy/create-multicast-app@10.0.399657 build /src/apps/multicast/create.multicast
2
+ > @easy-wizzy/create-multicast-app@10.0.400288-dev build /src/apps/multicast/create.multicast
3
3
  > vite build
4
4
 
5
5
 
@@ -12,14 +12,14 @@ rendering chunks...
12
12
 
13
13
  [vite:dts] Start generate declaration files...
14
14
  computing gzip size...
15
- [vite:dts] Declaration files built in 5157ms.
15
+ [vite:dts] Declaration files built in 5689ms.
16
16
 
17
- dist/index.html 479.83 kB │ gzip: 17.54 kB
18
- dist/assets/index.css 168.72 kB │ gzip: 26.65 kB
19
17
 
20
- dist/assets/index.js 4,475.16 kB │ gzip: 1,295.17 kB
21
18
  (!) Some chunks are larger than 500 kB after minification. Consider:
22
19
  - Using dynamic import() to code-split the application
23
- ✓ built in 19.70s
24
20
  - Use build.rollupOptions.output.manualChunks to improve chunking: https://rollupjs.org/configuration-options/#output-manualchunks
21
+ dist/index.html 479.83 kB │ gzip: 17.54 kB
22
+ dist/assets/index.css 168.72 kB │ gzip: 26.65 kB
25
23
  - Adjust chunk size limit for this warning via build.chunkSizeWarningLimit.
24
+ dist/assets/index.js 4,475.20 kB │ gzip: 1,295.18 kB
25
+ ✓ built in 20.48s
@@ -236,7 +236,7 @@ Expected #hex, #hexa, rgb(), rgba(), hsl(), hsla(), object or number`)}function
236
236
  ${t.Width}px
237
237
  dotted
238
238
  ${aV({borderColor:t.Color,themeColors:e})}
239
- `}),jp=t=>({borderTop:t$(t.border.Top,t.themeColors),borderRight:t$(t.border.Right,t.themeColors),borderBottom:t$(t.border.Bottom,t.themeColors),borderLeft:t$(t.border.Left,t.themeColors)}),BO=t=>t.borderCollapse!==void 0?{borderCollapse:EYt(t.borderCollapse)}:{borderCollapse:"collapse"},EYt=t=>{switch(t){case"Collapse":return"collapse";case"Separate":return"separate";default:return lu(t)}},AYt=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 lu(t.Discriminator)}}}),nd=t=>AYt(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}),IKe=t=>({Match:e=>{switch(t){case"Left":return e.Left();case"Center":return e.Center();case"Right":return e.Right();default:return lu(t)}}}),_Yt=t=>t.containerAlign?IKe(t.containerAlign).Match({Left:()=>({textAlign:"left"}),Center:()=>({textAlign:"center"}),Right:()=>({textAlign:"right"})}):{},Zf=t=>t.containerAlign?IKe(t.containerAlign).Match({Left:()=>"left",Center:()=>"center",Right:()=>"right"}):"center",RYt=pt({__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,r=e,o=Xt({ifResult:!1,isLoading:!0});return n.deps.boolExpressionEvaluator({boolExpression:n.element.Predicate,context:n.context}).then(i=>{o.ifResult=i,o.isLoading=!1}),(i,s)=>(U(!0),ue(xt,null,Kr(o.ifResult?n.element.True:n.element.False,(a,l)=>(U(),kt(Pu,{key:l,deps:n.deps,theme:n.theme,element:a,context:n.context,path:[...n.path,o.ifResult?"True":"False",l],selectedElementPath:n.selectedElementPath,onOnImageSizeAdjusted:s[0]||(s[0]=u=>r("onImageSizeAdjusted",u)),onOnImageOriginalSizeAdjusted:s[1]||(s[1]=u=>r("onImageOriginalSizeAdjusted",u)),onOnElementClicked:s[2]||(s[2]=u=>r("onElementClicked",u)),onOnElementUpdatedEvent:s[3]||(s[3]=u=>r("onElementUpdatedEvent",u)),onOnElementRemoved:s[4]||(s[4]=u=>r("onElementRemoved",u))},null,8,["deps","theme","element","context","path","selectedElementPath"]))),128))}}),IO=t=>({paddingTop:ko({paddingExpression:t.paddings.Top,themeComponentPaddings:t.themeComponentPaddings,themeBodyPaddings:t.themeBodyPaddings})+"px",paddingRight:ko({paddingExpression:t.paddings.Right,themeComponentPaddings:t.themeComponentPaddings,themeBodyPaddings:t.themeBodyPaddings})+"px",paddingBottom:ko({paddingExpression:t.paddings.Bottom,themeComponentPaddings:t.themeComponentPaddings,themeBodyPaddings:t.themeBodyPaddings})+"px",paddingLeft:ko({paddingExpression:t.paddings.Left,themeComponentPaddings:t.themeComponentPaddings,themeBodyPaddings:t.themeBodyPaddings})+"px"}),DYt=zF,NYt=t=>DYt(t.width).Match({Auto:()=>"initial",Pixel:e=>e.Value+"px",Percentage:e=>e.Value+"%"}),LYt=["align"],MYt=pt({__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,r=e;return(o,i)=>(U(),ue("table",{class:"heightContainerRender",style:Be([{"border-spacing":"0","border-collapse":"separate"},{width:ee(NYt)({width:n.element.Width})}])},[N("tbody",null,[N("tr",null,[N("td",{align:ee(Zf)({containerAlign:n.element.ContainerAlign}),style:Be([ee(IO)({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:ee(nd)({color:n.element.BackgroundColor,themeColors:n.theme.Colors})??"inherit"},ee(jp)({border:n.element.Border,themeColors:n.theme.Colors}),ee(Ah)({borderRadius:n.element.BorderRadius,borderRadiusCard:n.theme.BorderRadiusCard,bodyBorderRadius:n.theme.BorderRadius,borderButtonRadius:n.theme.BorderRadiusButton,borderBannerRadius:n.theme.BorderRadiusBanner})])},[(U(!0),ue(xt,null,Kr(n.element.Elements,(s,a)=>(U(),kt(Pu,{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=>r("onImageSizeAdjusted",l)),onOnImageOriginalSizeAdjusted:i[1]||(i[1]=l=>r("onImageOriginalSizeAdjusted",l)),onOnElementClicked:i[2]||(i[2]=l=>r("onElementClicked",l)),onOnElementUpdatedEvent:i[3]||(i[3]=l=>r("onElementUpdatedEvent",l)),onOnElementRemoved:i[4]||(i[4]=l=>r("onElementRemoved",l))},null,8,["deps","theme","element","path","selectedElementPath","context"]))),128))],12,LYt)])])],4))}}),OYt=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()}}}),PL=t=>OYt(t.contentAlign).Match({Left:()=>({display:"block",textAlign:"left"}),Center:()=>({display:"block",textAlign:"center"}),Right:()=>({display:"block",textAlign:"right"}),Inline:()=>({})}),BYt=["href"],IYt=["src","alt"],$Yt=["src","alt"],PYt=pt({__name:"Image",props:{deps:{},theme:{},element:{},path:{},context:{type:[String,Number,Boolean,Array,Object]}},emits:["onImageOriginalSizeAdjusted","onImageSizeAdjusted","onElementClicked"],setup(t,{emit:e}){const n=u=>{l("onImageOriginalSizeAdjusted",{Path:r.path,OriginalHeight:u.target.naturalHeight,OriginalWidth:u.target.naturalWidth})},r=t,o=Xt({href:"",src:"",alt:"",isLoaded:!1}),i=Q(()=>(r.element.IsRetina?r.element.OriginalWidth/2:r.element.OriginalWidth)+"px"),s=async u=>r.deps.stringExpressionEvaluator({stringExpression:u,context:r.context}),a=async()=>{const[u,c,d]=await Promise.all([s(r.element.Src),s(r.element.HRef),s(r.element.Alt)]);o.href=c,o.src=u,o.alt=d,o.isLoaded=!0};En(()=>[r.element.Src,r.element.HRef,r.element.Alt,r.context],()=>a()),a();const l=e;return(u,c)=>r.element.IsLink?(U(),ue("a",{key:0,href:o.href,style:Be([ee(PL)({contentAlign:r.element.ContentAlign})]),onClick:c[0]||(c[0]=Po(()=>l("onElementClicked"),["prevent"]))},[o.isLoaded?_n((U(),ue("img",{key:0,class:Ve(["Image cursor-pointer",{"img-responsive":r.element.IsResponsive}]),src:o.src,alt:o.alt,style:Be([ee(Ah)({borderRadius:r.element.BorderRadius,borderRadiusCard:r.theme.BorderRadiusCard,bodyBorderRadius:r.theme.BorderRadius,borderButtonRadius:r.theme.BorderRadiusButton,borderBannerRadius:r.theme.BorderRadiusBanner}),ee(jp)({border:r.element.Border,themeColors:r.theme.Colors}),{width:i.value,maxWidth:"100%"},{verticalAlign:r.element.VerticalAlign}]),onLoad:n},null,46,IYt)),[[ee(IL),({width:d,height:h})=>l("onImageSizeAdjusted",{Path:r.path,AdjustedHeight:h,AdjustedWidth:d})]]):it("",!0)],12,BYt)):(U(),ue("span",{key:1,style:Be([ee(PL)({contentAlign:r.element.ContentAlign})]),onClick:c[1]||(c[1]=Po(()=>l("onElementClicked"),["prevent"]))},[o.isLoaded?_n((U(),ue("img",{key:0,class:Ve(["Image cursor-pointer",{"img-responsive":r.element.IsResponsive}]),src:o.src,alt:o.alt,style:Be([ee(Ah)({borderRadius:r.element.BorderRadius,borderRadiusCard:r.theme.BorderRadiusCard,bodyBorderRadius:r.theme.BorderRadius,borderButtonRadius:r.theme.BorderRadiusButton,borderBannerRadius:r.theme.BorderRadiusBanner}),ee(jp)({border:r.element.Border,themeColors:r.theme.Colors}),{width:i.value,maxWidth:"100%"},{verticalAlign:r.element.VerticalAlign}]),onLoad:n},null,46,$Yt)),[[ee(IL),({width:d,height:h})=>l("onImageSizeAdjusted",{Path:r.path,AdjustedHeight:h,AdjustedWidth:d})]]):it("",!0)],4))}}),VYt=ht(PYt,[["__scopeId","data-v-eaaeacec"]]),zYt=zF,HYt=t=>t.width===void 0?{}:zYt(t.width).Match({Auto:()=>({width:"auto"}),Pixel:e=>({width:e.Value+"px"}),Percentage:e=>({width:e.Value+"%"})}),WYt=t=>{switch(t){case"Auto":return{width:"auto"};case"FullWidth":return{width:"100%"};default:return lu(t)}},jYt=pt({__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,r=e;return(o,i)=>(U(),ue("table",{class:"oneLineList",style:Be([{"border-spacing":"0","border-collapse":"collapse"},[ee(WYt)(n.element.ContainerWidth)]])},[N("tbody",null,[N("tr",null,[(U(!0),ue(xt,null,Kr(n.element.Elements,(s,a)=>(U(),ue("td",{key:a,class:"oneLineListItem",style:Be([ee(IO)({paddings:n.element.ItemPaddings,themeComponentPaddings:n.theme.ComponentPaddings,themeBodyPaddings:n.theme.BodyPaddings}),ee(HYt)({width:n.element.ItemWidth}),{lineHeight:"normal"}])},[(U(),kt(Pu,{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=>r("onImageSizeAdjusted",l)),onOnImageOriginalSizeAdjusted:i[1]||(i[1]=l=>r("onImageOriginalSizeAdjusted",l)),onOnElementClicked:i[2]||(i[2]=l=>r("onElementClicked",l)),onOnElementUpdatedEvent:i[3]||(i[3]=l=>r("onElementUpdatedEvent",l)),onOnElementRemoved:i[4]||(i[4]=l=>r("onElementRemoved",l))},null,8,["deps","theme","element","path","selectedElementPath","context"]))],4))),128))])])],4))}}),UYt={style:{"border-spacing":"0","border-collapse":"collapse",width:"100%"}},KYt=pt({__name:"Spacer",props:{theme:{},element:{}},emits:["onElementClicked"],setup(t,{emit:e}){const n=t,r=e;return(o,i)=>(U(),ue("table",{class:"Spacer",width:"100%",style:{"border-spacing":"0","border-collapse":"collapse",width:"100%"},onClick:i[0]||(i[0]=()=>r("onElementClicked"))},[N("tbody",null,[N("tr",null,[N("td",{valign:"middle",style:Be([{height:ee(ko)({paddingExpression:n.element.Height,themeComponentPaddings:n.theme.ComponentPaddings,themeBodyPaddings:n.theme.BodyPaddings})+"px"}])},[N("table",UYt,[N("tbody",null,[N("tr",null,[N("td",{style:Be([[{borderTop:n.element.Weight+"px",borderStyle:n.element.Weight>0?"solid":"none",borderColor:ee(nd)({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)])])]))}}),Rne={beforeMount(t,e){t.innerHTML=axe.sanitize(e.value)},beforeUpdate(t,e){t.innerHTML=axe.sanitize(e.value)}},qYt=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)}}}),W9=t=>qYt(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}),JYt=t=>({Match:e=>{switch(t){case"None":return e.None();case"Underline":return e.Underline();case"LineThrough":return e.LineThrough()}}}),mde=t=>JYt(t.textDecoration).Match({None:()=>"none",Underline:()=>"underline",LineThrough:()=>"line-through"}),$Ke=t=>({fontSize:t.customFontSettings.FontSize,lineHeight:t.customFontSettings.LineHeight,fontWeight:t.customFontSettings.IsBold?"bold":"normal",fontStyle:t.customFontSettings.IsItalic?"italic":"normal",textDecoration:mde({textDecoration:t.customFontSettings.Decoration}),fontFamily:t.customFontSettings.FontFamily,color:W9({fontColor:t.customFontSettings.FontColor,themeColors:t.themeColors})}),PKe=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 lu(t.Discriminator)}}}),GYt=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)}}}),YYt=t=>GYt(t.fontStyleColor).Match({FontStyle:()=>PKe(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=>nd({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}),VKe=["Arial","Georgia","Tahoma","TimesNewRoman","Verdana"],Dne={Arial:"Arial",Georgia:"Georgia",Tahoma:"Tahoma",TimesNewRoman:"Times New Roman",Verdana:"Verdana"},gde=t=>({fontSize:t.fontSize+"px",lineHeight:t.lineHeight+"px",fontWeight:t.fontWeight,fontStyle:t.fontStyle,fontFamily:Dne[t.fontFamily],textDecoration:t.textDecoration,color:t.color}),yde=t=>{const e=n=>({fontSize:n.FontSize,lineHeight:n.LineHeight,fontWeight:n.IsBold?"bold":"normal",fontStyle:n.IsItalic?"italic":"normal",fontFamily:t.fontFamily,textDecoration:mde({textDecoration:n.Decoration}),color:YYt({fontStyleColor:t.fontStyle.FontColor,fontStyle:t.fontStyle,themeColors:t.themeColors})});return PKe(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=>$Ke({customFontSettings:n,themeColors:t.themeColors})})},XYt=t=>({Match:e=>{switch(t.Discriminator){case"Theme":return e.Theme();case"Custom":return e.Custom(t.CustomValue);default:return lu(t.Discriminator)}}}),QYt=t=>XYt(t.buttonPaddings).Match({Theme:()=>({TopBottom:t.themeButtonPaddings.TopBottom,LeftRight:t.themeButtonPaddings.LeftRight}),Custom:e=>({TopBottom:e.TopBottom,LeftRight:e.LeftRight})}),zKe=t=>t.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#039;"),ZYt=["align"],eXt={class:"Button"},tXt=["href"],nXt=pt({__name:"ButtonVue",props:{deps:{},theme:{},element:{},context:{type:[String,Number,Boolean,Array,Object]}},emits:["onElementClicked"],setup(t,{emit:e}){const n=t,r=Q(()=>gde(yde({fontFamily:n.theme.FontFamily,fontStyle:n.element.TextStyle,themeDefinedFontSettings:n.theme.FontSettingsPresets,themeColors:n.theme.Colors}))),o=Q(()=>aV({borderColor:n.element.Border.Left.Color,themeColors:n.theme.Colors})),i=Q(()=>QYt({buttonPaddings:n.element.Paddings,themeButtonPaddings:n.theme.ButtonPaddings})),s=Q(()=>nd({color:n.element.BackgroundColor,themeColors:n.theme.Colors})),a=Q(()=>{switch(n.element.ContentAlign){case"Center":return"center";case"Left":return"left";case"Right":return"right";default:return"center"}}),l=Xt({href:"",text:"",isLoading:!0}),u=n.deps.stringExpressionEvaluator,c=()=>{Promise.all([u({stringExpression:n.element.HRef,context:n.context}),u({stringExpression:n.element.Text,context:n.context})]).then(([h,f])=>{l.href=h,l.text=zKe(f),l.isLoading=!1})};c(),En(()=>[n.element.HRef,n.element.Text,n.context],()=>c());const d=e;return(h,f)=>(U(),ue("table",{style:{"border-spacing":"0","border-collapse":"collapse",width:"100%"},onClick:f[1]||(f[1]=Po(p=>d("onElementClicked"),["prevent"]))},[N("tbody",null,[N("tr",null,[N("td",{align:a.value},[N("div",eXt,[N("a",{style:Be([{display:"block","text-decoration":"none"},[r.value]]),href:l.href,onClick:f[0]||(f[0]=Po(()=>{},["prevent"]))},[N("table",{style:Be([[{backgroundColor:s.value},ee(Ah)({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"},ee(jp)({border:n.element.Border,themeColors:t.theme.Colors}),{borderColor:o.value}],{"text-align":"center","border-spacing":"0","border-collapse":"separate"}])},[N("tbody",null,[N("tr",null,[N("td",{align:"center",style:Be([{"line-height":"normal"},[{paddingTop:i.value.TopBottom+"px",paddingBottom:i.value.TopBottom+"px",paddingLeft:i.value.LeftRight+"px",paddingRight:i.value.LeftRight+"px"}]])},[_n(N("p",{class:"user-select-none",style:Be([r.value])},null,4),[[ee(Rne),l.text]])],4)])])],4)],12,tXt)])],8,ZYt)])])]))}}),rXt=ht(nXt,[["__scopeId","data-v-0c0a0e61"]]),oXt=["href"],iXt=pt({__name:"SpanText",props:{deps:{},theme:{},element:{},context:{type:[String,Number,Boolean,Array,Object]}},emits:["onElementClicked"],setup(t,{emit:e}){const n=t,r=n.deps.stringExpressionEvaluator,o=Q(()=>{const l=yde({fontFamily:n.theme.FontFamily,fontStyle:n.element.Style,themeDefinedFontSettings:n.theme.FontSettingsPresets,themeColors:n.theme.Colors});if(n.element.Style.Discriminator==="Custom"){const u=$Ke({customFontSettings:n.element.Style.CustomFontSettings,themeColors:n.theme.Colors});return{...u,fontSize:u.fontSize+"px",lineHeight:u.lineHeight+"px",minHeight:n.element.MinNumberOfLines*l.lineHeight+"px"}}return{minHeight:n.element.MinNumberOfLines*l.lineHeight+"px",color:l.color}}),i=Xt({href:"",text:"",isLoading:!0}),s=()=>{Promise.all([r({stringExpression:n.element.HRef,context:n.context}),r({stringExpression:n.element.Text,context:n.context})]).then(([l,u])=>{i.href=l,i.text=zKe(u),i.isLoading=!1})};s(),En(()=>[n.context,n.element.HRef,n.element.Text],()=>s());const a=e;return(l,u)=>n.element.IsLink?_n((U(),ue("a",{key:0,href:i.href,class:Ve(["SpanText cursor-pointer user-select-none",n.element.Style.Discriminator]),style:Be([{margin:"0"},[o.value,ee(PL)({contentAlign:n.element.ContentAlign})]]),onClick:u[0]||(u[0]=Po(()=>a("onElementClicked"),["prevent"]))},null,14,oXt)),[[ee(Rne),i.text]]):_n((U(),ue("span",{key:1,class:Ve(["SpanText cursor-pointer user-select-none",n.element.Style.Discriminator]),style:Be([{margin:"0"},[o.value,ee(PL)({contentAlign:n.element.ContentAlign})]]),onClick:u[1]||(u[1]=Po(()=>a("onElementClicked"),["prevent"]))},null,6)),[[ee(Rne),i.text]])}}),sXt=ht(iXt,[["__scopeId","data-v-44b3ff94"]]),il=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:mde({textDecoration:t.themeFontSettings.Decoration}),color:t.themeColor}),aXt={cancelButton:"Cancel",applyButton:"Delete"},lXt={cancelButton:"Отмена",applyButton:"Удалить"},GTe=Ir({en:aXt,ru:lXt}),uXt={class:"bootstrap-styles px-11 py-7 text-start"},cXt=pt({__name:"RemoveConfirmModalWindow",props:{headerText:{},deps:{}},emits:["cancel","confirmed"],setup(t,{emit:e}){const n=t,r=()=>{i("cancel")},o={cancelButton:GTe({localeKey:n.deps.localeKey}).cancelButton,applyButton:GTe({localeKey:n.deps.localeKey}).applyButton},i=e;return(s,a)=>(U(),kt(w7e,{headerText:n.headerText,class:"remove-element-confirm-modal-window",onClose:a[2]||(a[2]=()=>r())},{body:ky(()=>[N("div",uXt,[B3(s.$slots,"body-content")])]),"footer-actions":ky(()=>[N("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]=Po(l=>r(),["stop"]))},er(o.cancelButton),1),N("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]=Po(l=>i("confirmed"),["stop"]))},er(o.applyButton),1)]),_:3},8,["headerText"]))}}),dXt={removeWindowTitle:"Delete element",removeWindowDescription:"Are you sure you want to delete the text element?"},hXt={removeWindowTitle:"Удаление элемента",removeWindowDescription:"Вы действительно хотите удалить элемент ?"},YTe=Ir({en:dXt,ru:hXt}),XTe=t=>({type:"doc",content:t.Content.map(fXt)}),fXt=t=>"ParagraphNode"in t?jKe(t):"BulletListNode"in t?pXt(t):"OrderedListNode"in t?mXt(t):"DataFieldNode"in t?WKe(t):lu(t),HKe=t=>({type:"listItem",content:t.Content.map(e=>"ParagraphNode"in e?jKe(e):"ImageNode"in e?UKe(e):lu(e))}),WKe=t=>({type:"dataField",marks:Cde({textStyle:t.DataFieldNode.TextStyle,commonLinkMark:t.DataFieldNode.CommonLinkMark}),attrs:{stringExpression:t.DataFieldNode.StringExpression}}),pXt=t=>({type:"bulletList",content:t.BulletListNode.Content.map(HKe),attrs:{themeName:t.BulletListNode.ListStyle}}),mXt=t=>({type:"orderedList",content:t.OrderedListNode.Content.map(HKe),attrs:{themeName:t.OrderedListNode.ListStyle}}),jKe=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(gXt)}},gXt=t=>"TextNode"in t?yXt(t):"HardBreakNode"in t?TXt():"ImageNode"in t?UKe(t):"DataFieldNode"in t?WKe(t):lu(t),Cde=t=>{const e=[];return t.textStyle&&e.push(xXt(t.textStyle)),t.commonLinkMark&&e.push(kXt(t.commonLinkMark)),e.filter(n=>n!==void 0)},yXt=t=>({type:"text",text:t.TextNode.Text,marks:Cde({textStyle:t.TextNode.TextStyle,commonLinkMark:t.TextNode.CommonLinkMark})}),CXt=t=>{switch(t){case"Normal":return"normal";case"Bold":return"bold";default:return"normal"}},bXt=t=>{switch(t){case"Normal":return"normal";case"Italic":return"italic";default:return"normal"}},vXt=t=>{switch(t){case"None":return"none";case"Uppercase":return"uppercase";default:return"none"}},wXt=t=>{switch(t){case"None":return"none";case"Underline":return"underline";case"LineThrough":return"line-through";default:return"none"}},xXt=t=>({type:"textStyle",attrs:{themeName:t.ThemeName,color:t.Style.Color,fontWeight:t.Style.FontWeight?CXt(t.Style.FontWeight):void 0,fontStyle:t.Style.FontStyle?bXt(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?vXt(t.Style.TextTransform):void 0,textDecoration:t.Style.TextDecoration?wXt(t.Style.TextDecoration):void 0}}),kXt=t=>zF(t).Match({LinkMark:e=>SXt({LinkMark:e}),UnsubscribeLinkMark:()=>FXt()}),TXt=()=>({type:"hardBreak"}),UKe=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:Cde({commonLinkMark:t.ImageNode.CommonLinkMark})}),SXt=t=>({type:"link",attrs:{href:t.LinkMark.Href}}),FXt=()=>({type:"unsubscribeLink"}),KKe=Kh.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:r,$from:o}=e.selection;return e.doc.textBetween(n,r," ").length?t().setMark("textStyle",{textTransform:"none"}).run():t().setTextSelection({from:o.pos-o.nodeBefore.nodeSize,to:o.pos+o.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})}}}}),EXt=Kh.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()}}}),AXt=Kh.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()}}}),_Xt=t=>Zn.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:r})=>{const{$from:o}=r.selection,i=o.parent,s=o.index();return i.child(s).type.name==="image"?!1:n().setMark("textStyle",{themeName:e}).run()},applySiblingNodeThemeSettings:()=>({chain:e,state:n})=>{const{from:r,to:o,$from:i}=n.selection,s=i.parent,a=i.index(),l=i.node(i.depth)?.type.name==="dataField"||s.maybeChild(a)?.type.name==="dataField",u=s.child(a).type.name==="image",c=p=>{const m="NormalText",g=p.index>0?s.child(p.index-1):void 0,C=p.index+1<s.childCount?s.child(p.index+1):void 0,b=g??C;if(b){const v=b.marks.find(w=>w.type.name==="textStyle");if(v)return v.attrs.themeName}return m};if(l){const p=c({index:a});return e().unsetMark("textStyle",{extendEmptyMarkRange:!0}).setThemeSettings(p).run()}if(u)return!1;const d=c({index:a}),h=i.nodeBefore?i.pos-i.nodeBefore.nodeSize:r,f=i.nodeAfter?i.pos+i.nodeAfter.nodeSize:o;return e().setTextSelection({from:h,to:f}).setThemeSettings(d).run()}}},addProseMirrorPlugins(){return[new Gr({key:new Lo("syncBlockTheme"),appendTransaction:(e,n,r)=>{const o=r.tr;let i=!1;return r.doc.descendants((s,a)=>{if(s.type.name==="bulletList"||s.type.name==="orderedList"){const l=s.firstChild?.firstChild?.firstChild;if(l){const u=l.marks.find(c=>c.type.name==="textStyle")?.attrs.themeName;u&&s.attrs.themeName!==u&&(o.setNodeMarkup(a,void 0,{...s.attrs,themeName:u}),i=!0)}}if(s.type.name==="paragraph"){const l=s.firstChild;if(l){const u=l.marks.find(c=>c.type.name==="textStyle")?.attrs.themeName;u&&s.attrs.themeName!==u&&(o.setNodeMarkup(a,void 0,{...s.attrs,themeName:u}),i=!0)}}}),i?o:null}})]}}),RXt=Kh.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:r,$from:o}=e.selection;return e.doc.textBetween(n,r," ").length?t().setMark("textStyle",{fontWeight:"normal"}).run():t().setTextSelection({from:o.pos-o.nodeBefore.nodeSize,to:o.pos+o.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})}}}}),DXt=Kh.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:r,$from:o}=e.selection;return e.doc.textBetween(n,r," ").length?t().setMark("textStyle",{fontStyle:"normal"}).run():t().setTextSelection({from:o.pos-o.nodeBefore.nodeSize,to:o.pos+o.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})}}}}),bde=Kh.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",ra(this.options.HTMLAttributes,t),0]},addCommands(){return{setUnsubscribeLink:()=>({chain:t})=>t().setMark("unsubscribeLink").focus().run(),unsetUnsubscribeLink:()=>({chain:t,state:e})=>{const{from:n,to:r}=e.selection,o=e.doc.textBetween(n,r," ");return e.doc.nodeAt(n)?.type.name==="image"?t().unsetMark("unsubscribeLink").focus().run():o.length?t().setTextSelection({from:n,to:n+o.length}).unsetMark("unsubscribeLink").focus().run():t().unsetMark("unsubscribeLink",{extendEmptyMarkRange:!0}).focus().run()}}}}),NXt=Kh.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:r,$from:o}=e.selection;return e.doc.textBetween(n,r," ").length?t().setMark("textStyle",{textDecoration:"none"}).run():t().setTextSelection({from:o.pos-o.nodeBefore.nodeSize,to:o.pos+o.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})}}}}),LXt=t=>{if(!t.content)throw new Error("Invalid document: content is missing");return{Content:t.content.map(e=>{switch(e.type){case"paragraph":return qKe(e);case"bulletList":return BXt(e);case"orderedList":return IXt(e);default:throw new Error(`Unknown node type: ${e.type}`)}})}},qKe=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 MXt(e);case"image":return GKe(e);case"hardBreak":return QTe();case"dataField":return OXt(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:[QTe()]}},vde=t=>{const e=t?t.find(r=>r.type==="textStyle"):void 0,n=t?t.find(r=>r.type==="link"||r.type==="unsubscribeLink"):void 0;return{TextStyle:e?WXt(e):void 0,CommonLinkMark:n?jXt(n):void 0}},MXt=t=>{if(typeof t.text!="string")throw new Error("Invalid text node: text is missing or not a string");const{TextStyle:e,CommonLinkMark:n}=vde(t.marks);return{TextNode:{Text:t.text,TextStyle:e,CommonLinkMark:n}}},QTe=()=>({HardBreakNode:{}}),OXt=t=>{if(!t.attrs)throw new Error("Invalid variable node: attrs is missing");const{TextStyle:e,CommonLinkMark:n}=vde(t.marks);return{DataFieldNode:{StringExpression:t.attrs.stringExpression,TextStyle:e,CommonLinkMark:n}}},BXt=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(JKe)}}},IXt=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(JKe)}}},JKe=t=>{if(!t.content)throw new Error("Invalid listItem: content is missing");return{Content:t.content.map(e=>{switch(e.type){case"paragraph":return qKe(e);case"image":return GKe(e);default:throw new Error(`Unknown node type: ${e.type}`)}})}},GKe=t=>{if(!t.attrs)throw new Error("Invalid image node: attrs is missing");const{CommonLinkMark:e}=vde(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}}},$Xt=t=>t==="bold"?"Bold":"Normal",PXt=t=>t==="italic"?"Italic":"Normal",VXt=t=>t,zXt=t=>{switch(t){case"uppercase":return"Uppercase";default:return"None"}},HXt=t=>{switch(t){case"underline":return"Underline";case"line-through":return"LineThrough";default:return"None"}},ZTe=t=>{const e=t.replace(/px$/,"");return parseInt(e,10)},WXt=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?$Xt(t.attrs.fontWeight):void 0,FontStyle:t.attrs.fontStyle?PXt(t.attrs.fontStyle):void 0,FontSize:t.attrs.fontSize?ZTe(t.attrs.fontSize):void 0,LineHeight:t.attrs.lineHeight?ZTe(t.attrs.lineHeight):void 0,FontFamily:t.attrs.fontFamily?VXt(t.attrs.fontFamily):void 0,TextTransform:t.attrs.textTransform?zXt(t.attrs.textTransform):void 0,TextDecoration:t.attrs.textDecoration?HXt(t.attrs.textDecoration):void 0}}},jXt=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}},YKe=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(","),r=n[0]?parseInt(n[0]):0,o=n[1]?parseInt(n[1]):0,i=n[2]?parseInt(n[2]):0;return`#${(1<<24|r<<16|o<<8|i).toString(16).slice(1)}`}if(t.startsWith("hsl")){const n=document.createElement("div");n.style.color=t,document.body.appendChild(n);const r=getComputedStyle(n).color;return document.body.removeChild(n),YKe(r)}const e=document.createElement("canvas").getContext("2d");return e?(e.fillStyle=t,e.fillStyle):null},UXt=t=>Zn.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",r=YKe(e.style.color)??"#000000";return{Discriminator:n,CustomValue:r}},renderHTML:e=>{if(!e.color)return{};const n=W9({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()}}}),KXt=Zn.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 VKe.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()}}}),qXt=t=>zF(t),JXt=t=>fd.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 r=e.attrs.stringExpression,o=qXt(r).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",ra(n,{class:"rich-text__variable","data-field":JSON.stringify(e.attrs.stringExpression),contenteditable:"false"}),o]},addCommands(){return{setVariable:e=>({chain:n,state:r})=>{const o=r.selection.$from.marks(),i=o.map(s=>({type:s.type.name,attrs:s.attrs}));return n().insertContent({type:this.name,attrs:{stringExpression:e,selectedMarks:o},marks:i}).focus().run()}}}}),XKe=t=>new Promise((e,n)=>{const r=new Image;r.onload=()=>{e({width:r.naturalWidth,height:r.naturalHeight})},r.onerror=n,r.src=t}),QKe=fd.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",ra(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[Q4t({find:/(?:^|\s)(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))$/,type:this.type,getAttributes:t=>{const[,,e,n,r]=t;return{src:n,alt:e,title:r}}})]},addProseMirrorPlugins(){return[new Gr({view:t=>((async()=>{const{state:e,dispatch:n}=t;e.doc.descendants((r,o)=>{if(r.type.name===this.name){const{src:i,width:s,height:a}=r.attrs;i&&(!s||!a)&&XKe(i).then(l=>{const u=e.tr.setNodeMarkup(o,void 0,{...r.attrs,width:l.width,height:l.height});n(u)})}})})(),{})})]}}),GXt=t=>Zn.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:r})=>{const{$from:o}=n.selection,i=o.parent;if(i.type.name!=="paragraph")return!1;const s=o.before(o.depth);return r.setNodeMarkup(s,void 0,{...i.attrs,contentAlign:e}),!0}}}}),YXt=t=>[P6t,SUt,$6t,R9.configure({mergeNestedSpanStyles:!0}),cUt,JXt({dataSourceFieldNameDelegate:t.dataSourceFieldNameDelegate}),I6t.configure({className:"has-focus",mode:"all"}),Pce.configure({keepMarks:!0,keepAttributes:!0}),zce.configure({keepMarks:!0,keepAttributes:!0}),G9e,TUt.configure({HTMLAttributes:{class:"hard-break"}}),$ce.configure({HTMLAttributes:{class:"rich-text__link"},openOnClick:!1}),QKe.configure({inline:!0,HTMLAttributes:{class:"rich-text__image"}}),UXt({themeColors:t.themeColors}),_Xt(t.initialThemeName),RXt,DXt,EXt,AXt,KKe,NXt,bde,KXt,GXt({fallbackContentAlign:t.fallbackContentAlign})],XXt=t=>LXt(t.editor.getJSON()),QXt=pt({__name:"SelectItemColor",props:{isActive:{type:Boolean},color:{},label:{}},emits:["click"],setup(t,{emit:e}){const n=t,r=e;return(o,i)=>(U(),ue("li",{class:Ve(["bootstrap-styles dropdown-item p-0 user-select-none",{active:n.isActive}])},[N("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=>r("click"))},[N("i",{class:"bootstrap-styles input__color_selection d-block overflow-hidden me-2",style:Be([{border:"1px solid rgba(0, 0, 0, 0.10)"},[{background:n.color}]])},null,4),oO(" "+er(n.label),1)])],2))}}),ZXt={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"}},eQt={colorLabels:{none:"Нет",styleLinkedColor:"Связать со стилем",emailBackgroundColor:"Фон письма",bodyColor:"Тело письма",primaryColor:"Основной цвет",secondaryColor:"Вторичный цвет",primaryTextColor:"Текст на основном цвете",secondaryTextColor:"Текст на вторичном цвете",cardBackgroundColor:"Цвет карточек товара",buttonTextColor:"Кнопки",titleColor:"Большой заголовок",headingColor:"Заголовок",subHeadingColor:"Подзаголовок",largeTextColor:"Большой текст",normalTextColor:"Текст",descriptionTextColor:"Описание",linkColor:"Ссылка",custom:"Пользовательский"}},tQt=Ir({en:ZXt,ru:eQt}),ZKe=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 lu(t)}}}),j9=t=>ZKe(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}),$O=t=>{const{FontFamily:e,FontSettingsPresets:n,Colors:r}=t.theme,o=!!t.editor.getAttributes("textStyle")[t.styleName],i=t.editor.getAttributes("paragraph").themeName||"NormalText",s=t.editor.getAttributes("textStyle").themeName||i;if(o)return t.editor.getAttributes("textStyle")[t.styleName];const a=il({fontFamily:e,themeFontSettings:n[s],themeColor:j9({themeName:s,themeFontColors:r})});return String(a[t.styleName])},e8e=t=>{const{FontFamily:e,FontSettingsPresets:n,Colors:r}=t.theme,o=!!t.editor.getAttributes("textStyle").color,i=t.editor.getAttributes("paragraph").themeName||"NormalText",s=t.editor.getAttributes("textStyle").themeName||i;if(o)return t.editor.getAttributes("textStyle").color;const a=il({fontFamily:e,themeFontSettings:n[s],themeColor:j9({themeName:s,themeFontColors:r})});return{Discriminator:ZKe(s).Match({whenHeading:()=>"HeadingColor",whenTitle:()=>"TitleColor",whenSubHeading:()=>"SubHeadingColor",whenLargeText:()=>"LargeTextColor",whenNormalText:()=>"NormalTextColor",whenDescriptionText:()=>"DescriptionTextColor",whenLink:()=>"LinkColor",whenButton:()=>"ButtonTextColor"}),CustomValue:a.color}},nQt={class:"color-picker bootstrap-styles border rounded bg-white"},rQt={class:"bootstrap-styles mb-5 bg-white"},oQt=["value"],iQt=["value"],sQt=pt({__name:"ColorPickerModalWindow",props:{editor:{},theme:{},deps:{}},emits:["onColorChanged","onColorPickerClosed"],setup(t,{emit:e}){tm(h=>({v7ba43684:i.color}));const n=t,r={colorLabels:tQt({localeKey:n.deps.localeKey}).colorLabels},o=Q(()=>W9({fontColor:e8e({editor:n.editor,theme:n.theme}),themeColors:n.theme.Colors})),i=Xt({color:o.value,isValidHexColor:!0}),s={StyleLinkedColor:r.colorLabels.styleLinkedColor,EmailBackgroundColor:r.colorLabels.emailBackgroundColor,BodyColor:r.colorLabels.bodyColor,PrimaryColor:r.colorLabels.primaryColor,SecondaryColor:r.colorLabels.secondaryColor,PrimaryTextColor:r.colorLabels.primaryTextColor,SecondaryTextColor:r.colorLabels.secondaryTextColor,CardBackgroundColor:r.colorLabels.cardBackgroundColor,ButtonTextColor:r.colorLabels.buttonTextColor,TitleColor:r.colorLabels.titleColor,HeadingColor:r.colorLabels.headingColor,SubHeadingColor:r.colorLabels.subHeadingColor,LargeTextColor:r.colorLabels.largeTextColor,NormalTextColor:r.colorLabels.normalTextColor,DescriptionTextColor:r.colorLabels.descriptionTextColor,LinkColor:r.colorLabels.linkColor,Custom:r.colorLabels.custom},a=["EmailBackgroundColor","BodyColor","PrimaryColor","SecondaryColor","PrimaryTextColor","SecondaryTextColor","ButtonTextColor","TitleColor","HeadingColor","SubHeadingColor","LargeTextColor","NormalTextColor","DescriptionTextColor","LinkColor"],l=Q3t(h=>{d("onColorChanged",{Discriminator:"Custom",CustomValue:h})},100,{leading:!1,trailing:!0}),u=h=>/^#([0-9A-Fa-f]{6})$/.test(h.trim()),c=h=>{i.isValidHexColor=u(h),i.color=h,u(h)&&d("onColorChanged",{Discriminator:"Custom",CustomValue:h})};En(()=>o.value,h=>{i.color=h,i.isValidHexColor=u(h)});const d=e;return(h,f)=>_n((U(),ue("div",null,[N("ul",nQt,[N("li",rQt,[Ce(ee(t7t),{modelValue:o.value,width:220,canvasHeight:220,hideInputs:!0,hideSliders:!1,mode:"hex","onUpdate:modelValue":f[0]||(f[0]=p=>ee(l)(p))},null,8,["modelValue"]),N("div",{class:Ve(["bootstrap-styles border mx-1 bg-color-input rounded-2 d-flex justify-content-between p-14",{"is-not-valid":!i.isValidHexColor}])},[N("input",{type:"color",class:"bootstrap-styles pe-none",style:{border:"1px solid rgba(0, 0, 0, 0.1)",cursor:"default"},value:o.value},null,8,oQt),N("input",{type:"text",class:"bootstrap-styles w-100 text-uppercase ps-1",value:i.color,placeholder:"#000000",onInput:f[1]||(f[1]=p=>c(p.target.value))},null,40,iQt)],2)]),(U(),ue(xt,null,Kr(a,p=>Ce(QXt,{key:p,isActive:o.value===n.theme.Colors[p],color:n.theme.Colors[p],label:s[p],onClick:()=>{d("onColorChanged",{Discriminator:p,CustomValue:n.theme.Colors[p]}),d("onColorPickerClosed")}},null,8,["isActive","color","label","onClick"])),64))])])),[[ee(rm),()=>d("onColorPickerClosed")]])}}),aQt=ht(sQt,[["__scopeId","data-v-0519b5d6"]]),lQt={tooltip:"Text color"},uQt={tooltip:"Цвет текста"},cQt=Ir({en:lQt,ru:uQt}),dQt=["value"],hQt=pt({__name:"ColorPicker",props:{editor:{},theme:{},isAllowToEdit:{type:Boolean},deps:{}},setup(t){const e=t,n={tooltip:cQt({localeKey:e.deps.localeKey}).tooltip},r=Xt({isColorPickerDropdownShown:!1}),o=Wn(),i=Wn(),{floatingStyles:s}=S6e(i,o,{whileElementsMounted:x6e,placement:"bottom",middleware:[k6e(({rects:l})=>({alignmentAxis:-l.floating.width/2-l.floating.width/2,mainAxis:15}))]}),a=Q(()=>W9({fontColor:e8e({editor:e.editor,theme:e.theme}),themeColors:e.theme.Colors}));return(l,u)=>(U(),ue(xt,null,[_n((U(),ue("button",{ref_key:"richTextColorPickerBtn",ref:i,class:Ve(["bootstrap-styles border rich-text-color__input rich-text__handler",{disabled:!t.isAllowToEdit}]),value:a.value,onClick:u[0]||(u[0]=()=>r.isColorPickerDropdownShown=!r.isColorPickerDropdownShown)},[N("i",{style:Be([{display:"block",width:"100%",height:"100%"},{backgroundColor:a.value}])},null,4)],10,dQt)),[[ee(Mo),{title:n.tooltip,placement:"top"}]]),r.isColorPickerDropdownShown?(U(),kt(aQt,{key:0,ref_key:"richTextColorPicker",ref:o,theme:e.theme,editor:e.editor,deps:e.deps.colorPickerModalWindowDeps,style:Be(ee(s)),onOnColorChanged:u[1]||(u[1]=c=>{e.editor.commands.setColor(c)}),onOnColorPickerClosed:u[2]||(u[2]=()=>{r.isColorPickerDropdownShown=!1,e.editor.commands.focus()})},null,8,["theme","editor","deps","style"])):it("",!0)],64))}}),fQt=ht(hQt,[["__scopeId","data-v-6624477a"]]),pQt={},mQt={xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"};function gQt(t,e){return U(),ue("svg",mQt,[...e[0]||(e[0]=[N("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 t8e=ht(pQt,[["render",gQt]]),yQt={tooltip:"Font family"},CQt={tooltip:"Шрифт"},bQt=Ir({en:yQt,ru:CQt}),vQt={class:"bootstrap-styles dropdown"},wQt={class:"bootstrap-styles me-14 overflow-hidden rich-text-toolbar__font-family-btn__text"},xQt={class:"bootstrap-styles d-flex justify-content-center align-items-center"},kQt=["onClick"],TQt=pt({__name:"FontFamilySelector",props:{editor:{},isAllowToEdit:{type:Boolean},theme:{},deps:{}},setup(t){const e=t,n={tooltip:bQt({localeKey:e.deps.localeKey}).tooltip},r=R9.name,o=Xt({isOpened:!1}),i=Q(()=>$O({editor:e.editor,theme:e.theme,styleName:"fontFamily"})),s=a=>{e.editor.commands.setFontFamily(a),o.isOpened=!1,e.editor.commands.focus()};return(a,l)=>_n((U(),ue("div",vQt,[N("button",{id:"richTextDropdownFontFamily",class:Ve(["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:o.isOpened}]),type:"button",onClick:l[0]||(l[0]=u=>o.isOpened=!o.isOpened)},[N("span",wQt,er(ee(Dne)[i.value]),1),N("i",xQt,[Ce(t8e)])],2),N("ul",{class:Ve([{show:o.isOpened},"bootstrap-styles dropdown-menu rounded-2 bg-white"]),"aria-labelledby":"richTextDropdownFontFamily"},[(U(!0),ue(xt,null,Kr(ee(VKe),u=>(U(),ue("li",{key:u,class:Ve(["bootstrap-styles dropdown-item p-0",{active:e.editor.getAttributes(ee(r)).fontFamily===u}]),onClick:()=>s(u)},[N("span",{class:"bootstrap-styles d-block py-1 px-3 text-decoration-none text-reset cursor-pointer",style:Be({fontFamily:u})},er(ee(Dne)[u]),5)],10,kQt))),128))],2)])),[[ee(rm),()=>o.isOpened=!1],[ee(Mo),{title:n.tooltip,placement:"top"}]])}}),SQt=ht(TQt,[["__scopeId","data-v-cc496278"]]),FQt={},EQt={xmlns:"http://www.w3.org/2000/svg",width:"8",height:"8",viewBox:"0 0 8 8",fill:"none"};function AQt(t,e){return U(),ue("svg",EQt,[...e[0]||(e[0]=[N("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 n8e=ht(FQt,[["render",AQt],["__scopeId","data-v-19c42a7a"]]),_Qt={},RQt={xmlns:"http://www.w3.org/2000/svg",width:"8",height:"8",viewBox:"0 0 8 8",fill:"none"};function DQt(t,e){return U(),ue("svg",RQt,[...e[0]||(e[0]=[N("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 r8e=ht(_Qt,[["render",DQt],["__scopeId","data-v-313c2951"]]),NQt={},LQt={width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function MQt(t,e){return U(),ue("svg",LQt,[...e[0]||(e[0]=[N("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 OQt=ht(NQt,[["render",MQt]]),BQt={tooltip:"Font size"},IQt={tooltip:"Размер текста"},$Qt=Ir({en:BQt,ru:IQt}),PQt=t=>{const{FontFamily:e,FontSettingsPresets:n,Colors:r}=t.theme,o=!!t.editor.getAttributes("textStyle").fontSize,i=t.editor.getAttributes("paragraph").themeName||"NormalText",s=t.editor.getAttributes("textStyle").themeName||i;return o?parseInt(t.editor.getAttributes("textStyle").fontSize,10):il({fontFamily:e,themeFontSettings:n[s],themeColor:j9({themeName:s,themeFontColors:r})}).fontSize},VQt={class:"bootstrap-styles rich-text-toolbar__font-size-editor position-relative rounded-2 py-1 px-3 d-flex"},zQt={class:"bootstrap-styles d-flex justify-content-center rich-text-icon me-14"},HQt=["value"],WQt={class:"bootstrap-styles rich-text-toolbar__input-button top-0 d-flex position-absolute align-items-end justify-content-center"},jQt={class:"bootstrap-styles rich-text-toolbar__input-button bottom-0 d-flex position-absolute align-items-start justify-content-center"},UQt=pt({__name:"FontSizeEditor",props:{editor:{},theme:{},deps:{}},setup(t){const e=t,n={tooltip:$Qt({localeKey:e.deps.localeKey}).tooltip},r=Q(()=>PQt({editor:e.editor,theme:e.theme})),o=()=>{r.value&&e.editor.commands.setFontSize(r.value+1)},i=()=>{r.value&&r.value!==1&&e.editor.commands.setFontSize(r.value-1)},s=a=>{const l=a.target;let u=parseInt(l.value);const c=100;isNaN(u)||l.value===""?(u=0,l.value="0"):u>c&&(u=c,l.value=String(c)),e.editor.commands.setFontSize(u)};return(a,l)=>_n((U(),ue("div",VQt,[N("i",zQt,[Ce(OQt)]),N("input",{type:"number",class:"bootstrap-styles rich-text-toolbar__input-number rich-text__handler",value:r.value,onInput:s},null,40,HQt),N("div",WQt,[N("input",{type:"button",class:"bootstrap-styles position-absolute rich-text__handler",onClick:o}),Ce(n8e)]),N("div",jQt,[N("input",{type:"button",class:"bootstrap-styles position-absolute rich-text__handler",onClick:i}),Ce(r8e)])])),[[ee(Mo),{title:n.tooltip,placement:"top"}]])}}),KQt=ht(UQt,[["__scopeId","data-v-ba95f865"]]),qQt=pt({__name:"SelectItemTextStyle",props:{isActive:{type:Boolean},label:{},themeFontStyle:{},themeFontColor:{}},emits:["click"],setup(t,{emit:e}){const n=t,r=e;return(o,i)=>(U(),ue("li",{class:Ve(["bootstrap-styles dropdown-item p-0 d-flex align-items-center px-3 cursor-pointer",{active:n.isActive}]),onClick:i[0]||(i[0]=s=>r("click"))},[N("i",{class:"bootstrap-styles input__color_selection d-block overflow-hidden me-2",style:Be([{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),N("span",{class:"bootstrap-styles d-block py-1 text-decoration-none overflow-hidden",style:Be([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"}])},er(n.label),5)],2))}}),JQt=ht(qQt,[["__scopeId","data-v-3a2ee8e2"]]),GQt={tooltip:"Text style",settingLabels:{title:"Title",heading:"Heading",subHeading:"Subheading",largeText:"Large text",normalText:"Text",descriptionText:"Description",link:"Link",button:"Button",custom:"Custom"}},YQt={tooltip:"Стиль текста",settingLabels:{title:"Большой заголовок",heading:"Заголовок",subHeading:"Подзаголовок",largeText:"Большой текст",normalText:"Текст",descriptionText:"Описание",link:"Ссылка",button:"Кнопка",custom:"Пользовательский"}},eSe=Ir({en:GQt,ru:YQt}),XQt={class:"bootstrap-styles dropdown"},QQt={class:"bootstrap-styles rich-text-toolbar__font-style-selector__text"},ZQt={class:"bootstrap-styles d-flex justify-content-center align-items-center rich-text-toolbar__icon"},eZt=pt({__name:"ThemeSettingsSelector",props:{editor:{},theme:{},isAllowToEdit:{type:Boolean},initialThemeName:{},deps:{}},setup(t){const e=t,n=R9.name,r=Xt({isOpened:!1}),o={tooltip:eSe({localeKey:e.deps.localeKey}).tooltip,settingLabels:eSe({localeKey:e.deps.localeKey}).settingLabels},i={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},s=["Title","Heading","SubHeading","LargeText","NormalText","DescriptionText","Link","Button"],a=["TitleColor","HeadingColor","SubHeadingColor","LargeTextColor","NormalTextColor","DescriptionTextColor","LinkColor","ButtonTextColor"],l=Q(()=>{const c=e.initialThemeName,d=e.editor.getAttributes("paragraph").themeName||c;let h=s.find(v=>e.editor.getAttributes(n).themeName===v)||d;const{fontWeight:f,fontStyle:p,textDecoration:m,fontSize:g,fontFamily:C,lineHeight:b}=e.editor.getAttributes(n);return f||p||m||g||C||b?i.Custom:i[h]}),u=c=>{e.editor.commands.unsetMark(n),e.editor.chain().focus().setThemeSettings(c).run(),r.isOpened=!1};return(c,d)=>_n((U(),ue("div",XQt,[N("button",{id:"dropdownMenuButtonFontStyleList",class:Ve(["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:r.isOpened}]),type:"button",onClick:d[0]||(d[0]=()=>r.isOpened=!r.isOpened)},[N("span",QQt,er(l.value),1),N("i",ZQt,[Ce(t8e)])],2),N("ul",{class:Ve([{show:r.isOpened},"bootstrap-styles rich-text-toolbar__font-style-dropdown dropdown-menu rounded-2"]),"aria-labelledby":"dropdownMenuButtonFontStyleList"},[(U(),ue(xt,null,Kr(s,(h,f)=>Ce(JQt,{key:h,isActive:e.editor.getAttributes(ee(n)).themeName===h,label:i[h],themeFontStyle:e.theme.FontSettingsPresets[h],themeFontColor:e.theme.Colors[a[f]],onClick:()=>u(h)},null,8,["isActive","label","themeFontStyle","themeFontColor","onClick"])),64))],2)])),[[ee(rm),()=>r.isOpened=!1],[ee(Mo),{title:o.tooltip,placement:"top"}]])}}),tZt=ht(eZt,[["__scopeId","data-v-37cbbac2"]]),nZt={},rZt={xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"};function oZt(t,e){return U(),ue("svg",rZt,[...e[0]||(e[0]=[N("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 iZt=ht(nZt,[["render",oZt]]),sZt={tooltip:"Line height"},aZt={tooltip:"Высота строки"},lZt=Ir({en:sZt,ru:aZt}),uZt=t=>{const{FontFamily:e,FontSettingsPresets:n,Colors:r}=t.theme,o=!!t.editor.getAttributes("textStyle").lineHeight,i=t.editor.getAttributes("paragraph").themeName||"NormalText",s=t.editor.getAttributes("textStyle").themeName||i;return o?parseInt(t.editor.getAttributes("textStyle").lineHeight,10):il({fontFamily:e,themeFontSettings:n[s],themeColor:j9({themeName:s,themeFontColors:r})}).lineHeight},cZt={class:"bootstrap-styles rich-text-toolbar__line-height-editor position-relative rounded-2 py-1 px-3 d-flex"},dZt={class:"bootstrap-styles d-flex justify-content-center rich-text-icon me-14"},hZt=["value"],fZt={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"}},pZt={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"}},mZt=pt({__name:"LineHeightEditor",props:{editor:{},theme:{},deps:{}},setup(t){const e=t,n={tooltip:lZt({localeKey:e.deps.localeKey}).tooltip},r=Q(()=>uZt({editor:e.editor,theme:e.theme})),o=()=>{r.value&&e.editor.commands.setLineHeight(r.value+1)},i=()=>{r.value&&r.value!==1&&e.editor.commands.setLineHeight(r.value-1)},s=a=>{const l=a.target;let u=parseInt(l.value);const c=100;isNaN(u)||l.value===""?(u=0,l.value="0"):u>c&&(u=c,l.value=String(c)),e.editor.commands.setLineHeight(u)};return(a,l)=>_n((U(),ue("div",cZt,[N("i",dZt,[Ce(iZt)]),N("input",{type:"number",class:"bootstrap-styles rich-text-toolbar__input-number rich-text__handler",value:r.value,onInput:s},null,40,hZt),N("div",fZt,[N("input",{type:"button",class:"bootstrap-styles position-absolute rich-text__handler",onClick:o}),Ce(n8e)]),N("div",pZt,[N("input",{type:"button",class:"bootstrap-styles position-absolute rich-text__handler",onClick:i}),Ce(r8e)])])),[[ee(Mo),{title:n.tooltip,placement:"top"}]])}}),gZt=ht(mZt,[["__scopeId","data-v-4e76ed1b"]]),yZt=/^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,CZt=/^mailto:\S+$/i,bZt=/^tel:\+?[\d().-]+$/i,vZt=t=>/\s/.test(t)?!1:t.toLowerCase().startsWith("http://")||t.toLowerCase().startsWith("https://")?yZt.test(t):t.toLowerCase().startsWith("mailto:")?CZt.test(t):t.toLowerCase().startsWith("tel:")?bZt.test(t)&&/\d/.test(t.slice(4)):!1,wZt={mounted(t,e){t.addEventListener("input",()=>{const n=vZt(t.value);typeof e.value=="function"&&e.value(n)})}},o8e={mounted(t,e){tSe(t,e)},updated(t,e){e.value&&tSe(t,e)}},tSe=(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)}})},xZt={},kZt={xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 14 14",fill:"none"};function TZt(t,e){return U(),ue("svg",kZt,[...e[0]||(e[0]=[N("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 i8e=ht(xZt,[["render",TZt]]),SZt={label:"Link",inputPlaceholder:"https://example.com",errorNotification:"The link must contain https://, http://, mailto:, tel:",applyButton:"Save",cancelButton:"Cancel"},FZt={label:"Ссылка",inputPlaceholder:"https://example.com",errorNotification:"Ссылка должна содержать https://, http://, mailto:, tel:",applyButton:"Сохранить",cancelButton:"Отмена"},EZt=Ir({en:SZt,ru:FZt}),AZt={},_Zt={width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function RZt(t,e){return U(),ue("svg",_Zt,[...e[0]||(e[0]=[N("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 s8e=ht(AZt,[["render",RZt]]),DZt={class:"bootstrap-styles bg-white border rounded-2 add-text-link-modal-window"},NZt={class:"bootstrap-styles fw-bold mb-5 px-11 mt-10 d-block text-start"},LZt={class:"bootstrap-styles px-11 mb-2"},MZt={class:"bootstrap-styles d-flex justify-content-center align-items-center me-1"},OZt=["placeholder"],BZt={class:"bootstrap-styles px-11 py-5 d-flex align-items-center justify-content-end border-top"},IZt=pt({__name:"AddLinkModalWindow",props:{isActive:{type:Boolean},currentHref:{},deps:{}},emits:["onClosed","onHrefChanged","onRemoved"],setup(t,{emit:e}){const n=t,r=Xt({href:n.currentHref,isValid:!0}),o=EZt({localeKey:n.deps.localeKey}),i=e;return(s,a)=>_n((U(),ue("div",DZt,[N("label",NZt,er(ee(o).label),1),N("div",LZt,[N("div",{class:Ve(["bootstrap-styles bg-color-input border rounded-2 py-1 px-3 d-flex mb-14",{"not-valid-url":!r.isValid}])},[N("i",MZt,[Ce(i8e)]),_n(N("input",{type:"text",class:"bootstrap-styles w-100",placeholder:ee(o).inputPlaceholder,"onUpdate:modelValue":a[0]||(a[0]=l=>r.href=l)},null,8,OZt),[[ee(wZt),l=>r.isValid=l],[ee(o8e),void 0,void 0,{selectAll:!0}],[tgt,r.href]])],2),N("div",{class:Ve(["bootstrap-styles text-start add-link-notification",{invisible:r.isValid}])},er(ee(o).errorNotification),3)]),N("div",BZt,[n.isActive?(U(),ue("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]=Po(()=>i("onRemoved"),["stop"]))},[N("i",null,[Ce(s8e)])])):it("",!0),N("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"))},er(ee(o).cancelButton),1),N("button",{class:Ve(["bootstrap-styles d-flex justify-content-center align-center py-1 px-3 border rounded-2",{"button__active-700":r.isValid&&r.href.length>0,"button__locked button__disabled-700":!r.isValid||r.href.length===0}]),onClick:a[3]||(a[3]=()=>i("onHrefChanged",r.href))},er(ee(o).applyButton),3)])])),[[ee(rm),()=>i("onClosed")]])}}),$Zt=ht(IZt,[["__scopeId","data-v-b4170a33"]]),PZt={};function VZt(t,e){return U(),ue(xt,null,[e[0]||(e[0]=N("svg",{class:"unlinked",xmlns:"http://www.w3.org/2000/svg",width:"17",height:"16",viewBox:"0 0 17 16",fill:"none"},[N("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]=N("svg",{class:"linked",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},[N("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 zZt=ht(PZt,[["render",VZt],["__scopeId","data-v-730bc16f"]]),HZt={tooltip:"Link"},WZt={tooltip:"Ссылка"},jZt=Ir({en:HZt,ru:WZt}),UZt={class:"bootstrap-styles d-flex rich-text-icon icon-hover"},KZt=pt({__name:"LinkEditor",props:{editor:{},isAllowToEdit:{type:Boolean},deps:{}},setup(t){const e=t,n={tooltip:jZt({localeKey:e.deps.localeKey}).tooltip},r=$ce.name,o=bde.name,i=Xt({isAddTextLinkModalWindowShown:!1}),s=Q(()=>e.editor.isActive(o)),a=u=>{s.value&&e.editor.commands.unsetUnsubscribeLink(),e.editor.chain().focus().setLink({href:u}).setThemeSettings("Link").run(),i.isAddTextLinkModalWindowShown=!1},l=()=>{e.editor.chain().focus().unsetLink().applySiblingNodeThemeSettings().run(),i.isAddTextLinkModalWindowShown=!1};return(u,c)=>(U(),ue(xt,null,[_n((U(),ue("button",{class:Ve(["bootstrap-styles p-1 rounded rich-text-button",{active:e.editor.isActive(ee(r)),disabled:!e.editor.isActive(ee(r))&&!e.isAllowToEdit}]),onClick:c[0]||(c[0]=d=>{i.isAddTextLinkModalWindowShown=!i.isAddTextLinkModalWindowShown})},[N("i",UZt,[e.editor.isActive(ee(r))?(U(),kt(zZt,{key:1})):(U(),kt(i8e,{key:0}))])],2)),[[ee(Mo),{title:n.tooltip,placement:"top"}]]),i.isAddTextLinkModalWindowShown?(U(),kt($Zt,{key:0,isActive:e.editor.isActive(ee(r)),currentHref:e.editor.isActive(ee(r))?e.editor.getAttributes(ee(r)).href:"",deps:e.deps.addLinkModalWindowDeps,onOnRemoved:c[1]||(c[1]=()=>l()),onOnClosed:c[2]||(c[2]=d=>i.isAddTextLinkModalWindowShown=!1),onOnHrefChanged:c[3]||(c[3]=d=>a(d))},null,8,["isActive","currentHref","deps"])):it("",!0)],64))}}),qZt=ht(KZt,[["__scopeId","data-v-6460a995"]]),JZt={label:"URL",placeholder:"URL...",cancel:"Cancel",apply:"Save",removeTooltip:"Delete image"},GZt={label:"URL",placeholder:"URL...",cancel:"Отмена",apply:"Сохранить",removeTooltip:"Удалить изображение"},nA=Ir({en:JZt,ru:GZt}),YZt={class:"bootstrap-styles bg-white border rounded-2 add-image-src-modal-window"},XZt={class:"bootstrap-styles fw-bold mb-5 px-11 mt-10 d-block text-start"},QZt={class:"bootstrap-styles px-11 mb-11"},ZZt=["placeholder","value"],een={class:"bootstrap-styles px-11 py-5 d-flex align-items-center justify-content-end border-top"},ten=["disabled"],nen=pt({__name:"AddImageSrcModalWindow",props:{isActive:{type:Boolean},src:{},width:{},height:{},isRetina:{type:Boolean},deps:{}},emits:["onClosed","onRemoved","onImageSrcChanged"],setup(t,{emit:e}){const n=t,r=Xt({src:n.src,width:n.width,height:n.height,isBroken:!1}),o={label:nA({localeKey:n.deps.localeKey}).label,placeholder:nA({localeKey:n.deps.localeKey}).placeholder,cancel:nA({localeKey:n.deps.localeKey}).cancel,apply:nA({localeKey:n.deps.localeKey}).apply,removeTooltip:nA({localeKey:n.deps.localeKey}).removeTooltip},i=l6e(l=>{XKe(l).then(u=>{r.width=u.width,r.height=u.height,r.isBroken=!1,r.src=l}).catch(()=>{r.src=l,r.isBroken=!0})},500),s=()=>{a("onImageSrcChanged",{src:r.src,width:r.width,height:r.height,isRetina:!1})},a=e;return(l,u)=>_n((U(),ue("div",YZt,[N("label",XZt,er(o.label),1),N("div",QZt,[N("div",{class:Ve(["bootstrap-styles bg-color-input border rounded-2 py-1 px-3 d-flex",{"border-danger":r.isBroken}])},[_n(N("input",{type:"text",class:"bootstrap-styles w-100",placeholder:o.placeholder,value:r.src,onInput:u[0]||(u[0]=c=>ee(i)(c.target.value))},null,40,ZZt),[[ee(o8e),void 0,void 0,{selectAll:!0}]])],2)]),N("div",een,[n.isActive?_n((U(),ue("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:u[1]||(u[1]=Po(()=>a("onRemoved"),["stop"]))},[N("i",null,[Ce(s8e)])])),[[ee(Mo),{placement:"top",title:o.removeTooltip}]]):it("",!0),N("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:u[2]||(u[2]=Po(()=>a("onClosed"),["stop"]))},er(o.cancel),1),N("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:!r.src.length||r.isBroken,onClick:u[3]||(u[3]=Po(()=>s(),["stop"]))},er(o.apply),9,ten)])])),[[ee(rm),()=>a("onClosed")]])}}),ren=ht(nen,[["__scopeId","data-v-35966ae0"]]),oen={},ien={width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function sen(t,e){return U(),ue("svg",ien,[...e[0]||(e[0]=[N("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 aen=ht(oen,[["render",sen]]),len={tooltip:"Image",retinaLabel:"For retina screens"},uen={tooltip:"Изображение",retinaLabel:"Для retina-экранов"},nSe=Ir({en:len,ru:uen}),cen={class:"bootstrap-styles rich-text-icon icon-hover d-flex"},den=["checked"],hen={for:"rich-text__retina-checkbox",class:"bootstrap-styles label__checkbox-input text-nowrap"},fen=pt({__name:"ImageEditor",props:{editor:{},deps:{}},setup(t){const e=t,n={tooltip:nSe({localeKey:e.deps.localeKey}).tooltip,retinaLabel:nSe({localeKey:e.deps.localeKey}).retinaLabel},r=QKe.name,o=Xt({isAddImageSrcModalWindowShown:!1}),i=async()=>{const l=e.editor.view.state.selection.anchor,{src:u,width:c,height:d,isRetina:h}=e.editor.getAttributes(r);e.editor.chain().focus().updateAttributes("image",{src:u,width:c,height:d,isRetina:!h}).setNodeSelection(l).run()},s=l=>{const u=e.editor.view.state.selection.anchor;e.editor.isActive(r)?e.editor.chain().focus().updateAttributes("image",{src:l.src,width:l.width,height:l.height,alt:"img",isRetina:!1}).setNodeSelection(u).run():e.editor.chain().focus().setImage({src:l.src,width:l.width,height:l.height,alt:"img",isRetina:!1}).setNodeSelection(u).run(),o.isAddImageSrcModalWindowShown=!1},a=()=>{e.editor.commands.deleteSelection(),o.isAddImageSrcModalWindowShown=!1};return(l,u)=>(U(),ue(xt,null,[_n((U(),ue("button",{class:Ve(["bootstrap-styles p-1 rounded rich-text-button__image",{active:e.editor.isActive(ee(r))}]),onClick:u[0]||(u[0]=c=>o.isAddImageSrcModalWindowShown=!o.isAddImageSrcModalWindowShown)},[N("i",cen,[Ce(aen)])],2)),[[ee(Mo),{title:n.tooltip,placement:"top"}]]),e.editor.isActive(ee(r))?(U(),ue("div",{key:0,class:"bootstrap-styles d-flex align-items-center ms-14 me-1",onClick:u[1]||(u[1]=c=>i()),onMousedown:u[2]||(u[2]=Po(()=>{},["prevent"]))},[N("input",{id:"rich-text__retina-checkbox",class:"bootstrap-styles me-1 cursor-pointer",checked:e.editor.isActive(ee(r),{isRetina:!0}),type:"checkbox","aria-label":"Checkbox for retina image"},null,8,den),N("label",hen,er(n.retinaLabel),1)],32)):it("",!0),o.isAddImageSrcModalWindowShown?(U(),kt(ren,{key:1,isActive:e.editor.isActive(ee(r)),src:e.editor.getAttributes(ee(r)).src?e.editor.getAttributes(ee(r)).src:"",width:e.editor.getAttributes(ee(r)).width?e.editor.getAttributes(ee(r)).width:0,height:e.editor.getAttributes(ee(r)).height?e.editor.getAttributes(ee(r)).height:0,isRetina:e.editor.getAttributes(ee(r)).isRetina?e.editor.getAttributes(ee(r)).isRetina:!1,deps:e.deps.addImageSrcModalWindowDeps,onOnRemoved:u[3]||(u[3]=()=>a()),onOnClosed:u[4]||(u[4]=c=>o.isAddImageSrcModalWindowShown=!1),onOnImageSrcChanged:u[5]||(u[5]=c=>s({src:c.src,width:c.width,height:c.height}))},null,8,["isActive","src","width","height","isRetina","deps"])):it("",!0)],64))}}),pen=ht(fen,[["__scopeId","data-v-d72ccf51"]]),men={},gen={xmlns:"http://www.w3.org/2000/svg",width:"17",height:"16",viewBox:"0 0 17 16",fill:"none"};function yen(t,e){return U(),ue("svg",gen,[...e[0]||(e[0]=[N("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 Cen=ht(men,[["render",yen]]),ben={tooltip:"Bold"},ven={tooltip:"Полужирный"},wen=Ir({en:ben,ru:ven}),xen={class:"bootstrap-styles d-flex rich-text-icon icon-hover"},ken=pt({__name:"FontWeightEditor",props:{editor:{},theme:{},isAllowToEdit:{type:Boolean},deps:{}},setup(t){const e=t,n={tooltip:wen({localeKey:e.deps.localeKey}).tooltip},r=Q(()=>$O({editor:e.editor,theme:e.theme,styleName:"fontWeight"})==="bold"),o=()=>{r.value?e.editor.chain().focus().unsetFontWeight().run():e.editor.chain().focus().setFontWeight("bold").run(),e.editor.commands.focus()};return(i,s)=>_n((U(),ue("button",{class:Ve(["bootstrap-styles p-1 rounded rich-text-button",{active:r.value,disabled:!e.isAllowToEdit&&!r.value}]),onClick:s[0]||(s[0]=()=>o())},[N("i",xen,[Ce(Cen)])],2)),[[ee(Mo),{title:n.tooltip,placement:"top"}]])}}),Ten=ht(ken,[["__scopeId","data-v-0e22dbf6"]]),Sen={},Fen={xmlns:"http://www.w3.org/2000/svg",width:"17",height:"16",viewBox:"0 0 17 16",fill:"none"};function Een(t,e){return U(),ue("svg",Fen,[...e[0]||(e[0]=[N("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 Aen=ht(Sen,[["render",Een]]),_en={tooltip:"Strikethrough"},Ren={tooltip:"Зачеркнутый"},Den=Ir({en:_en,ru:Ren}),Nen={class:"bootstrap-styles d-flex rich-text-icon icon-hover"},Len=pt({__name:"LineThroughEditor",props:{editor:{},isAllowToEdit:{type:Boolean},theme:{},deps:{}},setup(t){const e=t,n={tooltip:Den({localeKey:e.deps.localeKey}).tooltip},r=Q(()=>$O({editor:e.editor,theme:e.theme,styleName:"textDecoration"})==="line-through"),o=()=>{r.value?e.editor.chain().focus().unsetTextDecoration().run():e.editor.chain().focus().setTextDecoration("line-through").run(),e.editor.commands.focus()};return(i,s)=>_n((U(),ue("button",{class:Ve(["bootstrap-styles p-1 rounded rich-text-button",{active:r.value,disabled:!t.isAllowToEdit&&!r.value}]),onClick:s[0]||(s[0]=a=>o())},[N("i",Nen,[Ce(Aen)])],2)),[[ee(Mo),{title:n.tooltip,placement:"top"}]])}}),Men=ht(Len,[["__scopeId","data-v-fffc32ef"]]),Oen={},Ben={xmlns:"http://www.w3.org/2000/svg",width:"17",height:"16",viewBox:"0 0 17 16",fill:"none"};function Ien(t,e){return U(),ue("svg",Ben,[...e[0]||(e[0]=[N("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 $en=ht(Oen,[["render",Ien]]),Pen={tooltip:"Underline"},Ven={tooltip:"Подчеркнутый"},zen=Ir({en:Pen,ru:Ven}),Hen={class:"bootstrap-styles d-flex rich-text-icon icon-hover"},Wen=pt({__name:"UnderlineEditor",props:{editor:{},isAllowToEdit:{type:Boolean},theme:{},deps:{}},setup(t){const e=t,n={tooltip:zen({localeKey:e.deps.localeKey}).tooltip},r=Q(()=>$O({editor:e.editor,theme:e.theme,styleName:"textDecoration"})==="underline"),o=()=>{r.value?e.editor.chain().focus().unsetTextDecoration().run():e.editor.chain().focus().setTextDecoration("underline").run()};return(i,s)=>_n((U(),ue("button",{class:Ve(["bootstrap-styles p-1 rounded rich-text-button",{active:r.value,disabled:!t.isAllowToEdit&&!r.value}]),onClick:s[0]||(s[0]=()=>o())},[N("i",Hen,[Ce($en)])],2)),[[ee(Mo),{title:n.tooltip,placement:"top"}]])}}),jen=ht(Wen,[["__scopeId","data-v-ae63be68"]]),Uen={},Ken={xmlns:"http://www.w3.org/2000/svg",width:"17",height:"16",viewBox:"0 0 17 16",fill:"none"};function qen(t,e){return U(),ue("svg",Ken,[...e[0]||(e[0]=[N("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 Jen=ht(Uen,[["render",qen]]),Gen={tooltip:"Italic"},Yen={tooltip:"Курсив"},Xen=Ir({en:Gen,ru:Yen}),Qen={class:"bootstrap-styles d-flex rich-text-icon icon-hover"},Zen=pt({__name:"FontStyleEditor",props:{editor:{},isAllowToEdit:{type:Boolean},theme:{},deps:{}},setup(t){const e=t,n={tooltip:Xen({localeKey:e.deps.localeKey}).tooltip},r=Q(()=>$O({editor:e.editor,theme:e.theme,styleName:"fontStyle"})==="italic"),o=()=>{r.value?e.editor.chain().focus().unsetFontStyle().run():e.editor.chain().focus().setFontStyle("italic").run(),e.editor.commands.focus()};return(i,s)=>_n((U(),ue("button",{class:Ve(["bootstrap-styles p-1 rounded rich-text-button",{active:r.value,disabled:!t.isAllowToEdit&&!r.value}]),onClick:s[0]||(s[0]=()=>o())},[N("i",Qen,[Ce(Jen)])],2)),[[ee(Mo),{title:n.tooltip,placement:"top"}]])}}),etn=ht(Zen,[["__scopeId","data-v-ac6b2276"]]),ttn={},ntn={width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function rtn(t,e){return U(),ue("svg",ntn,[...e[0]||(e[0]=[N("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 otn=ht(ttn,[["render",rtn]]),itn={tooltip:"Uppercase"},stn={tooltip:"Заглавные"},atn=Ir({en:itn,ru:stn}),ltn={class:"bootstrap-styles d-flex rich-text-icon icon-hover"},utn=pt({__name:"TextTransformEditor",props:{editor:{},isAllowToEdit:{type:Boolean},theme:{},deps:{}},setup(t){const e=t,n={tooltip:atn({localeKey:e.deps.localeKey}).tooltip},r=KKe.name,o=Q(()=>e.editor.isActive({[r]:"uppercase"})),i=()=>{o.value?e.editor.commands.unsetTextTransform():e.editor.commands.setTextTransform("uppercase"),e.editor.commands.focus()};return(s,a)=>_n((U(),ue("button",{class:Ve(["bootstrap-styles p-1 rounded rich-text-button",{active:e.editor.isActive({[ee(r)]:"uppercase"}),disabled:!t.isAllowToEdit&&!e.editor.isActive({[ee(r)]:"uppercase"})}]),onClick:a[0]||(a[0]=l=>i())},[N("i",ltn,[Ce(otn)])],2)),[[ee(Mo),{title:n.tooltip,placement:"top"}]])}}),ctn=ht(utn,[["__scopeId","data-v-20dea8b8"]]),dtn={},htn={width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function ftn(t,e){return U(),ue("svg",htn,[...e[0]||(e[0]=[N("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),N("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 ptn=ht(dtn,[["render",ftn]]),mtn={tooltip:"Unsubscribe link"},gtn={tooltip:"Ссылка на отписку"},ytn=Ir({en:mtn,ru:gtn}),Ctn={class:"bootstrap-styles d-flex rich-text-icon icon-hover"},btn=pt({__name:"UnsubscribeLinkEditor",props:{editor:{},isAllowToEdit:{type:Boolean},theme:{},deps:{}},setup(t){const e=t,n={tooltip:ytn({localeKey:e.deps.localeKey}).tooltip},r=bde.name,o=$ce.name,i=Q(()=>e.editor.isActive(o)),s=()=>{i.value&&e.editor.commands.unsetLink(),e.editor.isActive(r)?e.editor.chain().unsetUnsubscribeLink().applySiblingNodeThemeSettings().run():e.editor.chain().setUnsubscribeLink().setThemeSettings("Link").run()};return(a,l)=>_n((U(),ue("button",{class:Ve(["bootstrap-styles p-1 rounded rich-text-button",{active:e.editor.isActive(ee(r)),disabled:!e.editor.isActive(ee(r))&&!e.isAllowToEdit}]),onClick:l[0]||(l[0]=()=>s())},[N("i",Ctn,[Ce(ptn)])],2)),[[ee(Mo),{title:n.tooltip,placement:"top"}]])}}),vtn=ht(btn,[["__scopeId","data-v-9ee287d3"]]),wtn={},xtn={xmlns:"http://www.w3.org/2000/svg",width:"17",height:"16",viewBox:"0 0 17 16",fill:"none"};function ktn(t,e){return U(),ue("svg",xtn,[...e[0]||(e[0]=[N("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 Ttn=ht(wtn,[["render",ktn]]),Stn={tooltip:"Bullet list"},Ftn={tooltip:"Маркированный список"},Etn=Ir({en:Stn,ru:Ftn}),Atn={class:"bootstrap-styles d-flex rich-text-icon icon-hover"},_tn=pt({__name:"BulletListEditor",props:{editor:{},deps:{}},setup(t){const e=t,n={tooltip:Etn({localeKey:e.deps.localeKey}).tooltip},r=Pce.name,o=()=>{e.editor.chain().focus().toggleBulletList().run()};return(i,s)=>_n((U(),ue("button",{class:Ve(["bootstrap-styles p-1 rounded rich-text-button",{active:e.editor.isActive(ee(r))}]),onClick:s[0]||(s[0]=()=>o())},[N("i",Atn,[Ce(Ttn)])],2)),[[ee(Mo),{title:n.tooltip,placement:"top"}]])}}),Rtn=ht(_tn,[["__scopeId","data-v-c64632e3"]]),Dtn={},Ntn={xmlns:"http://www.w3.org/2000/svg",width:"17",height:"16",viewBox:"0 0 17 16",fill:"none"};function Ltn(t,e){return U(),ue("svg",Ntn,[...e[0]||(e[0]=[N("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 Mtn=ht(Dtn,[["render",Ltn]]),Otn={tooltip:"Ordered list"},Btn={tooltip:"Нумерованный список"},Itn=Ir({en:Otn,ru:Btn}),$tn={class:"bootstrap-styles d-flex rich-text-icon icon-hover"},Ptn=pt({__name:"OrderedListEditor",props:{editor:{},deps:{}},setup(t){const e=t,n={tooltip:Itn({localeKey:e.deps.localeKey}).tooltip},r=zce.name,o=()=>{e.editor.chain().focus().toggleOrderedList().run()};return(i,s)=>_n((U(),ue("button",{class:Ve(["bootstrap-styles p-1 rounded rich-text-button",{active:e.editor.isActive(ee(r))}]),onClick:s[0]||(s[0]=()=>o())},[N("i",$tn,[Ce(Mtn)])],2)),[[ee(Mo),{title:n.tooltip,placement:"top"}]])}}),Vtn=ht(Ptn,[["__scopeId","data-v-aaa43948"]]),ztn={},Htn={width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Wtn(t,e){return U(),ue("svg",Htn,[...e[0]||(e[0]=[N("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 rSe=ht(ztn,[["render",Wtn]]),jtn={},Utn={width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Ktn(t,e){return U(),ue("svg",Utn,[...e[0]||(e[0]=[N("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),N("path",{d:"M14 2.6665H2V3.99984H14V2.6665Z",fill:"var(--black)"},null,-1)])])}const oSe=ht(jtn,[["render",Ktn]]),qtn={},Jtn={width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Gtn(t,e){return U(),ue("svg",Jtn,[...e[0]||(e[0]=[N("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 iSe=ht(qtn,[["render",Gtn]]),Ytn={},Xtn={width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Qtn(t,e){return U(),ue("svg",Xtn,[...e[0]||(e[0]=[N("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 sSe=ht(Ytn,[["render",Qtn]]),Ztn={tooltip:"Vertical image alignment"},enn={tooltip:"Выравнивание картинок по вертикали"},tnn=Ir({en:Ztn,ru:enn}),nnn={class:"bootstrap-styles vertical-align-editor dropdown rounded"},rnn={class:"bootstrap-styles rich-text-icon icon-hover d-flex justify-content-center align-items-center"},onn={class:"bootstrap-styles rich-text-icon icon-hover d-flex justify-content-center align-items-center"},inn={class:"bootstrap-styles rich-text-icon icon-hover d-flex justify-content-center align-items-center"},snn={class:"bootstrap-styles rich-text-icon icon-hover d-flex justify-content-center align-items-center"},ann={class:"bootstrap-styles rich-text-icon icon-hover d-flex justify-content-center align-items-center"},lnn=pt({__name:"VerticalAlignEditor",props:{editor:{},currentVerticalAlign:{},deps:{}},emits:["onVerticalAlignVariantChanged"],setup(t,{emit:e}){const n=t,r={tooltip:tnn({localeKey:n.deps.localeKey}).tooltip},o=Xt({isOpened:!1}),i=a=>{s("onVerticalAlignVariantChanged",a),o.isOpened=!1},s=e;return(a,l)=>_n((U(),ue("div",nnn,[N("button",{id:"richTextDropdownVerticalAlign",class:Ve(["bootstrap-styles p-1 rounded rich-text-button",{show:o.isOpened}]),type:"button",onClick:l[0]||(l[0]=u=>o.isOpened=!o.isOpened)},[N("i",rnn,[n.currentVerticalAlign==="Baseline"?(U(),kt(sSe,{key:0})):it("",!0),n.currentVerticalAlign==="Top"?(U(),kt(rSe,{key:1})):it("",!0),n.currentVerticalAlign==="Middle"?(U(),kt(oSe,{key:2})):it("",!0),n.currentVerticalAlign==="Bottom"?(U(),kt(iSe,{key:3})):it("",!0)])],2),N("div",{class:Ve([{show:o.isOpened},"bootstrap-styles vertical-align-dropdown bg-white p-1"]),"aria-labelledby":"richTextDropdownVerticalAlign"},[N("button",{class:Ve(["bootstrap-styles p-1 rounded rich-text-button me-14",{active:n.currentVerticalAlign==="Baseline"}]),onClick:l[1]||(l[1]=()=>i("Baseline"))},[N("i",onn,[Ce(sSe)])],2),N("button",{class:Ve(["bootstrap-styles p-1 rounded rich-text-button me-14",{active:n.currentVerticalAlign==="Top"}]),onClick:l[2]||(l[2]=()=>i("Top"))},[N("i",inn,[Ce(rSe)])],2),N("button",{class:Ve(["bootstrap-styles p-1 rounded rich-text-button me-14",{active:n.currentVerticalAlign==="Middle"}]),onClick:l[3]||(l[3]=()=>i("Middle"))},[N("i",snn,[Ce(oSe)])],2),N("button",{class:Ve(["bootstrap-styles p-1 rounded rich-text-button",{active:n.currentVerticalAlign==="Bottom"}]),onClick:l[4]||(l[4]=()=>i("Bottom"))},[N("i",ann,[Ce(iSe)])],2)],2)])),[[ee(rm),()=>o.isOpened=!1],[ee(Mo),{title:r.tooltip,placement:"top"}]])}}),unn=ht(lnn,[["__scopeId","data-v-4a636ae8"]]),cnn={},dnn={xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"};function hnn(t,e){return U(),ue("svg",dnn,[...e[0]||(e[0]=[N("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 aSe=ht(cnn,[["render",hnn]]),fnn={},pnn={xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"};function mnn(t,e){return U(),ue("svg",pnn,[...e[0]||(e[0]=[N("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 lSe=ht(fnn,[["render",mnn]]),gnn={},ynn={xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"};function Cnn(t,e){return U(),ue("svg",ynn,[...e[0]||(e[0]=[N("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 uSe=ht(gnn,[["render",Cnn]]),bnn={tooltip:"Alignment"},vnn={tooltip:"Выравнивание"},wnn=Ir({en:bnn,ru:vnn}),xnn={class:"bootstrap-styles content-align-editor dropdown rounded"},knn={class:"bootstrap-styles rich-text-icon icon-hover d-flex justify-content-center align-items-center"},Tnn={class:"bootstrap-styles rich-text-icon icon-hover d-flex justify-content-center align-items-center"},Snn={class:"bootstrap-styles rich-text-icon icon-hover d-flex justify-content-center align-items-center"},Fnn={class:"bootstrap-styles rich-text-icon icon-hover d-flex justify-content-center align-items-center"},Enn=pt({__name:"ContentAlignEditor",props:{editor:{},deps:{},initialContentAlign:{}},setup(t){const e=t,n={tooltip:wnn({localeKey:e.deps.localeKey}).tooltip},r=Xt({isOpened:!1}),o=Q(()=>{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(),r.isOpened=!1};return(s,a)=>_n((U(),ue("div",xnn,[N("button",{id:"richTextDropdownContentAlign",class:Ve(["bootstrap-styles p-1 rounded rich-text-button",{show:r.isOpened}]),type:"button",onClick:a[0]||(a[0]=l=>r.isOpened=!r.isOpened)},[N("i",knn,[o.value==="Left"?(U(),kt(aSe,{key:0})):it("",!0),o.value==="Center"?(U(),kt(lSe,{key:1})):it("",!0),o.value==="Right"?(U(),kt(uSe,{key:2})):it("",!0)])],2),N("div",{class:Ve([{show:r.isOpened},"bootstrap-styles content-align-dropdown bg-white p-1"]),"aria-labelledby":"richTextDropdownContentAlign"},[N("button",{class:Ve(["bootstrap-styles p-1 rounded rich-text-button me-14",{active:o.value==="Left"}]),onClick:a[1]||(a[1]=()=>i("Left"))},[N("i",Tnn,[Ce(aSe)])],2),N("button",{class:Ve(["bootstrap-styles p-1 rounded rich-text-button me-14",{active:o.value==="Center"}]),onClick:a[2]||(a[2]=()=>i("Center"))},[N("i",Snn,[Ce(lSe)])],2),N("button",{class:Ve(["bootstrap-styles p-1 rounded rich-text-button",{active:o.value==="Right"}]),onClick:a[3]||(a[3]=()=>i("Right"))},[N("i",Fnn,[Ce(uSe)])],2)],2)])),[[ee(rm),()=>r.isOpened=!1],[ee(Mo),{title:n.tooltip,placement:"top"}]])}}),Ann=ht(Enn,[["__scopeId","data-v-e9d5324a"]]),_nn={class:"bootstrap-styles rich-text-toolbar d-flex align-items-center border gap-1 p-1"},Rnn={key:2,class:"bootstrap-styles position-relative h-100"},Dnn={key:3,class:"bootstrap-styles position-relative h-100"},Nnn={key:4,class:"bootstrap-styles d-flex justify-content-center align-items-center"},Lnn={key:7,class:"vl"},Mnn={key:13,class:"vl"},Onn={key:16,class:"vl"},Bnn=pt({__name:"RichTextToolbar",props:{editor:{},deps:{},element:{},theme:{},initialThemeName:{},initialContentAlign:{}},emits:["onVerticalAlignVariantChanged"],setup(t,{emit:e}){const n=t,r=n.deps.richTextToolbarPlugins,o=Q(()=>{const{from:a,to:l}=n.editor.state.selection;return a!==l}),i=Q(()=>n.editor.isActive("image")),s=e;return(a,l)=>(U(),ue("div",_nn,[i.value?it("",!0):(U(),kt(tZt,{key:0,editor:n.editor,theme:n.theme,isAllowToEdit:o.value,initialThemeName:n.initialThemeName,deps:n.deps.themeSettingsSelectorDeps},null,8,["editor","theme","isAllowToEdit","initialThemeName","deps"])),i.value?it("",!0):(U(),kt(SQt,{key:1,theme:n.theme,editor:n.editor,isAllowToEdit:o.value,deps:n.deps.fontFamilySelectorDeps},null,8,["theme","editor","isAllowToEdit","deps"])),i.value?it("",!0):(U(),ue("div",Rnn,[Ce(KQt,{editor:n.editor,theme:n.theme,deps:n.deps.fontSizeEditorDeps,class:Ve({disabled:!o.value})},null,8,["editor","theme","deps","class"])])),i.value?it("",!0):(U(),ue("div",Dnn,[Ce(gZt,{editor:n.editor,theme:n.theme,deps:n.deps.lineHeightEditorDeps,class:Ve({disabled:!o.value})},null,8,["editor","theme","deps","class"])])),i.value?it("",!0):(U(),ue("div",Nnn,[Ce(fQt,{editor:n.editor,theme:n.theme,isAllowToEdit:o.value,deps:n.deps.colorPickerDeps},null,8,["editor","theme","isAllowToEdit","deps"])])),i.value?(U(),kt(unn,{key:5,currentVerticalAlign:n.element.ImageVerticalAlign,editor:n.editor,deps:n.deps.verticalAlignEditorDeps,onOnVerticalAlignVariantChanged:l[0]||(l[0]=u=>s("onVerticalAlignVariantChanged",u))},null,8,["currentVerticalAlign","editor","deps"])):it("",!0),i.value?it("",!0):(U(),kt(Ann,{key:6,editor:n.editor,initialContentAlign:n.initialContentAlign,deps:n.deps.contentAlignEditorDeps,class:Ve({"bootstrap-styles me-14":i.value})},null,8,["editor","initialContentAlign","deps","class"])),i.value?it("",!0):(U(),ue("div",Lnn)),i.value?it("",!0):(U(),kt(Ten,{key:8,editor:n.editor,theme:n.theme,isAllowToEdit:o.value,deps:n.deps.fontWeightEditorDeps},null,8,["editor","theme","isAllowToEdit","deps"])),i.value?it("",!0):(U(),kt(etn,{key:9,editor:n.editor,theme:n.theme,isAllowToEdit:o.value,deps:n.deps.fontStyleEditorDeps},null,8,["editor","theme","isAllowToEdit","deps"])),i.value?it("",!0):(U(),kt(Men,{key:10,editor:n.editor,theme:n.theme,isAllowToEdit:o.value,deps:n.deps.lineThroughEditorDeps},null,8,["editor","theme","isAllowToEdit","deps"])),i.value?it("",!0):(U(),kt(jen,{key:11,editor:n.editor,theme:n.theme,isAllowToEdit:o.value,deps:n.deps.underlineEditorDeps},null,8,["editor","theme","isAllowToEdit","deps"])),i.value?it("",!0):(U(),kt(ctn,{key:12,editor:n.editor,theme:n.theme,isAllowToEdit:o.value,deps:n.deps.textTransformEditorDeps},null,8,["editor","theme","isAllowToEdit","deps"])),i.value?it("",!0):(U(),ue("div",Mnn)),i.value?it("",!0):(U(),kt(Rtn,{key:14,editor:n.editor,deps:n.deps.bulletListEditorDeps},null,8,["editor","deps"])),i.value?it("",!0):(U(),kt(Vtn,{key:15,editor:n.editor,deps:n.deps.orderedListEditorDeps},null,8,["editor","deps"])),i.value?it("",!0):(U(),ue("div",Onn)),Ce(qZt,{editor:n.editor,isAllowToEdit:o.value,deps:n.deps.linkEditorDeps},null,8,["editor","isAllowToEdit","deps"]),Ce(vtn,{editor:n.editor,theme:n.theme,isAllowToEdit:o.value,deps:n.deps.unsubscribeLinkEditorDeps},null,8,["editor","theme","isAllowToEdit","deps"]),Ce(pen,{editor:n.editor,deps:n.deps.imageEditorDeps},null,8,["editor","deps"]),(U(!0),ue(xt,null,Kr(ee(r),(u,c)=>(U(),ue("span",{key:c,class:"bootstrap-styles d-none"},[(U(),kt(kPe(u),{editor:n.editor},null,8,["editor"]))]))),128))]))}}),Inn=ht(Bnn,[["__scopeId","data-v-359375dd"]]),$nn=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 lu(t)}}}),Pnn=t=>$nn(t.verticalAlign).Match({whenBaseline:()=>"baseline",whenTop:()=>"top",whenMiddle:()=>"middle",whenBottom:()=>"bottom"}),cSe="NormalText",dSe="Left",Vnn=pt({__name:"RichText",props:{deps:{},theme:{},element:{},isSelected:{type:Boolean}},emits:["onRichTextUpdated","onRichTextRemoved","onElementClicked"],setup(t,{emit:e}){tm(b=>({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:m.value}));const n=t,r=Xt({isRemoveComponentWindowShown:!1,isEditing:!1}),o={removeWindowTitle:YTe({localeKey:n.deps.localeKey}).removeWindowTitle,removeWindowDescription:YTe({localeKey:n.deps.localeKey}).removeWindowDescription},i=Wn(null),s=Wn(null),{floatingStyles:a}=S6e(s,i,{placement:"top",whileElementsMounted:x6e,middleware:[k6e(10)]}),l=Q(()=>{const b=a.value.transform??"translate(0px, 0px)",v=new DOMMatrix(b).m42;return{...a.value,left:"50%",transform:`translate(-50%, ${v}px)`}}),u=RU(),c=n.element.ContentAlign||dSe,d=Q(()=>il({fontFamily:n.theme.FontFamily,themeFontSettings:n.theme.FontSettingsPresets.NormalText,themeColor:n.theme.Colors.NormalTextColor})),h=Q(()=>{const b={...gde(d.value)};return{fontSize:b.fontSize,lineHeight:b.lineHeight,fontFamily:b.fontFamily,fontWeight:b.fontWeight,fontStyle:b.fontStyle,color:b.color}}),f=u6t({content:XTe(n.element.Text),extensions:[...YXt({dataSourceFieldNameDelegate:n.deps.dataSourceFieldNameDelegate,initialThemeName:cSe,themeColors:n.theme.Colors,fallbackContentAlign:n.element.ContentAlign||dSe})],editable:r.isEditing,autofocus:"all",onUpdate:({editor:b})=>{if(!r.isEditing)return;const v=XXt({editor:b});C("onRichTextUpdated",{...n.element,Text:v})}}),p=()=>{f.value&&(f.value.chain().focus().undo().run(),r.isRemoveComponentWindowShown=!1)},m=Q(()=>Pnn({verticalAlign:n.element.ImageVerticalAlign})),g=()=>[document.querySelector(".rich-text-toolbar"),document.querySelector(".string-expression-builder-modal-window"),document.querySelector(`.rich-text-editor__content-${u}`)];En(()=>n.element.Text,()=>{f.value&&!r.isEditing&&f.value.commands.setContent(XTe(n.element.Text))});const C=e;return(b,v)=>_n((U(),ue("span",{ref_key:"richTextElementRef",ref:s,class:Ve(["RichText cursor-pointer user-select-none",{selected:n.isSelected}]),style:Be([{...h.value,minHeight:n.element.MinHeight+"px",display:"block"}]),onClick:v[3]||(v[3]=Po(()=>{C("onElementClicked"),r.isEditing=!0,ee(f)&&ee(f).setEditable(!0)},["prevent"]))},[Ce(ee(l6t),{class:Ve(["rich-text-editor__content",`rich-text-editor__content-${ee(u)}`]),editor:ee(f)},null,8,["class","editor"]),ee(f)&&r.isEditing?(U(),kt(Inn,{key:0,ref_key:"richTextToolbarRef",ref:i,editor:ee(f),deps:n.deps.richTextToolbarDeps,element:n.element,theme:n.theme,initialThemeName:cSe,initialContentAlign:ee(c),style:Be(l.value),onOnVerticalAlignVariantChanged:v[0]||(v[0]=w=>C("onRichTextUpdated",{...n.element,ImageVerticalAlign:w}))},null,8,["editor","deps","element","theme","initialContentAlign","style"])):it("",!0),(U(),kt(hPe,{to:"body",defer:""},[r.isRemoveComponentWindowShown?(U(),kt(cXt,{key:0,deps:n.deps.removeConfirmModalWindowDeps,headerText:o.removeWindowTitle,onCancel:v[1]||(v[1]=()=>p()),onConfirmed:v[2]||(v[2]=()=>{r.isRemoveComponentWindowShown=!1,C("onRichTextRemoved")})},{"body-content":ky(()=>[oO(er(o.removeWindowDescription),1)]),_:1},8,["deps","headerText"])):it("",!0)]))],6)),[[ee(rm),{handler:()=>{r.isEditing=!1,ee(f)&&ee(f).setEditable(!1)},include:g}]])}}),znn=ht(Vnn,[["__scopeId","data-v-0a9d26ba"]]),Hnn=pt({__name:"UnsubscribeLink",props:{theme:{},element:{}},emits:["onElementClicked"],setup(t,{emit:e}){const n=t,r=Q(()=>{const i=yde({fontFamily:n.theme.FontFamily,fontStyle:n.element.Style,themeDefinedFontSettings:n.theme.FontSettingsPresets,themeColors:n.theme.Colors});return{...gde(i)}}),o=e;return(i,s)=>(U(),ue("a",{href:"#",class:"cursor-pointer user-select-none",style:Be([{margin:"0"},[r.value,ee(PL)({contentAlign:n.element.ContentAlign})]]),onClick:s[0]||(s[0]=Po(()=>o("onElementClicked"),["prevent"]))},er(n.element.Text),5))}}),Wnn=ht(Hnn,[["__scopeId","data-v-68ed9754"]]),jnn=["src","alt"],Unn={class:"bootstrap-styles position-absolute top-0 left-0",width:"100%",style:{"border-spacing":"0","border-collapse":"collapse",width:"100%",height:"100%"}},Knn={key:0},qnn=["align"],Jnn={style:{width:"auto","border-spacing":"0","border-collapse":"separate"}},Gnn={align:"center",style:{width:"auto"}},Ynn={key:0},Xnn={key:1},Qnn=["align"],Znn={style:{width:"auto","border-spacing":"0","border-collapse":"separate"}},ern={align:"center",style:{width:"auto"}},trn={key:2},nrn=["align"],rrn={style:{width:"auto","border-spacing":"0","border-collapse":"separate"}},orn={align:"center",style:{width:"auto"}},irn={key:3},srn=["align"],arn={style:{width:"auto","border-spacing":"0","border-collapse":"separate"}},lrn={align:"center",style:{width:"auto"}},urn=pt({__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,r=Xt({src:"",href:"",isLoaded:!1}),o=async s=>n.deps.stringExpressionEvaluator({stringExpression:s,context:n.context});(async()=>(r.src=await o(n.element.Src),r.href=await o(n.element.HRef),r.isLoaded=!0))();const i=e;return(s,a)=>r.isLoaded?(U(),ue("table",{key:0,class:"bootstrap-styles position-relative",style:Be([{"border-spacing":"0","border-collapse":"separate"},{width:"100%"}]),onClick:a[20]||(a[20]=Po(()=>i("onElementWrapperClicked"),["prevent"]))},[N("tbody",null,[N("tr",null,[N("td",{align:"center",style:Be([{height:n.element.AdjustedHeight+"px",verticalAlign:"top"}])},[_n(N("img",{src:r.src,alt:r.src,style:{"max-width":"100%"}},null,8,jnn),[[ee(IL),({width:l,height:u})=>{i("onImageSizeAdjusted",{Path:n.path,AdjustedHeight:u,AdjustedWidth:l}),r.isLoaded=!0}]]),N("table",Unn,[N("tbody",null,[n.element.TopElementList.List.length>0&&n.element.TopElementList.Direction==="Vertical"?(U(),ue("tr",Knn,[N("td",{valign:"top",align:ee(Zf)({containerAlign:n.element.TopElementList.ContentAlign})},[N("table",Jnn,[N("tbody",null,[N("tr",null,[N("td",{style:Be({height:n.element.ElementsSpacerSize+"px",fontSize:n.element.ElementsSpacerSize+"px",lineHeight:n.element.ElementsSpacerSize+"px"})},"   ",4)]),(U(!0),ue(xt,null,Kr(n.element.TopElementList.List,(l,u)=>(U(),ue(xt,{key:u},[N("tr",null,[n.element.TopElementList.ContentAlign==="Left"?(U(),ue("td",{key:0,style:Be({width:n.element.ElementsSpacerSize+"px",fontSize:n.element.ElementsSpacerSize+"px",lineHeight:n.element.ElementsSpacerSize+"px"})},"   ",4)):it("",!0),N("td",Gnn,[Ce(Pu,{deps:n.deps,theme:n.theme,element:l,path:[...n.path,"TopElementList","List",u],selectedElementPath:n.selectedElementPath,context:n.context,onOnImageSizeAdjusted:a[0]||(a[0]=c=>i("onImageSizeAdjusted",c)),onOnImageOriginalSizeAdjusted:a[1]||(a[1]=c=>i("onImageOriginalSizeAdjusted",c)),onOnElementClicked:a[2]||(a[2]=c=>i("onElementClicked",c)),onOnElementUpdatedEvent:a[3]||(a[3]=c=>i("onElementUpdatedEvent",c)),onOnElementRemoved:a[4]||(a[4]=c=>i("onElementRemoved",c))},null,8,["deps","theme","element","path","selectedElementPath","context"])]),n.element.TopElementList.ContentAlign==="Right"?(U(),ue("td",{key:1,style:Be({width:n.element.ElementsSpacerSize+"px",fontSize:n.element.ElementsSpacerSize+"px",lineHeight:n.element.ElementsSpacerSize+"px"})},"   ",4)):it("",!0)]),n.element.TopElementList.List.length-1!==u?(U(),ue("tr",Ynn,[N("td",{style:Be({height:n.element.ElementsSpacerSize+"px",fontSize:n.element.ElementsSpacerSize+"px",lineHeight:n.element.ElementsSpacerSize+"px"})},"   ",4)])):it("",!0)],64))),128))])])],8,qnn)])):it("",!0),n.element.TopElementList.List.length>0&&n.element.TopElementList.Direction==="Horizontal"?(U(),ue("tr",Xnn,[N("td",{valign:"top",align:ee(Zf)({containerAlign:n.element.TopElementList.ContentAlign})},[N("table",Znn,[N("tbody",null,[N("tr",null,[N("td",{style:Be({height:n.element.ElementsSpacerSize+"px",fontSize:n.element.ElementsSpacerSize+"px",lineHeight:n.element.ElementsSpacerSize+"px"})},"   ",4)]),N("tr",null,[(U(!0),ue(xt,null,Kr(n.element.TopElementList.List,(l,u)=>(U(),ue(xt,{key:u},[n.element.TopElementList.ContentAlign==="Left"&&u===0?(U(),ue("td",{key:0,style:Be({width:n.element.ElementsSpacerSize+"px",fontSize:n.element.ElementsSpacerSize+"px",lineHeight:n.element.ElementsSpacerSize+"px"})},"   ",4)):it("",!0),N("td",ern,[Ce(Pu,{deps:n.deps,theme:n.theme,element:l,path:[...n.path,"TopElementList","List",u],selectedElementPath:n.selectedElementPath,context:n.context,onOnImageSizeAdjusted:a[5]||(a[5]=c=>i("onImageSizeAdjusted",c)),onOnImageOriginalSizeAdjusted:a[6]||(a[6]=c=>i("onImageOriginalSizeAdjusted",c)),onOnElementClicked:a[7]||(a[7]=c=>i("onElementClicked",c)),onOnElementUpdatedEvent:a[8]||(a[8]=c=>i("onElementUpdatedEvent",c)),onOnElementRemoved:a[9]||(a[9]=c=>i("onElementRemoved",c))},null,8,["deps","theme","element","path","selectedElementPath","context"])]),n.element.TopElementList.ContentAlign==="Center"&&n.element.TopElementList.List.length-1!==u?(U(),ue("td",{key:1,style:Be({width:n.element.ElementsSpacerSize+"px",fontSize:n.element.ElementsSpacerSize+"px",lineHeight:n.element.ElementsSpacerSize+"px"})},"   ",4)):it("",!0),n.element.TopElementList.ContentAlign==="Right"?(U(),ue("td",{key:2,style:Be({width:n.element.ElementsSpacerSize+"px",fontSize:n.element.ElementsSpacerSize+"px",lineHeight:n.element.ElementsSpacerSize+"px"})},"   ",4)):it("",!0),n.element.TopElementList.ContentAlign==="Left"&&n.element.TopElementList.List.length-1!==u?(U(),ue("td",{key:3,style:Be({width:n.element.ElementsSpacerSize+"px",fontSize:n.element.ElementsSpacerSize+"px",lineHeight:n.element.ElementsSpacerSize+"px"})},"   ",4)):it("",!0)],64))),128))])])])],8,Qnn)])):it("",!0),n.element.BottomElementList.List.length>0&&n.element.BottomElementList.Direction==="Vertical"?(U(),ue("tr",trn,[N("td",{valign:"bottom",align:ee(Zf)({containerAlign:n.element.BottomElementList.ContentAlign})},[N("table",rrn,[N("tbody",null,[(U(!0),ue(xt,null,Kr(n.element.BottomElementList.List,(l,u)=>(U(),ue(xt,{key:u},[N("tr",null,[n.element.BottomElementList.ContentAlign==="Left"?(U(),ue("td",{key:0,style:Be({width:n.element.ElementsSpacerSize+"px",fontSize:n.element.ElementsSpacerSize+"px",lineHeight:n.element.ElementsSpacerSize+"px"})},"   ",4)):it("",!0),N("td",orn,[Ce(Pu,{deps:n.deps,theme:n.theme,element:l,path:[...n.path,"BottomElementList","List",u],selectedElementPath:n.selectedElementPath,context:n.context,onOnImageSizeAdjusted:a[10]||(a[10]=c=>i("onImageSizeAdjusted",c)),onOnImageOriginalSizeAdjusted:a[11]||(a[11]=c=>i("onImageOriginalSizeAdjusted",c)),onOnElementClicked:a[12]||(a[12]=c=>i("onElementClicked",c)),onOnElementUpdatedEvent:a[13]||(a[13]=c=>i("onElementUpdatedEvent",c)),onOnElementRemoved:a[14]||(a[14]=c=>i("onElementRemoved",c))},null,8,["deps","theme","element","path","selectedElementPath","context"])]),n.element.BottomElementList.ContentAlign==="Right"?(U(),ue("td",{key:1,style:Be({width:n.element.ElementsSpacerSize+"px",fontSize:n.element.ElementsSpacerSize+"px",lineHeight:n.element.ElementsSpacerSize+"px"})},"   ",4)):it("",!0)]),N("tr",null,[N("td",{style:Be({height:n.element.ElementsSpacerSize+"px",fontSize:n.element.ElementsSpacerSize+"px",lineHeight:n.element.ElementsSpacerSize+"px"})},"   ",4)])],64))),128))])])],8,nrn)])):it("",!0),n.element.BottomElementList.List.length>0&&n.element.BottomElementList.Direction==="Horizontal"?(U(),ue("tr",irn,[N("td",{valign:"bottom",align:ee(Zf)({containerAlign:n.element.BottomElementList.ContentAlign})},[N("table",arn,[N("tbody",null,[N("tr",null,[(U(!0),ue(xt,null,Kr(n.element.BottomElementList.List,(l,u)=>(U(),ue(xt,{key:u},[n.element.BottomElementList.ContentAlign==="Left"&&u===0?(U(),ue("td",{key:0,style:Be({width:n.element.ElementsSpacerSize+"px",fontSize:n.element.ElementsSpacerSize+"px",lineHeight:n.element.ElementsSpacerSize+"px"})},"   ",4)):it("",!0),N("td",lrn,[Ce(Pu,{deps:n.deps,theme:n.theme,element:l,path:[...n.path,"BottomElementList","List",u],selectedElementPath:n.selectedElementPath,context:n.context,onOnImageSizeAdjusted:a[15]||(a[15]=c=>i("onImageSizeAdjusted",c)),onOnImageOriginalSizeAdjusted:a[16]||(a[16]=c=>i("onImageOriginalSizeAdjusted",c)),onOnElementClicked:a[17]||(a[17]=c=>i("onElementClicked",c)),onOnElementUpdatedEvent:a[18]||(a[18]=c=>i("onElementUpdatedEvent",c)),onOnElementRemoved:a[19]||(a[19]=c=>i("onElementRemoved",c))},null,8,["deps","theme","element","path","selectedElementPath","context"])]),n.element.BottomElementList.ContentAlign==="Center"&&n.element.BottomElementList.List.length-1!==u?(U(),ue("td",{key:1,style:Be({width:n.element.ElementsSpacerSize+"px",fontSize:n.element.ElementsSpacerSize+"px",lineHeight:n.element.ElementsSpacerSize+"px"})},"   ",4)):it("",!0),n.element.BottomElementList.ContentAlign==="Right"?(U(),ue("td",{key:2,style:Be({width:n.element.ElementsSpacerSize+"px",fontSize:n.element.ElementsSpacerSize+"px",lineHeight:n.element.ElementsSpacerSize+"px"})},"   ",4)):it("",!0),n.element.BottomElementList.ContentAlign==="Left"&&n.element.BottomElementList.List.length-1!==u?(U(),ue("td",{key:3,style:Be({width:n.element.ElementsSpacerSize+"px",fontSize:n.element.ElementsSpacerSize+"px",lineHeight:n.element.ElementsSpacerSize+"px"})},"   ",4)):it("",!0)],64))),128))])])])],8,srn)])):it("",!0)])])],4)])])])):it("",!0)}}),Pu=pt({__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,r=e,o=(i,s)=>{r("onElementClicked",{element:i,path:[...n.path,s]})};return(i,s)=>(U(),ue("span",{onClick:s[31]||(s[31]=Po(()=>{},["stop"]))},[n.element.Button!==void 0?(U(),kt(rXt,{key:0,deps:n.deps,theme:n.theme,element:n.element.Button,context:n.context,class:Ve({"element-selected":ee(SC)(n.selectedElementPath,[...n.path,"Button"])}),onOnElementClicked:s[0]||(s[0]=a=>o(n.element,"Button"))},null,8,["deps","theme","element","context","class"])):it("",!0),n.element.HeightContainer!==void 0?(U(),kt(MYt,{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=>r("onImageOriginalSizeAdjusted",a)),onOnImageSizeAdjusted:s[2]||(s[2]=a=>r("onImageSizeAdjusted",a)),onOnElementClicked:s[3]||(s[3]=a=>r("onElementClicked",a)),onOnElementRemoved:s[4]||(s[4]=a=>r("onElementRemoved",a)),onOnElementUpdatedEvent:s[5]||(s[5]=a=>r("onElementUpdatedEvent",a))},null,8,["deps","theme","element","path","selectedElementPath","context"])):it("",!0),n.element.Image!==void 0?(U(),kt(VYt,{key:2,deps:n.deps,theme:n.theme,element:n.element.Image,context:n.context,path:[...n.path,"Image"],class:Ve({"element-selected":ee(SC)(n.selectedElementPath,[...n.path,"Image"])}),onOnImageOriginalSizeAdjusted:s[6]||(s[6]=a=>r("onImageOriginalSizeAdjusted",a)),onOnImageSizeAdjusted:s[7]||(s[7]=a=>r("onImageSizeAdjusted",a)),onOnElementClicked:s[8]||(s[8]=a=>o(n.element,"Image"))},null,8,["deps","theme","element","context","path","class"])):it("",!0),n.element.Spacer!==void 0?(U(),kt(KYt,{key:3,element:n.element.Spacer,theme:n.theme,class:Ve({"element-selected":ee(SC)(n.selectedElementPath,[...n.path,"Spacer"])}),onOnElementClicked:s[9]||(s[9]=a=>o(n.element,"Spacer"))},null,8,["element","theme","class"])):it("",!0),n.element.SpanText!==void 0?(U(),kt(sXt,{key:4,deps:n.deps,theme:n.theme,element:n.element.SpanText,context:n.context,class:Ve({"element-selected":ee(SC)(n.selectedElementPath,[...n.path,"SpanText"])}),onOnElementClicked:s[10]||(s[10]=a=>o(n.element,"SpanText"))},null,8,["deps","theme","element","context","class"])):it("",!0),n.element.RichText!==void 0?(U(),kt(znn,{key:5,deps:n.deps.richTextDeps,theme:n.theme,element:n.element.RichText,isSelected:ee(SC)(n.selectedElementPath,[...n.path,"RichText"]),onOnElementClicked:s[11]||(s[11]=a=>o(n.element,"RichText")),onOnRichTextUpdated:s[12]||(s[12]=a=>{r("onElementUpdatedEvent",{path:n.path,element:{RichText:a}})}),onOnRichTextRemoved:s[13]||(s[13]=()=>{r("onElementRemoved",n.path)})},null,8,["deps","theme","element","isSelected"])):it("",!0),n.element.OneLineList!==void 0?(U(),kt(jYt,{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=>r("onImageOriginalSizeAdjusted",a)),onOnImageSizeAdjusted:s[15]||(s[15]=a=>r("onImageSizeAdjusted",a)),onOnElementClicked:s[16]||(s[16]=a=>r("onElementClicked",a)),onOnElementRemoved:s[17]||(s[17]=a=>r("onElementRemoved",a)),onOnElementUpdatedEvent:s[18]||(s[18]=a=>r("onElementUpdatedEvent",a))},null,8,["deps","theme","element","path","selectedElementPath","context"])):it("",!0),n.element.If!==void 0?(U(),kt(RYt,{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=>r("onImageOriginalSizeAdjusted",a)),onOnImageSizeAdjusted:s[20]||(s[20]=a=>r("onImageSizeAdjusted",a)),onOnElementClicked:s[21]||(s[21]=a=>r("onElementClicked",a)),onOnElementRemoved:s[22]||(s[22]=a=>r("onElementRemoved",a)),onOnElementUpdatedEvent:s[23]||(s[23]=a=>r("onElementUpdatedEvent",a))},null,8,["deps","theme","element","context","path","selectedElementPath"])):it("",!0),n.element.UnsubscribeLink!==void 0?(U(),kt(Wnn,{key:8,theme:n.theme,element:n.element.UnsubscribeLink,class:Ve({"element-selected":ee(SC)(n.selectedElementPath,[...n.path,"UnsubscribeLink"])}),onOnElementClicked:s[24]||(s[24]=a=>o(n.element,"UnsubscribeLink"))},null,8,["theme","element","class"])):it("",!0),n.element.BackgroundImage!==void 0?(U(),kt(urn,{key:9,deps:n.deps,theme:n.theme,element:n.element.BackgroundImage,context:n.context,path:[...n.path,"BackgroundImage"],selectedElementPath:n.selectedElementPath,class:Ve({"element-selected":ee(SC)(n.selectedElementPath,[...n.path,"BackgroundImage"])}),onOnImageOriginalSizeAdjusted:s[25]||(s[25]=a=>r("onImageOriginalSizeAdjusted",a)),onOnImageSizeAdjusted:s[26]||(s[26]=a=>r("onImageSizeAdjusted",a)),onOnElementClicked:s[27]||(s[27]=a=>r("onElementClicked",a)),onOnElementRemoved:s[28]||(s[28]=a=>r("onElementRemoved",a)),onOnElementUpdatedEvent:s[29]||(s[29]=a=>r("onElementUpdatedEvent",a)),onOnElementWrapperClicked:s[30]||(s[30]=a=>o(n.element,"BackgroundImage"))},null,8,["deps","theme","element","context","path","selectedElementPath","class"])):it("",!0)]))}}),crn=["align"],drn=pt({__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}){tm(i=>({v63736150:o.value}));const n=t,r=e,o=Q(()=>n.iteratedColumn.WidthInPercents*n.containerWidth+"px");return(i,s)=>(U(),ue("div",{class:"iterated-column",style:Be({display:"inline-block",verticalAlign:n.iteratedColumn.VerticalAlign})},[N("table",{style:Be([[ee(BO)({borderCollapse:n.iteratedColumn.BorderCollapse})],{width:"100%","border-spacing":"0"}]),width:"100%"},[N("tbody",null,[N("tr",null,[N("td",{align:ee(Zf)({containerAlign:n.iteratedColumn.ContainerAlign}),style:Be([[ee(jp)({border:n.iteratedColumn.Border,themeColors:n.theme.Colors}),{backgroundColor:ee(nd)({color:n.iteratedColumn.BgColor,themeColors:n.theme.Colors})},ee(Ah)({borderRadius:n.iteratedColumn.BorderRadius,borderRadiusCard:n.theme.BorderRadiusCard,bodyBorderRadius:n.theme.BorderRadius,borderButtonRadius:n.theme.BorderRadiusButton,borderBannerRadius:n.theme.BorderRadiusBanner})],{"line-height":"normal"}])},[(U(!0),ue(xt,null,Kr(n.iteratedColumn.Elements,(a,l)=>(U(),kt(Pu,{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]=u=>r("onElementClicked",u)),onOnImageSizeAdjusted:s[1]||(s[1]=u=>r("onImageSizeAdjusted",u)),onOnImageOriginalSizeAdjusted:s[2]||(s[2]=u=>r("onImageOriginalSizeAdjusted",u)),onOnElementUpdatedEvent:s[3]||(s[3]=u=>r("onElementUpdatedEvent",u)),onOnElementRemoved:s[4]||(s[4]=u=>r("onElementRemoved",u))},null,8,["deps","theme","element","context","path","selectedElementPath"]))),128))],12,crn)])])],4)],4))}}),hrn=ht(drn,[["__scopeId","data-v-4bdaa248"]]),frn=["align"],prn=pt({__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}){tm(i=>({v2fbddeb4:o.value}));const n=t,r=e,o=Q(()=>n.iteratedColumnN21.WidthInPercents*n.containerWidth+"px");return(i,s)=>(U(),ue("div",{class:"iterated-column__N-2-1",style:Be({display:"inline-block",verticalAlign:n.iteratedColumnN21.VerticalAlign})},[N("table",{style:Be([[ee(BO)({borderCollapse:n.iteratedColumnN21.BorderCollapse})],{width:"100%","border-spacing":"0"}]),width:"100%"},[N("tbody",null,[N("tr",null,[N("td",{align:ee(Zf)({containerAlign:n.iteratedColumnN21.ContainerAlign}),style:Be([[ee(jp)({border:n.iteratedColumnN21.Border,themeColors:n.theme.Colors}),{backgroundColor:ee(nd)({color:n.iteratedColumnN21.BgColor,themeColors:n.theme.Colors})},ee(Ah)({borderRadius:n.iteratedColumnN21.BorderRadius,borderRadiusCard:n.theme.BorderRadiusCard,bodyBorderRadius:n.theme.BorderRadius,borderButtonRadius:n.theme.BorderRadiusButton,borderBannerRadius:n.theme.BorderRadiusBanner})],{"line-height":"normal"}])},[(U(!0),ue(xt,null,Kr(n.iteratedColumnN21.Elements,(a,l)=>(U(),kt(Pu,{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]=u=>r("onElementClicked",u)),onOnImageSizeAdjusted:s[1]||(s[1]=u=>r("onImageSizeAdjusted",u)),onOnImageOriginalSizeAdjusted:s[2]||(s[2]=u=>r("onImageOriginalSizeAdjusted",u)),onOnElementUpdatedEvent:s[3]||(s[3]=u=>r("onElementUpdatedEvent",u)),onOnElementRemoved:s[4]||(s[4]=u=>r("onElementRemoved",u))},null,8,["deps","theme","element","context","path","selectedElementPath"]))),128))],12,frn)])])],4)],4))}}),mrn=ht(prn,[["__scopeId","data-v-b46af162"]]),grn=["align"],yrn=pt({__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}){tm(i=>({v904d8f2c:o.value}));const n=t,r=e,o=Q(()=>n.iteratedColumnN22.WidthInPercents*n.containerWidth+"px");return(i,s)=>(U(),ue("div",{class:"iterated-column__N-2-2",style:Be({display:"inline-block",verticalAlign:n.iteratedColumnN22.VerticalAlign})},[N("table",{style:Be([[ee(BO)({borderCollapse:n.iteratedColumnN22.BorderCollapse})],{width:"100%","border-spacing":"0"}]),width:"100%"},[N("tbody",null,[N("tr",null,[N("td",{align:ee(Zf)({containerAlign:n.iteratedColumnN22.ContainerAlign}),style:Be([[ee(jp)({border:n.iteratedColumnN22.Border,themeColors:n.theme.Colors}),{backgroundColor:ee(nd)({color:n.iteratedColumnN22.BgColor,themeColors:n.theme.Colors})},ee(Ah)({borderRadius:n.iteratedColumnN22.BorderRadius,borderRadiusCard:n.theme.BorderRadiusCard,bodyBorderRadius:n.theme.BorderRadius,borderButtonRadius:n.theme.BorderRadiusButton,borderBannerRadius:n.theme.BorderRadiusBanner})],{"line-height":"normal"}])},[(U(!0),ue(xt,null,Kr(n.iteratedColumnN22.Elements,(a,l)=>(U(),kt(Pu,{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]=u=>r("onElementClicked",u)),onOnImageSizeAdjusted:s[1]||(s[1]=u=>r("onImageSizeAdjusted",u)),onOnImageOriginalSizeAdjusted:s[2]||(s[2]=u=>r("onImageOriginalSizeAdjusted",u)),onOnElementUpdatedEvent:s[3]||(s[3]=u=>r("onElementUpdatedEvent",u)),onOnElementRemoved:s[4]||(s[4]=u=>r("onElementRemoved",u))},null,8,["deps","theme","element","context","path","selectedElementPath"]))),128))],12,grn)])])],4)],4))}}),Crn=ht(yrn,[["__scopeId","data-v-319c5209"]]),brn={class:"iterated-column-container",style:{"border-spacing":"0","border-collapse":"collapse",width:"100%",margin:"0 auto"},width:"100%"},vrn={align:"center",style:{"font-size":"0"}},wrn=pt({__name:"IteratedColumnBodyRow",props:{deps:{},theme:{},iteratedColumnBodyRow:{},path:{},selectedElementPath:{},context:{},rowWidth:{}},emits:["onElementClicked","onImageOriginalSizeAdjusted","onImageSizeAdjusted","onElementUpdatedEvent","onElementRemoved"],setup(t,{emit:e}){tm(l=>({a80c0c96:i.value}));const n=t,r=Xt({dataList:[],isLoaded:!1}),o=()=>n.deps.listExpressionEvaluator({listExpression:n.iteratedColumnBodyRow.DataSource,context:n.context}).then(l=>{r.dataList=l,r.isLoaded=!0});o(),En(()=>n.context,()=>o());const i=Q(()=>ko({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,u)=>(U(),ue("table",brn,[N("tbody",null,[N("tr",null,[N("td",vrn,[(U(!0),ue(xt,null,Kr(r.dataList,(c,d)=>(U(),ue(xt,{key:d},[s.iteratedColumn(n.iteratedColumnBodyRow.IteratedColumn)?(U(),kt(hrn,{key:d,class:Ve(["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>=r.dataList.length-n.iteratedColumnBodyRow.NumberColumnsInLine,"is-last-tablet-line":d>=r.dataList.length-2,"is-last-mobile-line":d==r.dataList.length-1}]),deps:n.deps.iteratedColumnDeps,theme:n.theme,style:Be(ee(sV)({numberColumnsInLine:n.iteratedColumnBodyRow.NumberColumnsInLine,index:d,paddingSize:ee(ko)({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]:c},containerWidth:n.rowWidth,onOnElementClicked:u[0]||(u[0]=h=>a("onElementClicked",h)),onOnImageOriginalSizeAdjusted:u[1]||(u[1]=h=>a("onImageOriginalSizeAdjusted",h)),onOnImageSizeAdjusted:u[2]||(u[2]=h=>a("onImageSizeAdjusted",h)),onOnElementUpdatedEvent:u[3]||(u[3]=h=>a("onElementUpdatedEvent",h)),onOnElementRemoved:u[4]||(u[4]=h=>a("onElementRemoved",h))},null,8,["deps","theme","class","style","iteratedColumn","path","selectedElementPath","context","containerWidth"])):it("",!0),s.iteratedColumnVariant(n.iteratedColumnBodyRow.IteratedColumnVariant)?(U(),ue(xt,{key:1},[s.iteratedColumnN21(n.iteratedColumnBodyRow.IteratedColumnVariant.IteratedColumnN21)?(U(),kt(mrn,{key:d,deps:n.deps.iteratedColumnVariantDeps.iteratedColumnN21Deps,theme:n.theme,class:Ve(["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>=r.dataList.length-n.iteratedColumnBodyRow.NumberColumnsInLine,"is-last-tablet-line":d>=r.dataList.length-2,"is-last-mobile-line":d==r.dataList.length-1}]),style:Be(ee(sV)({numberColumnsInLine:n.iteratedColumnBodyRow.NumberColumnsInLine,index:d,paddingSize:ee(ko)({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]:c},containerWidth:n.rowWidth,onOnElementClicked:u[5]||(u[5]=h=>a("onElementClicked",h)),onOnImageOriginalSizeAdjusted:u[6]||(u[6]=h=>a("onImageOriginalSizeAdjusted",h)),onOnImageSizeAdjusted:u[7]||(u[7]=h=>a("onImageSizeAdjusted",h)),onOnElementUpdatedEvent:u[8]||(u[8]=h=>a("onElementUpdatedEvent",h)),onOnElementRemoved:u[9]||(u[9]=h=>a("onElementRemoved",h))},null,8,["deps","theme","class","style","iteratedColumnN21","path","selectedElementPath","context","containerWidth"])):it("",!0),s.iteratedColumnN22(n.iteratedColumnBodyRow.IteratedColumnVariant.IteratedColumnN22)?(U(),kt(Crn,{key:d,deps:n.deps.iteratedColumnVariantDeps.iteratedColumnN22Deps,theme:n.theme,class:Ve(["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>=r.dataList.length-n.iteratedColumnBodyRow.NumberColumnsInLine,"is-last-tablet-line is-last-mobile-line":d>=r.dataList.length-2}]),style:Be(ee(sV)({numberColumnsInLine:n.iteratedColumnBodyRow.NumberColumnsInLine,index:d,paddingSize:ee(ko)({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]:c},containerWidth:n.rowWidth,onOnElementClicked:u[10]||(u[10]=h=>a("onElementClicked",h)),onOnImageOriginalSizeAdjusted:u[11]||(u[11]=h=>a("onImageOriginalSizeAdjusted",h)),onOnImageSizeAdjusted:u[12]||(u[12]=h=>a("onImageSizeAdjusted",h)),onOnElementUpdatedEvent:u[13]||(u[13]=h=>a("onElementUpdatedEvent",h)),onOnElementRemoved:u[14]||(u[14]=h=>a("onElementRemoved",h))},null,8,["deps","theme","class","style","iteratedColumnN22","path","selectedElementPath","context","containerWidth"])):it("",!0)],64)):it("",!0)],64))),128))])])])]))}}),xrn=ht(wrn,[["__scopeId","data-v-69ed8d34"]]),krn={style:{"border-spacing":"0","border-collapse":"collapse",width:"100%",margin:"0 auto"}},Trn=pt({__name:"IteratedBodyRow",props:{theme:{},deps:{},iteratedBodyRow:{},path:{},selectedElementPath:{},context:{},containerWidth:{}},emits:["onElementClicked","onImageOriginalSizeAdjusted","onImageSizeAdjusted","onColumnWidthAdjusted","onElementUpdatedEvent","onElementRemoved"],setup(t,{emit:e}){const n=t,r=Xt({dataList:[]});n.deps.listExpressionEvaluator({listExpression:n.iteratedBodyRow.DataSource,context:n.context}).then(i=>r.dataList=i);const o=e;return(i,s)=>(U(),ue("table",krn,[(U(!0),ue(xt,null,Kr(r.dataList,(a,l)=>(U(),ue("tr",{key:l},[N("td",{style:Be([ee(IO)({paddings:n.iteratedBodyRow.Paddings,themeComponentPaddings:n.theme.ComponentPaddings,themeBodyPaddings:n.theme.BodyPaddings})])},[Ce(a8e,{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]=u=>o("onElementClicked",u)),onOnImageOriginalSizeAdjusted:s[1]||(s[1]=u=>o("onImageOriginalSizeAdjusted",u)),onOnImageSizeAdjusted:s[2]||(s[2]=u=>o("onImageSizeAdjusted",u)),onOnColumnWidthAdjusted:s[3]||(s[3]=u=>o("onColumnWidthAdjusted",u)),onOnElementUpdatedEvent:s[4]||(s[4]=u=>o("onElementUpdatedEvent",u)),onOnElementRemoved:s[5]||(s[5]=u=>o("onElementRemoved",u))},null,8,["emailComponentBodyRow","deps","theme","context","rowWidth","path","selectedElementPath"])],4)]))),128))]))}}),Srn=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()}}}),Frn=t=>Srn(t).Match({Top:()=>"start",Middle:()=>"center",Bottom:()=>"end",Baseline:()=>"baseline"}),Ern=zF,Arn=t=>({JustifyWidth:{WidthInPixels:t}}),_rn=t=>({ShrinkToContentWidth:{WidthInPixels:t}}),Rrn=vYt,Drn=["align"],Nrn=pt({__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}){tm(l=>({acad954c:a.value,v1971599c:s.value,v72b8524e:i.value}));const n=t,r=e,o=l=>{Ern(n.multipleColumn.Width).Match({JustifyWidth:()=>cJ.Some(Arn(l)),ShrinkToContentWidth:()=>cJ.Some(_rn(l)),WidthInPercents:()=>cJ.None}).map(u=>r("onColumnWidthAdjusted",{Path:n.path,Width:u}))},i=Q(()=>Rrn(n.multipleColumn.Width).Match({default:()=>"",WidthInPercents:l=>l.Value*n.containerWidth+"px"})),s=Q(()=>Frn(n.multipleColumn.VerticalAlign)),a=Q(()=>n.multipleColumn.VerticalAlign);return(l,u)=>_n((U(),ue("div",{class:Ve(["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"}},[N("table",{style:Be([{width:"100%","border-spacing":"0"},[ee(BO)({borderCollapse:n.multipleColumn.BorderCollapse})]]),width:"100%"},[N("tbody",null,[N("tr",null,[N("td",{align:ee(Zf)({containerAlign:n.multipleColumn.ContainerAlign}),style:Be([[ee(jp)({border:n.multipleColumn.Border,themeColors:n.theme.Colors}),ee(Ah)({borderRadius:n.multipleColumn.BorderRadius,borderRadiusCard:n.theme.BorderRadiusCard,bodyBorderRadius:n.theme.BorderRadius,borderButtonRadius:n.theme.BorderRadiusButton,borderBannerRadius:n.theme.BorderRadiusBanner}),{backgroundColor:ee(nd)({color:n.multipleColumn.BgColor,themeColors:n.theme.Colors})},ee(IO)({paddings:n.multipleColumn.Paddings,themeComponentPaddings:n.theme.ComponentPaddings,themeBodyPaddings:n.theme.BodyPaddings})],{"line-height":"normal"}])},[(U(!0),ue(xt,null,Kr(n.multipleColumn.Elements,(c,d)=>(U(),kt(Pu,{key:d,deps:n.deps.elementsDeps,theme:n.theme,element:c,context:n.context,path:[...n.path,"Elements",d],selectedElementPath:n.selectedElementPath,onOnElementClicked:u[0]||(u[0]=h=>r("onElementClicked",h)),onOnImageSizeAdjusted:u[1]||(u[1]=h=>r("onImageSizeAdjusted",h)),onOnImageOriginalSizeAdjusted:u[2]||(u[2]=h=>r("onImageOriginalSizeAdjusted",h)),onOnElementUpdatedEvent:u[3]||(u[3]=h=>r("onElementUpdatedEvent",h)),onOnElementRemoved:u[4]||(u[4]=h=>r("onElementRemoved",h))},null,8,["deps","theme","element","context","path","selectedElementPath"]))),128))],12,Drn)])])],4)],2)),[[ee(IL),c=>o(c.width)]])}}),Lrn=ht(Nrn,[["__scopeId","data-v-bfa1869f"]]),Mrn=pt({__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}){tm(i=>({v36e68443:o.value}));const n=t,r=e,o=Q(()=>ko({paddingExpression:n.multipleColumnBodyRow.ColumnSpacerSize,themeComponentPaddings:n.theme.ComponentPaddings,themeBodyPaddings:n.theme.BodyPaddings})+"px");return(i,s)=>(U(),ue("table",{class:"multiple-column-container",style:Be([[ee(BO)({borderCollapse:n.multipleColumnBodyRow.BorderCollapse}),ee(jp)({border:n.multipleColumnBodyRow.Border,themeColors:n.theme.Colors}),ee(Ah)({borderRadius:n.multipleColumnBodyRow.BorderRadius,borderRadiusCard:n.theme.BorderRadiusCard,bodyBorderRadius:n.theme.BorderRadius,borderButtonRadius:n.theme.BorderRadiusButton,borderBannerRadius:n.theme.BorderRadiusBanner}),{backgroundColor:ee(nd)({color:n.multipleColumnBodyRow.BgColor,themeColors:n.theme.Colors})}],{"border-spacing":"0",width:"100%",margin:"0 auto"}]),width:"100%"},[N("tbody",null,[N("tr",null,[N("td",{class:"multiple-column-container__inner",style:Be([{"font-size":"0"},[ee(_Yt)({containerAlign:n.multipleColumnBodyRow.ContainerAlign}),ee(IO)({paddings:n.multipleColumnBodyRow.Paddings,themeComponentPaddings:n.theme.ComponentPaddings,themeBodyPaddings:n.theme.BodyPaddings}),n.multipleColumnBodyRow.DirectionRtl?{direction:"rtl"}:{direction:"ltr"}]])},[(U(!0),ue(xt,null,Kr(n.multipleColumnBodyRow.Columns,(a,l)=>(U(),kt(Lrn,{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-ee(ko)({paddingExpression:n.multipleColumnBodyRow.Paddings.Left,themeComponentPaddings:n.theme.ComponentPaddings,themeBodyPaddings:n.theme.BodyPaddings})-ee(ko)({paddingExpression:n.multipleColumnBodyRow.Paddings.Right,themeComponentPaddings:n.theme.ComponentPaddings,themeBodyPaddings:n.theme.BodyPaddings})-n.multipleColumnBodyRow.Border.Left.Width-n.multipleColumnBodyRow.Border.Right.Width,style:Be(ee(sV)({numberColumnsInLine:n.multipleColumnBodyRow.Columns.length,index:l,paddingSize:ee(ko)({paddingExpression:n.multipleColumnBodyRow.ColumnSpacerSize,themeComponentPaddings:n.theme.ComponentPaddings,themeBodyPaddings:n.theme.BodyPaddings}),directionRtl:n.multipleColumnBodyRow.DirectionRtl})),class:Ve({"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]=u=>r("onElementClicked",u)),onOnColumnWidthAdjusted:s[1]||(s[1]=u=>r("onColumnWidthAdjusted",u)),onOnImageSizeAdjusted:s[2]||(s[2]=u=>r("onImageSizeAdjusted",u)),onOnImageOriginalSizeAdjusted:s[3]||(s[3]=u=>r("onImageOriginalSizeAdjusted",u)),onOnElementUpdatedEvent:s[4]||(s[4]=u=>r("onElementUpdatedEvent",u)),onOnElementRemoved:s[5]||(s[5]=u=>r("onElementRemoved",u))},null,8,["deps","theme","multipleColumn","path","selectedElementPath","context","containerWidth","style","class"]))),128))],4)])])],4))}}),Orn=ht(Mrn,[["__scopeId","data-v-c6ebdc94"]]),Brn=pt({__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,r=e;return(o,i)=>(U(!0),ue(xt,null,Kr(n.simpleBodyRow.Elements,(s,a)=>(U(),kt(Pu,{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=>r("onElementClicked",l)),onOnImageSizeAdjusted:i[1]||(i[1]=l=>r("onImageSizeAdjusted",l)),onOnImageOriginalSizeAdjusted:i[2]||(i[2]=l=>r("onImageOriginalSizeAdjusted",l)),onOnElementUpdatedEvent:i[3]||(i[3]=l=>r("onElementUpdatedEvent",l)),onOnElementRemoved:i[4]||(i[4]=l=>r("onElementRemoved",l))},null,8,["deps","theme","element","context","path","selectedElementPath"]))),128))}}),a8e=pt({__name:"EmailComponentBodyRow",props:{deps:{},theme:{},emailComponentBodyRow:{},path:{},selectedElementPath:{},context:{},rowWidth:{}},emits:["onElementClicked","onImageOriginalSizeAdjusted","onImageSizeAdjusted","onColumnWidthAdjusted","onElementUpdatedEvent","onElementRemoved"],setup(t,{emit:e}){const n=t,r={multipleColumns:i=>i!==void 0,iteratedColumns:i=>i!==void 0,iteratedBodyRow:i=>i!==void 0,simpleBodyRow:i=>i!==void 0},o=e;return(i,s)=>(U(),ue("div",null,[r.multipleColumns(n.emailComponentBodyRow.MultipleColumnBodyRow)?(U(),kt(Orn,{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=>o("onColumnWidthAdjusted",a)),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)),onOnElementUpdatedEvent:s[4]||(s[4]=a=>o("onElementUpdatedEvent",a)),onOnElementRemoved:s[5]||(s[5]=a=>o("onElementRemoved",a))},null,8,["deps","theme","multipleColumnBodyRow","path","selectedElementPath","context","rowWidth"])):it("",!0),r.iteratedColumns(n.emailComponentBodyRow.IteratedColumnBodyRow)?(U(),kt(xrn,{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=>o("onElementClicked",a)),onOnImageOriginalSizeAdjusted:s[7]||(s[7]=a=>o("onImageOriginalSizeAdjusted",a)),onOnImageSizeAdjusted:s[8]||(s[8]=a=>o("onImageSizeAdjusted",a)),onOnElementUpdatedEvent:s[9]||(s[9]=a=>o("onElementUpdatedEvent",a)),onOnElementRemoved:s[10]||(s[10]=a=>o("onElementRemoved",a))},null,8,["deps","theme","iteratedColumnBodyRow","path","selectedElementPath","context","rowWidth"])):it("",!0),r.iteratedBodyRow(n.emailComponentBodyRow.IteratedBodyRow)?(U(),kt(Trn,{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=>o("onElementClicked",a)),onOnImageOriginalSizeAdjusted:s[12]||(s[12]=a=>o("onImageOriginalSizeAdjusted",a)),onOnImageSizeAdjusted:s[13]||(s[13]=a=>o("onImageSizeAdjusted",a)),onOnElementUpdatedEvent:s[14]||(s[14]=a=>o("onElementUpdatedEvent",a)),onOnElementRemoved:s[15]||(s[15]=a=>o("onElementRemoved",a))},null,8,["deps","theme","iteratedBodyRow","path","selectedElementPath","context","containerWidth"])):it("",!0),r.simpleBodyRow(n.emailComponentBodyRow.SimpleBodyRow)?(U(),kt(Brn,{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=>o("onElementClicked",a)),onOnImageOriginalSizeAdjusted:s[17]||(s[17]=a=>o("onImageOriginalSizeAdjusted",a)),onOnImageSizeAdjusted:s[18]||(s[18]=a=>o("onImageSizeAdjusted",a)),onOnElementUpdatedEvent:s[19]||(s[19]=a=>o("onElementUpdatedEvent",a)),onOnElementRemoved:s[20]||(s[20]=a=>o("onElementRemoved",a))},null,8,["deps","theme","simpleBodyRow","path","selectedElementPath","context"])):it("",!0)]))}}),Irn={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"},$rn={emptyEmailComponentText:"Товарная полка скрыта из-за недостатка товаров",emptyEmailComponentTooltip:"Товарная полка не будет отображаться у получателей письма пока в ней недостаточно товаров",requiredComponentNotification:"Без этого компонента письмо не будет отправлено"},RJ=Ir({en:Irn,ru:$rn}),Prn={},Vrn={width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function zrn(t,e){return U(),ue("svg",Vrn,[...e[0]||(e[0]=[N("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 Hrn=ht(Prn,[["render",zrn]]),Wrn={key:0},jrn={key:0,class:"is-required-notification"},Urn={class:"bootstrap-styles w-100 d-flex justify-content-center gap-5"},Krn=pt({__name:"EmailComponent",props:{deps:{},theme:{},emailComponent:{},path:{},selectedElementPath:{}},emits:["onElementClicked","onImageOriginalSizeAdjusted","onImageSizeAdjusted","onColumnWidthAdjusted","onElementUpdatedEvent","onElementRemoved"],setup(t,{emit:e}){const n=t,r=Xt({context:{},ifResult:!n.emailComponent.ContextBuilderExpression,isLoaded:!1}),o={emptyEmailComponentText:RJ({localeKey:n.deps.localeKey}).emptyEmailComponentText,emptyEmailComponentTooltip:RJ({localeKey:n.deps.localeKey}).emptyEmailComponentTooltip,requiredComponentNotification:RJ({localeKey:n.deps.localeKey}).requiredComponentNotification},i=a=>{r.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(u=>{r.context=l,r.ifResult=u,r.isLoaded=!0})})};En(()=>n.emailComponent.ContextBuilderExpression,a=>{a&&i(a)});const s=e;return n.emailComponent.ContextBuilderExpression?i(n.emailComponent.ContextBuilderExpression):r.isLoaded=!0,(a,l)=>r.isLoaded?(U(),ue("div",Wrn,[n.emailComponent.IsRequired?(U(),ue("div",jrn,[N("i",null,[Ce(Hrn)]),N("span",null,"   "+er(o.requiredComponentNotification),1)])):it("",!0),r.ifResult?(U(),ue("table",{key:1,style:Be([[{backgroundColor:ee(nd)({color:n.emailComponent.InnerBgColor,themeColors:n.theme.Colors})},ee(Ah)({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"}])},[N("tbody",null,[N("tr",null,[N("td",{class:"row__inner",style:Be([ee(JTe)({paddings:n.emailComponent.Paddings,themeComponentPaddings:n.theme.ComponentPaddings,themeBodyPaddings:n.theme.BodyPaddings,fullWidth:n.emailComponent.FullWidth})])},[(U(!0),ue(xt,null,Kr(n.emailComponent.BodyRowList,(u,c)=>(U(),kt(a8e,{key:c,deps:n.deps.emailComponentBodyRowDeps,theme:n.theme,emailComponentBodyRow:u,context:r.context,rowWidth:n.emailComponent.FullWidth?n.theme.BodyWidth:n.theme.BodyWidth-n.theme.BodyPaddings.Left-n.theme.BodyPaddings.Right,path:[...n.path,"BodyRowList",c],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)):(U(),ue("div",{key:2,class:Ve(["empty-email-component",{"is-required-component__paddings":n.emailComponent.IsRequired}])},[oO(er(o.emptyEmailComponentText)+" ",1),_n((U(),ue("i",null,[...l[6]||(l[6]=[N("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[N("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)])])),[[ee(Mo),{placement:"top",title:o.emptyEmailComponentTooltip}]])],2))])):(U(),ue("div",{key:1,class:"bootstrap-styles w-100",style:Be([ee(JTe)({paddings:n.emailComponent.Paddings,themeComponentPaddings:n.theme.ComponentPaddings,themeBodyPaddings:n.theme.BodyPaddings,fullWidth:n.emailComponent.FullWidth}),{backgroundColor:ee(nd)({color:n.emailComponent.InnerBgColor,themeColors:n.theme.Colors})||"transparent"}])},[Ce(ee(uTe),{type:"text"}),N("div",Urn,[(U(),ue(xt,null,Kr(3,u=>Ce(ee(uTe),{key:u,type:"image, text, text, text, button",style:{width:"100%"}})),64))])],4))}}),qrn=ht(Krn,[["__scopeId","data-v-5ef33b53"]]),Jrn={class:"emailTemplate-border-top"},Grn={class:"emailTemplate-border-bottom"},Yrn=pt({__name:"TemplatePreview",props:{deps:{},template:{}},setup(t){tm(v=>({v4d8f0f39:r.value,v39a36644:o.value,v5190bcaf:n.value.Title.fontWeight,v3457d59b:n.value.Title.fontFamily,v113b1d4a:n.value.Title.color,v2dcb0a76:n.value.Title.textDecoration,v3d2ffecc:n.value.Title.fontStyle,v3ed870a3:i.value,v03cbd5a4:s.value,v54442e45:n.value.Heading.fontWeight,v370b4731:n.value.Heading.fontFamily,v59e7da05:n.value.Heading.color,ca219d4a:n.value.Heading.textDecoration,v3c550444:n.value.Heading.fontStyle,v96c2e4fe:a.value,v1acc728c:l.value,v1f3df501:n.value.SubHeading.fontWeight,v02050ded:n.value.SubHeading.fontFamily,e838646e:n.value.SubHeading.color,v31ef3a17:n.value.SubHeading.textDecoration,v63e97608:n.value.SubHeading.fontStyle,v1ec64b69:u.value,cc075318:c.value,ae0aee02:n.value.LargeText.fontWeight,e87cbc2a:n.value.LargeText.fontFamily,v1c7e330b:n.value.LargeText.color,b9b4c1d6:n.value.LargeText.textDecoration,ab292b6c:n.value.LargeText.fontStyle,v0b733693:d.value,v0f1b1f1e:h.value,v96764aa2:n.value.NormalText.fontWeight,d0e818ca:n.value.NormalText.fontFamily,v0f93935b:n.value.NormalText.color,v390f98c5:n.value.NormalText.textDecoration,v5838229a:n.value.NormalText.fontStyle,cefd0c2c:f.value,dcb42e96:p.value,v0b65b89e:n.value.DescriptionText.fontWeight,v23a65cec:n.value.DescriptionText.fontFamily,v0a2507e8:n.value.DescriptionText.color,v7721e734:n.value.DescriptionText.textDecoration,v83c76a6a:n.value.DescriptionText.fontStyle,v0168c5ce:m.value,v6e73fc24:g.value,v7bc19fae:n.value.Link.fontWeight,b6336dd6:n.value.Link.fontFamily,cfb78cbe:n.value.Link.color,v8422bd82:n.value.Link.textDecoration,v3fe035e0:n.value.Link.fontStyle,d217d6de:C.value,v844714c8:b.value,v13878b1e:n.value.Button.fontWeight,v4df95946:n.value.Button.fontFamily,v16e83b4e:n.value.Button.color,v2c6d4787:n.value.Button.textDecoration,v5a54c298:n.value.Button.fontStyle}));const e=t,n=Q(()=>{const{FontFamily:v,FontSettingsPresets:w,Colors:x}=e.template.Theme;return{Title:il({fontFamily:v,themeFontSettings:w.Title,themeColor:x.TitleColor}),Heading:il({fontFamily:v,themeFontSettings:w.Heading,themeColor:x.HeadingColor}),SubHeading:il({fontFamily:v,themeFontSettings:w.SubHeading,themeColor:x.SubHeadingColor}),LargeText:il({fontFamily:v,themeFontSettings:w.LargeText,themeColor:x.LargeTextColor}),NormalText:il({fontFamily:v,themeFontSettings:w.NormalText,themeColor:x.NormalTextColor}),DescriptionText:il({fontFamily:v,themeFontSettings:w.DescriptionText,themeColor:x.DescriptionTextColor}),Link:il({fontFamily:v,themeFontSettings:w.Link,themeColor:x.LinkColor}),Button:il({fontFamily:v,themeFontSettings:w.Button,themeColor:x.ButtonTextColor})}}),r=Q(()=>n.value.Title.fontSize+"px"),o=Q(()=>n.value.Title.lineHeight+"px"),i=Q(()=>n.value.Heading.fontSize+"px"),s=Q(()=>n.value.Heading.lineHeight+"px"),a=Q(()=>n.value.SubHeading.fontSize+"px"),l=Q(()=>n.value.SubHeading.lineHeight+"px"),u=Q(()=>n.value.LargeText.fontSize+"px"),c=Q(()=>n.value.LargeText.lineHeight+"px"),d=Q(()=>n.value.NormalText.fontSize+"px"),h=Q(()=>n.value.NormalText.lineHeight+"px"),f=Q(()=>n.value.DescriptionText.fontSize+"px"),p=Q(()=>n.value.DescriptionText.lineHeight+"px"),m=Q(()=>n.value.Link.fontSize+"px"),g=Q(()=>n.value.Link.lineHeight+"px"),C=Q(()=>n.value.Button.fontSize+"px"),b=Q(()=>n.value.Button.lineHeight+"px");return(v,w)=>(U(),ue("div",{class:"bootstrap-styles pe-none template-preview",style:Be({fontFamily:e.template.Theme.FontFamily,width:t.template.Theme.BodyWidth+"px"})},[N("div",{class:"webkit emailTemplate--desktop",style:Be({backgroundColor:e.template.Theme.Colors.BodyColor,borderTopLeftRadius:e.template.Theme.BorderRadius.TopLeft+"px",borderTopRightRadius:e.template.Theme.BorderRadius.TopRight+"px",borderBottomLeftRadius:e.template.Theme.BorderRadius.BottomLeft+"px",borderBottomRightRadius:e.template.Theme.BorderRadius.BottomRight+"px"})},[N("div",Jrn,[N("table",{style:Be([[{maxWidth:e.template.Theme.BodyWidth+"px",width:"100%"}],{"border-spacing":"0"}])},[N("tbody",null,[N("tr",null,[N("td",{style:Be([{paddingTop:e.template.Theme.BodyPaddings.Top+"px"},{"font-size":"0","line-height":"0"}])},"   ",4)])])],4)]),(U(!0),ue(xt,null,Kr(e.template.Components,(x,S)=>(U(),ue("div",{key:S},[Ce(qrn,{deps:e.deps.emailComponentDeps,theme:e.template.Theme,emailComponent:x,path:[],selectedElementPath:[]},null,8,["deps","theme","emailComponent"])]))),128)),N("div",Grn,[N("table",{style:Be([[{maxWidth:e.template.Theme.BodyWidth+"px",width:"100%"}],{"border-spacing":"0"}])},[N("tbody",null,[N("tr",null,[N("td",{style:Be([{paddingBottom:e.template.Theme.BodyPaddings.Bottom+"px"},{"font-size":"0","line-height":"0"}])},"   ",4)])])],4)])],4)],4))}}),l8e=ht(Yrn,[["__scopeId","data-v-9f2b7245"]]),Xrn={class:"email-template-preview__inner-padding scrollable"},Qrn=pt({__name:"TemplatePreviewModalWindow",props:{template:{},deps:{}},emits:["templateSelected","close"],setup(t,{emit:e}){const n=t,r={title:hJ({localeKey:n.deps.localeKey}).title,applyButton:hJ({localeKey:n.deps.localeKey}).applyButton,cancelButton:hJ({localeKey:n.deps.localeKey}).cancelButton},o=s=>{const a=s.parentElement;a&&(a.style.height=s.getBoundingClientRect().height+"px")},i=e;return(s,a)=>(U(),kt(w7e,{headerText:r.title,class:"email-component__preview-modal-window",onClose:a[3]||(a[3]=()=>i("close"))},{body:ky(()=>[N("div",{style:Be({backgroundColor:t.template.Theme.Colors.EmailBackgroundColor})},[Ce(v7e,{onScaledElement:a[0]||(a[0]=l=>o(l))},{default:ky(()=>[N("div",Xrn,[Ce(l8e,{deps:t.deps.templatePreviewDeps,template:t.template},null,8,["deps","template"])])]),_:1})],4)]),"footer-actions":ky(()=>[N("button",{type:"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[1]||(a[1]=Po(()=>i("close"),["stop"]))},er(r.cancelButton),1),N("button",{type:"submit",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:a[2]||(a[2]=()=>{i("templateSelected",n.template)})},er(r.applyButton),1)]),_:1},8,["headerText"]))}}),Zrn=ht(Qrn,[["__scopeId","data-v-daf17623"]]),eon={class:"favorite-template-select__item-wrapper"},ton={class:"favorite-template-select__item bootstrap-styles border rounded-3"},non={class:"email-template-preview__inner-padding scrollable"},ron=pt({__name:"TemplatePreviewCard",props:{deps:{},template:{},templateName:{}},emits:["templateSelected"],setup(t,{emit:e}){const n=t,r=Xt({isPreviewComponentModalWindowShown:!1}),o=s=>{const a=s.parentElement;a&&(a.style.height=s.getBoundingClientRect().height+"px")},i=e;return(s,a)=>(U(),ue("div",eon,[N("div",ton,[N("div",{class:"bootstrap-styles h-100",style:Be({backgroundColor:n.template.Theme.Colors.EmailBackgroundColor}),onClick:a[1]||(a[1]=()=>{r.isPreviewComponentModalWindowShown=!0})},[Ce(v7e,{onScaledElement:a[0]||(a[0]=l=>o(l))},{default:ky(()=>[N("div",non,[Ce(l8e,{deps:n.deps.templatePreviewDeps,template:n.template},null,8,["deps","template"])])]),_:1})],4),(U(),kt(hPe,{to:"body",defer:""},[r.isPreviewComponentModalWindowShown?(U(),kt(Zrn,{key:0,template:n.template,deps:n.deps.templatePreviewModalWindowDeps,onClose:a[2]||(a[2]=()=>r.isPreviewComponentModalWindowShown=!1),onTemplateSelected:a[3]||(a[3]=()=>i("templateSelected",n.template))},null,8,["template","deps"])):it("",!0)]))]),N("div",{class:"bootstrap-styles favorite-template__name mt-2",onClick:a[4]||(a[4]=()=>{r.isPreviewComponentModalWindowShown=!0})},er(n.templateName),1)]))}}),oon=ht(ron,[["__scopeId","data-v-c8eb839e"]]),ion={class:"template-selector__list"},son={class:"bootstrap-styles mb-3"},aon=pt({__name:"TemplatePreviewCardList",props:{templatesPreviewCard:{},deps:{}},emits:["templateSelected"],setup(t,{emit:e}){const n=t,r={newTemplate:nV({localeKey:n.deps.localeKey}).newTemplate},o=e;return(i,s)=>(U(),ue("div",ion,[N("button",{class:"bootstrap-styles d-flex flex-column justify-content-center align-items-center template-selector__new-item overflow-hidden border rounded-3",type:"button",onClick:s[0]||(s[0]=a=>o("templateSelected",n.deps.initialEmailTemplate))},[N("i",son,[Ce(v7t)]),oO(" "+er(r.newTemplate),1)]),(U(!0),ue(xt,null,Kr(n.templatesPreviewCard,a=>(U(),ue("div",null,[Ce(oon,{deps:n.deps.templatePreviewCardDeps,template:a.template,templateName:a.templateName,onTemplateSelected:s[1]||(s[1]=l=>o("templateSelected",l))},null,8,["deps","template","templateName"])]))),256))]))}}),hSe=ht(aon,[["__scopeId","data-v-f5d903f5"]]),lon={class:"template-gallery bootstrap-styles d-flex flex-column bg-white justify-content-start align-items-center"},uon={class:"icon-hover-stroke-black"},con={class:"bootstrap-styles mb-11"},don={class:"bootstrap-styles template-gallery__tab-list mb-13"},hon=pt({__name:"TemplatesGallery",props:{commonFavoriteTemplates:{},customFavoriteTemplates:{},deps:{}},emits:["templateSelected","close"],setup(t,{emit:e}){const n=t,r=n.customFavoriteTemplates.length?"custom":"common",o={title:nV({localeKey:n.deps.localeKey}).title,customFavoritesButton:nV({localeKey:n.deps.localeKey}).customFavoritesButton,commonFavoritesButton:nV({localeKey:n.deps.localeKey}).defaultFavoritesButton},i=Xt({activeTab:r}),s={custom:o.customFavoritesButton,common:o.commonFavoritesButton},a=e;return(l,u)=>(U(),ue("div",lon,[N("button",{class:"template-gallery__close",onClick:u[0]||(u[0]=c=>a("close"))},[N("i",uon,[Ce(u7t)])]),N("h2",con,er(o.title),1),N("div",don,[Ce(g7t,{initialTab:ee(r),tabList:s,onOnTabClicked:u[1]||(u[1]=c=>i.activeTab=c)},null,8,["initialTab"])]),_n(Ce(hSe,{deps:n.deps.templatePreviewCardListDeps,templatesPreviewCard:n.customFavoriteTemplates,onTemplateSelected:u[2]||(u[2]=c=>a("templateSelected",c))},null,8,["deps","templatesPreviewCard"]),[[$Z,i.activeTab==="custom"]]),_n(Ce(hSe,{deps:n.deps.templatePreviewCardListDeps,templatesPreviewCard:n.commonFavoriteTemplates,onTemplateSelected:u[3]||(u[3]=c=>a("templateSelected",c))},null,8,["deps","templatesPreviewCard"]),[[$Z,i.activeTab==="common"]])]))}}),fon=ht(hon,[["__scopeId","data-v-8e5250cb"]]),pon=t=>{const e=document.createElement("form");e.method=t.method,e.action=t.action;for(const[n,r]of t.formData.entries()){if(r instanceof File)continue;const o=document.createElement("input");o.setAttribute("type","text"),o.setAttribute("name",n),o.setAttribute("value",r),e.appendChild(o)}return e},mon={Subject:"",Preheader:"",Theme:{BodyWidth:600,IsResponsiveWidth:!0,FontFamily:"Arial",Colors:{EmailBackgroundColor:"#EEEEEE",BodyColor:"#FFFFFF",PrimaryColor:"#557aff",PrimaryTextColor:"#ffffff",SecondaryColor:"#E4EAFF",SecondaryTextColor:"#557aff",CardBackgroundColor:"#F6F6F6",HeadingColor:"#2F2F2F",TitleColor:"#2F2F2F",SubHeadingColor:"#2F2F2F",LargeTextColor:"#2F2F2F",NormalTextColor:"#2F2F2F",DescriptionTextColor:"#999999",LinkColor:"#65A0FA",ButtonTextColor:"#ffffff"},BorderRadius:{TopLeft:20,TopRight:20,BottomLeft:20,BottomRight:20},BorderRadiusCard:{TopLeft:16,TopRight:16,BottomLeft:16,BottomRight:16},BorderRadiusButton:{TopLeft:6,TopRight:6,BottomLeft:6,BottomRight:6},BorderRadiusBanner:{TopLeft:0,TopRight:0,BottomLeft:0,BottomRight:0},BodyPaddings:{Left:20,Right:20,Top:10,Bottom:10},ComponentPaddings:{Small:8,Medium:16,Large:24,Huge:24},ButtonPaddings:{TopBottom:12,LeftRight:14},FontSettingsPresets:{Title:{FontSize:24,LineHeight:28,IsBold:!0,IsItalic:!1,Decoration:"None"},Heading:{FontSize:20,LineHeight:24,IsBold:!0,IsItalic:!1,Decoration:"None"},SubHeading:{FontSize:14,LineHeight:16,IsBold:!0,IsItalic:!1,Decoration:"None"},LargeText:{FontSize:14,LineHeight:18,IsBold:!1,IsItalic:!1,Decoration:"None"},NormalText:{FontSize:12,LineHeight:15,IsBold:!1,IsItalic:!1,Decoration:"None"},DescriptionText:{FontSize:10,LineHeight:13,IsBold:!1,IsItalic:!1,Decoration:"None"},Button:{FontSize:12,LineHeight:14,IsBold:!0,IsItalic:!1,Decoration:"None"},Link:{FontSize:12,LineHeight:14,IsBold:!1,IsItalic:!1,Decoration:"None"}}},Components:[{IsRequired:!1,BorderRadius:{TopLeft:{Discriminator:"CustomBorderRadius",CustomValue:0},TopRight:{Discriminator:"CustomBorderRadius",CustomValue:0},BottomRight:{Discriminator:"CustomBorderRadius",CustomValue:0},BottomLeft:{Discriminator:"CustomBorderRadius",CustomValue:0}},InnerBgColor:{Discriminator:"BodyColor",CustomValue:"#000000"},Paddings:{Top:{ThemePadding:"ThemePaddingsLarge"},Bottom:{ThemePadding:"ThemePaddingsLarge"}},FullWidth:!1,BodyRowList:[{SimpleBodyRow:{Elements:[{RichText:{ImageVerticalAlign:"Baseline",MinHeight:1,ContentAlign:"Center",Text:{Content:[{ParagraphNode:{Content:[{TextNode:{Text:"Email Creation Service",TextStyle:{ThemeName:"Heading",Style:{}}}}]}}]}}},{Spacer:{Height:{ThemePadding:"ThemePaddingsLarge"},Weight:0,Color:{Discriminator:"None",CustomValue:"#FFFFFF"}}},{RichText:{ImageVerticalAlign:"Baseline",MinHeight:1,ContentAlign:"Center",Text:{Content:[{ParagraphNode:{Content:[{TextNode:{Text:"We are pleased to introduce our new product—an email creation service. With this convenient and intuitive tool, you can easily craft beautiful and professional emails in just a few simple steps.",TextStyle:{ThemeName:"LargeText",Style:{}}}}]}}]}}}]}}]}]},gon={Subject:"",Preheader:"",Theme:{BodyWidth:600,IsResponsiveWidth:!0,FontFamily:"Arial",Colors:{EmailBackgroundColor:"#EEEEEE",BodyColor:"#FFFFFF",PrimaryColor:"#557aff",PrimaryTextColor:"#ffffff",SecondaryColor:"#E4EAFF",SecondaryTextColor:"#557aff",CardBackgroundColor:"#F6F6F6",HeadingColor:"#2F2F2F",TitleColor:"#2F2F2F",SubHeadingColor:"#2F2F2F",LargeTextColor:"#2F2F2F",NormalTextColor:"#2F2F2F",DescriptionTextColor:"#999999",LinkColor:"#65A0FA",ButtonTextColor:"#ffffff"},BorderRadius:{TopLeft:20,TopRight:20,BottomLeft:20,BottomRight:20},BorderRadiusCard:{TopLeft:16,TopRight:16,BottomLeft:16,BottomRight:16},BorderRadiusButton:{TopLeft:6,TopRight:6,BottomLeft:6,BottomRight:6},BorderRadiusBanner:{TopLeft:0,TopRight:0,BottomLeft:0,BottomRight:0},BodyPaddings:{Left:20,Right:20,Top:10,Bottom:10},ComponentPaddings:{Small:8,Medium:16,Large:24,Huge:24},ButtonPaddings:{TopBottom:12,LeftRight:14},FontSettingsPresets:{Title:{FontSize:24,LineHeight:28,IsBold:!0,IsItalic:!1,Decoration:"None"},Heading:{FontSize:20,LineHeight:24,IsBold:!0,IsItalic:!1,Decoration:"None"},SubHeading:{FontSize:14,LineHeight:16,IsBold:!0,IsItalic:!1,Decoration:"None"},LargeText:{FontSize:14,LineHeight:18,IsBold:!1,IsItalic:!1,Decoration:"None"},NormalText:{FontSize:12,LineHeight:15,IsBold:!1,IsItalic:!1,Decoration:"None"},DescriptionText:{FontSize:10,LineHeight:13,IsBold:!1,IsItalic:!1,Decoration:"None"},Button:{FontSize:12,LineHeight:14,IsBold:!0,IsItalic:!1,Decoration:"None"},Link:{FontSize:12,LineHeight:14,IsBold:!1,IsItalic:!1,Decoration:"None"}}},Components:[{IsRequired:!1,BorderRadius:{TopLeft:{Discriminator:"CustomBorderRadius",CustomValue:0},TopRight:{Discriminator:"CustomBorderRadius",CustomValue:0},BottomRight:{Discriminator:"CustomBorderRadius",CustomValue:0},BottomLeft:{Discriminator:"CustomBorderRadius",CustomValue:0}},InnerBgColor:{Discriminator:"BodyColor",CustomValue:"#000000"},Paddings:{Top:{ThemePadding:"ThemePaddingsLarge"},Bottom:{ThemePadding:"ThemePaddingsLarge"}},FullWidth:!1,BodyRowList:[{SimpleBodyRow:{Elements:[{RichText:{ImageVerticalAlign:"Baseline",MinHeight:1,ContentAlign:"Center",Text:{Content:[{ParagraphNode:{ThemeName:"Heading",ContentAlign:"Center",Content:[{TextNode:{Text:"Сервис создания электронных писем",TextStyle:{ThemeName:"Heading",Style:{TextTransform:"None"}}}}]}}]}}},{Spacer:{Height:{ThemePadding:"ThemePaddingsLarge"},Weight:0,Color:{Discriminator:"None",CustomValue:"#FFFFFF"}}},{RichText:{ImageVerticalAlign:"Baseline",MinHeight:1,ContentAlign:"Center",Text:{Content:[{ParagraphNode:{ThemeName:"LargeText",ContentAlign:"Center",Content:[{TextNode:{Text:"Мы рады представить вам наш новый продукт - сервис создания электронных писем. С помощью этого удобного и интуитивно понятного инструмента, вы сможете легко создавать красивые и профессиональные письма всего в несколько простых шагов.",TextStyle:{ThemeName:"LargeText",Style:{TextTransform:"None"}}}}]}}]}}}]}}]}]},{entries:u8e,setPrototypeOf:fSe,isFrozen:yon,getPrototypeOf:Con,getOwnPropertyDescriptor:bon}=Object;let{freeze:oa,seal:sc,create:Nne}=Object,{apply:Lne,construct:Mne}=typeof Reflect<"u"&&Reflect;oa||(oa=function(t){return t});sc||(sc=function(t){return t});Lne||(Lne=function(t,e){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];return t.apply(e,r)});Mne||(Mne=function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];return new t(...n)});const n$=ia(Array.prototype.forEach),von=ia(Array.prototype.lastIndexOf),pSe=ia(Array.prototype.pop),rA=ia(Array.prototype.push),won=ia(Array.prototype.splice),lV=ia(String.prototype.toLowerCase),DJ=ia(String.prototype.toString),NJ=ia(String.prototype.match),oA=ia(String.prototype.replace),xon=ia(String.prototype.indexOf),kon=ia(String.prototype.trim),Bc=ia(Object.prototype.hasOwnProperty),es=ia(RegExp.prototype.test),iA=Ton(TypeError);function ia(t){return function(e){e instanceof RegExp&&(e.lastIndex=0);for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return Lne(t,e,r)}}function Ton(t){return function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return Mne(t,n)}}function wn(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:lV;fSe&&fSe(t,null);let r=e.length;for(;r--;){let o=e[r];if(typeof o=="string"){const i=n(o);i!==o&&(yon(e)||(e[r]=i),o=i)}t[o]=!0}return t}function Son(t){for(let e=0;e<t.length;e++)Bc(t,e)||(t[e]=null);return t}function Ld(t){const e=Nne(null);for(const[n,r]of u8e(t))Bc(t,n)&&(Array.isArray(r)?e[n]=Son(r):r&&typeof r=="object"&&r.constructor===Object?e[n]=Ld(r):e[n]=r);return e}function sA(t,e){for(;t!==null;){const r=bon(t,e);if(r){if(r.get)return ia(r.get);if(typeof r.value=="function")return ia(r.value)}t=Con(t)}function n(){return null}return n}const mSe=oa(["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"]),LJ=oa(["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"]),MJ=oa(["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"]),Fon=oa(["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"]),OJ=oa(["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"]),Eon=oa(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),gSe=oa(["#text"]),ySe=oa(["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"]),BJ=oa(["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"]),CSe=oa(["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"]),r$=oa(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Aon=sc(/\{\{[\w\W]*|[\w\W]*\}\}/gm),_on=sc(/<%[\w\W]*|[\w\W]*%>/gm),Ron=sc(/\$\{[\w\W]*/gm),Don=sc(/^data-[\-\w.\u00B7-\uFFFF]+$/),Non=sc(/^aria-[\-\w]+$/),c8e=sc(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Lon=sc(/^(?:\w+script|data):/i),Mon=sc(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),d8e=sc(/^html$/i),Oon=sc(/^[a-z][.\w]*(-[.\w]+)+$/i);var bSe=Object.freeze({__proto__:null,ARIA_ATTR:Non,ATTR_WHITESPACE:Mon,CUSTOM_ELEMENT:Oon,DATA_ATTR:Don,DOCTYPE_NAME:d8e,ERB_EXPR:_on,IS_ALLOWED_URI:c8e,IS_SCRIPT_OR_DATA:Lon,MUSTACHE_EXPR:Aon,TMPLIT_EXPR:Ron});const aA={element:1,text:3,progressingInstruction:7,comment:8,document:9},Bon=function(){return typeof window>"u"?null:window},Ion=function(t,e){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let n=null;const r="data-tt-policy-suffix";e&&e.hasAttribute(r)&&(n=e.getAttribute(r));const o="dompurify"+(n?"#"+n:"");try{return t.createPolicy(o,{createHTML(i){return i},createScriptURL(i){return i}})}catch{return console.warn("TrustedTypes policy "+o+" could not be created."),null}},vSe=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function h8e(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Bon();const e=y=>h8e(y);if(e.version="3.3.1",e.removed=[],!t||!t.document||t.document.nodeType!==aA.document||!t.Element)return e.isSupported=!1,e;let{document:n}=t;const r=n,o=r.currentScript,{DocumentFragment:i,HTMLTemplateElement:s,Node:a,Element:l,NodeFilter:u,NamedNodeMap:c=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:d,DOMParser:h,trustedTypes:f}=t,p=l.prototype,m=sA(p,"cloneNode"),g=sA(p,"remove"),C=sA(p,"nextSibling"),b=sA(p,"childNodes"),v=sA(p,"parentNode");if(typeof s=="function"){const y=n.createElement("template");y.content&&y.content.ownerDocument&&(n=y.content.ownerDocument)}let w,x="";const{implementation:S,createNodeIterator:F,createDocumentFragment:_,getElementsByTagName:R}=n,{importNode:D}=r;let E=vSe();e.isSupported=typeof u8e=="function"&&typeof v=="function"&&S&&S.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:A,ERB_EXPR:B,TMPLIT_EXPR:I,DATA_ATTR:W,ARIA_ATTR:P,IS_SCRIPT_OR_DATA:H,ATTR_WHITESPACE:pe,CUSTOM_ELEMENT:j}=bSe;let{IS_ALLOWED_URI:se}=bSe,L=null;const oe=wn({},[...mSe,...LJ,...MJ,...OJ,...gSe]);let $=null;const X=wn({},[...ySe,...BJ,...CSe,...r$]);let M=Object.seal(Nne(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}})),fe=null,de=null;const J=Object.seal(Nne(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let ft=!0,ct=!0,dt=!1,z=!0,V=!1,G=!0,Y=!1,re=!1,ie=!1,ae=!1,he=!1,q=!1,te=!0,ke=!1;const be="user-content-";let ge=!0,me=!1,ye={},le=null;const Ye=wn({},["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 en=null;const tn=wn({},["audio","video","img","source","image","track"]);let Ht=null;const Rn=wn({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Bt="http://www.w3.org/1998/Math/MathML",zt="http://www.w3.org/2000/svg",Te="http://www.w3.org/1999/xhtml";let ot=Te,mn=!1,gn=null;const li=wn({},[Bt,zt,Te],DJ);let Gt=wn({},["mi","mo","mn","ms","mtext"]),Yt=wn({},["annotation-xml"]);const ui=wn({},["title","style","font","a","script"]);let St=null;const ci=["application/xhtml+xml","text/html"],di="text/html";let Z=null,wt=null;const hi=n.createElement("form"),pr=function(y){return y instanceof RegExp||y instanceof Function},Vn=function(){let y=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(wt&&wt===y)){if((!y||typeof y!="object")&&(y={}),y=Ld(y),St=ci.indexOf(y.PARSER_MEDIA_TYPE)===-1?di:y.PARSER_MEDIA_TYPE,Z=St==="application/xhtml+xml"?DJ:lV,L=Bc(y,"ALLOWED_TAGS")?wn({},y.ALLOWED_TAGS,Z):oe,$=Bc(y,"ALLOWED_ATTR")?wn({},y.ALLOWED_ATTR,Z):X,gn=Bc(y,"ALLOWED_NAMESPACES")?wn({},y.ALLOWED_NAMESPACES,DJ):li,Ht=Bc(y,"ADD_URI_SAFE_ATTR")?wn(Ld(Rn),y.ADD_URI_SAFE_ATTR,Z):Rn,en=Bc(y,"ADD_DATA_URI_TAGS")?wn(Ld(tn),y.ADD_DATA_URI_TAGS,Z):tn,le=Bc(y,"FORBID_CONTENTS")?wn({},y.FORBID_CONTENTS,Z):Ye,fe=Bc(y,"FORBID_TAGS")?wn({},y.FORBID_TAGS,Z):Ld({}),de=Bc(y,"FORBID_ATTR")?wn({},y.FORBID_ATTR,Z):Ld({}),ye=Bc(y,"USE_PROFILES")?y.USE_PROFILES:!1,ft=y.ALLOW_ARIA_ATTR!==!1,ct=y.ALLOW_DATA_ATTR!==!1,dt=y.ALLOW_UNKNOWN_PROTOCOLS||!1,z=y.ALLOW_SELF_CLOSE_IN_ATTR!==!1,V=y.SAFE_FOR_TEMPLATES||!1,G=y.SAFE_FOR_XML!==!1,Y=y.WHOLE_DOCUMENT||!1,ae=y.RETURN_DOM||!1,he=y.RETURN_DOM_FRAGMENT||!1,q=y.RETURN_TRUSTED_TYPE||!1,ie=y.FORCE_BODY||!1,te=y.SANITIZE_DOM!==!1,ke=y.SANITIZE_NAMED_PROPS||!1,ge=y.KEEP_CONTENT!==!1,me=y.IN_PLACE||!1,se=y.ALLOWED_URI_REGEXP||c8e,ot=y.NAMESPACE||Te,Gt=y.MATHML_TEXT_INTEGRATION_POINTS||Gt,Yt=y.HTML_INTEGRATION_POINTS||Yt,M=y.CUSTOM_ELEMENT_HANDLING||{},y.CUSTOM_ELEMENT_HANDLING&&pr(y.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(M.tagNameCheck=y.CUSTOM_ELEMENT_HANDLING.tagNameCheck),y.CUSTOM_ELEMENT_HANDLING&&pr(y.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(M.attributeNameCheck=y.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),y.CUSTOM_ELEMENT_HANDLING&&typeof y.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(M.allowCustomizedBuiltInElements=y.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),V&&(ct=!1),he&&(ae=!0),ye&&(L=wn({},gSe),$=[],ye.html===!0&&(wn(L,mSe),wn($,ySe)),ye.svg===!0&&(wn(L,LJ),wn($,BJ),wn($,r$)),ye.svgFilters===!0&&(wn(L,MJ),wn($,BJ),wn($,r$)),ye.mathMl===!0&&(wn(L,OJ),wn($,CSe),wn($,r$))),y.ADD_TAGS&&(typeof y.ADD_TAGS=="function"?J.tagCheck=y.ADD_TAGS:(L===oe&&(L=Ld(L)),wn(L,y.ADD_TAGS,Z))),y.ADD_ATTR&&(typeof y.ADD_ATTR=="function"?J.attributeCheck=y.ADD_ATTR:($===X&&($=Ld($)),wn($,y.ADD_ATTR,Z))),y.ADD_URI_SAFE_ATTR&&wn(Ht,y.ADD_URI_SAFE_ATTR,Z),y.FORBID_CONTENTS&&(le===Ye&&(le=Ld(le)),wn(le,y.FORBID_CONTENTS,Z)),y.ADD_FORBID_CONTENTS&&(le===Ye&&(le=Ld(le)),wn(le,y.ADD_FORBID_CONTENTS,Z)),ge&&(L["#text"]=!0),Y&&wn(L,["html","head","body"]),L.table&&(wn(L,["tbody"]),delete fe.tbody),y.TRUSTED_TYPES_POLICY){if(typeof y.TRUSTED_TYPES_POLICY.createHTML!="function")throw iA('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof y.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw iA('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');w=y.TRUSTED_TYPES_POLICY,x=w.createHTML("")}else w===void 0&&(w=Ion(f,o)),w!==null&&typeof x=="string"&&(x=w.createHTML(""));oa&&oa(y),wt=y}},mr=wn({},[...LJ,...MJ,...Fon]),gr=wn({},[...OJ,...Eon]),fi=function(y){let k=v(y);(!k||!k.tagName)&&(k={namespaceURI:ot,tagName:"template"});const T=lV(y.tagName),O=lV(k.tagName);return gn[y.namespaceURI]?y.namespaceURI===zt?k.namespaceURI===Te?T==="svg":k.namespaceURI===Bt?T==="svg"&&(O==="annotation-xml"||Gt[O]):!!mr[T]:y.namespaceURI===Bt?k.namespaceURI===Te?T==="math":k.namespaceURI===zt?T==="math"&&Yt[O]:!!gr[T]:y.namespaceURI===Te?k.namespaceURI===zt&&!Yt[O]||k.namespaceURI===Bt&&!Gt[O]?!1:!gr[T]&&(ui[T]||!mr[T]):!!(St==="application/xhtml+xml"&&gn[y.namespaceURI]):!1},rt=function(y){rA(e.removed,{element:y});try{v(y).removeChild(y)}catch{g(y)}},st=function(y,k){try{rA(e.removed,{attribute:k.getAttributeNode(y),from:k})}catch{rA(e.removed,{attribute:null,from:k})}if(k.removeAttribute(y),y==="is")if(ae||he)try{rt(k)}catch{}else try{k.setAttribute(y,"")}catch{}},yr=function(y){let k=null,T=null;if(ie)y="<remove></remove>"+y;else{const K=NJ(y,/^[\r\n\t ]+/);T=K&&K[0]}St==="application/xhtml+xml"&&ot===Te&&(y='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+y+"</body></html>");const O=w?w.createHTML(y):y;if(ot===Te)try{k=new h().parseFromString(O,St)}catch{}if(!k||!k.documentElement){k=S.createDocument(ot,"template",null);try{k.documentElement.innerHTML=mn?x:O}catch{}}const ne=k.body||k.documentElement;return y&&T&&ne.insertBefore(n.createTextNode(T),ne.childNodes[0]||null),ot===Te?R.call(k,Y?"html":"body")[0]:Y?k.documentElement:ne},Cr=function(y){return F.call(y.ownerDocument||y,y,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT|u.SHOW_PROCESSING_INSTRUCTION|u.SHOW_CDATA_SECTION,null)},zn=function(y){return y instanceof d&&(typeof y.nodeName!="string"||typeof y.textContent!="string"||typeof y.removeChild!="function"||!(y.attributes instanceof c)||typeof y.removeAttribute!="function"||typeof y.setAttribute!="function"||typeof y.namespaceURI!="string"||typeof y.insertBefore!="function"||typeof y.hasChildNodes!="function")},br=function(y){return typeof a=="function"&&y instanceof a};function Xe(y,k,T){n$(y,O=>{O.call(e,k,T,wt)})}const vr=function(y){let k=null;if(Xe(E.beforeSanitizeElements,y,null),zn(y))return rt(y),!0;const T=Z(y.nodeName);if(Xe(E.uponSanitizeElement,y,{tagName:T,allowedTags:L}),G&&y.hasChildNodes()&&!br(y.firstElementChild)&&es(/<[/\w!]/g,y.innerHTML)&&es(/<[/\w!]/g,y.textContent)||y.nodeType===aA.progressingInstruction||G&&y.nodeType===aA.comment&&es(/<[/\w]/g,y.data))return rt(y),!0;if(!(J.tagCheck instanceof Function&&J.tagCheck(T))&&(!L[T]||fe[T])){if(!fe[T]&&xr(T)&&(M.tagNameCheck instanceof RegExp&&es(M.tagNameCheck,T)||M.tagNameCheck instanceof Function&&M.tagNameCheck(T)))return!1;if(ge&&!le[T]){const O=v(y)||y.parentNode,ne=b(y)||y.childNodes;if(ne&&O){const K=ne.length;for(let Se=K-1;Se>=0;--Se){const we=m(ne[Se],!0);we.__removalCount=(y.__removalCount||0)+1,O.insertBefore(we,C(y))}}}return rt(y),!0}return y instanceof l&&!fi(y)||(T==="noscript"||T==="noembed"||T==="noframes")&&es(/<\/no(script|embed|frames)/i,y.innerHTML)?(rt(y),!0):(V&&y.nodeType===aA.text&&(k=y.textContent,n$([A,B,I],O=>{k=oA(k,O," ")}),y.textContent!==k&&(rA(e.removed,{element:y.cloneNode()}),y.textContent=k)),Xe(E.afterSanitizeElements,y,null),!1)},wr=function(y,k,T){if(te&&(k==="id"||k==="name")&&(T in n||T in hi))return!1;if(!(ct&&!de[k]&&es(W,k))&&!(ft&&es(P,k))&&!(J.attributeCheck instanceof Function&&J.attributeCheck(k,y))){if(!$[k]||de[k]){if(!(xr(y)&&(M.tagNameCheck instanceof RegExp&&es(M.tagNameCheck,y)||M.tagNameCheck instanceof Function&&M.tagNameCheck(y))&&(M.attributeNameCheck instanceof RegExp&&es(M.attributeNameCheck,k)||M.attributeNameCheck instanceof Function&&M.attributeNameCheck(k,y))||k==="is"&&M.allowCustomizedBuiltInElements&&(M.tagNameCheck instanceof RegExp&&es(M.tagNameCheck,T)||M.tagNameCheck instanceof Function&&M.tagNameCheck(T))))return!1}else if(!Ht[k]&&!es(se,oA(T,pe,""))&&!((k==="src"||k==="xlink:href"||k==="href")&&y!=="script"&&xon(T,"data:")===0&&en[y])&&!(dt&&!es(H,oA(T,pe,"")))&&T)return!1}return!0},xr=function(y){return y!=="annotation-xml"&&NJ(y,j)},kr=function(y){Xe(E.beforeSanitizeAttributes,y,null);const{attributes:k}=y;if(!k||zn(y))return;const T={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:$,forceKeepAttr:void 0};let O=k.length;for(;O--;){const ne=k[O],{name:K,namespaceURI:Se,value:we}=ne,xe=Z(K),yn=we;let ce=K==="value"?yn:kon(yn);if(T.attrName=xe,T.attrValue=ce,T.keepAttr=!0,T.forceKeepAttr=void 0,Xe(E.uponSanitizeAttribute,y,T),ce=T.attrValue,ke&&(xe==="id"||xe==="name")&&(st(K,y),ce=be+ce),G&&es(/((--!?|])>)|<\/(style|title|textarea)/i,ce)){st(K,y);continue}if(xe==="attributename"&&NJ(ce,"href")){st(K,y);continue}if(T.forceKeepAttr)continue;if(!T.keepAttr){st(K,y);continue}if(!z&&es(/\/>/i,ce)){st(K,y);continue}V&&n$([A,B,I],Oo=>{ce=oA(ce,Oo," ")});const nn=Z(y.nodeName);if(!wr(nn,xe,ce)){st(K,y);continue}if(w&&typeof f=="object"&&typeof f.getAttributeType=="function"&&!Se)switch(f.getAttributeType(nn,xe)){case"TrustedHTML":{ce=w.createHTML(ce);break}case"TrustedScriptURL":{ce=w.createScriptURL(ce);break}}if(ce!==yn)try{Se?y.setAttributeNS(Se,K,ce):y.setAttribute(K,ce),zn(y)?rt(y):pSe(e.removed)}catch{st(K,y)}}Xe(E.afterSanitizeAttributes,y,null)},pi=function y(k){let T=null;const O=Cr(k);for(Xe(E.beforeSanitizeShadowDOM,k,null);T=O.nextNode();)Xe(E.uponSanitizeShadowNode,T,null),vr(T),kr(T),T.content instanceof i&&y(T.content);Xe(E.afterSanitizeShadowDOM,k,null)};return e.sanitize=function(y){let k=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},T=null,O=null,ne=null,K=null;if(mn=!y,mn&&(y="<!-->"),typeof y!="string"&&!br(y))if(typeof y.toString=="function"){if(y=y.toString(),typeof y!="string")throw iA("dirty is not a string, aborting")}else throw iA("toString is not a function");if(!e.isSupported)return y;if(re||Vn(k),e.removed=[],typeof y=="string"&&(me=!1),me){if(y.nodeName){const xe=Z(y.nodeName);if(!L[xe]||fe[xe])throw iA("root node is forbidden and cannot be sanitized in-place")}}else if(y instanceof a)T=yr("<!---->"),O=T.ownerDocument.importNode(y,!0),O.nodeType===aA.element&&O.nodeName==="BODY"||O.nodeName==="HTML"?T=O:T.appendChild(O);else{if(!ae&&!V&&!Y&&y.indexOf("<")===-1)return w&&q?w.createHTML(y):y;if(T=yr(y),!T)return ae?null:q?x:""}T&&ie&&rt(T.firstChild);const Se=Cr(me?y:T);for(;ne=Se.nextNode();)vr(ne),kr(ne),ne.content instanceof i&&pi(ne.content);if(me)return y;if(ae){if(he)for(K=_.call(T.ownerDocument);T.firstChild;)K.appendChild(T.firstChild);else K=T;return($.shadowroot||$.shadowrootmode)&&(K=D.call(r,K,!0)),K}let we=Y?T.outerHTML:T.innerHTML;return Y&&L["!doctype"]&&T.ownerDocument&&T.ownerDocument.doctype&&T.ownerDocument.doctype.name&&es(d8e,T.ownerDocument.doctype.name)&&(we="<!DOCTYPE "+T.ownerDocument.doctype.name+`>
239
+ `}),jp=t=>({borderTop:t$(t.border.Top,t.themeColors),borderRight:t$(t.border.Right,t.themeColors),borderBottom:t$(t.border.Bottom,t.themeColors),borderLeft:t$(t.border.Left,t.themeColors)}),BO=t=>t.borderCollapse!==void 0?{borderCollapse:EYt(t.borderCollapse)}:{borderCollapse:"collapse"},EYt=t=>{switch(t){case"Collapse":return"collapse";case"Separate":return"separate";default:return lu(t)}},AYt=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 lu(t.Discriminator)}}}),nd=t=>AYt(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}),IKe=t=>({Match:e=>{switch(t){case"Left":return e.Left();case"Center":return e.Center();case"Right":return e.Right();default:return lu(t)}}}),_Yt=t=>t.containerAlign?IKe(t.containerAlign).Match({Left:()=>({textAlign:"left"}),Center:()=>({textAlign:"center"}),Right:()=>({textAlign:"right"})}):{},Zf=t=>t.containerAlign?IKe(t.containerAlign).Match({Left:()=>"left",Center:()=>"center",Right:()=>"right"}):"center",RYt=pt({__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,r=e,o=Xt({ifResult:!1,isLoading:!0});return n.deps.boolExpressionEvaluator({boolExpression:n.element.Predicate,context:n.context}).then(i=>{o.ifResult=i,o.isLoading=!1}),(i,s)=>(U(!0),ue(xt,null,Kr(o.ifResult?n.element.True:n.element.False,(a,l)=>(U(),kt(Pu,{key:l,deps:n.deps,theme:n.theme,element:a,context:n.context,path:[...n.path,o.ifResult?"True":"False",l],selectedElementPath:n.selectedElementPath,onOnImageSizeAdjusted:s[0]||(s[0]=u=>r("onImageSizeAdjusted",u)),onOnImageOriginalSizeAdjusted:s[1]||(s[1]=u=>r("onImageOriginalSizeAdjusted",u)),onOnElementClicked:s[2]||(s[2]=u=>r("onElementClicked",u)),onOnElementUpdatedEvent:s[3]||(s[3]=u=>r("onElementUpdatedEvent",u)),onOnElementRemoved:s[4]||(s[4]=u=>r("onElementRemoved",u))},null,8,["deps","theme","element","context","path","selectedElementPath"]))),128))}}),IO=t=>({paddingTop:ko({paddingExpression:t.paddings.Top,themeComponentPaddings:t.themeComponentPaddings,themeBodyPaddings:t.themeBodyPaddings})+"px",paddingRight:ko({paddingExpression:t.paddings.Right,themeComponentPaddings:t.themeComponentPaddings,themeBodyPaddings:t.themeBodyPaddings})+"px",paddingBottom:ko({paddingExpression:t.paddings.Bottom,themeComponentPaddings:t.themeComponentPaddings,themeBodyPaddings:t.themeBodyPaddings})+"px",paddingLeft:ko({paddingExpression:t.paddings.Left,themeComponentPaddings:t.themeComponentPaddings,themeBodyPaddings:t.themeBodyPaddings})+"px"}),DYt=zF,NYt=t=>DYt(t.width).Match({Auto:()=>"initial",Pixel:e=>e.Value+"px",Percentage:e=>e.Value+"%"}),LYt=["align"],MYt=pt({__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,r=e;return(o,i)=>(U(),ue("table",{class:"heightContainerRender",style:Be([{"border-spacing":"0","border-collapse":"separate"},{width:ee(NYt)({width:n.element.Width})}])},[N("tbody",null,[N("tr",null,[N("td",{align:ee(Zf)({containerAlign:n.element.ContainerAlign}),style:Be([ee(IO)({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:ee(nd)({color:n.element.BackgroundColor,themeColors:n.theme.Colors})??"inherit"},ee(jp)({border:n.element.Border,themeColors:n.theme.Colors}),ee(Ah)({borderRadius:n.element.BorderRadius,borderRadiusCard:n.theme.BorderRadiusCard,bodyBorderRadius:n.theme.BorderRadius,borderButtonRadius:n.theme.BorderRadiusButton,borderBannerRadius:n.theme.BorderRadiusBanner})])},[(U(!0),ue(xt,null,Kr(n.element.Elements,(s,a)=>(U(),kt(Pu,{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=>r("onImageSizeAdjusted",l)),onOnImageOriginalSizeAdjusted:i[1]||(i[1]=l=>r("onImageOriginalSizeAdjusted",l)),onOnElementClicked:i[2]||(i[2]=l=>r("onElementClicked",l)),onOnElementUpdatedEvent:i[3]||(i[3]=l=>r("onElementUpdatedEvent",l)),onOnElementRemoved:i[4]||(i[4]=l=>r("onElementRemoved",l))},null,8,["deps","theme","element","path","selectedElementPath","context"]))),128))],12,LYt)])])],4))}}),OYt=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()}}}),PL=t=>OYt(t.contentAlign).Match({Left:()=>({display:"block",textAlign:"left"}),Center:()=>({display:"block",textAlign:"center"}),Right:()=>({display:"block",textAlign:"right"}),Inline:()=>({})}),BYt=["href"],IYt=["src","alt"],$Yt=["src","alt"],PYt=pt({__name:"Image",props:{deps:{},theme:{},element:{},path:{},context:{type:[String,Number,Boolean,Array,Object]}},emits:["onImageOriginalSizeAdjusted","onImageSizeAdjusted","onElementClicked"],setup(t,{emit:e}){const n=u=>{l("onImageOriginalSizeAdjusted",{Path:r.path,OriginalHeight:u.target.naturalHeight,OriginalWidth:u.target.naturalWidth})},r=t,o=Xt({href:"",src:"",alt:"",isLoaded:!1}),i=Q(()=>(r.element.IsRetina?r.element.OriginalWidth/2:r.element.OriginalWidth)+"px"),s=async u=>r.deps.stringExpressionEvaluator({stringExpression:u,context:r.context}),a=async()=>{const[u,c,d]=await Promise.all([s(r.element.Src),s(r.element.HRef),s(r.element.Alt)]);o.href=c,o.src=u,o.alt=d,o.isLoaded=!0};En(()=>[r.element.Src,r.element.HRef,r.element.Alt,r.context],()=>a()),a();const l=e;return(u,c)=>r.element.IsLink?(U(),ue("a",{key:0,href:o.href,style:Be([ee(PL)({contentAlign:r.element.ContentAlign})]),onClick:c[0]||(c[0]=Po(()=>l("onElementClicked"),["prevent"]))},[o.isLoaded?_n((U(),ue("img",{key:0,class:Ve(["Image cursor-pointer",{"img-responsive":r.element.IsResponsive}]),src:o.src,alt:o.alt,style:Be([ee(Ah)({borderRadius:r.element.BorderRadius,borderRadiusCard:r.theme.BorderRadiusCard,bodyBorderRadius:r.theme.BorderRadius,borderButtonRadius:r.theme.BorderRadiusButton,borderBannerRadius:r.theme.BorderRadiusBanner}),ee(jp)({border:r.element.Border,themeColors:r.theme.Colors}),{width:i.value,maxWidth:"100%"},{verticalAlign:r.element.VerticalAlign}]),onLoad:n},null,46,IYt)),[[ee(IL),({width:d,height:h})=>l("onImageSizeAdjusted",{Path:r.path,AdjustedHeight:h,AdjustedWidth:d})]]):it("",!0)],12,BYt)):(U(),ue("span",{key:1,style:Be([ee(PL)({contentAlign:r.element.ContentAlign})]),onClick:c[1]||(c[1]=Po(()=>l("onElementClicked"),["prevent"]))},[o.isLoaded?_n((U(),ue("img",{key:0,class:Ve(["Image cursor-pointer",{"img-responsive":r.element.IsResponsive}]),src:o.src,alt:o.alt,style:Be([ee(Ah)({borderRadius:r.element.BorderRadius,borderRadiusCard:r.theme.BorderRadiusCard,bodyBorderRadius:r.theme.BorderRadius,borderButtonRadius:r.theme.BorderRadiusButton,borderBannerRadius:r.theme.BorderRadiusBanner}),ee(jp)({border:r.element.Border,themeColors:r.theme.Colors}),{width:i.value,maxWidth:"100%"},{verticalAlign:r.element.VerticalAlign}]),onLoad:n},null,46,$Yt)),[[ee(IL),({width:d,height:h})=>l("onImageSizeAdjusted",{Path:r.path,AdjustedHeight:h,AdjustedWidth:d})]]):it("",!0)],4))}}),VYt=ht(PYt,[["__scopeId","data-v-eaaeacec"]]),zYt=zF,HYt=t=>t.width===void 0?{}:zYt(t.width).Match({Auto:()=>({width:"auto"}),Pixel:e=>({width:e.Value+"px"}),Percentage:e=>({width:e.Value+"%"})}),WYt=t=>{switch(t){case"Auto":return{width:"auto"};case"FullWidth":return{width:"100%"};default:return lu(t)}},jYt=pt({__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,r=e;return(o,i)=>(U(),ue("table",{class:"oneLineList",style:Be([{"border-spacing":"0","border-collapse":"collapse"},[ee(WYt)(n.element.ContainerWidth)]])},[N("tbody",null,[N("tr",null,[(U(!0),ue(xt,null,Kr(n.element.Elements,(s,a)=>(U(),ue("td",{key:a,class:"oneLineListItem",style:Be([ee(IO)({paddings:n.element.ItemPaddings,themeComponentPaddings:n.theme.ComponentPaddings,themeBodyPaddings:n.theme.BodyPaddings}),ee(HYt)({width:n.element.ItemWidth}),{lineHeight:"normal"}])},[(U(),kt(Pu,{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=>r("onImageSizeAdjusted",l)),onOnImageOriginalSizeAdjusted:i[1]||(i[1]=l=>r("onImageOriginalSizeAdjusted",l)),onOnElementClicked:i[2]||(i[2]=l=>r("onElementClicked",l)),onOnElementUpdatedEvent:i[3]||(i[3]=l=>r("onElementUpdatedEvent",l)),onOnElementRemoved:i[4]||(i[4]=l=>r("onElementRemoved",l))},null,8,["deps","theme","element","path","selectedElementPath","context"]))],4))),128))])])],4))}}),UYt={style:{"border-spacing":"0","border-collapse":"collapse",width:"100%"}},KYt=pt({__name:"Spacer",props:{theme:{},element:{}},emits:["onElementClicked"],setup(t,{emit:e}){const n=t,r=e;return(o,i)=>(U(),ue("table",{class:"Spacer",width:"100%",style:{"border-spacing":"0","border-collapse":"collapse",width:"100%"},onClick:i[0]||(i[0]=()=>r("onElementClicked"))},[N("tbody",null,[N("tr",null,[N("td",{valign:"middle",style:Be([{height:ee(ko)({paddingExpression:n.element.Height,themeComponentPaddings:n.theme.ComponentPaddings,themeBodyPaddings:n.theme.BodyPaddings})+"px"}])},[N("table",UYt,[N("tbody",null,[N("tr",null,[N("td",{style:Be([[{borderTop:n.element.Weight+"px",borderStyle:n.element.Weight>0?"solid":"none",borderColor:ee(nd)({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)])])]))}}),Rne={beforeMount(t,e){t.innerHTML=axe.sanitize(e.value)},beforeUpdate(t,e){t.innerHTML=axe.sanitize(e.value)}},qYt=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)}}}),W9=t=>qYt(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}),JYt=t=>({Match:e=>{switch(t){case"None":return e.None();case"Underline":return e.Underline();case"LineThrough":return e.LineThrough()}}}),mde=t=>JYt(t.textDecoration).Match({None:()=>"none",Underline:()=>"underline",LineThrough:()=>"line-through"}),$Ke=t=>({fontSize:t.customFontSettings.FontSize,lineHeight:t.customFontSettings.LineHeight,fontWeight:t.customFontSettings.IsBold?"bold":"normal",fontStyle:t.customFontSettings.IsItalic?"italic":"normal",textDecoration:mde({textDecoration:t.customFontSettings.Decoration}),fontFamily:t.customFontSettings.FontFamily,color:W9({fontColor:t.customFontSettings.FontColor,themeColors:t.themeColors})}),PKe=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 lu(t.Discriminator)}}}),GYt=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)}}}),YYt=t=>GYt(t.fontStyleColor).Match({FontStyle:()=>PKe(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=>nd({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}),VKe=["Arial","Georgia","Tahoma","TimesNewRoman","Verdana"],Dne={Arial:"Arial",Georgia:"Georgia",Tahoma:"Tahoma",TimesNewRoman:"Times New Roman",Verdana:"Verdana"},gde=t=>({fontSize:t.fontSize+"px",lineHeight:t.lineHeight+"px",fontWeight:t.fontWeight,fontStyle:t.fontStyle,fontFamily:Dne[t.fontFamily],textDecoration:t.textDecoration,color:t.color}),yde=t=>{const e=n=>({fontSize:n.FontSize,lineHeight:n.LineHeight,fontWeight:n.IsBold?"bold":"normal",fontStyle:n.IsItalic?"italic":"normal",fontFamily:t.fontFamily,textDecoration:mde({textDecoration:n.Decoration}),color:YYt({fontStyleColor:t.fontStyle.FontColor,fontStyle:t.fontStyle,themeColors:t.themeColors})});return PKe(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=>$Ke({customFontSettings:n,themeColors:t.themeColors})})},XYt=t=>({Match:e=>{switch(t.Discriminator){case"Theme":return e.Theme();case"Custom":return e.Custom(t.CustomValue);default:return lu(t.Discriminator)}}}),QYt=t=>XYt(t.buttonPaddings).Match({Theme:()=>({TopBottom:t.themeButtonPaddings.TopBottom,LeftRight:t.themeButtonPaddings.LeftRight}),Custom:e=>({TopBottom:e.TopBottom,LeftRight:e.LeftRight})}),zKe=t=>t.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#039;"),ZYt=["align"],eXt={class:"Button"},tXt=["href"],nXt=pt({__name:"ButtonVue",props:{deps:{},theme:{},element:{},context:{type:[String,Number,Boolean,Array,Object]}},emits:["onElementClicked"],setup(t,{emit:e}){const n=t,r=Q(()=>gde(yde({fontFamily:n.theme.FontFamily,fontStyle:n.element.TextStyle,themeDefinedFontSettings:n.theme.FontSettingsPresets,themeColors:n.theme.Colors}))),o=Q(()=>aV({borderColor:n.element.Border.Left.Color,themeColors:n.theme.Colors})),i=Q(()=>QYt({buttonPaddings:n.element.Paddings,themeButtonPaddings:n.theme.ButtonPaddings})),s=Q(()=>nd({color:n.element.BackgroundColor,themeColors:n.theme.Colors})),a=Q(()=>{switch(n.element.ContentAlign){case"Center":return"center";case"Left":return"left";case"Right":return"right";default:return"center"}}),l=Xt({href:"",text:"",isLoading:!0}),u=n.deps.stringExpressionEvaluator,c=()=>{Promise.all([u({stringExpression:n.element.HRef,context:n.context}),u({stringExpression:n.element.Text,context:n.context})]).then(([h,f])=>{l.href=h,l.text=zKe(f),l.isLoading=!1})};c(),En(()=>[n.element.HRef,n.element.Text,n.context],()=>c());const d=e;return(h,f)=>(U(),ue("table",{style:{"border-spacing":"0","border-collapse":"collapse",width:"100%"},onClick:f[1]||(f[1]=Po(p=>d("onElementClicked"),["prevent"]))},[N("tbody",null,[N("tr",null,[N("td",{align:a.value},[N("div",eXt,[N("a",{style:Be([{display:"block","text-decoration":"none"},[r.value]]),href:l.href,onClick:f[0]||(f[0]=Po(()=>{},["prevent"]))},[N("table",{style:Be([[{backgroundColor:s.value},ee(Ah)({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"},ee(jp)({border:n.element.Border,themeColors:t.theme.Colors}),{borderColor:o.value}],{"text-align":"center","border-spacing":"0","border-collapse":"separate"}])},[N("tbody",null,[N("tr",null,[N("td",{align:"center",style:Be([{"line-height":"normal"},[{paddingTop:i.value.TopBottom+"px",paddingBottom:i.value.TopBottom+"px",paddingLeft:i.value.LeftRight+"px",paddingRight:i.value.LeftRight+"px"}]])},[_n(N("p",{class:"user-select-none",style:Be([r.value])},null,4),[[ee(Rne),l.text]])],4)])])],4)],12,tXt)])],8,ZYt)])])]))}}),rXt=ht(nXt,[["__scopeId","data-v-0c0a0e61"]]),oXt=["href"],iXt=pt({__name:"SpanText",props:{deps:{},theme:{},element:{},context:{type:[String,Number,Boolean,Array,Object]}},emits:["onElementClicked"],setup(t,{emit:e}){const n=t,r=n.deps.stringExpressionEvaluator,o=Q(()=>{const l=yde({fontFamily:n.theme.FontFamily,fontStyle:n.element.Style,themeDefinedFontSettings:n.theme.FontSettingsPresets,themeColors:n.theme.Colors});if(n.element.Style.Discriminator==="Custom"){const u=$Ke({customFontSettings:n.element.Style.CustomFontSettings,themeColors:n.theme.Colors});return{...u,fontSize:u.fontSize+"px",lineHeight:u.lineHeight+"px",minHeight:n.element.MinNumberOfLines*l.lineHeight+"px"}}return{minHeight:n.element.MinNumberOfLines*l.lineHeight+"px",color:l.color}}),i=Xt({href:"",text:"",isLoading:!0}),s=()=>{Promise.all([r({stringExpression:n.element.HRef,context:n.context}),r({stringExpression:n.element.Text,context:n.context})]).then(([l,u])=>{i.href=l,i.text=zKe(u),i.isLoading=!1})};s(),En(()=>[n.context,n.element.HRef,n.element.Text],()=>s());const a=e;return(l,u)=>n.element.IsLink?_n((U(),ue("a",{key:0,href:i.href,class:Ve(["SpanText cursor-pointer user-select-none",n.element.Style.Discriminator]),style:Be([{margin:"0"},[o.value,ee(PL)({contentAlign:n.element.ContentAlign})]]),onClick:u[0]||(u[0]=Po(()=>a("onElementClicked"),["prevent"]))},null,14,oXt)),[[ee(Rne),i.text]]):_n((U(),ue("span",{key:1,class:Ve(["SpanText cursor-pointer user-select-none",n.element.Style.Discriminator]),style:Be([{margin:"0"},[o.value,ee(PL)({contentAlign:n.element.ContentAlign})]]),onClick:u[1]||(u[1]=Po(()=>a("onElementClicked"),["prevent"]))},null,6)),[[ee(Rne),i.text]])}}),sXt=ht(iXt,[["__scopeId","data-v-44b3ff94"]]),il=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:mde({textDecoration:t.themeFontSettings.Decoration}),color:t.themeColor}),aXt={cancelButton:"Cancel",applyButton:"Delete"},lXt={cancelButton:"Отмена",applyButton:"Удалить"},GTe=Ir({en:aXt,ru:lXt}),uXt={class:"bootstrap-styles px-11 py-7 text-start"},cXt=pt({__name:"RemoveConfirmModalWindow",props:{headerText:{},deps:{}},emits:["cancel","confirmed"],setup(t,{emit:e}){const n=t,r=()=>{i("cancel")},o={cancelButton:GTe({localeKey:n.deps.localeKey}).cancelButton,applyButton:GTe({localeKey:n.deps.localeKey}).applyButton},i=e;return(s,a)=>(U(),kt(w7e,{headerText:n.headerText,class:"remove-element-confirm-modal-window",onClose:a[2]||(a[2]=()=>r())},{body:ky(()=>[N("div",uXt,[B3(s.$slots,"body-content")])]),"footer-actions":ky(()=>[N("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]=Po(l=>r(),["stop"]))},er(o.cancelButton),1),N("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]=Po(l=>i("confirmed"),["stop"]))},er(o.applyButton),1)]),_:3},8,["headerText"]))}}),dXt={removeWindowTitle:"Delete element",removeWindowDescription:"Are you sure you want to delete the text element?"},hXt={removeWindowTitle:"Удаление элемента",removeWindowDescription:"Вы действительно хотите удалить элемент ?"},YTe=Ir({en:dXt,ru:hXt}),XTe=t=>({type:"doc",content:t.Content.map(fXt)}),fXt=t=>"ParagraphNode"in t?jKe(t):"BulletListNode"in t?pXt(t):"OrderedListNode"in t?mXt(t):"DataFieldNode"in t?WKe(t):lu(t),HKe=t=>({type:"listItem",content:t.Content.map(e=>"ParagraphNode"in e?jKe(e):"ImageNode"in e?UKe(e):lu(e))}),WKe=t=>({type:"dataField",marks:Cde({textStyle:t.DataFieldNode.TextStyle,commonLinkMark:t.DataFieldNode.CommonLinkMark}),attrs:{stringExpression:t.DataFieldNode.StringExpression}}),pXt=t=>({type:"bulletList",content:t.BulletListNode.Content.map(HKe),attrs:{themeName:t.BulletListNode.ListStyle}}),mXt=t=>({type:"orderedList",content:t.OrderedListNode.Content.map(HKe),attrs:{themeName:t.OrderedListNode.ListStyle}}),jKe=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(gXt)}},gXt=t=>"TextNode"in t?yXt(t):"HardBreakNode"in t?TXt():"ImageNode"in t?UKe(t):"DataFieldNode"in t?WKe(t):lu(t),Cde=t=>{const e=[];return t.textStyle&&e.push(xXt(t.textStyle)),t.commonLinkMark&&e.push(kXt(t.commonLinkMark)),e.filter(n=>n!==void 0)},yXt=t=>({type:"text",text:t.TextNode.Text,marks:Cde({textStyle:t.TextNode.TextStyle,commonLinkMark:t.TextNode.CommonLinkMark})}),CXt=t=>{switch(t){case"Normal":return"normal";case"Bold":return"bold";default:return"normal"}},bXt=t=>{switch(t){case"Normal":return"normal";case"Italic":return"italic";default:return"normal"}},vXt=t=>{switch(t){case"None":return"none";case"Uppercase":return"uppercase";default:return"none"}},wXt=t=>{switch(t){case"None":return"none";case"Underline":return"underline";case"LineThrough":return"line-through";default:return"none"}},xXt=t=>({type:"textStyle",attrs:{themeName:t.ThemeName,color:t.Style.Color,fontWeight:t.Style.FontWeight?CXt(t.Style.FontWeight):void 0,fontStyle:t.Style.FontStyle?bXt(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?vXt(t.Style.TextTransform):void 0,textDecoration:t.Style.TextDecoration?wXt(t.Style.TextDecoration):void 0}}),kXt=t=>zF(t).Match({LinkMark:e=>SXt({LinkMark:e}),UnsubscribeLinkMark:()=>FXt()}),TXt=()=>({type:"hardBreak"}),UKe=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:Cde({commonLinkMark:t.ImageNode.CommonLinkMark})}),SXt=t=>({type:"link",attrs:{href:t.LinkMark.Href}}),FXt=()=>({type:"unsubscribeLink"}),KKe=Kh.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:r,$from:o}=e.selection;return e.doc.textBetween(n,r," ").length?t().setMark("textStyle",{textTransform:"none"}).run():t().setTextSelection({from:o.pos-o.nodeBefore.nodeSize,to:o.pos+o.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})}}}}),EXt=Kh.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()}}}),AXt=Kh.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()}}}),_Xt=t=>Zn.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:r})=>{const{$from:o}=r.selection,i=o.parent,s=o.index();return i.child(s).type.name==="image"?!1:n().setMark("textStyle",{themeName:e}).run()},applySiblingNodeThemeSettings:()=>({chain:e,state:n})=>{const{from:r,to:o,$from:i}=n.selection,s=i.parent,a=i.index(),l=i.node(i.depth)?.type.name==="dataField"||s.maybeChild(a)?.type.name==="dataField",u=s.child(a).type.name==="image",c=p=>{const m="NormalText",g=p.index>0?s.child(p.index-1):void 0,C=p.index+1<s.childCount?s.child(p.index+1):void 0,b=g??C;if(b){const v=b.marks.find(w=>w.type.name==="textStyle");if(v)return v.attrs.themeName}return m};if(l){const p=c({index:a});return e().unsetMark("textStyle",{extendEmptyMarkRange:!0}).setThemeSettings(p).run()}if(u)return!1;const d=c({index:a}),h=i.nodeBefore?i.pos-i.nodeBefore.nodeSize:r,f=i.nodeAfter?i.pos+i.nodeAfter.nodeSize:o;return e().setTextSelection({from:h,to:f}).setThemeSettings(d).run()}}},addProseMirrorPlugins(){return[new Gr({key:new Lo("syncBlockTheme"),appendTransaction:(e,n,r)=>{const o=r.tr;let i=!1;return r.doc.descendants((s,a)=>{if(s.type.name==="bulletList"||s.type.name==="orderedList"){const l=s.firstChild?.firstChild?.firstChild;if(l){const u=l.marks.find(c=>c.type.name==="textStyle")?.attrs.themeName;u&&s.attrs.themeName!==u&&(o.setNodeMarkup(a,void 0,{...s.attrs,themeName:u}),i=!0)}}if(s.type.name==="paragraph"){const l=s.firstChild;if(l){const u=l.marks.find(c=>c.type.name==="textStyle")?.attrs.themeName;u&&s.attrs.themeName!==u&&(o.setNodeMarkup(a,void 0,{...s.attrs,themeName:u}),i=!0)}}}),i?o:null}})]}}),RXt=Kh.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:r,$from:o}=e.selection;return e.doc.textBetween(n,r," ").length?t().setMark("textStyle",{fontWeight:"normal"}).run():t().setTextSelection({from:o.pos-o.nodeBefore.nodeSize,to:o.pos+o.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})}}}}),DXt=Kh.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:r,$from:o}=e.selection;return e.doc.textBetween(n,r," ").length?t().setMark("textStyle",{fontStyle:"normal"}).run():t().setTextSelection({from:o.pos-o.nodeBefore.nodeSize,to:o.pos+o.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})}}}}),bde=Kh.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",ra(this.options.HTMLAttributes,t),0]},addCommands(){return{setUnsubscribeLink:()=>({chain:t})=>t().setMark("unsubscribeLink").focus().run(),unsetUnsubscribeLink:()=>({chain:t,state:e})=>{const{from:n,to:r}=e.selection,o=e.doc.textBetween(n,r," ");return e.doc.nodeAt(n)?.type.name==="image"?t().unsetMark("unsubscribeLink").focus().run():o.length?t().setTextSelection({from:n,to:n+o.length}).unsetMark("unsubscribeLink").focus().run():t().unsetMark("unsubscribeLink",{extendEmptyMarkRange:!0}).focus().run()}}}}),NXt=Kh.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:r,$from:o}=e.selection;return e.doc.textBetween(n,r," ").length?t().setMark("textStyle",{textDecoration:"none"}).run():t().setTextSelection({from:o.pos-o.nodeBefore.nodeSize,to:o.pos+o.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})}}}}),LXt=t=>{if(!t.content)throw new Error("Invalid document: content is missing");return{Content:t.content.map(e=>{switch(e.type){case"paragraph":return qKe(e);case"bulletList":return BXt(e);case"orderedList":return IXt(e);default:throw new Error(`Unknown node type: ${e.type}`)}})}},qKe=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 MXt(e);case"image":return GKe(e);case"hardBreak":return QTe();case"dataField":return OXt(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:[QTe()]}},vde=t=>{const e=t?t.find(r=>r.type==="textStyle"):void 0,n=t?t.find(r=>r.type==="link"||r.type==="unsubscribeLink"):void 0;return{TextStyle:e?WXt(e):void 0,CommonLinkMark:n?jXt(n):void 0}},MXt=t=>{if(typeof t.text!="string")throw new Error("Invalid text node: text is missing or not a string");const{TextStyle:e,CommonLinkMark:n}=vde(t.marks);return{TextNode:{Text:t.text,TextStyle:e,CommonLinkMark:n}}},QTe=()=>({HardBreakNode:{}}),OXt=t=>{if(!t.attrs)throw new Error("Invalid variable node: attrs is missing");const{TextStyle:e,CommonLinkMark:n}=vde(t.marks);return{DataFieldNode:{StringExpression:t.attrs.stringExpression,TextStyle:e,CommonLinkMark:n}}},BXt=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(JKe)}}},IXt=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(JKe)}}},JKe=t=>{if(!t.content)throw new Error("Invalid listItem: content is missing");return{Content:t.content.map(e=>{switch(e.type){case"paragraph":return qKe(e);case"image":return GKe(e);default:throw new Error(`Unknown node type: ${e.type}`)}})}},GKe=t=>{if(!t.attrs)throw new Error("Invalid image node: attrs is missing");const{CommonLinkMark:e}=vde(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}}},$Xt=t=>t==="bold"?"Bold":"Normal",PXt=t=>t==="italic"?"Italic":"Normal",VXt=t=>t,zXt=t=>{switch(t){case"uppercase":return"Uppercase";default:return"None"}},HXt=t=>{switch(t){case"underline":return"Underline";case"line-through":return"LineThrough";default:return"None"}},ZTe=t=>{const e=t.replace(/px$/,"");return parseInt(e,10)},WXt=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?$Xt(t.attrs.fontWeight):void 0,FontStyle:t.attrs.fontStyle?PXt(t.attrs.fontStyle):void 0,FontSize:t.attrs.fontSize?ZTe(t.attrs.fontSize):void 0,LineHeight:t.attrs.lineHeight?ZTe(t.attrs.lineHeight):void 0,FontFamily:t.attrs.fontFamily?VXt(t.attrs.fontFamily):void 0,TextTransform:t.attrs.textTransform?zXt(t.attrs.textTransform):void 0,TextDecoration:t.attrs.textDecoration?HXt(t.attrs.textDecoration):void 0}}},jXt=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}},YKe=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(","),r=n[0]?parseInt(n[0]):0,o=n[1]?parseInt(n[1]):0,i=n[2]?parseInt(n[2]):0;return`#${(1<<24|r<<16|o<<8|i).toString(16).slice(1)}`}if(t.startsWith("hsl")){const n=document.createElement("div");n.style.color=t,document.body.appendChild(n);const r=getComputedStyle(n).color;return document.body.removeChild(n),YKe(r)}const e=document.createElement("canvas").getContext("2d");return e?(e.fillStyle=t,e.fillStyle):null},UXt=t=>Zn.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",r=YKe(e.style.color)??"#000000";return{Discriminator:n,CustomValue:r}},renderHTML:e=>{if(!e.color)return{};const n=W9({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()}}}),KXt=Zn.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 VKe.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()}}}),qXt=t=>zF(t),JXt=t=>fd.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 r=e.attrs.stringExpression,o=qXt(r).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",ra(n,{class:"rich-text__variable","data-field":JSON.stringify(e.attrs.stringExpression),contenteditable:"false"}),o]},addCommands(){return{setVariable:e=>({chain:n,state:r})=>{const o=r.selection.$from.marks(),i=o.map(s=>({type:s.type.name,attrs:s.attrs}));return n().insertContent({type:this.name,attrs:{stringExpression:e,selectedMarks:o},marks:i}).focus().run()}}}}),XKe=t=>new Promise((e,n)=>{const r=new Image;r.onload=()=>{e({width:r.naturalWidth,height:r.naturalHeight})},r.onerror=n,r.src=t}),QKe=fd.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",ra(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[Q4t({find:/(?:^|\s)(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))$/,type:this.type,getAttributes:t=>{const[,,e,n,r]=t;return{src:n,alt:e,title:r}}})]},addProseMirrorPlugins(){return[new Gr({view:t=>((async()=>{const{state:e,dispatch:n}=t;e.doc.descendants((r,o)=>{if(r.type.name===this.name){const{src:i,width:s,height:a}=r.attrs;i&&(!s||!a)&&XKe(i).then(l=>{const u=e.tr.setNodeMarkup(o,void 0,{...r.attrs,width:l.width,height:l.height});n(u)})}})})(),{})})]}}),GXt=t=>Zn.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:r})=>{const{$from:o}=n.selection,i=o.parent;if(i.type.name!=="paragraph")return!1;const s=o.before(o.depth);return r.setNodeMarkup(s,void 0,{...i.attrs,contentAlign:e}),!0}}}}),YXt=t=>[P6t,SUt,$6t,R9.configure({mergeNestedSpanStyles:!0}),cUt,JXt({dataSourceFieldNameDelegate:t.dataSourceFieldNameDelegate}),I6t.configure({className:"has-focus",mode:"all"}),Pce.configure({keepMarks:!0,keepAttributes:!0}),zce.configure({keepMarks:!0,keepAttributes:!0}),G9e,TUt.configure({HTMLAttributes:{class:"hard-break"}}),$ce.configure({HTMLAttributes:{class:"rich-text__link"},openOnClick:!1}),QKe.configure({inline:!0,HTMLAttributes:{class:"rich-text__image"}}),UXt({themeColors:t.themeColors}),_Xt(t.initialThemeName),RXt,DXt,EXt,AXt,KKe,NXt,bde,KXt,GXt({fallbackContentAlign:t.fallbackContentAlign})],XXt=t=>LXt(t.editor.getJSON()),QXt=pt({__name:"SelectItemColor",props:{isActive:{type:Boolean},color:{},label:{}},emits:["click"],setup(t,{emit:e}){const n=t,r=e;return(o,i)=>(U(),ue("li",{class:Ve(["bootstrap-styles dropdown-item p-0 user-select-none",{active:n.isActive}])},[N("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=>r("click"))},[N("i",{class:"bootstrap-styles input__color_selection d-block overflow-hidden me-2",style:Be([{border:"1px solid rgba(0, 0, 0, 0.10)"},[{background:n.color}]])},null,4),oO(" "+er(n.label),1)])],2))}}),ZXt={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"}},eQt={colorLabels:{none:"Нет",styleLinkedColor:"Связать со стилем",emailBackgroundColor:"Фон письма",bodyColor:"Тело письма",primaryColor:"Основной цвет",secondaryColor:"Вторичный цвет",primaryTextColor:"Текст на основном цвете",secondaryTextColor:"Текст на вторичном цвете",cardBackgroundColor:"Цвет карточек товара",buttonTextColor:"Кнопки",titleColor:"Большой заголовок",headingColor:"Заголовок",subHeadingColor:"Подзаголовок",largeTextColor:"Большой текст",normalTextColor:"Текст",descriptionTextColor:"Описание",linkColor:"Ссылка",custom:"Пользовательский"}},tQt=Ir({en:ZXt,ru:eQt}),ZKe=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 lu(t)}}}),j9=t=>ZKe(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}),$O=t=>{const{FontFamily:e,FontSettingsPresets:n,Colors:r}=t.theme,o=!!t.editor.getAttributes("textStyle")[t.styleName],i=t.editor.getAttributes("paragraph").themeName||"NormalText",s=t.editor.getAttributes("textStyle").themeName||i;if(o)return t.editor.getAttributes("textStyle")[t.styleName];const a=il({fontFamily:e,themeFontSettings:n[s],themeColor:j9({themeName:s,themeFontColors:r})});return String(a[t.styleName])},e8e=t=>{const{FontFamily:e,FontSettingsPresets:n,Colors:r}=t.theme,o=!!t.editor.getAttributes("textStyle").color,i=t.editor.getAttributes("paragraph").themeName||"NormalText",s=t.editor.getAttributes("textStyle").themeName||i;if(o)return t.editor.getAttributes("textStyle").color;const a=il({fontFamily:e,themeFontSettings:n[s],themeColor:j9({themeName:s,themeFontColors:r})});return{Discriminator:ZKe(s).Match({whenHeading:()=>"HeadingColor",whenTitle:()=>"TitleColor",whenSubHeading:()=>"SubHeadingColor",whenLargeText:()=>"LargeTextColor",whenNormalText:()=>"NormalTextColor",whenDescriptionText:()=>"DescriptionTextColor",whenLink:()=>"LinkColor",whenButton:()=>"ButtonTextColor"}),CustomValue:a.color}},nQt={class:"color-picker bootstrap-styles border rounded bg-white"},rQt={class:"bootstrap-styles mb-5 bg-white"},oQt=["value"],iQt=["value"],sQt=pt({__name:"ColorPickerModalWindow",props:{editor:{},theme:{},deps:{}},emits:["onColorChanged","onColorPickerClosed"],setup(t,{emit:e}){tm(h=>({v7ba43684:i.color}));const n=t,r={colorLabels:tQt({localeKey:n.deps.localeKey}).colorLabels},o=Q(()=>W9({fontColor:e8e({editor:n.editor,theme:n.theme}),themeColors:n.theme.Colors})),i=Xt({color:o.value,isValidHexColor:!0}),s={StyleLinkedColor:r.colorLabels.styleLinkedColor,EmailBackgroundColor:r.colorLabels.emailBackgroundColor,BodyColor:r.colorLabels.bodyColor,PrimaryColor:r.colorLabels.primaryColor,SecondaryColor:r.colorLabels.secondaryColor,PrimaryTextColor:r.colorLabels.primaryTextColor,SecondaryTextColor:r.colorLabels.secondaryTextColor,CardBackgroundColor:r.colorLabels.cardBackgroundColor,ButtonTextColor:r.colorLabels.buttonTextColor,TitleColor:r.colorLabels.titleColor,HeadingColor:r.colorLabels.headingColor,SubHeadingColor:r.colorLabels.subHeadingColor,LargeTextColor:r.colorLabels.largeTextColor,NormalTextColor:r.colorLabels.normalTextColor,DescriptionTextColor:r.colorLabels.descriptionTextColor,LinkColor:r.colorLabels.linkColor,Custom:r.colorLabels.custom},a=["EmailBackgroundColor","BodyColor","PrimaryColor","SecondaryColor","PrimaryTextColor","SecondaryTextColor","ButtonTextColor","TitleColor","HeadingColor","SubHeadingColor","LargeTextColor","NormalTextColor","DescriptionTextColor","LinkColor"],l=Q3t(h=>{d("onColorChanged",{Discriminator:"Custom",CustomValue:h})},100,{leading:!1,trailing:!0}),u=h=>/^#([0-9A-Fa-f]{6})$/.test(h.trim()),c=h=>{i.isValidHexColor=u(h),i.color=h,u(h)&&d("onColorChanged",{Discriminator:"Custom",CustomValue:h})};En(()=>o.value,h=>{i.color=h,i.isValidHexColor=u(h)});const d=e;return(h,f)=>_n((U(),ue("div",null,[N("ul",nQt,[N("li",rQt,[Ce(ee(t7t),{modelValue:o.value,width:220,canvasHeight:220,hideInputs:!0,hideSliders:!1,mode:"hex","onUpdate:modelValue":f[0]||(f[0]=p=>ee(l)(p))},null,8,["modelValue"]),N("div",{class:Ve(["bootstrap-styles border mx-1 bg-color-input rounded-2 d-flex justify-content-between p-14",{"is-not-valid":!i.isValidHexColor}])},[N("input",{type:"color",class:"bootstrap-styles pe-none",style:{border:"1px solid rgba(0, 0, 0, 0.1)",cursor:"default"},value:o.value},null,8,oQt),N("input",{type:"text",class:"bootstrap-styles w-100 text-uppercase ps-1",value:i.color,placeholder:"#000000",onInput:f[1]||(f[1]=p=>c(p.target.value))},null,40,iQt)],2)]),(U(),ue(xt,null,Kr(a,p=>Ce(QXt,{key:p,isActive:o.value===n.theme.Colors[p],color:n.theme.Colors[p],label:s[p],onClick:()=>{d("onColorChanged",{Discriminator:p,CustomValue:n.theme.Colors[p]}),d("onColorPickerClosed")}},null,8,["isActive","color","label","onClick"])),64))])])),[[ee(rm),()=>d("onColorPickerClosed")]])}}),aQt=ht(sQt,[["__scopeId","data-v-0519b5d6"]]),lQt={tooltip:"Text color"},uQt={tooltip:"Цвет текста"},cQt=Ir({en:lQt,ru:uQt}),dQt=["value"],hQt=pt({__name:"ColorPicker",props:{editor:{},theme:{},isAllowToEdit:{type:Boolean},deps:{}},setup(t){const e=t,n={tooltip:cQt({localeKey:e.deps.localeKey}).tooltip},r=Xt({isColorPickerDropdownShown:!1}),o=Wn(),i=Wn(),{floatingStyles:s}=S6e(i,o,{whileElementsMounted:x6e,placement:"bottom",middleware:[k6e(({rects:l})=>({alignmentAxis:-l.floating.width/2-l.floating.width/2,mainAxis:15}))]}),a=Q(()=>W9({fontColor:e8e({editor:e.editor,theme:e.theme}),themeColors:e.theme.Colors}));return(l,u)=>(U(),ue(xt,null,[_n((U(),ue("button",{ref_key:"richTextColorPickerBtn",ref:i,class:Ve(["bootstrap-styles border rich-text-color__input rich-text__handler",{disabled:!t.isAllowToEdit}]),value:a.value,onClick:u[0]||(u[0]=()=>r.isColorPickerDropdownShown=!r.isColorPickerDropdownShown)},[N("i",{style:Be([{display:"block",width:"100%",height:"100%"},{backgroundColor:a.value}])},null,4)],10,dQt)),[[ee(Mo),{title:n.tooltip,placement:"top"}]]),r.isColorPickerDropdownShown?(U(),kt(aQt,{key:0,ref_key:"richTextColorPicker",ref:o,theme:e.theme,editor:e.editor,deps:e.deps.colorPickerModalWindowDeps,style:Be(ee(s)),onOnColorChanged:u[1]||(u[1]=c=>{e.editor.commands.setColor(c)}),onOnColorPickerClosed:u[2]||(u[2]=()=>{r.isColorPickerDropdownShown=!1,e.editor.commands.focus()})},null,8,["theme","editor","deps","style"])):it("",!0)],64))}}),fQt=ht(hQt,[["__scopeId","data-v-6624477a"]]),pQt={},mQt={xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"};function gQt(t,e){return U(),ue("svg",mQt,[...e[0]||(e[0]=[N("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 t8e=ht(pQt,[["render",gQt]]),yQt={tooltip:"Font family"},CQt={tooltip:"Шрифт"},bQt=Ir({en:yQt,ru:CQt}),vQt={class:"bootstrap-styles dropdown"},wQt={class:"bootstrap-styles me-14 overflow-hidden rich-text-toolbar__font-family-btn__text"},xQt={class:"bootstrap-styles d-flex justify-content-center align-items-center"},kQt=["onClick"],TQt=pt({__name:"FontFamilySelector",props:{editor:{},isAllowToEdit:{type:Boolean},theme:{},deps:{}},setup(t){const e=t,n={tooltip:bQt({localeKey:e.deps.localeKey}).tooltip},r=R9.name,o=Xt({isOpened:!1}),i=Q(()=>$O({editor:e.editor,theme:e.theme,styleName:"fontFamily"})),s=a=>{e.editor.commands.setFontFamily(a),o.isOpened=!1,e.editor.commands.focus()};return(a,l)=>_n((U(),ue("div",vQt,[N("button",{id:"richTextDropdownFontFamily",class:Ve(["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:o.isOpened}]),type:"button",onClick:l[0]||(l[0]=u=>o.isOpened=!o.isOpened)},[N("span",wQt,er(ee(Dne)[i.value]),1),N("i",xQt,[Ce(t8e)])],2),N("ul",{class:Ve([{show:o.isOpened},"bootstrap-styles dropdown-menu rounded-2 bg-white"]),"aria-labelledby":"richTextDropdownFontFamily"},[(U(!0),ue(xt,null,Kr(ee(VKe),u=>(U(),ue("li",{key:u,class:Ve(["bootstrap-styles dropdown-item p-0",{active:e.editor.getAttributes(ee(r)).fontFamily===u}]),onClick:()=>s(u)},[N("span",{class:"bootstrap-styles d-block py-1 px-3 text-decoration-none text-reset cursor-pointer",style:Be({fontFamily:u})},er(ee(Dne)[u]),5)],10,kQt))),128))],2)])),[[ee(rm),()=>o.isOpened=!1],[ee(Mo),{title:n.tooltip,placement:"top"}]])}}),SQt=ht(TQt,[["__scopeId","data-v-cc496278"]]),FQt={},EQt={xmlns:"http://www.w3.org/2000/svg",width:"8",height:"8",viewBox:"0 0 8 8",fill:"none"};function AQt(t,e){return U(),ue("svg",EQt,[...e[0]||(e[0]=[N("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 n8e=ht(FQt,[["render",AQt],["__scopeId","data-v-19c42a7a"]]),_Qt={},RQt={xmlns:"http://www.w3.org/2000/svg",width:"8",height:"8",viewBox:"0 0 8 8",fill:"none"};function DQt(t,e){return U(),ue("svg",RQt,[...e[0]||(e[0]=[N("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 r8e=ht(_Qt,[["render",DQt],["__scopeId","data-v-313c2951"]]),NQt={},LQt={width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function MQt(t,e){return U(),ue("svg",LQt,[...e[0]||(e[0]=[N("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 OQt=ht(NQt,[["render",MQt]]),BQt={tooltip:"Font size"},IQt={tooltip:"Размер текста"},$Qt=Ir({en:BQt,ru:IQt}),PQt=t=>{const{FontFamily:e,FontSettingsPresets:n,Colors:r}=t.theme,o=!!t.editor.getAttributes("textStyle").fontSize,i=t.editor.getAttributes("paragraph").themeName||"NormalText",s=t.editor.getAttributes("textStyle").themeName||i;return o?parseInt(t.editor.getAttributes("textStyle").fontSize,10):il({fontFamily:e,themeFontSettings:n[s],themeColor:j9({themeName:s,themeFontColors:r})}).fontSize},VQt={class:"bootstrap-styles rich-text-toolbar__font-size-editor position-relative rounded-2 py-1 px-3 d-flex"},zQt={class:"bootstrap-styles d-flex justify-content-center rich-text-icon me-14"},HQt=["value"],WQt={class:"bootstrap-styles rich-text-toolbar__input-button top-0 d-flex position-absolute align-items-end justify-content-center"},jQt={class:"bootstrap-styles rich-text-toolbar__input-button bottom-0 d-flex position-absolute align-items-start justify-content-center"},UQt=pt({__name:"FontSizeEditor",props:{editor:{},theme:{},deps:{}},setup(t){const e=t,n={tooltip:$Qt({localeKey:e.deps.localeKey}).tooltip},r=Q(()=>PQt({editor:e.editor,theme:e.theme})),o=()=>{r.value&&e.editor.commands.setFontSize(r.value+1)},i=()=>{r.value&&r.value!==1&&e.editor.commands.setFontSize(r.value-1)},s=a=>{const l=a.target;let u=parseInt(l.value);const c=100;isNaN(u)||l.value===""?(u=0,l.value="0"):u>c&&(u=c,l.value=String(c)),e.editor.commands.setFontSize(u)};return(a,l)=>_n((U(),ue("div",VQt,[N("i",zQt,[Ce(OQt)]),N("input",{type:"number",class:"bootstrap-styles rich-text-toolbar__input-number rich-text__handler",value:r.value,onInput:s},null,40,HQt),N("div",WQt,[N("input",{type:"button",class:"bootstrap-styles position-absolute rich-text__handler",onClick:o}),Ce(n8e)]),N("div",jQt,[N("input",{type:"button",class:"bootstrap-styles position-absolute rich-text__handler",onClick:i}),Ce(r8e)])])),[[ee(Mo),{title:n.tooltip,placement:"top"}]])}}),KQt=ht(UQt,[["__scopeId","data-v-ba95f865"]]),qQt=pt({__name:"SelectItemTextStyle",props:{isActive:{type:Boolean},label:{},themeFontStyle:{},themeFontColor:{}},emits:["click"],setup(t,{emit:e}){const n=t,r=e;return(o,i)=>(U(),ue("li",{class:Ve(["bootstrap-styles dropdown-item p-0 d-flex align-items-center px-3 cursor-pointer",{active:n.isActive}]),onClick:i[0]||(i[0]=s=>r("click"))},[N("i",{class:"bootstrap-styles input__color_selection d-block overflow-hidden me-2",style:Be([{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),N("span",{class:"bootstrap-styles d-block py-1 text-decoration-none overflow-hidden",style:Be([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"}])},er(n.label),5)],2))}}),JQt=ht(qQt,[["__scopeId","data-v-3a2ee8e2"]]),GQt={tooltip:"Text style",settingLabels:{title:"Title",heading:"Heading",subHeading:"Subheading",largeText:"Large text",normalText:"Text",descriptionText:"Description",link:"Link",button:"Button",custom:"Custom"}},YQt={tooltip:"Стиль текста",settingLabels:{title:"Большой заголовок",heading:"Заголовок",subHeading:"Подзаголовок",largeText:"Большой текст",normalText:"Текст",descriptionText:"Описание",link:"Ссылка",button:"Кнопка",custom:"Пользовательский"}},eSe=Ir({en:GQt,ru:YQt}),XQt={class:"bootstrap-styles dropdown"},QQt={class:"bootstrap-styles rich-text-toolbar__font-style-selector__text"},ZQt={class:"bootstrap-styles d-flex justify-content-center align-items-center rich-text-toolbar__icon"},eZt=pt({__name:"ThemeSettingsSelector",props:{editor:{},theme:{},isAllowToEdit:{type:Boolean},initialThemeName:{},deps:{}},setup(t){const e=t,n=R9.name,r=Xt({isOpened:!1}),o={tooltip:eSe({localeKey:e.deps.localeKey}).tooltip,settingLabels:eSe({localeKey:e.deps.localeKey}).settingLabels},i={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},s=["Title","Heading","SubHeading","LargeText","NormalText","DescriptionText","Link","Button"],a=["TitleColor","HeadingColor","SubHeadingColor","LargeTextColor","NormalTextColor","DescriptionTextColor","LinkColor","ButtonTextColor"],l=Q(()=>{const c=e.initialThemeName,d=e.editor.getAttributes("paragraph").themeName||c;let h=s.find(v=>e.editor.getAttributes(n).themeName===v)||d;const{fontWeight:f,fontStyle:p,textDecoration:m,fontSize:g,fontFamily:C,lineHeight:b}=e.editor.getAttributes(n);return f||p||m||g||C||b?i.Custom:i[h]}),u=c=>{e.editor.commands.unsetMark(n),e.editor.chain().focus().setThemeSettings(c).run(),r.isOpened=!1};return(c,d)=>_n((U(),ue("div",XQt,[N("button",{id:"dropdownMenuButtonFontStyleList",class:Ve(["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:r.isOpened}]),type:"button",onClick:d[0]||(d[0]=()=>r.isOpened=!r.isOpened)},[N("span",QQt,er(l.value),1),N("i",ZQt,[Ce(t8e)])],2),N("ul",{class:Ve([{show:r.isOpened},"bootstrap-styles rich-text-toolbar__font-style-dropdown dropdown-menu rounded-2"]),"aria-labelledby":"dropdownMenuButtonFontStyleList"},[(U(),ue(xt,null,Kr(s,(h,f)=>Ce(JQt,{key:h,isActive:e.editor.getAttributes(ee(n)).themeName===h,label:i[h],themeFontStyle:e.theme.FontSettingsPresets[h],themeFontColor:e.theme.Colors[a[f]],onClick:()=>u(h)},null,8,["isActive","label","themeFontStyle","themeFontColor","onClick"])),64))],2)])),[[ee(rm),()=>r.isOpened=!1],[ee(Mo),{title:o.tooltip,placement:"top"}]])}}),tZt=ht(eZt,[["__scopeId","data-v-37cbbac2"]]),nZt={},rZt={xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"};function oZt(t,e){return U(),ue("svg",rZt,[...e[0]||(e[0]=[N("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 iZt=ht(nZt,[["render",oZt]]),sZt={tooltip:"Line height"},aZt={tooltip:"Высота строки"},lZt=Ir({en:sZt,ru:aZt}),uZt=t=>{const{FontFamily:e,FontSettingsPresets:n,Colors:r}=t.theme,o=!!t.editor.getAttributes("textStyle").lineHeight,i=t.editor.getAttributes("paragraph").themeName||"NormalText",s=t.editor.getAttributes("textStyle").themeName||i;return o?parseInt(t.editor.getAttributes("textStyle").lineHeight,10):il({fontFamily:e,themeFontSettings:n[s],themeColor:j9({themeName:s,themeFontColors:r})}).lineHeight},cZt={class:"bootstrap-styles rich-text-toolbar__line-height-editor position-relative rounded-2 py-1 px-3 d-flex"},dZt={class:"bootstrap-styles d-flex justify-content-center rich-text-icon me-14"},hZt=["value"],fZt={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"}},pZt={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"}},mZt=pt({__name:"LineHeightEditor",props:{editor:{},theme:{},deps:{}},setup(t){const e=t,n={tooltip:lZt({localeKey:e.deps.localeKey}).tooltip},r=Q(()=>uZt({editor:e.editor,theme:e.theme})),o=()=>{r.value&&e.editor.commands.setLineHeight(r.value+1)},i=()=>{r.value&&r.value!==1&&e.editor.commands.setLineHeight(r.value-1)},s=a=>{const l=a.target;let u=parseInt(l.value);const c=100;isNaN(u)||l.value===""?(u=0,l.value="0"):u>c&&(u=c,l.value=String(c)),e.editor.commands.setLineHeight(u)};return(a,l)=>_n((U(),ue("div",cZt,[N("i",dZt,[Ce(iZt)]),N("input",{type:"number",class:"bootstrap-styles rich-text-toolbar__input-number rich-text__handler",value:r.value,onInput:s},null,40,hZt),N("div",fZt,[N("input",{type:"button",class:"bootstrap-styles position-absolute rich-text__handler",onClick:o}),Ce(n8e)]),N("div",pZt,[N("input",{type:"button",class:"bootstrap-styles position-absolute rich-text__handler",onClick:i}),Ce(r8e)])])),[[ee(Mo),{title:n.tooltip,placement:"top"}]])}}),gZt=ht(mZt,[["__scopeId","data-v-4e76ed1b"]]),yZt=/^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,CZt=/^mailto:\S+$/i,bZt=/^tel:\+?[\d().-]+$/i,vZt=t=>/\s/.test(t)?!1:t.toLowerCase().startsWith("http://")||t.toLowerCase().startsWith("https://")?yZt.test(t):t.toLowerCase().startsWith("mailto:")?CZt.test(t):t.toLowerCase().startsWith("tel:")?bZt.test(t)&&/\d/.test(t.slice(4)):!1,wZt={mounted(t,e){t.addEventListener("input",()=>{const n=vZt(t.value);typeof e.value=="function"&&e.value(n)})}},o8e={mounted(t,e){tSe(t,e)},updated(t,e){e.value&&tSe(t,e)}},tSe=(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)}})},xZt={},kZt={xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 14 14",fill:"none"};function TZt(t,e){return U(),ue("svg",kZt,[...e[0]||(e[0]=[N("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 i8e=ht(xZt,[["render",TZt]]),SZt={label:"Link",inputPlaceholder:"https://example.com",errorNotification:"The link must contain https://, http://, mailto:, tel:",applyButton:"Save",cancelButton:"Cancel"},FZt={label:"Ссылка",inputPlaceholder:"https://example.com",errorNotification:"Ссылка должна содержать https://, http://, mailto:, tel:",applyButton:"Сохранить",cancelButton:"Отмена"},EZt=Ir({en:SZt,ru:FZt}),AZt={},_Zt={width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function RZt(t,e){return U(),ue("svg",_Zt,[...e[0]||(e[0]=[N("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 s8e=ht(AZt,[["render",RZt]]),DZt={class:"bootstrap-styles bg-white border rounded-2 add-text-link-modal-window"},NZt={class:"bootstrap-styles fw-bold mb-5 px-11 mt-10 d-block text-start"},LZt={class:"bootstrap-styles px-11 mb-2"},MZt={class:"bootstrap-styles d-flex justify-content-center align-items-center me-1"},OZt=["placeholder"],BZt={class:"bootstrap-styles px-11 py-5 d-flex align-items-center justify-content-end border-top"},IZt=pt({__name:"AddLinkModalWindow",props:{isActive:{type:Boolean},currentHref:{},deps:{}},emits:["onClosed","onHrefChanged","onRemoved"],setup(t,{emit:e}){const n=t,r=Xt({href:n.currentHref,isValid:!0}),o=EZt({localeKey:n.deps.localeKey}),i=e;return(s,a)=>_n((U(),ue("div",DZt,[N("label",NZt,er(ee(o).label),1),N("div",LZt,[N("div",{class:Ve(["bootstrap-styles bg-color-input border rounded-2 py-1 px-3 d-flex mb-14",{"not-valid-url":!r.isValid}])},[N("i",MZt,[Ce(i8e)]),_n(N("input",{type:"text",class:"bootstrap-styles w-100",placeholder:ee(o).inputPlaceholder,"onUpdate:modelValue":a[0]||(a[0]=l=>r.href=l)},null,8,OZt),[[ee(wZt),l=>r.isValid=l],[ee(o8e),void 0,void 0,{selectAll:!0}],[tgt,r.href]])],2),N("div",{class:Ve(["bootstrap-styles text-start add-link-notification",{invisible:r.isValid}])},er(ee(o).errorNotification),3)]),N("div",BZt,[n.isActive?(U(),ue("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]=Po(()=>i("onRemoved"),["stop"]))},[N("i",null,[Ce(s8e)])])):it("",!0),N("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"))},er(ee(o).cancelButton),1),N("button",{class:Ve(["bootstrap-styles d-flex justify-content-center align-center py-1 px-3 border rounded-2",{"button__active-700":r.isValid&&r.href.length>0,"button__locked button__disabled-700":!r.isValid||r.href.length===0}]),onClick:a[3]||(a[3]=()=>i("onHrefChanged",r.href))},er(ee(o).applyButton),3)])])),[[ee(rm),()=>i("onClosed")]])}}),$Zt=ht(IZt,[["__scopeId","data-v-b4170a33"]]),PZt={};function VZt(t,e){return U(),ue(xt,null,[e[0]||(e[0]=N("svg",{class:"unlinked",xmlns:"http://www.w3.org/2000/svg",width:"17",height:"16",viewBox:"0 0 17 16",fill:"none"},[N("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]=N("svg",{class:"linked",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},[N("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 zZt=ht(PZt,[["render",VZt],["__scopeId","data-v-730bc16f"]]),HZt={tooltip:"Link"},WZt={tooltip:"Ссылка"},jZt=Ir({en:HZt,ru:WZt}),UZt={class:"bootstrap-styles d-flex rich-text-icon icon-hover"},KZt=pt({__name:"LinkEditor",props:{editor:{},isAllowToEdit:{type:Boolean},deps:{}},setup(t){const e=t,n={tooltip:jZt({localeKey:e.deps.localeKey}).tooltip},r=$ce.name,o=bde.name,i=Xt({isAddTextLinkModalWindowShown:!1}),s=Q(()=>e.editor.isActive(o)),a=u=>{s.value&&e.editor.commands.unsetUnsubscribeLink(),e.editor.chain().focus().setLink({href:u}).setThemeSettings("Link").run(),i.isAddTextLinkModalWindowShown=!1},l=()=>{e.editor.chain().focus().unsetLink().applySiblingNodeThemeSettings().run(),i.isAddTextLinkModalWindowShown=!1};return(u,c)=>(U(),ue(xt,null,[_n((U(),ue("button",{class:Ve(["bootstrap-styles p-1 rounded rich-text-button",{active:e.editor.isActive(ee(r)),disabled:!e.editor.isActive(ee(r))&&!e.isAllowToEdit}]),onClick:c[0]||(c[0]=d=>{i.isAddTextLinkModalWindowShown=!i.isAddTextLinkModalWindowShown})},[N("i",UZt,[e.editor.isActive(ee(r))?(U(),kt(zZt,{key:1})):(U(),kt(i8e,{key:0}))])],2)),[[ee(Mo),{title:n.tooltip,placement:"top"}]]),i.isAddTextLinkModalWindowShown?(U(),kt($Zt,{key:0,isActive:e.editor.isActive(ee(r)),currentHref:e.editor.isActive(ee(r))?e.editor.getAttributes(ee(r)).href:"",deps:e.deps.addLinkModalWindowDeps,onOnRemoved:c[1]||(c[1]=()=>l()),onOnClosed:c[2]||(c[2]=d=>i.isAddTextLinkModalWindowShown=!1),onOnHrefChanged:c[3]||(c[3]=d=>a(d))},null,8,["isActive","currentHref","deps"])):it("",!0)],64))}}),qZt=ht(KZt,[["__scopeId","data-v-6460a995"]]),JZt={label:"URL",placeholder:"URL...",cancel:"Cancel",apply:"Save",removeTooltip:"Delete image"},GZt={label:"URL",placeholder:"URL...",cancel:"Отмена",apply:"Сохранить",removeTooltip:"Удалить изображение"},nA=Ir({en:JZt,ru:GZt}),YZt={class:"bootstrap-styles bg-white border rounded-2 add-image-src-modal-window"},XZt={class:"bootstrap-styles fw-bold mb-5 px-11 mt-10 d-block text-start"},QZt={class:"bootstrap-styles px-11 mb-11"},ZZt=["placeholder","value"],een={class:"bootstrap-styles px-11 py-5 d-flex align-items-center justify-content-end border-top"},ten=["disabled"],nen=pt({__name:"AddImageSrcModalWindow",props:{isActive:{type:Boolean},src:{},width:{},height:{},isRetina:{type:Boolean},deps:{}},emits:["onClosed","onRemoved","onImageSrcChanged"],setup(t,{emit:e}){const n=t,r=Xt({src:n.src,width:n.width,height:n.height,isBroken:!1}),o={label:nA({localeKey:n.deps.localeKey}).label,placeholder:nA({localeKey:n.deps.localeKey}).placeholder,cancel:nA({localeKey:n.deps.localeKey}).cancel,apply:nA({localeKey:n.deps.localeKey}).apply,removeTooltip:nA({localeKey:n.deps.localeKey}).removeTooltip},i=l6e(l=>{XKe(l).then(u=>{r.width=u.width,r.height=u.height,r.isBroken=!1,r.src=l}).catch(()=>{r.src=l,r.isBroken=!0})},500),s=()=>{a("onImageSrcChanged",{src:r.src,width:r.width,height:r.height,isRetina:!1})},a=e;return(l,u)=>_n((U(),ue("div",YZt,[N("label",XZt,er(o.label),1),N("div",QZt,[N("div",{class:Ve(["bootstrap-styles bg-color-input border rounded-2 py-1 px-3 d-flex",{"border-danger":r.isBroken}])},[_n(N("input",{type:"text",class:"bootstrap-styles w-100",placeholder:o.placeholder,value:r.src,onInput:u[0]||(u[0]=c=>ee(i)(c.target.value))},null,40,ZZt),[[ee(o8e),void 0,void 0,{selectAll:!0}]])],2)]),N("div",een,[n.isActive?_n((U(),ue("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:u[1]||(u[1]=Po(()=>a("onRemoved"),["stop"]))},[N("i",null,[Ce(s8e)])])),[[ee(Mo),{placement:"top",title:o.removeTooltip}]]):it("",!0),N("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:u[2]||(u[2]=Po(()=>a("onClosed"),["stop"]))},er(o.cancel),1),N("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:!r.src.length||r.isBroken,onClick:u[3]||(u[3]=Po(()=>s(),["stop"]))},er(o.apply),9,ten)])])),[[ee(rm),()=>a("onClosed")]])}}),ren=ht(nen,[["__scopeId","data-v-35966ae0"]]),oen={},ien={width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function sen(t,e){return U(),ue("svg",ien,[...e[0]||(e[0]=[N("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 aen=ht(oen,[["render",sen]]),len={tooltip:"Image",retinaLabel:"For retina screens"},uen={tooltip:"Изображение",retinaLabel:"Для retina-экранов"},nSe=Ir({en:len,ru:uen}),cen={class:"bootstrap-styles rich-text-icon icon-hover d-flex"},den=["checked"],hen={for:"rich-text__retina-checkbox",class:"bootstrap-styles label__checkbox-input text-nowrap"},fen=pt({__name:"ImageEditor",props:{editor:{},deps:{}},setup(t){const e=t,n={tooltip:nSe({localeKey:e.deps.localeKey}).tooltip,retinaLabel:nSe({localeKey:e.deps.localeKey}).retinaLabel},r=QKe.name,o=Xt({isAddImageSrcModalWindowShown:!1}),i=async()=>{const l=e.editor.view.state.selection.anchor,{src:u,width:c,height:d,isRetina:h}=e.editor.getAttributes(r);e.editor.chain().focus().updateAttributes("image",{src:u,width:c,height:d,isRetina:!h}).setNodeSelection(l).run()},s=l=>{const u=e.editor.view.state.selection.anchor;e.editor.isActive(r)?e.editor.chain().focus().updateAttributes("image",{src:l.src,width:l.width,height:l.height,alt:"img",isRetina:!1}).setNodeSelection(u).run():e.editor.chain().focus().setImage({src:l.src,width:l.width,height:l.height,alt:"img",isRetina:!1}).setNodeSelection(u).run(),o.isAddImageSrcModalWindowShown=!1},a=()=>{e.editor.commands.deleteSelection(),o.isAddImageSrcModalWindowShown=!1};return(l,u)=>(U(),ue(xt,null,[_n((U(),ue("button",{class:Ve(["bootstrap-styles p-1 rounded rich-text-button__image",{active:e.editor.isActive(ee(r))}]),onClick:u[0]||(u[0]=c=>o.isAddImageSrcModalWindowShown=!o.isAddImageSrcModalWindowShown)},[N("i",cen,[Ce(aen)])],2)),[[ee(Mo),{title:n.tooltip,placement:"top"}]]),e.editor.isActive(ee(r))?(U(),ue("div",{key:0,class:"bootstrap-styles d-flex align-items-center ms-14 me-1",onClick:u[1]||(u[1]=c=>i()),onMousedown:u[2]||(u[2]=Po(()=>{},["prevent"]))},[N("input",{id:"rich-text__retina-checkbox",class:"bootstrap-styles me-1 cursor-pointer",checked:e.editor.isActive(ee(r),{isRetina:!0}),type:"checkbox","aria-label":"Checkbox for retina image"},null,8,den),N("label",hen,er(n.retinaLabel),1)],32)):it("",!0),o.isAddImageSrcModalWindowShown?(U(),kt(ren,{key:1,isActive:e.editor.isActive(ee(r)),src:e.editor.getAttributes(ee(r)).src?e.editor.getAttributes(ee(r)).src:"",width:e.editor.getAttributes(ee(r)).width?e.editor.getAttributes(ee(r)).width:0,height:e.editor.getAttributes(ee(r)).height?e.editor.getAttributes(ee(r)).height:0,isRetina:e.editor.getAttributes(ee(r)).isRetina?e.editor.getAttributes(ee(r)).isRetina:!1,deps:e.deps.addImageSrcModalWindowDeps,onOnRemoved:u[3]||(u[3]=()=>a()),onOnClosed:u[4]||(u[4]=c=>o.isAddImageSrcModalWindowShown=!1),onOnImageSrcChanged:u[5]||(u[5]=c=>s({src:c.src,width:c.width,height:c.height}))},null,8,["isActive","src","width","height","isRetina","deps"])):it("",!0)],64))}}),pen=ht(fen,[["__scopeId","data-v-d72ccf51"]]),men={},gen={xmlns:"http://www.w3.org/2000/svg",width:"17",height:"16",viewBox:"0 0 17 16",fill:"none"};function yen(t,e){return U(),ue("svg",gen,[...e[0]||(e[0]=[N("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 Cen=ht(men,[["render",yen]]),ben={tooltip:"Bold"},ven={tooltip:"Полужирный"},wen=Ir({en:ben,ru:ven}),xen={class:"bootstrap-styles d-flex rich-text-icon icon-hover"},ken=pt({__name:"FontWeightEditor",props:{editor:{},theme:{},isAllowToEdit:{type:Boolean},deps:{}},setup(t){const e=t,n={tooltip:wen({localeKey:e.deps.localeKey}).tooltip},r=Q(()=>$O({editor:e.editor,theme:e.theme,styleName:"fontWeight"})==="bold"),o=()=>{r.value?e.editor.chain().focus().unsetFontWeight().run():e.editor.chain().focus().setFontWeight("bold").run(),e.editor.commands.focus()};return(i,s)=>_n((U(),ue("button",{class:Ve(["bootstrap-styles p-1 rounded rich-text-button",{active:r.value,disabled:!e.isAllowToEdit&&!r.value}]),onClick:s[0]||(s[0]=()=>o())},[N("i",xen,[Ce(Cen)])],2)),[[ee(Mo),{title:n.tooltip,placement:"top"}]])}}),Ten=ht(ken,[["__scopeId","data-v-0e22dbf6"]]),Sen={},Fen={xmlns:"http://www.w3.org/2000/svg",width:"17",height:"16",viewBox:"0 0 17 16",fill:"none"};function Een(t,e){return U(),ue("svg",Fen,[...e[0]||(e[0]=[N("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 Aen=ht(Sen,[["render",Een]]),_en={tooltip:"Strikethrough"},Ren={tooltip:"Зачеркнутый"},Den=Ir({en:_en,ru:Ren}),Nen={class:"bootstrap-styles d-flex rich-text-icon icon-hover"},Len=pt({__name:"LineThroughEditor",props:{editor:{},isAllowToEdit:{type:Boolean},theme:{},deps:{}},setup(t){const e=t,n={tooltip:Den({localeKey:e.deps.localeKey}).tooltip},r=Q(()=>$O({editor:e.editor,theme:e.theme,styleName:"textDecoration"})==="line-through"),o=()=>{r.value?e.editor.chain().focus().unsetTextDecoration().run():e.editor.chain().focus().setTextDecoration("line-through").run(),e.editor.commands.focus()};return(i,s)=>_n((U(),ue("button",{class:Ve(["bootstrap-styles p-1 rounded rich-text-button",{active:r.value,disabled:!t.isAllowToEdit&&!r.value}]),onClick:s[0]||(s[0]=a=>o())},[N("i",Nen,[Ce(Aen)])],2)),[[ee(Mo),{title:n.tooltip,placement:"top"}]])}}),Men=ht(Len,[["__scopeId","data-v-fffc32ef"]]),Oen={},Ben={xmlns:"http://www.w3.org/2000/svg",width:"17",height:"16",viewBox:"0 0 17 16",fill:"none"};function Ien(t,e){return U(),ue("svg",Ben,[...e[0]||(e[0]=[N("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 $en=ht(Oen,[["render",Ien]]),Pen={tooltip:"Underline"},Ven={tooltip:"Подчеркнутый"},zen=Ir({en:Pen,ru:Ven}),Hen={class:"bootstrap-styles d-flex rich-text-icon icon-hover"},Wen=pt({__name:"UnderlineEditor",props:{editor:{},isAllowToEdit:{type:Boolean},theme:{},deps:{}},setup(t){const e=t,n={tooltip:zen({localeKey:e.deps.localeKey}).tooltip},r=Q(()=>$O({editor:e.editor,theme:e.theme,styleName:"textDecoration"})==="underline"),o=()=>{r.value?e.editor.chain().focus().unsetTextDecoration().run():e.editor.chain().focus().setTextDecoration("underline").run()};return(i,s)=>_n((U(),ue("button",{class:Ve(["bootstrap-styles p-1 rounded rich-text-button",{active:r.value,disabled:!t.isAllowToEdit&&!r.value}]),onClick:s[0]||(s[0]=()=>o())},[N("i",Hen,[Ce($en)])],2)),[[ee(Mo),{title:n.tooltip,placement:"top"}]])}}),jen=ht(Wen,[["__scopeId","data-v-ae63be68"]]),Uen={},Ken={xmlns:"http://www.w3.org/2000/svg",width:"17",height:"16",viewBox:"0 0 17 16",fill:"none"};function qen(t,e){return U(),ue("svg",Ken,[...e[0]||(e[0]=[N("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 Jen=ht(Uen,[["render",qen]]),Gen={tooltip:"Italic"},Yen={tooltip:"Курсив"},Xen=Ir({en:Gen,ru:Yen}),Qen={class:"bootstrap-styles d-flex rich-text-icon icon-hover"},Zen=pt({__name:"FontStyleEditor",props:{editor:{},isAllowToEdit:{type:Boolean},theme:{},deps:{}},setup(t){const e=t,n={tooltip:Xen({localeKey:e.deps.localeKey}).tooltip},r=Q(()=>$O({editor:e.editor,theme:e.theme,styleName:"fontStyle"})==="italic"),o=()=>{r.value?e.editor.chain().focus().unsetFontStyle().run():e.editor.chain().focus().setFontStyle("italic").run(),e.editor.commands.focus()};return(i,s)=>_n((U(),ue("button",{class:Ve(["bootstrap-styles p-1 rounded rich-text-button",{active:r.value,disabled:!t.isAllowToEdit&&!r.value}]),onClick:s[0]||(s[0]=()=>o())},[N("i",Qen,[Ce(Jen)])],2)),[[ee(Mo),{title:n.tooltip,placement:"top"}]])}}),etn=ht(Zen,[["__scopeId","data-v-ac6b2276"]]),ttn={},ntn={width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function rtn(t,e){return U(),ue("svg",ntn,[...e[0]||(e[0]=[N("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 otn=ht(ttn,[["render",rtn]]),itn={tooltip:"Uppercase"},stn={tooltip:"Заглавные"},atn=Ir({en:itn,ru:stn}),ltn={class:"bootstrap-styles d-flex rich-text-icon icon-hover"},utn=pt({__name:"TextTransformEditor",props:{editor:{},isAllowToEdit:{type:Boolean},theme:{},deps:{}},setup(t){const e=t,n={tooltip:atn({localeKey:e.deps.localeKey}).tooltip},r=KKe.name,o=Q(()=>e.editor.isActive({[r]:"uppercase"})),i=()=>{o.value?e.editor.commands.unsetTextTransform():e.editor.commands.setTextTransform("uppercase"),e.editor.commands.focus()};return(s,a)=>_n((U(),ue("button",{class:Ve(["bootstrap-styles p-1 rounded rich-text-button",{active:e.editor.isActive({[ee(r)]:"uppercase"}),disabled:!t.isAllowToEdit&&!e.editor.isActive({[ee(r)]:"uppercase"})}]),onClick:a[0]||(a[0]=l=>i())},[N("i",ltn,[Ce(otn)])],2)),[[ee(Mo),{title:n.tooltip,placement:"top"}]])}}),ctn=ht(utn,[["__scopeId","data-v-20dea8b8"]]),dtn={},htn={width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function ftn(t,e){return U(),ue("svg",htn,[...e[0]||(e[0]=[N("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),N("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 ptn=ht(dtn,[["render",ftn]]),mtn={tooltip:"Unsubscribe link"},gtn={tooltip:"Ссылка на отписку"},ytn=Ir({en:mtn,ru:gtn}),Ctn={class:"bootstrap-styles d-flex rich-text-icon icon-hover"},btn=pt({__name:"UnsubscribeLinkEditor",props:{editor:{},isAllowToEdit:{type:Boolean},theme:{},deps:{}},setup(t){const e=t,n={tooltip:ytn({localeKey:e.deps.localeKey}).tooltip},r=bde.name,o=$ce.name,i=Q(()=>e.editor.isActive(o)),s=()=>{i.value&&e.editor.commands.unsetLink(),e.editor.isActive(r)?e.editor.chain().unsetUnsubscribeLink().applySiblingNodeThemeSettings().run():e.editor.chain().setUnsubscribeLink().setThemeSettings("Link").run()};return(a,l)=>_n((U(),ue("button",{class:Ve(["bootstrap-styles p-1 rounded rich-text-button",{active:e.editor.isActive(ee(r)),disabled:!e.editor.isActive(ee(r))&&!e.isAllowToEdit}]),onClick:l[0]||(l[0]=()=>s())},[N("i",Ctn,[Ce(ptn)])],2)),[[ee(Mo),{title:n.tooltip,placement:"top"}]])}}),vtn=ht(btn,[["__scopeId","data-v-9ee287d3"]]),wtn={},xtn={xmlns:"http://www.w3.org/2000/svg",width:"17",height:"16",viewBox:"0 0 17 16",fill:"none"};function ktn(t,e){return U(),ue("svg",xtn,[...e[0]||(e[0]=[N("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 Ttn=ht(wtn,[["render",ktn]]),Stn={tooltip:"Bullet list"},Ftn={tooltip:"Маркированный список"},Etn=Ir({en:Stn,ru:Ftn}),Atn={class:"bootstrap-styles d-flex rich-text-icon icon-hover"},_tn=pt({__name:"BulletListEditor",props:{editor:{},deps:{}},setup(t){const e=t,n={tooltip:Etn({localeKey:e.deps.localeKey}).tooltip},r=Pce.name,o=()=>{e.editor.chain().focus().toggleBulletList().run()};return(i,s)=>_n((U(),ue("button",{class:Ve(["bootstrap-styles p-1 rounded rich-text-button",{active:e.editor.isActive(ee(r))}]),onClick:s[0]||(s[0]=()=>o())},[N("i",Atn,[Ce(Ttn)])],2)),[[ee(Mo),{title:n.tooltip,placement:"top"}]])}}),Rtn=ht(_tn,[["__scopeId","data-v-c64632e3"]]),Dtn={},Ntn={xmlns:"http://www.w3.org/2000/svg",width:"17",height:"16",viewBox:"0 0 17 16",fill:"none"};function Ltn(t,e){return U(),ue("svg",Ntn,[...e[0]||(e[0]=[N("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 Mtn=ht(Dtn,[["render",Ltn]]),Otn={tooltip:"Ordered list"},Btn={tooltip:"Нумерованный список"},Itn=Ir({en:Otn,ru:Btn}),$tn={class:"bootstrap-styles d-flex rich-text-icon icon-hover"},Ptn=pt({__name:"OrderedListEditor",props:{editor:{},deps:{}},setup(t){const e=t,n={tooltip:Itn({localeKey:e.deps.localeKey}).tooltip},r=zce.name,o=()=>{e.editor.chain().focus().toggleOrderedList().run()};return(i,s)=>_n((U(),ue("button",{class:Ve(["bootstrap-styles p-1 rounded rich-text-button",{active:e.editor.isActive(ee(r))}]),onClick:s[0]||(s[0]=()=>o())},[N("i",$tn,[Ce(Mtn)])],2)),[[ee(Mo),{title:n.tooltip,placement:"top"}]])}}),Vtn=ht(Ptn,[["__scopeId","data-v-aaa43948"]]),ztn={},Htn={width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Wtn(t,e){return U(),ue("svg",Htn,[...e[0]||(e[0]=[N("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 rSe=ht(ztn,[["render",Wtn]]),jtn={},Utn={width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Ktn(t,e){return U(),ue("svg",Utn,[...e[0]||(e[0]=[N("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),N("path",{d:"M14 2.6665H2V3.99984H14V2.6665Z",fill:"var(--black)"},null,-1)])])}const oSe=ht(jtn,[["render",Ktn]]),qtn={},Jtn={width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Gtn(t,e){return U(),ue("svg",Jtn,[...e[0]||(e[0]=[N("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 iSe=ht(qtn,[["render",Gtn]]),Ytn={},Xtn={width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Qtn(t,e){return U(),ue("svg",Xtn,[...e[0]||(e[0]=[N("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 sSe=ht(Ytn,[["render",Qtn]]),Ztn={tooltip:"Vertical image alignment"},enn={tooltip:"Выравнивание картинок по вертикали"},tnn=Ir({en:Ztn,ru:enn}),nnn={class:"bootstrap-styles vertical-align-editor dropdown rounded"},rnn={class:"bootstrap-styles rich-text-icon icon-hover d-flex justify-content-center align-items-center"},onn={class:"bootstrap-styles rich-text-icon icon-hover d-flex justify-content-center align-items-center"},inn={class:"bootstrap-styles rich-text-icon icon-hover d-flex justify-content-center align-items-center"},snn={class:"bootstrap-styles rich-text-icon icon-hover d-flex justify-content-center align-items-center"},ann={class:"bootstrap-styles rich-text-icon icon-hover d-flex justify-content-center align-items-center"},lnn=pt({__name:"VerticalAlignEditor",props:{editor:{},currentVerticalAlign:{},deps:{}},emits:["onVerticalAlignVariantChanged"],setup(t,{emit:e}){const n=t,r={tooltip:tnn({localeKey:n.deps.localeKey}).tooltip},o=Xt({isOpened:!1}),i=a=>{s("onVerticalAlignVariantChanged",a),o.isOpened=!1},s=e;return(a,l)=>_n((U(),ue("div",nnn,[N("button",{id:"richTextDropdownVerticalAlign",class:Ve(["bootstrap-styles p-1 rounded rich-text-button",{show:o.isOpened}]),type:"button",onClick:l[0]||(l[0]=u=>o.isOpened=!o.isOpened)},[N("i",rnn,[n.currentVerticalAlign==="Baseline"?(U(),kt(sSe,{key:0})):it("",!0),n.currentVerticalAlign==="Top"?(U(),kt(rSe,{key:1})):it("",!0),n.currentVerticalAlign==="Middle"?(U(),kt(oSe,{key:2})):it("",!0),n.currentVerticalAlign==="Bottom"?(U(),kt(iSe,{key:3})):it("",!0)])],2),N("div",{class:Ve([{show:o.isOpened},"bootstrap-styles vertical-align-dropdown bg-white p-1"]),"aria-labelledby":"richTextDropdownVerticalAlign"},[N("button",{class:Ve(["bootstrap-styles p-1 rounded rich-text-button me-14",{active:n.currentVerticalAlign==="Baseline"}]),onClick:l[1]||(l[1]=()=>i("Baseline"))},[N("i",onn,[Ce(sSe)])],2),N("button",{class:Ve(["bootstrap-styles p-1 rounded rich-text-button me-14",{active:n.currentVerticalAlign==="Top"}]),onClick:l[2]||(l[2]=()=>i("Top"))},[N("i",inn,[Ce(rSe)])],2),N("button",{class:Ve(["bootstrap-styles p-1 rounded rich-text-button me-14",{active:n.currentVerticalAlign==="Middle"}]),onClick:l[3]||(l[3]=()=>i("Middle"))},[N("i",snn,[Ce(oSe)])],2),N("button",{class:Ve(["bootstrap-styles p-1 rounded rich-text-button",{active:n.currentVerticalAlign==="Bottom"}]),onClick:l[4]||(l[4]=()=>i("Bottom"))},[N("i",ann,[Ce(iSe)])],2)],2)])),[[ee(rm),()=>o.isOpened=!1],[ee(Mo),{title:r.tooltip,placement:"top"}]])}}),unn=ht(lnn,[["__scopeId","data-v-4a636ae8"]]),cnn={},dnn={xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"};function hnn(t,e){return U(),ue("svg",dnn,[...e[0]||(e[0]=[N("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 aSe=ht(cnn,[["render",hnn]]),fnn={},pnn={xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"};function mnn(t,e){return U(),ue("svg",pnn,[...e[0]||(e[0]=[N("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 lSe=ht(fnn,[["render",mnn]]),gnn={},ynn={xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"};function Cnn(t,e){return U(),ue("svg",ynn,[...e[0]||(e[0]=[N("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 uSe=ht(gnn,[["render",Cnn]]),bnn={tooltip:"Alignment"},vnn={tooltip:"Выравнивание"},wnn=Ir({en:bnn,ru:vnn}),xnn={class:"bootstrap-styles content-align-editor dropdown rounded"},knn={class:"bootstrap-styles rich-text-icon icon-hover d-flex justify-content-center align-items-center"},Tnn={class:"bootstrap-styles rich-text-icon icon-hover d-flex justify-content-center align-items-center"},Snn={class:"bootstrap-styles rich-text-icon icon-hover d-flex justify-content-center align-items-center"},Fnn={class:"bootstrap-styles rich-text-icon icon-hover d-flex justify-content-center align-items-center"},Enn=pt({__name:"ContentAlignEditor",props:{editor:{},deps:{},initialContentAlign:{}},setup(t){const e=t,n={tooltip:wnn({localeKey:e.deps.localeKey}).tooltip},r=Xt({isOpened:!1}),o=Q(()=>{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(),r.isOpened=!1};return(s,a)=>_n((U(),ue("div",xnn,[N("button",{id:"richTextDropdownContentAlign",class:Ve(["bootstrap-styles p-1 rounded rich-text-button",{show:r.isOpened}]),type:"button",onClick:a[0]||(a[0]=l=>r.isOpened=!r.isOpened)},[N("i",knn,[o.value==="Left"?(U(),kt(aSe,{key:0})):it("",!0),o.value==="Center"?(U(),kt(lSe,{key:1})):it("",!0),o.value==="Right"?(U(),kt(uSe,{key:2})):it("",!0)])],2),N("div",{class:Ve([{show:r.isOpened},"bootstrap-styles content-align-dropdown bg-white p-1"]),"aria-labelledby":"richTextDropdownContentAlign"},[N("button",{class:Ve(["bootstrap-styles p-1 rounded rich-text-button me-14",{active:o.value==="Left"}]),onClick:a[1]||(a[1]=()=>i("Left"))},[N("i",Tnn,[Ce(aSe)])],2),N("button",{class:Ve(["bootstrap-styles p-1 rounded rich-text-button me-14",{active:o.value==="Center"}]),onClick:a[2]||(a[2]=()=>i("Center"))},[N("i",Snn,[Ce(lSe)])],2),N("button",{class:Ve(["bootstrap-styles p-1 rounded rich-text-button",{active:o.value==="Right"}]),onClick:a[3]||(a[3]=()=>i("Right"))},[N("i",Fnn,[Ce(uSe)])],2)],2)])),[[ee(rm),()=>r.isOpened=!1],[ee(Mo),{title:n.tooltip,placement:"top"}]])}}),Ann=ht(Enn,[["__scopeId","data-v-e9d5324a"]]),_nn={class:"bootstrap-styles rich-text-toolbar d-flex align-items-center border gap-1 p-1"},Rnn={key:2,class:"bootstrap-styles position-relative h-100"},Dnn={key:3,class:"bootstrap-styles position-relative h-100"},Nnn={key:4,class:"bootstrap-styles d-flex justify-content-center align-items-center"},Lnn={key:7,class:"vl"},Mnn={key:13,class:"vl"},Onn={key:16,class:"vl"},Bnn=pt({__name:"RichTextToolbar",props:{editor:{},deps:{},element:{},theme:{},initialThemeName:{},initialContentAlign:{}},emits:["onVerticalAlignVariantChanged"],setup(t,{emit:e}){const n=t,r=n.deps.richTextToolbarPlugins,o=Q(()=>{const{from:a,to:l}=n.editor.state.selection;return a!==l}),i=Q(()=>n.editor.isActive("image")),s=e;return(a,l)=>(U(),ue("div",_nn,[i.value?it("",!0):(U(),kt(tZt,{key:0,editor:n.editor,theme:n.theme,isAllowToEdit:o.value,initialThemeName:n.initialThemeName,deps:n.deps.themeSettingsSelectorDeps},null,8,["editor","theme","isAllowToEdit","initialThemeName","deps"])),i.value?it("",!0):(U(),kt(SQt,{key:1,theme:n.theme,editor:n.editor,isAllowToEdit:o.value,deps:n.deps.fontFamilySelectorDeps},null,8,["theme","editor","isAllowToEdit","deps"])),i.value?it("",!0):(U(),ue("div",Rnn,[Ce(KQt,{editor:n.editor,theme:n.theme,deps:n.deps.fontSizeEditorDeps,class:Ve({disabled:!o.value})},null,8,["editor","theme","deps","class"])])),i.value?it("",!0):(U(),ue("div",Dnn,[Ce(gZt,{editor:n.editor,theme:n.theme,deps:n.deps.lineHeightEditorDeps,class:Ve({disabled:!o.value})},null,8,["editor","theme","deps","class"])])),i.value?it("",!0):(U(),ue("div",Nnn,[Ce(fQt,{editor:n.editor,theme:n.theme,isAllowToEdit:o.value,deps:n.deps.colorPickerDeps},null,8,["editor","theme","isAllowToEdit","deps"])])),i.value?(U(),kt(unn,{key:5,currentVerticalAlign:n.element.ImageVerticalAlign,editor:n.editor,deps:n.deps.verticalAlignEditorDeps,onOnVerticalAlignVariantChanged:l[0]||(l[0]=u=>s("onVerticalAlignVariantChanged",u))},null,8,["currentVerticalAlign","editor","deps"])):it("",!0),i.value?it("",!0):(U(),kt(Ann,{key:6,editor:n.editor,initialContentAlign:n.initialContentAlign,deps:n.deps.contentAlignEditorDeps,class:Ve({"bootstrap-styles me-14":i.value})},null,8,["editor","initialContentAlign","deps","class"])),i.value?it("",!0):(U(),ue("div",Lnn)),i.value?it("",!0):(U(),kt(Ten,{key:8,editor:n.editor,theme:n.theme,isAllowToEdit:o.value,deps:n.deps.fontWeightEditorDeps},null,8,["editor","theme","isAllowToEdit","deps"])),i.value?it("",!0):(U(),kt(etn,{key:9,editor:n.editor,theme:n.theme,isAllowToEdit:o.value,deps:n.deps.fontStyleEditorDeps},null,8,["editor","theme","isAllowToEdit","deps"])),i.value?it("",!0):(U(),kt(Men,{key:10,editor:n.editor,theme:n.theme,isAllowToEdit:o.value,deps:n.deps.lineThroughEditorDeps},null,8,["editor","theme","isAllowToEdit","deps"])),i.value?it("",!0):(U(),kt(jen,{key:11,editor:n.editor,theme:n.theme,isAllowToEdit:o.value,deps:n.deps.underlineEditorDeps},null,8,["editor","theme","isAllowToEdit","deps"])),i.value?it("",!0):(U(),kt(ctn,{key:12,editor:n.editor,theme:n.theme,isAllowToEdit:o.value,deps:n.deps.textTransformEditorDeps},null,8,["editor","theme","isAllowToEdit","deps"])),i.value?it("",!0):(U(),ue("div",Mnn)),i.value?it("",!0):(U(),kt(Rtn,{key:14,editor:n.editor,deps:n.deps.bulletListEditorDeps},null,8,["editor","deps"])),i.value?it("",!0):(U(),kt(Vtn,{key:15,editor:n.editor,deps:n.deps.orderedListEditorDeps},null,8,["editor","deps"])),i.value?it("",!0):(U(),ue("div",Onn)),Ce(qZt,{editor:n.editor,isAllowToEdit:o.value,deps:n.deps.linkEditorDeps},null,8,["editor","isAllowToEdit","deps"]),Ce(vtn,{editor:n.editor,theme:n.theme,isAllowToEdit:o.value,deps:n.deps.unsubscribeLinkEditorDeps},null,8,["editor","theme","isAllowToEdit","deps"]),Ce(pen,{editor:n.editor,deps:n.deps.imageEditorDeps},null,8,["editor","deps"]),(U(!0),ue(xt,null,Kr(ee(r),(u,c)=>(U(),ue("span",{key:c,class:"bootstrap-styles d-none"},[(U(),kt(kPe(u),{editor:n.editor},null,8,["editor"]))]))),128))]))}}),Inn=ht(Bnn,[["__scopeId","data-v-359375dd"]]),$nn=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 lu(t)}}}),Pnn=t=>$nn(t.verticalAlign).Match({whenBaseline:()=>"baseline",whenTop:()=>"top",whenMiddle:()=>"middle",whenBottom:()=>"bottom"}),cSe="NormalText",dSe="Left",Vnn=pt({__name:"RichText",props:{deps:{},theme:{},element:{},isSelected:{type:Boolean}},emits:["onRichTextUpdated","onRichTextRemoved","onElementClicked"],setup(t,{emit:e}){tm(b=>({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:m.value}));const n=t,r=Xt({isRemoveComponentWindowShown:!1,isEditing:!1}),o={removeWindowTitle:YTe({localeKey:n.deps.localeKey}).removeWindowTitle,removeWindowDescription:YTe({localeKey:n.deps.localeKey}).removeWindowDescription},i=Wn(null),s=Wn(null),{floatingStyles:a}=S6e(s,i,{placement:"top",whileElementsMounted:x6e,middleware:[k6e(10)]}),l=Q(()=>{const b=a.value.transform??"translate(0px, 0px)",v=new DOMMatrix(b).m42;return{...a.value,left:"50%",transform:`translate(-50%, ${v}px)`}}),u=RU(),c=n.element.ContentAlign||dSe,d=Q(()=>il({fontFamily:n.theme.FontFamily,themeFontSettings:n.theme.FontSettingsPresets.NormalText,themeColor:n.theme.Colors.NormalTextColor})),h=Q(()=>{const b={...gde(d.value)};return{fontSize:b.fontSize,lineHeight:b.lineHeight,fontFamily:b.fontFamily,fontWeight:b.fontWeight,fontStyle:b.fontStyle,color:b.color}}),f=u6t({content:XTe(n.element.Text),extensions:[...YXt({dataSourceFieldNameDelegate:n.deps.dataSourceFieldNameDelegate,initialThemeName:cSe,themeColors:n.theme.Colors,fallbackContentAlign:n.element.ContentAlign||dSe})],editable:r.isEditing,autofocus:"all",onUpdate:({editor:b})=>{if(!r.isEditing)return;const v=XXt({editor:b});C("onRichTextUpdated",{...n.element,Text:v})}}),p=()=>{f.value&&(f.value.chain().focus().undo().run(),r.isRemoveComponentWindowShown=!1)},m=Q(()=>Pnn({verticalAlign:n.element.ImageVerticalAlign})),g=()=>[document.querySelector(".rich-text-toolbar"),document.querySelector(".string-expression-builder-modal-window"),document.querySelector(`.rich-text-editor__content-${u}`)];En(()=>n.element.Text,()=>{f.value&&!r.isEditing&&f.value.commands.setContent(XTe(n.element.Text))});const C=e;return(b,v)=>_n((U(),ue("span",{ref_key:"richTextElementRef",ref:s,class:Ve(["RichText cursor-pointer user-select-none",{selected:n.isSelected}]),style:Be([{...h.value,minHeight:n.element.MinHeight+"px",display:"block"}]),onClick:v[3]||(v[3]=Po(()=>{C("onElementClicked"),r.isEditing=!0,ee(f)&&ee(f).setEditable(!0)},["prevent"]))},[Ce(ee(l6t),{class:Ve(["rich-text-editor__content",`rich-text-editor__content-${ee(u)}`]),editor:ee(f)},null,8,["class","editor"]),ee(f)&&r.isEditing?(U(),kt(Inn,{key:0,ref_key:"richTextToolbarRef",ref:i,editor:ee(f),deps:n.deps.richTextToolbarDeps,element:n.element,theme:n.theme,initialThemeName:cSe,initialContentAlign:ee(c),style:Be(l.value),onOnVerticalAlignVariantChanged:v[0]||(v[0]=w=>C("onRichTextUpdated",{...n.element,ImageVerticalAlign:w}))},null,8,["editor","deps","element","theme","initialContentAlign","style"])):it("",!0),(U(),kt(hPe,{to:"body",defer:""},[r.isRemoveComponentWindowShown?(U(),kt(cXt,{key:0,deps:n.deps.removeConfirmModalWindowDeps,headerText:o.removeWindowTitle,onCancel:v[1]||(v[1]=()=>p()),onConfirmed:v[2]||(v[2]=()=>{r.isRemoveComponentWindowShown=!1,C("onRichTextRemoved")})},{"body-content":ky(()=>[oO(er(o.removeWindowDescription),1)]),_:1},8,["deps","headerText"])):it("",!0)]))],6)),[[ee(rm),{handler:()=>{r.isEditing=!1,ee(f)&&ee(f).setEditable(!1)},include:g}]])}}),znn=ht(Vnn,[["__scopeId","data-v-0a9d26ba"]]),Hnn=pt({__name:"UnsubscribeLink",props:{theme:{},element:{}},emits:["onElementClicked"],setup(t,{emit:e}){const n=t,r=Q(()=>{const i=yde({fontFamily:n.theme.FontFamily,fontStyle:n.element.Style,themeDefinedFontSettings:n.theme.FontSettingsPresets,themeColors:n.theme.Colors});return{...gde(i)}}),o=e;return(i,s)=>(U(),ue("a",{href:"#",class:"cursor-pointer user-select-none",style:Be([{margin:"0"},[r.value,ee(PL)({contentAlign:n.element.ContentAlign})]]),onClick:s[0]||(s[0]=Po(()=>o("onElementClicked"),["prevent"]))},er(n.element.Text),5))}}),Wnn=ht(Hnn,[["__scopeId","data-v-68ed9754"]]),jnn=["src","alt"],Unn={class:"bootstrap-styles position-absolute top-0 left-0",width:"100%",style:{"border-spacing":"0","border-collapse":"collapse",width:"100%",height:"100%"}},Knn={key:0},qnn=["align"],Jnn={style:{width:"auto","border-spacing":"0","border-collapse":"separate"}},Gnn={align:"center",style:{width:"auto"}},Ynn={key:0},Xnn={key:1},Qnn=["align"],Znn={style:{width:"auto","border-spacing":"0","border-collapse":"separate"}},ern={align:"center",style:{width:"auto"}},trn={key:2},nrn=["align"],rrn={style:{width:"auto","border-spacing":"0","border-collapse":"separate"}},orn={align:"center",style:{width:"auto"}},irn={key:3},srn=["align"],arn={style:{width:"auto","border-spacing":"0","border-collapse":"separate"}},lrn={align:"center",style:{width:"auto"}},urn=pt({__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,r=Xt({src:"",href:"",isLoaded:!1}),o=async s=>n.deps.stringExpressionEvaluator({stringExpression:s,context:n.context});(async()=>(r.src=await o(n.element.Src),r.href=await o(n.element.HRef),r.isLoaded=!0))();const i=e;return(s,a)=>r.isLoaded?(U(),ue("table",{key:0,class:"bootstrap-styles position-relative",style:Be([{"border-spacing":"0","border-collapse":"separate"},{width:"100%"}]),onClick:a[20]||(a[20]=Po(()=>i("onElementWrapperClicked"),["prevent"]))},[N("tbody",null,[N("tr",null,[N("td",{align:"center",style:Be([{height:n.element.AdjustedHeight+"px",verticalAlign:"top"}])},[_n(N("img",{src:r.src,alt:r.src,style:{"max-width":"100%"}},null,8,jnn),[[ee(IL),({width:l,height:u})=>{i("onImageSizeAdjusted",{Path:n.path,AdjustedHeight:u,AdjustedWidth:l}),r.isLoaded=!0}]]),N("table",Unn,[N("tbody",null,[n.element.TopElementList.List.length>0&&n.element.TopElementList.Direction==="Vertical"?(U(),ue("tr",Knn,[N("td",{valign:"top",align:ee(Zf)({containerAlign:n.element.TopElementList.ContentAlign})},[N("table",Jnn,[N("tbody",null,[N("tr",null,[N("td",{style:Be({height:n.element.ElementsSpacerSize+"px",fontSize:n.element.ElementsSpacerSize+"px",lineHeight:n.element.ElementsSpacerSize+"px"})},"   ",4)]),(U(!0),ue(xt,null,Kr(n.element.TopElementList.List,(l,u)=>(U(),ue(xt,{key:u},[N("tr",null,[n.element.TopElementList.ContentAlign==="Left"?(U(),ue("td",{key:0,style:Be({width:n.element.ElementsSpacerSize+"px",fontSize:n.element.ElementsSpacerSize+"px",lineHeight:n.element.ElementsSpacerSize+"px"})},"   ",4)):it("",!0),N("td",Gnn,[Ce(Pu,{deps:n.deps,theme:n.theme,element:l,path:[...n.path,"TopElementList","List",u],selectedElementPath:n.selectedElementPath,context:n.context,onOnImageSizeAdjusted:a[0]||(a[0]=c=>i("onImageSizeAdjusted",c)),onOnImageOriginalSizeAdjusted:a[1]||(a[1]=c=>i("onImageOriginalSizeAdjusted",c)),onOnElementClicked:a[2]||(a[2]=c=>i("onElementClicked",c)),onOnElementUpdatedEvent:a[3]||(a[3]=c=>i("onElementUpdatedEvent",c)),onOnElementRemoved:a[4]||(a[4]=c=>i("onElementRemoved",c))},null,8,["deps","theme","element","path","selectedElementPath","context"])]),n.element.TopElementList.ContentAlign==="Right"?(U(),ue("td",{key:1,style:Be({width:n.element.ElementsSpacerSize+"px",fontSize:n.element.ElementsSpacerSize+"px",lineHeight:n.element.ElementsSpacerSize+"px"})},"   ",4)):it("",!0)]),n.element.TopElementList.List.length-1!==u?(U(),ue("tr",Ynn,[N("td",{style:Be({height:n.element.ElementsSpacerSize+"px",fontSize:n.element.ElementsSpacerSize+"px",lineHeight:n.element.ElementsSpacerSize+"px"})},"   ",4)])):it("",!0)],64))),128))])])],8,qnn)])):it("",!0),n.element.TopElementList.List.length>0&&n.element.TopElementList.Direction==="Horizontal"?(U(),ue("tr",Xnn,[N("td",{valign:"top",align:ee(Zf)({containerAlign:n.element.TopElementList.ContentAlign})},[N("table",Znn,[N("tbody",null,[N("tr",null,[N("td",{style:Be({height:n.element.ElementsSpacerSize+"px",fontSize:n.element.ElementsSpacerSize+"px",lineHeight:n.element.ElementsSpacerSize+"px"})},"   ",4)]),N("tr",null,[(U(!0),ue(xt,null,Kr(n.element.TopElementList.List,(l,u)=>(U(),ue(xt,{key:u},[n.element.TopElementList.ContentAlign==="Left"&&u===0?(U(),ue("td",{key:0,style:Be({width:n.element.ElementsSpacerSize+"px",fontSize:n.element.ElementsSpacerSize+"px",lineHeight:n.element.ElementsSpacerSize+"px"})},"   ",4)):it("",!0),N("td",ern,[Ce(Pu,{deps:n.deps,theme:n.theme,element:l,path:[...n.path,"TopElementList","List",u],selectedElementPath:n.selectedElementPath,context:n.context,onOnImageSizeAdjusted:a[5]||(a[5]=c=>i("onImageSizeAdjusted",c)),onOnImageOriginalSizeAdjusted:a[6]||(a[6]=c=>i("onImageOriginalSizeAdjusted",c)),onOnElementClicked:a[7]||(a[7]=c=>i("onElementClicked",c)),onOnElementUpdatedEvent:a[8]||(a[8]=c=>i("onElementUpdatedEvent",c)),onOnElementRemoved:a[9]||(a[9]=c=>i("onElementRemoved",c))},null,8,["deps","theme","element","path","selectedElementPath","context"])]),n.element.TopElementList.ContentAlign==="Center"&&n.element.TopElementList.List.length-1!==u?(U(),ue("td",{key:1,style:Be({width:n.element.ElementsSpacerSize+"px",fontSize:n.element.ElementsSpacerSize+"px",lineHeight:n.element.ElementsSpacerSize+"px"})},"   ",4)):it("",!0),n.element.TopElementList.ContentAlign==="Right"?(U(),ue("td",{key:2,style:Be({width:n.element.ElementsSpacerSize+"px",fontSize:n.element.ElementsSpacerSize+"px",lineHeight:n.element.ElementsSpacerSize+"px"})},"   ",4)):it("",!0),n.element.TopElementList.ContentAlign==="Left"&&n.element.TopElementList.List.length-1!==u?(U(),ue("td",{key:3,style:Be({width:n.element.ElementsSpacerSize+"px",fontSize:n.element.ElementsSpacerSize+"px",lineHeight:n.element.ElementsSpacerSize+"px"})},"   ",4)):it("",!0)],64))),128))])])])],8,Qnn)])):it("",!0),n.element.BottomElementList.List.length>0&&n.element.BottomElementList.Direction==="Vertical"?(U(),ue("tr",trn,[N("td",{valign:"bottom",align:ee(Zf)({containerAlign:n.element.BottomElementList.ContentAlign})},[N("table",rrn,[N("tbody",null,[(U(!0),ue(xt,null,Kr(n.element.BottomElementList.List,(l,u)=>(U(),ue(xt,{key:u},[N("tr",null,[n.element.BottomElementList.ContentAlign==="Left"?(U(),ue("td",{key:0,style:Be({width:n.element.ElementsSpacerSize+"px",fontSize:n.element.ElementsSpacerSize+"px",lineHeight:n.element.ElementsSpacerSize+"px"})},"   ",4)):it("",!0),N("td",orn,[Ce(Pu,{deps:n.deps,theme:n.theme,element:l,path:[...n.path,"BottomElementList","List",u],selectedElementPath:n.selectedElementPath,context:n.context,onOnImageSizeAdjusted:a[10]||(a[10]=c=>i("onImageSizeAdjusted",c)),onOnImageOriginalSizeAdjusted:a[11]||(a[11]=c=>i("onImageOriginalSizeAdjusted",c)),onOnElementClicked:a[12]||(a[12]=c=>i("onElementClicked",c)),onOnElementUpdatedEvent:a[13]||(a[13]=c=>i("onElementUpdatedEvent",c)),onOnElementRemoved:a[14]||(a[14]=c=>i("onElementRemoved",c))},null,8,["deps","theme","element","path","selectedElementPath","context"])]),n.element.BottomElementList.ContentAlign==="Right"?(U(),ue("td",{key:1,style:Be({width:n.element.ElementsSpacerSize+"px",fontSize:n.element.ElementsSpacerSize+"px",lineHeight:n.element.ElementsSpacerSize+"px"})},"   ",4)):it("",!0)]),N("tr",null,[N("td",{style:Be({height:n.element.ElementsSpacerSize+"px",fontSize:n.element.ElementsSpacerSize+"px",lineHeight:n.element.ElementsSpacerSize+"px"})},"   ",4)])],64))),128))])])],8,nrn)])):it("",!0),n.element.BottomElementList.List.length>0&&n.element.BottomElementList.Direction==="Horizontal"?(U(),ue("tr",irn,[N("td",{valign:"bottom",align:ee(Zf)({containerAlign:n.element.BottomElementList.ContentAlign})},[N("table",arn,[N("tbody",null,[N("tr",null,[(U(!0),ue(xt,null,Kr(n.element.BottomElementList.List,(l,u)=>(U(),ue(xt,{key:u},[n.element.BottomElementList.ContentAlign==="Left"&&u===0?(U(),ue("td",{key:0,style:Be({width:n.element.ElementsSpacerSize+"px",fontSize:n.element.ElementsSpacerSize+"px",lineHeight:n.element.ElementsSpacerSize+"px"})},"   ",4)):it("",!0),N("td",lrn,[Ce(Pu,{deps:n.deps,theme:n.theme,element:l,path:[...n.path,"BottomElementList","List",u],selectedElementPath:n.selectedElementPath,context:n.context,onOnImageSizeAdjusted:a[15]||(a[15]=c=>i("onImageSizeAdjusted",c)),onOnImageOriginalSizeAdjusted:a[16]||(a[16]=c=>i("onImageOriginalSizeAdjusted",c)),onOnElementClicked:a[17]||(a[17]=c=>i("onElementClicked",c)),onOnElementUpdatedEvent:a[18]||(a[18]=c=>i("onElementUpdatedEvent",c)),onOnElementRemoved:a[19]||(a[19]=c=>i("onElementRemoved",c))},null,8,["deps","theme","element","path","selectedElementPath","context"])]),n.element.BottomElementList.ContentAlign==="Center"&&n.element.BottomElementList.List.length-1!==u?(U(),ue("td",{key:1,style:Be({width:n.element.ElementsSpacerSize+"px",fontSize:n.element.ElementsSpacerSize+"px",lineHeight:n.element.ElementsSpacerSize+"px"})},"   ",4)):it("",!0),n.element.BottomElementList.ContentAlign==="Right"?(U(),ue("td",{key:2,style:Be({width:n.element.ElementsSpacerSize+"px",fontSize:n.element.ElementsSpacerSize+"px",lineHeight:n.element.ElementsSpacerSize+"px"})},"   ",4)):it("",!0),n.element.BottomElementList.ContentAlign==="Left"&&n.element.BottomElementList.List.length-1!==u?(U(),ue("td",{key:3,style:Be({width:n.element.ElementsSpacerSize+"px",fontSize:n.element.ElementsSpacerSize+"px",lineHeight:n.element.ElementsSpacerSize+"px"})},"   ",4)):it("",!0)],64))),128))])])])],8,srn)])):it("",!0)])])],4)])])])):it("",!0)}}),Pu=pt({__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,r=e,o=(i,s)=>{r("onElementClicked",{element:i,path:[...n.path,s]})};return(i,s)=>(U(),ue("span",{onClick:s[31]||(s[31]=Po(()=>{},["stop"]))},[n.element.Button!==void 0?(U(),kt(rXt,{key:0,deps:n.deps,theme:n.theme,element:n.element.Button,context:n.context,class:Ve({"element-selected":ee(SC)(n.selectedElementPath,[...n.path,"Button"])}),onOnElementClicked:s[0]||(s[0]=a=>o(n.element,"Button"))},null,8,["deps","theme","element","context","class"])):it("",!0),n.element.HeightContainer!==void 0?(U(),kt(MYt,{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=>r("onImageOriginalSizeAdjusted",a)),onOnImageSizeAdjusted:s[2]||(s[2]=a=>r("onImageSizeAdjusted",a)),onOnElementClicked:s[3]||(s[3]=a=>r("onElementClicked",a)),onOnElementRemoved:s[4]||(s[4]=a=>r("onElementRemoved",a)),onOnElementUpdatedEvent:s[5]||(s[5]=a=>r("onElementUpdatedEvent",a))},null,8,["deps","theme","element","path","selectedElementPath","context"])):it("",!0),n.element.Image!==void 0?(U(),kt(VYt,{key:2,deps:n.deps,theme:n.theme,element:n.element.Image,context:n.context,path:[...n.path,"Image"],class:Ve({"element-selected":ee(SC)(n.selectedElementPath,[...n.path,"Image"])}),onOnImageOriginalSizeAdjusted:s[6]||(s[6]=a=>r("onImageOriginalSizeAdjusted",a)),onOnImageSizeAdjusted:s[7]||(s[7]=a=>r("onImageSizeAdjusted",a)),onOnElementClicked:s[8]||(s[8]=a=>o(n.element,"Image"))},null,8,["deps","theme","element","context","path","class"])):it("",!0),n.element.Spacer!==void 0?(U(),kt(KYt,{key:3,element:n.element.Spacer,theme:n.theme,class:Ve({"element-selected":ee(SC)(n.selectedElementPath,[...n.path,"Spacer"])}),onOnElementClicked:s[9]||(s[9]=a=>o(n.element,"Spacer"))},null,8,["element","theme","class"])):it("",!0),n.element.SpanText!==void 0?(U(),kt(sXt,{key:4,deps:n.deps,theme:n.theme,element:n.element.SpanText,context:n.context,class:Ve({"element-selected":ee(SC)(n.selectedElementPath,[...n.path,"SpanText"])}),onOnElementClicked:s[10]||(s[10]=a=>o(n.element,"SpanText"))},null,8,["deps","theme","element","context","class"])):it("",!0),n.element.RichText!==void 0?(U(),kt(znn,{key:5,deps:n.deps.richTextDeps,theme:n.theme,element:n.element.RichText,isSelected:ee(SC)(n.selectedElementPath,[...n.path,"RichText"]),onOnElementClicked:s[11]||(s[11]=a=>o(n.element,"RichText")),onOnRichTextUpdated:s[12]||(s[12]=a=>{r("onElementUpdatedEvent",{path:n.path,element:{RichText:a}})}),onOnRichTextRemoved:s[13]||(s[13]=()=>{r("onElementRemoved",n.path)})},null,8,["deps","theme","element","isSelected"])):it("",!0),n.element.OneLineList!==void 0?(U(),kt(jYt,{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=>r("onImageOriginalSizeAdjusted",a)),onOnImageSizeAdjusted:s[15]||(s[15]=a=>r("onImageSizeAdjusted",a)),onOnElementClicked:s[16]||(s[16]=a=>r("onElementClicked",a)),onOnElementRemoved:s[17]||(s[17]=a=>r("onElementRemoved",a)),onOnElementUpdatedEvent:s[18]||(s[18]=a=>r("onElementUpdatedEvent",a))},null,8,["deps","theme","element","path","selectedElementPath","context"])):it("",!0),n.element.If!==void 0?(U(),kt(RYt,{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=>r("onImageOriginalSizeAdjusted",a)),onOnImageSizeAdjusted:s[20]||(s[20]=a=>r("onImageSizeAdjusted",a)),onOnElementClicked:s[21]||(s[21]=a=>r("onElementClicked",a)),onOnElementRemoved:s[22]||(s[22]=a=>r("onElementRemoved",a)),onOnElementUpdatedEvent:s[23]||(s[23]=a=>r("onElementUpdatedEvent",a))},null,8,["deps","theme","element","context","path","selectedElementPath"])):it("",!0),n.element.UnsubscribeLink!==void 0?(U(),kt(Wnn,{key:8,theme:n.theme,element:n.element.UnsubscribeLink,class:Ve({"element-selected":ee(SC)(n.selectedElementPath,[...n.path,"UnsubscribeLink"])}),onOnElementClicked:s[24]||(s[24]=a=>o(n.element,"UnsubscribeLink"))},null,8,["theme","element","class"])):it("",!0),n.element.BackgroundImage!==void 0?(U(),kt(urn,{key:9,deps:n.deps,theme:n.theme,element:n.element.BackgroundImage,context:n.context,path:[...n.path,"BackgroundImage"],selectedElementPath:n.selectedElementPath,class:Ve({"element-selected":ee(SC)(n.selectedElementPath,[...n.path,"BackgroundImage"])}),onOnImageOriginalSizeAdjusted:s[25]||(s[25]=a=>r("onImageOriginalSizeAdjusted",a)),onOnImageSizeAdjusted:s[26]||(s[26]=a=>r("onImageSizeAdjusted",a)),onOnElementClicked:s[27]||(s[27]=a=>r("onElementClicked",a)),onOnElementRemoved:s[28]||(s[28]=a=>r("onElementRemoved",a)),onOnElementUpdatedEvent:s[29]||(s[29]=a=>r("onElementUpdatedEvent",a)),onOnElementWrapperClicked:s[30]||(s[30]=a=>o(n.element,"BackgroundImage"))},null,8,["deps","theme","element","context","path","selectedElementPath","class"])):it("",!0)]))}}),crn=["align"],drn=pt({__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}){tm(i=>({v63736150:o.value}));const n=t,r=e,o=Q(()=>n.iteratedColumn.WidthInPercents*n.containerWidth+"px");return(i,s)=>(U(),ue("div",{class:"iterated-column",style:Be({display:"inline-block",verticalAlign:n.iteratedColumn.VerticalAlign})},[N("table",{style:Be([[ee(BO)({borderCollapse:n.iteratedColumn.BorderCollapse})],{width:"100%","border-spacing":"0"}]),width:"100%"},[N("tbody",null,[N("tr",null,[N("td",{align:ee(Zf)({containerAlign:n.iteratedColumn.ContainerAlign}),style:Be([[ee(jp)({border:n.iteratedColumn.Border,themeColors:n.theme.Colors}),{backgroundColor:ee(nd)({color:n.iteratedColumn.BgColor,themeColors:n.theme.Colors})},ee(Ah)({borderRadius:n.iteratedColumn.BorderRadius,borderRadiusCard:n.theme.BorderRadiusCard,bodyBorderRadius:n.theme.BorderRadius,borderButtonRadius:n.theme.BorderRadiusButton,borderBannerRadius:n.theme.BorderRadiusBanner})],{"line-height":"normal"}])},[(U(!0),ue(xt,null,Kr(n.iteratedColumn.Elements,(a,l)=>(U(),kt(Pu,{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]=u=>r("onElementClicked",u)),onOnImageSizeAdjusted:s[1]||(s[1]=u=>r("onImageSizeAdjusted",u)),onOnImageOriginalSizeAdjusted:s[2]||(s[2]=u=>r("onImageOriginalSizeAdjusted",u)),onOnElementUpdatedEvent:s[3]||(s[3]=u=>r("onElementUpdatedEvent",u)),onOnElementRemoved:s[4]||(s[4]=u=>r("onElementRemoved",u))},null,8,["deps","theme","element","context","path","selectedElementPath"]))),128))],12,crn)])])],4)],4))}}),hrn=ht(drn,[["__scopeId","data-v-4bdaa248"]]),frn=["align"],prn=pt({__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}){tm(i=>({v2fbddeb4:o.value}));const n=t,r=e,o=Q(()=>n.iteratedColumnN21.WidthInPercents*n.containerWidth+"px");return(i,s)=>(U(),ue("div",{class:"iterated-column__N-2-1",style:Be({display:"inline-block",verticalAlign:n.iteratedColumnN21.VerticalAlign})},[N("table",{style:Be([[ee(BO)({borderCollapse:n.iteratedColumnN21.BorderCollapse})],{width:"100%","border-spacing":"0"}]),width:"100%"},[N("tbody",null,[N("tr",null,[N("td",{align:ee(Zf)({containerAlign:n.iteratedColumnN21.ContainerAlign}),style:Be([[ee(jp)({border:n.iteratedColumnN21.Border,themeColors:n.theme.Colors}),{backgroundColor:ee(nd)({color:n.iteratedColumnN21.BgColor,themeColors:n.theme.Colors})},ee(Ah)({borderRadius:n.iteratedColumnN21.BorderRadius,borderRadiusCard:n.theme.BorderRadiusCard,bodyBorderRadius:n.theme.BorderRadius,borderButtonRadius:n.theme.BorderRadiusButton,borderBannerRadius:n.theme.BorderRadiusBanner})],{"line-height":"normal"}])},[(U(!0),ue(xt,null,Kr(n.iteratedColumnN21.Elements,(a,l)=>(U(),kt(Pu,{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]=u=>r("onElementClicked",u)),onOnImageSizeAdjusted:s[1]||(s[1]=u=>r("onImageSizeAdjusted",u)),onOnImageOriginalSizeAdjusted:s[2]||(s[2]=u=>r("onImageOriginalSizeAdjusted",u)),onOnElementUpdatedEvent:s[3]||(s[3]=u=>r("onElementUpdatedEvent",u)),onOnElementRemoved:s[4]||(s[4]=u=>r("onElementRemoved",u))},null,8,["deps","theme","element","context","path","selectedElementPath"]))),128))],12,frn)])])],4)],4))}}),mrn=ht(prn,[["__scopeId","data-v-b46af162"]]),grn=["align"],yrn=pt({__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}){tm(i=>({v904d8f2c:o.value}));const n=t,r=e,o=Q(()=>n.iteratedColumnN22.WidthInPercents*n.containerWidth+"px");return(i,s)=>(U(),ue("div",{class:"iterated-column__N-2-2",style:Be({display:"inline-block",verticalAlign:n.iteratedColumnN22.VerticalAlign})},[N("table",{style:Be([[ee(BO)({borderCollapse:n.iteratedColumnN22.BorderCollapse})],{width:"100%","border-spacing":"0"}]),width:"100%"},[N("tbody",null,[N("tr",null,[N("td",{align:ee(Zf)({containerAlign:n.iteratedColumnN22.ContainerAlign}),style:Be([[ee(jp)({border:n.iteratedColumnN22.Border,themeColors:n.theme.Colors}),{backgroundColor:ee(nd)({color:n.iteratedColumnN22.BgColor,themeColors:n.theme.Colors})},ee(Ah)({borderRadius:n.iteratedColumnN22.BorderRadius,borderRadiusCard:n.theme.BorderRadiusCard,bodyBorderRadius:n.theme.BorderRadius,borderButtonRadius:n.theme.BorderRadiusButton,borderBannerRadius:n.theme.BorderRadiusBanner})],{"line-height":"normal"}])},[(U(!0),ue(xt,null,Kr(n.iteratedColumnN22.Elements,(a,l)=>(U(),kt(Pu,{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]=u=>r("onElementClicked",u)),onOnImageSizeAdjusted:s[1]||(s[1]=u=>r("onImageSizeAdjusted",u)),onOnImageOriginalSizeAdjusted:s[2]||(s[2]=u=>r("onImageOriginalSizeAdjusted",u)),onOnElementUpdatedEvent:s[3]||(s[3]=u=>r("onElementUpdatedEvent",u)),onOnElementRemoved:s[4]||(s[4]=u=>r("onElementRemoved",u))},null,8,["deps","theme","element","context","path","selectedElementPath"]))),128))],12,grn)])])],4)],4))}}),Crn=ht(yrn,[["__scopeId","data-v-319c5209"]]),brn={class:"iterated-column-container",style:{"border-spacing":"0","border-collapse":"collapse",width:"100%",margin:"0 auto"},width:"100%"},vrn={align:"center",style:{"font-size":"0"}},wrn=pt({__name:"IteratedColumnBodyRow",props:{deps:{},theme:{},iteratedColumnBodyRow:{},path:{},selectedElementPath:{},context:{},rowWidth:{}},emits:["onElementClicked","onImageOriginalSizeAdjusted","onImageSizeAdjusted","onElementUpdatedEvent","onElementRemoved"],setup(t,{emit:e}){tm(l=>({a80c0c96:i.value}));const n=t,r=Xt({dataList:[],isLoaded:!1}),o=()=>n.deps.listExpressionEvaluator({listExpression:n.iteratedColumnBodyRow.DataSource,context:n.context}).then(l=>{r.dataList=l,r.isLoaded=!0});o(),En(()=>n.context,()=>o());const i=Q(()=>ko({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,u)=>(U(),ue("table",brn,[N("tbody",null,[N("tr",null,[N("td",vrn,[(U(!0),ue(xt,null,Kr(r.dataList,(c,d)=>(U(),ue(xt,{key:d},[s.iteratedColumn(n.iteratedColumnBodyRow.IteratedColumn)?(U(),kt(hrn,{key:d,class:Ve(["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>=r.dataList.length-n.iteratedColumnBodyRow.NumberColumnsInLine,"is-last-tablet-line":d>=r.dataList.length-2,"is-last-mobile-line":d==r.dataList.length-1}]),deps:n.deps.iteratedColumnDeps,theme:n.theme,style:Be(ee(sV)({numberColumnsInLine:n.iteratedColumnBodyRow.NumberColumnsInLine,index:d,paddingSize:ee(ko)({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]:c},containerWidth:n.rowWidth,onOnElementClicked:u[0]||(u[0]=h=>a("onElementClicked",h)),onOnImageOriginalSizeAdjusted:u[1]||(u[1]=h=>a("onImageOriginalSizeAdjusted",h)),onOnImageSizeAdjusted:u[2]||(u[2]=h=>a("onImageSizeAdjusted",h)),onOnElementUpdatedEvent:u[3]||(u[3]=h=>a("onElementUpdatedEvent",h)),onOnElementRemoved:u[4]||(u[4]=h=>a("onElementRemoved",h))},null,8,["deps","theme","class","style","iteratedColumn","path","selectedElementPath","context","containerWidth"])):it("",!0),s.iteratedColumnVariant(n.iteratedColumnBodyRow.IteratedColumnVariant)?(U(),ue(xt,{key:1},[s.iteratedColumnN21(n.iteratedColumnBodyRow.IteratedColumnVariant.IteratedColumnN21)?(U(),kt(mrn,{key:d,deps:n.deps.iteratedColumnVariantDeps.iteratedColumnN21Deps,theme:n.theme,class:Ve(["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>=r.dataList.length-n.iteratedColumnBodyRow.NumberColumnsInLine,"is-last-tablet-line":d>=r.dataList.length-2,"is-last-mobile-line":d==r.dataList.length-1}]),style:Be(ee(sV)({numberColumnsInLine:n.iteratedColumnBodyRow.NumberColumnsInLine,index:d,paddingSize:ee(ko)({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]:c},containerWidth:n.rowWidth,onOnElementClicked:u[5]||(u[5]=h=>a("onElementClicked",h)),onOnImageOriginalSizeAdjusted:u[6]||(u[6]=h=>a("onImageOriginalSizeAdjusted",h)),onOnImageSizeAdjusted:u[7]||(u[7]=h=>a("onImageSizeAdjusted",h)),onOnElementUpdatedEvent:u[8]||(u[8]=h=>a("onElementUpdatedEvent",h)),onOnElementRemoved:u[9]||(u[9]=h=>a("onElementRemoved",h))},null,8,["deps","theme","class","style","iteratedColumnN21","path","selectedElementPath","context","containerWidth"])):it("",!0),s.iteratedColumnN22(n.iteratedColumnBodyRow.IteratedColumnVariant.IteratedColumnN22)?(U(),kt(Crn,{key:d,deps:n.deps.iteratedColumnVariantDeps.iteratedColumnN22Deps,theme:n.theme,class:Ve(["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>=r.dataList.length-n.iteratedColumnBodyRow.NumberColumnsInLine,"is-last-tablet-line is-last-mobile-line":d>=r.dataList.length-2}]),style:Be(ee(sV)({numberColumnsInLine:n.iteratedColumnBodyRow.NumberColumnsInLine,index:d,paddingSize:ee(ko)({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]:c},containerWidth:n.rowWidth,onOnElementClicked:u[10]||(u[10]=h=>a("onElementClicked",h)),onOnImageOriginalSizeAdjusted:u[11]||(u[11]=h=>a("onImageOriginalSizeAdjusted",h)),onOnImageSizeAdjusted:u[12]||(u[12]=h=>a("onImageSizeAdjusted",h)),onOnElementUpdatedEvent:u[13]||(u[13]=h=>a("onElementUpdatedEvent",h)),onOnElementRemoved:u[14]||(u[14]=h=>a("onElementRemoved",h))},null,8,["deps","theme","class","style","iteratedColumnN22","path","selectedElementPath","context","containerWidth"])):it("",!0)],64)):it("",!0)],64))),128))])])])]))}}),xrn=ht(wrn,[["__scopeId","data-v-69ed8d34"]]),krn={style:{"border-spacing":"0","border-collapse":"collapse",width:"100%",margin:"0 auto"}},Trn=pt({__name:"IteratedBodyRow",props:{theme:{},deps:{},iteratedBodyRow:{},path:{},selectedElementPath:{},context:{},containerWidth:{}},emits:["onElementClicked","onImageOriginalSizeAdjusted","onImageSizeAdjusted","onColumnWidthAdjusted","onElementUpdatedEvent","onElementRemoved"],setup(t,{emit:e}){const n=t,r=Xt({dataList:[]});n.deps.listExpressionEvaluator({listExpression:n.iteratedBodyRow.DataSource,context:n.context}).then(i=>r.dataList=i);const o=e;return(i,s)=>(U(),ue("table",krn,[(U(!0),ue(xt,null,Kr(r.dataList,(a,l)=>(U(),ue("tr",{key:l},[N("td",{style:Be([ee(IO)({paddings:n.iteratedBodyRow.Paddings,themeComponentPaddings:n.theme.ComponentPaddings,themeBodyPaddings:n.theme.BodyPaddings})])},[Ce(a8e,{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]=u=>o("onElementClicked",u)),onOnImageOriginalSizeAdjusted:s[1]||(s[1]=u=>o("onImageOriginalSizeAdjusted",u)),onOnImageSizeAdjusted:s[2]||(s[2]=u=>o("onImageSizeAdjusted",u)),onOnColumnWidthAdjusted:s[3]||(s[3]=u=>o("onColumnWidthAdjusted",u)),onOnElementUpdatedEvent:s[4]||(s[4]=u=>o("onElementUpdatedEvent",u)),onOnElementRemoved:s[5]||(s[5]=u=>o("onElementRemoved",u))},null,8,["emailComponentBodyRow","deps","theme","context","rowWidth","path","selectedElementPath"])],4)]))),128))]))}}),Srn=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()}}}),Frn=t=>Srn(t).Match({Top:()=>"start",Middle:()=>"center",Bottom:()=>"end",Baseline:()=>"baseline"}),Ern=zF,Arn=t=>({JustifyWidth:{WidthInPixels:t}}),_rn=t=>({ShrinkToContentWidth:{WidthInPixels:t}}),Rrn=vYt,Drn=["align"],Nrn=pt({__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}){tm(l=>({acad954c:a.value,v1971599c:s.value,v72b8524e:i.value}));const n=t,r=e,o=l=>{Ern(n.multipleColumn.Width).Match({JustifyWidth:()=>cJ.Some(Arn(l)),ShrinkToContentWidth:()=>cJ.Some(_rn(l)),WidthInPercents:()=>cJ.None}).map(u=>r("onColumnWidthAdjusted",{Path:n.path,Width:u}))},i=Q(()=>Rrn(n.multipleColumn.Width).Match({default:()=>"",WidthInPercents:l=>l.Value*n.containerWidth+"px"})),s=Q(()=>Frn(n.multipleColumn.VerticalAlign)),a=Q(()=>n.multipleColumn.VerticalAlign);return(l,u)=>_n((U(),ue("div",{class:Ve(["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"}},[N("table",{style:Be([{width:"100%","border-spacing":"0"},[ee(BO)({borderCollapse:n.multipleColumn.BorderCollapse})]]),width:"100%"},[N("tbody",null,[N("tr",null,[N("td",{align:ee(Zf)({containerAlign:n.multipleColumn.ContainerAlign}),style:Be([[ee(jp)({border:n.multipleColumn.Border,themeColors:n.theme.Colors}),ee(Ah)({borderRadius:n.multipleColumn.BorderRadius,borderRadiusCard:n.theme.BorderRadiusCard,bodyBorderRadius:n.theme.BorderRadius,borderButtonRadius:n.theme.BorderRadiusButton,borderBannerRadius:n.theme.BorderRadiusBanner}),{backgroundColor:ee(nd)({color:n.multipleColumn.BgColor,themeColors:n.theme.Colors})},ee(IO)({paddings:n.multipleColumn.Paddings,themeComponentPaddings:n.theme.ComponentPaddings,themeBodyPaddings:n.theme.BodyPaddings})],{"line-height":"normal"}])},[(U(!0),ue(xt,null,Kr(n.multipleColumn.Elements,(c,d)=>(U(),kt(Pu,{key:d,deps:n.deps.elementsDeps,theme:n.theme,element:c,context:n.context,path:[...n.path,"Elements",d],selectedElementPath:n.selectedElementPath,onOnElementClicked:u[0]||(u[0]=h=>r("onElementClicked",h)),onOnImageSizeAdjusted:u[1]||(u[1]=h=>r("onImageSizeAdjusted",h)),onOnImageOriginalSizeAdjusted:u[2]||(u[2]=h=>r("onImageOriginalSizeAdjusted",h)),onOnElementUpdatedEvent:u[3]||(u[3]=h=>r("onElementUpdatedEvent",h)),onOnElementRemoved:u[4]||(u[4]=h=>r("onElementRemoved",h))},null,8,["deps","theme","element","context","path","selectedElementPath"]))),128))],12,Drn)])])],4)],2)),[[ee(IL),c=>o(c.width)]])}}),Lrn=ht(Nrn,[["__scopeId","data-v-bfa1869f"]]),Mrn=pt({__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}){tm(i=>({v36e68443:o.value}));const n=t,r=e,o=Q(()=>ko({paddingExpression:n.multipleColumnBodyRow.ColumnSpacerSize,themeComponentPaddings:n.theme.ComponentPaddings,themeBodyPaddings:n.theme.BodyPaddings})+"px");return(i,s)=>(U(),ue("table",{class:"multiple-column-container",style:Be([[ee(BO)({borderCollapse:n.multipleColumnBodyRow.BorderCollapse}),ee(jp)({border:n.multipleColumnBodyRow.Border,themeColors:n.theme.Colors}),ee(Ah)({borderRadius:n.multipleColumnBodyRow.BorderRadius,borderRadiusCard:n.theme.BorderRadiusCard,bodyBorderRadius:n.theme.BorderRadius,borderButtonRadius:n.theme.BorderRadiusButton,borderBannerRadius:n.theme.BorderRadiusBanner}),{backgroundColor:ee(nd)({color:n.multipleColumnBodyRow.BgColor,themeColors:n.theme.Colors})}],{"border-spacing":"0",width:"100%",margin:"0 auto"}]),width:"100%"},[N("tbody",null,[N("tr",null,[N("td",{class:"multiple-column-container__inner",style:Be([{"font-size":"0"},[ee(_Yt)({containerAlign:n.multipleColumnBodyRow.ContainerAlign}),ee(IO)({paddings:n.multipleColumnBodyRow.Paddings,themeComponentPaddings:n.theme.ComponentPaddings,themeBodyPaddings:n.theme.BodyPaddings}),n.multipleColumnBodyRow.DirectionRtl?{direction:"rtl"}:{direction:"ltr"}]])},[(U(!0),ue(xt,null,Kr(n.multipleColumnBodyRow.Columns,(a,l)=>(U(),kt(Lrn,{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-ee(ko)({paddingExpression:n.multipleColumnBodyRow.Paddings.Left,themeComponentPaddings:n.theme.ComponentPaddings,themeBodyPaddings:n.theme.BodyPaddings})-ee(ko)({paddingExpression:n.multipleColumnBodyRow.Paddings.Right,themeComponentPaddings:n.theme.ComponentPaddings,themeBodyPaddings:n.theme.BodyPaddings})-n.multipleColumnBodyRow.Border.Left.Width-n.multipleColumnBodyRow.Border.Right.Width,style:Be(ee(sV)({numberColumnsInLine:n.multipleColumnBodyRow.Columns.length,index:l,paddingSize:ee(ko)({paddingExpression:n.multipleColumnBodyRow.ColumnSpacerSize,themeComponentPaddings:n.theme.ComponentPaddings,themeBodyPaddings:n.theme.BodyPaddings}),directionRtl:n.multipleColumnBodyRow.DirectionRtl})),class:Ve({"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]=u=>r("onElementClicked",u)),onOnColumnWidthAdjusted:s[1]||(s[1]=u=>r("onColumnWidthAdjusted",u)),onOnImageSizeAdjusted:s[2]||(s[2]=u=>r("onImageSizeAdjusted",u)),onOnImageOriginalSizeAdjusted:s[3]||(s[3]=u=>r("onImageOriginalSizeAdjusted",u)),onOnElementUpdatedEvent:s[4]||(s[4]=u=>r("onElementUpdatedEvent",u)),onOnElementRemoved:s[5]||(s[5]=u=>r("onElementRemoved",u))},null,8,["deps","theme","multipleColumn","path","selectedElementPath","context","containerWidth","style","class"]))),128))],4)])])],4))}}),Orn=ht(Mrn,[["__scopeId","data-v-c6ebdc94"]]),Brn=pt({__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,r=e;return(o,i)=>(U(!0),ue(xt,null,Kr(n.simpleBodyRow.Elements,(s,a)=>(U(),kt(Pu,{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=>r("onElementClicked",l)),onOnImageSizeAdjusted:i[1]||(i[1]=l=>r("onImageSizeAdjusted",l)),onOnImageOriginalSizeAdjusted:i[2]||(i[2]=l=>r("onImageOriginalSizeAdjusted",l)),onOnElementUpdatedEvent:i[3]||(i[3]=l=>r("onElementUpdatedEvent",l)),onOnElementRemoved:i[4]||(i[4]=l=>r("onElementRemoved",l))},null,8,["deps","theme","element","context","path","selectedElementPath"]))),128))}}),a8e=pt({__name:"EmailComponentBodyRow",props:{deps:{},theme:{},emailComponentBodyRow:{},path:{},selectedElementPath:{},context:{},rowWidth:{}},emits:["onElementClicked","onImageOriginalSizeAdjusted","onImageSizeAdjusted","onColumnWidthAdjusted","onElementUpdatedEvent","onElementRemoved"],setup(t,{emit:e}){const n=t,r={multipleColumns:i=>i!==void 0,iteratedColumns:i=>i!==void 0,iteratedBodyRow:i=>i!==void 0,simpleBodyRow:i=>i!==void 0},o=e;return(i,s)=>(U(),ue("div",null,[r.multipleColumns(n.emailComponentBodyRow.MultipleColumnBodyRow)?(U(),kt(Orn,{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=>o("onColumnWidthAdjusted",a)),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)),onOnElementUpdatedEvent:s[4]||(s[4]=a=>o("onElementUpdatedEvent",a)),onOnElementRemoved:s[5]||(s[5]=a=>o("onElementRemoved",a))},null,8,["deps","theme","multipleColumnBodyRow","path","selectedElementPath","context","rowWidth"])):it("",!0),r.iteratedColumns(n.emailComponentBodyRow.IteratedColumnBodyRow)?(U(),kt(xrn,{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=>o("onElementClicked",a)),onOnImageOriginalSizeAdjusted:s[7]||(s[7]=a=>o("onImageOriginalSizeAdjusted",a)),onOnImageSizeAdjusted:s[8]||(s[8]=a=>o("onImageSizeAdjusted",a)),onOnElementUpdatedEvent:s[9]||(s[9]=a=>o("onElementUpdatedEvent",a)),onOnElementRemoved:s[10]||(s[10]=a=>o("onElementRemoved",a))},null,8,["deps","theme","iteratedColumnBodyRow","path","selectedElementPath","context","rowWidth"])):it("",!0),r.iteratedBodyRow(n.emailComponentBodyRow.IteratedBodyRow)?(U(),kt(Trn,{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=>o("onElementClicked",a)),onOnImageOriginalSizeAdjusted:s[12]||(s[12]=a=>o("onImageOriginalSizeAdjusted",a)),onOnImageSizeAdjusted:s[13]||(s[13]=a=>o("onImageSizeAdjusted",a)),onOnElementUpdatedEvent:s[14]||(s[14]=a=>o("onElementUpdatedEvent",a)),onOnElementRemoved:s[15]||(s[15]=a=>o("onElementRemoved",a))},null,8,["deps","theme","iteratedBodyRow","path","selectedElementPath","context","containerWidth"])):it("",!0),r.simpleBodyRow(n.emailComponentBodyRow.SimpleBodyRow)?(U(),kt(Brn,{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=>o("onElementClicked",a)),onOnImageOriginalSizeAdjusted:s[17]||(s[17]=a=>o("onImageOriginalSizeAdjusted",a)),onOnImageSizeAdjusted:s[18]||(s[18]=a=>o("onImageSizeAdjusted",a)),onOnElementUpdatedEvent:s[19]||(s[19]=a=>o("onElementUpdatedEvent",a)),onOnElementRemoved:s[20]||(s[20]=a=>o("onElementRemoved",a))},null,8,["deps","theme","simpleBodyRow","path","selectedElementPath","context"])):it("",!0)]))}}),Irn={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"},$rn={emptyEmailComponentText:"Товарная полка скрыта из-за недостатка товаров",emptyEmailComponentTooltip:"Товарная полка не будет отображаться у получателей письма пока в ней недостаточно товаров",requiredComponentNotification:"Без этого компонента письмо не будет отправлено"},RJ=Ir({en:Irn,ru:$rn}),Prn={},Vrn={width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function zrn(t,e){return U(),ue("svg",Vrn,[...e[0]||(e[0]=[N("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 Hrn=ht(Prn,[["render",zrn]]),Wrn={key:0},jrn={key:0,class:"is-required-notification"},Urn={class:"bootstrap-styles w-100 d-flex justify-content-center gap-5"},Krn=pt({__name:"EmailComponent",props:{deps:{},theme:{},emailComponent:{},path:{},selectedElementPath:{}},emits:["onElementClicked","onImageOriginalSizeAdjusted","onImageSizeAdjusted","onColumnWidthAdjusted","onElementUpdatedEvent","onElementRemoved"],setup(t,{emit:e}){const n=t,r=Xt({context:{},ifResult:!n.emailComponent.ContextBuilderExpression,isLoaded:!1}),o={emptyEmailComponentText:RJ({localeKey:n.deps.localeKey}).emptyEmailComponentText,emptyEmailComponentTooltip:RJ({localeKey:n.deps.localeKey}).emptyEmailComponentTooltip,requiredComponentNotification:RJ({localeKey:n.deps.localeKey}).requiredComponentNotification},i=a=>{r.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(u=>{r.context=l,r.ifResult=u,r.isLoaded=!0})})};En(()=>n.emailComponent.ContextBuilderExpression,a=>{a&&i(a)});const s=e;return n.emailComponent.ContextBuilderExpression?i(n.emailComponent.ContextBuilderExpression):r.isLoaded=!0,(a,l)=>r.isLoaded?(U(),ue("div",Wrn,[n.emailComponent.IsRequired?(U(),ue("div",jrn,[N("i",null,[Ce(Hrn)]),N("span",null,"   "+er(o.requiredComponentNotification),1)])):it("",!0),r.ifResult?(U(),ue("table",{key:1,style:Be([[{backgroundColor:ee(nd)({color:n.emailComponent.InnerBgColor,themeColors:n.theme.Colors})},ee(Ah)({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"}])},[N("tbody",null,[N("tr",null,[N("td",{class:"row__inner",style:Be([ee(JTe)({paddings:n.emailComponent.Paddings,themeComponentPaddings:n.theme.ComponentPaddings,themeBodyPaddings:n.theme.BodyPaddings,fullWidth:n.emailComponent.FullWidth})])},[(U(!0),ue(xt,null,Kr(n.emailComponent.BodyRowList,(u,c)=>(U(),kt(a8e,{key:c,deps:n.deps.emailComponentBodyRowDeps,theme:n.theme,emailComponentBodyRow:u,context:r.context,rowWidth:n.emailComponent.FullWidth?n.theme.BodyWidth:n.theme.BodyWidth-n.theme.BodyPaddings.Left-n.theme.BodyPaddings.Right,path:[...n.path,"BodyRowList",c],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)):(U(),ue("div",{key:2,class:Ve(["empty-email-component",{"is-required-component__paddings":n.emailComponent.IsRequired}])},[oO(er(o.emptyEmailComponentText)+" ",1),_n((U(),ue("i",null,[...l[6]||(l[6]=[N("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[N("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)])])),[[ee(Mo),{placement:"top",title:o.emptyEmailComponentTooltip}]])],2))])):(U(),ue("div",{key:1,class:"bootstrap-styles w-100",style:Be([ee(JTe)({paddings:n.emailComponent.Paddings,themeComponentPaddings:n.theme.ComponentPaddings,themeBodyPaddings:n.theme.BodyPaddings,fullWidth:n.emailComponent.FullWidth}),{backgroundColor:ee(nd)({color:n.emailComponent.InnerBgColor,themeColors:n.theme.Colors})||"transparent"}])},[Ce(ee(uTe),{type:"text"}),N("div",Urn,[(U(),ue(xt,null,Kr(3,u=>Ce(ee(uTe),{key:u,type:"image, text, text, text, button",style:{width:"100%"}})),64))])],4))}}),qrn=ht(Krn,[["__scopeId","data-v-5ef33b53"]]),Jrn={class:"emailTemplate-border-top"},Grn={class:"emailTemplate-border-bottom"},Yrn=pt({__name:"TemplatePreview",props:{deps:{},template:{}},setup(t){tm(v=>({v4d8f0f39:r.value,v39a36644:o.value,v5190bcaf:n.value.Title.fontWeight,v3457d59b:n.value.Title.fontFamily,v113b1d4a:n.value.Title.color,v2dcb0a76:n.value.Title.textDecoration,v3d2ffecc:n.value.Title.fontStyle,v3ed870a3:i.value,v03cbd5a4:s.value,v54442e45:n.value.Heading.fontWeight,v370b4731:n.value.Heading.fontFamily,v59e7da05:n.value.Heading.color,ca219d4a:n.value.Heading.textDecoration,v3c550444:n.value.Heading.fontStyle,v96c2e4fe:a.value,v1acc728c:l.value,v1f3df501:n.value.SubHeading.fontWeight,v02050ded:n.value.SubHeading.fontFamily,e838646e:n.value.SubHeading.color,v31ef3a17:n.value.SubHeading.textDecoration,v63e97608:n.value.SubHeading.fontStyle,v1ec64b69:u.value,cc075318:c.value,ae0aee02:n.value.LargeText.fontWeight,e87cbc2a:n.value.LargeText.fontFamily,v1c7e330b:n.value.LargeText.color,b9b4c1d6:n.value.LargeText.textDecoration,ab292b6c:n.value.LargeText.fontStyle,v0b733693:d.value,v0f1b1f1e:h.value,v96764aa2:n.value.NormalText.fontWeight,d0e818ca:n.value.NormalText.fontFamily,v0f93935b:n.value.NormalText.color,v390f98c5:n.value.NormalText.textDecoration,v5838229a:n.value.NormalText.fontStyle,cefd0c2c:f.value,dcb42e96:p.value,v0b65b89e:n.value.DescriptionText.fontWeight,v23a65cec:n.value.DescriptionText.fontFamily,v0a2507e8:n.value.DescriptionText.color,v7721e734:n.value.DescriptionText.textDecoration,v83c76a6a:n.value.DescriptionText.fontStyle,v0168c5ce:m.value,v6e73fc24:g.value,v7bc19fae:n.value.Link.fontWeight,b6336dd6:n.value.Link.fontFamily,cfb78cbe:n.value.Link.color,v8422bd82:n.value.Link.textDecoration,v3fe035e0:n.value.Link.fontStyle,d217d6de:C.value,v844714c8:b.value,v13878b1e:n.value.Button.fontWeight,v4df95946:n.value.Button.fontFamily,v16e83b4e:n.value.Button.color,v2c6d4787:n.value.Button.textDecoration,v5a54c298:n.value.Button.fontStyle}));const e=t,n=Q(()=>{const{FontFamily:v,FontSettingsPresets:w,Colors:x}=e.template.Theme;return{Title:il({fontFamily:v,themeFontSettings:w.Title,themeColor:x.TitleColor}),Heading:il({fontFamily:v,themeFontSettings:w.Heading,themeColor:x.HeadingColor}),SubHeading:il({fontFamily:v,themeFontSettings:w.SubHeading,themeColor:x.SubHeadingColor}),LargeText:il({fontFamily:v,themeFontSettings:w.LargeText,themeColor:x.LargeTextColor}),NormalText:il({fontFamily:v,themeFontSettings:w.NormalText,themeColor:x.NormalTextColor}),DescriptionText:il({fontFamily:v,themeFontSettings:w.DescriptionText,themeColor:x.DescriptionTextColor}),Link:il({fontFamily:v,themeFontSettings:w.Link,themeColor:x.LinkColor}),Button:il({fontFamily:v,themeFontSettings:w.Button,themeColor:x.ButtonTextColor})}}),r=Q(()=>n.value.Title.fontSize+"px"),o=Q(()=>n.value.Title.lineHeight+"px"),i=Q(()=>n.value.Heading.fontSize+"px"),s=Q(()=>n.value.Heading.lineHeight+"px"),a=Q(()=>n.value.SubHeading.fontSize+"px"),l=Q(()=>n.value.SubHeading.lineHeight+"px"),u=Q(()=>n.value.LargeText.fontSize+"px"),c=Q(()=>n.value.LargeText.lineHeight+"px"),d=Q(()=>n.value.NormalText.fontSize+"px"),h=Q(()=>n.value.NormalText.lineHeight+"px"),f=Q(()=>n.value.DescriptionText.fontSize+"px"),p=Q(()=>n.value.DescriptionText.lineHeight+"px"),m=Q(()=>n.value.Link.fontSize+"px"),g=Q(()=>n.value.Link.lineHeight+"px"),C=Q(()=>n.value.Button.fontSize+"px"),b=Q(()=>n.value.Button.lineHeight+"px");return(v,w)=>(U(),ue("div",{class:"bootstrap-styles pe-none template-preview",style:Be({fontFamily:e.template.Theme.FontFamily,width:t.template.Theme.BodyWidth+"px"})},[N("div",{class:"webkit emailTemplate--desktop",style:Be({backgroundColor:e.template.Theme.Colors.BodyColor,borderTopLeftRadius:e.template.Theme.BorderRadius.TopLeft+"px",borderTopRightRadius:e.template.Theme.BorderRadius.TopRight+"px",borderBottomLeftRadius:e.template.Theme.BorderRadius.BottomLeft+"px",borderBottomRightRadius:e.template.Theme.BorderRadius.BottomRight+"px"})},[N("div",Jrn,[N("table",{style:Be([[{maxWidth:e.template.Theme.BodyWidth+"px",width:"100%"}],{"border-spacing":"0"}])},[N("tbody",null,[N("tr",null,[N("td",{style:Be([{paddingTop:e.template.Theme.BodyPaddings.Top+"px"},{"font-size":"0","line-height":"0"}])},"   ",4)])])],4)]),(U(!0),ue(xt,null,Kr(e.template.Components,(x,S)=>(U(),ue("div",{key:S},[Ce(qrn,{deps:e.deps.emailComponentDeps,theme:e.template.Theme,emailComponent:x,path:[],selectedElementPath:[]},null,8,["deps","theme","emailComponent"])]))),128)),N("div",Grn,[N("table",{style:Be([[{maxWidth:e.template.Theme.BodyWidth+"px",width:"100%"}],{"border-spacing":"0"}])},[N("tbody",null,[N("tr",null,[N("td",{style:Be([{paddingBottom:e.template.Theme.BodyPaddings.Bottom+"px"},{"font-size":"0","line-height":"0"}])},"   ",4)])])],4)])],4)],4))}}),l8e=ht(Yrn,[["__scopeId","data-v-9f2b7245"]]),Xrn={class:"email-template-preview__inner-padding scrollable"},Qrn=pt({__name:"TemplatePreviewModalWindow",props:{template:{},deps:{}},emits:["templateSelected","close"],setup(t,{emit:e}){const n=t,r={title:hJ({localeKey:n.deps.localeKey}).title,applyButton:hJ({localeKey:n.deps.localeKey}).applyButton,cancelButton:hJ({localeKey:n.deps.localeKey}).cancelButton},o=s=>{const a=s.parentElement;a&&(a.style.height=s.getBoundingClientRect().height+"px")},i=e;return(s,a)=>(U(),kt(w7e,{headerText:r.title,class:"email-component__preview-modal-window",onClose:a[3]||(a[3]=()=>i("close"))},{body:ky(()=>[N("div",{style:Be({backgroundColor:t.template.Theme.Colors.EmailBackgroundColor})},[Ce(v7e,{onScaledElement:a[0]||(a[0]=l=>o(l))},{default:ky(()=>[N("div",Xrn,[Ce(l8e,{deps:t.deps.templatePreviewDeps,template:t.template},null,8,["deps","template"])])]),_:1})],4)]),"footer-actions":ky(()=>[N("button",{type:"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[1]||(a[1]=Po(()=>i("close"),["stop"]))},er(r.cancelButton),1),N("button",{type:"submit",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:a[2]||(a[2]=()=>{i("templateSelected",n.template)})},er(r.applyButton),1)]),_:1},8,["headerText"]))}}),Zrn=ht(Qrn,[["__scopeId","data-v-daf17623"]]),eon={class:"favorite-template-select__item-wrapper"},ton={class:"favorite-template-select__item bootstrap-styles border rounded-3"},non={class:"email-template-preview__inner-padding scrollable"},ron=pt({__name:"TemplatePreviewCard",props:{deps:{},template:{},templateName:{}},emits:["templateSelected"],setup(t,{emit:e}){const n=t,r=Xt({isPreviewComponentModalWindowShown:!1}),o=s=>{const a=s.parentElement;a&&(a.style.height=s.getBoundingClientRect().height+"px")},i=e;return(s,a)=>(U(),ue("div",eon,[N("div",ton,[N("div",{class:"bootstrap-styles h-100",style:Be({backgroundColor:n.template.Theme.Colors.EmailBackgroundColor}),onClick:a[1]||(a[1]=()=>{r.isPreviewComponentModalWindowShown=!0})},[Ce(v7e,{onScaledElement:a[0]||(a[0]=l=>o(l))},{default:ky(()=>[N("div",non,[Ce(l8e,{deps:n.deps.templatePreviewDeps,template:n.template},null,8,["deps","template"])])]),_:1})],4),(U(),kt(hPe,{to:"body",defer:""},[r.isPreviewComponentModalWindowShown?(U(),kt(Zrn,{key:0,template:n.template,deps:n.deps.templatePreviewModalWindowDeps,onClose:a[2]||(a[2]=()=>r.isPreviewComponentModalWindowShown=!1),onTemplateSelected:a[3]||(a[3]=()=>i("templateSelected",n.template))},null,8,["template","deps"])):it("",!0)]))]),N("div",{class:"bootstrap-styles favorite-template__name mt-2",onClick:a[4]||(a[4]=()=>{r.isPreviewComponentModalWindowShown=!0})},er(n.templateName),1)]))}}),oon=ht(ron,[["__scopeId","data-v-c8eb839e"]]),ion={class:"template-selector__list"},son={class:"bootstrap-styles mb-3"},aon=pt({__name:"TemplatePreviewCardList",props:{templatesPreviewCard:{},deps:{}},emits:["templateSelected"],setup(t,{emit:e}){const n=t,r={newTemplate:nV({localeKey:n.deps.localeKey}).newTemplate},o=e;return(i,s)=>(U(),ue("div",ion,[N("button",{class:"bootstrap-styles d-flex flex-column justify-content-center align-items-center template-selector__new-item overflow-hidden border rounded-3",type:"button",onClick:s[0]||(s[0]=a=>o("templateSelected",n.deps.initialEmailTemplate))},[N("i",son,[Ce(v7t)]),oO(" "+er(r.newTemplate),1)]),(U(!0),ue(xt,null,Kr(n.templatesPreviewCard,a=>(U(),ue("div",null,[Ce(oon,{deps:n.deps.templatePreviewCardDeps,template:a.template,templateName:a.templateName,onTemplateSelected:s[1]||(s[1]=l=>o("templateSelected",l))},null,8,["deps","template","templateName"])]))),256))]))}}),hSe=ht(aon,[["__scopeId","data-v-f5d903f5"]]),lon={class:"template-gallery bootstrap-styles d-flex flex-column bg-white justify-content-start align-items-center"},uon={class:"icon-hover-stroke-black"},con={class:"bootstrap-styles mb-11"},don={class:"bootstrap-styles template-gallery__tab-list mb-13"},hon=pt({__name:"TemplatesGallery",props:{commonFavoriteTemplates:{},customFavoriteTemplates:{},deps:{}},emits:["templateSelected","close"],setup(t,{emit:e}){const n=t,r=n.customFavoriteTemplates.length?"custom":"common",o={title:nV({localeKey:n.deps.localeKey}).title,customFavoritesButton:nV({localeKey:n.deps.localeKey}).customFavoritesButton,commonFavoritesButton:nV({localeKey:n.deps.localeKey}).defaultFavoritesButton},i=Xt({activeTab:r}),s={custom:o.customFavoritesButton,common:o.commonFavoritesButton},a=e;return(l,u)=>(U(),ue("div",lon,[N("button",{class:"template-gallery__close",onClick:u[0]||(u[0]=c=>a("close"))},[N("i",uon,[Ce(u7t)])]),N("h2",con,er(o.title),1),N("div",don,[Ce(g7t,{initialTab:ee(r),tabList:s,onOnTabClicked:u[1]||(u[1]=c=>i.activeTab=c)},null,8,["initialTab"])]),_n(Ce(hSe,{deps:n.deps.templatePreviewCardListDeps,templatesPreviewCard:n.customFavoriteTemplates,onTemplateSelected:u[2]||(u[2]=c=>a("templateSelected",c))},null,8,["deps","templatesPreviewCard"]),[[$Z,i.activeTab==="custom"]]),_n(Ce(hSe,{deps:n.deps.templatePreviewCardListDeps,templatesPreviewCard:n.commonFavoriteTemplates,onTemplateSelected:u[3]||(u[3]=c=>a("templateSelected",c))},null,8,["deps","templatesPreviewCard"]),[[$Z,i.activeTab==="common"]])]))}}),fon=ht(hon,[["__scopeId","data-v-8e5250cb"]]),pon=t=>{const e=document.createElement("form");e.method=t.method,e.action=t.action;for(const[n,r]of t.formData.entries()){if(r instanceof File)continue;const o=document.createElement("input");o.setAttribute("type","text"),o.setAttribute("name",n),o.setAttribute("value",r),e.appendChild(o)}return e},mon={Subject:"",Preheader:"",Theme:{BodyWidth:600,IsResponsiveWidth:!0,FontFamily:"Arial",Colors:{EmailBackgroundColor:"#EEEEEE",BodyColor:"#FFFFFF",PrimaryColor:"#557aff",PrimaryTextColor:"#ffffff",SecondaryColor:"#E4EAFF",SecondaryTextColor:"#557aff",CardBackgroundColor:"#F6F6F6",HeadingColor:"#2F2F2F",TitleColor:"#2F2F2F",SubHeadingColor:"#2F2F2F",LargeTextColor:"#2F2F2F",NormalTextColor:"#2F2F2F",DescriptionTextColor:"#999999",LinkColor:"#65A0FA",ButtonTextColor:"#ffffff"},BorderRadius:{TopLeft:20,TopRight:20,BottomLeft:20,BottomRight:20},BorderRadiusCard:{TopLeft:16,TopRight:16,BottomLeft:16,BottomRight:16},BorderRadiusButton:{TopLeft:6,TopRight:6,BottomLeft:6,BottomRight:6},BorderRadiusBanner:{TopLeft:0,TopRight:0,BottomLeft:0,BottomRight:0},BodyPaddings:{Left:20,Right:20,Top:10,Bottom:10},ComponentPaddings:{Small:8,Medium:16,Large:24,Huge:24},ButtonPaddings:{TopBottom:12,LeftRight:14},FontSettingsPresets:{Title:{FontSize:24,LineHeight:28,IsBold:!0,IsItalic:!1,Decoration:"None"},Heading:{FontSize:20,LineHeight:24,IsBold:!0,IsItalic:!1,Decoration:"None"},SubHeading:{FontSize:14,LineHeight:16,IsBold:!0,IsItalic:!1,Decoration:"None"},LargeText:{FontSize:14,LineHeight:18,IsBold:!1,IsItalic:!1,Decoration:"None"},NormalText:{FontSize:12,LineHeight:15,IsBold:!1,IsItalic:!1,Decoration:"None"},DescriptionText:{FontSize:10,LineHeight:13,IsBold:!1,IsItalic:!1,Decoration:"None"},Button:{FontSize:12,LineHeight:14,IsBold:!0,IsItalic:!1,Decoration:"None"},Link:{FontSize:12,LineHeight:14,IsBold:!1,IsItalic:!1,Decoration:"None"}}},Components:[{IsRequired:!1,BorderRadius:{TopLeft:{Discriminator:"CustomBorderRadius",CustomValue:0},TopRight:{Discriminator:"CustomBorderRadius",CustomValue:0},BottomRight:{Discriminator:"CustomBorderRadius",CustomValue:0},BottomLeft:{Discriminator:"CustomBorderRadius",CustomValue:0}},InnerBgColor:{Discriminator:"BodyColor",CustomValue:"#000000"},Paddings:{Top:{ThemePadding:"ThemePaddingsLarge"},Bottom:{ThemePadding:"ThemePaddingsLarge"}},FullWidth:!1,BodyRowList:[{SimpleBodyRow:{Elements:[{RichText:{ImageVerticalAlign:"Baseline",MinHeight:1,ContentAlign:"Center",Text:{Content:[{ParagraphNode:{Content:[{TextNode:{Text:"Email Creation Service",TextStyle:{ThemeName:"Heading",Style:{}}}}]}}]}}},{Spacer:{Height:{ThemePadding:"ThemePaddingsLarge"},Weight:0,Color:{Discriminator:"None",CustomValue:"#FFFFFF"}}},{RichText:{ImageVerticalAlign:"Baseline",MinHeight:1,ContentAlign:"Center",Text:{Content:[{ParagraphNode:{Content:[{TextNode:{Text:"We are pleased to introduce our new product—an email creation service. With this convenient and intuitive tool, you can easily craft beautiful and professional emails in just a few simple steps.",TextStyle:{ThemeName:"LargeText",Style:{}}}}]}}]}}}]}}]}]},gon={Subject:"",Preheader:"",Theme:{BodyWidth:600,IsResponsiveWidth:!0,FontFamily:"Arial",Colors:{EmailBackgroundColor:"#EEEEEE",BodyColor:"#FFFFFF",PrimaryColor:"#557aff",PrimaryTextColor:"#ffffff",SecondaryColor:"#E4EAFF",SecondaryTextColor:"#557aff",CardBackgroundColor:"#F6F6F6",HeadingColor:"#2F2F2F",TitleColor:"#2F2F2F",SubHeadingColor:"#2F2F2F",LargeTextColor:"#2F2F2F",NormalTextColor:"#2F2F2F",DescriptionTextColor:"#999999",LinkColor:"#65A0FA",ButtonTextColor:"#ffffff"},BorderRadius:{TopLeft:20,TopRight:20,BottomLeft:20,BottomRight:20},BorderRadiusCard:{TopLeft:16,TopRight:16,BottomLeft:16,BottomRight:16},BorderRadiusButton:{TopLeft:6,TopRight:6,BottomLeft:6,BottomRight:6},BorderRadiusBanner:{TopLeft:0,TopRight:0,BottomLeft:0,BottomRight:0},BodyPaddings:{Left:20,Right:20,Top:10,Bottom:10},ComponentPaddings:{Small:8,Medium:16,Large:24,Huge:24},ButtonPaddings:{TopBottom:12,LeftRight:14},FontSettingsPresets:{Title:{FontSize:24,LineHeight:28,IsBold:!0,IsItalic:!1,Decoration:"None"},Heading:{FontSize:20,LineHeight:24,IsBold:!0,IsItalic:!1,Decoration:"None"},SubHeading:{FontSize:14,LineHeight:16,IsBold:!0,IsItalic:!1,Decoration:"None"},LargeText:{FontSize:14,LineHeight:18,IsBold:!1,IsItalic:!1,Decoration:"None"},NormalText:{FontSize:12,LineHeight:15,IsBold:!1,IsItalic:!1,Decoration:"None"},DescriptionText:{FontSize:10,LineHeight:13,IsBold:!1,IsItalic:!1,Decoration:"None"},Button:{FontSize:12,LineHeight:14,IsBold:!0,IsItalic:!1,Decoration:"None"},Link:{FontSize:12,LineHeight:14,IsBold:!1,IsItalic:!1,Decoration:"None"}}},Components:[{IsRequired:!1,BorderRadius:{TopLeft:{Discriminator:"CustomBorderRadius",CustomValue:0},TopRight:{Discriminator:"CustomBorderRadius",CustomValue:0},BottomRight:{Discriminator:"CustomBorderRadius",CustomValue:0},BottomLeft:{Discriminator:"CustomBorderRadius",CustomValue:0}},InnerBgColor:{Discriminator:"BodyColor",CustomValue:"#000000"},Paddings:{Top:{ThemePadding:"ThemePaddingsLarge"},Bottom:{ThemePadding:"ThemePaddingsLarge"}},FullWidth:!1,BodyRowList:[{SimpleBodyRow:{Elements:[{RichText:{ImageVerticalAlign:"Baseline",MinHeight:1,ContentAlign:"Center",Text:{Content:[{ParagraphNode:{ThemeName:"Heading",ContentAlign:"Center",Content:[{TextNode:{Text:"Сервис создания электронных писем",TextStyle:{ThemeName:"Heading",Style:{TextTransform:"None"}}}}]}}]}}},{Spacer:{Height:{ThemePadding:"ThemePaddingsLarge"},Weight:0,Color:{Discriminator:"None",CustomValue:"#FFFFFF"}}},{RichText:{ImageVerticalAlign:"Baseline",MinHeight:1,ContentAlign:"Center",Text:{Content:[{ParagraphNode:{ThemeName:"LargeText",ContentAlign:"Center",Content:[{TextNode:{Text:"Мы рады представить вам наш новый продукт - сервис создания электронных писем. С помощью этого удобного и интуитивно понятного инструмента, вы сможете легко создавать красивые и профессиональные письма всего в несколько простых шагов.",TextStyle:{ThemeName:"LargeText",Style:{TextTransform:"None"}}}}]}}]}}}]}}]}]},{entries:u8e,setPrototypeOf:fSe,isFrozen:yon,getPrototypeOf:Con,getOwnPropertyDescriptor:bon}=Object;let{freeze:oa,seal:sc,create:Nne}=Object,{apply:Lne,construct:Mne}=typeof Reflect<"u"&&Reflect;oa||(oa=function(t){return t});sc||(sc=function(t){return t});Lne||(Lne=function(t,e){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];return t.apply(e,r)});Mne||(Mne=function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];return new t(...n)});const n$=ia(Array.prototype.forEach),von=ia(Array.prototype.lastIndexOf),pSe=ia(Array.prototype.pop),rA=ia(Array.prototype.push),won=ia(Array.prototype.splice),lV=ia(String.prototype.toLowerCase),DJ=ia(String.prototype.toString),NJ=ia(String.prototype.match),oA=ia(String.prototype.replace),xon=ia(String.prototype.indexOf),kon=ia(String.prototype.trim),Bc=ia(Object.prototype.hasOwnProperty),es=ia(RegExp.prototype.test),iA=Ton(TypeError);function ia(t){return function(e){e instanceof RegExp&&(e.lastIndex=0);for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return Lne(t,e,r)}}function Ton(t){return function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return Mne(t,n)}}function wn(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:lV;fSe&&fSe(t,null);let r=e.length;for(;r--;){let o=e[r];if(typeof o=="string"){const i=n(o);i!==o&&(yon(e)||(e[r]=i),o=i)}t[o]=!0}return t}function Son(t){for(let e=0;e<t.length;e++)Bc(t,e)||(t[e]=null);return t}function Ld(t){const e=Nne(null);for(const[n,r]of u8e(t))Bc(t,n)&&(Array.isArray(r)?e[n]=Son(r):r&&typeof r=="object"&&r.constructor===Object?e[n]=Ld(r):e[n]=r);return e}function sA(t,e){for(;t!==null;){const r=bon(t,e);if(r){if(r.get)return ia(r.get);if(typeof r.value=="function")return ia(r.value)}t=Con(t)}function n(){return null}return n}const mSe=oa(["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"]),LJ=oa(["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"]),MJ=oa(["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"]),Fon=oa(["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"]),OJ=oa(["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"]),Eon=oa(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),gSe=oa(["#text"]),ySe=oa(["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"]),BJ=oa(["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"]),CSe=oa(["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"]),r$=oa(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Aon=sc(/\{\{[\w\W]*|[\w\W]*\}\}/gm),_on=sc(/<%[\w\W]*|[\w\W]*%>/gm),Ron=sc(/\$\{[\w\W]*/gm),Don=sc(/^data-[\-\w.\u00B7-\uFFFF]+$/),Non=sc(/^aria-[\-\w]+$/),c8e=sc(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Lon=sc(/^(?:\w+script|data):/i),Mon=sc(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),d8e=sc(/^html$/i),Oon=sc(/^[a-z][.\w]*(-[.\w]+)+$/i);var bSe=Object.freeze({__proto__:null,ARIA_ATTR:Non,ATTR_WHITESPACE:Mon,CUSTOM_ELEMENT:Oon,DATA_ATTR:Don,DOCTYPE_NAME:d8e,ERB_EXPR:_on,IS_ALLOWED_URI:c8e,IS_SCRIPT_OR_DATA:Lon,MUSTACHE_EXPR:Aon,TMPLIT_EXPR:Ron});const aA={element:1,text:3,progressingInstruction:7,comment:8,document:9},Bon=function(){return typeof window>"u"?null:window},Ion=function(t,e){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let n=null;const r="data-tt-policy-suffix";e&&e.hasAttribute(r)&&(n=e.getAttribute(r));const o="dompurify"+(n?"#"+n:"");try{return t.createPolicy(o,{createHTML(i){return i},createScriptURL(i){return i}})}catch{return console.warn("TrustedTypes policy "+o+" could not be created."),null}},vSe=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function h8e(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Bon();const e=y=>h8e(y);if(e.version="3.3.1",e.removed=[],!t||!t.document||t.document.nodeType!==aA.document||!t.Element)return e.isSupported=!1,e;let{document:n}=t;const r=n,o=r.currentScript,{DocumentFragment:i,HTMLTemplateElement:s,Node:a,Element:l,NodeFilter:u,NamedNodeMap:c=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:d,DOMParser:h,trustedTypes:f}=t,p=l.prototype,m=sA(p,"cloneNode"),g=sA(p,"remove"),C=sA(p,"nextSibling"),b=sA(p,"childNodes"),v=sA(p,"parentNode");if(typeof s=="function"){const y=n.createElement("template");y.content&&y.content.ownerDocument&&(n=y.content.ownerDocument)}let w,x="";const{implementation:S,createNodeIterator:F,createDocumentFragment:_,getElementsByTagName:R}=n,{importNode:D}=r;let E=vSe();e.isSupported=typeof u8e=="function"&&typeof v=="function"&&S&&S.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:A,ERB_EXPR:B,TMPLIT_EXPR:I,DATA_ATTR:W,ARIA_ATTR:P,IS_SCRIPT_OR_DATA:H,ATTR_WHITESPACE:pe,CUSTOM_ELEMENT:j}=bSe;let{IS_ALLOWED_URI:se}=bSe,L=null;const oe=wn({},[...mSe,...LJ,...MJ,...OJ,...gSe]);let $=null;const X=wn({},[...ySe,...BJ,...CSe,...r$]);let M=Object.seal(Nne(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}})),fe=null,de=null;const J=Object.seal(Nne(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let ft=!0,ct=!0,dt=!1,z=!0,V=!1,G=!0,Y=!1,re=!1,ie=!1,ae=!1,he=!1,q=!1,te=!0,ke=!1;const be="user-content-";let ge=!0,me=!1,ye={},le=null;const Ye=wn({},["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 en=null;const tn=wn({},["audio","video","img","source","image","track"]);let Ht=null;const Rn=wn({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Bt="http://www.w3.org/1998/Math/MathML",zt="http://www.w3.org/2000/svg",Te="http://www.w3.org/1999/xhtml";let ot=Te,mn=!1,gn=null;const li=wn({},[Bt,zt,Te],DJ);let Gt=wn({},["mi","mo","mn","ms","mtext"]),Yt=wn({},["annotation-xml"]);const ui=wn({},["title","style","font","a","script"]);let St=null;const ci=["application/xhtml+xml","text/html"],di="text/html";let Z=null,wt=null;const hi=n.createElement("form"),pr=function(y){return y instanceof RegExp||y instanceof Function},Vn=function(){let y=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(wt&&wt===y)){if((!y||typeof y!="object")&&(y={}),y=Ld(y),St=ci.indexOf(y.PARSER_MEDIA_TYPE)===-1?di:y.PARSER_MEDIA_TYPE,Z=St==="application/xhtml+xml"?DJ:lV,L=Bc(y,"ALLOWED_TAGS")?wn({},y.ALLOWED_TAGS,Z):oe,$=Bc(y,"ALLOWED_ATTR")?wn({},y.ALLOWED_ATTR,Z):X,gn=Bc(y,"ALLOWED_NAMESPACES")?wn({},y.ALLOWED_NAMESPACES,DJ):li,Ht=Bc(y,"ADD_URI_SAFE_ATTR")?wn(Ld(Rn),y.ADD_URI_SAFE_ATTR,Z):Rn,en=Bc(y,"ADD_DATA_URI_TAGS")?wn(Ld(tn),y.ADD_DATA_URI_TAGS,Z):tn,le=Bc(y,"FORBID_CONTENTS")?wn({},y.FORBID_CONTENTS,Z):Ye,fe=Bc(y,"FORBID_TAGS")?wn({},y.FORBID_TAGS,Z):Ld({}),de=Bc(y,"FORBID_ATTR")?wn({},y.FORBID_ATTR,Z):Ld({}),ye=Bc(y,"USE_PROFILES")?y.USE_PROFILES:!1,ft=y.ALLOW_ARIA_ATTR!==!1,ct=y.ALLOW_DATA_ATTR!==!1,dt=y.ALLOW_UNKNOWN_PROTOCOLS||!1,z=y.ALLOW_SELF_CLOSE_IN_ATTR!==!1,V=y.SAFE_FOR_TEMPLATES||!1,G=y.SAFE_FOR_XML!==!1,Y=y.WHOLE_DOCUMENT||!1,ae=y.RETURN_DOM||!1,he=y.RETURN_DOM_FRAGMENT||!1,q=y.RETURN_TRUSTED_TYPE||!1,ie=y.FORCE_BODY||!1,te=y.SANITIZE_DOM!==!1,ke=y.SANITIZE_NAMED_PROPS||!1,ge=y.KEEP_CONTENT!==!1,me=y.IN_PLACE||!1,se=y.ALLOWED_URI_REGEXP||c8e,ot=y.NAMESPACE||Te,Gt=y.MATHML_TEXT_INTEGRATION_POINTS||Gt,Yt=y.HTML_INTEGRATION_POINTS||Yt,M=y.CUSTOM_ELEMENT_HANDLING||{},y.CUSTOM_ELEMENT_HANDLING&&pr(y.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(M.tagNameCheck=y.CUSTOM_ELEMENT_HANDLING.tagNameCheck),y.CUSTOM_ELEMENT_HANDLING&&pr(y.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(M.attributeNameCheck=y.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),y.CUSTOM_ELEMENT_HANDLING&&typeof y.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(M.allowCustomizedBuiltInElements=y.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),V&&(ct=!1),he&&(ae=!0),ye&&(L=wn({},gSe),$=[],ye.html===!0&&(wn(L,mSe),wn($,ySe)),ye.svg===!0&&(wn(L,LJ),wn($,BJ),wn($,r$)),ye.svgFilters===!0&&(wn(L,MJ),wn($,BJ),wn($,r$)),ye.mathMl===!0&&(wn(L,OJ),wn($,CSe),wn($,r$))),y.ADD_TAGS&&(typeof y.ADD_TAGS=="function"?J.tagCheck=y.ADD_TAGS:(L===oe&&(L=Ld(L)),wn(L,y.ADD_TAGS,Z))),y.ADD_ATTR&&(typeof y.ADD_ATTR=="function"?J.attributeCheck=y.ADD_ATTR:($===X&&($=Ld($)),wn($,y.ADD_ATTR,Z))),y.ADD_URI_SAFE_ATTR&&wn(Ht,y.ADD_URI_SAFE_ATTR,Z),y.FORBID_CONTENTS&&(le===Ye&&(le=Ld(le)),wn(le,y.FORBID_CONTENTS,Z)),y.ADD_FORBID_CONTENTS&&(le===Ye&&(le=Ld(le)),wn(le,y.ADD_FORBID_CONTENTS,Z)),ge&&(L["#text"]=!0),Y&&wn(L,["html","head","body"]),L.table&&(wn(L,["tbody"]),delete fe.tbody),y.TRUSTED_TYPES_POLICY){if(typeof y.TRUSTED_TYPES_POLICY.createHTML!="function")throw iA('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof y.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw iA('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');w=y.TRUSTED_TYPES_POLICY,x=w.createHTML("")}else w===void 0&&(w=Ion(f,o)),w!==null&&typeof x=="string"&&(x=w.createHTML(""));oa&&oa(y),wt=y}},mr=wn({},[...LJ,...MJ,...Fon]),gr=wn({},[...OJ,...Eon]),fi=function(y){let k=v(y);(!k||!k.tagName)&&(k={namespaceURI:ot,tagName:"template"});const T=lV(y.tagName),O=lV(k.tagName);return gn[y.namespaceURI]?y.namespaceURI===zt?k.namespaceURI===Te?T==="svg":k.namespaceURI===Bt?T==="svg"&&(O==="annotation-xml"||Gt[O]):!!mr[T]:y.namespaceURI===Bt?k.namespaceURI===Te?T==="math":k.namespaceURI===zt?T==="math"&&Yt[O]:!!gr[T]:y.namespaceURI===Te?k.namespaceURI===zt&&!Yt[O]||k.namespaceURI===Bt&&!Gt[O]?!1:!gr[T]&&(ui[T]||!mr[T]):!!(St==="application/xhtml+xml"&&gn[y.namespaceURI]):!1},rt=function(y){rA(e.removed,{element:y});try{v(y).removeChild(y)}catch{g(y)}},st=function(y,k){try{rA(e.removed,{attribute:k.getAttributeNode(y),from:k})}catch{rA(e.removed,{attribute:null,from:k})}if(k.removeAttribute(y),y==="is")if(ae||he)try{rt(k)}catch{}else try{k.setAttribute(y,"")}catch{}},yr=function(y){let k=null,T=null;if(ie)y="<remove></remove>"+y;else{const K=NJ(y,/^[\r\n\t ]+/);T=K&&K[0]}St==="application/xhtml+xml"&&ot===Te&&(y='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+y+"</body></html>");const O=w?w.createHTML(y):y;if(ot===Te)try{k=new h().parseFromString(O,St)}catch{}if(!k||!k.documentElement){k=S.createDocument(ot,"template",null);try{k.documentElement.innerHTML=mn?x:O}catch{}}const ne=k.body||k.documentElement;return y&&T&&ne.insertBefore(n.createTextNode(T),ne.childNodes[0]||null),ot===Te?R.call(k,Y?"html":"body")[0]:Y?k.documentElement:ne},Cr=function(y){return F.call(y.ownerDocument||y,y,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT|u.SHOW_PROCESSING_INSTRUCTION|u.SHOW_CDATA_SECTION,null)},zn=function(y){return y instanceof d&&(typeof y.nodeName!="string"||typeof y.textContent!="string"||typeof y.removeChild!="function"||!(y.attributes instanceof c)||typeof y.removeAttribute!="function"||typeof y.setAttribute!="function"||typeof y.namespaceURI!="string"||typeof y.insertBefore!="function"||typeof y.hasChildNodes!="function")},br=function(y){return typeof a=="function"&&y instanceof a};function Xe(y,k,T){n$(y,O=>{O.call(e,k,T,wt)})}const vr=function(y){let k=null;if(Xe(E.beforeSanitizeElements,y,null),zn(y))return rt(y),!0;const T=Z(y.nodeName);if(Xe(E.uponSanitizeElement,y,{tagName:T,allowedTags:L}),G&&y.hasChildNodes()&&!br(y.firstElementChild)&&es(/<[/\w!]/g,y.innerHTML)&&es(/<[/\w!]/g,y.textContent)||y.nodeType===aA.progressingInstruction||G&&y.nodeType===aA.comment&&es(/<[/\w]/g,y.data))return rt(y),!0;if(!(J.tagCheck instanceof Function&&J.tagCheck(T))&&(!L[T]||fe[T])){if(!fe[T]&&xr(T)&&(M.tagNameCheck instanceof RegExp&&es(M.tagNameCheck,T)||M.tagNameCheck instanceof Function&&M.tagNameCheck(T)))return!1;if(ge&&!le[T]){const O=v(y)||y.parentNode,ne=b(y)||y.childNodes;if(ne&&O){const K=ne.length;for(let Se=K-1;Se>=0;--Se){const we=m(ne[Se],!0);we.__removalCount=(y.__removalCount||0)+1,O.insertBefore(we,C(y))}}}return rt(y),!0}return y instanceof l&&!fi(y)||(T==="noscript"||T==="noembed"||T==="noframes")&&es(/<\/no(script|embed|frames)/i,y.innerHTML)?(rt(y),!0):(V&&y.nodeType===aA.text&&(k=y.textContent,n$([A,B,I],O=>{k=oA(k,O," ")}),y.textContent!==k&&(rA(e.removed,{element:y.cloneNode()}),y.textContent=k)),Xe(E.afterSanitizeElements,y,null),!1)},wr=function(y,k,T){if(te&&(k==="id"||k==="name")&&(T in n||T in hi))return!1;if(!(ct&&!de[k]&&es(W,k))&&!(ft&&es(P,k))&&!(J.attributeCheck instanceof Function&&J.attributeCheck(k,y))){if(!$[k]||de[k]){if(!(xr(y)&&(M.tagNameCheck instanceof RegExp&&es(M.tagNameCheck,y)||M.tagNameCheck instanceof Function&&M.tagNameCheck(y))&&(M.attributeNameCheck instanceof RegExp&&es(M.attributeNameCheck,k)||M.attributeNameCheck instanceof Function&&M.attributeNameCheck(k,y))||k==="is"&&M.allowCustomizedBuiltInElements&&(M.tagNameCheck instanceof RegExp&&es(M.tagNameCheck,T)||M.tagNameCheck instanceof Function&&M.tagNameCheck(T))))return!1}else if(!Ht[k]&&!es(se,oA(T,pe,""))&&!((k==="src"||k==="xlink:href"||k==="href")&&y!=="script"&&xon(T,"data:")===0&&en[y])&&!(dt&&!es(H,oA(T,pe,"")))&&T)return!1}return!0},xr=function(y){return y!=="annotation-xml"&&NJ(y,j)},kr=function(y){Xe(E.beforeSanitizeAttributes,y,null);const{attributes:k}=y;if(!k||zn(y))return;const T={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:$,forceKeepAttr:void 0};let O=k.length;for(;O--;){const ne=k[O],{name:K,namespaceURI:Se,value:we}=ne,xe=Z(K),yn=we;let ce=K==="value"?yn:kon(yn);if(T.attrName=xe,T.attrValue=ce,T.keepAttr=!0,T.forceKeepAttr=void 0,Xe(E.uponSanitizeAttribute,y,T),ce=T.attrValue,ke&&(xe==="id"||xe==="name")&&(st(K,y),ce=be+ce),G&&es(/((--!?|])>)|<\/(style|title|textarea)/i,ce)){st(K,y);continue}if(xe==="attributename"&&NJ(ce,"href")){st(K,y);continue}if(T.forceKeepAttr)continue;if(!T.keepAttr){st(K,y);continue}if(!z&&es(/\/>/i,ce)){st(K,y);continue}V&&n$([A,B,I],Oo=>{ce=oA(ce,Oo," ")});const nn=Z(y.nodeName);if(!wr(nn,xe,ce)){st(K,y);continue}if(w&&typeof f=="object"&&typeof f.getAttributeType=="function"&&!Se)switch(f.getAttributeType(nn,xe)){case"TrustedHTML":{ce=w.createHTML(ce);break}case"TrustedScriptURL":{ce=w.createScriptURL(ce);break}}if(ce!==yn)try{Se?y.setAttributeNS(Se,K,ce):y.setAttribute(K,ce),zn(y)?rt(y):pSe(e.removed)}catch{st(K,y)}}Xe(E.afterSanitizeAttributes,y,null)},pi=function y(k){let T=null;const O=Cr(k);for(Xe(E.beforeSanitizeShadowDOM,k,null);T=O.nextNode();)Xe(E.uponSanitizeShadowNode,T,null),vr(T),kr(T),T.content instanceof i&&y(T.content);Xe(E.afterSanitizeShadowDOM,k,null)};return e.sanitize=function(y){let k=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},T=null,O=null,ne=null,K=null;if(mn=!y,mn&&(y="<!-->"),typeof y!="string"&&!br(y))if(typeof y.toString=="function"){if(y=y.toString(),typeof y!="string")throw iA("dirty is not a string, aborting")}else throw iA("toString is not a function");if(!e.isSupported)return y;if(re||Vn(k),e.removed=[],typeof y=="string"&&(me=!1),me){if(y.nodeName){const xe=Z(y.nodeName);if(!L[xe]||fe[xe])throw iA("root node is forbidden and cannot be sanitized in-place")}}else if(y instanceof a)T=yr("<!---->"),O=T.ownerDocument.importNode(y,!0),O.nodeType===aA.element&&O.nodeName==="BODY"||O.nodeName==="HTML"?T=O:T.appendChild(O);else{if(!ae&&!V&&!Y&&y.indexOf("<")===-1)return w&&q?w.createHTML(y):y;if(T=yr(y),!T)return ae?null:q?x:""}T&&ie&&rt(T.firstChild);const Se=Cr(me?y:T);for(;ne=Se.nextNode();)vr(ne),kr(ne),ne.content instanceof i&&pi(ne.content);if(me)return y;if(ae){if(he)for(K=_.call(T.ownerDocument);T.firstChild;)K.appendChild(T.firstChild);else K=T;return($.shadowroot||$.shadowrootmode)&&(K=D.call(r,K,!0)),K}let we=Y?T.outerHTML:T.innerHTML;return Y&&L["!doctype"]&&T.ownerDocument&&T.ownerDocument.doctype&&T.ownerDocument.doctype.name&&es(d8e,T.ownerDocument.doctype.name)&&(we="<!DOCTYPE "+T.ownerDocument.doctype.name+`>
240
240
  `+we),V&&n$([A,B,I],xe=>{we=oA(we,xe," ")}),w&&q?w.createHTML(we):we},e.setConfig=function(){let y=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Vn(y),re=!0},e.clearConfig=function(){wt=null,re=!1},e.isValidAttribute=function(y,k,T){wt||Vn({});const O=Z(y),ne=Z(k);return wr(O,ne,T)},e.addHook=function(y,k){typeof k=="function"&&rA(E[y],k)},e.removeHook=function(y,k){if(k!==void 0){const T=von(E[y],k);return T===-1?void 0:won(E[y],T,1)[0]}return pSe(E[y])},e.removeHooks=function(y){E[y]=[]},e.removeAllHooks=function(){E=vSe()},e}h8e();function $on(t,e){e=Array.isArray(e)?e.slice(0,-1).map(n=>`'${n}'`).join(", ")+` or '${e.at(-1)}'`:`'${e}'`}const Gc=typeof window<"u",Pon=Gc&&("ontouchstart"in window||window.navigator.maxTouchPoints>0),Von=Gc&&"matchMedia"in window&&typeof window.matchMedia=="function";function zon(t,e,n){const r=e.length-1;if(r<0)return t===void 0?n:t;for(let o=0;o<r;o++){if(t==null)return n;t=t[e[o]]}return t==null||t[e[r]]===void 0?n:t[e[r]]}function wSe(t,e,n){return t==null||!e||typeof e!="string"?n:t[e]!==void 0?t[e]:(e=e.replace(/\[(\w+)\]/g,".$1"),e=e.replace(/^\./,""),zon(t,e.split("."),n))}function f8e(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return Array.from({length:t},(n,r)=>e+r)}function xSe(t){let e;return t!==null&&typeof t=="object"&&((e=Object.getPrototypeOf(t))===Object.prototype||e===null)}function IJ(t,e){return e.every(n=>t.hasOwnProperty(n))}function Hon(t,e){const n={};for(const r of e)Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}function Won(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1;return Math.max(e,Math.min(n,t))}function kSe(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"0";return t+n.repeat(Math.max(0,e-t.length))}function TSe(t,e){return(arguments.length>2&&arguments[2]!==void 0?arguments[2]:"0").repeat(Math.max(0,e-t.length))+t}function jon(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;const n=[];let r=0;for(;r<t.length;)n.push(t.substr(r,e)),r+=e;return n}function Up(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;const r={};for(const o in t)r[o]=t[o];for(const o in e){const i=t[o],s=e[o];if(xSe(i)&&xSe(s)){r[o]=Up(i,s,n);continue}if(n&&Array.isArray(i)&&Array.isArray(s)){r[o]=n(i,s);continue}r[o]=s}return r}function vT(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";if(vT.cache.has(t))return vT.cache.get(t);const e=t.replace(/[^a-z]/gi,"-").replace(/\B([A-Z])/g,"-$1").toLowerCase();return vT.cache.set(t,e),e}vT.cache=new Map;const qw=2.4,SSe=.2126729,FSe=.7151522,ESe=.072175,Uon=.55,Kon=.58,qon=.57,Jon=.62,o$=.03,ASe=1.45,Gon=5e-4,Yon=1.25,Xon=1.25,_Se=.078,RSe=12.82051282051282,i$=.06,DSe=.001;function NSe(t,e){const n=(t.r/255)**qw,r=(t.g/255)**qw,o=(t.b/255)**qw,i=(e.r/255)**qw,s=(e.g/255)**qw,a=(e.b/255)**qw;let l=n*SSe+r*FSe+o*ESe,u=i*SSe+s*FSe+a*ESe;if(l<=o$&&(l+=(o$-l)**ASe),u<=o$&&(u+=(o$-u)**ASe),Math.abs(u-l)<Gon)return 0;let c;if(u>l){const d=(u**Uon-l**Kon)*Yon;c=d<DSe?0:d<_Se?d-d*RSe*i$:d-i$}else{const d=(u**Jon-l**qon)*Xon;c=d>-DSe?0:d>-_Se?d-d*RSe*i$:d+i$}return c*100}const TW=.20689655172413793,Qon=t=>t>TW**3?Math.cbrt(t):t/(3*TW**2)+4/29,Zon=t=>t>TW?t**3:3*TW**2*(t-4/29);function p8e(t){const e=Qon,n=e(t[1]);return[116*n-16,500*(e(t[0]/.95047)-n),200*(n-e(t[2]/1.08883))]}function m8e(t){const e=Zon,n=(t[0]+16)/116;return[e(n+t[1]/500)*.95047,e(n),e(n-t[2]/200)*1.08883]}const ein=[[3.2406,-1.5372,-.4986],[-.9689,1.8758,.0415],[.0557,-.204,1.057]],tin=t=>t<=.0031308?t*12.92:1.055*t**(1/2.4)-.055,nin=[[.4124,.3576,.1805],[.2126,.7152,.0722],[.0193,.1192,.9505]],rin=t=>t<=.04045?t/12.92:((t+.055)/1.055)**2.4;function g8e(t){const e=Array(3),n=tin,r=ein;for(let o=0;o<3;++o)e[o]=Math.round(Won(n(r[o][0]*t[0]+r[o][1]*t[1]+r[o][2]*t[2]))*255);return{r:e[0],g:e[1],b:e[2]}}function wde(t){let{r:e,g:n,b:r}=t;const o=[0,0,0],i=rin,s=nin;e=i(e/255),n=i(n/255),r=i(r/255);for(let a=0;a<3;++a)o[a]=s[a][0]*e+s[a][1]*n+s[a][2]*r;return o}const LSe=/^(?<fn>(?:rgb|hsl)a?)\((?<values>.+)\)/,oin={rgb:(t,e,n,r)=>({r:t,g:e,b:n,a:r}),rgba:(t,e,n,r)=>({r:t,g:e,b:n,a:r}),hsl:(t,e,n,r)=>MSe({h:t,s:e,l:n,a:r}),hsla:(t,e,n,r)=>MSe({h:t,s:e,l:n,a:r}),hsv:(t,e,n,r)=>VL({h:t,s:e,v:n,a:r}),hsva:(t,e,n,r)=>VL({h:t,s:e,v:n,a:r})};function ep(t){if(typeof t=="number")return{r:(t&16711680)>>16,g:(t&65280)>>8,b:t&255};if(typeof t=="string"&&LSe.test(t)){const{groups:e}=t.match(LSe),{fn:n,values:r}=e,o=r.split(/,\s*|\s*\/\s*|\s+/).map((i,s)=>i.endsWith("%")||s>0&&s<3&&["hsl","hsla","hsv","hsva"].includes(n)?parseFloat(i)/100:parseFloat(i));return oin[n](...o)}else if(typeof t=="string"){let e=t.startsWith("#")?t.slice(1):t;return[3,4].includes(e.length)?e=e.split("").map(n=>n+n).join(""):[6,8].includes(e.length)||void 0,sin(e)}else if(typeof t=="object"){if(IJ(t,["r","g","b"]))return t;if(IJ(t,["h","s","l"]))return VL(y8e(t));if(IJ(t,["h","s","v"]))return VL(t)}throw new TypeError(`Invalid color: ${t==null?t:String(t)||t.constructor.name}
241
241
  Expected #hex, #hexa, rgb(), rgba(), hsl(), hsla(), object or number`)}function VL(t){const{h:e,s:n,v:r,a:o}=t,i=a=>{const l=(a+e/60)%6;return r-r*n*Math.max(Math.min(l,4-l,1),0)},s=[i(5),i(3),i(1)].map(a=>Math.round(a*255));return{r:s[0],g:s[1],b:s[2],a:o}}function MSe(t){return VL(y8e(t))}function y8e(t){const{h:e,s:n,l:r,a:o}=t,i=r+n*Math.min(r,1-r),s=i===0?0:2-2*r/i;return{h:e,s,v:i,a:o}}function s$(t){const e=Math.round(t).toString(16);return("00".substr(0,2-e.length)+e).toUpperCase()}function iin(t){let{r:e,g:n,b:r,a:o}=t;return`#${[s$(e),s$(n),s$(r),o!==void 0?s$(Math.round(o*255)):""].join("")}`}function sin(t){t=ain(t);let[e,n,r,o]=jon(t,2).map(i=>parseInt(i,16));return o=o===void 0?o:o/255,{r:e,g:n,b:r,a:o}}function ain(t){return t.startsWith("#")&&(t=t.slice(1)),t=t.replace(/([^0-9a-f])/gi,"F"),(t.length===3||t.length===4)&&(t=t.split("").map(e=>e+e).join("")),t.length!==6&&(t=kSe(kSe(t,6),8,"F")),t}function lin(t,e){const n=p8e(wde(t));return n[0]=n[0]+e*10,g8e(m8e(n))}function uin(t,e){const n=p8e(wde(t));return n[0]=n[0]-e*10,g8e(m8e(n))}function cin(t){const e=ep(t);return wde(e)[1]}function din(t){const e=Math.abs(NSe(ep(0),ep(t)));return Math.abs(NSe(ep(16777215),ep(t)))>Math.min(e,50)?"#fff":"#000"}function C8e(t,e){return n=>Object.keys(t).reduce((r,o)=>{const i=typeof t[o]=="object"&&t[o]!=null&&!Array.isArray(t[o])?t[o]:{type:t[o]};return n&&o in n?r[o]={...i,default:n[o]}:r[o]=i,e&&!r[o].source&&(r[o].source=e),r},{})}function xde(t,e){const n=Oi();if(!n)throw new Error(`[Vuetify] ${t} must be called from inside a setup function`);return n}function hin(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:xde("injectSelf");const{provides:n}=e;if(n&&t in n)return n[t]}const zL=Symbol.for("vuetify:defaults");function fin(t){return Wn(t)}function b8e(){const t=Qt(zL);if(!t)throw new Error("[Vuetify] Could not find defaults instance");return t}function pin(t,e){return t.props&&(typeof t.props[e]<"u"||typeof t.props[vT(e)]<"u")}function min(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:b8e();const r=xde("useDefaults");if(e=e??r.type.name??r.type.__name,!e)throw new Error("[Vuetify] Could not determine component name");const o=Q(()=>n.value?.[t._as??e]),i=new Proxy(t,{get(l,u){const c=Reflect.get(l,u);if(u==="class"||u==="style")return[o.value?.[u],c].filter(f=>f!=null);if(pin(r.vnode,u))return c;const d=o.value?.[u];if(d!==void 0)return d;const h=n.value?.global?.[u];return h!==void 0?h:c}}),s=Dn();ir(()=>{if(o.value){const l=Object.entries(o.value).filter(u=>{let[c]=u;return c.startsWith(c[0].toUpperCase())});s.value=l.length?Object.fromEntries(l):void 0}else s.value=void 0});function a(){const l=hin(zL,r);Sr(zL,Q(()=>s.value?Up(l?.value??{},s.value):l?.value))}return{props:i,provideSubDefaults:a}}function PO(t){if(t._setup=t._setup??t.setup,!t.name)return t;if(t._setup){t.props=C8e(t.props??{},t.name)();const e=Object.keys(t.props).filter(n=>n!=="class"&&n!=="style");t.filterProps=function(n){return Hon(n,e)},t.props._as=String,t.setup=function(n,r){const o=b8e();if(!o.value)return t._setup(n,r);const{props:i,provideSubDefaults:s}=min(n,n._as??t.name,o),a=t._setup(i,r);return s(),a}}return t}function gin(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return e=>(t?PO:pt)(e)}function v8e(t){if(typeof t.getRootNode!="function"){for(;t.parentNode;)t=t.parentNode;return t!==document?null:document}const e=t.getRootNode();return e!==document&&e.getRootNode({composed:!0})!==document?null:e}const yin={linear:t=>t,easeInQuad:t=>t**2,easeOutQuad:t=>t*(2-t),easeInOutQuad:t=>t<.5?2*t**2:-1+(4-2*t)*t,easeInCubic:t=>t**3,easeOutCubic:t=>--t**3+1,easeInOutCubic:t=>t<.5?4*t**3:(t-1)*(2*t-2)*(2*t-2)+1,easeInQuart:t=>t**4,easeOutQuart:t=>1- --t**4,easeInOutQuart:t=>t<.5?8*t**4:1-8*--t**4,easeInQuint:t=>t**5,easeOutQuint:t=>1+--t**5,easeInOutQuint:t=>t<.5?16*t**5:1+16*--t**5,instant:t=>1};function Cin(){return!0}function w8e(t,e,n){if(!t||x8e(t,n)===!1)return!1;const r=v8e(e);if(typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&r.host===t.target)return!1;const o=(typeof n.value=="object"&&n.value.include||(()=>[]))();return o.push(e),!o.some(i=>i?.contains(t.target))}function x8e(t,e){return(typeof e.value=="object"&&e.value.closeConditional||Cin)(t)}function bin(t,e,n){const r=typeof n.value=="function"?n.value:n.value.handler;t.shadowTarget=t.target,e._clickOutside.lastMousedownWasOutside&&w8e(t,e,n)&&setTimeout(()=>{x8e(t,n)&&r&&r(t)},0)}function OSe(t,e){const n=v8e(t);e(document),typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&e(n)}const vin={mounted(t,e){const n=o=>bin(o,t,e),r=o=>{t._clickOutside.lastMousedownWasOutside=w8e(o,t,e)};OSe(t,o=>{o.addEventListener("click",n,!0),o.addEventListener("mousedown",r,!0)}),t._clickOutside||(t._clickOutside={lastMousedownWasOutside:!1}),t._clickOutside[e.instance.$.uid]={onClick:n,onMousedown:r}},beforeUnmount(t,e){t._clickOutside&&(OSe(t,n=>{if(!n||!t._clickOutside?.[e.instance.$.uid])return;const{onClick:r,onMousedown:o}=t._clickOutside[e.instance.$.uid];n.removeEventListener("click",r,!0),n.removeEventListener("mousedown",o,!0)}),delete t._clickOutside[e.instance.$.uid])}};function win(t,e){let n;function r(){n=RT(),n.run(()=>e.length?e(()=>{n?.stop(),r()}):e())}En(t,o=>{o&&!n?r():o||(n?.stop(),n=void 0)},{immediate:!0}),Zp(()=>{n?.stop()})}const BSe=Symbol.for("vuetify:display"),ISe={mobileBreakpoint:"lg",thresholds:{xs:0,sm:600,md:960,lg:1280,xl:1920,xxl:2560}},xin=function(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:ISe;return Up(ISe,t)};function $Se(t){return Gc&&!t?window.innerWidth:typeof t=="object"&&t.clientWidth||0}function PSe(t){return Gc&&!t?window.innerHeight:typeof t=="object"&&t.clientHeight||0}function VSe(t){const e=Gc&&!t?window.navigator.userAgent:"ssr";function n(p){return!!e.match(p)}const r=n(/android/i),o=n(/iphone|ipad|ipod/i),i=n(/cordova/i),s=n(/electron/i),a=n(/chrome/i),l=n(/edge/i),u=n(/firefox/i),c=n(/opera/i),d=n(/win/i),h=n(/mac/i),f=n(/linux/i);return{android:r,ios:o,cordova:i,electron:s,chrome:a,edge:l,firefox:u,opera:c,win:d,mac:h,linux:f,touch:Pon,ssr:e==="ssr"}}function kin(t,e){const{thresholds:n,mobileBreakpoint:r}=xin(t),o=Dn(PSe(e)),i=Dn(VSe(e)),s=Xt({}),a=Dn($Se(e));function l(){o.value=PSe(),a.value=$Se()}function u(){l(),i.value=VSe()}return ir(()=>{const c=a.value<n.sm,d=a.value<n.md&&!c,h=a.value<n.lg&&!(d||c),f=a.value<n.xl&&!(h||d||c),p=a.value<n.xxl&&!(f||h||d||c),m=a.value>=n.xxl,g=c?"xs":d?"sm":h?"md":f?"lg":p?"xl":"xxl",C=typeof r=="number"?r:n[r],b=a.value<C;s.xs=c,s.sm=d,s.md=h,s.lg=f,s.xl=p,s.xxl=m,s.smAndUp=!c,s.mdAndUp=!(c||d),s.lgAndUp=!(c||d||h),s.xlAndUp=!(c||d||h||f),s.smAndDown=!(h||f||p||m),s.mdAndDown=!(f||p||m),s.lgAndDown=!(p||m),s.xlAndDown=!m,s.name=g,s.height=o.value,s.width=a.value,s.mobile=b,s.mobileBreakpoint=r,s.platform=i.value,s.thresholds=n}),Gc&&(window.addEventListener("resize",l,{passive:!0}),Zp(()=>{window.removeEventListener("resize",l)},!0)),{...vae(s),update:u,ssr:!!e}}function Tin(t,e,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:c=>c,o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:c=>c;const i=xde("useProxiedModel"),s=Wn(t[e]!==void 0?t[e]:n),a=vT(e),l=Q(a!==e?()=>(t[e],!!((i.vnode.props?.hasOwnProperty(e)||i.vnode.props?.hasOwnProperty(a))&&(i.vnode.props?.hasOwnProperty(`onUpdate:${e}`)||i.vnode.props?.hasOwnProperty(`onUpdate:${a}`)))):()=>(t[e],!!(i.vnode.props?.hasOwnProperty(e)&&i.vnode.props?.hasOwnProperty(`onUpdate:${e}`))));win(()=>!l.value,()=>{En(()=>t[e],c=>{s.value=c})});const u=Q({get(){const c=t[e];return r(l.value?c:s.value)},set(c){const d=o(c),h=Hn(l.value?t[e]:s.value);h===d||r(h)===c||(s.value=d,i?.emit(`update:${e}`,d))}});return Object.defineProperty(u,"externalValue",{get:()=>l.value?t[e]:s.value}),u}const Sin={badge:"Badge",open:"Open",close:"Close",dismiss:"Dismiss",confirmEdit:{ok:"OK",cancel:"Cancel"},dataIterator:{noResultsText:"No matching records found",loadingText:"Loading items..."},dataTable:{itemsPerPageText:"Rows per page:",ariaLabel:{sortDescending:"Sorted descending.",sortAscending:"Sorted ascending.",sortNone:"Not sorted.",activateNone:"Activate to remove sorting.",activateDescending:"Activate to sort descending.",activateAscending:"Activate to sort ascending."},sortBy:"Sort by"},dataFooter:{itemsPerPageText:"Items per page:",itemsPerPageAll:"All",nextPage:"Next page",prevPage:"Previous page",firstPage:"First page",lastPage:"Last page",pageText:"{0}-{1} of {2}"},dateRangeInput:{divider:"to"},datePicker:{itemsSelected:"{0} selected",range:{title:"Select dates",header:"Enter dates"},title:"Select date",header:"Enter date",input:{placeholder:"Enter date"},ariaLabel:{previousMonth:"Previous month",nextMonth:"Next month",selectYear:"Select year",previousYear:"Previous year",nextYear:"Next year",selectMonth:"Select month",selectDate:"{0}",currentDate:"Today, {0}"}},noDataText:"No data available",carousel:{prev:"Previous visual",next:"Next visual",ariaLabel:{delimiter:"Carousel slide {0} of {1}"}},calendar:{moreEvents:"{0} more",today:"Today"},input:{clear:"Clear {0}",prependAction:"{0} prepended action",appendAction:"{0} appended action",otp:"Please enter OTP character {0}"},fileInput:{counter:"{0} files",counterSize:"{0} files ({1} in total)"},fileUpload:{title:"Drag and drop files here",divider:"or",browse:"Browse Files"},timePicker:{am:"AM",pm:"PM",title:"Select Time",hour:"Hour",minute:"Minute",second:"Second"},pagination:{ariaLabel:{root:"Pagination Navigation",next:"Next page",previous:"Previous page",page:"Go to page {0}",currentPage:"Page {0}, Current page",first:"First page",last:"Last page"}},stepper:{next:"Next",prev:"Previous"},rating:{ariaLabel:{item:"Rating {0} of {1}"}},loading:"Loading...",infiniteScroll:{loadMore:"Load more",empty:"No more"},rules:{required:"This field is required",email:"Please enter a valid email",number:"This field can only contain numbers",integer:"This field can only contain integer values",capital:"This field can only contain uppercase letters",maxLength:"You must enter a maximum of {0} characters",minLength:"You must enter a minimum of {0} characters",strictLength:"The length of the entered field is invalid",exclude:"The {0} character is not allowed",notEmpty:"Please choose at least one value",pattern:"Invalid format"},hotkey:{then:"then",ctrl:"Ctrl",command:"Command",space:"Space",shift:"Shift",alt:"Alt",enter:"Enter",escape:"Escape",upArrow:"Up Arrow",downArrow:"Down Arrow",leftArrow:"Left Arrow",rightArrow:"Right Arrow",backspace:"Backspace",option:"Option",plus:"plus",shortcut:"Keyboard shortcut: {0}",or:"or"},video:{play:"Play",pause:"Pause",seek:"Seek",volume:"Volume",showVolume:"Show volume control",mute:"Mute",unmute:"Unmute",enterFullscreen:"Full screen",exitFullscreen:"Exit full screen"},colorPicker:{ariaLabel:{eyedropper:"Select color with eyedropper",hueSlider:"Hue",alphaSlider:"Alpha",redInput:"Red value",greenInput:"Green value",blueInput:"Blue value",alphaInput:"Alpha value",hueInput:"Hue value",saturationInput:"Saturation value",lightnessInput:"Lightness value",hexInput:"HEX value",hexaInput:"HEX with alpha value",changeFormat:"Change color format"}}},zSe="$vuetify.",HSe=(t,e)=>t.replace(/\{(\d+)\}/g,(n,r)=>String(e[Number(r)])),k8e=(t,e,n)=>function(r){for(var o=arguments.length,i=new Array(o>1?o-1:0),s=1;s<o;s++)i[s-1]=arguments[s];if(!r.startsWith(zSe))return HSe(r,i);const a=r.replace(zSe,""),l=t.value&&n.value[t.value],u=e.value&&n.value[e.value];let c=wSe(l,a,null);return c||(`${r}${t.value}`,c=wSe(u,a,null)),c||(c=r),typeof c!="string"&&(c=r),HSe(c,i)};function kde(t,e){return(n,r)=>new Intl.NumberFormat([t.value,e.value],r).format(n)}function T8e(t,e){return kde(t,e)(.1).includes(",")?",":"."}function $J(t,e,n){const r=Tin(t,e,t[e]??n.value);return r.value=t[e]??n.value,En(n,o=>{t[e]==null&&(r.value=n.value)}),r}function S8e(t){return e=>{const n=$J(e,"locale",t.current),r=$J(e,"fallback",t.fallback),o=$J(e,"messages",t.messages);return{name:"vuetify",current:n,fallback:r,messages:o,decimalSeparator:ve(()=>T8e(n,r)),t:k8e(n,r,o),n:kde(n,r),provide:S8e({current:n,fallback:r,messages:o})}}}function Fin(t){const e=Dn(t?.locale??"en"),n=Dn(t?.fallback??"en"),r=Wn({en:Sin,...t?.messages});return{name:"vuetify",current:e,fallback:n,messages:r,decimalSeparator:ve(()=>t?.decimalSeparator??T8e(e,n)),t:k8e(e,n,r),n:kde(e,n),provide:S8e({current:e,fallback:n,messages:r})}}const WSe=Symbol.for("vuetify:locale");function Ein(t){return t.name!=null}function Ain(t){const e=t?.adapter&&Ein(t?.adapter)?t?.adapter:Fin(t),n=Rin(e,t);return{...e,...n}}function _in(){return{af:!1,ar:!0,bg:!1,ca:!1,ckb:!1,cs:!1,de:!1,el:!1,en:!1,es:!1,et:!1,fa:!0,fi:!1,fr:!1,hr:!1,hu:!1,he:!0,id:!1,it:!1,ja:!1,km:!1,ko:!1,lv:!1,lt:!1,nl:!1,no:!1,pl:!1,pt:!1,ro:!1,ru:!1,sk:!1,sl:!1,srCyrl:!1,srLatn:!1,sv:!1,th:!1,tr:!1,az:!1,uk:!1,vi:!1,zhHans:!1,zhHant:!1}}function Rin(t,e){const n=Wn(e?.rtl??_in()),r=Q(()=>n.value[t.current.value]??!1);return{isRtl:r,rtl:n,rtlClasses:ve(()=>`v-locale--is-${r.value?"rtl":"ltr"}`)}}const jSe=Symbol.for("vuetify:theme");function USe(){return{defaultTheme:"light",prefix:"v-",variations:{colors:[],lighten:0,darken:0},themes:{light:{dark:!1,colors:{background:"#FFFFFF",surface:"#FFFFFF","surface-bright":"#FFFFFF","surface-light":"#EEEEEE","surface-variant":"#424242","on-surface-variant":"#EEEEEE",primary:"#1867C0","primary-darken-1":"#1F5592",secondary:"#48A9A6","secondary-darken-1":"#018786",error:"#B00020",info:"#2196F3",success:"#4CAF50",warning:"#FB8C00"},variables:{"border-color":"#000000","border-opacity":.12,"high-emphasis-opacity":.87,"medium-emphasis-opacity":.6,"disabled-opacity":.38,"idle-opacity":.04,"hover-opacity":.04,"focus-opacity":.12,"selected-opacity":.08,"activated-opacity":.12,"pressed-opacity":.12,"dragged-opacity":.08,"theme-kbd":"#EEEEEE","theme-on-kbd":"#000000","theme-code":"#F5F5F5","theme-on-code":"#000000"}},dark:{dark:!0,colors:{background:"#121212",surface:"#212121","surface-bright":"#ccbfd6","surface-light":"#424242","surface-variant":"#c8c8c8","on-surface-variant":"#000000",primary:"#2196F3","primary-darken-1":"#277CC1",secondary:"#54B6B2","secondary-darken-1":"#48A9A6",error:"#CF6679",info:"#2196F3",success:"#4CAF50",warning:"#FB8C00"},variables:{"border-color":"#FFFFFF","border-opacity":.12,"high-emphasis-opacity":1,"medium-emphasis-opacity":.7,"disabled-opacity":.5,"idle-opacity":.1,"hover-opacity":.04,"focus-opacity":.12,"selected-opacity":.08,"activated-opacity":.12,"pressed-opacity":.16,"dragged-opacity":.08,"theme-kbd":"#424242","theme-on-kbd":"#FFFFFF","theme-code":"#343434","theme-on-code":"#CCCCCC"}}},stylesheetId:"vuetify-theme-stylesheet",scoped:!1,unimportant:!1,utilities:!0}}function Din(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:USe();const e=USe();if(!t)return{...e,isDisabled:!0};const n={};for(const[r,o]of Object.entries(t.themes??{})){const i=o.dark||r==="dark"?e.themes?.dark:e.themes?.light;n[r]=Up(i,o)}return Up(e,{...t,themes:n})}function EC(t,e,n,r){t.push(`${Oin(e,r)} {
242
242
  `,...n.map(o=>` ${o};
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@retailrocketgroup/retailrocket-create.multicast-vue-email-template-render",
3
- "version": "10.0.399657",
3
+ "version": "10.0.400288-dev",
4
4
  "private": false
5
5
  }