import{_ as b}from"./WebImage-BrV8nG8o.mjs";import{bf as y,bg as c,bh as p,bi as w,bj as v,bk as H,bl as I,_ as S,d as m,e as o,f as u,h as d,g,V as x,C as P,am as C,q as f,u as T}from"#entry";import{s as k}from"./index-DcDNaRrb.mjs";import E from"./WebContentListNew-DBIZ_Hgg.mjs";import L from"./WebSubscribeNew-BfP_E6BN.mjs";import"./WebContentItemNew-Cx8UvYi1.mjs";import"./useImageUrl-1XbeiwSF.mjs";/** * vue v3.5.21 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/const _=Object.create(null);function h(e,n){if(!y(e))if(e.nodeType)e=e.innerHTML;else return c;const t=p(e,n),l=_[t];if(l)return l;if(e[0]==="#"){const a=document.querySelector(e);e=a?a.innerHTML:""}const r=w({hoistStatic:!0,onError:void 0,onWarn:c},n);!r.isCustomElement&&typeof customElements<"u"&&(r.iscustomelement=a=>!!customElements.get(a));const{code:i}=v(e,r),s=new Function("Vue",i)(H);return s._rc=!0,_[t]=s}I(h);const V={components:{WebContentListNew:E,WebSubscribeNew:L},props:{html:{type:String}},setup(e){return h(`
/gm);e=n?.length?n.slice(0,this.ungatedParagraphs).join(` `):e}return e}}},j=["innerHTML"],N={class:"preview-overlay"};function O(e,n,t,l,r,i){const s=b,a=W;return o(),m("div",{style:f({width:`${t.textWidth}%`,textAlign:t.textAlign})},[u("section",{style:f({fontFamily:t.fontFamily,fontSize:"1.1rem",lineHeight:"1.8rem"}),class:"web-html"},[t.logoEmbedLocation!=="none"&&t.embedPrimaryImage?(o(),m("div",{key:0,class:P(`embedded-image ${t.logoEmbedLocation}`)},[t.embedPrimaryImage?(o(),g(s,{key:0,image:t.primaryImage.src,credit:t.primaryImage.credit,caption:t.primaryImage.caption,"is-logo":!0,alt:t.primaryImage.alt,"credit-position":"top"},null,8,["image","credit","caption","alt"])):d("",!0)],2)):d("",!0),i.newHtml&&t.useVueInHtml?(o(),g(a,{key:1,html:i.newHtml,class:"html"},null,8,["html"])):(o(),m("div",{key:2,class:"html",innerHTML:i.newHtml},null,8,j)),x(u("div",N,null,512),[[C,t.showPreview]])],4)],4)}const K=Object.assign(S(B,[["render",O]]),{__name:"WebHTML"});export{K as default};