"use strict";(()=>{var Pt=Object.defineProperty,Dt=Object.defineProperties;var Mt=Object.getOwnPropertyDescriptors;var ft=Object.getOwnPropertySymbols;var Tt=Object.prototype.hasOwnProperty,Ct=Object.prototype.propertyIsEnumerable;var vt=(n,f,e)=>f in n?Pt(n,f,{enumerable:!0,configurable:!0,writable:!0,value:e}):n[f]=e,k=(n,f)=>{for(var e in f||(f={}))Tt.call(f,e)&&vt(n,e,f[e]);if(ft)for(var e of ft(f))Ct.call(f,e)&&vt(n,e,f[e]);return n},nt=(n,f)=>Dt(n,Mt(f));var ct=(n,f,e)=>new Promise((u,O)=>{var T=v=>{try{d(e.next(v))}catch(p){O(p)}},P=v=>{try{d(e.throw(v))}catch(p){O(p)}},d=v=>v.done?u(v.value):Promise.resolve(v.value).then(T,P);d((e=e.apply(n,f)).next())});(self.webpackChunkecom_website=self.webpackChunkecom_website||[]).push([[50774],{7038:n=>{var f=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],e=["address","article","aside","blockquote","canvas","dd","div","dl","dt","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","li","main","nav","noscript","ol","output","p","pre","section","table","tfoot","ul","video"],u=10,O=33,T=34,P=38,d=39,v=47,p=59,C=60,w=61,b=62,U=/[<&\n\ud800-\udbff]/,j=/\s+$/;n.exports=function(i,a){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return i?(i=i.toString(),l.indicator===void 0&&(l.indicator="\u2026"),l.html?F(i,a,l):z(i,a,l)):""};function F(t,i,a){for(var l=a.imageWeight,_=l===void 0?2:l,m=a.indicator,E=a.maxLines,o=m.length,D=1,r=0,M=!1,h=[],H=t.length;r-1?S:R.length;if(r+=q,!M&&(o+=q,o>i)){r=Math.max(r-o+i,0);break}if(S===-1)break;var J=t.charCodeAt(r);if(J===C){var ht=t.charCodeAt(r+1),x=ht===O;if(x&&t.substr(r+2,2)==="--"){var ut=t.indexOf("-->",r+4)+3;r=ut-1}else if(x&&t.substr(r+2,7)==="[CDATA["){var pt=t.indexOf("]]>",r+9)+3;r=pt-1}else{if(o===i&&t.charCodeAt(r+1)!==v){o++;break}for(var I=0,A=r,y=!1;;){if(A++,A>=H)throw new Error("Invalid HTML: "+t);var W=t.charCodeAt(A);if(y)I?W===I&&(y=!1):g(W)?y=!1:W===b&&(y=!1,A--);else if(W===w){for(;g(t.charCodeAt(A+1));)A++;y=!0;var Q=t.charCodeAt(A+1);Q===T||Q===d?(I=Q,A++):I=0}else if(W===b){var tt=t.charCodeAt(r+1)===v,et=r+(tt?2:1),dt=Math.min(X(t,et),A),c=t.slice(et,dt).toLowerCase();if(c.charCodeAt(c.length-1)===v&&(c=c.slice(0,c.length-1)),tt){var Et=h.pop();if(Et!==c)throw new Error("Invalid HTML: "+t);if((c==="math"||c==="svg")&&(M=h.indexOf("math")!==-1||h.indexOf("svg")!==-1,!M&&(o+=_,o>i)))break;if(e.indexOf(c)!==-1&&!M&&(D++,D>E)){h.push(c);break}}else if(f.indexOf(c)!==-1||t.charCodeAt(A-1)===v){if(c==="br"){if(D++,D>E)break}else if(c==="img"&&(o+=_,o>i))break}else h.push(c),(c==="math"||c==="svg")&&(M=!0);r=A;break}}if(o>i||D>E)break}}else if(J===P){for(var Y=r+1,rt=!0;;){var it=t.charCodeAt(Y);if(K(it))Y++;else{if(it===p)break;rt=!1;break}}if(!M&&(o++,o>i))break;rt&&(r=Y)}else if(J===u){if(!M&&(o++,o>i||(D++,D>E)))break}else{if(!M&&(o++,o>i))break;var mt=t.charCodeAt(r+1);(mt&64512)===56320&&r++}}if(o>i){var B=s(t,r);if(m){for(var L=r+B.length;t.charCodeAt(L)===C&&t.charCodeAt(L+1)===v;){var at=t.indexOf(">",L+2)+1;if(at)L=at;else break}L&&(L===t.length||G(t,L))&&(r+=B.length,B=t.charAt(r))}for(;B==="<"&&t.charCodeAt(r+1)===v;){var lt=h.pop(),N=lt?t.indexOf(">",r+2):-1;if(N===-1||t.replace(j,"").slice(r+2,N)!==lt)throw new Error("Invalid HTML: "+t);r=N+1,B=t.charAt(r)}if(r=0;$--){var Z=t.charCodeAt($);if(Z===b||Z===p)break;if(Z===u||Z===C){r=$;break}else if(g(Z)){r=$+(m?1:0);break}}for(var ot=t.slice(0,r)+(G(t,r)?"":m);h.length;){var At=h.pop();ot+=""}return ot}}else if(D>E){for(var st=t.slice(0,r);h.length;){var Ot=h.pop();st+=""}return st}return t}function z(t,i,a){for(var l=a.indicator,_=a.maxLines,m=l.length,E=1,o=0,D=t.length;oi));o++){var r=t.charCodeAt(o);if(r===u){if(E++,E>_)break}else if((r&64512)===55296){var M=t.charCodeAt(o+1);(M&64512)===56320&&o++}}if(m>i){var h=V(t,o);if(l){var H=o+h.length;if(H===t.length)return t;if(t.charCodeAt(H)===u)return t.slice(0,o+h.length)}if(!a.breakWords)for(var R=o-l.length;R>=0;R--){var S=t.charCodeAt(R);if(S===u){o=R,h=` `;break}else if(g(S)){o=R+(l?1:0);break}}return t.slice(0,o)+(h===` `?"":l)}else if(E>_)return t.slice(0,o);return t}function X(t,i){for(var a=t.length,l=i;l=48&&t<=57||t>=65&&t<=90||t>=97&&t<=122}function G(t,i){var a=t.charCodeAt(i);if(a===u)return!0;if(a===C){var l="("+e.join("|")+"|br)",_=new RegExp("^<"+l+`[ \f\r ]*/?>`,"i");return _.test(t.slice(i))}else return!1}function g(t){return t===9||t===10||t===12||t===13||t===32}function V(t,i){var a=t.charCodeAt(i);if((a&64512)===55296){var l=t.charCodeAt(i+1);if((l&64512)===56320)return String.fromCharCode(a,l)}return String.fromCharCode(a)}function s(t,i){var a=V(t,i);if(a==="&")for(;;){i++;var l=t.charCodeAt(i);if(K(l))a+=String.fromCharCode(l);else if(l===p){a+=String.fromCharCode(l);break}else break}return a}},66257:(n,f,e)=>{e.d(f,{Z:()=>d});var u=e(362),O=e(66022),T=e.n(O),P=e(86257);function d(v){let p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!v)return"";const C=new u.bc(v.ops,k({urlSanitizer:P.N},p));return T()(C.convert())}},91059:(n,f,e)=>{e.d(f,{Z:()=>v});var u=e(73429),O=e.n(u),T=e(7038),P=e.n(T),d=e(66257);function v(p){return O()(p,"content.content.quill")?P()((0,d.Z)(p.content.content.quill,{encodeHtml:!1}),200,{maxLines:5}):""}},50774:(n,f,e)=>{e.r(f),e.d(f,{default:()=>g});var u=e(58848),O=e.n(u),T=e(54526),P=e(24145),d=e(25198),v=e(85251),p=e(11602),C=e(91059),w=e(74718),b=e(87066),U=e(87237);const F={name:"BlogPage",extends:U.Z,metaData(){return{title:this.title,link:this.metaLink,meta:[{name:"description",content:this.description},...this.openGraphMeta],script:[this.blogMeta]}},setup(){(0,p.zA)((0,d.Z)().getTemplateId(b.p2))},asyncData(s){return ct(this,null,function*(){let{store:t,route:i}=s;const a=(0,d.Z)().getTemplateId(b.p2),{id:l}=i.params,{isPublishedSite:_,isDraft:m}=t.getters;let E;_||m?E=yield(0,v.ZP)().fetchPublishedPost({slug:l}):E=yield(0,v.ZP)().fetchDraftPost({id:l}),yield O().all([t.dispatch("fetchPage",{id:a,resourceId:E.draft_id}),U.Z.asyncData({store:t})])})},computed:nt(k(k(k({},(0,T.mapGetters)(["isPublishedSite","getResourceId"])),(0,P.rn)(v.ZP,{post:"getPost"})),(0,P.rn)(d.Z,["getTemplateId","getProperty"])),{id(){return this.getTemplateId(b.p2)},postImage(){var s,t;return(s=(t=this.post)===null||t===void 0||(t=t.image)===null||t===void 0||(t=t.image)===null||t===void 0?void 0:t.source)!==null&&s!==void 0?s:""},openGraphMeta(){var s,t,i,a;return[{property:"og:image",content:this.postImage},{property:"og:site_name",content:this.siteTitle},{property:"og:title",content:(s=(t=this.post)===null||t===void 0?void 0:t.og_title)!==null&&s!==void 0?s:this.title},{property:"og:description",content:(i=(a=this.post)===null||a===void 0?void 0:a.og_description)!==null&&i!==void 0?i:this.description},{property:"og:url",content:""}]},title(){var s,t;return(s=(t=this.post)===null||t===void 0?void 0:t.name)!==null&&s!==void 0?s:""},description(){var s;return(0,w.Z)(((s=this.post)===null||s===void 0?void 0:s.seo_page_description)||this.post&&(0,C.Z)(this.post)||"")},blogMeta(){const s={"@context":"http://schema.org/","@type":"WebPage",mainEntity:{"@type":"BlogPosting",name:this.title,image:this.postImage,description:this.post?(0,C.Z)(this.post):""}};return{innerHTML:JSON.stringify(s),type:"application/ld+json"}},siteTitle(){return this.getProperty("title")},page(){const s=this.id,t=this.getResourceId(s);return this.getFullPage(s,t)}})};var z=e(51900),X,K,G=(0,z.Z)(F,X,K,!1,null,null,null);const g=G.exports}}]);})();