@retailrocketgroup/retailrocket-create.repurchase-vue-email-template-render 10.0.399657 → 10.0.400288-dev
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.turbo/turbo-build.log +4 -4
- package/dist/assets/index.js +1 -1
- package/package.json +1 -1
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
> @easy-wizzy/create-repurchase-app@10.0.
|
|
2
|
+
> @easy-wizzy/create-repurchase-app@10.0.400288-dev build /src/apps/repurchase/create.repurchase
|
|
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
|
|
15
|
+
[vite:dts] Declaration files built in 5641ms.
|
|
16
16
|
|
|
17
17
|
dist/index.html 1.80 kB │ gzip: 0.72 kB
|
|
18
18
|
dist/assets/index.css 168.72 kB │ gzip: 26.65 kB
|
|
19
|
-
dist/assets/index.js 4,474.
|
|
19
|
+
dist/assets/index.js 4,474.05 kB │ gzip: 1,295.29 kB
|
|
20
20
|
|
|
21
21
|
(!) Some chunks are larger than 500 kB after minification. Consider:
|
|
22
22
|
- Using dynamic import() to code-split the application
|
|
23
23
|
- Use build.rollupOptions.output.manualChunks to improve chunking: https://rollupjs.org/configuration-options/#output-manualchunks
|
|
24
24
|
- Adjust chunk size limit for this warning via build.chunkSizeWarningLimit.
|
|
25
|
-
✓ built in 19.
|
|
25
|
+
✓ built in 19.72s
|
package/dist/assets/index.js
CHANGED
|
@@ -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
|
${rV({borderColor:t.Color,themeColors:e})}
|
|
239
|
-
`}),Up=t=>({borderTop:YI(t.border.Top,t.themeColors),borderRight:YI(t.border.Right,t.themeColors),borderBottom:YI(t.border.Bottom,t.themeColors),borderLeft:YI(t.border.Left,t.themeColors)}),DO=t=>t.borderCollapse!==void 0?{borderCollapse:SYt(t.borderCollapse)}:{borderCollapse:"collapse"},SYt=t=>{switch(t){case"Collapse":return"collapse";case"Separate":return"separate";default:return cu(t)}},FYt=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 cu(t.Discriminator)}}}),od=t=>FYt(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}),H8e=t=>({Match:e=>{switch(t){case"Left":return e.Left();case"Center":return e.Center();case"Right":return e.Right();default:return cu(t)}}}),EYt=t=>t.containerAlign?H8e(t.containerAlign).Match({Left:()=>({textAlign:"left"}),Center:()=>({textAlign:"center"}),Right:()=>({textAlign:"right"})}):{},tp=t=>t.containerAlign?H8e(t.containerAlign).Match({Left:()=>"left",Center:()=>"center",Right:()=>"right"}):"center",AYt=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(Vu,{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))}}),NO=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"}),_Yt=OF,RYt=t=>_Yt(t.width).Match({Auto:()=>"initial",Pixel:e=>e.Value+"px",Percentage:e=>e.Value+"%"}),DYt=["align"],NYt=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(RYt)({width:n.element.Width})}])},[N("tbody",null,[N("tr",null,[N("td",{align:ee(tp)({containerAlign:n.element.ContainerAlign}),style:Be([ee(NO)({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(od)({color:n.element.BackgroundColor,themeColors:n.theme.Colors})??"inherit"},ee(Up)({border:n.element.Border,themeColors:n.theme.Colors}),ee(Rh)({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(Vu,{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,DYt)])])],4))}}),LYt=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()}}}),OL=t=>LYt(t.contentAlign).Match({Left:()=>({display:"block",textAlign:"left"}),Center:()=>({display:"block",textAlign:"center"}),Right:()=>({display:"block",textAlign:"right"}),Inline:()=>({})}),MYt=["href"],OYt=["src","alt"],BYt=["src","alt"],IYt=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(OL)({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(Rh)({borderRadius:r.element.BorderRadius,borderRadiusCard:r.theme.BorderRadiusCard,bodyBorderRadius:r.theme.BorderRadius,borderButtonRadius:r.theme.BorderRadiusButton,borderBannerRadius:r.theme.BorderRadiusBanner}),ee(Up)({border:r.element.Border,themeColors:r.theme.Colors}),{width:i.value,maxWidth:"100%"},{verticalAlign:r.element.VerticalAlign}]),onLoad:n},null,46,OYt)),[[ee(LL),({width:d,height:h})=>l("onImageSizeAdjusted",{Path:r.path,AdjustedHeight:h,AdjustedWidth:d})]]):it("",!0)],12,MYt)):(U(),ue("span",{key:1,style:Be([ee(OL)({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(Rh)({borderRadius:r.element.BorderRadius,borderRadiusCard:r.theme.BorderRadiusCard,bodyBorderRadius:r.theme.BorderRadius,borderButtonRadius:r.theme.BorderRadiusButton,borderBannerRadius:r.theme.BorderRadiusBanner}),ee(Up)({border:r.element.Border,themeColors:r.theme.Colors}),{width:i.value,maxWidth:"100%"},{verticalAlign:r.element.VerticalAlign}]),onLoad:n},null,46,BYt)),[[ee(LL),({width:d,height:h})=>l("onImageSizeAdjusted",{Path:r.path,AdjustedHeight:h,AdjustedWidth:d})]]):it("",!0)],4))}}),$Yt=ht(IYt,[["__scopeId","data-v-eaaeacec"]]),PYt=OF,VYt=t=>t.width===void 0?{}:PYt(t.width).Match({Auto:()=>({width:"auto"}),Pixel:e=>({width:e.Value+"px"}),Percentage:e=>({width:e.Value+"%"})}),zYt=t=>{switch(t){case"Auto":return{width:"auto"};case"FullWidth":return{width:"100%"};default:return cu(t)}},HYt=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(zYt)(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(NO)({paddings:n.element.ItemPaddings,themeComponentPaddings:n.theme.ComponentPaddings,themeBodyPaddings:n.theme.BodyPaddings}),ee(VYt)({width:n.element.ItemWidth}),{lineHeight:"normal"}])},[(U(),kt(Vu,{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))}}),WYt={style:{"border-spacing":"0","border-collapse":"collapse",width:"100%"}},jYt=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",WYt,[N("tbody",null,[N("tr",null,[N("td",{style:Be([[{borderTop:n.element.Weight+"px",borderStyle:n.element.Weight>0?"solid":"none",borderColor:ee(od)({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)])])]))}}),Bne={beforeMount(t,e){t.innerHTML=gxe.sanitize(e.value)},beforeUpdate(t,e){t.innerHTML=gxe.sanitize(e.value)}},UYt=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)}}}),H9=t=>UYt(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}),KYt=t=>({Match:e=>{switch(t){case"None":return e.None();case"Underline":return e.Underline();case"LineThrough":return e.LineThrough()}}}),Sde=t=>KYt(t.textDecoration).Match({None:()=>"none",Underline:()=>"underline",LineThrough:()=>"line-through"}),W8e=t=>({fontSize:t.customFontSettings.FontSize,lineHeight:t.customFontSettings.LineHeight,fontWeight:t.customFontSettings.IsBold?"bold":"normal",fontStyle:t.customFontSettings.IsItalic?"italic":"normal",textDecoration:Sde({textDecoration:t.customFontSettings.Decoration}),fontFamily:t.customFontSettings.FontFamily,color:H9({fontColor:t.customFontSettings.FontColor,themeColors:t.themeColors})}),j8e=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 cu(t.Discriminator)}}}),qYt=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)}}}),JYt=t=>qYt(t.fontStyleColor).Match({FontStyle:()=>j8e(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=>od({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}),U8e=["Arial","Georgia","Tahoma","TimesNewRoman","Verdana"],Ine={Arial:"Arial",Georgia:"Georgia",Tahoma:"Tahoma",TimesNewRoman:"Times New Roman",Verdana:"Verdana"},Fde=t=>({fontSize:t.fontSize+"px",lineHeight:t.lineHeight+"px",fontWeight:t.fontWeight,fontStyle:t.fontStyle,fontFamily:Ine[t.fontFamily],textDecoration:t.textDecoration,color:t.color}),Ede=t=>{const e=n=>({fontSize:n.FontSize,lineHeight:n.LineHeight,fontWeight:n.IsBold?"bold":"normal",fontStyle:n.IsItalic?"italic":"normal",fontFamily:t.fontFamily,textDecoration:Sde({textDecoration:n.Decoration}),color:JYt({fontStyleColor:t.fontStyle.FontColor,fontStyle:t.fontStyle,themeColors:t.themeColors})});return j8e(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=>W8e({customFontSettings:n,themeColors:t.themeColors})})},GYt=t=>({Match:e=>{switch(t.Discriminator){case"Theme":return e.Theme();case"Custom":return e.Custom(t.CustomValue);default:return cu(t.Discriminator)}}}),YYt=t=>GYt(t.buttonPaddings).Match({Theme:()=>({TopBottom:t.themeButtonPaddings.TopBottom,LeftRight:t.themeButtonPaddings.LeftRight}),Custom:e=>({TopBottom:e.TopBottom,LeftRight:e.LeftRight})}),K8e=t=>t.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'"),XYt=["align"],QYt={class:"Button"},ZYt=["href"],eXt=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(()=>Fde(Ede({fontFamily:n.theme.FontFamily,fontStyle:n.element.TextStyle,themeDefinedFontSettings:n.theme.FontSettingsPresets,themeColors:n.theme.Colors}))),o=Q(()=>rV({borderColor:n.element.Border.Left.Color,themeColors:n.theme.Colors})),i=Q(()=>YYt({buttonPaddings:n.element.Paddings,themeButtonPaddings:n.theme.ButtonPaddings})),s=Q(()=>od({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=K8e(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",QYt,[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(Rh)({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(Up)({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(Bne),l.text]])],4)])])],4)],12,ZYt)])],8,XYt)])])]))}}),tXt=ht(eXt,[["__scopeId","data-v-0c0a0e61"]]),nXt=["href"],rXt=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=Ede({fontFamily:n.theme.FontFamily,fontStyle:n.element.Style,themeDefinedFontSettings:n.theme.FontSettingsPresets,themeColors:n.theme.Colors});if(n.element.Style.Discriminator==="Custom"){const u=W8e({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=K8e(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(OL)({contentAlign:n.element.ContentAlign})]]),onClick:u[0]||(u[0]=Po(()=>a("onElementClicked"),["prevent"]))},null,14,nXt)),[[ee(Bne),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(OL)({contentAlign:n.element.ContentAlign})]]),onClick:u[1]||(u[1]=Po(()=>a("onElementClicked"),["prevent"]))},null,6)),[[ee(Bne),i.text]])}}),oXt=ht(rXt,[["__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:Sde({textDecoration:t.themeFontSettings.Decoration}),color:t.themeColor}),iXt={cancelButton:"Cancel",applyButton:"Delete"},sXt={cancelButton:"Отмена",applyButton:"Удалить"},oSe=Ir({en:iXt,ru:sXt}),aXt={class:"bootstrap-styles px-11 py-7 text-start"},lXt=pt({__name:"RemoveConfirmModalWindow",props:{headerText:{},deps:{}},emits:["cancel","confirmed"],setup(t,{emit:e}){const n=t,r=()=>{i("cancel")},o={cancelButton:oSe({localeKey:n.deps.localeKey}).cancelButton,applyButton:oSe({localeKey:n.deps.localeKey}).applyButton},i=e;return(s,a)=>(U(),kt(A7e,{headerText:n.headerText,class:"remove-element-confirm-modal-window",onClose:a[2]||(a[2]=()=>r())},{body:wy(()=>[N("div",aXt,[L3(s.$slots,"body-content")])]),"footer-actions":wy(()=>[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"]))}}),uXt={removeWindowTitle:"Delete element",removeWindowDescription:"Are you sure you want to delete the text element?"},cXt={removeWindowTitle:"Удаление элемента",removeWindowDescription:"Вы действительно хотите удалить элемент ?"},iSe=Ir({en:uXt,ru:cXt}),sSe=t=>({type:"doc",content:t.Content.map(dXt)}),dXt=t=>"ParagraphNode"in t?G8e(t):"BulletListNode"in t?hXt(t):"OrderedListNode"in t?fXt(t):"DataFieldNode"in t?J8e(t):cu(t),q8e=t=>({type:"listItem",content:t.Content.map(e=>"ParagraphNode"in e?G8e(e):"ImageNode"in e?Y8e(e):cu(e))}),J8e=t=>({type:"dataField",marks:Ade({textStyle:t.DataFieldNode.TextStyle,commonLinkMark:t.DataFieldNode.CommonLinkMark}),attrs:{stringExpression:t.DataFieldNode.StringExpression}}),hXt=t=>({type:"bulletList",content:t.BulletListNode.Content.map(q8e),attrs:{themeName:t.BulletListNode.ListStyle}}),fXt=t=>({type:"orderedList",content:t.OrderedListNode.Content.map(q8e),attrs:{themeName:t.OrderedListNode.ListStyle}}),G8e=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(pXt)}},pXt=t=>"TextNode"in t?mXt(t):"HardBreakNode"in t?xXt():"ImageNode"in t?Y8e(t):"DataFieldNode"in t?J8e(t):cu(t),Ade=t=>{const e=[];return t.textStyle&&e.push(vXt(t.textStyle)),t.commonLinkMark&&e.push(wXt(t.commonLinkMark)),e.filter(n=>n!==void 0)},mXt=t=>({type:"text",text:t.TextNode.Text,marks:Ade({textStyle:t.TextNode.TextStyle,commonLinkMark:t.TextNode.CommonLinkMark})}),gXt=t=>{switch(t){case"Normal":return"normal";case"Bold":return"bold";default:return"normal"}},yXt=t=>{switch(t){case"Normal":return"normal";case"Italic":return"italic";default:return"normal"}},CXt=t=>{switch(t){case"None":return"none";case"Uppercase":return"uppercase";default:return"none"}},bXt=t=>{switch(t){case"None":return"none";case"Underline":return"underline";case"LineThrough":return"line-through";default:return"none"}},vXt=t=>({type:"textStyle",attrs:{themeName:t.ThemeName,color:t.Style.Color,fontWeight:t.Style.FontWeight?gXt(t.Style.FontWeight):void 0,fontStyle:t.Style.FontStyle?yXt(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?CXt(t.Style.TextTransform):void 0,textDecoration:t.Style.TextDecoration?bXt(t.Style.TextDecoration):void 0}}),wXt=t=>OF(t).Match({LinkMark:e=>kXt({LinkMark:e}),UnsubscribeLinkMark:()=>TXt()}),xXt=()=>({type:"hardBreak"}),Y8e=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:Ade({commonLinkMark:t.ImageNode.CommonLinkMark})}),kXt=t=>({type:"link",attrs:{href:t.LinkMark.Href}}),TXt=()=>({type:"unsubscribeLink"}),X8e=Jh.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})}}}}),SXt=Jh.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()}}}),FXt=Jh.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()}}}),EXt=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}})]}}),AXt=Jh.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})}}}}),_Xt=Jh.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})}}}}),_de=Jh.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",na(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()}}}}),RXt=Jh.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})}}}}),DXt=t=>{if(!t.content)throw new Error("Invalid document: content is missing");return{Content:t.content.map(e=>{switch(e.type){case"paragraph":return Q8e(e);case"bulletList":return MXt(e);case"orderedList":return OXt(e);default:throw new Error(`Unknown node type: ${e.type}`)}})}},Q8e=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 NXt(e);case"image":return eKe(e);case"hardBreak":return aSe();case"dataField":return LXt(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:[aSe()]}},Rde=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?zXt(e):void 0,CommonLinkMark:n?HXt(n):void 0}},NXt=t=>{if(typeof t.text!="string")throw new Error("Invalid text node: text is missing or not a string");const{TextStyle:e,CommonLinkMark:n}=Rde(t.marks);return{TextNode:{Text:t.text,TextStyle:e,CommonLinkMark:n}}},aSe=()=>({HardBreakNode:{}}),LXt=t=>{if(!t.attrs)throw new Error("Invalid variable node: attrs is missing");const{TextStyle:e,CommonLinkMark:n}=Rde(t.marks);return{DataFieldNode:{StringExpression:t.attrs.stringExpression,TextStyle:e,CommonLinkMark:n}}},MXt=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(Z8e)}}},OXt=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(Z8e)}}},Z8e=t=>{if(!t.content)throw new Error("Invalid listItem: content is missing");return{Content:t.content.map(e=>{switch(e.type){case"paragraph":return Q8e(e);case"image":return eKe(e);default:throw new Error(`Unknown node type: ${e.type}`)}})}},eKe=t=>{if(!t.attrs)throw new Error("Invalid image node: attrs is missing");const{CommonLinkMark:e}=Rde(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}}},BXt=t=>t==="bold"?"Bold":"Normal",IXt=t=>t==="italic"?"Italic":"Normal",$Xt=t=>t,PXt=t=>{switch(t){case"uppercase":return"Uppercase";default:return"None"}},VXt=t=>{switch(t){case"underline":return"Underline";case"line-through":return"LineThrough";default:return"None"}},lSe=t=>{const e=t.replace(/px$/,"");return parseInt(e,10)},zXt=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?BXt(t.attrs.fontWeight):void 0,FontStyle:t.attrs.fontStyle?IXt(t.attrs.fontStyle):void 0,FontSize:t.attrs.fontSize?lSe(t.attrs.fontSize):void 0,LineHeight:t.attrs.lineHeight?lSe(t.attrs.lineHeight):void 0,FontFamily:t.attrs.fontFamily?$Xt(t.attrs.fontFamily):void 0,TextTransform:t.attrs.textTransform?PXt(t.attrs.textTransform):void 0,TextDecoration:t.attrs.textDecoration?VXt(t.attrs.textDecoration):void 0}}},HXt=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}},tKe=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),tKe(r)}const e=document.createElement("canvas").getContext("2d");return e?(e.fillStyle=t,e.fillStyle):null},WXt=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=tKe(e.style.color)??"#000000";return{Discriminator:n,CustomValue:r}},renderHTML:e=>{if(!e.color)return{};const n=H9({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()}}}),jXt=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 U8e.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()}}}),UXt=t=>OF(t),KXt=t=>md.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=UXt(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",na(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()}}}}),nKe=t=>new Promise((e,n)=>{const r=new Image;r.onload=()=>{e({width:r.naturalWidth,height:r.naturalHeight})},r.onerror=n,r.src=t}),rKe=md.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",na(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[Y4t({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)&&nKe(i).then(l=>{const u=e.tr.setNodeMarkup(o,void 0,{...r.attrs,width:l.width,height:l.height});n(u)})}})})(),{})})]}}),qXt=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}}}}),JXt=t=>[I6t,kUt,B6t,A9.configure({mergeNestedSpanStyles:!0}),lUt,KXt({dataSourceFieldNameDelegate:t.dataSourceFieldNameDelegate}),O6t.configure({className:"has-focus",mode:"all"}),Gce.configure({keepMarks:!0,keepAttributes:!0}),Xce.configure({keepMarks:!0,keepAttributes:!0}),n7e,xUt.configure({HTMLAttributes:{class:"hard-break"}}),Jce.configure({HTMLAttributes:{class:"rich-text__link"},openOnClick:!1}),rKe.configure({inline:!0,HTMLAttributes:{class:"rich-text__image"}}),WXt({themeColors:t.themeColors}),EXt(t.initialThemeName),AXt,_Xt,SXt,FXt,X8e,RXt,_de,jXt,qXt({fallbackContentAlign:t.fallbackContentAlign})],GXt=t=>DXt(t.editor.getJSON()),YXt=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),ZM(" "+er(n.label),1)])],2))}}),XXt={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"}},QXt={colorLabels:{none:"Нет",styleLinkedColor:"Связать со стилем",emailBackgroundColor:"Фон письма",bodyColor:"Тело письма",primaryColor:"Основной цвет",secondaryColor:"Вторичный цвет",primaryTextColor:"Текст на основном цвете",secondaryTextColor:"Текст на вторичном цвете",cardBackgroundColor:"Цвет карточек товара",buttonTextColor:"Кнопки",titleColor:"Большой заголовок",headingColor:"Заголовок",subHeadingColor:"Подзаголовок",largeTextColor:"Большой текст",normalTextColor:"Текст",descriptionTextColor:"Описание",linkColor:"Ссылка",custom:"Пользовательский"}},ZXt=Ir({en:XXt,ru:QXt}),oKe=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 cu(t)}}}),W9=t=>oKe(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}),LO=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:W9({themeName:s,themeFontColors:r})});return String(a[t.styleName])},iKe=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:W9({themeName:s,themeFontColors:r})});return{Discriminator:oKe(s).Match({whenHeading:()=>"HeadingColor",whenTitle:()=>"TitleColor",whenSubHeading:()=>"SubHeadingColor",whenLargeText:()=>"LargeTextColor",whenNormalText:()=>"NormalTextColor",whenDescriptionText:()=>"DescriptionTextColor",whenLink:()=>"LinkColor",whenButton:()=>"ButtonTextColor"}),CustomValue:a.color}},eQt={class:"color-picker bootstrap-styles border rounded bg-white"},tQt={class:"bootstrap-styles mb-5 bg-white"},nQt=["value"],rQt=["value"],oQt=pt({__name:"ColorPickerModalWindow",props:{editor:{},theme:{},deps:{}},emits:["onColorChanged","onColorPickerClosed"],setup(t,{emit:e}){nm(h=>({v7ba43684:i.color}));const n=t,r={colorLabels:ZXt({localeKey:n.deps.localeKey}).colorLabels},o=Q(()=>H9({fontColor:iKe({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=Y3t(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",eQt,[N("li",tQt,[Ce(ee(Z9t),{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,nQt),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,rQt)],2)]),(U(),ue(xt,null,Kr(a,p=>Ce(YXt,{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(om),()=>d("onColorPickerClosed")]])}}),iQt=ht(oQt,[["__scopeId","data-v-0519b5d6"]]),sQt={tooltip:"Text color"},aQt={tooltip:"Цвет текста"},lQt=Ir({en:sQt,ru:aQt}),uQt=["value"],cQt=pt({__name:"ColorPicker",props:{editor:{},theme:{},isAllowToEdit:{type:Boolean},deps:{}},setup(t){const e=t,n={tooltip:lQt({localeKey:e.deps.localeKey}).tooltip},r=Xt({isColorPickerDropdownShown:!1}),o=Wn(),i=Wn(),{floatingStyles:s}=N6e(i,o,{whileElementsMounted:_6e,placement:"bottom",middleware:[R6e(({rects:l})=>({alignmentAxis:-l.floating.width/2-l.floating.width/2,mainAxis:15}))]}),a=Q(()=>H9({fontColor:iKe({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,uQt)),[[ee(Mo),{title:n.tooltip,placement:"top"}]]),r.isColorPickerDropdownShown?(U(),kt(iQt,{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))}}),dQt=ht(cQt,[["__scopeId","data-v-6624477a"]]),hQt={},fQt={xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"};function pQt(t,e){return U(),ue("svg",fQt,[...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 sKe=ht(hQt,[["render",pQt]]),mQt={tooltip:"Font family"},gQt={tooltip:"Шрифт"},yQt=Ir({en:mQt,ru:gQt}),CQt={class:"bootstrap-styles dropdown"},bQt={class:"bootstrap-styles me-14 overflow-hidden rich-text-toolbar__font-family-btn__text"},vQt={class:"bootstrap-styles d-flex justify-content-center align-items-center"},wQt=["onClick"],xQt=pt({__name:"FontFamilySelector",props:{editor:{},isAllowToEdit:{type:Boolean},theme:{},deps:{}},setup(t){const e=t,n={tooltip:yQt({localeKey:e.deps.localeKey}).tooltip},r=A9.name,o=Xt({isOpened:!1}),i=Q(()=>LO({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",CQt,[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",bQt,er(ee(Ine)[i.value]),1),N("i",vQt,[Ce(sKe)])],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(U8e),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(Ine)[u]),5)],10,wQt))),128))],2)])),[[ee(om),()=>o.isOpened=!1],[ee(Mo),{title:n.tooltip,placement:"top"}]])}}),kQt=ht(xQt,[["__scopeId","data-v-cc496278"]]),TQt={},SQt={xmlns:"http://www.w3.org/2000/svg",width:"8",height:"8",viewBox:"0 0 8 8",fill:"none"};function FQt(t,e){return U(),ue("svg",SQt,[...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 aKe=ht(TQt,[["render",FQt],["__scopeId","data-v-19c42a7a"]]),EQt={},AQt={xmlns:"http://www.w3.org/2000/svg",width:"8",height:"8",viewBox:"0 0 8 8",fill:"none"};function _Qt(t,e){return U(),ue("svg",AQt,[...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 lKe=ht(EQt,[["render",_Qt],["__scopeId","data-v-313c2951"]]),RQt={},DQt={width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function NQt(t,e){return U(),ue("svg",DQt,[...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 LQt=ht(RQt,[["render",NQt]]),MQt={tooltip:"Font size"},OQt={tooltip:"Размер текста"},BQt=Ir({en:MQt,ru:OQt}),IQt=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:W9({themeName:s,themeFontColors:r})}).fontSize},$Qt={class:"bootstrap-styles rich-text-toolbar__font-size-editor position-relative rounded-2 py-1 px-3 d-flex"},PQt={class:"bootstrap-styles d-flex justify-content-center rich-text-icon me-14"},VQt=["value"],zQt={class:"bootstrap-styles rich-text-toolbar__input-button top-0 d-flex position-absolute align-items-end justify-content-center"},HQt={class:"bootstrap-styles rich-text-toolbar__input-button bottom-0 d-flex position-absolute align-items-start justify-content-center"},WQt=pt({__name:"FontSizeEditor",props:{editor:{},theme:{},deps:{}},setup(t){const e=t,n={tooltip:BQt({localeKey:e.deps.localeKey}).tooltip},r=Q(()=>IQt({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",$Qt,[N("i",PQt,[Ce(LQt)]),N("input",{type:"number",class:"bootstrap-styles rich-text-toolbar__input-number rich-text__handler",value:r.value,onInput:s},null,40,VQt),N("div",zQt,[N("input",{type:"button",class:"bootstrap-styles position-absolute rich-text__handler",onClick:o}),Ce(aKe)]),N("div",HQt,[N("input",{type:"button",class:"bootstrap-styles position-absolute rich-text__handler",onClick:i}),Ce(lKe)])])),[[ee(Mo),{title:n.tooltip,placement:"top"}]])}}),jQt=ht(WQt,[["__scopeId","data-v-ba95f865"]]),UQt=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))}}),KQt=ht(UQt,[["__scopeId","data-v-3a2ee8e2"]]),qQt={tooltip:"Text style",settingLabels:{title:"Title",heading:"Heading",subHeading:"Subheading",largeText:"Large text",normalText:"Text",descriptionText:"Description",link:"Link",button:"Button",custom:"Custom"}},JQt={tooltip:"Стиль текста",settingLabels:{title:"Большой заголовок",heading:"Заголовок",subHeading:"Подзаголовок",largeText:"Большой текст",normalText:"Текст",descriptionText:"Описание",link:"Ссылка",button:"Кнопка",custom:"Пользовательский"}},uSe=Ir({en:qQt,ru:JQt}),GQt={class:"bootstrap-styles dropdown"},YQt={class:"bootstrap-styles rich-text-toolbar__font-style-selector__text"},XQt={class:"bootstrap-styles d-flex justify-content-center align-items-center rich-text-toolbar__icon"},QQt=pt({__name:"ThemeSettingsSelector",props:{editor:{},theme:{},isAllowToEdit:{type:Boolean},initialThemeName:{},deps:{}},setup(t){const e=t,n=A9.name,r=Xt({isOpened:!1}),o={tooltip:uSe({localeKey:e.deps.localeKey}).tooltip,settingLabels:uSe({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",GQt,[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",YQt,er(l.value),1),N("i",XQt,[Ce(sKe)])],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(KQt,{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(om),()=>r.isOpened=!1],[ee(Mo),{title:o.tooltip,placement:"top"}]])}}),ZQt=ht(QQt,[["__scopeId","data-v-37cbbac2"]]),eZt={},tZt={xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"};function nZt(t,e){return U(),ue("svg",tZt,[...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 rZt=ht(eZt,[["render",nZt]]),oZt={tooltip:"Line height"},iZt={tooltip:"Высота строки"},sZt=Ir({en:oZt,ru:iZt}),aZt=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:W9({themeName:s,themeFontColors:r})}).lineHeight},lZt={class:"bootstrap-styles rich-text-toolbar__line-height-editor position-relative rounded-2 py-1 px-3 d-flex"},uZt={class:"bootstrap-styles d-flex justify-content-center rich-text-icon me-14"},cZt=["value"],dZt={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"}},hZt={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"}},fZt=pt({__name:"LineHeightEditor",props:{editor:{},theme:{},deps:{}},setup(t){const e=t,n={tooltip:sZt({localeKey:e.deps.localeKey}).tooltip},r=Q(()=>aZt({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",lZt,[N("i",uZt,[Ce(rZt)]),N("input",{type:"number",class:"bootstrap-styles rich-text-toolbar__input-number rich-text__handler",value:r.value,onInput:s},null,40,cZt),N("div",dZt,[N("input",{type:"button",class:"bootstrap-styles position-absolute rich-text__handler",onClick:o}),Ce(aKe)]),N("div",hZt,[N("input",{type:"button",class:"bootstrap-styles position-absolute rich-text__handler",onClick:i}),Ce(lKe)])])),[[ee(Mo),{title:n.tooltip,placement:"top"}]])}}),pZt=ht(fZt,[["__scopeId","data-v-4e76ed1b"]]),mZt=/^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,gZt=/^mailto:\S+$/i,yZt=/^tel:\+?[\d().-]+$/i,CZt=t=>/\s/.test(t)?!1:t.toLowerCase().startsWith("http://")||t.toLowerCase().startsWith("https://")?mZt.test(t):t.toLowerCase().startsWith("mailto:")?gZt.test(t):t.toLowerCase().startsWith("tel:")?yZt.test(t)&&/\d/.test(t.slice(4)):!1,bZt={mounted(t,e){t.addEventListener("input",()=>{const n=CZt(t.value);typeof e.value=="function"&&e.value(n)})}},uKe={mounted(t,e){cSe(t,e)},updated(t,e){e.value&&cSe(t,e)}},cSe=(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)}})},vZt={},wZt={xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 14 14",fill:"none"};function xZt(t,e){return U(),ue("svg",wZt,[...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 cKe=ht(vZt,[["render",xZt]]),kZt={label:"Link",inputPlaceholder:"https://example.com",errorNotification:"The link must contain https://, http://, mailto:, tel:",applyButton:"Save",cancelButton:"Cancel"},TZt={label:"Ссылка",inputPlaceholder:"https://example.com",errorNotification:"Ссылка должна содержать https://, http://, mailto:, tel:",applyButton:"Сохранить",cancelButton:"Отмена"},SZt=Ir({en:kZt,ru:TZt}),FZt={},EZt={width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function AZt(t,e){return U(),ue("svg",EZt,[...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 dKe=ht(FZt,[["render",AZt]]),_Zt={class:"bootstrap-styles bg-white border rounded-2 add-text-link-modal-window"},RZt={class:"bootstrap-styles fw-bold mb-5 px-11 mt-10 d-block text-start"},DZt={class:"bootstrap-styles px-11 mb-2"},NZt={class:"bootstrap-styles d-flex justify-content-center align-items-center me-1"},LZt=["placeholder"],MZt={class:"bootstrap-styles px-11 py-5 d-flex align-items-center justify-content-end border-top"},OZt=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=SZt({localeKey:n.deps.localeKey}),i=e;return(s,a)=>_n((U(),ue("div",_Zt,[N("label",RZt,er(ee(o).label),1),N("div",DZt,[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",NZt,[Ce(cKe)]),_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,LZt),[[ee(bZt),l=>r.isValid=l],[ee(uKe),void 0,void 0,{selectAll:!0}],[Zmt,r.href]])],2),N("div",{class:Ve(["bootstrap-styles text-start add-link-notification",{invisible:r.isValid}])},er(ee(o).errorNotification),3)]),N("div",MZt,[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(dKe)])])):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(om),()=>i("onClosed")]])}}),BZt=ht(OZt,[["__scopeId","data-v-b4170a33"]]),IZt={};function $Zt(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 PZt=ht(IZt,[["render",$Zt],["__scopeId","data-v-730bc16f"]]),VZt={tooltip:"Link"},zZt={tooltip:"Ссылка"},HZt=Ir({en:VZt,ru:zZt}),WZt={class:"bootstrap-styles d-flex rich-text-icon icon-hover"},jZt=pt({__name:"LinkEditor",props:{editor:{},isAllowToEdit:{type:Boolean},deps:{}},setup(t){const e=t,n={tooltip:HZt({localeKey:e.deps.localeKey}).tooltip},r=Jce.name,o=_de.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",WZt,[e.editor.isActive(ee(r))?(U(),kt(PZt,{key:1})):(U(),kt(cKe,{key:0}))])],2)),[[ee(Mo),{title:n.tooltip,placement:"top"}]]),i.isAddTextLinkModalWindowShown?(U(),kt(BZt,{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))}}),UZt=ht(jZt,[["__scopeId","data-v-6460a995"]]),KZt={label:"URL",placeholder:"URL...",cancel:"Cancel",apply:"Save",removeTooltip:"Delete image"},qZt={label:"URL",placeholder:"URL...",cancel:"Отмена",apply:"Сохранить",removeTooltip:"Удалить изображение"},YE=Ir({en:KZt,ru:qZt}),JZt={class:"bootstrap-styles bg-white border rounded-2 add-image-src-modal-window"},GZt={class:"bootstrap-styles fw-bold mb-5 px-11 mt-10 d-block text-start"},YZt={class:"bootstrap-styles px-11 mb-11"},XZt=["placeholder","value"],QZt={class:"bootstrap-styles px-11 py-5 d-flex align-items-center justify-content-end border-top"},ZZt=["disabled"],een=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:YE({localeKey:n.deps.localeKey}).label,placeholder:YE({localeKey:n.deps.localeKey}).placeholder,cancel:YE({localeKey:n.deps.localeKey}).cancel,apply:YE({localeKey:n.deps.localeKey}).apply,removeTooltip:YE({localeKey:n.deps.localeKey}).removeTooltip},i=m6e(l=>{nKe(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",JZt,[N("label",GZt,er(o.label),1),N("div",YZt,[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,XZt),[[ee(uKe),void 0,void 0,{selectAll:!0}]])],2)]),N("div",QZt,[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(dKe)])])),[[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,ZZt)])])),[[ee(om),()=>a("onClosed")]])}}),ten=ht(een,[["__scopeId","data-v-35966ae0"]]),nen={},ren={width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function oen(t,e){return U(),ue("svg",ren,[...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 ien=ht(nen,[["render",oen]]),sen={tooltip:"Image",retinaLabel:"For retina screens"},aen={tooltip:"Изображение",retinaLabel:"Для retina-экранов"},dSe=Ir({en:sen,ru:aen}),len={class:"bootstrap-styles rich-text-icon icon-hover d-flex"},uen=["checked"],cen={for:"rich-text__retina-checkbox",class:"bootstrap-styles label__checkbox-input text-nowrap"},den=pt({__name:"ImageEditor",props:{editor:{},deps:{}},setup(t){const e=t,n={tooltip:dSe({localeKey:e.deps.localeKey}).tooltip,retinaLabel:dSe({localeKey:e.deps.localeKey}).retinaLabel},r=rKe.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",len,[Ce(ien)])],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,uen),N("label",cen,er(n.retinaLabel),1)],32)):it("",!0),o.isAddImageSrcModalWindowShown?(U(),kt(ten,{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))}}),hen=ht(den,[["__scopeId","data-v-d72ccf51"]]),fen={},pen={xmlns:"http://www.w3.org/2000/svg",width:"17",height:"16",viewBox:"0 0 17 16",fill:"none"};function men(t,e){return U(),ue("svg",pen,[...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 gen=ht(fen,[["render",men]]),yen={tooltip:"Bold"},Cen={tooltip:"Полужирный"},ben=Ir({en:yen,ru:Cen}),ven={class:"bootstrap-styles d-flex rich-text-icon icon-hover"},wen=pt({__name:"FontWeightEditor",props:{editor:{},theme:{},isAllowToEdit:{type:Boolean},deps:{}},setup(t){const e=t,n={tooltip:ben({localeKey:e.deps.localeKey}).tooltip},r=Q(()=>LO({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",ven,[Ce(gen)])],2)),[[ee(Mo),{title:n.tooltip,placement:"top"}]])}}),xen=ht(wen,[["__scopeId","data-v-0e22dbf6"]]),ken={},Ten={xmlns:"http://www.w3.org/2000/svg",width:"17",height:"16",viewBox:"0 0 17 16",fill:"none"};function Sen(t,e){return U(),ue("svg",Ten,[...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 Fen=ht(ken,[["render",Sen]]),Een={tooltip:"Strikethrough"},Aen={tooltip:"Зачеркнутый"},_en=Ir({en:Een,ru:Aen}),Ren={class:"bootstrap-styles d-flex rich-text-icon icon-hover"},Den=pt({__name:"LineThroughEditor",props:{editor:{},isAllowToEdit:{type:Boolean},theme:{},deps:{}},setup(t){const e=t,n={tooltip:_en({localeKey:e.deps.localeKey}).tooltip},r=Q(()=>LO({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",Ren,[Ce(Fen)])],2)),[[ee(Mo),{title:n.tooltip,placement:"top"}]])}}),Nen=ht(Den,[["__scopeId","data-v-fffc32ef"]]),Len={},Men={xmlns:"http://www.w3.org/2000/svg",width:"17",height:"16",viewBox:"0 0 17 16",fill:"none"};function Oen(t,e){return U(),ue("svg",Men,[...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 Ben=ht(Len,[["render",Oen]]),Ien={tooltip:"Underline"},$en={tooltip:"Подчеркнутый"},Pen=Ir({en:Ien,ru:$en}),Ven={class:"bootstrap-styles d-flex rich-text-icon icon-hover"},zen=pt({__name:"UnderlineEditor",props:{editor:{},isAllowToEdit:{type:Boolean},theme:{},deps:{}},setup(t){const e=t,n={tooltip:Pen({localeKey:e.deps.localeKey}).tooltip},r=Q(()=>LO({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",Ven,[Ce(Ben)])],2)),[[ee(Mo),{title:n.tooltip,placement:"top"}]])}}),Hen=ht(zen,[["__scopeId","data-v-ae63be68"]]),Wen={},jen={xmlns:"http://www.w3.org/2000/svg",width:"17",height:"16",viewBox:"0 0 17 16",fill:"none"};function Uen(t,e){return U(),ue("svg",jen,[...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 Ken=ht(Wen,[["render",Uen]]),qen={tooltip:"Italic"},Jen={tooltip:"Курсив"},Gen=Ir({en:qen,ru:Jen}),Yen={class:"bootstrap-styles d-flex rich-text-icon icon-hover"},Xen=pt({__name:"FontStyleEditor",props:{editor:{},isAllowToEdit:{type:Boolean},theme:{},deps:{}},setup(t){const e=t,n={tooltip:Gen({localeKey:e.deps.localeKey}).tooltip},r=Q(()=>LO({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",Yen,[Ce(Ken)])],2)),[[ee(Mo),{title:n.tooltip,placement:"top"}]])}}),Qen=ht(Xen,[["__scopeId","data-v-ac6b2276"]]),Zen={},etn={width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function ttn(t,e){return U(),ue("svg",etn,[...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 ntn=ht(Zen,[["render",ttn]]),rtn={tooltip:"Uppercase"},otn={tooltip:"Заглавные"},itn=Ir({en:rtn,ru:otn}),stn={class:"bootstrap-styles d-flex rich-text-icon icon-hover"},atn=pt({__name:"TextTransformEditor",props:{editor:{},isAllowToEdit:{type:Boolean},theme:{},deps:{}},setup(t){const e=t,n={tooltip:itn({localeKey:e.deps.localeKey}).tooltip},r=X8e.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",stn,[Ce(ntn)])],2)),[[ee(Mo),{title:n.tooltip,placement:"top"}]])}}),ltn=ht(atn,[["__scopeId","data-v-20dea8b8"]]),utn={},ctn={width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function dtn(t,e){return U(),ue("svg",ctn,[...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 htn=ht(utn,[["render",dtn]]),ftn={tooltip:"Unsubscribe link"},ptn={tooltip:"Ссылка на отписку"},mtn=Ir({en:ftn,ru:ptn}),gtn={class:"bootstrap-styles d-flex rich-text-icon icon-hover"},ytn=pt({__name:"UnsubscribeLinkEditor",props:{editor:{},isAllowToEdit:{type:Boolean},theme:{},deps:{}},setup(t){const e=t,n={tooltip:mtn({localeKey:e.deps.localeKey}).tooltip},r=_de.name,o=Jce.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",gtn,[Ce(htn)])],2)),[[ee(Mo),{title:n.tooltip,placement:"top"}]])}}),Ctn=ht(ytn,[["__scopeId","data-v-9ee287d3"]]),btn={},vtn={xmlns:"http://www.w3.org/2000/svg",width:"17",height:"16",viewBox:"0 0 17 16",fill:"none"};function wtn(t,e){return U(),ue("svg",vtn,[...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 xtn=ht(btn,[["render",wtn]]),ktn={tooltip:"Bullet list"},Ttn={tooltip:"Маркированный список"},Stn=Ir({en:ktn,ru:Ttn}),Ftn={class:"bootstrap-styles d-flex rich-text-icon icon-hover"},Etn=pt({__name:"BulletListEditor",props:{editor:{},deps:{}},setup(t){const e=t,n={tooltip:Stn({localeKey:e.deps.localeKey}).tooltip},r=Gce.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",Ftn,[Ce(xtn)])],2)),[[ee(Mo),{title:n.tooltip,placement:"top"}]])}}),Atn=ht(Etn,[["__scopeId","data-v-c64632e3"]]),_tn={},Rtn={xmlns:"http://www.w3.org/2000/svg",width:"17",height:"16",viewBox:"0 0 17 16",fill:"none"};function Dtn(t,e){return U(),ue("svg",Rtn,[...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 Ntn=ht(_tn,[["render",Dtn]]),Ltn={tooltip:"Ordered list"},Mtn={tooltip:"Нумерованный список"},Otn=Ir({en:Ltn,ru:Mtn}),Btn={class:"bootstrap-styles d-flex rich-text-icon icon-hover"},Itn=pt({__name:"OrderedListEditor",props:{editor:{},deps:{}},setup(t){const e=t,n={tooltip:Otn({localeKey:e.deps.localeKey}).tooltip},r=Xce.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",Btn,[Ce(Ntn)])],2)),[[ee(Mo),{title:n.tooltip,placement:"top"}]])}}),$tn=ht(Itn,[["__scopeId","data-v-aaa43948"]]),Ptn={},Vtn={width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function ztn(t,e){return U(),ue("svg",Vtn,[...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 hSe=ht(Ptn,[["render",ztn]]),Htn={},Wtn={width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function jtn(t,e){return U(),ue("svg",Wtn,[...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 fSe=ht(Htn,[["render",jtn]]),Utn={},Ktn={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",Ktn,[...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 pSe=ht(Utn,[["render",qtn]]),Jtn={},Gtn={width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Ytn(t,e){return U(),ue("svg",Gtn,[...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 mSe=ht(Jtn,[["render",Ytn]]),Xtn={tooltip:"Vertical image alignment"},Qtn={tooltip:"Выравнивание картинок по вертикали"},Ztn=Ir({en:Xtn,ru:Qtn}),enn={class:"bootstrap-styles vertical-align-editor dropdown rounded"},tnn={class:"bootstrap-styles rich-text-icon icon-hover d-flex justify-content-center align-items-center"},nnn={class:"bootstrap-styles rich-text-icon icon-hover d-flex justify-content-center align-items-center"},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=pt({__name:"VerticalAlignEditor",props:{editor:{},currentVerticalAlign:{},deps:{}},emits:["onVerticalAlignVariantChanged"],setup(t,{emit:e}){const n=t,r={tooltip:Ztn({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",enn,[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",tnn,[n.currentVerticalAlign==="Baseline"?(U(),kt(mSe,{key:0})):it("",!0),n.currentVerticalAlign==="Top"?(U(),kt(hSe,{key:1})):it("",!0),n.currentVerticalAlign==="Middle"?(U(),kt(fSe,{key:2})):it("",!0),n.currentVerticalAlign==="Bottom"?(U(),kt(pSe,{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",nnn,[Ce(mSe)])],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",rnn,[Ce(hSe)])],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",onn,[Ce(fSe)])],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",inn,[Ce(pSe)])],2)],2)])),[[ee(om),()=>o.isOpened=!1],[ee(Mo),{title:r.tooltip,placement:"top"}]])}}),ann=ht(snn,[["__scopeId","data-v-4a636ae8"]]),lnn={},unn={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",unn,[...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 gSe=ht(lnn,[["render",cnn]]),dnn={},hnn={xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"};function fnn(t,e){return U(),ue("svg",hnn,[...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 ySe=ht(dnn,[["render",fnn]]),pnn={},mnn={xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"};function gnn(t,e){return U(),ue("svg",mnn,[...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 CSe=ht(pnn,[["render",gnn]]),ynn={tooltip:"Alignment"},Cnn={tooltip:"Выравнивание"},bnn=Ir({en:ynn,ru:Cnn}),vnn={class:"bootstrap-styles content-align-editor dropdown rounded"},wnn={class:"bootstrap-styles rich-text-icon icon-hover d-flex justify-content-center align-items-center"},xnn={class:"bootstrap-styles rich-text-icon icon-hover d-flex justify-content-center align-items-center"},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=pt({__name:"ContentAlignEditor",props:{editor:{},deps:{},initialContentAlign:{}},setup(t){const e=t,n={tooltip:bnn({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",vnn,[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",wnn,[o.value==="Left"?(U(),kt(gSe,{key:0})):it("",!0),o.value==="Center"?(U(),kt(ySe,{key:1})):it("",!0),o.value==="Right"?(U(),kt(CSe,{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",xnn,[Ce(gSe)])],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",knn,[Ce(ySe)])],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",Tnn,[Ce(CSe)])],2)],2)])),[[ee(om),()=>r.isOpened=!1],[ee(Mo),{title:n.tooltip,placement:"top"}]])}}),Fnn=ht(Snn,[["__scopeId","data-v-e9d5324a"]]),Enn={class:"bootstrap-styles rich-text-toolbar d-flex align-items-center border gap-1 p-1"},Ann={key:2,class:"bootstrap-styles position-relative h-100"},_nn={key:3,class:"bootstrap-styles position-relative h-100"},Rnn={key:4,class:"bootstrap-styles d-flex justify-content-center align-items-center"},Dnn={key:7,class:"vl"},Nnn={key:13,class:"vl"},Lnn={key:16,class:"vl"},Mnn=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",Enn,[i.value?it("",!0):(U(),kt(ZQt,{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(kQt,{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",Ann,[Ce(jQt,{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",_nn,[Ce(pZt,{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",Rnn,[Ce(dQt,{editor:n.editor,theme:n.theme,isAllowToEdit:o.value,deps:n.deps.colorPickerDeps},null,8,["editor","theme","isAllowToEdit","deps"])])),i.value?(U(),kt(ann,{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(Fnn,{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",Dnn)),i.value?it("",!0):(U(),kt(xen,{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(Qen,{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(Nen,{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(Hen,{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(ltn,{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",Nnn)),i.value?it("",!0):(U(),kt(Atn,{key:14,editor:n.editor,deps:n.deps.bulletListEditorDeps},null,8,["editor","deps"])),i.value?it("",!0):(U(),kt($tn,{key:15,editor:n.editor,deps:n.deps.orderedListEditorDeps},null,8,["editor","deps"])),i.value?it("",!0):(U(),ue("div",Lnn)),Ce(UZt,{editor:n.editor,isAllowToEdit:o.value,deps:n.deps.linkEditorDeps},null,8,["editor","isAllowToEdit","deps"]),Ce(Ctn,{editor:n.editor,theme:n.theme,isAllowToEdit:o.value,deps:n.deps.unsubscribeLinkEditorDeps},null,8,["editor","theme","isAllowToEdit","deps"]),Ce(hen,{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(NPe(u),{editor:n.editor},null,8,["editor"]))]))),128))]))}}),Onn=ht(Mnn,[["__scopeId","data-v-359375dd"]]),Bnn=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 cu(t)}}}),Inn=t=>Bnn(t.verticalAlign).Match({whenBaseline:()=>"baseline",whenTop:()=>"top",whenMiddle:()=>"middle",whenBottom:()=>"bottom"}),bSe="NormalText",vSe="Left",$nn=pt({__name:"RichText",props:{deps:{},theme:{},element:{},isSelected:{type:Boolean}},emits:["onRichTextUpdated","onRichTextRemoved","onElementClicked"],setup(t,{emit:e}){nm(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:iSe({localeKey:n.deps.localeKey}).removeWindowTitle,removeWindowDescription:iSe({localeKey:n.deps.localeKey}).removeWindowDescription},i=Wn(null),s=Wn(null),{floatingStyles:a}=N6e(s,i,{placement:"top",whileElementsMounted:_6e,middleware:[R6e(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=EU(),c=n.element.ContentAlign||vSe,d=Q(()=>il({fontFamily:n.theme.FontFamily,themeFontSettings:n.theme.FontSettingsPresets.NormalText,themeColor:n.theme.Colors.NormalTextColor})),h=Q(()=>{const b={...Fde(d.value)};return{fontSize:b.fontSize,lineHeight:b.lineHeight,fontFamily:b.fontFamily,fontWeight:b.fontWeight,fontStyle:b.fontStyle,color:b.color}}),f=a6t({content:sSe(n.element.Text),extensions:[...JXt({dataSourceFieldNameDelegate:n.deps.dataSourceFieldNameDelegate,initialThemeName:bSe,themeColors:n.theme.Colors,fallbackContentAlign:n.element.ContentAlign||vSe})],editable:r.isEditing,autofocus:"all",onUpdate:({editor:b})=>{if(!r.isEditing)return;const v=GXt({editor:b});C("onRichTextUpdated",{...n.element,Text:v})}}),p=()=>{f.value&&(f.value.chain().focus().undo().run(),r.isRemoveComponentWindowShown=!1)},m=Q(()=>Inn({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(sSe(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(s6t),{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(Onn,{key:0,ref_key:"richTextToolbarRef",ref:i,editor:ee(f),deps:n.deps.richTextToolbarDeps,element:n.element,theme:n.theme,initialThemeName:bSe,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(wPe,{to:"body",defer:""},[r.isRemoveComponentWindowShown?(U(),kt(lXt,{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":wy(()=>[ZM(er(o.removeWindowDescription),1)]),_:1},8,["deps","headerText"])):it("",!0)]))],6)),[[ee(om),{handler:()=>{r.isEditing=!1,ee(f)&&ee(f).setEditable(!1)},include:g}]])}}),Pnn=ht($nn,[["__scopeId","data-v-0a9d26ba"]]),Vnn=pt({__name:"UnsubscribeLink",props:{theme:{},element:{}},emits:["onElementClicked"],setup(t,{emit:e}){const n=t,r=Q(()=>{const i=Ede({fontFamily:n.theme.FontFamily,fontStyle:n.element.Style,themeDefinedFontSettings:n.theme.FontSettingsPresets,themeColors:n.theme.Colors});return{...Fde(i)}}),o=e;return(i,s)=>(U(),ue("a",{href:"#",class:"cursor-pointer user-select-none",style:Be([{margin:"0"},[r.value,ee(OL)({contentAlign:n.element.ContentAlign})]]),onClick:s[0]||(s[0]=Po(()=>o("onElementClicked"),["prevent"]))},er(n.element.Text),5))}}),znn=ht(Vnn,[["__scopeId","data-v-68ed9754"]]),Hnn=["src","alt"],Wnn={class:"bootstrap-styles position-absolute top-0 left-0",width:"100%",style:{"border-spacing":"0","border-collapse":"collapse",width:"100%",height:"100%"}},jnn={key:0},Unn=["align"],Knn={style:{width:"auto","border-spacing":"0","border-collapse":"separate"}},qnn={align:"center",style:{width:"auto"}},Jnn={key:0},Gnn={key:1},Ynn=["align"],Xnn={style:{width:"auto","border-spacing":"0","border-collapse":"separate"}},Qnn={align:"center",style:{width:"auto"}},Znn={key:2},ern=["align"],trn={style:{width:"auto","border-spacing":"0","border-collapse":"separate"}},nrn={align:"center",style:{width:"auto"}},rrn={key:3},orn=["align"],irn={style:{width:"auto","border-spacing":"0","border-collapse":"separate"}},srn={align:"center",style:{width:"auto"}},arn=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,Hnn),[[ee(LL),({width:l,height:u})=>{i("onImageSizeAdjusted",{Path:n.path,AdjustedHeight:u,AdjustedWidth:l}),r.isLoaded=!0}]]),N("table",Wnn,[N("tbody",null,[n.element.TopElementList.List.length>0&&n.element.TopElementList.Direction==="Vertical"?(U(),ue("tr",jnn,[N("td",{valign:"top",align:ee(tp)({containerAlign:n.element.TopElementList.ContentAlign})},[N("table",Knn,[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",qnn,[Ce(Vu,{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",Jnn,[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,Unn)])):it("",!0),n.element.TopElementList.List.length>0&&n.element.TopElementList.Direction==="Horizontal"?(U(),ue("tr",Gnn,[N("td",{valign:"top",align:ee(tp)({containerAlign:n.element.TopElementList.ContentAlign})},[N("table",Xnn,[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",Qnn,[Ce(Vu,{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,Ynn)])):it("",!0),n.element.BottomElementList.List.length>0&&n.element.BottomElementList.Direction==="Vertical"?(U(),ue("tr",Znn,[N("td",{valign:"bottom",align:ee(tp)({containerAlign:n.element.BottomElementList.ContentAlign})},[N("table",trn,[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",nrn,[Ce(Vu,{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,ern)])):it("",!0),n.element.BottomElementList.List.length>0&&n.element.BottomElementList.Direction==="Horizontal"?(U(),ue("tr",rrn,[N("td",{valign:"bottom",align:ee(tp)({containerAlign:n.element.BottomElementList.ContentAlign})},[N("table",irn,[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",srn,[Ce(Vu,{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,orn)])):it("",!0)])])],4)])])])):it("",!0)}}),Vu=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(tXt,{key:0,deps:n.deps,theme:n.theme,element:n.element.Button,context:n.context,class:Ve({"element-selected":ee(kC)(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(NYt,{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($Yt,{key:2,deps:n.deps,theme:n.theme,element:n.element.Image,context:n.context,path:[...n.path,"Image"],class:Ve({"element-selected":ee(kC)(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(jYt,{key:3,element:n.element.Spacer,theme:n.theme,class:Ve({"element-selected":ee(kC)(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(oXt,{key:4,deps:n.deps,theme:n.theme,element:n.element.SpanText,context:n.context,class:Ve({"element-selected":ee(kC)(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(Pnn,{key:5,deps:n.deps.richTextDeps,theme:n.theme,element:n.element.RichText,isSelected:ee(kC)(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(HYt,{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(AYt,{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(znn,{key:8,theme:n.theme,element:n.element.UnsubscribeLink,class:Ve({"element-selected":ee(kC)(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(arn,{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(kC)(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)]))}}),lrn=["align"],urn=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}){nm(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(DO)({borderCollapse:n.iteratedColumn.BorderCollapse})],{width:"100%","border-spacing":"0"}]),width:"100%"},[N("tbody",null,[N("tr",null,[N("td",{align:ee(tp)({containerAlign:n.iteratedColumn.ContainerAlign}),style:Be([[ee(Up)({border:n.iteratedColumn.Border,themeColors:n.theme.Colors}),{backgroundColor:ee(od)({color:n.iteratedColumn.BgColor,themeColors:n.theme.Colors})},ee(Rh)({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(Vu,{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,lrn)])])],4)],4))}}),crn=ht(urn,[["__scopeId","data-v-4bdaa248"]]),drn=["align"],hrn=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}){nm(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(DO)({borderCollapse:n.iteratedColumnN21.BorderCollapse})],{width:"100%","border-spacing":"0"}]),width:"100%"},[N("tbody",null,[N("tr",null,[N("td",{align:ee(tp)({containerAlign:n.iteratedColumnN21.ContainerAlign}),style:Be([[ee(Up)({border:n.iteratedColumnN21.Border,themeColors:n.theme.Colors}),{backgroundColor:ee(od)({color:n.iteratedColumnN21.BgColor,themeColors:n.theme.Colors})},ee(Rh)({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(Vu,{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,drn)])])],4)],4))}}),frn=ht(hrn,[["__scopeId","data-v-b46af162"]]),prn=["align"],mrn=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}){nm(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(DO)({borderCollapse:n.iteratedColumnN22.BorderCollapse})],{width:"100%","border-spacing":"0"}]),width:"100%"},[N("tbody",null,[N("tr",null,[N("td",{align:ee(tp)({containerAlign:n.iteratedColumnN22.ContainerAlign}),style:Be([[ee(Up)({border:n.iteratedColumnN22.Border,themeColors:n.theme.Colors}),{backgroundColor:ee(od)({color:n.iteratedColumnN22.BgColor,themeColors:n.theme.Colors})},ee(Rh)({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(Vu,{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,prn)])])],4)],4))}}),grn=ht(mrn,[["__scopeId","data-v-319c5209"]]),yrn={class:"iterated-column-container",style:{"border-spacing":"0","border-collapse":"collapse",width:"100%",margin:"0 auto"},width:"100%"},Crn={align:"center",style:{"font-size":"0"}},brn=pt({__name:"IteratedColumnBodyRow",props:{deps:{},theme:{},iteratedColumnBodyRow:{},path:{},selectedElementPath:{},context:{},rowWidth:{}},emits:["onElementClicked","onImageOriginalSizeAdjusted","onImageSizeAdjusted","onElementUpdatedEvent","onElementRemoved"],setup(t,{emit:e}){nm(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",yrn,[N("tbody",null,[N("tr",null,[N("td",Crn,[(U(!0),ue(xt,null,Kr(r.dataList,(c,d)=>(U(),ue(xt,{key:d},[s.iteratedColumn(n.iteratedColumnBodyRow.IteratedColumn)?(U(),kt(crn,{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(nV)({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(frn,{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(nV)({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(grn,{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(nV)({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))])])])]))}}),vrn=ht(brn,[["__scopeId","data-v-69ed8d34"]]),wrn={style:{"border-spacing":"0","border-collapse":"collapse",width:"100%",margin:"0 auto"}},xrn=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",wrn,[(U(!0),ue(xt,null,Kr(r.dataList,(a,l)=>(U(),ue("tr",{key:l},[N("td",{style:Be([ee(NO)({paddings:n.iteratedBodyRow.Paddings,themeComponentPaddings:n.theme.ComponentPaddings,themeBodyPaddings:n.theme.BodyPaddings})])},[Ce(hKe,{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))]))}}),krn=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()}}}),Trn=t=>krn(t).Match({Top:()=>"start",Middle:()=>"center",Bottom:()=>"end",Baseline:()=>"baseline"}),Srn=OF,Frn=t=>({JustifyWidth:{WidthInPixels:t}}),Ern=t=>({ShrinkToContentWidth:{WidthInPixels:t}}),Arn=CYt,_rn=["align"],Rrn=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}){nm(l=>({acad954c:a.value,v1971599c:s.value,v72b8524e:i.value}));const n=t,r=e,o=l=>{Srn(n.multipleColumn.Width).Match({JustifyWidth:()=>mJ.Some(Frn(l)),ShrinkToContentWidth:()=>mJ.Some(Ern(l)),WidthInPercents:()=>mJ.None}).map(u=>r("onColumnWidthAdjusted",{Path:n.path,Width:u}))},i=Q(()=>Arn(n.multipleColumn.Width).Match({default:()=>"",WidthInPercents:l=>l.Value*n.containerWidth+"px"})),s=Q(()=>Trn(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(DO)({borderCollapse:n.multipleColumn.BorderCollapse})]]),width:"100%"},[N("tbody",null,[N("tr",null,[N("td",{align:ee(tp)({containerAlign:n.multipleColumn.ContainerAlign}),style:Be([[ee(Up)({border:n.multipleColumn.Border,themeColors:n.theme.Colors}),ee(Rh)({borderRadius:n.multipleColumn.BorderRadius,borderRadiusCard:n.theme.BorderRadiusCard,bodyBorderRadius:n.theme.BorderRadius,borderButtonRadius:n.theme.BorderRadiusButton,borderBannerRadius:n.theme.BorderRadiusBanner}),{backgroundColor:ee(od)({color:n.multipleColumn.BgColor,themeColors:n.theme.Colors})},ee(NO)({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(Vu,{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,_rn)])])],4)],2)),[[ee(LL),c=>o(c.width)]])}}),Drn=ht(Rrn,[["__scopeId","data-v-bfa1869f"]]),Nrn=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}){nm(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(DO)({borderCollapse:n.multipleColumnBodyRow.BorderCollapse}),ee(Up)({border:n.multipleColumnBodyRow.Border,themeColors:n.theme.Colors}),ee(Rh)({borderRadius:n.multipleColumnBodyRow.BorderRadius,borderRadiusCard:n.theme.BorderRadiusCard,bodyBorderRadius:n.theme.BorderRadius,borderButtonRadius:n.theme.BorderRadiusButton,borderBannerRadius:n.theme.BorderRadiusBanner}),{backgroundColor:ee(od)({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(EYt)({containerAlign:n.multipleColumnBodyRow.ContainerAlign}),ee(NO)({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(Drn,{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(nV)({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))}}),Lrn=ht(Nrn,[["__scopeId","data-v-c6ebdc94"]]),Mrn=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(Vu,{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))}}),hKe=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(Lrn,{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(vrn,{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(xrn,{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(Mrn,{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)]))}}),Orn={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"},Brn={emptyEmailComponentText:"Товарная полка скрыта из-за недостатка товаров",emptyEmailComponentTooltip:"Товарная полка не будет отображаться у получателей письма пока в ней недостаточно товаров",requiredComponentNotification:"Без этого компонента письмо не будет отправлено"},OJ=Ir({en:Orn,ru:Brn}),Irn={},$rn={width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Prn(t,e){return U(),ue("svg",$rn,[...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 Vrn=ht(Irn,[["render",Prn]]),zrn={key:0},Hrn={key:0,class:"is-required-notification"},Wrn={class:"bootstrap-styles w-100 d-flex justify-content-center gap-5"},jrn=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:OJ({localeKey:n.deps.localeKey}).emptyEmailComponentText,emptyEmailComponentTooltip:OJ({localeKey:n.deps.localeKey}).emptyEmailComponentTooltip,requiredComponentNotification:OJ({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",zrn,[n.emailComponent.IsRequired?(U(),ue("div",Hrn,[N("i",null,[Ce(Vrn)]),N("span",null," "+er(o.requiredComponentNotification),1)])):it("",!0),r.ifResult?(U(),ue("table",{key:1,style:Be([[{backgroundColor:ee(od)({color:n.emailComponent.InnerBgColor,themeColors:n.theme.Colors})},ee(Rh)({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(rSe)({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(hKe,{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}])},[ZM(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(rSe)({paddings:n.emailComponent.Paddings,themeComponentPaddings:n.theme.ComponentPaddings,themeBodyPaddings:n.theme.BodyPaddings,fullWidth:n.emailComponent.FullWidth}),{backgroundColor:ee(od)({color:n.emailComponent.InnerBgColor,themeColors:n.theme.Colors})||"transparent"}])},[Ce(ee(CTe),{type:"text"}),N("div",Wrn,[(U(),ue(xt,null,Kr(3,u=>Ce(ee(CTe),{key:u,type:"image, text, text, text, button",style:{width:"100%"}})),64))])],4))}}),Urn=ht(jrn,[["__scopeId","data-v-5ef33b53"]]),Krn={class:"emailTemplate-border-top"},qrn={class:"emailTemplate-border-bottom"},Jrn=pt({__name:"TemplatePreview",props:{deps:{},template:{}},setup(t){nm(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",Krn,[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(Urn,{deps:e.deps.emailComponentDeps,theme:e.template.Theme,emailComponent:x,path:[],selectedElementPath:[]},null,8,["deps","theme","emailComponent"])]))),128)),N("div",qrn,[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))}}),fKe=ht(Jrn,[["__scopeId","data-v-9f2b7245"]]),Grn={class:"email-template-preview__inner-padding scrollable"},Yrn=pt({__name:"TemplatePreviewModalWindow",props:{template:{},deps:{}},emits:["templateSelected","close"],setup(t,{emit:e}){const n=t,r={title:yJ({localeKey:n.deps.localeKey}).title,applyButton:yJ({localeKey:n.deps.localeKey}).applyButton,cancelButton:yJ({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(A7e,{headerText:r.title,class:"email-component__preview-modal-window",onClose:a[3]||(a[3]=()=>i("close"))},{body:wy(()=>[N("div",{style:Be({backgroundColor:t.template.Theme.Colors.EmailBackgroundColor})},[Ce(E7e,{onScaledElement:a[0]||(a[0]=l=>o(l))},{default:wy(()=>[N("div",Grn,[Ce(fKe,{deps:t.deps.templatePreviewDeps,template:t.template},null,8,["deps","template"])])]),_:1})],4)]),"footer-actions":wy(()=>[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"]))}}),Xrn=ht(Yrn,[["__scopeId","data-v-daf17623"]]),Qrn={class:"favorite-template-select__item-wrapper"},Zrn={class:"favorite-template-select__item bootstrap-styles border rounded-3"},eon={class:"email-template-preview__inner-padding scrollable"},ton=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",Qrn,[N("div",Zrn,[N("div",{class:"bootstrap-styles h-100",style:Be({backgroundColor:n.template.Theme.Colors.EmailBackgroundColor}),onClick:a[1]||(a[1]=()=>{r.isPreviewComponentModalWindowShown=!0})},[Ce(E7e,{onScaledElement:a[0]||(a[0]=l=>o(l))},{default:wy(()=>[N("div",eon,[Ce(fKe,{deps:n.deps.templatePreviewDeps,template:n.template},null,8,["deps","template"])])]),_:1})],4),(U(),kt(wPe,{to:"body",defer:""},[r.isPreviewComponentModalWindowShown?(U(),kt(Xrn,{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)]))}}),non=ht(ton,[["__scopeId","data-v-c8eb839e"]]),ron={class:"template-selector__list"},oon={class:"bootstrap-styles mb-3"},ion=pt({__name:"TemplatePreviewCardList",props:{templatesPreviewCard:{},deps:{}},emits:["templateSelected"],setup(t,{emit:e}){const n=t,r={newTemplate:QP({localeKey:n.deps.localeKey}).newTemplate},o=e;return(i,s)=>(U(),ue("div",ron,[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",oon,[Ce(C7t)]),ZM(" "+er(r.newTemplate),1)]),(U(!0),ue(xt,null,Kr(n.templatesPreviewCard,a=>(U(),ue("div",null,[Ce(non,{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))]))}}),wSe=ht(ion,[["__scopeId","data-v-f5d903f5"]]),son={class:"template-gallery bootstrap-styles d-flex flex-column bg-white justify-content-start align-items-center"},aon={class:"icon-hover-stroke-black"},lon={class:"bootstrap-styles mb-11"},uon={class:"bootstrap-styles template-gallery__tab-list mb-13"},con=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:QP({localeKey:n.deps.localeKey}).title,customFavoritesButton:QP({localeKey:n.deps.localeKey}).customFavoritesButton,commonFavoritesButton:QP({localeKey:n.deps.localeKey}).defaultFavoritesButton},i=Xt({activeTab:r}),s={custom:o.customFavoritesButton,common:o.commonFavoritesButton},a=e;return(l,u)=>(U(),ue("div",son,[N("button",{class:"template-gallery__close",onClick:u[0]||(u[0]=c=>a("close"))},[N("i",aon,[Ce(a7t)])]),N("h2",lon,er(o.title),1),N("div",uon,[Ce(p7t,{initialTab:ee(r),tabList:s,onOnTabClicked:u[1]||(u[1]=c=>i.activeTab=c)},null,8,["initialTab"])]),_n(Ce(wSe,{deps:n.deps.templatePreviewCardListDeps,templatesPreviewCard:n.customFavoriteTemplates,onTemplateSelected:u[2]||(u[2]=c=>a("templateSelected",c))},null,8,["deps","templatesPreviewCard"]),[[jZ,i.activeTab==="custom"]]),_n(Ce(wSe,{deps:n.deps.templatePreviewCardListDeps,templatesPreviewCard:n.commonFavoriteTemplates,onTemplateSelected:u[3]||(u[3]=c=>a("templateSelected",c))},null,8,["deps","templatesPreviewCard"]),[[jZ,i.activeTab==="common"]])]))}}),don=ht(con,[["__scopeId","data-v-8e5250cb"]]),hon=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},fon={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:{}}}}]}}]}}}]}}]}]},pon={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:pKe,setPrototypeOf:xSe,isFrozen:mon,getPrototypeOf:gon,getOwnPropertyDescriptor:yon}=Object;let{freeze:ra,seal:ac,create:$ne}=Object,{apply:Pne,construct:Vne}=typeof Reflect<"u"&&Reflect;ra||(ra=function(t){return t});ac||(ac=function(t){return t});Pne||(Pne=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)});Vne||(Vne=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 XI=oa(Array.prototype.forEach),Con=oa(Array.prototype.lastIndexOf),kSe=oa(Array.prototype.pop),XE=oa(Array.prototype.push),bon=oa(Array.prototype.splice),oV=oa(String.prototype.toLowerCase),BJ=oa(String.prototype.toString),IJ=oa(String.prototype.match),QE=oa(String.prototype.replace),von=oa(String.prototype.indexOf),won=oa(String.prototype.trim),$c=oa(Object.prototype.hasOwnProperty),Zi=oa(RegExp.prototype.test),ZE=xon(TypeError);function oa(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 Pne(t,e,r)}}function xon(t){return function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return Vne(t,n)}}function wn(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:oV;xSe&&xSe(t,null);let r=e.length;for(;r--;){let o=e[r];if(typeof o=="string"){const i=n(o);i!==o&&(mon(e)||(e[r]=i),o=i)}t[o]=!0}return t}function kon(t){for(let e=0;e<t.length;e++)$c(t,e)||(t[e]=null);return t}function Md(t){const e=$ne(null);for(const[n,r]of pKe(t))$c(t,n)&&(Array.isArray(r)?e[n]=kon(r):r&&typeof r=="object"&&r.constructor===Object?e[n]=Md(r):e[n]=r);return e}function eA(t,e){for(;t!==null;){const r=yon(t,e);if(r){if(r.get)return oa(r.get);if(typeof r.value=="function")return oa(r.value)}t=gon(t)}function n(){return null}return n}const TSe=ra(["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"]),$J=ra(["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"]),PJ=ra(["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"]),Ton=ra(["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"]),VJ=ra(["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"]),Son=ra(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),SSe=ra(["#text"]),FSe=ra(["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"]),zJ=ra(["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"]),ESe=ra(["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"]),QI=ra(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Fon=ac(/\{\{[\w\W]*|[\w\W]*\}\}/gm),Eon=ac(/<%[\w\W]*|[\w\W]*%>/gm),Aon=ac(/\$\{[\w\W]*/gm),_on=ac(/^data-[\-\w.\u00B7-\uFFFF]+$/),Ron=ac(/^aria-[\-\w]+$/),mKe=ac(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Don=ac(/^(?:\w+script|data):/i),Non=ac(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),gKe=ac(/^html$/i),Lon=ac(/^[a-z][.\w]*(-[.\w]+)+$/i);var ASe=Object.freeze({__proto__:null,ARIA_ATTR:Ron,ATTR_WHITESPACE:Non,CUSTOM_ELEMENT:Lon,DATA_ATTR:_on,DOCTYPE_NAME:gKe,ERB_EXPR:Eon,IS_ALLOWED_URI:mKe,IS_SCRIPT_OR_DATA:Don,MUSTACHE_EXPR:Fon,TMPLIT_EXPR:Aon});const tA={element:1,text:3,progressingInstruction:7,comment:8,document:9},Mon=function(){return typeof window>"u"?null:window},Oon=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}},_Se=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function yKe(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Mon();const e=y=>yKe(y);if(e.version="3.3.1",e.removed=[],!t||!t.document||t.document.nodeType!==tA.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=eA(p,"cloneNode"),g=eA(p,"remove"),C=eA(p,"nextSibling"),b=eA(p,"childNodes"),v=eA(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=_Se();e.isSupported=typeof pKe=="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}=ASe;let{IS_ALLOWED_URI:se}=ASe,L=null;const oe=wn({},[...TSe,...$J,...PJ,...VJ,...SSe]);let $=null;const X=wn({},[...FSe,...zJ,...ESe,...QI]);let M=Object.seal($ne(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($ne(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 ai=wn({},[Bt,zt,Te],BJ);let Gt=wn({},["mi","mo","mn","ms","mtext"]),Yt=wn({},["annotation-xml"]);const li=wn({},["title","style","font","a","script"]);let St=null;const ui=["application/xhtml+xml","text/html"],ci="text/html";let Z=null,wt=null;const di=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=Md(y),St=ui.indexOf(y.PARSER_MEDIA_TYPE)===-1?ci:y.PARSER_MEDIA_TYPE,Z=St==="application/xhtml+xml"?BJ:oV,L=$c(y,"ALLOWED_TAGS")?wn({},y.ALLOWED_TAGS,Z):oe,$=$c(y,"ALLOWED_ATTR")?wn({},y.ALLOWED_ATTR,Z):X,gn=$c(y,"ALLOWED_NAMESPACES")?wn({},y.ALLOWED_NAMESPACES,BJ):ai,Ht=$c(y,"ADD_URI_SAFE_ATTR")?wn(Md(Rn),y.ADD_URI_SAFE_ATTR,Z):Rn,en=$c(y,"ADD_DATA_URI_TAGS")?wn(Md(tn),y.ADD_DATA_URI_TAGS,Z):tn,le=$c(y,"FORBID_CONTENTS")?wn({},y.FORBID_CONTENTS,Z):Ye,fe=$c(y,"FORBID_TAGS")?wn({},y.FORBID_TAGS,Z):Md({}),de=$c(y,"FORBID_ATTR")?wn({},y.FORBID_ATTR,Z):Md({}),ye=$c(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||mKe,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({},SSe),$=[],ye.html===!0&&(wn(L,TSe),wn($,FSe)),ye.svg===!0&&(wn(L,$J),wn($,zJ),wn($,QI)),ye.svgFilters===!0&&(wn(L,PJ),wn($,zJ),wn($,QI)),ye.mathMl===!0&&(wn(L,VJ),wn($,ESe),wn($,QI))),y.ADD_TAGS&&(typeof y.ADD_TAGS=="function"?J.tagCheck=y.ADD_TAGS:(L===oe&&(L=Md(L)),wn(L,y.ADD_TAGS,Z))),y.ADD_ATTR&&(typeof y.ADD_ATTR=="function"?J.attributeCheck=y.ADD_ATTR:($===X&&($=Md($)),wn($,y.ADD_ATTR,Z))),y.ADD_URI_SAFE_ATTR&&wn(Ht,y.ADD_URI_SAFE_ATTR,Z),y.FORBID_CONTENTS&&(le===Ye&&(le=Md(le)),wn(le,y.FORBID_CONTENTS,Z)),y.ADD_FORBID_CONTENTS&&(le===Ye&&(le=Md(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 ZE('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof y.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw ZE('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');w=y.TRUSTED_TYPES_POLICY,x=w.createHTML("")}else w===void 0&&(w=Oon(f,o)),w!==null&&typeof x=="string"&&(x=w.createHTML(""));ra&&ra(y),wt=y}},mr=wn({},[...$J,...PJ,...Ton]),gr=wn({},[...VJ,...Son]),hi=function(y){let k=v(y);(!k||!k.tagName)&&(k={namespaceURI:ot,tagName:"template"});const T=oV(y.tagName),O=oV(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]&&(li[T]||!mr[T]):!!(St==="application/xhtml+xml"&&gn[y.namespaceURI]):!1},rt=function(y){XE(e.removed,{element:y});try{v(y).removeChild(y)}catch{g(y)}},st=function(y,k){try{XE(e.removed,{attribute:k.getAttributeNode(y),from:k})}catch{XE(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=IJ(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){XI(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)&&Zi(/<[/\w!]/g,y.innerHTML)&&Zi(/<[/\w!]/g,y.textContent)||y.nodeType===tA.progressingInstruction||G&&y.nodeType===tA.comment&&Zi(/<[/\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&&Zi(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&&!hi(y)||(T==="noscript"||T==="noembed"||T==="noframes")&&Zi(/<\/no(script|embed|frames)/i,y.innerHTML)?(rt(y),!0):(V&&y.nodeType===tA.text&&(k=y.textContent,XI([A,B,I],O=>{k=QE(k,O," ")}),y.textContent!==k&&(XE(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 di))return!1;if(!(ct&&!de[k]&&Zi(W,k))&&!(ft&&Zi(P,k))&&!(J.attributeCheck instanceof Function&&J.attributeCheck(k,y))){if(!$[k]||de[k]){if(!(xr(y)&&(M.tagNameCheck instanceof RegExp&&Zi(M.tagNameCheck,y)||M.tagNameCheck instanceof Function&&M.tagNameCheck(y))&&(M.attributeNameCheck instanceof RegExp&&Zi(M.attributeNameCheck,k)||M.attributeNameCheck instanceof Function&&M.attributeNameCheck(k,y))||k==="is"&&M.allowCustomizedBuiltInElements&&(M.tagNameCheck instanceof RegExp&&Zi(M.tagNameCheck,T)||M.tagNameCheck instanceof Function&&M.tagNameCheck(T))))return!1}else if(!Ht[k]&&!Zi(se,QE(T,pe,""))&&!((k==="src"||k==="xlink:href"||k==="href")&&y!=="script"&&von(T,"data:")===0&&en[y])&&!(dt&&!Zi(H,QE(T,pe,"")))&&T)return!1}return!0},xr=function(y){return y!=="annotation-xml"&&IJ(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:won(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&&Zi(/((--!?|])>)|<\/(style|title|textarea)/i,ce)){st(K,y);continue}if(xe==="attributename"&&IJ(ce,"href")){st(K,y);continue}if(T.forceKeepAttr)continue;if(!T.keepAttr){st(K,y);continue}if(!z&&Zi(/\/>/i,ce)){st(K,y);continue}V&&XI([A,B,I],Oo=>{ce=QE(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):kSe(e.removed)}catch{st(K,y)}}Xe(E.afterSanitizeAttributes,y,null)},fi=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 ZE("dirty is not a string, aborting")}else throw ZE("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 ZE("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===tA.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&&fi(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&&Zi(gKe,T.ownerDocument.doctype.name)&&(we="<!DOCTYPE "+T.ownerDocument.doctype.name+`>
|
|
239
|
+
`}),Up=t=>({borderTop:YI(t.border.Top,t.themeColors),borderRight:YI(t.border.Right,t.themeColors),borderBottom:YI(t.border.Bottom,t.themeColors),borderLeft:YI(t.border.Left,t.themeColors)}),DO=t=>t.borderCollapse!==void 0?{borderCollapse:SYt(t.borderCollapse)}:{borderCollapse:"collapse"},SYt=t=>{switch(t){case"Collapse":return"collapse";case"Separate":return"separate";default:return cu(t)}},FYt=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 cu(t.Discriminator)}}}),od=t=>FYt(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}),H8e=t=>({Match:e=>{switch(t){case"Left":return e.Left();case"Center":return e.Center();case"Right":return e.Right();default:return cu(t)}}}),EYt=t=>t.containerAlign?H8e(t.containerAlign).Match({Left:()=>({textAlign:"left"}),Center:()=>({textAlign:"center"}),Right:()=>({textAlign:"right"})}):{},tp=t=>t.containerAlign?H8e(t.containerAlign).Match({Left:()=>"left",Center:()=>"center",Right:()=>"right"}):"center",AYt=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(Vu,{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))}}),NO=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"}),_Yt=OF,RYt=t=>_Yt(t.width).Match({Auto:()=>"initial",Pixel:e=>e.Value+"px",Percentage:e=>e.Value+"%"}),DYt=["align"],NYt=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(RYt)({width:n.element.Width})}])},[N("tbody",null,[N("tr",null,[N("td",{align:ee(tp)({containerAlign:n.element.ContainerAlign}),style:Be([ee(NO)({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(od)({color:n.element.BackgroundColor,themeColors:n.theme.Colors})??"inherit"},ee(Up)({border:n.element.Border,themeColors:n.theme.Colors}),ee(Rh)({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(Vu,{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,DYt)])])],4))}}),LYt=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()}}}),OL=t=>LYt(t.contentAlign).Match({Left:()=>({display:"block",textAlign:"left"}),Center:()=>({display:"block",textAlign:"center"}),Right:()=>({display:"block",textAlign:"right"}),Inline:()=>({})}),MYt=["href"],OYt=["src","alt"],BYt=["src","alt"],IYt=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(OL)({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(Rh)({borderRadius:r.element.BorderRadius,borderRadiusCard:r.theme.BorderRadiusCard,bodyBorderRadius:r.theme.BorderRadius,borderButtonRadius:r.theme.BorderRadiusButton,borderBannerRadius:r.theme.BorderRadiusBanner}),ee(Up)({border:r.element.Border,themeColors:r.theme.Colors}),{width:i.value,maxWidth:"100%"},{verticalAlign:r.element.VerticalAlign}]),onLoad:n},null,46,OYt)),[[ee(LL),({width:d,height:h})=>l("onImageSizeAdjusted",{Path:r.path,AdjustedHeight:h,AdjustedWidth:d})]]):it("",!0)],12,MYt)):(U(),ue("span",{key:1,style:Be([ee(OL)({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(Rh)({borderRadius:r.element.BorderRadius,borderRadiusCard:r.theme.BorderRadiusCard,bodyBorderRadius:r.theme.BorderRadius,borderButtonRadius:r.theme.BorderRadiusButton,borderBannerRadius:r.theme.BorderRadiusBanner}),ee(Up)({border:r.element.Border,themeColors:r.theme.Colors}),{width:i.value,maxWidth:"100%"},{verticalAlign:r.element.VerticalAlign}]),onLoad:n},null,46,BYt)),[[ee(LL),({width:d,height:h})=>l("onImageSizeAdjusted",{Path:r.path,AdjustedHeight:h,AdjustedWidth:d})]]):it("",!0)],4))}}),$Yt=ht(IYt,[["__scopeId","data-v-eaaeacec"]]),PYt=OF,VYt=t=>t.width===void 0?{}:PYt(t.width).Match({Auto:()=>({width:"auto"}),Pixel:e=>({width:e.Value+"px"}),Percentage:e=>({width:e.Value+"%"})}),zYt=t=>{switch(t){case"Auto":return{width:"auto"};case"FullWidth":return{width:"100%"};default:return cu(t)}},HYt=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(zYt)(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(NO)({paddings:n.element.ItemPaddings,themeComponentPaddings:n.theme.ComponentPaddings,themeBodyPaddings:n.theme.BodyPaddings}),ee(VYt)({width:n.element.ItemWidth}),{lineHeight:"normal"}])},[(U(),kt(Vu,{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))}}),WYt={style:{"border-spacing":"0","border-collapse":"collapse",width:"100%"}},jYt=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",WYt,[N("tbody",null,[N("tr",null,[N("td",{style:Be([[{borderTop:n.element.Weight+"px",borderStyle:n.element.Weight>0?"solid":"none",borderColor:ee(od)({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)])])]))}}),Bne={beforeMount(t,e){t.innerHTML=gxe.sanitize(e.value)},beforeUpdate(t,e){t.innerHTML=gxe.sanitize(e.value)}},UYt=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)}}}),H9=t=>UYt(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}),KYt=t=>({Match:e=>{switch(t){case"None":return e.None();case"Underline":return e.Underline();case"LineThrough":return e.LineThrough()}}}),Sde=t=>KYt(t.textDecoration).Match({None:()=>"none",Underline:()=>"underline",LineThrough:()=>"line-through"}),W8e=t=>({fontSize:t.customFontSettings.FontSize,lineHeight:t.customFontSettings.LineHeight,fontWeight:t.customFontSettings.IsBold?"bold":"normal",fontStyle:t.customFontSettings.IsItalic?"italic":"normal",textDecoration:Sde({textDecoration:t.customFontSettings.Decoration}),fontFamily:t.customFontSettings.FontFamily,color:H9({fontColor:t.customFontSettings.FontColor,themeColors:t.themeColors})}),j8e=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 cu(t.Discriminator)}}}),qYt=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)}}}),JYt=t=>qYt(t.fontStyleColor).Match({FontStyle:()=>j8e(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=>od({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}),U8e=["Arial","Georgia","Tahoma","TimesNewRoman","Verdana"],Ine={Arial:"Arial",Georgia:"Georgia",Tahoma:"Tahoma",TimesNewRoman:"Times New Roman",Verdana:"Verdana"},Fde=t=>({fontSize:t.fontSize+"px",lineHeight:t.lineHeight+"px",fontWeight:t.fontWeight,fontStyle:t.fontStyle,fontFamily:Ine[t.fontFamily],textDecoration:t.textDecoration,color:t.color}),Ede=t=>{const e=n=>({fontSize:n.FontSize,lineHeight:n.LineHeight,fontWeight:n.IsBold?"bold":"normal",fontStyle:n.IsItalic?"italic":"normal",fontFamily:t.fontFamily,textDecoration:Sde({textDecoration:n.Decoration}),color:JYt({fontStyleColor:t.fontStyle.FontColor,fontStyle:t.fontStyle,themeColors:t.themeColors})});return j8e(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=>W8e({customFontSettings:n,themeColors:t.themeColors})})},GYt=t=>({Match:e=>{switch(t.Discriminator){case"Theme":return e.Theme();case"Custom":return e.Custom(t.CustomValue);default:return cu(t.Discriminator)}}}),YYt=t=>GYt(t.buttonPaddings).Match({Theme:()=>({TopBottom:t.themeButtonPaddings.TopBottom,LeftRight:t.themeButtonPaddings.LeftRight}),Custom:e=>({TopBottom:e.TopBottom,LeftRight:e.LeftRight})}),K8e=t=>t.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'"),XYt=["align"],QYt={class:"Button"},ZYt=["href"],eXt=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(()=>Fde(Ede({fontFamily:n.theme.FontFamily,fontStyle:n.element.TextStyle,themeDefinedFontSettings:n.theme.FontSettingsPresets,themeColors:n.theme.Colors}))),o=Q(()=>rV({borderColor:n.element.Border.Left.Color,themeColors:n.theme.Colors})),i=Q(()=>YYt({buttonPaddings:n.element.Paddings,themeButtonPaddings:n.theme.ButtonPaddings})),s=Q(()=>od({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=K8e(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",QYt,[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(Rh)({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(Up)({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(Bne),l.text]])],4)])])],4)],12,ZYt)])],8,XYt)])])]))}}),tXt=ht(eXt,[["__scopeId","data-v-0c0a0e61"]]),nXt=["href"],rXt=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=Ede({fontFamily:n.theme.FontFamily,fontStyle:n.element.Style,themeDefinedFontSettings:n.theme.FontSettingsPresets,themeColors:n.theme.Colors});if(n.element.Style.Discriminator==="Custom"){const u=W8e({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=K8e(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(OL)({contentAlign:n.element.ContentAlign})]]),onClick:u[0]||(u[0]=Po(()=>a("onElementClicked"),["prevent"]))},null,14,nXt)),[[ee(Bne),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(OL)({contentAlign:n.element.ContentAlign})]]),onClick:u[1]||(u[1]=Po(()=>a("onElementClicked"),["prevent"]))},null,6)),[[ee(Bne),i.text]])}}),oXt=ht(rXt,[["__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:Sde({textDecoration:t.themeFontSettings.Decoration}),color:t.themeColor}),iXt={cancelButton:"Cancel",applyButton:"Delete"},sXt={cancelButton:"Отмена",applyButton:"Удалить"},oSe=Ir({en:iXt,ru:sXt}),aXt={class:"bootstrap-styles px-11 py-7 text-start"},lXt=pt({__name:"RemoveConfirmModalWindow",props:{headerText:{},deps:{}},emits:["cancel","confirmed"],setup(t,{emit:e}){const n=t,r=()=>{i("cancel")},o={cancelButton:oSe({localeKey:n.deps.localeKey}).cancelButton,applyButton:oSe({localeKey:n.deps.localeKey}).applyButton},i=e;return(s,a)=>(U(),kt(A7e,{headerText:n.headerText,class:"remove-element-confirm-modal-window",onClose:a[2]||(a[2]=()=>r())},{body:wy(()=>[N("div",aXt,[L3(s.$slots,"body-content")])]),"footer-actions":wy(()=>[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"]))}}),uXt={removeWindowTitle:"Delete element",removeWindowDescription:"Are you sure you want to delete the text element?"},cXt={removeWindowTitle:"Удаление элемента",removeWindowDescription:"Вы действительно хотите удалить элемент ?"},iSe=Ir({en:uXt,ru:cXt}),sSe=t=>({type:"doc",content:t.Content.map(dXt)}),dXt=t=>"ParagraphNode"in t?G8e(t):"BulletListNode"in t?hXt(t):"OrderedListNode"in t?fXt(t):"DataFieldNode"in t?J8e(t):cu(t),q8e=t=>({type:"listItem",content:t.Content.map(e=>"ParagraphNode"in e?G8e(e):"ImageNode"in e?Y8e(e):cu(e))}),J8e=t=>({type:"dataField",marks:Ade({textStyle:t.DataFieldNode.TextStyle,commonLinkMark:t.DataFieldNode.CommonLinkMark}),attrs:{stringExpression:t.DataFieldNode.StringExpression}}),hXt=t=>({type:"bulletList",content:t.BulletListNode.Content.map(q8e),attrs:{themeName:t.BulletListNode.ListStyle}}),fXt=t=>({type:"orderedList",content:t.OrderedListNode.Content.map(q8e),attrs:{themeName:t.OrderedListNode.ListStyle}}),G8e=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(pXt)}},pXt=t=>"TextNode"in t?mXt(t):"HardBreakNode"in t?xXt():"ImageNode"in t?Y8e(t):"DataFieldNode"in t?J8e(t):cu(t),Ade=t=>{const e=[];return t.textStyle&&e.push(vXt(t.textStyle)),t.commonLinkMark&&e.push(wXt(t.commonLinkMark)),e.filter(n=>n!==void 0)},mXt=t=>({type:"text",text:t.TextNode.Text,marks:Ade({textStyle:t.TextNode.TextStyle,commonLinkMark:t.TextNode.CommonLinkMark})}),gXt=t=>{switch(t){case"Normal":return"normal";case"Bold":return"bold";default:return"normal"}},yXt=t=>{switch(t){case"Normal":return"normal";case"Italic":return"italic";default:return"normal"}},CXt=t=>{switch(t){case"None":return"none";case"Uppercase":return"uppercase";default:return"none"}},bXt=t=>{switch(t){case"None":return"none";case"Underline":return"underline";case"LineThrough":return"line-through";default:return"none"}},vXt=t=>({type:"textStyle",attrs:{themeName:t.ThemeName,color:t.Style.Color,fontWeight:t.Style.FontWeight?gXt(t.Style.FontWeight):void 0,fontStyle:t.Style.FontStyle?yXt(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?CXt(t.Style.TextTransform):void 0,textDecoration:t.Style.TextDecoration?bXt(t.Style.TextDecoration):void 0}}),wXt=t=>OF(t).Match({LinkMark:e=>kXt({LinkMark:e}),UnsubscribeLinkMark:()=>TXt()}),xXt=()=>({type:"hardBreak"}),Y8e=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:Ade({commonLinkMark:t.ImageNode.CommonLinkMark})}),kXt=t=>({type:"link",attrs:{href:t.LinkMark.Href}}),TXt=()=>({type:"unsubscribeLink"}),X8e=Jh.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})}}}}),SXt=Jh.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()}}}),FXt=Jh.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()}}}),EXt=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}})]}}),AXt=Jh.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})}}}}),_Xt=Jh.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})}}}}),_de=Jh.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",na(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()}}}}),RXt=Jh.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})}}}}),DXt=t=>{if(!t.content)throw new Error("Invalid document: content is missing");return{Content:t.content.map(e=>{switch(e.type){case"paragraph":return Q8e(e);case"bulletList":return MXt(e);case"orderedList":return OXt(e);default:throw new Error(`Unknown node type: ${e.type}`)}})}},Q8e=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 NXt(e);case"image":return eKe(e);case"hardBreak":return aSe();case"dataField":return LXt(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:[aSe()]}},Rde=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?zXt(e):void 0,CommonLinkMark:n?HXt(n):void 0}},NXt=t=>{if(typeof t.text!="string")throw new Error("Invalid text node: text is missing or not a string");const{TextStyle:e,CommonLinkMark:n}=Rde(t.marks);return{TextNode:{Text:t.text,TextStyle:e,CommonLinkMark:n}}},aSe=()=>({HardBreakNode:{}}),LXt=t=>{if(!t.attrs)throw new Error("Invalid variable node: attrs is missing");const{TextStyle:e,CommonLinkMark:n}=Rde(t.marks);return{DataFieldNode:{StringExpression:t.attrs.stringExpression,TextStyle:e,CommonLinkMark:n}}},MXt=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(Z8e)}}},OXt=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(Z8e)}}},Z8e=t=>{if(!t.content)throw new Error("Invalid listItem: content is missing");return{Content:t.content.map(e=>{switch(e.type){case"paragraph":return Q8e(e);case"image":return eKe(e);default:throw new Error(`Unknown node type: ${e.type}`)}})}},eKe=t=>{if(!t.attrs)throw new Error("Invalid image node: attrs is missing");const{CommonLinkMark:e}=Rde(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}}},BXt=t=>t==="bold"?"Bold":"Normal",IXt=t=>t==="italic"?"Italic":"Normal",$Xt=t=>t,PXt=t=>{switch(t){case"uppercase":return"Uppercase";default:return"None"}},VXt=t=>{switch(t){case"underline":return"Underline";case"line-through":return"LineThrough";default:return"None"}},lSe=t=>{const e=t.replace(/px$/,"");return parseInt(e,10)},zXt=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?BXt(t.attrs.fontWeight):void 0,FontStyle:t.attrs.fontStyle?IXt(t.attrs.fontStyle):void 0,FontSize:t.attrs.fontSize?lSe(t.attrs.fontSize):void 0,LineHeight:t.attrs.lineHeight?lSe(t.attrs.lineHeight):void 0,FontFamily:t.attrs.fontFamily?$Xt(t.attrs.fontFamily):void 0,TextTransform:t.attrs.textTransform?PXt(t.attrs.textTransform):void 0,TextDecoration:t.attrs.textDecoration?VXt(t.attrs.textDecoration):void 0}}},HXt=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}},tKe=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),tKe(r)}const e=document.createElement("canvas").getContext("2d");return e?(e.fillStyle=t,e.fillStyle):null},WXt=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=tKe(e.style.color)??"#000000";return{Discriminator:n,CustomValue:r}},renderHTML:e=>{if(!e.color)return{};const n=H9({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()}}}),jXt=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 U8e.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()}}}),UXt=t=>OF(t),KXt=t=>md.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=UXt(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",na(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()}}}}),nKe=t=>new Promise((e,n)=>{const r=new Image;r.onload=()=>{e({width:r.naturalWidth,height:r.naturalHeight})},r.onerror=n,r.src=t}),rKe=md.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",na(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[Y4t({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)&&nKe(i).then(l=>{const u=e.tr.setNodeMarkup(o,void 0,{...r.attrs,width:l.width,height:l.height});n(u)})}})})(),{})})]}}),qXt=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}}}}),JXt=t=>[I6t,kUt,B6t,A9.configure({mergeNestedSpanStyles:!0}),lUt,KXt({dataSourceFieldNameDelegate:t.dataSourceFieldNameDelegate}),O6t.configure({className:"has-focus",mode:"all"}),Gce.configure({keepMarks:!0,keepAttributes:!0}),Xce.configure({keepMarks:!0,keepAttributes:!0}),n7e,xUt.configure({HTMLAttributes:{class:"hard-break"}}),Jce.configure({HTMLAttributes:{class:"rich-text__link"},openOnClick:!1}),rKe.configure({inline:!0,HTMLAttributes:{class:"rich-text__image"}}),WXt({themeColors:t.themeColors}),EXt(t.initialThemeName),AXt,_Xt,SXt,FXt,X8e,RXt,_de,jXt,qXt({fallbackContentAlign:t.fallbackContentAlign})],GXt=t=>DXt(t.editor.getJSON()),YXt=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),ZM(" "+er(n.label),1)])],2))}}),XXt={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"}},QXt={colorLabels:{none:"Нет",styleLinkedColor:"Связать со стилем",emailBackgroundColor:"Фон письма",bodyColor:"Тело письма",primaryColor:"Основной цвет",secondaryColor:"Вторичный цвет",primaryTextColor:"Текст на основном цвете",secondaryTextColor:"Текст на вторичном цвете",cardBackgroundColor:"Цвет карточек товара",buttonTextColor:"Кнопки",titleColor:"Большой заголовок",headingColor:"Заголовок",subHeadingColor:"Подзаголовок",largeTextColor:"Большой текст",normalTextColor:"Текст",descriptionTextColor:"Описание",linkColor:"Ссылка",custom:"Пользовательский"}},ZXt=Ir({en:XXt,ru:QXt}),oKe=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 cu(t)}}}),W9=t=>oKe(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}),LO=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:W9({themeName:s,themeFontColors:r})});return String(a[t.styleName])},iKe=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:W9({themeName:s,themeFontColors:r})});return{Discriminator:oKe(s).Match({whenHeading:()=>"HeadingColor",whenTitle:()=>"TitleColor",whenSubHeading:()=>"SubHeadingColor",whenLargeText:()=>"LargeTextColor",whenNormalText:()=>"NormalTextColor",whenDescriptionText:()=>"DescriptionTextColor",whenLink:()=>"LinkColor",whenButton:()=>"ButtonTextColor"}),CustomValue:a.color}},eQt={class:"color-picker bootstrap-styles border rounded bg-white"},tQt={class:"bootstrap-styles mb-5 bg-white"},nQt=["value"],rQt=["value"],oQt=pt({__name:"ColorPickerModalWindow",props:{editor:{},theme:{},deps:{}},emits:["onColorChanged","onColorPickerClosed"],setup(t,{emit:e}){nm(h=>({v7ba43684:i.color}));const n=t,r={colorLabels:ZXt({localeKey:n.deps.localeKey}).colorLabels},o=Q(()=>H9({fontColor:iKe({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=Y3t(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",eQt,[N("li",tQt,[Ce(ee(Z9t),{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,nQt),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,rQt)],2)]),(U(),ue(xt,null,Kr(a,p=>Ce(YXt,{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(om),()=>d("onColorPickerClosed")]])}}),iQt=ht(oQt,[["__scopeId","data-v-0519b5d6"]]),sQt={tooltip:"Text color"},aQt={tooltip:"Цвет текста"},lQt=Ir({en:sQt,ru:aQt}),uQt=["value"],cQt=pt({__name:"ColorPicker",props:{editor:{},theme:{},isAllowToEdit:{type:Boolean},deps:{}},setup(t){const e=t,n={tooltip:lQt({localeKey:e.deps.localeKey}).tooltip},r=Xt({isColorPickerDropdownShown:!1}),o=Wn(),i=Wn(),{floatingStyles:s}=N6e(i,o,{whileElementsMounted:_6e,placement:"bottom",middleware:[R6e(({rects:l})=>({alignmentAxis:-l.floating.width/2-l.floating.width/2,mainAxis:15}))]}),a=Q(()=>H9({fontColor:iKe({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,uQt)),[[ee(Mo),{title:n.tooltip,placement:"top"}]]),r.isColorPickerDropdownShown?(U(),kt(iQt,{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))}}),dQt=ht(cQt,[["__scopeId","data-v-6624477a"]]),hQt={},fQt={xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"};function pQt(t,e){return U(),ue("svg",fQt,[...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 sKe=ht(hQt,[["render",pQt]]),mQt={tooltip:"Font family"},gQt={tooltip:"Шрифт"},yQt=Ir({en:mQt,ru:gQt}),CQt={class:"bootstrap-styles dropdown"},bQt={class:"bootstrap-styles me-14 overflow-hidden rich-text-toolbar__font-family-btn__text"},vQt={class:"bootstrap-styles d-flex justify-content-center align-items-center"},wQt=["onClick"],xQt=pt({__name:"FontFamilySelector",props:{editor:{},isAllowToEdit:{type:Boolean},theme:{},deps:{}},setup(t){const e=t,n={tooltip:yQt({localeKey:e.deps.localeKey}).tooltip},r=A9.name,o=Xt({isOpened:!1}),i=Q(()=>LO({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",CQt,[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",bQt,er(ee(Ine)[i.value]),1),N("i",vQt,[Ce(sKe)])],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(U8e),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(Ine)[u]),5)],10,wQt))),128))],2)])),[[ee(om),()=>o.isOpened=!1],[ee(Mo),{title:n.tooltip,placement:"top"}]])}}),kQt=ht(xQt,[["__scopeId","data-v-cc496278"]]),TQt={},SQt={xmlns:"http://www.w3.org/2000/svg",width:"8",height:"8",viewBox:"0 0 8 8",fill:"none"};function FQt(t,e){return U(),ue("svg",SQt,[...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 aKe=ht(TQt,[["render",FQt],["__scopeId","data-v-19c42a7a"]]),EQt={},AQt={xmlns:"http://www.w3.org/2000/svg",width:"8",height:"8",viewBox:"0 0 8 8",fill:"none"};function _Qt(t,e){return U(),ue("svg",AQt,[...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 lKe=ht(EQt,[["render",_Qt],["__scopeId","data-v-313c2951"]]),RQt={},DQt={width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function NQt(t,e){return U(),ue("svg",DQt,[...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 LQt=ht(RQt,[["render",NQt]]),MQt={tooltip:"Font size"},OQt={tooltip:"Размер текста"},BQt=Ir({en:MQt,ru:OQt}),IQt=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:W9({themeName:s,themeFontColors:r})}).fontSize},$Qt={class:"bootstrap-styles rich-text-toolbar__font-size-editor position-relative rounded-2 py-1 px-3 d-flex"},PQt={class:"bootstrap-styles d-flex justify-content-center rich-text-icon me-14"},VQt=["value"],zQt={class:"bootstrap-styles rich-text-toolbar__input-button top-0 d-flex position-absolute align-items-end justify-content-center"},HQt={class:"bootstrap-styles rich-text-toolbar__input-button bottom-0 d-flex position-absolute align-items-start justify-content-center"},WQt=pt({__name:"FontSizeEditor",props:{editor:{},theme:{},deps:{}},setup(t){const e=t,n={tooltip:BQt({localeKey:e.deps.localeKey}).tooltip},r=Q(()=>IQt({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",$Qt,[N("i",PQt,[Ce(LQt)]),N("input",{type:"number",class:"bootstrap-styles rich-text-toolbar__input-number rich-text__handler",value:r.value,onInput:s},null,40,VQt),N("div",zQt,[N("input",{type:"button",class:"bootstrap-styles position-absolute rich-text__handler",onClick:o}),Ce(aKe)]),N("div",HQt,[N("input",{type:"button",class:"bootstrap-styles position-absolute rich-text__handler",onClick:i}),Ce(lKe)])])),[[ee(Mo),{title:n.tooltip,placement:"top"}]])}}),jQt=ht(WQt,[["__scopeId","data-v-ba95f865"]]),UQt=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))}}),KQt=ht(UQt,[["__scopeId","data-v-3a2ee8e2"]]),qQt={tooltip:"Text style",settingLabels:{title:"Title",heading:"Heading",subHeading:"Subheading",largeText:"Large text",normalText:"Text",descriptionText:"Description",link:"Link",button:"Button",custom:"Custom"}},JQt={tooltip:"Стиль текста",settingLabels:{title:"Большой заголовок",heading:"Заголовок",subHeading:"Подзаголовок",largeText:"Большой текст",normalText:"Текст",descriptionText:"Описание",link:"Ссылка",button:"Кнопка",custom:"Пользовательский"}},uSe=Ir({en:qQt,ru:JQt}),GQt={class:"bootstrap-styles dropdown"},YQt={class:"bootstrap-styles rich-text-toolbar__font-style-selector__text"},XQt={class:"bootstrap-styles d-flex justify-content-center align-items-center rich-text-toolbar__icon"},QQt=pt({__name:"ThemeSettingsSelector",props:{editor:{},theme:{},isAllowToEdit:{type:Boolean},initialThemeName:{},deps:{}},setup(t){const e=t,n=A9.name,r=Xt({isOpened:!1}),o={tooltip:uSe({localeKey:e.deps.localeKey}).tooltip,settingLabels:uSe({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",GQt,[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",YQt,er(l.value),1),N("i",XQt,[Ce(sKe)])],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(KQt,{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(om),()=>r.isOpened=!1],[ee(Mo),{title:o.tooltip,placement:"top"}]])}}),ZQt=ht(QQt,[["__scopeId","data-v-37cbbac2"]]),eZt={},tZt={xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"};function nZt(t,e){return U(),ue("svg",tZt,[...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 rZt=ht(eZt,[["render",nZt]]),oZt={tooltip:"Line height"},iZt={tooltip:"Высота строки"},sZt=Ir({en:oZt,ru:iZt}),aZt=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:W9({themeName:s,themeFontColors:r})}).lineHeight},lZt={class:"bootstrap-styles rich-text-toolbar__line-height-editor position-relative rounded-2 py-1 px-3 d-flex"},uZt={class:"bootstrap-styles d-flex justify-content-center rich-text-icon me-14"},cZt=["value"],dZt={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"}},hZt={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"}},fZt=pt({__name:"LineHeightEditor",props:{editor:{},theme:{},deps:{}},setup(t){const e=t,n={tooltip:sZt({localeKey:e.deps.localeKey}).tooltip},r=Q(()=>aZt({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",lZt,[N("i",uZt,[Ce(rZt)]),N("input",{type:"number",class:"bootstrap-styles rich-text-toolbar__input-number rich-text__handler",value:r.value,onInput:s},null,40,cZt),N("div",dZt,[N("input",{type:"button",class:"bootstrap-styles position-absolute rich-text__handler",onClick:o}),Ce(aKe)]),N("div",hZt,[N("input",{type:"button",class:"bootstrap-styles position-absolute rich-text__handler",onClick:i}),Ce(lKe)])])),[[ee(Mo),{title:n.tooltip,placement:"top"}]])}}),pZt=ht(fZt,[["__scopeId","data-v-4e76ed1b"]]),mZt=/^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,gZt=/^mailto:\S+$/i,yZt=/^tel:\+?[\d().-]+$/i,CZt=t=>/\s/.test(t)?!1:t.toLowerCase().startsWith("http://")||t.toLowerCase().startsWith("https://")?mZt.test(t):t.toLowerCase().startsWith("mailto:")?gZt.test(t):t.toLowerCase().startsWith("tel:")?yZt.test(t)&&/\d/.test(t.slice(4)):!1,bZt={mounted(t,e){t.addEventListener("input",()=>{const n=CZt(t.value);typeof e.value=="function"&&e.value(n)})}},uKe={mounted(t,e){cSe(t,e)},updated(t,e){e.value&&cSe(t,e)}},cSe=(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)}})},vZt={},wZt={xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 14 14",fill:"none"};function xZt(t,e){return U(),ue("svg",wZt,[...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 cKe=ht(vZt,[["render",xZt]]),kZt={label:"Link",inputPlaceholder:"https://example.com",errorNotification:"The link must contain https://, http://, mailto:, tel:",applyButton:"Save",cancelButton:"Cancel"},TZt={label:"Ссылка",inputPlaceholder:"https://example.com",errorNotification:"Ссылка должна содержать https://, http://, mailto:, tel:",applyButton:"Сохранить",cancelButton:"Отмена"},SZt=Ir({en:kZt,ru:TZt}),FZt={},EZt={width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function AZt(t,e){return U(),ue("svg",EZt,[...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 dKe=ht(FZt,[["render",AZt]]),_Zt={class:"bootstrap-styles bg-white border rounded-2 add-text-link-modal-window"},RZt={class:"bootstrap-styles fw-bold mb-5 px-11 mt-10 d-block text-start"},DZt={class:"bootstrap-styles px-11 mb-2"},NZt={class:"bootstrap-styles d-flex justify-content-center align-items-center me-1"},LZt=["placeholder"],MZt={class:"bootstrap-styles px-11 py-5 d-flex align-items-center justify-content-end border-top"},OZt=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=SZt({localeKey:n.deps.localeKey}),i=e;return(s,a)=>_n((U(),ue("div",_Zt,[N("label",RZt,er(ee(o).label),1),N("div",DZt,[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",NZt,[Ce(cKe)]),_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,LZt),[[ee(bZt),l=>r.isValid=l],[ee(uKe),void 0,void 0,{selectAll:!0}],[Zmt,r.href]])],2),N("div",{class:Ve(["bootstrap-styles text-start add-link-notification",{invisible:r.isValid}])},er(ee(o).errorNotification),3)]),N("div",MZt,[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(dKe)])])):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(om),()=>i("onClosed")]])}}),BZt=ht(OZt,[["__scopeId","data-v-b4170a33"]]),IZt={};function $Zt(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 PZt=ht(IZt,[["render",$Zt],["__scopeId","data-v-730bc16f"]]),VZt={tooltip:"Link"},zZt={tooltip:"Ссылка"},HZt=Ir({en:VZt,ru:zZt}),WZt={class:"bootstrap-styles d-flex rich-text-icon icon-hover"},jZt=pt({__name:"LinkEditor",props:{editor:{},isAllowToEdit:{type:Boolean},deps:{}},setup(t){const e=t,n={tooltip:HZt({localeKey:e.deps.localeKey}).tooltip},r=Jce.name,o=_de.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",WZt,[e.editor.isActive(ee(r))?(U(),kt(PZt,{key:1})):(U(),kt(cKe,{key:0}))])],2)),[[ee(Mo),{title:n.tooltip,placement:"top"}]]),i.isAddTextLinkModalWindowShown?(U(),kt(BZt,{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))}}),UZt=ht(jZt,[["__scopeId","data-v-6460a995"]]),KZt={label:"URL",placeholder:"URL...",cancel:"Cancel",apply:"Save",removeTooltip:"Delete image"},qZt={label:"URL",placeholder:"URL...",cancel:"Отмена",apply:"Сохранить",removeTooltip:"Удалить изображение"},YE=Ir({en:KZt,ru:qZt}),JZt={class:"bootstrap-styles bg-white border rounded-2 add-image-src-modal-window"},GZt={class:"bootstrap-styles fw-bold mb-5 px-11 mt-10 d-block text-start"},YZt={class:"bootstrap-styles px-11 mb-11"},XZt=["placeholder","value"],QZt={class:"bootstrap-styles px-11 py-5 d-flex align-items-center justify-content-end border-top"},ZZt=["disabled"],een=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:YE({localeKey:n.deps.localeKey}).label,placeholder:YE({localeKey:n.deps.localeKey}).placeholder,cancel:YE({localeKey:n.deps.localeKey}).cancel,apply:YE({localeKey:n.deps.localeKey}).apply,removeTooltip:YE({localeKey:n.deps.localeKey}).removeTooltip},i=m6e(l=>{nKe(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",JZt,[N("label",GZt,er(o.label),1),N("div",YZt,[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,XZt),[[ee(uKe),void 0,void 0,{selectAll:!0}]])],2)]),N("div",QZt,[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(dKe)])])),[[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,ZZt)])])),[[ee(om),()=>a("onClosed")]])}}),ten=ht(een,[["__scopeId","data-v-35966ae0"]]),nen={},ren={width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function oen(t,e){return U(),ue("svg",ren,[...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 ien=ht(nen,[["render",oen]]),sen={tooltip:"Image",retinaLabel:"For retina screens"},aen={tooltip:"Изображение",retinaLabel:"Для retina-экранов"},dSe=Ir({en:sen,ru:aen}),len={class:"bootstrap-styles rich-text-icon icon-hover d-flex"},uen=["checked"],cen={for:"rich-text__retina-checkbox",class:"bootstrap-styles label__checkbox-input text-nowrap"},den=pt({__name:"ImageEditor",props:{editor:{},deps:{}},setup(t){const e=t,n={tooltip:dSe({localeKey:e.deps.localeKey}).tooltip,retinaLabel:dSe({localeKey:e.deps.localeKey}).retinaLabel},r=rKe.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",len,[Ce(ien)])],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,uen),N("label",cen,er(n.retinaLabel),1)],32)):it("",!0),o.isAddImageSrcModalWindowShown?(U(),kt(ten,{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))}}),hen=ht(den,[["__scopeId","data-v-d72ccf51"]]),fen={},pen={xmlns:"http://www.w3.org/2000/svg",width:"17",height:"16",viewBox:"0 0 17 16",fill:"none"};function men(t,e){return U(),ue("svg",pen,[...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 gen=ht(fen,[["render",men]]),yen={tooltip:"Bold"},Cen={tooltip:"Полужирный"},ben=Ir({en:yen,ru:Cen}),ven={class:"bootstrap-styles d-flex rich-text-icon icon-hover"},wen=pt({__name:"FontWeightEditor",props:{editor:{},theme:{},isAllowToEdit:{type:Boolean},deps:{}},setup(t){const e=t,n={tooltip:ben({localeKey:e.deps.localeKey}).tooltip},r=Q(()=>LO({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",ven,[Ce(gen)])],2)),[[ee(Mo),{title:n.tooltip,placement:"top"}]])}}),xen=ht(wen,[["__scopeId","data-v-0e22dbf6"]]),ken={},Ten={xmlns:"http://www.w3.org/2000/svg",width:"17",height:"16",viewBox:"0 0 17 16",fill:"none"};function Sen(t,e){return U(),ue("svg",Ten,[...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 Fen=ht(ken,[["render",Sen]]),Een={tooltip:"Strikethrough"},Aen={tooltip:"Зачеркнутый"},_en=Ir({en:Een,ru:Aen}),Ren={class:"bootstrap-styles d-flex rich-text-icon icon-hover"},Den=pt({__name:"LineThroughEditor",props:{editor:{},isAllowToEdit:{type:Boolean},theme:{},deps:{}},setup(t){const e=t,n={tooltip:_en({localeKey:e.deps.localeKey}).tooltip},r=Q(()=>LO({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",Ren,[Ce(Fen)])],2)),[[ee(Mo),{title:n.tooltip,placement:"top"}]])}}),Nen=ht(Den,[["__scopeId","data-v-fffc32ef"]]),Len={},Men={xmlns:"http://www.w3.org/2000/svg",width:"17",height:"16",viewBox:"0 0 17 16",fill:"none"};function Oen(t,e){return U(),ue("svg",Men,[...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 Ben=ht(Len,[["render",Oen]]),Ien={tooltip:"Underline"},$en={tooltip:"Подчеркнутый"},Pen=Ir({en:Ien,ru:$en}),Ven={class:"bootstrap-styles d-flex rich-text-icon icon-hover"},zen=pt({__name:"UnderlineEditor",props:{editor:{},isAllowToEdit:{type:Boolean},theme:{},deps:{}},setup(t){const e=t,n={tooltip:Pen({localeKey:e.deps.localeKey}).tooltip},r=Q(()=>LO({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",Ven,[Ce(Ben)])],2)),[[ee(Mo),{title:n.tooltip,placement:"top"}]])}}),Hen=ht(zen,[["__scopeId","data-v-ae63be68"]]),Wen={},jen={xmlns:"http://www.w3.org/2000/svg",width:"17",height:"16",viewBox:"0 0 17 16",fill:"none"};function Uen(t,e){return U(),ue("svg",jen,[...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 Ken=ht(Wen,[["render",Uen]]),qen={tooltip:"Italic"},Jen={tooltip:"Курсив"},Gen=Ir({en:qen,ru:Jen}),Yen={class:"bootstrap-styles d-flex rich-text-icon icon-hover"},Xen=pt({__name:"FontStyleEditor",props:{editor:{},isAllowToEdit:{type:Boolean},theme:{},deps:{}},setup(t){const e=t,n={tooltip:Gen({localeKey:e.deps.localeKey}).tooltip},r=Q(()=>LO({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",Yen,[Ce(Ken)])],2)),[[ee(Mo),{title:n.tooltip,placement:"top"}]])}}),Qen=ht(Xen,[["__scopeId","data-v-ac6b2276"]]),Zen={},etn={width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function ttn(t,e){return U(),ue("svg",etn,[...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 ntn=ht(Zen,[["render",ttn]]),rtn={tooltip:"Uppercase"},otn={tooltip:"Заглавные"},itn=Ir({en:rtn,ru:otn}),stn={class:"bootstrap-styles d-flex rich-text-icon icon-hover"},atn=pt({__name:"TextTransformEditor",props:{editor:{},isAllowToEdit:{type:Boolean},theme:{},deps:{}},setup(t){const e=t,n={tooltip:itn({localeKey:e.deps.localeKey}).tooltip},r=X8e.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",stn,[Ce(ntn)])],2)),[[ee(Mo),{title:n.tooltip,placement:"top"}]])}}),ltn=ht(atn,[["__scopeId","data-v-20dea8b8"]]),utn={},ctn={width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function dtn(t,e){return U(),ue("svg",ctn,[...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 htn=ht(utn,[["render",dtn]]),ftn={tooltip:"Unsubscribe link"},ptn={tooltip:"Ссылка на отписку"},mtn=Ir({en:ftn,ru:ptn}),gtn={class:"bootstrap-styles d-flex rich-text-icon icon-hover"},ytn=pt({__name:"UnsubscribeLinkEditor",props:{editor:{},isAllowToEdit:{type:Boolean},theme:{},deps:{}},setup(t){const e=t,n={tooltip:mtn({localeKey:e.deps.localeKey}).tooltip},r=_de.name,o=Jce.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",gtn,[Ce(htn)])],2)),[[ee(Mo),{title:n.tooltip,placement:"top"}]])}}),Ctn=ht(ytn,[["__scopeId","data-v-9ee287d3"]]),btn={},vtn={xmlns:"http://www.w3.org/2000/svg",width:"17",height:"16",viewBox:"0 0 17 16",fill:"none"};function wtn(t,e){return U(),ue("svg",vtn,[...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 xtn=ht(btn,[["render",wtn]]),ktn={tooltip:"Bullet list"},Ttn={tooltip:"Маркированный список"},Stn=Ir({en:ktn,ru:Ttn}),Ftn={class:"bootstrap-styles d-flex rich-text-icon icon-hover"},Etn=pt({__name:"BulletListEditor",props:{editor:{},deps:{}},setup(t){const e=t,n={tooltip:Stn({localeKey:e.deps.localeKey}).tooltip},r=Gce.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",Ftn,[Ce(xtn)])],2)),[[ee(Mo),{title:n.tooltip,placement:"top"}]])}}),Atn=ht(Etn,[["__scopeId","data-v-c64632e3"]]),_tn={},Rtn={xmlns:"http://www.w3.org/2000/svg",width:"17",height:"16",viewBox:"0 0 17 16",fill:"none"};function Dtn(t,e){return U(),ue("svg",Rtn,[...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 Ntn=ht(_tn,[["render",Dtn]]),Ltn={tooltip:"Ordered list"},Mtn={tooltip:"Нумерованный список"},Otn=Ir({en:Ltn,ru:Mtn}),Btn={class:"bootstrap-styles d-flex rich-text-icon icon-hover"},Itn=pt({__name:"OrderedListEditor",props:{editor:{},deps:{}},setup(t){const e=t,n={tooltip:Otn({localeKey:e.deps.localeKey}).tooltip},r=Xce.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",Btn,[Ce(Ntn)])],2)),[[ee(Mo),{title:n.tooltip,placement:"top"}]])}}),$tn=ht(Itn,[["__scopeId","data-v-aaa43948"]]),Ptn={},Vtn={width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function ztn(t,e){return U(),ue("svg",Vtn,[...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 hSe=ht(Ptn,[["render",ztn]]),Htn={},Wtn={width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function jtn(t,e){return U(),ue("svg",Wtn,[...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 fSe=ht(Htn,[["render",jtn]]),Utn={},Ktn={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",Ktn,[...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 pSe=ht(Utn,[["render",qtn]]),Jtn={},Gtn={width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Ytn(t,e){return U(),ue("svg",Gtn,[...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 mSe=ht(Jtn,[["render",Ytn]]),Xtn={tooltip:"Vertical image alignment"},Qtn={tooltip:"Выравнивание картинок по вертикали"},Ztn=Ir({en:Xtn,ru:Qtn}),enn={class:"bootstrap-styles vertical-align-editor dropdown rounded"},tnn={class:"bootstrap-styles rich-text-icon icon-hover d-flex justify-content-center align-items-center"},nnn={class:"bootstrap-styles rich-text-icon icon-hover d-flex justify-content-center align-items-center"},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=pt({__name:"VerticalAlignEditor",props:{editor:{},currentVerticalAlign:{},deps:{}},emits:["onVerticalAlignVariantChanged"],setup(t,{emit:e}){const n=t,r={tooltip:Ztn({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",enn,[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",tnn,[n.currentVerticalAlign==="Baseline"?(U(),kt(mSe,{key:0})):it("",!0),n.currentVerticalAlign==="Top"?(U(),kt(hSe,{key:1})):it("",!0),n.currentVerticalAlign==="Middle"?(U(),kt(fSe,{key:2})):it("",!0),n.currentVerticalAlign==="Bottom"?(U(),kt(pSe,{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",nnn,[Ce(mSe)])],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",rnn,[Ce(hSe)])],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",onn,[Ce(fSe)])],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",inn,[Ce(pSe)])],2)],2)])),[[ee(om),()=>o.isOpened=!1],[ee(Mo),{title:r.tooltip,placement:"top"}]])}}),ann=ht(snn,[["__scopeId","data-v-4a636ae8"]]),lnn={},unn={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",unn,[...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 gSe=ht(lnn,[["render",cnn]]),dnn={},hnn={xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"};function fnn(t,e){return U(),ue("svg",hnn,[...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 ySe=ht(dnn,[["render",fnn]]),pnn={},mnn={xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"};function gnn(t,e){return U(),ue("svg",mnn,[...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 CSe=ht(pnn,[["render",gnn]]),ynn={tooltip:"Alignment"},Cnn={tooltip:"Выравнивание"},bnn=Ir({en:ynn,ru:Cnn}),vnn={class:"bootstrap-styles content-align-editor dropdown rounded"},wnn={class:"bootstrap-styles rich-text-icon icon-hover d-flex justify-content-center align-items-center"},xnn={class:"bootstrap-styles rich-text-icon icon-hover d-flex justify-content-center align-items-center"},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=pt({__name:"ContentAlignEditor",props:{editor:{},deps:{},initialContentAlign:{}},setup(t){const e=t,n={tooltip:bnn({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",vnn,[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",wnn,[o.value==="Left"?(U(),kt(gSe,{key:0})):it("",!0),o.value==="Center"?(U(),kt(ySe,{key:1})):it("",!0),o.value==="Right"?(U(),kt(CSe,{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",xnn,[Ce(gSe)])],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",knn,[Ce(ySe)])],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",Tnn,[Ce(CSe)])],2)],2)])),[[ee(om),()=>r.isOpened=!1],[ee(Mo),{title:n.tooltip,placement:"top"}]])}}),Fnn=ht(Snn,[["__scopeId","data-v-e9d5324a"]]),Enn={class:"bootstrap-styles rich-text-toolbar d-flex align-items-center border gap-1 p-1"},Ann={key:2,class:"bootstrap-styles position-relative h-100"},_nn={key:3,class:"bootstrap-styles position-relative h-100"},Rnn={key:4,class:"bootstrap-styles d-flex justify-content-center align-items-center"},Dnn={key:7,class:"vl"},Nnn={key:13,class:"vl"},Lnn={key:16,class:"vl"},Mnn=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",Enn,[i.value?it("",!0):(U(),kt(ZQt,{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(kQt,{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",Ann,[Ce(jQt,{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",_nn,[Ce(pZt,{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",Rnn,[Ce(dQt,{editor:n.editor,theme:n.theme,isAllowToEdit:o.value,deps:n.deps.colorPickerDeps},null,8,["editor","theme","isAllowToEdit","deps"])])),i.value?(U(),kt(ann,{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(Fnn,{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",Dnn)),i.value?it("",!0):(U(),kt(xen,{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(Qen,{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(Nen,{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(Hen,{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(ltn,{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",Nnn)),i.value?it("",!0):(U(),kt(Atn,{key:14,editor:n.editor,deps:n.deps.bulletListEditorDeps},null,8,["editor","deps"])),i.value?it("",!0):(U(),kt($tn,{key:15,editor:n.editor,deps:n.deps.orderedListEditorDeps},null,8,["editor","deps"])),i.value?it("",!0):(U(),ue("div",Lnn)),Ce(UZt,{editor:n.editor,isAllowToEdit:o.value,deps:n.deps.linkEditorDeps},null,8,["editor","isAllowToEdit","deps"]),Ce(Ctn,{editor:n.editor,theme:n.theme,isAllowToEdit:o.value,deps:n.deps.unsubscribeLinkEditorDeps},null,8,["editor","theme","isAllowToEdit","deps"]),Ce(hen,{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(NPe(u),{editor:n.editor},null,8,["editor"]))]))),128))]))}}),Onn=ht(Mnn,[["__scopeId","data-v-359375dd"]]),Bnn=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 cu(t)}}}),Inn=t=>Bnn(t.verticalAlign).Match({whenBaseline:()=>"baseline",whenTop:()=>"top",whenMiddle:()=>"middle",whenBottom:()=>"bottom"}),bSe="NormalText",vSe="Left",$nn=pt({__name:"RichText",props:{deps:{},theme:{},element:{},isSelected:{type:Boolean}},emits:["onRichTextUpdated","onRichTextRemoved","onElementClicked"],setup(t,{emit:e}){nm(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:iSe({localeKey:n.deps.localeKey}).removeWindowTitle,removeWindowDescription:iSe({localeKey:n.deps.localeKey}).removeWindowDescription},i=Wn(null),s=Wn(null),{floatingStyles:a}=N6e(s,i,{placement:"top",whileElementsMounted:_6e,middleware:[R6e(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=EU(),c=n.element.ContentAlign||vSe,d=Q(()=>il({fontFamily:n.theme.FontFamily,themeFontSettings:n.theme.FontSettingsPresets.NormalText,themeColor:n.theme.Colors.NormalTextColor})),h=Q(()=>{const b={...Fde(d.value)};return{fontSize:b.fontSize,lineHeight:b.lineHeight,fontFamily:b.fontFamily,fontWeight:b.fontWeight,fontStyle:b.fontStyle,color:b.color}}),f=a6t({content:sSe(n.element.Text),extensions:[...JXt({dataSourceFieldNameDelegate:n.deps.dataSourceFieldNameDelegate,initialThemeName:bSe,themeColors:n.theme.Colors,fallbackContentAlign:n.element.ContentAlign||vSe})],editable:r.isEditing,autofocus:"all",onUpdate:({editor:b})=>{if(!r.isEditing)return;const v=GXt({editor:b});C("onRichTextUpdated",{...n.element,Text:v})}}),p=()=>{f.value&&(f.value.chain().focus().undo().run(),r.isRemoveComponentWindowShown=!1)},m=Q(()=>Inn({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(sSe(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(s6t),{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(Onn,{key:0,ref_key:"richTextToolbarRef",ref:i,editor:ee(f),deps:n.deps.richTextToolbarDeps,element:n.element,theme:n.theme,initialThemeName:bSe,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(wPe,{to:"body",defer:""},[r.isRemoveComponentWindowShown?(U(),kt(lXt,{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":wy(()=>[ZM(er(o.removeWindowDescription),1)]),_:1},8,["deps","headerText"])):it("",!0)]))],6)),[[ee(om),{handler:()=>{r.isEditing=!1,ee(f)&&ee(f).setEditable(!1)},include:g}]])}}),Pnn=ht($nn,[["__scopeId","data-v-0a9d26ba"]]),Vnn=pt({__name:"UnsubscribeLink",props:{theme:{},element:{}},emits:["onElementClicked"],setup(t,{emit:e}){const n=t,r=Q(()=>{const i=Ede({fontFamily:n.theme.FontFamily,fontStyle:n.element.Style,themeDefinedFontSettings:n.theme.FontSettingsPresets,themeColors:n.theme.Colors});return{...Fde(i)}}),o=e;return(i,s)=>(U(),ue("a",{href:"#",class:"cursor-pointer user-select-none",style:Be([{margin:"0"},[r.value,ee(OL)({contentAlign:n.element.ContentAlign})]]),onClick:s[0]||(s[0]=Po(()=>o("onElementClicked"),["prevent"]))},er(n.element.Text),5))}}),znn=ht(Vnn,[["__scopeId","data-v-68ed9754"]]),Hnn=["src","alt"],Wnn={class:"bootstrap-styles position-absolute top-0 left-0",width:"100%",style:{"border-spacing":"0","border-collapse":"collapse",width:"100%",height:"100%"}},jnn={key:0},Unn=["align"],Knn={style:{width:"auto","border-spacing":"0","border-collapse":"separate"}},qnn={align:"center",style:{width:"auto"}},Jnn={key:0},Gnn={key:1},Ynn=["align"],Xnn={style:{width:"auto","border-spacing":"0","border-collapse":"separate"}},Qnn={align:"center",style:{width:"auto"}},Znn={key:2},ern=["align"],trn={style:{width:"auto","border-spacing":"0","border-collapse":"separate"}},nrn={align:"center",style:{width:"auto"}},rrn={key:3},orn=["align"],irn={style:{width:"auto","border-spacing":"0","border-collapse":"separate"}},srn={align:"center",style:{width:"auto"}},arn=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,Hnn),[[ee(LL),({width:l,height:u})=>{i("onImageSizeAdjusted",{Path:n.path,AdjustedHeight:u,AdjustedWidth:l}),r.isLoaded=!0}]]),N("table",Wnn,[N("tbody",null,[n.element.TopElementList.List.length>0&&n.element.TopElementList.Direction==="Vertical"?(U(),ue("tr",jnn,[N("td",{valign:"top",align:ee(tp)({containerAlign:n.element.TopElementList.ContentAlign})},[N("table",Knn,[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",qnn,[Ce(Vu,{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",Jnn,[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,Unn)])):it("",!0),n.element.TopElementList.List.length>0&&n.element.TopElementList.Direction==="Horizontal"?(U(),ue("tr",Gnn,[N("td",{valign:"top",align:ee(tp)({containerAlign:n.element.TopElementList.ContentAlign})},[N("table",Xnn,[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",Qnn,[Ce(Vu,{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,Ynn)])):it("",!0),n.element.BottomElementList.List.length>0&&n.element.BottomElementList.Direction==="Vertical"?(U(),ue("tr",Znn,[N("td",{valign:"bottom",align:ee(tp)({containerAlign:n.element.BottomElementList.ContentAlign})},[N("table",trn,[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",nrn,[Ce(Vu,{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,ern)])):it("",!0),n.element.BottomElementList.List.length>0&&n.element.BottomElementList.Direction==="Horizontal"?(U(),ue("tr",rrn,[N("td",{valign:"bottom",align:ee(tp)({containerAlign:n.element.BottomElementList.ContentAlign})},[N("table",irn,[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",srn,[Ce(Vu,{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,orn)])):it("",!0)])])],4)])])])):it("",!0)}}),Vu=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(tXt,{key:0,deps:n.deps,theme:n.theme,element:n.element.Button,context:n.context,class:Ve({"element-selected":ee(kC)(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(NYt,{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($Yt,{key:2,deps:n.deps,theme:n.theme,element:n.element.Image,context:n.context,path:[...n.path,"Image"],class:Ve({"element-selected":ee(kC)(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(jYt,{key:3,element:n.element.Spacer,theme:n.theme,class:Ve({"element-selected":ee(kC)(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(oXt,{key:4,deps:n.deps,theme:n.theme,element:n.element.SpanText,context:n.context,class:Ve({"element-selected":ee(kC)(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(Pnn,{key:5,deps:n.deps.richTextDeps,theme:n.theme,element:n.element.RichText,isSelected:ee(kC)(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(HYt,{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(AYt,{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(znn,{key:8,theme:n.theme,element:n.element.UnsubscribeLink,class:Ve({"element-selected":ee(kC)(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(arn,{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(kC)(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)]))}}),lrn=["align"],urn=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}){nm(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(DO)({borderCollapse:n.iteratedColumn.BorderCollapse})],{width:"100%","border-spacing":"0"}]),width:"100%"},[N("tbody",null,[N("tr",null,[N("td",{align:ee(tp)({containerAlign:n.iteratedColumn.ContainerAlign}),style:Be([[ee(Up)({border:n.iteratedColumn.Border,themeColors:n.theme.Colors}),{backgroundColor:ee(od)({color:n.iteratedColumn.BgColor,themeColors:n.theme.Colors})},ee(Rh)({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(Vu,{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,lrn)])])],4)],4))}}),crn=ht(urn,[["__scopeId","data-v-4bdaa248"]]),drn=["align"],hrn=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}){nm(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(DO)({borderCollapse:n.iteratedColumnN21.BorderCollapse})],{width:"100%","border-spacing":"0"}]),width:"100%"},[N("tbody",null,[N("tr",null,[N("td",{align:ee(tp)({containerAlign:n.iteratedColumnN21.ContainerAlign}),style:Be([[ee(Up)({border:n.iteratedColumnN21.Border,themeColors:n.theme.Colors}),{backgroundColor:ee(od)({color:n.iteratedColumnN21.BgColor,themeColors:n.theme.Colors})},ee(Rh)({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(Vu,{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,drn)])])],4)],4))}}),frn=ht(hrn,[["__scopeId","data-v-b46af162"]]),prn=["align"],mrn=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}){nm(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(DO)({borderCollapse:n.iteratedColumnN22.BorderCollapse})],{width:"100%","border-spacing":"0"}]),width:"100%"},[N("tbody",null,[N("tr",null,[N("td",{align:ee(tp)({containerAlign:n.iteratedColumnN22.ContainerAlign}),style:Be([[ee(Up)({border:n.iteratedColumnN22.Border,themeColors:n.theme.Colors}),{backgroundColor:ee(od)({color:n.iteratedColumnN22.BgColor,themeColors:n.theme.Colors})},ee(Rh)({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(Vu,{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,prn)])])],4)],4))}}),grn=ht(mrn,[["__scopeId","data-v-319c5209"]]),yrn={class:"iterated-column-container",style:{"border-spacing":"0","border-collapse":"collapse",width:"100%",margin:"0 auto"},width:"100%"},Crn={align:"center",style:{"font-size":"0"}},brn=pt({__name:"IteratedColumnBodyRow",props:{deps:{},theme:{},iteratedColumnBodyRow:{},path:{},selectedElementPath:{},context:{},rowWidth:{}},emits:["onElementClicked","onImageOriginalSizeAdjusted","onImageSizeAdjusted","onElementUpdatedEvent","onElementRemoved"],setup(t,{emit:e}){nm(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",yrn,[N("tbody",null,[N("tr",null,[N("td",Crn,[(U(!0),ue(xt,null,Kr(r.dataList,(c,d)=>(U(),ue(xt,{key:d},[s.iteratedColumn(n.iteratedColumnBodyRow.IteratedColumn)?(U(),kt(crn,{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(nV)({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(frn,{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(nV)({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(grn,{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(nV)({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))])])])]))}}),vrn=ht(brn,[["__scopeId","data-v-69ed8d34"]]),wrn={style:{"border-spacing":"0","border-collapse":"collapse",width:"100%",margin:"0 auto"}},xrn=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",wrn,[(U(!0),ue(xt,null,Kr(r.dataList,(a,l)=>(U(),ue("tr",{key:l},[N("td",{style:Be([ee(NO)({paddings:n.iteratedBodyRow.Paddings,themeComponentPaddings:n.theme.ComponentPaddings,themeBodyPaddings:n.theme.BodyPaddings})])},[Ce(hKe,{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))]))}}),krn=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()}}}),Trn=t=>krn(t).Match({Top:()=>"start",Middle:()=>"center",Bottom:()=>"end",Baseline:()=>"baseline"}),Srn=OF,Frn=t=>({JustifyWidth:{WidthInPixels:t}}),Ern=t=>({ShrinkToContentWidth:{WidthInPixels:t}}),Arn=CYt,_rn=["align"],Rrn=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}){nm(l=>({acad954c:a.value,v1971599c:s.value,v72b8524e:i.value}));const n=t,r=e,o=l=>{Srn(n.multipleColumn.Width).Match({JustifyWidth:()=>mJ.Some(Frn(l)),ShrinkToContentWidth:()=>mJ.Some(Ern(l)),WidthInPercents:()=>mJ.None}).map(u=>r("onColumnWidthAdjusted",{Path:n.path,Width:u}))},i=Q(()=>Arn(n.multipleColumn.Width).Match({default:()=>"",WidthInPercents:l=>l.Value*n.containerWidth+"px"})),s=Q(()=>Trn(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(DO)({borderCollapse:n.multipleColumn.BorderCollapse})]]),width:"100%"},[N("tbody",null,[N("tr",null,[N("td",{align:ee(tp)({containerAlign:n.multipleColumn.ContainerAlign}),style:Be([[ee(Up)({border:n.multipleColumn.Border,themeColors:n.theme.Colors}),ee(Rh)({borderRadius:n.multipleColumn.BorderRadius,borderRadiusCard:n.theme.BorderRadiusCard,bodyBorderRadius:n.theme.BorderRadius,borderButtonRadius:n.theme.BorderRadiusButton,borderBannerRadius:n.theme.BorderRadiusBanner}),{backgroundColor:ee(od)({color:n.multipleColumn.BgColor,themeColors:n.theme.Colors})},ee(NO)({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(Vu,{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,_rn)])])],4)],2)),[[ee(LL),c=>o(c.width)]])}}),Drn=ht(Rrn,[["__scopeId","data-v-bfa1869f"]]),Nrn=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}){nm(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(DO)({borderCollapse:n.multipleColumnBodyRow.BorderCollapse}),ee(Up)({border:n.multipleColumnBodyRow.Border,themeColors:n.theme.Colors}),ee(Rh)({borderRadius:n.multipleColumnBodyRow.BorderRadius,borderRadiusCard:n.theme.BorderRadiusCard,bodyBorderRadius:n.theme.BorderRadius,borderButtonRadius:n.theme.BorderRadiusButton,borderBannerRadius:n.theme.BorderRadiusBanner}),{backgroundColor:ee(od)({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(EYt)({containerAlign:n.multipleColumnBodyRow.ContainerAlign}),ee(NO)({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(Drn,{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(nV)({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))}}),Lrn=ht(Nrn,[["__scopeId","data-v-c6ebdc94"]]),Mrn=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(Vu,{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))}}),hKe=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(Lrn,{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(vrn,{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(xrn,{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(Mrn,{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)]))}}),Orn={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"},Brn={emptyEmailComponentText:"Товарная полка скрыта из-за недостатка товаров",emptyEmailComponentTooltip:"Товарная полка не будет отображаться у получателей письма пока в ней недостаточно товаров",requiredComponentNotification:"Без этого компонента письмо не будет отправлено"},OJ=Ir({en:Orn,ru:Brn}),Irn={},$rn={width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Prn(t,e){return U(),ue("svg",$rn,[...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 Vrn=ht(Irn,[["render",Prn]]),zrn={key:0},Hrn={key:0,class:"is-required-notification"},Wrn={class:"bootstrap-styles w-100 d-flex justify-content-center gap-5"},jrn=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:OJ({localeKey:n.deps.localeKey}).emptyEmailComponentText,emptyEmailComponentTooltip:OJ({localeKey:n.deps.localeKey}).emptyEmailComponentTooltip,requiredComponentNotification:OJ({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",zrn,[n.emailComponent.IsRequired?(U(),ue("div",Hrn,[N("i",null,[Ce(Vrn)]),N("span",null," "+er(o.requiredComponentNotification),1)])):it("",!0),r.ifResult?(U(),ue("table",{key:1,style:Be([[{backgroundColor:ee(od)({color:n.emailComponent.InnerBgColor,themeColors:n.theme.Colors})},ee(Rh)({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(rSe)({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(hKe,{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}])},[ZM(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(rSe)({paddings:n.emailComponent.Paddings,themeComponentPaddings:n.theme.ComponentPaddings,themeBodyPaddings:n.theme.BodyPaddings,fullWidth:n.emailComponent.FullWidth}),{backgroundColor:ee(od)({color:n.emailComponent.InnerBgColor,themeColors:n.theme.Colors})||"transparent"}])},[Ce(ee(CTe),{type:"text"}),N("div",Wrn,[(U(),ue(xt,null,Kr(3,u=>Ce(ee(CTe),{key:u,type:"image, text, text, text, button",style:{width:"100%"}})),64))])],4))}}),Urn=ht(jrn,[["__scopeId","data-v-5ef33b53"]]),Krn={class:"emailTemplate-border-top"},qrn={class:"emailTemplate-border-bottom"},Jrn=pt({__name:"TemplatePreview",props:{deps:{},template:{}},setup(t){nm(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",Krn,[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(Urn,{deps:e.deps.emailComponentDeps,theme:e.template.Theme,emailComponent:x,path:[],selectedElementPath:[]},null,8,["deps","theme","emailComponent"])]))),128)),N("div",qrn,[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))}}),fKe=ht(Jrn,[["__scopeId","data-v-9f2b7245"]]),Grn={class:"email-template-preview__inner-padding scrollable"},Yrn=pt({__name:"TemplatePreviewModalWindow",props:{template:{},deps:{}},emits:["templateSelected","close"],setup(t,{emit:e}){const n=t,r={title:yJ({localeKey:n.deps.localeKey}).title,applyButton:yJ({localeKey:n.deps.localeKey}).applyButton,cancelButton:yJ({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(A7e,{headerText:r.title,class:"email-component__preview-modal-window",onClose:a[3]||(a[3]=()=>i("close"))},{body:wy(()=>[N("div",{style:Be({backgroundColor:t.template.Theme.Colors.EmailBackgroundColor})},[Ce(E7e,{onScaledElement:a[0]||(a[0]=l=>o(l))},{default:wy(()=>[N("div",Grn,[Ce(fKe,{deps:t.deps.templatePreviewDeps,template:t.template},null,8,["deps","template"])])]),_:1})],4)]),"footer-actions":wy(()=>[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"]))}}),Xrn=ht(Yrn,[["__scopeId","data-v-daf17623"]]),Qrn={class:"favorite-template-select__item-wrapper"},Zrn={class:"favorite-template-select__item bootstrap-styles border rounded-3"},eon={class:"email-template-preview__inner-padding scrollable"},ton=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",Qrn,[N("div",Zrn,[N("div",{class:"bootstrap-styles h-100",style:Be({backgroundColor:n.template.Theme.Colors.EmailBackgroundColor}),onClick:a[1]||(a[1]=()=>{r.isPreviewComponentModalWindowShown=!0})},[Ce(E7e,{onScaledElement:a[0]||(a[0]=l=>o(l))},{default:wy(()=>[N("div",eon,[Ce(fKe,{deps:n.deps.templatePreviewDeps,template:n.template},null,8,["deps","template"])])]),_:1})],4),(U(),kt(wPe,{to:"body",defer:""},[r.isPreviewComponentModalWindowShown?(U(),kt(Xrn,{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)]))}}),non=ht(ton,[["__scopeId","data-v-c8eb839e"]]),ron={class:"template-selector__list"},oon={class:"bootstrap-styles mb-3"},ion=pt({__name:"TemplatePreviewCardList",props:{templatesPreviewCard:{},deps:{}},emits:["templateSelected"],setup(t,{emit:e}){const n=t,r={newTemplate:QP({localeKey:n.deps.localeKey}).newTemplate},o=e;return(i,s)=>(U(),ue("div",ron,[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",oon,[Ce(C7t)]),ZM(" "+er(r.newTemplate),1)]),(U(!0),ue(xt,null,Kr(n.templatesPreviewCard,a=>(U(),ue("div",null,[Ce(non,{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))]))}}),wSe=ht(ion,[["__scopeId","data-v-f5d903f5"]]),son={class:"template-gallery bootstrap-styles d-flex flex-column bg-white justify-content-start align-items-center"},aon={class:"icon-hover-stroke-black"},lon={class:"bootstrap-styles mb-11"},uon={class:"bootstrap-styles template-gallery__tab-list mb-13"},con=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:QP({localeKey:n.deps.localeKey}).title,customFavoritesButton:QP({localeKey:n.deps.localeKey}).customFavoritesButton,commonFavoritesButton:QP({localeKey:n.deps.localeKey}).defaultFavoritesButton},i=Xt({activeTab:r}),s={custom:o.customFavoritesButton,common:o.commonFavoritesButton},a=e;return(l,u)=>(U(),ue("div",son,[N("button",{class:"template-gallery__close",onClick:u[0]||(u[0]=c=>a("close"))},[N("i",aon,[Ce(a7t)])]),N("h2",lon,er(o.title),1),N("div",uon,[Ce(p7t,{initialTab:ee(r),tabList:s,onOnTabClicked:u[1]||(u[1]=c=>i.activeTab=c)},null,8,["initialTab"])]),_n(Ce(wSe,{deps:n.deps.templatePreviewCardListDeps,templatesPreviewCard:n.customFavoriteTemplates,onTemplateSelected:u[2]||(u[2]=c=>a("templateSelected",c))},null,8,["deps","templatesPreviewCard"]),[[jZ,i.activeTab==="custom"]]),_n(Ce(wSe,{deps:n.deps.templatePreviewCardListDeps,templatesPreviewCard:n.commonFavoriteTemplates,onTemplateSelected:u[3]||(u[3]=c=>a("templateSelected",c))},null,8,["deps","templatesPreviewCard"]),[[jZ,i.activeTab==="common"]])]))}}),don=ht(con,[["__scopeId","data-v-8e5250cb"]]),hon=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},fon={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:{}}}}]}}]}}}]}}]}]},pon={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:pKe,setPrototypeOf:xSe,isFrozen:mon,getPrototypeOf:gon,getOwnPropertyDescriptor:yon}=Object;let{freeze:ra,seal:ac,create:$ne}=Object,{apply:Pne,construct:Vne}=typeof Reflect<"u"&&Reflect;ra||(ra=function(t){return t});ac||(ac=function(t){return t});Pne||(Pne=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)});Vne||(Vne=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 XI=oa(Array.prototype.forEach),Con=oa(Array.prototype.lastIndexOf),kSe=oa(Array.prototype.pop),XE=oa(Array.prototype.push),bon=oa(Array.prototype.splice),oV=oa(String.prototype.toLowerCase),BJ=oa(String.prototype.toString),IJ=oa(String.prototype.match),QE=oa(String.prototype.replace),von=oa(String.prototype.indexOf),won=oa(String.prototype.trim),$c=oa(Object.prototype.hasOwnProperty),Zi=oa(RegExp.prototype.test),ZE=xon(TypeError);function oa(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 Pne(t,e,r)}}function xon(t){return function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return Vne(t,n)}}function wn(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:oV;xSe&&xSe(t,null);let r=e.length;for(;r--;){let o=e[r];if(typeof o=="string"){const i=n(o);i!==o&&(mon(e)||(e[r]=i),o=i)}t[o]=!0}return t}function kon(t){for(let e=0;e<t.length;e++)$c(t,e)||(t[e]=null);return t}function Md(t){const e=$ne(null);for(const[n,r]of pKe(t))$c(t,n)&&(Array.isArray(r)?e[n]=kon(r):r&&typeof r=="object"&&r.constructor===Object?e[n]=Md(r):e[n]=r);return e}function eA(t,e){for(;t!==null;){const r=yon(t,e);if(r){if(r.get)return oa(r.get);if(typeof r.value=="function")return oa(r.value)}t=gon(t)}function n(){return null}return n}const TSe=ra(["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"]),$J=ra(["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"]),PJ=ra(["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"]),Ton=ra(["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"]),VJ=ra(["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"]),Son=ra(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),SSe=ra(["#text"]),FSe=ra(["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"]),zJ=ra(["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"]),ESe=ra(["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"]),QI=ra(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Fon=ac(/\{\{[\w\W]*|[\w\W]*\}\}/gm),Eon=ac(/<%[\w\W]*|[\w\W]*%>/gm),Aon=ac(/\$\{[\w\W]*/gm),_on=ac(/^data-[\-\w.\u00B7-\uFFFF]+$/),Ron=ac(/^aria-[\-\w]+$/),mKe=ac(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Don=ac(/^(?:\w+script|data):/i),Non=ac(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),gKe=ac(/^html$/i),Lon=ac(/^[a-z][.\w]*(-[.\w]+)+$/i);var ASe=Object.freeze({__proto__:null,ARIA_ATTR:Ron,ATTR_WHITESPACE:Non,CUSTOM_ELEMENT:Lon,DATA_ATTR:_on,DOCTYPE_NAME:gKe,ERB_EXPR:Eon,IS_ALLOWED_URI:mKe,IS_SCRIPT_OR_DATA:Don,MUSTACHE_EXPR:Fon,TMPLIT_EXPR:Aon});const tA={element:1,text:3,progressingInstruction:7,comment:8,document:9},Mon=function(){return typeof window>"u"?null:window},Oon=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}},_Se=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function yKe(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Mon();const e=y=>yKe(y);if(e.version="3.3.1",e.removed=[],!t||!t.document||t.document.nodeType!==tA.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=eA(p,"cloneNode"),g=eA(p,"remove"),C=eA(p,"nextSibling"),b=eA(p,"childNodes"),v=eA(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=_Se();e.isSupported=typeof pKe=="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}=ASe;let{IS_ALLOWED_URI:se}=ASe,L=null;const oe=wn({},[...TSe,...$J,...PJ,...VJ,...SSe]);let $=null;const X=wn({},[...FSe,...zJ,...ESe,...QI]);let M=Object.seal($ne(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($ne(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 ai=wn({},[Bt,zt,Te],BJ);let Gt=wn({},["mi","mo","mn","ms","mtext"]),Yt=wn({},["annotation-xml"]);const li=wn({},["title","style","font","a","script"]);let St=null;const ui=["application/xhtml+xml","text/html"],ci="text/html";let Z=null,wt=null;const di=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=Md(y),St=ui.indexOf(y.PARSER_MEDIA_TYPE)===-1?ci:y.PARSER_MEDIA_TYPE,Z=St==="application/xhtml+xml"?BJ:oV,L=$c(y,"ALLOWED_TAGS")?wn({},y.ALLOWED_TAGS,Z):oe,$=$c(y,"ALLOWED_ATTR")?wn({},y.ALLOWED_ATTR,Z):X,gn=$c(y,"ALLOWED_NAMESPACES")?wn({},y.ALLOWED_NAMESPACES,BJ):ai,Ht=$c(y,"ADD_URI_SAFE_ATTR")?wn(Md(Rn),y.ADD_URI_SAFE_ATTR,Z):Rn,en=$c(y,"ADD_DATA_URI_TAGS")?wn(Md(tn),y.ADD_DATA_URI_TAGS,Z):tn,le=$c(y,"FORBID_CONTENTS")?wn({},y.FORBID_CONTENTS,Z):Ye,fe=$c(y,"FORBID_TAGS")?wn({},y.FORBID_TAGS,Z):Md({}),de=$c(y,"FORBID_ATTR")?wn({},y.FORBID_ATTR,Z):Md({}),ye=$c(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||mKe,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({},SSe),$=[],ye.html===!0&&(wn(L,TSe),wn($,FSe)),ye.svg===!0&&(wn(L,$J),wn($,zJ),wn($,QI)),ye.svgFilters===!0&&(wn(L,PJ),wn($,zJ),wn($,QI)),ye.mathMl===!0&&(wn(L,VJ),wn($,ESe),wn($,QI))),y.ADD_TAGS&&(typeof y.ADD_TAGS=="function"?J.tagCheck=y.ADD_TAGS:(L===oe&&(L=Md(L)),wn(L,y.ADD_TAGS,Z))),y.ADD_ATTR&&(typeof y.ADD_ATTR=="function"?J.attributeCheck=y.ADD_ATTR:($===X&&($=Md($)),wn($,y.ADD_ATTR,Z))),y.ADD_URI_SAFE_ATTR&&wn(Ht,y.ADD_URI_SAFE_ATTR,Z),y.FORBID_CONTENTS&&(le===Ye&&(le=Md(le)),wn(le,y.FORBID_CONTENTS,Z)),y.ADD_FORBID_CONTENTS&&(le===Ye&&(le=Md(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 ZE('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof y.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw ZE('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');w=y.TRUSTED_TYPES_POLICY,x=w.createHTML("")}else w===void 0&&(w=Oon(f,o)),w!==null&&typeof x=="string"&&(x=w.createHTML(""));ra&&ra(y),wt=y}},mr=wn({},[...$J,...PJ,...Ton]),gr=wn({},[...VJ,...Son]),hi=function(y){let k=v(y);(!k||!k.tagName)&&(k={namespaceURI:ot,tagName:"template"});const T=oV(y.tagName),O=oV(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]&&(li[T]||!mr[T]):!!(St==="application/xhtml+xml"&&gn[y.namespaceURI]):!1},rt=function(y){XE(e.removed,{element:y});try{v(y).removeChild(y)}catch{g(y)}},st=function(y,k){try{XE(e.removed,{attribute:k.getAttributeNode(y),from:k})}catch{XE(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=IJ(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){XI(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)&&Zi(/<[/\w!]/g,y.innerHTML)&&Zi(/<[/\w!]/g,y.textContent)||y.nodeType===tA.progressingInstruction||G&&y.nodeType===tA.comment&&Zi(/<[/\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&&Zi(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&&!hi(y)||(T==="noscript"||T==="noembed"||T==="noframes")&&Zi(/<\/no(script|embed|frames)/i,y.innerHTML)?(rt(y),!0):(V&&y.nodeType===tA.text&&(k=y.textContent,XI([A,B,I],O=>{k=QE(k,O," ")}),y.textContent!==k&&(XE(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 di))return!1;if(!(ct&&!de[k]&&Zi(W,k))&&!(ft&&Zi(P,k))&&!(J.attributeCheck instanceof Function&&J.attributeCheck(k,y))){if(!$[k]||de[k]){if(!(xr(y)&&(M.tagNameCheck instanceof RegExp&&Zi(M.tagNameCheck,y)||M.tagNameCheck instanceof Function&&M.tagNameCheck(y))&&(M.attributeNameCheck instanceof RegExp&&Zi(M.attributeNameCheck,k)||M.attributeNameCheck instanceof Function&&M.attributeNameCheck(k,y))||k==="is"&&M.allowCustomizedBuiltInElements&&(M.tagNameCheck instanceof RegExp&&Zi(M.tagNameCheck,T)||M.tagNameCheck instanceof Function&&M.tagNameCheck(T))))return!1}else if(!Ht[k]&&!Zi(se,QE(T,pe,""))&&!((k==="src"||k==="xlink:href"||k==="href")&&y!=="script"&&von(T,"data:")===0&&en[y])&&!(dt&&!Zi(H,QE(T,pe,"")))&&T)return!1}return!0},xr=function(y){return y!=="annotation-xml"&&IJ(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:won(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&&Zi(/((--!?|])>)|<\/(style|title|textarea)/i,ce)){st(K,y);continue}if(xe==="attributename"&&IJ(ce,"href")){st(K,y);continue}if(T.forceKeepAttr)continue;if(!T.keepAttr){st(K,y);continue}if(!z&&Zi(/\/>/i,ce)){st(K,y);continue}V&&XI([A,B,I],Oo=>{ce=QE(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):kSe(e.removed)}catch{st(K,y)}}Xe(E.afterSanitizeAttributes,y,null)},fi=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 ZE("dirty is not a string, aborting")}else throw ZE("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 ZE("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===tA.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&&fi(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&&Zi(gKe,T.ownerDocument.doctype.name)&&(we="<!DOCTYPE "+T.ownerDocument.doctype.name+`>
|
|
240
240
|
`+we),V&&XI([A,B,I],xe=>{we=QE(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"&&XE(E[y],k)},e.removeHook=function(y,k){if(k!==void 0){const T=Con(E[y],k);return T===-1?void 0:bon(E[y],T,1)[0]}return kSe(E[y])},e.removeHooks=function(y){E[y]=[]},e.removeAllHooks=function(){E=_Se()},e}yKe();function Bon(t,e){e=Array.isArray(e)?e.slice(0,-1).map(n=>`'${n}'`).join(", ")+` or '${e.at(-1)}'`:`'${e}'`}const Xc=typeof window<"u",Ion=Xc&&("ontouchstart"in window||window.navigator.maxTouchPoints>0),$on=Xc&&"matchMedia"in window&&typeof window.matchMedia=="function";function Pon(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 RSe(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(/^\./,""),Pon(t,e.split("."),n))}function CKe(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return Array.from({length:t},(n,r)=>e+r)}function DSe(t){let e;return t!==null&&typeof t=="object"&&((e=Object.getPrototypeOf(t))===Object.prototype||e===null)}function HJ(t,e){return e.every(n=>t.hasOwnProperty(n))}function Von(t,e){const n={};for(const r of e)Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}function zon(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 NSe(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 LSe(t,e){return(arguments.length>2&&arguments[2]!==void 0?arguments[2]:"0").repeat(Math.max(0,e-t.length))+t}function Hon(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 Kp(){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(DSe(i)&&DSe(s)){r[o]=Kp(i,s,n);continue}if(n&&Array.isArray(i)&&Array.isArray(s)){r[o]=n(i,s);continue}r[o]=s}return r}function mT(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";if(mT.cache.has(t))return mT.cache.get(t);const e=t.replace(/[^a-z]/gi,"-").replace(/\B([A-Z])/g,"-$1").toLowerCase();return mT.cache.set(t,e),e}mT.cache=new Map;const Hw=2.4,MSe=.2126729,OSe=.7151522,BSe=.072175,Won=.55,jon=.58,Uon=.57,Kon=.62,ZI=.03,ISe=1.45,qon=5e-4,Jon=1.25,Gon=1.25,$Se=.078,PSe=12.82051282051282,e$=.06,VSe=.001;function zSe(t,e){const n=(t.r/255)**Hw,r=(t.g/255)**Hw,o=(t.b/255)**Hw,i=(e.r/255)**Hw,s=(e.g/255)**Hw,a=(e.b/255)**Hw;let l=n*MSe+r*OSe+o*BSe,u=i*MSe+s*OSe+a*BSe;if(l<=ZI&&(l+=(ZI-l)**ISe),u<=ZI&&(u+=(ZI-u)**ISe),Math.abs(u-l)<qon)return 0;let c;if(u>l){const d=(u**Won-l**jon)*Jon;c=d<VSe?0:d<$Se?d-d*PSe*e$:d-e$}else{const d=(u**Kon-l**Uon)*Gon;c=d>-VSe?0:d>-$Se?d-d*PSe*e$:d+e$}return c*100}const wW=.20689655172413793,Yon=t=>t>wW**3?Math.cbrt(t):t/(3*wW**2)+4/29,Xon=t=>t>wW?t**3:3*wW**2*(t-4/29);function bKe(t){const e=Yon,n=e(t[1]);return[116*n-16,500*(e(t[0]/.95047)-n),200*(n-e(t[2]/1.08883))]}function vKe(t){const e=Xon,n=(t[0]+16)/116;return[e(n+t[1]/500)*.95047,e(n),e(n-t[2]/200)*1.08883]}const Qon=[[3.2406,-1.5372,-.4986],[-.9689,1.8758,.0415],[.0557,-.204,1.057]],Zon=t=>t<=.0031308?t*12.92:1.055*t**(1/2.4)-.055,ein=[[.4124,.3576,.1805],[.2126,.7152,.0722],[.0193,.1192,.9505]],tin=t=>t<=.04045?t/12.92:((t+.055)/1.055)**2.4;function wKe(t){const e=Array(3),n=Zon,r=Qon;for(let o=0;o<3;++o)e[o]=Math.round(zon(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 Dde(t){let{r:e,g:n,b:r}=t;const o=[0,0,0],i=tin,s=ein;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 HSe=/^(?<fn>(?:rgb|hsl)a?)\((?<values>.+)\)/,nin={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)=>WSe({h:t,s:e,l:n,a:r}),hsla:(t,e,n,r)=>WSe({h:t,s:e,l:n,a:r}),hsv:(t,e,n,r)=>BL({h:t,s:e,v:n,a:r}),hsva:(t,e,n,r)=>BL({h:t,s:e,v:n,a:r})};function np(t){if(typeof t=="number")return{r:(t&16711680)>>16,g:(t&65280)>>8,b:t&255};if(typeof t=="string"&&HSe.test(t)){const{groups:e}=t.match(HSe),{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 nin[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,oin(e)}else if(typeof t=="object"){if(HJ(t,["r","g","b"]))return t;if(HJ(t,["h","s","l"]))return BL(xKe(t));if(HJ(t,["h","s","v"]))return BL(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 BL(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 WSe(t){return BL(xKe(t))}function xKe(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 t$(t){const e=Math.round(t).toString(16);return("00".substr(0,2-e.length)+e).toUpperCase()}function rin(t){let{r:e,g:n,b:r,a:o}=t;return`#${[t$(e),t$(n),t$(r),o!==void 0?t$(Math.round(o*255)):""].join("")}`}function oin(t){t=iin(t);let[e,n,r,o]=Hon(t,2).map(i=>parseInt(i,16));return o=o===void 0?o:o/255,{r:e,g:n,b:r,a:o}}function iin(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=NSe(NSe(t,6),8,"F")),t}function sin(t,e){const n=bKe(Dde(t));return n[0]=n[0]+e*10,wKe(vKe(n))}function ain(t,e){const n=bKe(Dde(t));return n[0]=n[0]-e*10,wKe(vKe(n))}function lin(t){const e=np(t);return Dde(e)[1]}function uin(t){const e=Math.abs(zSe(np(0),np(t)));return Math.abs(zSe(np(16777215),np(t)))>Math.min(e,50)?"#fff":"#000"}function kKe(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 Nde(t,e){const n=Mi();if(!n)throw new Error(`[Vuetify] ${t} must be called from inside a setup function`);return n}function cin(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Nde("injectSelf");const{provides:n}=e;if(n&&t in n)return n[t]}const IL=Symbol.for("vuetify:defaults");function din(t){return Wn(t)}function TKe(){const t=Qt(IL);if(!t)throw new Error("[Vuetify] Could not find defaults instance");return t}function hin(t,e){return t.props&&(typeof t.props[e]<"u"||typeof t.props[mT(e)]<"u")}function fin(){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]:TKe();const r=Nde("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(hin(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=cin(IL,r);Sr(IL,Q(()=>s.value?Kp(l?.value??{},s.value):l?.value))}return{props:i,provideSubDefaults:a}}function MO(t){if(t._setup=t._setup??t.setup,!t.name)return t;if(t._setup){t.props=kKe(t.props??{},t.name)();const e=Object.keys(t.props).filter(n=>n!=="class"&&n!=="style");t.filterProps=function(n){return Von(n,e)},t.props._as=String,t.setup=function(n,r){const o=TKe();if(!o.value)return t._setup(n,r);const{props:i,provideSubDefaults:s}=fin(n,n._as??t.name,o),a=t._setup(i,r);return s(),a}}return t}function pin(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return e=>(t?MO:pt)(e)}function SKe(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 min={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 gin(){return!0}function FKe(t,e,n){if(!t||EKe(t,n)===!1)return!1;const r=SKe(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 EKe(t,e){return(typeof e.value=="object"&&e.value.closeConditional||gin)(t)}function yin(t,e,n){const r=typeof n.value=="function"?n.value:n.value.handler;t.shadowTarget=t.target,e._clickOutside.lastMousedownWasOutside&&FKe(t,e,n)&&setTimeout(()=>{EKe(t,n)&&r&&r(t)},0)}function jSe(t,e){const n=SKe(t);e(document),typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&e(n)}const Cin={mounted(t,e){const n=o=>yin(o,t,e),r=o=>{t._clickOutside.lastMousedownWasOutside=FKe(o,t,e)};jSe(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&&(jSe(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 bin(t,e){let n;function r(){n=TT(),n.run(()=>e.length?e(()=>{n?.stop(),r()}):e())}En(t,o=>{o&&!n?r():o||(n?.stop(),n=void 0)},{immediate:!0}),em(()=>{n?.stop()})}const USe=Symbol.for("vuetify:display"),KSe={mobileBreakpoint:"lg",thresholds:{xs:0,sm:600,md:960,lg:1280,xl:1920,xxl:2560}},vin=function(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:KSe;return Kp(KSe,t)};function qSe(t){return Xc&&!t?window.innerWidth:typeof t=="object"&&t.clientWidth||0}function JSe(t){return Xc&&!t?window.innerHeight:typeof t=="object"&&t.clientHeight||0}function GSe(t){const e=Xc&&!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:Ion,ssr:e==="ssr"}}function win(t,e){const{thresholds:n,mobileBreakpoint:r}=vin(t),o=Dn(JSe(e)),i=Dn(GSe(e)),s=Xt({}),a=Dn(qSe(e));function l(){o.value=JSe(),a.value=qSe()}function u(){l(),i.value=GSe()}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}),Xc&&(window.addEventListener("resize",l,{passive:!0}),em(()=>{window.removeEventListener("resize",l)},!0)),{...Rae(s),update:u,ssr:!!e}}function xin(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=Nde("useProxiedModel"),s=Wn(t[e]!==void 0?t[e]:n),a=mT(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}`))));bin(()=>!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 kin={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"}}},YSe="$vuetify.",XSe=(t,e)=>t.replace(/\{(\d+)\}/g,(n,r)=>String(e[Number(r)])),AKe=(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(YSe))return XSe(r,i);const a=r.replace(YSe,""),l=t.value&&n.value[t.value],u=e.value&&n.value[e.value];let c=RSe(l,a,null);return c||(`${r}${t.value}`,c=RSe(u,a,null)),c||(c=r),typeof c!="string"&&(c=r),XSe(c,i)};function Lde(t,e){return(n,r)=>new Intl.NumberFormat([t.value,e.value],r).format(n)}function _Ke(t,e){return Lde(t,e)(.1).includes(",")?",":"."}function WJ(t,e,n){const r=xin(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 RKe(t){return e=>{const n=WJ(e,"locale",t.current),r=WJ(e,"fallback",t.fallback),o=WJ(e,"messages",t.messages);return{name:"vuetify",current:n,fallback:r,messages:o,decimalSeparator:ve(()=>_Ke(n,r)),t:AKe(n,r,o),n:Lde(n,r),provide:RKe({current:n,fallback:r,messages:o})}}}function Tin(t){const e=Dn(t?.locale??"en"),n=Dn(t?.fallback??"en"),r=Wn({en:kin,...t?.messages});return{name:"vuetify",current:e,fallback:n,messages:r,decimalSeparator:ve(()=>t?.decimalSeparator??_Ke(e,n)),t:AKe(e,n,r),n:Lde(e,n),provide:RKe({current:e,fallback:n,messages:r})}}const QSe=Symbol.for("vuetify:locale");function Sin(t){return t.name!=null}function Fin(t){const e=t?.adapter&&Sin(t?.adapter)?t?.adapter:Tin(t),n=Ain(e,t);return{...e,...n}}function Ein(){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 Ain(t,e){const n=Wn(e?.rtl??Ein()),r=Q(()=>n.value[t.current.value]??!1);return{isRtl:r,rtl:n,rtlClasses:ve(()=>`v-locale--is-${r.value?"rtl":"ltr"}`)}}const ZSe=Symbol.for("vuetify:theme");function eFe(){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 _in(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:eFe();const e=eFe();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]=Kp(i,o)}return Kp(e,{...t,themes:n})}function SC(t,e,n,r){t.push(`${Lin(e,r)} {
|
|
242
242
|
`,...n.map(o=>` ${o};
|
package/package.json
CHANGED