@retailrocketgroup/retailrocket-create.repurchase-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
  ${$R({borderColor:t.Color,themeColors:e})}
194
- `}),pd=t=>({borderTop:RE(t.border.Top,t.themeColors),borderRight:RE(t.border.Right,t.themeColors),borderBottom:RE(t.border.Bottom,t.themeColors),borderLeft:RE(t.border.Left,t.themeColors)}),MS=t=>t.borderCollapse!==void 0?{borderCollapse:Fgt(t.borderCollapse)}:{borderCollapse:"collapse"},Fgt=t=>{switch(t){case"Collapse":return"collapse";case"Separate":return"separate";default:return ta(t)}},wgt=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)}}}),Bl=t=>wgt(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}),hxe=t=>({Match:e=>{switch(t){case"Left":return e.Left();case"Center":return e.Center();case"Right":return e.Right();default:return ta(t)}}}),Sgt=t=>t.containerAlign?hxe(t.containerAlign).Match({Left:()=>({textAlign:"left"}),Center:()=>({textAlign:"center"}),Right:()=>({textAlign:"right"})}):{},$c=t=>t.containerAlign?hxe(t.containerAlign).Match({Left:()=>"left",Center:()=>"center",Right:()=>"right"}):"center",kgt=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))}}),OS=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"}),Egt=tc,_gt=t=>Egt(t.width).Match({Auto:()=>"initial",Pixel:e=>e.Value+"px",Percentage:e=>e.Value+"%"}),Rgt=["align"],Dgt=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(_gt)({width:n.element.Width})}])},[_("tbody",null,[_("tr",null,[_("td",{align:z($c)({containerAlign:n.element.ContainerAlign}),style:he([z(OS)({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(Bl)({color:n.element.BackgroundColor,themeColors:n.theme.Colors})??"inherit"},z(pd)({border:n.element.Border,themeColors:n.theme.Colors}),z(Pu)({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,Rgt)])])],4))}}),Agt=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()}}}),xb=t=>Agt(t.contentAlign).Match({Left:()=>({display:"block",textAlign:"left"}),Center:()=>({display:"block",textAlign:"center"}),Right:()=>({display:"block",textAlign:"right"}),Inline:()=>({})});let tP;const pw={mounted(t,e){const n=e.value;tP=new ResizeObserver(o=>{o.forEach(r=>n(r.contentRect))}),tP.observe(t)},unmounted(t){tP.unobserve(t)}},Ngt=["href"],Bgt=["src","alt"],Lgt=["src","alt"],$gt=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(xb)({contentAlign:o.element.ContentAlign})]),onClick:d[0]||(d[0]=Ho(()=>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(Pu)({borderRadius:o.element.BorderRadius,borderRadiusCard:o.theme.BorderRadiusCard,bodyBorderRadius:o.theme.BorderRadius,borderButtonRadius:o.theme.BorderRadiusButton,borderBannerRadius:o.theme.BorderRadiusBanner}),z(pd)({border:o.element.Border,themeColors:o.theme.Colors}),{width:i.value,maxWidth:s.value},{verticalAlign:o.element.VerticalAlign}]),onLoad:n},null,46,Bgt)),[[z(pw),({width:h,height:m})=>u("onImageSizeAdjusted",{Path:o.path,AdjustedHeight:m,AdjustedWidth:h})]]):Ue("",!0)],12,Ngt)):(O(),J("span",{key:1,style:he([z(xb)({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(Pu)({borderRadius:o.element.BorderRadius,borderRadiusCard:o.theme.BorderRadiusCard,bodyBorderRadius:o.theme.BorderRadius,borderButtonRadius:o.theme.BorderRadiusButton,borderBannerRadius:o.theme.BorderRadiusBanner}),z(pd)({border:o.element.Border,themeColors:o.theme.Colors}),{width:i.value,maxWidth:s.value},{verticalAlign:o.element.VerticalAlign}]),onLoad:n},null,46,Lgt)),[[z(pw),({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},Vgt=ot($gt,[["__scopeId","data-v-83688a51"]]),Mgt=tc,Ogt=t=>t.width===void 0?{}:Mgt(t.width).Match({Auto:()=>({width:"auto"}),Pixel:e=>({width:e.Value+"px"}),Percentage:e=>({width:e.Value+"%"})}),Igt=t=>{switch(t){case"Auto":return{width:"auto"};case"FullWidth":return{width:"100%"};default:return ta(t)}},Pgt=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(Igt)(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(OS)({paddings:n.element.ItemPaddings,themeComponentPaddings:n.theme.ComponentPaddings,themeBodyPaddings:n.theme.BodyPaddings}),z(Ogt)({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))}}),Wgt={style:{"border-spacing":"0","border-collapse":"collapse",width:"100%"}},Hgt=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",Wgt,[_("tbody",null,[_("tr",null,[_("td",{style:he([[{borderTop:n.element.Weight+"px",borderStyle:n.element.Weight>0?"solid":"none",borderColor:z(Bl)({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)])])]))}}),I5={beforeMount(t,e){t.innerHTML=tee.sanitize(e.value)},beforeUpdate(t,e){t.innerHTML=tee.sanitize(e.value)}},zgt=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)}}}),gM=t=>zgt(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}),jgt=t=>({Match:e=>{switch(t){case"None":return e.None();case"Underline":return e.Underline();case"LineThrough":return e.LineThrough()}}}),aU=t=>jgt(t.textDecoration).Match({None:()=>"none",Underline:()=>"underline",LineThrough:()=>"line-through"}),mxe=t=>({fontSize:t.customFontSettings.FontSize,lineHeight:t.customFontSettings.LineHeight,fontWeight:t.customFontSettings.IsBold?"bold":"normal",fontStyle:t.customFontSettings.IsItalic?"italic":"normal",textDecoration:aU({textDecoration:t.customFontSettings.Decoration}),fontFamily:t.customFontSettings.FontFamily,color:gM({fontColor:t.customFontSettings.FontColor,themeColors:t.themeColors})}),fxe=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)}}}),Ugt=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)}}}),Kgt=t=>Ugt(t.fontStyleColor).Match({FontStyle:()=>fxe(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=>Bl({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}),pxe=["Arial","Georgia","Tahoma","TimesNewRoman","Verdana"],P5={Arial:"Arial",Georgia:"Georgia",Tahoma:"Tahoma",TimesNewRoman:"Times New Roman",Verdana:"Verdana"},lU=t=>({fontSize:t.fontSize+"px",lineHeight:t.lineHeight+"px",fontWeight:t.fontWeight,fontStyle:t.fontStyle,fontFamily:P5[t.fontFamily],textDecoration:t.textDecoration,color:t.color}),uU=t=>{const e=n=>({fontSize:n.FontSize,lineHeight:n.LineHeight,fontWeight:n.IsBold?"bold":"normal",fontStyle:n.IsItalic?"italic":"normal",fontFamily:t.fontFamily,textDecoration:aU({textDecoration:n.Decoration}),color:Kgt({fontStyleColor:t.fontStyle.FontColor,fontStyle:t.fontStyle,themeColors:t.themeColors})});return fxe(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=>mxe({customFontSettings:n,themeColors:t.themeColors})})},qgt=t=>({Match:e=>{switch(t.Discriminator){case"Theme":return e.Theme();case"Custom":return e.Custom(t.CustomValue);default:return ta(t.Discriminator)}}}),Jgt=t=>qgt(t.buttonPaddings).Match({Theme:()=>({TopBottom:t.themeButtonPaddings.TopBottom,LeftRight:t.themeButtonPaddings.LeftRight}),Custom:e=>({TopBottom:e.TopBottom,LeftRight:e.LeftRight})}),Ggt=["align"],Ygt={class:"Button"},Xgt=["href"],Qgt=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(()=>lU(uU({fontFamily:n.theme.FontFamily,fontStyle:n.element.TextStyle,themeDefinedFontSettings:n.theme.FontSettingsPresets,themeColors:n.theme.Colors}))),r=q(()=>$R({borderColor:n.element.Border.Left.Color,themeColors:n.theme.Colors})),i=q(()=>Jgt({buttonPaddings:n.element.Paddings,themeButtonPaddings:n.theme.ButtonPaddings})),s=q(()=>Bl({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]=Ho(f=>d("onElementClicked"),["prevent"]))},[_("tbody",null,[_("tr",null,[_("td",{align:a.value},[_("div",Ygt,[_("a",{style:he([{display:"block","text-decoration":"none"},[o.value]]),href:l.href,onClick:m[0]||(m[0]=Ho(()=>{},["prevent"]))},[_("table",{style:he([[{backgroundColor:s.value},z(Pu)({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(pd)({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(I5),l.text]])],4)])])],4)],12,Xgt)])],8,Ggt)])])]))}}),Zgt=ot(Qgt,[["__scopeId","data-v-f2906df7"]]),eCt=["href"],tCt=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=uU({fontFamily:n.theme.FontFamily,fontStyle:n.element.Style,themeDefinedFontSettings:n.theme.FontSettingsPresets,themeColors:n.theme.Colors});if(n.element.Style.Discriminator==="Custom"){const c=mxe({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(xb)({contentAlign:n.element.ContentAlign})]]),onClick:c[0]||(c[0]=Ho(()=>l("onElementClicked"),["prevent"]))},null,14,eCt)),[[z(I5),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(xb)({contentAlign:n.element.ContentAlign})]]),onClick:c[1]||(c[1]=Ho(()=>l("onElementClicked"),["prevent"]))},null,6)),[[z(I5),i.text]])}}),nCt=ot(tCt,[["__scopeId","data-v-f6595f5e"]]),us=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:aU({textDecoration:t.themeFontSettings.Decoration}),color:t.themeColor}),oCt={class:"bootstrap-styles modal fade show d-block position-absolute"},rCt={class:"bootstrap-styles modal-dialog modal-dialog-centered"},iCt={class:"bootstrap-styles modal-content border rounded-3 shadow","data-test":"modal-window__content"},sCt={class:"bootstrap-styles modal-header p-0"},aCt={class:"bootstrap-styles container-fluid border-bottom g-0"},lCt={class:"bootstrap-styles d-flex justify-content-between align-items-center px-11 py-7"},uCt={class:"bootstrap-styles modal-title border-0","data-test":"modal-window__header-text"},cCt={class:"bootstrap-styles modal-body p-0","data-test":"modal-window__body"},dCt={class:"bootstrap-styles modal-footer p-0 g-0"},hCt={class:"bootstrap-styles container-fluid border-top"},mCt={class:"bootstrap-styles d-flex justify-content-end py-8 px-11"},fCt={class:"bootstrap-styles col-6 d-flex justify-content-end","data-test":"modal-window__footer-actions"},pCt=Xe({__name:"ModalWindow",props:{headerText:{}},emits:["close"],setup(t,{emit:e}){const n=t,o=e;return(r,i)=>(O(),J("div",oCt,[_("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",rCt,[_("div",iCt,[_("div",sCt,[_("div",aCt,[_("div",lCt,[_("h5",uCt,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",cCt,[q0(r.$slots,"body",{},void 0,!0)]),_("div",dCt,[_("div",hCt,[_("div",mCt,[_("div",fCt,[q0(r.$slots,"footer-actions",{},void 0,!0)])])])])])])]))}}),gxe=ot(pCt,[["__scopeId","data-v-7a4aac23"]]),Xn=t=>e=>t[e.localeKey],gCt={cancelButton:"Cancel",applyButton:"Delete"},CCt={cancelButton:"Отмена",applyButton:"Удалить"},poe=Xn({en:gCt,ru:CCt}),yCt={class:"bootstrap-styles px-11 py-7 text-start"},bCt=Xe({__name:"RemoveConfirmModalWindow",props:{headerText:{},deps:{}},emits:["cancel","confirmed"],setup(t,{emit:e}){const n=t,o=()=>{i("cancel")},r={cancelButton:poe({localeKey:n.deps.localeKey}).cancelButton,applyButton:poe({localeKey:n.deps.localeKey}).applyButton},i=e;return(s,a)=>(O(),Ze(gxe,{headerText:n.headerText,class:"remove-element-confirm-modal-window",onClose:a[2]||(a[2]=()=>o())},{body:xu(()=>[_("div",yCt,[q0(s.$slots,"body-content")])]),"footer-actions":xu(()=>[_("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]=Ho(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]=Ho(l=>i("confirmed"),["stop"]))},Gt(r.applyButton),1)]),_:3},8,["headerText"]))}}),vCt={removeWindowTitle:"Delete element",removeWindowDescription:"Are you sure you want to delete the text element?"},TCt={removeWindowTitle:"Удаление элемента",removeWindowDescription:"Вы действительно хотите удалить элемент ?"},goe=Xn({en:vCt,ru:TCt}),Coe=t=>({type:"doc",content:t.Content.map(xCt)}),xCt=t=>"ParagraphNode"in t?bxe(t):"BulletListNode"in t?FCt(t):"OrderedListNode"in t?wCt(t):"DataFieldNode"in t?yxe(t):ta(t),Cxe=t=>({type:"listItem",content:t.Content.map(e=>"ParagraphNode"in e?bxe(e):"ImageNode"in e?vxe(e):ta(e))}),yxe=t=>({type:"dataField",marks:cU({textStyle:t.DataFieldNode.TextStyle,commonLinkMark:t.DataFieldNode.CommonLinkMark}),attrs:{stringExpression:t.DataFieldNode.StringExpression}}),FCt=t=>({type:"bulletList",content:t.BulletListNode.Content.map(Cxe),attrs:{themeName:t.BulletListNode.ListStyle}}),wCt=t=>({type:"orderedList",content:t.OrderedListNode.Content.map(Cxe),attrs:{themeName:t.OrderedListNode.ListStyle}}),bxe=t=>({type:"paragraph",attrs:{themeName:t.ParagraphNode.ThemeName},content:t.ParagraphNode.Content.map(SCt)}),SCt=t=>"TextNode"in t?kCt(t):"HardBreakNode"in t?BCt():"ImageNode"in t?vxe(t):"DataFieldNode"in t?yxe(t):ta(t),cU=t=>{const e=[];return t.textStyle&&e.push(ACt(t.textStyle)),t.commonLinkMark&&e.push(NCt(t.commonLinkMark)),e.filter(n=>n!==void 0)},kCt=t=>({type:"text",text:t.TextNode.Text,marks:cU({textStyle:t.TextNode.TextStyle,commonLinkMark:t.TextNode.CommonLinkMark})}),ECt=t=>{switch(t){case"Normal":return"normal";case"Bold":return"bold";default:return"normal"}},_Ct=t=>{switch(t){case"Normal":return"normal";case"Italic":return"italic";default:return"normal"}},RCt=t=>{switch(t){case"None":return"none";case"Uppercase":return"uppercase";default:return"none"}},DCt=t=>{switch(t){case"None":return"none";case"Underline":return"underline";case"LineThrough":return"line-through";default:return"none"}},ACt=t=>({type:"textStyle",attrs:{themeName:t.ThemeName,color:t.Style.Color,fontWeight:t.Style.FontWeight?ECt(t.Style.FontWeight):void 0,fontStyle:t.Style.FontStyle?_Ct(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?RCt(t.Style.TextTransform):void 0,textDecoration:t.Style.TextDecoration?DCt(t.Style.TextDecoration):void 0}}),NCt=t=>tc(t).Match({LinkMark:e=>LCt({LinkMark:e}),UnsubscribeLinkMark:()=>$Ct()}),BCt=()=>({type:"hardBreak"}),vxe=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:cU({commonLinkMark:t.ImageNode.CommonLinkMark})}),LCt=t=>({type:"link",attrs:{href:t.LinkMark.Href}}),$Ct=()=>({type:"unsubscribeLink"}),Txe=ec.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})}}}}),VCt=ec.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()}}}),MCt=ec.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()}}}),OCt=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}})]}}),ICt=ec.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})}}}}),PCt=ec.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})}}}}),dU=ec.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",_i(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()}}}}),WCt=ec.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})}}}}),HCt=t=>{if(!t.content)throw new Error("Invalid document: content is missing");return{Content:t.content.map(e=>{switch(e.type){case"paragraph":return xxe(e);case"bulletList":return UCt(e);case"orderedList":return KCt(e);default:throw new Error(`Unknown node type: ${e.type}`)}})}},xxe=t=>t.content?{ParagraphNode:{ThemeName:t.attrs?t.attrs.themeName:void 0,Content:t.content.map(e=>{switch(e.type){case"text":return zCt(e);case"image":return wxe(e);case"hardBreak":return yoe();case"dataField":return jCt(e);default:throw new Error(`Unknown node type: ${e.type}`)}})}}:{ParagraphNode:{ThemeName:t.attrs?t.attrs.themeName:void 0,Content:[yoe()]}},hU=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?QCt(e):void 0,CommonLinkMark:n?ZCt(n):void 0}},zCt=t=>{if(typeof t.text!="string")throw new Error("Invalid text node: text is missing or not a string");const{TextStyle:e,CommonLinkMark:n}=hU(t.marks);return{TextNode:{Text:t.text,TextStyle:e,CommonLinkMark:n}}},yoe=()=>({HardBreakNode:{}}),jCt=t=>{if(!t.attrs)throw new Error("Invalid variable node: attrs is missing");const{TextStyle:e,CommonLinkMark:n}=hU(t.marks);return{DataFieldNode:{StringExpression:t.attrs.stringExpression,TextStyle:e,CommonLinkMark:n}}},UCt=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(Fxe)}}},KCt=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(Fxe)}}},Fxe=t=>{if(!t.content)throw new Error("Invalid listItem: content is missing");return{Content:t.content.map(e=>{switch(e.type){case"paragraph":return xxe(e);case"image":return wxe(e);default:throw new Error(`Unknown node type: ${e.type}`)}})}},wxe=t=>{if(!t.attrs)throw new Error("Invalid image node: attrs is missing");const{CommonLinkMark:e}=hU(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}}},qCt=t=>t==="bold"?"Bold":"Normal",JCt=t=>t==="italic"?"Italic":"Normal",GCt=t=>t,YCt=t=>{switch(t){case"uppercase":return"Uppercase";default:return"None"}},XCt=t=>{switch(t){case"underline":return"Underline";case"line-through":return"LineThrough";default:return"None"}},boe=t=>{const e=t.replace(/px$/,"");return parseInt(e,10)},QCt=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?qCt(t.attrs.fontWeight):void 0,FontStyle:t.attrs.fontStyle?JCt(t.attrs.fontStyle):void 0,FontSize:t.attrs.fontSize?boe(t.attrs.fontSize):void 0,LineHeight:t.attrs.lineHeight?boe(t.attrs.lineHeight):void 0,FontFamily:t.attrs.fontFamily?GCt(t.attrs.fontFamily):void 0,TextTransform:t.attrs.textTransform?YCt(t.attrs.textTransform):void 0,TextDecoration:t.attrs.textDecoration?XCt(t.attrs.textDecoration):void 0}}},ZCt=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}},Sxe=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),Sxe(o)}const e=document.createElement("canvas").getContext("2d");return e?(e.fillStyle=t,e.fillStyle):null},eyt=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=Sxe(e.style.color)??"#000000";return{Discriminator:n,CustomValue:o}},renderHTML:e=>{if(!e.color)return{};const n=gM({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()}}}),tyt=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 pxe.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()}}}),nyt=t=>Il.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=Nct(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",_i(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()}}}}),kxe=t=>new Promise((e,n)=>{const o=new Image;o.onload=()=>{e({width:o.naturalWidth,height:o.naturalHeight})},o.onerror=n,o.src=t}),Exe=Il.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",_i(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[vat({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)&&kxe(i).then(l=>{const u=e.tr.setNodeMarkup(r,void 0,{...o.attrs,width:l.width,height:l.height});n(u)})}})})(),{})})]}}),oyt=t=>[llt,Jlt,alt,oM.configure({mergeNestedSpanStyles:!0}),Blt,nyt({dataSourceFieldNameDelegate:t.dataSourceFieldNameDelegate}),slt.configure({className:"has-focus",mode:"all"}),A8.configure({keepMarks:!0,keepAttributes:!0}),B8.configure({keepMarks:!0,keepAttributes:!0}),T1e,qlt.configure({HTMLAttributes:{class:"hard-break"}}),D8.configure({HTMLAttributes:{class:"rich-text__link"},openOnClick:!1}),Exe.configure({inline:!0,HTMLAttributes:{class:"rich-text__image"}}),eyt({themeColors:t.themeColors}),OCt(t.initialThemeName),ICt,PCt,VCt,MCt,Txe,WCt,dU,tyt],ryt=t=>HCt(t.editor.getJSON()),iyt=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),J0(" "+Gt(n.label),1)])],2))}}),syt={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"}},ayt={colorLabels:{none:"Нет",styleLinkedColor:"Связать со стилем",emailBackgroundColor:"Фон письма",bodyColor:"Тело письма",primaryColor:"Основной цвет",secondaryColor:"Вторичный цвет",primaryTextColor:"Текст на основном цвете",secondaryTextColor:"Текст на вторичном цвете",cardBackgroundColor:"Цвет карточек товара",buttonTextColor:"Кнопки",titleColor:"Большой заголовок",headingColor:"Заголовок",subHeadingColor:"Подзаголовок",largeTextColor:"Большой текст",normalTextColor:"Текст",descriptionTextColor:"Описание",linkColor:"Ссылка",custom:"Пользовательский"}},lyt=Xn({en:syt,ru:ayt}),_xe=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)}}}),CM=t=>_xe(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}),IS=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=us({fontFamily:e,themeFontSettings:n[s],themeColor:CM({themeName:s,themeFontColors:o})});return String(a[t.styleName])},Rxe=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=us({fontFamily:e,themeFontSettings:n[s],themeColor:CM({themeName:s,themeFontColors:o})});return{Discriminator:_xe(s).Match({whenHeading:()=>"HeadingColor",whenTitle:()=>"TitleColor",whenSubHeading:()=>"SubHeadingColor",whenLargeText:()=>"LargeTextColor",whenNormalText:()=>"NormalTextColor",whenDescriptionText:()=>"DescriptionTextColor",whenLink:()=>"LinkColor",whenButton:()=>"ButtonTextColor"}),CustomValue:a.color}},uyt={class:"color-picker bootstrap-styles border rounded bg-white"},cyt={class:"bootstrap-styles p-1 mb-5 bg-white"},dyt=["value"],hyt=["value"],myt=Xe({__name:"ColorPickerModalWindow",props:{editor:{},theme:{},deps:{}},emits:["onColorChanged","onColorPickerClosed"],setup(t,{emit:e}){const n=t,o={colorLabels:lyt({localeKey:n.deps.localeKey}).colorLabels},r=q(()=>gM({fontColor:Rxe({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=Cet(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",uyt,[_("li",cyt,[ie(z(Ect),{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,dyt),_("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,hyt)],2)]),(O(),J(rt,null,$n(a,f=>ie(iyt,{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(Jm),()=>d("onColorPickerClosed")]])}}),fyt=ot(myt,[["__scopeId","data-v-b1cc72b1"]]),pyt={tooltip:"Text color"},gyt={tooltip:"Цвет текста"},Cyt=Xn({en:pyt,ru:gyt}),yyt=["value"],byt=Xe({__name:"ColorPicker",props:{editor:{},theme:{},isAllowToEdit:{type:Boolean},deps:{}},setup(t){const e=t,n={tooltip:Cyt({localeKey:e.deps.localeKey}).tooltip},o=Vt({isColorPickerDropdownShown:!1}),r=pn(),i=pn(),{floatingStyles:s}=B0e(i,r,{whileElementsMounted:D0e,placement:"bottom",middleware:[A0e(({rects:l})=>({alignmentAxis:-l.floating.width/2-l.floating.width/2,mainAxis:15}))]}),a=q(()=>gM({fontColor:Rxe({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,yyt)),[[z($o),{title:n.tooltip,placement:"top"}]]),o.isColorPickerDropdownShown?(O(),Ze(fyt,{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))}}),vyt=ot(byt,[["__scopeId","data-v-6624477a"]]),Tyt={},xyt={xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"};function Fyt(t,e){return O(),J("svg",xyt,[...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 Dxe=ot(Tyt,[["render",Fyt]]),wyt={tooltip:"Font family"},Syt={tooltip:"Шрифт"},kyt=Xn({en:wyt,ru:Syt}),Eyt={class:"bootstrap-styles dropdown"},_yt={class:"bootstrap-styles me-14 overflow-hidden rich-text-toolbar__font-family-btn__text"},Ryt={class:"bootstrap-styles d-flex justify-content-center align-items-center"},Dyt=["onClick"],Ayt=Xe({__name:"FontFamilySelector",props:{editor:{},isAllowToEdit:{type:Boolean},theme:{},deps:{}},setup(t){const e=t,n={tooltip:kyt({localeKey:e.deps.localeKey}).tooltip},o=oM.name,r=Vt({isOpened:!1}),i=q(()=>IS({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",Eyt,[_("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",_yt,Gt(z(P5)[i.value]),1),_("i",Ryt,[ie(Dxe)])],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(pxe),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(P5)[u]),5)],10,Dyt))),128))],2)])),[[z(Jm),()=>r.isOpened=!1],[z($o),{title:n.tooltip,placement:"top"}]])}}),Nyt=ot(Ayt,[["__scopeId","data-v-cc496278"]]),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 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 Axe=ot(Byt,[["render",$yt],["__scopeId","data-v-19c42a7a"]]),Vyt={},Myt={xmlns:"http://www.w3.org/2000/svg",width:"8",height:"8",viewBox:"0 0 8 8",fill:"none"};function Oyt(t,e){return O(),J("svg",Myt,[...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 Nxe=ot(Vyt,[["render",Oyt],["__scopeId","data-v-313c2951"]]),Iyt={},Pyt={width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Wyt(t,e){return O(),J("svg",Pyt,[...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 Hyt=ot(Iyt,[["render",Wyt]]),zyt={tooltip:"Font size"},jyt={tooltip:"Размер текста"},Uyt=Xn({en:zyt,ru:jyt}),Kyt=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):us({fontFamily:e,themeFontSettings:n[s],themeColor:CM({themeName:s,themeFontColors:o})}).fontSize},qyt={class:"bootstrap-styles rich-text-toolbar__font-size-editor position-relative rounded-2 py-1 px-3 d-flex"},Jyt={class:"bootstrap-styles d-flex justify-content-center rich-text-icon me-14"},Gyt=["value"],Yyt={class:"bootstrap-styles rich-text-toolbar__input-button top-0 d-flex position-absolute align-items-end justify-content-center"},Xyt={class:"bootstrap-styles rich-text-toolbar__input-button bottom-0 d-flex position-absolute align-items-start justify-content-center"},Qyt=Xe({__name:"FontSizeEditor",props:{editor:{},theme:{},deps:{}},setup(t){const e=t,n={tooltip:Uyt({localeKey:e.deps.localeKey}).tooltip},o=q(()=>Kyt({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",qyt,[_("i",Jyt,[ie(Hyt)]),_("input",{type:"number",class:"bootstrap-styles rich-text-toolbar__input-number rich-text__handler",value:o.value,onInput:s},null,40,Gyt),_("div",Yyt,[_("input",{type:"button",class:"bootstrap-styles position-absolute rich-text__handler",onClick:r}),ie(Axe)]),_("div",Xyt,[_("input",{type:"button",class:"bootstrap-styles position-absolute rich-text__handler",onClick:i}),ie(Nxe)])])),[[z($o),{title:n.tooltip,placement:"top"}]])}}),Zyt=ot(Qyt,[["__scopeId","data-v-ba95f865"]]),e0t=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))}}),t0t=ot(e0t,[["__scopeId","data-v-9d9afc02"]]),n0t={tooltip:"Text style",settingLabels:{title:"Title",heading:"Heading",subHeading:"Subheading",largeText:"Large text",normalText:"Text",descriptionText:"Description",link:"Link",button:"Button",custom:"Custom"}},o0t={tooltip:"Стиль текста",settingLabels:{title:"Большой заголовок",heading:"Заголовок",subHeading:"Подзаголовок",largeText:"Большой текст",normalText:"Текст",descriptionText:"Описание",link:"Ссылка",button:"Кнопка",custom:"Пользовательский"}},voe=Xn({en:n0t,ru:o0t}),r0t={class:"bootstrap-styles dropdown"},i0t={class:"bootstrap-styles rich-text-toolbar__font-style-selector__text"},s0t={class:"bootstrap-styles d-flex justify-content-center align-items-center rich-text-toolbar__icon"},a0t=Xe({__name:"ThemeSettingsSelector",props:{editor:{},theme:{},isAllowToEdit:{type:Boolean},initialThemeName:{},deps:{}},setup(t){const e=t,n=oM.name,o=Vt({isOpened:!1}),r={tooltip:voe({localeKey:e.deps.localeKey}).tooltip,settingLabels:voe({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",r0t,[_("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",i0t,Gt(l.value),1),_("i",s0t,[ie(Dxe)])],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(t0t,{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(Jm),()=>o.isOpened=!1],[z($o),{title:r.tooltip,placement:"top"}]])}}),l0t=ot(a0t,[["__scopeId","data-v-088df711"]]),u0t={},c0t={xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"};function d0t(t,e){return O(),J("svg",c0t,[...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 h0t=ot(u0t,[["render",d0t]]),m0t={tooltip:"Line height"},f0t={tooltip:"Высота строки"},p0t=Xn({en:m0t,ru:f0t}),g0t=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):us({fontFamily:e,themeFontSettings:n[s],themeColor:CM({themeName:s,themeFontColors:o})}).lineHeight},C0t={class:"bootstrap-styles rich-text-toolbar__line-height-editor position-relative rounded-2 py-1 px-3 d-flex"},y0t={class:"bootstrap-styles d-flex justify-content-center rich-text-icon me-14"},b0t=["value"],v0t={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"}},T0t={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"}},x0t=Xe({__name:"LineHeightEditor",props:{editor:{},theme:{},deps:{}},setup(t){const e=t,n={tooltip:p0t({localeKey:e.deps.localeKey}).tooltip},o=q(()=>g0t({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",C0t,[_("i",y0t,[ie(h0t)]),_("input",{type:"number",class:"bootstrap-styles rich-text-toolbar__input-number rich-text__handler",value:o.value,onInput:s},null,40,b0t),_("div",v0t,[_("input",{type:"button",class:"bootstrap-styles position-absolute rich-text__handler",onClick:r}),ie(Axe)]),_("div",T0t,[_("input",{type:"button",class:"bootstrap-styles position-absolute rich-text__handler",onClick:i}),ie(Nxe)])])),[[z($o),{title:n.tooltip,placement:"top"}]])}}),F0t=ot(x0t,[["__scopeId","data-v-4e76ed1b"]]),w0t=["http:","https:","mailto:","tel:"],S0t={mounted(t,e){t.addEventListener("input",()=>{const n=t.value;let o=!1;try{const r=new URL(n);o=w0t.includes(r.protocol)}catch{o=!1}typeof e.value=="function"&&e.value(o)})}},Bxe={mounted(t,e){Toe(t,e)},updated(t,e){e.value&&Toe(t,e)}},Toe=(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)}})},k0t={},E0t={xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 14 14",fill:"none"};function _0t(t,e){return O(),J("svg",E0t,[...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 Lxe=ot(k0t,[["render",_0t]]),R0t={label:"Link",inputPlaceholder:"https://example.com",errorNotification:"The link must contain https://, http://, mailto:, tel:",applyButton:"Save",cancelButton:"Cancel"},D0t={label:"Ссылка",inputPlaceholder:"https://example.com",errorNotification:"Ссылка должна содержать https://, http://, mailto:, tel:",applyButton:"Сохранить",cancelButton:"Отмена"},x1=Xn({en:R0t,ru:D0t}),A0t={},N0t={width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function B0t(t,e){return O(),J("svg",N0t,[...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 $xe=ot(A0t,[["render",B0t]]),L0t={class:"bootstrap-styles bg-white border rounded-2 add-text-link-modal-window"},$0t={class:"bootstrap-styles fw-bold mb-5 px-11 mt-10 d-block text-start"},V0t={class:"bootstrap-styles px-11 mb-2"},M0t={class:"bootstrap-styles d-flex justify-content-center align-items-center me-1"},O0t=["placeholder","value"],I0t={class:"bootstrap-styles px-11 py-5 d-flex align-items-center justify-content-end border-top"},P0t=["disabled"],W0t=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:x1({localeKey:n.deps.localeKey}).label,inputPlaceholder:x1({localeKey:n.deps.localeKey}).inputPlaceholder,errorNotification:x1({localeKey:n.deps.localeKey}).errorNotification,applyButton:x1({localeKey:n.deps.localeKey}).applyButton,cancelButton:x1({localeKey:n.deps.localeKey}).cancelButton},s=e;return(a,l)=>Ot((O(),J("div",L0t,[_("label",$0t,Gt(i.label),1),_("div",V0t,[_("div",{class:$e(["bootstrap-styles bg-color-input border rounded-2 py-1 px-3 d-flex mb-14",{"border-danger":!o.isValid}])},[_("i",M0t,[ie(Lxe)]),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,O0t),[[z(S0t),u=>o.isValid=u],[z(Bxe),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",I0t,[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]=Ho(()=>s("onRemoved"),["stop"]))},[_("i",null,[ie($xe)])])):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,P0t)])])),[[z(Jm),()=>s("onClosed")]])}}),H0t=ot(W0t,[["__scopeId","data-v-dd4e68e8"]]),z0t={};function j0t(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 U0t=ot(z0t,[["render",j0t],["__scopeId","data-v-730bc16f"]]),K0t={tooltip:"Link"},q0t={tooltip:"Ссылка"},J0t=Xn({en:K0t,ru:q0t}),G0t={class:"bootstrap-styles d-flex rich-text-icon icon-hover"},Y0t=Xe({__name:"LinkEditor",props:{editor:{},isAllowToEdit:{type:Boolean},deps:{}},setup(t){const e=t,n={tooltip:J0t({localeKey:e.deps.localeKey}).tooltip},o=D8.name,r=dU.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",G0t,[e.editor.isActive(z(o))?(O(),Ze(U0t,{key:1})):(O(),Ze(Lxe,{key:0}))])],2)),[[z($o),{title:n.tooltip,placement:"top"}]]),i.isAddTextLinkModalWindowShown?(O(),Ze(H0t,{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))}}),X0t=ot(Y0t,[["__scopeId","data-v-6460a995"]]),Q0t={label:"URL",placeholder:"URL...",cancel:"Cancel",apply:"Save",removeTooltip:"Delete image"},Z0t={label:"URL",placeholder:"URL...",cancel:"Отмена",apply:"Сохранить",removeTooltip:"Удалить изображение"},F1=Xn({en:Q0t,ru:Z0t}),ebt={class:"bootstrap-styles bg-white border rounded-2 add-image-src-modal-window"},tbt={class:"bootstrap-styles fw-bold mb-5 px-11 mt-10 d-block text-start"},nbt={class:"bootstrap-styles px-11 mb-11"},obt=["placeholder","value"],rbt={class:"bootstrap-styles px-11 py-5 d-flex align-items-center justify-content-end border-top"},ibt=["disabled"],sbt=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:F1({localeKey:n.deps.localeKey}).label,placeholder:F1({localeKey:n.deps.localeKey}).placeholder,cancel:F1({localeKey:n.deps.localeKey}).cancel,apply:F1({localeKey:n.deps.localeKey}).apply,removeTooltip:F1({localeKey:n.deps.localeKey}).removeTooltip},i=Qye(l=>{kxe(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",ebt,[_("label",tbt,Gt(r.label),1),_("div",nbt,[_("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,obt),[[z(Bxe),void 0,void 0,{selectAll:!0}]])],2)]),_("div",rbt,[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]=Ho(()=>a("onRemoved"),["stop"]))},[_("i",null,[ie($xe)])])),[[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]=Ho(()=>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]=Ho(()=>s(),["stop"]))},Gt(r.apply),9,ibt)])])),[[z(Jm),()=>a("onClosed")]])}}),abt=ot(sbt,[["__scopeId","data-v-35966ae0"]]),lbt={},ubt={width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function cbt(t,e){return O(),J("svg",ubt,[...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 dbt=ot(lbt,[["render",cbt]]),hbt={tooltip:"Image",retinaLabel:"For retina screens"},mbt={tooltip:"Изображение",retinaLabel:"Для retina-экранов"},xoe=Xn({en:hbt,ru:mbt}),fbt=["checked"],pbt=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,fbt))}}),gbt=ot(pbt,[["__scopeId","data-v-6a8c2252"]]),Cbt={class:"bootstrap-styles rich-text-icon icon-hover d-flex"},ybt={key:0,class:"bootstrap-styles d-flex align-items-center ms-14 me-1"},bbt={for:"rich-text__retina-checkbox",class:"bootstrap-styles label__checkbox-input text-nowrap"},vbt=Xe({__name:"ImageEditor",props:{editor:{},deps:{}},setup(t){const e=t,n={tooltip:xoe({localeKey:e.deps.localeKey}).tooltip,retinaLabel:xoe({localeKey:e.deps.localeKey}).retinaLabel},o=Exe.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",Cbt,[ie(dbt)])],2)),[[z($o),{title:n.tooltip,placement:"top"}]]),e.editor.isActive(z(o))?(O(),J("div",ybt,[ie(gbt,{id:"rich-text__retina-checkbox",checked:e.editor.isActive(z(o),{isRetina:!0}),onChange:u[1]||(u[1]=()=>i())},null,8,["checked"]),_("label",bbt,Gt(n.retinaLabel),1)])):Ue("",!0),r.isAddImageSrcModalWindowShown?(O(),Ze(abt,{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))}}),Tbt=ot(vbt,[["__scopeId","data-v-cf315655"]]),xbt={},Fbt={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",Fbt,[...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 Sbt=ot(xbt,[["render",wbt]]),kbt={tooltip:"Bold"},Ebt={tooltip:"Полужирный"},_bt=Xn({en:kbt,ru:Ebt}),Rbt={class:"bootstrap-styles d-flex rich-text-icon icon-hover"},Dbt=Xe({__name:"FontWeightEditor",props:{editor:{},theme:{},isAllowToEdit:{type:Boolean},deps:{}},setup(t){const e=t,n={tooltip:_bt({localeKey:e.deps.localeKey}).tooltip},o=q(()=>IS({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",Rbt,[ie(Sbt)])],2)),[[z($o),{title:n.tooltip,placement:"top"}]])}}),Abt=ot(Dbt,[["__scopeId","data-v-0e22dbf6"]]),Nbt={},Bbt={xmlns:"http://www.w3.org/2000/svg",width:"17",height:"16",viewBox:"0 0 17 16",fill:"none"};function Lbt(t,e){return O(),J("svg",Bbt,[...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 $bt=ot(Nbt,[["render",Lbt]]),Vbt={tooltip:"Strikethrough"},Mbt={tooltip:"Зачеркнутый"},Obt=Xn({en:Vbt,ru:Mbt}),Ibt={class:"bootstrap-styles d-flex rich-text-icon icon-hover"},Pbt=Xe({__name:"LineThroughEditor",props:{editor:{},isAllowToEdit:{type:Boolean},theme:{},deps:{}},setup(t){const e=t,n={tooltip:Obt({localeKey:e.deps.localeKey}).tooltip},o=q(()=>IS({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",Ibt,[ie($bt)])],2)),[[z($o),{title:n.tooltip,placement:"top"}]])}}),Wbt=ot(Pbt,[["__scopeId","data-v-fffc32ef"]]),Hbt={},zbt={xmlns:"http://www.w3.org/2000/svg",width:"17",height:"16",viewBox:"0 0 17 16",fill:"none"};function jbt(t,e){return O(),J("svg",zbt,[...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 Ubt=ot(Hbt,[["render",jbt]]),Kbt={tooltip:"Underline"},qbt={tooltip:"Подчеркнутый"},Jbt=Xn({en:Kbt,ru:qbt}),Gbt={class:"bootstrap-styles d-flex rich-text-icon icon-hover"},Ybt=Xe({__name:"UnderlineEditor",props:{editor:{},isAllowToEdit:{type:Boolean},theme:{},deps:{}},setup(t){const e=t,n={tooltip:Jbt({localeKey:e.deps.localeKey}).tooltip},o=q(()=>IS({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",Gbt,[ie(Ubt)])],2)),[[z($o),{title:n.tooltip,placement:"top"}]])}}),Xbt=ot(Ybt,[["__scopeId","data-v-ae63be68"]]),Qbt={},Zbt={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",Zbt,[...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 tvt=ot(Qbt,[["render",evt]]),nvt={tooltip:"Italic"},ovt={tooltip:"Курсив"},rvt=Xn({en:nvt,ru:ovt}),ivt={class:"bootstrap-styles d-flex rich-text-icon icon-hover"},svt=Xe({__name:"FontStyleEditor",props:{editor:{},isAllowToEdit:{type:Boolean},theme:{},deps:{}},setup(t){const e=t,n={tooltip:rvt({localeKey:e.deps.localeKey}).tooltip},o=q(()=>IS({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",ivt,[ie(tvt)])],2)),[[z($o),{title:n.tooltip,placement:"top"}]])}}),avt=ot(svt,[["__scopeId","data-v-ac6b2276"]]),lvt={},uvt={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",uvt,[...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 dvt=ot(lvt,[["render",cvt]]),hvt={tooltip:"Uppercase"},mvt={tooltip:"Заглавные"},fvt=Xn({en:hvt,ru:mvt}),pvt={class:"bootstrap-styles d-flex rich-text-icon icon-hover"},gvt=Xe({__name:"TextTransformEditor",props:{editor:{},isAllowToEdit:{type:Boolean},theme:{},deps:{}},setup(t){const e=t,n={tooltip:fvt({localeKey:e.deps.localeKey}).tooltip},o=Txe.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",pvt,[ie(dvt)])],2)),[[z($o),{title:n.tooltip,placement:"top"}]])}}),Cvt=ot(gvt,[["__scopeId","data-v-20dea8b8"]]),yvt={},bvt={width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function vvt(t,e){return O(),J("svg",bvt,[...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 Tvt=ot(yvt,[["render",vvt]]),xvt={tooltip:"Unsubscribe link"},Fvt={tooltip:"Ссылка на отписку"},wvt=Xn({en:xvt,ru:Fvt}),Svt={class:"bootstrap-styles d-flex rich-text-icon icon-hover"},kvt=Xe({__name:"UnsubscribeLinkEditor",props:{editor:{},isAllowToEdit:{type:Boolean},theme:{},deps:{}},setup(t){const e=t,n={tooltip:wvt({localeKey:e.deps.localeKey}).tooltip},o=dU.name,r=D8.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",Svt,[ie(Tvt)])],2)),[[z($o),{title:n.tooltip,placement:"top"}]])}}),Evt=ot(kvt,[["__scopeId","data-v-9ee287d3"]]),_vt={},Rvt={xmlns:"http://www.w3.org/2000/svg",width:"17",height:"16",viewBox:"0 0 17 16",fill:"none"};function Dvt(t,e){return O(),J("svg",Rvt,[...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 Avt=ot(_vt,[["render",Dvt]]),Nvt={tooltip:"Bullet list"},Bvt={tooltip:"Маркированный список"},Lvt=Xn({en:Nvt,ru:Bvt}),$vt={class:"bootstrap-styles d-flex rich-text-icon icon-hover"},Vvt=Xe({__name:"BulletListEditor",props:{editor:{},deps:{}},setup(t){const e=t,n={tooltip:Lvt({localeKey:e.deps.localeKey}).tooltip},o=A8.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",$vt,[ie(Avt)])],2)),[[z($o),{title:n.tooltip,placement:"top"}]])}}),Mvt=ot(Vvt,[["__scopeId","data-v-c64632e3"]]),Ovt={},Ivt={xmlns:"http://www.w3.org/2000/svg",width:"17",height:"16",viewBox:"0 0 17 16",fill:"none"};function Pvt(t,e){return O(),J("svg",Ivt,[...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 Wvt=ot(Ovt,[["render",Pvt]]),Hvt={tooltip:"Ordered list"},zvt={tooltip:"Нумерованный список"},jvt=Xn({en:Hvt,ru:zvt}),Uvt={class:"bootstrap-styles d-flex rich-text-icon icon-hover"},Kvt=Xe({__name:"OrderedListEditor",props:{editor:{},deps:{}},setup(t){const e=t,n={tooltip:jvt({localeKey:e.deps.localeKey}).tooltip},o=B8.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",Uvt,[ie(Wvt)])],2)),[[z($o),{title:n.tooltip,placement:"top"}]])}}),qvt=ot(Kvt,[["__scopeId","data-v-aaa43948"]]),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.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 Foe=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 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 woe=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 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 Soe=ot(e1t,[["render",n1t]]),o1t={},r1t={width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function i1t(t,e){return O(),J("svg",r1t,[...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 koe=ot(o1t,[["render",i1t]]),s1t={tooltip:"Vertical image alignment"},a1t={tooltip:"Выравнивание картинок по вертикали"},l1t=Xn({en:s1t,ru:a1t}),u1t={class:"bootstrap-styles vertical-align-editor dropdown rounded"},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={class:"bootstrap-styles rich-text-icon icon-hover d-flex justify-content-center align-items-center"},m1t={class:"bootstrap-styles rich-text-icon icon-hover d-flex justify-content-center align-items-center"},f1t={class:"bootstrap-styles rich-text-icon icon-hover d-flex justify-content-center align-items-center"},p1t=Xe({__name:"VerticalAlignEditor",props:{editor:{},currentVerticalAlign:{},deps:{}},emits:["onVerticalAlignVariantChanged"],setup(t,{emit:e}){const n=t,o={tooltip:l1t({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",u1t,[_("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",c1t,[n.currentVerticalAlign==="Baseline"?(O(),Ze(koe,{key:0})):Ue("",!0),n.currentVerticalAlign==="Top"?(O(),Ze(Foe,{key:1})):Ue("",!0),n.currentVerticalAlign==="Middle"?(O(),Ze(woe,{key:2})):Ue("",!0),n.currentVerticalAlign==="Bottom"?(O(),Ze(Soe,{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",d1t,[ie(koe)])],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",h1t,[ie(Foe)])],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",m1t,[ie(woe)])],2),_("button",{class:$e(["bootstrap-styles p-1 rounded rich-text-button",{active:n.currentVerticalAlign==="Bottom"}]),onClick:l[4]||(l[4]=()=>i("Bottom"))},[_("i",f1t,[ie(Soe)])],2)],2)])),[[z(Jm),()=>r.isOpened=!1],[z($o),{title:o.tooltip,placement:"top"}]])}}),g1t=ot(p1t,[["__scopeId","data-v-4a636ae8"]]),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.6665ZM2 12.6665H11.3333V13.9998H2V12.6665ZM2 9.33317H14V10.6665H2V9.33317ZM2 5.99984H11.3333V7.33317H2V5.99984Z",fill:"var(--black)"},null,-1)])])}const Eoe=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.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 _oe=ot(v1t,[["render",x1t]]),F1t={},w1t={xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"};function S1t(t,e){return O(),J("svg",w1t,[...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 Roe=ot(F1t,[["render",S1t]]),k1t={tooltip:"Alignment"},E1t={tooltip:"Выравнивание"},_1t=Xn({en:k1t,ru:E1t}),R1t={class:"bootstrap-styles content-align-editor dropdown rounded"},D1t={class:"bootstrap-styles rich-text-icon icon-hover d-flex justify-content-center align-items-center"},A1t={class:"bootstrap-styles rich-text-icon icon-hover d-flex justify-content-center align-items-center"},N1t={class:"bootstrap-styles rich-text-icon icon-hover d-flex justify-content-center align-items-center"},B1t={class:"bootstrap-styles rich-text-icon icon-hover d-flex justify-content-center align-items-center"},L1t=Xe({__name:"ContentAlignEditor",props:{editor:{},currentContentAlign:{},deps:{}},emits:["onContentAlignVariantChanged"],setup(t,{emit:e}){const n=t,o={tooltip:_1t({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",R1t,[_("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",D1t,[n.currentContentAlign==="Left"?(O(),Ze(Eoe,{key:0})):Ue("",!0),n.currentContentAlign==="Center"?(O(),Ze(_oe,{key:1})):Ue("",!0),n.currentContentAlign==="Right"?(O(),Ze(Roe,{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",A1t,[ie(Eoe)])],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",N1t,[ie(_oe)])],2),_("button",{class:$e(["bootstrap-styles p-1 rounded rich-text-button",{active:n.currentContentAlign==="Right"}]),onClick:l[3]||(l[3]=()=>i("Right"))},[_("i",B1t,[ie(Roe)])],2)],2)])),[[z(Jm),()=>r.isOpened=!1],[z($o),{title:o.tooltip,placement:"top"}]])}}),$1t=ot(L1t,[["__scopeId","data-v-c8a15233"]]),V1t={class:"bootstrap-styles rich-text-toolbar d-flex align-items-center border gap-1 p-1"},M1t={key:2,class:"bootstrap-styles position-relative h-100"},O1t={key:3,class:"bootstrap-styles position-relative h-100"},I1t={key:4,class:"bootstrap-styles d-flex justify-content-center align-items-center"},P1t={key:7,class:"vl"},W1t={key:13,class:"vl"},H1t={key:16,class:"vl"},z1t=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",V1t,[i.value?Ue("",!0):(O(),Ze(l0t,{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(Nyt,{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",M1t,[ie(Zyt,{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",O1t,[ie(F0t,{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",I1t,[ie(vyt,{editor:n.editor,theme:n.theme,isAllowToEdit:r.value,deps:n.deps.colorPickerDeps},null,8,["editor","theme","isAllowToEdit","deps"])])),i.value?(O(),Ze(g1t,{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($1t,{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",P1t)),i.value?Ue("",!0):(O(),Ze(Abt,{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(avt,{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(Wbt,{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(Xbt,{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(Cvt,{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",W1t)),i.value?Ue("",!0):(O(),Ze(Mvt,{key:14,editor:n.editor,deps:n.deps.bulletListEditorDeps},null,8,["editor","deps"])),i.value?Ue("",!0):(O(),Ze(qvt,{key:15,editor:n.editor,deps:n.deps.orderedListEditorDeps},null,8,["editor","deps"])),i.value?Ue("",!0):(O(),J("div",H1t)),ie(X0t,{editor:n.editor,isAllowToEdit:r.value,deps:n.deps.linkEditorDeps},null,8,["editor","isAllowToEdit","deps"]),ie(Evt,{editor:n.editor,theme:n.theme,isAllowToEdit:r.value,deps:n.deps.unsubscribeLinkEditorDeps},null,8,["editor","theme","isAllowToEdit","deps"]),ie(Tbt,{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(MD(u),{editor:n.editor},null,8,["editor"]))]))),128))]))}}),j1t=ot(z1t,[["__scopeId","data-v-1789210c"]]),U1t=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)}}}),K1t=t=>U1t(t.verticalAlign).Match({whenBaseline:()=>"baseline",whenTop:()=>"top",whenMiddle:()=>"middle",whenBottom:()=>"bottom"}),Doe="NormalText",q1t=Xe({__name:"RichText",props:{deps:{},theme:{},element:{},isSelected:{type:Boolean}},emits:["onRichTextUpdated","onRichTextRemoved","onElementClicked"],setup(t,{emit:e}){Wm(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:goe({localeKey:n.deps.localeKey}).removeWindowTitle,removeWindowDescription:goe({localeKey:n.deps.localeKey}).removeWindowDescription},i=pn(null),s=pn(null),{floatingStyles:a}=B0e(s,i,{placement:"top",whileElementsMounted:D0e,middleware:[A0e(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=pV(),c=q(()=>us({fontFamily:n.theme.FontFamily,themeFontSettings:n.theme.FontSettingsPresets.NormalText,themeColor:n.theme.Colors.NormalTextColor})),d=q(()=>{const y={...lU(c.value)};return{fontSize:y.fontSize,lineHeight:y.lineHeight,fontFamily:y.fontFamily,fontWeight:y.fontWeight,fontStyle:y.fontStyle,color:y.color}}),h=Aat({content:Coe(n.element.Text),extensions:[...oyt({dataSourceFieldNameDelegate:n.deps.dataSourceFieldNameDelegate,initialThemeName:Doe,themeColors:n.theme.Colors})],editable:o.isEditing,autofocus:"all",onUpdate:({editor:y})=>{if(!o.isEditing)return;const b=ryt({editor:y});g("onRichTextUpdated",{...n.element,Text:b})}}),m=()=>{h.value&&(h.value.chain().focus().undo().run(),o.isRemoveComponentWindowShown=!1)},f=q(()=>K1t({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(Coe(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(xb)({contentAlign:n.element.ContentAlign}),{...d.value,minHeight:n.element.MinHeight+"px"}]),onClick:b[4]||(b[4]=Ho(()=>{g("onElementClicked"),o.isEditing=!0,z(h)&&z(h).setEditable(!0)},["prevent"]))},[ie(z(Dat),{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(j1t,{key:0,ref_key:"richTextToolbarRef",ref:i,editor:z(h),deps:n.deps.richTextToolbarDeps,element:n.element,theme:n.theme,initialThemeName:Doe,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(f9,{to:"#app"},[o.isRemoveComponentWindowShown?(O(),Ze(bCt,{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":xu(()=>[J0(Gt(r.removeWindowDescription),1)]),_:1},8,["deps","headerText"])):Ue("",!0)]))],6)),[[z(Jm),{handler:()=>{o.isEditing=!1,z(h)&&z(h).setEditable(!1)},include:p}]])}}),J1t=ot(q1t,[["__scopeId","data-v-ed6b2a5a"]]),G1t=Xe({__name:"UnsubscribeLink",props:{theme:{},element:{}},emits:["onElementClicked"],setup(t,{emit:e}){const n=t,o=q(()=>{const i=uU({fontFamily:n.theme.FontFamily,fontStyle:n.element.Style,themeDefinedFontSettings:n.theme.FontSettingsPresets,themeColors:n.theme.Colors});return{...lU(i)}}),r=e;return(i,s)=>(O(),J("a",{href:"#",class:"cursor-pointer user-select-none",style:he([{margin:"0"},[o.value,z(xb)({contentAlign:n.element.ContentAlign})]]),onClick:s[0]||(s[0]=Ho(()=>r("onElementClicked"),["prevent"]))},Gt(n.element.Text),5))}}),Y1t=ot(G1t,[["__scopeId","data-v-68ed9754"]]),X1t=["src","alt"],Q1t={class:"bootstrap-styles position-absolute top-0 left-0",width:"100%",style:{"border-spacing":"0","border-collapse":"collapse",width:"100%",height:"100%"}},Z1t={key:0},eTt=["align"],tTt={style:{width:"auto","border-spacing":"0","border-collapse":"separate"}},nTt={align:"center",style:{width:"auto"}},oTt={key:0},rTt={key:1},iTt=["align"],sTt={style:{width:"auto","border-spacing":"0","border-collapse":"separate"}},aTt={align:"center",style:{width:"auto"}},lTt={key:2},uTt=["align"],cTt={style:{width:"auto","border-spacing":"0","border-collapse":"separate"}},dTt={align:"center",style:{width:"auto"}},hTt={key:3},mTt=["align"],fTt={style:{width:"auto","border-spacing":"0","border-collapse":"separate"}},pTt={align:"center",style:{width:"auto"}},gTt=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]=Ho(()=>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,X1t),[[z(pw),({width:l,height:u})=>{i("onImageSizeAdjusted",{Path:n.path,AdjustedHeight:u,AdjustedWidth:l}),o.isLoaded=!0}]]),_("table",Q1t,[_("tbody",null,[n.element.TopElementList.List.length>0&&n.element.TopElementList.Direction==="Vertical"?(O(),J("tr",Z1t,[_("td",{valign:"top",align:z($c)({containerAlign:n.element.TopElementList.ContentAlign})},[_("table",tTt,[_("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",nTt,[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",oTt,[_("td",{style:he({height:n.element.ElementsSpacerSize+"px",fontSize:n.element.ElementsSpacerSize+"px",lineHeight:n.element.ElementsSpacerSize+"px"})},"   ",4)])):Ue("",!0)],64))),128))])])],8,eTt)])):Ue("",!0),n.element.TopElementList.List.length>0&&n.element.TopElementList.Direction==="Horizontal"?(O(),J("tr",rTt,[_("td",{valign:"top",align:z($c)({containerAlign:n.element.TopElementList.ContentAlign})},[_("table",sTt,[_("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",aTt,[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,iTt)])):Ue("",!0),n.element.BottomElementList.List.length>0&&n.element.BottomElementList.Direction==="Vertical"?(O(),J("tr",lTt,[_("td",{valign:"bottom",align:z($c)({containerAlign:n.element.BottomElementList.ContentAlign})},[_("table",cTt,[_("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",dTt,[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,uTt)])):Ue("",!0),n.element.BottomElementList.List.length>0&&n.element.BottomElementList.Direction==="Horizontal"?(O(),J("tr",hTt,[_("td",{valign:"bottom",align:z($c)({containerAlign:n.element.BottomElementList.ContentAlign})},[_("table",fTt,[_("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",pTt,[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,mTt)])):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]=Ho(()=>{},["stop"]))},[n.element.Button!==void 0?(O(),Ze(Zgt,{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(Dgt,{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(Vgt,{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(Hgt,{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(nCt,{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(J1t,{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(Pgt,{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(kgt,{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(Y1t,{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(gTt,{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)]))}}),CTt=["align"],yTt=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}){Wm(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(MS)({borderCollapse:n.iteratedColumn.BorderCollapse})],{width:"100%","border-spacing":"0"}]),width:"100%"},[_("tbody",null,[_("tr",null,[_("td",{align:z($c)({containerAlign:n.iteratedColumn.ContainerAlign}),style:he([[z(pd)({border:n.iteratedColumn.Border,themeColors:n.theme.Colors}),{backgroundColor:z(Bl)({color:n.iteratedColumn.BgColor,themeColors:n.theme.Colors})},z(Pu)({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,CTt)])])],4)],4))}}),bTt=ot(yTt,[["__scopeId","data-v-4bdaa248"]]),vTt=["align"],TTt=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}){Wm(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(MS)({borderCollapse:n.iteratedColumnN21.BorderCollapse})],{width:"100%","border-spacing":"0"}]),width:"100%"},[_("tbody",null,[_("tr",null,[_("td",{align:z($c)({containerAlign:n.iteratedColumnN21.ContainerAlign}),style:he([[z(pd)({border:n.iteratedColumnN21.Border,themeColors:n.theme.Colors}),{backgroundColor:z(Bl)({color:n.iteratedColumnN21.BgColor,themeColors:n.theme.Colors})},z(Pu)({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,vTt)])])],4)],4))}}),xTt=ot(TTt,[["__scopeId","data-v-b46af162"]]),FTt=["align"],wTt=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}){Wm(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(MS)({borderCollapse:n.iteratedColumnN22.BorderCollapse})],{width:"100%","border-spacing":"0"}]),width:"100%"},[_("tbody",null,[_("tr",null,[_("td",{align:z($c)({containerAlign:n.iteratedColumnN22.ContainerAlign}),style:he([[z(pd)({border:n.iteratedColumnN22.Border,themeColors:n.theme.Colors}),{backgroundColor:z(Bl)({color:n.iteratedColumnN22.BgColor,themeColors:n.theme.Colors})},z(Pu)({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,FTt)])])],4)],4))}}),STt=ot(wTt,[["__scopeId","data-v-319c5209"]]),kTt={class:"iterated-column-container",style:{"border-spacing":"0","border-collapse":"collapse",width:"100%",margin:"0 auto"},width:"100%"},ETt={align:"center",style:{"font-size":"0"}},_Tt=Xe({__name:"IteratedColumnBodyRow",props:{deps:{},theme:{},iteratedColumnBodyRow:{},path:{},selectedElementPath:{},context:{},rowWidth:{}},emits:["onElementClicked","onImageOriginalSizeAdjusted","onImageSizeAdjusted","onElementUpdatedEvent","onElementRemoved"],setup(t,{emit:e}){Wm(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",kTt,[_("tbody",null,[_("tr",null,[_("td",ETt,[(O(!0),J(rt,null,$n(o.dataList,(c,d)=>(O(),J(rt,{key:d},[s.iteratedColumn(n.iteratedColumnBodyRow.IteratedColumn)?(O(),Ze(bTt,{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(LR)({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(xTt,{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(LR)({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(STt,{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(LR)({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))])])])]))}}),RTt=ot(_Tt,[["__scopeId","data-v-69ed8d34"]]),DTt={style:{"border-spacing":"0","border-collapse":"collapse",width:"100%",margin:"0 auto"}},ATt=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",DTt,[(O(!0),J(rt,null,$n(o.dataList,(a,l)=>(O(),J("tr",{key:l},[_("td",{style:he([z(OS)({paddings:n.iteratedBodyRow.Paddings,themeComponentPaddings:n.theme.ComponentPaddings,themeBodyPaddings:n.theme.BodyPaddings})])},[ie(Vxe,{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))]))}}),NTt=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()}}}),BTt=t=>NTt(t).Match({Top:()=>"start",Middle:()=>"center",Bottom:()=>"end",Baseline:()=>"baseline"}),LTt=tc,$Tt=t=>({JustifyWidth:{WidthInPixels:t}}),VTt=t=>({ShrinkToContentWidth:{WidthInPixels:t}}),MTt=Act,OTt=["align"],ITt=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}){Wm(l=>({acad954c:a.value,v1971599c:s.value,v72b8524e:i.value}));const n=t,o=e,r=l=>{LTt(n.multipleColumn.Width).Match({JustifyWidth:()=>M2.Some($Tt(l)),ShrinkToContentWidth:()=>M2.Some(VTt(l)),WidthInPercents:()=>M2.None}).map(u=>o("onColumnWidthAdjusted",{Path:n.path,Width:u}))},i=q(()=>MTt(n.multipleColumn.Width).Match({default:()=>"",WidthInPercents:l=>l.Value*n.containerWidth+"px"})),s=q(()=>BTt(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(MS)({borderCollapse:n.multipleColumn.BorderCollapse})]]),width:"100%"},[_("tbody",null,[_("tr",null,[_("td",{align:z($c)({containerAlign:n.multipleColumn.ContainerAlign}),style:he([[z(pd)({border:n.multipleColumn.Border,themeColors:n.theme.Colors}),z(Pu)({borderRadius:n.multipleColumn.BorderRadius,borderRadiusCard:n.theme.BorderRadiusCard,bodyBorderRadius:n.theme.BorderRadius,borderButtonRadius:n.theme.BorderRadiusButton,borderBannerRadius:n.theme.BorderRadiusBanner}),{backgroundColor:z(Bl)({color:n.multipleColumn.BgColor,themeColors:n.theme.Colors})},z(OS)({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,OTt)])])],4)],2)),[[z(pw),c=>r(c.width)]])}}),PTt=ot(ITt,[["__scopeId","data-v-bfa1869f"]]),WTt=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}){Wm(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(MS)({borderCollapse:n.multipleColumnBodyRow.BorderCollapse}),z(pd)({border:n.multipleColumnBodyRow.Border,themeColors:n.theme.Colors}),z(Pu)({borderRadius:n.multipleColumnBodyRow.BorderRadius,borderRadiusCard:n.theme.BorderRadiusCard,bodyBorderRadius:n.theme.BorderRadius,borderButtonRadius:n.theme.BorderRadiusButton,borderBannerRadius:n.theme.BorderRadiusBanner}),{backgroundColor:z(Bl)({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(Sgt)({containerAlign:n.multipleColumnBodyRow.ContainerAlign}),z(OS)({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(PTt,{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(LR)({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))}}),HTt=ot(WTt,[["__scopeId","data-v-c6ebdc94"]]),Vxe=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(HTt,{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(RTt,{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(ATt,{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)]))}}),zTt={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"},jTt={emptyEmailComponentText:"Товарная полка скрыта из-за недостатка товаров",emptyEmailComponentTooltip:"Товарная полка не будет отображаться у получателей письма пока в ней недостаточно товаров",requiredComponentNotification:"Без этого компонента письмо не будет отправлено"},nP=Xn({en:zTt,ru:jTt}),UTt={},KTt={width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function qTt(t,e){return O(),J("svg",KTt,[...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 JTt=ot(UTt,[["render",qTt]]),GTt={key:0},YTt={key:0,class:"is-required-notification"},XTt={class:"bootstrap-styles w-100 d-flex justify-content-center gap-5"},QTt=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:nP({localeKey:n.deps.localeKey}).emptyEmailComponentText,emptyEmailComponentTooltip:nP({localeKey:n.deps.localeKey}).emptyEmailComponentTooltip,requiredComponentNotification:nP({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",GTt,[n.emailComponent.IsRequired?(O(),J("div",YTt,[_("i",null,[ie(JTt)]),_("span",null,"   "+Gt(r.requiredComponentNotification),1)])):Ue("",!0),o.ifResult?(O(),J("table",{key:1,style:he([[{backgroundColor:z(Bl)({color:n.emailComponent.InnerBgColor,themeColors:n.theme.Colors})},z(Pu)({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(foe)({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(Vxe,{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}])},[J0(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(foe)({paddings:n.emailComponent.Paddings,themeComponentPaddings:n.theme.ComponentPaddings,themeBodyPaddings:n.theme.BodyPaddings,fullWidth:n.emailComponent.FullWidth}),{backgroundColor:z(Bl)({color:n.emailComponent.InnerBgColor,themeColors:n.theme.Colors})||"transparent"}])},[ie(z(Rne),{type:"text"}),_("div",XTt,[(O(),J(rt,null,$n(3,u=>ie(z(Rne),{key:u,type:"image, text, text, text, button",style:{width:"100%"}})),64))])],4))}}),Mxe=ot(QTt,[["__scopeId","data-v-7266764f"]]),ZTt={class:"scale-to-width-fit-component",style:{display:"inline-block","transform-origin":"left top"}},Oxe=Xe({__name:"ScaleToWidthFit",emits:["scaledElement"],setup(t,{emit:e}){const n=e;return(o,r)=>Ot((O(),J("div",ZTt,[q0(o.$slots,"default")])),[[z(pw),({width:i})=>{o.$el.style.transform=`scale(${o.$el.parentElement.clientWidth/i}`,n("scaledElement",o.$el)}]])}}),ext={title:"Preview",applyButton:"Select",cancelButton:"Cancel"},txt={title:"Предпросмотр",applyButton:"Выбрать",cancelButton:"Отмена"},oP=Xn({en:ext,ru:txt}),nxt={class:"email-template-preview__inner-padding scrollable"},oxt={class:"emailTemplate-border-top"},rxt={class:"emailTemplate-border-bottom"},ixt=Xe({__name:"EmailTemplatePreviewModalWindow",props:{template:{},deps:{}},emits:["favoriteTemplateSelected","close"],setup(t,{emit:e}){const n=t,o={title:oP({localeKey:n.deps.localeKey}).title,applyButton:oP({localeKey:n.deps.localeKey}).applyButton,cancelButton:oP({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(gxe,{headerText:o.title,class:"email-component__preview-modal-window",onClose:a[3]||(a[3]=()=>i("close"))},{body:xu(()=>[_("div",{style:he({backgroundColor:t.template.Theme.Colors.EmailBackgroundColor})},[ie(Oxe,{onScaledElement:a[0]||(a[0]=l=>r(l))},{default:xu(()=>[_("div",nxt,[_("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",oxt,[_("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(Mxe,{deps:t.deps.emailComponentDeps,theme:n.template.Theme,emailComponent:l,path:[],selectedElementPath:[]},null,8,["deps","theme","emailComponent"])]))),128)),_("div",rxt,[_("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":xu(()=>[_("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]=Ho(()=>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"]))}}),sxt=ot(ixt,[["__scopeId","data-v-a7898fb0"]]),axt={class:"favorite-template-select__item-wrapper"},lxt={class:"favorite-template-select__item bootstrap-styles border rounded-3"},uxt={class:"email-template-preview__inner-padding scrollable"},cxt={class:"emailTemplate-border-top"},dxt={class:"emailTemplate-border-bottom"},hxt=Xe({__name:"EmailTemplatePreviewTile",props:{deps:{},template:{},templateName:{}},emits:["favoriteTemplateSelected"],setup(t,{emit:e}){Wm(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:us({fontFamily:k,themeFontSettings:R.Title,themeColor:D.TitleColor}),Heading:us({fontFamily:k,themeFontSettings:R.Heading,themeColor:D.HeadingColor}),SubHeading:us({fontFamily:k,themeFontSettings:R.SubHeading,themeColor:D.SubHeadingColor}),LargeText:us({fontFamily:k,themeFontSettings:R.LargeText,themeColor:D.LargeTextColor}),NormalText:us({fontFamily:k,themeFontSettings:R.NormalText,themeColor:D.NormalTextColor}),DescriptionText:us({fontFamily:k,themeFontSettings:R.DescriptionText,themeColor:D.DescriptionTextColor}),Link:us({fontFamily:k,themeFontSettings:R.Link,themeColor:D.LinkColor}),Button:us({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"),S=e;return(k,R)=>(O(),J("div",axt,[_("div",lxt,[_("div",{class:"bootstrap-styles h-100",style:he({backgroundColor:n.template.Theme.Colors.EmailBackgroundColor}),onClick:R[1]||(R[1]=()=>{o.isPreviewComponentModalWindowShown=!0})},[ie(Oxe,{onScaledElement:R[0]||(R[0]=D=>r(D))},{default:xu(()=>[_("div",uxt,[_("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",cxt,[_("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(Mxe,{deps:n.deps.emailComponentDeps,theme:n.template.Theme,emailComponent:D,path:[],selectedElementPath:[]},null,8,["deps","theme","emailComponent"])]))),128)),_("div",dxt,[_("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(f9,{to:"#app"},[o.isPreviewComponentModalWindowShown?(O(),Ze(sxt,{key:0,template:n.template,deps:n.deps.emailTemplatePreviewModalWindowDeps,onClose:R[2]||(R[2]=()=>o.isPreviewComponentModalWindowShown=!1),onFavoriteTemplateSelected:R[3]||(R[3]=()=>S("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)]))}}),mxt=ot(hxt,[["__scopeId","data-v-66b13e3f"]]),fxt=t=>tc(t),pxt=t=>tc(t),gxt=t=>tc(t),Cxt=t=>tc(t),yxt=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),bxt=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),vxt=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),Txt=t=>{const e=yxt({numberExpressionEvaluator:t.numberExpressionEvaluator}),n=vxt({numberExpressionEvaluator:t.numberExpressionEvaluator}),o=bxt({numberExpressionEvaluator:t.numberExpressionEvaluator});return({numberPredicate:r,context:i})=>Cxt(r).Match({Equal:s=>e({predicate:s,context:i}),GreaterThan:s=>n({predicate:s,context:i}),LessThan:s=>o({predicate:s,context:i})})},xxt=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),Fxt=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)),wxt=t=>{const e=xxt({stringExpressionEvaluator:t.stringExpressionEvaluator}),n=Fxt({stringExpressionEvaluator:t.stringExpressionEvaluator});return({stringPredicate:o,context:r})=>gxt(o).Match({Contains:i=>n({predicate:i,context:r}),Equal:i=>e({predicate:i,context:r})})},Sxt=t=>{const e=Txt({numberExpressionEvaluator:t.numberExpressionEvaluator}),n=wxt({stringExpressionEvaluator:t.stringExpressionEvaluator});return({predicate:o,context:r})=>pxt(o).Match({NumberPredicate:i=>e({numberPredicate:i,context:r}),StringPredicate:i=>n({stringPredicate:i,context:r})})},Ixe=t=>{const e=Sxt({numberExpressionEvaluator:t.numberExpressionEvaluator,stringExpressionEvaluator:t.stringExpressionEvaluator}),n=({boolExpression:o,context:r})=>fxt(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},kxt=t=>Xe((e,n)=>()=>Gu(mxt,{template:t.template,templateName:t.templateName,deps:t.emailTemplatePreviewTileDeps,onFavoriteTemplateSelected:t.onFavoriteTemplateSelected})),Pxe=t=>t.reduce((e,n)=>(e[n.name]=n.value,e),{}),mC=t=>q1e({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:Pxe(t.parameters),DiscountPercentage:t.discountPercentage}),Ext=async t=>(await t.getPopularProductsHttpClient({body:{partnerId:t.partnerId,stockId:t.stockId}})).body.recommendations.map(e=>mC(e));var _xt=typeof global=="object"&&global&&global.Object===Object&&global,Rxt=typeof self=="object"&&self&&self.Object===Object&&self,Dxt=_xt||Rxt||Function("return this")(),VN=Dxt.Symbol;VN&&VN.toStringTag;VN&&VN.toStringTag;const{entries:Wxe,setPrototypeOf:Aoe,isFrozen:Axt,getPrototypeOf:Nxt,getOwnPropertyDescriptor:Bxt}=Object;let{freeze:Ri,seal:Pa,create:W5}=Object,{apply:H5,construct:z5}=typeof Reflect<"u"&&Reflect;Ri||(Ri=function(t){return t});Pa||(Pa=function(t){return t});H5||(H5=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)});z5||(z5=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 DE=Di(Array.prototype.forEach),Lxt=Di(Array.prototype.lastIndexOf),Noe=Di(Array.prototype.pop),w1=Di(Array.prototype.push),$xt=Di(Array.prototype.splice),VR=Di(String.prototype.toLowerCase),rP=Di(String.prototype.toString),iP=Di(String.prototype.match),S1=Di(String.prototype.replace),Vxt=Di(String.prototype.indexOf),Mxt=Di(String.prototype.trim),pl=Di(Object.prototype.hasOwnProperty),Kr=Di(RegExp.prototype.test),k1=Oxt(TypeError);function Di(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 H5(t,e,o)}}function Oxt(t){return function(){for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];return z5(t,n)}}function Wt(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:VR;Aoe&&Aoe(t,null);let o=e.length;for(;o--;){let r=e[o];if(typeof r=="string"){const i=n(r);i!==r&&(Axt(e)||(e[o]=i),r=i)}t[r]=!0}return t}function Ixt(t){for(let e=0;e<t.length;e++)pl(t,e)||(t[e]=null);return t}function Zl(t){const e=W5(null);for(const[n,o]of Wxe(t))pl(t,n)&&(Array.isArray(o)?e[n]=Ixt(o):o&&typeof o=="object"&&o.constructor===Object?e[n]=Zl(o):e[n]=o);return e}function E1(t,e){for(;t!==null;){const o=Bxt(t,e);if(o){if(o.get)return Di(o.get);if(typeof o.value=="function")return Di(o.value)}t=Nxt(t)}function n(){return null}return n}const Boe=Ri(["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"]),sP=Ri(["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"]),aP=Ri(["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"]),Pxt=Ri(["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"]),lP=Ri(["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"]),Wxt=Ri(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Loe=Ri(["#text"]),$oe=Ri(["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"]),uP=Ri(["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"]),Voe=Ri(["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"]),AE=Ri(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Hxt=Pa(/\{\{[\w\W]*|[\w\W]*\}\}/gm),zxt=Pa(/<%[\w\W]*|[\w\W]*%>/gm),jxt=Pa(/\$\{[\w\W]*/gm),Uxt=Pa(/^data-[\-\w.\u00B7-\uFFFF]+$/),Kxt=Pa(/^aria-[\-\w]+$/),Hxe=Pa(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),qxt=Pa(/^(?:\w+script|data):/i),Jxt=Pa(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),zxe=Pa(/^html$/i),Gxt=Pa(/^[a-z][.\w]*(-[.\w]+)+$/i);var Moe=Object.freeze({__proto__:null,ARIA_ATTR:Kxt,ATTR_WHITESPACE:Jxt,CUSTOM_ELEMENT:Gxt,DATA_ATTR:Uxt,DOCTYPE_NAME:zxe,ERB_EXPR:zxt,IS_ALLOWED_URI:Hxe,IS_SCRIPT_OR_DATA:qxt,MUSTACHE_EXPR:Hxt,TMPLIT_EXPR:jxt});const _1={element:1,text:3,progressingInstruction:7,comment:8,document:9},Yxt=function(){return typeof window>"u"?null:window},Xxt=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}},Ooe=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function jxe(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Yxt();const e=C=>jxe(C);if(e.version="3.3.1",e.removed=[],!t||!t.document||t.document.nodeType!==_1.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=E1(f,"cloneNode"),g=E1(f,"remove"),y=E1(f,"nextSibling"),b=E1(f,"childNodes"),F=E1(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:S,createNodeIterator:k,createDocumentFragment:R,getElementsByTagName:D}=n,{importNode:V}=o;let E=Ooe();e.isSupported=typeof Wxe=="function"&&typeof F=="function"&&S&&S.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}=Moe;let{IS_ALLOWED_URI:ve}=Moe,K=null;const Pe=Wt({},[...Boe,...sP,...aP,...lP,...Loe]);let Y=null;const He=Wt({},[...$oe,...uP,...Voe,...AE]);let P=Object.seal(W5(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(W5(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let St=!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],rP);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"),ar=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=Zl(C),on=al.indexOf(C.PARSER_MEDIA_TYPE)===-1?ll:C.PARSER_MEDIA_TYPE,re=on==="application/xhtml+xml"?rP:VR,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,rP):il,sn=pl(C,"ADD_URI_SAFE_ATTR")?Wt(Zl(bn),C.ADD_URI_SAFE_ATTR,re):bn,cn=pl(C,"ADD_DATA_URI_TAGS")?Wt(Zl(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):Zl({}),ae=pl(C,"FORBID_ATTR")?Wt({},C.FORBID_ATTR,re):Zl({}),Te=pl(C,"USE_PROFILES")?C.USE_PROFILES:!1,St=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||Hxe,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&&ar(C.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(P.tagNameCheck=C.CUSTOM_ELEMENT_HANDLING.tagNameCheck),C.CUSTOM_ELEMENT_HANDLING&&ar(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({},Loe),Y=[],Te.html===!0&&(Wt(K,Boe),Wt(Y,$oe)),Te.svg===!0&&(Wt(K,sP),Wt(Y,uP),Wt(Y,AE)),Te.svgFilters===!0&&(Wt(K,aP),Wt(Y,uP),Wt(Y,AE)),Te.mathMl===!0&&(Wt(K,lP),Wt(Y,Voe),Wt(Y,AE))),C.ADD_TAGS&&(typeof C.ADD_TAGS=="function"?ne.tagCheck=C.ADD_TAGS:(K===Pe&&(K=Zl(K)),Wt(K,C.ADD_TAGS,re))),C.ADD_ATTR&&(typeof C.ADD_ATTR=="function"?ne.attributeCheck=C.ADD_ATTR:(Y===He&&(Y=Zl(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=Zl(le)),Wt(le,C.FORBID_CONTENTS,re)),C.ADD_FORBID_CONTENTS&&(le===ze&&(le=Zl(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 k1('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof C.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw k1('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');v=C.TRUSTED_TYPES_POLICY,T=v.createHTML("")}else v===void 0&&(v=Xxt(m,r)),v!==null&&typeof T=="string"&&(T=v.createHTML(""));Ri&&Ri(C),Rt=C}},lr=Wt({},[...sP,...aP,...Pxt]),ur=Wt({},[...lP,...Wxt]),cl=function(C){let x=F(C);(!x||!x.tagName)&&(x={namespaceURI:ft,tagName:"template"});const w=VR(C.tagName),W=VR(x.tagName);return Nn[C.namespaceURI]?C.namespaceURI===hn?x.namespaceURI===Ke?w==="svg":x.namespaceURI===nn?w==="svg"&&(W==="annotation-xml"||gn[W]):!!lr[w]:C.namespaceURI===nn?x.namespaceURI===Ke?w==="math":x.namespaceURI===hn?w==="math"&&Cn[W]:!!ur[w]:C.namespaceURI===Ke?x.namespaceURI===hn&&!Cn[W]||x.namespaceURI===nn&&!gn[W]?!1:!ur[w]&&(sl[w]||!lr[w]):!!(on==="application/xhtml+xml"&&Nn[C.namespaceURI]):!1},gt=function(C){w1(e.removed,{element:C});try{F(C).removeChild(C)}catch{g(C)}},wt=function(C,x){try{w1(e.removed,{attribute:x.getAttributeNode(C),from:x})}catch{w1(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{}},cr=function(C){let x=null,w=null;if(Z)C="<remove></remove>"+C;else{const ee=iP(C,/^[\r\n\t ]+/);w=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=S.createDocument(ft,"template",null);try{x.documentElement.innerHTML=An?T:W}catch{}}const se=x.body||x.documentElement;return C&&w&&se.insertBefore(n.createTextNode(w),se.childNodes[0]||null),ft===Ke?D.call(x,G?"html":"body")[0]:G?x.documentElement:se},dr=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")},hr=function(C){return typeof a=="function"&&C instanceof a};function it(C,x,w){DE(C,W=>{W.call(e,x,w,Rt)})}const mr=function(C){let x=null;if(it(E.beforeSanitizeElements,C,null),Zn(C))return gt(C),!0;const w=re(C.nodeName);if(it(E.uponSanitizeElement,C,{tagName:w,allowedTags:K}),j&&C.hasChildNodes()&&!hr(C.firstElementChild)&&Kr(/<[/\w!]/g,C.innerHTML)&&Kr(/<[/\w!]/g,C.textContent)||C.nodeType===_1.progressingInstruction||j&&C.nodeType===_1.comment&&Kr(/<[/\w]/g,C.data))return gt(C),!0;if(!(ne.tagCheck instanceof Function&&ne.tagCheck(w))&&(!K[w]||Ee[w])){if(!Ee[w]&&pr(w)&&(P.tagNameCheck instanceof RegExp&&Kr(P.tagNameCheck,w)||P.tagNameCheck instanceof Function&&P.tagNameCheck(w)))return!1;if(ue&&!le[w]){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)||(w==="noscript"||w==="noembed"||w==="noframes")&&Kr(/<\/no(script|embed|frames)/i,C.innerHTML)?(gt(C),!0):(L&&C.nodeType===_1.text&&(x=C.textContent,DE([A,N,I],W=>{x=S1(x,W," ")}),C.textContent!==x&&(w1(e.removed,{element:C.cloneNode()}),C.textContent=x)),it(E.afterSanitizeElements,C,null),!1)},fr=function(C,x,w){if(X&&(x==="id"||x==="name")&&(w in n||w in ul))return!1;if(!(Tt&&!ae[x]&&Kr(M,x))&&!(St&&Kr($,x))&&!(ne.attributeCheck instanceof Function&&ne.attributeCheck(x,C))){if(!Y[x]||ae[x]){if(!(pr(C)&&(P.tagNameCheck instanceof RegExp&&Kr(P.tagNameCheck,C)||P.tagNameCheck instanceof Function&&P.tagNameCheck(C))&&(P.attributeNameCheck instanceof RegExp&&Kr(P.attributeNameCheck,x)||P.attributeNameCheck instanceof Function&&P.attributeNameCheck(x,C))||x==="is"&&P.allowCustomizedBuiltInElements&&(P.tagNameCheck instanceof RegExp&&Kr(P.tagNameCheck,w)||P.tagNameCheck instanceof Function&&P.tagNameCheck(w))))return!1}else if(!sn[x]&&!Kr(ve,S1(w,ke,""))&&!((x==="src"||x==="xlink:href"||x==="href")&&C!=="script"&&Vxt(w,"data:")===0&&cn[C])&&!(xt&&!Kr(H,S1(w,ke,"")))&&w)return!1}return!0},pr=function(C){return C!=="annotation-xml"&&iP(C,Oe)},gr=function(C){it(E.beforeSanitizeAttributes,C,null);const{attributes:x}=C;if(!x||Zn(C))return;const w={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:Mxt(Bn);if(w.attrName=Qe,w.attrValue=_e,w.keepAttr=!0,w.forceKeepAttr=void 0,it(E.uponSanitizeAttribute,C,w),_e=w.attrValue,Ve&&(Qe==="id"||Qe==="name")&&(wt(ee,C),_e=ce+_e),j&&Kr(/((--!?|])>)|<\/(style|title|textarea)/i,_e)){wt(ee,C);continue}if(Qe==="attributename"&&iP(_e,"href")){wt(ee,C);continue}if(w.forceKeepAttr)continue;if(!w.keepAttr){wt(ee,C);continue}if(!B&&Kr(/\/>/i,_e)){wt(ee,C);continue}L&&DE([A,N,I],na=>{_e=S1(_e,na," ")});const mn=re(C.nodeName);if(!fr(mn,Qe,_e)){wt(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):Noe(e.removed)}catch{wt(ee,C)}}it(E.afterSanitizeAttributes,C,null)},dl=function C(x){let w=null;const W=dr(x);for(it(E.beforeSanitizeShadowDOM,x,null);w=W.nextNode();)it(E.uponSanitizeShadowNode,w,null),mr(w),gr(w),w.content instanceof i&&C(w.content);it(E.afterSanitizeShadowDOM,x,null)};return e.sanitize=function(C){let x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},w=null,W=null,se=null,ee=null;if(An=!C,An&&(C="<!-->"),typeof C!="string"&&!hr(C))if(typeof C.toString=="function"){if(C=C.toString(),typeof C!="string")throw k1("dirty is not a string, aborting")}else throw k1("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 k1("root node is forbidden and cannot be sanitized in-place")}}else if(C instanceof a)w=cr("<!---->"),W=w.ownerDocument.importNode(C,!0),W.nodeType===_1.element&&W.nodeName==="BODY"||W.nodeName==="HTML"?w=W:w.appendChild(W);else{if(!te&&!L&&!G&&C.indexOf("<")===-1)return v&&U?v.createHTML(C):C;if(w=cr(C),!w)return te?null:U?T:""}w&&Z&&gt(w.firstChild);const qe=dr(de?C:w);for(;se=qe.nextNode();)mr(se),gr(se),se.content instanceof i&&dl(se.content);if(de)return C;if(te){if(oe)for(ee=R.call(w.ownerDocument);w.firstChild;)ee.appendChild(w.firstChild);else ee=w;return(Y.shadowroot||Y.shadowrootmode)&&(ee=V.call(o,ee,!0)),ee}let je=G?w.outerHTML:w.innerHTML;return G&&K["!doctype"]&&w.ownerDocument&&w.ownerDocument.doctype&&w.ownerDocument.doctype.name&&Kr(zxe,w.ownerDocument.doctype.name)&&(je="<!DOCTYPE "+w.ownerDocument.doctype.name+`>
194
+ `}),pd=t=>({borderTop:RE(t.border.Top,t.themeColors),borderRight:RE(t.border.Right,t.themeColors),borderBottom:RE(t.border.Bottom,t.themeColors),borderLeft:RE(t.border.Left,t.themeColors)}),MS=t=>t.borderCollapse!==void 0?{borderCollapse:Fgt(t.borderCollapse)}:{borderCollapse:"collapse"},Fgt=t=>{switch(t){case"Collapse":return"collapse";case"Separate":return"separate";default:return ta(t)}},wgt=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)}}}),Bl=t=>wgt(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}),hxe=t=>({Match:e=>{switch(t){case"Left":return e.Left();case"Center":return e.Center();case"Right":return e.Right();default:return ta(t)}}}),Sgt=t=>t.containerAlign?hxe(t.containerAlign).Match({Left:()=>({textAlign:"left"}),Center:()=>({textAlign:"center"}),Right:()=>({textAlign:"right"})}):{},$c=t=>t.containerAlign?hxe(t.containerAlign).Match({Left:()=>"left",Center:()=>"center",Right:()=>"right"}):"center",kgt=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))}}),OS=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"}),Egt=tc,_gt=t=>Egt(t.width).Match({Auto:()=>"initial",Pixel:e=>e.Value+"px",Percentage:e=>e.Value+"%"}),Rgt=["align"],Dgt=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(_gt)({width:n.element.Width})}])},[_("tbody",null,[_("tr",null,[_("td",{align:z($c)({containerAlign:n.element.ContainerAlign}),style:he([z(OS)({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(Bl)({color:n.element.BackgroundColor,themeColors:n.theme.Colors})??"inherit"},z(pd)({border:n.element.Border,themeColors:n.theme.Colors}),z(Pu)({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,Rgt)])])],4))}}),Agt=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()}}}),xb=t=>Agt(t.contentAlign).Match({Left:()=>({display:"block",textAlign:"left"}),Center:()=>({display:"block",textAlign:"center"}),Right:()=>({display:"block",textAlign:"right"}),Inline:()=>({})});let tP;const pw={mounted(t,e){const n=e.value;tP=new ResizeObserver(o=>{o.forEach(r=>n(r.contentRect))}),tP.observe(t)},unmounted(t){tP.unobserve(t)}},Ngt=["href"],Bgt=["src","alt"],Lgt=["src","alt"],$gt=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(xb)({contentAlign:o.element.ContentAlign})]),onClick:d[0]||(d[0]=Ho(()=>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(Pu)({borderRadius:o.element.BorderRadius,borderRadiusCard:o.theme.BorderRadiusCard,bodyBorderRadius:o.theme.BorderRadius,borderButtonRadius:o.theme.BorderRadiusButton,borderBannerRadius:o.theme.BorderRadiusBanner}),z(pd)({border:o.element.Border,themeColors:o.theme.Colors}),{width:i.value,maxWidth:s.value},{verticalAlign:o.element.VerticalAlign}]),onLoad:n},null,46,Bgt)),[[z(pw),({width:h,height:m})=>u("onImageSizeAdjusted",{Path:o.path,AdjustedHeight:m,AdjustedWidth:h})]]):Ue("",!0)],12,Ngt)):(O(),J("span",{key:1,style:he([z(xb)({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(Pu)({borderRadius:o.element.BorderRadius,borderRadiusCard:o.theme.BorderRadiusCard,bodyBorderRadius:o.theme.BorderRadius,borderButtonRadius:o.theme.BorderRadiusButton,borderBannerRadius:o.theme.BorderRadiusBanner}),z(pd)({border:o.element.Border,themeColors:o.theme.Colors}),{width:i.value,maxWidth:s.value},{verticalAlign:o.element.VerticalAlign}]),onLoad:n},null,46,Lgt)),[[z(pw),({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},Vgt=ot($gt,[["__scopeId","data-v-83688a51"]]),Mgt=tc,Ogt=t=>t.width===void 0?{}:Mgt(t.width).Match({Auto:()=>({width:"auto"}),Pixel:e=>({width:e.Value+"px"}),Percentage:e=>({width:e.Value+"%"})}),Igt=t=>{switch(t){case"Auto":return{width:"auto"};case"FullWidth":return{width:"100%"};default:return ta(t)}},Pgt=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(Igt)(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(OS)({paddings:n.element.ItemPaddings,themeComponentPaddings:n.theme.ComponentPaddings,themeBodyPaddings:n.theme.BodyPaddings}),z(Ogt)({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))}}),Wgt={style:{"border-spacing":"0","border-collapse":"collapse",width:"100%"}},Hgt=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",Wgt,[_("tbody",null,[_("tr",null,[_("td",{style:he([[{borderTop:n.element.Weight+"px",borderStyle:n.element.Weight>0?"solid":"none",borderColor:z(Bl)({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)])])]))}}),I5={beforeMount(t,e){t.innerHTML=tee.sanitize(e.value)},beforeUpdate(t,e){t.innerHTML=tee.sanitize(e.value)}},zgt=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)}}}),gM=t=>zgt(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}),jgt=t=>({Match:e=>{switch(t){case"None":return e.None();case"Underline":return e.Underline();case"LineThrough":return e.LineThrough()}}}),aU=t=>jgt(t.textDecoration).Match({None:()=>"none",Underline:()=>"underline",LineThrough:()=>"line-through"}),mxe=t=>({fontSize:t.customFontSettings.FontSize,lineHeight:t.customFontSettings.LineHeight,fontWeight:t.customFontSettings.IsBold?"bold":"normal",fontStyle:t.customFontSettings.IsItalic?"italic":"normal",textDecoration:aU({textDecoration:t.customFontSettings.Decoration}),fontFamily:t.customFontSettings.FontFamily,color:gM({fontColor:t.customFontSettings.FontColor,themeColors:t.themeColors})}),fxe=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)}}}),Ugt=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)}}}),Kgt=t=>Ugt(t.fontStyleColor).Match({FontStyle:()=>fxe(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=>Bl({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}),pxe=["Arial","Georgia","Tahoma","TimesNewRoman","Verdana"],P5={Arial:"Arial",Georgia:"Georgia",Tahoma:"Tahoma",TimesNewRoman:"Times New Roman",Verdana:"Verdana"},lU=t=>({fontSize:t.fontSize+"px",lineHeight:t.lineHeight+"px",fontWeight:t.fontWeight,fontStyle:t.fontStyle,fontFamily:P5[t.fontFamily],textDecoration:t.textDecoration,color:t.color}),uU=t=>{const e=n=>({fontSize:n.FontSize,lineHeight:n.LineHeight,fontWeight:n.IsBold?"bold":"normal",fontStyle:n.IsItalic?"italic":"normal",fontFamily:t.fontFamily,textDecoration:aU({textDecoration:n.Decoration}),color:Kgt({fontStyleColor:t.fontStyle.FontColor,fontStyle:t.fontStyle,themeColors:t.themeColors})});return fxe(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=>mxe({customFontSettings:n,themeColors:t.themeColors})})},qgt=t=>({Match:e=>{switch(t.Discriminator){case"Theme":return e.Theme();case"Custom":return e.Custom(t.CustomValue);default:return ta(t.Discriminator)}}}),Jgt=t=>qgt(t.buttonPaddings).Match({Theme:()=>({TopBottom:t.themeButtonPaddings.TopBottom,LeftRight:t.themeButtonPaddings.LeftRight}),Custom:e=>({TopBottom:e.TopBottom,LeftRight:e.LeftRight})}),Ggt=["align"],Ygt={class:"Button"},Xgt=["href"],Qgt=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(()=>lU(uU({fontFamily:n.theme.FontFamily,fontStyle:n.element.TextStyle,themeDefinedFontSettings:n.theme.FontSettingsPresets,themeColors:n.theme.Colors}))),r=q(()=>$R({borderColor:n.element.Border.Left.Color,themeColors:n.theme.Colors})),i=q(()=>Jgt({buttonPaddings:n.element.Paddings,themeButtonPaddings:n.theme.ButtonPaddings})),s=q(()=>Bl({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]=Ho(f=>d("onElementClicked"),["prevent"]))},[_("tbody",null,[_("tr",null,[_("td",{align:a.value},[_("div",Ygt,[_("a",{style:he([{display:"block","text-decoration":"none"},[o.value]]),href:l.href,onClick:m[0]||(m[0]=Ho(()=>{},["prevent"]))},[_("table",{style:he([[{backgroundColor:s.value},z(Pu)({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(pd)({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(I5),l.text]])],4)])])],4)],12,Xgt)])],8,Ggt)])])]))}}),Zgt=ot(Qgt,[["__scopeId","data-v-f2906df7"]]),eCt=["href"],tCt=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=uU({fontFamily:n.theme.FontFamily,fontStyle:n.element.Style,themeDefinedFontSettings:n.theme.FontSettingsPresets,themeColors:n.theme.Colors});if(n.element.Style.Discriminator==="Custom"){const c=mxe({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(xb)({contentAlign:n.element.ContentAlign})]]),onClick:c[0]||(c[0]=Ho(()=>l("onElementClicked"),["prevent"]))},null,14,eCt)),[[z(I5),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(xb)({contentAlign:n.element.ContentAlign})]]),onClick:c[1]||(c[1]=Ho(()=>l("onElementClicked"),["prevent"]))},null,6)),[[z(I5),i.text]])}}),nCt=ot(tCt,[["__scopeId","data-v-f6595f5e"]]),us=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:aU({textDecoration:t.themeFontSettings.Decoration}),color:t.themeColor}),oCt={class:"bootstrap-styles modal fade show d-block position-absolute"},rCt={class:"bootstrap-styles modal-dialog modal-dialog-centered"},iCt={class:"bootstrap-styles modal-content border rounded-3 shadow","data-test":"modal-window__content"},sCt={class:"bootstrap-styles modal-header p-0"},aCt={class:"bootstrap-styles container-fluid border-bottom g-0"},lCt={class:"bootstrap-styles d-flex justify-content-between align-items-center px-11 py-7"},uCt={class:"bootstrap-styles modal-title border-0","data-test":"modal-window__header-text"},cCt={class:"bootstrap-styles modal-body p-0","data-test":"modal-window__body"},dCt={class:"bootstrap-styles modal-footer p-0 g-0"},hCt={class:"bootstrap-styles container-fluid border-top"},mCt={class:"bootstrap-styles d-flex justify-content-end py-8 px-11"},fCt={class:"bootstrap-styles col-6 d-flex justify-content-end","data-test":"modal-window__footer-actions"},pCt=Xe({__name:"ModalWindow",props:{headerText:{}},emits:["close"],setup(t,{emit:e}){const n=t,o=e;return(r,i)=>(O(),J("div",oCt,[_("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",rCt,[_("div",iCt,[_("div",sCt,[_("div",aCt,[_("div",lCt,[_("h5",uCt,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",cCt,[q0(r.$slots,"body",{},void 0,!0)]),_("div",dCt,[_("div",hCt,[_("div",mCt,[_("div",fCt,[q0(r.$slots,"footer-actions",{},void 0,!0)])])])])])])]))}}),gxe=ot(pCt,[["__scopeId","data-v-7a4aac23"]]),Xn=t=>e=>t[e.localeKey],gCt={cancelButton:"Cancel",applyButton:"Delete"},CCt={cancelButton:"Отмена",applyButton:"Удалить"},poe=Xn({en:gCt,ru:CCt}),yCt={class:"bootstrap-styles px-11 py-7 text-start"},bCt=Xe({__name:"RemoveConfirmModalWindow",props:{headerText:{},deps:{}},emits:["cancel","confirmed"],setup(t,{emit:e}){const n=t,o=()=>{i("cancel")},r={cancelButton:poe({localeKey:n.deps.localeKey}).cancelButton,applyButton:poe({localeKey:n.deps.localeKey}).applyButton},i=e;return(s,a)=>(O(),Ze(gxe,{headerText:n.headerText,class:"remove-element-confirm-modal-window",onClose:a[2]||(a[2]=()=>o())},{body:xu(()=>[_("div",yCt,[q0(s.$slots,"body-content")])]),"footer-actions":xu(()=>[_("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]=Ho(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]=Ho(l=>i("confirmed"),["stop"]))},Gt(r.applyButton),1)]),_:3},8,["headerText"]))}}),vCt={removeWindowTitle:"Delete element",removeWindowDescription:"Are you sure you want to delete the text element?"},TCt={removeWindowTitle:"Удаление элемента",removeWindowDescription:"Вы действительно хотите удалить элемент ?"},goe=Xn({en:vCt,ru:TCt}),Coe=t=>({type:"doc",content:t.Content.map(xCt)}),xCt=t=>"ParagraphNode"in t?bxe(t):"BulletListNode"in t?FCt(t):"OrderedListNode"in t?wCt(t):"DataFieldNode"in t?yxe(t):ta(t),Cxe=t=>({type:"listItem",content:t.Content.map(e=>"ParagraphNode"in e?bxe(e):"ImageNode"in e?vxe(e):ta(e))}),yxe=t=>({type:"dataField",marks:cU({textStyle:t.DataFieldNode.TextStyle,commonLinkMark:t.DataFieldNode.CommonLinkMark}),attrs:{stringExpression:t.DataFieldNode.StringExpression}}),FCt=t=>({type:"bulletList",content:t.BulletListNode.Content.map(Cxe),attrs:{themeName:t.BulletListNode.ListStyle}}),wCt=t=>({type:"orderedList",content:t.OrderedListNode.Content.map(Cxe),attrs:{themeName:t.OrderedListNode.ListStyle}}),bxe=t=>({type:"paragraph",attrs:{themeName:t.ParagraphNode.ThemeName},content:t.ParagraphNode.Content.map(SCt)}),SCt=t=>"TextNode"in t?kCt(t):"HardBreakNode"in t?BCt():"ImageNode"in t?vxe(t):"DataFieldNode"in t?yxe(t):ta(t),cU=t=>{const e=[];return t.textStyle&&e.push(ACt(t.textStyle)),t.commonLinkMark&&e.push(NCt(t.commonLinkMark)),e.filter(n=>n!==void 0)},kCt=t=>({type:"text",text:t.TextNode.Text,marks:cU({textStyle:t.TextNode.TextStyle,commonLinkMark:t.TextNode.CommonLinkMark})}),ECt=t=>{switch(t){case"Normal":return"normal";case"Bold":return"bold";default:return"normal"}},_Ct=t=>{switch(t){case"Normal":return"normal";case"Italic":return"italic";default:return"normal"}},RCt=t=>{switch(t){case"None":return"none";case"Uppercase":return"uppercase";default:return"none"}},DCt=t=>{switch(t){case"None":return"none";case"Underline":return"underline";case"LineThrough":return"line-through";default:return"none"}},ACt=t=>({type:"textStyle",attrs:{themeName:t.ThemeName,color:t.Style.Color,fontWeight:t.Style.FontWeight?ECt(t.Style.FontWeight):void 0,fontStyle:t.Style.FontStyle?_Ct(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?RCt(t.Style.TextTransform):void 0,textDecoration:t.Style.TextDecoration?DCt(t.Style.TextDecoration):void 0}}),NCt=t=>tc(t).Match({LinkMark:e=>LCt({LinkMark:e}),UnsubscribeLinkMark:()=>$Ct()}),BCt=()=>({type:"hardBreak"}),vxe=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:cU({commonLinkMark:t.ImageNode.CommonLinkMark})}),LCt=t=>({type:"link",attrs:{href:t.LinkMark.Href}}),$Ct=()=>({type:"unsubscribeLink"}),Txe=ec.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})}}}}),VCt=ec.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()}}}),MCt=ec.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()}}}),OCt=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}})]}}),ICt=ec.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})}}}}),PCt=ec.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})}}}}),dU=ec.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",_i(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()}}}}),WCt=ec.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})}}}}),HCt=t=>{if(!t.content)throw new Error("Invalid document: content is missing");return{Content:t.content.map(e=>{switch(e.type){case"paragraph":return xxe(e);case"bulletList":return UCt(e);case"orderedList":return KCt(e);default:throw new Error(`Unknown node type: ${e.type}`)}})}},xxe=t=>t.content?{ParagraphNode:{ThemeName:t.attrs?t.attrs.themeName:void 0,Content:t.content.map(e=>{switch(e.type){case"text":return zCt(e);case"image":return wxe(e);case"hardBreak":return yoe();case"dataField":return jCt(e);default:throw new Error(`Unknown node type: ${e.type}`)}})}}:{ParagraphNode:{ThemeName:t.attrs?t.attrs.themeName:void 0,Content:[yoe()]}},hU=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?QCt(e):void 0,CommonLinkMark:n?ZCt(n):void 0}},zCt=t=>{if(typeof t.text!="string")throw new Error("Invalid text node: text is missing or not a string");const{TextStyle:e,CommonLinkMark:n}=hU(t.marks);return{TextNode:{Text:t.text,TextStyle:e,CommonLinkMark:n}}},yoe=()=>({HardBreakNode:{}}),jCt=t=>{if(!t.attrs)throw new Error("Invalid variable node: attrs is missing");const{TextStyle:e,CommonLinkMark:n}=hU(t.marks);return{DataFieldNode:{StringExpression:t.attrs.stringExpression,TextStyle:e,CommonLinkMark:n}}},UCt=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(Fxe)}}},KCt=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(Fxe)}}},Fxe=t=>{if(!t.content)throw new Error("Invalid listItem: content is missing");return{Content:t.content.map(e=>{switch(e.type){case"paragraph":return xxe(e);case"image":return wxe(e);default:throw new Error(`Unknown node type: ${e.type}`)}})}},wxe=t=>{if(!t.attrs)throw new Error("Invalid image node: attrs is missing");const{CommonLinkMark:e}=hU(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}}},qCt=t=>t==="bold"?"Bold":"Normal",JCt=t=>t==="italic"?"Italic":"Normal",GCt=t=>t,YCt=t=>{switch(t){case"uppercase":return"Uppercase";default:return"None"}},XCt=t=>{switch(t){case"underline":return"Underline";case"line-through":return"LineThrough";default:return"None"}},boe=t=>{const e=t.replace(/px$/,"");return parseInt(e,10)},QCt=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?qCt(t.attrs.fontWeight):void 0,FontStyle:t.attrs.fontStyle?JCt(t.attrs.fontStyle):void 0,FontSize:t.attrs.fontSize?boe(t.attrs.fontSize):void 0,LineHeight:t.attrs.lineHeight?boe(t.attrs.lineHeight):void 0,FontFamily:t.attrs.fontFamily?GCt(t.attrs.fontFamily):void 0,TextTransform:t.attrs.textTransform?YCt(t.attrs.textTransform):void 0,TextDecoration:t.attrs.textDecoration?XCt(t.attrs.textDecoration):void 0}}},ZCt=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}},Sxe=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),Sxe(o)}const e=document.createElement("canvas").getContext("2d");return e?(e.fillStyle=t,e.fillStyle):null},eyt=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=Sxe(e.style.color)??"#000000";return{Discriminator:n,CustomValue:o}},renderHTML:e=>{if(!e.color)return{};const n=gM({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()}}}),tyt=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 pxe.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()}}}),nyt=t=>Il.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=Nct(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",_i(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()}}}}),kxe=t=>new Promise((e,n)=>{const o=new Image;o.onload=()=>{e({width:o.naturalWidth,height:o.naturalHeight})},o.onerror=n,o.src=t}),Exe=Il.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",_i(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[vat({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)&&kxe(i).then(l=>{const u=e.tr.setNodeMarkup(r,void 0,{...o.attrs,width:l.width,height:l.height});n(u)})}})})(),{})})]}}),oyt=t=>[llt,Jlt,alt,oM.configure({mergeNestedSpanStyles:!0}),Blt,nyt({dataSourceFieldNameDelegate:t.dataSourceFieldNameDelegate}),slt.configure({className:"has-focus",mode:"all"}),A8.configure({keepMarks:!0,keepAttributes:!0}),B8.configure({keepMarks:!0,keepAttributes:!0}),T1e,qlt.configure({HTMLAttributes:{class:"hard-break"}}),D8.configure({HTMLAttributes:{class:"rich-text__link"},openOnClick:!1}),Exe.configure({inline:!0,HTMLAttributes:{class:"rich-text__image"}}),eyt({themeColors:t.themeColors}),OCt(t.initialThemeName),ICt,PCt,VCt,MCt,Txe,WCt,dU,tyt],ryt=t=>HCt(t.editor.getJSON()),iyt=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),J0(" "+Gt(n.label),1)])],2))}}),syt={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"}},ayt={colorLabels:{none:"Нет",styleLinkedColor:"Связать со стилем",emailBackgroundColor:"Фон письма",bodyColor:"Тело письма",primaryColor:"Основной цвет",secondaryColor:"Вторичный цвет",primaryTextColor:"Текст на основном цвете",secondaryTextColor:"Текст на вторичном цвете",cardBackgroundColor:"Цвет карточек товара",buttonTextColor:"Кнопки",titleColor:"Большой заголовок",headingColor:"Заголовок",subHeadingColor:"Подзаголовок",largeTextColor:"Большой текст",normalTextColor:"Текст",descriptionTextColor:"Описание",linkColor:"Ссылка",custom:"Пользовательский"}},lyt=Xn({en:syt,ru:ayt}),_xe=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)}}}),CM=t=>_xe(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}),IS=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=us({fontFamily:e,themeFontSettings:n[s],themeColor:CM({themeName:s,themeFontColors:o})});return String(a[t.styleName])},Rxe=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=us({fontFamily:e,themeFontSettings:n[s],themeColor:CM({themeName:s,themeFontColors:o})});return{Discriminator:_xe(s).Match({whenHeading:()=>"HeadingColor",whenTitle:()=>"TitleColor",whenSubHeading:()=>"SubHeadingColor",whenLargeText:()=>"LargeTextColor",whenNormalText:()=>"NormalTextColor",whenDescriptionText:()=>"DescriptionTextColor",whenLink:()=>"LinkColor",whenButton:()=>"ButtonTextColor"}),CustomValue:a.color}},uyt={class:"color-picker bootstrap-styles border rounded bg-white"},cyt={class:"bootstrap-styles p-1 mb-5 bg-white"},dyt=["value"],hyt=["value"],myt=Xe({__name:"ColorPickerModalWindow",props:{editor:{},theme:{},deps:{}},emits:["onColorChanged","onColorPickerClosed"],setup(t,{emit:e}){const n=t,o={colorLabels:lyt({localeKey:n.deps.localeKey}).colorLabels},r=q(()=>gM({fontColor:Rxe({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=Cet(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",uyt,[_("li",cyt,[ie(z(Ect),{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,dyt),_("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,hyt)],2)]),(O(),J(rt,null,$n(a,f=>ie(iyt,{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(Jm),()=>d("onColorPickerClosed")]])}}),fyt=ot(myt,[["__scopeId","data-v-b1cc72b1"]]),pyt={tooltip:"Text color"},gyt={tooltip:"Цвет текста"},Cyt=Xn({en:pyt,ru:gyt}),yyt=["value"],byt=Xe({__name:"ColorPicker",props:{editor:{},theme:{},isAllowToEdit:{type:Boolean},deps:{}},setup(t){const e=t,n={tooltip:Cyt({localeKey:e.deps.localeKey}).tooltip},o=Vt({isColorPickerDropdownShown:!1}),r=pn(),i=pn(),{floatingStyles:s}=B0e(i,r,{whileElementsMounted:D0e,placement:"bottom",middleware:[A0e(({rects:l})=>({alignmentAxis:-l.floating.width/2-l.floating.width/2,mainAxis:15}))]}),a=q(()=>gM({fontColor:Rxe({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,yyt)),[[z($o),{title:n.tooltip,placement:"top"}]]),o.isColorPickerDropdownShown?(O(),Ze(fyt,{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))}}),vyt=ot(byt,[["__scopeId","data-v-6624477a"]]),Tyt={},xyt={xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"};function Fyt(t,e){return O(),J("svg",xyt,[...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 Dxe=ot(Tyt,[["render",Fyt]]),wyt={tooltip:"Font family"},Syt={tooltip:"Шрифт"},kyt=Xn({en:wyt,ru:Syt}),Eyt={class:"bootstrap-styles dropdown"},_yt={class:"bootstrap-styles me-14 overflow-hidden rich-text-toolbar__font-family-btn__text"},Ryt={class:"bootstrap-styles d-flex justify-content-center align-items-center"},Dyt=["onClick"],Ayt=Xe({__name:"FontFamilySelector",props:{editor:{},isAllowToEdit:{type:Boolean},theme:{},deps:{}},setup(t){const e=t,n={tooltip:kyt({localeKey:e.deps.localeKey}).tooltip},o=oM.name,r=Vt({isOpened:!1}),i=q(()=>IS({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",Eyt,[_("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",_yt,Gt(z(P5)[i.value]),1),_("i",Ryt,[ie(Dxe)])],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(pxe),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(P5)[u]),5)],10,Dyt))),128))],2)])),[[z(Jm),()=>r.isOpened=!1],[z($o),{title:n.tooltip,placement:"top"}]])}}),Nyt=ot(Ayt,[["__scopeId","data-v-cc496278"]]),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 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 Axe=ot(Byt,[["render",$yt],["__scopeId","data-v-19c42a7a"]]),Vyt={},Myt={xmlns:"http://www.w3.org/2000/svg",width:"8",height:"8",viewBox:"0 0 8 8",fill:"none"};function Oyt(t,e){return O(),J("svg",Myt,[...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 Nxe=ot(Vyt,[["render",Oyt],["__scopeId","data-v-313c2951"]]),Iyt={},Pyt={width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Wyt(t,e){return O(),J("svg",Pyt,[...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 Hyt=ot(Iyt,[["render",Wyt]]),zyt={tooltip:"Font size"},jyt={tooltip:"Размер текста"},Uyt=Xn({en:zyt,ru:jyt}),Kyt=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):us({fontFamily:e,themeFontSettings:n[s],themeColor:CM({themeName:s,themeFontColors:o})}).fontSize},qyt={class:"bootstrap-styles rich-text-toolbar__font-size-editor position-relative rounded-2 py-1 px-3 d-flex"},Jyt={class:"bootstrap-styles d-flex justify-content-center rich-text-icon me-14"},Gyt=["value"],Yyt={class:"bootstrap-styles rich-text-toolbar__input-button top-0 d-flex position-absolute align-items-end justify-content-center"},Xyt={class:"bootstrap-styles rich-text-toolbar__input-button bottom-0 d-flex position-absolute align-items-start justify-content-center"},Qyt=Xe({__name:"FontSizeEditor",props:{editor:{},theme:{},deps:{}},setup(t){const e=t,n={tooltip:Uyt({localeKey:e.deps.localeKey}).tooltip},o=q(()=>Kyt({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",qyt,[_("i",Jyt,[ie(Hyt)]),_("input",{type:"number",class:"bootstrap-styles rich-text-toolbar__input-number rich-text__handler",value:o.value,onInput:s},null,40,Gyt),_("div",Yyt,[_("input",{type:"button",class:"bootstrap-styles position-absolute rich-text__handler",onClick:r}),ie(Axe)]),_("div",Xyt,[_("input",{type:"button",class:"bootstrap-styles position-absolute rich-text__handler",onClick:i}),ie(Nxe)])])),[[z($o),{title:n.tooltip,placement:"top"}]])}}),Zyt=ot(Qyt,[["__scopeId","data-v-ba95f865"]]),e0t=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))}}),t0t=ot(e0t,[["__scopeId","data-v-9d9afc02"]]),n0t={tooltip:"Text style",settingLabels:{title:"Title",heading:"Heading",subHeading:"Subheading",largeText:"Large text",normalText:"Text",descriptionText:"Description",link:"Link",button:"Button",custom:"Custom"}},o0t={tooltip:"Стиль текста",settingLabels:{title:"Большой заголовок",heading:"Заголовок",subHeading:"Подзаголовок",largeText:"Большой текст",normalText:"Текст",descriptionText:"Описание",link:"Ссылка",button:"Кнопка",custom:"Пользовательский"}},voe=Xn({en:n0t,ru:o0t}),r0t={class:"bootstrap-styles dropdown"},i0t={class:"bootstrap-styles rich-text-toolbar__font-style-selector__text"},s0t={class:"bootstrap-styles d-flex justify-content-center align-items-center rich-text-toolbar__icon"},a0t=Xe({__name:"ThemeSettingsSelector",props:{editor:{},theme:{},isAllowToEdit:{type:Boolean},initialThemeName:{},deps:{}},setup(t){const e=t,n=oM.name,o=Vt({isOpened:!1}),r={tooltip:voe({localeKey:e.deps.localeKey}).tooltip,settingLabels:voe({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",r0t,[_("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",i0t,Gt(l.value),1),_("i",s0t,[ie(Dxe)])],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(t0t,{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(Jm),()=>o.isOpened=!1],[z($o),{title:r.tooltip,placement:"top"}]])}}),l0t=ot(a0t,[["__scopeId","data-v-088df711"]]),u0t={},c0t={xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"};function d0t(t,e){return O(),J("svg",c0t,[...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 h0t=ot(u0t,[["render",d0t]]),m0t={tooltip:"Line height"},f0t={tooltip:"Высота строки"},p0t=Xn({en:m0t,ru:f0t}),g0t=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):us({fontFamily:e,themeFontSettings:n[s],themeColor:CM({themeName:s,themeFontColors:o})}).lineHeight},C0t={class:"bootstrap-styles rich-text-toolbar__line-height-editor position-relative rounded-2 py-1 px-3 d-flex"},y0t={class:"bootstrap-styles d-flex justify-content-center rich-text-icon me-14"},b0t=["value"],v0t={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"}},T0t={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"}},x0t=Xe({__name:"LineHeightEditor",props:{editor:{},theme:{},deps:{}},setup(t){const e=t,n={tooltip:p0t({localeKey:e.deps.localeKey}).tooltip},o=q(()=>g0t({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",C0t,[_("i",y0t,[ie(h0t)]),_("input",{type:"number",class:"bootstrap-styles rich-text-toolbar__input-number rich-text__handler",value:o.value,onInput:s},null,40,b0t),_("div",v0t,[_("input",{type:"button",class:"bootstrap-styles position-absolute rich-text__handler",onClick:r}),ie(Axe)]),_("div",T0t,[_("input",{type:"button",class:"bootstrap-styles position-absolute rich-text__handler",onClick:i}),ie(Nxe)])])),[[z($o),{title:n.tooltip,placement:"top"}]])}}),F0t=ot(x0t,[["__scopeId","data-v-4e76ed1b"]]),w0t=["http:","https:","mailto:","tel:"],S0t={mounted(t,e){t.addEventListener("input",()=>{const n=t.value;let o=!1;try{const r=new URL(n);o=w0t.includes(r.protocol)}catch{o=!1}typeof e.value=="function"&&e.value(o)})}},Bxe={mounted(t,e){Toe(t,e)},updated(t,e){e.value&&Toe(t,e)}},Toe=(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)}})},k0t={},E0t={xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 14 14",fill:"none"};function _0t(t,e){return O(),J("svg",E0t,[...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 Lxe=ot(k0t,[["render",_0t]]),R0t={label:"Link",inputPlaceholder:"https://example.com",errorNotification:"The link must contain https://, http://, mailto:, tel:",applyButton:"Save",cancelButton:"Cancel"},D0t={label:"Ссылка",inputPlaceholder:"https://example.com",errorNotification:"Ссылка должна содержать https://, http://, mailto:, tel:",applyButton:"Сохранить",cancelButton:"Отмена"},x1=Xn({en:R0t,ru:D0t}),A0t={},N0t={width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function B0t(t,e){return O(),J("svg",N0t,[...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 $xe=ot(A0t,[["render",B0t]]),L0t={class:"bootstrap-styles bg-white border rounded-2 add-text-link-modal-window"},$0t={class:"bootstrap-styles fw-bold mb-5 px-11 mt-10 d-block text-start"},V0t={class:"bootstrap-styles px-11 mb-2"},M0t={class:"bootstrap-styles d-flex justify-content-center align-items-center me-1"},O0t=["placeholder","value"],I0t={class:"bootstrap-styles px-11 py-5 d-flex align-items-center justify-content-end border-top"},P0t=["disabled"],W0t=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:x1({localeKey:n.deps.localeKey}).label,inputPlaceholder:x1({localeKey:n.deps.localeKey}).inputPlaceholder,errorNotification:x1({localeKey:n.deps.localeKey}).errorNotification,applyButton:x1({localeKey:n.deps.localeKey}).applyButton,cancelButton:x1({localeKey:n.deps.localeKey}).cancelButton},s=e;return(a,l)=>Ot((O(),J("div",L0t,[_("label",$0t,Gt(i.label),1),_("div",V0t,[_("div",{class:$e(["bootstrap-styles bg-color-input border rounded-2 py-1 px-3 d-flex mb-14",{"border-danger":!o.isValid}])},[_("i",M0t,[ie(Lxe)]),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,O0t),[[z(S0t),u=>o.isValid=u],[z(Bxe),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",I0t,[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]=Ho(()=>s("onRemoved"),["stop"]))},[_("i",null,[ie($xe)])])):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,P0t)])])),[[z(Jm),()=>s("onClosed")]])}}),H0t=ot(W0t,[["__scopeId","data-v-dd4e68e8"]]),z0t={};function j0t(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 U0t=ot(z0t,[["render",j0t],["__scopeId","data-v-730bc16f"]]),K0t={tooltip:"Link"},q0t={tooltip:"Ссылка"},J0t=Xn({en:K0t,ru:q0t}),G0t={class:"bootstrap-styles d-flex rich-text-icon icon-hover"},Y0t=Xe({__name:"LinkEditor",props:{editor:{},isAllowToEdit:{type:Boolean},deps:{}},setup(t){const e=t,n={tooltip:J0t({localeKey:e.deps.localeKey}).tooltip},o=D8.name,r=dU.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",G0t,[e.editor.isActive(z(o))?(O(),Ze(U0t,{key:1})):(O(),Ze(Lxe,{key:0}))])],2)),[[z($o),{title:n.tooltip,placement:"top"}]]),i.isAddTextLinkModalWindowShown?(O(),Ze(H0t,{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))}}),X0t=ot(Y0t,[["__scopeId","data-v-6460a995"]]),Q0t={label:"URL",placeholder:"URL...",cancel:"Cancel",apply:"Save",removeTooltip:"Delete image"},Z0t={label:"URL",placeholder:"URL...",cancel:"Отмена",apply:"Сохранить",removeTooltip:"Удалить изображение"},F1=Xn({en:Q0t,ru:Z0t}),ebt={class:"bootstrap-styles bg-white border rounded-2 add-image-src-modal-window"},tbt={class:"bootstrap-styles fw-bold mb-5 px-11 mt-10 d-block text-start"},nbt={class:"bootstrap-styles px-11 mb-11"},obt=["placeholder","value"],rbt={class:"bootstrap-styles px-11 py-5 d-flex align-items-center justify-content-end border-top"},ibt=["disabled"],sbt=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:F1({localeKey:n.deps.localeKey}).label,placeholder:F1({localeKey:n.deps.localeKey}).placeholder,cancel:F1({localeKey:n.deps.localeKey}).cancel,apply:F1({localeKey:n.deps.localeKey}).apply,removeTooltip:F1({localeKey:n.deps.localeKey}).removeTooltip},i=Qye(l=>{kxe(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",ebt,[_("label",tbt,Gt(r.label),1),_("div",nbt,[_("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,obt),[[z(Bxe),void 0,void 0,{selectAll:!0}]])],2)]),_("div",rbt,[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]=Ho(()=>a("onRemoved"),["stop"]))},[_("i",null,[ie($xe)])])),[[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]=Ho(()=>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]=Ho(()=>s(),["stop"]))},Gt(r.apply),9,ibt)])])),[[z(Jm),()=>a("onClosed")]])}}),abt=ot(sbt,[["__scopeId","data-v-35966ae0"]]),lbt={},ubt={width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function cbt(t,e){return O(),J("svg",ubt,[...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 dbt=ot(lbt,[["render",cbt]]),hbt={tooltip:"Image",retinaLabel:"For retina screens"},mbt={tooltip:"Изображение",retinaLabel:"Для retina-экранов"},xoe=Xn({en:hbt,ru:mbt}),fbt=["checked"],pbt=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,fbt))}}),gbt=ot(pbt,[["__scopeId","data-v-6a8c2252"]]),Cbt={class:"bootstrap-styles rich-text-icon icon-hover d-flex"},ybt={key:0,class:"bootstrap-styles d-flex align-items-center ms-14 me-1"},bbt={for:"rich-text__retina-checkbox",class:"bootstrap-styles label__checkbox-input text-nowrap"},vbt=Xe({__name:"ImageEditor",props:{editor:{},deps:{}},setup(t){const e=t,n={tooltip:xoe({localeKey:e.deps.localeKey}).tooltip,retinaLabel:xoe({localeKey:e.deps.localeKey}).retinaLabel},o=Exe.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",Cbt,[ie(dbt)])],2)),[[z($o),{title:n.tooltip,placement:"top"}]]),e.editor.isActive(z(o))?(O(),J("div",ybt,[ie(gbt,{id:"rich-text__retina-checkbox",checked:e.editor.isActive(z(o),{isRetina:!0}),onChange:u[1]||(u[1]=()=>i())},null,8,["checked"]),_("label",bbt,Gt(n.retinaLabel),1)])):Ue("",!0),r.isAddImageSrcModalWindowShown?(O(),Ze(abt,{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))}}),Tbt=ot(vbt,[["__scopeId","data-v-cf315655"]]),xbt={},Fbt={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",Fbt,[...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 Sbt=ot(xbt,[["render",wbt]]),kbt={tooltip:"Bold"},Ebt={tooltip:"Полужирный"},_bt=Xn({en:kbt,ru:Ebt}),Rbt={class:"bootstrap-styles d-flex rich-text-icon icon-hover"},Dbt=Xe({__name:"FontWeightEditor",props:{editor:{},theme:{},isAllowToEdit:{type:Boolean},deps:{}},setup(t){const e=t,n={tooltip:_bt({localeKey:e.deps.localeKey}).tooltip},o=q(()=>IS({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",Rbt,[ie(Sbt)])],2)),[[z($o),{title:n.tooltip,placement:"top"}]])}}),Abt=ot(Dbt,[["__scopeId","data-v-0e22dbf6"]]),Nbt={},Bbt={xmlns:"http://www.w3.org/2000/svg",width:"17",height:"16",viewBox:"0 0 17 16",fill:"none"};function Lbt(t,e){return O(),J("svg",Bbt,[...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 $bt=ot(Nbt,[["render",Lbt]]),Vbt={tooltip:"Strikethrough"},Mbt={tooltip:"Зачеркнутый"},Obt=Xn({en:Vbt,ru:Mbt}),Ibt={class:"bootstrap-styles d-flex rich-text-icon icon-hover"},Pbt=Xe({__name:"LineThroughEditor",props:{editor:{},isAllowToEdit:{type:Boolean},theme:{},deps:{}},setup(t){const e=t,n={tooltip:Obt({localeKey:e.deps.localeKey}).tooltip},o=q(()=>IS({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",Ibt,[ie($bt)])],2)),[[z($o),{title:n.tooltip,placement:"top"}]])}}),Wbt=ot(Pbt,[["__scopeId","data-v-fffc32ef"]]),Hbt={},zbt={xmlns:"http://www.w3.org/2000/svg",width:"17",height:"16",viewBox:"0 0 17 16",fill:"none"};function jbt(t,e){return O(),J("svg",zbt,[...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 Ubt=ot(Hbt,[["render",jbt]]),Kbt={tooltip:"Underline"},qbt={tooltip:"Подчеркнутый"},Jbt=Xn({en:Kbt,ru:qbt}),Gbt={class:"bootstrap-styles d-flex rich-text-icon icon-hover"},Ybt=Xe({__name:"UnderlineEditor",props:{editor:{},isAllowToEdit:{type:Boolean},theme:{},deps:{}},setup(t){const e=t,n={tooltip:Jbt({localeKey:e.deps.localeKey}).tooltip},o=q(()=>IS({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",Gbt,[ie(Ubt)])],2)),[[z($o),{title:n.tooltip,placement:"top"}]])}}),Xbt=ot(Ybt,[["__scopeId","data-v-ae63be68"]]),Qbt={},Zbt={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",Zbt,[...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 tvt=ot(Qbt,[["render",evt]]),nvt={tooltip:"Italic"},ovt={tooltip:"Курсив"},rvt=Xn({en:nvt,ru:ovt}),ivt={class:"bootstrap-styles d-flex rich-text-icon icon-hover"},svt=Xe({__name:"FontStyleEditor",props:{editor:{},isAllowToEdit:{type:Boolean},theme:{},deps:{}},setup(t){const e=t,n={tooltip:rvt({localeKey:e.deps.localeKey}).tooltip},o=q(()=>IS({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",ivt,[ie(tvt)])],2)),[[z($o),{title:n.tooltip,placement:"top"}]])}}),avt=ot(svt,[["__scopeId","data-v-ac6b2276"]]),lvt={},uvt={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",uvt,[...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 dvt=ot(lvt,[["render",cvt]]),hvt={tooltip:"Uppercase"},mvt={tooltip:"Заглавные"},fvt=Xn({en:hvt,ru:mvt}),pvt={class:"bootstrap-styles d-flex rich-text-icon icon-hover"},gvt=Xe({__name:"TextTransformEditor",props:{editor:{},isAllowToEdit:{type:Boolean},theme:{},deps:{}},setup(t){const e=t,n={tooltip:fvt({localeKey:e.deps.localeKey}).tooltip},o=Txe.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",pvt,[ie(dvt)])],2)),[[z($o),{title:n.tooltip,placement:"top"}]])}}),Cvt=ot(gvt,[["__scopeId","data-v-20dea8b8"]]),yvt={},bvt={width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function vvt(t,e){return O(),J("svg",bvt,[...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 Tvt=ot(yvt,[["render",vvt]]),xvt={tooltip:"Unsubscribe link"},Fvt={tooltip:"Ссылка на отписку"},wvt=Xn({en:xvt,ru:Fvt}),Svt={class:"bootstrap-styles d-flex rich-text-icon icon-hover"},kvt=Xe({__name:"UnsubscribeLinkEditor",props:{editor:{},isAllowToEdit:{type:Boolean},theme:{},deps:{}},setup(t){const e=t,n={tooltip:wvt({localeKey:e.deps.localeKey}).tooltip},o=dU.name,r=D8.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",Svt,[ie(Tvt)])],2)),[[z($o),{title:n.tooltip,placement:"top"}]])}}),Evt=ot(kvt,[["__scopeId","data-v-9ee287d3"]]),_vt={},Rvt={xmlns:"http://www.w3.org/2000/svg",width:"17",height:"16",viewBox:"0 0 17 16",fill:"none"};function Dvt(t,e){return O(),J("svg",Rvt,[...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 Avt=ot(_vt,[["render",Dvt]]),Nvt={tooltip:"Bullet list"},Bvt={tooltip:"Маркированный список"},Lvt=Xn({en:Nvt,ru:Bvt}),$vt={class:"bootstrap-styles d-flex rich-text-icon icon-hover"},Vvt=Xe({__name:"BulletListEditor",props:{editor:{},deps:{}},setup(t){const e=t,n={tooltip:Lvt({localeKey:e.deps.localeKey}).tooltip},o=A8.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",$vt,[ie(Avt)])],2)),[[z($o),{title:n.tooltip,placement:"top"}]])}}),Mvt=ot(Vvt,[["__scopeId","data-v-c64632e3"]]),Ovt={},Ivt={xmlns:"http://www.w3.org/2000/svg",width:"17",height:"16",viewBox:"0 0 17 16",fill:"none"};function Pvt(t,e){return O(),J("svg",Ivt,[...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 Wvt=ot(Ovt,[["render",Pvt]]),Hvt={tooltip:"Ordered list"},zvt={tooltip:"Нумерованный список"},jvt=Xn({en:Hvt,ru:zvt}),Uvt={class:"bootstrap-styles d-flex rich-text-icon icon-hover"},Kvt=Xe({__name:"OrderedListEditor",props:{editor:{},deps:{}},setup(t){const e=t,n={tooltip:jvt({localeKey:e.deps.localeKey}).tooltip},o=B8.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",Uvt,[ie(Wvt)])],2)),[[z($o),{title:n.tooltip,placement:"top"}]])}}),qvt=ot(Kvt,[["__scopeId","data-v-aaa43948"]]),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.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 Foe=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 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 woe=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 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 Soe=ot(e1t,[["render",n1t]]),o1t={},r1t={width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function i1t(t,e){return O(),J("svg",r1t,[...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 koe=ot(o1t,[["render",i1t]]),s1t={tooltip:"Vertical image alignment"},a1t={tooltip:"Выравнивание картинок по вертикали"},l1t=Xn({en:s1t,ru:a1t}),u1t={class:"bootstrap-styles vertical-align-editor dropdown rounded"},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={class:"bootstrap-styles rich-text-icon icon-hover d-flex justify-content-center align-items-center"},m1t={class:"bootstrap-styles rich-text-icon icon-hover d-flex justify-content-center align-items-center"},f1t={class:"bootstrap-styles rich-text-icon icon-hover d-flex justify-content-center align-items-center"},p1t=Xe({__name:"VerticalAlignEditor",props:{editor:{},currentVerticalAlign:{},deps:{}},emits:["onVerticalAlignVariantChanged"],setup(t,{emit:e}){const n=t,o={tooltip:l1t({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",u1t,[_("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",c1t,[n.currentVerticalAlign==="Baseline"?(O(),Ze(koe,{key:0})):Ue("",!0),n.currentVerticalAlign==="Top"?(O(),Ze(Foe,{key:1})):Ue("",!0),n.currentVerticalAlign==="Middle"?(O(),Ze(woe,{key:2})):Ue("",!0),n.currentVerticalAlign==="Bottom"?(O(),Ze(Soe,{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",d1t,[ie(koe)])],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",h1t,[ie(Foe)])],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",m1t,[ie(woe)])],2),_("button",{class:$e(["bootstrap-styles p-1 rounded rich-text-button",{active:n.currentVerticalAlign==="Bottom"}]),onClick:l[4]||(l[4]=()=>i("Bottom"))},[_("i",f1t,[ie(Soe)])],2)],2)])),[[z(Jm),()=>r.isOpened=!1],[z($o),{title:o.tooltip,placement:"top"}]])}}),g1t=ot(p1t,[["__scopeId","data-v-4a636ae8"]]),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.6665ZM2 12.6665H11.3333V13.9998H2V12.6665ZM2 9.33317H14V10.6665H2V9.33317ZM2 5.99984H11.3333V7.33317H2V5.99984Z",fill:"var(--black)"},null,-1)])])}const Eoe=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.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 _oe=ot(v1t,[["render",x1t]]),F1t={},w1t={xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"};function S1t(t,e){return O(),J("svg",w1t,[...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 Roe=ot(F1t,[["render",S1t]]),k1t={tooltip:"Alignment"},E1t={tooltip:"Выравнивание"},_1t=Xn({en:k1t,ru:E1t}),R1t={class:"bootstrap-styles content-align-editor dropdown rounded"},D1t={class:"bootstrap-styles rich-text-icon icon-hover d-flex justify-content-center align-items-center"},A1t={class:"bootstrap-styles rich-text-icon icon-hover d-flex justify-content-center align-items-center"},N1t={class:"bootstrap-styles rich-text-icon icon-hover d-flex justify-content-center align-items-center"},B1t={class:"bootstrap-styles rich-text-icon icon-hover d-flex justify-content-center align-items-center"},L1t=Xe({__name:"ContentAlignEditor",props:{editor:{},currentContentAlign:{},deps:{}},emits:["onContentAlignVariantChanged"],setup(t,{emit:e}){const n=t,o={tooltip:_1t({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",R1t,[_("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",D1t,[n.currentContentAlign==="Left"?(O(),Ze(Eoe,{key:0})):Ue("",!0),n.currentContentAlign==="Center"?(O(),Ze(_oe,{key:1})):Ue("",!0),n.currentContentAlign==="Right"?(O(),Ze(Roe,{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",A1t,[ie(Eoe)])],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",N1t,[ie(_oe)])],2),_("button",{class:$e(["bootstrap-styles p-1 rounded rich-text-button",{active:n.currentContentAlign==="Right"}]),onClick:l[3]||(l[3]=()=>i("Right"))},[_("i",B1t,[ie(Roe)])],2)],2)])),[[z(Jm),()=>r.isOpened=!1],[z($o),{title:o.tooltip,placement:"top"}]])}}),$1t=ot(L1t,[["__scopeId","data-v-c8a15233"]]),V1t={class:"bootstrap-styles rich-text-toolbar d-flex align-items-center border gap-1 p-1"},M1t={key:2,class:"bootstrap-styles position-relative h-100"},O1t={key:3,class:"bootstrap-styles position-relative h-100"},I1t={key:4,class:"bootstrap-styles d-flex justify-content-center align-items-center"},P1t={key:7,class:"vl"},W1t={key:13,class:"vl"},H1t={key:16,class:"vl"},z1t=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",V1t,[i.value?Ue("",!0):(O(),Ze(l0t,{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(Nyt,{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",M1t,[ie(Zyt,{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",O1t,[ie(F0t,{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",I1t,[ie(vyt,{editor:n.editor,theme:n.theme,isAllowToEdit:r.value,deps:n.deps.colorPickerDeps},null,8,["editor","theme","isAllowToEdit","deps"])])),i.value?(O(),Ze(g1t,{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($1t,{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",P1t)),i.value?Ue("",!0):(O(),Ze(Abt,{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(avt,{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(Wbt,{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(Xbt,{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(Cvt,{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",W1t)),i.value?Ue("",!0):(O(),Ze(Mvt,{key:14,editor:n.editor,deps:n.deps.bulletListEditorDeps},null,8,["editor","deps"])),i.value?Ue("",!0):(O(),Ze(qvt,{key:15,editor:n.editor,deps:n.deps.orderedListEditorDeps},null,8,["editor","deps"])),i.value?Ue("",!0):(O(),J("div",H1t)),ie(X0t,{editor:n.editor,isAllowToEdit:r.value,deps:n.deps.linkEditorDeps},null,8,["editor","isAllowToEdit","deps"]),ie(Evt,{editor:n.editor,theme:n.theme,isAllowToEdit:r.value,deps:n.deps.unsubscribeLinkEditorDeps},null,8,["editor","theme","isAllowToEdit","deps"]),ie(Tbt,{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(MD(u),{editor:n.editor},null,8,["editor"]))]))),128))]))}}),j1t=ot(z1t,[["__scopeId","data-v-a50ebd1e"]]),U1t=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)}}}),K1t=t=>U1t(t.verticalAlign).Match({whenBaseline:()=>"baseline",whenTop:()=>"top",whenMiddle:()=>"middle",whenBottom:()=>"bottom"}),Doe="NormalText",q1t=Xe({__name:"RichText",props:{deps:{},theme:{},element:{},isSelected:{type:Boolean}},emits:["onRichTextUpdated","onRichTextRemoved","onElementClicked"],setup(t,{emit:e}){Wm(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:goe({localeKey:n.deps.localeKey}).removeWindowTitle,removeWindowDescription:goe({localeKey:n.deps.localeKey}).removeWindowDescription},i=pn(null),s=pn(null),{floatingStyles:a}=B0e(s,i,{placement:"top",whileElementsMounted:D0e,middleware:[A0e(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=pV(),c=q(()=>us({fontFamily:n.theme.FontFamily,themeFontSettings:n.theme.FontSettingsPresets.NormalText,themeColor:n.theme.Colors.NormalTextColor})),d=q(()=>{const y={...lU(c.value)};return{fontSize:y.fontSize,lineHeight:y.lineHeight,fontFamily:y.fontFamily,fontWeight:y.fontWeight,fontStyle:y.fontStyle,color:y.color}}),h=Aat({content:Coe(n.element.Text),extensions:[...oyt({dataSourceFieldNameDelegate:n.deps.dataSourceFieldNameDelegate,initialThemeName:Doe,themeColors:n.theme.Colors})],editable:o.isEditing,autofocus:"all",onUpdate:({editor:y})=>{if(!o.isEditing)return;const b=ryt({editor:y});g("onRichTextUpdated",{...n.element,Text:b})}}),m=()=>{h.value&&(h.value.chain().focus().undo().run(),o.isRemoveComponentWindowShown=!1)},f=q(()=>K1t({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(Coe(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(xb)({contentAlign:n.element.ContentAlign}),{...d.value,minHeight:n.element.MinHeight+"px"}]),onClick:b[4]||(b[4]=Ho(()=>{g("onElementClicked"),o.isEditing=!0,z(h)&&z(h).setEditable(!0)},["prevent"]))},[ie(z(Dat),{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(j1t,{key:0,ref_key:"richTextToolbarRef",ref:i,editor:z(h),deps:n.deps.richTextToolbarDeps,element:n.element,theme:n.theme,initialThemeName:Doe,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(f9,{to:"#app"},[o.isRemoveComponentWindowShown?(O(),Ze(bCt,{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":xu(()=>[J0(Gt(r.removeWindowDescription),1)]),_:1},8,["deps","headerText"])):Ue("",!0)]))],6)),[[z(Jm),{handler:()=>{o.isEditing=!1,z(h)&&z(h).setEditable(!1)},include:p}]])}}),J1t=ot(q1t,[["__scopeId","data-v-ed6b2a5a"]]),G1t=Xe({__name:"UnsubscribeLink",props:{theme:{},element:{}},emits:["onElementClicked"],setup(t,{emit:e}){const n=t,o=q(()=>{const i=uU({fontFamily:n.theme.FontFamily,fontStyle:n.element.Style,themeDefinedFontSettings:n.theme.FontSettingsPresets,themeColors:n.theme.Colors});return{...lU(i)}}),r=e;return(i,s)=>(O(),J("a",{href:"#",class:"cursor-pointer user-select-none",style:he([{margin:"0"},[o.value,z(xb)({contentAlign:n.element.ContentAlign})]]),onClick:s[0]||(s[0]=Ho(()=>r("onElementClicked"),["prevent"]))},Gt(n.element.Text),5))}}),Y1t=ot(G1t,[["__scopeId","data-v-68ed9754"]]),X1t=["src","alt"],Q1t={class:"bootstrap-styles position-absolute top-0 left-0",width:"100%",style:{"border-spacing":"0","border-collapse":"collapse",width:"100%",height:"100%"}},Z1t={key:0},eTt=["align"],tTt={style:{width:"auto","border-spacing":"0","border-collapse":"separate"}},nTt={align:"center",style:{width:"auto"}},oTt={key:0},rTt={key:1},iTt=["align"],sTt={style:{width:"auto","border-spacing":"0","border-collapse":"separate"}},aTt={align:"center",style:{width:"auto"}},lTt={key:2},uTt=["align"],cTt={style:{width:"auto","border-spacing":"0","border-collapse":"separate"}},dTt={align:"center",style:{width:"auto"}},hTt={key:3},mTt=["align"],fTt={style:{width:"auto","border-spacing":"0","border-collapse":"separate"}},pTt={align:"center",style:{width:"auto"}},gTt=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]=Ho(()=>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,X1t),[[z(pw),({width:l,height:u})=>{i("onImageSizeAdjusted",{Path:n.path,AdjustedHeight:u,AdjustedWidth:l}),o.isLoaded=!0}]]),_("table",Q1t,[_("tbody",null,[n.element.TopElementList.List.length>0&&n.element.TopElementList.Direction==="Vertical"?(O(),J("tr",Z1t,[_("td",{valign:"top",align:z($c)({containerAlign:n.element.TopElementList.ContentAlign})},[_("table",tTt,[_("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",nTt,[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",oTt,[_("td",{style:he({height:n.element.ElementsSpacerSize+"px",fontSize:n.element.ElementsSpacerSize+"px",lineHeight:n.element.ElementsSpacerSize+"px"})},"   ",4)])):Ue("",!0)],64))),128))])])],8,eTt)])):Ue("",!0),n.element.TopElementList.List.length>0&&n.element.TopElementList.Direction==="Horizontal"?(O(),J("tr",rTt,[_("td",{valign:"top",align:z($c)({containerAlign:n.element.TopElementList.ContentAlign})},[_("table",sTt,[_("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",aTt,[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,iTt)])):Ue("",!0),n.element.BottomElementList.List.length>0&&n.element.BottomElementList.Direction==="Vertical"?(O(),J("tr",lTt,[_("td",{valign:"bottom",align:z($c)({containerAlign:n.element.BottomElementList.ContentAlign})},[_("table",cTt,[_("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",dTt,[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,uTt)])):Ue("",!0),n.element.BottomElementList.List.length>0&&n.element.BottomElementList.Direction==="Horizontal"?(O(),J("tr",hTt,[_("td",{valign:"bottom",align:z($c)({containerAlign:n.element.BottomElementList.ContentAlign})},[_("table",fTt,[_("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",pTt,[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,mTt)])):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]=Ho(()=>{},["stop"]))},[n.element.Button!==void 0?(O(),Ze(Zgt,{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(Dgt,{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(Vgt,{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(Hgt,{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(nCt,{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(J1t,{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(Pgt,{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(kgt,{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(Y1t,{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(gTt,{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)]))}}),CTt=["align"],yTt=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}){Wm(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(MS)({borderCollapse:n.iteratedColumn.BorderCollapse})],{width:"100%","border-spacing":"0"}]),width:"100%"},[_("tbody",null,[_("tr",null,[_("td",{align:z($c)({containerAlign:n.iteratedColumn.ContainerAlign}),style:he([[z(pd)({border:n.iteratedColumn.Border,themeColors:n.theme.Colors}),{backgroundColor:z(Bl)({color:n.iteratedColumn.BgColor,themeColors:n.theme.Colors})},z(Pu)({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,CTt)])])],4)],4))}}),bTt=ot(yTt,[["__scopeId","data-v-4bdaa248"]]),vTt=["align"],TTt=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}){Wm(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(MS)({borderCollapse:n.iteratedColumnN21.BorderCollapse})],{width:"100%","border-spacing":"0"}]),width:"100%"},[_("tbody",null,[_("tr",null,[_("td",{align:z($c)({containerAlign:n.iteratedColumnN21.ContainerAlign}),style:he([[z(pd)({border:n.iteratedColumnN21.Border,themeColors:n.theme.Colors}),{backgroundColor:z(Bl)({color:n.iteratedColumnN21.BgColor,themeColors:n.theme.Colors})},z(Pu)({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,vTt)])])],4)],4))}}),xTt=ot(TTt,[["__scopeId","data-v-b46af162"]]),FTt=["align"],wTt=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}){Wm(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(MS)({borderCollapse:n.iteratedColumnN22.BorderCollapse})],{width:"100%","border-spacing":"0"}]),width:"100%"},[_("tbody",null,[_("tr",null,[_("td",{align:z($c)({containerAlign:n.iteratedColumnN22.ContainerAlign}),style:he([[z(pd)({border:n.iteratedColumnN22.Border,themeColors:n.theme.Colors}),{backgroundColor:z(Bl)({color:n.iteratedColumnN22.BgColor,themeColors:n.theme.Colors})},z(Pu)({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,FTt)])])],4)],4))}}),STt=ot(wTt,[["__scopeId","data-v-319c5209"]]),kTt={class:"iterated-column-container",style:{"border-spacing":"0","border-collapse":"collapse",width:"100%",margin:"0 auto"},width:"100%"},ETt={align:"center",style:{"font-size":"0"}},_Tt=Xe({__name:"IteratedColumnBodyRow",props:{deps:{},theme:{},iteratedColumnBodyRow:{},path:{},selectedElementPath:{},context:{},rowWidth:{}},emits:["onElementClicked","onImageOriginalSizeAdjusted","onImageSizeAdjusted","onElementUpdatedEvent","onElementRemoved"],setup(t,{emit:e}){Wm(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",kTt,[_("tbody",null,[_("tr",null,[_("td",ETt,[(O(!0),J(rt,null,$n(o.dataList,(c,d)=>(O(),J(rt,{key:d},[s.iteratedColumn(n.iteratedColumnBodyRow.IteratedColumn)?(O(),Ze(bTt,{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(LR)({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(xTt,{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(LR)({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(STt,{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(LR)({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))])])])]))}}),RTt=ot(_Tt,[["__scopeId","data-v-69ed8d34"]]),DTt={style:{"border-spacing":"0","border-collapse":"collapse",width:"100%",margin:"0 auto"}},ATt=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",DTt,[(O(!0),J(rt,null,$n(o.dataList,(a,l)=>(O(),J("tr",{key:l},[_("td",{style:he([z(OS)({paddings:n.iteratedBodyRow.Paddings,themeComponentPaddings:n.theme.ComponentPaddings,themeBodyPaddings:n.theme.BodyPaddings})])},[ie(Vxe,{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))]))}}),NTt=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()}}}),BTt=t=>NTt(t).Match({Top:()=>"start",Middle:()=>"center",Bottom:()=>"end",Baseline:()=>"baseline"}),LTt=tc,$Tt=t=>({JustifyWidth:{WidthInPixels:t}}),VTt=t=>({ShrinkToContentWidth:{WidthInPixels:t}}),MTt=Act,OTt=["align"],ITt=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}){Wm(l=>({acad954c:a.value,v1971599c:s.value,v72b8524e:i.value}));const n=t,o=e,r=l=>{LTt(n.multipleColumn.Width).Match({JustifyWidth:()=>M2.Some($Tt(l)),ShrinkToContentWidth:()=>M2.Some(VTt(l)),WidthInPercents:()=>M2.None}).map(u=>o("onColumnWidthAdjusted",{Path:n.path,Width:u}))},i=q(()=>MTt(n.multipleColumn.Width).Match({default:()=>"",WidthInPercents:l=>l.Value*n.containerWidth+"px"})),s=q(()=>BTt(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(MS)({borderCollapse:n.multipleColumn.BorderCollapse})]]),width:"100%"},[_("tbody",null,[_("tr",null,[_("td",{align:z($c)({containerAlign:n.multipleColumn.ContainerAlign}),style:he([[z(pd)({border:n.multipleColumn.Border,themeColors:n.theme.Colors}),z(Pu)({borderRadius:n.multipleColumn.BorderRadius,borderRadiusCard:n.theme.BorderRadiusCard,bodyBorderRadius:n.theme.BorderRadius,borderButtonRadius:n.theme.BorderRadiusButton,borderBannerRadius:n.theme.BorderRadiusBanner}),{backgroundColor:z(Bl)({color:n.multipleColumn.BgColor,themeColors:n.theme.Colors})},z(OS)({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,OTt)])])],4)],2)),[[z(pw),c=>r(c.width)]])}}),PTt=ot(ITt,[["__scopeId","data-v-bfa1869f"]]),WTt=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}){Wm(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(MS)({borderCollapse:n.multipleColumnBodyRow.BorderCollapse}),z(pd)({border:n.multipleColumnBodyRow.Border,themeColors:n.theme.Colors}),z(Pu)({borderRadius:n.multipleColumnBodyRow.BorderRadius,borderRadiusCard:n.theme.BorderRadiusCard,bodyBorderRadius:n.theme.BorderRadius,borderButtonRadius:n.theme.BorderRadiusButton,borderBannerRadius:n.theme.BorderRadiusBanner}),{backgroundColor:z(Bl)({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(Sgt)({containerAlign:n.multipleColumnBodyRow.ContainerAlign}),z(OS)({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(PTt,{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(LR)({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))}}),HTt=ot(WTt,[["__scopeId","data-v-c6ebdc94"]]),Vxe=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(HTt,{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(RTt,{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(ATt,{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)]))}}),zTt={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"},jTt={emptyEmailComponentText:"Товарная полка скрыта из-за недостатка товаров",emptyEmailComponentTooltip:"Товарная полка не будет отображаться у получателей письма пока в ней недостаточно товаров",requiredComponentNotification:"Без этого компонента письмо не будет отправлено"},nP=Xn({en:zTt,ru:jTt}),UTt={},KTt={width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function qTt(t,e){return O(),J("svg",KTt,[...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 JTt=ot(UTt,[["render",qTt]]),GTt={key:0},YTt={key:0,class:"is-required-notification"},XTt={class:"bootstrap-styles w-100 d-flex justify-content-center gap-5"},QTt=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:nP({localeKey:n.deps.localeKey}).emptyEmailComponentText,emptyEmailComponentTooltip:nP({localeKey:n.deps.localeKey}).emptyEmailComponentTooltip,requiredComponentNotification:nP({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",GTt,[n.emailComponent.IsRequired?(O(),J("div",YTt,[_("i",null,[ie(JTt)]),_("span",null,"   "+Gt(r.requiredComponentNotification),1)])):Ue("",!0),o.ifResult?(O(),J("table",{key:1,style:he([[{backgroundColor:z(Bl)({color:n.emailComponent.InnerBgColor,themeColors:n.theme.Colors})},z(Pu)({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(foe)({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(Vxe,{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}])},[J0(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(foe)({paddings:n.emailComponent.Paddings,themeComponentPaddings:n.theme.ComponentPaddings,themeBodyPaddings:n.theme.BodyPaddings,fullWidth:n.emailComponent.FullWidth}),{backgroundColor:z(Bl)({color:n.emailComponent.InnerBgColor,themeColors:n.theme.Colors})||"transparent"}])},[ie(z(Rne),{type:"text"}),_("div",XTt,[(O(),J(rt,null,$n(3,u=>ie(z(Rne),{key:u,type:"image, text, text, text, button",style:{width:"100%"}})),64))])],4))}}),Mxe=ot(QTt,[["__scopeId","data-v-7266764f"]]),ZTt={class:"scale-to-width-fit-component",style:{display:"inline-block","transform-origin":"left top"}},Oxe=Xe({__name:"ScaleToWidthFit",emits:["scaledElement"],setup(t,{emit:e}){const n=e;return(o,r)=>Ot((O(),J("div",ZTt,[q0(o.$slots,"default")])),[[z(pw),({width:i})=>{o.$el.style.transform=`scale(${o.$el.parentElement.clientWidth/i}`,n("scaledElement",o.$el)}]])}}),ext={title:"Preview",applyButton:"Select",cancelButton:"Cancel"},txt={title:"Предпросмотр",applyButton:"Выбрать",cancelButton:"Отмена"},oP=Xn({en:ext,ru:txt}),nxt={class:"email-template-preview__inner-padding scrollable"},oxt={class:"emailTemplate-border-top"},rxt={class:"emailTemplate-border-bottom"},ixt=Xe({__name:"EmailTemplatePreviewModalWindow",props:{template:{},deps:{}},emits:["favoriteTemplateSelected","close"],setup(t,{emit:e}){const n=t,o={title:oP({localeKey:n.deps.localeKey}).title,applyButton:oP({localeKey:n.deps.localeKey}).applyButton,cancelButton:oP({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(gxe,{headerText:o.title,class:"email-component__preview-modal-window",onClose:a[3]||(a[3]=()=>i("close"))},{body:xu(()=>[_("div",{style:he({backgroundColor:t.template.Theme.Colors.EmailBackgroundColor})},[ie(Oxe,{onScaledElement:a[0]||(a[0]=l=>r(l))},{default:xu(()=>[_("div",nxt,[_("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",oxt,[_("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(Mxe,{deps:t.deps.emailComponentDeps,theme:n.template.Theme,emailComponent:l,path:[],selectedElementPath:[]},null,8,["deps","theme","emailComponent"])]))),128)),_("div",rxt,[_("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":xu(()=>[_("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]=Ho(()=>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"]))}}),sxt=ot(ixt,[["__scopeId","data-v-a7898fb0"]]),axt={class:"favorite-template-select__item-wrapper"},lxt={class:"favorite-template-select__item bootstrap-styles border rounded-3"},uxt={class:"email-template-preview__inner-padding scrollable"},cxt={class:"emailTemplate-border-top"},dxt={class:"emailTemplate-border-bottom"},hxt=Xe({__name:"EmailTemplatePreviewTile",props:{deps:{},template:{},templateName:{}},emits:["favoriteTemplateSelected"],setup(t,{emit:e}){Wm(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:us({fontFamily:k,themeFontSettings:R.Title,themeColor:D.TitleColor}),Heading:us({fontFamily:k,themeFontSettings:R.Heading,themeColor:D.HeadingColor}),SubHeading:us({fontFamily:k,themeFontSettings:R.SubHeading,themeColor:D.SubHeadingColor}),LargeText:us({fontFamily:k,themeFontSettings:R.LargeText,themeColor:D.LargeTextColor}),NormalText:us({fontFamily:k,themeFontSettings:R.NormalText,themeColor:D.NormalTextColor}),DescriptionText:us({fontFamily:k,themeFontSettings:R.DescriptionText,themeColor:D.DescriptionTextColor}),Link:us({fontFamily:k,themeFontSettings:R.Link,themeColor:D.LinkColor}),Button:us({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"),S=e;return(k,R)=>(O(),J("div",axt,[_("div",lxt,[_("div",{class:"bootstrap-styles h-100",style:he({backgroundColor:n.template.Theme.Colors.EmailBackgroundColor}),onClick:R[1]||(R[1]=()=>{o.isPreviewComponentModalWindowShown=!0})},[ie(Oxe,{onScaledElement:R[0]||(R[0]=D=>r(D))},{default:xu(()=>[_("div",uxt,[_("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",cxt,[_("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(Mxe,{deps:n.deps.emailComponentDeps,theme:n.template.Theme,emailComponent:D,path:[],selectedElementPath:[]},null,8,["deps","theme","emailComponent"])]))),128)),_("div",dxt,[_("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(f9,{to:"#app"},[o.isPreviewComponentModalWindowShown?(O(),Ze(sxt,{key:0,template:n.template,deps:n.deps.emailTemplatePreviewModalWindowDeps,onClose:R[2]||(R[2]=()=>o.isPreviewComponentModalWindowShown=!1),onFavoriteTemplateSelected:R[3]||(R[3]=()=>S("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)]))}}),mxt=ot(hxt,[["__scopeId","data-v-66b13e3f"]]),fxt=t=>tc(t),pxt=t=>tc(t),gxt=t=>tc(t),Cxt=t=>tc(t),yxt=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),bxt=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),vxt=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),Txt=t=>{const e=yxt({numberExpressionEvaluator:t.numberExpressionEvaluator}),n=vxt({numberExpressionEvaluator:t.numberExpressionEvaluator}),o=bxt({numberExpressionEvaluator:t.numberExpressionEvaluator});return({numberPredicate:r,context:i})=>Cxt(r).Match({Equal:s=>e({predicate:s,context:i}),GreaterThan:s=>n({predicate:s,context:i}),LessThan:s=>o({predicate:s,context:i})})},xxt=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),Fxt=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)),wxt=t=>{const e=xxt({stringExpressionEvaluator:t.stringExpressionEvaluator}),n=Fxt({stringExpressionEvaluator:t.stringExpressionEvaluator});return({stringPredicate:o,context:r})=>gxt(o).Match({Contains:i=>n({predicate:i,context:r}),Equal:i=>e({predicate:i,context:r})})},Sxt=t=>{const e=Txt({numberExpressionEvaluator:t.numberExpressionEvaluator}),n=wxt({stringExpressionEvaluator:t.stringExpressionEvaluator});return({predicate:o,context:r})=>pxt(o).Match({NumberPredicate:i=>e({numberPredicate:i,context:r}),StringPredicate:i=>n({stringPredicate:i,context:r})})},Ixe=t=>{const e=Sxt({numberExpressionEvaluator:t.numberExpressionEvaluator,stringExpressionEvaluator:t.stringExpressionEvaluator}),n=({boolExpression:o,context:r})=>fxt(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},kxt=t=>Xe((e,n)=>()=>Gu(mxt,{template:t.template,templateName:t.templateName,deps:t.emailTemplatePreviewTileDeps,onFavoriteTemplateSelected:t.onFavoriteTemplateSelected})),Pxe=t=>t.reduce((e,n)=>(e[n.name]=n.value,e),{}),mC=t=>q1e({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:Pxe(t.parameters),DiscountPercentage:t.discountPercentage}),Ext=async t=>(await t.getPopularProductsHttpClient({body:{partnerId:t.partnerId,stockId:t.stockId}})).body.recommendations.map(e=>mC(e));var _xt=typeof global=="object"&&global&&global.Object===Object&&global,Rxt=typeof self=="object"&&self&&self.Object===Object&&self,Dxt=_xt||Rxt||Function("return this")(),VN=Dxt.Symbol;VN&&VN.toStringTag;VN&&VN.toStringTag;const{entries:Wxe,setPrototypeOf:Aoe,isFrozen:Axt,getPrototypeOf:Nxt,getOwnPropertyDescriptor:Bxt}=Object;let{freeze:Ri,seal:Pa,create:W5}=Object,{apply:H5,construct:z5}=typeof Reflect<"u"&&Reflect;Ri||(Ri=function(t){return t});Pa||(Pa=function(t){return t});H5||(H5=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)});z5||(z5=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 DE=Di(Array.prototype.forEach),Lxt=Di(Array.prototype.lastIndexOf),Noe=Di(Array.prototype.pop),w1=Di(Array.prototype.push),$xt=Di(Array.prototype.splice),VR=Di(String.prototype.toLowerCase),rP=Di(String.prototype.toString),iP=Di(String.prototype.match),S1=Di(String.prototype.replace),Vxt=Di(String.prototype.indexOf),Mxt=Di(String.prototype.trim),pl=Di(Object.prototype.hasOwnProperty),Kr=Di(RegExp.prototype.test),k1=Oxt(TypeError);function Di(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 H5(t,e,o)}}function Oxt(t){return function(){for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];return z5(t,n)}}function Wt(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:VR;Aoe&&Aoe(t,null);let o=e.length;for(;o--;){let r=e[o];if(typeof r=="string"){const i=n(r);i!==r&&(Axt(e)||(e[o]=i),r=i)}t[r]=!0}return t}function Ixt(t){for(let e=0;e<t.length;e++)pl(t,e)||(t[e]=null);return t}function Zl(t){const e=W5(null);for(const[n,o]of Wxe(t))pl(t,n)&&(Array.isArray(o)?e[n]=Ixt(o):o&&typeof o=="object"&&o.constructor===Object?e[n]=Zl(o):e[n]=o);return e}function E1(t,e){for(;t!==null;){const o=Bxt(t,e);if(o){if(o.get)return Di(o.get);if(typeof o.value=="function")return Di(o.value)}t=Nxt(t)}function n(){return null}return n}const Boe=Ri(["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"]),sP=Ri(["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"]),aP=Ri(["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"]),Pxt=Ri(["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"]),lP=Ri(["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"]),Wxt=Ri(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Loe=Ri(["#text"]),$oe=Ri(["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"]),uP=Ri(["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"]),Voe=Ri(["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"]),AE=Ri(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Hxt=Pa(/\{\{[\w\W]*|[\w\W]*\}\}/gm),zxt=Pa(/<%[\w\W]*|[\w\W]*%>/gm),jxt=Pa(/\$\{[\w\W]*/gm),Uxt=Pa(/^data-[\-\w.\u00B7-\uFFFF]+$/),Kxt=Pa(/^aria-[\-\w]+$/),Hxe=Pa(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),qxt=Pa(/^(?:\w+script|data):/i),Jxt=Pa(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),zxe=Pa(/^html$/i),Gxt=Pa(/^[a-z][.\w]*(-[.\w]+)+$/i);var Moe=Object.freeze({__proto__:null,ARIA_ATTR:Kxt,ATTR_WHITESPACE:Jxt,CUSTOM_ELEMENT:Gxt,DATA_ATTR:Uxt,DOCTYPE_NAME:zxe,ERB_EXPR:zxt,IS_ALLOWED_URI:Hxe,IS_SCRIPT_OR_DATA:qxt,MUSTACHE_EXPR:Hxt,TMPLIT_EXPR:jxt});const _1={element:1,text:3,progressingInstruction:7,comment:8,document:9},Yxt=function(){return typeof window>"u"?null:window},Xxt=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}},Ooe=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function jxe(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Yxt();const e=C=>jxe(C);if(e.version="3.3.1",e.removed=[],!t||!t.document||t.document.nodeType!==_1.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=E1(f,"cloneNode"),g=E1(f,"remove"),y=E1(f,"nextSibling"),b=E1(f,"childNodes"),F=E1(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:S,createNodeIterator:k,createDocumentFragment:R,getElementsByTagName:D}=n,{importNode:V}=o;let E=Ooe();e.isSupported=typeof Wxe=="function"&&typeof F=="function"&&S&&S.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}=Moe;let{IS_ALLOWED_URI:ve}=Moe,K=null;const Pe=Wt({},[...Boe,...sP,...aP,...lP,...Loe]);let Y=null;const He=Wt({},[...$oe,...uP,...Voe,...AE]);let P=Object.seal(W5(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(W5(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let St=!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],rP);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"),ar=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=Zl(C),on=al.indexOf(C.PARSER_MEDIA_TYPE)===-1?ll:C.PARSER_MEDIA_TYPE,re=on==="application/xhtml+xml"?rP:VR,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,rP):il,sn=pl(C,"ADD_URI_SAFE_ATTR")?Wt(Zl(bn),C.ADD_URI_SAFE_ATTR,re):bn,cn=pl(C,"ADD_DATA_URI_TAGS")?Wt(Zl(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):Zl({}),ae=pl(C,"FORBID_ATTR")?Wt({},C.FORBID_ATTR,re):Zl({}),Te=pl(C,"USE_PROFILES")?C.USE_PROFILES:!1,St=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||Hxe,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&&ar(C.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(P.tagNameCheck=C.CUSTOM_ELEMENT_HANDLING.tagNameCheck),C.CUSTOM_ELEMENT_HANDLING&&ar(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({},Loe),Y=[],Te.html===!0&&(Wt(K,Boe),Wt(Y,$oe)),Te.svg===!0&&(Wt(K,sP),Wt(Y,uP),Wt(Y,AE)),Te.svgFilters===!0&&(Wt(K,aP),Wt(Y,uP),Wt(Y,AE)),Te.mathMl===!0&&(Wt(K,lP),Wt(Y,Voe),Wt(Y,AE))),C.ADD_TAGS&&(typeof C.ADD_TAGS=="function"?ne.tagCheck=C.ADD_TAGS:(K===Pe&&(K=Zl(K)),Wt(K,C.ADD_TAGS,re))),C.ADD_ATTR&&(typeof C.ADD_ATTR=="function"?ne.attributeCheck=C.ADD_ATTR:(Y===He&&(Y=Zl(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=Zl(le)),Wt(le,C.FORBID_CONTENTS,re)),C.ADD_FORBID_CONTENTS&&(le===ze&&(le=Zl(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 k1('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof C.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw k1('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');v=C.TRUSTED_TYPES_POLICY,T=v.createHTML("")}else v===void 0&&(v=Xxt(m,r)),v!==null&&typeof T=="string"&&(T=v.createHTML(""));Ri&&Ri(C),Rt=C}},lr=Wt({},[...sP,...aP,...Pxt]),ur=Wt({},[...lP,...Wxt]),cl=function(C){let x=F(C);(!x||!x.tagName)&&(x={namespaceURI:ft,tagName:"template"});const w=VR(C.tagName),W=VR(x.tagName);return Nn[C.namespaceURI]?C.namespaceURI===hn?x.namespaceURI===Ke?w==="svg":x.namespaceURI===nn?w==="svg"&&(W==="annotation-xml"||gn[W]):!!lr[w]:C.namespaceURI===nn?x.namespaceURI===Ke?w==="math":x.namespaceURI===hn?w==="math"&&Cn[W]:!!ur[w]:C.namespaceURI===Ke?x.namespaceURI===hn&&!Cn[W]||x.namespaceURI===nn&&!gn[W]?!1:!ur[w]&&(sl[w]||!lr[w]):!!(on==="application/xhtml+xml"&&Nn[C.namespaceURI]):!1},gt=function(C){w1(e.removed,{element:C});try{F(C).removeChild(C)}catch{g(C)}},wt=function(C,x){try{w1(e.removed,{attribute:x.getAttributeNode(C),from:x})}catch{w1(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{}},cr=function(C){let x=null,w=null;if(Z)C="<remove></remove>"+C;else{const ee=iP(C,/^[\r\n\t ]+/);w=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=S.createDocument(ft,"template",null);try{x.documentElement.innerHTML=An?T:W}catch{}}const se=x.body||x.documentElement;return C&&w&&se.insertBefore(n.createTextNode(w),se.childNodes[0]||null),ft===Ke?D.call(x,G?"html":"body")[0]:G?x.documentElement:se},dr=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")},hr=function(C){return typeof a=="function"&&C instanceof a};function it(C,x,w){DE(C,W=>{W.call(e,x,w,Rt)})}const mr=function(C){let x=null;if(it(E.beforeSanitizeElements,C,null),Zn(C))return gt(C),!0;const w=re(C.nodeName);if(it(E.uponSanitizeElement,C,{tagName:w,allowedTags:K}),j&&C.hasChildNodes()&&!hr(C.firstElementChild)&&Kr(/<[/\w!]/g,C.innerHTML)&&Kr(/<[/\w!]/g,C.textContent)||C.nodeType===_1.progressingInstruction||j&&C.nodeType===_1.comment&&Kr(/<[/\w]/g,C.data))return gt(C),!0;if(!(ne.tagCheck instanceof Function&&ne.tagCheck(w))&&(!K[w]||Ee[w])){if(!Ee[w]&&pr(w)&&(P.tagNameCheck instanceof RegExp&&Kr(P.tagNameCheck,w)||P.tagNameCheck instanceof Function&&P.tagNameCheck(w)))return!1;if(ue&&!le[w]){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)||(w==="noscript"||w==="noembed"||w==="noframes")&&Kr(/<\/no(script|embed|frames)/i,C.innerHTML)?(gt(C),!0):(L&&C.nodeType===_1.text&&(x=C.textContent,DE([A,N,I],W=>{x=S1(x,W," ")}),C.textContent!==x&&(w1(e.removed,{element:C.cloneNode()}),C.textContent=x)),it(E.afterSanitizeElements,C,null),!1)},fr=function(C,x,w){if(X&&(x==="id"||x==="name")&&(w in n||w in ul))return!1;if(!(Tt&&!ae[x]&&Kr(M,x))&&!(St&&Kr($,x))&&!(ne.attributeCheck instanceof Function&&ne.attributeCheck(x,C))){if(!Y[x]||ae[x]){if(!(pr(C)&&(P.tagNameCheck instanceof RegExp&&Kr(P.tagNameCheck,C)||P.tagNameCheck instanceof Function&&P.tagNameCheck(C))&&(P.attributeNameCheck instanceof RegExp&&Kr(P.attributeNameCheck,x)||P.attributeNameCheck instanceof Function&&P.attributeNameCheck(x,C))||x==="is"&&P.allowCustomizedBuiltInElements&&(P.tagNameCheck instanceof RegExp&&Kr(P.tagNameCheck,w)||P.tagNameCheck instanceof Function&&P.tagNameCheck(w))))return!1}else if(!sn[x]&&!Kr(ve,S1(w,ke,""))&&!((x==="src"||x==="xlink:href"||x==="href")&&C!=="script"&&Vxt(w,"data:")===0&&cn[C])&&!(xt&&!Kr(H,S1(w,ke,"")))&&w)return!1}return!0},pr=function(C){return C!=="annotation-xml"&&iP(C,Oe)},gr=function(C){it(E.beforeSanitizeAttributes,C,null);const{attributes:x}=C;if(!x||Zn(C))return;const w={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:Mxt(Bn);if(w.attrName=Qe,w.attrValue=_e,w.keepAttr=!0,w.forceKeepAttr=void 0,it(E.uponSanitizeAttribute,C,w),_e=w.attrValue,Ve&&(Qe==="id"||Qe==="name")&&(wt(ee,C),_e=ce+_e),j&&Kr(/((--!?|])>)|<\/(style|title|textarea)/i,_e)){wt(ee,C);continue}if(Qe==="attributename"&&iP(_e,"href")){wt(ee,C);continue}if(w.forceKeepAttr)continue;if(!w.keepAttr){wt(ee,C);continue}if(!B&&Kr(/\/>/i,_e)){wt(ee,C);continue}L&&DE([A,N,I],na=>{_e=S1(_e,na," ")});const mn=re(C.nodeName);if(!fr(mn,Qe,_e)){wt(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):Noe(e.removed)}catch{wt(ee,C)}}it(E.afterSanitizeAttributes,C,null)},dl=function C(x){let w=null;const W=dr(x);for(it(E.beforeSanitizeShadowDOM,x,null);w=W.nextNode();)it(E.uponSanitizeShadowNode,w,null),mr(w),gr(w),w.content instanceof i&&C(w.content);it(E.afterSanitizeShadowDOM,x,null)};return e.sanitize=function(C){let x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},w=null,W=null,se=null,ee=null;if(An=!C,An&&(C="<!-->"),typeof C!="string"&&!hr(C))if(typeof C.toString=="function"){if(C=C.toString(),typeof C!="string")throw k1("dirty is not a string, aborting")}else throw k1("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 k1("root node is forbidden and cannot be sanitized in-place")}}else if(C instanceof a)w=cr("<!---->"),W=w.ownerDocument.importNode(C,!0),W.nodeType===_1.element&&W.nodeName==="BODY"||W.nodeName==="HTML"?w=W:w.appendChild(W);else{if(!te&&!L&&!G&&C.indexOf("<")===-1)return v&&U?v.createHTML(C):C;if(w=cr(C),!w)return te?null:U?T:""}w&&Z&&gt(w.firstChild);const qe=dr(de?C:w);for(;se=qe.nextNode();)mr(se),gr(se),se.content instanceof i&&dl(se.content);if(de)return C;if(te){if(oe)for(ee=R.call(w.ownerDocument);w.firstChild;)ee.appendChild(w.firstChild);else ee=w;return(Y.shadowroot||Y.shadowrootmode)&&(ee=V.call(o,ee,!0)),ee}let je=G?w.outerHTML:w.innerHTML;return G&&K["!doctype"]&&w.ownerDocument&&w.ownerDocument.doctype&&w.ownerDocument.doctype.name&&Kr(zxe,w.ownerDocument.doctype.name)&&(je="<!DOCTYPE "+w.ownerDocument.doctype.name+`>
195
195
  `+je),L&&DE([A,N,I],Qe=>{je=S1(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,w){Rt||Qn({});const W=re(C),se=re(x);return fr(W,se,w)},e.addHook=function(C,x){typeof x=="function"&&w1(E[C],x)},e.removeHook=function(C,x){if(x!==void 0){const w=Lxt(E[C],x);return w===-1?void 0:$xt(E[C],w,1)[0]}return Noe(E[C])},e.removeHooks=function(C){E[C]=[]},e.removeAllHooks=function(){E=Ooe()},e}jxe();function br(t){this.content=t}br.prototype={constructor:br,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 br(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 br(n)},addToStart:function(t,e){return new br([t,e].concat(this.remove(t).content))},addToEnd:function(t,e){var n=this.remove(t).content.slice();return n.push(t,e),new br(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 br(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=br.from(t),t.size?new br(t.content.concat(this.subtract(t).content)):this},append:function(t){return t=br.from(t),t.size?new br(this.subtract(t).content.concat(t.content)):this},subtract:function(t){var e=this;t=br.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}};br.from=function(t){if(t instanceof br)return t;var e=[];if(t)for(var n in t)e.push(n,t[n]);return new br(e)};function Uxe(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=Uxe(r.content,i.content,n+1);if(s!=null)return s}n+=r.nodeSize}}function Kxe(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=Kxe(s.content,a.content,n-1,o-1);if(u)return u}n-=l,o-=l}}let We=class Qr{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 Qr(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 Qr(o,r)}cutByIndex(e,n){return e==n?Qr.empty:e==0&&n==this.content.length?this:new Qr(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 Qr(r,i)}addToStart(e){return new Qr([e].concat(this.content),this.size+e.nodeSize)}addToEnd(e){return new Qr(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 Uxe(this,e,n)}findDiffEnd(e,n=this.size,o=e.size){return Kxe(this,e,n,o)}findIndex(e){if(e==0)return NE(0,e);if(e==this.size)return NE(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?NE(n+1,i):NE(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 Qr.empty;if(!Array.isArray(n))throw new RangeError("Invalid input for Fragment.fromJSON");return new Qr(n.map(e.nodeFromJSON))}static fromArray(e){if(!e.length)return Qr.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 Qr(n||e,o)}static from(e){if(!e)return Qr.empty;if(e instanceof Qr)return e;if(Array.isArray(e))return this.fromArray(e);if(e.attrs)return new Qr([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 cP={index:0,offset:0};function NE(t,e){return cP.index=t,cP.offset=e,cP}function MN(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(!MN(t[o],e[o]))return!1}else{for(let o in t)if(!(o in e)||!MN(t[o],e[o]))return!1;for(let o in e)if(!(o in t))return!1}return!0}let Un=class j5{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&&MN(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 j5.none;if(e instanceof j5)return[e];let n=e.slice();return n.sort((o,r)=>o.type.rank-r.type.rank),n}};Un.none=[];let ON=class extends Error{},tt=class $y{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=Jxe(this.content,e+this.openStart,n);return o&&new $y(o,this.openStart,this.openEnd)}removeBetween(e,n){return new $y(qxe(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 $y.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 $y(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 $y(e,o,r)}};tt.empty=new tt(We.empty,0,0);function qxe(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(qxe(i.content,e-r-1,n-r-1)))}function Jxe(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=Jxe(s.content,e-i-1,n,s);return a&&t.replaceChild(r,s.copy(a))}function Qxt(t,e,n){if(n.openStart>t.depth)throw new ON("Inserted content deeper than insertion position");if(t.depth-n.openStart!=e.depth-n.openEnd)throw new ON("Inconsistent open depths");return Gxe(t,e,n,0)}function Gxe(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=Gxe(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 Hp(s,a.cut(0,t.parentOffset).append(n.content).append(a.cut(e.parentOffset)))}else{let{start:s,end:a}=Zxt(n,t);return Hp(i,Xxe(t,s,a,e,o))}else return Hp(i,IN(t,e,o))}function Yxe(t,e){if(!e.type.compatibleContent(t.type))throw new ON("Cannot join "+e.type.name+" onto "+t.type.name)}function U5(t,e,n){let o=t.node(n);return Yxe(o,e.node(n)),o}function Wp(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 Ax(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&&(Wp(t.nodeAfter,o),i++));for(let a=i;a<s;a++)Wp(r.child(a),o);e&&e.depth==n&&e.textOffset&&Wp(e.nodeBefore,o)}function Hp(t,e){return t.type.checkContent(e),t.copy(e)}function Xxe(t,e,n,o,r){let i=t.depth>r&&U5(t,e,r+1),s=o.depth>r&&U5(n,o,r+1),a=[];return Ax(null,t,r,a),i&&s&&e.index(r)==n.index(r)?(Yxe(i,s),Wp(Hp(i,Xxe(t,e,n,o,r+1)),a)):(i&&Wp(Hp(i,IN(t,e,r+1)),a),Ax(e,n,r,a),s&&Wp(Hp(s,IN(n,o,r+1)),a)),Ax(o,null,r,a),new We(a)}function IN(t,e,n){let o=[];if(Ax(null,t,n,o),t.depth>n){let r=U5(t,e,n+1);Wp(Hp(r,IN(t,e,n+1)),o)}return Ax(e,null,n,o),new We(o)}function Zxt(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 Ioe=class K5{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 PN(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 K5(n,o,i)}static resolveCached(e,n){let o=Poe.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 Poe.set(e,o=new eFt);let r=o.elts[o.i]=K5.resolve(e,n);return o.i=(o.i+1)%tFt,r}};class eFt{constructor(){this.elts=[],this.i=0}}const tFt=12,Poe=new WeakMap;let PN=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 nFt=Object.create(null);let zp=class q5{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&&MN(this.attrs,n||e.defaultAttrs||nFt)&&Un.sameSet(this.marks,o||Un.none)}copy(e=null){return e==this.content?this:new q5(this.type,this.attrs,e,this.marks)}mark(e){return e==this.marks?this:new q5(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 Qxt(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 Ioe.resolveCached(this,e)}resolveNoCache(e){return Ioe.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()+")"),Qxe(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}};zp.prototype.text=void 0;let oFt=class J5 extends zp{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):Qxe(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 J5(this.type,this.attrs,this.text,e)}withText(e){return e==this.text?this:new J5(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 Qxe(t,e){for(let n=t.length-1;n>=0;n--)e=t[n].type.name+"("+e+")";return e}let gw=class Zxe{constructor(e){this.validEnd=e,this.next=[],this.wrapCache=[]}static parse(e,n){let o=new rFt(e,n);if(o.next==null)return Zxe.empty;let r=eFe(o);o.next&&o.err("Unexpected trailing text");let i=dFt(cFt(r));return hFt(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
  `)}};gw.empty=new gw(!0);class rFt{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 eFe(t){let e=[];do e.push(iFt(t));while(t.eat("|"));return e.length==1?e[0]:{type:"choice",exprs:e}}function iFt(t){let e=[];do e.push(sFt(t));while(t.next&&t.next!=")"&&t.next!="|");return e.length==1?e[0]:{type:"seq",exprs:e}}function sFt(t){let e=uFt(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=aFt(t,e);else break;return e}function Woe(t){/\D/.test(t.next)&&t.err("Expected number, got '"+t.next+"'");let e=Number(t.next);return t.pos++,e}function aFt(t,e){let n=Woe(t),o=n;return t.eat(",")&&(t.next!="}"?o=Woe(t):o=-1),t.eat("}")||t.err("Unclosed braced range"),{type:"range",min:n,max:o,expr:e}}function lFt(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 uFt(t){if(t.eat("(")){let e=eFe(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=lFt(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 cFt(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 tFe(t,e){return e-t}function Hoe(t,e){let n=[];return o(e),n.sort(tFe);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 dFt(t){let e=Object.create(null);return n(Hoe(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]);Hoe(t,l).forEach(c=>{u||r.push([a,u=[]]),u.indexOf(c)==-1&&u.push(c)})})});let i=e[o.join(",")]=new gw(o.indexOf(t.length-1)>-1);for(let s=0;s<r.length;s++){let a=r[s][1].sort(tFe);i.next.push({type:r[s][0],next:e[a.join(",")]||n(a)})}return i}}function hFt(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 nFe(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 oFe(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 rFe(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 iFe(t,e){let n=Object.create(null);if(e)for(let o in e)n[o]=new fFt(t,o,e[o]);return n}let zoe=class sFe{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=iFe(e,o.attrs),this.defaultAttrs=nFe(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==gw.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:oFe(this.attrs,e)}create(e=null,n,o){if(this.isText)throw new Error("NodeType.create can't construct text nodes");return new zp(this,this.computeAttrs(e),We.from(n),Un.setFrom(o))}createChecked(e=null,n,o){return n=We.from(n),this.checkContent(n),new zp(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 zp(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){rFe(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 sFe(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 mFt(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 fFt{constructor(e,n,o){this.hasDefault=Object.prototype.hasOwnProperty.call(o,"default"),this.default=o.default,this.validate=typeof o.validate=="string"?mFt(e,n,o.validate):o.validate}get isRequired(){return!this.hasDefault}}let aFe=class lFe{constructor(e,n,o,r){this.name=e,this.rank=n,this.schema=o,this.spec=r,this.attrs=iFe(e,r.attrs),this.excluded=null;let i=nFe(this.attrs);this.instance=i?new Un(this,i):null}create(e=null){return!e&&this.instance?this.instance:new Un(this,oFe(this.attrs,e))}static compile(e,n){let o=Object.create(null),r=0;return e.forEach((i,s)=>o[i]=new lFe(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){rFe(this.attrs,e,"mark",this.name)}excludes(e){return this.excluded.indexOf(e)>-1}};class pFt{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=br.from(e.nodes),n.marks=br.from(e.marks||{}),this.nodes=zoe.compile(this.spec.nodes,this),this.marks=aFe.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]=gw.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?joe(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==""?[]:joe(this,s.split(" "))}this.nodeFromJSON=r=>zp.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 zoe){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 oFt(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 joe(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 gFt(t){return t.tag!=null}function CFt(t){return t.style!=null}class jp{constructor(e,n){this.schema=e,this.rules=n,this.tags=[],this.styles=[];let o=this.matchedStyles=[];n.forEach(r=>{if(gFt(r))this.tags.push(r);else if(CFt(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 Koe(this,n,!1);return o.addAll(e,Un.none,n.from,n.to),o.finish()}parseSlice(e,n={}){let o=new Koe(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(vFt(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=qoe(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=qoe(s)),s.node||s.ignore||s.mark||(s.node=r)})}return n}static fromSchema(e){return e.cached.domParser||(e.cached.domParser=new jp(e,jp.schemaRules(e)))}}const uFe={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},yFt={head:!0,noscript:!0,object:!0,script:!0,style:!0,title:!0},cFe={ol:!0,ul:!0},Cw=1,G5=2,Nx=4;function Uoe(t,e,n){return e!=null?(e?Cw:0)|(e==="full"?G5:0):t&&t.whitespace=="pre"?Cw|G5:n&~Nx}let BE=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&Nx?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&Cw)){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&&!uFe.hasOwnProperty(e.parentNode.nodeName.toLowerCase())}},Koe=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=Uoe(null,n.preserveWhitespace,0)|(o?Nx:0);r?i=new BE(r.type,r.attrs,Un.none,!0,n.topMatch||r.type.contentMatch,s):o?i=new BE(null,null,Un.none,!0,null,s):i=new BE(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&G5?"full":this.localPreserveWS||(r.options&Cw)>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;cFe.hasOwnProperty(s)&&this.parser.normalizeLists&&bFt(e);let l=this.options.ruleFromNode&&this.options.ruleFromNode(e)||(a=this.parser.matchTag(e,this,o));e:if(l?l.ignore:yFt.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(uFe.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 vde={},Tde={},xde={},Fde;function yO(){return Fde||(Fde=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})(xde)),xde}var wde;function Vnn(){return wde||(wde=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.isRight=t.isLeft=t.Right=t.Left=t.EitherType=void 0;const e=yO();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})(Tde)),Tde}var Sde={},kde;function Mnn(){return kde||(kde=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.isErr=t.isOk=t.Err=t.Ok=t.ResultType=void 0;const e=yO();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})(Sde)),Sde}var Ede;function Onn(){return Ede||(Ede=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=Vnn();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=yO();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=Mnn();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}})})(vde)),vde}Onn();function cy(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 _de(t){let e;return t!==null&&typeof t=="object"&&((e=Object.getPrototypeOf(t))===Object.prototype||e===null)}function nH(t,e){return e.every(n=>t.hasOwnProperty(n))}function Inn(t,e){const n={};for(const o of e)Object.prototype.hasOwnProperty.call(t,o)&&(n[o]=t[o]);return n}function Pnn(t){return t==null?[]:Array.isArray(t)?t:[t]}function Rde(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 Wnn(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 x$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(_de(i)&&_de(s)){o[r]=x$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 wF(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";if(wF.cache.has(t))return wF.cache.get(t);const e=t.replace(/[^a-z]/gi,"-").replace(/\B([A-Z])/g,"-$1").toLowerCase();return wF.cache.set(t,e),e}wF.cache=new Map;function Hnn(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 dy=2.4,Dde=.2126729,Ade=.7151522,Nde=.072175,znn=.55,jnn=.58,Unn=.57,Knn=.62,J_=.03,Bde=1.45,qnn=5e-4,Jnn=1.25,Gnn=1.25,Lde=.078,$de=12.82051282051282,G_=.06,Vde=.001;function Mde(t,e){const n=(t.r/255)**dy,o=(t.g/255)**dy,r=(t.b/255)**dy,i=(e.r/255)**dy,s=(e.g/255)**dy,a=(e.b/255)**dy;let l=n*Dde+o*Ade+r*Nde,u=i*Dde+s*Ade+a*Nde;if(l<=J_&&(l+=(J_-l)**Bde),u<=J_&&(u+=(J_-u)**Bde),Math.abs(u-l)<qnn)return 0;let c;if(u>l){const d=(u**znn-l**jnn)*Jnn;c=d<Vde?0:d<Lde?d-d*$de*G_:d-G_}else{const d=(u**Knn-l**Unn)*Gnn;c=d>-Vde?0:d>-Lde?d-d*$de*G_:d+G_}return c*100}function Bj(t){return!!t&&/^(#|var\(--|(rgb|hsl)a?\()/.test(t)}function Ynn(t){return Bj(t)&&!/^((rgb|hsl)a?\()?var\(--/.test(t)}const Ode=/^(?<fn>(?:rgb|hsl)a?)\((?<values>.+)\)/,Xnn={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)=>Ide({h:t,s:e,l:n,a:o}),hsla:(t,e,n,o)=>Ide({h:t,s:e,l:n,a:o}),hsv:(t,e,n,o)=>nS({h:t,s:e,v:n,a:o}),hsva:(t,e,n,o)=>nS({h:t,s:e,v:n,a:o})};function jT(t){if(typeof t=="number")return{r:(t&16711680)>>16,g:(t&65280)>>8,b:t&255};if(typeof t=="string"&&Ode.test(t)){const{groups:e}=t.match(Ode),{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 Xnn[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,Qnn(e)}else if(typeof t=="object"){if(nH(t,["r","g","b"]))return t;if(nH(t,["h","s","l"]))return nS(F$e(t));if(nH(t,["h","s","v"]))return nS(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 nS(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 Ide(t){return nS(F$e(t))}function F$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 Qnn(t){t=Znn(t);let[e,n,o,r]=Wnn(t,2).map(i=>parseInt(i,16));return r=r===void 0?r:r/255,{r:e,g:n,b:o,a:r}}function Znn(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=Rde(Rde(t,6),8,"F")),t}function eon(t){const e=Math.abs(Mde(jT(0),jT(t)));return Math.abs(Mde(jT(16777215),jT(t)))>Math.min(e,50)?"#fff":"#000"}function fk(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 bO(t,e){const n=as();if(!n)throw new Error(`[Vuetify] ${t} must be called from inside a setup function`);return n}function ton(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:bO("injectSelf");const{provides:n}=e;if(n&&t in n)return n[t]}const Lj=Symbol.for("vuetify:defaults");function w$e(){const t=ln(Lj);if(!t)throw new Error("[Vuetify] Could not find defaults instance");return t}function non(t,e){return t.props&&(typeof t.props[e]<"u"||typeof t.props[wF(e)]<"u")}function oon(){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]:w$e();const o=bO("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(non(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=wn();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=ton(Lj,o);vo(Lj,q(()=>s.value?x$e(l?.value??{},s.value):l?.value))}return{props:i,provideSubDefaults:a}}function ron(t){if(t._setup=t._setup??t.setup,!t.name)return t;if(t._setup){t.props=fk(t.props??{},t.name)();const e=Object.keys(t.props).filter(n=>n!=="class"&&n!=="style");t.filterProps=function(n){return Inn(n,e)},t.props._as=String,t.setup=function(n,o){const r=w$e();if(!r.value)return t._setup(n,o);const{props:i,provideSubDefaults:s}=oon(n,n._as??t.name,r),a=t._setup(i,o);return s(),a}}return t}function ion(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return e=>(t?ron:Xe)(e)}function son(t){const e=bO("useRender");e.render=t}function aon(t){return Hnn(()=>{const{class:e,style:n}=uon(t);return{colorClasses:e,colorStyles:n}})}function lon(t){const{colorClasses:e,colorStyles:n}=aon(()=>({background:Zo(t)}));return{backgroundColorClasses:e,backgroundColorStyles:n}}function uon(t){const e=Zo(t),n=[],o={};if(e.background)if(Bj(e.background)){if(o.backgroundColor=e.background,!e.text&&Ynn(e.background)){const r=jT(e.background);if(r.a==null||r.a===1){const i=eon(r);o.color=i,o.caretColor=i}}}else n.push(`bg-${e.background}`);return e.text&&(Bj(e.text)?(o.color=e.text,o.caretColor=e.text):n.push(`text-${e.text}`)),{class:n,style:o}}const con=fk({height:[Number,String],maxHeight:[Number,String],maxWidth:[Number,String],minHeight:[Number,String],minWidth:[Number,String],width:[Number,String]},"dimension");function don(t){return{dimensionStyles:q(()=>{const e={},n=cy(t.height),o=cy(t.maxHeight),r=cy(t.maxWidth),i=cy(t.minHeight),s=cy(t.minWidth),a=cy(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 hon=fk({elevation:{type:[Number,String],validator(t){const e=parseInt(t);return!isNaN(e)&&e>=0&&e<=24}}},"elevation");function mon(t){return{elevationClasses:Me(()=>{const e=vn(t)?t.value:t.elevation;return e==null?[]:[`elevation-${e}`]})}}const fon=Symbol.for("vuetify:locale");function pon(){const t=ln(fon);if(!t)throw new Error("[Vuetify] Could not find injected locale instance");return t}const Pde=Symbol.for("vuetify:theme"),gon=fk({theme:String},"theme");function Con(t){bO("provideTheme");const e=ln(Pde,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(Pde,i),i}const yon={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 bon(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 Wde(t){const[e,n]=t.split("@");return Array.from({length:n}).map(()=>vO(e))}function vO(t){let e=[];if(!t)return e;const n=yon[t];if(t!==n){if(t.includes(","))return Hde(t);if(t.includes("@"))return Wde(t);n.includes(",")?e=Hde(n):n.includes("@")?e=Wde(n):n&&e.push(vO(n))}return[bon(t,e)]}function Hde(t){return t.replace(/\s/g,"").split(",").map(vO)}const von=fk({boilerplate:Boolean,color:String,loading:Boolean,loadingText:{type:String,default:"$vuetify.loading"},type:{type:[String,Array],default:"ossein"},...con(),...hon(),...gon()},"VSkeletonLoader");ion()({name:"VSkeletonLoader",inheritAttrs:!1,props:von(),setup(t,e){let{attrs:n,slots:o}=e;const{backgroundColorClasses:r,backgroundColorStyles:i}=lon(()=>t.color),{dimensionStyles:s}=don(t),{elevationClasses:a}=mon(t),{themeClasses:l}=Con(t),{t:u}=pon(),c=q(()=>vO(Pnn(t.type).join(",")));return son(()=>{const d=!o.default||t.loading,h=t.boilerplate||!d?{}:{ariaLive:"polite",ariaLabel:u(t.loadingText),role:"alert"};return d?_("div",Ar({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 vi="top",Xs="bottom",Qs="right",Ti="left",TO="auto",Jv=[vi,Xs,Qs,Ti],Yg="start",rv="end",S$e="clippingParents",nG="viewport",u0="popper",k$e="reference",$j=Jv.reduce(function(t,e){return t.concat([e+"-"+Yg,e+"-"+rv])},[]),oG=[].concat(Jv,[TO]).reduce(function(t,e){return t.concat([e,e+"-"+Yg,e+"-"+rv])},[]),E$e="beforeRead",_$e="read",R$e="afterRead",D$e="beforeMain",A$e="main",N$e="afterMain",B$e="beforeWrite",L$e="write",$$e="afterWrite",V$e=[E$e,_$e,R$e,D$e,A$e,N$e,B$e,L$e,$$e];function Ju(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 Xg(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 rG(t){if(typeof ShadowRoot>"u")return!1;var e=Zs(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}function Ton(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)||!Ju(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 xon(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)||!Ju(r)||(Object.assign(r.style,a),Object.keys(i).forEach(function(l){r.removeAttribute(l)}))})}}const iG={name:"applyStyles",enabled:!0,phase:"write",fn:Ton,effect:xon,requires:["computeStyles"]};function Du(t){return t.split("-")[0]}var Cg=Math.max,K$=Math.min,iv=Math.round;function Vj(){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 M$e(){return!/^((?!chrome|android).)*safari/i.test(Vj())}function sv(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&&iv(o.width)/t.offsetWidth||1,i=t.offsetHeight>0&&iv(o.height)/t.offsetHeight||1);var s=Xg(t)?Zs(t):window,a=s.visualViewport,l=!M$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 sG(t){var e=sv(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 O$e(t,e){var n=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(n&&rG(n)){var o=e;do{if(o&&t.isSameNode(o))return!0;o=o.parentNode||o.host}while(o)}return!1}function bd(t){return Zs(t).getComputedStyle(t)}function Fon(t){return["table","td","th"].indexOf(Ju(t))>=0}function wf(t){return((Xg(t)?t.ownerDocument:t.document)||window.document).documentElement}function xO(t){return Ju(t)==="html"?t:t.assignedSlot||t.parentNode||(rG(t)?t.host:null)||wf(t)}function zde(t){return!Aa(t)||bd(t).position==="fixed"?null:t.offsetParent}function won(t){var e=/firefox/i.test(Vj()),n=/Trident/i.test(Vj());if(n&&Aa(t)){var o=bd(t);if(o.position==="fixed")return null}var r=xO(t);for(rG(r)&&(r=r.host);Aa(r)&&["html","body"].indexOf(Ju(r))<0;){var i=bd(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 pk(t){for(var e=Zs(t),n=zde(t);n&&Fon(n)&&bd(n).position==="static";)n=zde(n);return n&&(Ju(n)==="html"||Ju(n)==="body"&&bd(n).position==="static")?e:n||won(t)||e}function aG(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function SF(t,e,n){return Cg(t,K$(e,n))}function Son(t,e,n){var o=SF(t,e,n);return o>n?n:o}function I$e(){return{top:0,right:0,bottom:0,left:0}}function P$e(t){return Object.assign({},I$e(),t)}function W$e(t,e){return e.reduce(function(n,o){return n[o]=t,n},{})}var kon=function(t,e){return t=typeof t=="function"?t(Object.assign({},e.rects,{placement:e.placement})):t,P$e(typeof t!="number"?t:W$e(t,Jv))};function Eon(t){var e,n=t.state,o=t.name,r=t.options,i=n.elements.arrow,s=n.modifiersData.popperOffsets,a=Du(n.placement),l=aG(a),u=[Ti,Qs].indexOf(a)>=0,c=u?"height":"width";if(!(!i||!s)){var d=kon(r.padding,n),h=sG(i),m=l==="y"?vi:Ti,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=pk(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],S=b/2-h[c]/2+F,k=SF(v,S,T),R=l;n.modifiersData[o]=(e={},e[R]=k,e.centerOffset=k-S,e)}}function _on(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)||O$e(e.elements.popper,r)&&(e.elements.arrow=r))}const H$e={name:"arrow",enabled:!0,phase:"main",fn:Eon,effect:_on,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function av(t){return t.split("-")[1]}var Ron={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Don(t,e){var n=t.x,o=t.y,r=e.devicePixelRatio||1;return{x:iv(n*r)/r||0,y:iv(o*r)/r||0}}function jde(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=Ti,v=vi,T=window;if(u){var S=pk(n),k="clientHeight",R="clientWidth";if(S===Zs(n)&&(S=wf(n),bd(S).position!=="static"&&a==="absolute"&&(k="scrollHeight",R="scrollWidth")),S=S,r===vi||(r===Ti||r===Qs)&&i===rv){v=Xs;var D=d&&S===T&&T.visualViewport?T.visualViewport.height:S[k];p-=D-o.height,p*=l?1:-1}if(r===Ti||(r===vi||r===Xs)&&i===rv){F=Qs;var V=d&&S===T&&T.visualViewport?T.visualViewport.width:S[R];m-=V-o.width,m*=l?1:-1}}var E=Object.assign({position:a},u&&Ron),A=c===!0?Don({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 Aon(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:Du(e.placement),variation:av(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,jde(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,jde(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 lG={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Aon,data:{}};var Y_={passive:!0};function Non(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,Y_)}),a&&l.addEventListener("resize",n.update,Y_),function(){i&&u.forEach(function(c){c.removeEventListener("scroll",n.update,Y_)}),a&&l.removeEventListener("resize",n.update,Y_)}}const uG={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Non,data:{}};var Bon={left:"right",right:"left",bottom:"top",top:"bottom"};function FD(t){return t.replace(/left|right|bottom|top/g,function(e){return Bon[e]})}var Lon={start:"end",end:"start"};function Ude(t){return t.replace(/start|end/g,function(e){return Lon[e]})}function cG(t){var e=Zs(t),n=e.pageXOffset,o=e.pageYOffset;return{scrollLeft:n,scrollTop:o}}function dG(t){return sv(wf(t)).left+cG(t).scrollLeft}function $on(t,e){var n=Zs(t),o=wf(t),r=n.visualViewport,i=o.clientWidth,s=o.clientHeight,a=0,l=0;if(r){i=r.width,s=r.height;var u=M$e();(u||!u&&e==="fixed")&&(a=r.offsetLeft,l=r.offsetTop)}return{width:i,height:s,x:a+dG(t),y:l}}function Von(t){var e,n=wf(t),o=cG(t),r=(e=t.ownerDocument)==null?void 0:e.body,i=Cg(n.scrollWidth,n.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),s=Cg(n.scrollHeight,n.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),a=-o.scrollLeft+dG(t),l=-o.scrollTop;return bd(r||n).direction==="rtl"&&(a+=Cg(n.clientWidth,r?r.clientWidth:0)-i),{width:i,height:s,x:a,y:l}}function hG(t){var e=bd(t),n=e.overflow,o=e.overflowX,r=e.overflowY;return/auto|scroll|overlay|hidden/.test(n+r+o)}function z$e(t){return["html","body","#document"].indexOf(Ju(t))>=0?t.ownerDocument.body:Aa(t)&&hG(t)?t:z$e(xO(t))}function kF(t,e){var n;e===void 0&&(e=[]);var o=z$e(t),r=o===((n=t.ownerDocument)==null?void 0:n.body),i=Zs(o),s=r?[i].concat(i.visualViewport||[],hG(o)?o:[]):o,a=e.concat(s);return r?a:a.concat(kF(xO(s)))}function Mj(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function Mon(t,e){var n=sv(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 Kde(t,e,n){return e===nG?Mj($on(t,n)):Xg(e)?Mon(e,n):Mj(Von(wf(t)))}function Oon(t){var e=kF(xO(t)),n=["absolute","fixed"].indexOf(bd(t).position)>=0,o=n&&Aa(t)?pk(t):t;return Xg(o)?e.filter(function(r){return Xg(r)&&O$e(r,o)&&Ju(r)!=="body"}):[]}function Ion(t,e,n,o){var r=e==="clippingParents"?Oon(t):[].concat(e),i=[].concat(r,[n]),s=i[0],a=i.reduce(function(l,u){var c=Kde(t,u,o);return l.top=Cg(c.top,l.top),l.right=K$(c.right,l.right),l.bottom=K$(c.bottom,l.bottom),l.left=Cg(c.left,l.left),l},Kde(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 j$e(t){var e=t.reference,n=t.element,o=t.placement,r=o?Du(o):null,i=o?av(o):null,s=e.x+e.width/2-n.width/2,a=e.y+e.height/2-n.height/2,l;switch(r){case vi: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 Ti:l={x:e.x-n.width,y:a};break;default:l={x:e.x,y:e.y}}var u=r?aG(r):null;if(u!=null){var c=u==="y"?"height":"width";switch(i){case Yg:l[u]=l[u]-(e[c]/2-n[c]/2);break;case rv:l[u]=l[u]+(e[c]/2-n[c]/2);break}}return l}function lv(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?S$e:a,u=n.rootBoundary,c=u===void 0?nG:u,d=n.elementContext,h=d===void 0?u0:d,m=n.altBoundary,f=m===void 0?!1:m,p=n.padding,g=p===void 0?0:p,y=P$e(typeof g!="number"?g:W$e(g,Jv)),b=h===u0?k$e:u0,F=t.rects.popper,v=t.elements[f?b:h],T=Ion(Xg(v)?v:v.contextElement||wf(t.elements.popper),l,c,s),S=sv(t.elements.reference),k=j$e({reference:S,element:F,placement:r}),R=Mj(Object.assign({},F,k)),D=h===u0?R:S,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===u0&&E){var A=E[r];Object.keys(V).forEach(function(N){var I=[Qs,Xs].indexOf(N)>=0?1:-1,M=[vi,Xs].indexOf(N)>=0?"y":"x";V[N]+=A[M]*I})}return V}function Pon(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?oG:l,c=av(o),d=c?a?$j:$j.filter(function(f){return av(f)===c}):Jv,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]=lv(t,{placement:p,boundary:r,rootBoundary:i,padding:s})[Du(p)],f},{});return Object.keys(m).sort(function(f,p){return m[f]-m[p]})}function Won(t){if(Du(t)===TO)return[];var e=FD(t);return[Ude(t),e,Ude(e)]}function Hon(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=Du(g),b=y===g,F=l||(b||!f?[FD(g)]:Won(g)),v=[g].concat(F).reduce(function(He,P){return He.concat(Du(P)===TO?Pon(e,{placement:P,boundary:c,rootBoundary:d,padding:u,flipVariations:f,allowedAutoPlacements:p}):P)},[]),T=e.rects.reference,S=e.rects.popper,k=new Map,R=!0,D=v[0],V=0;V<v.length;V++){var E=v[V],A=Du(E),N=av(E)===Yg,I=[vi,Xs].indexOf(A)>=0,M=I?"width":"height",$=lv(e,{placement:E,boundary:c,rootBoundary:d,altBoundary:h,padding:u}),H=I?N?Qs:Ti:N?Xs:vi;T[M]>S[M]&&(H=FD(H));var ke=FD(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 U$e={name:"flip",enabled:!0,phase:"main",fn:Hon,requiresIfExists:["offset"],data:{_skip:!1}};function qde(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 Jde(t){return[vi,Qs,Xs,Ti].some(function(e){return t[e]>=0})}function zon(t){var e=t.state,n=t.name,o=e.rects.reference,r=e.rects.popper,i=e.modifiersData.preventOverflow,s=lv(e,{elementContext:"reference"}),a=lv(e,{altBoundary:!0}),l=qde(s,o),u=qde(a,r,i),c=Jde(l),d=Jde(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 K$e={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:zon};function jon(t,e,n){var o=Du(t),r=[Ti,vi].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,[Ti,Qs].indexOf(o)>=0?{x:a,y:s}:{x:s,y:a}}function Uon(t){var e=t.state,n=t.options,o=t.name,r=n.offset,i=r===void 0?[0,0]:r,s=oG.reduce(function(c,d){return c[d]=jon(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 q$e={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Uon};function Kon(t){var e=t.state,n=t.name;e.modifiersData[n]=j$e({reference:e.rects.reference,element:e.rects.popper,placement:e.placement})}const mG={name:"popperOffsets",enabled:!0,phase:"read",fn:Kon,data:{}};function qon(t){return t==="x"?"y":"x"}function Jon(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=lv(e,{boundary:l,rootBoundary:u,padding:d,altBoundary:c}),y=Du(e.placement),b=av(e.placement),F=!b,v=aG(y),T=qon(v),S=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(S){if(i){var N,I=v==="y"?vi:Ti,M=v==="y"?Xs:Qs,$=v==="y"?"height":"width",H=S[v],ke=H+g[I],Oe=H-g[M],ve=m?-R[$]/2:0,K=b===Yg?k[$]:R[$],Pe=b===Yg?-R[$]:-k[$],Y=e.elements.arrow,He=m&&Y?sG(Y):{width:0,height:0},P=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:I$e(),Ee=P[I],ae=P[M],ne=SF(0,k[$],He[$]),St=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&&pk(e.elements.arrow),B=xt?v==="y"?xt.clientTop||0:xt.clientLeft||0:0,L=(N=E?.[v])!=null?N:0,j=H+St-L-B,G=H+Tt-L,Q=SF(m?K$(ke,j):ke,H,m?Cg(Oe,G):Oe);S[v]=Q,A[v]=Q-H}if(a){var Z,te=v==="x"?vi:Ti,oe=v==="x"?Xs:Qs,U=S[T],X=T==="y"?"height":"width",Ve=U+g[te],ce=U-g[oe],ue=[vi,Ti].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?Son(Te,U,le):SF(m?Te:Ve,U,m?le:ce);S[T]=ze,A[T]=ze-U}e.modifiersData[o]=A}}const J$e={name:"preventOverflow",enabled:!0,phase:"main",fn:Jon,requiresIfExists:["offset"]};function Gon(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function Yon(t){return t===Zs(t)||!Aa(t)?cG(t):Gon(t)}function Xon(t){var e=t.getBoundingClientRect(),n=iv(e.width)/t.offsetWidth||1,o=iv(e.height)/t.offsetHeight||1;return n!==1||o!==1}function Qon(t,e,n){n===void 0&&(n=!1);var o=Aa(e),r=Aa(e)&&Xon(e),i=wf(e),s=sv(t,r,n),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(o||!o&&!n)&&((Ju(e)!=="body"||hG(i))&&(a=Yon(e)),Aa(e)?(l=sv(e,!0),l.x+=e.clientLeft,l.y+=e.clientTop):i&&(l.x=dG(i))),{x:s.left+a.scrollLeft-l.x,y:s.top+a.scrollTop-l.y,width:s.width,height:s.height}}function Zon(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 ern(t){var e=Zon(t);return V$e.reduce(function(n,o){return n.concat(e.filter(function(r){return r.phase===o}))},[])}function trn(t){var e;return function(){return e||(e=new Promise(function(n){Promise.resolve().then(function(){e=void 0,n(t())})})),e}}function nrn(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 Gde={placement:"bottom",modifiers:[],strategy:"absolute"};function Yde(){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 FO(t){t===void 0&&(t={});var e=t,n=e.defaultModifiers,o=n===void 0?[]:n,r=e.defaultOptions,i=r===void 0?Gde:r;return function(s,a,l){l===void 0&&(l=i);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},Gde,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:Xg(s)?kF(s):s.contextElement?kF(s.contextElement):[],popper:kF(a)};var y=ern(nrn([].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(Yde(g,y)){u.rects={reference:Qon(g,pk(y),u.options.strategy==="fixed"),popper:sG(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,S=T===void 0?{}:T,k=F.name;typeof v=="function"&&(u=v({state:u,options:S,name:k,instance:h})||u)}}}},update:trn(function(){return new Promise(function(p){h.forceUpdate(),p(u)})}),destroy:function(){f(),d=!0}};if(!Yde(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 orn=FO(),rrn=[uG,mG,lG,iG],irn=FO({defaultModifiers:rrn}),srn=[uG,mG,lG,iG,q$e,U$e,J$e,H$e,K$e],fG=FO({defaultModifiers:srn});const G$e=Object.freeze(Object.defineProperty({__proto__:null,afterMain:N$e,afterRead:R$e,afterWrite:$$e,applyStyles:iG,arrow:H$e,auto:TO,basePlacements:Jv,beforeMain:D$e,beforeRead:E$e,beforeWrite:B$e,bottom:Xs,clippingParents:S$e,computeStyles:lG,createPopper:fG,createPopperBase:orn,createPopperLite:irn,detectOverflow:lv,end:rv,eventListeners:uG,flip:U$e,hide:K$e,left:Ti,main:A$e,modifierPhases:V$e,offset:q$e,placements:oG,popper:u0,popperGenerator:FO,popperOffsets:mG,preventOverflow:J$e,read:_$e,reference:k$e,right:Qs,start:Yg,top:vi,variationPlacements:$j,viewport:nG,write:L$e},Symbol.toStringTag,{value:"Module"})),ih=new Map,oH={set(t,e,n){ih.has(t)||ih.set(t,new Map);const o=ih.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 ih.has(t)&&ih.get(t).get(e)||null},remove(t,e){if(!ih.has(t))return;const n=ih.get(t);n.delete(e),n.size===0&&ih.delete(t)}},arn=1e6,lrn=1e3,Oj="transitionend",Y$e=t=>(t&&window.CSS&&window.CSS.escape&&(t=t.replace(/#([^\s"#']+)/g,(e,n)=>`#${CSS.escape(n)}`)),t),urn=t=>t==null?`${t}`:Object.prototype.toString.call(t).match(/\s([a-z]+)/i)[1].toLowerCase(),crn=t=>{do t+=Math.floor(Math.random()*arn);while(document.getElementById(t));return t},drn=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))*lrn)},X$e=t=>{t.dispatchEvent(new Event(Oj))},sd=t=>!t||typeof t!="object"?!1:(typeof t.jquery<"u"&&(t=t[0]),typeof t.nodeType<"u"),Bm=t=>sd(t)?t.jquery?t[0]:t:typeof t=="string"&&t.length>0?document.querySelector(Y$e(t)):null,Gv=t=>{if(!sd(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},Lm=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",Q$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?Q$e(t.parentNode):null},q$=()=>{},gk=t=>{t.offsetHeight},Z$e=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,rH=[],hrn=t=>{document.readyState==="loading"?(rH.length||document.addEventListener("DOMContentLoaded",()=>{for(const e of rH)e()}),rH.push(t)):t()},Ya=()=>document.documentElement.dir==="rtl",rl=t=>{hrn(()=>{const e=Z$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)}})},Yi=(t,e=[],n=t)=>typeof t=="function"?t.call(...e):n,eVe=(t,e,n=!0)=>{if(!n){Yi(t);return}const o=drn(e)+5;let r=!1;const i=({target:s})=>{s===e&&(r=!0,e.removeEventListener(Oj,i),Yi(t))};e.addEventListener(Oj,i),setTimeout(()=>{r||X$e(e)},o)},pG=(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))])},mrn=/[^.]*(?=\..*)\.|.*/,frn=/\..*/,prn=/::\d+$/,iH={};let Xde=1;const tVe={mouseenter:"mouseover",mouseleave:"mouseout"},grn=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 nVe(t,e){return e&&`${e}::${Xde++}`||t.uidEvent||Xde++}function oVe(t){const e=nVe(t);return t.uidEvent=e,iH[e]=iH[e]||{},iH[e]}function Crn(t,e){return function n(o){return gG(o,{delegateTarget:t}),n.oneOff&&be.off(t,o.type,e),e.apply(t,[o])}}function yrn(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 gG(r,{delegateTarget:s}),o.oneOff&&be.off(t,r.type,e,n),n.apply(s,[r])}}function rVe(t,e,n=null){return Object.values(t).find(o=>o.callable===e&&o.delegationSelector===n)}function iVe(t,e,n){const o=typeof e=="string",r=o?n:e||n;let i=sVe(t);return grn.has(i)||(i=t),[o,r,i]}function Qde(t,e,n,o,r){if(typeof e!="string"||!t)return;let[i,s,a]=iVe(e,n,o);e in tVe&&(s=(m=>function(f){if(!f.relatedTarget||f.relatedTarget!==f.delegateTarget&&!f.delegateTarget.contains(f.relatedTarget))return m.call(this,f)})(s));const l=oVe(t),u=l[a]||(l[a]={}),c=rVe(u,s,i?n:null);if(c){c.oneOff=c.oneOff&&r;return}const d=nVe(s,e.replace(mrn,"")),h=i?yrn(t,n,s):Crn(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 Ij(t,e,n,o,r){const i=rVe(e[n],o,r);i&&(t.removeEventListener(n,i,!!r),delete e[n][i.uidEvent])}function brn(t,e,n,o){const r=e[n]||{};for(const[i,s]of Object.entries(r))i.includes(o)&&Ij(t,e,n,s.callable,s.delegationSelector)}function sVe(t){return t=t.replace(frn,""),tVe[t]||t}const be={on(t,e,n,o){Qde(t,e,n,o,!1)},one(t,e,n,o){Qde(t,e,n,o,!0)},off(t,e,n,o){if(typeof e!="string"||!t)return;const[r,i,s]=iVe(e,n,o),a=s!==e,l=oVe(t),u=l[s]||{},c=e.startsWith(".");if(typeof i<"u"){if(!Object.keys(u).length)return;Ij(t,l,s,i,r?n:null);return}if(c)for(const d of Object.keys(l))brn(t,l,d,e.slice(1));for(const[d,h]of Object.entries(u)){const m=d.replace(prn,"");(!a||e.includes(m))&&Ij(t,l,s,h.callable,h.delegationSelector)}},trigger(t,e,n){if(typeof e!="string"||!t)return null;const o=Z$e(),r=sVe(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=gG(new Event(e,{bubbles:a,cancelable:!0}),n);return u&&c.preventDefault(),l&&t.dispatchEvent(c),c.defaultPrevented&&s&&s.preventDefault(),c}};function gG(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 Zde(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 sH(t){return t.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`)}const ad={setDataAttribute(t,e,n){t.setAttribute(`data-bs-${sH(e)}`,n)},removeDataAttribute(t,e){t.removeAttribute(`data-bs-${sH(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]=Zde(t.dataset[o])}return e},getDataAttribute(t,e){return Zde(t.getAttribute(`data-bs-${sH(e)}`))}};class Ck{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=sd(n)?ad.getDataAttribute(n,"config"):{};return{...this.constructor.Default,...typeof o=="object"?o:{},...sd(n)?ad.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=sd(i)?"element":urn(i);if(!new RegExp(r).test(s))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${o}" provided type "${s}" but expected type "${r}".`)}}}const vrn="5.3.8";class Jl extends Ck{constructor(e,n){super(),e=Bm(e),e&&(this._element=e,this._config=this._getConfig(n),oH.set(this._element,this.constructor.DATA_KEY,this))}dispose(){oH.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){eVe(e,n,o)}_getConfig(e){return e=this._mergeConfigObj(e,this._element),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}static getInstance(e){return oH.get(Bm(e),this.DATA_KEY)}static getOrCreateInstance(e,n={}){return this.getInstance(e)||new this(e,typeof n=="object"?n:null)}static get VERSION(){return vrn}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 aH=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=>Y$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=>!Lm(n)&&Gv(n))},getSelectorFromElement(t){const e=aH(t);return e&&mt.findOne(e)?e:null},getElementFromSelector(t){const e=aH(t);return e?mt.findOne(e):null},getMultipleElementsFromSelector(t){const e=aH(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(),Lm(this))return;const i=mt.getElementFromSelector(this)||this.closest(`.${o}`);t.getOrCreateInstance(i)[e]()})},Trn="alert",xrn="bs.alert",aVe=`.${xrn}`,Frn=`close${aVe}`,wrn=`closed${aVe}`,Srn="fade",krn="show";class SO extends Jl{static get NAME(){return Trn}close(){if(be.trigger(this._element,Frn).defaultPrevented)return;this._element.classList.remove(krn);const e=this._element.classList.contains(Srn);this._queueCallback(()=>this._destroyElement(),this._element,e)}_destroyElement(){this._element.remove(),be.trigger(this._element,wrn),this.dispose()}static jQueryInterface(e){return this.each(function(){const n=SO.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(SO,"close");rl(SO);const Ern="button",_rn="bs.button",Rrn=`.${_rn}`,Drn=".data-api",Arn="active",ehe='[data-bs-toggle="button"]',Nrn=`click${Rrn}${Drn}`;class kO extends Jl{static get NAME(){return Ern}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle(Arn))}static jQueryInterface(e){return this.each(function(){const n=kO.getOrCreateInstance(this);e==="toggle"&&n[e]()})}}be.on(document,Nrn,ehe,t=>{t.preventDefault();const e=t.target.closest(ehe);kO.getOrCreateInstance(e).toggle()});rl(kO);const Brn="swipe",Yv=".bs.swipe",Lrn=`touchstart${Yv}`,$rn=`touchmove${Yv}`,Vrn=`touchend${Yv}`,Mrn=`pointerdown${Yv}`,Orn=`pointerup${Yv}`,Irn="touch",Prn="pen",Wrn="pointer-event",Hrn=40,zrn={endCallback:null,leftCallback:null,rightCallback:null},jrn={endCallback:"(function|null)",leftCallback:"(function|null)",rightCallback:"(function|null)"};class J$ extends Ck{constructor(e,n){super(),this._element=e,!(!e||!J$.isSupported())&&(this._config=this._getConfig(n),this._deltaX=0,this._supportPointerEvents=!!window.PointerEvent,this._initEvents())}static get Default(){return zrn}static get DefaultType(){return jrn}static get NAME(){return Brn}dispose(){be.off(this._element,Yv)}_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(),Yi(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<=Hrn)return;const n=e/this._deltaX;this._deltaX=0,n&&Yi(n>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?(be.on(this._element,Mrn,e=>this._start(e)),be.on(this._element,Orn,e=>this._end(e)),this._element.classList.add(Wrn)):(be.on(this._element,Lrn,e=>this._start(e)),be.on(this._element,$rn,e=>this._move(e)),be.on(this._element,Vrn,e=>this._end(e)))}_eventIsPointerPenTouch(e){return this._supportPointerEvents&&(e.pointerType===Prn||e.pointerType===Irn)}static isSupported(){return"ontouchstart"in document.documentElement||navigator.maxTouchPoints>0}}const Urn="carousel",Krn="bs.carousel",Sf=`.${Krn}`,lVe=".data-api",qrn="ArrowLeft",Jrn="ArrowRight",Grn=500,eT="next",hy="prev",c0="left",wD="right",Yrn=`slide${Sf}`,lH=`slid${Sf}`,Xrn=`keydown${Sf}`,Qrn=`mouseenter${Sf}`,Zrn=`mouseleave${Sf}`,ein=`dragstart${Sf}`,tin=`load${Sf}${lVe}`,nin=`click${Sf}${lVe}`,uVe="carousel",X_="active",oin="slide",rin="carousel-item-end",iin="carousel-item-start",sin="carousel-item-next",ain="carousel-item-prev",cVe=".active",dVe=".carousel-item",lin=cVe+dVe,uin=".carousel-item img",cin=".carousel-indicators",din="[data-bs-slide], [data-bs-slide-to]",hin='[data-bs-ride="carousel"]',min={[qrn]:wD,[Jrn]:c0},fin={interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},pin={interval:"(number|boolean)",keyboard:"boolean",pause:"(string|boolean)",ride:"(boolean|string)",touch:"boolean",wrap:"boolean"};class yk extends Jl{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(cin,this._element),this._addEventListeners(),this._config.ride===uVe&&this.cycle()}static get Default(){return fin}static get DefaultType(){return pin}static get NAME(){return Urn}next(){this._slide(eT)}nextWhenVisible(){!document.hidden&&Gv(this._element)&&this.next()}prev(){this._slide(hy)}pause(){this._isSliding&&X$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,lH,()=>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,lH,()=>this.to(e));return}const o=this._getItemIndex(this._getActive());if(o===e)return;const r=e>o?eT:hy;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,Xrn,e=>this._keydown(e)),this._config.pause==="hover"&&(be.on(this._element,Qrn,()=>this.pause()),be.on(this._element,Zrn,()=>this._maybeEnableCycle())),this._config.touch&&J$.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(const n of mt.find(uin,this._element))be.on(n,ein,o=>o.preventDefault());const e={leftCallback:()=>this._slide(this._directionToOrder(c0)),rightCallback:()=>this._slide(this._directionToOrder(wD)),endCallback:()=>{this._config.pause==="hover"&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout(()=>this._maybeEnableCycle(),Grn+this._config.interval))}};this._swipeHelper=new J$(this._element,e)}_keydown(e){if(/input|textarea/i.test(e.target.tagName))return;const n=min[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(cVe,this._indicatorsElement);n.classList.remove(X_),n.removeAttribute("aria-current");const o=mt.findOne(`[data-bs-slide-to="${e}"]`,this._indicatorsElement);o&&(o.classList.add(X_),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===eT,i=n||pG(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(Yrn).defaultPrevented||!o||!i)return;const l=!!this._interval;this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(s),this._activeElement=i;const u=r?iin:rin,c=r?sin:ain;i.classList.add(c),gk(i),o.classList.add(u),i.classList.add(u);const d=()=>{i.classList.remove(u,c),i.classList.add(X_),o.classList.remove(X_,c,u),this._isSliding=!1,a(lH)};this._queueCallback(d,o,this._isAnimated()),l&&this.cycle()}_isAnimated(){return this._element.classList.contains(oin)}_getActive(){return mt.findOne(lin,this._element)}_getItems(){return mt.find(dVe,this._element)}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}_directionToOrder(e){return Ya()?e===c0?hy:eT:e===c0?eT:hy}_orderToDirection(e){return Ya()?e===hy?c0:wD:e===hy?wD:c0}static jQueryInterface(e){return this.each(function(){const n=yk.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,nin,din,function(t){const e=mt.getElementFromSelector(this);if(!e||!e.classList.contains(uVe))return;t.preventDefault();const n=yk.getOrCreateInstance(e),o=this.getAttribute("data-bs-slide-to");if(o){n.to(o),n._maybeEnableCycle();return}if(ad.getDataAttribute(this,"slide")==="next"){n.next(),n._maybeEnableCycle();return}n.prev(),n._maybeEnableCycle()});be.on(window,tin,()=>{const t=mt.find(hin);for(const e of t)yk.getOrCreateInstance(e)});rl(yk);const gin="collapse",Cin="bs.collapse",bk=`.${Cin}`,yin=".data-api",bin=`show${bk}`,vin=`shown${bk}`,Tin=`hide${bk}`,xin=`hidden${bk}`,Fin=`click${bk}${yin}`,uH="show",v0="collapse",Q_="collapsing",win="collapsed",Sin=`:scope .${v0} .${v0}`,kin="collapse-horizontal",Ein="width",_in="height",Rin=".collapse.show, .collapse.collapsing",Pj='[data-bs-toggle="collapse"]',Din={parent:null,toggle:!0},Ain={parent:"(null|element)",toggle:"boolean"};class oS extends Jl{constructor(e,n){super(e,n),this._isTransitioning=!1,this._triggerArray=[];const o=mt.find(Pj);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 Din}static get DefaultType(){return Ain}static get NAME(){return gin}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let e=[];if(this._config.parent&&(e=this._getFirstLevelChildren(Rin).filter(i=>i!==this._element).map(i=>oS.getOrCreateInstance(i,{toggle:!1}))),e.length&&e[0]._isTransitioning||be.trigger(this._element,bin).defaultPrevented)return;for(const i of e)i.hide();const n=this._getDimension();this._element.classList.remove(v0),this._element.classList.add(Q_),this._element.style[n]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;const o=()=>{this._isTransitioning=!1,this._element.classList.remove(Q_),this._element.classList.add(v0,uH),this._element.style[n]="",be.trigger(this._element,vin)},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,Tin).defaultPrevented)return;const e=this._getDimension();this._element.style[e]=`${this._element.getBoundingClientRect()[e]}px`,gk(this._element),this._element.classList.add(Q_),this._element.classList.remove(v0,uH);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(Q_),this._element.classList.add(v0),be.trigger(this._element,xin)};this._element.style[e]="",this._queueCallback(n,this._element,!0)}_isShown(e=this._element){return e.classList.contains(uH)}_configAfterMerge(e){return e.toggle=!!e.toggle,e.parent=Bm(e.parent),e}_getDimension(){return this._element.classList.contains(kin)?Ein:_in}_initializeChildren(){if(!this._config.parent)return;const e=this._getFirstLevelChildren(Pj);for(const n of e){const o=mt.getElementFromSelector(n);o&&this._addAriaAndCollapsedClass([n],this._isShown(o))}}_getFirstLevelChildren(e){const n=mt.find(Sin,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(win,!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=oS.getOrCreateInstance(this,n);if(typeof e=="string"){if(typeof o[e]>"u")throw new TypeError(`No method named "${e}"`);o[e]()}})}}be.on(document,Fin,Pj,function(t){(t.target.tagName==="A"||t.delegateTarget&&t.delegateTarget.tagName==="A")&&t.preventDefault();for(const e of mt.getMultipleElementsFromSelector(this))oS.getOrCreateInstance(e,{toggle:!1}).toggle()});rl(oS);const the="dropdown",Nin="bs.dropdown",_C=`.${Nin}`,CG=".data-api",Bin="Escape",nhe="Tab",Lin="ArrowUp",ohe="ArrowDown",$in=2,Vin=`hide${_C}`,Min=`hidden${_C}`,Oin=`show${_C}`,Iin=`shown${_C}`,hVe=`click${_C}${CG}`,mVe=`keydown${_C}${CG}`,Pin=`keyup${_C}${CG}`,d0="show",Win="dropup",Hin="dropend",zin="dropstart",jin="dropup-center",Uin="dropdown-center",bp='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)',Kin=`${bp}.${d0}`,SD=".dropdown-menu",qin=".navbar",Jin=".navbar-nav",Gin=".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",Yin=Ya()?"top-end":"top-start",Xin=Ya()?"top-start":"top-end",Qin=Ya()?"bottom-end":"bottom-start",Zin=Ya()?"bottom-start":"bottom-end",esn=Ya()?"left-start":"right-start",tsn=Ya()?"right-start":"left-start",nsn="top",osn="bottom",rsn={autoClose:!0,boundary:"clippingParents",display:"dynamic",offset:[0,2],popperConfig:null,reference:"toggle"},isn={autoClose:"(boolean|string)",boundary:"(string|element)",display:"string",offset:"(array|string|function)",popperConfig:"(null|object|function)",reference:"(string|element|object)"};class Au extends Jl{constructor(e,n){super(e,n),this._popper=null,this._parent=this._element.parentNode,this._menu=mt.next(this._element,SD)[0]||mt.prev(this._element,SD)[0]||mt.findOne(SD,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return rsn}static get DefaultType(){return isn}static get NAME(){return the}toggle(){return this._isShown()?this.hide():this.show()}show(){if(Lm(this._element)||this._isShown())return;const e={relatedTarget:this._element};if(!be.trigger(this._element,Oin,e).defaultPrevented){if(this._createPopper(),"ontouchstart"in document.documentElement&&!this._parent.closest(Jin))for(const n of[].concat(...document.body.children))be.on(n,"mouseover",q$);this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(d0),this._element.classList.add(d0),be.trigger(this._element,Iin,e)}}hide(){if(Lm(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,Vin,e).defaultPrevented){if("ontouchstart"in document.documentElement)for(const n of[].concat(...document.body.children))be.off(n,"mouseover",q$);this._popper&&this._popper.destroy(),this._menu.classList.remove(d0),this._element.classList.remove(d0),this._element.setAttribute("aria-expanded","false"),ad.removeDataAttribute(this._menu,"popper"),be.trigger(this._element,Min,e)}}_getConfig(e){if(e=super._getConfig(e),typeof e.reference=="object"&&!sd(e.reference)&&typeof e.reference.getBoundingClientRect!="function")throw new TypeError(`${the.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return e}_createPopper(){if(typeof G$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:sd(this._config.reference)?e=Bm(this._config.reference):typeof this._config.reference=="object"&&(e=this._config.reference);const n=this._getPopperConfig();this._popper=fG(e,this._menu,n)}_isShown(){return this._menu.classList.contains(d0)}_getPlacement(){const e=this._parent;if(e.classList.contains(Hin))return esn;if(e.classList.contains(zin))return tsn;if(e.classList.contains(jin))return nsn;if(e.classList.contains(Uin))return osn;const n=getComputedStyle(this._menu).getPropertyValue("--bs-position").trim()==="end";return e.classList.contains(Win)?n?Xin:Yin:n?Zin:Qin}_detectNavbar(){return this._element.closest(qin)!==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")&&(ad.setDataAttribute(this._menu,"popper","static"),e.modifiers=[{name:"applyStyles",enabled:!1}]),{...e,...Yi(this._config.popperConfig,[void 0,e])}}_selectMenuItem({key:e,target:n}){const o=mt.find(Gin,this._menu).filter(r=>Gv(r));o.length&&pG(o,n,e===ohe,!o.includes(n)).focus()}static jQueryInterface(e){return this.each(function(){const n=Au.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===$in||e.type==="keyup"&&e.key!==nhe)return;const n=mt.find(Kin);for(const o of n){const r=Au.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===nhe||/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===Bin,r=[Lin,ohe].includes(e.key);if(!r&&!o||n&&!o)return;e.preventDefault();const i=this.matches(bp)?this:mt.prev(this,bp)[0]||mt.next(this,bp)[0]||mt.findOne(bp,e.delegateTarget.parentNode),s=Au.getOrCreateInstance(i);if(r){e.stopPropagation(),s.show(),s._selectMenuItem(e);return}s._isShown()&&(e.stopPropagation(),s.hide(),i.focus())}}be.on(document,mVe,bp,Au.dataApiKeydownHandler);be.on(document,mVe,SD,Au.dataApiKeydownHandler);be.on(document,hVe,Au.clearMenus);be.on(document,Pin,Au.clearMenus);be.on(document,hVe,bp,function(t){t.preventDefault(),Au.getOrCreateInstance(this).toggle()});rl(Au);const fVe="backdrop",ssn="fade",rhe="show",ihe=`mousedown.bs.${fVe}`,asn={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},lsn={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"};class pVe extends Ck{constructor(e){super(),this._config=this._getConfig(e),this._isAppended=!1,this._element=null}static get Default(){return asn}static get DefaultType(){return lsn}static get NAME(){return fVe}show(e){if(!this._config.isVisible){Yi(e);return}this._append();const n=this._getElement();this._config.isAnimated&&gk(n),n.classList.add(rhe),this._emulateAnimation(()=>{Yi(e)})}hide(e){if(!this._config.isVisible){Yi(e);return}this._getElement().classList.remove(rhe),this._emulateAnimation(()=>{this.dispose(),Yi(e)})}dispose(){this._isAppended&&(be.off(this._element,ihe),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(ssn),this._element=e}return this._element}_configAfterMerge(e){return e.rootElement=Bm(e.rootElement),e}_append(){if(this._isAppended)return;const e=this._getElement();this._config.rootElement.append(e),be.on(e,ihe,()=>{Yi(this._config.clickCallback)}),this._isAppended=!0}_emulateAnimation(e){eVe(e,this._getElement(),this._config.isAnimated)}}const usn="focustrap",csn="bs.focustrap",G$=`.${csn}`,dsn=`focusin${G$}`,hsn=`keydown.tab${G$}`,msn="Tab",fsn="forward",she="backward",psn={autofocus:!0,trapElement:null},gsn={autofocus:"boolean",trapElement:"element"};class gVe extends Ck{constructor(e){super(),this._config=this._getConfig(e),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return psn}static get DefaultType(){return gsn}static get NAME(){return usn}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),be.off(document,G$),be.on(document,dsn,e=>this._handleFocusin(e)),be.on(document,hsn,e=>this._handleKeydown(e)),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,be.off(document,G$))}_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===she?o[o.length-1].focus():o[0].focus()}_handleKeydown(e){e.key===msn&&(this._lastTabNavDirection=e.shiftKey?she:fsn)}}const ahe=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",lhe=".sticky-top",Z_="padding-right",uhe="margin-right";class Wj{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,Z_,n=>n+e),this._setElementAttributes(ahe,Z_,n=>n+e),this._setElementAttributes(lhe,uhe,n=>n-e)}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,Z_),this._resetElementAttributes(ahe,Z_),this._resetElementAttributes(lhe,uhe)}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&&ad.setDataAttribute(e,n,o)}_resetElementAttributes(e,n){const o=r=>{const i=ad.getDataAttribute(r,n);if(i===null){r.style.removeProperty(n);return}ad.removeDataAttribute(r,n),r.style.setProperty(n,i)};this._applyManipulationCallback(e,o)}_applyManipulationCallback(e,n){if(sd(e)){n(e);return}for(const o of mt.find(e,this._element))n(o)}}const Csn="modal",ysn="bs.modal",Xa=`.${ysn}`,bsn=".data-api",vsn="Escape",Tsn=`hide${Xa}`,xsn=`hidePrevented${Xa}`,CVe=`hidden${Xa}`,yVe=`show${Xa}`,Fsn=`shown${Xa}`,wsn=`resize${Xa}`,Ssn=`click.dismiss${Xa}`,ksn=`mousedown.dismiss${Xa}`,Esn=`keydown.dismiss${Xa}`,_sn=`click${Xa}${bsn}`,che="modal-open",Rsn="fade",dhe="show",cH="modal-static",Dsn=".modal.show",Asn=".modal-dialog",Nsn=".modal-body",Bsn='[data-bs-toggle="modal"]',Lsn={backdrop:!0,focus:!0,keyboard:!0},$sn={backdrop:"(boolean|string)",focus:"boolean",keyboard:"boolean"};class uv extends Jl{constructor(e,n){super(e,n),this._dialog=mt.findOne(Asn,this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new Wj,this._addEventListeners()}static get Default(){return Lsn}static get DefaultType(){return $sn}static get NAME(){return Csn}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){this._isShown||this._isTransitioning||be.trigger(this._element,yVe,{relatedTarget:e}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(che),this._adjustDialog(),this._backdrop.show(()=>this._showElement(e)))}hide(){!this._isShown||this._isTransitioning||be.trigger(this._element,Tsn).defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(dhe),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 pVe({isVisible:!!this._config.backdrop,isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new gVe({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(Nsn,this._dialog);n&&(n.scrollTop=0),gk(this._element),this._element.classList.add(dhe);const o=()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,be.trigger(this._element,Fsn,{relatedTarget:e})};this._queueCallback(o,this._dialog,this._isAnimated())}_addEventListeners(){be.on(this._element,Esn,e=>{if(e.key===vsn){if(this._config.keyboard){this.hide();return}this._triggerBackdropTransition()}}),be.on(window,wsn,()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()}),be.on(this._element,ksn,e=>{be.one(this._element,Ssn,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(che),this._resetAdjustments(),this._scrollBar.reset(),be.trigger(this._element,CVe)})}_isAnimated(){return this._element.classList.contains(Rsn)}_triggerBackdropTransition(){if(be.trigger(this._element,xsn).defaultPrevented)return;const e=this._element.scrollHeight>document.documentElement.clientHeight,n=this._element.style.overflowY;n==="hidden"||this._element.classList.contains(cH)||(e||(this._element.style.overflowY="hidden"),this._element.classList.add(cH),this._queueCallback(()=>{this._element.classList.remove(cH),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=uv.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,_sn,Bsn,function(t){const e=mt.getElementFromSelector(this);["A","AREA"].includes(this.tagName)&&t.preventDefault(),be.one(e,yVe,o=>{o.defaultPrevented||be.one(e,CVe,()=>{Gv(this)&&this.focus()})});const n=mt.findOne(Dsn);n&&uv.getInstance(n).hide(),uv.getOrCreateInstance(e).toggle(this)});wO(uv);rl(uv);const Vsn="offcanvas",Msn="bs.offcanvas",Hd=`.${Msn}`,bVe=".data-api",Osn=`load${Hd}${bVe}`,Isn="Escape",hhe="show",mhe="showing",fhe="hiding",Psn="offcanvas-backdrop",vVe=".offcanvas.show",Wsn=`show${Hd}`,Hsn=`shown${Hd}`,zsn=`hide${Hd}`,phe=`hidePrevented${Hd}`,TVe=`hidden${Hd}`,jsn=`resize${Hd}`,Usn=`click${Hd}${bVe}`,Ksn=`keydown.dismiss${Hd}`,qsn='[data-bs-toggle="offcanvas"]',Jsn={backdrop:!0,keyboard:!0,scroll:!1},Gsn={backdrop:"(boolean|string)",keyboard:"boolean",scroll:"boolean"};class $m extends Jl{constructor(e,n){super(e,n),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return Jsn}static get DefaultType(){return Gsn}static get NAME(){return Vsn}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){if(this._isShown||be.trigger(this._element,Wsn,{relatedTarget:e}).defaultPrevented)return;this._isShown=!0,this._backdrop.show(),this._config.scroll||new Wj().hide(),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(mhe);const n=()=>{(!this._config.scroll||this._config.backdrop)&&this._focustrap.activate(),this._element.classList.add(hhe),this._element.classList.remove(mhe),be.trigger(this._element,Hsn,{relatedTarget:e})};this._queueCallback(n,this._element,!0)}hide(){if(!this._isShown||be.trigger(this._element,zsn).defaultPrevented)return;this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add(fhe),this._backdrop.hide();const e=()=>{this._element.classList.remove(hhe,fhe),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._config.scroll||new Wj().reset(),be.trigger(this._element,TVe)};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,phe);return}this.hide()},n=!!this._config.backdrop;return new pVe({className:Psn,isVisible:n,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:n?e:null})}_initializeFocusTrap(){return new gVe({trapElement:this._element})}_addEventListeners(){be.on(this._element,Ksn,e=>{if(e.key===Isn){if(this._config.keyboard){this.hide();return}be.trigger(this._element,phe)}})}static jQueryInterface(e){return this.each(function(){const n=$m.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,Usn,qsn,function(t){const e=mt.getElementFromSelector(this);if(["A","AREA"].includes(this.tagName)&&t.preventDefault(),Lm(this))return;be.one(e,TVe,()=>{Gv(this)&&this.focus()});const n=mt.findOne(vVe);n&&n!==e&&$m.getInstance(n).hide(),$m.getOrCreateInstance(e).toggle(this)});be.on(window,Osn,()=>{for(const t of mt.find(vVe))$m.getOrCreateInstance(t).show()});be.on(window,jsn,()=>{for(const t of mt.find("[aria-modal][class*=show][class*=offcanvas-]"))getComputedStyle(t).position!=="fixed"&&$m.getOrCreateInstance(t).hide()});wO($m);rl($m);const Ysn=/^aria-[\w-]*$/i,xVe={"*":["class","dir","id","lang","role",Ysn],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:[]},Xsn=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),Qsn=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i,Zsn=(t,e)=>{const n=t.nodeName.toLowerCase();return e.includes(n)?Xsn.has(n)?!!Qsn.test(t.nodeValue):!0:e.filter(o=>o instanceof RegExp).some(o=>o.test(n))};function ean(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)Zsn(u,l)||i.removeAttribute(u.nodeName)}return o.body.innerHTML}const tan="TemplateFactory",nan={allowList:xVe,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:"<div></div>"},oan={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"},ran={entry:"(string|element|function|null)",selector:"(string|element)"};class ian extends Ck{constructor(e){super(),this._config=this._getConfig(e)}static get Default(){return nan}static get DefaultType(){return oan}static get NAME(){return tan}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},ran)}_setContent(e,n,o){const r=mt.findOne(o,e);if(r){if(n=this._resolvePossibleFunction(n),!n){r.remove();return}if(sd(n)){this._putElementInTemplate(Bm(n),r);return}if(this._config.html){r.innerHTML=this._maybeSanitize(n);return}r.textContent=n}}_maybeSanitize(e){return this._config.sanitize?ean(e,this._config.allowList,this._config.sanitizeFn):e}_resolvePossibleFunction(e){return Yi(e,[void 0,this])}_putElementInTemplate(e,n){if(this._config.html){n.innerHTML="",n.append(e);return}n.textContent=e.textContent}}const san="tooltip",aan=new Set(["sanitize","allowList","sanitizeFn"]),dH="fade",lan="modal",eR="show",uan=".tooltip-inner",ghe=`.${lan}`,Che="hide.bs.modal",tT="hover",hH="focus",mH="click",can="manual",dan="hide",han="hidden",man="show",fan="shown",pan="inserted",gan="click",Can="focusin",yan="focusout",ban="mouseenter",van="mouseleave",Tan={AUTO:"auto",TOP:"top",RIGHT:Ya()?"left":"right",BOTTOM:"bottom",LEFT:Ya()?"right":"left"},xan={allowList:xVe,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"},Fan={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 Xv extends Jl{constructor(e,n){if(typeof G$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 xan}static get DefaultType(){return Fan}static get NAME(){return san}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(ghe),Che,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(man)),n=(Q$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(pan))),this._popper=this._createPopper(o),o.classList.add(eR),"ontouchstart"in document.documentElement)for(const s of[].concat(...document.body.children))be.on(s,"mouseover",q$);const i=()=>{be.trigger(this._element,this.constructor.eventName(fan)),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(dan)).defaultPrevented)return;if(this._getTipElement().classList.remove(eR),"ontouchstart"in document.documentElement)for(const n of[].concat(...document.body.children))be.off(n,"mouseover",q$);this._activeTrigger[mH]=!1,this._activeTrigger[hH]=!1,this._activeTrigger[tT]=!1,this._isHovered=null;const e=()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute("aria-describedby"),be.trigger(this._element,this.constructor.eventName(han)))};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(dH,eR),n.classList.add(`bs-${this.constructor.NAME}-auto`);const o=crn(this.constructor.NAME).toString();return n.setAttribute("id",o),this._isAnimated()&&n.classList.add(dH),n}setContent(e){this._newContent=e,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(e){return this._templateFactory?this._templateFactory.changeContent(e):this._templateFactory=new ian({...this._config,content:e,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{[uan]: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(dH)}_isShown(){return this.tip&&this.tip.classList.contains(eR)}_createPopper(e){const n=Yi(this._config.placement,[this,e,this._element]),o=Tan[n.toUpperCase()];return fG(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 Yi(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,...Yi(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(gan),this._config.selector,o=>{const r=this._initializeOnDelegatedTarget(o);r._activeTrigger[mH]=!(r._isShown()&&r._activeTrigger[mH]),r.toggle()});else if(n!==can){const o=n===tT?this.constructor.eventName(ban):this.constructor.eventName(Can),r=n===tT?this.constructor.eventName(van):this.constructor.eventName(yan);be.on(this._element,o,this._config.selector,i=>{const s=this._initializeOnDelegatedTarget(i);s._activeTrigger[i.type==="focusin"?hH:tT]=!0,s._enter()}),be.on(this._element,r,this._config.selector,i=>{const s=this._initializeOnDelegatedTarget(i);s._activeTrigger[i.type==="focusout"?hH:tT]=s._element.contains(i.relatedTarget),s._leave()})}this._hideModalHandler=()=>{this._element&&this.hide()},be.on(this._element.closest(ghe),Che,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=ad.getDataAttributes(this._element);for(const o of Object.keys(n))aan.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:Bm(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=Xv.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof n[e]>"u")throw new TypeError(`No method named "${e}"`);n[e]()}})}}rl(Xv);const wan="popover",San=".popover-header",kan=".popover-body",Ean={...Xv.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"},_an={...Xv.DefaultType,content:"(null|string|element|function)"};class yG extends Xv{static get Default(){return Ean}static get DefaultType(){return _an}static get NAME(){return wan}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return{[San]:this._getTitle(),[kan]:this._getContent()}}_getContent(){return this._resolvePossibleFunction(this._config.content)}static jQueryInterface(e){return this.each(function(){const n=yG.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof n[e]>"u")throw new TypeError(`No method named "${e}"`);n[e]()}})}}rl(yG);const Ran="scrollspy",Dan="bs.scrollspy",bG=`.${Dan}`,Aan=".data-api",Nan=`activate${bG}`,yhe=`click${bG}`,Ban=`load${bG}${Aan}`,Lan="dropdown-item",my="active",$an='[data-bs-spy="scroll"]',fH="[href]",Van=".nav, .list-group",bhe=".nav-link",Man=".nav-item",Oan=".list-group-item",Ian=`${bhe}, ${Man} > ${bhe}, ${Oan}`,Pan=".dropdown",Wan=".dropdown-toggle",Han={offset:null,rootMargin:"0px 0px -25%",smoothScroll:!1,target:null,threshold:[.1,.5,1]},zan={offset:"(number|null)",rootMargin:"string",smoothScroll:"boolean",target:"element",threshold:"array"};let FVe=class wVe extends Jl{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 Han}static get DefaultType(){return zan}static get NAME(){return Ran}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=Bm(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,yhe),be.on(this._config.target,yhe,fH,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(fH,this._config.target);for(const n of e){if(!n.hash||Lm(n))continue;const o=mt.findOne(decodeURI(n.hash),this._element);Gv(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(my),this._activateParents(e),be.trigger(this._element,Nan,{relatedTarget:e}))}_activateParents(e){if(e.classList.contains(Lan)){mt.findOne(Wan,e.closest(Pan)).classList.add(my);return}for(const n of mt.parents(e,Van))for(const o of mt.prev(n,Ian))o.classList.add(my)}_clearActiveClass(e){e.classList.remove(my);const n=mt.find(`${fH}.${my}`,e);for(const o of n)o.classList.remove(my)}static jQueryInterface(e){return this.each(function(){const n=wVe.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,Ban,()=>{for(const t of mt.find($an))FVe.getOrCreateInstance(t)});rl(FVe);const jan="tab",Uan="bs.tab",RC=`.${Uan}`,Kan=`hide${RC}`,qan=`hidden${RC}`,Jan=`show${RC}`,Gan=`shown${RC}`,Yan=`click${RC}`,Xan=`keydown${RC}`,Qan=`load${RC}`,Zan="ArrowLeft",vhe="ArrowRight",eln="ArrowUp",The="ArrowDown",pH="Home",xhe="End",vp="active",Fhe="fade",gH="show",tln="dropdown",SVe=".dropdown-toggle",nln=".dropdown-menu",CH=`:not(${SVe})`,oln='.list-group, .nav, [role="tablist"]',rln=".nav-item, .list-group-item",iln=`.nav-link${CH}, .list-group-item${CH}, [role="tab"]${CH}`,kVe='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',yH=`${iln}, ${kVe}`,sln=`.${vp}[data-bs-toggle="tab"], .${vp}[data-bs-toggle="pill"], .${vp}[data-bs-toggle="list"]`;class cv extends Jl{constructor(e){super(e),this._parent=this._element.closest(oln),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),be.on(this._element,Xan,n=>this._keydown(n)))}static get NAME(){return jan}show(){const e=this._element;if(this._elemIsActive(e))return;const n=this._getActiveElem(),o=n?be.trigger(n,Kan,{relatedTarget:e}):null;be.trigger(e,Jan,{relatedTarget:n}).defaultPrevented||o&&o.defaultPrevented||(this._deactivate(n,e),this._activate(e,n))}_activate(e,n){if(!e)return;e.classList.add(vp),this._activate(mt.getElementFromSelector(e));const o=()=>{if(e.getAttribute("role")!=="tab"){e.classList.add(gH);return}e.removeAttribute("tabindex"),e.setAttribute("aria-selected",!0),this._toggleDropDown(e,!0),be.trigger(e,Gan,{relatedTarget:n})};this._queueCallback(o,e,e.classList.contains(Fhe))}_deactivate(e,n){if(!e)return;e.classList.remove(vp),e.blur(),this._deactivate(mt.getElementFromSelector(e));const o=()=>{if(e.getAttribute("role")!=="tab"){e.classList.remove(gH);return}e.setAttribute("aria-selected",!1),e.setAttribute("tabindex","-1"),this._toggleDropDown(e,!1),be.trigger(e,qan,{relatedTarget:n})};this._queueCallback(o,e,e.classList.contains(Fhe))}_keydown(e){if(![Zan,vhe,eln,The,pH,xhe].includes(e.key))return;e.stopPropagation(),e.preventDefault();const n=this._getChildren().filter(r=>!Lm(r));let o;if([pH,xhe].includes(e.key))o=n[e.key===pH?0:n.length-1];else{const r=[vhe,The].includes(e.key);o=pG(n,e.target,r,!0)}o&&(o.focus({preventScroll:!0}),cv.getOrCreateInstance(o).show())}_getChildren(){return mt.find(yH,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(tln))return;const r=(i,s)=>{const a=mt.findOne(i,o);a&&a.classList.toggle(s,n)};r(SVe,vp),r(nln,gH),o.setAttribute("aria-expanded",n)}_setAttributeIfNotExists(e,n,o){e.hasAttribute(n)||e.setAttribute(n,o)}_elemIsActive(e){return e.classList.contains(vp)}_getInnerElement(e){return e.matches(yH)?e:mt.findOne(yH,e)}_getOuterElement(e){return e.closest(rln)||e}static jQueryInterface(e){return this.each(function(){const n=cv.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,Yan,kVe,function(t){["A","AREA"].includes(this.tagName)&&t.preventDefault(),!Lm(this)&&cv.getOrCreateInstance(this).show()});be.on(window,Qan,()=>{for(const t of mt.find(sln))cv.getOrCreateInstance(t)});rl(cv);const aln="toast",lln="bs.toast",kf=`.${lln}`,uln=`mouseover${kf}`,cln=`mouseout${kf}`,dln=`focusin${kf}`,hln=`focusout${kf}`,mln=`hide${kf}`,fln=`hidden${kf}`,pln=`show${kf}`,gln=`shown${kf}`,Cln="fade",whe="hide",tR="show",nR="showing",yln={animation:"boolean",autohide:"boolean",delay:"number"},bln={animation:!0,autohide:!0,delay:5e3};class EO extends Jl{constructor(e,n){super(e,n),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return bln}static get DefaultType(){return yln}static get NAME(){return aln}show(){if(be.trigger(this._element,pln).defaultPrevented)return;this._clearTimeout(),this._config.animation&&this._element.classList.add(Cln);const e=()=>{this._element.classList.remove(nR),be.trigger(this._element,gln),this._maybeScheduleHide()};this._element.classList.remove(whe),gk(this._element),this._element.classList.add(tR,nR),this._queueCallback(e,this._element,this._config.animation)}hide(){if(!this.isShown()||be.trigger(this._element,mln).defaultPrevented)return;const e=()=>{this._element.classList.add(whe),this._element.classList.remove(nR,tR),be.trigger(this._element,fln)};this._element.classList.add(nR),this._queueCallback(e,this._element,this._config.animation)}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(tR),super.dispose()}isShown(){return this._element.classList.contains(tR)}_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,uln,e=>this._onInteraction(e,!0)),be.on(this._element,cln,e=>this._onInteraction(e,!1)),be.on(this._element,dln,e=>this._onInteraction(e,!0)),be.on(this._element,hln,e=>this._onInteraction(e,!1))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(e){return this.each(function(){const n=EO.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof n[e]>"u")throw new TypeError(`No method named "${e}"`);n[e](this)}})}}wO(EO);rl(EO);const vln=["Arial","Georgia","Tahoma","TimesNewRoman","Verdana"];Wd.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})}}}});Wd.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()}}});Wd.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()}}});Wd.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})}}}});Wd.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})}}}});Wd.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()}}}});Wd.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 vln.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 Tln=t=>new Promise((e,n)=>{const o=new Image;o.onload=()=>{e({width:o.naturalWidth,height:o.naturalHeight})},o.onerror=n,o.src=t});ic.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[gtn({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 So({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)&&Tln(i).then(l=>{const u=e.tr.setNodeMarkup(r,void 0,{...o.attrs,width:l.width,height:l.height});n(u)})}})})(),{})})]}});yO();const xln=t=>{let e={};return n=>UYt(n).Match({RepurchaseProductList:({StockSource:o})=>JP({partnerId:t.partnerId,stockId:hl({stockSource:o,customerStockId:t.customerStockId}),getSampleProductsForPreviewHttpClient:t.listExpressionDataSourceBffClient.postGetSampleProductsForPreview}),RelatedProductsForRepurchaseProductList:({StockSource:o})=>JP({partnerId:t.partnerId,stockId:hl({stockSource:o,customerStockId:t.customerStockId}),getSampleProductsForPreviewHttpClient:t.listExpressionDataSourceBffClient.postGetSampleProductsForPreview}),AlternativeProductsForRepurchaseProductList:({StockSource:o})=>JP({partnerId:t.partnerId,stockId:hl({stockSource:o,customerStockId:t.customerStockId}),getSampleProductsForPreviewHttpClient:t.listExpressionDataSourceBffClient.postGetSampleProductsForPreview}),ProductList:({ProductIds:o,StockSource:r})=>gLt({partnerId:t.partnerId,productIDs:o,stockId:hl({stockSource:r,customerStockId:t.customerStockId}),productCache:e,getProductsByIDsHttpClient:t.listExpressionDataSourceBffClient.postGetProductsByIds}),RelatedProductsFor:({ProductIds:o,StockSource:r})=>CLt({partnerId:t.partnerId,productIDs:o,stockId:hl({stockSource:r,customerStockId:t.customerStockId}),getRelatedProducts:t.listExpressionDataSourceBffClient.postGetRelatedRecommendations}),AlternativeProductsFor:({ProductIds:o,StockSource:r})=>yLt({partnerId:t.partnerId,productIDs:o,stockId:hl({stockSource:r,customerStockId:t.customerStockId}),getAlternativeProductsHttpClient:t.listExpressionDataSourceBffClient.postGetAlternativeRecommendations}),PopularProductsInCategories:({CategoryIds:o,StockSource:r})=>bLt({partnerId:t.partnerId,categoryIds:o,stockId:hl({stockSource:r,customerStockId:t.customerStockId}),getPopularProductsInCategoriesHttpClient:t.listExpressionDataSourceBffClient.postGetPopularInCategoriesRecommendations}),Popular:({StockSource:o})=>Ext({partnerId:t.partnerId,stockId:hl({stockSource:o,customerStockId:t.customerStockId}),getPopularProductsHttpClient:t.listExpressionDataSourceBffClient.postGetPopularRecommendations}),Latest:({StockSource:o})=>vLt({partnerId:t.partnerId,stockId:hl({stockSource:o,customerStockId:t.customerStockId}),getLatestProductsHttpClient:t.listExpressionDataSourceBffClient.postGetLatestRecommendations}),SaleByPopular:({StockSource:o})=>TLt({partnerId:t.partnerId,stockId:hl({stockSource:o,customerStockId:t.customerStockId}),getSaleByPopularProductsHttpClient:t.listExpressionDataSourceBffClient.postGetSaleByPopularRecommendations}),SaleByLatest:({StockSource:o})=>xLt({partnerId:t.partnerId,stockId:hl({stockSource:o,customerStockId:t.customerStockId}),getSaleByLatestProductsHttpClient:t.listExpressionDataSourceBffClient.postGetSaleByLatestRecommendations})})},Fln=()=>()=>Promise.resolve(0),wln=t=>{const e=t.contactCustomData;return n=>jYt(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 vc={},She;function Sln(){if(She)return vc;She=1;var t=vc&&vc.__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=vc&&vc.__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(vc,"__esModule",{value:!0}),vc.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 S(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(S,E),postGetSaleByPopularRecommendations:n(k,E),postGetSaleByLatestRecommendations:n(R,E),postGetSampleProductsForPreview:n(D,E)}};return vc.createApi=V,vc}var kln=Sln();const EVe="#app",ls=document.querySelector(EVe),mo={partnerId:ls.getAttribute("data-partner-id"),wysiwygTemplateEditorBffBaseUrl:ls.getAttribute("data-wysiwyg-template-editor-bff-base-url"),wysiwygBffProxyBaseUrl:ls.getAttribute("data-wysiwyg-bff-proxy-base-url"),antiForgeryHeaderTokenName:ls.getAttribute("data-anti-forgery-header-token-name"),antiForgeryHeaderTokenValue:ls.getAttribute("data-anti-forgery-header-token-value"),antiForgeryFormTokenName:ls.getAttribute("data-anti-forgery-form-token-name"),antiForgeryFormTokenValue:ls.getAttribute("data-anti-forgery-form-token-value"),createEmailTemplateSubmitUrl:ls.getAttribute("data-create-email-template-submit-url"),initialEmailTemplateJson:ls.getAttribute("data-initial-repurchase-template"),repurchaseFavoritesTemplates:JSON.parse(ls.getAttribute("data-repurchase-favorites-templates")),commonFavoritesTemplates:JSON.parse(ls.getAttribute("data-common-favorites-templates")),exitLink:ls.getAttribute("data-exit-link"),localeKey:ls.getAttribute("data-locale-key")||"en"},Eln=t=>mLt({baseUrl:t.baseUrl,antiForgeryTokenHeaderName:mo.antiForgeryHeaderTokenName,antiForgeryTokenValue:mo.antiForgeryHeaderTokenValue}),_ln=kln.createApi(Eln({baseUrl:mo.wysiwygBffProxyBaseUrl})),_Ve=t=>{const e=new FormData;e.append(mo.antiForgeryFormTokenName,mo.antiForgeryFormTokenValue),e.append("template",JSON.stringify(t.template));const n=c8e({method:"POST",action:mo.createEmailTemplateSubmitUrl,formData:e});document.body.appendChild(n),n.submit()},Rln={},Dln={BatchId:""},bH=t=>{const e=xln({partnerId:mo.partnerId,listExpressionDataSourceBffClient:_ln,customerStockId:void 0}),n=J7e({listExpressionDataSourceEvaluator:e}),o=Fln(),r=u8e({listExpressionEvaluator:n,numberExpressionDataSourceEvaluator:o}),i=Z7e({listExpressionEvaluator:n,numberExpressionEvaluator:r,stringExpressionDataSourceEvaluatorFactory:()=>wln({productImageUrlBuilderExpressionEvaluator:VYe({partnerId:mo.partnerId,numberExpressionEvaluator:r}),contactCustomData:Rln,nextCouponFromBatch:Dln})}),s=U7e({listExpressionEvaluator:n,numberExpressionEvaluator:r,stringExpressionEvaluator:i,dataStructBuilderExpressionEvaluatorFactory:u=>SQ({expressionEvaluator:u})}),a=SQ({expressionEvaluator:s}),l=m4t({localeKey:mo.localeKey});return kxt({template:t.template,templateName:t.templateName,emailTemplatePreviewTileDeps:pLt({localeKey:mo.localeKey,dataSourceFieldNameDelegate:({dataSource:u})=>Cv(u).Match({StringFromContactCustomData:c=>c.FieldName,StringFromContactCustomDataWithFallback:c=>c.FallbackValue,ProductImageUrlBuilderExpression:()=>"ImageResizer",NextCouponFromBatch:()=>"Coupon"}),richTextToolbarPlugins:[FLt({richTextToolbarPluginComponent:V5t,deps:FYe({localeKey:mo.localeKey,stringExpressionBuilderPlugin:l})})],listExpressionEvaluator:n,numberExpressionEvaluator:r,stringExpressionEvaluator:i,dataStructExpressionEvaluator:a,expressionEvaluator:s,stringExpressionBuilderPlugin:l}),onFavoriteTemplateSelected:()=>{_Ve({template:t.template})}})},khe=mo.localeKey==="ru"?p4t:f4t,RVe=XWe(xYe,{onInitialTemplateSelected:()=>{_Ve({template:mo.initialEmailTemplateJson.length?JSON.parse(mo.initialEmailTemplateJson):khe})},deps:hLt({localeKey:mo.localeKey,emailTemplatePreviews:{custom:[...mo.commonFavoritesTemplates.map(t=>({templateName:t.favoriteTemplateName,previewTileComponent:bH({template:JSON.parse(t.templateJson),templateName:t.favoriteTemplateName})})),...mo.repurchaseFavoritesTemplates.map(t=>({templateName:t.favoriteTemplateName,previewTileComponent:bH({template:JSON.parse(t.templateJson),templateName:t.favoriteTemplateName})}))],default:[...LYe(mo.localeKey).map(t=>({templateName:t.favoriteTemplateName,previewTileComponent:bH({template:t.defaultTemplate,templateName:t.favoriteTemplateName})}))]},initialEmailTemplate:mo.initialEmailTemplateJson.length?JSON.parse(mo.initialEmailTemplateJson):khe,exitLink:mo.exitLink})});RVe.use(fpe({theme:!1,directives:{ClickOutside:Gze}}));RVe.mount(EVe)});export default Aln();
379
- //# sourceMappingURL=index.js.map