@retailrocketgroup/retailrocket-create.abandoned-view-na-vue-email-template-render 5.0.384530 → 5.0.384767

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -191,7 +191,7 @@ Expected #hex, #hexa, rgb(), rgba(), hsl(), hsla(), object or number`)}function
191
191
  ${t.Width}px
192
192
  dotted
193
193
  ${OR({borderColor:t.Color,themeColors:e})}
194
- `}),gd=t=>({borderTop:NE(t.border.Top,t.themeColors),borderRight:NE(t.border.Right,t.themeColors),borderBottom:NE(t.border.Bottom,t.themeColors),borderLeft:NE(t.border.Left,t.themeColors)}),Pw=t=>t.borderCollapse!==void 0?{borderCollapse:vgt(t.borderCollapse)}:{borderCollapse:"collapse"},vgt=t=>{switch(t){case"Collapse":return"collapse";case"Separate":return"separate";default:return ta(t)}},Tgt=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 ta(t.Discriminator)}}}),Ll=t=>Tgt(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}),cxe=t=>({Match:e=>{switch(t){case"Left":return e.Left();case"Center":return e.Center();case"Right":return e.Right();default:return ta(t)}}}),xgt=t=>t.containerAlign?cxe(t.containerAlign).Match({Left:()=>({textAlign:"left"}),Center:()=>({textAlign:"center"}),Right:()=>({textAlign:"right"})}):{},Vc=t=>t.containerAlign?cxe(t.containerAlign).Match({Left:()=>"left",Center:()=>"center",Right:()=>"right"}):"center",Fgt=Xe({__name:"If",props:{deps:{},theme:{},element:{},path:{},selectedElementPath:{},context:{type:[String,Number,Boolean,Array,Object]}},emits:["onImageOriginalSizeAdjusted","onImageSizeAdjusted","onElementClicked","onElementUpdatedEvent","onElementRemoved"],setup(t,{emit:e}){const n=t,o=e,r=Vt({ifResult:!1,isLoading:!0});return n.deps.boolExpressionEvaluator({boolExpression:n.element.Predicate,context:n.context}).then(i=>{r.ifResult=i,r.isLoading=!1}),(i,s)=>(O(!0),J(rt,null,$n(r.ifResult?n.element.True:n.element.False,(a,l)=>(O(),Ze(Fl,{key:l,deps:n.deps,theme:n.theme,element:a,context:n.context,path:[...n.path,r.ifResult?"True":"False",l],selectedElementPath:n.selectedElementPath,onOnImageSizeAdjusted:s[0]||(s[0]=u=>o("onImageSizeAdjusted",u)),onOnImageOriginalSizeAdjusted:s[1]||(s[1]=u=>o("onImageOriginalSizeAdjusted",u)),onOnElementClicked:s[2]||(s[2]=u=>o("onElementClicked",u)),onOnElementUpdatedEvent:s[3]||(s[3]=u=>o("onElementUpdatedEvent",u)),onOnElementRemoved:s[4]||(s[4]=u=>o("onElementRemoved",u))},null,8,["deps","theme","element","context","path","selectedElementPath"]))),128))}}),Ww=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"}),Sgt=nc,wgt=t=>Sgt(t.width).Match({Auto:()=>"initial",Pixel:e=>e.Value+"px",Percentage:e=>e.Value+"%"}),kgt=["align"],Egt=Xe({__name:"HeightContainer",props:{deps:{},theme:{},element:{},path:{},selectedElementPath:{},context:{type:[String,Number,Boolean,Array,Object]}},emits:["onImageOriginalSizeAdjusted","onImageSizeAdjusted","onElementClicked","onElementUpdatedEvent","onElementRemoved"],setup(t,{emit:e}){const n=t,o=e;return(r,i)=>(O(),J("table",{class:"heightContainerRender",style:he([{"border-spacing":"0","border-collapse":"separate"},{width:z(wgt)({width:n.element.Width})}])},[_("tbody",null,[_("tr",null,[_("td",{align:z(Vc)({containerAlign:n.element.ContainerAlign}),style:he([z(Ww)({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:z(Ll)({color:n.element.BackgroundColor,themeColors:n.theme.Colors})??"inherit"},z(gd)({border:n.element.Border,themeColors:n.theme.Colors}),z(Wu)({borderRadius:n.element.BorderRadius,borderRadiusCard:n.theme.BorderRadiusCard,bodyBorderRadius:n.theme.BorderRadius,borderButtonRadius:n.theme.BorderRadiusButton,borderBannerRadius:n.theme.BorderRadiusBanner})])},[(O(!0),J(rt,null,$n(n.element.Elements,(s,a)=>(O(),Ze(Fl,{key:a,deps:n.deps,theme:n.theme,element:s,path:[...n.path,"Elements",a],selectedElementPath:n.selectedElementPath,context:n.context,onOnImageSizeAdjusted:i[0]||(i[0]=l=>o("onImageSizeAdjusted",l)),onOnImageOriginalSizeAdjusted:i[1]||(i[1]=l=>o("onImageOriginalSizeAdjusted",l)),onOnElementClicked:i[2]||(i[2]=l=>o("onElementClicked",l)),onOnElementUpdatedEvent:i[3]||(i[3]=l=>o("onElementUpdatedEvent",l)),onOnElementRemoved:i[4]||(i[4]=l=>o("onElementRemoved",l))},null,8,["deps","theme","element","path","selectedElementPath","context"]))),128))],12,kgt)])])],4))}}),_gt=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()}}}),wb=t=>_gt(t.contentAlign).Match({Left:()=>({display:"block",textAlign:"left"}),Center:()=>({display:"block",textAlign:"center"}),Right:()=>({display:"block",textAlign:"right"}),Inline:()=>({})});let nP;const CS={mounted(t,e){const n=e.value;nP=new ResizeObserver(o=>{o.forEach(r=>n(r.contentRect))}),nP.observe(t)},unmounted(t){nP.unobserve(t)}},Rgt=["href"],Dgt=["src","alt"],Agt=["src","alt"],Ngt=Xe({__name:"Image",props:{deps:{},theme:{},element:{},path:{},context:{type:[String,Number,Boolean,Array,Object]}},emits:["onImageOriginalSizeAdjusted","onImageSizeAdjusted","onElementClicked"],setup(t,{emit:e}){const n=c=>{u("onImageOriginalSizeAdjusted",{Path:o.path,OriginalHeight:c.target.naturalHeight,OriginalWidth:c.target.naturalWidth})},o=t,r=Vt({href:"",src:"",alt:"",isLoaded:!1}),i=q(()=>o.element.IsResponsive?"100%":(o.element.IsRetina?o.element.OriginalWidth/2:o.element.OriginalWidth)+"px"),s=q(()=>o.element.IsResponsive?(o.element.IsRetina?o.element.OriginalWidth/2:o.element.OriginalWidth)+"px":"100%"),a=async c=>o.deps.stringExpressionEvaluator({stringExpression:c,context:o.context}),l=async()=>{const[c,d,h]=await Promise.all([a(o.element.Src),a(o.element.HRef),a(o.element.Alt)]);r.href=d,r.src=c,r.alt=h,r.isLoaded=!0};an(()=>[o.element.Src,o.element.HRef,o.element.Alt,o.context],()=>l()),l();const u=e;return(c,d)=>o.element.IsLink?(O(),J("a",{key:0,href:r.href,style:he([z(wb)({contentAlign:o.element.ContentAlign})]),onClick:d[0]||(d[0]=Wo(()=>u("onElementClicked"),["prevent"]))},[r.isLoaded?Ot((O(),J("img",{key:0,class:$e(["Image cursor-pointer",{"img-responsive":o.element.IsResponsive}]),src:r.src,alt:r.alt,style:he([z(Wu)({borderRadius:o.element.BorderRadius,borderRadiusCard:o.theme.BorderRadiusCard,bodyBorderRadius:o.theme.BorderRadius,borderButtonRadius:o.theme.BorderRadiusButton,borderBannerRadius:o.theme.BorderRadiusBanner}),z(gd)({border:o.element.Border,themeColors:o.theme.Colors}),{width:i.value,maxWidth:s.value},{verticalAlign:o.element.VerticalAlign}]),onLoad:n},null,46,Dgt)),[[z(CS),({width:h,height:m})=>u("onImageSizeAdjusted",{Path:o.path,AdjustedHeight:m,AdjustedWidth:h})]]):Ue("",!0)],12,Rgt)):(O(),J("span",{key:1,style:he([z(wb)({contentAlign:o.element.ContentAlign})])},[r.isLoaded?Ot((O(),J("img",{key:0,class:$e(["Image cursor-pointer",{"img-responsive":o.element.IsResponsive}]),src:r.src,alt:r.alt,style:he([z(Wu)({borderRadius:o.element.BorderRadius,borderRadiusCard:o.theme.BorderRadiusCard,bodyBorderRadius:o.theme.BorderRadius,borderButtonRadius:o.theme.BorderRadiusButton,borderBannerRadius:o.theme.BorderRadiusBanner}),z(gd)({border:o.element.Border,themeColors:o.theme.Colors}),{width:i.value,maxWidth:s.value},{verticalAlign:o.element.VerticalAlign}]),onLoad:n},null,46,Agt)),[[z(CS),({width:h,height:m})=>u("onImageSizeAdjusted",{Path:o.path,AdjustedHeight:m,AdjustedWidth:h})]]):Ue("",!0)],4))}}),ot=(t,e)=>{const n=t.__vccOpts||t;for(const[o,r]of e)n[o]=r;return n},Bgt=ot(Ngt,[["__scopeId","data-v-83688a51"]]),Lgt=nc,$gt=t=>t.width===void 0?{}:Lgt(t.width).Match({Auto:()=>({width:"auto"}),Pixel:e=>({width:e.Value+"px"}),Percentage:e=>({width:e.Value+"%"})}),Vgt=t=>{switch(t){case"Auto":return{width:"auto"};case"FullWidth":return{width:"100%"};default:return ta(t)}},Mgt=Xe({__name:"OneLineList",props:{deps:{},theme:{},element:{},path:{},selectedElementPath:{},context:{type:[String,Number,Boolean,Array,Object]}},emits:["onImageSizeAdjusted","onImageOriginalSizeAdjusted","onElementClicked","onElementUpdatedEvent","onElementRemoved"],setup(t,{emit:e}){const n=t,o=e;return(r,i)=>(O(),J("table",{class:"oneLineList",style:he([{"border-spacing":"0","border-collapse":"collapse"},[z(Vgt)(n.element.ContainerWidth)]])},[_("tbody",null,[_("tr",null,[(O(!0),J(rt,null,$n(n.element.Elements,(s,a)=>(O(),J("td",{key:a,class:"oneLineListItem",style:he([z(Ww)({paddings:n.element.ItemPaddings,themeComponentPaddings:n.theme.ComponentPaddings,themeBodyPaddings:n.theme.BodyPaddings}),z($gt)({width:n.element.ItemWidth}),{lineHeight:"normal"}])},[(O(),Ze(Fl,{key:a,deps:n.deps,theme:n.theme,element:s,path:[...n.path,"Elements",a],selectedElementPath:n.selectedElementPath,context:n.context,onOnImageSizeAdjusted:i[0]||(i[0]=l=>o("onImageSizeAdjusted",l)),onOnImageOriginalSizeAdjusted:i[1]||(i[1]=l=>o("onImageOriginalSizeAdjusted",l)),onOnElementClicked:i[2]||(i[2]=l=>o("onElementClicked",l)),onOnElementUpdatedEvent:i[3]||(i[3]=l=>o("onElementUpdatedEvent",l)),onOnElementRemoved:i[4]||(i[4]=l=>o("onElementRemoved",l))},null,8,["deps","theme","element","path","selectedElementPath","context"]))],4))),128))])])],4))}}),Ogt={style:{"border-spacing":"0","border-collapse":"collapse",width:"100%"}},Igt=Xe({__name:"Spacer",props:{theme:{},element:{}},emits:["onElementClicked"],setup(t,{emit:e}){const n=t,o=e;return(r,i)=>(O(),J("table",{class:"Spacer",width:"100%",style:{"border-spacing":"0","border-collapse":"collapse",width:"100%"},onClick:i[0]||(i[0]=()=>o("onElementClicked"))},[_("tbody",null,[_("tr",null,[_("td",{valign:"middle",style:he([{height:z(ko)({paddingExpression:n.element.Height,themeComponentPaddings:n.theme.ComponentPaddings,themeBodyPaddings:n.theme.BodyPaddings})+"px"}])},[_("table",Ogt,[_("tbody",null,[_("tr",null,[_("td",{style:he([[{borderTop:n.element.Weight+"px",borderStyle:n.element.Weight>0?"solid":"none",borderColor:z(Ll)({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)])])]))}}),P5={beforeMount(t,e){t.innerHTML=ZZ.sanitize(e.value)},beforeUpdate(t,e){t.innerHTML=ZZ.sanitize(e.value)}},Pgt=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)}}}),CM=t=>Pgt(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}),Wgt=t=>({Match:e=>{switch(t){case"None":return e.None();case"Underline":return e.Underline();case"LineThrough":return e.LineThrough()}}}),sU=t=>Wgt(t.textDecoration).Match({None:()=>"none",Underline:()=>"underline",LineThrough:()=>"line-through"}),dxe=t=>({fontSize:t.customFontSettings.FontSize,lineHeight:t.customFontSettings.LineHeight,fontWeight:t.customFontSettings.IsBold?"bold":"normal",fontStyle:t.customFontSettings.IsItalic?"italic":"normal",textDecoration:sU({textDecoration:t.customFontSettings.Decoration}),fontFamily:t.customFontSettings.FontFamily,color:CM({fontColor:t.customFontSettings.FontColor,themeColors:t.themeColors})}),hxe=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 ta(t.Discriminator)}}}),Hgt=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)}}}),zgt=t=>Hgt(t.fontStyleColor).Match({FontStyle:()=>hxe(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=>Ll({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}),mxe=["Arial","Georgia","Tahoma","TimesNewRoman","Verdana"],W5={Arial:"Arial",Georgia:"Georgia",Tahoma:"Tahoma",TimesNewRoman:"Times New Roman",Verdana:"Verdana"},aU=t=>({fontSize:t.fontSize+"px",lineHeight:t.lineHeight+"px",fontWeight:t.fontWeight,fontStyle:t.fontStyle,fontFamily:W5[t.fontFamily],textDecoration:t.textDecoration,color:t.color}),lU=t=>{const e=n=>({fontSize:n.FontSize,lineHeight:n.LineHeight,fontWeight:n.IsBold?"bold":"normal",fontStyle:n.IsItalic?"italic":"normal",fontFamily:t.fontFamily,textDecoration:sU({textDecoration:n.Decoration}),color:zgt({fontStyleColor:t.fontStyle.FontColor,fontStyle:t.fontStyle,themeColors:t.themeColors})});return hxe(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=>dxe({customFontSettings:n,themeColors:t.themeColors})})},jgt=t=>({Match:e=>{switch(t.Discriminator){case"Theme":return e.Theme();case"Custom":return e.Custom(t.CustomValue);default:return ta(t.Discriminator)}}}),Ugt=t=>jgt(t.buttonPaddings).Match({Theme:()=>({TopBottom:t.themeButtonPaddings.TopBottom,LeftRight:t.themeButtonPaddings.LeftRight}),Custom:e=>({TopBottom:e.TopBottom,LeftRight:e.LeftRight})}),Kgt=["align"],qgt={class:"Button"},Jgt=["href"],Ggt=Xe({__name:"ButtonVue",props:{deps:{},theme:{},element:{},context:{type:[String,Number,Boolean,Array,Object]}},emits:["onElementClicked"],setup(t,{emit:e}){const n=t,o=q(()=>aU(lU({fontFamily:n.theme.FontFamily,fontStyle:n.element.TextStyle,themeDefinedFontSettings:n.theme.FontSettingsPresets,themeColors:n.theme.Colors}))),r=q(()=>OR({borderColor:n.element.Border.Left.Color,themeColors:n.theme.Colors})),i=q(()=>Ugt({buttonPaddings:n.element.Paddings,themeButtonPaddings:n.theme.ButtonPaddings})),s=q(()=>Ll({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=Vt({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,m])=>{l.href=h,l.text=m,l.isLoading=!1})};c(),an(()=>[n.element.HRef,n.element.Text,n.context],()=>c());const d=e;return(h,m)=>(O(),J("table",{style:{"border-spacing":"0","border-collapse":"collapse",width:"100%"},onClick:m[1]||(m[1]=Wo(f=>d("onElementClicked"),["prevent"]))},[_("tbody",null,[_("tr",null,[_("td",{align:a.value},[_("div",qgt,[_("a",{style:he([{display:"block","text-decoration":"none"},[o.value]]),href:l.href,onClick:m[0]||(m[0]=Wo(()=>{},["prevent"]))},[_("table",{style:he([[{backgroundColor:s.value},z(Wu)({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"},z(gd)({border:n.element.Border,themeColors:t.theme.Colors}),{borderColor:r.value}],{"text-align":"center","border-spacing":"0","border-collapse":"separate"}])},[_("tbody",null,[_("tr",null,[_("td",{align:"center",style:he([{"line-height":"normal"},[{paddingTop:i.value.TopBottom+"px",paddingBottom:i.value.TopBottom+"px",paddingLeft:i.value.LeftRight+"px",paddingRight:i.value.LeftRight+"px"}]])},[Ot(_("p",{class:"user-select-none",style:he([o.value])},null,4),[[z(P5),l.text]])],4)])])],4)],12,Jgt)])],8,Kgt)])])]))}}),Ygt=ot(Ggt,[["__scopeId","data-v-f2906df7"]]),Xgt=["href"],Qgt=Xe({__name:"SpanText",props:{deps:{},theme:{},element:{},context:{type:[String,Number,Boolean,Array,Object]}},emits:["onElementClicked"],setup(t,{emit:e}){const n=t,o=n.deps.stringExpressionEvaluator,r=q(()=>{const u=lU({fontFamily:n.theme.FontFamily,fontStyle:n.element.Style,themeDefinedFontSettings:n.theme.FontSettingsPresets,themeColors:n.theme.Colors});if(n.element.Style.Discriminator==="Custom"){const c=dxe({customFontSettings:n.element.Style.CustomFontSettings,themeColors:n.theme.Colors});return{...c,fontSize:c.fontSize+"px",lineHeight:c.lineHeight+"px",minHeight:n.element.MinNumberOfLines*u.lineHeight+"px"}}return{minHeight:n.element.MinNumberOfLines*u.lineHeight+"px",color:u.color}}),i=Vt({href:"",text:"",isLoading:!0}),s=u=>u.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#039;"),a=()=>{Promise.all([o({stringExpression:n.element.HRef,context:n.context}),o({stringExpression:n.element.Text,context:n.context})]).then(([u,c])=>{i.href=u,i.text=s(c),i.isLoading=!1})};a(),an(()=>[n.context,n.element.HRef,n.element.Text],()=>a());const l=e;return(u,c)=>n.element.IsLink?Ot((O(),J("a",{key:0,href:i.href,class:$e(["SpanText cursor-pointer user-select-none",n.element.Style.Discriminator]),style:he([{margin:"0"},[r.value,z(wb)({contentAlign:n.element.ContentAlign})]]),onClick:c[0]||(c[0]=Wo(()=>l("onElementClicked"),["prevent"]))},null,14,Xgt)),[[z(P5),i.text]]):Ot((O(),J("span",{key:1,class:$e(["SpanText cursor-pointer user-select-none",n.element.Style.Discriminator]),style:he([{margin:"0"},[r.value,z(wb)({contentAlign:n.element.ContentAlign})]]),onClick:c[1]||(c[1]=Wo(()=>l("onElementClicked"),["prevent"]))},null,6)),[[z(P5),i.text]])}}),Zgt=ot(Qgt,[["__scopeId","data-v-f6595f5e"]]),ls=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:sU({textDecoration:t.themeFontSettings.Decoration}),color:t.themeColor}),eCt={class:"bootstrap-styles modal fade show d-block position-absolute"},tCt={class:"bootstrap-styles modal-dialog modal-dialog-centered"},nCt={class:"bootstrap-styles modal-content border rounded-3 shadow","data-test":"modal-window__content"},oCt={class:"bootstrap-styles modal-header p-0"},rCt={class:"bootstrap-styles container-fluid border-bottom g-0"},iCt={class:"bootstrap-styles d-flex justify-content-between align-items-center px-11 py-7"},sCt={class:"bootstrap-styles modal-title border-0","data-test":"modal-window__header-text"},aCt={class:"bootstrap-styles modal-body p-0","data-test":"modal-window__body"},lCt={class:"bootstrap-styles modal-footer p-0 g-0"},uCt={class:"bootstrap-styles container-fluid border-top"},cCt={class:"bootstrap-styles d-flex justify-content-end py-8 px-11"},dCt={class:"bootstrap-styles col-6 d-flex justify-content-end","data-test":"modal-window__footer-actions"},hCt=Xe({__name:"ModalWindow",props:{headerText:{}},emits:["close"],setup(t,{emit:e}){const n=t,o=e;return(r,i)=>(O(),J("div",eCt,[_("div",{class:"bootstrap-styles modal-blur d-block position-fixed top-0 left-0 w-100 vh-100","data-test":"modal-window__outside",onClick:i[0]||(i[0]=s=>o("close"))}),_("div",tCt,[_("div",nCt,[_("div",oCt,[_("div",rCt,[_("div",iCt,[_("h5",sCt,Gt(n.headerText),1),_("button",{type:"button","aria-label":"Close","data-bs-dismiss":"modal","data-test":"modal-window__close-button",onClick:i[1]||(i[1]=s=>o("close"))},[...i[2]||(i[2]=[_("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},[_("path",{d:"M3 3L13 13",stroke:"var(--gray-500)"}),_("path",{d:"M13 3L3 13",stroke:"var(--gray-500)"})],-1)])])])])]),_("div",aCt,[Y0(r.$slots,"body",{},void 0,!0)]),_("div",lCt,[_("div",uCt,[_("div",cCt,[_("div",dCt,[Y0(r.$slots,"footer-actions",{},void 0,!0)])])])])])])]))}}),fxe=ot(hCt,[["__scopeId","data-v-7a4aac23"]]),Xn=t=>e=>t[e.localeKey],mCt={cancelButton:"Cancel",applyButton:"Delete"},fCt={cancelButton:"Отмена",applyButton:"Удалить"},moe=Xn({en:mCt,ru:fCt}),pCt={class:"bootstrap-styles px-11 py-7 text-start"},gCt=Xe({__name:"RemoveConfirmModalWindow",props:{headerText:{},deps:{}},emits:["cancel","confirmed"],setup(t,{emit:e}){const n=t,o=()=>{i("cancel")},r={cancelButton:moe({localeKey:n.deps.localeKey}).cancelButton,applyButton:moe({localeKey:n.deps.localeKey}).applyButton},i=e;return(s,a)=>(O(),Ze(fxe,{headerText:n.headerText,class:"remove-element-confirm-modal-window",onClose:a[2]||(a[2]=()=>o())},{body:Fu(()=>[_("div",pCt,[Y0(s.$slots,"body-content")])]),"footer-actions":Fu(()=>[_("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]=Wo(l=>o(),["stop"]))},Gt(r.cancelButton),1),_("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]=Wo(l=>i("confirmed"),["stop"]))},Gt(r.applyButton),1)]),_:3},8,["headerText"]))}}),CCt={removeWindowTitle:"Delete element",removeWindowDescription:"Are you sure you want to delete the text element?"},yCt={removeWindowTitle:"Удаление элемента",removeWindowDescription:"Вы действительно хотите удалить элемент ?"},foe=Xn({en:CCt,ru:yCt}),poe=t=>({type:"doc",content:t.Content.map(bCt)}),bCt=t=>"ParagraphNode"in t?Cxe(t):"BulletListNode"in t?vCt(t):"OrderedListNode"in t?TCt(t):"DataFieldNode"in t?gxe(t):ta(t),pxe=t=>({type:"listItem",content:t.Content.map(e=>"ParagraphNode"in e?Cxe(e):"ImageNode"in e?yxe(e):ta(e))}),gxe=t=>({type:"dataField",marks:uU({textStyle:t.DataFieldNode.TextStyle,commonLinkMark:t.DataFieldNode.CommonLinkMark}),attrs:{stringExpression:t.DataFieldNode.StringExpression}}),vCt=t=>({type:"bulletList",content:t.BulletListNode.Content.map(pxe),attrs:{themeName:t.BulletListNode.ListStyle}}),TCt=t=>({type:"orderedList",content:t.OrderedListNode.Content.map(pxe),attrs:{themeName:t.OrderedListNode.ListStyle}}),Cxe=t=>({type:"paragraph",attrs:{themeName:t.ParagraphNode.ThemeName},content:t.ParagraphNode.Content.map(xCt)}),xCt=t=>"TextNode"in t?FCt(t):"HardBreakNode"in t?DCt():"ImageNode"in t?yxe(t):"DataFieldNode"in t?gxe(t):ta(t),uU=t=>{const e=[];return t.textStyle&&e.push(_Ct(t.textStyle)),t.commonLinkMark&&e.push(RCt(t.commonLinkMark)),e.filter(n=>n!==void 0)},FCt=t=>({type:"text",text:t.TextNode.Text,marks:uU({textStyle:t.TextNode.TextStyle,commonLinkMark:t.TextNode.CommonLinkMark})}),SCt=t=>{switch(t){case"Normal":return"normal";case"Bold":return"bold";default:return"normal"}},wCt=t=>{switch(t){case"Normal":return"normal";case"Italic":return"italic";default:return"normal"}},kCt=t=>{switch(t){case"None":return"none";case"Uppercase":return"uppercase";default:return"none"}},ECt=t=>{switch(t){case"None":return"none";case"Underline":return"underline";case"LineThrough":return"line-through";default:return"none"}},_Ct=t=>({type:"textStyle",attrs:{themeName:t.ThemeName,color:t.Style.Color,fontWeight:t.Style.FontWeight?SCt(t.Style.FontWeight):void 0,fontStyle:t.Style.FontStyle?wCt(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?kCt(t.Style.TextTransform):void 0,textDecoration:t.Style.TextDecoration?ECt(t.Style.TextDecoration):void 0}}),RCt=t=>nc(t).Match({LinkMark:e=>ACt({LinkMark:e}),UnsubscribeLinkMark:()=>NCt()}),DCt=()=>({type:"hardBreak"}),yxe=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:uU({commonLinkMark:t.ImageNode.CommonLinkMark})}),ACt=t=>({type:"link",attrs:{href:t.LinkMark.Href}}),NCt=()=>({type:"unsubscribeLink"}),bxe=tc.create({name:"textTransform",addOptions(){return{types:["textStyle"]}},addGlobalAttributes(){return[{types:this.options.types,attributes:{textTransform:{default:"none",parseHTML:t=>t.style.textTransform,renderHTML:t=>t.textTransform?{style:`text-transform: ${t.textTransform}`}:{}}}}]},addCommands(){return{setTextTransform:t=>({chain:e})=>e().setMark("textStyle",{textTransform:t}).run(),unsetTextTransform:()=>({chain:t,state:e})=>{const{from:n,to:o,$from:r}=e.selection;return e.doc.textBetween(n,o," ").length?t().setMark("textStyle",{textTransform:"none"}).run():t().setTextSelection({from:r.pos-r.nodeBefore.nodeSize,to:r.pos+r.nodeAfter.nodeSize}).setMark("textStyle",{textTransform:"none"}).focus().run()}}},addKeyboardShortcuts(){const t=e=>e.isUppercase?this.editor.commands.unsetTextTransform():this.editor.commands.setTextTransform("uppercase");return{"Mod-Shift-u":()=>{const e=this.editor.isActive("textStyle",{textTransform:"uppercase"});return t({isUppercase:e})},"Mod-Shift-U":()=>{const e=this.editor.isActive("textStyle",{textTransform:"uppercase"});return t({isUppercase:e})}}}}),BCt=tc.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()}}}),LCt=tc.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()}}}),$Ct=t=>yn.create({name:"themeFontStyles",priority:1e3,addOptions(){return{types:["textStyle","bulletList","orderedList","paragraph"]}},addGlobalAttributes(){return[{types:this.options.types,attributes:{themeName:{default:t,parseHTML:e=>e.getAttribute("data-theme"),renderHTML:e=>e.themeName?{"data-theme":e.themeName,class:e.themeName}:{"data-theme":t,class:e.themeName}}}}]},addCommands(){return{setThemeSettings:e=>({chain:n,state:o})=>{const{$from:r}=o.selection,i=r.parent,s=r.index();return i.child(s).type.name==="image"?!1:n().setMark("textStyle",{themeName:e}).run()},applySiblingNodeThemeSettings:()=>({chain:e,state:n})=>{const{from:o,to:r,$from:i}=n.selection,s=i.parent,a=i.index(),l=i.node(i.depth)?.type.name==="dataField"||s.maybeChild(a)?.type.name==="dataField",u=s.child(a).type.name==="image",c=f=>{const p="NormalText",g=f.index>0?s.child(f.index-1):void 0,y=f.index+1<s.childCount?s.child(f.index+1):void 0,b=g??y;if(b){const F=b.marks.find(v=>v.type.name==="textStyle");if(F)return F.attrs.themeName}return p};if(l){const f=c({index:a});return e().unsetMark("textStyle",{extendEmptyMarkRange:!0}).setThemeSettings(f).run()}if(u)return!1;const d=c({index:a}),h=i.nodeBefore?i.pos-i.nodeBefore.nodeSize:o,m=i.nodeAfter?i.pos+i.nodeAfter.nodeSize:r;return e().setTextSelection({from:h,to:m}).setThemeSettings(d).run()}}},addProseMirrorPlugins(){return[new Yn({key:new Lo("syncBlockTheme"),appendTransaction:(e,n,o)=>{const r=o.tr;let i=!1;return o.doc.descendants((s,a)=>{if(s.type.name==="bulletList"||s.type.name==="orderedList"){const l=s.firstChild?.firstChild?.firstChild;if(l){const u=l.marks.find(c=>c.type.name==="textStyle")?.attrs.themeName;u&&s.attrs.themeName!==u&&(r.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&&(r.setNodeMarkup(a,void 0,{...s.attrs,themeName:u}),i=!0)}}}),i?r:null}})]}}),VCt=tc.create({name:"fontWeight",addOptions(){return{types:["textStyle"]}},addGlobalAttributes(){return[{types:this.options.types,attributes:{fontWeight:{default:null,parseHTML:t=>t.style.fontWeight,renderHTML:t=>t.fontWeight?{style:`font-weight: ${t.fontWeight}`}:{}}}}]},addCommands(){return{setFontWeight:t=>({chain:e})=>e().setMark("textStyle",{fontWeight:t}).run(),unsetFontWeight:()=>({chain:t,state:e})=>{const{from:n,to:o,$from:r}=e.selection;return e.doc.textBetween(n,o," ").length?t().setMark("textStyle",{fontWeight:"normal"}).run():t().setTextSelection({from:r.pos-r.nodeBefore.nodeSize,to:r.pos+r.nodeAfter.nodeSize}).setMark("textStyle",{fontWeight:"normal"}).focus().run()},resetFontWeight:()=>({chain:t})=>t().setMark("textStyle",{fontWeight:null}).removeEmptyTextStyle().run()}},addKeyboardShortcuts(){const t=e=>e.isBold?this.editor.commands.unsetFontWeight():this.editor.commands.setFontWeight("bold");return{"Mod-b":()=>{const e=this.editor.isActive("textStyle",{fontWeight:"bold"});return t({isBold:e})},"Mod-B":()=>{const e=this.editor.isActive("textStyle",{fontWeight:"bold"});return t({isBold:e})}}}}),MCt=tc.create({name:"fontStyle",addOptions(){return{types:["textStyle"]}},addGlobalAttributes(){return[{types:this.options.types,attributes:{fontStyle:{default:null,parseHTML:t=>t.style.fontStyle,renderHTML:t=>t.fontStyle?{style:`font-style: ${t.fontStyle}`}:{}}}}]},addCommands(){return{setFontStyle:t=>({chain:e})=>e().setMark("textStyle",{fontStyle:t}).run(),unsetFontStyle:()=>({chain:t,state:e})=>{const{from:n,to:o,$from:r}=e.selection;return e.doc.textBetween(n,o," ").length?t().setMark("textStyle",{fontStyle:"normal"}).run():t().setTextSelection({from:r.pos-r.nodeBefore.nodeSize,to:r.pos+r.nodeAfter.nodeSize}).setMark("textStyle",{fontStyle:"normal"}).focus().run()},resetFontStyle:()=>({chain:t})=>t().setMark("textStyle",{fontStyle:null}).removeEmptyTextStyle().run()}},addKeyboardShortcuts(){const t=e=>e.isItalic?this.editor.commands.unsetFontStyle():this.editor.commands.setFontStyle("italic");return{"Mod-i":()=>{const e=this.editor.isActive("textStyle",{fontStyle:"italic"});return t({isItalic:e})},"Mod-I":()=>{const e=this.editor.isActive("textStyle",{fontStyle:"italic"});return t({isItalic:e})}}}}),cU=tc.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",Ei(this.options.HTMLAttributes,t),0]},addCommands(){return{setUnsubscribeLink:()=>({chain:t})=>t().setMark("unsubscribeLink").focus().run(),unsetUnsubscribeLink:()=>({chain:t,state:e})=>{const{from:n,to:o}=e.selection,r=e.doc.textBetween(n,o," ");return e.doc.nodeAt(n)?.type.name==="image"?t().unsetMark("unsubscribeLink").focus().run():r.length?t().setTextSelection({from:n,to:n+r.length}).unsetMark("unsubscribeLink").focus().run():t().unsetMark("unsubscribeLink",{extendEmptyMarkRange:!0}).focus().run()}}}}),OCt=tc.create({name:"textDecoration",addOptions(){return{types:["textStyle"]}},addGlobalAttributes(){return[{types:this.options.types,attributes:{textDecoration:{parseHTML:t=>t.style.textDecoration,renderHTML:t=>t.textDecoration?{style:`text-decoration: ${t.textDecoration}`}:{}}}}]},addCommands(){return{setTextDecoration:t=>({chain:e})=>e().setMark("textStyle",{textDecoration:t}).run(),unsetTextDecoration:()=>({chain:t,state:e})=>{const{from:n,to:o,$from:r}=e.selection;return e.doc.textBetween(n,o," ").length?t().setMark("textStyle",{textDecoration:"none"}).run():t().setTextSelection({from:r.pos-r.nodeBefore.nodeSize,to:r.pos+r.nodeAfter.nodeSize}).setMark("textStyle",{textDecoration:"none"}).focus().run()}}},addKeyboardShortcuts(){const t=n=>n.isUnderline?this.editor.commands.unsetTextDecoration():this.editor.commands.setTextDecoration("underline"),e=n=>n.isLineThrough?this.editor.commands.unsetTextDecoration():this.editor.commands.setTextDecoration("line-through");return{"Mod-Shift-s":()=>{const n=this.editor.isActive("textStyle",{textDecoration:"line-through"});return e({isLineThrough:n})},"Mod-u":()=>{const n=this.editor.isActive("textStyle",{textDecoration:"underline"});return t({isUnderline:n})},"Mod-U":()=>{const n=this.editor.isActive("textStyle",{textDecoration:"underline"});return t({isUnderline:n})}}}}),ICt=t=>{if(!t.content)throw new Error("Invalid document: content is missing");return{Content:t.content.map(e=>{switch(e.type){case"paragraph":return vxe(e);case"bulletList":return HCt(e);case"orderedList":return zCt(e);default:throw new Error(`Unknown node type: ${e.type}`)}})}},vxe=t=>t.content?{ParagraphNode:{ThemeName:t.attrs?t.attrs.themeName:void 0,Content:t.content.map(e=>{switch(e.type){case"text":return PCt(e);case"image":return xxe(e);case"hardBreak":return goe();case"dataField":return WCt(e);default:throw new Error(`Unknown node type: ${e.type}`)}})}}:{ParagraphNode:{ThemeName:t.attrs?t.attrs.themeName:void 0,Content:[goe()]}},dU=t=>{const e=t?t.find(o=>o.type==="textStyle"):void 0,n=t?t.find(o=>o.type==="link"||o.type==="unsubscribeLink"):void 0;return{TextStyle:e?GCt(e):void 0,CommonLinkMark:n?YCt(n):void 0}},PCt=t=>{if(typeof t.text!="string")throw new Error("Invalid text node: text is missing or not a string");const{TextStyle:e,CommonLinkMark:n}=dU(t.marks);return{TextNode:{Text:t.text,TextStyle:e,CommonLinkMark:n}}},goe=()=>({HardBreakNode:{}}),WCt=t=>{if(!t.attrs)throw new Error("Invalid variable node: attrs is missing");const{TextStyle:e,CommonLinkMark:n}=dU(t.marks);return{DataFieldNode:{StringExpression:t.attrs.stringExpression,TextStyle:e,CommonLinkMark:n}}},HCt=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(Txe)}}},zCt=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(Txe)}}},Txe=t=>{if(!t.content)throw new Error("Invalid listItem: content is missing");return{Content:t.content.map(e=>{switch(e.type){case"paragraph":return vxe(e);case"image":return xxe(e);default:throw new Error(`Unknown node type: ${e.type}`)}})}},xxe=t=>{if(!t.attrs)throw new Error("Invalid image node: attrs is missing");const{CommonLinkMark:e}=dU(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}}},jCt=t=>t==="bold"?"Bold":"Normal",UCt=t=>t==="italic"?"Italic":"Normal",KCt=t=>t,qCt=t=>{switch(t){case"uppercase":return"Uppercase";default:return"None"}},JCt=t=>{switch(t){case"underline":return"Underline";case"line-through":return"LineThrough";default:return"None"}},Coe=t=>{const e=t.replace(/px$/,"");return parseInt(e,10)},GCt=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?jCt(t.attrs.fontWeight):void 0,FontStyle:t.attrs.fontStyle?UCt(t.attrs.fontStyle):void 0,FontSize:t.attrs.fontSize?Coe(t.attrs.fontSize):void 0,LineHeight:t.attrs.lineHeight?Coe(t.attrs.lineHeight):void 0,FontFamily:t.attrs.fontFamily?KCt(t.attrs.fontFamily):void 0,TextTransform:t.attrs.textTransform?qCt(t.attrs.textTransform):void 0,TextDecoration:t.attrs.textDecoration?JCt(t.attrs.textDecoration):void 0}}},YCt=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}},Fxe=t=>{if(!t)return null;if(/^#([A-Fa-f0-9]{3}){1,2}$/.test(t))return t;if(t.startsWith("rgb")){const n=t.replace(/[^\d,.]/g,"").split(","),o=n[0]?parseInt(n[0]):0,r=n[1]?parseInt(n[1]):0,i=n[2]?parseInt(n[2]):0;return`#${(1<<24|o<<16|r<<8|i).toString(16).slice(1)}`}if(t.startsWith("hsl")){const n=document.createElement("div");n.style.color=t,document.body.appendChild(n);const o=getComputedStyle(n).color;return document.body.removeChild(n),Fxe(o)}const e=document.createElement("canvas").getContext("2d");return e?(e.fillStyle=t,e.fillStyle):null},XCt=t=>yn.create({name:"color",addOptions(){return{types:["textStyle"]}},addGlobalAttributes(){return[{types:this.options.types,attributes:{color:{default:null,parseHTML:e=>{const n=e.getAttribute("data-theme-color")??"Custom",o=Fxe(e.style.color)??"#000000";return{Discriminator:n,CustomValue:o}},renderHTML:e=>{if(!e.color)return{};const n=CM({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()}}}),QCt=yn.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 mxe.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()}}}),ZCt=t=>Pl.create({name:"dataField",group:"inline",marks:"_",inline:!0,atom:!0,selectable:!0,addAttributes:()=>({stringExpression:{default:null,parseHTML:e=>JSON.parse(e.getAttribute("data-field")),renderHTML:e=>({"data-field":JSON.stringify(e.stringExpression)})}}),parseHTML:()=>[{tag:"data-field[data-field]"}],renderHTML:({node:e,HTMLAttributes:n})=>{const o=e.attrs.stringExpression,r=Rct(o).Match({ContextValueExpression:()=>"contextValue",ContextValueExpressionWithFallback:()=>"contextValueWithFallback",ConstValueExpression:i=>i.Value,TruncateValueExpression:()=>"truncate",ConcatStringExpressions:()=>"concat",NumberToStringExpression:()=>"numberToString",DataSource:i=>t.dataSourceFieldNameDelegate({dataSource:i}),UnsubscribeUrlExpression:()=>"unsubscribeUrl",RecipientEmailAddressExpression:()=>"recipientEmailAddress"});return["data-field",Ei(n,{class:"rich-text__variable","data-field":JSON.stringify(e.attrs.stringExpression),contenteditable:"false"}),r]},addCommands(){return{setVariable:e=>({chain:n,state:o})=>{const r=o.selection.$from.marks(),i=r.map(s=>({type:s.type.name,attrs:s.attrs}));return n().insertContent({type:this.name,attrs:{stringExpression:e,selectedMarks:r},marks:i}).focus().run()}}}}),Sxe=t=>new Promise((e,n)=>{const o=new Image;o.onload=()=>{e({width:o.naturalWidth,height:o.naturalHeight})},o.onerror=n,o.src=t}),wxe=Pl.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",Ei(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[Cat({find:/(?:^|\s)(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))$/,type:this.type,getAttributes:t=>{const[,,e,n,o]=t;return{src:n,alt:e,title:o}}})]},addProseMirrorPlugins(){return[new Yn({view:t=>((async()=>{const{state:e,dispatch:n}=t;e.doc.descendants((o,r)=>{if(o.type.name===this.name){const{src:i,width:s,height:a}=o.attrs;i&&(!s||!a)&&Sxe(i).then(l=>{const u=e.tr.setNodeMarkup(r,void 0,{...o.attrs,width:l.width,height:l.height});n(u)})}})})(),{})})]}}),eyt=t=>[ilt,Ult,rlt,rM.configure({mergeNestedSpanStyles:!0}),Dlt,ZCt({dataSourceFieldNameDelegate:t.dataSourceFieldNameDelegate}),olt.configure({className:"has-focus",mode:"all"}),D8.configure({keepMarks:!0,keepAttributes:!0}),N8.configure({keepMarks:!0,keepAttributes:!0}),b1e,jlt.configure({HTMLAttributes:{class:"hard-break"}}),R8.configure({HTMLAttributes:{class:"rich-text__link"},openOnClick:!1}),wxe.configure({inline:!0,HTMLAttributes:{class:"rich-text__image"}}),XCt({themeColors:t.themeColors}),$Ct(t.initialThemeName),VCt,MCt,BCt,LCt,bxe,OCt,cU,QCt],tyt=t=>ICt(t.editor.getJSON()),nyt=Xe({__name:"SelectItemColor",props:{isActive:{type:Boolean},color:{},label:{}},emits:["click"],setup(t,{emit:e}){const n=t,o=e;return(r,i)=>(O(),J("li",{class:$e(["bootstrap-styles dropdown-item p-0 user-select-none",{active:n.isActive}])},[_("span",{class:"bootstrap-styles d-block py-1 px-3 text-decoration-none text-reset cursor-pointer d-flex align-items-center justify-content-start",onClick:i[0]||(i[0]=s=>o("click"))},[_("i",{class:"bootstrap-styles input__color_selection d-block overflow-hidden me-2",style:he([{border:"1px solid rgba(0, 0, 0, 0.10)"},[{background:n.color}]])},null,4),X0(" "+Gt(n.label),1)])],2))}}),oyt={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"}},ryt={colorLabels:{none:"Нет",styleLinkedColor:"Связать со стилем",emailBackgroundColor:"Фон письма",bodyColor:"Тело письма",primaryColor:"Основной цвет",secondaryColor:"Вторичный цвет",primaryTextColor:"Текст на основном цвете",secondaryTextColor:"Текст на вторичном цвете",cardBackgroundColor:"Цвет карточек товара",buttonTextColor:"Кнопки",titleColor:"Большой заголовок",headingColor:"Заголовок",subHeadingColor:"Подзаголовок",largeTextColor:"Большой текст",normalTextColor:"Текст",descriptionTextColor:"Описание",linkColor:"Ссылка",custom:"Пользовательский"}},iyt=Xn({en:oyt,ru:ryt}),kxe=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 ta(t)}}}),yM=t=>kxe(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}),Hw=t=>{const{FontFamily:e,FontSettingsPresets:n,Colors:o}=t.theme,r=!!t.editor.getAttributes("textStyle")[t.styleName],i=t.editor.getAttributes("paragraph").themeName||"NormalText",s=t.editor.getAttributes("textStyle").themeName||i;if(r)return t.editor.getAttributes("textStyle")[t.styleName];const a=ls({fontFamily:e,themeFontSettings:n[s],themeColor:yM({themeName:s,themeFontColors:o})});return String(a[t.styleName])},Exe=t=>{const{FontFamily:e,FontSettingsPresets:n,Colors:o}=t.theme,r=!!t.editor.getAttributes("textStyle").color,i=t.editor.getAttributes("paragraph").themeName||"NormalText",s=t.editor.getAttributes("textStyle").themeName||i;if(r)return t.editor.getAttributes("textStyle").color;const a=ls({fontFamily:e,themeFontSettings:n[s],themeColor:yM({themeName:s,themeFontColors:o})});return{Discriminator:kxe(s).Match({whenHeading:()=>"HeadingColor",whenTitle:()=>"TitleColor",whenSubHeading:()=>"SubHeadingColor",whenLargeText:()=>"LargeTextColor",whenNormalText:()=>"NormalTextColor",whenDescriptionText:()=>"DescriptionTextColor",whenLink:()=>"LinkColor",whenButton:()=>"ButtonTextColor"}),CustomValue:a.color}},syt={class:"color-picker bootstrap-styles border rounded bg-white"},ayt={class:"bootstrap-styles p-1 mb-5 bg-white"},lyt=["value"],uyt=["value"],cyt=Xe({__name:"ColorPickerModalWindow",props:{editor:{},theme:{},deps:{}},emits:["onColorChanged","onColorPickerClosed"],setup(t,{emit:e}){const n=t,o={colorLabels:iyt({localeKey:n.deps.localeKey}).colorLabels},r=q(()=>CM({fontColor:Exe({editor:n.editor,theme:n.theme}),themeColors:n.theme.Colors})),i=Vt({color:r.value,isValidHexColor:!0}),s={StyleLinkedColor:o.colorLabels.styleLinkedColor,EmailBackgroundColor:o.colorLabels.emailBackgroundColor,BodyColor:o.colorLabels.bodyColor,PrimaryColor:o.colorLabels.primaryColor,SecondaryColor:o.colorLabels.secondaryColor,PrimaryTextColor:o.colorLabels.primaryTextColor,SecondaryTextColor:o.colorLabels.secondaryTextColor,CardBackgroundColor:o.colorLabels.cardBackgroundColor,ButtonTextColor:o.colorLabels.buttonTextColor,TitleColor:o.colorLabels.titleColor,HeadingColor:o.colorLabels.headingColor,SubHeadingColor:o.colorLabels.subHeadingColor,LargeTextColor:o.colorLabels.largeTextColor,NormalTextColor:o.colorLabels.normalTextColor,DescriptionTextColor:o.colorLabels.descriptionTextColor,LinkColor:o.colorLabels.linkColor,Custom:o.colorLabels.custom},a=["EmailBackgroundColor","BodyColor","PrimaryColor","SecondaryColor","PrimaryTextColor","SecondaryTextColor","ButtonTextColor","TitleColor","HeadingColor","SubHeadingColor","LargeTextColor","NormalTextColor","DescriptionTextColor","LinkColor"],l=fet(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})};an(()=>r.value,h=>{i.color=h,i.isValidHexColor=u(h)});const d=e;return(h,m)=>Ot((O(),J("div",null,[_("ul",syt,[_("li",ayt,[ie(z(Sct),{modelValue:r.value,width:220,canvasHeight:220,hideInputs:!0,hideSliders:!1,mode:"hex","onUpdate:modelValue":m[0]||(m[0]=f=>z(l)(f))},null,8,["modelValue"]),_("div",{class:$e(["bootstrap-styles border bg-color-input rounded-2 d-flex justify-content-between p-14",{"is-not-valid":!i.isValidHexColor}])},[_("input",{type:"color",class:"bootstrap-styles pe-none",style:{border:"1px solid rgba(0, 0, 0, 0.1)",cursor:"default"},value:r.value},null,8,lyt),_("input",{type:"text",class:"bootstrap-styles w-100 text-uppercase ps-1",value:i.color,placeholder:"#000000",onInput:m[1]||(m[1]=f=>c(f.target.value))},null,40,uyt)],2)]),(O(),J(rt,null,$n(a,f=>ie(nyt,{key:f,isActive:r.value===n.theme.Colors[f],color:n.theme.Colors[f],label:s[f],onClick:()=>{d("onColorChanged",{Discriminator:f,CustomValue:n.theme.Colors[f]}),d("onColorPickerClosed")}},null,8,["isActive","color","label","onClick"])),64))])])),[[z(Gm),()=>d("onColorPickerClosed")]])}}),dyt=ot(cyt,[["__scopeId","data-v-b1cc72b1"]]),hyt={tooltip:"Text color"},myt={tooltip:"Цвет текста"},fyt=Xn({en:hyt,ru:myt}),pyt=["value"],gyt=Xe({__name:"ColorPicker",props:{editor:{},theme:{},isAllowToEdit:{type:Boolean},deps:{}},setup(t){const e=t,n={tooltip:fyt({localeKey:e.deps.localeKey}).tooltip},o=Vt({isColorPickerDropdownShown:!1}),r=pn(),i=pn(),{floatingStyles:s}=A0e(i,r,{whileElementsMounted:_0e,placement:"bottom",middleware:[R0e(({rects:l})=>({alignmentAxis:-l.floating.width/2-l.floating.width/2,mainAxis:15}))]}),a=q(()=>CM({fontColor:Exe({editor:e.editor,theme:e.theme}),themeColors:e.theme.Colors}));return(l,u)=>(O(),J(rt,null,[Ot((O(),J("button",{ref_key:"richTextColorPickerBtn",ref:i,class:$e(["bootstrap-styles border rich-text-color__input rich-text__handler",{disabled:!t.isAllowToEdit}]),value:a.value,onClick:u[0]||(u[0]=()=>o.isColorPickerDropdownShown=!o.isColorPickerDropdownShown)},[_("i",{style:he([{display:"block",width:"100%",height:"100%"},{backgroundColor:a.value}])},null,4)],10,pyt)),[[z($o),{title:n.tooltip,placement:"top"}]]),o.isColorPickerDropdownShown?(O(),Ze(dyt,{key:0,ref_key:"richTextColorPicker",ref:r,theme:e.theme,editor:e.editor,deps:e.deps.colorPickerModalWindowDeps,style:he(z(s)),onOnColorChanged:u[1]||(u[1]=c=>{e.editor.commands.setColor(c)}),onOnColorPickerClosed:u[2]||(u[2]=()=>{o.isColorPickerDropdownShown=!1,e.editor.commands.focus()})},null,8,["theme","editor","deps","style"])):Ue("",!0)],64))}}),Cyt=ot(gyt,[["__scopeId","data-v-6624477a"]]),yyt={},byt={xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"};function vyt(t,e){return O(),J("svg",byt,[...e[0]||(e[0]=[_("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 _xe=ot(yyt,[["render",vyt]]),Tyt={tooltip:"Font family"},xyt={tooltip:"Шрифт"},Fyt=Xn({en:Tyt,ru:xyt}),Syt={class:"bootstrap-styles dropdown"},wyt={class:"bootstrap-styles me-14 overflow-hidden rich-text-toolbar__font-family-btn__text"},kyt={class:"bootstrap-styles d-flex justify-content-center align-items-center"},Eyt=["onClick"],_yt=Xe({__name:"FontFamilySelector",props:{editor:{},isAllowToEdit:{type:Boolean},theme:{},deps:{}},setup(t){const e=t,n={tooltip:Fyt({localeKey:e.deps.localeKey}).tooltip},o=rM.name,r=Vt({isOpened:!1}),i=q(()=>Hw({editor:e.editor,theme:e.theme,styleName:"fontFamily"})),s=a=>{e.editor.commands.setFontFamily(a),r.isOpened=!1,e.editor.commands.focus()};return(a,l)=>Ot((O(),J("div",Syt,[_("button",{id:"richTextDropdownFontFamily",class:$e(["bootstrap-styles d-flex justify-content-between align-items-center py-1 px-3 text-nowrap rich-text-toolbar__font-family-btn border rounded-2 overflow-hidden",{disabled:!e.isAllowToEdit,show:r.isOpened}]),type:"button",onClick:l[0]||(l[0]=u=>r.isOpened=!r.isOpened)},[_("span",wyt,Gt(z(W5)[i.value]),1),_("i",kyt,[ie(_xe)])],2),_("ul",{class:$e([{show:r.isOpened},"bootstrap-styles dropdown-menu rounded-2 bg-white"]),"aria-labelledby":"richTextDropdownFontFamily"},[(O(!0),J(rt,null,$n(z(mxe),u=>(O(),J("li",{key:u,class:$e(["bootstrap-styles dropdown-item p-0",{active:e.editor.getAttributes(z(o)).fontFamily===u}]),onClick:()=>s(u)},[_("span",{class:"bootstrap-styles d-block py-1 px-3 text-decoration-none text-reset cursor-pointer",style:he({fontFamily:u})},Gt(z(W5)[u]),5)],10,Eyt))),128))],2)])),[[z(Gm),()=>r.isOpened=!1],[z($o),{title:n.tooltip,placement:"top"}]])}}),Ryt=ot(_yt,[["__scopeId","data-v-cc496278"]]),Dyt={},Ayt={xmlns:"http://www.w3.org/2000/svg",width:"8",height:"8",viewBox:"0 0 8 8",fill:"none"};function Nyt(t,e){return O(),J("svg",Ayt,[...e[0]||(e[0]=[_("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 Rxe=ot(Dyt,[["render",Nyt],["__scopeId","data-v-19c42a7a"]]),Byt={},Lyt={xmlns:"http://www.w3.org/2000/svg",width:"8",height:"8",viewBox:"0 0 8 8",fill:"none"};function $yt(t,e){return O(),J("svg",Lyt,[...e[0]||(e[0]=[_("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 Dxe=ot(Byt,[["render",$yt],["__scopeId","data-v-313c2951"]]),Vyt={},Myt={width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Oyt(t,e){return O(),J("svg",Myt,[...e[0]||(e[0]=[_("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 Iyt=ot(Vyt,[["render",Oyt]]),Pyt={tooltip:"Font size"},Wyt={tooltip:"Размер текста"},Hyt=Xn({en:Pyt,ru:Wyt}),zyt=t=>{const{FontFamily:e,FontSettingsPresets:n,Colors:o}=t.theme,r=!!t.editor.getAttributes("textStyle").fontSize,i=t.editor.getAttributes("paragraph").themeName||"NormalText",s=t.editor.getAttributes("textStyle").themeName||i;return r?parseInt(t.editor.getAttributes("textStyle").fontSize,10):ls({fontFamily:e,themeFontSettings:n[s],themeColor:yM({themeName:s,themeFontColors:o})}).fontSize},jyt={class:"bootstrap-styles rich-text-toolbar__font-size-editor position-relative rounded-2 py-1 px-3 d-flex"},Uyt={class:"bootstrap-styles d-flex justify-content-center rich-text-icon me-14"},Kyt=["value"],qyt={class:"bootstrap-styles rich-text-toolbar__input-button top-0 d-flex position-absolute align-items-end justify-content-center"},Jyt={class:"bootstrap-styles rich-text-toolbar__input-button bottom-0 d-flex position-absolute align-items-start justify-content-center"},Gyt=Xe({__name:"FontSizeEditor",props:{editor:{},theme:{},deps:{}},setup(t){const e=t,n={tooltip:Hyt({localeKey:e.deps.localeKey}).tooltip},o=q(()=>zyt({editor:e.editor,theme:e.theme})),r=()=>{o.value&&e.editor.commands.setFontSize(o.value+1)},i=()=>{o.value&&o.value!==1&&e.editor.commands.setFontSize(o.value-1)},s=a=>{const l=a.target;let 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)=>Ot((O(),J("div",jyt,[_("i",Uyt,[ie(Iyt)]),_("input",{type:"number",class:"bootstrap-styles rich-text-toolbar__input-number rich-text__handler",value:o.value,onInput:s},null,40,Kyt),_("div",qyt,[_("input",{type:"button",class:"bootstrap-styles position-absolute rich-text__handler",onClick:r}),ie(Rxe)]),_("div",Jyt,[_("input",{type:"button",class:"bootstrap-styles position-absolute rich-text__handler",onClick:i}),ie(Dxe)])])),[[z($o),{title:n.tooltip,placement:"top"}]])}}),Yyt=ot(Gyt,[["__scopeId","data-v-ba95f865"]]),Xyt=Xe({__name:"SelectItemTextStyle",props:{isActive:{type:Boolean},label:{},themeFontStyle:{},themeFontColor:{}},emits:["click"],setup(t,{emit:e}){const n=t,o=e;return(r,i)=>(O(),J("li",{class:$e(["bootstrap-styles dropdown-item p-0 d-flex align-items-center px-3 cursor-pointer",{active:n.isActive}]),onClick:i[0]||(i[0]=s=>o("click"))},[_("i",{class:"bootstrap-styles input__color_selection d-block overflow-hidden me-2",style:he([{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),_("span",{class:"bootstrap-styles d-block py-1 text-decoration-none overflow-hidden",style:he([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"}])},Gt(n.label),5)],2))}}),Qyt=ot(Xyt,[["__scopeId","data-v-9d9afc02"]]),Zyt={tooltip:"Text style",settingLabels:{title:"Title",heading:"Heading",subHeading:"Subheading",largeText:"Large text",normalText:"Text",descriptionText:"Description",link:"Link",button:"Button",custom:"Custom"}},e0t={tooltip:"Стиль текста",settingLabels:{title:"Большой заголовок",heading:"Заголовок",subHeading:"Подзаголовок",largeText:"Большой текст",normalText:"Текст",descriptionText:"Описание",link:"Ссылка",button:"Кнопка",custom:"Пользовательский"}},yoe=Xn({en:Zyt,ru:e0t}),t0t={class:"bootstrap-styles dropdown"},n0t={class:"bootstrap-styles rich-text-toolbar__font-style-selector__text"},o0t={class:"bootstrap-styles d-flex justify-content-center align-items-center rich-text-toolbar__icon"},r0t=Xe({__name:"ThemeSettingsSelector",props:{editor:{},theme:{},isAllowToEdit:{type:Boolean},initialThemeName:{},deps:{}},setup(t){const e=t,n=rM.name,o=Vt({isOpened:!1}),r={tooltip:yoe({localeKey:e.deps.localeKey}).tooltip,settingLabels:yoe({localeKey:e.deps.localeKey}).settingLabels},i={Title:r.settingLabels.title,Heading:r.settingLabels.heading,SubHeading:r.settingLabels.subHeading,LargeText:r.settingLabels.largeText,NormalText:r.settingLabels.normalText,DescriptionText:r.settingLabels.descriptionText,Link:r.settingLabels.link,Button:r.settingLabels.button,Custom:r.settingLabels.custom},s=["Title","Heading","SubHeading","LargeText","NormalText","DescriptionText","Link","Button"],a=["TitleColor","HeadingColor","SubHeadingColor","LargeTextColor","NormalTextColor","DescriptionTextColor","LinkColor","ButtonTextColor"],l=q(()=>{const c=e.initialThemeName,d=e.editor.getAttributes("paragraph").themeName||c;let h=s.find(F=>e.editor.getAttributes(n).themeName===F)||d;const{fontWeight:m,fontStyle:f,textDecoration:p,fontSize:g,fontFamily:y,lineHeight:b}=e.editor.getAttributes(n);return m||f||p||g||y||b?i.Custom:i[h]}),u=c=>{e.editor.commands.unsetMark(n),e.editor.chain().focus().setThemeSettings(c).run(),o.isOpened=!1};return(c,d)=>Ot((O(),J("div",t0t,[_("button",{id:"dropdownMenuButtonFontStyleList",class:$e(["bootstrap-styles rich-text-toolbar__font-style-selector d-flex justify-content-between align-items-center py-1 px-3 text-nowrap border rounded-2",{disabled:!e.isAllowToEdit,show:o.isOpened}]),type:"button",onClick:d[0]||(d[0]=()=>o.isOpened=!o.isOpened)},[_("span",n0t,Gt(l.value),1),_("i",o0t,[ie(_xe)])],2),_("ul",{class:$e([{show:o.isOpened},"bootstrap-styles rich-text-toolbar__font-style-dropdown dropdown-menu rounded-2"]),"aria-labelledby":"dropdownMenuButtonFontStyleList"},[(O(),J(rt,null,$n(s,(h,m)=>ie(Qyt,{key:h,isActive:e.editor.getAttributes(z(n)).themeName===h,label:i[h],themeFontStyle:e.theme.FontSettingsPresets[h],themeFontColor:e.theme.Colors[a[m]],onClick:()=>u(h)},null,8,["isActive","label","themeFontStyle","themeFontColor","onClick"])),64))],2)])),[[z(Gm),()=>o.isOpened=!1],[z($o),{title:r.tooltip,placement:"top"}]])}}),i0t=ot(r0t,[["__scopeId","data-v-088df711"]]),s0t={},a0t={xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"};function l0t(t,e){return O(),J("svg",a0t,[...e[0]||(e[0]=[_("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 u0t=ot(s0t,[["render",l0t]]),c0t={tooltip:"Line height"},d0t={tooltip:"Высота строки"},h0t=Xn({en:c0t,ru:d0t}),m0t=t=>{const{FontFamily:e,FontSettingsPresets:n,Colors:o}=t.theme,r=!!t.editor.getAttributes("textStyle").lineHeight,i=t.editor.getAttributes("paragraph").themeName||"NormalText",s=t.editor.getAttributes("textStyle").themeName||i;return r?parseInt(t.editor.getAttributes("textStyle").lineHeight,10):ls({fontFamily:e,themeFontSettings:n[s],themeColor:yM({themeName:s,themeFontColors:o})}).lineHeight},f0t={class:"bootstrap-styles rich-text-toolbar__line-height-editor position-relative rounded-2 py-1 px-3 d-flex"},p0t={class:"bootstrap-styles d-flex justify-content-center rich-text-icon me-14"},g0t=["value"],C0t={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"}},y0t={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"}},b0t=Xe({__name:"LineHeightEditor",props:{editor:{},theme:{},deps:{}},setup(t){const e=t,n={tooltip:h0t({localeKey:e.deps.localeKey}).tooltip},o=q(()=>m0t({editor:e.editor,theme:e.theme})),r=()=>{o.value&&e.editor.commands.setLineHeight(o.value+1)},i=()=>{o.value&&o.value!==1&&e.editor.commands.setLineHeight(o.value-1)},s=a=>{const l=a.target;let 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)=>Ot((O(),J("div",f0t,[_("i",p0t,[ie(u0t)]),_("input",{type:"number",class:"bootstrap-styles rich-text-toolbar__input-number rich-text__handler",value:o.value,onInput:s},null,40,g0t),_("div",C0t,[_("input",{type:"button",class:"bootstrap-styles position-absolute rich-text__handler",onClick:r}),ie(Rxe)]),_("div",y0t,[_("input",{type:"button",class:"bootstrap-styles position-absolute rich-text__handler",onClick:i}),ie(Dxe)])])),[[z($o),{title:n.tooltip,placement:"top"}]])}}),v0t=ot(b0t,[["__scopeId","data-v-4e76ed1b"]]),T0t=["http:","https:","mailto:","tel:"],x0t={mounted(t,e){t.addEventListener("input",()=>{const n=t.value;let o=!1;try{const r=new URL(n);o=T0t.includes(r.protocol)}catch{o=!1}typeof e.value=="function"&&e.value(o)})}},Axe={mounted(t,e){boe(t,e)},updated(t,e){e.value&&boe(t,e)}},boe=(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)}})},F0t={},S0t={xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 14 14",fill:"none"};function w0t(t,e){return O(),J("svg",S0t,[...e[0]||(e[0]=[_("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 Nxe=ot(F0t,[["render",w0t]]),k0t={label:"Link",inputPlaceholder:"https://example.com",errorNotification:"The link must contain https://, http://, mailto:, tel:",applyButton:"Save",cancelButton:"Cancel"},E0t={label:"Ссылка",inputPlaceholder:"https://example.com",errorNotification:"Ссылка должна содержать https://, http://, mailto:, tel:",applyButton:"Сохранить",cancelButton:"Отмена"},w1=Xn({en:k0t,ru:E0t}),_0t={},R0t={width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function D0t(t,e){return O(),J("svg",R0t,[...e[0]||(e[0]=[_("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 Bxe=ot(_0t,[["render",D0t]]),A0t={class:"bootstrap-styles bg-white border rounded-2 add-text-link-modal-window"},N0t={class:"bootstrap-styles fw-bold mb-5 px-11 mt-10 d-block text-start"},B0t={class:"bootstrap-styles px-11 mb-2"},L0t={class:"bootstrap-styles d-flex justify-content-center align-items-center me-1"},$0t=["placeholder","value"],V0t={class:"bootstrap-styles px-11 py-5 d-flex align-items-center justify-content-end border-top"},M0t=["disabled"],O0t=Xe({__name:"AddLinkModalWindow",props:{isActive:{type:Boolean},currentHref:{},deps:{}},emits:["onClosed","onHrefChanged","onRemoved"],setup(t,{emit:e}){const n=t,o=Vt({href:n.currentHref,isValid:!0}),r=a=>{o.href=a,o.isValid=a.length>0},i={label:w1({localeKey:n.deps.localeKey}).label,inputPlaceholder:w1({localeKey:n.deps.localeKey}).inputPlaceholder,errorNotification:w1({localeKey:n.deps.localeKey}).errorNotification,applyButton:w1({localeKey:n.deps.localeKey}).applyButton,cancelButton:w1({localeKey:n.deps.localeKey}).cancelButton},s=e;return(a,l)=>Ot((O(),J("div",A0t,[_("label",N0t,Gt(i.label),1),_("div",B0t,[_("div",{class:$e(["bootstrap-styles bg-color-input border rounded-2 py-1 px-3 d-flex mb-14",{"border-danger":!o.isValid}])},[_("i",L0t,[ie(Nxe)]),Ot(_("input",{type:"text",class:"bootstrap-styles w-100",placeholder:i.inputPlaceholder,value:o.href,onInput:l[0]||(l[0]=u=>r(u.target.value))},null,40,$0t),[[z(x0t),u=>o.isValid=u],[z(Axe),void 0,void 0,{selectAll:!0}]])],2),_("div",{class:$e(["bootstrap-styles text-start add-link-modal-window-notification",{invisible:o.isValid}])},Gt(i.errorNotification),3)]),_("div",V0t,[n.isActive?(O(),J("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:l[1]||(l[1]=Wo(()=>s("onRemoved"),["stop"]))},[_("i",null,[ie(Bxe)])])):Ue("",!0),_("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:l[2]||(l[2]=()=>s("onClosed"))},Gt(i.cancelButton),1),_("button",{class:"bootstrap-styles d-flex justify-content-center align-center py-1 px-3 border rounded-2 bg-color-selected text-white cursor-pointer",disabled:!o.href.length||!o.isValid,onClick:l[3]||(l[3]=()=>s("onHrefChanged",o.href))},Gt(i.applyButton),9,M0t)])])),[[z(Gm),()=>s("onClosed")]])}}),I0t=ot(O0t,[["__scopeId","data-v-dd4e68e8"]]),P0t={};function W0t(t,e){return O(),J(rt,null,[e[0]||(e[0]=_("svg",{class:"unlinked",xmlns:"http://www.w3.org/2000/svg",width:"17",height:"16",viewBox:"0 0 17 16",fill:"none"},[_("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]=_("svg",{class:"linked",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},[_("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 H0t=ot(P0t,[["render",W0t],["__scopeId","data-v-730bc16f"]]),z0t={tooltip:"Link"},j0t={tooltip:"Ссылка"},U0t=Xn({en:z0t,ru:j0t}),K0t={class:"bootstrap-styles d-flex rich-text-icon icon-hover"},q0t=Xe({__name:"LinkEditor",props:{editor:{},isAllowToEdit:{type:Boolean},deps:{}},setup(t){const e=t,n={tooltip:U0t({localeKey:e.deps.localeKey}).tooltip},o=R8.name,r=cU.name,i=Vt({isAddTextLinkModalWindowShown:!1}),s=q(()=>e.editor.isActive(r)),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)=>(O(),J(rt,null,[Ot((O(),J("button",{class:$e(["bootstrap-styles p-1 rounded rich-text-button",{active:e.editor.isActive(z(o)),disabled:!e.editor.isActive(z(o))&&!e.isAllowToEdit}]),onClick:c[0]||(c[0]=d=>{i.isAddTextLinkModalWindowShown=!i.isAddTextLinkModalWindowShown})},[_("i",K0t,[e.editor.isActive(z(o))?(O(),Ze(H0t,{key:1})):(O(),Ze(Nxe,{key:0}))])],2)),[[z($o),{title:n.tooltip,placement:"top"}]]),i.isAddTextLinkModalWindowShown?(O(),Ze(I0t,{key:0,isActive:e.editor.isActive(z(o)),currentHref:e.editor.isActive(z(o))?e.editor.getAttributes(z(o)).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"])):Ue("",!0)],64))}}),J0t=ot(q0t,[["__scopeId","data-v-6460a995"]]),G0t={label:"URL",placeholder:"URL...",cancel:"Cancel",apply:"Save",removeTooltip:"Delete image"},Y0t={label:"URL",placeholder:"URL...",cancel:"Отмена",apply:"Сохранить",removeTooltip:"Удалить изображение"},k1=Xn({en:G0t,ru:Y0t}),X0t={class:"bootstrap-styles bg-white border rounded-2 add-image-src-modal-window"},Q0t={class:"bootstrap-styles fw-bold mb-5 px-11 mt-10 d-block text-start"},Z0t={class:"bootstrap-styles px-11 mb-11"},ebt=["placeholder","value"],tbt={class:"bootstrap-styles px-11 py-5 d-flex align-items-center justify-content-end border-top"},nbt=["disabled"],obt=Xe({__name:"AddImageSrcModalWindow",props:{isActive:{type:Boolean},src:{},width:{},height:{},isRetina:{type:Boolean},deps:{}},emits:["onClosed","onRemoved","onImageSrcChanged"],setup(t,{emit:e}){const n=t,o=Vt({src:n.src,width:n.width,height:n.height,isBroken:!1}),r={label:k1({localeKey:n.deps.localeKey}).label,placeholder:k1({localeKey:n.deps.localeKey}).placeholder,cancel:k1({localeKey:n.deps.localeKey}).cancel,apply:k1({localeKey:n.deps.localeKey}).apply,removeTooltip:k1({localeKey:n.deps.localeKey}).removeTooltip},i=Yye(l=>{Sxe(l).then(u=>{o.width=u.width,o.height=u.height,o.isBroken=!1,o.src=l}).catch(()=>{o.src=l,o.isBroken=!0})},500),s=()=>{a("onImageSrcChanged",{src:o.src,width:o.width,height:o.height,isRetina:!1})},a=e;return(l,u)=>Ot((O(),J("div",X0t,[_("label",Q0t,Gt(r.label),1),_("div",Z0t,[_("div",{class:$e(["bootstrap-styles bg-color-input border rounded-2 py-1 px-3 d-flex",{"border-danger":o.isBroken}])},[Ot(_("input",{type:"text",class:"bootstrap-styles w-100",placeholder:r.placeholder,value:o.src,onInput:u[0]||(u[0]=c=>z(i)(c.target.value))},null,40,ebt),[[z(Axe),void 0,void 0,{selectAll:!0}]])],2)]),_("div",tbt,[n.isActive?Ot((O(),J("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]=Wo(()=>a("onRemoved"),["stop"]))},[_("i",null,[ie(Bxe)])])),[[z($o),{placement:"top",title:r.removeTooltip}]]):Ue("",!0),_("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]=Wo(()=>a("onClosed"),["stop"]))},Gt(r.cancel),1),_("button",{class:"bootstrap-styles d-flex justify-content-center align-center py-1 px-3 border rounded-2 bg-color-selected text-white cursor-pointer",disabled:!o.src.length||o.isBroken,onClick:u[3]||(u[3]=Wo(()=>s(),["stop"]))},Gt(r.apply),9,nbt)])])),[[z(Gm),()=>a("onClosed")]])}}),rbt=ot(obt,[["__scopeId","data-v-35966ae0"]]),ibt={},sbt={width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function abt(t,e){return O(),J("svg",sbt,[...e[0]||(e[0]=[_("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 lbt=ot(ibt,[["render",abt]]),ubt={tooltip:"Image",retinaLabel:"For retina screens"},cbt={tooltip:"Изображение",retinaLabel:"Для retina-экранов"},voe=Xn({en:ubt,ru:cbt}),dbt=["checked"],hbt=Xe({__name:"Checkbox",props:{checked:{type:Boolean}},emits:["change"],setup(t,{emit:e}){const n=t,o=e;return(r,i)=>(O(),J("input",{class:"bootstrap-styles me-1 cursor-pointer",checked:n.checked,type:"checkbox","aria-label":"Checkbox for following text input",onChange:i[0]||(i[0]=s=>o("change"))},null,40,dbt))}}),mbt=ot(hbt,[["__scopeId","data-v-6a8c2252"]]),fbt={class:"bootstrap-styles rich-text-icon icon-hover d-flex"},pbt={key:0,class:"bootstrap-styles d-flex align-items-center ms-14 me-1"},gbt={for:"rich-text__retina-checkbox",class:"bootstrap-styles label__checkbox-input text-nowrap"},Cbt=Xe({__name:"ImageEditor",props:{editor:{},deps:{}},setup(t){const e=t,n={tooltip:voe({localeKey:e.deps.localeKey}).tooltip,retinaLabel:voe({localeKey:e.deps.localeKey}).retinaLabel},o=wxe.name,r=Vt({isAddImageSrcModalWindowShown:!1}),i=async()=>{const l=e.editor.view.state.selection.anchor,{src:u,width:c,height:d,isRetina:h}=e.editor.getAttributes(o);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(o)?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(),r.isAddImageSrcModalWindowShown=!1},a=()=>{e.editor.commands.deleteSelection(),r.isAddImageSrcModalWindowShown=!1};return(l,u)=>(O(),J(rt,null,[Ot((O(),J("button",{class:$e(["bootstrap-styles p-1 rounded rich-text-button__image",{active:e.editor.isActive(z(o))}]),onClick:u[0]||(u[0]=c=>r.isAddImageSrcModalWindowShown=!r.isAddImageSrcModalWindowShown)},[_("i",fbt,[ie(lbt)])],2)),[[z($o),{title:n.tooltip,placement:"top"}]]),e.editor.isActive(z(o))?(O(),J("div",pbt,[ie(mbt,{id:"rich-text__retina-checkbox",checked:e.editor.isActive(z(o),{isRetina:!0}),onChange:u[1]||(u[1]=()=>i())},null,8,["checked"]),_("label",gbt,Gt(n.retinaLabel),1)])):Ue("",!0),r.isAddImageSrcModalWindowShown?(O(),Ze(rbt,{key:1,isActive:e.editor.isActive(z(o)),src:e.editor.getAttributes(z(o)).src?e.editor.getAttributes(z(o)).src:"",width:e.editor.getAttributes(z(o)).width?e.editor.getAttributes(z(o)).width:0,height:e.editor.getAttributes(z(o)).height?e.editor.getAttributes(z(o)).height:0,isRetina:e.editor.getAttributes(z(o)).isRetina?e.editor.getAttributes(z(o)).isRetina:!1,deps:e.deps.addImageSrcModalWindowDeps,onOnRemoved:u[2]||(u[2]=()=>a()),onOnClosed:u[3]||(u[3]=c=>r.isAddImageSrcModalWindowShown=!1),onOnImageSrcChanged:u[4]||(u[4]=c=>s({src:c.src,width:c.width,height:c.height}))},null,8,["isActive","src","width","height","isRetina","deps"])):Ue("",!0)],64))}}),ybt=ot(Cbt,[["__scopeId","data-v-cf315655"]]),bbt={},vbt={xmlns:"http://www.w3.org/2000/svg",width:"17",height:"16",viewBox:"0 0 17 16",fill:"none"};function Tbt(t,e){return O(),J("svg",vbt,[...e[0]||(e[0]=[_("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 xbt=ot(bbt,[["render",Tbt]]),Fbt={tooltip:"Bold"},Sbt={tooltip:"Полужирный"},wbt=Xn({en:Fbt,ru:Sbt}),kbt={class:"bootstrap-styles d-flex rich-text-icon icon-hover"},Ebt=Xe({__name:"FontWeightEditor",props:{editor:{},theme:{},isAllowToEdit:{type:Boolean},deps:{}},setup(t){const e=t,n={tooltip:wbt({localeKey:e.deps.localeKey}).tooltip},o=q(()=>Hw({editor:e.editor,theme:e.theme,styleName:"fontWeight"})==="bold"),r=()=>{o.value?e.editor.chain().focus().unsetFontWeight().run():e.editor.chain().focus().setFontWeight("bold").run(),e.editor.commands.focus()};return(i,s)=>Ot((O(),J("button",{class:$e(["bootstrap-styles p-1 rounded rich-text-button",{active:o.value,disabled:!e.isAllowToEdit&&!o.value}]),onClick:s[0]||(s[0]=()=>r())},[_("i",kbt,[ie(xbt)])],2)),[[z($o),{title:n.tooltip,placement:"top"}]])}}),_bt=ot(Ebt,[["__scopeId","data-v-0e22dbf6"]]),Rbt={},Dbt={xmlns:"http://www.w3.org/2000/svg",width:"17",height:"16",viewBox:"0 0 17 16",fill:"none"};function Abt(t,e){return O(),J("svg",Dbt,[...e[0]||(e[0]=[_("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 Nbt=ot(Rbt,[["render",Abt]]),Bbt={tooltip:"Strikethrough"},Lbt={tooltip:"Зачеркнутый"},$bt=Xn({en:Bbt,ru:Lbt}),Vbt={class:"bootstrap-styles d-flex rich-text-icon icon-hover"},Mbt=Xe({__name:"LineThroughEditor",props:{editor:{},isAllowToEdit:{type:Boolean},theme:{},deps:{}},setup(t){const e=t,n={tooltip:$bt({localeKey:e.deps.localeKey}).tooltip},o=q(()=>Hw({editor:e.editor,theme:e.theme,styleName:"textDecoration"})==="line-through"),r=()=>{o.value?e.editor.chain().focus().unsetTextDecoration().run():e.editor.chain().focus().setTextDecoration("line-through").run(),e.editor.commands.focus()};return(i,s)=>Ot((O(),J("button",{class:$e(["bootstrap-styles p-1 rounded rich-text-button",{active:o.value,disabled:!t.isAllowToEdit&&!o.value}]),onClick:s[0]||(s[0]=a=>r())},[_("i",Vbt,[ie(Nbt)])],2)),[[z($o),{title:n.tooltip,placement:"top"}]])}}),Obt=ot(Mbt,[["__scopeId","data-v-fffc32ef"]]),Ibt={},Pbt={xmlns:"http://www.w3.org/2000/svg",width:"17",height:"16",viewBox:"0 0 17 16",fill:"none"};function Wbt(t,e){return O(),J("svg",Pbt,[...e[0]||(e[0]=[_("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 Hbt=ot(Ibt,[["render",Wbt]]),zbt={tooltip:"Underline"},jbt={tooltip:"Подчеркнутый"},Ubt=Xn({en:zbt,ru:jbt}),Kbt={class:"bootstrap-styles d-flex rich-text-icon icon-hover"},qbt=Xe({__name:"UnderlineEditor",props:{editor:{},isAllowToEdit:{type:Boolean},theme:{},deps:{}},setup(t){const e=t,n={tooltip:Ubt({localeKey:e.deps.localeKey}).tooltip},o=q(()=>Hw({editor:e.editor,theme:e.theme,styleName:"textDecoration"})==="underline"),r=()=>{o.value?e.editor.chain().focus().unsetTextDecoration().run():e.editor.chain().focus().setTextDecoration("underline").run()};return(i,s)=>Ot((O(),J("button",{class:$e(["bootstrap-styles p-1 rounded rich-text-button",{active:o.value,disabled:!t.isAllowToEdit&&!o.value}]),onClick:s[0]||(s[0]=()=>r())},[_("i",Kbt,[ie(Hbt)])],2)),[[z($o),{title:n.tooltip,placement:"top"}]])}}),Jbt=ot(qbt,[["__scopeId","data-v-ae63be68"]]),Gbt={},Ybt={xmlns:"http://www.w3.org/2000/svg",width:"17",height:"16",viewBox:"0 0 17 16",fill:"none"};function Xbt(t,e){return O(),J("svg",Ybt,[...e[0]||(e[0]=[_("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 Qbt=ot(Gbt,[["render",Xbt]]),Zbt={tooltip:"Italic"},evt={tooltip:"Курсив"},tvt=Xn({en:Zbt,ru:evt}),nvt={class:"bootstrap-styles d-flex rich-text-icon icon-hover"},ovt=Xe({__name:"FontStyleEditor",props:{editor:{},isAllowToEdit:{type:Boolean},theme:{},deps:{}},setup(t){const e=t,n={tooltip:tvt({localeKey:e.deps.localeKey}).tooltip},o=q(()=>Hw({editor:e.editor,theme:e.theme,styleName:"fontStyle"})==="italic"),r=()=>{o.value?e.editor.chain().focus().unsetFontStyle().run():e.editor.chain().focus().setFontStyle("italic").run(),e.editor.commands.focus()};return(i,s)=>Ot((O(),J("button",{class:$e(["bootstrap-styles p-1 rounded rich-text-button",{active:o.value,disabled:!t.isAllowToEdit&&!o.value}]),onClick:s[0]||(s[0]=()=>r())},[_("i",nvt,[ie(Qbt)])],2)),[[z($o),{title:n.tooltip,placement:"top"}]])}}),rvt=ot(ovt,[["__scopeId","data-v-ac6b2276"]]),ivt={},svt={width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function avt(t,e){return O(),J("svg",svt,[...e[0]||(e[0]=[_("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 lvt=ot(ivt,[["render",avt]]),uvt={tooltip:"Uppercase"},cvt={tooltip:"Заглавные"},dvt=Xn({en:uvt,ru:cvt}),hvt={class:"bootstrap-styles d-flex rich-text-icon icon-hover"},mvt=Xe({__name:"TextTransformEditor",props:{editor:{},isAllowToEdit:{type:Boolean},theme:{},deps:{}},setup(t){const e=t,n={tooltip:dvt({localeKey:e.deps.localeKey}).tooltip},o=bxe.name,r=q(()=>e.editor.isActive({[o]:"uppercase"})),i=()=>{r.value?e.editor.commands.unsetTextTransform():e.editor.commands.setTextTransform("uppercase"),e.editor.commands.focus()};return(s,a)=>Ot((O(),J("button",{class:$e(["bootstrap-styles p-1 rounded rich-text-button",{active:e.editor.isActive({[z(o)]:"uppercase"}),disabled:!t.isAllowToEdit&&!e.editor.isActive({[z(o)]:"uppercase"})}]),onClick:a[0]||(a[0]=l=>i())},[_("i",hvt,[ie(lvt)])],2)),[[z($o),{title:n.tooltip,placement:"top"}]])}}),fvt=ot(mvt,[["__scopeId","data-v-20dea8b8"]]),pvt={},gvt={width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Cvt(t,e){return O(),J("svg",gvt,[...e[0]||(e[0]=[_("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),_("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 yvt=ot(pvt,[["render",Cvt]]),bvt={tooltip:"Unsubscribe link"},vvt={tooltip:"Ссылка на отписку"},Tvt=Xn({en:bvt,ru:vvt}),xvt={class:"bootstrap-styles d-flex rich-text-icon icon-hover"},Fvt=Xe({__name:"UnsubscribeLinkEditor",props:{editor:{},isAllowToEdit:{type:Boolean},theme:{},deps:{}},setup(t){const e=t,n={tooltip:Tvt({localeKey:e.deps.localeKey}).tooltip},o=cU.name,r=R8.name,i=q(()=>e.editor.isActive(r)),s=()=>{i.value&&e.editor.commands.unsetLink(),e.editor.isActive(o)?e.editor.chain().unsetUnsubscribeLink().applySiblingNodeThemeSettings().run():e.editor.chain().setUnsubscribeLink().setThemeSettings("Link").run()};return(a,l)=>Ot((O(),J("button",{class:$e(["bootstrap-styles p-1 rounded rich-text-button",{active:e.editor.isActive(z(o)),disabled:!e.editor.isActive(z(o))&&!e.isAllowToEdit}]),onClick:l[0]||(l[0]=()=>s())},[_("i",xvt,[ie(yvt)])],2)),[[z($o),{title:n.tooltip,placement:"top"}]])}}),Svt=ot(Fvt,[["__scopeId","data-v-9ee287d3"]]),wvt={},kvt={xmlns:"http://www.w3.org/2000/svg",width:"17",height:"16",viewBox:"0 0 17 16",fill:"none"};function Evt(t,e){return O(),J("svg",kvt,[...e[0]||(e[0]=[_("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 _vt=ot(wvt,[["render",Evt]]),Rvt={tooltip:"Bullet list"},Dvt={tooltip:"Маркированный список"},Avt=Xn({en:Rvt,ru:Dvt}),Nvt={class:"bootstrap-styles d-flex rich-text-icon icon-hover"},Bvt=Xe({__name:"BulletListEditor",props:{editor:{},deps:{}},setup(t){const e=t,n={tooltip:Avt({localeKey:e.deps.localeKey}).tooltip},o=D8.name,r=()=>{e.editor.chain().focus().toggleBulletList().run()};return(i,s)=>Ot((O(),J("button",{class:$e(["bootstrap-styles p-1 rounded rich-text-button",{active:e.editor.isActive(z(o))}]),onClick:s[0]||(s[0]=()=>r())},[_("i",Nvt,[ie(_vt)])],2)),[[z($o),{title:n.tooltip,placement:"top"}]])}}),Lvt=ot(Bvt,[["__scopeId","data-v-c64632e3"]]),$vt={},Vvt={xmlns:"http://www.w3.org/2000/svg",width:"17",height:"16",viewBox:"0 0 17 16",fill:"none"};function Mvt(t,e){return O(),J("svg",Vvt,[...e[0]||(e[0]=[_("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 Ovt=ot($vt,[["render",Mvt]]),Ivt={tooltip:"Ordered list"},Pvt={tooltip:"Нумерованный список"},Wvt=Xn({en:Ivt,ru:Pvt}),Hvt={class:"bootstrap-styles d-flex rich-text-icon icon-hover"},zvt=Xe({__name:"OrderedListEditor",props:{editor:{},deps:{}},setup(t){const e=t,n={tooltip:Wvt({localeKey:e.deps.localeKey}).tooltip},o=N8.name,r=()=>{e.editor.chain().focus().toggleOrderedList().run()};return(i,s)=>Ot((O(),J("button",{class:$e(["bootstrap-styles p-1 rounded rich-text-button",{active:e.editor.isActive(z(o))}]),onClick:s[0]||(s[0]=()=>r())},[_("i",Hvt,[ie(Ovt)])],2)),[[z($o),{title:n.tooltip,placement:"top"}]])}}),jvt=ot(zvt,[["__scopeId","data-v-aaa43948"]]),Uvt={},Kvt={width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function qvt(t,e){return O(),J("svg",Kvt,[...e[0]||(e[0]=[_("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 Toe=ot(Uvt,[["render",qvt]]),Jvt={},Gvt={width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Yvt(t,e){return O(),J("svg",Gvt,[...e[0]||(e[0]=[_("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),_("path",{d:"M14 2.6665H2V3.99984H14V2.6665Z",fill:"var(--black)"},null,-1)])])}const xoe=ot(Jvt,[["render",Yvt]]),Xvt={},Qvt={width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Zvt(t,e){return O(),J("svg",Qvt,[...e[0]||(e[0]=[_("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 Foe=ot(Xvt,[["render",Zvt]]),e1t={},t1t={width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function n1t(t,e){return O(),J("svg",t1t,[...e[0]||(e[0]=[_("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 Soe=ot(e1t,[["render",n1t]]),o1t={tooltip:"Vertical image alignment"},r1t={tooltip:"Выравнивание картинок по вертикали"},i1t=Xn({en:o1t,ru:r1t}),s1t={class:"bootstrap-styles vertical-align-editor dropdown rounded"},a1t={class:"bootstrap-styles rich-text-icon icon-hover d-flex justify-content-center align-items-center"},l1t={class:"bootstrap-styles rich-text-icon icon-hover d-flex justify-content-center align-items-center"},u1t={class:"bootstrap-styles rich-text-icon icon-hover d-flex justify-content-center align-items-center"},c1t={class:"bootstrap-styles rich-text-icon icon-hover d-flex justify-content-center align-items-center"},d1t={class:"bootstrap-styles rich-text-icon icon-hover d-flex justify-content-center align-items-center"},h1t=Xe({__name:"VerticalAlignEditor",props:{editor:{},currentVerticalAlign:{},deps:{}},emits:["onVerticalAlignVariantChanged"],setup(t,{emit:e}){const n=t,o={tooltip:i1t({localeKey:n.deps.localeKey}).tooltip},r=Vt({isOpened:!1}),i=a=>{s("onVerticalAlignVariantChanged",a),r.isOpened=!1},s=e;return(a,l)=>Ot((O(),J("div",s1t,[_("button",{id:"richTextDropdownVerticalAlign",class:$e(["bootstrap-styles p-1 rounded rich-text-button",{show:r.isOpened}]),type:"button",onClick:l[0]||(l[0]=u=>r.isOpened=!r.isOpened)},[_("i",a1t,[n.currentVerticalAlign==="Baseline"?(O(),Ze(Soe,{key:0})):Ue("",!0),n.currentVerticalAlign==="Top"?(O(),Ze(Toe,{key:1})):Ue("",!0),n.currentVerticalAlign==="Middle"?(O(),Ze(xoe,{key:2})):Ue("",!0),n.currentVerticalAlign==="Bottom"?(O(),Ze(Foe,{key:3})):Ue("",!0)])],2),_("div",{class:$e([{show:r.isOpened},"bootstrap-styles vertical-align-dropdown bg-white p-1"]),"aria-labelledby":"richTextDropdownVerticalAlign"},[_("button",{class:$e(["bootstrap-styles p-1 rounded rich-text-button me-14",{active:n.currentVerticalAlign==="Baseline"}]),onClick:l[1]||(l[1]=()=>i("Baseline"))},[_("i",l1t,[ie(Soe)])],2),_("button",{class:$e(["bootstrap-styles p-1 rounded rich-text-button me-14",{active:n.currentVerticalAlign==="Top"}]),onClick:l[2]||(l[2]=()=>i("Top"))},[_("i",u1t,[ie(Toe)])],2),_("button",{class:$e(["bootstrap-styles p-1 rounded rich-text-button me-14",{active:n.currentVerticalAlign==="Middle"}]),onClick:l[3]||(l[3]=()=>i("Middle"))},[_("i",c1t,[ie(xoe)])],2),_("button",{class:$e(["bootstrap-styles p-1 rounded rich-text-button",{active:n.currentVerticalAlign==="Bottom"}]),onClick:l[4]||(l[4]=()=>i("Bottom"))},[_("i",d1t,[ie(Foe)])],2)],2)])),[[z(Gm),()=>r.isOpened=!1],[z($o),{title:o.tooltip,placement:"top"}]])}}),m1t=ot(h1t,[["__scopeId","data-v-4a636ae8"]]),f1t={},p1t={xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"};function g1t(t,e){return O(),J("svg",p1t,[...e[0]||(e[0]=[_("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 woe=ot(f1t,[["render",g1t]]),C1t={},y1t={xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"};function b1t(t,e){return O(),J("svg",y1t,[...e[0]||(e[0]=[_("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 koe=ot(C1t,[["render",b1t]]),v1t={},T1t={xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"};function x1t(t,e){return O(),J("svg",T1t,[...e[0]||(e[0]=[_("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 Eoe=ot(v1t,[["render",x1t]]),F1t={tooltip:"Alignment"},S1t={tooltip:"Выравнивание"},w1t=Xn({en:F1t,ru:S1t}),k1t={class:"bootstrap-styles content-align-editor dropdown rounded"},E1t={class:"bootstrap-styles rich-text-icon icon-hover d-flex justify-content-center align-items-center"},_1t={class:"bootstrap-styles rich-text-icon icon-hover d-flex justify-content-center align-items-center"},R1t={class:"bootstrap-styles rich-text-icon icon-hover d-flex justify-content-center align-items-center"},D1t={class:"bootstrap-styles rich-text-icon icon-hover d-flex justify-content-center align-items-center"},A1t=Xe({__name:"ContentAlignEditor",props:{editor:{},currentContentAlign:{},deps:{}},emits:["onContentAlignVariantChanged"],setup(t,{emit:e}){const n=t,o={tooltip:w1t({localeKey:n.deps.localeKey}).tooltip},r=Vt({isOpened:!1}),i=a=>{s("onContentAlignVariantChanged",a),r.isOpened=!1},s=e;return(a,l)=>Ot((O(),J("div",k1t,[_("button",{id:"richTextDropdownContentAlign",class:$e(["bootstrap-styles p-1 rounded rich-text-button",{show:r.isOpened}]),type:"button",onClick:l[0]||(l[0]=u=>r.isOpened=!r.isOpened)},[_("i",E1t,[n.currentContentAlign==="Left"?(O(),Ze(woe,{key:0})):Ue("",!0),n.currentContentAlign==="Center"?(O(),Ze(koe,{key:1})):Ue("",!0),n.currentContentAlign==="Right"?(O(),Ze(Eoe,{key:2})):Ue("",!0)])],2),_("div",{class:$e([{show:r.isOpened},"bootstrap-styles content-align-dropdown bg-white p-1"]),"aria-labelledby":"richTextDropdownContentAlign"},[_("button",{class:$e(["bootstrap-styles p-1 rounded rich-text-button me-14",{active:n.currentContentAlign==="Left"}]),onClick:l[1]||(l[1]=()=>i("Left"))},[_("i",_1t,[ie(woe)])],2),_("button",{class:$e(["bootstrap-styles p-1 rounded rich-text-button me-14",{active:n.currentContentAlign==="Center"}]),onClick:l[2]||(l[2]=()=>i("Center"))},[_("i",R1t,[ie(koe)])],2),_("button",{class:$e(["bootstrap-styles p-1 rounded rich-text-button",{active:n.currentContentAlign==="Right"}]),onClick:l[3]||(l[3]=()=>i("Right"))},[_("i",D1t,[ie(Eoe)])],2)],2)])),[[z(Gm),()=>r.isOpened=!1],[z($o),{title:o.tooltip,placement:"top"}]])}}),N1t=ot(A1t,[["__scopeId","data-v-c8a15233"]]),B1t={class:"bootstrap-styles rich-text-toolbar d-flex align-items-center border gap-1 p-1"},L1t={key:2,class:"bootstrap-styles position-relative h-100"},$1t={key:3,class:"bootstrap-styles position-relative h-100"},V1t={key:4,class:"bootstrap-styles d-flex justify-content-center align-items-center"},M1t={key:7,class:"vl"},O1t={key:13,class:"vl"},I1t={key:16,class:"vl"},P1t=Xe({__name:"RichTextToolbar",props:{editor:{},deps:{},element:{},theme:{},initialThemeName:{}},emits:["onVerticalAlignVariantChanged","onContentAlignVariantChanged"],setup(t,{emit:e}){const n=t,o=n.deps.richTextToolbarPlugins,r=q(()=>{const{from:a,to:l}=n.editor.state.selection;return a!==l}),i=q(()=>n.editor.isActive("image")),s=e;return(a,l)=>(O(),J("div",B1t,[i.value?Ue("",!0):(O(),Ze(i0t,{key:0,editor:n.editor,theme:n.theme,isAllowToEdit:r.value,initialThemeName:n.initialThemeName,deps:n.deps.themeSettingsSelectorDeps},null,8,["editor","theme","isAllowToEdit","initialThemeName","deps"])),i.value?Ue("",!0):(O(),Ze(Ryt,{key:1,theme:n.theme,editor:n.editor,isAllowToEdit:r.value,deps:n.deps.fontFamilySelectorDeps},null,8,["theme","editor","isAllowToEdit","deps"])),i.value?Ue("",!0):(O(),J("div",L1t,[ie(Yyt,{editor:n.editor,theme:n.theme,deps:n.deps.fontSizeEditorDeps,class:$e({disabled:!r.value})},null,8,["editor","theme","deps","class"])])),i.value?Ue("",!0):(O(),J("div",$1t,[ie(v0t,{editor:n.editor,theme:n.theme,deps:n.deps.lineHeightEditorDeps,class:$e({disabled:!r.value})},null,8,["editor","theme","deps","class"])])),i.value?Ue("",!0):(O(),J("div",V1t,[ie(Cyt,{editor:n.editor,theme:n.theme,isAllowToEdit:r.value,deps:n.deps.colorPickerDeps},null,8,["editor","theme","isAllowToEdit","deps"])])),i.value?(O(),Ze(m1t,{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"])):Ue("",!0),i.value?Ue("",!0):(O(),Ze(N1t,{key:6,editor:n.editor,currentContentAlign:n.element.ContentAlign,deps:n.deps.contentAlignEditorDeps,class:$e({"bootstrap-styles me-14":i.value}),onOnContentAlignVariantChanged:l[1]||(l[1]=u=>s("onContentAlignVariantChanged",u))},null,8,["editor","currentContentAlign","deps","class"])),i.value?Ue("",!0):(O(),J("div",M1t)),i.value?Ue("",!0):(O(),Ze(_bt,{key:8,editor:n.editor,theme:n.theme,isAllowToEdit:r.value,deps:n.deps.fontWeightEditorDeps},null,8,["editor","theme","isAllowToEdit","deps"])),i.value?Ue("",!0):(O(),Ze(rvt,{key:9,editor:n.editor,theme:n.theme,isAllowToEdit:r.value,deps:n.deps.fontStyleEditorDeps},null,8,["editor","theme","isAllowToEdit","deps"])),i.value?Ue("",!0):(O(),Ze(Obt,{key:10,editor:n.editor,theme:n.theme,isAllowToEdit:r.value,deps:n.deps.lineThroughEditorDeps},null,8,["editor","theme","isAllowToEdit","deps"])),i.value?Ue("",!0):(O(),Ze(Jbt,{key:11,editor:n.editor,theme:n.theme,isAllowToEdit:r.value,deps:n.deps.underlineEditorDeps},null,8,["editor","theme","isAllowToEdit","deps"])),i.value?Ue("",!0):(O(),Ze(fvt,{key:12,editor:n.editor,theme:n.theme,isAllowToEdit:r.value,deps:n.deps.textTransformEditorDeps},null,8,["editor","theme","isAllowToEdit","deps"])),i.value?Ue("",!0):(O(),J("div",O1t)),i.value?Ue("",!0):(O(),Ze(Lvt,{key:14,editor:n.editor,deps:n.deps.bulletListEditorDeps},null,8,["editor","deps"])),i.value?Ue("",!0):(O(),Ze(jvt,{key:15,editor:n.editor,deps:n.deps.orderedListEditorDeps},null,8,["editor","deps"])),i.value?Ue("",!0):(O(),J("div",I1t)),ie(J0t,{editor:n.editor,isAllowToEdit:r.value,deps:n.deps.linkEditorDeps},null,8,["editor","isAllowToEdit","deps"]),ie(Svt,{editor:n.editor,theme:n.theme,isAllowToEdit:r.value,deps:n.deps.unsubscribeLinkEditorDeps},null,8,["editor","theme","isAllowToEdit","deps"]),ie(ybt,{editor:n.editor,deps:n.deps.imageEditorDeps},null,8,["editor","deps"]),(O(!0),J(rt,null,$n(z(o),(u,c)=>(O(),J("span",{key:c},[(O(),Ze(ID(u),{editor:n.editor},null,8,["editor"]))]))),128))]))}}),W1t=ot(P1t,[["__scopeId","data-v-1789210c"]]),H1t=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 ta(t)}}}),z1t=t=>H1t(t.verticalAlign).Match({whenBaseline:()=>"baseline",whenTop:()=>"top",whenMiddle:()=>"middle",whenBottom:()=>"bottom"}),_oe="NormalText",j1t=Xe({__name:"RichText",props:{deps:{},theme:{},element:{},isSelected:{type:Boolean}},emits:["onRichTextUpdated","onRichTextRemoved","onElementClicked"],setup(t,{emit:e}){Hm(y=>({v23f1e660:n.theme.Colors.PrimaryColor,v70d14324:n.theme.Colors.SecondaryColor,v86efc29a:n.theme.Colors.PrimaryTextColor,bd12407e:n.theme.Colors.SecondaryTextColor,v25ddb634:n.theme.Colors.CardBackgroundColor,v861d4a36:n.theme.Colors.ButtonTextColor,v4b55838a:n.theme.Colors.TitleColor,v6a651340:n.theme.Colors.HeadingColor,v20b920a2:n.theme.Colors.SubHeadingColor,b378654c:n.theme.Colors.LargeTextColor,efdd3e60:n.theme.Colors.NormalTextColor,v48387a79:n.theme.Colors.DescriptionTextColor,v244e47ec:n.theme.Colors.LinkColor,v5e83a710:n.theme.Colors.EmailBackgroundColor,cd4dc93c:n.theme.Colors.BodyColor,v361cd101:f.value}));const n=t,o=Vt({isRemoveComponentWindowShown:!1,isEditing:!1}),r={removeWindowTitle:foe({localeKey:n.deps.localeKey}).removeWindowTitle,removeWindowDescription:foe({localeKey:n.deps.localeKey}).removeWindowDescription},i=pn(null),s=pn(null),{floatingStyles:a}=A0e(s,i,{placement:"top",whileElementsMounted:_0e,middleware:[R0e(10)]}),l=q(()=>{const y=a.value.transform??"translate(0px, 0px)",b=new DOMMatrix(y).m42;return{...a.value,left:"50%",transform:`translate(-50%, ${b}px)`}}),u=gV(),c=q(()=>ls({fontFamily:n.theme.FontFamily,themeFontSettings:n.theme.FontSettingsPresets.NormalText,themeColor:n.theme.Colors.NormalTextColor})),d=q(()=>{const y={...aU(c.value)};return{fontSize:y.fontSize,lineHeight:y.lineHeight,fontFamily:y.fontFamily,fontWeight:y.fontWeight,fontStyle:y.fontStyle,color:y.color}}),h=_at({content:poe(n.element.Text),extensions:[...eyt({dataSourceFieldNameDelegate:n.deps.dataSourceFieldNameDelegate,initialThemeName:_oe,themeColors:n.theme.Colors})],editable:o.isEditing,autofocus:"all",onUpdate:({editor:y})=>{if(!o.isEditing)return;const b=tyt({editor:y});g("onRichTextUpdated",{...n.element,Text:b})}}),m=()=>{h.value&&(h.value.chain().focus().undo().run(),o.isRemoveComponentWindowShown=!1)},f=q(()=>z1t({verticalAlign:n.element.ImageVerticalAlign})),p=()=>[document.querySelector(".rich-text-toolbar"),document.querySelector(".string-expression-builder-modal-window"),document.querySelector(`.rich-text-editor__content-${u}`)];an(()=>n.element.Text,()=>{h.value&&!o.isEditing&&h.value.commands.setContent(poe(n.element.Text))});const g=e;return(y,b)=>Ot((O(),J("span",{ref_key:"richTextElementRef",ref:s,class:$e(["RichText cursor-pointer user-select-none",{selected:n.isSelected}]),style:he([z(wb)({contentAlign:n.element.ContentAlign}),{...d.value,minHeight:n.element.MinHeight+"px"}]),onClick:b[4]||(b[4]=Wo(()=>{g("onElementClicked"),o.isEditing=!0,z(h)&&z(h).setEditable(!0)},["prevent"]))},[ie(z(Eat),{class:$e(["rich-text-editor__content",`rich-text-editor__content-${z(u)}`]),editor:z(h)},null,8,["class","editor"]),z(h)&&o.isEditing?(O(),Ze(W1t,{key:0,ref_key:"richTextToolbarRef",ref:i,editor:z(h),deps:n.deps.richTextToolbarDeps,element:n.element,theme:n.theme,initialThemeName:_oe,style:he(l.value),onOnVerticalAlignVariantChanged:b[0]||(b[0]=F=>g("onRichTextUpdated",{...n.element,ImageVerticalAlign:F})),onOnContentAlignVariantChanged:b[1]||(b[1]=F=>g("onRichTextUpdated",{...n.element,ContentAlign:F}))},null,8,["editor","deps","element","theme","style"])):Ue("",!0),(O(),Ze(m9,{to:"#app"},[o.isRemoveComponentWindowShown?(O(),Ze(gCt,{key:0,deps:n.deps.removeConfirmModalWindowDeps,headerText:r.removeWindowTitle,onCancel:b[2]||(b[2]=()=>m()),onConfirmed:b[3]||(b[3]=()=>{o.isRemoveComponentWindowShown=!1,g("onRichTextRemoved")})},{"body-content":Fu(()=>[X0(Gt(r.removeWindowDescription),1)]),_:1},8,["deps","headerText"])):Ue("",!0)]))],6)),[[z(Gm),{handler:()=>{o.isEditing=!1,z(h)&&z(h).setEditable(!1)},include:p}]])}}),U1t=ot(j1t,[["__scopeId","data-v-ed6b2a5a"]]),K1t=Xe({__name:"UnsubscribeLink",props:{theme:{},element:{}},emits:["onElementClicked"],setup(t,{emit:e}){const n=t,o=q(()=>{const i=lU({fontFamily:n.theme.FontFamily,fontStyle:n.element.Style,themeDefinedFontSettings:n.theme.FontSettingsPresets,themeColors:n.theme.Colors});return{...aU(i)}}),r=e;return(i,s)=>(O(),J("a",{href:"#",class:"cursor-pointer user-select-none",style:he([{margin:"0"},[o.value,z(wb)({contentAlign:n.element.ContentAlign})]]),onClick:s[0]||(s[0]=Wo(()=>r("onElementClicked"),["prevent"]))},Gt(n.element.Text),5))}}),q1t=ot(K1t,[["__scopeId","data-v-68ed9754"]]),J1t=["src","alt"],G1t={class:"bootstrap-styles position-absolute top-0 left-0",width:"100%",style:{"border-spacing":"0","border-collapse":"collapse",width:"100%",height:"100%"}},Y1t={key:0},X1t=["align"],Q1t={style:{width:"auto","border-spacing":"0","border-collapse":"separate"}},Z1t={align:"center",style:{width:"auto"}},eTt={key:0},tTt={key:1},nTt=["align"],oTt={style:{width:"auto","border-spacing":"0","border-collapse":"separate"}},rTt={align:"center",style:{width:"auto"}},iTt={key:2},sTt=["align"],aTt={style:{width:"auto","border-spacing":"0","border-collapse":"separate"}},lTt={align:"center",style:{width:"auto"}},uTt={key:3},cTt=["align"],dTt={style:{width:"auto","border-spacing":"0","border-collapse":"separate"}},hTt={align:"center",style:{width:"auto"}},mTt=Xe({__name:"BackgroundImage",props:{deps:{},theme:{},element:{},context:{type:[String,Number,Boolean,Array,Object]},path:{},selectedElementPath:{}},emits:["onImageOriginalSizeAdjusted","onImageSizeAdjusted","onElementClicked","onElementUpdatedEvent","onElementRemoved","onElementWrapperClicked"],setup(t,{emit:e}){const n=t,o=Vt({src:"",href:"",isLoaded:!1}),r=async s=>n.deps.stringExpressionEvaluator({stringExpression:s,context:n.context});(async()=>(o.src=await r(n.element.Src),o.href=await r(n.element.HRef),o.isLoaded=!0))();const i=e;return(s,a)=>o.isLoaded?(O(),J("table",{key:0,class:"bootstrap-styles position-relative",style:he([{"border-spacing":"0","border-collapse":"separate"},{width:"100%"}]),onClick:a[20]||(a[20]=Wo(()=>i("onElementWrapperClicked"),["prevent"]))},[_("tbody",null,[_("tr",null,[_("td",{align:"center",style:he([{height:n.element.AdjustedHeight+"px",verticalAlign:"top"}])},[Ot(_("img",{src:o.src,alt:o.src,style:{"max-width":"100%"}},null,8,J1t),[[z(CS),({width:l,height:u})=>{i("onImageSizeAdjusted",{Path:n.path,AdjustedHeight:u,AdjustedWidth:l}),o.isLoaded=!0}]]),_("table",G1t,[_("tbody",null,[n.element.TopElementList.List.length>0&&n.element.TopElementList.Direction==="Vertical"?(O(),J("tr",Y1t,[_("td",{valign:"top",align:z(Vc)({containerAlign:n.element.TopElementList.ContentAlign})},[_("table",Q1t,[_("tbody",null,[_("tr",null,[_("td",{style:he({height:n.element.ElementsSpacerSize+"px",fontSize:n.element.ElementsSpacerSize+"px",lineHeight:n.element.ElementsSpacerSize+"px"})},"   ",4)]),(O(!0),J(rt,null,$n(n.element.TopElementList.List,(l,u)=>(O(),J(rt,{key:u},[_("tr",null,[n.element.TopElementList.ContentAlign==="Left"?(O(),J("td",{key:0,style:he({width:n.element.ElementsSpacerSize+"px",fontSize:n.element.ElementsSpacerSize+"px",lineHeight:n.element.ElementsSpacerSize+"px"})},"   ",4)):Ue("",!0),_("td",Z1t,[ie(Fl,{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"?(O(),J("td",{key:1,style:he({width:n.element.ElementsSpacerSize+"px",fontSize:n.element.ElementsSpacerSize+"px",lineHeight:n.element.ElementsSpacerSize+"px"})},"   ",4)):Ue("",!0)]),n.element.TopElementList.List.length-1!==u?(O(),J("tr",eTt,[_("td",{style:he({height:n.element.ElementsSpacerSize+"px",fontSize:n.element.ElementsSpacerSize+"px",lineHeight:n.element.ElementsSpacerSize+"px"})},"   ",4)])):Ue("",!0)],64))),128))])])],8,X1t)])):Ue("",!0),n.element.TopElementList.List.length>0&&n.element.TopElementList.Direction==="Horizontal"?(O(),J("tr",tTt,[_("td",{valign:"top",align:z(Vc)({containerAlign:n.element.TopElementList.ContentAlign})},[_("table",oTt,[_("tbody",null,[_("tr",null,[_("td",{style:he({height:n.element.ElementsSpacerSize+"px",fontSize:n.element.ElementsSpacerSize+"px",lineHeight:n.element.ElementsSpacerSize+"px"})},"   ",4)]),_("tr",null,[(O(!0),J(rt,null,$n(n.element.TopElementList.List,(l,u)=>(O(),J(rt,{key:u},[n.element.TopElementList.ContentAlign==="Left"&&u===0?(O(),J("td",{key:0,style:he({width:n.element.ElementsSpacerSize+"px",fontSize:n.element.ElementsSpacerSize+"px",lineHeight:n.element.ElementsSpacerSize+"px"})},"   ",4)):Ue("",!0),_("td",rTt,[ie(Fl,{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?(O(),J("td",{key:1,style:he({width:n.element.ElementsSpacerSize+"px",fontSize:n.element.ElementsSpacerSize+"px",lineHeight:n.element.ElementsSpacerSize+"px"})},"   ",4)):Ue("",!0),n.element.TopElementList.ContentAlign==="Right"?(O(),J("td",{key:2,style:he({width:n.element.ElementsSpacerSize+"px",fontSize:n.element.ElementsSpacerSize+"px",lineHeight:n.element.ElementsSpacerSize+"px"})},"   ",4)):Ue("",!0),n.element.TopElementList.ContentAlign==="Left"&&n.element.TopElementList.List.length-1!==u?(O(),J("td",{key:3,style:he({width:n.element.ElementsSpacerSize+"px",fontSize:n.element.ElementsSpacerSize+"px",lineHeight:n.element.ElementsSpacerSize+"px"})},"   ",4)):Ue("",!0)],64))),128))])])])],8,nTt)])):Ue("",!0),n.element.BottomElementList.List.length>0&&n.element.BottomElementList.Direction==="Vertical"?(O(),J("tr",iTt,[_("td",{valign:"bottom",align:z(Vc)({containerAlign:n.element.BottomElementList.ContentAlign})},[_("table",aTt,[_("tbody",null,[(O(!0),J(rt,null,$n(n.element.BottomElementList.List,(l,u)=>(O(),J(rt,{key:u},[_("tr",null,[n.element.BottomElementList.ContentAlign==="Left"?(O(),J("td",{key:0,style:he({width:n.element.ElementsSpacerSize+"px",fontSize:n.element.ElementsSpacerSize+"px",lineHeight:n.element.ElementsSpacerSize+"px"})},"   ",4)):Ue("",!0),_("td",lTt,[ie(Fl,{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"?(O(),J("td",{key:1,style:he({width:n.element.ElementsSpacerSize+"px",fontSize:n.element.ElementsSpacerSize+"px",lineHeight:n.element.ElementsSpacerSize+"px"})},"   ",4)):Ue("",!0)]),_("tr",null,[_("td",{style:he({height:n.element.ElementsSpacerSize+"px",fontSize:n.element.ElementsSpacerSize+"px",lineHeight:n.element.ElementsSpacerSize+"px"})},"   ",4)])],64))),128))])])],8,sTt)])):Ue("",!0),n.element.BottomElementList.List.length>0&&n.element.BottomElementList.Direction==="Horizontal"?(O(),J("tr",uTt,[_("td",{valign:"bottom",align:z(Vc)({containerAlign:n.element.BottomElementList.ContentAlign})},[_("table",dTt,[_("tbody",null,[_("tr",null,[(O(!0),J(rt,null,$n(n.element.BottomElementList.List,(l,u)=>(O(),J(rt,{key:u},[n.element.BottomElementList.ContentAlign==="Left"&&u===0?(O(),J("td",{key:0,style:he({width:n.element.ElementsSpacerSize+"px",fontSize:n.element.ElementsSpacerSize+"px",lineHeight:n.element.ElementsSpacerSize+"px"})},"   ",4)):Ue("",!0),_("td",hTt,[ie(Fl,{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?(O(),J("td",{key:1,style:he({width:n.element.ElementsSpacerSize+"px",fontSize:n.element.ElementsSpacerSize+"px",lineHeight:n.element.ElementsSpacerSize+"px"})},"   ",4)):Ue("",!0),n.element.BottomElementList.ContentAlign==="Right"?(O(),J("td",{key:2,style:he({width:n.element.ElementsSpacerSize+"px",fontSize:n.element.ElementsSpacerSize+"px",lineHeight:n.element.ElementsSpacerSize+"px"})},"   ",4)):Ue("",!0),n.element.BottomElementList.ContentAlign==="Left"&&n.element.BottomElementList.List.length-1!==u?(O(),J("td",{key:3,style:he({width:n.element.ElementsSpacerSize+"px",fontSize:n.element.ElementsSpacerSize+"px",lineHeight:n.element.ElementsSpacerSize+"px"})},"   ",4)):Ue("",!0)],64))),128))])])])],8,cTt)])):Ue("",!0)])])],4)])])])):Ue("",!0)}}),Fl=Xe({__name:"Elements",props:{deps:{},theme:{},element:{},path:{},context:{type:[String,Number,Boolean,Array,Object]},selectedElementPath:{}},emits:["onElementClicked","onImageOriginalSizeAdjusted","onImageSizeAdjusted","onElementUpdatedEvent","onElementRemoved"],setup(t,{emit:e}){const n=t,o=e,r=(i,s)=>{o("onElementClicked",{element:i,path:[...n.path,s]})};return(i,s)=>(O(),J("span",{onClick:s[31]||(s[31]=Wo(()=>{},["stop"]))},[n.element.Button!==void 0?(O(),Ze(Ygt,{key:0,deps:n.deps,theme:n.theme,element:n.element.Button,context:n.context,class:$e({"element-selected":z(Nf)(n.selectedElementPath,[...n.path,"Button"])}),onOnElementClicked:s[0]||(s[0]=a=>r(n.element,"Button"))},null,8,["deps","theme","element","context","class"])):Ue("",!0),n.element.HeightContainer!==void 0?(O(),Ze(Egt,{key:1,deps:n.deps,theme:n.theme,element:n.element.HeightContainer,path:[...n.path,"HeightContainer"],selectedElementPath:n.selectedElementPath,context:n.context,onOnImageOriginalSizeAdjusted:s[1]||(s[1]=a=>o("onImageOriginalSizeAdjusted",a)),onOnImageSizeAdjusted:s[2]||(s[2]=a=>o("onImageSizeAdjusted",a)),onOnElementClicked:s[3]||(s[3]=a=>o("onElementClicked",a)),onOnElementRemoved:s[4]||(s[4]=a=>o("onElementRemoved",a)),onOnElementUpdatedEvent:s[5]||(s[5]=a=>o("onElementUpdatedEvent",a))},null,8,["deps","theme","element","path","selectedElementPath","context"])):Ue("",!0),n.element.Image!==void 0?(O(),Ze(Bgt,{key:2,deps:n.deps,theme:n.theme,element:n.element.Image,context:n.context,path:[...n.path,"Image"],class:$e({"element-selected":z(Nf)(n.selectedElementPath,[...n.path,"Image"])}),onOnImageOriginalSizeAdjusted:s[6]||(s[6]=a=>o("onImageOriginalSizeAdjusted",a)),onOnImageSizeAdjusted:s[7]||(s[7]=a=>o("onImageSizeAdjusted",a)),onOnElementClicked:s[8]||(s[8]=a=>r(n.element,"Image"))},null,8,["deps","theme","element","context","path","class"])):Ue("",!0),n.element.Spacer!==void 0?(O(),Ze(Igt,{key:3,element:n.element.Spacer,theme:n.theme,class:$e({"element-selected":z(Nf)(n.selectedElementPath,[...n.path,"Spacer"])}),onOnElementClicked:s[9]||(s[9]=a=>r(n.element,"Spacer"))},null,8,["element","theme","class"])):Ue("",!0),n.element.SpanText!==void 0?(O(),Ze(Zgt,{key:4,deps:n.deps,theme:n.theme,element:n.element.SpanText,context:n.context,class:$e({"element-selected":z(Nf)(n.selectedElementPath,[...n.path,"SpanText"])}),onOnElementClicked:s[10]||(s[10]=a=>r(n.element,"SpanText"))},null,8,["deps","theme","element","context","class"])):Ue("",!0),n.element.RichText!==void 0?(O(),Ze(U1t,{key:5,deps:n.deps.richTextDeps,theme:n.theme,element:n.element.RichText,isSelected:z(Nf)(n.selectedElementPath,[...n.path,"RichText"]),onOnElementClicked:s[11]||(s[11]=a=>r(n.element,"RichText")),onOnRichTextUpdated:s[12]||(s[12]=a=>{o("onElementUpdatedEvent",{path:n.path,element:{RichText:a}})}),onOnRichTextRemoved:s[13]||(s[13]=()=>{o("onElementRemoved",n.path)})},null,8,["deps","theme","element","isSelected"])):Ue("",!0),n.element.OneLineList!==void 0?(O(),Ze(Mgt,{key:6,deps:n.deps,theme:n.theme,element:n.element.OneLineList,path:[...n.path,"OneLineList"],selectedElementPath:n.selectedElementPath,context:n.context,onOnImageOriginalSizeAdjusted:s[14]||(s[14]=a=>o("onImageOriginalSizeAdjusted",a)),onOnImageSizeAdjusted:s[15]||(s[15]=a=>o("onImageSizeAdjusted",a)),onOnElementClicked:s[16]||(s[16]=a=>o("onElementClicked",a)),onOnElementRemoved:s[17]||(s[17]=a=>o("onElementRemoved",a)),onOnElementUpdatedEvent:s[18]||(s[18]=a=>o("onElementUpdatedEvent",a))},null,8,["deps","theme","element","path","selectedElementPath","context"])):Ue("",!0),n.element.If!==void 0?(O(),Ze(Fgt,{key:7,deps:n.deps,theme:n.theme,element:n.element.If,context:n.context,path:[...n.path,"If"],selectedElementPath:n.selectedElementPath,onOnImageOriginalSizeAdjusted:s[19]||(s[19]=a=>o("onImageOriginalSizeAdjusted",a)),onOnImageSizeAdjusted:s[20]||(s[20]=a=>o("onImageSizeAdjusted",a)),onOnElementClicked:s[21]||(s[21]=a=>o("onElementClicked",a)),onOnElementRemoved:s[22]||(s[22]=a=>o("onElementRemoved",a)),onOnElementUpdatedEvent:s[23]||(s[23]=a=>o("onElementUpdatedEvent",a))},null,8,["deps","theme","element","context","path","selectedElementPath"])):Ue("",!0),n.element.UnsubscribeLink!==void 0?(O(),Ze(q1t,{key:8,theme:n.theme,element:n.element.UnsubscribeLink,class:$e({"element-selected":z(Nf)(n.selectedElementPath,[...n.path,"UnsubscribeLink"])}),onOnElementClicked:s[24]||(s[24]=a=>r(n.element,"UnsubscribeLink"))},null,8,["theme","element","class"])):Ue("",!0),n.element.BackgroundImage!==void 0?(O(),Ze(mTt,{key:9,deps:n.deps,theme:n.theme,element:n.element.BackgroundImage,context:n.context,path:[...n.path,"BackgroundImage"],selectedElementPath:n.selectedElementPath,class:$e({"element-selected":z(Nf)(n.selectedElementPath,[...n.path,"BackgroundImage"])}),onOnImageOriginalSizeAdjusted:s[25]||(s[25]=a=>o("onImageOriginalSizeAdjusted",a)),onOnImageSizeAdjusted:s[26]||(s[26]=a=>o("onImageSizeAdjusted",a)),onOnElementClicked:s[27]||(s[27]=a=>o("onElementClicked",a)),onOnElementRemoved:s[28]||(s[28]=a=>o("onElementRemoved",a)),onOnElementUpdatedEvent:s[29]||(s[29]=a=>o("onElementUpdatedEvent",a)),onOnElementWrapperClicked:s[30]||(s[30]=a=>r(n.element,"BackgroundImage"))},null,8,["deps","theme","element","context","path","selectedElementPath","class"])):Ue("",!0)]))}}),fTt=["align"],pTt=Xe({__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}){Hm(i=>({v63736150:r.value}));const n=t,o=e,r=q(()=>n.iteratedColumn.WidthInPercents*n.containerWidth+"px");return(i,s)=>(O(),J("div",{class:"iterated-column",style:he({display:"inline-block",verticalAlign:n.iteratedColumn.VerticalAlign})},[_("table",{style:he([[z(Pw)({borderCollapse:n.iteratedColumn.BorderCollapse})],{width:"100%","border-spacing":"0"}]),width:"100%"},[_("tbody",null,[_("tr",null,[_("td",{align:z(Vc)({containerAlign:n.iteratedColumn.ContainerAlign}),style:he([[z(gd)({border:n.iteratedColumn.Border,themeColors:n.theme.Colors}),{backgroundColor:z(Ll)({color:n.iteratedColumn.BgColor,themeColors:n.theme.Colors})},z(Wu)({borderRadius:n.iteratedColumn.BorderRadius,borderRadiusCard:n.theme.BorderRadiusCard,bodyBorderRadius:n.theme.BorderRadius,borderButtonRadius:n.theme.BorderRadiusButton,borderBannerRadius:n.theme.BorderRadiusBanner})],{"line-height":"normal"}])},[(O(!0),J(rt,null,$n(n.iteratedColumn.Elements,(a,l)=>(O(),Ze(Fl,{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=>o("onElementClicked",u)),onOnImageSizeAdjusted:s[1]||(s[1]=u=>o("onImageSizeAdjusted",u)),onOnImageOriginalSizeAdjusted:s[2]||(s[2]=u=>o("onImageOriginalSizeAdjusted",u)),onOnElementUpdatedEvent:s[3]||(s[3]=u=>o("onElementUpdatedEvent",u)),onOnElementRemoved:s[4]||(s[4]=u=>o("onElementRemoved",u))},null,8,["deps","theme","element","context","path","selectedElementPath"]))),128))],12,fTt)])])],4)],4))}}),gTt=ot(pTt,[["__scopeId","data-v-4bdaa248"]]),CTt=["align"],yTt=Xe({__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}){Hm(i=>({v2fbddeb4:r.value}));const n=t,o=e,r=q(()=>n.iteratedColumnN21.WidthInPercents*n.containerWidth+"px");return(i,s)=>(O(),J("div",{class:"iterated-column__N-2-1",style:he({display:"inline-block",verticalAlign:n.iteratedColumnN21.VerticalAlign})},[_("table",{style:he([[z(Pw)({borderCollapse:n.iteratedColumnN21.BorderCollapse})],{width:"100%","border-spacing":"0"}]),width:"100%"},[_("tbody",null,[_("tr",null,[_("td",{align:z(Vc)({containerAlign:n.iteratedColumnN21.ContainerAlign}),style:he([[z(gd)({border:n.iteratedColumnN21.Border,themeColors:n.theme.Colors}),{backgroundColor:z(Ll)({color:n.iteratedColumnN21.BgColor,themeColors:n.theme.Colors})},z(Wu)({borderRadius:n.iteratedColumnN21.BorderRadius,borderRadiusCard:n.theme.BorderRadiusCard,bodyBorderRadius:n.theme.BorderRadius,borderButtonRadius:n.theme.BorderRadiusButton,borderBannerRadius:n.theme.BorderRadiusBanner})],{"line-height":"normal"}])},[(O(!0),J(rt,null,$n(n.iteratedColumnN21.Elements,(a,l)=>(O(),Ze(Fl,{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=>o("onElementClicked",u)),onOnImageSizeAdjusted:s[1]||(s[1]=u=>o("onImageSizeAdjusted",u)),onOnImageOriginalSizeAdjusted:s[2]||(s[2]=u=>o("onImageOriginalSizeAdjusted",u)),onOnElementUpdatedEvent:s[3]||(s[3]=u=>o("onElementUpdatedEvent",u)),onOnElementRemoved:s[4]||(s[4]=u=>o("onElementRemoved",u))},null,8,["deps","theme","element","context","path","selectedElementPath"]))),128))],12,CTt)])])],4)],4))}}),bTt=ot(yTt,[["__scopeId","data-v-b46af162"]]),vTt=["align"],TTt=Xe({__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}){Hm(i=>({v904d8f2c:r.value}));const n=t,o=e,r=q(()=>n.iteratedColumnN22.WidthInPercents*n.containerWidth+"px");return(i,s)=>(O(),J("div",{class:"iterated-column__N-2-2",style:he({display:"inline-block",verticalAlign:n.iteratedColumnN22.VerticalAlign})},[_("table",{style:he([[z(Pw)({borderCollapse:n.iteratedColumnN22.BorderCollapse})],{width:"100%","border-spacing":"0"}]),width:"100%"},[_("tbody",null,[_("tr",null,[_("td",{align:z(Vc)({containerAlign:n.iteratedColumnN22.ContainerAlign}),style:he([[z(gd)({border:n.iteratedColumnN22.Border,themeColors:n.theme.Colors}),{backgroundColor:z(Ll)({color:n.iteratedColumnN22.BgColor,themeColors:n.theme.Colors})},z(Wu)({borderRadius:n.iteratedColumnN22.BorderRadius,borderRadiusCard:n.theme.BorderRadiusCard,bodyBorderRadius:n.theme.BorderRadius,borderButtonRadius:n.theme.BorderRadiusButton,borderBannerRadius:n.theme.BorderRadiusBanner})],{"line-height":"normal"}])},[(O(!0),J(rt,null,$n(n.iteratedColumnN22.Elements,(a,l)=>(O(),Ze(Fl,{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=>o("onElementClicked",u)),onOnImageSizeAdjusted:s[1]||(s[1]=u=>o("onImageSizeAdjusted",u)),onOnImageOriginalSizeAdjusted:s[2]||(s[2]=u=>o("onImageOriginalSizeAdjusted",u)),onOnElementUpdatedEvent:s[3]||(s[3]=u=>o("onElementUpdatedEvent",u)),onOnElementRemoved:s[4]||(s[4]=u=>o("onElementRemoved",u))},null,8,["deps","theme","element","context","path","selectedElementPath"]))),128))],12,vTt)])])],4)],4))}}),xTt=ot(TTt,[["__scopeId","data-v-319c5209"]]),FTt={class:"iterated-column-container",style:{"border-spacing":"0","border-collapse":"collapse",width:"100%",margin:"0 auto"},width:"100%"},STt={align:"center",style:{"font-size":"0"}},wTt=Xe({__name:"IteratedColumnBodyRow",props:{deps:{},theme:{},iteratedColumnBodyRow:{},path:{},selectedElementPath:{},context:{},rowWidth:{}},emits:["onElementClicked","onImageOriginalSizeAdjusted","onImageSizeAdjusted","onElementUpdatedEvent","onElementRemoved"],setup(t,{emit:e}){Hm(l=>({a80c0c96:i.value}));const n=t,o=Vt({dataList:[],isLoaded:!1}),r=()=>n.deps.listExpressionEvaluator({listExpression:n.iteratedColumnBodyRow.DataSource,context:n.context}).then(l=>{o.dataList=l,o.isLoaded=!0});r(),an(()=>n.context,()=>r());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)=>(O(),J("table",FTt,[_("tbody",null,[_("tr",null,[_("td",STt,[(O(!0),J(rt,null,$n(o.dataList,(c,d)=>(O(),J(rt,{key:d},[s.iteratedColumn(n.iteratedColumnBodyRow.IteratedColumn)?(O(),Ze(gTt,{key:d,class:$e(["iterated-column-bottom-spacer",{"iterated-column__tablet-padding-right":(d+1)%2===1,"iterated-column__tablet-padding-left":(d+1)%2===0,"is-last-desktop-line":d>=o.dataList.length-n.iteratedColumnBodyRow.NumberColumnsInLine,"is-last-tablet-line":d>=o.dataList.length-2,"is-last-mobile-line":d==o.dataList.length-1}]),deps:n.deps.iteratedColumnDeps,theme:n.theme,style:he(z(MR)({numberColumnsInLine:n.iteratedColumnBodyRow.NumberColumnsInLine,index:d,paddingSize:z(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"])):Ue("",!0),s.iteratedColumnVariant(n.iteratedColumnBodyRow.IteratedColumnVariant)?(O(),J(rt,{key:1},[s.iteratedColumnN21(n.iteratedColumnBodyRow.IteratedColumnVariant.IteratedColumnN21)?(O(),Ze(bTt,{key:d,deps:n.deps.iteratedColumnVariantDeps.iteratedColumnN21Deps,theme:n.theme,class:$e(["iterated-column-bottom-spacer",{"iterated-column__tablet-padding-right":(d+1)%2===1,"iterated-column__tablet-padding-left":(d+1)%2===0,"is-last-desktop-line":d>=o.dataList.length-n.iteratedColumnBodyRow.NumberColumnsInLine,"is-last-tablet-line":d>=o.dataList.length-2,"is-last-mobile-line":d==o.dataList.length-1}]),style:he(z(MR)({numberColumnsInLine:n.iteratedColumnBodyRow.NumberColumnsInLine,index:d,paddingSize:z(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"])):Ue("",!0),s.iteratedColumnN22(n.iteratedColumnBodyRow.IteratedColumnVariant.IteratedColumnN22)?(O(),Ze(xTt,{key:d,deps:n.deps.iteratedColumnVariantDeps.iteratedColumnN22Deps,theme:n.theme,class:$e(["iterated-column-bottom-spacer",{"iterated-column__tablet-padding-right iterated-column__N-2-2_mobile-padding-right":(d+1)%2===1,"iterated-column__tablet-padding-left iterated-column__N-2-2_mobile-padding-left":(d+1)%2===0,"is-last-desktop-line":d>=o.dataList.length-n.iteratedColumnBodyRow.NumberColumnsInLine,"is-last-tablet-line is-last-mobile-line":d>=o.dataList.length-2}]),style:he(z(MR)({numberColumnsInLine:n.iteratedColumnBodyRow.NumberColumnsInLine,index:d,paddingSize:z(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"])):Ue("",!0)],64)):Ue("",!0)],64))),128))])])])]))}}),kTt=ot(wTt,[["__scopeId","data-v-69ed8d34"]]),ETt={style:{"border-spacing":"0","border-collapse":"collapse",width:"100%",margin:"0 auto"}},_Tt=Xe({__name:"IteratedBodyRow",props:{theme:{},deps:{},iteratedBodyRow:{},path:{},selectedElementPath:{},context:{},containerWidth:{}},emits:["onElementClicked","onImageOriginalSizeAdjusted","onImageSizeAdjusted","onColumnWidthAdjusted","onElementUpdatedEvent","onElementRemoved"],setup(t,{emit:e}){const n=t,o=Vt({dataList:[]});n.deps.listExpressionEvaluator({listExpression:n.iteratedBodyRow.DataSource,context:n.context}).then(i=>o.dataList=i);const r=e;return(i,s)=>(O(),J("table",ETt,[(O(!0),J(rt,null,$n(o.dataList,(a,l)=>(O(),J("tr",{key:l},[_("td",{style:he([z(Ww)({paddings:n.iteratedBodyRow.Paddings,themeComponentPaddings:n.theme.ComponentPaddings,themeBodyPaddings:n.theme.BodyPaddings})])},[ie(Lxe,{emailComponentBodyRow:n.iteratedBodyRow.BodyRow,deps:{iteratedColumnBodyRowDeps:n.deps.iteratedColumnBodyRowDeps,multipleColumnBodyRowDeps:n.deps.multipleColumnBodyRowDeps,listExpressionEvaluator:n.deps.listExpressionEvaluator},theme:n.theme,context:{...n.context,[n.iteratedBodyRow.IndexName]:a},rowWidth:n.containerWidth,path:[...n.path,"BodyRow"],selectedElementPath:n.selectedElementPath,onOnElementClicked:s[0]||(s[0]=u=>r("onElementClicked",u)),onOnImageOriginalSizeAdjusted:s[1]||(s[1]=u=>r("onImageOriginalSizeAdjusted",u)),onOnImageSizeAdjusted:s[2]||(s[2]=u=>r("onImageSizeAdjusted",u)),onOnColumnWidthAdjusted:s[3]||(s[3]=u=>r("onColumnWidthAdjusted",u)),onOnElementUpdatedEvent:s[4]||(s[4]=u=>r("onElementUpdatedEvent",u)),onOnElementRemoved:s[5]||(s[5]=u=>r("onElementRemoved",u))},null,8,["emailComponentBodyRow","deps","theme","context","rowWidth","path","selectedElementPath"])],4)]))),128))]))}}),RTt=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()}}}),DTt=t=>RTt(t).Match({Top:()=>"start",Middle:()=>"center",Bottom:()=>"end",Baseline:()=>"baseline"}),ATt=nc,NTt=t=>({JustifyWidth:{WidthInPixels:t}}),BTt=t=>({ShrinkToContentWidth:{WidthInPixels:t}}),LTt=_ct,$Tt=["align"],VTt=Xe({__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}){Hm(l=>({acad954c:a.value,v1971599c:s.value,v72b8524e:i.value}));const n=t,o=e,r=l=>{ATt(n.multipleColumn.Width).Match({JustifyWidth:()=>O2.Some(NTt(l)),ShrinkToContentWidth:()=>O2.Some(BTt(l)),WidthInPercents:()=>O2.None}).map(u=>o("onColumnWidthAdjusted",{Path:n.path,Width:u}))},i=q(()=>LTt(n.multipleColumn.Width).Match({default:()=>"",WidthInPercents:l=>l.Value*n.containerWidth+"px"})),s=q(()=>DTt(n.multipleColumn.VerticalAlign)),a=q(()=>n.multipleColumn.VerticalAlign);return(l,u)=>Ot((O(),J("div",{class:$e(["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"}},[_("table",{style:he([{width:"100%","border-spacing":"0"},[z(Pw)({borderCollapse:n.multipleColumn.BorderCollapse})]]),width:"100%"},[_("tbody",null,[_("tr",null,[_("td",{align:z(Vc)({containerAlign:n.multipleColumn.ContainerAlign}),style:he([[z(gd)({border:n.multipleColumn.Border,themeColors:n.theme.Colors}),z(Wu)({borderRadius:n.multipleColumn.BorderRadius,borderRadiusCard:n.theme.BorderRadiusCard,bodyBorderRadius:n.theme.BorderRadius,borderButtonRadius:n.theme.BorderRadiusButton,borderBannerRadius:n.theme.BorderRadiusBanner}),{backgroundColor:z(Ll)({color:n.multipleColumn.BgColor,themeColors:n.theme.Colors})},z(Ww)({paddings:n.multipleColumn.Paddings,themeComponentPaddings:n.theme.ComponentPaddings,themeBodyPaddings:n.theme.BodyPaddings})],{"line-height":"normal"}])},[(O(!0),J(rt,null,$n(n.multipleColumn.Elements,(c,d)=>(O(),Ze(Fl,{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=>o("onElementClicked",h)),onOnImageSizeAdjusted:u[1]||(u[1]=h=>o("onImageSizeAdjusted",h)),onOnImageOriginalSizeAdjusted:u[2]||(u[2]=h=>o("onImageOriginalSizeAdjusted",h)),onOnElementUpdatedEvent:u[3]||(u[3]=h=>o("onElementUpdatedEvent",h)),onOnElementRemoved:u[4]||(u[4]=h=>o("onElementRemoved",h))},null,8,["deps","theme","element","context","path","selectedElementPath"]))),128))],12,$Tt)])])],4)],2)),[[z(CS),c=>r(c.width)]])}}),MTt=ot(VTt,[["__scopeId","data-v-bfa1869f"]]),OTt=Xe({__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}){Hm(i=>({v36e68443:r.value}));const n=t,o=e,r=q(()=>ko({paddingExpression:n.multipleColumnBodyRow.ColumnSpacerSize,themeComponentPaddings:n.theme.ComponentPaddings,themeBodyPaddings:n.theme.BodyPaddings})+"px");return(i,s)=>(O(),J("table",{class:"multiple-column-container",style:he([[z(Pw)({borderCollapse:n.multipleColumnBodyRow.BorderCollapse}),z(gd)({border:n.multipleColumnBodyRow.Border,themeColors:n.theme.Colors}),z(Wu)({borderRadius:n.multipleColumnBodyRow.BorderRadius,borderRadiusCard:n.theme.BorderRadiusCard,bodyBorderRadius:n.theme.BorderRadius,borderButtonRadius:n.theme.BorderRadiusButton,borderBannerRadius:n.theme.BorderRadiusBanner}),{backgroundColor:z(Ll)({color:n.multipleColumnBodyRow.BgColor,themeColors:n.theme.Colors})}],{"border-spacing":"0",width:"100%",margin:"0 auto"}]),width:"100%"},[_("tbody",null,[_("tr",null,[_("td",{class:"multiple-column-container__inner",style:he([{"font-size":"0"},[z(xgt)({containerAlign:n.multipleColumnBodyRow.ContainerAlign}),z(Ww)({paddings:n.multipleColumnBodyRow.Paddings,themeComponentPaddings:n.theme.ComponentPaddings,themeBodyPaddings:n.theme.BodyPaddings}),n.multipleColumnBodyRow.DirectionRtl?{direction:"rtl"}:{direction:"ltr"}]])},[(O(!0),J(rt,null,$n(n.multipleColumnBodyRow.Columns,(a,l)=>(O(),Ze(MTt,{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-z(ko)({paddingExpression:n.multipleColumnBodyRow.Paddings.Left,themeComponentPaddings:n.theme.ComponentPaddings,themeBodyPaddings:n.theme.BodyPaddings})-z(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:he(z(MR)({numberColumnsInLine:n.multipleColumnBodyRow.Columns.length,index:l,paddingSize:z(ko)({paddingExpression:n.multipleColumnBodyRow.ColumnSpacerSize,themeComponentPaddings:n.theme.ComponentPaddings,themeBodyPaddings:n.theme.BodyPaddings}),directionRtl:n.multipleColumnBodyRow.DirectionRtl})),class:$e({"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=>o("onElementClicked",u)),onOnColumnWidthAdjusted:s[1]||(s[1]=u=>o("onColumnWidthAdjusted",u)),onOnImageSizeAdjusted:s[2]||(s[2]=u=>o("onImageSizeAdjusted",u)),onOnImageOriginalSizeAdjusted:s[3]||(s[3]=u=>o("onImageOriginalSizeAdjusted",u)),onOnElementUpdatedEvent:s[4]||(s[4]=u=>o("onElementUpdatedEvent",u)),onOnElementRemoved:s[5]||(s[5]=u=>o("onElementRemoved",u))},null,8,["deps","theme","multipleColumn","path","selectedElementPath","context","containerWidth","style","class"]))),128))],4)])])],4))}}),ITt=ot(OTt,[["__scopeId","data-v-c6ebdc94"]]),Lxe=Xe({__name:"EmailComponentBodyRow",props:{deps:{},theme:{},emailComponentBodyRow:{},path:{},selectedElementPath:{},context:{},rowWidth:{}},emits:["onElementClicked","onImageOriginalSizeAdjusted","onImageSizeAdjusted","onColumnWidthAdjusted","onElementUpdatedEvent","onElementRemoved"],setup(t,{emit:e}){const n=t,o={multipleColumns:i=>i!==void 0,iteratedColumns:i=>i!==void 0,iteratedBodyRow:i=>i!==void 0},r=e;return(i,s)=>(O(),J("div",null,[o.multipleColumns(n.emailComponentBodyRow.MultipleColumnBodyRow)?(O(),Ze(ITt,{key:0,deps:n.deps.multipleColumnBodyRowDeps,theme:n.theme,multipleColumnBodyRow:n.emailComponentBodyRow.MultipleColumnBodyRow,path:[...n.path,"MultipleColumnBodyRow"],selectedElementPath:n.selectedElementPath,context:t.context,rowWidth:n.rowWidth,onOnColumnWidthAdjusted:s[0]||(s[0]=a=>r("onColumnWidthAdjusted",a)),onOnImageOriginalSizeAdjusted:s[1]||(s[1]=a=>r("onImageOriginalSizeAdjusted",a)),onOnImageSizeAdjusted:s[2]||(s[2]=a=>r("onImageSizeAdjusted",a)),onOnElementClicked:s[3]||(s[3]=a=>r("onElementClicked",a)),onOnElementUpdatedEvent:s[4]||(s[4]=a=>r("onElementUpdatedEvent",a)),onOnElementRemoved:s[5]||(s[5]=a=>r("onElementRemoved",a))},null,8,["deps","theme","multipleColumnBodyRow","path","selectedElementPath","context","rowWidth"])):Ue("",!0),o.iteratedColumns(n.emailComponentBodyRow.IteratedColumnBodyRow)?(O(),Ze(kTt,{key:1,deps:n.deps.iteratedColumnBodyRowDeps,theme:n.theme,iteratedColumnBodyRow:n.emailComponentBodyRow.IteratedColumnBodyRow,path:[...n.path,"IteratedColumnBodyRow"],selectedElementPath:n.selectedElementPath,context:t.context,rowWidth:n.rowWidth,onOnElementClicked:s[6]||(s[6]=a=>r("onElementClicked",a)),onOnImageOriginalSizeAdjusted:s[7]||(s[7]=a=>r("onImageOriginalSizeAdjusted",a)),onOnImageSizeAdjusted:s[8]||(s[8]=a=>r("onImageSizeAdjusted",a)),onOnElementUpdatedEvent:s[9]||(s[9]=a=>r("onElementUpdatedEvent",a)),onOnElementRemoved:s[10]||(s[10]=a=>r("onElementRemoved",a))},null,8,["deps","theme","iteratedColumnBodyRow","path","selectedElementPath","context","rowWidth"])):Ue("",!0),o.iteratedBodyRow(n.emailComponentBodyRow.IteratedBodyRow)?(O(),Ze(_Tt,{key:2,deps:{iteratedColumnBodyRowDeps:n.deps.iteratedColumnBodyRowDeps,multipleColumnBodyRowDeps:n.deps.multipleColumnBodyRowDeps,listExpressionEvaluator:n.deps.listExpressionEvaluator},theme:n.theme,iteratedBodyRow:n.emailComponentBodyRow.IteratedBodyRow,path:[...n.path,"IteratedBodyRow"],selectedElementPath:n.selectedElementPath,context:t.context,containerWidth:n.rowWidth,onOnElementClicked:s[11]||(s[11]=a=>r("onElementClicked",a)),onOnImageOriginalSizeAdjusted:s[12]||(s[12]=a=>r("onImageOriginalSizeAdjusted",a)),onOnImageSizeAdjusted:s[13]||(s[13]=a=>r("onImageSizeAdjusted",a)),onOnElementUpdatedEvent:s[14]||(s[14]=a=>r("onElementUpdatedEvent",a)),onOnElementRemoved:s[15]||(s[15]=a=>r("onElementRemoved",a))},null,8,["deps","theme","iteratedBodyRow","path","selectedElementPath","context","containerWidth"])):Ue("",!0)]))}}),PTt={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"},WTt={emptyEmailComponentText:"Товарная полка скрыта из-за недостатка товаров",emptyEmailComponentTooltip:"Товарная полка не будет отображаться у получателей письма пока в ней недостаточно товаров",requiredComponentNotification:"Без этого компонента письмо не будет отправлено"},oP=Xn({en:PTt,ru:WTt}),HTt={},zTt={width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function jTt(t,e){return O(),J("svg",zTt,[...e[0]||(e[0]=[_("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 UTt=ot(HTt,[["render",jTt]]),KTt={key:0},qTt={key:0,class:"is-required-notification"},JTt={class:"bootstrap-styles w-100 d-flex justify-content-center gap-5"},GTt=Xe({__name:"EmailComponent",props:{deps:{},theme:{},emailComponent:{},path:{},selectedElementPath:{}},emits:["onElementClicked","onImageOriginalSizeAdjusted","onImageSizeAdjusted","onColumnWidthAdjusted","onElementUpdatedEvent","onElementRemoved"],setup(t,{emit:e}){const n=t,o=Vt({context:{},ifResult:!n.emailComponent.ContextBuilderExpression,isLoaded:!1}),r={emptyEmailComponentText:oP({localeKey:n.deps.localeKey}).emptyEmailComponentText,emptyEmailComponentTooltip:oP({localeKey:n.deps.localeKey}).emptyEmailComponentTooltip,requiredComponentNotification:oP({localeKey:n.deps.localeKey}).requiredComponentNotification},i=a=>{o.isLoaded=!1,n.deps.dataStructExpressionEvaluator({dataStructBuilderExpression:a,context:{}}).then(l=>{(n.emailComponent.IfExpression?n.deps.boolExpressionEvaluatorDelegate({boolExpression:n.emailComponent.IfExpression,context:l}):Promise.resolve(!0)).then(u=>{o.context=l,o.ifResult=u,o.isLoaded=!0})})};an(()=>n.emailComponent.ContextBuilderExpression,a=>{a&&i(a)});const s=e;return n.emailComponent.ContextBuilderExpression?i(n.emailComponent.ContextBuilderExpression):o.isLoaded=!0,(a,l)=>o.isLoaded?(O(),J("div",KTt,[n.emailComponent.IsRequired?(O(),J("div",qTt,[_("i",null,[ie(UTt)]),_("span",null,"   "+Gt(r.requiredComponentNotification),1)])):Ue("",!0),o.ifResult?(O(),J("table",{key:1,style:he([[{backgroundColor:z(Ll)({color:n.emailComponent.InnerBgColor,themeColors:n.theme.Colors})},z(Wu)({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"}])},[_("tbody",null,[_("tr",null,[_("td",{class:"row__inner",style:he([z(hoe)({paddings:n.emailComponent.Paddings,themeComponentPaddings:n.theme.ComponentPaddings,themeBodyPaddings:n.theme.BodyPaddings,fullWidth:n.emailComponent.FullWidth})])},[(O(!0),J(rt,null,$n(n.emailComponent.BodyRowList,(u,c)=>(O(),Ze(Lxe,{key:c,deps:n.deps.emailComponentBodyRowDeps,theme:n.theme,emailComponentBodyRow:u,context:o.context,rowWidth:n.emailComponent.FullWidth?n.theme.BodyWidth:n.theme.BodyWidth-n.theme.BodyPaddings.Left-n.theme.BodyPaddings.Right,path:[...n.path,"BodyRowList",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)):(O(),J("div",{key:2,class:$e(["empty-email-component",{"is-required-component__paddings":n.emailComponent.IsRequired}])},[X0(Gt(r.emptyEmailComponentText)+" ",1),Ot((O(),J("i",null,[...l[6]||(l[6]=[_("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[_("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)])])),[[z($o),{placement:"top",title:r.emptyEmailComponentTooltip}]])],2))])):(O(),J("div",{key:1,class:"bootstrap-styles w-100",style:he([z(hoe)({paddings:n.emailComponent.Paddings,themeComponentPaddings:n.theme.ComponentPaddings,themeBodyPaddings:n.theme.BodyPaddings,fullWidth:n.emailComponent.FullWidth}),{backgroundColor:z(Ll)({color:n.emailComponent.InnerBgColor,themeColors:n.theme.Colors})||"transparent"}])},[ie(z(Ene),{type:"text"}),_("div",JTt,[(O(),J(rt,null,$n(3,u=>ie(z(Ene),{key:u,type:"image, text, text, text, button",style:{width:"100%"}})),64))])],4))}}),$xe=ot(GTt,[["__scopeId","data-v-7266764f"]]),YTt={class:"scale-to-width-fit-component",style:{display:"inline-block","transform-origin":"left top"}},Vxe=Xe({__name:"ScaleToWidthFit",emits:["scaledElement"],setup(t,{emit:e}){const n=e;return(o,r)=>Ot((O(),J("div",YTt,[Y0(o.$slots,"default")])),[[z(CS),({width:i})=>{o.$el.style.transform=`scale(${o.$el.parentElement.clientWidth/i}`,n("scaledElement",o.$el)}]])}}),XTt={title:"Preview",applyButton:"Select",cancelButton:"Cancel"},QTt={title:"Предпросмотр",applyButton:"Выбрать",cancelButton:"Отмена"},rP=Xn({en:XTt,ru:QTt}),ZTt={class:"email-template-preview__inner-padding scrollable"},ext={class:"emailTemplate-border-top"},txt={class:"emailTemplate-border-bottom"},nxt=Xe({__name:"EmailTemplatePreviewModalWindow",props:{template:{},deps:{}},emits:["favoriteTemplateSelected","close"],setup(t,{emit:e}){const n=t,o={title:rP({localeKey:n.deps.localeKey}).title,applyButton:rP({localeKey:n.deps.localeKey}).applyButton,cancelButton:rP({localeKey:n.deps.localeKey}).cancelButton},r=s=>{const a=s.parentElement;a&&(a.style.height=s.getBoundingClientRect().height+"px")},i=e;return(s,a)=>(O(),Ze(fxe,{headerText:o.title,class:"email-component__preview-modal-window",onClose:a[3]||(a[3]=()=>i("close"))},{body:Fu(()=>[_("div",{style:he({backgroundColor:t.template.Theme.Colors.EmailBackgroundColor})},[ie(Vxe,{onScaledElement:a[0]||(a[0]=l=>r(l))},{default:Fu(()=>[_("div",ZTt,[_("div",{class:"bootstrap-styles pe-none email-template-preview",style:he({fontFamily:n.template.Theme.FontFamily,width:t.template.Theme.BodyWidth+"px"})},[_("div",{class:"webkit emailTemplate--desktop",style:he({borderTopLeftRadius:n.template.Theme.BorderRadius.TopLeft+"px",borderTopRightRadius:n.template.Theme.BorderRadius.TopRight+"px",borderBottomLeftRadius:n.template.Theme.BorderRadius.BottomLeft+"px",borderBottomRightRadius:n.template.Theme.BorderRadius.BottomRight+"px"})},[_("div",ext,[_("table",{style:he([[{maxWidth:n.template.Theme.BodyWidth+"px",width:"100%"}],{"border-spacing":"0"}])},[_("tbody",null,[_("tr",null,[_("td",{style:he([{paddingTop:n.template.Theme.BodyPaddings.Top+"px"},{"font-size":"0","line-height":"0"}])},"   ",4)])])],4)]),(O(!0),J(rt,null,$n(n.template.Components,(l,u)=>(O(),J("div",{key:u},[ie($xe,{deps:t.deps.emailComponentDeps,theme:n.template.Theme,emailComponent:l,path:[],selectedElementPath:[]},null,8,["deps","theme","emailComponent"])]))),128)),_("div",txt,[_("table",{style:he([[{maxWidth:n.template.Theme.BodyWidth+"px",width:"100%"}],{"border-spacing":"0"}])},[_("tbody",null,[_("tr",null,[_("td",{style:he([{paddingBottom:n.template.Theme.BodyPaddings.Bottom+"px"},{"font-size":"0","line-height":"0"}])},"   ",4)])])],4)])],4)],4)])]),_:1})],4)]),"footer-actions":Fu(()=>[_("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]=Wo(()=>i("close"),["stop"]))},Gt(o.cancelButton),1),_("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("favoriteTemplateSelected")})},Gt(o.applyButton),1)]),_:1},8,["headerText"]))}}),oxt=ot(nxt,[["__scopeId","data-v-a7898fb0"]]),rxt={class:"favorite-template-select__item-wrapper"},ixt={class:"favorite-template-select__item bootstrap-styles border rounded-3"},sxt={class:"email-template-preview__inner-padding scrollable"},axt={class:"emailTemplate-border-top"},lxt={class:"emailTemplate-border-bottom"},uxt=Xe({__name:"EmailTemplatePreviewTile",props:{deps:{},template:{},templateName:{}},emits:["favoriteTemplateSelected"],setup(t,{emit:e}){Hm(k=>({v3871f1be:s.value,v115088ee:a.value,v05d440ec:i.value.Title.fontWeight,v40460f14:i.value.Title.fontFamily,v7063b1a0:i.value.Title.color,v354cb820:i.value.Title.textDecoration,v7b95965f:i.value.Title.fontStyle,v06e67430:l.value,v200e2d33:u.value,v330c0660:i.value.Heading.fontWeight,v15d31f4c:i.value.Heading.fontFamily,d0cbc5ec:i.value.Heading.color,b8f0f814:i.value.Heading.textDecoration,v01743cc9:i.value.Heading.fontStyle,v5da513c8:c.value,v4f43a067:d.value,v59536306:i.value.SubHeading.fontWeight,v3c1a7bf2:i.value.SubHeading.fontFamily,v3768f0a4:i.value.SubHeading.color,v67e41d9c:i.value.SubHeading.textDecoration,v9fc8993a:i.value.SubHeading.fontStyle,v40ba636e:h.value,v0f4a8139:m.value,v15a6734c:i.value.LargeText.fontWeight,v50184174:i.value.LargeText.fontFamily,v92a86e60:i.value.LargeText.color,v32189220:i.value.LargeText.textDecoration,b6c2d4e2:i.value.LargeText.fontStyle,v28021f2e:f.value,v43924cf9:p.value,v224b6e98:i.value.NormalText.fontWeight,v5cbd3cc0:i.value.NormalText.fontFamily,v89ce9394:i.value.NormalText.color,v6f047c4a:i.value.NormalText.textDecoration,b72b4016:i.value.NormalText.fontStyle,v1182ba2f:g.value,v614fa88c:y.value,d7e5748e:i.value.DescriptionText.fontWeight,v76d45ea5:i.value.DescriptionText.fontFamily,v3502ea11:i.value.DescriptionText.color,v18b76ecf:i.value.DescriptionText.textDecoration,v17dda360:i.value.DescriptionText.fontStyle,v48efd5f4:b.value,v40252b82:F.value,v5c4cc5ee:i.value.Link.fontWeight,v3f13deda:i.value.Link.fontFamily,e8f14688:i.value.Link.color,v8fbc66f8:i.value.Link.textDecoration,v8f13590a:i.value.Link.fontStyle,v086d82ac:v.value,v929a6e12:T.value,v89491a14:i.value.Button.fontWeight,c3bae83c:i.value.Button.fontFamily,c89aaa98:i.value.Button.color,v6682b58c:i.value.Button.textDecoration,v05d9e573:i.value.Button.fontStyle}));const n=t,o=Vt({isPreviewComponentModalWindowShown:!1}),r=k=>{const R=k.parentElement;R&&(R.style.height=k.getBoundingClientRect().height+"px")},i=q(()=>{const{FontFamily:k,FontSettingsPresets:R,Colors:D}=n.template.Theme;return{Title:ls({fontFamily:k,themeFontSettings:R.Title,themeColor:D.TitleColor}),Heading:ls({fontFamily:k,themeFontSettings:R.Heading,themeColor:D.HeadingColor}),SubHeading:ls({fontFamily:k,themeFontSettings:R.SubHeading,themeColor:D.SubHeadingColor}),LargeText:ls({fontFamily:k,themeFontSettings:R.LargeText,themeColor:D.LargeTextColor}),NormalText:ls({fontFamily:k,themeFontSettings:R.NormalText,themeColor:D.NormalTextColor}),DescriptionText:ls({fontFamily:k,themeFontSettings:R.DescriptionText,themeColor:D.DescriptionTextColor}),Link:ls({fontFamily:k,themeFontSettings:R.Link,themeColor:D.LinkColor}),Button:ls({fontFamily:k,themeFontSettings:R.Button,themeColor:D.ButtonTextColor})}}),s=q(()=>i.value.Title.fontSize+"px"),a=q(()=>i.value.Title.lineHeight+"px"),l=q(()=>i.value.Heading.fontSize+"px"),u=q(()=>i.value.Heading.lineHeight+"px"),c=q(()=>i.value.SubHeading.fontSize+"px"),d=q(()=>i.value.SubHeading.lineHeight+"px"),h=q(()=>i.value.LargeText.fontSize+"px"),m=q(()=>i.value.LargeText.lineHeight+"px"),f=q(()=>i.value.NormalText.fontSize+"px"),p=q(()=>i.value.NormalText.lineHeight+"px"),g=q(()=>i.value.DescriptionText.fontSize+"px"),y=q(()=>i.value.DescriptionText.lineHeight+"px"),b=q(()=>i.value.Link.fontSize+"px"),F=q(()=>i.value.Link.lineHeight+"px"),v=q(()=>i.value.Button.fontSize+"px"),T=q(()=>i.value.Button.lineHeight+"px"),w=e;return(k,R)=>(O(),J("div",rxt,[_("div",ixt,[_("div",{class:"bootstrap-styles h-100",style:he({backgroundColor:n.template.Theme.Colors.EmailBackgroundColor}),onClick:R[1]||(R[1]=()=>{o.isPreviewComponentModalWindowShown=!0})},[ie(Vxe,{onScaledElement:R[0]||(R[0]=D=>r(D))},{default:Fu(()=>[_("div",sxt,[_("div",{class:"bootstrap-styles pe-none email-template-preview",style:he({fontFamily:n.template.Theme.FontFamily,width:t.template.Theme.BodyWidth+"px"})},[_("div",{class:"webkit emailTemplate--desktop",style:he({backgroundColor:n.template.Theme.Colors.BodyColor,borderTopLeftRadius:n.template.Theme.BorderRadius.TopLeft+"px",borderTopRightRadius:n.template.Theme.BorderRadius.TopRight+"px",borderBottomLeftRadius:n.template.Theme.BorderRadius.BottomLeft+"px",borderBottomRightRadius:n.template.Theme.BorderRadius.BottomRight+"px"})},[_("div",axt,[_("table",{style:he([[{maxWidth:n.template.Theme.BodyWidth+"px",width:"100%"}],{"border-spacing":"0"}])},[_("tbody",null,[_("tr",null,[_("td",{style:he([{paddingTop:n.template.Theme.BodyPaddings.Top+"px"},{"font-size":"0","line-height":"0"}])},"   ",4)])])],4)]),(O(!0),J(rt,null,$n(n.template.Components,(D,V)=>(O(),J("div",{key:V},[ie($xe,{deps:n.deps.emailComponentDeps,theme:n.template.Theme,emailComponent:D,path:[],selectedElementPath:[]},null,8,["deps","theme","emailComponent"])]))),128)),_("div",lxt,[_("table",{style:he([[{maxWidth:n.template.Theme.BodyWidth+"px",width:"100%"}],{"border-spacing":"0"}])},[_("tbody",null,[_("tr",null,[_("td",{style:he([{paddingBottom:n.template.Theme.BodyPaddings.Bottom+"px"},{"font-size":"0","line-height":"0"}])},"   ",4)])])],4)])],4)],4)])]),_:1})],4),(O(),Ze(m9,{to:"#app"},[o.isPreviewComponentModalWindowShown?(O(),Ze(oxt,{key:0,template:n.template,deps:n.deps.emailTemplatePreviewModalWindowDeps,onClose:R[2]||(R[2]=()=>o.isPreviewComponentModalWindowShown=!1),onFavoriteTemplateSelected:R[3]||(R[3]=()=>w("favoriteTemplateSelected"))},null,8,["template","deps"])):Ue("",!0)]))]),_("div",{class:"bootstrap-styles favorite-template__name mt-2",onClick:R[4]||(R[4]=()=>{o.isPreviewComponentModalWindowShown=!0})},Gt(n.templateName),1)]))}}),cxt=ot(uxt,[["__scopeId","data-v-66b13e3f"]]),dxt=t=>nc(t),hxt=t=>nc(t),mxt=t=>nc(t),fxt=t=>nc(t),pxt=t=>({predicate:e,context:n})=>Promise.all([t.numberExpressionEvaluator({numberExpression:e.Left,context:n}),t.numberExpressionEvaluator({numberExpression:e.Right,context:n})]).then(([o,r])=>o===r),gxt=t=>({predicate:e,context:n})=>Promise.all([t.numberExpressionEvaluator({numberExpression:e.Left,context:n}),t.numberExpressionEvaluator({numberExpression:e.Right,context:n})]).then(([o,r])=>o<r),Cxt=t=>({predicate:e,context:n})=>Promise.all([t.numberExpressionEvaluator({numberExpression:e.Left,context:n}),t.numberExpressionEvaluator({numberExpression:e.Right,context:n})]).then(([o,r])=>o>r),yxt=t=>{const e=pxt({numberExpressionEvaluator:t.numberExpressionEvaluator}),n=Cxt({numberExpressionEvaluator:t.numberExpressionEvaluator}),o=gxt({numberExpressionEvaluator:t.numberExpressionEvaluator});return({numberPredicate:r,context:i})=>fxt(r).Match({Equal:s=>e({predicate:s,context:i}),GreaterThan:s=>n({predicate:s,context:i}),LessThan:s=>o({predicate:s,context:i})})},bxt=t=>({predicate:e,context:n})=>Promise.all([t.stringExpressionEvaluator({stringExpression:e.Left,context:n}),t.stringExpressionEvaluator({stringExpression:e.Right,context:n})]).then(([o,r])=>o===r),vxt=t=>({predicate:e,context:n})=>Promise.all([t.stringExpressionEvaluator({stringExpression:e.Left,context:n}),t.stringExpressionEvaluator({stringExpression:e.Contains,context:n})]).then(([o,r])=>o.includes(r)),Txt=t=>{const e=bxt({stringExpressionEvaluator:t.stringExpressionEvaluator}),n=vxt({stringExpressionEvaluator:t.stringExpressionEvaluator});return({stringPredicate:o,context:r})=>mxt(o).Match({Contains:i=>n({predicate:i,context:r}),Equal:i=>e({predicate:i,context:r})})},xxt=t=>{const e=yxt({numberExpressionEvaluator:t.numberExpressionEvaluator}),n=Txt({stringExpressionEvaluator:t.stringExpressionEvaluator});return({predicate:o,context:r})=>hxt(o).Match({NumberPredicate:i=>e({numberPredicate:i,context:r}),StringPredicate:i=>n({stringPredicate:i,context:r})})},Mxe=t=>{const e=xxt({numberExpressionEvaluator:t.numberExpressionEvaluator,stringExpressionEvaluator:t.stringExpressionEvaluator}),n=({boolExpression:o,context:r})=>dxt(o).Match({AndExpression:i=>Promise.all(i.Expressions.map(s=>n({boolExpression:s,context:r}))).then(s=>s.every(a=>a)),OrExpression:i=>Promise.all(i.Expressions.map(s=>n({boolExpression:s,context:r}))).then(s=>s.some(a=>a)),NotExpression:async i=>!await n({boolExpression:i.Expression,context:r}),Predicate:i=>e({predicate:i,context:r})});return n},Fxt=t=>Xe((e,n)=>()=>Yu(cxt,{template:t.template,templateName:t.templateName,deps:t.emailTemplatePreviewTileDeps,onFavoriteTemplateSelected:t.onFavoriteTemplateSelected})),Oxe=t=>t.reduce((e,n)=>(e[n.name]=n.value,e),{}),pC=t=>U1e({InternalProductId:t.internalProductId,Name:t.name,Description:t.description,Price:t.price,OldPrice:t.oldPrice,PictureUrl:t.pictureUrl,Url:t.url,CategoryIds:[],Vendor:t.vendor,Params:Oxe(t.parameters),DiscountPercentage:t.discountPercentage}),Sxt=async t=>(await t.getPopularProductsHttpClient({body:{partnerId:t.partnerId,stockId:t.stockId}})).body.recommendations.map(e=>pC(e));var wxt=typeof global=="object"&&global&&global.Object===Object&&global,kxt=typeof self=="object"&&self&&self.Object===Object&&self,Ext=wxt||kxt||Function("return this")(),ON=Ext.Symbol;ON&&ON.toStringTag;ON&&ON.toStringTag;const{entries:Ixe,setPrototypeOf:Roe,isFrozen:_xt,getPrototypeOf:Rxt,getOwnPropertyDescriptor:Dxt}=Object;let{freeze:_i,seal:Pa,create:H5}=Object,{apply:z5,construct:j5}=typeof Reflect<"u"&&Reflect;_i||(_i=function(t){return t});Pa||(Pa=function(t){return t});z5||(z5=function(t,e){for(var n=arguments.length,o=new Array(n>2?n-2:0),r=2;r<n;r++)o[r-2]=arguments[r];return t.apply(e,o)});j5||(j5=function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),o=1;o<e;o++)n[o-1]=arguments[o];return new t(...n)});const BE=Ri(Array.prototype.forEach),Axt=Ri(Array.prototype.lastIndexOf),Doe=Ri(Array.prototype.pop),E1=Ri(Array.prototype.push),Nxt=Ri(Array.prototype.splice),IR=Ri(String.prototype.toLowerCase),iP=Ri(String.prototype.toString),sP=Ri(String.prototype.match),_1=Ri(String.prototype.replace),Bxt=Ri(String.prototype.indexOf),Lxt=Ri(String.prototype.trim),pl=Ri(Object.prototype.hasOwnProperty),Ur=Ri(RegExp.prototype.test),R1=$xt(TypeError);function Ri(t){return function(e){e instanceof RegExp&&(e.lastIndex=0);for(var n=arguments.length,o=new Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];return z5(t,e,o)}}function $xt(t){return function(){for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];return j5(t,n)}}function Wt(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:IR;Roe&&Roe(t,null);let o=e.length;for(;o--;){let r=e[o];if(typeof r=="string"){const i=n(r);i!==r&&(_xt(e)||(e[o]=i),r=i)}t[r]=!0}return t}function Vxt(t){for(let e=0;e<t.length;e++)pl(t,e)||(t[e]=null);return t}function eu(t){const e=H5(null);for(const[n,o]of Ixe(t))pl(t,n)&&(Array.isArray(o)?e[n]=Vxt(o):o&&typeof o=="object"&&o.constructor===Object?e[n]=eu(o):e[n]=o);return e}function D1(t,e){for(;t!==null;){const o=Dxt(t,e);if(o){if(o.get)return Ri(o.get);if(typeof o.value=="function")return Ri(o.value)}t=Rxt(t)}function n(){return null}return n}const Aoe=_i(["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"]),aP=_i(["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"]),lP=_i(["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"]),Mxt=_i(["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"]),uP=_i(["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"]),Oxt=_i(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Noe=_i(["#text"]),Boe=_i(["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"]),cP=_i(["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"]),Loe=_i(["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"]),LE=_i(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Ixt=Pa(/\{\{[\w\W]*|[\w\W]*\}\}/gm),Pxt=Pa(/<%[\w\W]*|[\w\W]*%>/gm),Wxt=Pa(/\$\{[\w\W]*/gm),Hxt=Pa(/^data-[\-\w.\u00B7-\uFFFF]+$/),zxt=Pa(/^aria-[\-\w]+$/),Pxe=Pa(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),jxt=Pa(/^(?:\w+script|data):/i),Uxt=Pa(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Wxe=Pa(/^html$/i),Kxt=Pa(/^[a-z][.\w]*(-[.\w]+)+$/i);var $oe=Object.freeze({__proto__:null,ARIA_ATTR:zxt,ATTR_WHITESPACE:Uxt,CUSTOM_ELEMENT:Kxt,DATA_ATTR:Hxt,DOCTYPE_NAME:Wxe,ERB_EXPR:Pxt,IS_ALLOWED_URI:Pxe,IS_SCRIPT_OR_DATA:jxt,MUSTACHE_EXPR:Ixt,TMPLIT_EXPR:Wxt});const A1={element:1,text:3,progressingInstruction:7,comment:8,document:9},qxt=function(){return typeof window>"u"?null:window},Jxt=function(t,e){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let n=null;const o="data-tt-policy-suffix";e&&e.hasAttribute(o)&&(n=e.getAttribute(o));const r="dompurify"+(n?"#"+n:"");try{return t.createPolicy(r,{createHTML(i){return i},createScriptURL(i){return i}})}catch{return console.warn("TrustedTypes policy "+r+" could not be created."),null}},Voe=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function Hxe(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:qxt();const e=C=>Hxe(C);if(e.version="3.3.1",e.removed=[],!t||!t.document||t.document.nodeType!==A1.document||!t.Element)return e.isSupported=!1,e;let{document:n}=t;const o=n,r=o.currentScript,{DocumentFragment:i,HTMLTemplateElement:s,Node:a,Element:l,NodeFilter:u,NamedNodeMap:c=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:d,DOMParser:h,trustedTypes:m}=t,f=l.prototype,p=D1(f,"cloneNode"),g=D1(f,"remove"),y=D1(f,"nextSibling"),b=D1(f,"childNodes"),F=D1(f,"parentNode");if(typeof s=="function"){const C=n.createElement("template");C.content&&C.content.ownerDocument&&(n=C.content.ownerDocument)}let v,T="";const{implementation:w,createNodeIterator:k,createDocumentFragment:R,getElementsByTagName:D}=n,{importNode:V}=o;let E=Voe();e.isSupported=typeof Ixe=="function"&&typeof F=="function"&&w&&w.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:A,ERB_EXPR:N,TMPLIT_EXPR:I,DATA_ATTR:M,ARIA_ATTR:$,IS_SCRIPT_OR_DATA:H,ATTR_WHITESPACE:ke,CUSTOM_ELEMENT:Oe}=$oe;let{IS_ALLOWED_URI:ve}=$oe,K=null;const Pe=Wt({},[...Aoe,...aP,...lP,...uP,...Noe]);let Y=null;const He=Wt({},[...Boe,...cP,...Loe,...LE]);let P=Object.seal(H5(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}})),Ee=null,ae=null;const ne=Object.seal(H5(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let wt=!0,Tt=!0,xt=!1,B=!0,L=!1,j=!0,G=!1,Q=!1,Z=!1,te=!1,oe=!1,U=!1,X=!0,Ve=!1;const ce="user-content-";let ue=!0,de=!1,Te={},le=null;const ze=Wt({},["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 cn=null;const dn=Wt({},["audio","video","img","source","image","track"]);let sn=null;const bn=Wt({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),nn="http://www.w3.org/1998/Math/MathML",hn="http://www.w3.org/2000/svg",Ke="http://www.w3.org/1999/xhtml";let ft=Ke,An=!1,Nn=null;const il=Wt({},[nn,hn,Ke],iP);let gn=Wt({},["mi","mo","mn","ms","mtext"]),Cn=Wt({},["annotation-xml"]);const sl=Wt({},["title","style","font","a","script"]);let on=null;const al=["application/xhtml+xml","text/html"],ll="text/html";let re=null,Rt=null;const ul=n.createElement("form"),sr=function(C){return C instanceof RegExp||C instanceof Function},Qn=function(){let C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(Rt&&Rt===C)){if((!C||typeof C!="object")&&(C={}),C=eu(C),on=al.indexOf(C.PARSER_MEDIA_TYPE)===-1?ll:C.PARSER_MEDIA_TYPE,re=on==="application/xhtml+xml"?iP:IR,K=pl(C,"ALLOWED_TAGS")?Wt({},C.ALLOWED_TAGS,re):Pe,Y=pl(C,"ALLOWED_ATTR")?Wt({},C.ALLOWED_ATTR,re):He,Nn=pl(C,"ALLOWED_NAMESPACES")?Wt({},C.ALLOWED_NAMESPACES,iP):il,sn=pl(C,"ADD_URI_SAFE_ATTR")?Wt(eu(bn),C.ADD_URI_SAFE_ATTR,re):bn,cn=pl(C,"ADD_DATA_URI_TAGS")?Wt(eu(dn),C.ADD_DATA_URI_TAGS,re):dn,le=pl(C,"FORBID_CONTENTS")?Wt({},C.FORBID_CONTENTS,re):ze,Ee=pl(C,"FORBID_TAGS")?Wt({},C.FORBID_TAGS,re):eu({}),ae=pl(C,"FORBID_ATTR")?Wt({},C.FORBID_ATTR,re):eu({}),Te=pl(C,"USE_PROFILES")?C.USE_PROFILES:!1,wt=C.ALLOW_ARIA_ATTR!==!1,Tt=C.ALLOW_DATA_ATTR!==!1,xt=C.ALLOW_UNKNOWN_PROTOCOLS||!1,B=C.ALLOW_SELF_CLOSE_IN_ATTR!==!1,L=C.SAFE_FOR_TEMPLATES||!1,j=C.SAFE_FOR_XML!==!1,G=C.WHOLE_DOCUMENT||!1,te=C.RETURN_DOM||!1,oe=C.RETURN_DOM_FRAGMENT||!1,U=C.RETURN_TRUSTED_TYPE||!1,Z=C.FORCE_BODY||!1,X=C.SANITIZE_DOM!==!1,Ve=C.SANITIZE_NAMED_PROPS||!1,ue=C.KEEP_CONTENT!==!1,de=C.IN_PLACE||!1,ve=C.ALLOWED_URI_REGEXP||Pxe,ft=C.NAMESPACE||Ke,gn=C.MATHML_TEXT_INTEGRATION_POINTS||gn,Cn=C.HTML_INTEGRATION_POINTS||Cn,P=C.CUSTOM_ELEMENT_HANDLING||{},C.CUSTOM_ELEMENT_HANDLING&&sr(C.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(P.tagNameCheck=C.CUSTOM_ELEMENT_HANDLING.tagNameCheck),C.CUSTOM_ELEMENT_HANDLING&&sr(C.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(P.attributeNameCheck=C.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),C.CUSTOM_ELEMENT_HANDLING&&typeof C.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(P.allowCustomizedBuiltInElements=C.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),L&&(Tt=!1),oe&&(te=!0),Te&&(K=Wt({},Noe),Y=[],Te.html===!0&&(Wt(K,Aoe),Wt(Y,Boe)),Te.svg===!0&&(Wt(K,aP),Wt(Y,cP),Wt(Y,LE)),Te.svgFilters===!0&&(Wt(K,lP),Wt(Y,cP),Wt(Y,LE)),Te.mathMl===!0&&(Wt(K,uP),Wt(Y,Loe),Wt(Y,LE))),C.ADD_TAGS&&(typeof C.ADD_TAGS=="function"?ne.tagCheck=C.ADD_TAGS:(K===Pe&&(K=eu(K)),Wt(K,C.ADD_TAGS,re))),C.ADD_ATTR&&(typeof C.ADD_ATTR=="function"?ne.attributeCheck=C.ADD_ATTR:(Y===He&&(Y=eu(Y)),Wt(Y,C.ADD_ATTR,re))),C.ADD_URI_SAFE_ATTR&&Wt(sn,C.ADD_URI_SAFE_ATTR,re),C.FORBID_CONTENTS&&(le===ze&&(le=eu(le)),Wt(le,C.FORBID_CONTENTS,re)),C.ADD_FORBID_CONTENTS&&(le===ze&&(le=eu(le)),Wt(le,C.ADD_FORBID_CONTENTS,re)),ue&&(K["#text"]=!0),G&&Wt(K,["html","head","body"]),K.table&&(Wt(K,["tbody"]),delete Ee.tbody),C.TRUSTED_TYPES_POLICY){if(typeof C.TRUSTED_TYPES_POLICY.createHTML!="function")throw R1('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof C.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw R1('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');v=C.TRUSTED_TYPES_POLICY,T=v.createHTML("")}else v===void 0&&(v=Jxt(m,r)),v!==null&&typeof T=="string"&&(T=v.createHTML(""));_i&&_i(C),Rt=C}},ar=Wt({},[...aP,...lP,...Mxt]),lr=Wt({},[...uP,...Oxt]),cl=function(C){let x=F(C);(!x||!x.tagName)&&(x={namespaceURI:ft,tagName:"template"});const S=IR(C.tagName),W=IR(x.tagName);return Nn[C.namespaceURI]?C.namespaceURI===hn?x.namespaceURI===Ke?S==="svg":x.namespaceURI===nn?S==="svg"&&(W==="annotation-xml"||gn[W]):!!ar[S]:C.namespaceURI===nn?x.namespaceURI===Ke?S==="math":x.namespaceURI===hn?S==="math"&&Cn[W]:!!lr[S]:C.namespaceURI===Ke?x.namespaceURI===hn&&!Cn[W]||x.namespaceURI===nn&&!gn[W]?!1:!lr[S]&&(sl[S]||!ar[S]):!!(on==="application/xhtml+xml"&&Nn[C.namespaceURI]):!1},gt=function(C){E1(e.removed,{element:C});try{F(C).removeChild(C)}catch{g(C)}},St=function(C,x){try{E1(e.removed,{attribute:x.getAttributeNode(C),from:x})}catch{E1(e.removed,{attribute:null,from:x})}if(x.removeAttribute(C),C==="is")if(te||oe)try{gt(x)}catch{}else try{x.setAttribute(C,"")}catch{}},ur=function(C){let x=null,S=null;if(Z)C="<remove></remove>"+C;else{const ee=sP(C,/^[\r\n\t ]+/);S=ee&&ee[0]}on==="application/xhtml+xml"&&ft===Ke&&(C='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+C+"</body></html>");const W=v?v.createHTML(C):C;if(ft===Ke)try{x=new h().parseFromString(W,on)}catch{}if(!x||!x.documentElement){x=w.createDocument(ft,"template",null);try{x.documentElement.innerHTML=An?T:W}catch{}}const se=x.body||x.documentElement;return C&&S&&se.insertBefore(n.createTextNode(S),se.childNodes[0]||null),ft===Ke?D.call(x,G?"html":"body")[0]:G?x.documentElement:se},cr=function(C){return k.call(C.ownerDocument||C,C,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT|u.SHOW_PROCESSING_INSTRUCTION|u.SHOW_CDATA_SECTION,null)},Zn=function(C){return C instanceof d&&(typeof C.nodeName!="string"||typeof C.textContent!="string"||typeof C.removeChild!="function"||!(C.attributes instanceof c)||typeof C.removeAttribute!="function"||typeof C.setAttribute!="function"||typeof C.namespaceURI!="string"||typeof C.insertBefore!="function"||typeof C.hasChildNodes!="function")},dr=function(C){return typeof a=="function"&&C instanceof a};function it(C,x,S){BE(C,W=>{W.call(e,x,S,Rt)})}const hr=function(C){let x=null;if(it(E.beforeSanitizeElements,C,null),Zn(C))return gt(C),!0;const S=re(C.nodeName);if(it(E.uponSanitizeElement,C,{tagName:S,allowedTags:K}),j&&C.hasChildNodes()&&!dr(C.firstElementChild)&&Ur(/<[/\w!]/g,C.innerHTML)&&Ur(/<[/\w!]/g,C.textContent)||C.nodeType===A1.progressingInstruction||j&&C.nodeType===A1.comment&&Ur(/<[/\w]/g,C.data))return gt(C),!0;if(!(ne.tagCheck instanceof Function&&ne.tagCheck(S))&&(!K[S]||Ee[S])){if(!Ee[S]&&fr(S)&&(P.tagNameCheck instanceof RegExp&&Ur(P.tagNameCheck,S)||P.tagNameCheck instanceof Function&&P.tagNameCheck(S)))return!1;if(ue&&!le[S]){const W=F(C)||C.parentNode,se=b(C)||C.childNodes;if(se&&W){const ee=se.length;for(let qe=ee-1;qe>=0;--qe){const je=p(se[qe],!0);je.__removalCount=(C.__removalCount||0)+1,W.insertBefore(je,y(C))}}}return gt(C),!0}return C instanceof l&&!cl(C)||(S==="noscript"||S==="noembed"||S==="noframes")&&Ur(/<\/no(script|embed|frames)/i,C.innerHTML)?(gt(C),!0):(L&&C.nodeType===A1.text&&(x=C.textContent,BE([A,N,I],W=>{x=_1(x,W," ")}),C.textContent!==x&&(E1(e.removed,{element:C.cloneNode()}),C.textContent=x)),it(E.afterSanitizeElements,C,null),!1)},mr=function(C,x,S){if(X&&(x==="id"||x==="name")&&(S in n||S in ul))return!1;if(!(Tt&&!ae[x]&&Ur(M,x))&&!(wt&&Ur($,x))&&!(ne.attributeCheck instanceof Function&&ne.attributeCheck(x,C))){if(!Y[x]||ae[x]){if(!(fr(C)&&(P.tagNameCheck instanceof RegExp&&Ur(P.tagNameCheck,C)||P.tagNameCheck instanceof Function&&P.tagNameCheck(C))&&(P.attributeNameCheck instanceof RegExp&&Ur(P.attributeNameCheck,x)||P.attributeNameCheck instanceof Function&&P.attributeNameCheck(x,C))||x==="is"&&P.allowCustomizedBuiltInElements&&(P.tagNameCheck instanceof RegExp&&Ur(P.tagNameCheck,S)||P.tagNameCheck instanceof Function&&P.tagNameCheck(S))))return!1}else if(!sn[x]&&!Ur(ve,_1(S,ke,""))&&!((x==="src"||x==="xlink:href"||x==="href")&&C!=="script"&&Bxt(S,"data:")===0&&cn[C])&&!(xt&&!Ur(H,_1(S,ke,"")))&&S)return!1}return!0},fr=function(C){return C!=="annotation-xml"&&sP(C,Oe)},pr=function(C){it(E.beforeSanitizeAttributes,C,null);const{attributes:x}=C;if(!x||Zn(C))return;const S={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Y,forceKeepAttr:void 0};let W=x.length;for(;W--;){const se=x[W],{name:ee,namespaceURI:qe,value:je}=se,Qe=re(ee),Bn=je;let _e=ee==="value"?Bn:Lxt(Bn);if(S.attrName=Qe,S.attrValue=_e,S.keepAttr=!0,S.forceKeepAttr=void 0,it(E.uponSanitizeAttribute,C,S),_e=S.attrValue,Ve&&(Qe==="id"||Qe==="name")&&(St(ee,C),_e=ce+_e),j&&Ur(/((--!?|])>)|<\/(style|title|textarea)/i,_e)){St(ee,C);continue}if(Qe==="attributename"&&sP(_e,"href")){St(ee,C);continue}if(S.forceKeepAttr)continue;if(!S.keepAttr){St(ee,C);continue}if(!B&&Ur(/\/>/i,_e)){St(ee,C);continue}L&&BE([A,N,I],na=>{_e=_1(_e,na," ")});const mn=re(C.nodeName);if(!mr(mn,Qe,_e)){St(ee,C);continue}if(v&&typeof m=="object"&&typeof m.getAttributeType=="function"&&!qe)switch(m.getAttributeType(mn,Qe)){case"TrustedHTML":{_e=v.createHTML(_e);break}case"TrustedScriptURL":{_e=v.createScriptURL(_e);break}}if(_e!==Bn)try{qe?C.setAttributeNS(qe,ee,_e):C.setAttribute(ee,_e),Zn(C)?gt(C):Doe(e.removed)}catch{St(ee,C)}}it(E.afterSanitizeAttributes,C,null)},dl=function C(x){let S=null;const W=cr(x);for(it(E.beforeSanitizeShadowDOM,x,null);S=W.nextNode();)it(E.uponSanitizeShadowNode,S,null),hr(S),pr(S),S.content instanceof i&&C(S.content);it(E.afterSanitizeShadowDOM,x,null)};return e.sanitize=function(C){let x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},S=null,W=null,se=null,ee=null;if(An=!C,An&&(C="<!-->"),typeof C!="string"&&!dr(C))if(typeof C.toString=="function"){if(C=C.toString(),typeof C!="string")throw R1("dirty is not a string, aborting")}else throw R1("toString is not a function");if(!e.isSupported)return C;if(Q||Qn(x),e.removed=[],typeof C=="string"&&(de=!1),de){if(C.nodeName){const Qe=re(C.nodeName);if(!K[Qe]||Ee[Qe])throw R1("root node is forbidden and cannot be sanitized in-place")}}else if(C instanceof a)S=ur("<!---->"),W=S.ownerDocument.importNode(C,!0),W.nodeType===A1.element&&W.nodeName==="BODY"||W.nodeName==="HTML"?S=W:S.appendChild(W);else{if(!te&&!L&&!G&&C.indexOf("<")===-1)return v&&U?v.createHTML(C):C;if(S=ur(C),!S)return te?null:U?T:""}S&&Z&&gt(S.firstChild);const qe=cr(de?C:S);for(;se=qe.nextNode();)hr(se),pr(se),se.content instanceof i&&dl(se.content);if(de)return C;if(te){if(oe)for(ee=R.call(S.ownerDocument);S.firstChild;)ee.appendChild(S.firstChild);else ee=S;return(Y.shadowroot||Y.shadowrootmode)&&(ee=V.call(o,ee,!0)),ee}let je=G?S.outerHTML:S.innerHTML;return G&&K["!doctype"]&&S.ownerDocument&&S.ownerDocument.doctype&&S.ownerDocument.doctype.name&&Ur(Wxe,S.ownerDocument.doctype.name)&&(je="<!DOCTYPE "+S.ownerDocument.doctype.name+`>
194
+ `}),gd=t=>({borderTop:NE(t.border.Top,t.themeColors),borderRight:NE(t.border.Right,t.themeColors),borderBottom:NE(t.border.Bottom,t.themeColors),borderLeft:NE(t.border.Left,t.themeColors)}),Pw=t=>t.borderCollapse!==void 0?{borderCollapse:vgt(t.borderCollapse)}:{borderCollapse:"collapse"},vgt=t=>{switch(t){case"Collapse":return"collapse";case"Separate":return"separate";default:return ta(t)}},Tgt=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 ta(t.Discriminator)}}}),Ll=t=>Tgt(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}),cxe=t=>({Match:e=>{switch(t){case"Left":return e.Left();case"Center":return e.Center();case"Right":return e.Right();default:return ta(t)}}}),xgt=t=>t.containerAlign?cxe(t.containerAlign).Match({Left:()=>({textAlign:"left"}),Center:()=>({textAlign:"center"}),Right:()=>({textAlign:"right"})}):{},Vc=t=>t.containerAlign?cxe(t.containerAlign).Match({Left:()=>"left",Center:()=>"center",Right:()=>"right"}):"center",Fgt=Xe({__name:"If",props:{deps:{},theme:{},element:{},path:{},selectedElementPath:{},context:{type:[String,Number,Boolean,Array,Object]}},emits:["onImageOriginalSizeAdjusted","onImageSizeAdjusted","onElementClicked","onElementUpdatedEvent","onElementRemoved"],setup(t,{emit:e}){const n=t,o=e,r=Vt({ifResult:!1,isLoading:!0});return n.deps.boolExpressionEvaluator({boolExpression:n.element.Predicate,context:n.context}).then(i=>{r.ifResult=i,r.isLoading=!1}),(i,s)=>(O(!0),J(rt,null,$n(r.ifResult?n.element.True:n.element.False,(a,l)=>(O(),Ze(Fl,{key:l,deps:n.deps,theme:n.theme,element:a,context:n.context,path:[...n.path,r.ifResult?"True":"False",l],selectedElementPath:n.selectedElementPath,onOnImageSizeAdjusted:s[0]||(s[0]=u=>o("onImageSizeAdjusted",u)),onOnImageOriginalSizeAdjusted:s[1]||(s[1]=u=>o("onImageOriginalSizeAdjusted",u)),onOnElementClicked:s[2]||(s[2]=u=>o("onElementClicked",u)),onOnElementUpdatedEvent:s[3]||(s[3]=u=>o("onElementUpdatedEvent",u)),onOnElementRemoved:s[4]||(s[4]=u=>o("onElementRemoved",u))},null,8,["deps","theme","element","context","path","selectedElementPath"]))),128))}}),Ww=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"}),Sgt=nc,wgt=t=>Sgt(t.width).Match({Auto:()=>"initial",Pixel:e=>e.Value+"px",Percentage:e=>e.Value+"%"}),kgt=["align"],Egt=Xe({__name:"HeightContainer",props:{deps:{},theme:{},element:{},path:{},selectedElementPath:{},context:{type:[String,Number,Boolean,Array,Object]}},emits:["onImageOriginalSizeAdjusted","onImageSizeAdjusted","onElementClicked","onElementUpdatedEvent","onElementRemoved"],setup(t,{emit:e}){const n=t,o=e;return(r,i)=>(O(),J("table",{class:"heightContainerRender",style:he([{"border-spacing":"0","border-collapse":"separate"},{width:z(wgt)({width:n.element.Width})}])},[_("tbody",null,[_("tr",null,[_("td",{align:z(Vc)({containerAlign:n.element.ContainerAlign}),style:he([z(Ww)({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:z(Ll)({color:n.element.BackgroundColor,themeColors:n.theme.Colors})??"inherit"},z(gd)({border:n.element.Border,themeColors:n.theme.Colors}),z(Wu)({borderRadius:n.element.BorderRadius,borderRadiusCard:n.theme.BorderRadiusCard,bodyBorderRadius:n.theme.BorderRadius,borderButtonRadius:n.theme.BorderRadiusButton,borderBannerRadius:n.theme.BorderRadiusBanner})])},[(O(!0),J(rt,null,$n(n.element.Elements,(s,a)=>(O(),Ze(Fl,{key:a,deps:n.deps,theme:n.theme,element:s,path:[...n.path,"Elements",a],selectedElementPath:n.selectedElementPath,context:n.context,onOnImageSizeAdjusted:i[0]||(i[0]=l=>o("onImageSizeAdjusted",l)),onOnImageOriginalSizeAdjusted:i[1]||(i[1]=l=>o("onImageOriginalSizeAdjusted",l)),onOnElementClicked:i[2]||(i[2]=l=>o("onElementClicked",l)),onOnElementUpdatedEvent:i[3]||(i[3]=l=>o("onElementUpdatedEvent",l)),onOnElementRemoved:i[4]||(i[4]=l=>o("onElementRemoved",l))},null,8,["deps","theme","element","path","selectedElementPath","context"]))),128))],12,kgt)])])],4))}}),_gt=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()}}}),wb=t=>_gt(t.contentAlign).Match({Left:()=>({display:"block",textAlign:"left"}),Center:()=>({display:"block",textAlign:"center"}),Right:()=>({display:"block",textAlign:"right"}),Inline:()=>({})});let nP;const CS={mounted(t,e){const n=e.value;nP=new ResizeObserver(o=>{o.forEach(r=>n(r.contentRect))}),nP.observe(t)},unmounted(t){nP.unobserve(t)}},Rgt=["href"],Dgt=["src","alt"],Agt=["src","alt"],Ngt=Xe({__name:"Image",props:{deps:{},theme:{},element:{},path:{},context:{type:[String,Number,Boolean,Array,Object]}},emits:["onImageOriginalSizeAdjusted","onImageSizeAdjusted","onElementClicked"],setup(t,{emit:e}){const n=c=>{u("onImageOriginalSizeAdjusted",{Path:o.path,OriginalHeight:c.target.naturalHeight,OriginalWidth:c.target.naturalWidth})},o=t,r=Vt({href:"",src:"",alt:"",isLoaded:!1}),i=q(()=>o.element.IsResponsive?"100%":(o.element.IsRetina?o.element.OriginalWidth/2:o.element.OriginalWidth)+"px"),s=q(()=>o.element.IsResponsive?(o.element.IsRetina?o.element.OriginalWidth/2:o.element.OriginalWidth)+"px":"100%"),a=async c=>o.deps.stringExpressionEvaluator({stringExpression:c,context:o.context}),l=async()=>{const[c,d,h]=await Promise.all([a(o.element.Src),a(o.element.HRef),a(o.element.Alt)]);r.href=d,r.src=c,r.alt=h,r.isLoaded=!0};an(()=>[o.element.Src,o.element.HRef,o.element.Alt,o.context],()=>l()),l();const u=e;return(c,d)=>o.element.IsLink?(O(),J("a",{key:0,href:r.href,style:he([z(wb)({contentAlign:o.element.ContentAlign})]),onClick:d[0]||(d[0]=Wo(()=>u("onElementClicked"),["prevent"]))},[r.isLoaded?Ot((O(),J("img",{key:0,class:$e(["Image cursor-pointer",{"img-responsive":o.element.IsResponsive}]),src:r.src,alt:r.alt,style:he([z(Wu)({borderRadius:o.element.BorderRadius,borderRadiusCard:o.theme.BorderRadiusCard,bodyBorderRadius:o.theme.BorderRadius,borderButtonRadius:o.theme.BorderRadiusButton,borderBannerRadius:o.theme.BorderRadiusBanner}),z(gd)({border:o.element.Border,themeColors:o.theme.Colors}),{width:i.value,maxWidth:s.value},{verticalAlign:o.element.VerticalAlign}]),onLoad:n},null,46,Dgt)),[[z(CS),({width:h,height:m})=>u("onImageSizeAdjusted",{Path:o.path,AdjustedHeight:m,AdjustedWidth:h})]]):Ue("",!0)],12,Rgt)):(O(),J("span",{key:1,style:he([z(wb)({contentAlign:o.element.ContentAlign})])},[r.isLoaded?Ot((O(),J("img",{key:0,class:$e(["Image cursor-pointer",{"img-responsive":o.element.IsResponsive}]),src:r.src,alt:r.alt,style:he([z(Wu)({borderRadius:o.element.BorderRadius,borderRadiusCard:o.theme.BorderRadiusCard,bodyBorderRadius:o.theme.BorderRadius,borderButtonRadius:o.theme.BorderRadiusButton,borderBannerRadius:o.theme.BorderRadiusBanner}),z(gd)({border:o.element.Border,themeColors:o.theme.Colors}),{width:i.value,maxWidth:s.value},{verticalAlign:o.element.VerticalAlign}]),onLoad:n},null,46,Agt)),[[z(CS),({width:h,height:m})=>u("onImageSizeAdjusted",{Path:o.path,AdjustedHeight:m,AdjustedWidth:h})]]):Ue("",!0)],4))}}),ot=(t,e)=>{const n=t.__vccOpts||t;for(const[o,r]of e)n[o]=r;return n},Bgt=ot(Ngt,[["__scopeId","data-v-83688a51"]]),Lgt=nc,$gt=t=>t.width===void 0?{}:Lgt(t.width).Match({Auto:()=>({width:"auto"}),Pixel:e=>({width:e.Value+"px"}),Percentage:e=>({width:e.Value+"%"})}),Vgt=t=>{switch(t){case"Auto":return{width:"auto"};case"FullWidth":return{width:"100%"};default:return ta(t)}},Mgt=Xe({__name:"OneLineList",props:{deps:{},theme:{},element:{},path:{},selectedElementPath:{},context:{type:[String,Number,Boolean,Array,Object]}},emits:["onImageSizeAdjusted","onImageOriginalSizeAdjusted","onElementClicked","onElementUpdatedEvent","onElementRemoved"],setup(t,{emit:e}){const n=t,o=e;return(r,i)=>(O(),J("table",{class:"oneLineList",style:he([{"border-spacing":"0","border-collapse":"collapse"},[z(Vgt)(n.element.ContainerWidth)]])},[_("tbody",null,[_("tr",null,[(O(!0),J(rt,null,$n(n.element.Elements,(s,a)=>(O(),J("td",{key:a,class:"oneLineListItem",style:he([z(Ww)({paddings:n.element.ItemPaddings,themeComponentPaddings:n.theme.ComponentPaddings,themeBodyPaddings:n.theme.BodyPaddings}),z($gt)({width:n.element.ItemWidth}),{lineHeight:"normal"}])},[(O(),Ze(Fl,{key:a,deps:n.deps,theme:n.theme,element:s,path:[...n.path,"Elements",a],selectedElementPath:n.selectedElementPath,context:n.context,onOnImageSizeAdjusted:i[0]||(i[0]=l=>o("onImageSizeAdjusted",l)),onOnImageOriginalSizeAdjusted:i[1]||(i[1]=l=>o("onImageOriginalSizeAdjusted",l)),onOnElementClicked:i[2]||(i[2]=l=>o("onElementClicked",l)),onOnElementUpdatedEvent:i[3]||(i[3]=l=>o("onElementUpdatedEvent",l)),onOnElementRemoved:i[4]||(i[4]=l=>o("onElementRemoved",l))},null,8,["deps","theme","element","path","selectedElementPath","context"]))],4))),128))])])],4))}}),Ogt={style:{"border-spacing":"0","border-collapse":"collapse",width:"100%"}},Igt=Xe({__name:"Spacer",props:{theme:{},element:{}},emits:["onElementClicked"],setup(t,{emit:e}){const n=t,o=e;return(r,i)=>(O(),J("table",{class:"Spacer",width:"100%",style:{"border-spacing":"0","border-collapse":"collapse",width:"100%"},onClick:i[0]||(i[0]=()=>o("onElementClicked"))},[_("tbody",null,[_("tr",null,[_("td",{valign:"middle",style:he([{height:z(ko)({paddingExpression:n.element.Height,themeComponentPaddings:n.theme.ComponentPaddings,themeBodyPaddings:n.theme.BodyPaddings})+"px"}])},[_("table",Ogt,[_("tbody",null,[_("tr",null,[_("td",{style:he([[{borderTop:n.element.Weight+"px",borderStyle:n.element.Weight>0?"solid":"none",borderColor:z(Ll)({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)])])]))}}),P5={beforeMount(t,e){t.innerHTML=ZZ.sanitize(e.value)},beforeUpdate(t,e){t.innerHTML=ZZ.sanitize(e.value)}},Pgt=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)}}}),CM=t=>Pgt(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}),Wgt=t=>({Match:e=>{switch(t){case"None":return e.None();case"Underline":return e.Underline();case"LineThrough":return e.LineThrough()}}}),sU=t=>Wgt(t.textDecoration).Match({None:()=>"none",Underline:()=>"underline",LineThrough:()=>"line-through"}),dxe=t=>({fontSize:t.customFontSettings.FontSize,lineHeight:t.customFontSettings.LineHeight,fontWeight:t.customFontSettings.IsBold?"bold":"normal",fontStyle:t.customFontSettings.IsItalic?"italic":"normal",textDecoration:sU({textDecoration:t.customFontSettings.Decoration}),fontFamily:t.customFontSettings.FontFamily,color:CM({fontColor:t.customFontSettings.FontColor,themeColors:t.themeColors})}),hxe=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 ta(t.Discriminator)}}}),Hgt=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)}}}),zgt=t=>Hgt(t.fontStyleColor).Match({FontStyle:()=>hxe(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=>Ll({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}),mxe=["Arial","Georgia","Tahoma","TimesNewRoman","Verdana"],W5={Arial:"Arial",Georgia:"Georgia",Tahoma:"Tahoma",TimesNewRoman:"Times New Roman",Verdana:"Verdana"},aU=t=>({fontSize:t.fontSize+"px",lineHeight:t.lineHeight+"px",fontWeight:t.fontWeight,fontStyle:t.fontStyle,fontFamily:W5[t.fontFamily],textDecoration:t.textDecoration,color:t.color}),lU=t=>{const e=n=>({fontSize:n.FontSize,lineHeight:n.LineHeight,fontWeight:n.IsBold?"bold":"normal",fontStyle:n.IsItalic?"italic":"normal",fontFamily:t.fontFamily,textDecoration:sU({textDecoration:n.Decoration}),color:zgt({fontStyleColor:t.fontStyle.FontColor,fontStyle:t.fontStyle,themeColors:t.themeColors})});return hxe(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=>dxe({customFontSettings:n,themeColors:t.themeColors})})},jgt=t=>({Match:e=>{switch(t.Discriminator){case"Theme":return e.Theme();case"Custom":return e.Custom(t.CustomValue);default:return ta(t.Discriminator)}}}),Ugt=t=>jgt(t.buttonPaddings).Match({Theme:()=>({TopBottom:t.themeButtonPaddings.TopBottom,LeftRight:t.themeButtonPaddings.LeftRight}),Custom:e=>({TopBottom:e.TopBottom,LeftRight:e.LeftRight})}),Kgt=["align"],qgt={class:"Button"},Jgt=["href"],Ggt=Xe({__name:"ButtonVue",props:{deps:{},theme:{},element:{},context:{type:[String,Number,Boolean,Array,Object]}},emits:["onElementClicked"],setup(t,{emit:e}){const n=t,o=q(()=>aU(lU({fontFamily:n.theme.FontFamily,fontStyle:n.element.TextStyle,themeDefinedFontSettings:n.theme.FontSettingsPresets,themeColors:n.theme.Colors}))),r=q(()=>OR({borderColor:n.element.Border.Left.Color,themeColors:n.theme.Colors})),i=q(()=>Ugt({buttonPaddings:n.element.Paddings,themeButtonPaddings:n.theme.ButtonPaddings})),s=q(()=>Ll({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=Vt({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,m])=>{l.href=h,l.text=m,l.isLoading=!1})};c(),an(()=>[n.element.HRef,n.element.Text,n.context],()=>c());const d=e;return(h,m)=>(O(),J("table",{style:{"border-spacing":"0","border-collapse":"collapse",width:"100%"},onClick:m[1]||(m[1]=Wo(f=>d("onElementClicked"),["prevent"]))},[_("tbody",null,[_("tr",null,[_("td",{align:a.value},[_("div",qgt,[_("a",{style:he([{display:"block","text-decoration":"none"},[o.value]]),href:l.href,onClick:m[0]||(m[0]=Wo(()=>{},["prevent"]))},[_("table",{style:he([[{backgroundColor:s.value},z(Wu)({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"},z(gd)({border:n.element.Border,themeColors:t.theme.Colors}),{borderColor:r.value}],{"text-align":"center","border-spacing":"0","border-collapse":"separate"}])},[_("tbody",null,[_("tr",null,[_("td",{align:"center",style:he([{"line-height":"normal"},[{paddingTop:i.value.TopBottom+"px",paddingBottom:i.value.TopBottom+"px",paddingLeft:i.value.LeftRight+"px",paddingRight:i.value.LeftRight+"px"}]])},[Ot(_("p",{class:"user-select-none",style:he([o.value])},null,4),[[z(P5),l.text]])],4)])])],4)],12,Jgt)])],8,Kgt)])])]))}}),Ygt=ot(Ggt,[["__scopeId","data-v-f2906df7"]]),Xgt=["href"],Qgt=Xe({__name:"SpanText",props:{deps:{},theme:{},element:{},context:{type:[String,Number,Boolean,Array,Object]}},emits:["onElementClicked"],setup(t,{emit:e}){const n=t,o=n.deps.stringExpressionEvaluator,r=q(()=>{const u=lU({fontFamily:n.theme.FontFamily,fontStyle:n.element.Style,themeDefinedFontSettings:n.theme.FontSettingsPresets,themeColors:n.theme.Colors});if(n.element.Style.Discriminator==="Custom"){const c=dxe({customFontSettings:n.element.Style.CustomFontSettings,themeColors:n.theme.Colors});return{...c,fontSize:c.fontSize+"px",lineHeight:c.lineHeight+"px",minHeight:n.element.MinNumberOfLines*u.lineHeight+"px"}}return{minHeight:n.element.MinNumberOfLines*u.lineHeight+"px",color:u.color}}),i=Vt({href:"",text:"",isLoading:!0}),s=u=>u.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#039;"),a=()=>{Promise.all([o({stringExpression:n.element.HRef,context:n.context}),o({stringExpression:n.element.Text,context:n.context})]).then(([u,c])=>{i.href=u,i.text=s(c),i.isLoading=!1})};a(),an(()=>[n.context,n.element.HRef,n.element.Text],()=>a());const l=e;return(u,c)=>n.element.IsLink?Ot((O(),J("a",{key:0,href:i.href,class:$e(["SpanText cursor-pointer user-select-none",n.element.Style.Discriminator]),style:he([{margin:"0"},[r.value,z(wb)({contentAlign:n.element.ContentAlign})]]),onClick:c[0]||(c[0]=Wo(()=>l("onElementClicked"),["prevent"]))},null,14,Xgt)),[[z(P5),i.text]]):Ot((O(),J("span",{key:1,class:$e(["SpanText cursor-pointer user-select-none",n.element.Style.Discriminator]),style:he([{margin:"0"},[r.value,z(wb)({contentAlign:n.element.ContentAlign})]]),onClick:c[1]||(c[1]=Wo(()=>l("onElementClicked"),["prevent"]))},null,6)),[[z(P5),i.text]])}}),Zgt=ot(Qgt,[["__scopeId","data-v-f6595f5e"]]),ls=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:sU({textDecoration:t.themeFontSettings.Decoration}),color:t.themeColor}),eCt={class:"bootstrap-styles modal fade show d-block position-absolute"},tCt={class:"bootstrap-styles modal-dialog modal-dialog-centered"},nCt={class:"bootstrap-styles modal-content border rounded-3 shadow","data-test":"modal-window__content"},oCt={class:"bootstrap-styles modal-header p-0"},rCt={class:"bootstrap-styles container-fluid border-bottom g-0"},iCt={class:"bootstrap-styles d-flex justify-content-between align-items-center px-11 py-7"},sCt={class:"bootstrap-styles modal-title border-0","data-test":"modal-window__header-text"},aCt={class:"bootstrap-styles modal-body p-0","data-test":"modal-window__body"},lCt={class:"bootstrap-styles modal-footer p-0 g-0"},uCt={class:"bootstrap-styles container-fluid border-top"},cCt={class:"bootstrap-styles d-flex justify-content-end py-8 px-11"},dCt={class:"bootstrap-styles col-6 d-flex justify-content-end","data-test":"modal-window__footer-actions"},hCt=Xe({__name:"ModalWindow",props:{headerText:{}},emits:["close"],setup(t,{emit:e}){const n=t,o=e;return(r,i)=>(O(),J("div",eCt,[_("div",{class:"bootstrap-styles modal-blur d-block position-fixed top-0 left-0 w-100 vh-100","data-test":"modal-window__outside",onClick:i[0]||(i[0]=s=>o("close"))}),_("div",tCt,[_("div",nCt,[_("div",oCt,[_("div",rCt,[_("div",iCt,[_("h5",sCt,Gt(n.headerText),1),_("button",{type:"button","aria-label":"Close","data-bs-dismiss":"modal","data-test":"modal-window__close-button",onClick:i[1]||(i[1]=s=>o("close"))},[...i[2]||(i[2]=[_("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},[_("path",{d:"M3 3L13 13",stroke:"var(--gray-500)"}),_("path",{d:"M13 3L3 13",stroke:"var(--gray-500)"})],-1)])])])])]),_("div",aCt,[Y0(r.$slots,"body",{},void 0,!0)]),_("div",lCt,[_("div",uCt,[_("div",cCt,[_("div",dCt,[Y0(r.$slots,"footer-actions",{},void 0,!0)])])])])])])]))}}),fxe=ot(hCt,[["__scopeId","data-v-7a4aac23"]]),Xn=t=>e=>t[e.localeKey],mCt={cancelButton:"Cancel",applyButton:"Delete"},fCt={cancelButton:"Отмена",applyButton:"Удалить"},moe=Xn({en:mCt,ru:fCt}),pCt={class:"bootstrap-styles px-11 py-7 text-start"},gCt=Xe({__name:"RemoveConfirmModalWindow",props:{headerText:{},deps:{}},emits:["cancel","confirmed"],setup(t,{emit:e}){const n=t,o=()=>{i("cancel")},r={cancelButton:moe({localeKey:n.deps.localeKey}).cancelButton,applyButton:moe({localeKey:n.deps.localeKey}).applyButton},i=e;return(s,a)=>(O(),Ze(fxe,{headerText:n.headerText,class:"remove-element-confirm-modal-window",onClose:a[2]||(a[2]=()=>o())},{body:Fu(()=>[_("div",pCt,[Y0(s.$slots,"body-content")])]),"footer-actions":Fu(()=>[_("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]=Wo(l=>o(),["stop"]))},Gt(r.cancelButton),1),_("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]=Wo(l=>i("confirmed"),["stop"]))},Gt(r.applyButton),1)]),_:3},8,["headerText"]))}}),CCt={removeWindowTitle:"Delete element",removeWindowDescription:"Are you sure you want to delete the text element?"},yCt={removeWindowTitle:"Удаление элемента",removeWindowDescription:"Вы действительно хотите удалить элемент ?"},foe=Xn({en:CCt,ru:yCt}),poe=t=>({type:"doc",content:t.Content.map(bCt)}),bCt=t=>"ParagraphNode"in t?Cxe(t):"BulletListNode"in t?vCt(t):"OrderedListNode"in t?TCt(t):"DataFieldNode"in t?gxe(t):ta(t),pxe=t=>({type:"listItem",content:t.Content.map(e=>"ParagraphNode"in e?Cxe(e):"ImageNode"in e?yxe(e):ta(e))}),gxe=t=>({type:"dataField",marks:uU({textStyle:t.DataFieldNode.TextStyle,commonLinkMark:t.DataFieldNode.CommonLinkMark}),attrs:{stringExpression:t.DataFieldNode.StringExpression}}),vCt=t=>({type:"bulletList",content:t.BulletListNode.Content.map(pxe),attrs:{themeName:t.BulletListNode.ListStyle}}),TCt=t=>({type:"orderedList",content:t.OrderedListNode.Content.map(pxe),attrs:{themeName:t.OrderedListNode.ListStyle}}),Cxe=t=>({type:"paragraph",attrs:{themeName:t.ParagraphNode.ThemeName},content:t.ParagraphNode.Content.map(xCt)}),xCt=t=>"TextNode"in t?FCt(t):"HardBreakNode"in t?DCt():"ImageNode"in t?yxe(t):"DataFieldNode"in t?gxe(t):ta(t),uU=t=>{const e=[];return t.textStyle&&e.push(_Ct(t.textStyle)),t.commonLinkMark&&e.push(RCt(t.commonLinkMark)),e.filter(n=>n!==void 0)},FCt=t=>({type:"text",text:t.TextNode.Text,marks:uU({textStyle:t.TextNode.TextStyle,commonLinkMark:t.TextNode.CommonLinkMark})}),SCt=t=>{switch(t){case"Normal":return"normal";case"Bold":return"bold";default:return"normal"}},wCt=t=>{switch(t){case"Normal":return"normal";case"Italic":return"italic";default:return"normal"}},kCt=t=>{switch(t){case"None":return"none";case"Uppercase":return"uppercase";default:return"none"}},ECt=t=>{switch(t){case"None":return"none";case"Underline":return"underline";case"LineThrough":return"line-through";default:return"none"}},_Ct=t=>({type:"textStyle",attrs:{themeName:t.ThemeName,color:t.Style.Color,fontWeight:t.Style.FontWeight?SCt(t.Style.FontWeight):void 0,fontStyle:t.Style.FontStyle?wCt(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?kCt(t.Style.TextTransform):void 0,textDecoration:t.Style.TextDecoration?ECt(t.Style.TextDecoration):void 0}}),RCt=t=>nc(t).Match({LinkMark:e=>ACt({LinkMark:e}),UnsubscribeLinkMark:()=>NCt()}),DCt=()=>({type:"hardBreak"}),yxe=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:uU({commonLinkMark:t.ImageNode.CommonLinkMark})}),ACt=t=>({type:"link",attrs:{href:t.LinkMark.Href}}),NCt=()=>({type:"unsubscribeLink"}),bxe=tc.create({name:"textTransform",addOptions(){return{types:["textStyle"]}},addGlobalAttributes(){return[{types:this.options.types,attributes:{textTransform:{default:"none",parseHTML:t=>t.style.textTransform,renderHTML:t=>t.textTransform?{style:`text-transform: ${t.textTransform}`}:{}}}}]},addCommands(){return{setTextTransform:t=>({chain:e})=>e().setMark("textStyle",{textTransform:t}).run(),unsetTextTransform:()=>({chain:t,state:e})=>{const{from:n,to:o,$from:r}=e.selection;return e.doc.textBetween(n,o," ").length?t().setMark("textStyle",{textTransform:"none"}).run():t().setTextSelection({from:r.pos-r.nodeBefore.nodeSize,to:r.pos+r.nodeAfter.nodeSize}).setMark("textStyle",{textTransform:"none"}).focus().run()}}},addKeyboardShortcuts(){const t=e=>e.isUppercase?this.editor.commands.unsetTextTransform():this.editor.commands.setTextTransform("uppercase");return{"Mod-Shift-u":()=>{const e=this.editor.isActive("textStyle",{textTransform:"uppercase"});return t({isUppercase:e})},"Mod-Shift-U":()=>{const e=this.editor.isActive("textStyle",{textTransform:"uppercase"});return t({isUppercase:e})}}}}),BCt=tc.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()}}}),LCt=tc.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()}}}),$Ct=t=>yn.create({name:"themeFontStyles",priority:1e3,addOptions(){return{types:["textStyle","bulletList","orderedList","paragraph"]}},addGlobalAttributes(){return[{types:this.options.types,attributes:{themeName:{default:t,parseHTML:e=>e.getAttribute("data-theme"),renderHTML:e=>e.themeName?{"data-theme":e.themeName,class:e.themeName}:{"data-theme":t,class:e.themeName}}}}]},addCommands(){return{setThemeSettings:e=>({chain:n,state:o})=>{const{$from:r}=o.selection,i=r.parent,s=r.index();return i.child(s).type.name==="image"?!1:n().setMark("textStyle",{themeName:e}).run()},applySiblingNodeThemeSettings:()=>({chain:e,state:n})=>{const{from:o,to:r,$from:i}=n.selection,s=i.parent,a=i.index(),l=i.node(i.depth)?.type.name==="dataField"||s.maybeChild(a)?.type.name==="dataField",u=s.child(a).type.name==="image",c=f=>{const p="NormalText",g=f.index>0?s.child(f.index-1):void 0,y=f.index+1<s.childCount?s.child(f.index+1):void 0,b=g??y;if(b){const F=b.marks.find(v=>v.type.name==="textStyle");if(F)return F.attrs.themeName}return p};if(l){const f=c({index:a});return e().unsetMark("textStyle",{extendEmptyMarkRange:!0}).setThemeSettings(f).run()}if(u)return!1;const d=c({index:a}),h=i.nodeBefore?i.pos-i.nodeBefore.nodeSize:o,m=i.nodeAfter?i.pos+i.nodeAfter.nodeSize:r;return e().setTextSelection({from:h,to:m}).setThemeSettings(d).run()}}},addProseMirrorPlugins(){return[new Yn({key:new Lo("syncBlockTheme"),appendTransaction:(e,n,o)=>{const r=o.tr;let i=!1;return o.doc.descendants((s,a)=>{if(s.type.name==="bulletList"||s.type.name==="orderedList"){const l=s.firstChild?.firstChild?.firstChild;if(l){const u=l.marks.find(c=>c.type.name==="textStyle")?.attrs.themeName;u&&s.attrs.themeName!==u&&(r.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&&(r.setNodeMarkup(a,void 0,{...s.attrs,themeName:u}),i=!0)}}}),i?r:null}})]}}),VCt=tc.create({name:"fontWeight",addOptions(){return{types:["textStyle"]}},addGlobalAttributes(){return[{types:this.options.types,attributes:{fontWeight:{default:null,parseHTML:t=>t.style.fontWeight,renderHTML:t=>t.fontWeight?{style:`font-weight: ${t.fontWeight}`}:{}}}}]},addCommands(){return{setFontWeight:t=>({chain:e})=>e().setMark("textStyle",{fontWeight:t}).run(),unsetFontWeight:()=>({chain:t,state:e})=>{const{from:n,to:o,$from:r}=e.selection;return e.doc.textBetween(n,o," ").length?t().setMark("textStyle",{fontWeight:"normal"}).run():t().setTextSelection({from:r.pos-r.nodeBefore.nodeSize,to:r.pos+r.nodeAfter.nodeSize}).setMark("textStyle",{fontWeight:"normal"}).focus().run()},resetFontWeight:()=>({chain:t})=>t().setMark("textStyle",{fontWeight:null}).removeEmptyTextStyle().run()}},addKeyboardShortcuts(){const t=e=>e.isBold?this.editor.commands.unsetFontWeight():this.editor.commands.setFontWeight("bold");return{"Mod-b":()=>{const e=this.editor.isActive("textStyle",{fontWeight:"bold"});return t({isBold:e})},"Mod-B":()=>{const e=this.editor.isActive("textStyle",{fontWeight:"bold"});return t({isBold:e})}}}}),MCt=tc.create({name:"fontStyle",addOptions(){return{types:["textStyle"]}},addGlobalAttributes(){return[{types:this.options.types,attributes:{fontStyle:{default:null,parseHTML:t=>t.style.fontStyle,renderHTML:t=>t.fontStyle?{style:`font-style: ${t.fontStyle}`}:{}}}}]},addCommands(){return{setFontStyle:t=>({chain:e})=>e().setMark("textStyle",{fontStyle:t}).run(),unsetFontStyle:()=>({chain:t,state:e})=>{const{from:n,to:o,$from:r}=e.selection;return e.doc.textBetween(n,o," ").length?t().setMark("textStyle",{fontStyle:"normal"}).run():t().setTextSelection({from:r.pos-r.nodeBefore.nodeSize,to:r.pos+r.nodeAfter.nodeSize}).setMark("textStyle",{fontStyle:"normal"}).focus().run()},resetFontStyle:()=>({chain:t})=>t().setMark("textStyle",{fontStyle:null}).removeEmptyTextStyle().run()}},addKeyboardShortcuts(){const t=e=>e.isItalic?this.editor.commands.unsetFontStyle():this.editor.commands.setFontStyle("italic");return{"Mod-i":()=>{const e=this.editor.isActive("textStyle",{fontStyle:"italic"});return t({isItalic:e})},"Mod-I":()=>{const e=this.editor.isActive("textStyle",{fontStyle:"italic"});return t({isItalic:e})}}}}),cU=tc.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",Ei(this.options.HTMLAttributes,t),0]},addCommands(){return{setUnsubscribeLink:()=>({chain:t})=>t().setMark("unsubscribeLink").focus().run(),unsetUnsubscribeLink:()=>({chain:t,state:e})=>{const{from:n,to:o}=e.selection,r=e.doc.textBetween(n,o," ");return e.doc.nodeAt(n)?.type.name==="image"?t().unsetMark("unsubscribeLink").focus().run():r.length?t().setTextSelection({from:n,to:n+r.length}).unsetMark("unsubscribeLink").focus().run():t().unsetMark("unsubscribeLink",{extendEmptyMarkRange:!0}).focus().run()}}}}),OCt=tc.create({name:"textDecoration",addOptions(){return{types:["textStyle"]}},addGlobalAttributes(){return[{types:this.options.types,attributes:{textDecoration:{parseHTML:t=>t.style.textDecoration,renderHTML:t=>t.textDecoration?{style:`text-decoration: ${t.textDecoration}`}:{}}}}]},addCommands(){return{setTextDecoration:t=>({chain:e})=>e().setMark("textStyle",{textDecoration:t}).run(),unsetTextDecoration:()=>({chain:t,state:e})=>{const{from:n,to:o,$from:r}=e.selection;return e.doc.textBetween(n,o," ").length?t().setMark("textStyle",{textDecoration:"none"}).run():t().setTextSelection({from:r.pos-r.nodeBefore.nodeSize,to:r.pos+r.nodeAfter.nodeSize}).setMark("textStyle",{textDecoration:"none"}).focus().run()}}},addKeyboardShortcuts(){const t=n=>n.isUnderline?this.editor.commands.unsetTextDecoration():this.editor.commands.setTextDecoration("underline"),e=n=>n.isLineThrough?this.editor.commands.unsetTextDecoration():this.editor.commands.setTextDecoration("line-through");return{"Mod-Shift-s":()=>{const n=this.editor.isActive("textStyle",{textDecoration:"line-through"});return e({isLineThrough:n})},"Mod-u":()=>{const n=this.editor.isActive("textStyle",{textDecoration:"underline"});return t({isUnderline:n})},"Mod-U":()=>{const n=this.editor.isActive("textStyle",{textDecoration:"underline"});return t({isUnderline:n})}}}}),ICt=t=>{if(!t.content)throw new Error("Invalid document: content is missing");return{Content:t.content.map(e=>{switch(e.type){case"paragraph":return vxe(e);case"bulletList":return HCt(e);case"orderedList":return zCt(e);default:throw new Error(`Unknown node type: ${e.type}`)}})}},vxe=t=>t.content?{ParagraphNode:{ThemeName:t.attrs?t.attrs.themeName:void 0,Content:t.content.map(e=>{switch(e.type){case"text":return PCt(e);case"image":return xxe(e);case"hardBreak":return goe();case"dataField":return WCt(e);default:throw new Error(`Unknown node type: ${e.type}`)}})}}:{ParagraphNode:{ThemeName:t.attrs?t.attrs.themeName:void 0,Content:[goe()]}},dU=t=>{const e=t?t.find(o=>o.type==="textStyle"):void 0,n=t?t.find(o=>o.type==="link"||o.type==="unsubscribeLink"):void 0;return{TextStyle:e?GCt(e):void 0,CommonLinkMark:n?YCt(n):void 0}},PCt=t=>{if(typeof t.text!="string")throw new Error("Invalid text node: text is missing or not a string");const{TextStyle:e,CommonLinkMark:n}=dU(t.marks);return{TextNode:{Text:t.text,TextStyle:e,CommonLinkMark:n}}},goe=()=>({HardBreakNode:{}}),WCt=t=>{if(!t.attrs)throw new Error("Invalid variable node: attrs is missing");const{TextStyle:e,CommonLinkMark:n}=dU(t.marks);return{DataFieldNode:{StringExpression:t.attrs.stringExpression,TextStyle:e,CommonLinkMark:n}}},HCt=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(Txe)}}},zCt=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(Txe)}}},Txe=t=>{if(!t.content)throw new Error("Invalid listItem: content is missing");return{Content:t.content.map(e=>{switch(e.type){case"paragraph":return vxe(e);case"image":return xxe(e);default:throw new Error(`Unknown node type: ${e.type}`)}})}},xxe=t=>{if(!t.attrs)throw new Error("Invalid image node: attrs is missing");const{CommonLinkMark:e}=dU(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}}},jCt=t=>t==="bold"?"Bold":"Normal",UCt=t=>t==="italic"?"Italic":"Normal",KCt=t=>t,qCt=t=>{switch(t){case"uppercase":return"Uppercase";default:return"None"}},JCt=t=>{switch(t){case"underline":return"Underline";case"line-through":return"LineThrough";default:return"None"}},Coe=t=>{const e=t.replace(/px$/,"");return parseInt(e,10)},GCt=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?jCt(t.attrs.fontWeight):void 0,FontStyle:t.attrs.fontStyle?UCt(t.attrs.fontStyle):void 0,FontSize:t.attrs.fontSize?Coe(t.attrs.fontSize):void 0,LineHeight:t.attrs.lineHeight?Coe(t.attrs.lineHeight):void 0,FontFamily:t.attrs.fontFamily?KCt(t.attrs.fontFamily):void 0,TextTransform:t.attrs.textTransform?qCt(t.attrs.textTransform):void 0,TextDecoration:t.attrs.textDecoration?JCt(t.attrs.textDecoration):void 0}}},YCt=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}},Fxe=t=>{if(!t)return null;if(/^#([A-Fa-f0-9]{3}){1,2}$/.test(t))return t;if(t.startsWith("rgb")){const n=t.replace(/[^\d,.]/g,"").split(","),o=n[0]?parseInt(n[0]):0,r=n[1]?parseInt(n[1]):0,i=n[2]?parseInt(n[2]):0;return`#${(1<<24|o<<16|r<<8|i).toString(16).slice(1)}`}if(t.startsWith("hsl")){const n=document.createElement("div");n.style.color=t,document.body.appendChild(n);const o=getComputedStyle(n).color;return document.body.removeChild(n),Fxe(o)}const e=document.createElement("canvas").getContext("2d");return e?(e.fillStyle=t,e.fillStyle):null},XCt=t=>yn.create({name:"color",addOptions(){return{types:["textStyle"]}},addGlobalAttributes(){return[{types:this.options.types,attributes:{color:{default:null,parseHTML:e=>{const n=e.getAttribute("data-theme-color")??"Custom",o=Fxe(e.style.color)??"#000000";return{Discriminator:n,CustomValue:o}},renderHTML:e=>{if(!e.color)return{};const n=CM({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()}}}),QCt=yn.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 mxe.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()}}}),ZCt=t=>Pl.create({name:"dataField",group:"inline",marks:"_",inline:!0,atom:!0,selectable:!0,addAttributes:()=>({stringExpression:{default:null,parseHTML:e=>JSON.parse(e.getAttribute("data-field")),renderHTML:e=>({"data-field":JSON.stringify(e.stringExpression)})}}),parseHTML:()=>[{tag:"data-field[data-field]"}],renderHTML:({node:e,HTMLAttributes:n})=>{const o=e.attrs.stringExpression,r=Rct(o).Match({ContextValueExpression:()=>"contextValue",ContextValueExpressionWithFallback:()=>"contextValueWithFallback",ConstValueExpression:i=>i.Value,TruncateValueExpression:()=>"truncate",ConcatStringExpressions:()=>"concat",NumberToStringExpression:()=>"numberToString",DataSource:i=>t.dataSourceFieldNameDelegate({dataSource:i}),UnsubscribeUrlExpression:()=>"unsubscribeUrl",RecipientEmailAddressExpression:()=>"recipientEmailAddress"});return["data-field",Ei(n,{class:"rich-text__variable","data-field":JSON.stringify(e.attrs.stringExpression),contenteditable:"false"}),r]},addCommands(){return{setVariable:e=>({chain:n,state:o})=>{const r=o.selection.$from.marks(),i=r.map(s=>({type:s.type.name,attrs:s.attrs}));return n().insertContent({type:this.name,attrs:{stringExpression:e,selectedMarks:r},marks:i}).focus().run()}}}}),Sxe=t=>new Promise((e,n)=>{const o=new Image;o.onload=()=>{e({width:o.naturalWidth,height:o.naturalHeight})},o.onerror=n,o.src=t}),wxe=Pl.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",Ei(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[Cat({find:/(?:^|\s)(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))$/,type:this.type,getAttributes:t=>{const[,,e,n,o]=t;return{src:n,alt:e,title:o}}})]},addProseMirrorPlugins(){return[new Yn({view:t=>((async()=>{const{state:e,dispatch:n}=t;e.doc.descendants((o,r)=>{if(o.type.name===this.name){const{src:i,width:s,height:a}=o.attrs;i&&(!s||!a)&&Sxe(i).then(l=>{const u=e.tr.setNodeMarkup(r,void 0,{...o.attrs,width:l.width,height:l.height});n(u)})}})})(),{})})]}}),eyt=t=>[ilt,Ult,rlt,rM.configure({mergeNestedSpanStyles:!0}),Dlt,ZCt({dataSourceFieldNameDelegate:t.dataSourceFieldNameDelegate}),olt.configure({className:"has-focus",mode:"all"}),D8.configure({keepMarks:!0,keepAttributes:!0}),N8.configure({keepMarks:!0,keepAttributes:!0}),b1e,jlt.configure({HTMLAttributes:{class:"hard-break"}}),R8.configure({HTMLAttributes:{class:"rich-text__link"},openOnClick:!1}),wxe.configure({inline:!0,HTMLAttributes:{class:"rich-text__image"}}),XCt({themeColors:t.themeColors}),$Ct(t.initialThemeName),VCt,MCt,BCt,LCt,bxe,OCt,cU,QCt],tyt=t=>ICt(t.editor.getJSON()),nyt=Xe({__name:"SelectItemColor",props:{isActive:{type:Boolean},color:{},label:{}},emits:["click"],setup(t,{emit:e}){const n=t,o=e;return(r,i)=>(O(),J("li",{class:$e(["bootstrap-styles dropdown-item p-0 user-select-none",{active:n.isActive}])},[_("span",{class:"bootstrap-styles d-block py-1 px-3 text-decoration-none text-reset cursor-pointer d-flex align-items-center justify-content-start",onClick:i[0]||(i[0]=s=>o("click"))},[_("i",{class:"bootstrap-styles input__color_selection d-block overflow-hidden me-2",style:he([{border:"1px solid rgba(0, 0, 0, 0.10)"},[{background:n.color}]])},null,4),X0(" "+Gt(n.label),1)])],2))}}),oyt={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"}},ryt={colorLabels:{none:"Нет",styleLinkedColor:"Связать со стилем",emailBackgroundColor:"Фон письма",bodyColor:"Тело письма",primaryColor:"Основной цвет",secondaryColor:"Вторичный цвет",primaryTextColor:"Текст на основном цвете",secondaryTextColor:"Текст на вторичном цвете",cardBackgroundColor:"Цвет карточек товара",buttonTextColor:"Кнопки",titleColor:"Большой заголовок",headingColor:"Заголовок",subHeadingColor:"Подзаголовок",largeTextColor:"Большой текст",normalTextColor:"Текст",descriptionTextColor:"Описание",linkColor:"Ссылка",custom:"Пользовательский"}},iyt=Xn({en:oyt,ru:ryt}),kxe=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 ta(t)}}}),yM=t=>kxe(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}),Hw=t=>{const{FontFamily:e,FontSettingsPresets:n,Colors:o}=t.theme,r=!!t.editor.getAttributes("textStyle")[t.styleName],i=t.editor.getAttributes("paragraph").themeName||"NormalText",s=t.editor.getAttributes("textStyle").themeName||i;if(r)return t.editor.getAttributes("textStyle")[t.styleName];const a=ls({fontFamily:e,themeFontSettings:n[s],themeColor:yM({themeName:s,themeFontColors:o})});return String(a[t.styleName])},Exe=t=>{const{FontFamily:e,FontSettingsPresets:n,Colors:o}=t.theme,r=!!t.editor.getAttributes("textStyle").color,i=t.editor.getAttributes("paragraph").themeName||"NormalText",s=t.editor.getAttributes("textStyle").themeName||i;if(r)return t.editor.getAttributes("textStyle").color;const a=ls({fontFamily:e,themeFontSettings:n[s],themeColor:yM({themeName:s,themeFontColors:o})});return{Discriminator:kxe(s).Match({whenHeading:()=>"HeadingColor",whenTitle:()=>"TitleColor",whenSubHeading:()=>"SubHeadingColor",whenLargeText:()=>"LargeTextColor",whenNormalText:()=>"NormalTextColor",whenDescriptionText:()=>"DescriptionTextColor",whenLink:()=>"LinkColor",whenButton:()=>"ButtonTextColor"}),CustomValue:a.color}},syt={class:"color-picker bootstrap-styles border rounded bg-white"},ayt={class:"bootstrap-styles p-1 mb-5 bg-white"},lyt=["value"],uyt=["value"],cyt=Xe({__name:"ColorPickerModalWindow",props:{editor:{},theme:{},deps:{}},emits:["onColorChanged","onColorPickerClosed"],setup(t,{emit:e}){const n=t,o={colorLabels:iyt({localeKey:n.deps.localeKey}).colorLabels},r=q(()=>CM({fontColor:Exe({editor:n.editor,theme:n.theme}),themeColors:n.theme.Colors})),i=Vt({color:r.value,isValidHexColor:!0}),s={StyleLinkedColor:o.colorLabels.styleLinkedColor,EmailBackgroundColor:o.colorLabels.emailBackgroundColor,BodyColor:o.colorLabels.bodyColor,PrimaryColor:o.colorLabels.primaryColor,SecondaryColor:o.colorLabels.secondaryColor,PrimaryTextColor:o.colorLabels.primaryTextColor,SecondaryTextColor:o.colorLabels.secondaryTextColor,CardBackgroundColor:o.colorLabels.cardBackgroundColor,ButtonTextColor:o.colorLabels.buttonTextColor,TitleColor:o.colorLabels.titleColor,HeadingColor:o.colorLabels.headingColor,SubHeadingColor:o.colorLabels.subHeadingColor,LargeTextColor:o.colorLabels.largeTextColor,NormalTextColor:o.colorLabels.normalTextColor,DescriptionTextColor:o.colorLabels.descriptionTextColor,LinkColor:o.colorLabels.linkColor,Custom:o.colorLabels.custom},a=["EmailBackgroundColor","BodyColor","PrimaryColor","SecondaryColor","PrimaryTextColor","SecondaryTextColor","ButtonTextColor","TitleColor","HeadingColor","SubHeadingColor","LargeTextColor","NormalTextColor","DescriptionTextColor","LinkColor"],l=fet(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})};an(()=>r.value,h=>{i.color=h,i.isValidHexColor=u(h)});const d=e;return(h,m)=>Ot((O(),J("div",null,[_("ul",syt,[_("li",ayt,[ie(z(Sct),{modelValue:r.value,width:220,canvasHeight:220,hideInputs:!0,hideSliders:!1,mode:"hex","onUpdate:modelValue":m[0]||(m[0]=f=>z(l)(f))},null,8,["modelValue"]),_("div",{class:$e(["bootstrap-styles border bg-color-input rounded-2 d-flex justify-content-between p-14",{"is-not-valid":!i.isValidHexColor}])},[_("input",{type:"color",class:"bootstrap-styles pe-none",style:{border:"1px solid rgba(0, 0, 0, 0.1)",cursor:"default"},value:r.value},null,8,lyt),_("input",{type:"text",class:"bootstrap-styles w-100 text-uppercase ps-1",value:i.color,placeholder:"#000000",onInput:m[1]||(m[1]=f=>c(f.target.value))},null,40,uyt)],2)]),(O(),J(rt,null,$n(a,f=>ie(nyt,{key:f,isActive:r.value===n.theme.Colors[f],color:n.theme.Colors[f],label:s[f],onClick:()=>{d("onColorChanged",{Discriminator:f,CustomValue:n.theme.Colors[f]}),d("onColorPickerClosed")}},null,8,["isActive","color","label","onClick"])),64))])])),[[z(Gm),()=>d("onColorPickerClosed")]])}}),dyt=ot(cyt,[["__scopeId","data-v-b1cc72b1"]]),hyt={tooltip:"Text color"},myt={tooltip:"Цвет текста"},fyt=Xn({en:hyt,ru:myt}),pyt=["value"],gyt=Xe({__name:"ColorPicker",props:{editor:{},theme:{},isAllowToEdit:{type:Boolean},deps:{}},setup(t){const e=t,n={tooltip:fyt({localeKey:e.deps.localeKey}).tooltip},o=Vt({isColorPickerDropdownShown:!1}),r=pn(),i=pn(),{floatingStyles:s}=A0e(i,r,{whileElementsMounted:_0e,placement:"bottom",middleware:[R0e(({rects:l})=>({alignmentAxis:-l.floating.width/2-l.floating.width/2,mainAxis:15}))]}),a=q(()=>CM({fontColor:Exe({editor:e.editor,theme:e.theme}),themeColors:e.theme.Colors}));return(l,u)=>(O(),J(rt,null,[Ot((O(),J("button",{ref_key:"richTextColorPickerBtn",ref:i,class:$e(["bootstrap-styles border rich-text-color__input rich-text__handler",{disabled:!t.isAllowToEdit}]),value:a.value,onClick:u[0]||(u[0]=()=>o.isColorPickerDropdownShown=!o.isColorPickerDropdownShown)},[_("i",{style:he([{display:"block",width:"100%",height:"100%"},{backgroundColor:a.value}])},null,4)],10,pyt)),[[z($o),{title:n.tooltip,placement:"top"}]]),o.isColorPickerDropdownShown?(O(),Ze(dyt,{key:0,ref_key:"richTextColorPicker",ref:r,theme:e.theme,editor:e.editor,deps:e.deps.colorPickerModalWindowDeps,style:he(z(s)),onOnColorChanged:u[1]||(u[1]=c=>{e.editor.commands.setColor(c)}),onOnColorPickerClosed:u[2]||(u[2]=()=>{o.isColorPickerDropdownShown=!1,e.editor.commands.focus()})},null,8,["theme","editor","deps","style"])):Ue("",!0)],64))}}),Cyt=ot(gyt,[["__scopeId","data-v-6624477a"]]),yyt={},byt={xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"};function vyt(t,e){return O(),J("svg",byt,[...e[0]||(e[0]=[_("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 _xe=ot(yyt,[["render",vyt]]),Tyt={tooltip:"Font family"},xyt={tooltip:"Шрифт"},Fyt=Xn({en:Tyt,ru:xyt}),Syt={class:"bootstrap-styles dropdown"},wyt={class:"bootstrap-styles me-14 overflow-hidden rich-text-toolbar__font-family-btn__text"},kyt={class:"bootstrap-styles d-flex justify-content-center align-items-center"},Eyt=["onClick"],_yt=Xe({__name:"FontFamilySelector",props:{editor:{},isAllowToEdit:{type:Boolean},theme:{},deps:{}},setup(t){const e=t,n={tooltip:Fyt({localeKey:e.deps.localeKey}).tooltip},o=rM.name,r=Vt({isOpened:!1}),i=q(()=>Hw({editor:e.editor,theme:e.theme,styleName:"fontFamily"})),s=a=>{e.editor.commands.setFontFamily(a),r.isOpened=!1,e.editor.commands.focus()};return(a,l)=>Ot((O(),J("div",Syt,[_("button",{id:"richTextDropdownFontFamily",class:$e(["bootstrap-styles d-flex justify-content-between align-items-center py-1 px-3 text-nowrap rich-text-toolbar__font-family-btn border rounded-2 overflow-hidden",{disabled:!e.isAllowToEdit,show:r.isOpened}]),type:"button",onClick:l[0]||(l[0]=u=>r.isOpened=!r.isOpened)},[_("span",wyt,Gt(z(W5)[i.value]),1),_("i",kyt,[ie(_xe)])],2),_("ul",{class:$e([{show:r.isOpened},"bootstrap-styles dropdown-menu rounded-2 bg-white"]),"aria-labelledby":"richTextDropdownFontFamily"},[(O(!0),J(rt,null,$n(z(mxe),u=>(O(),J("li",{key:u,class:$e(["bootstrap-styles dropdown-item p-0",{active:e.editor.getAttributes(z(o)).fontFamily===u}]),onClick:()=>s(u)},[_("span",{class:"bootstrap-styles d-block py-1 px-3 text-decoration-none text-reset cursor-pointer",style:he({fontFamily:u})},Gt(z(W5)[u]),5)],10,Eyt))),128))],2)])),[[z(Gm),()=>r.isOpened=!1],[z($o),{title:n.tooltip,placement:"top"}]])}}),Ryt=ot(_yt,[["__scopeId","data-v-cc496278"]]),Dyt={},Ayt={xmlns:"http://www.w3.org/2000/svg",width:"8",height:"8",viewBox:"0 0 8 8",fill:"none"};function Nyt(t,e){return O(),J("svg",Ayt,[...e[0]||(e[0]=[_("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 Rxe=ot(Dyt,[["render",Nyt],["__scopeId","data-v-19c42a7a"]]),Byt={},Lyt={xmlns:"http://www.w3.org/2000/svg",width:"8",height:"8",viewBox:"0 0 8 8",fill:"none"};function $yt(t,e){return O(),J("svg",Lyt,[...e[0]||(e[0]=[_("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 Dxe=ot(Byt,[["render",$yt],["__scopeId","data-v-313c2951"]]),Vyt={},Myt={width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Oyt(t,e){return O(),J("svg",Myt,[...e[0]||(e[0]=[_("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 Iyt=ot(Vyt,[["render",Oyt]]),Pyt={tooltip:"Font size"},Wyt={tooltip:"Размер текста"},Hyt=Xn({en:Pyt,ru:Wyt}),zyt=t=>{const{FontFamily:e,FontSettingsPresets:n,Colors:o}=t.theme,r=!!t.editor.getAttributes("textStyle").fontSize,i=t.editor.getAttributes("paragraph").themeName||"NormalText",s=t.editor.getAttributes("textStyle").themeName||i;return r?parseInt(t.editor.getAttributes("textStyle").fontSize,10):ls({fontFamily:e,themeFontSettings:n[s],themeColor:yM({themeName:s,themeFontColors:o})}).fontSize},jyt={class:"bootstrap-styles rich-text-toolbar__font-size-editor position-relative rounded-2 py-1 px-3 d-flex"},Uyt={class:"bootstrap-styles d-flex justify-content-center rich-text-icon me-14"},Kyt=["value"],qyt={class:"bootstrap-styles rich-text-toolbar__input-button top-0 d-flex position-absolute align-items-end justify-content-center"},Jyt={class:"bootstrap-styles rich-text-toolbar__input-button bottom-0 d-flex position-absolute align-items-start justify-content-center"},Gyt=Xe({__name:"FontSizeEditor",props:{editor:{},theme:{},deps:{}},setup(t){const e=t,n={tooltip:Hyt({localeKey:e.deps.localeKey}).tooltip},o=q(()=>zyt({editor:e.editor,theme:e.theme})),r=()=>{o.value&&e.editor.commands.setFontSize(o.value+1)},i=()=>{o.value&&o.value!==1&&e.editor.commands.setFontSize(o.value-1)},s=a=>{const l=a.target;let 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)=>Ot((O(),J("div",jyt,[_("i",Uyt,[ie(Iyt)]),_("input",{type:"number",class:"bootstrap-styles rich-text-toolbar__input-number rich-text__handler",value:o.value,onInput:s},null,40,Kyt),_("div",qyt,[_("input",{type:"button",class:"bootstrap-styles position-absolute rich-text__handler",onClick:r}),ie(Rxe)]),_("div",Jyt,[_("input",{type:"button",class:"bootstrap-styles position-absolute rich-text__handler",onClick:i}),ie(Dxe)])])),[[z($o),{title:n.tooltip,placement:"top"}]])}}),Yyt=ot(Gyt,[["__scopeId","data-v-ba95f865"]]),Xyt=Xe({__name:"SelectItemTextStyle",props:{isActive:{type:Boolean},label:{},themeFontStyle:{},themeFontColor:{}},emits:["click"],setup(t,{emit:e}){const n=t,o=e;return(r,i)=>(O(),J("li",{class:$e(["bootstrap-styles dropdown-item p-0 d-flex align-items-center px-3 cursor-pointer",{active:n.isActive}]),onClick:i[0]||(i[0]=s=>o("click"))},[_("i",{class:"bootstrap-styles input__color_selection d-block overflow-hidden me-2",style:he([{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),_("span",{class:"bootstrap-styles d-block py-1 text-decoration-none overflow-hidden",style:he([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"}])},Gt(n.label),5)],2))}}),Qyt=ot(Xyt,[["__scopeId","data-v-9d9afc02"]]),Zyt={tooltip:"Text style",settingLabels:{title:"Title",heading:"Heading",subHeading:"Subheading",largeText:"Large text",normalText:"Text",descriptionText:"Description",link:"Link",button:"Button",custom:"Custom"}},e0t={tooltip:"Стиль текста",settingLabels:{title:"Большой заголовок",heading:"Заголовок",subHeading:"Подзаголовок",largeText:"Большой текст",normalText:"Текст",descriptionText:"Описание",link:"Ссылка",button:"Кнопка",custom:"Пользовательский"}},yoe=Xn({en:Zyt,ru:e0t}),t0t={class:"bootstrap-styles dropdown"},n0t={class:"bootstrap-styles rich-text-toolbar__font-style-selector__text"},o0t={class:"bootstrap-styles d-flex justify-content-center align-items-center rich-text-toolbar__icon"},r0t=Xe({__name:"ThemeSettingsSelector",props:{editor:{},theme:{},isAllowToEdit:{type:Boolean},initialThemeName:{},deps:{}},setup(t){const e=t,n=rM.name,o=Vt({isOpened:!1}),r={tooltip:yoe({localeKey:e.deps.localeKey}).tooltip,settingLabels:yoe({localeKey:e.deps.localeKey}).settingLabels},i={Title:r.settingLabels.title,Heading:r.settingLabels.heading,SubHeading:r.settingLabels.subHeading,LargeText:r.settingLabels.largeText,NormalText:r.settingLabels.normalText,DescriptionText:r.settingLabels.descriptionText,Link:r.settingLabels.link,Button:r.settingLabels.button,Custom:r.settingLabels.custom},s=["Title","Heading","SubHeading","LargeText","NormalText","DescriptionText","Link","Button"],a=["TitleColor","HeadingColor","SubHeadingColor","LargeTextColor","NormalTextColor","DescriptionTextColor","LinkColor","ButtonTextColor"],l=q(()=>{const c=e.initialThemeName,d=e.editor.getAttributes("paragraph").themeName||c;let h=s.find(F=>e.editor.getAttributes(n).themeName===F)||d;const{fontWeight:m,fontStyle:f,textDecoration:p,fontSize:g,fontFamily:y,lineHeight:b}=e.editor.getAttributes(n);return m||f||p||g||y||b?i.Custom:i[h]}),u=c=>{e.editor.commands.unsetMark(n),e.editor.chain().focus().setThemeSettings(c).run(),o.isOpened=!1};return(c,d)=>Ot((O(),J("div",t0t,[_("button",{id:"dropdownMenuButtonFontStyleList",class:$e(["bootstrap-styles rich-text-toolbar__font-style-selector d-flex justify-content-between align-items-center py-1 px-3 text-nowrap border rounded-2",{disabled:!e.isAllowToEdit,show:o.isOpened}]),type:"button",onClick:d[0]||(d[0]=()=>o.isOpened=!o.isOpened)},[_("span",n0t,Gt(l.value),1),_("i",o0t,[ie(_xe)])],2),_("ul",{class:$e([{show:o.isOpened},"bootstrap-styles rich-text-toolbar__font-style-dropdown dropdown-menu rounded-2"]),"aria-labelledby":"dropdownMenuButtonFontStyleList"},[(O(),J(rt,null,$n(s,(h,m)=>ie(Qyt,{key:h,isActive:e.editor.getAttributes(z(n)).themeName===h,label:i[h],themeFontStyle:e.theme.FontSettingsPresets[h],themeFontColor:e.theme.Colors[a[m]],onClick:()=>u(h)},null,8,["isActive","label","themeFontStyle","themeFontColor","onClick"])),64))],2)])),[[z(Gm),()=>o.isOpened=!1],[z($o),{title:r.tooltip,placement:"top"}]])}}),i0t=ot(r0t,[["__scopeId","data-v-088df711"]]),s0t={},a0t={xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"};function l0t(t,e){return O(),J("svg",a0t,[...e[0]||(e[0]=[_("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 u0t=ot(s0t,[["render",l0t]]),c0t={tooltip:"Line height"},d0t={tooltip:"Высота строки"},h0t=Xn({en:c0t,ru:d0t}),m0t=t=>{const{FontFamily:e,FontSettingsPresets:n,Colors:o}=t.theme,r=!!t.editor.getAttributes("textStyle").lineHeight,i=t.editor.getAttributes("paragraph").themeName||"NormalText",s=t.editor.getAttributes("textStyle").themeName||i;return r?parseInt(t.editor.getAttributes("textStyle").lineHeight,10):ls({fontFamily:e,themeFontSettings:n[s],themeColor:yM({themeName:s,themeFontColors:o})}).lineHeight},f0t={class:"bootstrap-styles rich-text-toolbar__line-height-editor position-relative rounded-2 py-1 px-3 d-flex"},p0t={class:"bootstrap-styles d-flex justify-content-center rich-text-icon me-14"},g0t=["value"],C0t={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"}},y0t={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"}},b0t=Xe({__name:"LineHeightEditor",props:{editor:{},theme:{},deps:{}},setup(t){const e=t,n={tooltip:h0t({localeKey:e.deps.localeKey}).tooltip},o=q(()=>m0t({editor:e.editor,theme:e.theme})),r=()=>{o.value&&e.editor.commands.setLineHeight(o.value+1)},i=()=>{o.value&&o.value!==1&&e.editor.commands.setLineHeight(o.value-1)},s=a=>{const l=a.target;let 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)=>Ot((O(),J("div",f0t,[_("i",p0t,[ie(u0t)]),_("input",{type:"number",class:"bootstrap-styles rich-text-toolbar__input-number rich-text__handler",value:o.value,onInput:s},null,40,g0t),_("div",C0t,[_("input",{type:"button",class:"bootstrap-styles position-absolute rich-text__handler",onClick:r}),ie(Rxe)]),_("div",y0t,[_("input",{type:"button",class:"bootstrap-styles position-absolute rich-text__handler",onClick:i}),ie(Dxe)])])),[[z($o),{title:n.tooltip,placement:"top"}]])}}),v0t=ot(b0t,[["__scopeId","data-v-4e76ed1b"]]),T0t=["http:","https:","mailto:","tel:"],x0t={mounted(t,e){t.addEventListener("input",()=>{const n=t.value;let o=!1;try{const r=new URL(n);o=T0t.includes(r.protocol)}catch{o=!1}typeof e.value=="function"&&e.value(o)})}},Axe={mounted(t,e){boe(t,e)},updated(t,e){e.value&&boe(t,e)}},boe=(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)}})},F0t={},S0t={xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 14 14",fill:"none"};function w0t(t,e){return O(),J("svg",S0t,[...e[0]||(e[0]=[_("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 Nxe=ot(F0t,[["render",w0t]]),k0t={label:"Link",inputPlaceholder:"https://example.com",errorNotification:"The link must contain https://, http://, mailto:, tel:",applyButton:"Save",cancelButton:"Cancel"},E0t={label:"Ссылка",inputPlaceholder:"https://example.com",errorNotification:"Ссылка должна содержать https://, http://, mailto:, tel:",applyButton:"Сохранить",cancelButton:"Отмена"},w1=Xn({en:k0t,ru:E0t}),_0t={},R0t={width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function D0t(t,e){return O(),J("svg",R0t,[...e[0]||(e[0]=[_("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 Bxe=ot(_0t,[["render",D0t]]),A0t={class:"bootstrap-styles bg-white border rounded-2 add-text-link-modal-window"},N0t={class:"bootstrap-styles fw-bold mb-5 px-11 mt-10 d-block text-start"},B0t={class:"bootstrap-styles px-11 mb-2"},L0t={class:"bootstrap-styles d-flex justify-content-center align-items-center me-1"},$0t=["placeholder","value"],V0t={class:"bootstrap-styles px-11 py-5 d-flex align-items-center justify-content-end border-top"},M0t=["disabled"],O0t=Xe({__name:"AddLinkModalWindow",props:{isActive:{type:Boolean},currentHref:{},deps:{}},emits:["onClosed","onHrefChanged","onRemoved"],setup(t,{emit:e}){const n=t,o=Vt({href:n.currentHref,isValid:!0}),r=a=>{o.href=a,o.isValid=a.length>0},i={label:w1({localeKey:n.deps.localeKey}).label,inputPlaceholder:w1({localeKey:n.deps.localeKey}).inputPlaceholder,errorNotification:w1({localeKey:n.deps.localeKey}).errorNotification,applyButton:w1({localeKey:n.deps.localeKey}).applyButton,cancelButton:w1({localeKey:n.deps.localeKey}).cancelButton},s=e;return(a,l)=>Ot((O(),J("div",A0t,[_("label",N0t,Gt(i.label),1),_("div",B0t,[_("div",{class:$e(["bootstrap-styles bg-color-input border rounded-2 py-1 px-3 d-flex mb-14",{"border-danger":!o.isValid}])},[_("i",L0t,[ie(Nxe)]),Ot(_("input",{type:"text",class:"bootstrap-styles w-100",placeholder:i.inputPlaceholder,value:o.href,onInput:l[0]||(l[0]=u=>r(u.target.value))},null,40,$0t),[[z(x0t),u=>o.isValid=u],[z(Axe),void 0,void 0,{selectAll:!0}]])],2),_("div",{class:$e(["bootstrap-styles text-start add-link-modal-window-notification",{invisible:o.isValid}])},Gt(i.errorNotification),3)]),_("div",V0t,[n.isActive?(O(),J("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:l[1]||(l[1]=Wo(()=>s("onRemoved"),["stop"]))},[_("i",null,[ie(Bxe)])])):Ue("",!0),_("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:l[2]||(l[2]=()=>s("onClosed"))},Gt(i.cancelButton),1),_("button",{class:"bootstrap-styles d-flex justify-content-center align-center py-1 px-3 border rounded-2 bg-color-selected text-white cursor-pointer",disabled:!o.href.length||!o.isValid,onClick:l[3]||(l[3]=()=>s("onHrefChanged",o.href))},Gt(i.applyButton),9,M0t)])])),[[z(Gm),()=>s("onClosed")]])}}),I0t=ot(O0t,[["__scopeId","data-v-dd4e68e8"]]),P0t={};function W0t(t,e){return O(),J(rt,null,[e[0]||(e[0]=_("svg",{class:"unlinked",xmlns:"http://www.w3.org/2000/svg",width:"17",height:"16",viewBox:"0 0 17 16",fill:"none"},[_("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]=_("svg",{class:"linked",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},[_("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 H0t=ot(P0t,[["render",W0t],["__scopeId","data-v-730bc16f"]]),z0t={tooltip:"Link"},j0t={tooltip:"Ссылка"},U0t=Xn({en:z0t,ru:j0t}),K0t={class:"bootstrap-styles d-flex rich-text-icon icon-hover"},q0t=Xe({__name:"LinkEditor",props:{editor:{},isAllowToEdit:{type:Boolean},deps:{}},setup(t){const e=t,n={tooltip:U0t({localeKey:e.deps.localeKey}).tooltip},o=R8.name,r=cU.name,i=Vt({isAddTextLinkModalWindowShown:!1}),s=q(()=>e.editor.isActive(r)),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)=>(O(),J(rt,null,[Ot((O(),J("button",{class:$e(["bootstrap-styles p-1 rounded rich-text-button",{active:e.editor.isActive(z(o)),disabled:!e.editor.isActive(z(o))&&!e.isAllowToEdit}]),onClick:c[0]||(c[0]=d=>{i.isAddTextLinkModalWindowShown=!i.isAddTextLinkModalWindowShown})},[_("i",K0t,[e.editor.isActive(z(o))?(O(),Ze(H0t,{key:1})):(O(),Ze(Nxe,{key:0}))])],2)),[[z($o),{title:n.tooltip,placement:"top"}]]),i.isAddTextLinkModalWindowShown?(O(),Ze(I0t,{key:0,isActive:e.editor.isActive(z(o)),currentHref:e.editor.isActive(z(o))?e.editor.getAttributes(z(o)).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"])):Ue("",!0)],64))}}),J0t=ot(q0t,[["__scopeId","data-v-6460a995"]]),G0t={label:"URL",placeholder:"URL...",cancel:"Cancel",apply:"Save",removeTooltip:"Delete image"},Y0t={label:"URL",placeholder:"URL...",cancel:"Отмена",apply:"Сохранить",removeTooltip:"Удалить изображение"},k1=Xn({en:G0t,ru:Y0t}),X0t={class:"bootstrap-styles bg-white border rounded-2 add-image-src-modal-window"},Q0t={class:"bootstrap-styles fw-bold mb-5 px-11 mt-10 d-block text-start"},Z0t={class:"bootstrap-styles px-11 mb-11"},ebt=["placeholder","value"],tbt={class:"bootstrap-styles px-11 py-5 d-flex align-items-center justify-content-end border-top"},nbt=["disabled"],obt=Xe({__name:"AddImageSrcModalWindow",props:{isActive:{type:Boolean},src:{},width:{},height:{},isRetina:{type:Boolean},deps:{}},emits:["onClosed","onRemoved","onImageSrcChanged"],setup(t,{emit:e}){const n=t,o=Vt({src:n.src,width:n.width,height:n.height,isBroken:!1}),r={label:k1({localeKey:n.deps.localeKey}).label,placeholder:k1({localeKey:n.deps.localeKey}).placeholder,cancel:k1({localeKey:n.deps.localeKey}).cancel,apply:k1({localeKey:n.deps.localeKey}).apply,removeTooltip:k1({localeKey:n.deps.localeKey}).removeTooltip},i=Yye(l=>{Sxe(l).then(u=>{o.width=u.width,o.height=u.height,o.isBroken=!1,o.src=l}).catch(()=>{o.src=l,o.isBroken=!0})},500),s=()=>{a("onImageSrcChanged",{src:o.src,width:o.width,height:o.height,isRetina:!1})},a=e;return(l,u)=>Ot((O(),J("div",X0t,[_("label",Q0t,Gt(r.label),1),_("div",Z0t,[_("div",{class:$e(["bootstrap-styles bg-color-input border rounded-2 py-1 px-3 d-flex",{"border-danger":o.isBroken}])},[Ot(_("input",{type:"text",class:"bootstrap-styles w-100",placeholder:r.placeholder,value:o.src,onInput:u[0]||(u[0]=c=>z(i)(c.target.value))},null,40,ebt),[[z(Axe),void 0,void 0,{selectAll:!0}]])],2)]),_("div",tbt,[n.isActive?Ot((O(),J("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]=Wo(()=>a("onRemoved"),["stop"]))},[_("i",null,[ie(Bxe)])])),[[z($o),{placement:"top",title:r.removeTooltip}]]):Ue("",!0),_("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]=Wo(()=>a("onClosed"),["stop"]))},Gt(r.cancel),1),_("button",{class:"bootstrap-styles d-flex justify-content-center align-center py-1 px-3 border rounded-2 bg-color-selected text-white cursor-pointer",disabled:!o.src.length||o.isBroken,onClick:u[3]||(u[3]=Wo(()=>s(),["stop"]))},Gt(r.apply),9,nbt)])])),[[z(Gm),()=>a("onClosed")]])}}),rbt=ot(obt,[["__scopeId","data-v-35966ae0"]]),ibt={},sbt={width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function abt(t,e){return O(),J("svg",sbt,[...e[0]||(e[0]=[_("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 lbt=ot(ibt,[["render",abt]]),ubt={tooltip:"Image",retinaLabel:"For retina screens"},cbt={tooltip:"Изображение",retinaLabel:"Для retina-экранов"},voe=Xn({en:ubt,ru:cbt}),dbt=["checked"],hbt=Xe({__name:"Checkbox",props:{checked:{type:Boolean}},emits:["change"],setup(t,{emit:e}){const n=t,o=e;return(r,i)=>(O(),J("input",{class:"bootstrap-styles me-1 cursor-pointer",checked:n.checked,type:"checkbox","aria-label":"Checkbox for following text input",onChange:i[0]||(i[0]=s=>o("change"))},null,40,dbt))}}),mbt=ot(hbt,[["__scopeId","data-v-6a8c2252"]]),fbt={class:"bootstrap-styles rich-text-icon icon-hover d-flex"},pbt={key:0,class:"bootstrap-styles d-flex align-items-center ms-14 me-1"},gbt={for:"rich-text__retina-checkbox",class:"bootstrap-styles label__checkbox-input text-nowrap"},Cbt=Xe({__name:"ImageEditor",props:{editor:{},deps:{}},setup(t){const e=t,n={tooltip:voe({localeKey:e.deps.localeKey}).tooltip,retinaLabel:voe({localeKey:e.deps.localeKey}).retinaLabel},o=wxe.name,r=Vt({isAddImageSrcModalWindowShown:!1}),i=async()=>{const l=e.editor.view.state.selection.anchor,{src:u,width:c,height:d,isRetina:h}=e.editor.getAttributes(o);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(o)?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(),r.isAddImageSrcModalWindowShown=!1},a=()=>{e.editor.commands.deleteSelection(),r.isAddImageSrcModalWindowShown=!1};return(l,u)=>(O(),J(rt,null,[Ot((O(),J("button",{class:$e(["bootstrap-styles p-1 rounded rich-text-button__image",{active:e.editor.isActive(z(o))}]),onClick:u[0]||(u[0]=c=>r.isAddImageSrcModalWindowShown=!r.isAddImageSrcModalWindowShown)},[_("i",fbt,[ie(lbt)])],2)),[[z($o),{title:n.tooltip,placement:"top"}]]),e.editor.isActive(z(o))?(O(),J("div",pbt,[ie(mbt,{id:"rich-text__retina-checkbox",checked:e.editor.isActive(z(o),{isRetina:!0}),onChange:u[1]||(u[1]=()=>i())},null,8,["checked"]),_("label",gbt,Gt(n.retinaLabel),1)])):Ue("",!0),r.isAddImageSrcModalWindowShown?(O(),Ze(rbt,{key:1,isActive:e.editor.isActive(z(o)),src:e.editor.getAttributes(z(o)).src?e.editor.getAttributes(z(o)).src:"",width:e.editor.getAttributes(z(o)).width?e.editor.getAttributes(z(o)).width:0,height:e.editor.getAttributes(z(o)).height?e.editor.getAttributes(z(o)).height:0,isRetina:e.editor.getAttributes(z(o)).isRetina?e.editor.getAttributes(z(o)).isRetina:!1,deps:e.deps.addImageSrcModalWindowDeps,onOnRemoved:u[2]||(u[2]=()=>a()),onOnClosed:u[3]||(u[3]=c=>r.isAddImageSrcModalWindowShown=!1),onOnImageSrcChanged:u[4]||(u[4]=c=>s({src:c.src,width:c.width,height:c.height}))},null,8,["isActive","src","width","height","isRetina","deps"])):Ue("",!0)],64))}}),ybt=ot(Cbt,[["__scopeId","data-v-cf315655"]]),bbt={},vbt={xmlns:"http://www.w3.org/2000/svg",width:"17",height:"16",viewBox:"0 0 17 16",fill:"none"};function Tbt(t,e){return O(),J("svg",vbt,[...e[0]||(e[0]=[_("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 xbt=ot(bbt,[["render",Tbt]]),Fbt={tooltip:"Bold"},Sbt={tooltip:"Полужирный"},wbt=Xn({en:Fbt,ru:Sbt}),kbt={class:"bootstrap-styles d-flex rich-text-icon icon-hover"},Ebt=Xe({__name:"FontWeightEditor",props:{editor:{},theme:{},isAllowToEdit:{type:Boolean},deps:{}},setup(t){const e=t,n={tooltip:wbt({localeKey:e.deps.localeKey}).tooltip},o=q(()=>Hw({editor:e.editor,theme:e.theme,styleName:"fontWeight"})==="bold"),r=()=>{o.value?e.editor.chain().focus().unsetFontWeight().run():e.editor.chain().focus().setFontWeight("bold").run(),e.editor.commands.focus()};return(i,s)=>Ot((O(),J("button",{class:$e(["bootstrap-styles p-1 rounded rich-text-button",{active:o.value,disabled:!e.isAllowToEdit&&!o.value}]),onClick:s[0]||(s[0]=()=>r())},[_("i",kbt,[ie(xbt)])],2)),[[z($o),{title:n.tooltip,placement:"top"}]])}}),_bt=ot(Ebt,[["__scopeId","data-v-0e22dbf6"]]),Rbt={},Dbt={xmlns:"http://www.w3.org/2000/svg",width:"17",height:"16",viewBox:"0 0 17 16",fill:"none"};function Abt(t,e){return O(),J("svg",Dbt,[...e[0]||(e[0]=[_("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 Nbt=ot(Rbt,[["render",Abt]]),Bbt={tooltip:"Strikethrough"},Lbt={tooltip:"Зачеркнутый"},$bt=Xn({en:Bbt,ru:Lbt}),Vbt={class:"bootstrap-styles d-flex rich-text-icon icon-hover"},Mbt=Xe({__name:"LineThroughEditor",props:{editor:{},isAllowToEdit:{type:Boolean},theme:{},deps:{}},setup(t){const e=t,n={tooltip:$bt({localeKey:e.deps.localeKey}).tooltip},o=q(()=>Hw({editor:e.editor,theme:e.theme,styleName:"textDecoration"})==="line-through"),r=()=>{o.value?e.editor.chain().focus().unsetTextDecoration().run():e.editor.chain().focus().setTextDecoration("line-through").run(),e.editor.commands.focus()};return(i,s)=>Ot((O(),J("button",{class:$e(["bootstrap-styles p-1 rounded rich-text-button",{active:o.value,disabled:!t.isAllowToEdit&&!o.value}]),onClick:s[0]||(s[0]=a=>r())},[_("i",Vbt,[ie(Nbt)])],2)),[[z($o),{title:n.tooltip,placement:"top"}]])}}),Obt=ot(Mbt,[["__scopeId","data-v-fffc32ef"]]),Ibt={},Pbt={xmlns:"http://www.w3.org/2000/svg",width:"17",height:"16",viewBox:"0 0 17 16",fill:"none"};function Wbt(t,e){return O(),J("svg",Pbt,[...e[0]||(e[0]=[_("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 Hbt=ot(Ibt,[["render",Wbt]]),zbt={tooltip:"Underline"},jbt={tooltip:"Подчеркнутый"},Ubt=Xn({en:zbt,ru:jbt}),Kbt={class:"bootstrap-styles d-flex rich-text-icon icon-hover"},qbt=Xe({__name:"UnderlineEditor",props:{editor:{},isAllowToEdit:{type:Boolean},theme:{},deps:{}},setup(t){const e=t,n={tooltip:Ubt({localeKey:e.deps.localeKey}).tooltip},o=q(()=>Hw({editor:e.editor,theme:e.theme,styleName:"textDecoration"})==="underline"),r=()=>{o.value?e.editor.chain().focus().unsetTextDecoration().run():e.editor.chain().focus().setTextDecoration("underline").run()};return(i,s)=>Ot((O(),J("button",{class:$e(["bootstrap-styles p-1 rounded rich-text-button",{active:o.value,disabled:!t.isAllowToEdit&&!o.value}]),onClick:s[0]||(s[0]=()=>r())},[_("i",Kbt,[ie(Hbt)])],2)),[[z($o),{title:n.tooltip,placement:"top"}]])}}),Jbt=ot(qbt,[["__scopeId","data-v-ae63be68"]]),Gbt={},Ybt={xmlns:"http://www.w3.org/2000/svg",width:"17",height:"16",viewBox:"0 0 17 16",fill:"none"};function Xbt(t,e){return O(),J("svg",Ybt,[...e[0]||(e[0]=[_("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 Qbt=ot(Gbt,[["render",Xbt]]),Zbt={tooltip:"Italic"},evt={tooltip:"Курсив"},tvt=Xn({en:Zbt,ru:evt}),nvt={class:"bootstrap-styles d-flex rich-text-icon icon-hover"},ovt=Xe({__name:"FontStyleEditor",props:{editor:{},isAllowToEdit:{type:Boolean},theme:{},deps:{}},setup(t){const e=t,n={tooltip:tvt({localeKey:e.deps.localeKey}).tooltip},o=q(()=>Hw({editor:e.editor,theme:e.theme,styleName:"fontStyle"})==="italic"),r=()=>{o.value?e.editor.chain().focus().unsetFontStyle().run():e.editor.chain().focus().setFontStyle("italic").run(),e.editor.commands.focus()};return(i,s)=>Ot((O(),J("button",{class:$e(["bootstrap-styles p-1 rounded rich-text-button",{active:o.value,disabled:!t.isAllowToEdit&&!o.value}]),onClick:s[0]||(s[0]=()=>r())},[_("i",nvt,[ie(Qbt)])],2)),[[z($o),{title:n.tooltip,placement:"top"}]])}}),rvt=ot(ovt,[["__scopeId","data-v-ac6b2276"]]),ivt={},svt={width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function avt(t,e){return O(),J("svg",svt,[...e[0]||(e[0]=[_("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 lvt=ot(ivt,[["render",avt]]),uvt={tooltip:"Uppercase"},cvt={tooltip:"Заглавные"},dvt=Xn({en:uvt,ru:cvt}),hvt={class:"bootstrap-styles d-flex rich-text-icon icon-hover"},mvt=Xe({__name:"TextTransformEditor",props:{editor:{},isAllowToEdit:{type:Boolean},theme:{},deps:{}},setup(t){const e=t,n={tooltip:dvt({localeKey:e.deps.localeKey}).tooltip},o=bxe.name,r=q(()=>e.editor.isActive({[o]:"uppercase"})),i=()=>{r.value?e.editor.commands.unsetTextTransform():e.editor.commands.setTextTransform("uppercase"),e.editor.commands.focus()};return(s,a)=>Ot((O(),J("button",{class:$e(["bootstrap-styles p-1 rounded rich-text-button",{active:e.editor.isActive({[z(o)]:"uppercase"}),disabled:!t.isAllowToEdit&&!e.editor.isActive({[z(o)]:"uppercase"})}]),onClick:a[0]||(a[0]=l=>i())},[_("i",hvt,[ie(lvt)])],2)),[[z($o),{title:n.tooltip,placement:"top"}]])}}),fvt=ot(mvt,[["__scopeId","data-v-20dea8b8"]]),pvt={},gvt={width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Cvt(t,e){return O(),J("svg",gvt,[...e[0]||(e[0]=[_("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),_("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 yvt=ot(pvt,[["render",Cvt]]),bvt={tooltip:"Unsubscribe link"},vvt={tooltip:"Ссылка на отписку"},Tvt=Xn({en:bvt,ru:vvt}),xvt={class:"bootstrap-styles d-flex rich-text-icon icon-hover"},Fvt=Xe({__name:"UnsubscribeLinkEditor",props:{editor:{},isAllowToEdit:{type:Boolean},theme:{},deps:{}},setup(t){const e=t,n={tooltip:Tvt({localeKey:e.deps.localeKey}).tooltip},o=cU.name,r=R8.name,i=q(()=>e.editor.isActive(r)),s=()=>{i.value&&e.editor.commands.unsetLink(),e.editor.isActive(o)?e.editor.chain().unsetUnsubscribeLink().applySiblingNodeThemeSettings().run():e.editor.chain().setUnsubscribeLink().setThemeSettings("Link").run()};return(a,l)=>Ot((O(),J("button",{class:$e(["bootstrap-styles p-1 rounded rich-text-button",{active:e.editor.isActive(z(o)),disabled:!e.editor.isActive(z(o))&&!e.isAllowToEdit}]),onClick:l[0]||(l[0]=()=>s())},[_("i",xvt,[ie(yvt)])],2)),[[z($o),{title:n.tooltip,placement:"top"}]])}}),Svt=ot(Fvt,[["__scopeId","data-v-9ee287d3"]]),wvt={},kvt={xmlns:"http://www.w3.org/2000/svg",width:"17",height:"16",viewBox:"0 0 17 16",fill:"none"};function Evt(t,e){return O(),J("svg",kvt,[...e[0]||(e[0]=[_("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 _vt=ot(wvt,[["render",Evt]]),Rvt={tooltip:"Bullet list"},Dvt={tooltip:"Маркированный список"},Avt=Xn({en:Rvt,ru:Dvt}),Nvt={class:"bootstrap-styles d-flex rich-text-icon icon-hover"},Bvt=Xe({__name:"BulletListEditor",props:{editor:{},deps:{}},setup(t){const e=t,n={tooltip:Avt({localeKey:e.deps.localeKey}).tooltip},o=D8.name,r=()=>{e.editor.chain().focus().toggleBulletList().run()};return(i,s)=>Ot((O(),J("button",{class:$e(["bootstrap-styles p-1 rounded rich-text-button",{active:e.editor.isActive(z(o))}]),onClick:s[0]||(s[0]=()=>r())},[_("i",Nvt,[ie(_vt)])],2)),[[z($o),{title:n.tooltip,placement:"top"}]])}}),Lvt=ot(Bvt,[["__scopeId","data-v-c64632e3"]]),$vt={},Vvt={xmlns:"http://www.w3.org/2000/svg",width:"17",height:"16",viewBox:"0 0 17 16",fill:"none"};function Mvt(t,e){return O(),J("svg",Vvt,[...e[0]||(e[0]=[_("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 Ovt=ot($vt,[["render",Mvt]]),Ivt={tooltip:"Ordered list"},Pvt={tooltip:"Нумерованный список"},Wvt=Xn({en:Ivt,ru:Pvt}),Hvt={class:"bootstrap-styles d-flex rich-text-icon icon-hover"},zvt=Xe({__name:"OrderedListEditor",props:{editor:{},deps:{}},setup(t){const e=t,n={tooltip:Wvt({localeKey:e.deps.localeKey}).tooltip},o=N8.name,r=()=>{e.editor.chain().focus().toggleOrderedList().run()};return(i,s)=>Ot((O(),J("button",{class:$e(["bootstrap-styles p-1 rounded rich-text-button",{active:e.editor.isActive(z(o))}]),onClick:s[0]||(s[0]=()=>r())},[_("i",Hvt,[ie(Ovt)])],2)),[[z($o),{title:n.tooltip,placement:"top"}]])}}),jvt=ot(zvt,[["__scopeId","data-v-aaa43948"]]),Uvt={},Kvt={width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function qvt(t,e){return O(),J("svg",Kvt,[...e[0]||(e[0]=[_("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 Toe=ot(Uvt,[["render",qvt]]),Jvt={},Gvt={width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Yvt(t,e){return O(),J("svg",Gvt,[...e[0]||(e[0]=[_("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),_("path",{d:"M14 2.6665H2V3.99984H14V2.6665Z",fill:"var(--black)"},null,-1)])])}const xoe=ot(Jvt,[["render",Yvt]]),Xvt={},Qvt={width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Zvt(t,e){return O(),J("svg",Qvt,[...e[0]||(e[0]=[_("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 Foe=ot(Xvt,[["render",Zvt]]),e1t={},t1t={width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function n1t(t,e){return O(),J("svg",t1t,[...e[0]||(e[0]=[_("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 Soe=ot(e1t,[["render",n1t]]),o1t={tooltip:"Vertical image alignment"},r1t={tooltip:"Выравнивание картинок по вертикали"},i1t=Xn({en:o1t,ru:r1t}),s1t={class:"bootstrap-styles vertical-align-editor dropdown rounded"},a1t={class:"bootstrap-styles rich-text-icon icon-hover d-flex justify-content-center align-items-center"},l1t={class:"bootstrap-styles rich-text-icon icon-hover d-flex justify-content-center align-items-center"},u1t={class:"bootstrap-styles rich-text-icon icon-hover d-flex justify-content-center align-items-center"},c1t={class:"bootstrap-styles rich-text-icon icon-hover d-flex justify-content-center align-items-center"},d1t={class:"bootstrap-styles rich-text-icon icon-hover d-flex justify-content-center align-items-center"},h1t=Xe({__name:"VerticalAlignEditor",props:{editor:{},currentVerticalAlign:{},deps:{}},emits:["onVerticalAlignVariantChanged"],setup(t,{emit:e}){const n=t,o={tooltip:i1t({localeKey:n.deps.localeKey}).tooltip},r=Vt({isOpened:!1}),i=a=>{s("onVerticalAlignVariantChanged",a),r.isOpened=!1},s=e;return(a,l)=>Ot((O(),J("div",s1t,[_("button",{id:"richTextDropdownVerticalAlign",class:$e(["bootstrap-styles p-1 rounded rich-text-button",{show:r.isOpened}]),type:"button",onClick:l[0]||(l[0]=u=>r.isOpened=!r.isOpened)},[_("i",a1t,[n.currentVerticalAlign==="Baseline"?(O(),Ze(Soe,{key:0})):Ue("",!0),n.currentVerticalAlign==="Top"?(O(),Ze(Toe,{key:1})):Ue("",!0),n.currentVerticalAlign==="Middle"?(O(),Ze(xoe,{key:2})):Ue("",!0),n.currentVerticalAlign==="Bottom"?(O(),Ze(Foe,{key:3})):Ue("",!0)])],2),_("div",{class:$e([{show:r.isOpened},"bootstrap-styles vertical-align-dropdown bg-white p-1"]),"aria-labelledby":"richTextDropdownVerticalAlign"},[_("button",{class:$e(["bootstrap-styles p-1 rounded rich-text-button me-14",{active:n.currentVerticalAlign==="Baseline"}]),onClick:l[1]||(l[1]=()=>i("Baseline"))},[_("i",l1t,[ie(Soe)])],2),_("button",{class:$e(["bootstrap-styles p-1 rounded rich-text-button me-14",{active:n.currentVerticalAlign==="Top"}]),onClick:l[2]||(l[2]=()=>i("Top"))},[_("i",u1t,[ie(Toe)])],2),_("button",{class:$e(["bootstrap-styles p-1 rounded rich-text-button me-14",{active:n.currentVerticalAlign==="Middle"}]),onClick:l[3]||(l[3]=()=>i("Middle"))},[_("i",c1t,[ie(xoe)])],2),_("button",{class:$e(["bootstrap-styles p-1 rounded rich-text-button",{active:n.currentVerticalAlign==="Bottom"}]),onClick:l[4]||(l[4]=()=>i("Bottom"))},[_("i",d1t,[ie(Foe)])],2)],2)])),[[z(Gm),()=>r.isOpened=!1],[z($o),{title:o.tooltip,placement:"top"}]])}}),m1t=ot(h1t,[["__scopeId","data-v-4a636ae8"]]),f1t={},p1t={xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"};function g1t(t,e){return O(),J("svg",p1t,[...e[0]||(e[0]=[_("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 woe=ot(f1t,[["render",g1t]]),C1t={},y1t={xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"};function b1t(t,e){return O(),J("svg",y1t,[...e[0]||(e[0]=[_("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 koe=ot(C1t,[["render",b1t]]),v1t={},T1t={xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"};function x1t(t,e){return O(),J("svg",T1t,[...e[0]||(e[0]=[_("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 Eoe=ot(v1t,[["render",x1t]]),F1t={tooltip:"Alignment"},S1t={tooltip:"Выравнивание"},w1t=Xn({en:F1t,ru:S1t}),k1t={class:"bootstrap-styles content-align-editor dropdown rounded"},E1t={class:"bootstrap-styles rich-text-icon icon-hover d-flex justify-content-center align-items-center"},_1t={class:"bootstrap-styles rich-text-icon icon-hover d-flex justify-content-center align-items-center"},R1t={class:"bootstrap-styles rich-text-icon icon-hover d-flex justify-content-center align-items-center"},D1t={class:"bootstrap-styles rich-text-icon icon-hover d-flex justify-content-center align-items-center"},A1t=Xe({__name:"ContentAlignEditor",props:{editor:{},currentContentAlign:{},deps:{}},emits:["onContentAlignVariantChanged"],setup(t,{emit:e}){const n=t,o={tooltip:w1t({localeKey:n.deps.localeKey}).tooltip},r=Vt({isOpened:!1}),i=a=>{s("onContentAlignVariantChanged",a),r.isOpened=!1},s=e;return(a,l)=>Ot((O(),J("div",k1t,[_("button",{id:"richTextDropdownContentAlign",class:$e(["bootstrap-styles p-1 rounded rich-text-button",{show:r.isOpened}]),type:"button",onClick:l[0]||(l[0]=u=>r.isOpened=!r.isOpened)},[_("i",E1t,[n.currentContentAlign==="Left"?(O(),Ze(woe,{key:0})):Ue("",!0),n.currentContentAlign==="Center"?(O(),Ze(koe,{key:1})):Ue("",!0),n.currentContentAlign==="Right"?(O(),Ze(Eoe,{key:2})):Ue("",!0)])],2),_("div",{class:$e([{show:r.isOpened},"bootstrap-styles content-align-dropdown bg-white p-1"]),"aria-labelledby":"richTextDropdownContentAlign"},[_("button",{class:$e(["bootstrap-styles p-1 rounded rich-text-button me-14",{active:n.currentContentAlign==="Left"}]),onClick:l[1]||(l[1]=()=>i("Left"))},[_("i",_1t,[ie(woe)])],2),_("button",{class:$e(["bootstrap-styles p-1 rounded rich-text-button me-14",{active:n.currentContentAlign==="Center"}]),onClick:l[2]||(l[2]=()=>i("Center"))},[_("i",R1t,[ie(koe)])],2),_("button",{class:$e(["bootstrap-styles p-1 rounded rich-text-button",{active:n.currentContentAlign==="Right"}]),onClick:l[3]||(l[3]=()=>i("Right"))},[_("i",D1t,[ie(Eoe)])],2)],2)])),[[z(Gm),()=>r.isOpened=!1],[z($o),{title:o.tooltip,placement:"top"}]])}}),N1t=ot(A1t,[["__scopeId","data-v-c8a15233"]]),B1t={class:"bootstrap-styles rich-text-toolbar d-flex align-items-center border gap-1 p-1"},L1t={key:2,class:"bootstrap-styles position-relative h-100"},$1t={key:3,class:"bootstrap-styles position-relative h-100"},V1t={key:4,class:"bootstrap-styles d-flex justify-content-center align-items-center"},M1t={key:7,class:"vl"},O1t={key:13,class:"vl"},I1t={key:16,class:"vl"},P1t=Xe({__name:"RichTextToolbar",props:{editor:{},deps:{},element:{},theme:{},initialThemeName:{}},emits:["onVerticalAlignVariantChanged","onContentAlignVariantChanged"],setup(t,{emit:e}){const n=t,o=n.deps.richTextToolbarPlugins,r=q(()=>{const{from:a,to:l}=n.editor.state.selection;return a!==l}),i=q(()=>n.editor.isActive("image")),s=e;return(a,l)=>(O(),J("div",B1t,[i.value?Ue("",!0):(O(),Ze(i0t,{key:0,editor:n.editor,theme:n.theme,isAllowToEdit:r.value,initialThemeName:n.initialThemeName,deps:n.deps.themeSettingsSelectorDeps},null,8,["editor","theme","isAllowToEdit","initialThemeName","deps"])),i.value?Ue("",!0):(O(),Ze(Ryt,{key:1,theme:n.theme,editor:n.editor,isAllowToEdit:r.value,deps:n.deps.fontFamilySelectorDeps},null,8,["theme","editor","isAllowToEdit","deps"])),i.value?Ue("",!0):(O(),J("div",L1t,[ie(Yyt,{editor:n.editor,theme:n.theme,deps:n.deps.fontSizeEditorDeps,class:$e({disabled:!r.value})},null,8,["editor","theme","deps","class"])])),i.value?Ue("",!0):(O(),J("div",$1t,[ie(v0t,{editor:n.editor,theme:n.theme,deps:n.deps.lineHeightEditorDeps,class:$e({disabled:!r.value})},null,8,["editor","theme","deps","class"])])),i.value?Ue("",!0):(O(),J("div",V1t,[ie(Cyt,{editor:n.editor,theme:n.theme,isAllowToEdit:r.value,deps:n.deps.colorPickerDeps},null,8,["editor","theme","isAllowToEdit","deps"])])),i.value?(O(),Ze(m1t,{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"])):Ue("",!0),i.value?Ue("",!0):(O(),Ze(N1t,{key:6,editor:n.editor,currentContentAlign:n.element.ContentAlign,deps:n.deps.contentAlignEditorDeps,class:$e({"bootstrap-styles me-14":i.value}),onOnContentAlignVariantChanged:l[1]||(l[1]=u=>s("onContentAlignVariantChanged",u))},null,8,["editor","currentContentAlign","deps","class"])),i.value?Ue("",!0):(O(),J("div",M1t)),i.value?Ue("",!0):(O(),Ze(_bt,{key:8,editor:n.editor,theme:n.theme,isAllowToEdit:r.value,deps:n.deps.fontWeightEditorDeps},null,8,["editor","theme","isAllowToEdit","deps"])),i.value?Ue("",!0):(O(),Ze(rvt,{key:9,editor:n.editor,theme:n.theme,isAllowToEdit:r.value,deps:n.deps.fontStyleEditorDeps},null,8,["editor","theme","isAllowToEdit","deps"])),i.value?Ue("",!0):(O(),Ze(Obt,{key:10,editor:n.editor,theme:n.theme,isAllowToEdit:r.value,deps:n.deps.lineThroughEditorDeps},null,8,["editor","theme","isAllowToEdit","deps"])),i.value?Ue("",!0):(O(),Ze(Jbt,{key:11,editor:n.editor,theme:n.theme,isAllowToEdit:r.value,deps:n.deps.underlineEditorDeps},null,8,["editor","theme","isAllowToEdit","deps"])),i.value?Ue("",!0):(O(),Ze(fvt,{key:12,editor:n.editor,theme:n.theme,isAllowToEdit:r.value,deps:n.deps.textTransformEditorDeps},null,8,["editor","theme","isAllowToEdit","deps"])),i.value?Ue("",!0):(O(),J("div",O1t)),i.value?Ue("",!0):(O(),Ze(Lvt,{key:14,editor:n.editor,deps:n.deps.bulletListEditorDeps},null,8,["editor","deps"])),i.value?Ue("",!0):(O(),Ze(jvt,{key:15,editor:n.editor,deps:n.deps.orderedListEditorDeps},null,8,["editor","deps"])),i.value?Ue("",!0):(O(),J("div",I1t)),ie(J0t,{editor:n.editor,isAllowToEdit:r.value,deps:n.deps.linkEditorDeps},null,8,["editor","isAllowToEdit","deps"]),ie(Svt,{editor:n.editor,theme:n.theme,isAllowToEdit:r.value,deps:n.deps.unsubscribeLinkEditorDeps},null,8,["editor","theme","isAllowToEdit","deps"]),ie(ybt,{editor:n.editor,deps:n.deps.imageEditorDeps},null,8,["editor","deps"]),(O(!0),J(rt,null,$n(z(o),(u,c)=>(O(),J("span",{key:c,class:"bootstrap-styles d-none"},[(O(),Ze(ID(u),{editor:n.editor},null,8,["editor"]))]))),128))]))}}),W1t=ot(P1t,[["__scopeId","data-v-a50ebd1e"]]),H1t=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 ta(t)}}}),z1t=t=>H1t(t.verticalAlign).Match({whenBaseline:()=>"baseline",whenTop:()=>"top",whenMiddle:()=>"middle",whenBottom:()=>"bottom"}),_oe="NormalText",j1t=Xe({__name:"RichText",props:{deps:{},theme:{},element:{},isSelected:{type:Boolean}},emits:["onRichTextUpdated","onRichTextRemoved","onElementClicked"],setup(t,{emit:e}){Hm(y=>({v23f1e660:n.theme.Colors.PrimaryColor,v70d14324:n.theme.Colors.SecondaryColor,v86efc29a:n.theme.Colors.PrimaryTextColor,bd12407e:n.theme.Colors.SecondaryTextColor,v25ddb634:n.theme.Colors.CardBackgroundColor,v861d4a36:n.theme.Colors.ButtonTextColor,v4b55838a:n.theme.Colors.TitleColor,v6a651340:n.theme.Colors.HeadingColor,v20b920a2:n.theme.Colors.SubHeadingColor,b378654c:n.theme.Colors.LargeTextColor,efdd3e60:n.theme.Colors.NormalTextColor,v48387a79:n.theme.Colors.DescriptionTextColor,v244e47ec:n.theme.Colors.LinkColor,v5e83a710:n.theme.Colors.EmailBackgroundColor,cd4dc93c:n.theme.Colors.BodyColor,v361cd101:f.value}));const n=t,o=Vt({isRemoveComponentWindowShown:!1,isEditing:!1}),r={removeWindowTitle:foe({localeKey:n.deps.localeKey}).removeWindowTitle,removeWindowDescription:foe({localeKey:n.deps.localeKey}).removeWindowDescription},i=pn(null),s=pn(null),{floatingStyles:a}=A0e(s,i,{placement:"top",whileElementsMounted:_0e,middleware:[R0e(10)]}),l=q(()=>{const y=a.value.transform??"translate(0px, 0px)",b=new DOMMatrix(y).m42;return{...a.value,left:"50%",transform:`translate(-50%, ${b}px)`}}),u=gV(),c=q(()=>ls({fontFamily:n.theme.FontFamily,themeFontSettings:n.theme.FontSettingsPresets.NormalText,themeColor:n.theme.Colors.NormalTextColor})),d=q(()=>{const y={...aU(c.value)};return{fontSize:y.fontSize,lineHeight:y.lineHeight,fontFamily:y.fontFamily,fontWeight:y.fontWeight,fontStyle:y.fontStyle,color:y.color}}),h=_at({content:poe(n.element.Text),extensions:[...eyt({dataSourceFieldNameDelegate:n.deps.dataSourceFieldNameDelegate,initialThemeName:_oe,themeColors:n.theme.Colors})],editable:o.isEditing,autofocus:"all",onUpdate:({editor:y})=>{if(!o.isEditing)return;const b=tyt({editor:y});g("onRichTextUpdated",{...n.element,Text:b})}}),m=()=>{h.value&&(h.value.chain().focus().undo().run(),o.isRemoveComponentWindowShown=!1)},f=q(()=>z1t({verticalAlign:n.element.ImageVerticalAlign})),p=()=>[document.querySelector(".rich-text-toolbar"),document.querySelector(".string-expression-builder-modal-window"),document.querySelector(`.rich-text-editor__content-${u}`)];an(()=>n.element.Text,()=>{h.value&&!o.isEditing&&h.value.commands.setContent(poe(n.element.Text))});const g=e;return(y,b)=>Ot((O(),J("span",{ref_key:"richTextElementRef",ref:s,class:$e(["RichText cursor-pointer user-select-none",{selected:n.isSelected}]),style:he([z(wb)({contentAlign:n.element.ContentAlign}),{...d.value,minHeight:n.element.MinHeight+"px"}]),onClick:b[4]||(b[4]=Wo(()=>{g("onElementClicked"),o.isEditing=!0,z(h)&&z(h).setEditable(!0)},["prevent"]))},[ie(z(Eat),{class:$e(["rich-text-editor__content",`rich-text-editor__content-${z(u)}`]),editor:z(h)},null,8,["class","editor"]),z(h)&&o.isEditing?(O(),Ze(W1t,{key:0,ref_key:"richTextToolbarRef",ref:i,editor:z(h),deps:n.deps.richTextToolbarDeps,element:n.element,theme:n.theme,initialThemeName:_oe,style:he(l.value),onOnVerticalAlignVariantChanged:b[0]||(b[0]=F=>g("onRichTextUpdated",{...n.element,ImageVerticalAlign:F})),onOnContentAlignVariantChanged:b[1]||(b[1]=F=>g("onRichTextUpdated",{...n.element,ContentAlign:F}))},null,8,["editor","deps","element","theme","style"])):Ue("",!0),(O(),Ze(m9,{to:"#app"},[o.isRemoveComponentWindowShown?(O(),Ze(gCt,{key:0,deps:n.deps.removeConfirmModalWindowDeps,headerText:r.removeWindowTitle,onCancel:b[2]||(b[2]=()=>m()),onConfirmed:b[3]||(b[3]=()=>{o.isRemoveComponentWindowShown=!1,g("onRichTextRemoved")})},{"body-content":Fu(()=>[X0(Gt(r.removeWindowDescription),1)]),_:1},8,["deps","headerText"])):Ue("",!0)]))],6)),[[z(Gm),{handler:()=>{o.isEditing=!1,z(h)&&z(h).setEditable(!1)},include:p}]])}}),U1t=ot(j1t,[["__scopeId","data-v-ed6b2a5a"]]),K1t=Xe({__name:"UnsubscribeLink",props:{theme:{},element:{}},emits:["onElementClicked"],setup(t,{emit:e}){const n=t,o=q(()=>{const i=lU({fontFamily:n.theme.FontFamily,fontStyle:n.element.Style,themeDefinedFontSettings:n.theme.FontSettingsPresets,themeColors:n.theme.Colors});return{...aU(i)}}),r=e;return(i,s)=>(O(),J("a",{href:"#",class:"cursor-pointer user-select-none",style:he([{margin:"0"},[o.value,z(wb)({contentAlign:n.element.ContentAlign})]]),onClick:s[0]||(s[0]=Wo(()=>r("onElementClicked"),["prevent"]))},Gt(n.element.Text),5))}}),q1t=ot(K1t,[["__scopeId","data-v-68ed9754"]]),J1t=["src","alt"],G1t={class:"bootstrap-styles position-absolute top-0 left-0",width:"100%",style:{"border-spacing":"0","border-collapse":"collapse",width:"100%",height:"100%"}},Y1t={key:0},X1t=["align"],Q1t={style:{width:"auto","border-spacing":"0","border-collapse":"separate"}},Z1t={align:"center",style:{width:"auto"}},eTt={key:0},tTt={key:1},nTt=["align"],oTt={style:{width:"auto","border-spacing":"0","border-collapse":"separate"}},rTt={align:"center",style:{width:"auto"}},iTt={key:2},sTt=["align"],aTt={style:{width:"auto","border-spacing":"0","border-collapse":"separate"}},lTt={align:"center",style:{width:"auto"}},uTt={key:3},cTt=["align"],dTt={style:{width:"auto","border-spacing":"0","border-collapse":"separate"}},hTt={align:"center",style:{width:"auto"}},mTt=Xe({__name:"BackgroundImage",props:{deps:{},theme:{},element:{},context:{type:[String,Number,Boolean,Array,Object]},path:{},selectedElementPath:{}},emits:["onImageOriginalSizeAdjusted","onImageSizeAdjusted","onElementClicked","onElementUpdatedEvent","onElementRemoved","onElementWrapperClicked"],setup(t,{emit:e}){const n=t,o=Vt({src:"",href:"",isLoaded:!1}),r=async s=>n.deps.stringExpressionEvaluator({stringExpression:s,context:n.context});(async()=>(o.src=await r(n.element.Src),o.href=await r(n.element.HRef),o.isLoaded=!0))();const i=e;return(s,a)=>o.isLoaded?(O(),J("table",{key:0,class:"bootstrap-styles position-relative",style:he([{"border-spacing":"0","border-collapse":"separate"},{width:"100%"}]),onClick:a[20]||(a[20]=Wo(()=>i("onElementWrapperClicked"),["prevent"]))},[_("tbody",null,[_("tr",null,[_("td",{align:"center",style:he([{height:n.element.AdjustedHeight+"px",verticalAlign:"top"}])},[Ot(_("img",{src:o.src,alt:o.src,style:{"max-width":"100%"}},null,8,J1t),[[z(CS),({width:l,height:u})=>{i("onImageSizeAdjusted",{Path:n.path,AdjustedHeight:u,AdjustedWidth:l}),o.isLoaded=!0}]]),_("table",G1t,[_("tbody",null,[n.element.TopElementList.List.length>0&&n.element.TopElementList.Direction==="Vertical"?(O(),J("tr",Y1t,[_("td",{valign:"top",align:z(Vc)({containerAlign:n.element.TopElementList.ContentAlign})},[_("table",Q1t,[_("tbody",null,[_("tr",null,[_("td",{style:he({height:n.element.ElementsSpacerSize+"px",fontSize:n.element.ElementsSpacerSize+"px",lineHeight:n.element.ElementsSpacerSize+"px"})},"   ",4)]),(O(!0),J(rt,null,$n(n.element.TopElementList.List,(l,u)=>(O(),J(rt,{key:u},[_("tr",null,[n.element.TopElementList.ContentAlign==="Left"?(O(),J("td",{key:0,style:he({width:n.element.ElementsSpacerSize+"px",fontSize:n.element.ElementsSpacerSize+"px",lineHeight:n.element.ElementsSpacerSize+"px"})},"   ",4)):Ue("",!0),_("td",Z1t,[ie(Fl,{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"?(O(),J("td",{key:1,style:he({width:n.element.ElementsSpacerSize+"px",fontSize:n.element.ElementsSpacerSize+"px",lineHeight:n.element.ElementsSpacerSize+"px"})},"   ",4)):Ue("",!0)]),n.element.TopElementList.List.length-1!==u?(O(),J("tr",eTt,[_("td",{style:he({height:n.element.ElementsSpacerSize+"px",fontSize:n.element.ElementsSpacerSize+"px",lineHeight:n.element.ElementsSpacerSize+"px"})},"   ",4)])):Ue("",!0)],64))),128))])])],8,X1t)])):Ue("",!0),n.element.TopElementList.List.length>0&&n.element.TopElementList.Direction==="Horizontal"?(O(),J("tr",tTt,[_("td",{valign:"top",align:z(Vc)({containerAlign:n.element.TopElementList.ContentAlign})},[_("table",oTt,[_("tbody",null,[_("tr",null,[_("td",{style:he({height:n.element.ElementsSpacerSize+"px",fontSize:n.element.ElementsSpacerSize+"px",lineHeight:n.element.ElementsSpacerSize+"px"})},"   ",4)]),_("tr",null,[(O(!0),J(rt,null,$n(n.element.TopElementList.List,(l,u)=>(O(),J(rt,{key:u},[n.element.TopElementList.ContentAlign==="Left"&&u===0?(O(),J("td",{key:0,style:he({width:n.element.ElementsSpacerSize+"px",fontSize:n.element.ElementsSpacerSize+"px",lineHeight:n.element.ElementsSpacerSize+"px"})},"   ",4)):Ue("",!0),_("td",rTt,[ie(Fl,{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?(O(),J("td",{key:1,style:he({width:n.element.ElementsSpacerSize+"px",fontSize:n.element.ElementsSpacerSize+"px",lineHeight:n.element.ElementsSpacerSize+"px"})},"   ",4)):Ue("",!0),n.element.TopElementList.ContentAlign==="Right"?(O(),J("td",{key:2,style:he({width:n.element.ElementsSpacerSize+"px",fontSize:n.element.ElementsSpacerSize+"px",lineHeight:n.element.ElementsSpacerSize+"px"})},"   ",4)):Ue("",!0),n.element.TopElementList.ContentAlign==="Left"&&n.element.TopElementList.List.length-1!==u?(O(),J("td",{key:3,style:he({width:n.element.ElementsSpacerSize+"px",fontSize:n.element.ElementsSpacerSize+"px",lineHeight:n.element.ElementsSpacerSize+"px"})},"   ",4)):Ue("",!0)],64))),128))])])])],8,nTt)])):Ue("",!0),n.element.BottomElementList.List.length>0&&n.element.BottomElementList.Direction==="Vertical"?(O(),J("tr",iTt,[_("td",{valign:"bottom",align:z(Vc)({containerAlign:n.element.BottomElementList.ContentAlign})},[_("table",aTt,[_("tbody",null,[(O(!0),J(rt,null,$n(n.element.BottomElementList.List,(l,u)=>(O(),J(rt,{key:u},[_("tr",null,[n.element.BottomElementList.ContentAlign==="Left"?(O(),J("td",{key:0,style:he({width:n.element.ElementsSpacerSize+"px",fontSize:n.element.ElementsSpacerSize+"px",lineHeight:n.element.ElementsSpacerSize+"px"})},"   ",4)):Ue("",!0),_("td",lTt,[ie(Fl,{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"?(O(),J("td",{key:1,style:he({width:n.element.ElementsSpacerSize+"px",fontSize:n.element.ElementsSpacerSize+"px",lineHeight:n.element.ElementsSpacerSize+"px"})},"   ",4)):Ue("",!0)]),_("tr",null,[_("td",{style:he({height:n.element.ElementsSpacerSize+"px",fontSize:n.element.ElementsSpacerSize+"px",lineHeight:n.element.ElementsSpacerSize+"px"})},"   ",4)])],64))),128))])])],8,sTt)])):Ue("",!0),n.element.BottomElementList.List.length>0&&n.element.BottomElementList.Direction==="Horizontal"?(O(),J("tr",uTt,[_("td",{valign:"bottom",align:z(Vc)({containerAlign:n.element.BottomElementList.ContentAlign})},[_("table",dTt,[_("tbody",null,[_("tr",null,[(O(!0),J(rt,null,$n(n.element.BottomElementList.List,(l,u)=>(O(),J(rt,{key:u},[n.element.BottomElementList.ContentAlign==="Left"&&u===0?(O(),J("td",{key:0,style:he({width:n.element.ElementsSpacerSize+"px",fontSize:n.element.ElementsSpacerSize+"px",lineHeight:n.element.ElementsSpacerSize+"px"})},"   ",4)):Ue("",!0),_("td",hTt,[ie(Fl,{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?(O(),J("td",{key:1,style:he({width:n.element.ElementsSpacerSize+"px",fontSize:n.element.ElementsSpacerSize+"px",lineHeight:n.element.ElementsSpacerSize+"px"})},"   ",4)):Ue("",!0),n.element.BottomElementList.ContentAlign==="Right"?(O(),J("td",{key:2,style:he({width:n.element.ElementsSpacerSize+"px",fontSize:n.element.ElementsSpacerSize+"px",lineHeight:n.element.ElementsSpacerSize+"px"})},"   ",4)):Ue("",!0),n.element.BottomElementList.ContentAlign==="Left"&&n.element.BottomElementList.List.length-1!==u?(O(),J("td",{key:3,style:he({width:n.element.ElementsSpacerSize+"px",fontSize:n.element.ElementsSpacerSize+"px",lineHeight:n.element.ElementsSpacerSize+"px"})},"   ",4)):Ue("",!0)],64))),128))])])])],8,cTt)])):Ue("",!0)])])],4)])])])):Ue("",!0)}}),Fl=Xe({__name:"Elements",props:{deps:{},theme:{},element:{},path:{},context:{type:[String,Number,Boolean,Array,Object]},selectedElementPath:{}},emits:["onElementClicked","onImageOriginalSizeAdjusted","onImageSizeAdjusted","onElementUpdatedEvent","onElementRemoved"],setup(t,{emit:e}){const n=t,o=e,r=(i,s)=>{o("onElementClicked",{element:i,path:[...n.path,s]})};return(i,s)=>(O(),J("span",{onClick:s[31]||(s[31]=Wo(()=>{},["stop"]))},[n.element.Button!==void 0?(O(),Ze(Ygt,{key:0,deps:n.deps,theme:n.theme,element:n.element.Button,context:n.context,class:$e({"element-selected":z(Nf)(n.selectedElementPath,[...n.path,"Button"])}),onOnElementClicked:s[0]||(s[0]=a=>r(n.element,"Button"))},null,8,["deps","theme","element","context","class"])):Ue("",!0),n.element.HeightContainer!==void 0?(O(),Ze(Egt,{key:1,deps:n.deps,theme:n.theme,element:n.element.HeightContainer,path:[...n.path,"HeightContainer"],selectedElementPath:n.selectedElementPath,context:n.context,onOnImageOriginalSizeAdjusted:s[1]||(s[1]=a=>o("onImageOriginalSizeAdjusted",a)),onOnImageSizeAdjusted:s[2]||(s[2]=a=>o("onImageSizeAdjusted",a)),onOnElementClicked:s[3]||(s[3]=a=>o("onElementClicked",a)),onOnElementRemoved:s[4]||(s[4]=a=>o("onElementRemoved",a)),onOnElementUpdatedEvent:s[5]||(s[5]=a=>o("onElementUpdatedEvent",a))},null,8,["deps","theme","element","path","selectedElementPath","context"])):Ue("",!0),n.element.Image!==void 0?(O(),Ze(Bgt,{key:2,deps:n.deps,theme:n.theme,element:n.element.Image,context:n.context,path:[...n.path,"Image"],class:$e({"element-selected":z(Nf)(n.selectedElementPath,[...n.path,"Image"])}),onOnImageOriginalSizeAdjusted:s[6]||(s[6]=a=>o("onImageOriginalSizeAdjusted",a)),onOnImageSizeAdjusted:s[7]||(s[7]=a=>o("onImageSizeAdjusted",a)),onOnElementClicked:s[8]||(s[8]=a=>r(n.element,"Image"))},null,8,["deps","theme","element","context","path","class"])):Ue("",!0),n.element.Spacer!==void 0?(O(),Ze(Igt,{key:3,element:n.element.Spacer,theme:n.theme,class:$e({"element-selected":z(Nf)(n.selectedElementPath,[...n.path,"Spacer"])}),onOnElementClicked:s[9]||(s[9]=a=>r(n.element,"Spacer"))},null,8,["element","theme","class"])):Ue("",!0),n.element.SpanText!==void 0?(O(),Ze(Zgt,{key:4,deps:n.deps,theme:n.theme,element:n.element.SpanText,context:n.context,class:$e({"element-selected":z(Nf)(n.selectedElementPath,[...n.path,"SpanText"])}),onOnElementClicked:s[10]||(s[10]=a=>r(n.element,"SpanText"))},null,8,["deps","theme","element","context","class"])):Ue("",!0),n.element.RichText!==void 0?(O(),Ze(U1t,{key:5,deps:n.deps.richTextDeps,theme:n.theme,element:n.element.RichText,isSelected:z(Nf)(n.selectedElementPath,[...n.path,"RichText"]),onOnElementClicked:s[11]||(s[11]=a=>r(n.element,"RichText")),onOnRichTextUpdated:s[12]||(s[12]=a=>{o("onElementUpdatedEvent",{path:n.path,element:{RichText:a}})}),onOnRichTextRemoved:s[13]||(s[13]=()=>{o("onElementRemoved",n.path)})},null,8,["deps","theme","element","isSelected"])):Ue("",!0),n.element.OneLineList!==void 0?(O(),Ze(Mgt,{key:6,deps:n.deps,theme:n.theme,element:n.element.OneLineList,path:[...n.path,"OneLineList"],selectedElementPath:n.selectedElementPath,context:n.context,onOnImageOriginalSizeAdjusted:s[14]||(s[14]=a=>o("onImageOriginalSizeAdjusted",a)),onOnImageSizeAdjusted:s[15]||(s[15]=a=>o("onImageSizeAdjusted",a)),onOnElementClicked:s[16]||(s[16]=a=>o("onElementClicked",a)),onOnElementRemoved:s[17]||(s[17]=a=>o("onElementRemoved",a)),onOnElementUpdatedEvent:s[18]||(s[18]=a=>o("onElementUpdatedEvent",a))},null,8,["deps","theme","element","path","selectedElementPath","context"])):Ue("",!0),n.element.If!==void 0?(O(),Ze(Fgt,{key:7,deps:n.deps,theme:n.theme,element:n.element.If,context:n.context,path:[...n.path,"If"],selectedElementPath:n.selectedElementPath,onOnImageOriginalSizeAdjusted:s[19]||(s[19]=a=>o("onImageOriginalSizeAdjusted",a)),onOnImageSizeAdjusted:s[20]||(s[20]=a=>o("onImageSizeAdjusted",a)),onOnElementClicked:s[21]||(s[21]=a=>o("onElementClicked",a)),onOnElementRemoved:s[22]||(s[22]=a=>o("onElementRemoved",a)),onOnElementUpdatedEvent:s[23]||(s[23]=a=>o("onElementUpdatedEvent",a))},null,8,["deps","theme","element","context","path","selectedElementPath"])):Ue("",!0),n.element.UnsubscribeLink!==void 0?(O(),Ze(q1t,{key:8,theme:n.theme,element:n.element.UnsubscribeLink,class:$e({"element-selected":z(Nf)(n.selectedElementPath,[...n.path,"UnsubscribeLink"])}),onOnElementClicked:s[24]||(s[24]=a=>r(n.element,"UnsubscribeLink"))},null,8,["theme","element","class"])):Ue("",!0),n.element.BackgroundImage!==void 0?(O(),Ze(mTt,{key:9,deps:n.deps,theme:n.theme,element:n.element.BackgroundImage,context:n.context,path:[...n.path,"BackgroundImage"],selectedElementPath:n.selectedElementPath,class:$e({"element-selected":z(Nf)(n.selectedElementPath,[...n.path,"BackgroundImage"])}),onOnImageOriginalSizeAdjusted:s[25]||(s[25]=a=>o("onImageOriginalSizeAdjusted",a)),onOnImageSizeAdjusted:s[26]||(s[26]=a=>o("onImageSizeAdjusted",a)),onOnElementClicked:s[27]||(s[27]=a=>o("onElementClicked",a)),onOnElementRemoved:s[28]||(s[28]=a=>o("onElementRemoved",a)),onOnElementUpdatedEvent:s[29]||(s[29]=a=>o("onElementUpdatedEvent",a)),onOnElementWrapperClicked:s[30]||(s[30]=a=>r(n.element,"BackgroundImage"))},null,8,["deps","theme","element","context","path","selectedElementPath","class"])):Ue("",!0)]))}}),fTt=["align"],pTt=Xe({__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}){Hm(i=>({v63736150:r.value}));const n=t,o=e,r=q(()=>n.iteratedColumn.WidthInPercents*n.containerWidth+"px");return(i,s)=>(O(),J("div",{class:"iterated-column",style:he({display:"inline-block",verticalAlign:n.iteratedColumn.VerticalAlign})},[_("table",{style:he([[z(Pw)({borderCollapse:n.iteratedColumn.BorderCollapse})],{width:"100%","border-spacing":"0"}]),width:"100%"},[_("tbody",null,[_("tr",null,[_("td",{align:z(Vc)({containerAlign:n.iteratedColumn.ContainerAlign}),style:he([[z(gd)({border:n.iteratedColumn.Border,themeColors:n.theme.Colors}),{backgroundColor:z(Ll)({color:n.iteratedColumn.BgColor,themeColors:n.theme.Colors})},z(Wu)({borderRadius:n.iteratedColumn.BorderRadius,borderRadiusCard:n.theme.BorderRadiusCard,bodyBorderRadius:n.theme.BorderRadius,borderButtonRadius:n.theme.BorderRadiusButton,borderBannerRadius:n.theme.BorderRadiusBanner})],{"line-height":"normal"}])},[(O(!0),J(rt,null,$n(n.iteratedColumn.Elements,(a,l)=>(O(),Ze(Fl,{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=>o("onElementClicked",u)),onOnImageSizeAdjusted:s[1]||(s[1]=u=>o("onImageSizeAdjusted",u)),onOnImageOriginalSizeAdjusted:s[2]||(s[2]=u=>o("onImageOriginalSizeAdjusted",u)),onOnElementUpdatedEvent:s[3]||(s[3]=u=>o("onElementUpdatedEvent",u)),onOnElementRemoved:s[4]||(s[4]=u=>o("onElementRemoved",u))},null,8,["deps","theme","element","context","path","selectedElementPath"]))),128))],12,fTt)])])],4)],4))}}),gTt=ot(pTt,[["__scopeId","data-v-4bdaa248"]]),CTt=["align"],yTt=Xe({__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}){Hm(i=>({v2fbddeb4:r.value}));const n=t,o=e,r=q(()=>n.iteratedColumnN21.WidthInPercents*n.containerWidth+"px");return(i,s)=>(O(),J("div",{class:"iterated-column__N-2-1",style:he({display:"inline-block",verticalAlign:n.iteratedColumnN21.VerticalAlign})},[_("table",{style:he([[z(Pw)({borderCollapse:n.iteratedColumnN21.BorderCollapse})],{width:"100%","border-spacing":"0"}]),width:"100%"},[_("tbody",null,[_("tr",null,[_("td",{align:z(Vc)({containerAlign:n.iteratedColumnN21.ContainerAlign}),style:he([[z(gd)({border:n.iteratedColumnN21.Border,themeColors:n.theme.Colors}),{backgroundColor:z(Ll)({color:n.iteratedColumnN21.BgColor,themeColors:n.theme.Colors})},z(Wu)({borderRadius:n.iteratedColumnN21.BorderRadius,borderRadiusCard:n.theme.BorderRadiusCard,bodyBorderRadius:n.theme.BorderRadius,borderButtonRadius:n.theme.BorderRadiusButton,borderBannerRadius:n.theme.BorderRadiusBanner})],{"line-height":"normal"}])},[(O(!0),J(rt,null,$n(n.iteratedColumnN21.Elements,(a,l)=>(O(),Ze(Fl,{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=>o("onElementClicked",u)),onOnImageSizeAdjusted:s[1]||(s[1]=u=>o("onImageSizeAdjusted",u)),onOnImageOriginalSizeAdjusted:s[2]||(s[2]=u=>o("onImageOriginalSizeAdjusted",u)),onOnElementUpdatedEvent:s[3]||(s[3]=u=>o("onElementUpdatedEvent",u)),onOnElementRemoved:s[4]||(s[4]=u=>o("onElementRemoved",u))},null,8,["deps","theme","element","context","path","selectedElementPath"]))),128))],12,CTt)])])],4)],4))}}),bTt=ot(yTt,[["__scopeId","data-v-b46af162"]]),vTt=["align"],TTt=Xe({__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}){Hm(i=>({v904d8f2c:r.value}));const n=t,o=e,r=q(()=>n.iteratedColumnN22.WidthInPercents*n.containerWidth+"px");return(i,s)=>(O(),J("div",{class:"iterated-column__N-2-2",style:he({display:"inline-block",verticalAlign:n.iteratedColumnN22.VerticalAlign})},[_("table",{style:he([[z(Pw)({borderCollapse:n.iteratedColumnN22.BorderCollapse})],{width:"100%","border-spacing":"0"}]),width:"100%"},[_("tbody",null,[_("tr",null,[_("td",{align:z(Vc)({containerAlign:n.iteratedColumnN22.ContainerAlign}),style:he([[z(gd)({border:n.iteratedColumnN22.Border,themeColors:n.theme.Colors}),{backgroundColor:z(Ll)({color:n.iteratedColumnN22.BgColor,themeColors:n.theme.Colors})},z(Wu)({borderRadius:n.iteratedColumnN22.BorderRadius,borderRadiusCard:n.theme.BorderRadiusCard,bodyBorderRadius:n.theme.BorderRadius,borderButtonRadius:n.theme.BorderRadiusButton,borderBannerRadius:n.theme.BorderRadiusBanner})],{"line-height":"normal"}])},[(O(!0),J(rt,null,$n(n.iteratedColumnN22.Elements,(a,l)=>(O(),Ze(Fl,{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=>o("onElementClicked",u)),onOnImageSizeAdjusted:s[1]||(s[1]=u=>o("onImageSizeAdjusted",u)),onOnImageOriginalSizeAdjusted:s[2]||(s[2]=u=>o("onImageOriginalSizeAdjusted",u)),onOnElementUpdatedEvent:s[3]||(s[3]=u=>o("onElementUpdatedEvent",u)),onOnElementRemoved:s[4]||(s[4]=u=>o("onElementRemoved",u))},null,8,["deps","theme","element","context","path","selectedElementPath"]))),128))],12,vTt)])])],4)],4))}}),xTt=ot(TTt,[["__scopeId","data-v-319c5209"]]),FTt={class:"iterated-column-container",style:{"border-spacing":"0","border-collapse":"collapse",width:"100%",margin:"0 auto"},width:"100%"},STt={align:"center",style:{"font-size":"0"}},wTt=Xe({__name:"IteratedColumnBodyRow",props:{deps:{},theme:{},iteratedColumnBodyRow:{},path:{},selectedElementPath:{},context:{},rowWidth:{}},emits:["onElementClicked","onImageOriginalSizeAdjusted","onImageSizeAdjusted","onElementUpdatedEvent","onElementRemoved"],setup(t,{emit:e}){Hm(l=>({a80c0c96:i.value}));const n=t,o=Vt({dataList:[],isLoaded:!1}),r=()=>n.deps.listExpressionEvaluator({listExpression:n.iteratedColumnBodyRow.DataSource,context:n.context}).then(l=>{o.dataList=l,o.isLoaded=!0});r(),an(()=>n.context,()=>r());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)=>(O(),J("table",FTt,[_("tbody",null,[_("tr",null,[_("td",STt,[(O(!0),J(rt,null,$n(o.dataList,(c,d)=>(O(),J(rt,{key:d},[s.iteratedColumn(n.iteratedColumnBodyRow.IteratedColumn)?(O(),Ze(gTt,{key:d,class:$e(["iterated-column-bottom-spacer",{"iterated-column__tablet-padding-right":(d+1)%2===1,"iterated-column__tablet-padding-left":(d+1)%2===0,"is-last-desktop-line":d>=o.dataList.length-n.iteratedColumnBodyRow.NumberColumnsInLine,"is-last-tablet-line":d>=o.dataList.length-2,"is-last-mobile-line":d==o.dataList.length-1}]),deps:n.deps.iteratedColumnDeps,theme:n.theme,style:he(z(MR)({numberColumnsInLine:n.iteratedColumnBodyRow.NumberColumnsInLine,index:d,paddingSize:z(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"])):Ue("",!0),s.iteratedColumnVariant(n.iteratedColumnBodyRow.IteratedColumnVariant)?(O(),J(rt,{key:1},[s.iteratedColumnN21(n.iteratedColumnBodyRow.IteratedColumnVariant.IteratedColumnN21)?(O(),Ze(bTt,{key:d,deps:n.deps.iteratedColumnVariantDeps.iteratedColumnN21Deps,theme:n.theme,class:$e(["iterated-column-bottom-spacer",{"iterated-column__tablet-padding-right":(d+1)%2===1,"iterated-column__tablet-padding-left":(d+1)%2===0,"is-last-desktop-line":d>=o.dataList.length-n.iteratedColumnBodyRow.NumberColumnsInLine,"is-last-tablet-line":d>=o.dataList.length-2,"is-last-mobile-line":d==o.dataList.length-1}]),style:he(z(MR)({numberColumnsInLine:n.iteratedColumnBodyRow.NumberColumnsInLine,index:d,paddingSize:z(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"])):Ue("",!0),s.iteratedColumnN22(n.iteratedColumnBodyRow.IteratedColumnVariant.IteratedColumnN22)?(O(),Ze(xTt,{key:d,deps:n.deps.iteratedColumnVariantDeps.iteratedColumnN22Deps,theme:n.theme,class:$e(["iterated-column-bottom-spacer",{"iterated-column__tablet-padding-right iterated-column__N-2-2_mobile-padding-right":(d+1)%2===1,"iterated-column__tablet-padding-left iterated-column__N-2-2_mobile-padding-left":(d+1)%2===0,"is-last-desktop-line":d>=o.dataList.length-n.iteratedColumnBodyRow.NumberColumnsInLine,"is-last-tablet-line is-last-mobile-line":d>=o.dataList.length-2}]),style:he(z(MR)({numberColumnsInLine:n.iteratedColumnBodyRow.NumberColumnsInLine,index:d,paddingSize:z(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"])):Ue("",!0)],64)):Ue("",!0)],64))),128))])])])]))}}),kTt=ot(wTt,[["__scopeId","data-v-69ed8d34"]]),ETt={style:{"border-spacing":"0","border-collapse":"collapse",width:"100%",margin:"0 auto"}},_Tt=Xe({__name:"IteratedBodyRow",props:{theme:{},deps:{},iteratedBodyRow:{},path:{},selectedElementPath:{},context:{},containerWidth:{}},emits:["onElementClicked","onImageOriginalSizeAdjusted","onImageSizeAdjusted","onColumnWidthAdjusted","onElementUpdatedEvent","onElementRemoved"],setup(t,{emit:e}){const n=t,o=Vt({dataList:[]});n.deps.listExpressionEvaluator({listExpression:n.iteratedBodyRow.DataSource,context:n.context}).then(i=>o.dataList=i);const r=e;return(i,s)=>(O(),J("table",ETt,[(O(!0),J(rt,null,$n(o.dataList,(a,l)=>(O(),J("tr",{key:l},[_("td",{style:he([z(Ww)({paddings:n.iteratedBodyRow.Paddings,themeComponentPaddings:n.theme.ComponentPaddings,themeBodyPaddings:n.theme.BodyPaddings})])},[ie(Lxe,{emailComponentBodyRow:n.iteratedBodyRow.BodyRow,deps:{iteratedColumnBodyRowDeps:n.deps.iteratedColumnBodyRowDeps,multipleColumnBodyRowDeps:n.deps.multipleColumnBodyRowDeps,listExpressionEvaluator:n.deps.listExpressionEvaluator},theme:n.theme,context:{...n.context,[n.iteratedBodyRow.IndexName]:a},rowWidth:n.containerWidth,path:[...n.path,"BodyRow"],selectedElementPath:n.selectedElementPath,onOnElementClicked:s[0]||(s[0]=u=>r("onElementClicked",u)),onOnImageOriginalSizeAdjusted:s[1]||(s[1]=u=>r("onImageOriginalSizeAdjusted",u)),onOnImageSizeAdjusted:s[2]||(s[2]=u=>r("onImageSizeAdjusted",u)),onOnColumnWidthAdjusted:s[3]||(s[3]=u=>r("onColumnWidthAdjusted",u)),onOnElementUpdatedEvent:s[4]||(s[4]=u=>r("onElementUpdatedEvent",u)),onOnElementRemoved:s[5]||(s[5]=u=>r("onElementRemoved",u))},null,8,["emailComponentBodyRow","deps","theme","context","rowWidth","path","selectedElementPath"])],4)]))),128))]))}}),RTt=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()}}}),DTt=t=>RTt(t).Match({Top:()=>"start",Middle:()=>"center",Bottom:()=>"end",Baseline:()=>"baseline"}),ATt=nc,NTt=t=>({JustifyWidth:{WidthInPixels:t}}),BTt=t=>({ShrinkToContentWidth:{WidthInPixels:t}}),LTt=_ct,$Tt=["align"],VTt=Xe({__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}){Hm(l=>({acad954c:a.value,v1971599c:s.value,v72b8524e:i.value}));const n=t,o=e,r=l=>{ATt(n.multipleColumn.Width).Match({JustifyWidth:()=>O2.Some(NTt(l)),ShrinkToContentWidth:()=>O2.Some(BTt(l)),WidthInPercents:()=>O2.None}).map(u=>o("onColumnWidthAdjusted",{Path:n.path,Width:u}))},i=q(()=>LTt(n.multipleColumn.Width).Match({default:()=>"",WidthInPercents:l=>l.Value*n.containerWidth+"px"})),s=q(()=>DTt(n.multipleColumn.VerticalAlign)),a=q(()=>n.multipleColumn.VerticalAlign);return(l,u)=>Ot((O(),J("div",{class:$e(["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"}},[_("table",{style:he([{width:"100%","border-spacing":"0"},[z(Pw)({borderCollapse:n.multipleColumn.BorderCollapse})]]),width:"100%"},[_("tbody",null,[_("tr",null,[_("td",{align:z(Vc)({containerAlign:n.multipleColumn.ContainerAlign}),style:he([[z(gd)({border:n.multipleColumn.Border,themeColors:n.theme.Colors}),z(Wu)({borderRadius:n.multipleColumn.BorderRadius,borderRadiusCard:n.theme.BorderRadiusCard,bodyBorderRadius:n.theme.BorderRadius,borderButtonRadius:n.theme.BorderRadiusButton,borderBannerRadius:n.theme.BorderRadiusBanner}),{backgroundColor:z(Ll)({color:n.multipleColumn.BgColor,themeColors:n.theme.Colors})},z(Ww)({paddings:n.multipleColumn.Paddings,themeComponentPaddings:n.theme.ComponentPaddings,themeBodyPaddings:n.theme.BodyPaddings})],{"line-height":"normal"}])},[(O(!0),J(rt,null,$n(n.multipleColumn.Elements,(c,d)=>(O(),Ze(Fl,{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=>o("onElementClicked",h)),onOnImageSizeAdjusted:u[1]||(u[1]=h=>o("onImageSizeAdjusted",h)),onOnImageOriginalSizeAdjusted:u[2]||(u[2]=h=>o("onImageOriginalSizeAdjusted",h)),onOnElementUpdatedEvent:u[3]||(u[3]=h=>o("onElementUpdatedEvent",h)),onOnElementRemoved:u[4]||(u[4]=h=>o("onElementRemoved",h))},null,8,["deps","theme","element","context","path","selectedElementPath"]))),128))],12,$Tt)])])],4)],2)),[[z(CS),c=>r(c.width)]])}}),MTt=ot(VTt,[["__scopeId","data-v-bfa1869f"]]),OTt=Xe({__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}){Hm(i=>({v36e68443:r.value}));const n=t,o=e,r=q(()=>ko({paddingExpression:n.multipleColumnBodyRow.ColumnSpacerSize,themeComponentPaddings:n.theme.ComponentPaddings,themeBodyPaddings:n.theme.BodyPaddings})+"px");return(i,s)=>(O(),J("table",{class:"multiple-column-container",style:he([[z(Pw)({borderCollapse:n.multipleColumnBodyRow.BorderCollapse}),z(gd)({border:n.multipleColumnBodyRow.Border,themeColors:n.theme.Colors}),z(Wu)({borderRadius:n.multipleColumnBodyRow.BorderRadius,borderRadiusCard:n.theme.BorderRadiusCard,bodyBorderRadius:n.theme.BorderRadius,borderButtonRadius:n.theme.BorderRadiusButton,borderBannerRadius:n.theme.BorderRadiusBanner}),{backgroundColor:z(Ll)({color:n.multipleColumnBodyRow.BgColor,themeColors:n.theme.Colors})}],{"border-spacing":"0",width:"100%",margin:"0 auto"}]),width:"100%"},[_("tbody",null,[_("tr",null,[_("td",{class:"multiple-column-container__inner",style:he([{"font-size":"0"},[z(xgt)({containerAlign:n.multipleColumnBodyRow.ContainerAlign}),z(Ww)({paddings:n.multipleColumnBodyRow.Paddings,themeComponentPaddings:n.theme.ComponentPaddings,themeBodyPaddings:n.theme.BodyPaddings}),n.multipleColumnBodyRow.DirectionRtl?{direction:"rtl"}:{direction:"ltr"}]])},[(O(!0),J(rt,null,$n(n.multipleColumnBodyRow.Columns,(a,l)=>(O(),Ze(MTt,{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-z(ko)({paddingExpression:n.multipleColumnBodyRow.Paddings.Left,themeComponentPaddings:n.theme.ComponentPaddings,themeBodyPaddings:n.theme.BodyPaddings})-z(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:he(z(MR)({numberColumnsInLine:n.multipleColumnBodyRow.Columns.length,index:l,paddingSize:z(ko)({paddingExpression:n.multipleColumnBodyRow.ColumnSpacerSize,themeComponentPaddings:n.theme.ComponentPaddings,themeBodyPaddings:n.theme.BodyPaddings}),directionRtl:n.multipleColumnBodyRow.DirectionRtl})),class:$e({"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=>o("onElementClicked",u)),onOnColumnWidthAdjusted:s[1]||(s[1]=u=>o("onColumnWidthAdjusted",u)),onOnImageSizeAdjusted:s[2]||(s[2]=u=>o("onImageSizeAdjusted",u)),onOnImageOriginalSizeAdjusted:s[3]||(s[3]=u=>o("onImageOriginalSizeAdjusted",u)),onOnElementUpdatedEvent:s[4]||(s[4]=u=>o("onElementUpdatedEvent",u)),onOnElementRemoved:s[5]||(s[5]=u=>o("onElementRemoved",u))},null,8,["deps","theme","multipleColumn","path","selectedElementPath","context","containerWidth","style","class"]))),128))],4)])])],4))}}),ITt=ot(OTt,[["__scopeId","data-v-c6ebdc94"]]),Lxe=Xe({__name:"EmailComponentBodyRow",props:{deps:{},theme:{},emailComponentBodyRow:{},path:{},selectedElementPath:{},context:{},rowWidth:{}},emits:["onElementClicked","onImageOriginalSizeAdjusted","onImageSizeAdjusted","onColumnWidthAdjusted","onElementUpdatedEvent","onElementRemoved"],setup(t,{emit:e}){const n=t,o={multipleColumns:i=>i!==void 0,iteratedColumns:i=>i!==void 0,iteratedBodyRow:i=>i!==void 0},r=e;return(i,s)=>(O(),J("div",null,[o.multipleColumns(n.emailComponentBodyRow.MultipleColumnBodyRow)?(O(),Ze(ITt,{key:0,deps:n.deps.multipleColumnBodyRowDeps,theme:n.theme,multipleColumnBodyRow:n.emailComponentBodyRow.MultipleColumnBodyRow,path:[...n.path,"MultipleColumnBodyRow"],selectedElementPath:n.selectedElementPath,context:t.context,rowWidth:n.rowWidth,onOnColumnWidthAdjusted:s[0]||(s[0]=a=>r("onColumnWidthAdjusted",a)),onOnImageOriginalSizeAdjusted:s[1]||(s[1]=a=>r("onImageOriginalSizeAdjusted",a)),onOnImageSizeAdjusted:s[2]||(s[2]=a=>r("onImageSizeAdjusted",a)),onOnElementClicked:s[3]||(s[3]=a=>r("onElementClicked",a)),onOnElementUpdatedEvent:s[4]||(s[4]=a=>r("onElementUpdatedEvent",a)),onOnElementRemoved:s[5]||(s[5]=a=>r("onElementRemoved",a))},null,8,["deps","theme","multipleColumnBodyRow","path","selectedElementPath","context","rowWidth"])):Ue("",!0),o.iteratedColumns(n.emailComponentBodyRow.IteratedColumnBodyRow)?(O(),Ze(kTt,{key:1,deps:n.deps.iteratedColumnBodyRowDeps,theme:n.theme,iteratedColumnBodyRow:n.emailComponentBodyRow.IteratedColumnBodyRow,path:[...n.path,"IteratedColumnBodyRow"],selectedElementPath:n.selectedElementPath,context:t.context,rowWidth:n.rowWidth,onOnElementClicked:s[6]||(s[6]=a=>r("onElementClicked",a)),onOnImageOriginalSizeAdjusted:s[7]||(s[7]=a=>r("onImageOriginalSizeAdjusted",a)),onOnImageSizeAdjusted:s[8]||(s[8]=a=>r("onImageSizeAdjusted",a)),onOnElementUpdatedEvent:s[9]||(s[9]=a=>r("onElementUpdatedEvent",a)),onOnElementRemoved:s[10]||(s[10]=a=>r("onElementRemoved",a))},null,8,["deps","theme","iteratedColumnBodyRow","path","selectedElementPath","context","rowWidth"])):Ue("",!0),o.iteratedBodyRow(n.emailComponentBodyRow.IteratedBodyRow)?(O(),Ze(_Tt,{key:2,deps:{iteratedColumnBodyRowDeps:n.deps.iteratedColumnBodyRowDeps,multipleColumnBodyRowDeps:n.deps.multipleColumnBodyRowDeps,listExpressionEvaluator:n.deps.listExpressionEvaluator},theme:n.theme,iteratedBodyRow:n.emailComponentBodyRow.IteratedBodyRow,path:[...n.path,"IteratedBodyRow"],selectedElementPath:n.selectedElementPath,context:t.context,containerWidth:n.rowWidth,onOnElementClicked:s[11]||(s[11]=a=>r("onElementClicked",a)),onOnImageOriginalSizeAdjusted:s[12]||(s[12]=a=>r("onImageOriginalSizeAdjusted",a)),onOnImageSizeAdjusted:s[13]||(s[13]=a=>r("onImageSizeAdjusted",a)),onOnElementUpdatedEvent:s[14]||(s[14]=a=>r("onElementUpdatedEvent",a)),onOnElementRemoved:s[15]||(s[15]=a=>r("onElementRemoved",a))},null,8,["deps","theme","iteratedBodyRow","path","selectedElementPath","context","containerWidth"])):Ue("",!0)]))}}),PTt={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"},WTt={emptyEmailComponentText:"Товарная полка скрыта из-за недостатка товаров",emptyEmailComponentTooltip:"Товарная полка не будет отображаться у получателей письма пока в ней недостаточно товаров",requiredComponentNotification:"Без этого компонента письмо не будет отправлено"},oP=Xn({en:PTt,ru:WTt}),HTt={},zTt={width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function jTt(t,e){return O(),J("svg",zTt,[...e[0]||(e[0]=[_("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 UTt=ot(HTt,[["render",jTt]]),KTt={key:0},qTt={key:0,class:"is-required-notification"},JTt={class:"bootstrap-styles w-100 d-flex justify-content-center gap-5"},GTt=Xe({__name:"EmailComponent",props:{deps:{},theme:{},emailComponent:{},path:{},selectedElementPath:{}},emits:["onElementClicked","onImageOriginalSizeAdjusted","onImageSizeAdjusted","onColumnWidthAdjusted","onElementUpdatedEvent","onElementRemoved"],setup(t,{emit:e}){const n=t,o=Vt({context:{},ifResult:!n.emailComponent.ContextBuilderExpression,isLoaded:!1}),r={emptyEmailComponentText:oP({localeKey:n.deps.localeKey}).emptyEmailComponentText,emptyEmailComponentTooltip:oP({localeKey:n.deps.localeKey}).emptyEmailComponentTooltip,requiredComponentNotification:oP({localeKey:n.deps.localeKey}).requiredComponentNotification},i=a=>{o.isLoaded=!1,n.deps.dataStructExpressionEvaluator({dataStructBuilderExpression:a,context:{}}).then(l=>{(n.emailComponent.IfExpression?n.deps.boolExpressionEvaluatorDelegate({boolExpression:n.emailComponent.IfExpression,context:l}):Promise.resolve(!0)).then(u=>{o.context=l,o.ifResult=u,o.isLoaded=!0})})};an(()=>n.emailComponent.ContextBuilderExpression,a=>{a&&i(a)});const s=e;return n.emailComponent.ContextBuilderExpression?i(n.emailComponent.ContextBuilderExpression):o.isLoaded=!0,(a,l)=>o.isLoaded?(O(),J("div",KTt,[n.emailComponent.IsRequired?(O(),J("div",qTt,[_("i",null,[ie(UTt)]),_("span",null,"   "+Gt(r.requiredComponentNotification),1)])):Ue("",!0),o.ifResult?(O(),J("table",{key:1,style:he([[{backgroundColor:z(Ll)({color:n.emailComponent.InnerBgColor,themeColors:n.theme.Colors})},z(Wu)({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"}])},[_("tbody",null,[_("tr",null,[_("td",{class:"row__inner",style:he([z(hoe)({paddings:n.emailComponent.Paddings,themeComponentPaddings:n.theme.ComponentPaddings,themeBodyPaddings:n.theme.BodyPaddings,fullWidth:n.emailComponent.FullWidth})])},[(O(!0),J(rt,null,$n(n.emailComponent.BodyRowList,(u,c)=>(O(),Ze(Lxe,{key:c,deps:n.deps.emailComponentBodyRowDeps,theme:n.theme,emailComponentBodyRow:u,context:o.context,rowWidth:n.emailComponent.FullWidth?n.theme.BodyWidth:n.theme.BodyWidth-n.theme.BodyPaddings.Left-n.theme.BodyPaddings.Right,path:[...n.path,"BodyRowList",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)):(O(),J("div",{key:2,class:$e(["empty-email-component",{"is-required-component__paddings":n.emailComponent.IsRequired}])},[X0(Gt(r.emptyEmailComponentText)+" ",1),Ot((O(),J("i",null,[...l[6]||(l[6]=[_("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[_("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)])])),[[z($o),{placement:"top",title:r.emptyEmailComponentTooltip}]])],2))])):(O(),J("div",{key:1,class:"bootstrap-styles w-100",style:he([z(hoe)({paddings:n.emailComponent.Paddings,themeComponentPaddings:n.theme.ComponentPaddings,themeBodyPaddings:n.theme.BodyPaddings,fullWidth:n.emailComponent.FullWidth}),{backgroundColor:z(Ll)({color:n.emailComponent.InnerBgColor,themeColors:n.theme.Colors})||"transparent"}])},[ie(z(Ene),{type:"text"}),_("div",JTt,[(O(),J(rt,null,$n(3,u=>ie(z(Ene),{key:u,type:"image, text, text, text, button",style:{width:"100%"}})),64))])],4))}}),$xe=ot(GTt,[["__scopeId","data-v-7266764f"]]),YTt={class:"scale-to-width-fit-component",style:{display:"inline-block","transform-origin":"left top"}},Vxe=Xe({__name:"ScaleToWidthFit",emits:["scaledElement"],setup(t,{emit:e}){const n=e;return(o,r)=>Ot((O(),J("div",YTt,[Y0(o.$slots,"default")])),[[z(CS),({width:i})=>{o.$el.style.transform=`scale(${o.$el.parentElement.clientWidth/i}`,n("scaledElement",o.$el)}]])}}),XTt={title:"Preview",applyButton:"Select",cancelButton:"Cancel"},QTt={title:"Предпросмотр",applyButton:"Выбрать",cancelButton:"Отмена"},rP=Xn({en:XTt,ru:QTt}),ZTt={class:"email-template-preview__inner-padding scrollable"},ext={class:"emailTemplate-border-top"},txt={class:"emailTemplate-border-bottom"},nxt=Xe({__name:"EmailTemplatePreviewModalWindow",props:{template:{},deps:{}},emits:["favoriteTemplateSelected","close"],setup(t,{emit:e}){const n=t,o={title:rP({localeKey:n.deps.localeKey}).title,applyButton:rP({localeKey:n.deps.localeKey}).applyButton,cancelButton:rP({localeKey:n.deps.localeKey}).cancelButton},r=s=>{const a=s.parentElement;a&&(a.style.height=s.getBoundingClientRect().height+"px")},i=e;return(s,a)=>(O(),Ze(fxe,{headerText:o.title,class:"email-component__preview-modal-window",onClose:a[3]||(a[3]=()=>i("close"))},{body:Fu(()=>[_("div",{style:he({backgroundColor:t.template.Theme.Colors.EmailBackgroundColor})},[ie(Vxe,{onScaledElement:a[0]||(a[0]=l=>r(l))},{default:Fu(()=>[_("div",ZTt,[_("div",{class:"bootstrap-styles pe-none email-template-preview",style:he({fontFamily:n.template.Theme.FontFamily,width:t.template.Theme.BodyWidth+"px"})},[_("div",{class:"webkit emailTemplate--desktop",style:he({borderTopLeftRadius:n.template.Theme.BorderRadius.TopLeft+"px",borderTopRightRadius:n.template.Theme.BorderRadius.TopRight+"px",borderBottomLeftRadius:n.template.Theme.BorderRadius.BottomLeft+"px",borderBottomRightRadius:n.template.Theme.BorderRadius.BottomRight+"px"})},[_("div",ext,[_("table",{style:he([[{maxWidth:n.template.Theme.BodyWidth+"px",width:"100%"}],{"border-spacing":"0"}])},[_("tbody",null,[_("tr",null,[_("td",{style:he([{paddingTop:n.template.Theme.BodyPaddings.Top+"px"},{"font-size":"0","line-height":"0"}])},"   ",4)])])],4)]),(O(!0),J(rt,null,$n(n.template.Components,(l,u)=>(O(),J("div",{key:u},[ie($xe,{deps:t.deps.emailComponentDeps,theme:n.template.Theme,emailComponent:l,path:[],selectedElementPath:[]},null,8,["deps","theme","emailComponent"])]))),128)),_("div",txt,[_("table",{style:he([[{maxWidth:n.template.Theme.BodyWidth+"px",width:"100%"}],{"border-spacing":"0"}])},[_("tbody",null,[_("tr",null,[_("td",{style:he([{paddingBottom:n.template.Theme.BodyPaddings.Bottom+"px"},{"font-size":"0","line-height":"0"}])},"   ",4)])])],4)])],4)],4)])]),_:1})],4)]),"footer-actions":Fu(()=>[_("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]=Wo(()=>i("close"),["stop"]))},Gt(o.cancelButton),1),_("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("favoriteTemplateSelected")})},Gt(o.applyButton),1)]),_:1},8,["headerText"]))}}),oxt=ot(nxt,[["__scopeId","data-v-a7898fb0"]]),rxt={class:"favorite-template-select__item-wrapper"},ixt={class:"favorite-template-select__item bootstrap-styles border rounded-3"},sxt={class:"email-template-preview__inner-padding scrollable"},axt={class:"emailTemplate-border-top"},lxt={class:"emailTemplate-border-bottom"},uxt=Xe({__name:"EmailTemplatePreviewTile",props:{deps:{},template:{},templateName:{}},emits:["favoriteTemplateSelected"],setup(t,{emit:e}){Hm(k=>({v3871f1be:s.value,v115088ee:a.value,v05d440ec:i.value.Title.fontWeight,v40460f14:i.value.Title.fontFamily,v7063b1a0:i.value.Title.color,v354cb820:i.value.Title.textDecoration,v7b95965f:i.value.Title.fontStyle,v06e67430:l.value,v200e2d33:u.value,v330c0660:i.value.Heading.fontWeight,v15d31f4c:i.value.Heading.fontFamily,d0cbc5ec:i.value.Heading.color,b8f0f814:i.value.Heading.textDecoration,v01743cc9:i.value.Heading.fontStyle,v5da513c8:c.value,v4f43a067:d.value,v59536306:i.value.SubHeading.fontWeight,v3c1a7bf2:i.value.SubHeading.fontFamily,v3768f0a4:i.value.SubHeading.color,v67e41d9c:i.value.SubHeading.textDecoration,v9fc8993a:i.value.SubHeading.fontStyle,v40ba636e:h.value,v0f4a8139:m.value,v15a6734c:i.value.LargeText.fontWeight,v50184174:i.value.LargeText.fontFamily,v92a86e60:i.value.LargeText.color,v32189220:i.value.LargeText.textDecoration,b6c2d4e2:i.value.LargeText.fontStyle,v28021f2e:f.value,v43924cf9:p.value,v224b6e98:i.value.NormalText.fontWeight,v5cbd3cc0:i.value.NormalText.fontFamily,v89ce9394:i.value.NormalText.color,v6f047c4a:i.value.NormalText.textDecoration,b72b4016:i.value.NormalText.fontStyle,v1182ba2f:g.value,v614fa88c:y.value,d7e5748e:i.value.DescriptionText.fontWeight,v76d45ea5:i.value.DescriptionText.fontFamily,v3502ea11:i.value.DescriptionText.color,v18b76ecf:i.value.DescriptionText.textDecoration,v17dda360:i.value.DescriptionText.fontStyle,v48efd5f4:b.value,v40252b82:F.value,v5c4cc5ee:i.value.Link.fontWeight,v3f13deda:i.value.Link.fontFamily,e8f14688:i.value.Link.color,v8fbc66f8:i.value.Link.textDecoration,v8f13590a:i.value.Link.fontStyle,v086d82ac:v.value,v929a6e12:T.value,v89491a14:i.value.Button.fontWeight,c3bae83c:i.value.Button.fontFamily,c89aaa98:i.value.Button.color,v6682b58c:i.value.Button.textDecoration,v05d9e573:i.value.Button.fontStyle}));const n=t,o=Vt({isPreviewComponentModalWindowShown:!1}),r=k=>{const R=k.parentElement;R&&(R.style.height=k.getBoundingClientRect().height+"px")},i=q(()=>{const{FontFamily:k,FontSettingsPresets:R,Colors:D}=n.template.Theme;return{Title:ls({fontFamily:k,themeFontSettings:R.Title,themeColor:D.TitleColor}),Heading:ls({fontFamily:k,themeFontSettings:R.Heading,themeColor:D.HeadingColor}),SubHeading:ls({fontFamily:k,themeFontSettings:R.SubHeading,themeColor:D.SubHeadingColor}),LargeText:ls({fontFamily:k,themeFontSettings:R.LargeText,themeColor:D.LargeTextColor}),NormalText:ls({fontFamily:k,themeFontSettings:R.NormalText,themeColor:D.NormalTextColor}),DescriptionText:ls({fontFamily:k,themeFontSettings:R.DescriptionText,themeColor:D.DescriptionTextColor}),Link:ls({fontFamily:k,themeFontSettings:R.Link,themeColor:D.LinkColor}),Button:ls({fontFamily:k,themeFontSettings:R.Button,themeColor:D.ButtonTextColor})}}),s=q(()=>i.value.Title.fontSize+"px"),a=q(()=>i.value.Title.lineHeight+"px"),l=q(()=>i.value.Heading.fontSize+"px"),u=q(()=>i.value.Heading.lineHeight+"px"),c=q(()=>i.value.SubHeading.fontSize+"px"),d=q(()=>i.value.SubHeading.lineHeight+"px"),h=q(()=>i.value.LargeText.fontSize+"px"),m=q(()=>i.value.LargeText.lineHeight+"px"),f=q(()=>i.value.NormalText.fontSize+"px"),p=q(()=>i.value.NormalText.lineHeight+"px"),g=q(()=>i.value.DescriptionText.fontSize+"px"),y=q(()=>i.value.DescriptionText.lineHeight+"px"),b=q(()=>i.value.Link.fontSize+"px"),F=q(()=>i.value.Link.lineHeight+"px"),v=q(()=>i.value.Button.fontSize+"px"),T=q(()=>i.value.Button.lineHeight+"px"),w=e;return(k,R)=>(O(),J("div",rxt,[_("div",ixt,[_("div",{class:"bootstrap-styles h-100",style:he({backgroundColor:n.template.Theme.Colors.EmailBackgroundColor}),onClick:R[1]||(R[1]=()=>{o.isPreviewComponentModalWindowShown=!0})},[ie(Vxe,{onScaledElement:R[0]||(R[0]=D=>r(D))},{default:Fu(()=>[_("div",sxt,[_("div",{class:"bootstrap-styles pe-none email-template-preview",style:he({fontFamily:n.template.Theme.FontFamily,width:t.template.Theme.BodyWidth+"px"})},[_("div",{class:"webkit emailTemplate--desktop",style:he({backgroundColor:n.template.Theme.Colors.BodyColor,borderTopLeftRadius:n.template.Theme.BorderRadius.TopLeft+"px",borderTopRightRadius:n.template.Theme.BorderRadius.TopRight+"px",borderBottomLeftRadius:n.template.Theme.BorderRadius.BottomLeft+"px",borderBottomRightRadius:n.template.Theme.BorderRadius.BottomRight+"px"})},[_("div",axt,[_("table",{style:he([[{maxWidth:n.template.Theme.BodyWidth+"px",width:"100%"}],{"border-spacing":"0"}])},[_("tbody",null,[_("tr",null,[_("td",{style:he([{paddingTop:n.template.Theme.BodyPaddings.Top+"px"},{"font-size":"0","line-height":"0"}])},"   ",4)])])],4)]),(O(!0),J(rt,null,$n(n.template.Components,(D,V)=>(O(),J("div",{key:V},[ie($xe,{deps:n.deps.emailComponentDeps,theme:n.template.Theme,emailComponent:D,path:[],selectedElementPath:[]},null,8,["deps","theme","emailComponent"])]))),128)),_("div",lxt,[_("table",{style:he([[{maxWidth:n.template.Theme.BodyWidth+"px",width:"100%"}],{"border-spacing":"0"}])},[_("tbody",null,[_("tr",null,[_("td",{style:he([{paddingBottom:n.template.Theme.BodyPaddings.Bottom+"px"},{"font-size":"0","line-height":"0"}])},"   ",4)])])],4)])],4)],4)])]),_:1})],4),(O(),Ze(m9,{to:"#app"},[o.isPreviewComponentModalWindowShown?(O(),Ze(oxt,{key:0,template:n.template,deps:n.deps.emailTemplatePreviewModalWindowDeps,onClose:R[2]||(R[2]=()=>o.isPreviewComponentModalWindowShown=!1),onFavoriteTemplateSelected:R[3]||(R[3]=()=>w("favoriteTemplateSelected"))},null,8,["template","deps"])):Ue("",!0)]))]),_("div",{class:"bootstrap-styles favorite-template__name mt-2",onClick:R[4]||(R[4]=()=>{o.isPreviewComponentModalWindowShown=!0})},Gt(n.templateName),1)]))}}),cxt=ot(uxt,[["__scopeId","data-v-66b13e3f"]]),dxt=t=>nc(t),hxt=t=>nc(t),mxt=t=>nc(t),fxt=t=>nc(t),pxt=t=>({predicate:e,context:n})=>Promise.all([t.numberExpressionEvaluator({numberExpression:e.Left,context:n}),t.numberExpressionEvaluator({numberExpression:e.Right,context:n})]).then(([o,r])=>o===r),gxt=t=>({predicate:e,context:n})=>Promise.all([t.numberExpressionEvaluator({numberExpression:e.Left,context:n}),t.numberExpressionEvaluator({numberExpression:e.Right,context:n})]).then(([o,r])=>o<r),Cxt=t=>({predicate:e,context:n})=>Promise.all([t.numberExpressionEvaluator({numberExpression:e.Left,context:n}),t.numberExpressionEvaluator({numberExpression:e.Right,context:n})]).then(([o,r])=>o>r),yxt=t=>{const e=pxt({numberExpressionEvaluator:t.numberExpressionEvaluator}),n=Cxt({numberExpressionEvaluator:t.numberExpressionEvaluator}),o=gxt({numberExpressionEvaluator:t.numberExpressionEvaluator});return({numberPredicate:r,context:i})=>fxt(r).Match({Equal:s=>e({predicate:s,context:i}),GreaterThan:s=>n({predicate:s,context:i}),LessThan:s=>o({predicate:s,context:i})})},bxt=t=>({predicate:e,context:n})=>Promise.all([t.stringExpressionEvaluator({stringExpression:e.Left,context:n}),t.stringExpressionEvaluator({stringExpression:e.Right,context:n})]).then(([o,r])=>o===r),vxt=t=>({predicate:e,context:n})=>Promise.all([t.stringExpressionEvaluator({stringExpression:e.Left,context:n}),t.stringExpressionEvaluator({stringExpression:e.Contains,context:n})]).then(([o,r])=>o.includes(r)),Txt=t=>{const e=bxt({stringExpressionEvaluator:t.stringExpressionEvaluator}),n=vxt({stringExpressionEvaluator:t.stringExpressionEvaluator});return({stringPredicate:o,context:r})=>mxt(o).Match({Contains:i=>n({predicate:i,context:r}),Equal:i=>e({predicate:i,context:r})})},xxt=t=>{const e=yxt({numberExpressionEvaluator:t.numberExpressionEvaluator}),n=Txt({stringExpressionEvaluator:t.stringExpressionEvaluator});return({predicate:o,context:r})=>hxt(o).Match({NumberPredicate:i=>e({numberPredicate:i,context:r}),StringPredicate:i=>n({stringPredicate:i,context:r})})},Mxe=t=>{const e=xxt({numberExpressionEvaluator:t.numberExpressionEvaluator,stringExpressionEvaluator:t.stringExpressionEvaluator}),n=({boolExpression:o,context:r})=>dxt(o).Match({AndExpression:i=>Promise.all(i.Expressions.map(s=>n({boolExpression:s,context:r}))).then(s=>s.every(a=>a)),OrExpression:i=>Promise.all(i.Expressions.map(s=>n({boolExpression:s,context:r}))).then(s=>s.some(a=>a)),NotExpression:async i=>!await n({boolExpression:i.Expression,context:r}),Predicate:i=>e({predicate:i,context:r})});return n},Fxt=t=>Xe((e,n)=>()=>Yu(cxt,{template:t.template,templateName:t.templateName,deps:t.emailTemplatePreviewTileDeps,onFavoriteTemplateSelected:t.onFavoriteTemplateSelected})),Oxe=t=>t.reduce((e,n)=>(e[n.name]=n.value,e),{}),pC=t=>U1e({InternalProductId:t.internalProductId,Name:t.name,Description:t.description,Price:t.price,OldPrice:t.oldPrice,PictureUrl:t.pictureUrl,Url:t.url,CategoryIds:[],Vendor:t.vendor,Params:Oxe(t.parameters),DiscountPercentage:t.discountPercentage}),Sxt=async t=>(await t.getPopularProductsHttpClient({body:{partnerId:t.partnerId,stockId:t.stockId}})).body.recommendations.map(e=>pC(e));var wxt=typeof global=="object"&&global&&global.Object===Object&&global,kxt=typeof self=="object"&&self&&self.Object===Object&&self,Ext=wxt||kxt||Function("return this")(),ON=Ext.Symbol;ON&&ON.toStringTag;ON&&ON.toStringTag;const{entries:Ixe,setPrototypeOf:Roe,isFrozen:_xt,getPrototypeOf:Rxt,getOwnPropertyDescriptor:Dxt}=Object;let{freeze:_i,seal:Pa,create:H5}=Object,{apply:z5,construct:j5}=typeof Reflect<"u"&&Reflect;_i||(_i=function(t){return t});Pa||(Pa=function(t){return t});z5||(z5=function(t,e){for(var n=arguments.length,o=new Array(n>2?n-2:0),r=2;r<n;r++)o[r-2]=arguments[r];return t.apply(e,o)});j5||(j5=function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),o=1;o<e;o++)n[o-1]=arguments[o];return new t(...n)});const BE=Ri(Array.prototype.forEach),Axt=Ri(Array.prototype.lastIndexOf),Doe=Ri(Array.prototype.pop),E1=Ri(Array.prototype.push),Nxt=Ri(Array.prototype.splice),IR=Ri(String.prototype.toLowerCase),iP=Ri(String.prototype.toString),sP=Ri(String.prototype.match),_1=Ri(String.prototype.replace),Bxt=Ri(String.prototype.indexOf),Lxt=Ri(String.prototype.trim),pl=Ri(Object.prototype.hasOwnProperty),Ur=Ri(RegExp.prototype.test),R1=$xt(TypeError);function Ri(t){return function(e){e instanceof RegExp&&(e.lastIndex=0);for(var n=arguments.length,o=new Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];return z5(t,e,o)}}function $xt(t){return function(){for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];return j5(t,n)}}function Wt(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:IR;Roe&&Roe(t,null);let o=e.length;for(;o--;){let r=e[o];if(typeof r=="string"){const i=n(r);i!==r&&(_xt(e)||(e[o]=i),r=i)}t[r]=!0}return t}function Vxt(t){for(let e=0;e<t.length;e++)pl(t,e)||(t[e]=null);return t}function eu(t){const e=H5(null);for(const[n,o]of Ixe(t))pl(t,n)&&(Array.isArray(o)?e[n]=Vxt(o):o&&typeof o=="object"&&o.constructor===Object?e[n]=eu(o):e[n]=o);return e}function D1(t,e){for(;t!==null;){const o=Dxt(t,e);if(o){if(o.get)return Ri(o.get);if(typeof o.value=="function")return Ri(o.value)}t=Rxt(t)}function n(){return null}return n}const Aoe=_i(["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"]),aP=_i(["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"]),lP=_i(["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"]),Mxt=_i(["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"]),uP=_i(["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"]),Oxt=_i(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Noe=_i(["#text"]),Boe=_i(["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"]),cP=_i(["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"]),Loe=_i(["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"]),LE=_i(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Ixt=Pa(/\{\{[\w\W]*|[\w\W]*\}\}/gm),Pxt=Pa(/<%[\w\W]*|[\w\W]*%>/gm),Wxt=Pa(/\$\{[\w\W]*/gm),Hxt=Pa(/^data-[\-\w.\u00B7-\uFFFF]+$/),zxt=Pa(/^aria-[\-\w]+$/),Pxe=Pa(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),jxt=Pa(/^(?:\w+script|data):/i),Uxt=Pa(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Wxe=Pa(/^html$/i),Kxt=Pa(/^[a-z][.\w]*(-[.\w]+)+$/i);var $oe=Object.freeze({__proto__:null,ARIA_ATTR:zxt,ATTR_WHITESPACE:Uxt,CUSTOM_ELEMENT:Kxt,DATA_ATTR:Hxt,DOCTYPE_NAME:Wxe,ERB_EXPR:Pxt,IS_ALLOWED_URI:Pxe,IS_SCRIPT_OR_DATA:jxt,MUSTACHE_EXPR:Ixt,TMPLIT_EXPR:Wxt});const A1={element:1,text:3,progressingInstruction:7,comment:8,document:9},qxt=function(){return typeof window>"u"?null:window},Jxt=function(t,e){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let n=null;const o="data-tt-policy-suffix";e&&e.hasAttribute(o)&&(n=e.getAttribute(o));const r="dompurify"+(n?"#"+n:"");try{return t.createPolicy(r,{createHTML(i){return i},createScriptURL(i){return i}})}catch{return console.warn("TrustedTypes policy "+r+" could not be created."),null}},Voe=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function Hxe(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:qxt();const e=C=>Hxe(C);if(e.version="3.3.1",e.removed=[],!t||!t.document||t.document.nodeType!==A1.document||!t.Element)return e.isSupported=!1,e;let{document:n}=t;const o=n,r=o.currentScript,{DocumentFragment:i,HTMLTemplateElement:s,Node:a,Element:l,NodeFilter:u,NamedNodeMap:c=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:d,DOMParser:h,trustedTypes:m}=t,f=l.prototype,p=D1(f,"cloneNode"),g=D1(f,"remove"),y=D1(f,"nextSibling"),b=D1(f,"childNodes"),F=D1(f,"parentNode");if(typeof s=="function"){const C=n.createElement("template");C.content&&C.content.ownerDocument&&(n=C.content.ownerDocument)}let v,T="";const{implementation:w,createNodeIterator:k,createDocumentFragment:R,getElementsByTagName:D}=n,{importNode:V}=o;let E=Voe();e.isSupported=typeof Ixe=="function"&&typeof F=="function"&&w&&w.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:A,ERB_EXPR:N,TMPLIT_EXPR:I,DATA_ATTR:M,ARIA_ATTR:$,IS_SCRIPT_OR_DATA:H,ATTR_WHITESPACE:ke,CUSTOM_ELEMENT:Oe}=$oe;let{IS_ALLOWED_URI:ve}=$oe,K=null;const Pe=Wt({},[...Aoe,...aP,...lP,...uP,...Noe]);let Y=null;const He=Wt({},[...Boe,...cP,...Loe,...LE]);let P=Object.seal(H5(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}})),Ee=null,ae=null;const ne=Object.seal(H5(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let wt=!0,Tt=!0,xt=!1,B=!0,L=!1,j=!0,G=!1,Q=!1,Z=!1,te=!1,oe=!1,U=!1,X=!0,Ve=!1;const ce="user-content-";let ue=!0,de=!1,Te={},le=null;const ze=Wt({},["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 cn=null;const dn=Wt({},["audio","video","img","source","image","track"]);let sn=null;const bn=Wt({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),nn="http://www.w3.org/1998/Math/MathML",hn="http://www.w3.org/2000/svg",Ke="http://www.w3.org/1999/xhtml";let ft=Ke,An=!1,Nn=null;const il=Wt({},[nn,hn,Ke],iP);let gn=Wt({},["mi","mo","mn","ms","mtext"]),Cn=Wt({},["annotation-xml"]);const sl=Wt({},["title","style","font","a","script"]);let on=null;const al=["application/xhtml+xml","text/html"],ll="text/html";let re=null,Rt=null;const ul=n.createElement("form"),sr=function(C){return C instanceof RegExp||C instanceof Function},Qn=function(){let C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(Rt&&Rt===C)){if((!C||typeof C!="object")&&(C={}),C=eu(C),on=al.indexOf(C.PARSER_MEDIA_TYPE)===-1?ll:C.PARSER_MEDIA_TYPE,re=on==="application/xhtml+xml"?iP:IR,K=pl(C,"ALLOWED_TAGS")?Wt({},C.ALLOWED_TAGS,re):Pe,Y=pl(C,"ALLOWED_ATTR")?Wt({},C.ALLOWED_ATTR,re):He,Nn=pl(C,"ALLOWED_NAMESPACES")?Wt({},C.ALLOWED_NAMESPACES,iP):il,sn=pl(C,"ADD_URI_SAFE_ATTR")?Wt(eu(bn),C.ADD_URI_SAFE_ATTR,re):bn,cn=pl(C,"ADD_DATA_URI_TAGS")?Wt(eu(dn),C.ADD_DATA_URI_TAGS,re):dn,le=pl(C,"FORBID_CONTENTS")?Wt({},C.FORBID_CONTENTS,re):ze,Ee=pl(C,"FORBID_TAGS")?Wt({},C.FORBID_TAGS,re):eu({}),ae=pl(C,"FORBID_ATTR")?Wt({},C.FORBID_ATTR,re):eu({}),Te=pl(C,"USE_PROFILES")?C.USE_PROFILES:!1,wt=C.ALLOW_ARIA_ATTR!==!1,Tt=C.ALLOW_DATA_ATTR!==!1,xt=C.ALLOW_UNKNOWN_PROTOCOLS||!1,B=C.ALLOW_SELF_CLOSE_IN_ATTR!==!1,L=C.SAFE_FOR_TEMPLATES||!1,j=C.SAFE_FOR_XML!==!1,G=C.WHOLE_DOCUMENT||!1,te=C.RETURN_DOM||!1,oe=C.RETURN_DOM_FRAGMENT||!1,U=C.RETURN_TRUSTED_TYPE||!1,Z=C.FORCE_BODY||!1,X=C.SANITIZE_DOM!==!1,Ve=C.SANITIZE_NAMED_PROPS||!1,ue=C.KEEP_CONTENT!==!1,de=C.IN_PLACE||!1,ve=C.ALLOWED_URI_REGEXP||Pxe,ft=C.NAMESPACE||Ke,gn=C.MATHML_TEXT_INTEGRATION_POINTS||gn,Cn=C.HTML_INTEGRATION_POINTS||Cn,P=C.CUSTOM_ELEMENT_HANDLING||{},C.CUSTOM_ELEMENT_HANDLING&&sr(C.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(P.tagNameCheck=C.CUSTOM_ELEMENT_HANDLING.tagNameCheck),C.CUSTOM_ELEMENT_HANDLING&&sr(C.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(P.attributeNameCheck=C.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),C.CUSTOM_ELEMENT_HANDLING&&typeof C.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(P.allowCustomizedBuiltInElements=C.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),L&&(Tt=!1),oe&&(te=!0),Te&&(K=Wt({},Noe),Y=[],Te.html===!0&&(Wt(K,Aoe),Wt(Y,Boe)),Te.svg===!0&&(Wt(K,aP),Wt(Y,cP),Wt(Y,LE)),Te.svgFilters===!0&&(Wt(K,lP),Wt(Y,cP),Wt(Y,LE)),Te.mathMl===!0&&(Wt(K,uP),Wt(Y,Loe),Wt(Y,LE))),C.ADD_TAGS&&(typeof C.ADD_TAGS=="function"?ne.tagCheck=C.ADD_TAGS:(K===Pe&&(K=eu(K)),Wt(K,C.ADD_TAGS,re))),C.ADD_ATTR&&(typeof C.ADD_ATTR=="function"?ne.attributeCheck=C.ADD_ATTR:(Y===He&&(Y=eu(Y)),Wt(Y,C.ADD_ATTR,re))),C.ADD_URI_SAFE_ATTR&&Wt(sn,C.ADD_URI_SAFE_ATTR,re),C.FORBID_CONTENTS&&(le===ze&&(le=eu(le)),Wt(le,C.FORBID_CONTENTS,re)),C.ADD_FORBID_CONTENTS&&(le===ze&&(le=eu(le)),Wt(le,C.ADD_FORBID_CONTENTS,re)),ue&&(K["#text"]=!0),G&&Wt(K,["html","head","body"]),K.table&&(Wt(K,["tbody"]),delete Ee.tbody),C.TRUSTED_TYPES_POLICY){if(typeof C.TRUSTED_TYPES_POLICY.createHTML!="function")throw R1('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof C.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw R1('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');v=C.TRUSTED_TYPES_POLICY,T=v.createHTML("")}else v===void 0&&(v=Jxt(m,r)),v!==null&&typeof T=="string"&&(T=v.createHTML(""));_i&&_i(C),Rt=C}},ar=Wt({},[...aP,...lP,...Mxt]),lr=Wt({},[...uP,...Oxt]),cl=function(C){let x=F(C);(!x||!x.tagName)&&(x={namespaceURI:ft,tagName:"template"});const S=IR(C.tagName),W=IR(x.tagName);return Nn[C.namespaceURI]?C.namespaceURI===hn?x.namespaceURI===Ke?S==="svg":x.namespaceURI===nn?S==="svg"&&(W==="annotation-xml"||gn[W]):!!ar[S]:C.namespaceURI===nn?x.namespaceURI===Ke?S==="math":x.namespaceURI===hn?S==="math"&&Cn[W]:!!lr[S]:C.namespaceURI===Ke?x.namespaceURI===hn&&!Cn[W]||x.namespaceURI===nn&&!gn[W]?!1:!lr[S]&&(sl[S]||!ar[S]):!!(on==="application/xhtml+xml"&&Nn[C.namespaceURI]):!1},gt=function(C){E1(e.removed,{element:C});try{F(C).removeChild(C)}catch{g(C)}},St=function(C,x){try{E1(e.removed,{attribute:x.getAttributeNode(C),from:x})}catch{E1(e.removed,{attribute:null,from:x})}if(x.removeAttribute(C),C==="is")if(te||oe)try{gt(x)}catch{}else try{x.setAttribute(C,"")}catch{}},ur=function(C){let x=null,S=null;if(Z)C="<remove></remove>"+C;else{const ee=sP(C,/^[\r\n\t ]+/);S=ee&&ee[0]}on==="application/xhtml+xml"&&ft===Ke&&(C='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+C+"</body></html>");const W=v?v.createHTML(C):C;if(ft===Ke)try{x=new h().parseFromString(W,on)}catch{}if(!x||!x.documentElement){x=w.createDocument(ft,"template",null);try{x.documentElement.innerHTML=An?T:W}catch{}}const se=x.body||x.documentElement;return C&&S&&se.insertBefore(n.createTextNode(S),se.childNodes[0]||null),ft===Ke?D.call(x,G?"html":"body")[0]:G?x.documentElement:se},cr=function(C){return k.call(C.ownerDocument||C,C,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT|u.SHOW_PROCESSING_INSTRUCTION|u.SHOW_CDATA_SECTION,null)},Zn=function(C){return C instanceof d&&(typeof C.nodeName!="string"||typeof C.textContent!="string"||typeof C.removeChild!="function"||!(C.attributes instanceof c)||typeof C.removeAttribute!="function"||typeof C.setAttribute!="function"||typeof C.namespaceURI!="string"||typeof C.insertBefore!="function"||typeof C.hasChildNodes!="function")},dr=function(C){return typeof a=="function"&&C instanceof a};function it(C,x,S){BE(C,W=>{W.call(e,x,S,Rt)})}const hr=function(C){let x=null;if(it(E.beforeSanitizeElements,C,null),Zn(C))return gt(C),!0;const S=re(C.nodeName);if(it(E.uponSanitizeElement,C,{tagName:S,allowedTags:K}),j&&C.hasChildNodes()&&!dr(C.firstElementChild)&&Ur(/<[/\w!]/g,C.innerHTML)&&Ur(/<[/\w!]/g,C.textContent)||C.nodeType===A1.progressingInstruction||j&&C.nodeType===A1.comment&&Ur(/<[/\w]/g,C.data))return gt(C),!0;if(!(ne.tagCheck instanceof Function&&ne.tagCheck(S))&&(!K[S]||Ee[S])){if(!Ee[S]&&fr(S)&&(P.tagNameCheck instanceof RegExp&&Ur(P.tagNameCheck,S)||P.tagNameCheck instanceof Function&&P.tagNameCheck(S)))return!1;if(ue&&!le[S]){const W=F(C)||C.parentNode,se=b(C)||C.childNodes;if(se&&W){const ee=se.length;for(let qe=ee-1;qe>=0;--qe){const je=p(se[qe],!0);je.__removalCount=(C.__removalCount||0)+1,W.insertBefore(je,y(C))}}}return gt(C),!0}return C instanceof l&&!cl(C)||(S==="noscript"||S==="noembed"||S==="noframes")&&Ur(/<\/no(script|embed|frames)/i,C.innerHTML)?(gt(C),!0):(L&&C.nodeType===A1.text&&(x=C.textContent,BE([A,N,I],W=>{x=_1(x,W," ")}),C.textContent!==x&&(E1(e.removed,{element:C.cloneNode()}),C.textContent=x)),it(E.afterSanitizeElements,C,null),!1)},mr=function(C,x,S){if(X&&(x==="id"||x==="name")&&(S in n||S in ul))return!1;if(!(Tt&&!ae[x]&&Ur(M,x))&&!(wt&&Ur($,x))&&!(ne.attributeCheck instanceof Function&&ne.attributeCheck(x,C))){if(!Y[x]||ae[x]){if(!(fr(C)&&(P.tagNameCheck instanceof RegExp&&Ur(P.tagNameCheck,C)||P.tagNameCheck instanceof Function&&P.tagNameCheck(C))&&(P.attributeNameCheck instanceof RegExp&&Ur(P.attributeNameCheck,x)||P.attributeNameCheck instanceof Function&&P.attributeNameCheck(x,C))||x==="is"&&P.allowCustomizedBuiltInElements&&(P.tagNameCheck instanceof RegExp&&Ur(P.tagNameCheck,S)||P.tagNameCheck instanceof Function&&P.tagNameCheck(S))))return!1}else if(!sn[x]&&!Ur(ve,_1(S,ke,""))&&!((x==="src"||x==="xlink:href"||x==="href")&&C!=="script"&&Bxt(S,"data:")===0&&cn[C])&&!(xt&&!Ur(H,_1(S,ke,"")))&&S)return!1}return!0},fr=function(C){return C!=="annotation-xml"&&sP(C,Oe)},pr=function(C){it(E.beforeSanitizeAttributes,C,null);const{attributes:x}=C;if(!x||Zn(C))return;const S={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Y,forceKeepAttr:void 0};let W=x.length;for(;W--;){const se=x[W],{name:ee,namespaceURI:qe,value:je}=se,Qe=re(ee),Bn=je;let _e=ee==="value"?Bn:Lxt(Bn);if(S.attrName=Qe,S.attrValue=_e,S.keepAttr=!0,S.forceKeepAttr=void 0,it(E.uponSanitizeAttribute,C,S),_e=S.attrValue,Ve&&(Qe==="id"||Qe==="name")&&(St(ee,C),_e=ce+_e),j&&Ur(/((--!?|])>)|<\/(style|title|textarea)/i,_e)){St(ee,C);continue}if(Qe==="attributename"&&sP(_e,"href")){St(ee,C);continue}if(S.forceKeepAttr)continue;if(!S.keepAttr){St(ee,C);continue}if(!B&&Ur(/\/>/i,_e)){St(ee,C);continue}L&&BE([A,N,I],na=>{_e=_1(_e,na," ")});const mn=re(C.nodeName);if(!mr(mn,Qe,_e)){St(ee,C);continue}if(v&&typeof m=="object"&&typeof m.getAttributeType=="function"&&!qe)switch(m.getAttributeType(mn,Qe)){case"TrustedHTML":{_e=v.createHTML(_e);break}case"TrustedScriptURL":{_e=v.createScriptURL(_e);break}}if(_e!==Bn)try{qe?C.setAttributeNS(qe,ee,_e):C.setAttribute(ee,_e),Zn(C)?gt(C):Doe(e.removed)}catch{St(ee,C)}}it(E.afterSanitizeAttributes,C,null)},dl=function C(x){let S=null;const W=cr(x);for(it(E.beforeSanitizeShadowDOM,x,null);S=W.nextNode();)it(E.uponSanitizeShadowNode,S,null),hr(S),pr(S),S.content instanceof i&&C(S.content);it(E.afterSanitizeShadowDOM,x,null)};return e.sanitize=function(C){let x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},S=null,W=null,se=null,ee=null;if(An=!C,An&&(C="<!-->"),typeof C!="string"&&!dr(C))if(typeof C.toString=="function"){if(C=C.toString(),typeof C!="string")throw R1("dirty is not a string, aborting")}else throw R1("toString is not a function");if(!e.isSupported)return C;if(Q||Qn(x),e.removed=[],typeof C=="string"&&(de=!1),de){if(C.nodeName){const Qe=re(C.nodeName);if(!K[Qe]||Ee[Qe])throw R1("root node is forbidden and cannot be sanitized in-place")}}else if(C instanceof a)S=ur("<!---->"),W=S.ownerDocument.importNode(C,!0),W.nodeType===A1.element&&W.nodeName==="BODY"||W.nodeName==="HTML"?S=W:S.appendChild(W);else{if(!te&&!L&&!G&&C.indexOf("<")===-1)return v&&U?v.createHTML(C):C;if(S=ur(C),!S)return te?null:U?T:""}S&&Z&&gt(S.firstChild);const qe=cr(de?C:S);for(;se=qe.nextNode();)hr(se),pr(se),se.content instanceof i&&dl(se.content);if(de)return C;if(te){if(oe)for(ee=R.call(S.ownerDocument);S.firstChild;)ee.appendChild(S.firstChild);else ee=S;return(Y.shadowroot||Y.shadowrootmode)&&(ee=V.call(o,ee,!0)),ee}let je=G?S.outerHTML:S.innerHTML;return G&&K["!doctype"]&&S.ownerDocument&&S.ownerDocument.doctype&&S.ownerDocument.doctype.name&&Ur(Wxe,S.ownerDocument.doctype.name)&&(je="<!DOCTYPE "+S.ownerDocument.doctype.name+`>
195
195
  `+je),L&&BE([A,N,I],Qe=>{je=_1(je,Qe," ")}),v&&U?v.createHTML(je):je},e.setConfig=function(){let C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Qn(C),Q=!0},e.clearConfig=function(){Rt=null,Q=!1},e.isValidAttribute=function(C,x,S){Rt||Qn({});const W=re(C),se=re(x);return mr(W,se,S)},e.addHook=function(C,x){typeof x=="function"&&E1(E[C],x)},e.removeHook=function(C,x){if(x!==void 0){const S=Axt(E[C],x);return S===-1?void 0:Nxt(E[C],S,1)[0]}return Doe(E[C])},e.removeHooks=function(C){E[C]=[]},e.removeAllHooks=function(){E=Voe()},e}Hxe();function yr(t){this.content=t}yr.prototype={constructor:yr,find:function(t){for(var e=0;e<this.content.length;e+=2)if(this.content[e]===t)return e;return-1},get:function(t){var e=this.find(t);return e==-1?void 0:this.content[e+1]},update:function(t,e,n){var o=n&&n!=t?this.remove(n):this,r=o.find(t),i=o.content.slice();return r==-1?i.push(n||t,e):(i[r+1]=e,n&&(i[r]=n)),new yr(i)},remove:function(t){var e=this.find(t);if(e==-1)return this;var n=this.content.slice();return n.splice(e,2),new yr(n)},addToStart:function(t,e){return new yr([t,e].concat(this.remove(t).content))},addToEnd:function(t,e){var n=this.remove(t).content.slice();return n.push(t,e),new yr(n)},addBefore:function(t,e,n){var o=this.remove(e),r=o.content.slice(),i=o.find(t);return r.splice(i==-1?r.length:i,0,e,n),new yr(r)},forEach:function(t){for(var e=0;e<this.content.length;e+=2)t(this.content[e],this.content[e+1])},prepend:function(t){return t=yr.from(t),t.size?new yr(t.content.concat(this.subtract(t).content)):this},append:function(t){return t=yr.from(t),t.size?new yr(this.subtract(t).content.concat(t.content)):this},subtract:function(t){var e=this;t=yr.from(t);for(var n=0;n<t.content.length;n+=2)e=e.remove(t.content[n]);return e},toObject:function(){var t={};return this.forEach(function(e,n){t[e]=n}),t},get size(){return this.content.length>>1}};yr.from=function(t){if(t instanceof yr)return t;var e=[];if(t)for(var n in t)e.push(n,t[n]);return new yr(e)};function zxe(t,e,n){for(let o=0;;o++){if(o==t.childCount||o==e.childCount)return t.childCount==e.childCount?null:n;let r=t.child(o),i=e.child(o);if(r==i){n+=r.nodeSize;continue}if(!r.sameMarkup(i))return n;if(r.isText&&r.text!=i.text){for(let s=0;r.text[s]==i.text[s];s++)n++;return n}if(r.content.size||i.content.size){let s=zxe(r.content,i.content,n+1);if(s!=null)return s}n+=r.nodeSize}}function jxe(t,e,n,o){for(let r=t.childCount,i=e.childCount;;){if(r==0||i==0)return r==i?null:{a:n,b:o};let s=t.child(--r),a=e.child(--i),l=s.nodeSize;if(s==a){n-=l,o-=l;continue}if(!s.sameMarkup(a))return{a:n,b:o};if(s.isText&&s.text!=a.text){let u=0,c=Math.min(s.text.length,a.text.length);for(;u<c&&s.text[s.text.length-u-1]==a.text[a.text.length-u-1];)u++,n--,o--;return{a:n,b:o}}if(s.content.size||a.content.size){let u=jxe(s.content,a.content,n-1,o-1);if(u)return u}n-=l,o-=l}}let We=class Xr{constructor(e,n){if(this.content=e,this.size=n||0,n==null)for(let o=0;o<e.length;o++)this.size+=e[o].nodeSize}nodesBetween(e,n,o,r=0,i){for(let s=0,a=0;a<n;s++){let l=this.content[s],u=a+l.nodeSize;if(u>e&&o(l,r+a,i||null,s)!==!1&&l.content.size){let c=a+1;l.nodesBetween(Math.max(0,e-c),Math.min(l.content.size,n-c),o,r+c)}a=u}}descendants(e){this.nodesBetween(0,this.size,e)}textBetween(e,n,o,r){let i="",s=!0;return this.nodesBetween(e,n,(a,l)=>{let u=a.isText?a.text.slice(Math.max(e,l)-l,n-l):a.isLeaf?r?typeof r=="function"?r(a):r:a.type.spec.leafText?a.type.spec.leafText(a):"":"";a.isBlock&&(a.isLeaf&&u||a.isTextblock)&&o&&(s?s=!1:i+=o),i+=u},0),i}append(e){if(!e.size)return this;if(!this.size)return e;let n=this.lastChild,o=e.firstChild,r=this.content.slice(),i=0;for(n.isText&&n.sameMarkup(o)&&(r[r.length-1]=n.withText(n.text+o.text),i=1);i<e.content.length;i++)r.push(e.content[i]);return new Xr(r,this.size+e.size)}cut(e,n=this.size){if(e==0&&n==this.size)return this;let o=[],r=0;if(n>e)for(let i=0,s=0;s<n;i++){let a=this.content[i],l=s+a.nodeSize;l>e&&((s<e||l>n)&&(a.isText?a=a.cut(Math.max(0,e-s),Math.min(a.text.length,n-s)):a=a.cut(Math.max(0,e-s-1),Math.min(a.content.size,n-s-1))),o.push(a),r+=a.nodeSize),s=l}return new Xr(o,r)}cutByIndex(e,n){return e==n?Xr.empty:e==0&&n==this.content.length?this:new Xr(this.content.slice(e,n))}replaceChild(e,n){let o=this.content[e];if(o==n)return this;let r=this.content.slice(),i=this.size+n.nodeSize-o.nodeSize;return r[e]=n,new Xr(r,i)}addToStart(e){return new Xr([e].concat(this.content),this.size+e.nodeSize)}addToEnd(e){return new Xr(this.content.concat(e),this.size+e.nodeSize)}eq(e){if(this.content.length!=e.content.length)return!1;for(let n=0;n<this.content.length;n++)if(!this.content[n].eq(e.content[n]))return!1;return!0}get firstChild(){return this.content.length?this.content[0]:null}get lastChild(){return this.content.length?this.content[this.content.length-1]:null}get childCount(){return this.content.length}child(e){let n=this.content[e];if(!n)throw new RangeError("Index "+e+" out of range for "+this);return n}maybeChild(e){return this.content[e]||null}forEach(e){for(let n=0,o=0;n<this.content.length;n++){let r=this.content[n];e(r,o,n),o+=r.nodeSize}}findDiffStart(e,n=0){return zxe(this,e,n)}findDiffEnd(e,n=this.size,o=e.size){return jxe(this,e,n,o)}findIndex(e){if(e==0)return $E(0,e);if(e==this.size)return $E(this.content.length,e);if(e>this.size||e<0)throw new RangeError(`Position ${e} outside of fragment (${this})`);for(let n=0,o=0;;n++){let r=this.child(n),i=o+r.nodeSize;if(i>=e)return i==e?$E(n+1,i):$E(n,o);o=i}}toString(){return"<"+this.toStringInner()+">"}toStringInner(){return this.content.join(", ")}toJSON(){return this.content.length?this.content.map(e=>e.toJSON()):null}static fromJSON(e,n){if(!n)return Xr.empty;if(!Array.isArray(n))throw new RangeError("Invalid input for Fragment.fromJSON");return new Xr(n.map(e.nodeFromJSON))}static fromArray(e){if(!e.length)return Xr.empty;let n,o=0;for(let r=0;r<e.length;r++){let i=e[r];o+=i.nodeSize,r&&i.isText&&e[r-1].sameMarkup(i)?(n||(n=e.slice(0,r)),n[n.length-1]=i.withText(n[n.length-1].text+i.text)):n&&n.push(i)}return new Xr(n||e,o)}static from(e){if(!e)return Xr.empty;if(e instanceof Xr)return e;if(Array.isArray(e))return this.fromArray(e);if(e.attrs)return new Xr([e],e.nodeSize);throw new RangeError("Can not convert "+e+" to a Fragment"+(e.nodesBetween?" (looks like multiple versions of prosemirror-model were loaded)":""))}};We.empty=new We([],0);const dP={index:0,offset:0};function $E(t,e){return dP.index=t,dP.offset=e,dP}function IN(t,e){if(t===e)return!0;if(!(t&&typeof t=="object")||!(e&&typeof e=="object"))return!1;let n=Array.isArray(t);if(Array.isArray(e)!=n)return!1;if(n){if(t.length!=e.length)return!1;for(let o=0;o<t.length;o++)if(!IN(t[o],e[o]))return!1}else{for(let o in t)if(!(o in e)||!IN(t[o],e[o]))return!1;for(let o in e)if(!(o in t))return!1}return!0}let Un=class U5{constructor(e,n){this.type=e,this.attrs=n}addToSet(e){let n,o=!1;for(let r=0;r<e.length;r++){let i=e[r];if(this.eq(i))return e;if(this.type.excludes(i.type))n||(n=e.slice(0,r));else{if(i.type.excludes(this.type))return e;!o&&i.type.rank>this.type.rank&&(n||(n=e.slice(0,r)),n.push(this),o=!0),n&&n.push(i)}}return n||(n=e.slice()),o||n.push(this),n}removeFromSet(e){for(let n=0;n<e.length;n++)if(this.eq(e[n]))return e.slice(0,n).concat(e.slice(n+1));return e}isInSet(e){for(let n=0;n<e.length;n++)if(this.eq(e[n]))return!0;return!1}eq(e){return this==e||this.type==e.type&&IN(this.attrs,e.attrs)}toJSON(){let e={type:this.type.name};for(let n in this.attrs){e.attrs=this.attrs;break}return e}static fromJSON(e,n){if(!n)throw new RangeError("Invalid input for Mark.fromJSON");let o=e.marks[n.type];if(!o)throw new RangeError(`There is no mark type ${n.type} in this schema`);let r=o.create(n.attrs);return o.checkAttrs(r.attrs),r}static sameSet(e,n){if(e==n)return!0;if(e.length!=n.length)return!1;for(let o=0;o<e.length;o++)if(!e[o].eq(n[o]))return!1;return!0}static setFrom(e){if(!e||Array.isArray(e)&&e.length==0)return U5.none;if(e instanceof U5)return[e];let n=e.slice();return n.sort((o,r)=>o.type.rank-r.type.rank),n}};Un.none=[];let PN=class extends Error{},tt=class My{constructor(e,n,o){this.content=e,this.openStart=n,this.openEnd=o}get size(){return this.content.size-this.openStart-this.openEnd}insertAt(e,n){let o=Kxe(this.content,e+this.openStart,n);return o&&new My(o,this.openStart,this.openEnd)}removeBetween(e,n){return new My(Uxe(this.content,e+this.openStart,n+this.openStart),this.openStart,this.openEnd)}eq(e){return this.content.eq(e.content)&&this.openStart==e.openStart&&this.openEnd==e.openEnd}toString(){return this.content+"("+this.openStart+","+this.openEnd+")"}toJSON(){if(!this.content.size)return null;let e={content:this.content.toJSON()};return this.openStart>0&&(e.openStart=this.openStart),this.openEnd>0&&(e.openEnd=this.openEnd),e}static fromJSON(e,n){if(!n)return My.empty;let o=n.openStart||0,r=n.openEnd||0;if(typeof o!="number"||typeof r!="number")throw new RangeError("Invalid input for Slice.fromJSON");return new My(We.fromJSON(e,n.content),o,r)}static maxOpen(e,n=!0){let o=0,r=0;for(let i=e.firstChild;i&&!i.isLeaf&&(n||!i.type.spec.isolating);i=i.firstChild)o++;for(let i=e.lastChild;i&&!i.isLeaf&&(n||!i.type.spec.isolating);i=i.lastChild)r++;return new My(e,o,r)}};tt.empty=new tt(We.empty,0,0);function Uxe(t,e,n){let{index:o,offset:r}=t.findIndex(e),i=t.maybeChild(o),{index:s,offset:a}=t.findIndex(n);if(r==e||i.isText){if(a!=n&&!t.child(s).isText)throw new RangeError("Removing non-flat range");return t.cut(0,e).append(t.cut(n))}if(o!=s)throw new RangeError("Removing non-flat range");return t.replaceChild(o,i.copy(Uxe(i.content,e-r-1,n-r-1)))}function Kxe(t,e,n,o){let{index:r,offset:i}=t.findIndex(e),s=t.maybeChild(r);if(i==e||s.isText)return o&&!o.canReplace(r,r,n)?null:t.cut(0,e).append(n).append(t.cut(e));let a=Kxe(s.content,e-i-1,n,s);return a&&t.replaceChild(r,s.copy(a))}function Gxt(t,e,n){if(n.openStart>t.depth)throw new PN("Inserted content deeper than insertion position");if(t.depth-n.openStart!=e.depth-n.openEnd)throw new PN("Inconsistent open depths");return qxe(t,e,n,0)}function qxe(t,e,n,o){let r=t.index(o),i=t.node(o);if(r==e.index(o)&&o<t.depth-n.openStart){let s=qxe(t,e,n,o+1);return i.copy(i.content.replaceChild(r,s))}else if(n.content.size)if(!n.openStart&&!n.openEnd&&t.depth==o&&e.depth==o){let s=t.parent,a=s.content;return zp(s,a.cut(0,t.parentOffset).append(n.content).append(a.cut(e.parentOffset)))}else{let{start:s,end:a}=Yxt(n,t);return zp(i,Gxe(t,s,a,e,o))}else return zp(i,WN(t,e,o))}function Jxe(t,e){if(!e.type.compatibleContent(t.type))throw new PN("Cannot join "+e.type.name+" onto "+t.type.name)}function K5(t,e,n){let o=t.node(n);return Jxe(o,e.node(n)),o}function Hp(t,e){let n=e.length-1;n>=0&&t.isText&&t.sameMarkup(e[n])?e[n]=t.withText(e[n].text+t.text):e.push(t)}function Bx(t,e,n,o){let r=(e||t).node(n),i=0,s=e?e.index(n):r.childCount;t&&(i=t.index(n),t.depth>n?i++:t.textOffset&&(Hp(t.nodeAfter,o),i++));for(let a=i;a<s;a++)Hp(r.child(a),o);e&&e.depth==n&&e.textOffset&&Hp(e.nodeBefore,o)}function zp(t,e){return t.type.checkContent(e),t.copy(e)}function Gxe(t,e,n,o,r){let i=t.depth>r&&K5(t,e,r+1),s=o.depth>r&&K5(n,o,r+1),a=[];return Bx(null,t,r,a),i&&s&&e.index(r)==n.index(r)?(Jxe(i,s),Hp(zp(i,Gxe(t,e,n,o,r+1)),a)):(i&&Hp(zp(i,WN(t,e,r+1)),a),Bx(e,n,r,a),s&&Hp(zp(s,WN(n,o,r+1)),a)),Bx(o,null,r,a),new We(a)}function WN(t,e,n){let o=[];if(Bx(null,t,n,o),t.depth>n){let r=K5(t,e,n+1);Hp(zp(r,WN(t,e,n+1)),o)}return Bx(e,null,n,o),new We(o)}function Yxt(t,e){let n=e.depth-t.openStart,o=e.node(n).copy(t.content);for(let r=n-1;r>=0;r--)o=e.node(r).copy(We.from(o));return{start:o.resolveNoCache(t.openStart+n),end:o.resolveNoCache(o.content.size-t.openEnd-n)}}let Moe=class q5{constructor(e,n,o){this.pos=e,this.path=n,this.parentOffset=o,this.depth=n.length/3-1}resolveDepth(e){return e==null?this.depth:e<0?this.depth+e:e}get parent(){return this.node(this.depth)}get doc(){return this.node(0)}node(e){return this.path[this.resolveDepth(e)*3]}index(e){return this.path[this.resolveDepth(e)*3+1]}indexAfter(e){return e=this.resolveDepth(e),this.index(e)+(e==this.depth&&!this.textOffset?0:1)}start(e){return e=this.resolveDepth(e),e==0?0:this.path[e*3-1]+1}end(e){return e=this.resolveDepth(e),this.start(e)+this.node(e).content.size}before(e){if(e=this.resolveDepth(e),!e)throw new RangeError("There is no position before the top-level node");return e==this.depth+1?this.pos:this.path[e*3-1]}after(e){if(e=this.resolveDepth(e),!e)throw new RangeError("There is no position after the top-level node");return e==this.depth+1?this.pos:this.path[e*3-1]+this.path[e*3].nodeSize}get textOffset(){return this.pos-this.path[this.path.length-1]}get nodeAfter(){let e=this.parent,n=this.index(this.depth);if(n==e.childCount)return null;let o=this.pos-this.path[this.path.length-1],r=e.child(n);return o?e.child(n).cut(o):r}get nodeBefore(){let e=this.index(this.depth),n=this.pos-this.path[this.path.length-1];return n?this.parent.child(e).cut(0,n):e==0?null:this.parent.child(e-1)}posAtIndex(e,n){n=this.resolveDepth(n);let o=this.path[n*3],r=n==0?0:this.path[n*3-1]+1;for(let i=0;i<e;i++)r+=o.child(i).nodeSize;return r}marks(){let e=this.parent,n=this.index();if(e.content.size==0)return Un.none;if(this.textOffset)return e.child(n).marks;let o=e.maybeChild(n-1),r=e.maybeChild(n);if(!o){let a=o;o=r,r=a}let i=o.marks;for(var s=0;s<i.length;s++)i[s].type.spec.inclusive===!1&&(!r||!i[s].isInSet(r.marks))&&(i=i[s--].removeFromSet(i));return i}marksAcross(e){let n=this.parent.maybeChild(this.index());if(!n||!n.isInline)return null;let o=n.marks,r=e.parent.maybeChild(e.index());for(var i=0;i<o.length;i++)o[i].type.spec.inclusive===!1&&(!r||!o[i].isInSet(r.marks))&&(o=o[i--].removeFromSet(o));return o}sharedDepth(e){for(let n=this.depth;n>0;n--)if(this.start(n)<=e&&this.end(n)>=e)return n;return 0}blockRange(e=this,n){if(e.pos<this.pos)return e.blockRange(this);for(let o=this.depth-(this.parent.inlineContent||this.pos==e.pos?1:0);o>=0;o--)if(e.pos<=this.end(o)&&(!n||n(this.node(o))))return new HN(this,e,o);return null}sameParent(e){return this.pos-this.parentOffset==e.pos-e.parentOffset}max(e){return e.pos>this.pos?e:this}min(e){return e.pos<this.pos?e:this}toString(){let e="";for(let n=1;n<=this.depth;n++)e+=(e?"/":"")+this.node(n).type.name+"_"+this.index(n-1);return e+":"+this.parentOffset}static resolve(e,n){if(!(n>=0&&n<=e.content.size))throw new RangeError("Position "+n+" out of range");let o=[],r=0,i=n;for(let s=e;;){let{index:a,offset:l}=s.content.findIndex(i),u=i-l;if(o.push(s,a,r+l),!u||(s=s.child(a),s.isText))break;i=u-1,r+=l+1}return new q5(n,o,i)}static resolveCached(e,n){let o=Ooe.get(e);if(o)for(let i=0;i<o.elts.length;i++){let s=o.elts[i];if(s.pos==n)return s}else Ooe.set(e,o=new Xxt);let r=o.elts[o.i]=q5.resolve(e,n);return o.i=(o.i+1)%Qxt,r}};class Xxt{constructor(){this.elts=[],this.i=0}}const Qxt=12,Ooe=new WeakMap;let HN=class{constructor(e,n,o){this.$from=e,this.$to=n,this.depth=o}get start(){return this.$from.before(this.depth+1)}get end(){return this.$to.after(this.depth+1)}get parent(){return this.$from.node(this.depth)}get startIndex(){return this.$from.index(this.depth)}get endIndex(){return this.$to.indexAfter(this.depth)}};const Zxt=Object.create(null);let jp=class J5{constructor(e,n,o,r=Un.none){this.type=e,this.attrs=n,this.marks=r,this.content=o||We.empty}get children(){return this.content.content}get nodeSize(){return this.isLeaf?1:2+this.content.size}get childCount(){return this.content.childCount}child(e){return this.content.child(e)}maybeChild(e){return this.content.maybeChild(e)}forEach(e){this.content.forEach(e)}nodesBetween(e,n,o,r=0){this.content.nodesBetween(e,n,o,r,this)}descendants(e){this.nodesBetween(0,this.content.size,e)}get textContent(){return this.isLeaf&&this.type.spec.leafText?this.type.spec.leafText(this):this.textBetween(0,this.content.size,"")}textBetween(e,n,o,r){return this.content.textBetween(e,n,o,r)}get firstChild(){return this.content.firstChild}get lastChild(){return this.content.lastChild}eq(e){return this==e||this.sameMarkup(e)&&this.content.eq(e.content)}sameMarkup(e){return this.hasMarkup(e.type,e.attrs,e.marks)}hasMarkup(e,n,o){return this.type==e&&IN(this.attrs,n||e.defaultAttrs||Zxt)&&Un.sameSet(this.marks,o||Un.none)}copy(e=null){return e==this.content?this:new J5(this.type,this.attrs,e,this.marks)}mark(e){return e==this.marks?this:new J5(this.type,this.attrs,this.content,e)}cut(e,n=this.content.size){return e==0&&n==this.content.size?this:this.copy(this.content.cut(e,n))}slice(e,n=this.content.size,o=!1){if(e==n)return tt.empty;let r=this.resolve(e),i=this.resolve(n),s=o?0:r.sharedDepth(n),a=r.start(s),l=r.node(s).content.cut(r.pos-a,i.pos-a);return new tt(l,r.depth-s,i.depth-s)}replace(e,n,o){return Gxt(this.resolve(e),this.resolve(n),o)}nodeAt(e){for(let n=this;;){let{index:o,offset:r}=n.content.findIndex(e);if(n=n.maybeChild(o),!n)return null;if(r==e||n.isText)return n;e-=r+1}}childAfter(e){let{index:n,offset:o}=this.content.findIndex(e);return{node:this.content.maybeChild(n),index:n,offset:o}}childBefore(e){if(e==0)return{node:null,index:0,offset:0};let{index:n,offset:o}=this.content.findIndex(e);if(o<e)return{node:this.content.child(n),index:n,offset:o};let r=this.content.child(n-1);return{node:r,index:n-1,offset:o-r.nodeSize}}resolve(e){return Moe.resolveCached(this,e)}resolveNoCache(e){return Moe.resolve(this,e)}rangeHasMark(e,n,o){let r=!1;return n>e&&this.nodesBetween(e,n,i=>(o.isInSet(i.marks)&&(r=!0),!r)),r}get isBlock(){return this.type.isBlock}get isTextblock(){return this.type.isTextblock}get inlineContent(){return this.type.inlineContent}get isInline(){return this.type.isInline}get isText(){return this.type.isText}get isLeaf(){return this.type.isLeaf}get isAtom(){return this.type.isAtom}toString(){if(this.type.spec.toDebugString)return this.type.spec.toDebugString(this);let e=this.type.name;return this.content.size&&(e+="("+this.content.toStringInner()+")"),Yxe(this.marks,e)}contentMatchAt(e){let n=this.type.contentMatch.matchFragment(this.content,0,e);if(!n)throw new Error("Called contentMatchAt on a node with invalid content");return n}canReplace(e,n,o=We.empty,r=0,i=o.childCount){let s=this.contentMatchAt(e).matchFragment(o,r,i),a=s&&s.matchFragment(this.content,n);if(!a||!a.validEnd)return!1;for(let l=r;l<i;l++)if(!this.type.allowsMarks(o.child(l).marks))return!1;return!0}canReplaceWith(e,n,o,r){if(r&&!this.type.allowsMarks(r))return!1;let i=this.contentMatchAt(e).matchType(o),s=i&&i.matchFragment(this.content,n);return s?s.validEnd:!1}canAppend(e){return e.content.size?this.canReplace(this.childCount,this.childCount,e.content):this.type.compatibleContent(e.type)}check(){this.type.checkContent(this.content),this.type.checkAttrs(this.attrs);let e=Un.none;for(let n=0;n<this.marks.length;n++){let o=this.marks[n];o.type.checkAttrs(o.attrs),e=o.addToSet(e)}if(!Un.sameSet(e,this.marks))throw new RangeError(`Invalid collection of marks for node ${this.type.name}: ${this.marks.map(n=>n.type.name)}`);this.content.forEach(n=>n.check())}toJSON(){let e={type:this.type.name};for(let n in this.attrs){e.attrs=this.attrs;break}return this.content.size&&(e.content=this.content.toJSON()),this.marks.length&&(e.marks=this.marks.map(n=>n.toJSON())),e}static fromJSON(e,n){if(!n)throw new RangeError("Invalid input for Node.fromJSON");let o;if(n.marks){if(!Array.isArray(n.marks))throw new RangeError("Invalid mark data for Node.fromJSON");o=n.marks.map(e.markFromJSON)}if(n.type=="text"){if(typeof n.text!="string")throw new RangeError("Invalid text node in JSON");return e.text(n.text,o)}let r=We.fromJSON(e,n.content),i=e.nodeType(n.type).create(n.attrs,r,o);return i.type.checkAttrs(i.attrs),i}};jp.prototype.text=void 0;let eFt=class G5 extends jp{constructor(e,n,o,r){if(super(e,n,null,r),!o)throw new RangeError("Empty text nodes are not allowed");this.text=o}toString(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):Yxe(this.marks,JSON.stringify(this.text))}get textContent(){return this.text}textBetween(e,n){return this.text.slice(e,n)}get nodeSize(){return this.text.length}mark(e){return e==this.marks?this:new G5(this.type,this.attrs,this.text,e)}withText(e){return e==this.text?this:new G5(this.type,this.attrs,e,this.marks)}cut(e=0,n=this.text.length){return e==0&&n==this.text.length?this:this.withText(this.text.slice(e,n))}eq(e){return this.sameMarkup(e)&&this.text==e.text}toJSON(){let e=super.toJSON();return e.text=this.text,e}};function Yxe(t,e){for(let n=t.length-1;n>=0;n--)e=t[n].type.name+"("+e+")";return e}let yS=class Xxe{constructor(e){this.validEnd=e,this.next=[],this.wrapCache=[]}static parse(e,n){let o=new tFt(e,n);if(o.next==null)return Xxe.empty;let r=Qxe(o);o.next&&o.err("Unexpected trailing text");let i=lFt(aFt(r));return uFt(i,o),i}matchType(e){for(let n=0;n<this.next.length;n++)if(this.next[n].type==e)return this.next[n].next;return null}matchFragment(e,n=0,o=e.childCount){let r=this;for(let i=n;r&&i<o;i++)r=r.matchType(e.child(i).type);return r}get inlineContent(){return this.next.length!=0&&this.next[0].type.isInline}get defaultType(){for(let e=0;e<this.next.length;e++){let{type:n}=this.next[e];if(!(n.isText||n.hasRequiredAttrs()))return n}return null}compatible(e){for(let n=0;n<this.next.length;n++)for(let o=0;o<e.next.length;o++)if(this.next[n].type==e.next[o].type)return!0;return!1}fillBefore(e,n=!1,o=0){let r=[this];function i(s,a){let l=s.matchFragment(e,o);if(l&&(!n||l.validEnd))return We.from(a.map(u=>u.createAndFill()));for(let u=0;u<s.next.length;u++){let{type:c,next:d}=s.next[u];if(!(c.isText||c.hasRequiredAttrs())&&r.indexOf(d)==-1){r.push(d);let h=i(d,a.concat(c));if(h)return h}}return null}return i(this,[])}findWrapping(e){for(let o=0;o<this.wrapCache.length;o+=2)if(this.wrapCache[o]==e)return this.wrapCache[o+1];let n=this.computeWrapping(e);return this.wrapCache.push(e,n),n}computeWrapping(e){let n=Object.create(null),o=[{match:this,type:null,via:null}];for(;o.length;){let r=o.shift(),i=r.match;if(i.matchType(e)){let s=[];for(let a=r;a.type;a=a.via)s.push(a.type);return s.reverse()}for(let s=0;s<i.next.length;s++){let{type:a,next:l}=i.next[s];!a.isLeaf&&!a.hasRequiredAttrs()&&!(a.name in n)&&(!r.type||l.validEnd)&&(o.push({match:a.contentMatch,type:a,via:r}),n[a.name]=!0)}}return null}get edgeCount(){return this.next.length}edge(e){if(e>=this.next.length)throw new RangeError(`There's no ${e}th edge in this content match`);return this.next[e]}toString(){let e=[];function n(o){e.push(o);for(let r=0;r<o.next.length;r++)e.indexOf(o.next[r].next)==-1&&n(o.next[r].next)}return n(this),e.map((o,r)=>{let i=r+(o.validEnd?"*":" ")+" ";for(let s=0;s<o.next.length;s++)i+=(s?", ":"")+o.next[s].type.name+"->"+e.indexOf(o.next[s].next);return i}).join(`
196
196
  `)}};yS.empty=new yS(!0);class tFt{constructor(e,n){this.string=e,this.nodeTypes=n,this.inline=null,this.pos=0,this.tokens=e.split(/\s*(?=\b|\W|$)/),this.tokens[this.tokens.length-1]==""&&this.tokens.pop(),this.tokens[0]==""&&this.tokens.shift()}get next(){return this.tokens[this.pos]}eat(e){return this.next==e&&(this.pos++||!0)}err(e){throw new SyntaxError(e+" (in content expression '"+this.string+"')")}}function Qxe(t){let e=[];do e.push(nFt(t));while(t.eat("|"));return e.length==1?e[0]:{type:"choice",exprs:e}}function nFt(t){let e=[];do e.push(oFt(t));while(t.next&&t.next!=")"&&t.next!="|");return e.length==1?e[0]:{type:"seq",exprs:e}}function oFt(t){let e=sFt(t);for(;;)if(t.eat("+"))e={type:"plus",expr:e};else if(t.eat("*"))e={type:"star",expr:e};else if(t.eat("?"))e={type:"opt",expr:e};else if(t.eat("{"))e=rFt(t,e);else break;return e}function Ioe(t){/\D/.test(t.next)&&t.err("Expected number, got '"+t.next+"'");let e=Number(t.next);return t.pos++,e}function rFt(t,e){let n=Ioe(t),o=n;return t.eat(",")&&(t.next!="}"?o=Ioe(t):o=-1),t.eat("}")||t.err("Unclosed braced range"),{type:"range",min:n,max:o,expr:e}}function iFt(t,e){let n=t.nodeTypes,o=n[e];if(o)return[o];let r=[];for(let i in n){let s=n[i];s.isInGroup(e)&&r.push(s)}return r.length==0&&t.err("No node type or group '"+e+"' found"),r}function sFt(t){if(t.eat("(")){let e=Qxe(t);return t.eat(")")||t.err("Missing closing paren"),e}else if(/\W/.test(t.next))t.err("Unexpected token '"+t.next+"'");else{let e=iFt(t,t.next).map(n=>(t.inline==null?t.inline=n.isInline:t.inline!=n.isInline&&t.err("Mixing inline and block content"),{type:"name",value:n}));return t.pos++,e.length==1?e[0]:{type:"choice",exprs:e}}}function aFt(t){let e=[[]];return r(i(t,0),n()),e;function n(){return e.push([])-1}function o(s,a,l){let u={term:l,to:a};return e[s].push(u),u}function r(s,a){s.forEach(l=>l.to=a)}function i(s,a){if(s.type=="choice")return s.exprs.reduce((l,u)=>l.concat(i(u,a)),[]);if(s.type=="seq")for(let l=0;;l++){let u=i(s.exprs[l],a);if(l==s.exprs.length-1)return u;r(u,a=n())}else if(s.type=="star"){let l=n();return o(a,l),r(i(s.expr,l),l),[o(l)]}else if(s.type=="plus"){let l=n();return r(i(s.expr,a),l),r(i(s.expr,l),l),[o(l)]}else{if(s.type=="opt")return[o(a)].concat(i(s.expr,a));if(s.type=="range"){let l=a;for(let u=0;u<s.min;u++){let c=n();r(i(s.expr,l),c),l=c}if(s.max==-1)r(i(s.expr,l),l);else for(let u=s.min;u<s.max;u++){let c=n();o(l,c),r(i(s.expr,l),c),l=c}return[o(l)]}else{if(s.type=="name")return[o(a,void 0,s.value)];throw new Error("Unknown expr type")}}}}function Zxe(t,e){return e-t}function Poe(t,e){let n=[];return o(e),n.sort(Zxe);function o(r){let i=t[r];if(i.length==1&&!i[0].term)return o(i[0].to);n.push(r);for(let s=0;s<i.length;s++){let{term:a,to:l}=i[s];!a&&n.indexOf(l)==-1&&o(l)}}}function lFt(t){let e=Object.create(null);return n(Poe(t,0));function n(o){let r=[];o.forEach(s=>{t[s].forEach(({term:a,to:l})=>{if(!a)return;let u;for(let c=0;c<r.length;c++)r[c][0]==a&&(u=r[c][1]);Poe(t,l).forEach(c=>{u||r.push([a,u=[]]),u.indexOf(c)==-1&&u.push(c)})})});let i=e[o.join(",")]=new yS(o.indexOf(t.length-1)>-1);for(let s=0;s<r.length;s++){let a=r[s][1].sort(Zxe);i.next.push({type:r[s][0],next:e[a.join(",")]||n(a)})}return i}}function uFt(t,e){for(let n=0,o=[t];n<o.length;n++){let r=o[n],i=!r.validEnd,s=[];for(let a=0;a<r.next.length;a++){let{type:l,next:u}=r.next[a];s.push(l.name),i&&!(l.isText||l.hasRequiredAttrs())&&(i=!1),o.indexOf(u)==-1&&o.push(u)}i&&e.err("Only non-generatable nodes ("+s.join(", ")+") in a required position (see https://prosemirror.net/docs/guide/#generatable)")}}function eFe(t){let e=Object.create(null);for(let n in t){let o=t[n];if(!o.hasDefault)return null;e[n]=o.default}return e}function tFe(t,e){let n=Object.create(null);for(let o in t){let r=e&&e[o];if(r===void 0){let i=t[o];if(i.hasDefault)r=i.default;else throw new RangeError("No value supplied for attribute "+o)}n[o]=r}return n}function nFe(t,e,n,o){for(let r in e)if(!(r in t))throw new RangeError(`Unsupported attribute ${r} for ${n} of type ${r}`);for(let r in t){let i=t[r];i.validate&&i.validate(e[r])}}function oFe(t,e){let n=Object.create(null);if(e)for(let o in e)n[o]=new dFt(t,o,e[o]);return n}let Woe=class rFe{constructor(e,n,o){this.name=e,this.schema=n,this.spec=o,this.markSet=null,this.groups=o.group?o.group.split(" "):[],this.attrs=oFe(e,o.attrs),this.defaultAttrs=eFe(this.attrs),this.contentMatch=null,this.inlineContent=null,this.isBlock=!(o.inline||e=="text"),this.isText=e=="text"}get isInline(){return!this.isBlock}get isTextblock(){return this.isBlock&&this.inlineContent}get isLeaf(){return this.contentMatch==yS.empty}get isAtom(){return this.isLeaf||!!this.spec.atom}isInGroup(e){return this.groups.indexOf(e)>-1}get whitespace(){return this.spec.whitespace||(this.spec.code?"pre":"normal")}hasRequiredAttrs(){for(let e in this.attrs)if(this.attrs[e].isRequired)return!0;return!1}compatibleContent(e){return this==e||this.contentMatch.compatible(e.contentMatch)}computeAttrs(e){return!e&&this.defaultAttrs?this.defaultAttrs:tFe(this.attrs,e)}create(e=null,n,o){if(this.isText)throw new Error("NodeType.create can't construct text nodes");return new jp(this,this.computeAttrs(e),We.from(n),Un.setFrom(o))}createChecked(e=null,n,o){return n=We.from(n),this.checkContent(n),new jp(this,this.computeAttrs(e),n,Un.setFrom(o))}createAndFill(e=null,n,o){if(e=this.computeAttrs(e),n=We.from(n),n.size){let s=this.contentMatch.fillBefore(n);if(!s)return null;n=s.append(n)}let r=this.contentMatch.matchFragment(n),i=r&&r.fillBefore(We.empty,!0);return i?new jp(this,e,n.append(i),Un.setFrom(o)):null}validContent(e){let n=this.contentMatch.matchFragment(e);if(!n||!n.validEnd)return!1;for(let o=0;o<e.childCount;o++)if(!this.allowsMarks(e.child(o).marks))return!1;return!0}checkContent(e){if(!this.validContent(e))throw new RangeError(`Invalid content for node ${this.name}: ${e.toString().slice(0,50)}`)}checkAttrs(e){nFe(this.attrs,e,"node",this.name)}allowsMarkType(e){return this.markSet==null||this.markSet.indexOf(e)>-1}allowsMarks(e){if(this.markSet==null)return!0;for(let n=0;n<e.length;n++)if(!this.allowsMarkType(e[n].type))return!1;return!0}allowedMarks(e){if(this.markSet==null)return e;let n;for(let o=0;o<e.length;o++)this.allowsMarkType(e[o].type)?n&&n.push(e[o]):n||(n=e.slice(0,o));return n?n.length?n:Un.none:e}static compile(e,n){let o=Object.create(null);e.forEach((i,s)=>o[i]=new rFe(i,n,s));let r=n.spec.topNode||"doc";if(!o[r])throw new RangeError("Schema is missing its top node type ('"+r+"')");if(!o.text)throw new RangeError("Every schema needs a 'text' type");for(let i in o.text.attrs)throw new RangeError("The text node type should not have attributes");return o}};function cFt(t,e,n){let o=n.split("|");return r=>{let i=r===null?"null":typeof r;if(o.indexOf(i)<0)throw new RangeError(`Expected value of type ${o} for attribute ${e} on type ${t}, got ${i}`)}}class dFt{constructor(e,n,o){this.hasDefault=Object.prototype.hasOwnProperty.call(o,"default"),this.default=o.default,this.validate=typeof o.validate=="string"?cFt(e,n,o.validate):o.validate}get isRequired(){return!this.hasDefault}}let iFe=class sFe{constructor(e,n,o,r){this.name=e,this.rank=n,this.schema=o,this.spec=r,this.attrs=oFe(e,r.attrs),this.excluded=null;let i=eFe(this.attrs);this.instance=i?new Un(this,i):null}create(e=null){return!e&&this.instance?this.instance:new Un(this,tFe(this.attrs,e))}static compile(e,n){let o=Object.create(null),r=0;return e.forEach((i,s)=>o[i]=new sFe(i,r++,n,s)),o}removeFromSet(e){for(var n=0;n<e.length;n++)e[n].type==this&&(e=e.slice(0,n).concat(e.slice(n+1)),n--);return e}isInSet(e){for(let n=0;n<e.length;n++)if(e[n].type==this)return e[n]}checkAttrs(e){nFe(this.attrs,e,"mark",this.name)}excludes(e){return this.excluded.indexOf(e)>-1}};class hFt{constructor(e){this.linebreakReplacement=null,this.cached=Object.create(null);let n=this.spec={};for(let r in e)n[r]=e[r];n.nodes=yr.from(e.nodes),n.marks=yr.from(e.marks||{}),this.nodes=Woe.compile(this.spec.nodes,this),this.marks=iFe.compile(this.spec.marks,this);let o=Object.create(null);for(let r in this.nodes){if(r in this.marks)throw new RangeError(r+" can not be both a node and a mark");let i=this.nodes[r],s=i.spec.content||"",a=i.spec.marks;if(i.contentMatch=o[s]||(o[s]=yS.parse(s,this.nodes)),i.inlineContent=i.contentMatch.inlineContent,i.spec.linebreakReplacement){if(this.linebreakReplacement)throw new RangeError("Multiple linebreak nodes defined");if(!i.isInline||!i.isLeaf)throw new RangeError("Linebreak replacement nodes must be inline leaf nodes");this.linebreakReplacement=i}i.markSet=a=="_"?null:a?Hoe(this,a.split(" ")):a==""||!i.inlineContent?[]:null}for(let r in this.marks){let i=this.marks[r],s=i.spec.excludes;i.excluded=s==null?[i]:s==""?[]:Hoe(this,s.split(" "))}this.nodeFromJSON=r=>jp.fromJSON(this,r),this.markFromJSON=r=>Un.fromJSON(this,r),this.topNodeType=this.nodes[this.spec.topNode||"doc"],this.cached.wrappings=Object.create(null)}node(e,n=null,o,r){if(typeof e=="string")e=this.nodeType(e);else if(e instanceof Woe){if(e.schema!=this)throw new RangeError("Node type from different schema used ("+e.name+")")}else throw new RangeError("Invalid node type: "+e);return e.createChecked(n,o,r)}text(e,n){let o=this.nodes.text;return new eFt(o,o.defaultAttrs,e,Un.setFrom(n))}mark(e,n){return typeof e=="string"&&(e=this.marks[e]),e.create(n)}nodeType(e){let n=this.nodes[e];if(!n)throw new RangeError("Unknown node type: "+e);return n}}function Hoe(t,e){let n=[];for(let o=0;o<e.length;o++){let r=e[o],i=t.marks[r],s=i;if(i)n.push(i);else for(let a in t.marks){let l=t.marks[a];(r=="_"||l.spec.group&&l.spec.group.split(" ").indexOf(r)>-1)&&n.push(s=l)}if(!s)throw new SyntaxError("Unknown mark type: '"+e[o]+"'")}return n}function mFt(t){return t.tag!=null}function fFt(t){return t.style!=null}class Up{constructor(e,n){this.schema=e,this.rules=n,this.tags=[],this.styles=[];let o=this.matchedStyles=[];n.forEach(r=>{if(mFt(r))this.tags.push(r);else if(fFt(r)){let i=/[^=]*/.exec(r.style)[0];o.indexOf(i)<0&&o.push(i),this.styles.push(r)}}),this.normalizeLists=!this.tags.some(r=>{if(!/^(ul|ol)\b/.test(r.tag)||!r.node)return!1;let i=e.nodes[r.node];return i.contentMatch.matchType(i)})}parse(e,n={}){let o=new joe(this,n,!1);return o.addAll(e,Un.none,n.from,n.to),o.finish()}parseSlice(e,n={}){let o=new joe(this,n,!0);return o.addAll(e,Un.none,n.from,n.to),tt.maxOpen(o.finish())}matchTag(e,n,o){for(let r=o?this.tags.indexOf(o)+1:0;r<this.tags.length;r++){let i=this.tags[r];if(CFt(e,i.tag)&&(i.namespace===void 0||e.namespaceURI==i.namespace)&&(!i.context||n.matchesContext(i.context))){if(i.getAttrs){let s=i.getAttrs(e);if(s===!1)continue;i.attrs=s||void 0}return i}}}matchStyle(e,n,o,r){for(let i=r?this.styles.indexOf(r)+1:0;i<this.styles.length;i++){let s=this.styles[i],a=s.style;if(!(a.indexOf(e)!=0||s.context&&!o.matchesContext(s.context)||a.length>e.length&&(a.charCodeAt(e.length)!=61||a.slice(e.length+1)!=n))){if(s.getAttrs){let l=s.getAttrs(n);if(l===!1)continue;s.attrs=l||void 0}return s}}}static schemaRules(e){let n=[];function o(r){let i=r.priority==null?50:r.priority,s=0;for(;s<n.length;s++){let a=n[s];if((a.priority==null?50:a.priority)<i)break}n.splice(s,0,r)}for(let r in e.marks){let i=e.marks[r].spec.parseDOM;i&&i.forEach(s=>{o(s=Uoe(s)),s.mark||s.ignore||s.clearMark||(s.mark=r)})}for(let r in e.nodes){let i=e.nodes[r].spec.parseDOM;i&&i.forEach(s=>{o(s=Uoe(s)),s.node||s.ignore||s.mark||(s.node=r)})}return n}static fromSchema(e){return e.cached.domParser||(e.cached.domParser=new Up(e,Up.schemaRules(e)))}}const aFe={address:!0,article:!0,aside:!0,blockquote:!0,canvas:!0,dd:!0,div:!0,dl:!0,fieldset:!0,figcaption:!0,figure:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,li:!0,noscript:!0,ol:!0,output:!0,p:!0,pre:!0,section:!0,table:!0,tfoot:!0,ul:!0},pFt={head:!0,noscript:!0,object:!0,script:!0,style:!0,title:!0},lFe={ol:!0,ul:!0},bS=1,Y5=2,Lx=4;function zoe(t,e,n){return e!=null?(e?bS:0)|(e==="full"?Y5:0):t&&t.whitespace=="pre"?bS|Y5:n&~Lx}let VE=class{constructor(e,n,o,r,i,s){this.type=e,this.attrs=n,this.marks=o,this.solid=r,this.options=s,this.content=[],this.activeMarks=Un.none,this.match=i||(s&Lx?null:e.contentMatch)}findWrapping(e){if(!this.match){if(!this.type)return[];let n=this.type.contentMatch.fillBefore(We.from(e));if(n)this.match=this.type.contentMatch.matchFragment(n);else{let o=this.type.contentMatch,r;return(r=o.findWrapping(e.type))?(this.match=o,r):null}}return this.match.findWrapping(e.type)}finish(e){if(!(this.options&bS)){let o=this.content[this.content.length-1],r;if(o&&o.isText&&(r=/[ \t\r\n\u000c]+$/.exec(o.text))){let i=o;o.text.length==r[0].length?this.content.pop():this.content[this.content.length-1]=i.withText(i.text.slice(0,i.text.length-r[0].length))}}let n=We.from(this.content);return!e&&this.match&&(n=n.append(this.match.fillBefore(We.empty,!0))),this.type?this.type.create(this.attrs,n,this.marks):n}inlineContext(e){return this.type?this.type.inlineContent:this.content.length?this.content[0].isInline:e.parentNode&&!aFe.hasOwnProperty(e.parentNode.nodeName.toLowerCase())}},joe=class{constructor(e,n,o){this.parser=e,this.options=n,this.isOpen=o,this.open=0,this.localPreserveWS=!1;let r=n.topNode,i,s=zoe(null,n.preserveWhitespace,0)|(o?Lx:0);r?i=new VE(r.type,r.attrs,Un.none,!0,n.topMatch||r.type.contentMatch,s):o?i=new VE(null,null,Un.none,!0,null,s):i=new VE(e.schema.topNodeType,null,Un.none,!0,null,s),this.nodes=[i],this.find=n.findPositions,this.needsBlock=!1}get top(){return this.nodes[this.open]}addDOM(e,n){e.nodeType==3?this.addTextNode(e,n):e.nodeType==1&&this.addElement(e,n)}addTextNode(e,n){let o=e.nodeValue,r=this.top,i=r.options&Y5?"full":this.localPreserveWS||(r.options&bS)>0,{schema:s}=this.parser;if(i==="full"||r.inlineContext(e)||/[^ \t\r\n\u000c]/.test(o)){if(i)if(i==="full")o=o.replace(/\r\n?/g,`
197
197
  `);else if(s.linebreakReplacement&&/[\r\n]/.test(o)&&this.top.findWrapping(s.linebreakReplacement.create())){let a=o.split(/\r?\n|\r/);for(let l=0;l<a.length;l++)l&&this.insertNode(s.linebreakReplacement.create(),n,!0),a[l]&&this.insertNode(s.text(a[l]),n,!/\S/.test(a[l]));o=""}else o=o.replace(/\r?\n|\r/g," ");else if(o=o.replace(/[ \t\r\n\u000c]+/g," "),/^[ \t\r\n\u000c]/.test(o)&&this.open==this.nodes.length-1){let a=r.content[r.content.length-1],l=e.previousSibling;(!a||l&&l.nodeName=="BR"||a.isText&&/[ \t\r\n\u000c]$/.test(a.text))&&(o=o.slice(1))}o&&this.insertNode(s.text(o),n,!/\S/.test(o)),this.findInText(e)}else this.findInside(e)}addElement(e,n,o){let r=this.localPreserveWS,i=this.top;(e.tagName=="PRE"||/pre/.test(e.style&&e.style.whiteSpace))&&(this.localPreserveWS=!0);let s=e.nodeName.toLowerCase(),a;lFe.hasOwnProperty(s)&&this.parser.normalizeLists&&gFt(e);let l=this.options.ruleFromNode&&this.options.ruleFromNode(e)||(a=this.parser.matchTag(e,this,o));e:if(l?l.ignore:pFt.hasOwnProperty(s))this.findInside(e),this.ignoreFallback(e,n);else if(!l||l.skip||l.closeParent){l&&l.closeParent?this.open=Math.max(0,this.open-1):l&&l.skip.nodeType&&(e=l.skip);let u,c=this.needsBlock;if(aFe.hasOwnProperty(s))i.content.length&&i.content[0].isInline&&this.open&&(this.open--,i=this.top),u=!0,i.type||(this.needsBlock=!0);else if(!e.firstChild){this.leafFallback(e,n);break e}let d=l&&l.skip?n:this.readStyles(e,n);d&&this.addAll(e,d),u&&this.sync(i),this.needsBlock=c}else{let u=this.readStyles(e,n);u&&this.addElementByRule(e,l,u,l.consuming===!1?a:void 0)}this.localPreserveWS=r}leafFallback(e,n){e.nodeName=="BR"&&this.top.type&&this.top.type.inlineContent&&this.addTextNode(e.ownerDocument.createTextNode(`
@@ -376,4 +376,3 @@ ${m.slice(u+2)}`,d+=1;else break}e.push({indent:u,number:parseInt(a,10),content:
376
376
  `},renderMarkdown:()=>`
377
377
  `,parseMarkdown:()=>({type:"hardBreak"}),addCommands(){return{setHardBreak:()=>({commands:t,chain:e,state:n,editor:o})=>t.first([()=>t.exitCode(),()=>t.command(()=>{const{selection:r,storedMarks:i}=n;if(r.$from.parent.type.spec.isolating)return!1;const{keepMarks:s}=this.options,{splittableMarks:a}=o.extensionManager,l=i||r.$to.parentOffset&&r.$from.marks();return e().insertContent({type:this.name}).command(({tr:u,dispatch:c})=>{if(c&&l&&s){const d=l.filter(h=>a.includes(h.type.name));u.ensureMarks(d)}return!0}).run()})])}},addKeyboardShortcuts(){return{"Mod-Enter":()=>this.editor.commands.setHardBreak(),"Shift-Enter":()=>this.editor.commands.setHardBreak()}}});var yde={},bde={},vde={},Tde;function bO(){return Tde||(Tde=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.isNone=t.isSome=t.None=t.Some=t.OptionType=void 0,t.OptionType={Some:Symbol(":some"),None:Symbol(":none")};function e(s){return typeof s>"u"?o():n(s)}t.Some=e,t.None=o();function n(s){return{type:t.OptionType.Some,isSome(){return!0},isNone(){return!1},match(a){return a.some(s)},map(a){return n(a(s))},andThen(a){return a(s)},or(a){return this},and(a){return a},unwrapOr(a){return s},unwrap(){return s}}}function o(){return{type:t.OptionType.None,isSome(){return!1},isNone(){return!0},match(s){const{none:a}=s;return typeof a=="function"?a():a},map(s){return o()},andThen(s){return o()},or(s){return s},and(s){return o()},unwrapOr(s){if(s==null)throw new Error("Cannot call unwrapOr with a missing value.");return s},unwrap(){throw new ReferenceError("Trying to unwrap None.")}}}function r(s){return s.isSome()}t.isSome=r;function i(s){return s.isNone()}t.isNone=i})(vde)),vde}var xde;function Lnn(){return xde||(xde=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.isRight=t.isLeft=t.Right=t.Left=t.EitherType=void 0;const e=bO();t.EitherType={Left:Symbol(":left"),Right:Symbol(":right")};function n(s){return{type:t.EitherType.Left,isLeft(){return!0},isRight(){return!1},left(){return(0,e.Some)(s)},leftAndThen(a){return a(s)},right(){return e.None},rightAndThen(a){return n(s)},unwrap(){return s},unwrapLeft(){return s},unwrapLeftOr(a){return s},unwrapLeftOrElse(a){return s},unwrapRight(){throw new ReferenceError("Cannot unwrap Right value of Either.Left")},unwrapRightOr(a){return a},unwrapRightOrElse(a){return a(s)},match(a){return a.left(s)},map(a){return n(a(s))},mapLeft(a){return n(a(s))},mapRight(a){return n(s)}}}t.Left=n;function o(s){return{type:t.EitherType.Right,isLeft(){return!1},isRight(){return!0},left(){return e.None},leftAndThen(a){return o(s)},right(){return(0,e.Some)(s)},rightAndThen(a){return a(s)},unwrap(){return s},unwrapLeft(){throw new ReferenceError("Cannot unwrap Left value of Either.Right")},unwrapLeftOr(a){return a},unwrapLeftOrElse(a){return a(s)},unwrapRight(){return s},unwrapRightOr(a){return s},unwrapRightOrElse(a){return s},match(a){return a.right(s)},map(a){return o(a(s))},mapLeft(a){return o(s)},mapRight(a){return o(a(s))}}}t.Right=o;function r(s){return s.isLeft()}t.isLeft=r;function i(s){return s.isRight()}t.isRight=i})(bde)),bde}var Fde={},Sde;function $nn(){return Sde||(Sde=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.isErr=t.isOk=t.Err=t.Ok=t.ResultType=void 0;const e=bO();t.ResultType={Ok:Symbol(":ok"),Err:Symbol(":err")};function n(s){return{type:t.ResultType.Ok,isOk(){return!0},isErr(){return!1},ok(){return(0,e.Some)(s)},err(){return e.None},unwrap(){return s},unwrapOr(a){return s},unwrapOrElse(a){return s},unwrapErr(){throw new ReferenceError("Cannot unwrap Err value of Result.Ok")},match(a){return a.ok(s)},map(a){return n(a(s))},mapErr(a){return n(s)},andThen(a){return a(s)},orElse(a){return n(s)}}}t.Ok=n;function o(s){return{type:t.ResultType.Err,isOk(){return!1},isErr(){return!0},ok(){return e.None},err(){return(0,e.Some)(s)},unwrap(){throw new ReferenceError("Cannot unwrap Ok value of Result.Err")},unwrapOr(a){return a},unwrapOrElse(a){return a(s)},unwrapErr(){return s},match(a){return a.err(s)},map(a){return o(s)},mapErr(a){return o(a(s))},andThen(a){return o(s)},orElse(a){return a(s)}}}t.Err=o;function r(s){return s.isOk()}t.isOk=r;function i(s){return s.isErr()}t.isErr=i})(Fde)),Fde}var wde;function Vnn(){return wde||(wde=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.Ok=t.isOk=t.isErr=t.Err=t.Some=t.None=t.isSome=t.isNone=t.Right=t.Left=t.isRight=t.isLeft=void 0;var e=Lnn();Object.defineProperty(t,"isLeft",{enumerable:!0,get:function(){return e.isLeft}}),Object.defineProperty(t,"isRight",{enumerable:!0,get:function(){return e.isRight}}),Object.defineProperty(t,"Left",{enumerable:!0,get:function(){return e.Left}}),Object.defineProperty(t,"Right",{enumerable:!0,get:function(){return e.Right}});var n=bO();Object.defineProperty(t,"isNone",{enumerable:!0,get:function(){return n.isNone}}),Object.defineProperty(t,"isSome",{enumerable:!0,get:function(){return n.isSome}}),Object.defineProperty(t,"None",{enumerable:!0,get:function(){return n.None}}),Object.defineProperty(t,"Some",{enumerable:!0,get:function(){return n.Some}});var o=$nn();Object.defineProperty(t,"Err",{enumerable:!0,get:function(){return o.Err}}),Object.defineProperty(t,"isErr",{enumerable:!0,get:function(){return o.isErr}}),Object.defineProperty(t,"isOk",{enumerable:!0,get:function(){return o.isOk}}),Object.defineProperty(t,"Ok",{enumerable:!0,get:function(){return o.Ok}})})(yde)),yde}Vnn();function hy(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"px";if(t==null||t==="")return;const n=Number(t);return isNaN(n)?String(t):isFinite(n)?`${n}${e}`:void 0}function kde(t){let e;return t!==null&&typeof t=="object"&&((e=Object.getPrototypeOf(t))===Object.prototype||e===null)}function oH(t,e){return e.every(n=>t.hasOwnProperty(n))}function Mnn(t,e){const n={};for(const o of e)Object.prototype.hasOwnProperty.call(t,o)&&(n[o]=t[o]);return n}function Onn(t){return t==null?[]:Array.isArray(t)?t:[t]}function Ede(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 Inn(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;const n=[];let o=0;for(;o<t.length;)n.push(t.substr(o,e)),o+=e;return n}function b$e(){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 o={};for(const r in t)o[r]=t[r];for(const r in e){const i=t[r],s=e[r];if(kde(i)&&kde(s)){o[r]=b$e(i,s,n);continue}if(n&&Array.isArray(i)&&Array.isArray(s)){o[r]=n(i,s);continue}o[r]=s}return o}function kF(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";if(kF.cache.has(t))return kF.cache.get(t);const e=t.replace(/[^a-z]/gi,"-").replace(/\B([A-Z])/g,"-$1").toLowerCase();return kF.cache.set(t,e),e}kF.cache=new Map;function Pnn(t){const e=Vt({});Bo(()=>{const o=t();for(const r in o)e[r]=o[r]},{flush:"sync"});const n={};for(const o in e)n[o]=Me(()=>e[o]);return n}const my=2.4,_de=.2126729,Rde=.7151522,Dde=.072175,Wnn=.55,Hnn=.58,znn=.57,jnn=.62,X_=.03,Ade=1.45,Unn=5e-4,Knn=1.25,qnn=1.25,Nde=.078,Bde=12.82051282051282,Q_=.06,Lde=.001;function $de(t,e){const n=(t.r/255)**my,o=(t.g/255)**my,r=(t.b/255)**my,i=(e.r/255)**my,s=(e.g/255)**my,a=(e.b/255)**my;let l=n*_de+o*Rde+r*Dde,u=i*_de+s*Rde+a*Dde;if(l<=X_&&(l+=(X_-l)**Ade),u<=X_&&(u+=(X_-u)**Ade),Math.abs(u-l)<Unn)return 0;let c;if(u>l){const d=(u**Wnn-l**Hnn)*Knn;c=d<Lde?0:d<Nde?d-d*Bde*Q_:d-Q_}else{const d=(u**jnn-l**znn)*qnn;c=d>-Lde?0:d>-Nde?d-d*Bde*Q_:d+Q_}return c*100}function Nj(t){return!!t&&/^(#|var\(--|(rgb|hsl)a?\()/.test(t)}function Jnn(t){return Nj(t)&&!/^((rgb|hsl)a?\()?var\(--/.test(t)}const Vde=/^(?<fn>(?:rgb|hsl)a?)\((?<values>.+)\)/,Gnn={rgb:(t,e,n,o)=>({r:t,g:e,b:n,a:o}),rgba:(t,e,n,o)=>({r:t,g:e,b:n,a:o}),hsl:(t,e,n,o)=>Mde({h:t,s:e,l:n,a:o}),hsla:(t,e,n,o)=>Mde({h:t,s:e,l:n,a:o}),hsv:(t,e,n,o)=>iw({h:t,s:e,v:n,a:o}),hsva:(t,e,n,o)=>iw({h:t,s:e,v:n,a:o})};function KT(t){if(typeof t=="number")return{r:(t&16711680)>>16,g:(t&65280)>>8,b:t&255};if(typeof t=="string"&&Vde.test(t)){const{groups:e}=t.match(Vde),{fn:n,values:o}=e,r=o.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 Gnn[n](...r)}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,Ynn(e)}else if(typeof t=="object"){if(oH(t,["r","g","b"]))return t;if(oH(t,["h","s","l"]))return iw(v$e(t));if(oH(t,["h","s","v"]))return iw(t)}throw new TypeError(`Invalid color: ${t==null?t:String(t)||t.constructor.name}
378
378
  Expected #hex, #hexa, rgb(), rgba(), hsl(), hsla(), object or number`)}function iw(t){const{h:e,s:n,v:o,a:r}=t,i=a=>{const l=(a+e/60)%6;return o-o*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:r}}function Mde(t){return iw(v$e(t))}function v$e(t){const{h:e,s:n,l:o,a:r}=t,i=o+n*Math.min(o,1-o),s=i===0?0:2-2*o/i;return{h:e,s,v:i,a:r}}function Ynn(t){t=Xnn(t);let[e,n,o,r]=Inn(t,2).map(i=>parseInt(i,16));return r=r===void 0?r:r/255,{r:e,g:n,b:o,a:r}}function Xnn(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=Ede(Ede(t,6),8,"F")),t}function Qnn(t){const e=Math.abs($de(KT(0),KT(t)));return Math.abs($de(KT(16777215),KT(t)))>Math.min(e,50)?"#fff":"#000"}function Ck(t,e){return n=>Object.keys(t).reduce((o,r)=>{const i=typeof t[r]=="object"&&t[r]!=null&&!Array.isArray(t[r])?t[r]:{type:t[r]};return n&&r in n?o[r]={...i,default:n[r]}:o[r]=i,e&&!o[r].source&&(o[r].source=e),o},{})}function vO(t,e){const n=ss();if(!n)throw new Error(`[Vuetify] ${t} must be called from inside a setup function`);return n}function Znn(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:vO("injectSelf");const{provides:n}=e;if(n&&t in n)return n[t]}const Bj=Symbol.for("vuetify:defaults");function T$e(){const t=ln(Bj);if(!t)throw new Error("[Vuetify] Could not find defaults instance");return t}function eon(t,e){return t.props&&(typeof t.props[e]<"u"||typeof t.props[kF(e)]<"u")}function ton(){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]:T$e();const o=vO("useDefaults");if(e=e??o.type.name??o.type.__name,!e)throw new Error("[Vuetify] Could not determine component name");const r=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[r.value?.[u],c].filter(m=>m!=null);if(eon(o.vnode,u))return c;const d=r.value?.[u];if(d!==void 0)return d;const h=n.value?.global?.[u];return h!==void 0?h:c}}),s=Sn();Bo(()=>{if(r.value){const l=Object.entries(r.value).filter(u=>{let[c]=u;return c.startsWith(c[0].toUpperCase())});s.value=l.length?Object.fromEntries(l):void 0}else s.value=void 0});function a(){const l=Znn(Bj,o);vo(Bj,q(()=>s.value?b$e(l?.value??{},s.value):l?.value))}return{props:i,provideSubDefaults:a}}function non(t){if(t._setup=t._setup??t.setup,!t.name)return t;if(t._setup){t.props=Ck(t.props??{},t.name)();const e=Object.keys(t.props).filter(n=>n!=="class"&&n!=="style");t.filterProps=function(n){return Mnn(n,e)},t.props._as=String,t.setup=function(n,o){const r=T$e();if(!r.value)return t._setup(n,o);const{props:i,provideSubDefaults:s}=ton(n,n._as??t.name,r),a=t._setup(i,o);return s(),a}}return t}function oon(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return e=>(t?non:Xe)(e)}function ron(t){const e=vO("useRender");e.render=t}function ion(t){return Pnn(()=>{const{class:e,style:n}=aon(t);return{colorClasses:e,colorStyles:n}})}function son(t){const{colorClasses:e,colorStyles:n}=ion(()=>({background:Qo(t)}));return{backgroundColorClasses:e,backgroundColorStyles:n}}function aon(t){const e=Qo(t),n=[],o={};if(e.background)if(Nj(e.background)){if(o.backgroundColor=e.background,!e.text&&Jnn(e.background)){const r=KT(e.background);if(r.a==null||r.a===1){const i=Qnn(r);o.color=i,o.caretColor=i}}}else n.push(`bg-${e.background}`);return e.text&&(Nj(e.text)?(o.color=e.text,o.caretColor=e.text):n.push(`text-${e.text}`)),{class:n,style:o}}const lon=Ck({height:[Number,String],maxHeight:[Number,String],maxWidth:[Number,String],minHeight:[Number,String],minWidth:[Number,String],width:[Number,String]},"dimension");function uon(t){return{dimensionStyles:q(()=>{const e={},n=hy(t.height),o=hy(t.maxHeight),r=hy(t.maxWidth),i=hy(t.minHeight),s=hy(t.minWidth),a=hy(t.width);return n!=null&&(e.height=n),o!=null&&(e.maxHeight=o),r!=null&&(e.maxWidth=r),i!=null&&(e.minHeight=i),s!=null&&(e.minWidth=s),a!=null&&(e.width=a),e})}}const con=Ck({elevation:{type:[Number,String],validator(t){const e=parseInt(t);return!isNaN(e)&&e>=0&&e<=24}}},"elevation");function don(t){return{elevationClasses:Me(()=>{const e=vn(t)?t.value:t.elevation;return e==null?[]:[`elevation-${e}`]})}}const hon=Symbol.for("vuetify:locale");function mon(){const t=ln(hon);if(!t)throw new Error("[Vuetify] Could not find injected locale instance");return t}const Ode=Symbol.for("vuetify:theme"),fon=Ck({theme:String},"theme");function pon(t){vO("provideTheme");const e=ln(Ode,null);if(!e)throw new Error("Could not find Vuetify theme injection");const n=Me(()=>t.theme??e.name.value),o=Me(()=>e.themes.value[n.value]),r=Me(()=>e.isDisabled?void 0:`${e.prefix}theme--${n.value}`),i={...e,name:n,current:o,themeClasses:r};return vo(Ode,i),i}const gon={actions:"button@2",article:"heading, paragraph",avatar:"avatar",button:"button",card:"image, heading","card-avatar":"image, list-item-avatar",chip:"chip","date-picker":"list-item, heading, divider, date-picker-options, date-picker-days, actions","date-picker-options":"text, avatar@2","date-picker-days":"avatar@28",divider:"divider",heading:"heading",image:"image","list-item":"text","list-item-avatar":"avatar, text","list-item-two-line":"sentences","list-item-avatar-two-line":"avatar, sentences","list-item-three-line":"paragraph","list-item-avatar-three-line":"avatar, paragraph",ossein:"ossein",paragraph:"text@3",sentences:"text@2",subtitle:"text",table:"table-heading, table-thead, table-tbody, table-tfoot","table-heading":"chip, text","table-thead":"heading@6","table-tbody":"table-row-divider@6","table-row-divider":"table-row, divider","table-row":"text@6","table-tfoot":"text@2, avatar@2",text:"text"};function Con(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return _("div",{class:$e(["v-skeleton-loader__bone",`v-skeleton-loader__${t}`])},[e])}function Ide(t){const[e,n]=t.split("@");return Array.from({length:n}).map(()=>TO(e))}function TO(t){let e=[];if(!t)return e;const n=gon[t];if(t!==n){if(t.includes(","))return Pde(t);if(t.includes("@"))return Ide(t);n.includes(",")?e=Pde(n):n.includes("@")?e=Ide(n):n&&e.push(TO(n))}return[Con(t,e)]}function Pde(t){return t.replace(/\s/g,"").split(",").map(TO)}const yon=Ck({boilerplate:Boolean,color:String,loading:Boolean,loadingText:{type:String,default:"$vuetify.loading"},type:{type:[String,Array],default:"ossein"},...lon(),...con(),...fon()},"VSkeletonLoader");oon()({name:"VSkeletonLoader",inheritAttrs:!1,props:yon(),setup(t,e){let{attrs:n,slots:o}=e;const{backgroundColorClasses:r,backgroundColorStyles:i}=son(()=>t.color),{dimensionStyles:s}=uon(t),{elevationClasses:a}=don(t),{themeClasses:l}=pon(t),{t:u}=mon(),c=q(()=>TO(Onn(t.type).join(",")));return ron(()=>{const d=!o.default||t.loading,h=t.boilerplate||!d?{}:{ariaLive:"polite",ariaLabel:u(t.loadingText),role:"alert"};return d?_("div",Dr({class:["v-skeleton-loader",{"v-skeleton-loader--boilerplate":t.boilerplate},l.value,r.value,a.value],style:[i.value,s.value]},h,n),[c.value]):_(rt,null,[o.default?.()])}),{}}});var bi="top",Xs="bottom",Qs="right",vi="left",xO="auto",Xv=[bi,Xs,Qs,vi],Qg="start",av="end",x$e="clippingParents",eG="viewport",d0="popper",F$e="reference",Lj=Xv.reduce(function(t,e){return t.concat([e+"-"+Qg,e+"-"+av])},[]),tG=[].concat(Xv,[xO]).reduce(function(t,e){return t.concat([e,e+"-"+Qg,e+"-"+av])},[]),S$e="beforeRead",w$e="read",k$e="afterRead",E$e="beforeMain",_$e="main",R$e="afterMain",D$e="beforeWrite",A$e="write",N$e="afterWrite",B$e=[S$e,w$e,k$e,E$e,_$e,R$e,D$e,A$e,N$e];function Gu(t){return t?(t.nodeName||"").toLowerCase():null}function Zs(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function Zg(t){var e=Zs(t).Element;return t instanceof e||t instanceof Element}function Aa(t){var e=Zs(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}function nG(t){if(typeof ShadowRoot>"u")return!1;var e=Zs(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}function bon(t){var e=t.state;Object.keys(e.elements).forEach(function(n){var o=e.styles[n]||{},r=e.attributes[n]||{},i=e.elements[n];!Aa(i)||!Gu(i)||(Object.assign(i.style,o),Object.keys(r).forEach(function(s){var a=r[s];a===!1?i.removeAttribute(s):i.setAttribute(s,a===!0?"":a)}))})}function von(t){var e=t.state,n={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,n.popper),e.styles=n,e.elements.arrow&&Object.assign(e.elements.arrow.style,n.arrow),function(){Object.keys(e.elements).forEach(function(o){var r=e.elements[o],i=e.attributes[o]||{},s=Object.keys(e.styles.hasOwnProperty(o)?e.styles[o]:n[o]),a=s.reduce(function(l,u){return l[u]="",l},{});!Aa(r)||!Gu(r)||(Object.assign(r.style,a),Object.keys(i).forEach(function(l){r.removeAttribute(l)}))})}}const oG={name:"applyStyles",enabled:!0,phase:"write",fn:bon,effect:von,requires:["computeStyles"]};function Au(t){return t.split("-")[0]}var yg=Math.max,q$=Math.min,lv=Math.round;function $j(){var t=navigator.userAgentData;return t!=null&&t.brands&&Array.isArray(t.brands)?t.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function L$e(){return!/^((?!chrome|android).)*safari/i.test($j())}function uv(t,e,n){e===void 0&&(e=!1),n===void 0&&(n=!1);var o=t.getBoundingClientRect(),r=1,i=1;e&&Aa(t)&&(r=t.offsetWidth>0&&lv(o.width)/t.offsetWidth||1,i=t.offsetHeight>0&&lv(o.height)/t.offsetHeight||1);var s=Zg(t)?Zs(t):window,a=s.visualViewport,l=!L$e()&&n,u=(o.left+(l&&a?a.offsetLeft:0))/r,c=(o.top+(l&&a?a.offsetTop:0))/i,d=o.width/r,h=o.height/i;return{width:d,height:h,top:c,right:u+d,bottom:c+h,left:u,x:u,y:c}}function rG(t){var e=uv(t),n=t.offsetWidth,o=t.offsetHeight;return Math.abs(e.width-n)<=1&&(n=e.width),Math.abs(e.height-o)<=1&&(o=e.height),{x:t.offsetLeft,y:t.offsetTop,width:n,height:o}}function $$e(t,e){var n=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(n&&nG(n)){var o=e;do{if(o&&t.isSameNode(o))return!0;o=o.parentNode||o.host}while(o)}return!1}function vd(t){return Zs(t).getComputedStyle(t)}function Ton(t){return["table","td","th"].indexOf(Gu(t))>=0}function Sf(t){return((Zg(t)?t.ownerDocument:t.document)||window.document).documentElement}function FO(t){return Gu(t)==="html"?t:t.assignedSlot||t.parentNode||(nG(t)?t.host:null)||Sf(t)}function Wde(t){return!Aa(t)||vd(t).position==="fixed"?null:t.offsetParent}function xon(t){var e=/firefox/i.test($j()),n=/Trident/i.test($j());if(n&&Aa(t)){var o=vd(t);if(o.position==="fixed")return null}var r=FO(t);for(nG(r)&&(r=r.host);Aa(r)&&["html","body"].indexOf(Gu(r))<0;){var i=vd(r);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||e&&i.willChange==="filter"||e&&i.filter&&i.filter!=="none")return r;r=r.parentNode}return null}function yk(t){for(var e=Zs(t),n=Wde(t);n&&Ton(n)&&vd(n).position==="static";)n=Wde(n);return n&&(Gu(n)==="html"||Gu(n)==="body"&&vd(n).position==="static")?e:n||xon(t)||e}function iG(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function EF(t,e,n){return yg(t,q$(e,n))}function Fon(t,e,n){var o=EF(t,e,n);return o>n?n:o}function V$e(){return{top:0,right:0,bottom:0,left:0}}function M$e(t){return Object.assign({},V$e(),t)}function O$e(t,e){return e.reduce(function(n,o){return n[o]=t,n},{})}var Son=function(t,e){return t=typeof t=="function"?t(Object.assign({},e.rects,{placement:e.placement})):t,M$e(typeof t!="number"?t:O$e(t,Xv))};function won(t){var e,n=t.state,o=t.name,r=t.options,i=n.elements.arrow,s=n.modifiersData.popperOffsets,a=Au(n.placement),l=iG(a),u=[vi,Qs].indexOf(a)>=0,c=u?"height":"width";if(!(!i||!s)){var d=Son(r.padding,n),h=rG(i),m=l==="y"?bi:vi,f=l==="y"?Xs:Qs,p=n.rects.reference[c]+n.rects.reference[l]-s[l]-n.rects.popper[c],g=s[l]-n.rects.reference[l],y=yk(i),b=y?l==="y"?y.clientHeight||0:y.clientWidth||0:0,F=p/2-g/2,v=d[m],T=b-h[c]-d[f],w=b/2-h[c]/2+F,k=EF(v,w,T),R=l;n.modifiersData[o]=(e={},e[R]=k,e.centerOffset=k-w,e)}}function kon(t){var e=t.state,n=t.options,o=n.element,r=o===void 0?"[data-popper-arrow]":o;r!=null&&(typeof r=="string"&&(r=e.elements.popper.querySelector(r),!r)||$$e(e.elements.popper,r)&&(e.elements.arrow=r))}const I$e={name:"arrow",enabled:!0,phase:"main",fn:won,effect:kon,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function cv(t){return t.split("-")[1]}var Eon={top:"auto",right:"auto",bottom:"auto",left:"auto"};function _on(t,e){var n=t.x,o=t.y,r=e.devicePixelRatio||1;return{x:lv(n*r)/r||0,y:lv(o*r)/r||0}}function Hde(t){var e,n=t.popper,o=t.popperRect,r=t.placement,i=t.variation,s=t.offsets,a=t.position,l=t.gpuAcceleration,u=t.adaptive,c=t.roundOffsets,d=t.isFixed,h=s.x,m=h===void 0?0:h,f=s.y,p=f===void 0?0:f,g=typeof c=="function"?c({x:m,y:p}):{x:m,y:p};m=g.x,p=g.y;var y=s.hasOwnProperty("x"),b=s.hasOwnProperty("y"),F=vi,v=bi,T=window;if(u){var w=yk(n),k="clientHeight",R="clientWidth";if(w===Zs(n)&&(w=Sf(n),vd(w).position!=="static"&&a==="absolute"&&(k="scrollHeight",R="scrollWidth")),w=w,r===bi||(r===vi||r===Qs)&&i===av){v=Xs;var D=d&&w===T&&T.visualViewport?T.visualViewport.height:w[k];p-=D-o.height,p*=l?1:-1}if(r===vi||(r===bi||r===Xs)&&i===av){F=Qs;var V=d&&w===T&&T.visualViewport?T.visualViewport.width:w[R];m-=V-o.width,m*=l?1:-1}}var E=Object.assign({position:a},u&&Eon),A=c===!0?_on({x:m,y:p},Zs(n)):{x:m,y:p};if(m=A.x,p=A.y,l){var N;return Object.assign({},E,(N={},N[v]=b?"0":"",N[F]=y?"0":"",N.transform=(T.devicePixelRatio||1)<=1?"translate("+m+"px, "+p+"px)":"translate3d("+m+"px, "+p+"px, 0)",N))}return Object.assign({},E,(e={},e[v]=b?p+"px":"",e[F]=y?m+"px":"",e.transform="",e))}function Ron(t){var e=t.state,n=t.options,o=n.gpuAcceleration,r=o===void 0?!0:o,i=n.adaptive,s=i===void 0?!0:i,a=n.roundOffsets,l=a===void 0?!0:a,u={placement:Au(e.placement),variation:cv(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:r,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,Hde(Object.assign({},u,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:s,roundOffsets:l})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,Hde(Object.assign({},u,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}const sG={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Ron,data:{}};var Z_={passive:!0};function Don(t){var e=t.state,n=t.instance,o=t.options,r=o.scroll,i=r===void 0?!0:r,s=o.resize,a=s===void 0?!0:s,l=Zs(e.elements.popper),u=[].concat(e.scrollParents.reference,e.scrollParents.popper);return i&&u.forEach(function(c){c.addEventListener("scroll",n.update,Z_)}),a&&l.addEventListener("resize",n.update,Z_),function(){i&&u.forEach(function(c){c.removeEventListener("scroll",n.update,Z_)}),a&&l.removeEventListener("resize",n.update,Z_)}}const aG={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Don,data:{}};var Aon={left:"right",right:"left",bottom:"top",top:"bottom"};function wD(t){return t.replace(/left|right|bottom|top/g,function(e){return Aon[e]})}var Non={start:"end",end:"start"};function zde(t){return t.replace(/start|end/g,function(e){return Non[e]})}function lG(t){var e=Zs(t),n=e.pageXOffset,o=e.pageYOffset;return{scrollLeft:n,scrollTop:o}}function uG(t){return uv(Sf(t)).left+lG(t).scrollLeft}function Bon(t,e){var n=Zs(t),o=Sf(t),r=n.visualViewport,i=o.clientWidth,s=o.clientHeight,a=0,l=0;if(r){i=r.width,s=r.height;var u=L$e();(u||!u&&e==="fixed")&&(a=r.offsetLeft,l=r.offsetTop)}return{width:i,height:s,x:a+uG(t),y:l}}function Lon(t){var e,n=Sf(t),o=lG(t),r=(e=t.ownerDocument)==null?void 0:e.body,i=yg(n.scrollWidth,n.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),s=yg(n.scrollHeight,n.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),a=-o.scrollLeft+uG(t),l=-o.scrollTop;return vd(r||n).direction==="rtl"&&(a+=yg(n.clientWidth,r?r.clientWidth:0)-i),{width:i,height:s,x:a,y:l}}function cG(t){var e=vd(t),n=e.overflow,o=e.overflowX,r=e.overflowY;return/auto|scroll|overlay|hidden/.test(n+r+o)}function P$e(t){return["html","body","#document"].indexOf(Gu(t))>=0?t.ownerDocument.body:Aa(t)&&cG(t)?t:P$e(FO(t))}function _F(t,e){var n;e===void 0&&(e=[]);var o=P$e(t),r=o===((n=t.ownerDocument)==null?void 0:n.body),i=Zs(o),s=r?[i].concat(i.visualViewport||[],cG(o)?o:[]):o,a=e.concat(s);return r?a:a.concat(_F(FO(s)))}function Vj(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function $on(t,e){var n=uv(t,!1,e==="fixed");return n.top=n.top+t.clientTop,n.left=n.left+t.clientLeft,n.bottom=n.top+t.clientHeight,n.right=n.left+t.clientWidth,n.width=t.clientWidth,n.height=t.clientHeight,n.x=n.left,n.y=n.top,n}function jde(t,e,n){return e===eG?Vj(Bon(t,n)):Zg(e)?$on(e,n):Vj(Lon(Sf(t)))}function Von(t){var e=_F(FO(t)),n=["absolute","fixed"].indexOf(vd(t).position)>=0,o=n&&Aa(t)?yk(t):t;return Zg(o)?e.filter(function(r){return Zg(r)&&$$e(r,o)&&Gu(r)!=="body"}):[]}function Mon(t,e,n,o){var r=e==="clippingParents"?Von(t):[].concat(e),i=[].concat(r,[n]),s=i[0],a=i.reduce(function(l,u){var c=jde(t,u,o);return l.top=yg(c.top,l.top),l.right=q$(c.right,l.right),l.bottom=q$(c.bottom,l.bottom),l.left=yg(c.left,l.left),l},jde(t,s,o));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function W$e(t){var e=t.reference,n=t.element,o=t.placement,r=o?Au(o):null,i=o?cv(o):null,s=e.x+e.width/2-n.width/2,a=e.y+e.height/2-n.height/2,l;switch(r){case bi:l={x:s,y:e.y-n.height};break;case Xs:l={x:s,y:e.y+e.height};break;case Qs:l={x:e.x+e.width,y:a};break;case vi:l={x:e.x-n.width,y:a};break;default:l={x:e.x,y:e.y}}var u=r?iG(r):null;if(u!=null){var c=u==="y"?"height":"width";switch(i){case Qg:l[u]=l[u]-(e[c]/2-n[c]/2);break;case av:l[u]=l[u]+(e[c]/2-n[c]/2);break}}return l}function dv(t,e){e===void 0&&(e={});var n=e,o=n.placement,r=o===void 0?t.placement:o,i=n.strategy,s=i===void 0?t.strategy:i,a=n.boundary,l=a===void 0?x$e:a,u=n.rootBoundary,c=u===void 0?eG:u,d=n.elementContext,h=d===void 0?d0:d,m=n.altBoundary,f=m===void 0?!1:m,p=n.padding,g=p===void 0?0:p,y=M$e(typeof g!="number"?g:O$e(g,Xv)),b=h===d0?F$e:d0,F=t.rects.popper,v=t.elements[f?b:h],T=Mon(Zg(v)?v:v.contextElement||Sf(t.elements.popper),l,c,s),w=uv(t.elements.reference),k=W$e({reference:w,element:F,placement:r}),R=Vj(Object.assign({},F,k)),D=h===d0?R:w,V={top:T.top-D.top+y.top,bottom:D.bottom-T.bottom+y.bottom,left:T.left-D.left+y.left,right:D.right-T.right+y.right},E=t.modifiersData.offset;if(h===d0&&E){var A=E[r];Object.keys(V).forEach(function(N){var I=[Qs,Xs].indexOf(N)>=0?1:-1,M=[bi,Xs].indexOf(N)>=0?"y":"x";V[N]+=A[M]*I})}return V}function Oon(t,e){e===void 0&&(e={});var n=e,o=n.placement,r=n.boundary,i=n.rootBoundary,s=n.padding,a=n.flipVariations,l=n.allowedAutoPlacements,u=l===void 0?tG:l,c=cv(o),d=c?a?Lj:Lj.filter(function(f){return cv(f)===c}):Xv,h=d.filter(function(f){return u.indexOf(f)>=0});h.length===0&&(h=d);var m=h.reduce(function(f,p){return f[p]=dv(t,{placement:p,boundary:r,rootBoundary:i,padding:s})[Au(p)],f},{});return Object.keys(m).sort(function(f,p){return m[f]-m[p]})}function Ion(t){if(Au(t)===xO)return[];var e=wD(t);return[zde(t),e,zde(e)]}function Pon(t){var e=t.state,n=t.options,o=t.name;if(!e.modifiersData[o]._skip){for(var r=n.mainAxis,i=r===void 0?!0:r,s=n.altAxis,a=s===void 0?!0:s,l=n.fallbackPlacements,u=n.padding,c=n.boundary,d=n.rootBoundary,h=n.altBoundary,m=n.flipVariations,f=m===void 0?!0:m,p=n.allowedAutoPlacements,g=e.options.placement,y=Au(g),b=y===g,F=l||(b||!f?[wD(g)]:Ion(g)),v=[g].concat(F).reduce(function(He,P){return He.concat(Au(P)===xO?Oon(e,{placement:P,boundary:c,rootBoundary:d,padding:u,flipVariations:f,allowedAutoPlacements:p}):P)},[]),T=e.rects.reference,w=e.rects.popper,k=new Map,R=!0,D=v[0],V=0;V<v.length;V++){var E=v[V],A=Au(E),N=cv(E)===Qg,I=[bi,Xs].indexOf(A)>=0,M=I?"width":"height",$=dv(e,{placement:E,boundary:c,rootBoundary:d,altBoundary:h,padding:u}),H=I?N?Qs:vi:N?Xs:bi;T[M]>w[M]&&(H=wD(H));var ke=wD(H),Oe=[];if(i&&Oe.push($[A]<=0),a&&Oe.push($[H]<=0,$[ke]<=0),Oe.every(function(He){return He})){D=E,R=!1;break}k.set(E,Oe)}if(R)for(var ve=f?3:1,K=function(He){var P=v.find(function(Ee){var ae=k.get(Ee);if(ae)return ae.slice(0,He).every(function(ne){return ne})});if(P)return D=P,"break"},Pe=ve;Pe>0;Pe--){var Y=K(Pe);if(Y==="break")break}e.placement!==D&&(e.modifiersData[o]._skip=!0,e.placement=D,e.reset=!0)}}const H$e={name:"flip",enabled:!0,phase:"main",fn:Pon,requiresIfExists:["offset"],data:{_skip:!1}};function Ude(t,e,n){return n===void 0&&(n={x:0,y:0}),{top:t.top-e.height-n.y,right:t.right-e.width+n.x,bottom:t.bottom-e.height+n.y,left:t.left-e.width-n.x}}function Kde(t){return[bi,Qs,Xs,vi].some(function(e){return t[e]>=0})}function Won(t){var e=t.state,n=t.name,o=e.rects.reference,r=e.rects.popper,i=e.modifiersData.preventOverflow,s=dv(e,{elementContext:"reference"}),a=dv(e,{altBoundary:!0}),l=Ude(s,o),u=Ude(a,r,i),c=Kde(l),d=Kde(u);e.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:d},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":d})}const z$e={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Won};function Hon(t,e,n){var o=Au(t),r=[vi,bi].indexOf(o)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},e,{placement:t})):n,s=i[0],a=i[1];return s=s||0,a=(a||0)*r,[vi,Qs].indexOf(o)>=0?{x:a,y:s}:{x:s,y:a}}function zon(t){var e=t.state,n=t.options,o=t.name,r=n.offset,i=r===void 0?[0,0]:r,s=tG.reduce(function(c,d){return c[d]=Hon(d,e.rects,i),c},{}),a=s[e.placement],l=a.x,u=a.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=l,e.modifiersData.popperOffsets.y+=u),e.modifiersData[o]=s}const j$e={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:zon};function jon(t){var e=t.state,n=t.name;e.modifiersData[n]=W$e({reference:e.rects.reference,element:e.rects.popper,placement:e.placement})}const dG={name:"popperOffsets",enabled:!0,phase:"read",fn:jon,data:{}};function Uon(t){return t==="x"?"y":"x"}function Kon(t){var e=t.state,n=t.options,o=t.name,r=n.mainAxis,i=r===void 0?!0:r,s=n.altAxis,a=s===void 0?!1:s,l=n.boundary,u=n.rootBoundary,c=n.altBoundary,d=n.padding,h=n.tether,m=h===void 0?!0:h,f=n.tetherOffset,p=f===void 0?0:f,g=dv(e,{boundary:l,rootBoundary:u,padding:d,altBoundary:c}),y=Au(e.placement),b=cv(e.placement),F=!b,v=iG(y),T=Uon(v),w=e.modifiersData.popperOffsets,k=e.rects.reference,R=e.rects.popper,D=typeof p=="function"?p(Object.assign({},e.rects,{placement:e.placement})):p,V=typeof D=="number"?{mainAxis:D,altAxis:D}:Object.assign({mainAxis:0,altAxis:0},D),E=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,A={x:0,y:0};if(w){if(i){var N,I=v==="y"?bi:vi,M=v==="y"?Xs:Qs,$=v==="y"?"height":"width",H=w[v],ke=H+g[I],Oe=H-g[M],ve=m?-R[$]/2:0,K=b===Qg?k[$]:R[$],Pe=b===Qg?-R[$]:-k[$],Y=e.elements.arrow,He=m&&Y?rG(Y):{width:0,height:0},P=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:V$e(),Ee=P[I],ae=P[M],ne=EF(0,k[$],He[$]),wt=F?k[$]/2-ve-ne-Ee-V.mainAxis:K-ne-Ee-V.mainAxis,Tt=F?-k[$]/2+ve+ne+ae+V.mainAxis:Pe+ne+ae+V.mainAxis,xt=e.elements.arrow&&yk(e.elements.arrow),B=xt?v==="y"?xt.clientTop||0:xt.clientLeft||0:0,L=(N=E?.[v])!=null?N:0,j=H+wt-L-B,G=H+Tt-L,Q=EF(m?q$(ke,j):ke,H,m?yg(Oe,G):Oe);w[v]=Q,A[v]=Q-H}if(a){var Z,te=v==="x"?bi:vi,oe=v==="x"?Xs:Qs,U=w[T],X=T==="y"?"height":"width",Ve=U+g[te],ce=U-g[oe],ue=[bi,vi].indexOf(y)!==-1,de=(Z=E?.[T])!=null?Z:0,Te=ue?Ve:U-k[X]-R[X]-de+V.altAxis,le=ue?U+k[X]+R[X]-de-V.altAxis:ce,ze=m&&ue?Fon(Te,U,le):EF(m?Te:Ve,U,m?le:ce);w[T]=ze,A[T]=ze-U}e.modifiersData[o]=A}}const U$e={name:"preventOverflow",enabled:!0,phase:"main",fn:Kon,requiresIfExists:["offset"]};function qon(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function Jon(t){return t===Zs(t)||!Aa(t)?lG(t):qon(t)}function Gon(t){var e=t.getBoundingClientRect(),n=lv(e.width)/t.offsetWidth||1,o=lv(e.height)/t.offsetHeight||1;return n!==1||o!==1}function Yon(t,e,n){n===void 0&&(n=!1);var o=Aa(e),r=Aa(e)&&Gon(e),i=Sf(e),s=uv(t,r,n),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(o||!o&&!n)&&((Gu(e)!=="body"||cG(i))&&(a=Jon(e)),Aa(e)?(l=uv(e,!0),l.x+=e.clientLeft,l.y+=e.clientTop):i&&(l.x=uG(i))),{x:s.left+a.scrollLeft-l.x,y:s.top+a.scrollTop-l.y,width:s.width,height:s.height}}function Xon(t){var e=new Map,n=new Set,o=[];t.forEach(function(i){e.set(i.name,i)});function r(i){n.add(i.name);var s=[].concat(i.requires||[],i.requiresIfExists||[]);s.forEach(function(a){if(!n.has(a)){var l=e.get(a);l&&r(l)}}),o.push(i)}return t.forEach(function(i){n.has(i.name)||r(i)}),o}function Qon(t){var e=Xon(t);return B$e.reduce(function(n,o){return n.concat(e.filter(function(r){return r.phase===o}))},[])}function Zon(t){var e;return function(){return e||(e=new Promise(function(n){Promise.resolve().then(function(){e=void 0,n(t())})})),e}}function ern(t){var e=t.reduce(function(n,o){var r=n[o.name];return n[o.name]=r?Object.assign({},r,o,{options:Object.assign({},r.options,o.options),data:Object.assign({},r.data,o.data)}):o,n},{});return Object.keys(e).map(function(n){return e[n]})}var qde={placement:"bottom",modifiers:[],strategy:"absolute"};function Jde(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return!e.some(function(o){return!(o&&typeof o.getBoundingClientRect=="function")})}function SO(t){t===void 0&&(t={});var e=t,n=e.defaultModifiers,o=n===void 0?[]:n,r=e.defaultOptions,i=r===void 0?qde:r;return function(s,a,l){l===void 0&&(l=i);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},qde,i),modifiersData:{},elements:{reference:s,popper:a},attributes:{},styles:{}},c=[],d=!1,h={state:u,setOptions:function(p){var g=typeof p=="function"?p(u.options):p;f(),u.options=Object.assign({},i,u.options,g),u.scrollParents={reference:Zg(s)?_F(s):s.contextElement?_F(s.contextElement):[],popper:_F(a)};var y=Qon(ern([].concat(o,u.options.modifiers)));return u.orderedModifiers=y.filter(function(b){return b.enabled}),m(),h.update()},forceUpdate:function(){if(!d){var p=u.elements,g=p.reference,y=p.popper;if(Jde(g,y)){u.rects={reference:Yon(g,yk(y),u.options.strategy==="fixed"),popper:rG(y)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach(function(R){return u.modifiersData[R.name]=Object.assign({},R.data)});for(var b=0;b<u.orderedModifiers.length;b++){if(u.reset===!0){u.reset=!1,b=-1;continue}var F=u.orderedModifiers[b],v=F.fn,T=F.options,w=T===void 0?{}:T,k=F.name;typeof v=="function"&&(u=v({state:u,options:w,name:k,instance:h})||u)}}}},update:Zon(function(){return new Promise(function(p){h.forceUpdate(),p(u)})}),destroy:function(){f(),d=!0}};if(!Jde(s,a))return h;h.setOptions(l).then(function(p){!d&&l.onFirstUpdate&&l.onFirstUpdate(p)});function m(){u.orderedModifiers.forEach(function(p){var g=p.name,y=p.options,b=y===void 0?{}:y,F=p.effect;if(typeof F=="function"){var v=F({state:u,name:g,instance:h,options:b}),T=function(){};c.push(v||T)}})}function f(){c.forEach(function(p){return p()}),c=[]}return h}}var trn=SO(),nrn=[aG,dG,sG,oG],orn=SO({defaultModifiers:nrn}),rrn=[aG,dG,sG,oG,j$e,H$e,U$e,I$e,z$e],hG=SO({defaultModifiers:rrn});const K$e=Object.freeze(Object.defineProperty({__proto__:null,afterMain:R$e,afterRead:k$e,afterWrite:N$e,applyStyles:oG,arrow:I$e,auto:xO,basePlacements:Xv,beforeMain:E$e,beforeRead:S$e,beforeWrite:D$e,bottom:Xs,clippingParents:x$e,computeStyles:sG,createPopper:hG,createPopperBase:trn,createPopperLite:orn,detectOverflow:dv,end:av,eventListeners:aG,flip:H$e,hide:z$e,left:vi,main:_$e,modifierPhases:B$e,offset:j$e,placements:tG,popper:d0,popperGenerator:SO,popperOffsets:dG,preventOverflow:U$e,read:w$e,reference:F$e,right:Qs,start:Qg,top:bi,variationPlacements:Lj,viewport:eG,write:A$e},Symbol.toStringTag,{value:"Module"})),sh=new Map,rH={set(t,e,n){sh.has(t)||sh.set(t,new Map);const o=sh.get(t);if(!o.has(e)&&o.size!==0){console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(o.keys())[0]}.`);return}o.set(e,n)},get(t,e){return sh.has(t)&&sh.get(t).get(e)||null},remove(t,e){if(!sh.has(t))return;const n=sh.get(t);n.delete(e),n.size===0&&sh.delete(t)}},irn=1e6,srn=1e3,Mj="transitionend",q$e=t=>(t&&window.CSS&&window.CSS.escape&&(t=t.replace(/#([^\s"#']+)/g,(e,n)=>`#${CSS.escape(n)}`)),t),arn=t=>t==null?`${t}`:Object.prototype.toString.call(t).match(/\s([a-z]+)/i)[1].toLowerCase(),lrn=t=>{do t+=Math.floor(Math.random()*irn);while(document.getElementById(t));return t},urn=t=>{if(!t)return 0;let{transitionDuration:e,transitionDelay:n}=window.getComputedStyle(t);const o=Number.parseFloat(e),r=Number.parseFloat(n);return!o&&!r?0:(e=e.split(",")[0],n=n.split(",")[0],(Number.parseFloat(e)+Number.parseFloat(n))*srn)},J$e=t=>{t.dispatchEvent(new Event(Mj))},ad=t=>!t||typeof t!="object"?!1:(typeof t.jquery<"u"&&(t=t[0]),typeof t.nodeType<"u"),Lm=t=>ad(t)?t.jquery?t[0]:t:typeof t=="string"&&t.length>0?document.querySelector(q$e(t)):null,Qv=t=>{if(!ad(t)||t.getClientRects().length===0)return!1;const e=getComputedStyle(t).getPropertyValue("visibility")==="visible",n=t.closest("details:not([open])");if(!n)return e;if(n!==t){const o=t.closest("summary");if(o&&o.parentNode!==n||o===null)return!1}return e},$m=t=>!t||t.nodeType!==Node.ELEMENT_NODE||t.classList.contains("disabled")?!0:typeof t.disabled<"u"?t.disabled:t.hasAttribute("disabled")&&t.getAttribute("disabled")!=="false",G$e=t=>{if(!document.documentElement.attachShadow)return null;if(typeof t.getRootNode=="function"){const e=t.getRootNode();return e instanceof ShadowRoot?e:null}return t instanceof ShadowRoot?t:t.parentNode?G$e(t.parentNode):null},J$=()=>{},bk=t=>{t.offsetHeight},Y$e=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,iH=[],crn=t=>{document.readyState==="loading"?(iH.length||document.addEventListener("DOMContentLoaded",()=>{for(const e of iH)e()}),iH.push(t)):t()},Ya=()=>document.documentElement.dir==="rtl",rl=t=>{crn(()=>{const e=Y$e();if(e){const n=t.NAME,o=e.fn[n];e.fn[n]=t.jQueryInterface,e.fn[n].Constructor=t,e.fn[n].noConflict=()=>(e.fn[n]=o,t.jQueryInterface)}})},Gi=(t,e=[],n=t)=>typeof t=="function"?t.call(...e):n,X$e=(t,e,n=!0)=>{if(!n){Gi(t);return}const o=urn(e)+5;let r=!1;const i=({target:s})=>{s===e&&(r=!0,e.removeEventListener(Mj,i),Gi(t))};e.addEventListener(Mj,i),setTimeout(()=>{r||J$e(e)},o)},mG=(t,e,n,o)=>{const r=t.length;let i=t.indexOf(e);return i===-1?!n&&o?t[r-1]:t[0]:(i+=n?1:-1,o&&(i=(i+r)%r),t[Math.max(0,Math.min(i,r-1))])},drn=/[^.]*(?=\..*)\.|.*/,hrn=/\..*/,mrn=/::\d+$/,sH={};let Gde=1;const Q$e={mouseenter:"mouseover",mouseleave:"mouseout"},frn=new Set(["click","dblclick","mouseup","mousedown","contextmenu","mousewheel","DOMMouseScroll","mouseover","mouseout","mousemove","selectstart","selectend","keydown","keypress","keyup","orientationchange","touchstart","touchmove","touchend","touchcancel","pointerdown","pointermove","pointerup","pointerleave","pointercancel","gesturestart","gesturechange","gestureend","focus","blur","change","reset","select","submit","focusin","focusout","load","unload","beforeunload","resize","move","DOMContentLoaded","readystatechange","error","abort","scroll"]);function Z$e(t,e){return e&&`${e}::${Gde++}`||t.uidEvent||Gde++}function eVe(t){const e=Z$e(t);return t.uidEvent=e,sH[e]=sH[e]||{},sH[e]}function prn(t,e){return function n(o){return fG(o,{delegateTarget:t}),n.oneOff&&be.off(t,o.type,e),e.apply(t,[o])}}function grn(t,e,n){return function o(r){const i=t.querySelectorAll(e);for(let{target:s}=r;s&&s!==this;s=s.parentNode)for(const a of i)if(a===s)return fG(r,{delegateTarget:s}),o.oneOff&&be.off(t,r.type,e,n),n.apply(s,[r])}}function tVe(t,e,n=null){return Object.values(t).find(o=>o.callable===e&&o.delegationSelector===n)}function nVe(t,e,n){const o=typeof e=="string",r=o?n:e||n;let i=oVe(t);return frn.has(i)||(i=t),[o,r,i]}function Yde(t,e,n,o,r){if(typeof e!="string"||!t)return;let[i,s,a]=nVe(e,n,o);e in Q$e&&(s=(m=>function(f){if(!f.relatedTarget||f.relatedTarget!==f.delegateTarget&&!f.delegateTarget.contains(f.relatedTarget))return m.call(this,f)})(s));const l=eVe(t),u=l[a]||(l[a]={}),c=tVe(u,s,i?n:null);if(c){c.oneOff=c.oneOff&&r;return}const d=Z$e(s,e.replace(drn,"")),h=i?grn(t,n,s):prn(t,s);h.delegationSelector=i?n:null,h.callable=s,h.oneOff=r,h.uidEvent=d,u[d]=h,t.addEventListener(a,h,i)}function Oj(t,e,n,o,r){const i=tVe(e[n],o,r);i&&(t.removeEventListener(n,i,!!r),delete e[n][i.uidEvent])}function Crn(t,e,n,o){const r=e[n]||{};for(const[i,s]of Object.entries(r))i.includes(o)&&Oj(t,e,n,s.callable,s.delegationSelector)}function oVe(t){return t=t.replace(hrn,""),Q$e[t]||t}const be={on(t,e,n,o){Yde(t,e,n,o,!1)},one(t,e,n,o){Yde(t,e,n,o,!0)},off(t,e,n,o){if(typeof e!="string"||!t)return;const[r,i,s]=nVe(e,n,o),a=s!==e,l=eVe(t),u=l[s]||{},c=e.startsWith(".");if(typeof i<"u"){if(!Object.keys(u).length)return;Oj(t,l,s,i,r?n:null);return}if(c)for(const d of Object.keys(l))Crn(t,l,d,e.slice(1));for(const[d,h]of Object.entries(u)){const m=d.replace(mrn,"");(!a||e.includes(m))&&Oj(t,l,s,h.callable,h.delegationSelector)}},trigger(t,e,n){if(typeof e!="string"||!t)return null;const o=Y$e(),r=oVe(e),i=e!==r;let s=null,a=!0,l=!0,u=!1;i&&o&&(s=o.Event(e,n),o(t).trigger(s),a=!s.isPropagationStopped(),l=!s.isImmediatePropagationStopped(),u=s.isDefaultPrevented());const c=fG(new Event(e,{bubbles:a,cancelable:!0}),n);return u&&c.preventDefault(),l&&t.dispatchEvent(c),c.defaultPrevented&&s&&s.preventDefault(),c}};function fG(t,e={}){for(const[n,o]of Object.entries(e))try{t[n]=o}catch{Object.defineProperty(t,n,{configurable:!0,get(){return o}})}return t}function Xde(t){if(t==="true")return!0;if(t==="false")return!1;if(t===Number(t).toString())return Number(t);if(t===""||t==="null")return null;if(typeof t!="string")return t;try{return JSON.parse(decodeURIComponent(t))}catch{return t}}function aH(t){return t.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`)}const ld={setDataAttribute(t,e,n){t.setAttribute(`data-bs-${aH(e)}`,n)},removeDataAttribute(t,e){t.removeAttribute(`data-bs-${aH(e)}`)},getDataAttributes(t){if(!t)return{};const e={},n=Object.keys(t.dataset).filter(o=>o.startsWith("bs")&&!o.startsWith("bsConfig"));for(const o of n){let r=o.replace(/^bs/,"");r=r.charAt(0).toLowerCase()+r.slice(1),e[r]=Xde(t.dataset[o])}return e},getDataAttribute(t,e){return Xde(t.getAttribute(`data-bs-${aH(e)}`))}};class vk{static get Default(){return{}}static get DefaultType(){return{}}static get NAME(){throw new Error('You have to implement the static method "NAME", for each component!')}_getConfig(e){return e=this._mergeConfigObj(e),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}_configAfterMerge(e){return e}_mergeConfigObj(e,n){const o=ad(n)?ld.getDataAttribute(n,"config"):{};return{...this.constructor.Default,...typeof o=="object"?o:{},...ad(n)?ld.getDataAttributes(n):{},...typeof e=="object"?e:{}}}_typeCheckConfig(e,n=this.constructor.DefaultType){for(const[o,r]of Object.entries(n)){const i=e[o],s=ad(i)?"element":arn(i);if(!new RegExp(r).test(s))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${o}" provided type "${s}" but expected type "${r}".`)}}}const yrn="5.3.8";class Gl extends vk{constructor(e,n){super(),e=Lm(e),e&&(this._element=e,this._config=this._getConfig(n),rH.set(this._element,this.constructor.DATA_KEY,this))}dispose(){rH.remove(this._element,this.constructor.DATA_KEY),be.off(this._element,this.constructor.EVENT_KEY);for(const e of Object.getOwnPropertyNames(this))this[e]=null}_queueCallback(e,n,o=!0){X$e(e,n,o)}_getConfig(e){return e=this._mergeConfigObj(e,this._element),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}static getInstance(e){return rH.get(Lm(e),this.DATA_KEY)}static getOrCreateInstance(e,n={}){return this.getInstance(e)||new this(e,typeof n=="object"?n:null)}static get VERSION(){return yrn}static get DATA_KEY(){return`bs.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}static eventName(e){return`${e}${this.EVENT_KEY}`}}const lH=t=>{let e=t.getAttribute("data-bs-target");if(!e||e==="#"){let n=t.getAttribute("href");if(!n||!n.includes("#")&&!n.startsWith("."))return null;n.includes("#")&&!n.startsWith("#")&&(n=`#${n.split("#")[1]}`),e=n&&n!=="#"?n.trim():null}return e?e.split(",").map(n=>q$e(n)).join(","):null},mt={find(t,e=document.documentElement){return[].concat(...Element.prototype.querySelectorAll.call(e,t))},findOne(t,e=document.documentElement){return Element.prototype.querySelector.call(e,t)},children(t,e){return[].concat(...t.children).filter(n=>n.matches(e))},parents(t,e){const n=[];let o=t.parentNode.closest(e);for(;o;)n.push(o),o=o.parentNode.closest(e);return n},prev(t,e){let n=t.previousElementSibling;for(;n;){if(n.matches(e))return[n];n=n.previousElementSibling}return[]},next(t,e){let n=t.nextElementSibling;for(;n;){if(n.matches(e))return[n];n=n.nextElementSibling}return[]},focusableChildren(t){const e=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map(n=>`${n}:not([tabindex^="-"])`).join(",");return this.find(e,t).filter(n=>!$m(n)&&Qv(n))},getSelectorFromElement(t){const e=lH(t);return e&&mt.findOne(e)?e:null},getElementFromSelector(t){const e=lH(t);return e?mt.findOne(e):null},getMultipleElementsFromSelector(t){const e=lH(t);return e?mt.find(e):[]}},wO=(t,e="hide")=>{const n=`click.dismiss${t.EVENT_KEY}`,o=t.NAME;be.on(document,n,`[data-bs-dismiss="${o}"]`,function(r){if(["A","AREA"].includes(this.tagName)&&r.preventDefault(),$m(this))return;const i=mt.getElementFromSelector(this)||this.closest(`.${o}`);t.getOrCreateInstance(i)[e]()})},brn="alert",vrn="bs.alert",rVe=`.${vrn}`,Trn=`close${rVe}`,xrn=`closed${rVe}`,Frn="fade",Srn="show";class kO extends Gl{static get NAME(){return brn}close(){if(be.trigger(this._element,Trn).defaultPrevented)return;this._element.classList.remove(Srn);const e=this._element.classList.contains(Frn);this._queueCallback(()=>this._destroyElement(),this._element,e)}_destroyElement(){this._element.remove(),be.trigger(this._element,xrn),this.dispose()}static jQueryInterface(e){return this.each(function(){const n=kO.getOrCreateInstance(this);if(typeof e=="string"){if(n[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);n[e](this)}})}}wO(kO,"close");rl(kO);const wrn="button",krn="bs.button",Ern=`.${krn}`,_rn=".data-api",Rrn="active",Qde='[data-bs-toggle="button"]',Drn=`click${Ern}${_rn}`;class EO extends Gl{static get NAME(){return wrn}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle(Rrn))}static jQueryInterface(e){return this.each(function(){const n=EO.getOrCreateInstance(this);e==="toggle"&&n[e]()})}}be.on(document,Drn,Qde,t=>{t.preventDefault();const e=t.target.closest(Qde);EO.getOrCreateInstance(e).toggle()});rl(EO);const Arn="swipe",Zv=".bs.swipe",Nrn=`touchstart${Zv}`,Brn=`touchmove${Zv}`,Lrn=`touchend${Zv}`,$rn=`pointerdown${Zv}`,Vrn=`pointerup${Zv}`,Mrn="touch",Orn="pen",Irn="pointer-event",Prn=40,Wrn={endCallback:null,leftCallback:null,rightCallback:null},Hrn={endCallback:"(function|null)",leftCallback:"(function|null)",rightCallback:"(function|null)"};class G$ extends vk{constructor(e,n){super(),this._element=e,!(!e||!G$.isSupported())&&(this._config=this._getConfig(n),this._deltaX=0,this._supportPointerEvents=!!window.PointerEvent,this._initEvents())}static get Default(){return Wrn}static get DefaultType(){return Hrn}static get NAME(){return Arn}dispose(){be.off(this._element,Zv)}_start(e){if(!this._supportPointerEvents){this._deltaX=e.touches[0].clientX;return}this._eventIsPointerPenTouch(e)&&(this._deltaX=e.clientX)}_end(e){this._eventIsPointerPenTouch(e)&&(this._deltaX=e.clientX-this._deltaX),this._handleSwipe(),Gi(this._config.endCallback)}_move(e){this._deltaX=e.touches&&e.touches.length>1?0:e.touches[0].clientX-this._deltaX}_handleSwipe(){const e=Math.abs(this._deltaX);if(e<=Prn)return;const n=e/this._deltaX;this._deltaX=0,n&&Gi(n>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?(be.on(this._element,$rn,e=>this._start(e)),be.on(this._element,Vrn,e=>this._end(e)),this._element.classList.add(Irn)):(be.on(this._element,Nrn,e=>this._start(e)),be.on(this._element,Brn,e=>this._move(e)),be.on(this._element,Lrn,e=>this._end(e)))}_eventIsPointerPenTouch(e){return this._supportPointerEvents&&(e.pointerType===Orn||e.pointerType===Mrn)}static isSupported(){return"ontouchstart"in document.documentElement||navigator.maxTouchPoints>0}}const zrn="carousel",jrn="bs.carousel",wf=`.${jrn}`,iVe=".data-api",Urn="ArrowLeft",Krn="ArrowRight",qrn=500,oT="next",fy="prev",h0="left",kD="right",Jrn=`slide${wf}`,uH=`slid${wf}`,Grn=`keydown${wf}`,Yrn=`mouseenter${wf}`,Xrn=`mouseleave${wf}`,Qrn=`dragstart${wf}`,Zrn=`load${wf}${iVe}`,ein=`click${wf}${iVe}`,sVe="carousel",eR="active",tin="slide",nin="carousel-item-end",oin="carousel-item-start",rin="carousel-item-next",iin="carousel-item-prev",aVe=".active",lVe=".carousel-item",sin=aVe+lVe,ain=".carousel-item img",lin=".carousel-indicators",uin="[data-bs-slide], [data-bs-slide-to]",cin='[data-bs-ride="carousel"]',din={[Urn]:kD,[Krn]:h0},hin={interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},min={interval:"(number|boolean)",keyboard:"boolean",pause:"(string|boolean)",ride:"(boolean|string)",touch:"boolean",wrap:"boolean"};class Tk extends Gl{constructor(e,n){super(e,n),this._interval=null,this._activeElement=null,this._isSliding=!1,this.touchTimeout=null,this._swipeHelper=null,this._indicatorsElement=mt.findOne(lin,this._element),this._addEventListeners(),this._config.ride===sVe&&this.cycle()}static get Default(){return hin}static get DefaultType(){return min}static get NAME(){return zrn}next(){this._slide(oT)}nextWhenVisible(){!document.hidden&&Qv(this._element)&&this.next()}prev(){this._slide(fy)}pause(){this._isSliding&&J$e(this._element),this._clearInterval()}cycle(){this._clearInterval(),this._updateInterval(),this._interval=setInterval(()=>this.nextWhenVisible(),this._config.interval)}_maybeEnableCycle(){if(this._config.ride){if(this._isSliding){be.one(this._element,uH,()=>this.cycle());return}this.cycle()}}to(e){const n=this._getItems();if(e>n.length-1||e<0)return;if(this._isSliding){be.one(this._element,uH,()=>this.to(e));return}const o=this._getItemIndex(this._getActive());if(o===e)return;const r=e>o?oT:fy;this._slide(r,n[e])}dispose(){this._swipeHelper&&this._swipeHelper.dispose(),super.dispose()}_configAfterMerge(e){return e.defaultInterval=e.interval,e}_addEventListeners(){this._config.keyboard&&be.on(this._element,Grn,e=>this._keydown(e)),this._config.pause==="hover"&&(be.on(this._element,Yrn,()=>this.pause()),be.on(this._element,Xrn,()=>this._maybeEnableCycle())),this._config.touch&&G$.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(const n of mt.find(ain,this._element))be.on(n,Qrn,o=>o.preventDefault());const e={leftCallback:()=>this._slide(this._directionToOrder(h0)),rightCallback:()=>this._slide(this._directionToOrder(kD)),endCallback:()=>{this._config.pause==="hover"&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout(()=>this._maybeEnableCycle(),qrn+this._config.interval))}};this._swipeHelper=new G$(this._element,e)}_keydown(e){if(/input|textarea/i.test(e.target.tagName))return;const n=din[e.key];n&&(e.preventDefault(),this._slide(this._directionToOrder(n)))}_getItemIndex(e){return this._getItems().indexOf(e)}_setActiveIndicatorElement(e){if(!this._indicatorsElement)return;const n=mt.findOne(aVe,this._indicatorsElement);n.classList.remove(eR),n.removeAttribute("aria-current");const o=mt.findOne(`[data-bs-slide-to="${e}"]`,this._indicatorsElement);o&&(o.classList.add(eR),o.setAttribute("aria-current","true"))}_updateInterval(){const e=this._activeElement||this._getActive();if(!e)return;const n=Number.parseInt(e.getAttribute("data-bs-interval"),10);this._config.interval=n||this._config.defaultInterval}_slide(e,n=null){if(this._isSliding)return;const o=this._getActive(),r=e===oT,i=n||mG(this._getItems(),o,r,this._config.wrap);if(i===o)return;const s=this._getItemIndex(i),a=h=>be.trigger(this._element,h,{relatedTarget:i,direction:this._orderToDirection(e),from:this._getItemIndex(o),to:s});if(a(Jrn).defaultPrevented||!o||!i)return;const l=!!this._interval;this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(s),this._activeElement=i;const u=r?oin:nin,c=r?rin:iin;i.classList.add(c),bk(i),o.classList.add(u),i.classList.add(u);const d=()=>{i.classList.remove(u,c),i.classList.add(eR),o.classList.remove(eR,c,u),this._isSliding=!1,a(uH)};this._queueCallback(d,o,this._isAnimated()),l&&this.cycle()}_isAnimated(){return this._element.classList.contains(tin)}_getActive(){return mt.findOne(sin,this._element)}_getItems(){return mt.find(lVe,this._element)}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}_directionToOrder(e){return Ya()?e===h0?fy:oT:e===h0?oT:fy}_orderToDirection(e){return Ya()?e===fy?h0:kD:e===fy?kD:h0}static jQueryInterface(e){return this.each(function(){const n=Tk.getOrCreateInstance(this,e);if(typeof e=="number"){n.to(e);return}if(typeof e=="string"){if(n[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);n[e]()}})}}be.on(document,ein,uin,function(t){const e=mt.getElementFromSelector(this);if(!e||!e.classList.contains(sVe))return;t.preventDefault();const n=Tk.getOrCreateInstance(e),o=this.getAttribute("data-bs-slide-to");if(o){n.to(o),n._maybeEnableCycle();return}if(ld.getDataAttribute(this,"slide")==="next"){n.next(),n._maybeEnableCycle();return}n.prev(),n._maybeEnableCycle()});be.on(window,Zrn,()=>{const t=mt.find(cin);for(const e of t)Tk.getOrCreateInstance(e)});rl(Tk);const fin="collapse",pin="bs.collapse",xk=`.${pin}`,gin=".data-api",Cin=`show${xk}`,yin=`shown${xk}`,bin=`hide${xk}`,vin=`hidden${xk}`,Tin=`click${xk}${gin}`,cH="show",x0="collapse",tR="collapsing",xin="collapsed",Fin=`:scope .${x0} .${x0}`,Sin="collapse-horizontal",win="width",kin="height",Ein=".collapse.show, .collapse.collapsing",Ij='[data-bs-toggle="collapse"]',_in={parent:null,toggle:!0},Rin={parent:"(null|element)",toggle:"boolean"};class sw extends Gl{constructor(e,n){super(e,n),this._isTransitioning=!1,this._triggerArray=[];const o=mt.find(Ij);for(const r of o){const i=mt.getSelectorFromElement(r),s=mt.find(i).filter(a=>a===this._element);i!==null&&s.length&&this._triggerArray.push(r)}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return _in}static get DefaultType(){return Rin}static get NAME(){return fin}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let e=[];if(this._config.parent&&(e=this._getFirstLevelChildren(Ein).filter(i=>i!==this._element).map(i=>sw.getOrCreateInstance(i,{toggle:!1}))),e.length&&e[0]._isTransitioning||be.trigger(this._element,Cin).defaultPrevented)return;for(const i of e)i.hide();const n=this._getDimension();this._element.classList.remove(x0),this._element.classList.add(tR),this._element.style[n]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;const o=()=>{this._isTransitioning=!1,this._element.classList.remove(tR),this._element.classList.add(x0,cH),this._element.style[n]="",be.trigger(this._element,yin)},r=`scroll${n[0].toUpperCase()+n.slice(1)}`;this._queueCallback(o,this._element,!0),this._element.style[n]=`${this._element[r]}px`}hide(){if(this._isTransitioning||!this._isShown()||be.trigger(this._element,bin).defaultPrevented)return;const e=this._getDimension();this._element.style[e]=`${this._element.getBoundingClientRect()[e]}px`,bk(this._element),this._element.classList.add(tR),this._element.classList.remove(x0,cH);for(const o of this._triggerArray){const r=mt.getElementFromSelector(o);r&&!this._isShown(r)&&this._addAriaAndCollapsedClass([o],!1)}this._isTransitioning=!0;const n=()=>{this._isTransitioning=!1,this._element.classList.remove(tR),this._element.classList.add(x0),be.trigger(this._element,vin)};this._element.style[e]="",this._queueCallback(n,this._element,!0)}_isShown(e=this._element){return e.classList.contains(cH)}_configAfterMerge(e){return e.toggle=!!e.toggle,e.parent=Lm(e.parent),e}_getDimension(){return this._element.classList.contains(Sin)?win:kin}_initializeChildren(){if(!this._config.parent)return;const e=this._getFirstLevelChildren(Ij);for(const n of e){const o=mt.getElementFromSelector(n);o&&this._addAriaAndCollapsedClass([n],this._isShown(o))}}_getFirstLevelChildren(e){const n=mt.find(Fin,this._config.parent);return mt.find(e,this._config.parent).filter(o=>!n.includes(o))}_addAriaAndCollapsedClass(e,n){if(e.length)for(const o of e)o.classList.toggle(xin,!n),o.setAttribute("aria-expanded",n)}static jQueryInterface(e){const n={};return typeof e=="string"&&/show|hide/.test(e)&&(n.toggle=!1),this.each(function(){const o=sw.getOrCreateInstance(this,n);if(typeof e=="string"){if(typeof o[e]>"u")throw new TypeError(`No method named "${e}"`);o[e]()}})}}be.on(document,Tin,Ij,function(t){(t.target.tagName==="A"||t.delegateTarget&&t.delegateTarget.tagName==="A")&&t.preventDefault();for(const e of mt.getMultipleElementsFromSelector(this))sw.getOrCreateInstance(e,{toggle:!1}).toggle()});rl(sw);const Zde="dropdown",Din="bs.dropdown",DC=`.${Din}`,pG=".data-api",Ain="Escape",ehe="Tab",Nin="ArrowUp",the="ArrowDown",Bin=2,Lin=`hide${DC}`,$in=`hidden${DC}`,Vin=`show${DC}`,Min=`shown${DC}`,uVe=`click${DC}${pG}`,cVe=`keydown${DC}${pG}`,Oin=`keyup${DC}${pG}`,m0="show",Iin="dropup",Pin="dropend",Win="dropstart",Hin="dropup-center",zin="dropdown-center",vp='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)',jin=`${vp}.${m0}`,ED=".dropdown-menu",Uin=".navbar",Kin=".navbar-nav",qin=".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",Jin=Ya()?"top-end":"top-start",Gin=Ya()?"top-start":"top-end",Yin=Ya()?"bottom-end":"bottom-start",Xin=Ya()?"bottom-start":"bottom-end",Qin=Ya()?"left-start":"right-start",Zin=Ya()?"right-start":"left-start",esn="top",tsn="bottom",nsn={autoClose:!0,boundary:"clippingParents",display:"dynamic",offset:[0,2],popperConfig:null,reference:"toggle"},osn={autoClose:"(boolean|string)",boundary:"(string|element)",display:"string",offset:"(array|string|function)",popperConfig:"(null|object|function)",reference:"(string|element|object)"};class Nu extends Gl{constructor(e,n){super(e,n),this._popper=null,this._parent=this._element.parentNode,this._menu=mt.next(this._element,ED)[0]||mt.prev(this._element,ED)[0]||mt.findOne(ED,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return nsn}static get DefaultType(){return osn}static get NAME(){return Zde}toggle(){return this._isShown()?this.hide():this.show()}show(){if($m(this._element)||this._isShown())return;const e={relatedTarget:this._element};if(!be.trigger(this._element,Vin,e).defaultPrevented){if(this._createPopper(),"ontouchstart"in document.documentElement&&!this._parent.closest(Kin))for(const n of[].concat(...document.body.children))be.on(n,"mouseover",J$);this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(m0),this._element.classList.add(m0),be.trigger(this._element,Min,e)}}hide(){if($m(this._element)||!this._isShown())return;const e={relatedTarget:this._element};this._completeHide(e)}dispose(){this._popper&&this._popper.destroy(),super.dispose()}update(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()}_completeHide(e){if(!be.trigger(this._element,Lin,e).defaultPrevented){if("ontouchstart"in document.documentElement)for(const n of[].concat(...document.body.children))be.off(n,"mouseover",J$);this._popper&&this._popper.destroy(),this._menu.classList.remove(m0),this._element.classList.remove(m0),this._element.setAttribute("aria-expanded","false"),ld.removeDataAttribute(this._menu,"popper"),be.trigger(this._element,$in,e)}}_getConfig(e){if(e=super._getConfig(e),typeof e.reference=="object"&&!ad(e.reference)&&typeof e.reference.getBoundingClientRect!="function")throw new TypeError(`${Zde.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return e}_createPopper(){if(typeof K$e>"u")throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org/docs/v2/)");let e=this._element;this._config.reference==="parent"?e=this._parent:ad(this._config.reference)?e=Lm(this._config.reference):typeof this._config.reference=="object"&&(e=this._config.reference);const n=this._getPopperConfig();this._popper=hG(e,this._menu,n)}_isShown(){return this._menu.classList.contains(m0)}_getPlacement(){const e=this._parent;if(e.classList.contains(Pin))return Qin;if(e.classList.contains(Win))return Zin;if(e.classList.contains(Hin))return esn;if(e.classList.contains(zin))return tsn;const n=getComputedStyle(this._menu).getPropertyValue("--bs-position").trim()==="end";return e.classList.contains(Iin)?n?Gin:Jin:n?Xin:Yin}_detectNavbar(){return this._element.closest(Uin)!==null}_getOffset(){const{offset:e}=this._config;return typeof e=="string"?e.split(",").map(n=>Number.parseInt(n,10)):typeof e=="function"?n=>e(n,this._element):e}_getPopperConfig(){const e={placement:this._getPlacement(),modifiers:[{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"offset",options:{offset:this._getOffset()}}]};return(this._inNavbar||this._config.display==="static")&&(ld.setDataAttribute(this._menu,"popper","static"),e.modifiers=[{name:"applyStyles",enabled:!1}]),{...e,...Gi(this._config.popperConfig,[void 0,e])}}_selectMenuItem({key:e,target:n}){const o=mt.find(qin,this._menu).filter(r=>Qv(r));o.length&&mG(o,n,e===the,!o.includes(n)).focus()}static jQueryInterface(e){return this.each(function(){const n=Nu.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof n[e]>"u")throw new TypeError(`No method named "${e}"`);n[e]()}})}static clearMenus(e){if(e.button===Bin||e.type==="keyup"&&e.key!==ehe)return;const n=mt.find(jin);for(const o of n){const r=Nu.getInstance(o);if(!r||r._config.autoClose===!1)continue;const i=e.composedPath(),s=i.includes(r._menu);if(i.includes(r._element)||r._config.autoClose==="inside"&&!s||r._config.autoClose==="outside"&&s||r._menu.contains(e.target)&&(e.type==="keyup"&&e.key===ehe||/input|select|option|textarea|form/i.test(e.target.tagName)))continue;const a={relatedTarget:r._element};e.type==="click"&&(a.clickEvent=e),r._completeHide(a)}}static dataApiKeydownHandler(e){const n=/input|textarea/i.test(e.target.tagName),o=e.key===Ain,r=[Nin,the].includes(e.key);if(!r&&!o||n&&!o)return;e.preventDefault();const i=this.matches(vp)?this:mt.prev(this,vp)[0]||mt.next(this,vp)[0]||mt.findOne(vp,e.delegateTarget.parentNode),s=Nu.getOrCreateInstance(i);if(r){e.stopPropagation(),s.show(),s._selectMenuItem(e);return}s._isShown()&&(e.stopPropagation(),s.hide(),i.focus())}}be.on(document,cVe,vp,Nu.dataApiKeydownHandler);be.on(document,cVe,ED,Nu.dataApiKeydownHandler);be.on(document,uVe,Nu.clearMenus);be.on(document,Oin,Nu.clearMenus);be.on(document,uVe,vp,function(t){t.preventDefault(),Nu.getOrCreateInstance(this).toggle()});rl(Nu);const dVe="backdrop",rsn="fade",nhe="show",ohe=`mousedown.bs.${dVe}`,isn={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},ssn={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"};class hVe extends vk{constructor(e){super(),this._config=this._getConfig(e),this._isAppended=!1,this._element=null}static get Default(){return isn}static get DefaultType(){return ssn}static get NAME(){return dVe}show(e){if(!this._config.isVisible){Gi(e);return}this._append();const n=this._getElement();this._config.isAnimated&&bk(n),n.classList.add(nhe),this._emulateAnimation(()=>{Gi(e)})}hide(e){if(!this._config.isVisible){Gi(e);return}this._getElement().classList.remove(nhe),this._emulateAnimation(()=>{this.dispose(),Gi(e)})}dispose(){this._isAppended&&(be.off(this._element,ohe),this._element.remove(),this._isAppended=!1)}_getElement(){if(!this._element){const e=document.createElement("div");e.className=this._config.className,this._config.isAnimated&&e.classList.add(rsn),this._element=e}return this._element}_configAfterMerge(e){return e.rootElement=Lm(e.rootElement),e}_append(){if(this._isAppended)return;const e=this._getElement();this._config.rootElement.append(e),be.on(e,ohe,()=>{Gi(this._config.clickCallback)}),this._isAppended=!0}_emulateAnimation(e){X$e(e,this._getElement(),this._config.isAnimated)}}const asn="focustrap",lsn="bs.focustrap",Y$=`.${lsn}`,usn=`focusin${Y$}`,csn=`keydown.tab${Y$}`,dsn="Tab",hsn="forward",rhe="backward",msn={autofocus:!0,trapElement:null},fsn={autofocus:"boolean",trapElement:"element"};class mVe extends vk{constructor(e){super(),this._config=this._getConfig(e),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return msn}static get DefaultType(){return fsn}static get NAME(){return asn}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),be.off(document,Y$),be.on(document,usn,e=>this._handleFocusin(e)),be.on(document,csn,e=>this._handleKeydown(e)),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,be.off(document,Y$))}_handleFocusin(e){const{trapElement:n}=this._config;if(e.target===document||e.target===n||n.contains(e.target))return;const o=mt.focusableChildren(n);o.length===0?n.focus():this._lastTabNavDirection===rhe?o[o.length-1].focus():o[0].focus()}_handleKeydown(e){e.key===dsn&&(this._lastTabNavDirection=e.shiftKey?rhe:hsn)}}const ihe=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",she=".sticky-top",nR="padding-right",ahe="margin-right";class Pj{constructor(){this._element=document.body}getWidth(){const e=document.documentElement.clientWidth;return Math.abs(window.innerWidth-e)}hide(){const e=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,nR,n=>n+e),this._setElementAttributes(ihe,nR,n=>n+e),this._setElementAttributes(she,ahe,n=>n-e)}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,nR),this._resetElementAttributes(ihe,nR),this._resetElementAttributes(she,ahe)}isOverflowing(){return this.getWidth()>0}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(e,n,o){const r=this.getWidth(),i=s=>{if(s!==this._element&&window.innerWidth>s.clientWidth+r)return;this._saveInitialAttribute(s,n);const a=window.getComputedStyle(s).getPropertyValue(n);s.style.setProperty(n,`${o(Number.parseFloat(a))}px`)};this._applyManipulationCallback(e,i)}_saveInitialAttribute(e,n){const o=e.style.getPropertyValue(n);o&&ld.setDataAttribute(e,n,o)}_resetElementAttributes(e,n){const o=r=>{const i=ld.getDataAttribute(r,n);if(i===null){r.style.removeProperty(n);return}ld.removeDataAttribute(r,n),r.style.setProperty(n,i)};this._applyManipulationCallback(e,o)}_applyManipulationCallback(e,n){if(ad(e)){n(e);return}for(const o of mt.find(e,this._element))n(o)}}const psn="modal",gsn="bs.modal",Xa=`.${gsn}`,Csn=".data-api",ysn="Escape",bsn=`hide${Xa}`,vsn=`hidePrevented${Xa}`,fVe=`hidden${Xa}`,pVe=`show${Xa}`,Tsn=`shown${Xa}`,xsn=`resize${Xa}`,Fsn=`click.dismiss${Xa}`,Ssn=`mousedown.dismiss${Xa}`,wsn=`keydown.dismiss${Xa}`,ksn=`click${Xa}${Csn}`,lhe="modal-open",Esn="fade",uhe="show",dH="modal-static",_sn=".modal.show",Rsn=".modal-dialog",Dsn=".modal-body",Asn='[data-bs-toggle="modal"]',Nsn={backdrop:!0,focus:!0,keyboard:!0},Bsn={backdrop:"(boolean|string)",focus:"boolean",keyboard:"boolean"};class hv extends Gl{constructor(e,n){super(e,n),this._dialog=mt.findOne(Rsn,this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new Pj,this._addEventListeners()}static get Default(){return Nsn}static get DefaultType(){return Bsn}static get NAME(){return psn}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){this._isShown||this._isTransitioning||be.trigger(this._element,pVe,{relatedTarget:e}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(lhe),this._adjustDialog(),this._backdrop.show(()=>this._showElement(e)))}hide(){!this._isShown||this._isTransitioning||be.trigger(this._element,bsn).defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(uhe),this._queueCallback(()=>this._hideModal(),this._element,this._isAnimated()))}dispose(){be.off(window,Xa),be.off(this._dialog,Xa),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new hVe({isVisible:!!this._config.backdrop,isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new mVe({trapElement:this._element})}_showElement(e){document.body.contains(this._element)||document.body.append(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.scrollTop=0;const n=mt.findOne(Dsn,this._dialog);n&&(n.scrollTop=0),bk(this._element),this._element.classList.add(uhe);const o=()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,be.trigger(this._element,Tsn,{relatedTarget:e})};this._queueCallback(o,this._dialog,this._isAnimated())}_addEventListeners(){be.on(this._element,wsn,e=>{if(e.key===ysn){if(this._config.keyboard){this.hide();return}this._triggerBackdropTransition()}}),be.on(window,xsn,()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()}),be.on(this._element,Ssn,e=>{be.one(this._element,Fsn,n=>{if(!(this._element!==e.target||this._element!==n.target)){if(this._config.backdrop==="static"){this._triggerBackdropTransition();return}this._config.backdrop&&this.hide()}})})}_hideModal(){this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._isTransitioning=!1,this._backdrop.hide(()=>{document.body.classList.remove(lhe),this._resetAdjustments(),this._scrollBar.reset(),be.trigger(this._element,fVe)})}_isAnimated(){return this._element.classList.contains(Esn)}_triggerBackdropTransition(){if(be.trigger(this._element,vsn).defaultPrevented)return;const e=this._element.scrollHeight>document.documentElement.clientHeight,n=this._element.style.overflowY;n==="hidden"||this._element.classList.contains(dH)||(e||(this._element.style.overflowY="hidden"),this._element.classList.add(dH),this._queueCallback(()=>{this._element.classList.remove(dH),this._queueCallback(()=>{this._element.style.overflowY=n},this._dialog)},this._dialog),this._element.focus())}_adjustDialog(){const e=this._element.scrollHeight>document.documentElement.clientHeight,n=this._scrollBar.getWidth(),o=n>0;if(o&&!e){const r=Ya()?"paddingLeft":"paddingRight";this._element.style[r]=`${n}px`}if(!o&&e){const r=Ya()?"paddingRight":"paddingLeft";this._element.style[r]=`${n}px`}}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}static jQueryInterface(e,n){return this.each(function(){const o=hv.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof o[e]>"u")throw new TypeError(`No method named "${e}"`);o[e](n)}})}}be.on(document,ksn,Asn,function(t){const e=mt.getElementFromSelector(this);["A","AREA"].includes(this.tagName)&&t.preventDefault(),be.one(e,pVe,o=>{o.defaultPrevented||be.one(e,fVe,()=>{Qv(this)&&this.focus()})});const n=mt.findOne(_sn);n&&hv.getInstance(n).hide(),hv.getOrCreateInstance(e).toggle(this)});wO(hv);rl(hv);const Lsn="offcanvas",$sn="bs.offcanvas",zd=`.${$sn}`,gVe=".data-api",Vsn=`load${zd}${gVe}`,Msn="Escape",che="show",dhe="showing",hhe="hiding",Osn="offcanvas-backdrop",CVe=".offcanvas.show",Isn=`show${zd}`,Psn=`shown${zd}`,Wsn=`hide${zd}`,mhe=`hidePrevented${zd}`,yVe=`hidden${zd}`,Hsn=`resize${zd}`,zsn=`click${zd}${gVe}`,jsn=`keydown.dismiss${zd}`,Usn='[data-bs-toggle="offcanvas"]',Ksn={backdrop:!0,keyboard:!0,scroll:!1},qsn={backdrop:"(boolean|string)",keyboard:"boolean",scroll:"boolean"};class Vm extends Gl{constructor(e,n){super(e,n),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return Ksn}static get DefaultType(){return qsn}static get NAME(){return Lsn}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){if(this._isShown||be.trigger(this._element,Isn,{relatedTarget:e}).defaultPrevented)return;this._isShown=!0,this._backdrop.show(),this._config.scroll||new Pj().hide(),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(dhe);const n=()=>{(!this._config.scroll||this._config.backdrop)&&this._focustrap.activate(),this._element.classList.add(che),this._element.classList.remove(dhe),be.trigger(this._element,Psn,{relatedTarget:e})};this._queueCallback(n,this._element,!0)}hide(){if(!this._isShown||be.trigger(this._element,Wsn).defaultPrevented)return;this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add(hhe),this._backdrop.hide();const e=()=>{this._element.classList.remove(che,hhe),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._config.scroll||new Pj().reset(),be.trigger(this._element,yVe)};this._queueCallback(e,this._element,!0)}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){const e=()=>{if(this._config.backdrop==="static"){be.trigger(this._element,mhe);return}this.hide()},n=!!this._config.backdrop;return new hVe({className:Osn,isVisible:n,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:n?e:null})}_initializeFocusTrap(){return new mVe({trapElement:this._element})}_addEventListeners(){be.on(this._element,jsn,e=>{if(e.key===Msn){if(this._config.keyboard){this.hide();return}be.trigger(this._element,mhe)}})}static jQueryInterface(e){return this.each(function(){const n=Vm.getOrCreateInstance(this,e);if(typeof e=="string"){if(n[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);n[e](this)}})}}be.on(document,zsn,Usn,function(t){const e=mt.getElementFromSelector(this);if(["A","AREA"].includes(this.tagName)&&t.preventDefault(),$m(this))return;be.one(e,yVe,()=>{Qv(this)&&this.focus()});const n=mt.findOne(CVe);n&&n!==e&&Vm.getInstance(n).hide(),Vm.getOrCreateInstance(e).toggle(this)});be.on(window,Vsn,()=>{for(const t of mt.find(CVe))Vm.getOrCreateInstance(t).show()});be.on(window,Hsn,()=>{for(const t of mt.find("[aria-modal][class*=show][class*=offcanvas-]"))getComputedStyle(t).position!=="fixed"&&Vm.getOrCreateInstance(t).hide()});wO(Vm);rl(Vm);const Jsn=/^aria-[\w-]*$/i,bVe={"*":["class","dir","id","lang","role",Jsn],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],dd:[],div:[],dl:[],dt:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","srcset","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},Gsn=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),Ysn=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i,Xsn=(t,e)=>{const n=t.nodeName.toLowerCase();return e.includes(n)?Gsn.has(n)?!!Ysn.test(t.nodeValue):!0:e.filter(o=>o instanceof RegExp).some(o=>o.test(n))};function Qsn(t,e,n){if(!t.length)return t;if(n&&typeof n=="function")return n(t);const o=new window.DOMParser().parseFromString(t,"text/html"),r=[].concat(...o.body.querySelectorAll("*"));for(const i of r){const s=i.nodeName.toLowerCase();if(!Object.keys(e).includes(s)){i.remove();continue}const a=[].concat(...i.attributes),l=[].concat(e["*"]||[],e[s]||[]);for(const u of a)Xsn(u,l)||i.removeAttribute(u.nodeName)}return o.body.innerHTML}const Zsn="TemplateFactory",ean={allowList:bVe,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:"<div></div>"},tan={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"},nan={entry:"(string|element|function|null)",selector:"(string|element)"};class oan extends vk{constructor(e){super(),this._config=this._getConfig(e)}static get Default(){return ean}static get DefaultType(){return tan}static get NAME(){return Zsn}getContent(){return Object.values(this._config.content).map(e=>this._resolvePossibleFunction(e)).filter(Boolean)}hasContent(){return this.getContent().length>0}changeContent(e){return this._checkContent(e),this._config.content={...this._config.content,...e},this}toHtml(){const e=document.createElement("div");e.innerHTML=this._maybeSanitize(this._config.template);for(const[r,i]of Object.entries(this._config.content))this._setContent(e,i,r);const n=e.children[0],o=this._resolvePossibleFunction(this._config.extraClass);return o&&n.classList.add(...o.split(" ")),n}_typeCheckConfig(e){super._typeCheckConfig(e),this._checkContent(e.content)}_checkContent(e){for(const[n,o]of Object.entries(e))super._typeCheckConfig({selector:n,entry:o},nan)}_setContent(e,n,o){const r=mt.findOne(o,e);if(r){if(n=this._resolvePossibleFunction(n),!n){r.remove();return}if(ad(n)){this._putElementInTemplate(Lm(n),r);return}if(this._config.html){r.innerHTML=this._maybeSanitize(n);return}r.textContent=n}}_maybeSanitize(e){return this._config.sanitize?Qsn(e,this._config.allowList,this._config.sanitizeFn):e}_resolvePossibleFunction(e){return Gi(e,[void 0,this])}_putElementInTemplate(e,n){if(this._config.html){n.innerHTML="",n.append(e);return}n.textContent=e.textContent}}const ran="tooltip",ian=new Set(["sanitize","allowList","sanitizeFn"]),hH="fade",san="modal",oR="show",aan=".tooltip-inner",fhe=`.${san}`,phe="hide.bs.modal",rT="hover",mH="focus",fH="click",lan="manual",uan="hide",can="hidden",dan="show",han="shown",man="inserted",fan="click",pan="focusin",gan="focusout",Can="mouseenter",yan="mouseleave",ban={AUTO:"auto",TOP:"top",RIGHT:Ya()?"left":"right",BOTTOM:"bottom",LEFT:Ya()?"right":"left"},van={allowList:bVe,animation:!0,boundary:"clippingParents",container:!1,customClass:"",delay:0,fallbackPlacements:["top","right","bottom","left"],html:!1,offset:[0,6],placement:"top",popperConfig:null,sanitize:!0,sanitizeFn:null,selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',title:"",trigger:"hover focus"},Tan={allowList:"object",animation:"boolean",boundary:"(string|element)",container:"(string|element|boolean)",customClass:"(string|function)",delay:"(number|object)",fallbackPlacements:"array",html:"boolean",offset:"(array|string|function)",placement:"(string|function)",popperConfig:"(null|object|function)",sanitize:"boolean",sanitizeFn:"(null|function)",selector:"(string|boolean)",template:"string",title:"(string|element|function)",trigger:"string"};class e1 extends Gl{constructor(e,n){if(typeof K$e>"u")throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org/docs/v2/)");super(e,n),this._isEnabled=!0,this._timeout=0,this._isHovered=null,this._activeTrigger={},this._popper=null,this._templateFactory=null,this._newContent=null,this.tip=null,this._setListeners(),this._config.selector||this._fixTitle()}static get Default(){return van}static get DefaultType(){return Tan}static get NAME(){return ran}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(){if(this._isEnabled){if(this._isShown()){this._leave();return}this._enter()}}dispose(){clearTimeout(this._timeout),be.off(this._element.closest(fhe),phe,this._hideModalHandler),this._element.getAttribute("data-bs-original-title")&&this._element.setAttribute("title",this._element.getAttribute("data-bs-original-title")),this._disposePopper(),super.dispose()}show(){if(this._element.style.display==="none")throw new Error("Please use show on visible elements");if(!(this._isWithContent()&&this._isEnabled))return;const e=be.trigger(this._element,this.constructor.eventName(dan)),n=(G$e(this._element)||this._element.ownerDocument.documentElement).contains(this._element);if(e.defaultPrevented||!n)return;this._disposePopper();const o=this._getTipElement();this._element.setAttribute("aria-describedby",o.getAttribute("id"));const{container:r}=this._config;if(this._element.ownerDocument.documentElement.contains(this.tip)||(r.append(o),be.trigger(this._element,this.constructor.eventName(man))),this._popper=this._createPopper(o),o.classList.add(oR),"ontouchstart"in document.documentElement)for(const s of[].concat(...document.body.children))be.on(s,"mouseover",J$);const i=()=>{be.trigger(this._element,this.constructor.eventName(han)),this._isHovered===!1&&this._leave(),this._isHovered=!1};this._queueCallback(i,this.tip,this._isAnimated())}hide(){if(!this._isShown()||be.trigger(this._element,this.constructor.eventName(uan)).defaultPrevented)return;if(this._getTipElement().classList.remove(oR),"ontouchstart"in document.documentElement)for(const n of[].concat(...document.body.children))be.off(n,"mouseover",J$);this._activeTrigger[fH]=!1,this._activeTrigger[mH]=!1,this._activeTrigger[rT]=!1,this._isHovered=null;const e=()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute("aria-describedby"),be.trigger(this._element,this.constructor.eventName(can)))};this._queueCallback(e,this.tip,this._isAnimated())}update(){this._popper&&this._popper.update()}_isWithContent(){return!!this._getTitle()}_getTipElement(){return this.tip||(this.tip=this._createTipElement(this._newContent||this._getContentForTemplate())),this.tip}_createTipElement(e){const n=this._getTemplateFactory(e).toHtml();if(!n)return null;n.classList.remove(hH,oR),n.classList.add(`bs-${this.constructor.NAME}-auto`);const o=lrn(this.constructor.NAME).toString();return n.setAttribute("id",o),this._isAnimated()&&n.classList.add(hH),n}setContent(e){this._newContent=e,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(e){return this._templateFactory?this._templateFactory.changeContent(e):this._templateFactory=new oan({...this._config,content:e,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{[aan]:this._getTitle()}}_getTitle(){return this._resolvePossibleFunction(this._config.title)||this._element.getAttribute("data-bs-original-title")}_initializeOnDelegatedTarget(e){return this.constructor.getOrCreateInstance(e.delegateTarget,this._getDelegateConfig())}_isAnimated(){return this._config.animation||this.tip&&this.tip.classList.contains(hH)}_isShown(){return this.tip&&this.tip.classList.contains(oR)}_createPopper(e){const n=Gi(this._config.placement,[this,e,this._element]),o=ban[n.toUpperCase()];return hG(this._element,e,this._getPopperConfig(o))}_getOffset(){const{offset:e}=this._config;return typeof e=="string"?e.split(",").map(n=>Number.parseInt(n,10)):typeof e=="function"?n=>e(n,this._element):e}_resolvePossibleFunction(e){return Gi(e,[this._element,this._element])}_getPopperConfig(e){const n={placement:e,modifiers:[{name:"flip",options:{fallbackPlacements:this._config.fallbackPlacements}},{name:"offset",options:{offset:this._getOffset()}},{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"arrow",options:{element:`.${this.constructor.NAME}-arrow`}},{name:"preSetPlacement",enabled:!0,phase:"beforeMain",fn:o=>{this._getTipElement().setAttribute("data-popper-placement",o.state.placement)}}]};return{...n,...Gi(this._config.popperConfig,[void 0,n])}}_setListeners(){const e=this._config.trigger.split(" ");for(const n of e)if(n==="click")be.on(this._element,this.constructor.eventName(fan),this._config.selector,o=>{const r=this._initializeOnDelegatedTarget(o);r._activeTrigger[fH]=!(r._isShown()&&r._activeTrigger[fH]),r.toggle()});else if(n!==lan){const o=n===rT?this.constructor.eventName(Can):this.constructor.eventName(pan),r=n===rT?this.constructor.eventName(yan):this.constructor.eventName(gan);be.on(this._element,o,this._config.selector,i=>{const s=this._initializeOnDelegatedTarget(i);s._activeTrigger[i.type==="focusin"?mH:rT]=!0,s._enter()}),be.on(this._element,r,this._config.selector,i=>{const s=this._initializeOnDelegatedTarget(i);s._activeTrigger[i.type==="focusout"?mH:rT]=s._element.contains(i.relatedTarget),s._leave()})}this._hideModalHandler=()=>{this._element&&this.hide()},be.on(this._element.closest(fhe),phe,this._hideModalHandler)}_fixTitle(){const e=this._element.getAttribute("title");e&&(!this._element.getAttribute("aria-label")&&!this._element.textContent.trim()&&this._element.setAttribute("aria-label",e),this._element.setAttribute("data-bs-original-title",e),this._element.removeAttribute("title"))}_enter(){if(this._isShown()||this._isHovered){this._isHovered=!0;return}this._isHovered=!0,this._setTimeout(()=>{this._isHovered&&this.show()},this._config.delay.show)}_leave(){this._isWithActiveTrigger()||(this._isHovered=!1,this._setTimeout(()=>{this._isHovered||this.hide()},this._config.delay.hide))}_setTimeout(e,n){clearTimeout(this._timeout),this._timeout=setTimeout(e,n)}_isWithActiveTrigger(){return Object.values(this._activeTrigger).includes(!0)}_getConfig(e){const n=ld.getDataAttributes(this._element);for(const o of Object.keys(n))ian.has(o)&&delete n[o];return e={...n,...typeof e=="object"&&e?e:{}},e=this._mergeConfigObj(e),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}_configAfterMerge(e){return e.container=e.container===!1?document.body:Lm(e.container),typeof e.delay=="number"&&(e.delay={show:e.delay,hide:e.delay}),typeof e.title=="number"&&(e.title=e.title.toString()),typeof e.content=="number"&&(e.content=e.content.toString()),e}_getDelegateConfig(){const e={};for(const[n,o]of Object.entries(this._config))this.constructor.Default[n]!==o&&(e[n]=o);return e.selector=!1,e.trigger="manual",e}_disposePopper(){this._popper&&(this._popper.destroy(),this._popper=null),this.tip&&(this.tip.remove(),this.tip=null)}static jQueryInterface(e){return this.each(function(){const n=e1.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof n[e]>"u")throw new TypeError(`No method named "${e}"`);n[e]()}})}}rl(e1);const xan="popover",Fan=".popover-header",San=".popover-body",wan={...e1.Default,content:"",offset:[0,8],placement:"right",template:'<div class="popover" role="tooltip"><div class="popover-arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>',trigger:"click"},kan={...e1.DefaultType,content:"(null|string|element|function)"};class gG extends e1{static get Default(){return wan}static get DefaultType(){return kan}static get NAME(){return xan}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return{[Fan]:this._getTitle(),[San]:this._getContent()}}_getContent(){return this._resolvePossibleFunction(this._config.content)}static jQueryInterface(e){return this.each(function(){const n=gG.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof n[e]>"u")throw new TypeError(`No method named "${e}"`);n[e]()}})}}rl(gG);const Ean="scrollspy",_an="bs.scrollspy",CG=`.${_an}`,Ran=".data-api",Dan=`activate${CG}`,ghe=`click${CG}`,Aan=`load${CG}${Ran}`,Nan="dropdown-item",py="active",Ban='[data-bs-spy="scroll"]',pH="[href]",Lan=".nav, .list-group",Che=".nav-link",$an=".nav-item",Van=".list-group-item",Man=`${Che}, ${$an} > ${Che}, ${Van}`,Oan=".dropdown",Ian=".dropdown-toggle",Pan={offset:null,rootMargin:"0px 0px -25%",smoothScroll:!1,target:null,threshold:[.1,.5,1]},Wan={offset:"(number|null)",rootMargin:"string",smoothScroll:"boolean",target:"element",threshold:"array"};let vVe=class TVe extends Gl{constructor(e,n){super(e,n),this._targetLinks=new Map,this._observableSections=new Map,this._rootElement=getComputedStyle(this._element).overflowY==="visible"?null:this._element,this._activeTarget=null,this._observer=null,this._previousScrollData={visibleEntryTop:0,parentScrollTop:0},this.refresh()}static get Default(){return Pan}static get DefaultType(){return Wan}static get NAME(){return Ean}refresh(){this._initializeTargetsAndObservables(),this._maybeEnableSmoothScroll(),this._observer?this._observer.disconnect():this._observer=this._getNewObserver();for(const e of this._observableSections.values())this._observer.observe(e)}dispose(){this._observer.disconnect(),super.dispose()}_configAfterMerge(e){return e.target=Lm(e.target)||document.body,e.rootMargin=e.offset?`${e.offset}px 0px -30%`:e.rootMargin,typeof e.threshold=="string"&&(e.threshold=e.threshold.split(",").map(n=>Number.parseFloat(n))),e}_maybeEnableSmoothScroll(){this._config.smoothScroll&&(be.off(this._config.target,ghe),be.on(this._config.target,ghe,pH,e=>{const n=this._observableSections.get(e.target.hash);if(n){e.preventDefault();const o=this._rootElement||window,r=n.offsetTop-this._element.offsetTop;if(o.scrollTo){o.scrollTo({top:r,behavior:"smooth"});return}o.scrollTop=r}}))}_getNewObserver(){const e={root:this._rootElement,threshold:this._config.threshold,rootMargin:this._config.rootMargin};return new IntersectionObserver(n=>this._observerCallback(n),e)}_observerCallback(e){const n=s=>this._targetLinks.get(`#${s.target.id}`),o=s=>{this._previousScrollData.visibleEntryTop=s.target.offsetTop,this._process(n(s))},r=(this._rootElement||document.documentElement).scrollTop,i=r>=this._previousScrollData.parentScrollTop;this._previousScrollData.parentScrollTop=r;for(const s of e){if(!s.isIntersecting){this._activeTarget=null,this._clearActiveClass(n(s));continue}const a=s.target.offsetTop>=this._previousScrollData.visibleEntryTop;if(i&&a){if(o(s),!r)return;continue}!i&&!a&&o(s)}}_initializeTargetsAndObservables(){this._targetLinks=new Map,this._observableSections=new Map;const e=mt.find(pH,this._config.target);for(const n of e){if(!n.hash||$m(n))continue;const o=mt.findOne(decodeURI(n.hash),this._element);Qv(o)&&(this._targetLinks.set(decodeURI(n.hash),n),this._observableSections.set(n.hash,o))}}_process(e){this._activeTarget!==e&&(this._clearActiveClass(this._config.target),this._activeTarget=e,e.classList.add(py),this._activateParents(e),be.trigger(this._element,Dan,{relatedTarget:e}))}_activateParents(e){if(e.classList.contains(Nan)){mt.findOne(Ian,e.closest(Oan)).classList.add(py);return}for(const n of mt.parents(e,Lan))for(const o of mt.prev(n,Man))o.classList.add(py)}_clearActiveClass(e){e.classList.remove(py);const n=mt.find(`${pH}.${py}`,e);for(const o of n)o.classList.remove(py)}static jQueryInterface(e){return this.each(function(){const n=TVe.getOrCreateInstance(this,e);if(typeof e=="string"){if(n[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);n[e]()}})}};be.on(window,Aan,()=>{for(const t of mt.find(Ban))vVe.getOrCreateInstance(t)});rl(vVe);const Han="tab",zan="bs.tab",AC=`.${zan}`,jan=`hide${AC}`,Uan=`hidden${AC}`,Kan=`show${AC}`,qan=`shown${AC}`,Jan=`click${AC}`,Gan=`keydown${AC}`,Yan=`load${AC}`,Xan="ArrowLeft",yhe="ArrowRight",Qan="ArrowUp",bhe="ArrowDown",gH="Home",vhe="End",Tp="active",The="fade",CH="show",Zan="dropdown",xVe=".dropdown-toggle",eln=".dropdown-menu",yH=`:not(${xVe})`,tln='.list-group, .nav, [role="tablist"]',nln=".nav-item, .list-group-item",oln=`.nav-link${yH}, .list-group-item${yH}, [role="tab"]${yH}`,FVe='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',bH=`${oln}, ${FVe}`,rln=`.${Tp}[data-bs-toggle="tab"], .${Tp}[data-bs-toggle="pill"], .${Tp}[data-bs-toggle="list"]`;class mv extends Gl{constructor(e){super(e),this._parent=this._element.closest(tln),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),be.on(this._element,Gan,n=>this._keydown(n)))}static get NAME(){return Han}show(){const e=this._element;if(this._elemIsActive(e))return;const n=this._getActiveElem(),o=n?be.trigger(n,jan,{relatedTarget:e}):null;be.trigger(e,Kan,{relatedTarget:n}).defaultPrevented||o&&o.defaultPrevented||(this._deactivate(n,e),this._activate(e,n))}_activate(e,n){if(!e)return;e.classList.add(Tp),this._activate(mt.getElementFromSelector(e));const o=()=>{if(e.getAttribute("role")!=="tab"){e.classList.add(CH);return}e.removeAttribute("tabindex"),e.setAttribute("aria-selected",!0),this._toggleDropDown(e,!0),be.trigger(e,qan,{relatedTarget:n})};this._queueCallback(o,e,e.classList.contains(The))}_deactivate(e,n){if(!e)return;e.classList.remove(Tp),e.blur(),this._deactivate(mt.getElementFromSelector(e));const o=()=>{if(e.getAttribute("role")!=="tab"){e.classList.remove(CH);return}e.setAttribute("aria-selected",!1),e.setAttribute("tabindex","-1"),this._toggleDropDown(e,!1),be.trigger(e,Uan,{relatedTarget:n})};this._queueCallback(o,e,e.classList.contains(The))}_keydown(e){if(![Xan,yhe,Qan,bhe,gH,vhe].includes(e.key))return;e.stopPropagation(),e.preventDefault();const n=this._getChildren().filter(r=>!$m(r));let o;if([gH,vhe].includes(e.key))o=n[e.key===gH?0:n.length-1];else{const r=[yhe,bhe].includes(e.key);o=mG(n,e.target,r,!0)}o&&(o.focus({preventScroll:!0}),mv.getOrCreateInstance(o).show())}_getChildren(){return mt.find(bH,this._parent)}_getActiveElem(){return this._getChildren().find(e=>this._elemIsActive(e))||null}_setInitialAttributes(e,n){this._setAttributeIfNotExists(e,"role","tablist");for(const o of n)this._setInitialAttributesOnChild(o)}_setInitialAttributesOnChild(e){e=this._getInnerElement(e);const n=this._elemIsActive(e),o=this._getOuterElement(e);e.setAttribute("aria-selected",n),o!==e&&this._setAttributeIfNotExists(o,"role","presentation"),n||e.setAttribute("tabindex","-1"),this._setAttributeIfNotExists(e,"role","tab"),this._setInitialAttributesOnTargetPanel(e)}_setInitialAttributesOnTargetPanel(e){const n=mt.getElementFromSelector(e);n&&(this._setAttributeIfNotExists(n,"role","tabpanel"),e.id&&this._setAttributeIfNotExists(n,"aria-labelledby",`${e.id}`))}_toggleDropDown(e,n){const o=this._getOuterElement(e);if(!o.classList.contains(Zan))return;const r=(i,s)=>{const a=mt.findOne(i,o);a&&a.classList.toggle(s,n)};r(xVe,Tp),r(eln,CH),o.setAttribute("aria-expanded",n)}_setAttributeIfNotExists(e,n,o){e.hasAttribute(n)||e.setAttribute(n,o)}_elemIsActive(e){return e.classList.contains(Tp)}_getInnerElement(e){return e.matches(bH)?e:mt.findOne(bH,e)}_getOuterElement(e){return e.closest(nln)||e}static jQueryInterface(e){return this.each(function(){const n=mv.getOrCreateInstance(this);if(typeof e=="string"){if(n[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);n[e]()}})}}be.on(document,Jan,FVe,function(t){["A","AREA"].includes(this.tagName)&&t.preventDefault(),!$m(this)&&mv.getOrCreateInstance(this).show()});be.on(window,Yan,()=>{for(const t of mt.find(rln))mv.getOrCreateInstance(t)});rl(mv);const iln="toast",sln="bs.toast",kf=`.${sln}`,aln=`mouseover${kf}`,lln=`mouseout${kf}`,uln=`focusin${kf}`,cln=`focusout${kf}`,dln=`hide${kf}`,hln=`hidden${kf}`,mln=`show${kf}`,fln=`shown${kf}`,pln="fade",xhe="hide",rR="show",iR="showing",gln={animation:"boolean",autohide:"boolean",delay:"number"},Cln={animation:!0,autohide:!0,delay:5e3};class _O extends Gl{constructor(e,n){super(e,n),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return Cln}static get DefaultType(){return gln}static get NAME(){return iln}show(){if(be.trigger(this._element,mln).defaultPrevented)return;this._clearTimeout(),this._config.animation&&this._element.classList.add(pln);const e=()=>{this._element.classList.remove(iR),be.trigger(this._element,fln),this._maybeScheduleHide()};this._element.classList.remove(xhe),bk(this._element),this._element.classList.add(rR,iR),this._queueCallback(e,this._element,this._config.animation)}hide(){if(!this.isShown()||be.trigger(this._element,dln).defaultPrevented)return;const e=()=>{this._element.classList.add(xhe),this._element.classList.remove(iR,rR),be.trigger(this._element,hln)};this._element.classList.add(iR),this._queueCallback(e,this._element,this._config.animation)}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(rR),super.dispose()}isShown(){return this._element.classList.contains(rR)}_maybeScheduleHide(){this._config.autohide&&(this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout(()=>{this.hide()},this._config.delay)))}_onInteraction(e,n){switch(e.type){case"mouseover":case"mouseout":{this._hasMouseInteraction=n;break}case"focusin":case"focusout":{this._hasKeyboardInteraction=n;break}}if(n){this._clearTimeout();return}const o=e.relatedTarget;this._element===o||this._element.contains(o)||this._maybeScheduleHide()}_setListeners(){be.on(this._element,aln,e=>this._onInteraction(e,!0)),be.on(this._element,lln,e=>this._onInteraction(e,!1)),be.on(this._element,uln,e=>this._onInteraction(e,!0)),be.on(this._element,cln,e=>this._onInteraction(e,!1))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(e){return this.each(function(){const n=_O.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof n[e]>"u")throw new TypeError(`No method named "${e}"`);n[e](this)}})}}wO(_O);rl(_O);const yln=["Arial","Georgia","Tahoma","TimesNewRoman","Verdana"];Hd.create({name:"textTransform",addOptions(){return{types:["textStyle"]}},addGlobalAttributes(){return[{types:this.options.types,attributes:{textTransform:{default:"none",parseHTML:t=>t.style.textTransform,renderHTML:t=>t.textTransform?{style:`text-transform: ${t.textTransform}`}:{}}}}]},addCommands(){return{setTextTransform:t=>({chain:e})=>e().setMark("textStyle",{textTransform:t}).run(),unsetTextTransform:()=>({chain:t,state:e})=>{const{from:n,to:o,$from:r}=e.selection;return e.doc.textBetween(n,o," ").length?t().setMark("textStyle",{textTransform:"none"}).run():t().setTextSelection({from:r.pos-r.nodeBefore.nodeSize,to:r.pos+r.nodeAfter.nodeSize}).setMark("textStyle",{textTransform:"none"}).focus().run()}}},addKeyboardShortcuts(){const t=e=>e.isUppercase?this.editor.commands.unsetTextTransform():this.editor.commands.setTextTransform("uppercase");return{"Mod-Shift-u":()=>{const e=this.editor.isActive("textStyle",{textTransform:"uppercase"});return t({isUppercase:e})},"Mod-Shift-U":()=>{const e=this.editor.isActive("textStyle",{textTransform:"uppercase"});return t({isUppercase:e})}}}});Hd.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()}}});Hd.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()}}});Hd.create({name:"fontWeight",addOptions(){return{types:["textStyle"]}},addGlobalAttributes(){return[{types:this.options.types,attributes:{fontWeight:{default:null,parseHTML:t=>t.style.fontWeight,renderHTML:t=>t.fontWeight?{style:`font-weight: ${t.fontWeight}`}:{}}}}]},addCommands(){return{setFontWeight:t=>({chain:e})=>e().setMark("textStyle",{fontWeight:t}).run(),unsetFontWeight:()=>({chain:t,state:e})=>{const{from:n,to:o,$from:r}=e.selection;return e.doc.textBetween(n,o," ").length?t().setMark("textStyle",{fontWeight:"normal"}).run():t().setTextSelection({from:r.pos-r.nodeBefore.nodeSize,to:r.pos+r.nodeAfter.nodeSize}).setMark("textStyle",{fontWeight:"normal"}).focus().run()},resetFontWeight:()=>({chain:t})=>t().setMark("textStyle",{fontWeight:null}).removeEmptyTextStyle().run()}},addKeyboardShortcuts(){const t=e=>e.isBold?this.editor.commands.unsetFontWeight():this.editor.commands.setFontWeight("bold");return{"Mod-b":()=>{const e=this.editor.isActive("textStyle",{fontWeight:"bold"});return t({isBold:e})},"Mod-B":()=>{const e=this.editor.isActive("textStyle",{fontWeight:"bold"});return t({isBold:e})}}}});Hd.create({name:"fontStyle",addOptions(){return{types:["textStyle"]}},addGlobalAttributes(){return[{types:this.options.types,attributes:{fontStyle:{default:null,parseHTML:t=>t.style.fontStyle,renderHTML:t=>t.fontStyle?{style:`font-style: ${t.fontStyle}`}:{}}}}]},addCommands(){return{setFontStyle:t=>({chain:e})=>e().setMark("textStyle",{fontStyle:t}).run(),unsetFontStyle:()=>({chain:t,state:e})=>{const{from:n,to:o,$from:r}=e.selection;return e.doc.textBetween(n,o," ").length?t().setMark("textStyle",{fontStyle:"normal"}).run():t().setTextSelection({from:r.pos-r.nodeBefore.nodeSize,to:r.pos+r.nodeAfter.nodeSize}).setMark("textStyle",{fontStyle:"normal"}).focus().run()},resetFontStyle:()=>({chain:t})=>t().setMark("textStyle",{fontStyle:null}).removeEmptyTextStyle().run()}},addKeyboardShortcuts(){const t=e=>e.isItalic?this.editor.commands.unsetFontStyle():this.editor.commands.setFontStyle("italic");return{"Mod-i":()=>{const e=this.editor.isActive("textStyle",{fontStyle:"italic"});return t({isItalic:e})},"Mod-I":()=>{const e=this.editor.isActive("textStyle",{fontStyle:"italic"});return t({isItalic:e})}}}});Hd.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",Ys(this.options.HTMLAttributes,t),0]},addCommands(){return{setUnsubscribeLink:()=>({chain:t})=>t().setMark("unsubscribeLink").focus().run(),unsetUnsubscribeLink:()=>({chain:t,state:e})=>{const{from:n,to:o}=e.selection,r=e.doc.textBetween(n,o," ");return e.doc.nodeAt(n)?.type.name==="image"?t().unsetMark("unsubscribeLink").focus().run():r.length?t().setTextSelection({from:n,to:n+r.length}).unsetMark("unsubscribeLink").focus().run():t().unsetMark("unsubscribeLink",{extendEmptyMarkRange:!0}).focus().run()}}}});Hd.create({name:"textDecoration",addOptions(){return{types:["textStyle"]}},addGlobalAttributes(){return[{types:this.options.types,attributes:{textDecoration:{parseHTML:t=>t.style.textDecoration,renderHTML:t=>t.textDecoration?{style:`text-decoration: ${t.textDecoration}`}:{}}}}]},addCommands(){return{setTextDecoration:t=>({chain:e})=>e().setMark("textStyle",{textDecoration:t}).run(),unsetTextDecoration:()=>({chain:t,state:e})=>{const{from:n,to:o,$from:r}=e.selection;return e.doc.textBetween(n,o," ").length?t().setMark("textStyle",{textDecoration:"none"}).run():t().setTextSelection({from:r.pos-r.nodeBefore.nodeSize,to:r.pos+r.nodeAfter.nodeSize}).setMark("textStyle",{textDecoration:"none"}).focus().run()}}},addKeyboardShortcuts(){const t=n=>n.isUnderline?this.editor.commands.unsetTextDecoration():this.editor.commands.setTextDecoration("underline"),e=n=>n.isLineThrough?this.editor.commands.unsetTextDecoration():this.editor.commands.setTextDecoration("line-through");return{"Mod-Shift-s":()=>{const n=this.editor.isActive("textStyle",{textDecoration:"line-through"});return e({isLineThrough:n})},"Mod-u":()=>{const n=this.editor.isActive("textStyle",{textDecoration:"underline"});return t({isUnderline:n})},"Mod-U":()=>{const n=this.editor.isActive("textStyle",{textDecoration:"underline"});return t({isUnderline:n})}}}});Dn.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 yln.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()}}});const bln=t=>new Promise((e,n)=>{const o=new Image;o.onload=()=>{e({width:o.naturalWidth,height:o.naturalHeight})},o.onerror=n,o.src=t});sc.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",Ys(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[ftn({find:/(?:^|\s)(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))$/,type:this.type,getAttributes:t=>{const[,,e,n,o]=t;return{src:n,alt:e,title:o}}})]},addProseMirrorPlugins(){return[new wo({view:t=>((async()=>{const{state:e,dispatch:n}=t;e.doc.descendants((o,r)=>{if(o.type.name===this.name){const{src:i,width:s,height:a}=o.attrs;i&&(!s||!a)&&bln(i).then(l=>{const u=e.tr.setNodeMarkup(r,void 0,{...o.attrs,width:l.width,height:l.height});n(u)})}})})(),{})})]}});bO();const vln=t=>{let e={};return n=>zYt(n).Match({AbandonedViewNAProductList:({StockSource:o})=>GP({partnerId:t.partnerId,stockId:hl({stockSource:o,customerStockId:t.customerStockId}),getSampleProductsForPreviewHttpClient:t.listExpressionDataSourceBffClient.postGetSampleProductsForPreview}),RelatedProductsForAbandonedViewNAProductList:({StockSource:o})=>GP({partnerId:t.partnerId,stockId:hl({stockSource:o,customerStockId:t.customerStockId}),getSampleProductsForPreviewHttpClient:t.listExpressionDataSourceBffClient.postGetSampleProductsForPreview}),AlternativeProductsForAbandonedViewNAProductList:({StockSource:o})=>GP({partnerId:t.partnerId,stockId:hl({stockSource:o,customerStockId:t.customerStockId}),getSampleProductsForPreviewHttpClient:t.listExpressionDataSourceBffClient.postGetSampleProductsForPreview}),ProductList:({ProductIds:o,StockSource:r})=>fLt({partnerId:t.partnerId,productIDs:o,stockId:hl({stockSource:r,customerStockId:t.customerStockId}),productCache:e,getProductsByIDsHttpClient:t.listExpressionDataSourceBffClient.postGetProductsByIds}),RelatedProductsFor:({ProductIds:o,StockSource:r})=>pLt({partnerId:t.partnerId,productIDs:o,stockId:hl({stockSource:r,customerStockId:t.customerStockId}),getRelatedProducts:t.listExpressionDataSourceBffClient.postGetRelatedRecommendations}),AlternativeProductsFor:({ProductIds:o,StockSource:r})=>gLt({partnerId:t.partnerId,productIDs:o,stockId:hl({stockSource:r,customerStockId:t.customerStockId}),getAlternativeProductsHttpClient:t.listExpressionDataSourceBffClient.postGetAlternativeRecommendations}),PopularProductsInCategories:({CategoryIds:o,StockSource:r})=>CLt({partnerId:t.partnerId,categoryIds:o,stockId:hl({stockSource:r,customerStockId:t.customerStockId}),getPopularProductsInCategoriesHttpClient:t.listExpressionDataSourceBffClient.postGetPopularInCategoriesRecommendations}),Popular:({StockSource:o})=>Sxt({partnerId:t.partnerId,stockId:hl({stockSource:o,customerStockId:t.customerStockId}),getPopularProductsHttpClient:t.listExpressionDataSourceBffClient.postGetPopularRecommendations}),Latest:({StockSource:o})=>yLt({partnerId:t.partnerId,stockId:hl({stockSource:o,customerStockId:t.customerStockId}),getLatestProductsHttpClient:t.listExpressionDataSourceBffClient.postGetLatestRecommendations}),SaleByPopular:({StockSource:o})=>bLt({partnerId:t.partnerId,stockId:hl({stockSource:o,customerStockId:t.customerStockId}),getSaleByPopularProductsHttpClient:t.listExpressionDataSourceBffClient.postGetSaleByPopularRecommendations}),SaleByLatest:({StockSource:o})=>vLt({partnerId:t.partnerId,stockId:hl({stockSource:o,customerStockId:t.customerStockId}),getSaleByLatestProductsHttpClient:t.listExpressionDataSourceBffClient.postGetSaleByLatestRecommendations})})},Tln=()=>()=>Promise.resolve(0),xln=t=>{const e=t.contactCustomData;return n=>HYt(n.stringExpressionDataSource).Match({StringFromContactCustomData:o=>Promise.resolve(e[o.FieldName]),StringFromContactCustomDataWithFallback:o=>Promise.resolve(o.FieldName in e&&typeof e[o.FieldName]=="string"?e[o.FieldName]:o.FallbackValue),ProductImageUrlBuilderExpression:o=>t.productImageUrlBuilderExpressionEvaluator({expression:o,context:n.context}),NextCouponFromBatch:()=>Promise.resolve("Coupon")})};var Tc={},Fhe;function Fln(){if(Fhe)return Tc;Fhe=1;var t=Tc&&Tc.__awaiter||function(E,A,N,I){function M($){return $ instanceof N?$:new N(function(H){H($)})}return new(N||(N=Promise))(function($,H){function ke(K){try{ve(I.next(K))}catch(Pe){H(Pe)}}function Oe(K){try{ve(I.throw(K))}catch(Pe){H(Pe)}}function ve(K){K.done?$(K.value):M(K.value).then(ke,Oe)}ve((I=I.apply(E,A||[])).next())})},e=Tc&&Tc.__generator||function(E,A){var N={label:0,sent:function(){if($[0]&1)throw $[1];return $[1]},trys:[],ops:[]},I,M,$,H=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return H.next=ke(0),H.throw=ke(1),H.return=ke(2),typeof Symbol=="function"&&(H[Symbol.iterator]=function(){return this}),H;function ke(ve){return function(K){return Oe([ve,K])}}function Oe(ve){if(I)throw new TypeError("Generator is already executing.");for(;H&&(H=0,ve[0]&&(N=0)),N;)try{if(I=1,M&&($=ve[0]&2?M.return:ve[0]?M.throw||(($=M.return)&&$.call(M),0):M.next)&&!($=$.call(M,ve[1])).done)return $;switch(M=0,$&&(ve=[ve[0]&2,$.value]),ve[0]){case 0:case 1:$=ve;break;case 4:return N.label++,{value:ve[1],done:!1};case 5:N.label++,M=ve[1],ve=[0];continue;case 7:ve=N.ops.pop(),N.trys.pop();continue;default:if($=N.trys,!($=$.length>0&&$[$.length-1])&&(ve[0]===6||ve[0]===2)){N=0;continue}if(ve[0]===3&&(!$||ve[1]>$[0]&&ve[1]<$[3])){N.label=ve[1];break}if(ve[0]===6&&N.label<$[1]){N.label=$[1],$=ve;break}if($&&N.label<$[2]){N.label=$[2],N.ops.push(ve);break}$[2]&&N.ops.pop(),N.trys.pop();continue}ve=A.call(E,N)}catch(K){ve=[6,K],M=0}finally{I=$=0}if(ve[0]&5)throw ve[1];return{value:ve[0]?ve[1]:void 0,done:!0}}};Object.defineProperty(Tc,"__esModule",{value:!0}),Tc.createApi=void 0;var n=function(E,A){return function(N){return E(N,A)}},o=function(E){return{products:E.products.map(function(A){return i(A)})}},r=function(E){return{products:E.products.map(function(A){return i(A)})}},i=function(E){return{internalId:E.internalId,externalId:E.externalId,name:E.name,description:E.description,vendor:E.vendor?E.vendor:void 0,price:E.price,oldPrice:E.oldPrice,discountPercentage:E.discountPercentage?E.discountPercentage:void 0,pictureUrl:E.pictureUrl,url:E.url,parameters:E.parameters.map(function(A){return p(A)})}},s=function(E){return{recommendations:E.recommendations.map(function(A){return f(A)})}},a=function(E){return{recommendations:E.recommendations.map(function(A){return f(A)})}},l=function(E){return{recommendations:E.recommendations.map(function(A){return f(A)})}},u=function(E){return{recommendations:E.recommendations.map(function(A){return f(A)})}},c=function(E){return{recommendations:E.recommendations.map(function(A){return f(A)})}},d=function(E){return{recommendations:E.recommendations.map(function(A){return f(A)})}},h=function(E){return{recommendations:E.recommendations.map(function(A){return f(A)})}},m=function(E){return{recommendations:E.recommendations.map(function(A){return f(A)})}},f=function(E){return{internalProductId:E.internalProductId,externalProductId:E.externalProductId,name:E.name,description:E.description,vendor:E.vendor?E.vendor:void 0,price:E.price,oldPrice:E.oldPrice,discountPercentage:E.discountPercentage?E.discountPercentage:void 0,pictureUrl:E.pictureUrl,url:E.url,parameters:E.parameters.map(function(A){return p(A)})}},p=function(E){return{name:E.name,value:E.value}};function g(E,A){return t(this,void 0,void 0,function(){var N,I,M;return e(this,function($){switch($.label){case 0:return N="wysiwyg/bff/v2/listExpressionDataSource/getProductsByIds/",I=new URLSearchParams,[4,A({path:N,method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(E.body),query:I.toString()})];case 1:if(M=$.sent(),M.status===200)return[2,{status:200,body:o(M.body)}];throw new Error("Unknown response")}})})}function y(E,A){return t(this,void 0,void 0,function(){var N,I,M;return e(this,function($){switch($.label){case 0:return N="wysiwyg/bff/v2/listExpressionDataSource/getPopularRecommendations/",I=new URLSearchParams,[4,A({path:N,method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(E.body),query:I.toString()})];case 1:if(M=$.sent(),M.status===200)return[2,{status:200,body:s(M.body)}];throw new Error("Unknown response")}})})}function b(E,A){return t(this,void 0,void 0,function(){var N,I,M;return e(this,function($){switch($.label){case 0:return N="wysiwyg/bff/v2/listExpressionDataSource/getPopularInCategoriesRecommendations/",I=new URLSearchParams,[4,A({path:N,method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(E.body),query:I.toString()})];case 1:if(M=$.sent(),M.status===200)return[2,{status:200,body:a(M.body)}];throw new Error("Unknown response")}})})}function F(E,A){return t(this,void 0,void 0,function(){var N,I,M;return e(this,function($){switch($.label){case 0:return N="wysiwyg/bff/v2/listExpressionDataSource/getRelatedRecommendations/",I=new URLSearchParams,[4,A({path:N,method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(E.body),query:I.toString()})];case 1:if(M=$.sent(),M.status===200)return[2,{status:200,body:l(M.body)}];throw new Error("Unknown response")}})})}function v(E,A){return t(this,void 0,void 0,function(){var N,I,M;return e(this,function($){switch($.label){case 0:return N="wysiwyg/bff/v2/listExpressionDataSource/getAlternativeRecommendations/",I=new URLSearchParams,[4,A({path:N,method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(E.body),query:I.toString()})];case 1:if(M=$.sent(),M.status===200)return[2,{status:200,body:u(M.body)}];throw new Error("Unknown response")}})})}function T(E,A){return t(this,void 0,void 0,function(){var N,I,M;return e(this,function($){switch($.label){case 0:return N="wysiwyg/bff/v2/listExpressionDataSource/getSearchRecommendations/",I=new URLSearchParams,[4,A({path:N,method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(E.body),query:I.toString()})];case 1:if(M=$.sent(),M.status===200)return[2,{status:200,body:c(M.body)}];throw new Error("Unknown response")}})})}function w(E,A){return t(this,void 0,void 0,function(){var N,I,M;return e(this,function($){switch($.label){case 0:return N="wysiwyg/bff/v2/listExpressionDataSource/getLatestRecommendations/",I=new URLSearchParams,[4,A({path:N,method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(E.body),query:I.toString()})];case 1:if(M=$.sent(),M.status===200)return[2,{status:200,body:d(M.body)}];throw new Error("Unknown response")}})})}function k(E,A){return t(this,void 0,void 0,function(){var N,I,M;return e(this,function($){switch($.label){case 0:return N="wysiwyg/bff/v2/listExpressionDataSource/getSaleByPopularRecommendations/",I=new URLSearchParams,[4,A({path:N,method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(E.body),query:I.toString()})];case 1:if(M=$.sent(),M.status===200)return[2,{status:200,body:h(M.body)}];throw new Error("Unknown response")}})})}function R(E,A){return t(this,void 0,void 0,function(){var N,I,M;return e(this,function($){switch($.label){case 0:return N="wysiwyg/bff/v2/listExpressionDataSource/getSaleByLatestRecommendations/",I=new URLSearchParams,[4,A({path:N,method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(E.body),query:I.toString()})];case 1:if(M=$.sent(),M.status===200)return[2,{status:200,body:m(M.body)}];throw new Error("Unknown response")}})})}function D(E,A){return t(this,void 0,void 0,function(){var N,I,M;return e(this,function($){switch($.label){case 0:return N="wysiwyg/bff/v2/listExpressionDataSource/getSampleProductsForPreview/",I=new URLSearchParams,[4,A({path:N,method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(E.body),query:I.toString()})];case 1:if(M=$.sent(),M.status===200)return[2,{status:200,body:r(M.body)}];throw new Error("Unknown response")}})})}var V=function(E){return{postGetProductsByIds:n(g,E),postGetPopularRecommendations:n(y,E),postGetPopularInCategoriesRecommendations:n(b,E),postGetRelatedRecommendations:n(F,E),postGetAlternativeRecommendations:n(v,E),postGetSearchRecommendations:n(T,E),postGetLatestRecommendations:n(w,E),postGetSaleByPopularRecommendations:n(k,E),postGetSaleByLatestRecommendations:n(R,E),postGetSampleProductsForPreview:n(D,E)}};return Tc.createApi=V,Tc}var Sln=Fln();const SVe="#app",as=document.querySelector(SVe),mo={partnerId:as.getAttribute("data-partner-id"),wysiwygTemplateEditorBffBaseUrl:as.getAttribute("data-wysiwyg-template-editor-bff-base-url"),wysiwygBffProxyBaseUrl:as.getAttribute("data-wysiwyg-bff-proxy-base-url"),antiForgeryHeaderTokenName:as.getAttribute("data-anti-forgery-header-token-name"),antiForgeryHeaderTokenValue:as.getAttribute("data-anti-forgery-header-token-value"),antiForgeryFormTokenName:as.getAttribute("data-anti-forgery-form-token-name"),antiForgeryFormTokenValue:as.getAttribute("data-anti-forgery-form-token-value"),createEmailTemplateSubmitUrl:as.getAttribute("data-create-email-template-submit-url"),initialEmailTemplateJson:as.getAttribute("data-initial-abandoned-view-na-template"),abandonedViewNAFavoritesTemplates:JSON.parse(as.getAttribute("data-abandoned-view-na-favorites-templates")),commonFavoritesTemplates:JSON.parse(as.getAttribute("data-common-favorites-templates")),exitLink:as.getAttribute("data-exit-link"),localeKey:as.getAttribute("data-locale-key")||"en"},wln=t=>dLt({baseUrl:t.baseUrl,antiForgeryTokenHeaderName:mo.antiForgeryHeaderTokenName,antiForgeryTokenValue:mo.antiForgeryHeaderTokenValue}),kln=Sln.createApi(wln({baseUrl:mo.wysiwygBffProxyBaseUrl})),wVe=t=>{const e=new FormData;e.append(mo.antiForgeryFormTokenName,mo.antiForgeryFormTokenValue),e.append("template",JSON.stringify(t.template));const n=a8e({method:"POST",action:mo.createEmailTemplateSubmitUrl,formData:e});document.body.appendChild(n),n.submit()},Eln={},_ln={BatchId:""},vH=t=>{const e=vln({partnerId:mo.partnerId,listExpressionDataSourceBffClient:kln,customerStockId:void 0}),n=U7e({listExpressionDataSourceEvaluator:e}),o=Tln(),r=s8e({listExpressionEvaluator:n,numberExpressionDataSourceEvaluator:o}),i=Y7e({listExpressionEvaluator:n,numberExpressionEvaluator:r,stringExpressionDataSourceEvaluatorFactory:()=>xln({productImageUrlBuilderExpressionEvaluator:BYe({partnerId:mo.partnerId,numberExpressionEvaluator:r}),contactCustomData:Eln,nextCouponFromBatch:_ln})}),s=H7e({listExpressionEvaluator:n,numberExpressionEvaluator:r,stringExpressionEvaluator:i,dataStructBuilderExpressionEvaluatorFactory:u=>FQ({expressionEvaluator:u})}),a=FQ({expressionEvaluator:s}),l=d4t({localeKey:mo.localeKey});return Fxt({template:t.template,templateName:t.templateName,emailTemplatePreviewTileDeps:mLt({localeKey:mo.localeKey,dataSourceFieldNameDelegate:({dataSource:u})=>vv(u).Match({StringFromContactCustomData:c=>c.FieldName,StringFromContactCustomDataWithFallback:c=>c.FallbackValue,ProductImageUrlBuilderExpression:()=>"ImageResizer",NextCouponFromBatch:()=>"Coupon"}),richTextToolbarPlugins:[TLt({richTextToolbarPluginComponent:L5t,deps:vYe({localeKey:mo.localeKey,stringExpressionBuilderPlugin:l})})],listExpressionEvaluator:n,numberExpressionEvaluator:r,stringExpressionEvaluator:i,dataStructExpressionEvaluator:a,expressionEvaluator:s,stringExpressionBuilderPlugin:l}),onFavoriteTemplateSelected:()=>{wVe({template:t.template})}})},She=mo.localeKey==="ru"?m4t:h4t,kVe=JWe(bYe,{onInitialTemplateSelected:()=>{wVe({template:mo.initialEmailTemplateJson.length?JSON.parse(mo.initialEmailTemplateJson):She})},deps:cLt({localeKey:mo.localeKey,emailTemplatePreviews:{custom:[...mo.commonFavoritesTemplates.map(t=>({templateName:t.favoriteTemplateName,previewTileComponent:vH({template:JSON.parse(t.templateJson),templateName:t.favoriteTemplateName})})),...mo.abandonedViewNAFavoritesTemplates.map(t=>({templateName:t.favoriteTemplateName,previewTileComponent:vH({template:JSON.parse(t.templateJson),templateName:t.favoriteTemplateName})}))],default:[...AYe(mo.localeKey).map(t=>({templateName:t.favoriteTemplateName,previewTileComponent:vH({template:t.defaultTemplate,templateName:t.favoriteTemplateName})}))]},initialEmailTemplate:mo.initialEmailTemplateJson.length?JSON.parse(mo.initialEmailTemplateJson):She,exitLink:mo.exitLink})});kVe.use(hpe({theme:!1,directives:{ClickOutside:Kze}}));kVe.mount(SVe)});export default Rln();
379
- //# sourceMappingURL=index.js.map