1import{a as Xt,b as we}from"./chunk-H4T2MKDY.js";import{b as Me,c as Se}from"./chunk-ZM636BBC.js";import{a as F}from"./chunk-MNIOPJ64.js";import{a as Bn,b as Ln,c as In,g as Un}from"./chunk-RRK3RMBK.js";import{a as qn,b as ot,c as Wn}from"./chunk-ERVA4TTU.js";import{a as Rt}from"./chunk-AWTYTXDH.js";import{a as Z,b as Oe,c as vt,d as Kt,e as ke}from"./chunk-NMCLCL3O.js";import{a as ht}from"./chunk-I42CWRBC.js";import"./chunk-GTMD6DX7.js";import"./chunk-4GNVV7BB.js";import{a as Tn}from"./chunk-37ORVH5I.js";import{a as wn}from"./chunk-DQW54THQ.js";import"./chunk-RKFQ6FK5.js";import{e as Dt,g as Zt}from"./chunk-XCI5E7NT.js";import{b as Y}from"./chunk-YCH5BHUW.js";import{a as It,b as kn}from"./chunk-AMWCLWGM.js";import"./chunk-E4B335ZK.js";import{a as Jt,b as ye,c as Pe,m as Nn,t as Qt,u as Yt}from"./chunk-BZSBAU2V.js";import"./chunk-53ADXFIJ.js";import{b as nt,c as qt}from"./chunk-WKHGZ7VU.js";import{B as Hn,D as Gn,L as Vn,a as bt,b as We,c as En,o as An,p as $n,q as be,r as Fn,x as jn}from"./chunk-HE5VKHWB.js";import{Q as Dn,R as Rn,U as At,V as it,m as Ut}from"./chunk-2YHKLFRW.js";import{b as On}from"./chunk-DRQF3ADE.js";import{A as V,B as N,C as Mn,G as Bt,H as Wt,I as Sn,K as he,L as M,N as ft,O as Lt,P as ve,Q,W as O,e as Pn,w as G}from"./chunk-ZHJ4UNAO.js";import{a as zn,b as rt}from"./chunk-5GHYRLRS.js";import{A as fe,i as J,l as D,p as Nt,t as bn,u as yn}from"./chunk-67TKGUI5.js";import{Ac as v,Bb as h,Bc as b,C as _t,Cb as Ct,Cc as xt,E as _e,Ea as jt,Eb as fn,Ec as Tt,Fb as hn,Fc as xe,G as Ot,Hb as y,Hc as U,I as K,Ic as R,K as _n,Lc as C,Ma as ue,Mc as f,Oc as et,Q as H,Qb as m,Rb as Ht,S as mt,Sb as d,U as W,Vb as A,Wb as $,X as at,Xb as p,Yb as c,Zb as l,Zc as vn,_ as pt,_b as g,cc as Gt,db as wt,dc as Vt,ea as X,fa as ut,fc as L,g as st,gb as kt,hb as o,ia as k,j as gn,ja as x,jc as w,l as j,lc as r,mb as Cn,nb as xn,p as S,q as ie,qa as T,ra as B,vb as tt,wa as un,yc as Ce,zc as _}from"./chunk-AHHE3Q23.js";import{a as dt,b as gt}from"./chunk-EQDQRRRY.js";var Be=(()=>{class e{seoService;blogService;localizationService;sessionStorageService;constructor(t,n,i,s){this.seoService=t,this.blogService=n,this.localizationService=i,this.sessionStorageService=s}resolve(t,n){let i=JSON.parse(this.sessionStorageService.getItem("blog")||null),s=+t.queryParams.page||1,u=this.blogService.blogSortList().filter(E=>E.sortBy===t.queryParams.sort)[0]?.knex||null;return this.blogService.getBlogList({limit:bt,start:bt*(s-1),filter:t.queryParams.filter||null,lastPostId:i?.lastPostId?i.lastPostId:null,mustReadId:i?.mustReadId?i.mustReadId:null,page:s,sort:u}).pipe(Ot(1),S(E=>(this.localizationService.i18n$.next(null),E._meta.pagination.next=i?.next?i?.next:s,E._meta.pagination.prev=i?.prev?i?.prev:s>1?s:null,E)),K(()=>this.seoService.setSeo({entity:{},type:"blog",url:n.url})))}static \u0275fac=function(n){return new(n||e)(k(it),k(F),k(O),k(Z))};static \u0275prov=X({token:e,factory:e.\u0275fac})}return e})();var Ie=(()=>{class e{seoService;blogService;localizationService;errorHandlerService;sessionStorageService;constructor(t,n,i,s,u){this.seoService=t,this.blogService=n,this.localizationService=i,this.errorHandlerService=s,this.sessionStorageService=u}resolve(t,n){let i=JSON.parse(this.sessionStorageService.getItem("blogCategory")||null),s=+t.queryParams.page||1,u=t.paramMap.get("shortLink");i?.shortLink!==u&&(this.sessionStorageService.removeItem("blogCategory"),i=null);let E=this.blogService.blogSortList().filter(I=>I.sortBy===t.queryParams.sort)[0]?.knex||null;return this.blogService.getBlogCategory({shortLink:u,limit:We,start:We*(s-1),filter:t.queryParams.filter||null,lastPostId:i?.lastPostId?i.lastPostId:null,categoryId:i?.categoryId?i.categoryId:null,type:i?.type?i.type:null,page:s,sort:E}).pipe(Ot(1),S(I=>(!I?.category?.shortLink&&!i?.lastPostId&&this.errorHandlerService.generateHttpError(),I)),S(I=>{if(!i?.lastPostId){let qe=this.localizationService.getActiveLang();this.localizationService.i18n$.next({oldShortLink:I.category.shortLink,localizations:[...I.category.localizations,{locale:I.category.locale,publishedAt:I.category.publishedAt,shortLink:I.category.shortLink}]}),(!I.category.publishedAt||I.category.locale!==qe)&&this.errorHandlerService.generateHttpError("languages")}return I}),S(I=>(I.listData._meta.pagination.next=i?.next?i?.next:s,I.listData._meta.pagination.prev=i?.prev?i?.prev:s>1?s:null,I)),K(I=>this.seoService.setSeo({entity:I.category,type:"list",url:n.url})),_t(I=>this.errorHandlerService.errorHandler(I,n.url)))}static \u0275fac=function(n){return new(n||e)(k(it),k(F),k(O),k(ht),k(Z))};static \u0275prov=X({token:e,factory:e.\u0275fac})}return e})();var De=(()=>{class e{seoService;blogService;localizationService;errorHandlerService;sessionStorageService;constructor(t,n,i,s,u){this.seoService=t,this.blogService=n,this.localizationService=i,this.errorHandlerService=s,this.sessionStorageService=u}resolve(t,n){let i=JSON.parse(this.sessionStorageService.getItem("blogAuthor")||null),s=+t.queryParams.page||1;return this.blogService.getBlogAuthor({shortLink:t.paramMap.get("shortLink"),lastPostId:i?.lastPostId?i.lastPostId:null,authorId:i?.authorId?i.authorId:null,limit:bt,start:bt*(s-1),page:s}).pipe(S(u=>(!u?.author?.shortLink&&!i?.lastPostId&&this.errorHandlerService.generateHttpError(),u.listData._meta.pagination.next=i?.next?i?.next:s,u.listData._meta.pagination.prev=i?.prev?i?.prev:s>1?s:null,u)),S(u=>{if(!i?.lastPostId){let E=this.localizationService.getActiveLang();this.localizationService.i18n$.next({oldShortLink:u.author.shortLink,localizations:[...u.author.localizations,{locale:u.author.locale,publishedAt:u.author.publishedAt,shortLink:u.author.shortLink}]}),(!u.author.publishedAt||u.author.locale!==E)&&this.errorHandlerService.generateHttpError("languages")}return u}),K(u=>this.seoService.setSeo({entity:u.author,type:"list",url:n.url})),_t(u=>this.errorHandlerService.errorHandler(u,n.url)))}static \u0275fac=function(n){return new(n||e)(k(it),k(F),k(O),k(ht),k(Z))};static \u0275prov=X({token:e,factory:e.\u0275fac})}return e})();var Re=(()=>{class e{router;seoService;blogService;errorHandlerService;localizationService;sessionStorageService;response;platformId;constructor(t,n,i,s,u,E,I,qe){this.router=t,this.seoService=n,this.blogService=i,this.errorHandlerService=s,this.localizationService=u,this.sessionStorageService=E,this.response=I,this.platformId=qe}resolve(t,n){let i=JSON.parse(this.sessionStorageService.getItem("blogTag")||null),s=+t.queryParams.page||1;return this.blogService.getBlogTagPage({shortLink:t.paramMap.get("shortLink"),lastPostId:i?.lastPostId?i.lastPostId:null,tagId:i?.tagId?i.tagId:null,limit:bt,start:bt*(s-1),page:s}).pipe(S(u=>(!u?.tag?.shortLink&&!i?.lastPostId?this.errorHandlerService.generateHttpError():!u.listData?.last?.shortLink&&!u.listData?.data?.length&&(yn(this.platformId)&&this.response.status(301),this.router.navigate(this.localizationService.getLocalizedRoute(["blog"]))),u)),S(u=>{if(!i?.lastPostId){let E=this.localizationService.getActiveLang();this.localizationService.i18n$.next({oldShortLink:u.tag.shortLink,localizations:[...u.tag.localizations,{locale:u.tag.locale,publishedAt:u.tag.publishedAt,shortLink:u.tag.shortLink}]}),(!u.tag.publishedAt||u.tag.locale!==E)&&this.errorHandlerService.generateHttpError("languages")}return u}),S(u=>(u.listData._meta.pagination.next=i?.next?i?.next:s,u.listData._meta.pagination.prev=i?.prev?i?.prev:s>1?s:null,u)),K(u=>this.seoService.setSeo({entity:u.tag,type:"list",url:n.url})),_t(u=>this.errorHandlerService.errorHandler(u,n.url)))}static \u0275fac=function(n){return new(n||e)(k(V),k(it),k(F),k(ht),k(O),k(Z),k(On,8),k(ue))};static \u0275prov=X({token:e,factory:e.\u0275fac})}return e})();var $t=(function(e){return e.recentPostOne="recent-post-one",e.recentPostTwo="recent-post-two",e.mustRead="blog-item--must-read",e.guide="guide",e})($t||{}),ae=(function(e){return e.category="category",e.author="author",e.tags="tags",e})(ae||{});var Qe=(()=>{class e{video;environmentService=x(fe);replaceDomains(t){if(t)return t.replace(this.environmentService.get("awsUrl"),this.environmentService.get("imageUrl"))}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=h({type:e,selectors:[["mgs-video"]],inputs:{video:"video"},standalone:!1,decls:3,vars:3,consts:[[1,"video-wrap"],["autoplay","","loop","",1,"video",3,"muted"],[3,"src","type"]],template:function(n,i){n&1&&(c(0,"div",0)(1,"video",1),g(2,"source",2),l()()),n&2&&(o(),p("muted",!0),o(),p("src",i.replaceDomains(i.video.url),wt)("type",i.video.mime))},styles:["[_nghost-%COMP%]{width:100%;height:100%}.video[_ngcontent-%COMP%]{width:100%;height:100%;object-fit:cover}.video-wrap[_ngcontent-%COMP%]{width:100%;height:100%;display:flex;align-items:center;justify-content:center}.video-spinner[_ngcontent-%COMP%]{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}"],changeDetection:0})}return e})();function Pi(e,a){if(e&1&&g(0,"mgs-video",0),e&2){let t=r();p("video",t.media)}}function Mi(e,a){if(e&1&&g(0,"mgs-picture",1),e&2){let t=r();p("image",t.media)("hover",t.imageHover)("formats",t.imageFormats)("priority",!0)}}var Pt=(()=>{class e{media;imageHover=!1;imageFormats=$n;isVideoSub=new st(!1);isVideo$=this.isVideoSub.asObservable();ngOnChanges(t){t.media&&this.isVideoSub.next(this.detectVideo(this.media.ext))}detectVideo(t){return t&&[".mp4",".ogv",".webm"].indexOf(t)!==-1}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=h({type:e,selectors:[["mgs-media"]],inputs:{media:"media",imageHover:"imageHover",imageFormats:"imageFormats"},standalone:!1,features:[jt],decls:3,vars:3,consts:[[3,"video"],[1,"picture",3,"image","hover","formats","priority"]],template:function(n,i){n&1&&(m(0,Pi,1,1,"mgs-video",0),C(1,"async"),Ht(2,Mi,1,4,"mgs-picture",1)),n&2&&d(f(1,1,i.isVideo$)?0:2)},dependencies:[rt,Qe,D],styles:["[_nghost-%COMP%]{width:100%;height:100%}.picture[_ngcontent-%COMP%]{width:100%;height:100%}"],changeDetection:0})}return e})();function Si(e,a){if(e&1&&(c(0,"div",1)(1,"span",2),_(2),l()()),e&2){let t=a.$implicit;o(2),v(t("label"))}}var Ft=(()=>{class e{constructor(){}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=h({type:e,selectors:[["mgs-guide-label"]],standalone:!1,decls:1,vars:2,consts:[["class","guide-label",4,"transloco","translocoScope","translocoRead"],[1,"guide-label"],[1,"guide-label-text"]],template:function(n,i){n&1&&y(0,Si,3,1,"div",0),n&2&&p("translocoScope","guide")("translocoRead","guide")},dependencies:[M],styles:[".guide-label[_ngcontent-%COMP%]{text-align:center;display:block;min-width:90px;padding:0 25px;background-color:#ff6d70;border-radius:4px 0 0 3px;text-decoration:none}.guide-label-text[_ngcontent-%COMP%]{color:#fff;font-size:12px;font-weight:600;line-height:36px;text-transform:uppercase;letter-spacing:.6px;text-decoration:none}"],changeDetection:0})}return e})();var Mt=(()=>{class e{views=0;static \u0275fac=function(n){return new(n||e)};static \u0275cmp=h({type:e,selectors:[["mgs-post-views"]],inputs:{views:"views"},standalone:!1,decls:5,vars:1,consts:[[1,"views"],[1,"views__ico"],["svgIcon","eye","aria-hidden","false","aria-label","Heart icon"],[1,"views__val"]],template:function(n,i){n&1&&(c(0,"div",0)(1,"div",1),g(2,"mat-icon",2),l(),c(3,"div",3),_(4),l()()),n&2&&(o(4),v(i.views))},dependencies:[nt],styles:[".views__val[_ngcontent-%COMP%]{font-size:12px;line-height:1.3333;font-weight:600;letter-spacing:.05em}.views[_ngcontent-%COMP%]{display:flex;align-items:center;padding:0 10px;background:#0000003d;height:36px}.views__ico[_ngcontent-%COMP%]{margin-right:10px}.views__val[_ngcontent-%COMP%]{line-height:24px;color:#fff}"],changeDetection:0})}return e})();var lt=(()=>{class e{transform(t){return t?.length?Math.ceil(t.split(/\S+/).length/200):0}static \u0275fac=function(n){return new(n||e)};static \u0275pipe=fn({name:"readTime",type:e,pure:!0,standalone:!1})}return e})();var Oi=e=>({guide:e}),wi=()=>({dateStyle:"medium"});function ki(e,a){if(e&1&&(c(0,"div",2)(1,"div",5),_(2),l()()),e&2){let t=r(2).$implicit;o(2),v(t("blog.must-read"))}}function Ti(e,a){if(e&1&&(c(0,"div",5),_(1),l()),e&2){let t=r(2).$implicit;o(),v(t("blog.must-read"))}}function Bi(e,a){if(e&1&&g(0,"mgs-post-views",6),e&2){let t=r(3);p("views",t.item.impressions)}}function Li(e,a){e&1&&(c(0,"div",7),g(1,"mgs-guide-label"),l())}function Ii(e,a){if(e&1&&(c(0,"div",8)(1,"div",21),_(2),C(3,"readTime"),l()()),e&2){let t=r(2).$implicit,n=r();p("ngClass",R(5,Oi,n.item.type==="guide")),o(2),xt(" ",f(3,3,n.getAllContent(n.item))," ",t("blog.min-read")," ")}}function Di(e,a){if(e&1&&g(0,"mgs-media",9),e&2){let t=r(3);p("imageHover",!0)("media",t.item.image)}}function Ri(e,a){if(e&1){let t=L();c(0,"a",22),w("click",function(i){T(t);let s=r(3);return B(s.goToURL(i,s.item.category.shortLink,s.typeUrl.category))}),_(1),l()}if(e&2){let t=r(3);p("routerLink",t.getRoute(t.item.category.shortLink,t.typeUrl.category)),o(),b(" ",t.item.category.name," ")}}function Ei(e,a){if(e&1){let t=L();c(0,"a",23),w("click",function(i){T(t);let s=r(3);return B(s.goToURL(i,s.item.author.shortLink,s.typeUrl.author))}),_(1),l()}if(e&2){let t=r(3);p("routerLink",t.getRoute(t.item.author.shortLink,t.typeUrl.author)),o(),b(" ",t.item.author.name," ")}}function Ai(e,a){if(e&1&&(c(0,"a",16),_(1),C(2,"markdownSlice"),l()),e&2){let t=r(3);p("routerLink",t.getRoute(t.item.shortLink)),o(),b(" ",et(2,2,t.item.name,0,t.blogCategory||t.blogAuthor?40:60)," ")}}function $i(e,a){if(e&1&&(g(0,"markdown",24),C(1,"markdownSlice")),e&2){let t=r(4);p("data",et(1,1,t.item.content,0,94))}}function Fi(e,a){if(e&1&&(c(0,"div",17),m(1,$i,2,5,"markdown",24),l()),e&2){let t=r(3);o(),d(t.item!=null&&t.item.content?1:-1)}}function zi(e,a){if(e&1&&(c(0,"div",19),g(1,"mgs-author",25),C(2,"readTime"),l()),e&2){let t=r(3);o(),p("author",t.item==null?null:t.item.author)("readTime",f(2,3,t.item.content))("publishDate",t.item==null?null:t.item.publishDate)}}function ji(e,a){e&1&&(c(0,"span",26),_(1," \u2022 "),l())}function Hi(e,a){if(e&1){let t=L();c(0,"div",20)(1,"a",23),w("click",function(i){T(t);let s=r(3);return B(s.goToURL(i,s.item.author.shortLink,s.typeUrl.author))}),_(2),l(),m(3,ji,2,0,"span",26),l()}if(e&2){let t=r(3);o(),p("routerLink",t.getRoute(t.item.author.shortLink,t.typeUrl.author)),o(),b(" ",t.item==null||t.item.author==null?null:t.item.author.name," "),o(),d(t.blogSearch&&(!(t.item==null||t.item.author==null)&&t.item.author.name)?3:-1)}}function Gi(e,a){if(e&1&&(c(0,"span"),_(1),C(2,"readTime"),l()),e&2){let t=r(4).$implicit,n=r();o(),xt(" \u2022 ",f(2,2,n.getAllContent(n.item))," ",t("blog.min-read"))}}function Vi(e,a){if(e&1&&(c(0,"div",28),_(1),C(2,"translocoDate"),m(3,Gi,3,4,"span"),l()),e&2){let t=r(4);o(),b(" ",et(2,2,t.item==null?null:t.item.publishDate,U(6,wi),a)," "),o(2),d(!(t.
1item==null||t.item.content==null)&&t.item.content.length?3:-1)}}function Ni(e,a){if(e&1&&(c(0,"div",12)(1,"div",27),m(2,Vi,4,7,"div",28),C(3,"async"),l()()),e&2){let t,n=r(3);o(2),d((t=f(3,1,n.activeLang$))?2:-1,t)}}function Ui(e,a){if(e&1){let t=L();c(0,"div",1),m(1,ki,3,1,"div",2),c(2,"a",3)(3,"div",4),m(4,Ti,2,1,"div",5),m(5,Bi,1,1,"mgs-post-views",6),l(),m(6,Li,2,0,"div",7),m(7,Ii,4,7,"div",8),m(8,Di,1,2,"mgs-media",9),l(),c(9,"div",10),w("click",function(i){T(t);let s=r(2);return B(s.goToLink(i))}),c(10,"div",11)(11,"div",12),m(12,Ri,2,2,"a",13),m(13,Ei,2,2,"a",14),l()(),c(14,"div",15)(15,"div",12),m(16,Ai,3,6,"a",16),m(17,Fi,2,1,"div",17),l()(),c(18,"div",18),m(19,zi,3,5,"div",19),m(20,Hi,4,3,"div",20),m(21,Ni,4,3,"div",12),l()()()}if(e&2){let t=r(2);o(),d(t.type===t.blogListItemType.mustRead?1:-1),o(),p("routerLink",t.getRoute(t.item.shortLink)),o(2),d(t.type===t.blogListItemType.mustRead?4:-1),o(),d(t.item!=null&&t.item.impressions?5:-1),o(),d(t.item.type==="guide"?6:-1),o(),d(!(t.item==null||t.item.content==null)&&t.item.content.length?7:-1),o(),d(!(t.item==null||t.item.image==null||t.item.image.url==null)&&t.item.image.url.length?8:-1),o(4),d(!t.blogCategory&&(!(t.item==null||t.item.category==null)&&t.item.category.name)?12:-1),o(),d(t.blogCategory&&(!(t.item==null||t.item.author==null)&&t.item.author.name)&&(t.item.author!=null&&t.item.author.shortLink)?13:-1),o(3),d(t.item!=null&&t.item.name?16:-1),o(),d(t.blogCategory||t.blogSearch?17:-1),o(2),d(t.type===t.blogListItemType.mustRead?19:-1),o(),d(!t.blogCategory&&(!(t.item==null||t.item.author==null)&&t.item.author.name)&&(!(t.item==null||t.item.author==null)&&t.item.author.shortLink)&&t.type!==t.blogListItemType.mustRead?20:-1),o(),d(t.type!==t.blogListItemType.mustRead?21:-1)}}function qi(e,a){if(e&1&&(c(0,"div"),m(1,Ui,22,14,"div",1),l()),e&2){let t=r();Ce(xe("blog-item ",t.classList)),o(),d(t.item?1:-1)}}var ct=(()=>{class e{item;type;blogCategory=!1;blogAuthor=!1;blogSearch=!1;classList;router=x(V);localizationService=x(O);toolsService=x(Q);url$=this.localizationService.rootUrl$.pipe(S(t=>t+"blog/"+this.item.shortLink));typeUrl=ae;blogListItemType=$t;activeLang$=this.localizationService.activeLang$;goToURL(t,n,i){t.stopPropagation(),this.router.navigate(this.getRoute(n,i))}goToLink(t){["blog-item__cat","blog-item__author","blog-item__title"].some(i=>t.target.className.indexOf(i)===-1)&&(t.stopPropagation(),this.router.navigate(this.getRoute(this.item.shortLink)))}getRoute(t,n){let i=n?["blog",n,t]:["blog",t];return this.localizationService.getLocalizedRoute(i)}getAllContent(t){return this.toolsService.getAllContent(t)}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=h({type:e,selectors:[["mgs-blog-list-item"]],inputs:{item:"item",type:"type",blogCategory:"blogCategory",blogAuthor:"blogAuthor",blogSearch:"blogSearch",classList:"classList"},standalone:!1,decls:1,vars:0,consts:[[3,"class",4,"transloco"],[1,"blog-item__wrapper"],[1,"blog-item__marked"],[1,"blog-item__header",3,"routerLink"],[1,"blog-item__views"],[1,"item-label","item-label--white"],[3,"views"],[1,"blog-item__guide-label"],[1,"blog-item__read-time",3,"ngClass"],[3,"imageHover","media"],[1,"blog-item__body",3,"click"],[1,"blog-item__row","blog-item__top"],[1,"blog-item__cell"],[1,"blog-item__cat",3,"routerLink"],[1,"blog-item__author",3,"routerLink"],[1,"blog-item__row","blog-item__middle"],[1,"blog-item__title",3,"routerLink"],[1,"blog-item__text"],[1,"blog-item__row","blog-item__bottom"],[1,"blog-item__cell","blog-item__author-containe"],[1,"blog-item__cell","blog-item__author-container"],[1,"item-label","item-label--black"],[1,"blog-item__cat",3,"click","routerLink"],[1,"blog-item__author",3,"click","routerLink"],[1,"markdown","markdown-blog-list",3,"data"],["type","card",3,"author","readTime","publishDate"],[1,"blog-item__cell-sep"],[1,"blog-item__date"],[1,"post-date"]],template:function(n,i){n&1&&y(0,qi,2,4,"div",0)},dependencies:[J,N,Dt,ot,M,Pt,Ft,Mt,D,Lt,At,lt],styles:[".blog-item__cell-sep[_ngcontent-%COMP%], .blog-item__author[_ngcontent-%COMP%]{font-size:14px;line-height:1.3571;font-weight:600}
1.blog-item__cat[_ngcontent-%COMP%]{font-size:12px;line-height:1.3333;letter-spacing:.05em;font-weight:600;color:#ff6d70;text-transform:uppercase}.blog-item[_ngcontent-%COMP%] .markdown[_ngcontent-%COMP%]{padding-bottom:0}.blog-item__wrapper[_ngcontent-%COMP%]{display:block;position:relative;text-decoration:none;margin:0 auto;background:#e7eff1;transition:box-shadow background cubic-bezier(.4,0,.2,1)}.blog-item__wrapper[_ngcontent-%COMP%]:hover{box-shadow:0 8px 48px #00000017;background:#fff;cursor:pointer}.blog-item__wrapper[_ngcontent-%COMP%]:hover .image-overlay{z-index:1;opacity:1}.blog-item__wrapper[_ngcontent-%COMP%]:hover .blog-item__title[_ngcontent-%COMP%]{color:#0f4b81;text-decoration:none}@media (min-width: 767px){.blog-item__wrapper[_ngcontent-%COMP%]{max-width:445px;min-height:488px}}@media (max-width: 766.98px){.blog-item__wrapper[_ngcontent-%COMP%]{max-width:375px;min-height:414px}}.blog-item__views[_ngcontent-%COMP%]{position:absolute;z-index:2}@media (min-width: 767px){.blog-item__views[_ngcontent-%COMP%]{top:20px;left:20px;display:flex}}@media (max-width: 766.98px){.blog-item__views[_ngcontent-%COMP%]{top:10px;left:10px}}.blog-item__guide-label[_ngcontent-%COMP%]{position:absolute;z-index:2;top:20px;right:-10px}@media (max-width: 766.98px){.blog-item__guide-label[_ngcontent-%COMP%]{right:0}}.blog-item__read-time[_ngcontent-%COMP%]{display:none}.blog-item__header[_ngcontent-%COMP%]{height:234px;max-height:234px;overflow:hidden;background:#577e8f}@media (max-width: 766.98px){.blog-item__header[_ngcontent-%COMP%]{height:197px}}.blog-item__body[_ngcontent-%COMP%]{padding:24px 30px;display:flex;flex-direction:column;min-height:254px}@media (max-width: 766.98px){.blog-item__body[_ngcontent-%COMP%]{min-height:auto}}.blog-item__row[_ngcontent-%COMP%]{display:flex}.blog-item__cell[_ngcontent-%COMP%]{width:50%;display:flex;flex-wrap:wrap}.blog-item__cell[_ngcontent-%COMP%]:last-child{justify-content:flex-end}.blog-item__cell[_ngcontent-%COMP%]:only-of-type{width:100%;justify-content:flex-start}.blog-item__cell-sep[_ngcontent-%COMP%]{margin:0 .2em;color:#777}.blog-item__cat[_ngcontent-%COMP%]{margin-top:5px}.blog-item__counters[_ngcontent-%COMP%]{display:flex}.blog-item__title[_ngcontent-%COMP%]{font-size:24px;line-height:32px;font-weight:600;color:#333}.blog-item__text[_ngcontent-%COMP%]{color:#333;font-size:16px;line-height:24px}.blog-item__author[_ngcontent-%COMP%]{color:#333}.blog-item__top[_ngcontent-%COMP%]{margin-bottom:15px}.blog-item__bottom[_ngcontent-%COMP%]{margin-top:auto}@media (max-width: 766.98px){.blog-item__bottom[_ngcontent-%COMP%]{margin-top:30px}}.blog-item--main-list[_ngcontent-%COMP%] .blog-item__header[_ngcontent-%COMP%]{height:234px}@media (max-width: 766.98px){.blog-item--main-list[_ngcontent-%COMP%] .blog-item__header[_ngcontent-%COMP%]{height:197px}}@media (min-width: 767px){.blog-item--main-list[_ngcontent-%COMP%] .blog-item__read-time[_ngcontent-%COMP%]{display:none}}@media (max-width: 766.98px){.blog-item--main-list[_ngcontent-%COMP%] .blog-item__read-time[_ngcontent-%COMP%]{display:block;position:absolute;right:30px;top:20px;z-index:2}}.blog-item--main-list[_ngcontent-%COMP%] .blog-item__read-time.guide[_ngcontent-%COMP%]{display:none}@media (max-width: 766.98px){.blog-item--main-list[_ngcontent-%COMP%] .blog-item__views[_ngcontent-%COMP%]{top:20px;left:20px}}.blog-item--category[_ngcontent-%COMP%]{margin-bottom:60px;padding:0 15px}@media (max-width: 766.98px){.blog-item--category[_ngcontent-%COMP%]{padding:0;margin-bottom:0}}.blog-item--category[_ngcontent-%COMP%] .blog-item__wrapper[_ngcontent-%COMP%]{min-height:534px;background:#f5f9f9}@media (max-width: 766.98px){.blog-item--category[_ngcontent-%COMP%] .blog-item__wrapper[_ngcontent-%COMP%]{min-height:auto}}.blog-item--category[_ngcontent-%COMP%] .blog-item__wrapper[_ngcontent-%COMP%]:hover{background:#fff}.blog-item--category[_ngcontent-%COMP%] .blog-item__header[_ngcontent-%COMP%]{height:184px}@media (max-width: 766.98px){.blog-item--category[_ngcontent-%COMP%] .blog-item__header[_ngcontent-%COMP%]{height:165px}}.blog-item--category[_ngcontent-%COMP%] .blog-item__body[_ngcontent-%COMP%]{min-height:350px;padding:29px 30px}@media (max-width: 766.98px){.blog-item--category[_ngcontent-%COMP%] .blog-item__body[_ngcontent-%COMP%]{padding:20px;min-height:auto}}.blog-item--category[_ngcontent-%COMP%] .blog-item__top[_ngcontent-%COMP%]{margin-bottom:12px}.blog-item--category[_ngcontent-%COMP%] .blog-item__counters[_ngcontent-%COMP%]{position:relative;top:-6px}.blog-item--category[_ngcontent-%COMP%] .blog-item__author[_ngcontent-%COMP%]{color:#7
177}.blog-item--category[_ngcontent-%COMP%] .blog-item__title[_ngcontent-%COMP%]{font-size:22px;line-height:30px;margin-bottom:42px}@media (max-width: 766.98px){.blog-item--category[_ngcontent-%COMP%] .blog-item__title[_ngcontent-%COMP%]{margin-bottom:20px}}.blog-item--category[_ngcontent-%COMP%] .blog-item__bottom[_ngcontent-%COMP%]{padding-top:15px;border-top:1px solid #D1D1D4}.blog-item--category.blog-item--big[_ngcontent-%COMP%] .blog-item__wrapper[_ngcontent-%COMP%]{background:#e7eff1}@media (min-width: 767px){.blog-item--search[_ngcontent-%COMP%]{margin-bottom:30px}}@media (max-width: 766.98px){.blog-item--search[_ngcontent-%COMP%]{margin-bottom:20px}}.blog-item--search[_ngcontent-%COMP%] .blog-item__wrapper[_ngcontent-%COMP%]{max-width:100%;min-height:auto;display:flex;background:#fff}.blog-item--search[_ngcontent-%COMP%] .blog-item__wrapper[_ngcontent-%COMP%]:hover{background:#e7eff1}@media (max-width: 766.98px){.blog-item--search[_ngcontent-%COMP%] .blog-item__wrapper[_ngcontent-%COMP%]{flex-wrap:wrap}}.blog-item--search[_ngcontent-%COMP%] .blog-item__header[_ngcontent-%COMP%]{height:255px;width:100%}@media (min-width: 767px){.blog-item--search[_ngcontent-%COMP%] .blog-item__header[_ngcontent-%COMP%]{max-width:255px;max-height:255px}}@media (max-width: 766.98px){.blog-item--search[_ngcontent-%COMP%] .blog-item__header[_ngcontent-%COMP%]{max-height:128px}}.blog-item--search[_ngcontent-%COMP%] .blog-item__body[_ngcontent-%COMP%]{padding:26px 30px 29px;display:flex;flex-direction:column;justify-content:space-between;min-height:0;width:100%}.blog-item--search[_ngcontent-%COMP%] .blog-item__title[_ngcontent-%COMP%]{margin-bottom:7px}.blog-item--search[_ngcontent-%COMP%] .blog-item__bottom[_ngcontent-%COMP%] .blog-item__cell[_ngcontent-%COMP%]{width:auto}.blog-item--search[_ngcontent-%COMP%] .blog-item__author[_ngcontent-%COMP%]{color:#777}.blog-item--search[_ngcontent-%COMP%] .blog-item__date[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{display:none}.blog-item-by[_ngcontent-%COMP%] .blog-item__wrapper[_ngcontent-%COMP%]{background:#fff}.blog-item-by[_ngcontent-%COMP%] .blog-item__wrapper[_ngcontent-%COMP%]:hover{background:#e7eff1}.blog-item-by[_ngcontent-%COMP%] .blog-item__header[_ngcontent-%COMP%]{height:184px}@media (max-width: 766.98px){.blog-item-by[_ngcontent-%COMP%] .blog-item__header[_ngcontent-%COMP%]{height:165px}}.blog-item-by[_ngcontent-%COMP%] .blog-item__title[_ngcontent-%COMP%]{margin-bottom:20px}.blog-item-by[_ngcontent-%COMP%] .blog-item__text[_ngcontent-%COMP%]{margin-bottom:40px}@media (max-width: 766.98px){.blog-item-by[_ngcontent-%COMP%] .blog-item__text[_ngcontent-%COMP%]{margin-bottom:0}}.blog-item-by[_ngcontent-%COMP%] .blog-item__bottom[_ngcontent-%COMP%] .blog-item__cell[_ngcontent-%COMP%]{width:100%;justify-content:flex-start}.blog-item-by[_ngcontent-%COMP%] .blog-item__author-container[_ngcontent-%COMP%]{display:none}@media (min-width: 767px){.blog-item--big[_ngcontent-%COMP%] .blog-item__wrapper[_ngcontent-%COMP%]{max-width:100%;min-height:333px;display:flex}.blog-item--big[_ngcontent-%COMP%] .blog-item__top[_ngcontent-%COMP%]{margin-bottom:30px}.blog-item--big[_ngcontent-%COMP%] .blog-item__text[_ngcontent-%COMP%]{margin-bottom:60px}.blog-item--big[_ngcontent-%COMP%] .blog-item__header[_ngcontent-%COMP%]{width:50%;max-width:550px;max-height:100%;height:auto}.blog-item--big[_ngcontent-%COMP%] .blog-item__body[_ngcontent-%COMP%]{width:50%;min-height:auto}}@media (max-width: 766.98px){.blog-item--big[_ngcontent-%COMP%]{width:calc(100% + 60px);margin-left:-30px;margin-right:-30px}.blog-item--big[_ngcontent-%COMP%] .blog-item__bottom[_ngcontent-%COMP%]{padding-top:15px;border-top:1px solid #D1D1D4}}.blog-item--must-read[_ngcontent-%COMP%]{margin-top:70px;margin-bottom:70px;max-width:100%;display:flex;min-height:290px}@media (min-width: 767px){.blog-item--must-read[_ngcontent-%COMP%] .blog-item__wrapper[_ngcontent-%COMP%]{max-width:100%;max-height:290px;min-height:290px;display:flex}.blog-item--must-read[_ngcontent-%COMP%] .blog-item__wrapper[_ngcontent-%COMP%]:hover{background:#0f4b81}.blog-item--must-read[_ngcontent-%COMP%] .blog-item__wrapper[_ngcontent-%COMP%]:hover .blog-item__title[_ngcontent-%COMP%]{color:#fff}.blog-item--must-read[_ngcontent-%COMP%] .blog-item__header[_ngcontent-%COMP%]{height:100%;width:50%;max-width:none;max-height:290px}.blog-item--must-read[_ngcontent-%COMP%] .blog-item__body[_ngcontent-%COMP%]{padding:26px 30px;
1display:flex;flex-direction:column;justify-content:space-between;min-height:100%;width:50%}.blog-item--must-read[_ngcontent-%COMP%] .blog-item__top[_ngcontent-%COMP%]{margin-bottom:40px}.blog-item--must-read[_ngcontent-%COMP%] .blog-item__marked[_ngcontent-%COMP%]{display:none}.blog-item--must-read[_ngcontent-%COMP%] .item-label[_ngcontent-%COMP%]{margin-right:10px}}@media (max-width: 766.98px){.blog-item--must-read[_ngcontent-%COMP%] .blog-item__marked[_ngcontent-%COMP%]{padding:17px 14px;background:#00c}.blog-item--must-read[_ngcontent-%COMP%] .item-label[_ngcontent-%COMP%]{background:transparent;color:#fff}.blog-item--must-read[_ngcontent-%COMP%] .blog-item__header[_ngcontent-%COMP%]{display:block;position:relative}.blog-item--must-read[_ngcontent-%COMP%] .blog-item__views[_ngcontent-%COMP%]{left:20px;top:20px}.blog-item--must-read[_ngcontent-%COMP%] .blog-item__views[_ngcontent-%COMP%] .item-label[_ngcontent-%COMP%]{display:none}}.blog-item--must-read[_ngcontent-%COMP%] .blog-item__wrapper[_ngcontent-%COMP%]{background:#00c;color:#fff}.blog-item--must-read[_ngcontent-%COMP%] .blog-item__wrapper[_ngcontent-%COMP%]:hover .blog-item__title[_ngcontent-%COMP%], .blog-item--must-read[_ngcontent-%COMP%] .blog-item__title[_ngcontent-%COMP%], .blog-item--must-read[_ngcontent-%COMP%] .blog-item__author[_ngcontent-%COMP%], .blog-item--must-read[_ngcontent-%COMP%] .post-date[_ngcontent-%COMP%], .blog-item--must-read[_ngcontent-%COMP%] .counter[_ngcontent-%COMP%]{color:#fff}.blog-item--no-padding[_ngcontent-%COMP%]{padding:0;margin:0}"],changeDetection:0})}return e})();var Wi=()=>({dateStyle:"medium"});function Ji(e,a){if(e&1&&g(0,"mgs-media",2),e&2){let t=r(2);p("imageFormats",t.imgFormats)("media",t.post.image)}}function Qi(e,a){if(e&1&&g(0,"mgs-post-views",4),e&2){let t=r(2);p("views",t.post.impressions)}}function Yi(e,a){e&1&&(c(0,"div",5),g(1,"mgs-guide-label"),l())}function Zi(e,a){if(e&1){let t=L();c(0,"a",16),w("click",function(i){T(t);let s=r(2);return B(s.goToURL(i,s.post.category.shortLink,s.typeUrl.category))}),_(1),l()}if(e&2){let t=r(2);p("routerLink",t.getRoute(t.post.category.shortLink,t.typeUrl.category)),o(),b(" ",t.post.category==null?null:t.post.category.name," ")}}function Ki(e,a){if(e&1&&(c(0,"a",11),_(1),C(2,"markdownSlice"),l()),e&2){let t=r(2);p("routerLink",t.getRoute(t.post.shortLink)),o(),b(" ",et(2,2,t.post.name,0,80)," ")}}function Xi(e,a){if(e&1&&(c(0,"div",12),g(1,"markdown",17),C(2,"markdownSlice"),l()),e&2){let t=r(2);o(),p("data",et(2,1,t.post.content,0,100))}}function to(e,a){if(e&1){let t=L();c(0,"a",18),w("click",function(i){T(t);let s=r(2);return B(s.goToURL(i,s.post.author.shortLink,s.typeUrl.author))}),_(1),l()}if(e&2){let t=r(2);p("routerLink",t.getRoute(t.post.author.shortLink,t.typeUrl.author)),o(),b(" ",t.post.author.name," ")}}function eo(e,a){if(e&1&&(c(0,"span",15),_(1),C(2,"translocoDate"),l()),e&2){let t=r(2);o(),b(" \u2022 ",et(2,1,t.post.publishDate,U(5,Wi),a)," ")}}function no(e,a){if(e&1){let t=L();c(0,"div",0)(1,"a",1),m(2,Ji,1,2,"mgs-media",2),c(3,"div",3),m(4,Qi,1,1,"mgs-post-views",4),l(),m(5,Yi,2,0,"div",5),l(),c(6,"div",6),w("click",function(i){T(t);let s=r();return B(s.goToLink(i))}),c(7,"div",7),m(8,Zi,2,2,"a",8),g(9,"div",9),c(10,"div",10),m(11,Ki,3,6,"a",11),m(12,Xi,3,5,"div",12),l()(),c(13,"div",13),m(14,to,2,2,"a",14),m(15,eo,3,6,"span",15),C(16,"async"),l()()()}if(e&2){let t,n=r();o(),p("routerLink",n.getRoute(n.post.shortLink)),o(),d(!(n.post==null||n.post.image==null||n.post.image.url==null)&&n.post.image.url.length?2:-1),o(2),d(n.post.impressions?4:-1),o(),d(n.post.type==="guide"?5:-1),o(3),d(n.post.category!=null&&n.post.category.name?8:-1),o(3),d(n.post.name!=null&&n.post.name.length?11:-1),o(),d(n.post.content!=null&&n.post.content.length?12:-1),o(2),d(n.post.author!=null&&n.post.author.shortLink&&(n.post.author!=null&&n.post.author.name)?14:-1),o(),d((t=f(16,9,n.post.publishDate&&n.activeLang$))?15:-1,t)}}var en=(()=>{class e{post;router=x(V);localizationService=x(O);typeUrl=ae;activeLang$=this.localizationService.activeLang$;imgFormats=be;goToURL(t,n,i){t.stopPropagation(),this.router.navigate(this.getRoute(n,i))}getRoute(t,n){let i=n?["blog",n,t]:["blog",t];return this.localizationService.getLocalizedRoute(i)}goToLink(t){["blog-related-item__cat","blog-related-item__author","blog-related-item__title"].some(i=>t.target.className.indexOf(i)===-1)&&(t.stopPropagation(),this.router.navigate(this.getRoute(this.post.shortLink)))}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=h({type:e,selectors:[["mgs-blog-related-posts-item"]],inputs:{post:"post"},standalone:!1,decls:1,vars:1,consts:[[1,"blog-related-item"],[1,"blog-related-item__img-wrap",3,"routerLink"],[3,"imageFormats","media"],[1,"blog-related-item__views"],[3,"views"],[1,"blog-related-item__guide
1-label"],[1,"blog-related-item__body",3,"click"],[1,"blog-related-item__data"],[1,"blog-related-item__cat",3,"routerLink"],[1,"blog-related-item__counters"],[1,"blog-related-item__text-prev"],[1,"blog-related-item__title",3,"routerLink"],[1,"blog-related-item__text"],[1,"blog-related-item__footer"],[1,"blog-related-item__author",3,"routerLink"],[1,"blog-related-item__date"],[1,"blog-related-item__cat",3,"click","routerLink"],[1,"markdown","markdown-blog-list",3,"data"],[1,"blog-related-item__author",3,"click","routerLink"]],template:function(n,i){n&1&&m(0,no,17,11,"div",0),n&2&&d(i.post?0:-1)},dependencies:[N,Dt,Pt,Ft,Mt,D,Lt,At],styles:[".blog-related-item__text[_ngcontent-%COMP%]{font-size:16px;line-height:1.5}.blog-related-item__footer[_ngcontent-%COMP%]{font-size:14px;line-height:1.3571;font-weight:600}.blog-related-item__cat[_ngcontent-%COMP%]{font-size:12px;line-height:1.3333;letter-spacing:.05em;font-weight:600;color:#ff6d70;text-transform:uppercase}.blog-related-item[_ngcontent-%COMP%]{display:block;position:relative;text-decoration:none;color:#333;margin:0 auto 60px}.blog-related-item[_ngcontent-%COMP%]:hover{cursor:pointer}@media (max-width: 766.98px){.blog-related-item[_ngcontent-%COMP%]{background:#fff;max-width:350px}}.blog-related-item__img-wrap[_ngcontent-%COMP%]{position:relative;display:block;height:184px;background:#577e8f}@media (min-width: 767px){.blog-related-item__img-wrap[_ngcontent-%COMP%]{margin-bottom:30px}}@media (max-width: 766.98px){.blog-related-item__img-wrap[_ngcontent-%COMP%]{margin-bottom:9px}}.blog-related-item__img[_ngcontent-%COMP%]{object-fit:cover;width:100%;height:100%}.blog-related-item__views[_ngcontent-%COMP%]{position:absolute;top:10px;left:10px}.blog-related-item__guide-label[_ngcontent-%COMP%]{position:absolute;top:10px;right:-10px;z-index:2}@media (max-width: 766.98px){.blog-related-item__body[_ngcontent-%COMP%]{padding:20px 0 11px}}.blog-related-item__data[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap}.blog-related-item__cat[_ngcontent-%COMP%]{width:50%}.blog-related-item__counters[_ngcontent-%COMP%]{width:50%;display:flex;justify-content:flex-end;position:relative;top:-6px}.blog-related-item__text-prev[_ngcontent-%COMP%]{width:100%}@media (min-width: 767px){.blog-related-item__text-prev[_ngcontent-%COMP%]{margin-top:9px;min-height:232px}}@media (max-width: 766.98px){.blog-related-item__text-prev[_ngcontent-%COMP%]{margin-top:15px}}.blog-related-item__title[_ngcontent-%COMP%]{font-size:22px;line-height:30px;font-weight:600;color:inherit;display:block;margin:0 0 42px;min-height:60px}.blog-related-item__title[_ngcontent-%COMP%]:hover{text-decoration:none}@media (min-width: 767px){.blog-related-item__text[_ngcontent-%COMP%]{margin-bottom:48px}}@media (max-width: 766.98px){.blog-related-item__text[_ngcontent-%COMP%]{margin-bottom:40px}}.blog-related-item[_ngcontent-%COMP%] .markdown[_ngcontent-%COMP%]{padding-bottom:0}.blog-related-item__footer[_ngcontent-%COMP%]{border-top:1px solid #D1D1D4;color:#777}@media (min-width: 767px){.blog-related-item__footer[_ngcontent-%COMP%]{padding:16px 0}}@media (max-width: 766.98px){.blog-related-item__footer[_ngcontent-%COMP%]{padding:8px 0}}.blog-related-item__author[_ngcontent-%COMP%]{font-weight:600;color:inherit}.blog-related-item__date[_ngcontent-%COMP%]{font-weight:400}"],changeDetection:0})}return e})();var oo=(e,a)=>a.id;function ao(e,a){if(e&1&&(c(0,"div",6)(1,"div",3)(2,"div",4)(3,"div",7)(4,"p",8),_(5),l()()()()()),e&2){let t=a.$implicit,n=r(2);o(5),v(t(n.title))}}function ro(e,a){if(e&1&&(c(0,"div",5),g(1,"mgs-blog-related-posts-item",9),l()),e&2){let t=a.$implicit;o(),p("post",t)}}function lo(e,a){if(e&1&&(c(0,"section",0),y(1,ao,6,1,"div",1),c(2,"div",2)(3,"div",3)(4,"div",4),A(5,ro,2,1,"div",5,oo),l()()()()),e&2){let t=r();o(5),$(t.posts)}}var zt=(()=>{class e{title="blog.popular.title";posts;constructor(){}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=h({type:e,selectors:[["mgs-blog-related-posts"]],inputs:{title:"title",posts:"posts"},standalone:!1,decls:1,vars:1,consts:[[1,"blog-related"],["class","blog-related__header",4,"transloco"],[1,"blog-related__body"],[1,"wrap"],[1,"row"],[1,"col-md-4"],[1,"blog-related__header"],[1,"col-lg-12"],[1,"blog-related__header-title"],[3,"post"]],template:function(n,i){n&1&&m(0,lo,7,0,"section",0),n&2&&d(i.posts!=null&&i.posts.length?0:-1)},dependencies:[M,en],styles:['.blog-related__header-title[_ngcontent-%COMP%]{font-size:30px;line-height:40px;font-weight:600;margin:0}@media (max-width: 766.98px){.blog-related[_ngcontent-%COMP%]{padding:0 0 10px}}.blog-related__header[_ngcontent-%COMP%]{text-align:center}@media (min-width: 767px){.blog-related__header-title[_ngcontent-%COMP%]{margin:0 0 50px}}@media (max-width: 766.98px){.blog-related__header-title[_ngcontent-%COMP%]{margin:0 0 60px}}.blog-related__body[_ngcontent-%COMP%]{padding-bottom:30px;position:relative}.blog-related__body[_ngcontent-%COMP%]:before{content:"";display:block;position:absolute;inset:92px 0 0;background:#f5f9f9}@media (max-width: 766.98px){.blog-related__body[_ngcontent-%COMP%]:before{background:transparent}}'],changeDetection:0})}return e})();var co=e=>["blog",e],so=e=>["blog","category",e],po=e=>["blog","author",e],Qn=()=>({dateStyle:"medium"});function mo(e,a){if(e&1&&(c(0,"h1",20)(1,"span",22),_(2),l()()),e&2){let t=r(4);o(2),v(t.post.category.name)}}function go(e,a){if(e&1&&(c(0,"p",21),_(1),l()),e&2){let t=r(4);o(),v(t.post.category.description)}}function _o(e,a){if(e&1&&(c(0,"div",3),m(1,mo,3,1,"h1",20),m(2,go,2,1,"p",21),l()),e&2){let t=r(3);o(),d(t.post.category!=null&&t.post.category.name?1:-1),o(),d(t.post.category!=null&&t.post.category.description?2:-1)}}function uo(e,a){if(e&1&&(c(0,"div",3)(1,"h1",20)(2,"span",22),_(3),l()(),c(4,"p",21),_(5),l()()),e&2){let t=a.$implicit;o(3),v(t("title")),o(2),v(t("descript"))}}function Co(e,a){e&1&&y(0,uo,6,2,"div",23),e&2&&p("translocoRead","blog.list")}function xo(e,a){if(e&1&&g(0,"mgs-post-views",9),e&2){let t=r(3);p("views",t.post.impressions)}}function fo(e,a){if(e&1&&g(0,"mgs-media",10),e&2){let t=r(3);p("media",t.post.image)}}function ho(e,a){if(e&1){let t=L();c(0,"a",25),w("click",function(i){T(t);let s=r(4);return B(s.goToCategory(i))}),_(1),l()}if(e&2){let t=r(4);p("routerLink",t.getRoute(R(2,so,t.post.category.shortLink))),o(),b(" ",t.post.category.name," ")}}function vo(e,a){if(e&1&&(c(0,"div",14),m(1,ho,2,4,"a",24),l()),e&2){let t=r(3);o(),d(t.post!=null&&t.post.category?1:-1)}}function bo(e,a){if(e&1&&(c(0,"div",15),_(1),l()),e&2){let t=r(3);o(),b(" ",t.post.author.name," ")}}function yo(e,a){if(e&1&&(c(0,"div",17),g(1,"markdown",26),C(2,"markdownSlice"),l()),e&2){let t=r(3);o(),p("data",et(2,1,t.post.content,0,100))}}function Po(e,a){if(e&1&&g(0,"mgs-picture",28),e&2){let t=r(4);p("image",t.post.author.avatar)("formats",t.authorLogoFormats)}}function Mo(e,a){if(e&1&&(c(0,"a",30),_(1),l()),e&2){let t=r(5);p("routerLink",t.getRoute(R(2,po,t.post.author.shortLink))),o(),b(" ",t.post.author==null?null:t.post.author.name," ")}}function So(e,a){if(e&1&&(c(0,"div",15),m(1,Mo,2,4,"a",30),l()),e&2){let t=r(4);o(),d(t.post.author!=null&&t.post.author.shortLink?1:-1)}}function Oo(e,a){if(e&1&&(c(0,"span"),_(1),C(2,"readTime"),l()),e&2){let t=r(4).$implicit,n=r(2);o(),xt(" \u2022 ",f(2,2,n.post.content)," ",t("blog.min-read"))}}function wo(e,a){if(e&1&&(c(0,"div",31),_(1),C(2,"translocoDate"),m(3,Oo,3,4,"span"),l()),e&2){let t=r(5);o(),b(" ",et(2,2,t.post.publishDate,U(6,Qn),a)," "),o(2),d(t.post.content!=null&&t.post.content.length?3:-1)}}function ko(e,a){if(e&1&&(c(0,"div",19),m(1,wo,4,7,"div",31),C(2,"async"),l()),e&2){let t,n=r(4);o(),d((t=f(2,1,n.activeLang$))?1:-1,t)}}function To(e,a){if(e&1&&(c(0,"div",18)(1,"div",27),m(2,Po,1,2,"mgs-picture",28),l(),c(3,"div",29),m(4,So,2,1,"div",15),m(5,ko,3,3,"div",19),l()()),e&2){let t=r(3);o(2),d(!(t.post.author.avatar==null||t.post.author.avatar.url==null)&&t.post.author.avatar.url.length?2:-1),o(2),d(t.post.author.name?4:-1),o(),d(t.post.publishDate?5:-1)}}function Bo(e,a){if(e&1&&(c(0,"span"),_(1),C(2,"readTime"),l()),e&2){let t=r(3).$implicit,n=r(2);o(),xt(" \u2022 ",f(2,2,n.post.content)," ",t("blog.min-read"))}}function Lo(e,a){if(e&1&&(c(0,"div",31),_(1),C(2,"translocoDate"),m(3,Bo,3,4,"span"),l()),e&2){let t=r(4);o(),b(" ",et(2,2,t.post.publishDate,U(6,Qn),a)," "),o(2),d(t.post.content!=null&&t.post.content.length?3:-1)}}function Io(e,a){if(e&1&&(c(0,"div",19),m(1,Lo,4,7,"div",31),C(2,"async"),l()),e&2){let t,n=r(3);o(),d((t=f(2,1,n.activeLang$))?1:-1,t)}}function Do(e,a){if(e&1&&(c(0,"div",2),m(1,_o,3,2,"div",3)(2,Co,1,1,"div",3),c(3,"div",4)(4,"div",5)(5,"div",6)(6,"div",7)(7,"div",8),_(8),l(),m(9,xo,1,1,"mgs-post-views",9),l(),m(10,fo,1,1,"mgs-media",10),l()(),c(11,"div",11)(12,"div",12)(13,"div",13),m(14,vo,2,1,"div",14),m(15,bo,2,1,"div",15),l()(),c(16,"a",16),_(17),l(),m(18,yo,3,5,"div",17),m(19,To,6,3,"div",18),m(20,Io,3,3,"div",19),l()()()),e&2){let t=a.$implicit,n=r(2);o(),d(n.blogCategory?1:2),o(7),v(t("blog.sort.recent")),o(),d(n.post.impressions?9:-1),o(),d(!(n.post==null||n.post.image==null||n.post.image.url==null)&&n.post.image.url.length?10:-1),o(4),d(!n.blogCategory&&(n.post.category!=null&&n.post.category.name)?14:-1),o(),d(n.blogCategory&&(n.post.author!=null&&n.post.author.name)?15:-1),o(),p("routerLink",n.getRoute(R(11,co,n.post.shortLink))),o(),v(n.post.name),o(),d(!(n.post==null||n.post.content==null)&&n.post.content.length?18:-1),o(),d(!n.blogCategory&&n.post.author?19:-1),o(),d(n.blogCategory&&n.post.publishDate?20:-1)}}function Ro(e,a){if(e&1&&(c(0,"div",0),y(1,Do,21,13,"div",1),l()),e&2){let t=r();p("ngClass",t.classList)}}var Fe=(()=>{class e{post;blogCategory=!1;classList;router=x(V);localizationService=x(O);activeLang$=this.localizationService.activeLang$;authorLogoFormats=Fn;getRoute(t){return this.localizationService.getLocalizedRoute(t)}goToCategory(t){t.stopPropagation(),this.router.navigate(this.getRoute(["blog","category",this.post.category.shortLink]))}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=h({type:e,selectors:[["mgs-blog-list-header"]],inputs:{post:"post",blogCategory:"blogCategory",classList:"classList"},standalone:!1,decls:1,vars:1,consts:[[1,"blog-header",3,"ngClass"],["class","wrap",4,"transloco"],[1,"wrap"],[1,"blog-header__data"],[1,"blog-recent"],[1,"blog-recent__img"],[1,"blog-recent__img-wrap"],[1,"blog-recent__views"],[1,"item-label","item-label--white"],[3,"views"],[3,"media"],[1,"blog-recent__data"],[1,"blog-recent__row"],[1,"blog-recent__cell"],[1,"blog-recent__cat"],[1,"blog-recent__author-name"],[1,"blog-recent__title",3,"routerLink"],[1,"blog-recent__text"],[1,"blog-recent__author"],[1,"blog-recent__date"],[1,"page-title","page-title--primary","page-title--center"],[1,"blog-header__text"],[1,"page-title__wrap"],["class","blog-header__data",4,"transloco","translocoRead"],["mat-button","",1,"btn","btn-link","btn-cat-link",3,"routerLink"],["mat-button","",1,"btn","btn-link","btn-cat-link",3,"click","routerLink"],[1,"markdown","markdown-blog-list",3,"data"],[1,"blog-recent__author-img"],[3,"image","formats"],[1,"blog-recent__author-data"],[1,"blog-recent__author-link",3,"routerLink"],[1,"post-date"]],template:function(n,i){n&1&&m(0,Ro,2,1,"div",0),n&2&&d(i.post?0:-1)},dependencies:[J,N,M,Pt,Mt,Dt,rt,D,Lt,lt,At],styles:[".blog-header--category[_ngcontent-%COMP%] .blog-recent__author-name[_ng
1content-%COMP%], .blog-recent__author-data[_ngcontent-%COMP%]{font-size:14px;line-height:1.3571;font-weight:600}[_nghost-%COMP%]{display:block}@media (min-width: 767px){.blog-header[_ngcontent-%COMP%]{background:#e7eff1;padding-top:142px;margin-bottom:80px}}@media (max-width: 766.98px){.blog-header[_ngcontent-%COMP%]{padding-top:140px;margin-bottom:80px}}.blog-header__data[_ngcontent-%COMP%]{text-align:center}@media (min-width: 767px){.blog-header__data[_ngcontent-%COMP%]{margin-bottom:70px}}@media (max-width: 766.98px){.blog-header__data[_ngcontent-%COMP%]{margin-bottom:104px}}@media (min-width: 767px){.blog-header[_ngcontent-%COMP%] .page-title[_ngcontent-%COMP%]{margin:0 0 30px}}@media (max-width: 766.98px){.blog-header[_ngcontent-%COMP%] .page-title[_ngcontent-%COMP%]{margin:0 0 27px}}.blog-header__text[_ngcontent-%COMP%]{max-width:700px;font-size:20px;line-height:28px;margin:0 auto;color:#ff6d70}.blog-header--category[_ngcontent-%COMP%]{padding-bottom:66px;margin-bottom:50px;background-color:#e7eff1}@media (min-width: 767px){.blog-header--category[_ngcontent-%COMP%] .blog-recent[_ngcontent-%COMP%]{box-shadow:0 9px 48px #00000017;margin:0}}@media (max-width: 766.98px){.blog-header--category[_ngcontent-%COMP%] .blog-recent[_ngcontent-%COMP%]{margin:0 -30px}}@media (min-width: 767px){.blog-header--category[_ngcontent-%COMP%] .blog-recent__img[_ngcontent-%COMP%]{width:57.2%;order:1;padding:0}}@media (min-width: 767px){.blog-header--category[_ngcontent-%COMP%] .blog-recent__img-wrap[_ngcontent-%COMP%]{margin:0;width:100%;height:100%}.blog-header--category[_ngcontent-%COMP%] .blog-recent__img-wrap[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%;height:100%;object-fit:cover}}.blog-header--category[_ngcontent-%COMP%] .blog-recent__data[_ngcontent-%COMP%]{padding:27px 30px 29px}@media (min-width: 767px){.blog-header--category[_ngcontent-%COMP%] .blog-recent__data[_ngcontent-%COMP%]{width:42.8%;order:0;background:#fff}}@media (max-width: 766.98px){.blog-header--category[_ngcontent-%COMP%] .blog-recent__data[_ngcontent-%COMP%]{background-color:#fff}}.blog-header--category[_ngcontent-%COMP%] .blog-recent__author-name[_ng
1content-%COMP%]{color:#777}.blog-header--category[_ngcontent-%COMP%] .blog-recent__title[_ngcontent-%COMP%]{margin-bottom:20px}@media (min-width: 767px){.blog-header--category[_ngcontent-%COMP%] .blog-recent__title[_ngcontent-%COMP%]{margin:34px 0 59px}}.blog-header--category[_ngcontent-%COMP%] .blog-recent__text[_ngcontent-%COMP%]{margin:0 0 44px}@media (max-width: 1024.98px){.blog-header--category[_ngcontent-%COMP%] .blog-recent__text[_ngcontent-%COMP%]{margin-bottom:20px}}@media (max-width: 1024.98px){.blog-header--category[_ngcontent-%COMP%] .blog-recent[_ngcontent-%COMP%] .markdown[_ngcontent-%COMP%]{padding-bottom:0}}.blog-recent[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;margin:0 -40px}@media (max-width: 1024.98px){.blog-recent[_ngcontent-%COMP%]{margin:0 -30px}}.blog-recent__img[_ngcontent-%COMP%]{margin:0 auto}@media (min-width: 767px){.blog-recent__img[_ngcontent-%COMP%]{width:56.7%}}.blog-recent__img-wrap[_ngcontent-%COMP%]{position:relative;background:#577e8f}@media (min-width: 1410px){.blog-recent__img-wrap[_ngcontent-%COMP%]{margin-left:-86px}}@media (min-width: 767px){.blog-recent__img-wrap[_ngcontent-%COMP%]{height:100%}}.blog-recent__views[_ngcontent-%COMP%]{position:absolute;display:flex;align-items:center;justify-content:center;z-index:1}.blog-recent__views[_ngcontent-%COMP%] .item-label[_ngcontent-%COMP%]{margin-right:10px}@media (min-width: 767px){.blog-recent__views[_ngcontent-%COMP%]{left:20px;top:20px}}@media (max-width: 766.98px){.blog-recent__views[_ngcontent-%COMP%]{left:30px;top:20px}}@media (min-width: 767px){.blog-recent__data[_ngcontent-%COMP%]{width:43.3%;padding:28px 40px 40px 60px}}@media (max-width: 766.98px){.blog-recent__data[_ngcontent-%COMP%]{background:#e7eff1;padding:40px 30px 60px}}.blog-recent__row[_ngcontent-%COMP%]{display:flex}.blog-recent__cell[_ngcontent-%COMP%]{width:50%}.blog-recent__cat[_ngcontent-%COMP%]{margin-bottom:42px}@media (max-width: 766.98px){.blog-recent__cat[_ngcontent-%COMP%]{margin-bottom:10px}}.blog-recent__counters[_ngcontent-%COMP%]{display:flex;justify-content:flex-end}.blog-recent__title[_ngcontent-%COMP%]{font-size:32px;line-height:43px;font-weight:600;color:inherit;display:block;text-decoration:none}.blog-recent__title[_ngcontent-%COMP%]:hover{color:#0f4b81}@media (min-width: 767px){.blog-recent__title[_ngcontent-%COMP%]{margin:0 0 18px}}@media (max-width: 766.98px){.blog-recent__title[_ngcontent-%COMP%]{margin:0 0 30px}}.blog-recent__text[_ngcontent-%COMP%]{margin:0}@media (min-width: 767px){.blog-recent__text[_ngcontent-%COMP%]{font-size:18px;line-height:27px}}@media (max-width: 766.98px){.blog-recent__text[_ngcontent-%COMP%]{font-size:16px;line-height:24px}}.blog-recent[_ngcontent-%COMP%] .markdown[_ngcontent-%COMP%]{padding-bottom:0}.blog-recent__author[_ngcontent-%COMP%]{display:flex}@media (min-width: 767px){.blog-recent__author[_ngcontent-%COMP%]{margin-top:62px}}@media (max-width: 766.98px){.blog-recent__author[_ngcontent-%COMP%]{margin-top:40px}}.blog-recent__author-img[_ngcontent-%COMP%]{width:48px;height:48px;border-radius:100%;overflow:hidden;min-width:48px;background:#f5f9f9}.blog-recent__author-data[_ngcontent-%COMP%]{width:100%;padding-left:20px;padding-top:6px}.blog-recent__author-link[_ngcontent-%COMP%]{color:#333}
1.blog-recent__author-name[_ngcontent-%COMP%]{color:#333;margin-bottom:2px}.blog-recent__date[_ngcontent-%COMP%]{color:#777}"],changeDetection:0})}return e})();var Ao=e=>({hide:e}),$o=()=>["blog"],Fo=()=>({exact:!0}),zo=e=>["blog","category",e],jo=(e,a)=>a.id;function Ho(e,a){if(e&1&&(c(0,"li",9)(1,"a",11),_(2),l()()),e&2){let t=a.$implicit,n=r(3);o(),p("routerLink",n.getRoute(R(2,zo,t.shortLink))),o(),b(" ",t.name," ")}}function Go(e,a){if(e&1&&(c(0,"div",3)(1,"ul",8)(2,"li",9)(3,"a",10),_(4),l()(),A(5,Ho,3,4,"li",9,jo),l()()),e&2){let t=r().$implicit,n=r();p("ngClass",R(4,Ao,n.hide)),o(3),p("routerLink",n.getRoute(U(6,$o)))("routerLinkActiveOptions",U(7,Fo)),o(),b(" ",t("button.all")," "),o(),$(n.categories)}}function Vo(e,a){if(e&1){let t=L();c(0,"div",1)(1,"div",2),m(2,Go,7,8,"div",3),c(3,"div",4)(4,"mgs-search",5),w("submitSearch",function(i){T(t);let s=r();return B(s.submitSearch(i))})("focusSearch",function(i){T(t);let s=r();return B(s.focusSearch(i))}),l()(),c(5,"div",6),g(6,"mgs-subscribe-modal",7),l()()()}if(e&2){let t=r();o(2),d(t.categories!=null&&t.categories.length?2:-1),o(4),p("subscribeFor","blog")}}var ze=(()=>{class e{router;localizationService;classList;categories;hide=!1;constructor(t,n){this.router=t,this.localizationService=n}submitSearch(t){if(t&&t.length){let n=this.localizationService.getActiveLang();this.router.navigate([(n===this.localizationService.getDefaultLang()?"/":`/${n}/`)+"blog/search"],{queryParams:{search:t}})}}focusSearch(t){this.hide=t}getRoute(t){return this.localizationService.getLocalizedRoute(t)}static \u0275fac=function(n){return new(n||e)(tt(V),tt(O))};static \u0275cmp=h({type:e,selectors:[["mgs-blog-list-bottom-panel"]],inputs:{classList:"classList",categories:"categories"},standalone:!1,decls:2,vars:3,consts:[["class","wrap wrap-extended",4,"transloco"],[1,"wrap","wrap-extended"],[1,"bottom-panel__body"],[1,"blog-nav",3,"ngClass"],[1,"bottom-panel__search"],["type","small",3,"submitSearch","focusSearch"],[1,"bottom-panel__right"],[3,"subscribeFor"],[1,"blog-nav__list"],[1,"blog-nav__item"],["routerLinkActive","is-active",1,"blog-nav__link",3,"routerLink","routerLinkActiveOptions"],["routerLinkActive","is-active",1,"blog-nav__link",3,"routerLink"]],template:function(n,i){n&1&&(c(0,"div"),y(1,Vo,7,2,"div",0),l()),n&2&&Ce(xe("bottom-panel ",i.classList))},dependencies:[J,N,Mn,M,Kt,Qt],styles:['.blog-nav__link[_ngcontent-%COMP%]{font-size:16px;line-height:1.5}.bottom-panel__search[_ngcontent-%COMP%]{position:relative;overflow:hidden}@media (min-width: 1025px){.bottom-panel__search[_ngcontent-%COMP%]{max-width:220px;margin-left:auto}}.bottom-panel__right[_ngcontent-%COMP%]{position:relative}.bottom-panel__right[_ngcontent-%COMP%]:after{content:"";position:absolute;top:50%;transform:translateY(-50%);left:-22px;width:1px;height:36px;border-right:1px solid #E7EFF1}@media (min-width: 1025px){.bottom-panel--list[_ngcontent-%COMP%] .bottom-panel__search[_ngcontent-%COMP%]{margin-left:auto;margin-right:40px}}.blog-nav.hide[_ngcontent-%COMP%]{display:none}.blog-nav__list[_ngcontent-%COMP%]{list-style:none;margin:0;padding:0;display:flex}.blog-nav__item[_ngcontent-%COMP%]{padding:0 1px}.blog-nav__link[_ngcontent-%COMP%]{display:flex;color:#777;border-bottom:1px solid transparent;transition:.4s border-bottom-color,.4s background;font-weight:600}@media (min-width: 1025px) and (max-width: 1150px){.blog-nav__link[_ngcontent-%COMP%]{font-size:14px}}@media (min-width: 1200px){.blog-nav__link[_ngcontent-%COMP%]{padding:7px 10px}}@media (max-width: 1199.98px){.blog-nav__link[_ngcontent-%COMP%]{padding:7px 5px}}.blog-nav__link[_ngcontent-%COMP%]:hover{text-decoration:none;border-bottom-color:#ff6d70;background:#95b3be14}.blog-nav__link[_ngcontent-%COMP%]:focus{background:#95b3be29}.blog-nav__link[_ngcontent-%COMP%]:active, .blog-nav__link.is-active[_ngcontent-%COMP%]{background:transparent;color:#333;border-bottom-color:#e43d30}@media (max-width: 1024.98px){.blog-nav[_ngcontent-%COMP%]{display:none}}'],changeDetection:0})}return e})();function Uo(e,a){if(e&1&&g(0,"mgs-filter",2),e&2){let t=r();p("formControl",t.filter)("items",t.filters)}}function qo(e,a){if(e&1){let t=L();c(0,"mgs-sort-list",5),C(1,"async"),w("changeSort",function(i){T(t);let s=r();return B(s.changeSort(i))}),l()}if(e&2){let t=r();p("sortList",a)("sortActive",f(1,2,t.sortActive$))}}var je=(()=>{class e{filters;changeFilters=new Cn;route=x(G);blogService=x(F);destroyRef=x(un);filter=new Hn("");sortList$=j(this.blogService.blogSortList());sortActive$=ie([this.route.queryParamMap,this.sortList$]).pipe(at(([t,n])=>{let i=t.get("sort")?n.filter(s=>s.sortBy===t.get("sort"))[0]:null;return i?j(i):j(n[0])}));ngOnInit(){this.route.queryParamMap.pipe(Ot(1)).subscribe(t=>{this.filter.setValue(t.get("filter"))}),this.filter.valueChanges.pipe(Wt(this.destroyRef)).subscribe(t=>{this.changeFilters.next({filter:t})})}
1changeSort(t){let n=this.route.snapshot.queryParams.filter,i=n?{filter:n,sort:t.sortBy}:{sort:t.sortBy};this.changeFilters.next(i)}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=h({type:e,selectors:[["mgs-blog-filters"]],inputs:{filters:"filters"},outputs:{changeFilters:"changeFilters"},standalone:!1,decls:6,vars:4,consts:[[1,"blog__filters"],[1,"filter"],["placeholder","blog.filter.placeholder",3,"formControl","items"],[1,"filter","filter__sort"],[3,"sortList","sortActive"],[3,"changeSort","sortList","sortActive"]],template:function(n,i){if(n&1&&(c(0,"div",0)(1,"div",1),m(2,Uo,1,2,"mgs-filter",2),l(),c(3,"div",3),m(4,qo,2,4,"mgs-sort-list",4),C(5,"async"),l()()),n&2){let s;o(2),d(i.filters!=null&&i.filters.length?2:-1),o(2),d((s=f(5,2,i.sortList$))?4:-1,s)}},dependencies:[jn,Gn,Xt,we,D],styles:["@media (min-width: 767px){.blog__filters[_ngcontent-%COMP%]{display:flex}}.filter[_ngcontent-%COMP%]{display:flex}@media (min-width: 767px){.filter[_ngcontent-%COMP%]{width:40%;padding:0}.filter.filter__sort[_ngcontent-%COMP%]{justify-content:flex-end;width:100%}}@media (max-width: 766.98px){.filter[_ngcontent-%COMP%]{justify-content:center}}"],changeDetection:0})}return e})();var Wo=(e,a)=>a.id;function Jo(e,a){if(e&1&&g(0,"mgs-blog-list-header",2),e&2){let t=r();p("post",t.last)}}function Qo(e,a){if(e&1){let t=L();c(0,"mgs-load-more",14),C(1,"async"),w("loadMore",function(){T(t);let i=r(3),s=r();return B(s.loadMore(i.last==null?null:i.last.id,i.mustRead==null?null:i.mustRead.id,i._meta==null?null:i._meta.pagination,!1))}),l()}if(e&2){let t=r(3),n=r();p("loading",f(1,4,n.loading$))("pagination",t._meta.pagination)("count",t.data.length)("isNext",!1)}}function Yo(e,a){if(e&1&&g(0,"mgs-blog-list-item",13),e&2){let t=r(4),n=r();p("item",t.mustRead)("type",n.blogListItemType.mustRead)("classList","blog-item--must-read")}}function Zo(e,a){if(e&1&&(g(0,"mgs-blog-list-item",15),m(1,Yo,1,3,"mgs-blog-list-item",13)),e&2){let t=a.$implicit,n=a.$index,i=r(3);p("item",t)("classList","blog-item--main-list"),o(),d(!(i==null||i.mustRead==null)&&i.mustRead.shortLink&&(n===3||i.data.length<4&&n===i.data.length-1)?1:-1)}}function Ko(e,a){if(e&1){let t=L();c(0,"mgs-load-more",16),C(1,"async"),w("loadMore",function(){T(t);let i=r(3),s=r();return B(s.loadMore(i.last==null?null:i.last.id,i.mustRead==null?null:i.mustRead.id,i._meta==null?null:i._meta.pagination))}),l()}if(e&2){let t=r(3),n=r();p("loading",f(1,2,n.loading$))("pagination",t._meta.pagination)}}function Xo(e,a){if(e&1&&g(0,"mgs-blog-list-item",13),e&2){let t=r(3),n=r();p("item",t.mustRead)("type",n.blogListItemType.mustRead)("classList","blog-item--must-read blog-item--no-padding")}}function ta(e,a){if(e&1&&(m(0,Qo,2,6,"mgs-load-more",11),A(1,Zo,2,3,null,null,Wo),m(3,Ko,2,4,"mgs-load-more",12),m(4,Xo,1,3,"mgs-blog-list-item",13)),e&2){let t=r(2);d(t._meta!=null&&t._meta.pagination&&(t.data!=null&&t.data.length)?0:-1),o(),$(t.data),o(2),d((t._meta==null?null:t._meta.pagination.count)>(t.data==null?null:t.data.length)?3:-1),o(),d(t.data.length?-1:4)}}function ea(e,a){if(e&1&&(c(0,"div",10),_(1),l()),e&2){let t=a.$implicit;o(),v(t("blog.not-found"))}}function na(e,a){e&1&&y(0,ea,2,1,"div",17)}function ia(e,a){if(e&1){let t=L();c(0,"div",4)(1,"div",5)(2,"div",6)(3,"h2",7),_(4),l(),c(5,"mgs-blog-filters",8),C(6,"async"),w("changeFilters",function(i){T(t);let s=r(2);return B(s.changeFilters(i))}),l()()(),c(7,"div",9)(8,"div",6),m(9,ta,5,3)(10,na,1,0,"div",10),l()()()}if(e&2){let t=a.$implicit,n=r(),i=r();o(4),v(t("latest")),o(),p("filters",f(6,3,i.tagList$)),o(4),d(n.data!=null&&n.data.length||!(n==null||n.mustRead==null)&&n.mustRead.shortLink?9:10)}}function oa(e,a){if(e&1&&(m(0,Jo,1,1,"mgs-blog-list-header",2),y(1,ia,11,5,"div",3)),e&2){let t=a;d(t!=null&&t.last?0:-1),o(),p("translocoRead","blog.list")}}var ti=(()=>{class e{handleClose(){this.sessionStorageService.removeItem("blog")}router=x(V);route=x(G);blogService=x(F);toolsService=x(Q);sessionStorageService=x(Z);loadingSub=new st(!1);listData$=this.route.data.pipe(H("blogList"),mt((t,n)=>{let i=JSON.parse(this.sessionStorageService.getItem("blog")||null)?.load;return i?i==="next"?{data:[...t.data,...n.data],last:t.last,mustRead:t.mustRead,_meta:n._meta}:{data:[...n.data,...t.data],last:t.last,mustRead:t.mustRead,_meta:n._meta}:{data:[...n.data],last:n.last?n.last:t.last,mustRead:n.mustRead?n.last:t.mustRead,_meta:n._meta}}),pt(t=>this.loadingSub.next(!1)),W({refCount:!0,bufferSize:1}));loading$=this.loadingSub.pipe(S(t=>t));sort=this.blogService.blogSortList().filter(t=>t.sortBy==="popular")[0];relatedPosts$=this.blogService.blogListBySort({sort:this.sort.gql,limit:3,start:0});categoryList$=this.blogService.categoryList$;tagList$=this.blogService.getBlogTagList();blogListItemType=$t;trackByFn(t){return t}loadMore(t=null,n=null,i,s=!0){this.loadingSub.next(!0);
1let u=this.route.snapshot.queryParams,E=this.toolsService.getPaginationPage(i,s,u),I=this.toolsService.getPaginationQueryParams(E,s,u);this.sessionStorageService.setItem("blog",JSON.stringify(gt(dt({},E),{load:s?"next":"prev",lastPostId:t,mustReadId:n}))),this.router.navigate([],{queryParams:I,state:{noScroll:!0}})}changeFilters(t){this.router.navigate([],{queryParams:t,state:{noScroll:!0}})}ngOnDestroy(){this.sessionStorageService.removeItem("blog")}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=h({type:e,selectors:[["mgs-blog-list"]],hostBindings:function(n,i){n&1&&w("beforeunload",function(u){return i.handleClose(u)},kt)},standalone:!1,decls:8,vars:10,consts:[[3,"posts"],[3,"categories","classList"],[3,"post"],["class","blog-list",4,"transloco","translocoRead"],[1,"blog-list"],[1,"blog-list__header"],[1,"wrap"],[1,"blog-list__title"],[3,"changeFilters","filters"],[1,"blog-list__body"],[1,"notFoundPost"],[1,"load-more","prev",3,"loading","pagination","count","isNext"],[1,"load-more",3,"loading","pagination"],[1,"blog-item--must-read",3,"item","type","classList"],[1,"load-more","prev",3,"loadMore","loading","pagination","count","isNext"],[1,"blog-item",3,"item","classList"],[1,"load-more",3,"loadMore","loading","pagination"],["class","notFoundPost",4,"transloco"]],template:function(n,i){if(n&1&&(m(0,oa,2,2),C(1,"async"),g(2,"mgs-blog-related-posts",0),C(3,"async"),c(4,"mgs-float-wrapper"),g(5,"mgs-blog-list-bottom-panel",1),C(6,"async"),l(),g(7,"mgs-cooperate")),n&2){let s;d((s=f(1,4,i.listData$))?0:-1,s),o(2),p("posts",f(3,6,i.relatedPosts$)),o(3),p("categories",f(6,8,i.categoryList$))("classList","bottom-panel--list")}},dependencies:[M,ct,zt,Rt,vt,Y,Fe,ze,je,D],styles:[".blog-list__header[_ngcontent-%COMP%]{margin-bottom:70px}@media (max-width: 766.98px){.blog-list__header[_ngcontent-%COMP%]{margin-bottom:60px}}.blog-list__title[_ngcontent-%COMP%]{text-align:center;font-size:30px;line-height:40px;font-weight:600;margin:0 0 52px}@media (max-width: 766.98px){.blog-list__title[_ngcontent-%COMP%]{margin:0 0 50px;color:#577e8f}}.blog-list__body[_ngcontent-%COMP%]{margin-bottom:120px}@media (min-width: 767px){.blog-list__body[_ngcontent-%COMP%] .wrap[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap}}@media (max-width: 766.98px){.blog-list__body[_ngcontent-%COMP%] .wrap[_ngcontent-%COMP%]{padding:0}}.blog-list[_ngcontent-%COMP%] .load-more[_ngcontent-%COMP%]{justify-content:center;display:flex;flex-wrap:wrap;width:100%;margin-top:80px}@media (max-width: 766.98px){.blog-list[_ngcontent-%COMP%] .load-more[_ngcontent-%COMP%]{margin-top:50px}}.blog-list[_ngcontent-%COMP%] .load-more.prev[_ngcontent-%COMP%]{margin:0}.blog-item[_ngcontent-%COMP%]{text-decoration:none;display:block}.blog-item--must-read[_ngcontent-%COMP%]{width:100%}@media (min-width: 767px){.blog-item[_ngcontent-%COMP%]{width:50%;padding:0 40px}.blog-item[_ngcontent-%COMP%]:nth-of-type(2n){padding-top:117px}}@media (max-width: 766.98px){.blog-item[_ngcontent-%COMP%]{width:100%;margin-bottom:40px}}"],changeDetection:0})}return e})();var aa=e=>({notFound:e}),ra=(e,a)=>a.id;function la(e,a){if(e&1&&g(0,"mgs-blog-list-header",1),e&2){let t=r();p("post",t.last)("classList","blog-header--category")("blogCategory",!0)}}function ca(e,a){if(e&1){let t=L();c(0,"mgs-load-more",11),C(1,"async"),w("loadMore",function(){T(t);let i=r(2),s=r(),u=r();return B(u.loadMore(i,s.last==null?null:s.last.id,s._meta==null?null:s._meta.pagination,!1))}),l()}if(e&2){let t=r(3),n=r();p("loading",f(1,4,n.loading$))("pagination",t._meta.pagination)("count",t.data.length)("isNext",!1)}}function sa(e,a){if(e&1&&g(0,"mgs-blog-list-item",9),e&2){let t=a.$implicit,n=a.$index;p("item",t)("blogCategory",!0)("classList",n!==0&&(n+1)%4===0?"blog-item--category blog-item--big":"blog-item--category")}}function pa(e,a){if(e&1){let t=L();c(0,"mgs-load-more",12),C(1,"async"),w("loadMore",function(){T(t);let i=r(2),s=r(),u=r();return B(u.loadMore(i,s.last==null?null:s.last.id,s._meta==null?null:s._meta.pagination))}),l()}if(e&2){let t=r(3),n=r();p("loading",f(1,2,n.loading$))("pagination",t._meta.pagination)}}function ma(e,a){if(e&1&&(c(0,"div",6),m(1,ca,2,6,"mgs-load-more",8),A(2,sa,1,3,"mgs-blog-list-item",9,ra),m(4,pa,2,4,"mgs-load-more",10),l()),e&2){let t=r(2);o(),d(t._meta!=null&&t._meta.pagination&&(t.data!=null&&t.data.length)?1:-1),o(),$(t.data),o(2),d(t._meta!=null&&t._meta.pagination?4:-1)}}function da(e,a){if(e&1&&(c(0,"div",7),_(1),l()),e&2){let t=a.$implicit;o(),v(t("blog.not-found"))}}function ga(e,a){e&1&&y(0,da,2,1,"div",13)}function _a(e,a){if(e&1){let t=L();c(0,"div",2)(1,"div",3)(2,"div",4)(3,"mgs-blog-filters",5),C(4,"async"),w("changeFilters",function(i){T(t);let s=r(),u=r();return B(u.changeFilters(i,s==null||s.last==null?null:s.last.shortLink))}),l()(),m(5,ma,5,2,"div",6)(6,ga,1,0,"div",7),l()()}if(e&2){let t=r(),n=r();o(2),p("ngClass",R(5,aa,!(t!=null&&t.last||!(t==null||t.data==null)&&t.data.length))),o(),p("filters",f(4,3,n.tagList$)),o(2),d(!(t==null||t.data==null)&&t.data.length?5:6)}}function ua(e,a){if(e&1&&(m(0,la,1,3,"mgs-blog-list-header",1),m(1,_a,7,7,"div",2),C(2,"async")),e&2){let t,n=a,i=r();d(n!=null&&n.last?0:-1),o(),d((t=f(2,2,i.category$))?1:-1,t)}}var ei=(()=>{class e{handleClose(){this.sessionStorageService.removeItem("blogCategory")}router=x(V);route=x(G);blogService=x(F);toolsService=x(Q);sessionStorageService=x(Z);loadingSub=new st(!1);loading$=this.loadingSub.pipe(S(t=>t));data$=this.route.data.pipe(H("blogList"));listData$=this.data$.pipe(H("listData"),mt((t,n)=>{let i=JSON.parse(this.sessionStorageService.getItem("blogCategory")||null)?.load;return i?i==="next"?{data:[...t.data,...n.data],last:t.last,_meta:n._meta}:{data:[...n.data,...t.data],last:t.last,_meta:n._meta}:{data:[...n.data],last:n.last?n.last:t.last,_meta:n._meta}}),pt(t=>this.loadingSub.next(!1)),W({refCount:!0,bufferSize:1}));category$=this.data$.pipe(H("category"),mt((t,n)=>
1n?.shortLink?n:t.shortLink===this.route.snapshot.params.shortLink?t:null),W({refCount:!0,bufferSize:1}));categoryList$=this.blogService.categoryList$;tagList$=this.category$.pipe(_n(),at(t=>t?this.blogService.getBlogTagList({categoryId:t.id,type:t.type}):j([])));trackByFn(t){return t}loadMore(t,n=null,i,s=!0){this.loadingSub.next(!0);let u=this.route.snapshot.queryParams,E=this.toolsService.getPaginationPage(i,s,u),I=this.toolsService.getPaginationQueryParams(E,s,u);this.sessionStorageService.setItem("blogCategory",JSON.stringify(gt(dt({},E),{load:s?"next":"prev",lastPostId:n,categoryId:t.id,shortLink:t.shortLink,type:t.type}))),this.router.navigate([],{queryParams:I,state:{noScroll:!0}})}changeFilters(t,n=null){this.router.navigate([],{queryParams:t,state:{noScroll:!0,lastPostId:n}})}ngOnDestroy(){this.sessionStorageService.removeItem("blogCategory")}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=h({type:e,selectors:[["mgs-blog-category"]],hostBindings:function(n,i){n&1&&w("beforeunload",function(u){return i.handleClose(u)},kt)},standalone:!1,decls:6,vars:7,consts:[[3,"categories","classList"],[3,"post","classList","blogCategory"],[1,"blog-cat-list"],[1,"wrap"],[1,"blog-cat-list__header",3,"ngClass"],[3,"changeFilters","filters"],[1,"blog-cat-list__body"],[1,"notFoundPost"],[1,"load-more","prev",3,"loading","pagination","count","isNext"],[1,"blog-item--category-grid",3,"item","blogCategory","classList"],[1,"load-more",3,"loading","pagination"],[1,"load-more","prev",3,"loadMore","loading","pagination","count","isNext"],[1,"load-more",3,"loadMore","loading","pagination"],["class","notFoundPost",4,"transloco"]],template:function(n,i){if(n&1&&(m(0,ua,3,4),C(1,"async"),c(2,"mgs-float-wrapper"),g(3,"mgs-blog-list-bottom-panel",0),C(4,"async"),l(),g(5,"mgs-cooperate")),n&2){let s;d((s=f(1,3,i.listData$))?0:-1,s),o(3),p("categories",f(4,5,i.categoryList$))("classList","bottom-panel--list")}},dependencies:[J,M,ct,Rt,vt,Y,Fe,ze,je,D],styles:[".blog-cat-list[_ngcontent-%COMP%]{overflow:hidden}.blog-cat-list__header[_ngcontent-%COMP%]{margin-bottom:60px}.blog-cat-list__header.notFound[_ngcontent-%COMP%]{margin-top:80px}.blog-cat-list__title[_ngcontent-%COMP%]{text-align:center;font-size:30px;line-height:40px;font-weight:600;margin-bottom:40px}.blog-cat-list__body[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;margin:0 -15px 120px}@media (max-width: 766.98px){.blog-cat-list__body[_ngcontent-%COMP%]{margin:0 0 90px}}.blog-cat-list[_ngcontent-%COMP%] .load-more[_ngcontent-%COMP%]{justify-content:center;display:flex;flex-wrap:wrap;width:100%;margin-top:20px}.blog-cat-list[_ngcontent-%COMP%] .load-more.prev[_ngcontent-%COMP%]{margin:0}.blog-item--category-grid[_ngcontent-%COMP%]{text-decoration:none;display:block}@media (min-width: 767px){.blog-item--category-grid[_ngcontent-%COMP%]{width:33.3333%}.blog-item--category-grid[_ngcontent-%COMP%]:nth-of-type(4n){width:100%}}@media (max-width: 766.98px){.blog-item--category-grid[_ngcontent-%COMP%]{width:100%;margin-bottom:20px}}"],changeDetection:0})}return e})();var Ca=(e,a)=>a.id;function xa(e,a){e&1&&(c(0,"span"),_(1),l()),e&2&&(o(),v(a.count))}function fa(e,a){if(e&1&&(_(0),c(1,"span",18),_(2),l()),e&2){let t=r(4).$implicit;b(" ",t("search.for")," "),o(2),b("\u2018",a,"\u2019")}}function ha(e,a){if(e&1){let t=L();c(0,"mgs-sort-list",19),C(1,"async"),w("changeSort",function(i){T(t);let s=r(5);return B(s.changeSort(i))}),l()}if(e&2){let t=r(5);p("sortList",a)("sortActive",f(1,2,t.sortActive$))}}function va(e,a){if(e&1&&(c(0,"div",13),_(1),m(2,xa,2,1,"span"),C(3,"async"),_(4),m(5,fa,3,2),C(6,"async"),m(7,ha,2,4,"mgs-sort-list",17),C(8,"async"),l()),e&2){let t,n,i,s=r(3).$implicit,u=r();o(),b(" ",s("search.showing")," "),o(),d((t=f(3,5,u.pagination$))?2:-1,t),o(2),b(" ",s("search.search-results")," "),o(),d((n=f(6,7,u.searchText$))?5:-1,n),o(2),d((i=f(8,9,u.sortList$))?7:-1,i)}}function ba(e,a){if(e&1&&(c(0,"p",21),_(1),l()),e&2){let t=r().$implicit;o(),v(t("search.not-found"))}}function ya(e,a){if(e&1&&(c(0,"div"),m(1,ba,2,1,"p",21),l()),e&2){let t=r();o(),d(t!=null&&t.length?1:-1)}}function Pa(e,a){e&1&&y(0,ya,2,1,"div",20)}function Ma(e,a){if(e&1&&(m(0,Pa,1,0,"div"),C(1,"async")),e&2){let t,n=r(4);d((t=f(1,1,n.searchText$))?0:-1,t)}}function Sa(e,a){if(e&1&&g(0,"mgs-blog-list-item",15),e&2){let t=a.$implicit;p("item",t)("blogSearch",!0)("classList","blog-item--search")}}function Oa(e,a){if(e&1&&(m(0,va,9,11,"div",13)(1,Ma,2,3),c(2,"div",14),A(3,Sa,1,3,"mgs-blog-list-item",15,Ca),g(5,"mgs-pagination",16),l()),e&2){let t=r(),n=r(2);d(t.length?0:1),o(3),$(t),o(2),p("pagination$",n.pagination$)}}function wa(e,a){e&1&&g(0,"mgs-loader-spinner",12),e&2&&p("strokeWidth",2)("diameter",40)}function ka(e,a){if(e&1&&(m(0,Oa,6,2),C(1,"async"),Ht(2,wa,1,2,"mgs-loader-spinner",12)),e&2){let t=r(2);d(f(1,1,t.isLoading$)?2:0)}}function Ta(e,a){if(e&1){let t=L();c(0,"div",1)(1,"div",2)(2,"div",3)(3,"div",4)(4,"div",5)(5,"h1",6)(6,"span",7),_(7),l()(),c(8,"div",8)(9,"mgs-search",9),C(10,"async"),w("search",function(i){T(t);let s=r();return B(s.search(i))}),l()()()()()(),c(11,"div",10)(12,"div",3)(13,"div",4)(14,"div",5)(15,"div",11),m(16,ka,3,3),C(17,"async"),l()()()()()()}if(e&2){let t,n=a.$implicit,i=r();o(7),v(n("search.blog.title")),o(2),p("placeholder",Tt(n("search.placeholder")))("text",f(10,6,i.searchText$))("type","full"),o(7),d((t=f(17,8,i.items$))?16:-1,t)}}var ni=(()=>{class e{route=x(G);router=x(V);blogService=x(F);seoService=x(it);localizationService=x(O);data$;items$;searchText$;pagination$;isLoading$=new st(!1);blogListItemType=$t;limit=En;page;sortList$=j(this.blogService.blogSortList()).pipe(W({refCount:!0,bufferSize:1}));sortActive$=ie([this.route.queryParamMap,this.sortList$]).pipe(at(([t,n])=>{let i=t.get("sort")?n.filter(s=>s.sortBy===t.get("sort"))[0]:null;return i?j(i):j(n[0])}));ngOnInit(){this.localizationService.i18n$.next(null),this.data$=ie([this.route.queryParamMap,this.sortActive$]).pipe(_e(10),at(([t,n])=>{let i=t.get("search");
1return this.page=+t.get("page")||1,this.searchText$=j(i?decodeURI(i):""),this.isLoading$.next(!0),i?this.blogService.searchBlogList({searchText:i,limit:this.limit,start:this.limit*(this.page-1),sort:n.knex,page:this.page}):j({_meta:{pagination:null},data:null})}),K(()=>this.seoService.setSeo({entity:{name:this.route.snapshot.queryParams.search,seoRobotsContent:"noindex,nofollow"},type:"blogSearch",url:this.router.routerState.snapshot.url})),pt(()=>this.isLoading$.next(!1)),W({refCount:!0,bufferSize:1})),this.items$=this.data$.pipe(H("data"),S(t=>t&&t.length?t:[]),W({refCount:!0,bufferSize:1})),this.pagination$=this.data$.pipe(H("_meta","pagination"),S(t=>(t&&(t.page=this.page),t)),W({refCount:!0,bufferSize:1}))}search(t){let n=t&&typeof t=="string"?{search:t}:{};this.router.navigate([],{queryParams:n})}trackByFn(t){return t}changeSort(t){let n=this.route.snapshot.queryParams.search,i={search:decodeURI(n),sort:t.sortBy};this.router.navigate([],{queryParams:i,state:{noScroll:!0}})}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=h({type:e,selectors:[["mgs-blog-search"]],standalone:!1,decls:1,vars:0,consts:[["class","blog-search",4,"transloco"],[1,"blog-search"],[1,"blog-search__header"],[1,"wrap"],[1,"row"],[1,"col-lg-10","offset-lg-1"],[1,"page-title","page-title--left","page-title--primary"],[1,"page-title__wrap"],[1,"blog-search__form"],[3,"search","text","type","placeholder"],[1,"blog-search__body"],[1,"blog-search__section"],[1,"blog-search__loading",3,"strokeWidth","diameter"],[1,"blog-search__res-info"],[1,"blog-search__items"],[1,"blog-item--search-grid",3,"item","blogSearch","classList"],[3,"pagination$"],[1,"sort__list",3,"sortList","sortActive"],[1,"blog-search__text"],[1,"sort__list",3,"changeSort","sortList","sortActive"],[4,"transloco"],[1,"no-results"]],template:function(n,i){n&1&&y(0,Ta,18,10,"div",0)},dependencies:[M,ct,Kt,ke,Xt,Oe,D],styles:[".blog-search__res-info[_ngcontent-%COMP%]{font-size:24px;line-height:32px;font-weight:600;margin:0}@media (min-width: 767px){.blog-search__header[_ngcontent-%COMP%]{padding:142px 0 44px}}@media (max-width: 766.98px){.blog-search__header[_ngcontent-%COMP%]{padding:142px 0 44px}}.blog-search__form[_ngcontent-%COMP%]{padding-top:8px}.blog-search__res-info[_ngcontent-%COMP%]{font-weight:400;margin-bottom:50px}.blog-search__res-info[_ngcontent-%COMP%] .blog-search__text[_ngcontent-%COMP%]{font-weight:700}.blog-search__body[_ngcontent-%COMP%]{padding:50px 0 20px}@media (max-width: 766.98px){.blog-search__body[_ngcontent-%COMP%]{background-color:#f5f9f9}}.blog-search__section[_ngcontent-%COMP%]{padding-bottom:20px}.blog-search__item[_ngcontent-%COMP%]{margin:0 20px 20px 0}.blog-search--authors[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap}.blog-search__loading[_ngcontent-%COMP%]{align-items:center;justify-content:center;display:flex;width:48px;height:70px}.blog-search[_ngcontent-%COMP%] .no-results[_ngcontent-%COMP%]{font-size:24px;font-weight:600;font-style:normal;line-height:1.29;text-align:left;color:#333;margin:0;padding:20px 0}.blog-search[_ngcontent-%COMP%] .sort__list[_ngcontent-%COMP%]{display:block;padding-top:28px}"],changeDetection:0})}return e})();var Ba=e=>({name:e}),La=(e,a)=>a.link;function Ia(e,a){if(e&1&&(c(0,"h1",6)(1,"span",12),_(2),l()()),e&2){let t=r(2);o(2),b(" ",t.author.name," ")}}function Da(e,a){if(e&1&&(c(0,"div",7),_(1),l()),e&2){let t=r(2);o(),v(t.author.position)}}function Ra(e,a){if(e&1&&(c(0,"p",8),_(1),l()),e&2){let t=r(2);o(),v(t.author.headline)}}function Ea(e,a){if(e&1&&(c(0,"a",13),_(1),l()),e&2){let t=r().$implicit;p("href",Tt(t.link),wt),o(),v(t.icon)}}function Aa(e,a){if(e&1&&_(0),e&2){let t=r(3).$implicit;b(" ",t("or")," ")}}function $a(e,a){if(e&1&&(m(0,Ea,2,3,"a",13),m(1,Aa,1,1)),e&2){let t=a.$implicit,n=a.$index,i=r(3);d(t!=null&&t.link&&t.icon?0:-1),o(),d(i.author.links.length-1>n?1:-1)}}function Fa(e,a){if(e&1&&(c(0,"div",9),_(1),A(2,$a,2,2,null,null,La),l()),e&2){let t=r().$implicit,n=r();o(),b(" ",t("you-can-find",R(1,Ba,n.author.name))," "),o(),$(n.author.links)}}function za(e,a){if(e&1&&g(0,"mgs-picture",11),e&2){let t=r(2);p("image",t.author.avatar)("imgClass","author-view__img")("formats",t.logoFormats)}}function ja(e,a){if(e&1&&(c(0,"div",2)(1,"div",3)(2,"div",4)(3,"div",5),_(4),l()(),m(5,Ia,3,1,"h1",6),m(6,Da,2,1,"div",7),m(7,Ra,2,1,"p",8),m(8,Fa,4,3,"div",9),l(
1),c(9,"div",10),m(10,za,1,3,"mgs-picture",11),l()()),e&2){let t=a.$implicit,n=r();o(4),b(" ",t("author")," "),o(),d(n.author!=null&&n.author.name?5:-1),o(),d(!(n.author==null||n.author.position==null)&&n.author.position.length?6:-1),o(),d(!(n.author==null||n.author.headline==null)&&n.author.headline.length?7:-1),o(),d(!(n.author==null||n.author.links==null)&&n.author.links.length?8:-1),o(2),d(!(n.author.avatar==null||n.author.avatar.url==null)&&n.author.avatar.url.length?10:-1)}}var ii=(()=>{class e{author;logoFormats=be;static \u0275fac=function(n){return new(n||e)};static \u0275cmp=h({type:e,selectors:[["mgs-blog-author-header"]],inputs:{author:"author"},standalone:!1,decls:2,vars:1,consts:[[1,"wrap"],["class","author-view__header-inner",4,"transloco","translocoRead"],[1,"author-view__header-inner"],[1,"author-view__data"],[1,"author-view__cat"],[1,"author-view__cat-wrap"],[1,"page-title","page-title--left","page-title--accent-light"],[1,"author-view__pos"],[1,"author-view__desc"],[1,"author-view__contacts"],[1,"author-view__img-wrap"],[1,"author-view__picture",3,"image","imgClass","formats"],[1,"page-title__wrap"],[3,"href"]],template:function(n,i){n&1&&(c(0,"div",0),y(1,ja,11,6,"div",1),l()),n&2&&(o(),p("translocoRead","blog.author"))},dependencies:[M,rt],styles:['.author-view__desc[_ngcontent-%COMP%], .author-view__contacts[_ngcontent-%COMP%]{font-size:16px;line-height:1.5}.author-view__cat-wrap[_ngcontent-%COMP%]{font-size:12px;line-height:1.3333;font-weight:600;letter-spacing:.05em}.author-view__header-inner[_ngcontent-%COMP%]{display:flex;justify-content:stretch}@media (min-width: 1025px){.author-view__data[_ngcontent-%COMP%]{width:66%}}.author-view__cat[_ngcontent-%COMP%]{margin-bottom:20px}@media (max-width: 766.98px){.author-view__cat[_ngcontent-%COMP%]{text-align:center}}.author-view__cat-wrap[_ngcontent-%COMP%]{display:inline-block;position:relative;text-transform:uppercase}.author-view__cat-wrap[_ngcontent-%COMP%]:after{content:"";display:block;position:absolute;left:0;top:164%;width:100%;height:1px;background:#333}.author-view__pos[_ngcontent-%COMP%]{font-size:17px;line-height:1.59;letter-spacing:.85px;margin:-14px 0 34px;font-weight:600}.author-view__desc[_ngcontent-%COMP%]{margin:0 0 22px}@media (min-width: 767px){.author-view__img-wrap[_ngcontent-%COMP%]{width:34%;display:flex;justify-content:center}}@media (max-width: 766.98px){.author-view__img-wrap[_ngcontent-%COMP%]{display:none}}.author-view__picture[_ngcontent-%COMP%]{overflow:hidden;width:160px;height:160px;margin-top:-12px;border-radius:80px;background:#577e8f}.author-view__img[_ngcontent-%COMP%]{object-fit:cover;width:100%;height:100%}.author-view__title[_ngcontent-%COMP%]{font-weight:400;margin:0 0 50px}']})}return e})();var Ga=(e,a)=>a.id;function Va(e,a){if(e&1&&g(0,"mgs-blog-author-header",3),e&2){let t=r(2);p("author",t)}}function Na(e,a){if(e&1){let t=L();c(0,"mgs-load-more",13),C(1,"async"),w("loadMore",function(){T(t);let i=r(2),s=r(2),u=r();return B(u.loadMore(s,i.last==null?null:i.last.id,i._meta==null?null:i._meta.pagination,!1))}),l()}if(e&2){let t=r(2),n=r(3);p("loading",f(1,4,n.loading$))("pagination",t._meta.pagination)("count",t.data.length)("isNext",!1)}}function Ua(e,a){if(e&1&&g(0,"mgs-blog-list-item",11),e&2){let t=a.$implicit;p("item",t)("blogAuthor",!0)("blogSearch",!0)("classList","blog-item--category blog-item-by")}}function qa(e,a){if(e&1){let t=L();c(0,"mgs-load-more",14),C(1,"async"),w("loadMore",function(){T(t);let i=r(2),s=r(2),u=r();return B(u.loadMore(s,i.last==null?null:i.last.id,i._meta==null?null:i._meta.pagination))}),l()}if(e&2){let t=r(2),n=r(3);p("loading",f(1,2,n.loading$))("pagination",t._meta.pagination)}}function Wa(e,a){if(e&1&&(m(0,Na,2,6,"mgs-load-more",10),A(1,Ua,1,4,"mgs-blog-list-item",11,Ga),m(3,qa,2,4,"mgs-load-more",12)),e&2){let t=r();d(t._meta!=null&&t._meta.pagination?0:-1),o(),$(t.data),o(2),d(t._meta!=null&&t._meta.pagination?3:-1)}}function Ja(e,a){if(e&1&&(c(0,"div",9),_(1),l()),e&2){let t=a.$implicit;o(),v(t("blog.not-found"))}}function Qa(e,a){e&1&&y(0,Ja,2,1,"div",15)}function Ya(e,a){if(e&1&&(c(0,"div",7),g(1,"mgs-blog-list-item",8),m(2,Wa,4,2)(3,Qa,1,0,"div",9),l(
1)),e&2){let t=a;o(),p("item",t.last)("blogSearch",!0)("classList","blog-item--search blog-item-by blog-item--big"),o(),d(t.data!=null&&t.data.length?2:3)}}function Za(e,a){if(e&1&&(c(0,"div",1)(1,"div",2),m(2,Va,1,1,"mgs-blog-author-header",3),l(),c(3,"div",4)(4,"div",5)(5,"h2",6),_(6),c(7,"b"),_(8),l()(),m(9,Ya,4,4,"div",7),C(10,"async"),l()()()),e&2){let t,n=a.$implicit,i=r(),s=r();o(2),d(i?2:-1),o(4),b("",n("articles-by")," "),o(2),v(i==null?null:i.name),o(),d((t=f(10,4,s.listData$))?9:-1,t)}}function Ka(e,a){e&1&&(y(0,Za,11,6,"div",0),g(1,"mgs-cooperate")),e&2&&p("translocoRead","blog.author")}var oi=(()=>{class e{handleClose(){this.sessionStorageService.removeItem("blogAuthor")}router=x(V);route=x(G);toolsService=x(Q);sessionStorageService=x(Z);loadingSub=new st(!1);loading$=this.loadingSub.pipe(S(t=>t));data$=this.route.data.pipe(H("blogAuthorPage"),W({refCount:!0,bufferSize:1}));listData$=this.data$.pipe(H("listData"),mt((t,n)=>{let i=JSON.parse(this.sessionStorageService.getItem("blogAuthor")||null)?.load;return i?i==="next"?{data:[...t.data,...n.data],last:t.last,_meta:n._meta}:{data:[...n.data,...t.data],last:t.last,_meta:n._meta}:{data:[...n.data],last:n.last?n.last:t.last,_meta:n._meta}}),pt(t=>this.loadingSub.next(!1)),W({refCount:!0,bufferSize:1}));author$=this.data$.pipe(H("author"),mt((t,n)=>n?.shortLink?n:t.shortLink===this.route.snapshot.params.shortLink?t:null));trackByFn(t){return t}loadMore(t,n=null,i,s=!0){this.loadingSub.next(!0);let u=this.route.snapshot.queryParams,E=this.toolsService.getPaginationPage(i,s,u),I=this.toolsService.getPaginationQueryParams(E,s,u);this.sessionStorageService.setItem("blogAuthor",JSON.stringify(gt(dt({},E),{load:s?"next":"prev",lastPostId:n,authorId:t.id}))),this.router.navigate([],{queryParams:I,state:{noScroll:!0}})}ngOnDestroy(){this.sessionStorageService.removeItem("blogAuthor")}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=h({type:e,selectors:[["mgs-blog-author"]],hostBindings:function(n,i){n&1&&w("beforeunload",function(u){return i.handleClose(u)},kt)},standalone:!1,decls:2,vars:3,consts:[["class","author-view",4,"transloco","translocoRead"],[1,"author-view"],[1,"author-view__header"],[3,"author"],[1,"author-view__body"],[1,"wrap"],[1,"author-view__title"],[1,"blog-list"],[1,"blog-item",3,"item","blogSearch","classList"],[1,"notFoundPost"],[1,"load-more","prev",3,"loading","pagination","count","isNext"],[1,"blog-item",3,"item","blogAuthor","blogSearch","classList"],[1,"load-more",3,"loading","pagination"],[1,"load-more","prev",3,"loadMore","loading","pagination","count","isNext"],[1,"load-more",3,"loadMore","loading","pagination"],["class","notFoundPost",4,"transloco"]],template:function(n,i){if(n&1&&(m(0,Ka,2,1),C(1,"async")),n&2){let s;d((s=f(1,1,i.author$))?0:-1,s)}},dependencies:[M,ct,vt,Y,ii,D],styles:[".author-view__header[_ngcontent-%COMP%]{padding:146px 0 60px;background:#e7eff1}.author-view__body[_ngcontent-%COMP%]{padding-top:50px;padding-bottom:90px;background-color:#f5f9f9}.author-view__title[_ngcontent-%COMP%]{font-weight:400;margin:0 0 50px}@media (min-width: 767px){.author-view[_ngcontent-%COMP%] .blog-list[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;margin:0 -15px}}.author-view[_ngcontent-%COMP%] .blog-item[_ngcontent-%COMP%]{text-decoration:none;display:block}@media (min-width: 767px){.author-view[_ngcontent-%COMP%] .blog-item[_ngcontent-%COMP%]{width:33.3333%}.author-view[_ngcontent-%COMP%] .blog-item[_ngcontent-%COMP%]:first-of-type{width:100%;margin:0 15px 30px}}@media (max-width: 766.98px){.author-view[_ngcontent-%COMP%] .blog-item[_ngcontent-%COMP%]{width:100%;margin-bottom:40px}}.author-view[_ngcontent-%COMP%] .load-more[_ngcontent-%COMP%]{justify-content:center;display:flex;flex-wrap:wrap;width:100%;margin-top:20px}.author-view[_ngcontent-%COMP%] .load-more.prev[_ngcontent-%COMP%]{margin:0}"],changeDetection:0})}return e})();var Xa=(e,a)=>a.id;function tr(e,a){if(e&1&&(c(0,"div",5)(1,"div",3)(2,"div",6)(3,"div",7)(4,"div",8),_(5),l()(),c(6,"h1",9)(7,"span",10),_(8),l()()()()()),e&2){let t=a.$implicit,n=r();o(5),b(" ",t("sub-title")," "),o(3),b(" ",n.name," ")}}function er(e,a){if(e&1&&g(0,"mgs-blog-list-item",11),e&2){let t=r();p("item",t.last)("blogSearch",!0)("classList","blog-item-by blog-item--big")}}function nr(e,a){if(e&1){let t=L();
1c(0,"mgs-load-more",15),C(1,"async"),w("loadMore",function(){T(t);let i=r(2),s=r(),u=r();return B(u.loadMore(s.id,i.last==null?null:i.last.id,i._meta==null?null:i._meta.pagination,!1))}),l()}if(e&2){let t=r(2),n=r(2);p("loading",f(1,4,n.loading$))("pagination",t._meta.pagination)("count",t.data.length)("isNext",!1)}}function ir(e,a){if(e&1&&g(0,"mgs-blog-list-item",11),e&2){let t=a.$implicit;p("item",t)("blogSearch",!0)("classList","blog-item--category blog-item-by")}}function or(e,a){if(e&1){let t=L();c(0,"mgs-load-more",16),C(1,"async"),w("loadMore",function(){T(t);let i=r(2),s=r(),u=r();return B(u.loadMore(s.id,i.last==null?null:i.last.id,i._meta==null?null:i._meta.pagination))}),l()}if(e&2){let t=r(2),n=r(2);p("loading",f(1,2,n.loading$))("pagination",t._meta.pagination)}}function ar(e,a){if(e&1&&(m(0,nr,2,6,"mgs-load-more",13),A(1,ir,1,3,"mgs-blog-list-item",11,Xa),m(3,or,2,4,"mgs-load-more",14)),e&2){let t=r();d(t._meta!=null&&t._meta.pagination?0:-1),o(),$(t.data),o(2),d(t._meta!=null&&t._meta.pagination?3:-1)}}function rr(e,a){if(e&1&&(c(0,"div",12),_(1),l()),e&2){let t=a.$implicit;o(),v(t("blog.not-found"))}}function lr(e,a){e&1&&y(0,rr,2,1,"div",17)}function cr(e,a){if(e&1&&(c(0,"div",4),m(1,er,1,3,"mgs-blog-list-item",11),m(2,ar,4,2)(3,lr,1,0,"div",12),l()),e&2){let t=a;o(),d(t.last!=null&&t.last.shortLink?1:-1),o(),d(t.data!=null&&t.data.length?2:3)}}function sr(e,a){if(e&1&&(c(0,"div",0),y(1,tr,9,2,"div",1),c(2,"div",2)(3,"div",3),m(4,cr,4,2,"div",4),C(5,"async"),l()(),g(6,"mgs-cooperate"),l()),e&2){let t,n=r();o(),p("translocoRead","blog.tag"),o(3),d((t=f(5,2,n.listData$))?4:-1,t)}}var ai=(()=>{class e{handleClose(){this.sessionStorageService.removeItem("blogTag")}router=x(V);route=x(G);toolsService=x(Q);sessionStorageService=x(Z);loadingSub=new st(!1);loading$=this.loadingSub.pipe(S(t=>t));data$=this.route.data.pipe(H("blogTagPage"),W({refCount:!0,bufferSize:1}));listData$=this.data$.pipe(H("listData"),mt((t,n)=>{let i=JSON.parse(this.sessionStorageService.getItem("blogTag")||null)?.load;return i?i==="next"?{data:[...t.data,...n.data],last:t.last,_meta:n._meta}:{data:[...n.data,...t.data],last:t.last,_meta:n._meta}:{data:[...n.data],last:n.last?n.last:t.last,_meta:n._meta}}),pt(t=>this.loadingSub.next(!1)),W({refCount:!0,bufferSize:1}));tag$=this.data$.pipe(H("tag"),mt((t,n)=>n?.shortLink?n:t.shortLink===this.route.snapshot.params.shortLink?t:null));trackByFn(t){return t}loadMore(t,n=null,i,s=!0){this.loadingSub.next(!0);let u=this.route.snapshot.queryParams,E=this.toolsService.getPaginationPage(i,s,u),I=this.toolsService.getPaginationQueryParams(E,s,u);this.sessionStorageService.setItem("blogTag",JSON.stringify(gt(dt({},E),{load:s?"next":"prev",lastPostId:n,tagId:t}))),this.router.navigate([],{queryParams:I,state:{noScroll:!0}})}ngOnDestroy(){this.sessionStorageService.removeItem("blogTag")}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=h({type:e,selectors:[["mgs-blog-tag"]],hostBindings:function(n,i){n&1&&w("beforeunload",function(u){return i.handleClose(u)},kt)},standalone:!1,decls:2,vars:3,consts:[[1,"tagged"],["class","tagged__header",4,"transloco","translocoRead"],[1,"tagged__body"],[1,"wrap"],[1,"tagged__list"],[1,"tagged__header"],[1,"tagged__data"],[1,"tagged__cat"],[1,"tagged__cat-wrap"],[1,"page-title","page-title--center","page-title--accent-light"],[1,"page-title__wrap"],[1,"blog-item",3,"item","blogSearch","classList"],[1,"notFoundPost"],[1,"load-more","prev",3,"loading","pagination","count","isNext"],[1,"load-more",3,"loading","pagination"],[1,"load-more","prev",3,"loadMore","loading","pagination","count","isNext"],[1,"load-more",3,"loadMore","loading","pagination"],["class","notFoundPost",4,"transloco"]],template:function(n,i){if(n&1&&(m(0,sr,7,4,"div",0),C(1,"async")),n&2){let s;d((s=f(1,1,i.tag$))?0:-1,s)}},dependencies:[M,ct,vt,Y,D],styles:['.tagged__cat-wrap[_ngcontent-%COMP%]{font-size:12px;line-height:1.3333;font-weight:600;letter-spacing:.05em}.tagged__header[_ngcontent-%COMP%]{padding:146px 0 60px;background:#e7eff1}.tagged__data[_ngcontent-%COMP%]{text-align:center}
1.tagged__cat[_ngcontent-%COMP%]{margin-bottom:20px}@media (max-width: 766.98px){.tagged__cat[_ngcontent-%COMP%]{text-align:center}}.tagged__cat-wrap[_ngcontent-%COMP%]{display:inline-block;position:relative;text-transform:uppercase}.tagged__cat-wrap[_ngcontent-%COMP%]:after{content:"";display:block;position:absolute;left:0;top:164%;width:100%;height:1px;background:#333}.tagged__body[_ngcontent-%COMP%]{padding-top:70px;padding-bottom:90px;background-color:#f5f9f9}@media (max-width: 766.98px){.tagged__body[_ngcontent-%COMP%]{padding-top:0}}@media (min-width: 767px){.tagged__list[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;margin:0 -15px}}.tagged[_ngcontent-%COMP%] .blog-item[_ngcontent-%COMP%]{display:block}@media (min-width: 767px){.tagged[_ngcontent-%COMP%] .blog-item[_ngcontent-%COMP%]{width:33.3333%}.tagged[_ngcontent-%COMP%] .blog-item[_ngcontent-%COMP%]:first-of-type{width:100%;margin:0 15px 30px}}@media (max-width: 766.98px){.tagged[_ngcontent-%COMP%] .blog-item[_ngcontent-%COMP%]{width:100%;margin-bottom:20px}.tagged[_ngcontent-%COMP%] .blog-item[_ngcontent-%COMP%]:first-of-type{margin-bottom:40px}}.tagged[_ngcontent-%COMP%] .load-more[_ngcontent-%COMP%]{justify-content:center;display:flex;flex-wrap:wrap;width:100%;margin-top:20px}.tagged[_ngcontent-%COMP%] .load-more.prev[_ngcontent-%COMP%]{margin:0}'],changeDetection:0})}return e})();var He=(()=>{class e{seoService;blogService;errorHandlerService;localizationService;schemaService;constructor(t,n,i,s,u){this.seoService=t,this.blogService=n,this.errorHandlerService=i,this.localizationService=s,this.schemaService=u}resolve(t,n){let i=!!t.queryParamMap.get("edit");return this.blogService.getBlogArticle({shortLink:t.paramMap.get("shortLink"),edit:i}).pipe(S(s=>{s?.shortLink||this.errorHandlerService.generateHttpError();let u=this.localizationService.getActiveLang();return this.localizationService.i18n$.next({oldShortLink:s.shortLink,localizations:[...s.localizations,{locale:s.locale,publishedAt:s.publishedAt,shortLink:s.shortLink}]}),(!s.publishedAt&&!i||s.locale!==u)&&this.errorHandlerService.generateHttpError("languages"),s}),S(s=>(s&&s.content&&s.content.length&&(s.content=s.content.replace(/(<img )/g,'<img loading="lazy" ')),s)),K(s=>this.seoService.setSeo({entity:s,type:"post",url:n.url})),K(s=>this.schemaService.setSchema({entity:s,type:"article",url:n.url})),_t(s=>this.errorHandlerService.errorHandler(s,n.url)))}static \u0275fac=function(n){return new(n||e)(k(it),k(F),k(ht),k(O),k(wn))};static \u0275prov=X({token:e,factory:e.\u0275fac})}return e})();var St=(function(e){return e.Blog="blog",e.Guide="guide",e})(St||{});var pr=e=>({guide:e});function mr(e,a){if(e&1&&g(0,"mgs-markdown-wrapper",2),e&2){let t=r(2);p("content",t.post.content)("skipTextReplacement",t.skipTextReplacement)("ngClass",R(3,pr,t.post.type==="guide"))}}function dr(e,a){if(e&1&&(c(0,"div",3),_(1),c(2,"a",4),_(3),l(),_(4,") "),l()),e&2){let t=r().$implicit,n=r();o(),b(" (",t("blog.published-on")," "),o(),p("href",Tt(n.post.canonicalUrl),wt),o(),v(n.post.canonicalLabel)}}function gr(e,a){if(e&1&&(c(0,"div",1),m(1,mr,1,5,"mgs-markdown-wrapper",2),m(2,dr,5,4,"div",3),l()),e&2){let t=r();o(),d(t.post!=null&&t.post.content?1:-1),o(),d(t.post!=null&&t.post.content&&t.post.canonicalLabel&&t.post.canonicalUrl?2:-1)}}var le=(()=>{class e{post;skipTextReplacement=!1;static \u0275fac=function(n){return new(n||e)};static \u0275cmp=h({type:e,selectors:[["mgs-article-content"]],inputs:{post:"post",skipTextReplacement:"skipTextReplacement"},standalone:!1,decls:1,vars:0,consts:[["class","art-content",4,"transloco"],[1,"art-content"],[3,"content","skipTextReplacement","ngClass"],[1,"published-on"],["target","_blank",3,"href"]],template:function(n,i){n&1&&y(0,gr,3,2,"div",0)},dependencies:[J,M,Wn],styles:[".published-on[_ngcontent-%COMP%]{font-size:17px;line-height:27px;margin-top:27px}"],changeDetection:0})}return e})();var _r=e=>["blog","category",e];function ur(e,a){if(e&1&&(c(0,"div",6)(1,"a",14),_(2),l()()),e&2){let t=r(3);o(),p("routerLink",t.getRoute(R(2,_r,t.post.category.shortLink))),o(),b(" ",t.post.category.name," ")}}function Cr(e,a){if(e&1&&(c(0,"div",10),_(1),C(2,"readTime"),l()),e&2){let t=r().$implicit,n=r(2);o(),xt(" ",f(2,2,n.getAllContent(n.post))," ",t("blog.min-read")," ")}}function xr(e,a){if(e&1&&g(0,"mgs-post-views",11),e&2){let t=r(3);p("views",t.post.impressions)}}function fr(e,a){if(e&1&&g(0,"mgs-media",12),e&2){let t=r(3);p("media",t.post.image)("imageFormats",t.imageFormats)}}function hr(e,a){e&1&&(c(0,"div",13),g(1,"mgs-guide-label"),l())}function vr(e,a){if(e&1&&(c(0,"div",2)(1,"div",3)(2,"div",4)(3,"h1",5),_(4),l(),m(5,ur,3,4,"div",6),l(),c(6,"div",7)(7,"div",8)(8,"div",9),m(9,Cr,3,4,"div",10),m(10,xr,1,1,"mgs-post-views",11),l(),m(11,fr,1,2,"mgs-media",12),m(12,hr,2,0,"div",13),l()()()()),e&2){let t=r(2);o(4),v(t.post==null?null:t.post.name),o(),d(!(t.post==null||t.post.category==null)&&t.post.category.name&&(!(t.post==null||t.post.category==null)&&t.post.category.shortLink)?5:-1),o(4),d(t.post!=null&&t.post.content?9:-1),o(),d(t.post!=null&&t.post.impressions?10:-1),o(),d(!(t.post==null||t.post.image==null||t.post.image.url==null)&&t.post.image.url.length?11:-1),o(),d(t.type==="guide"?12:-1)}}function br(e,a){if(e&1&&(c(0,"div",0),y(1,vr,13,6,"div",1),l()),e&2){let t=r();p("ngClass",t.type)}}var ce=(()=>{class e{localizationService;toolsService;type;post;imageFormats=An;constructor(t,n){this.localizationService=t,this.toolsService=n}getRoute(t){return this.localizationService.getLocalizedRoute(t)}getAllContent(t){return this.toolsService.getAllContent(t)}static \u0275fac=function(n){return new(n||e)(tt(O),tt(Q))};static \u0275cmp=h({type:e,selectors:[["mgs-article-header"]],inputs:{type:"type",post:"post"},standalone:!1,decls:1,vars:1,consts:[[1,"art-header",3,"ngClass"],["class","wrap",4,"transloco"],[1,"wrap"],[1,"art-header-top"],[1,"art-header-data"],[1,"art-header-title"],[1,"art-header-cat"],[1,"art-header-img"],[1,"art-header-img-wrap"],[1,"art-header-img-label"],[1,"item-label","item-label--white"],[3,"views"],[3,"media","imageFormats"],[1,"art-header-guide-label"],["mat-button","",1,"btn","btn-link","btn-cat-link",3,"routerLink"]],template:function(n,i){n&1&&m(0,br,2,1,"div",0),n&2&&d(i.post?0:-1)},dependencies:[J,N,M,Pt,Ft,Mt,lt],styles:['.art-header-title[_ngcontent-%COMP%]{font-weight:600;margin:0}@media (min-width: 1025px){.art-header-title[_ngcontent-%COMP%]{font-size:38px;line-height:51px}}@media (max-width: 1024.98px){.art-header-title[_ngcontent-%COMP%]{font-size:26px;line-height:38px}}@media (min-width: 1025px){.art-header[_ngcontent-%COMP%]{text-align:center;padding-top:142px;position:relative}.art-header[_ngcontent-%COMP%]:before{content:"";display:block;position:absolute;
1left:0;top:0;width:100%;height:56.1%;background:#e7eff1}}@media (max-width: 1024.98px){.art-header[_ngcontent-%COMP%]{padding-top:60px}}@media (max-width: 1024.98px){.art-header-top[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap}}@media (min-width: 1025px){.art-header-data[_ngcontent-%COMP%]{margin-bottom:60px}}@media (max-width: 1024.98px){.art-header-data[_ngcontent-%COMP%]{order:1;display:flex;flex-direction:column;padding-top:30px}}.art-header-title[_ngcontent-%COMP%]{position:relative}@media (min-width: 1025px){.art-header-title[_ngcontent-%COMP%]{margin-top:0;margin-bottom:10px}}.art-header-title[_ngcontent-%COMP%]{order:1;margin-top:10px;margin-bottom:30px}@media (max-width: 1024.98px){.art-header-cat[_ngcontent-%COMP%]{order:0}}.art-header-cat[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{letter-spacing:.6px}.art-header-img[_ngcontent-%COMP%]{position:relative}@media (max-width: 1024.98px){.art-header-img[_ngcontent-%COMP%]{order:0;margin:0 -30px;width:calc(100% + 60px)}}.art-header-img-wrap[_ngcontent-%COMP%]{position:relative;max-width:920px;margin:0 auto;font-size:0;background:#577e8f}@media (max-width: 1024.98px){.art-header-img-wrap[_ngcontent-%COMP%]{height:47.26vw}}.art-header[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{display:block;width:100%}@media (max-width: 1024.98px){.art-header[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{height:auto}}.art-header-img-label[_ngcontent-%COMP%]{position:absolute;display:flex;align-items:center;z-index:2}.art-header-img-label[_ngcontent-%COMP%] .item-label[_ngcontent-%COMP%]{margin-right:10px}@media (min-width: 1025px){.art-header-img-label[_ngcontent-%COMP%]{left:20px;top:20px}}@media (max-width: 1024.98px){.art-header-img-label[_ngcontent-%COMP%]{left:40px;bottom:20px}}.art-header-guide-label[_ngcontent-%COMP%]{position:absolute;right:-10px;top:20px}@media (max-width: 1024.98px){.art-header-guide-label[_ngcontent-%COMP%]{right:0}}.guide[_ngcontent-%COMP%]:before{background-color:#0f4b81}@media (max-width: 1024.98px){.guide[_ngcontent-%COMP%]{padding-top:0;background-color:#0f4b81;margin-bottom:30px}}@media (max-width: 766.98px){.guide[_ngcontent-%COMP%] .art-header-img-wrap[_ngcontent-%COMP%]{height:336px}}.guide[_ngcontent-%COMP%] .art-header-title[_ngcontent-%COMP%]{color:#fff}@media (max-width: 766.98px){.guide[_ngcontent-%COMP%] .art-header-title[_ngcontent-%COMP%]{margin-bottom:70px}}'],changeDetection:0})}return e})();var yr=()=>["blog"],ci=e=>["blog",e];function Pr(e,a){if(e&1&&(c(0,"a",14),g(1,"mat-icon",16),_(2),l()),e&2){let t=r(3).$implicit,n=r();p("routerLink",n.getRoute(R(2,ci,n.adjacent.prev.shortLink))),o(2),b(" ",t("button.prev")," ")}}function Mr(e,a){if(e&1&&(c(0,"span",15),g(1,"mat-icon",16),_(2),l()),e&2){let t=a.$implicit;o(2),b(" ",t("button.prev")," ")}}function Sr(e,a){e&1&&y(0,Mr,3,1,"span",17)}function Or(e,a){if(e&1&&(c(0,"a",14),_(1),g(2,"mat-icon",18),l()),e&2){let t=r(3).$implicit,n=r();p("routerLink",n.getRoute(R(2,ci,n.adjacent.next.shortLink))),o(),b(" ",t("button.next")," ")}}function wr(e,a){if(e&1&&(c(0,"a",15),_(1),g(2,"mat-icon",18),l()),e&2){let t=a.$implicit;o(),b(" ",t("button.next")," ")}}function kr(e,a){e&1&&y(0,wr,3,1,"a",17)}function Tr(e,a){if(e&1&&(c(0,"div",9)(1,"ul",12)(2,"li",13),m(3,Pr,3,4,"a",14)(4,Sr,1,0,"span",15),l(),c(5,"li",13),m(6,Or,3,4,"a",14)(7,kr,1,0,"a",15),l()()()),e&2){let t=r(3);o(3),d(!(t.adjacent.prev==null||t.adjacent.prev.shortLink==null)&&t.adjacent.prev.shortLink.length?3:4),o(3),d(!(t.adjacent.next==null||t.adjacent.next.shortLink==null)&&t.adjacent.next.shortLink.length?6:7)}}function Br(e,a){if(e&1&&(c(0,"div",4)(1,"a",5)(2,"span",6),g(3,"mat-icon",7),l(),c(4,"span",8),_(5),l()()(),m(6,Tr,8,2,"div",9),c(7,"div",10),g(8,"mgs-subscribe-modal",11),l()),e&2){let t=r().$implicit,n=r();o(),p("routerLink",n.getRoute(U(4,yr))),o(4),b(" ",t("blog.all-posts")," "),o(),d(n.adjacent?6:-1),o(2),p("subscribeFor","blog")}}function Lr(e,a){if(e&1&&(c(0,"p",20)(1,"span",22),_(2),l(),_(3),l()),e&2){let t=r().$implicit,n=r(3);o(2),v(t("button.download-text")),o(),b(" ",n.text," ")}}function Ir(e,a){if(e&1&&(Gt(0),m(1,Lr,4,2,"p",20),c(2,"div",10),g(3,"mgs-subscribe-modal",21),l(),Vt()),e&2){let t=r(3);
1o(),d(t.text?1:-1),o(2),p("btnText",t.subscribeBtn.text)("btnType",t.subscribeBtn.type)("hubspotId",t.hubspotId)("subscribeFor","guide")}}function Dr(e,a){e&1&&y(0,Ir,4,5,"ng-container",19)}function Rr(e,a){if(e&1&&(c(0,"div",2)(1,"div",3),m(2,Br,9,5)(3,Dr,1,0,"ng-container"),l()()),e&2){let t=r();o(2),d(t.type==="blog"?2:3)}}var se=(()=>{class e{adjacent;classList;text;hubspotId;type=St.Blog;subscribeBtn={text:ye.GetItNom,type:Pe.Stroked};localizationService=x(O);getRoute(t){return this.localizationService.getLocalizedRoute(t)}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=h({type:e,selectors:[["mgs-blog-article-bottom-panel"]],inputs:{adjacent:"adjacent",classList:"classList",text:"text",hubspotId:"hubspotId",type:"type"},standalone:!1,decls:2,vars:1,consts:[[1,"bottom-panel",3,"ngClass"],["class","wrap",4,"transloco"],[1,"wrap"],[1,"bottom-panel__body"],[1,"bottom-panel__left"],[1,"blog-list-link",3,"routerLink"],[1,"blog-list-link__ico"],["svgIcon","blog-nav-back","aria-hidden","false","aria-label","All blog posts icon"],[1,"blog-list-link__text"],[1,"article-nav"],[1,"bottom-panel__right"],[3,"subscribeFor"],[1,"article-nav__list"],[1,"article-nav__item"],[1,"article-nav__link",3,"routerLink"],[1,"article-nav__link","disabled"],["svgIcon","pagination-arrow-left","aria-hidden","false","aria-label","Prev icon",1,"article-nav__arrow"],["class","article-nav__link disabled",4,"transloco"],["svgIcon","pagination-arrow-right","aria-hidden","false","aria-label","Next icon"],[4,"transloco"],[1,"bottom-panel__text"],[3,"btnText","btnType","hubspotId","subscribeFor"],[1,"bottom-panel__text_bold"]],template:function(n,i){n&1&&(c(0,"div",0),y(1,Rr,4,1,"div",1),l()),n&2&&p("ngClass",i.classList)},dependencies:[J,N,Qt,nt,M],styles:['.blog-list-link__text[_ngcontent-%COMP%], .article-nav__link[_ngcontent-%COMP%]{font-size:12px;line-height:1.3333;font-weight:600;letter-spacing:.05em}.bottom-panel--article[_ngcontent-%COMP%] .bottom-panel__right[_ngcontent-%COMP%]{margin-left:auto}.bottom-panel--article-guide[_ngcontent-%COMP%] .bottom-panel__body[_ngcontent-%COMP%]{justify-content:center;align-items:center}.bottom-panel__text[_ngcontent-%COMP%]{margin:0 30px 0 0;line-height:1.4}@media (max-width: 766.98px){.bottom-panel__text[_ngcontent-%COMP%]{text-align:center;margin:20px 30px 20px 0}}.bottom-panel__text_bold[_ngcontent-%COMP%]{font-weight:600}.blog-list-link[_ngcontent-%COMP%]{display:flex;align-items:center}.blog-list-link[_ngcontent-%COMP%]:hover, .blog-list-link[_ngcontent-%COMP%]:focus, .blog-list-link[_ngcontent-%COMP%]:active{text-decoration:none;outline:0}.blog-list-link[_ngcontent-%COMP%]:hover .blog-list-link__ico[_ngcontent-%COMP%], .blog-list-link[_ngcontent-%COMP%]:focus .blog-list-link__ico[_ngcontent-%COMP%], .blog-list-link[_ngcontent-%COMP%]:active .blog-list-link__ico[_ngcontent-%COMP%]{box-shadow:0 8px 12px #00000029}.blog-list-link[_ngcontent-%COMP%]:hover .blog-list-link__ico[_ngcontent-%COMP%], .blog-list-link[_ngcontent-%COMP%]:focus .blog-list-link__ico[_ngcontent-%COMP%]{background:#577e8f}.blog-list-link[_ngcontent-%COMP%]:active .blog-list-link__ico[_ngcontent-%COMP%]{background:#254a6b}.blog-list-link__ico[_ngcontent-%COMP%]{width:36px;height:36px;background:#95b3be;border-radius:3px;display:flex;align-items:center;justify-content:center;transition:.2s background}.blog-list-link__text[_ngcontent-%COMP%]{text-transform:uppercase;margin-left:20px;color:#333}.article-nav[_ngcontent-%COMP%]{justify-self:center}.article-nav__list[_ngcontent-%COMP%]{list-style:none;margin:0;padding:0;display:flex}.article-nav__item[_ngcontent-%COMP%]{display:flex;align-items:center}.article-nav__item[_ngcontent-%COMP%] + .article-nav__item[_ngcontent-%COMP%]:before{content:"";height:36px;width:1px;background:#d1d1d4;margin:0 10px}.article-nav__link[_ngcontent-%COMP%]{display:flex;align-items:center;text-transform:uppercase;color:#333;height:36px;padding:0 10px;transition:.2s color}.article-nav__link[_ngcontent-%COMP%]:hover, .article-nav__link[_ngcontent-%COMP%]:focus{text-decoration:none;outline:0;color:#ff6d70}.article-nav__link.disabled[_ngcontent-%COMP%]{opacity:.5}.article-nav[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%]{color:#ff6d70}'],changeDetection:0})}return e})();var Er=e=>({"to-top":e}),Ar=e=>({even:e}),pi=(e,a)=>a.id;function $r(e,a){if(e&1){let t=L();c(0,"button",4),w("click",function(){T(t);let i=r(2);return B(i.toggle())}),c(1,"span",5),_(2),l(),g(3,"mat-icon",6),l()}if(e&2){let t=a.$implicit,n=r(2);o(2),v(t("scroll-btn")),o(),p("ngClass",R(2,Er,n.expanded))}}function Fr(e,a){if(e&1){let t=L();c(0,"li",3)(1,"button",7),w("click",function(){T(t);let i=r(2);return B(i.closeAccordion())}),c(2,"span",8),_(3),l()()()}if(e&2){let t=a.$implicit;o(),p("ngxScrollTo",t.id),o(2),v(t.name)}}function zr(e,a){if(e&1&&(y(0,$r,4,4,"button",1),c(1,"ul",2),A(2,Fr,4,2,"li",3,pi),l()),e&2){let t=r();p("translocoRead","guide.table"),o(),p("@bodyExpansion",t.expanded?"expanded":"collapsed"),o(),$(t.nav)}}function jr(e,a){if(e&1&&(c(0,"span"),_(1),l()),e&2){let t=r().$implicit;o(),v(t("chapter"))}}function Hr(e,a){if(e&1&&(c(0,"span",11),m(1,jr,2,1,"span"),C(2,"async"),_(3),l()),e&2){let t=r().$index,n=r(2);o(),d(f(2,2,n.mobile$)?1:-1),o(2),b(" ",t+1," ")}}function Gr(e,a){if(e&1&&(c(0,"li",3)(1,"button",9),y(2,Hr,4,4,"span",10),c(3,"span",8),_(4),l()()()),e&2){let t=a.$implicit;o(),p("ngxScrollTo",t.id),o(),p("translocoRead","guide.table"),o(2),v(t.name)}}function Vr(e,a){if(e&1&&(c(0,"ul",0),A(1,Gr,5,3,"li",3,pi),l()),e&2){let t=r();p("ngClass",R(1,Ar,t.nav.length%2===0)),o(),$(t.nav)}}var pe=(()=>{class e extends Ln{acc;nav;placing="top";breakpointObserver=x(Ut);mobile$=this.breakpointObserver.observe(["(max-width: 766px)"]).pipe(S(t=>t.matches));constructor(t,n,i){super(t,n,i),this.acc=t}
1closeAccordion(){this.expanded=!1}static \u0275fac=function(n){return new(n||e)(tt(Bn,12),tt(vn),tt(Tn))};static \u0275cmp=h({type:e,selectors:[["mgs-steps-nav"]],inputs:{nav:"nav",placing:"placing"},standalone:!1,features:[hn],decls:2,vars:1,consts:[[1,"guide-steps-nav",3,"ngClass"],["mat-button","","class","guide-steps-nav-btn",3,"click",4,"transloco","translocoRead"],[1,"guide-steps-nav","top"],[1,"guide-steps-nav-item"],["mat-button","",1,"guide-steps-nav-btn",3,"click"],[1,"guide-steps-nav-btn-text"],["svgIcon","f-sub-nav-arrow-down","aria-hidden","false","aria-label","icon",1,"guide-steps-nav-btn-icon",3,"ngClass"],["mat-button","",1,"guide-steps-nav-link",3,"click","ngxScrollTo"],[1,"guide-steps-nav-text"],["mat-button","",1,"guide-steps-nav-link",3,"ngxScrollTo"],["class","guide-steps-nav-title",4,"transloco","translocoRead"],[1,"guide-steps-nav-title"]],template:function(n,i){n&1&&m(0,zr,4,2)(1,Vr,3,3,"ul",0),n&2&&d(i.placing==="top"?0:i.nav!=null&&i.nav.length?1:-1)},dependencies:[J,It,nt,M,D],styles:['.guide-steps-nav[_ngcontent-%COMP%]{padding:0;margin:0;display:flex;flex-wrap:wrap}@media (max-width: 575.98px){.guide-steps-nav[_ngcontent-%COMP%]{max-width:375px;margin:0 auto}}.guide-steps-nav.top[_ngcontent-%COMP%]{overflow:hidden;flex-direction:column;border:1px solid #D1D1D4}.guide-steps-nav.top[_ngcontent-%COMP%] .guide-steps-nav-item[_ngcontent-%COMP%]{width:100%;min-height:auto;border-bottom:1px solid #D1D1D4;margin:0}.guide-steps-nav.top[_ngcontent-%COMP%] .guide-steps-nav-item[_ngcontent-%COMP%]:last-child{border-bottom:none}.guide-steps-nav.top[_ngcontent-%COMP%] .guide-steps-nav-link[_ngcontent-%COMP%]{background-color:#fff;padding:15px 30px 20px}.guide-steps-nav.top[_ngcontent-%COMP%] .guide-steps-nav-link[_ngcontent-%COMP%]:hover, .guide-steps-nav.top[_ngcontent-%COMP%] .guide-steps-nav-link[_ngcontent-%COMP%]:focus, .guide-steps-nav.top[_ngcontent-%COMP%] .guide-steps-nav-link[_ngcontent-%COMP%]:active{background-color:#e7eff1}.guide-steps-nav.top[_ngcontent-%COMP%] .guide-steps-nav-link[_ngcontent-%COMP%]:hover .guide-steps-nav-text[_ngcontent-%COMP%], .guide-steps-nav.top[_ngcontent-%COMP%] .guide-steps-nav-link[_ngcontent-%COMP%]:focus .guide-steps-nav-text[_ngcontent-%COMP%], .guide-steps-nav.top[_ngcontent-%COMP%] .guide-steps-nav-link[_ngcontent-%COMP%]:active .guide-steps-nav-text[_ngcontent-%COMP%]{color:#333}.guide-steps-nav.top[_ngcontent-%COMP%] .guide-steps-nav-link[_ngcontent-%COMP%]:before{display:none}.guide-steps-nav.even[_ngcontent-%COMP%] .guide-steps-nav-item[_ngcontent-%COMP%]{width:254px;min-height:170px}.guide-steps-nav.even[_ngcontent-%COMP%] .guide-steps-nav-item[_ngcontent-%COMP%]:nth-child(4n){margin-right:0}
1.guide-steps-nav.even[_ngcontent-%COMP%] .guide-steps-nav-item[_ngcontent-%COMP%]:nth-child(3n){margin-right:30px}@media screen and (max-width: 1399px){.guide-steps-nav.even[_ngcontent-%COMP%] .guide-steps-nav-item[_ngcontent-%COMP%]{width:calc(25% - 12px);min-height:190px;margin:0 15px 15px 0}.guide-steps-nav.even[_ngcontent-%COMP%] .guide-steps-nav-item[_ngcontent-%COMP%]:nth-child(3n){margin-right:15px}}@media (max-width: 1024.98px){.guide-steps-nav.even[_ngcontent-%COMP%] .guide-steps-nav-item[_ngcontent-%COMP%]{width:calc(33% - 8px)}.guide-steps-nav.even[_ngcontent-%COMP%] .guide-steps-nav-item[_ngcontent-%COMP%]:nth-child(3n){margin-right:0}.guide-steps-nav.even[_ngcontent-%COMP%] .guide-steps-nav-item[_ngcontent-%COMP%]:nth-child(4n){margin-right:15px}}@media (max-width: 766.98px){.guide-steps-nav.even[_ngcontent-%COMP%] .guide-steps-nav-item[_ngcontent-%COMP%]{width:calc(50% - 10px);min-height:90px;margin:0 20px 20px 0}.guide-steps-nav.even[_ngcontent-%COMP%] .guide-steps-nav-item[_ngcontent-%COMP%]:nth-child(2n){margin-right:0}
1.guide-steps-nav.even[_ngcontent-%COMP%] .guide-steps-nav-item[_ngcontent-%COMP%]:nth-child(6n+3){margin-right:20px}}@media (max-width: 575.98px){.guide-steps-nav.even[_ngcontent-%COMP%] .guide-steps-nav-item[_ngcontent-%COMP%]{width:100%;margin:0 0 10px}.guide-steps-nav.even[_ngcontent-%COMP%] .guide-steps-nav-item[_ngcontent-%COMP%]:nth-child(6n+3){margin-right:0}}.guide-steps-nav-item[_ngcontent-%COMP%]{list-style:none;margin:0 30px 30px 0;width:350px;min-height:148px}.guide-steps-nav-item[_ngcontent-%COMP%]:nth-child(2n) .guide-steps-nav-link[_ngcontent-%COMP%]:before{background-color:#5093eb}.guide-steps-nav-item[_ngcontent-%COMP%]:nth-child(3n){margin-right:0}.guide-steps-nav-item[_ngcontent-%COMP%]:nth-child(3n) .guide-steps-nav-link[_ngcontent-%COMP%]:before{background-color:#6d8cd6}.guide-steps-nav-item[_ngcontent-%COMP%]:nth-child(4n) .guide-steps-nav-link[_ngcontent-%COMP%]:before{background-color:#8a86c2}.guide-steps-nav-item[_ngcontent-%COMP%]:nth-child(5n) .guide-steps-nav-link[_ngcontent-%COMP%]:before{background-color:#a880ad}.guide-steps-nav-item[_ngcontent-%COMP%]:nth-child(6n) .guide-steps-nav-link[_ngcontent-%COMP%]:before{background-color:#c57a99}.guide-steps-nav-item[_ngcontent-%COMP%]:nth-child(7n) .guide-steps-nav-link[_ngcontent-%COMP%]:before{background-color:#e27384}.guide-steps-nav-item[_ngcontent-%COMP%]:nth-child(8n) .guide-steps-nav-link[_ngcontent-%COMP%]:before{background-color:#ff6d70}.guide-steps-nav-item[_ngcontent-%COMP%]:last-child{margin-right:0}@media screen and (max-width: 1399px){.guide-steps-nav-item[_ngcontent-%COMP%]{width:calc(33% - 8px);min-height:190px;margin:0 15px 15px 0}}@media (max-width: 766.98px){.guide-steps-nav-item[_ngcontent-%COMP%]{min-height:90px;width:calc(50% - 10px);margin:0 20px 20px 0}.guide-steps-nav-item[_ngcontent-%COMP%]:nth-child(2n){margin-right:0}
1.guide-steps-nav-item[_ngcontent-%COMP%]:nth-child(6n+3){margin-right:20px}}@media (max-width: 575.98px){.guide-steps-nav-item[_ngcontent-%COMP%]{width:100%;margin:0 0 10px}.guide-steps-nav-item[_ngcontent-%COMP%]:nth-child(6n+3){margin-right:0}}.guide-steps-nav-link[_ngcontent-%COMP%]{position:relative;display:flex;flex-direction:column;width:100%;min-height:100%;padding:20px 18px 10px 30px;box-sizing:border-box;color:inherit;text-decoration:none;background-color:#e7eff1;outline:none;border:none;text-align:left;transition:background-color .2s;cursor:pointer}.guide-steps-nav-link[_ngcontent-%COMP%]:before{position:absolute;top:46px;left:30px;width:96px;height:16px;background-color:#39f;content:""}@media (max-width: 766.98px){.guide-steps-nav-link[_ngcontent-%COMP%]{padding-bottom:24px}.guide-steps-nav-link[_ngcontent-%COMP%]:before{top:0;left:0;width:8px;height:100%}}.guide-steps-nav-link[_ngcontent-%COMP%]:hover, .guide-steps-nav-link[_ngcontent-%COMP%]:focus, .guide-steps-nav-link[_ngcontent-%COMP%]:active{background-color:#0f4b81}.guide-steps-nav-link[_ngcontent-%COMP%]:hover .guide-steps-nav-title[_ngcontent-%COMP%], .guide-steps-nav-link[_ngcontent-%COMP%]:hover .guide-steps-nav-text[_ngcontent-%COMP%], .guide-steps-nav-link[_ngcontent-%COMP%]:focus .guide-steps-nav-title[_ngcontent-%COMP%], .guide-steps-nav-link[_ngcontent-%COMP%]:focus .guide-steps-nav-text[_ngcontent-%COMP%], .guide-steps-nav-link[_ngcontent-%COMP%]:active .guide-steps-nav-title[_ngcontent-%COMP%], .guide-steps-nav-link[_ngcontent-%COMP%]:active .guide-steps-nav-text[_ngcontent-%COMP%]{color:#fff}@media (max-width: 766.98px){.guide-steps-nav-link[_ngcontent-%COMP%]:hover .guide-steps-nav-title[_ngcontent-%COMP%], .guide-steps-nav-link[_ngcontent-%COMP%]:focus .guide-steps-nav-title[_ngcontent-%COMP%], .guide-steps-nav-link[_ngcontent-%COMP%]:active .guide-steps-nav-title[_ngcontent-%COMP%]{color:#95b3be}}.guide-steps-nav-link[_ngcontent-%COMP%]:active{background-color:#1e3d4f}.guide-steps-nav-title[_ngcontent-%COMP%]{font-family:Roboto Condensed,sans-serif;color:#000;font-size:42px;font-weight:400;margin-bottom:20px;transition:color .2s;z-index:1}@media (max-width: 766.98px){.guide-steps-nav-title[_ngcontent-%COMP%]{font-family:inherit;font-size:14px;font-weight:600;line-height:1.6;color:#95b3be;text-transform:uppercase;margin-bottom:4px}}.guide-steps-nav-text[_ngcontent-%COMP%]{font-size:17px;line-height:1.2;font-weight:600;white-space:pre-line}.guide-steps-nav-btn[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;width:100%;border-radius:0;margin:0 auto;padding:0 30px;line-height:56px;background-color:#95b3be;transition:background-color .2s}.guide-steps-nav-btn[_ngcontent-%COMP%]:hover, .guide-steps-nav-btn[_ngcontent-%COMP%]:focus{background-color:#577e8f}.guide-steps-nav-btn[_ngcontent-%COMP%]:active{background-color:#1e3d4f}.guide-steps-nav-btn-text[_ngcontent-%COMP%]{color:#fff;font-size:12px;font-weight:600;text-transform:uppercase;letter-spacing:.6px;text-decoration:none}.guide-steps-nav-btn-icon[_ngcontent-%COMP%]{display:flex;fill:#fff;transition:transform .2s}.guide-steps-nav-btn-icon.to-top[_ngcontent-%COMP%]{transform-origin:center center;transform:rotate(180deg)}'],data:{animation:[Un.bodyExpansion]},changeDetection:0})}return e})();function Nr(e,a){if(e&1&&g(0,"mgs-subscribe-modal",7),e&2){let t=r();p("btnText",t.subscribeBtn.text)("btnType",t.subscribeBtn.type)("hubspotId",t.hubspotId)("subscribeFor","guide")}}var me=(()=>{class e{type="static";banner;hubspotId;subscribeBtn={text:ye.GetItNom,type:Pe.Flat};static \u0275fac=function(n){return new(n||e)};static \u0275cmp=h({type:e,selectors:[["mgs-guide-banner"]],inputs:{type:"type",banner:"banner",hubspotId:"hubspotId"},standalone:!1,decls:10,vars:5,consts:[[1,"guide-banner-wrap",3,"ngClass"],[1,"guide-banner-inner"],["svgIcon","landings-arrow-down","aria-hidden","false","aria-label","icon",1,"guide-banner-arrow-icon"],[1,"guide-banner-title"],[1,"guide-banner-description"],[1,"guide-banner-image"],[3,"image"],[3,"btnText","btnType","hubspotId","subscribeFor"]],template:function(n,i){n&1&&(c(0,"div",0)(1,"div",1),g(2,"mat-icon",2),c(3,"h3",3),_(4),l(),c(5,"p",4),_(6),l(),c(7,"div",5),g(8,"mgs-picture",6),l(),m(9,Nr,1,4,"mgs-subscribe-modal",7),l()()),n&2&&(p("ngClass",i.type),o(4),b(" ",i.banner.name," "),o(2),b(" ",i.banner.content," "),o(2),p("image",i.banner.image),o(),d(i.hubspotId?9:-1))},dependencies:[J,Qt,nt,rt],styles:[".guide-banner-wrap[_ngcontent-%COMP%]{width:100%;background-color:#39f3;margin:0}
1.guide-banner-wrap[_ngcontent-%COMP%] .guide-banner-inner[_ngcontent-%COMP%]{padding:26px 10px 50px;max-width:430px;margin:0 auto}.guide-banner-wrap.sticky[_ngcontent-%COMP%]{position:sticky;top:96px;left:0;right:0}.guide-banner-wrap.sticky[_ngcontent-%COMP%] .guide-banner-inner[_ngcontent-%COMP%]{padding:26px 55px 50px}.guide-banner-wrap.static[_ngcontent-%COMP%]{margin:-10px auto 80px}.guide-banner-inner[_ngcontent-%COMP%]{min-height:548px;text-align:center;display:flex;flex-direction:column;justify-content:center;align-items:center}.guide-banner-arrow-icon[_ngcontent-%COMP%]{width:48px;height:48px;fill:none;stroke:#39f;margin-bottom:18px}.guide-banner-title[_ngcontent-%COMP%]{font-size:24px;font-weight:600;line-height:1.2;color:#39f;margin:0 0 10px}.guide-banner-description[_ngcontent-%COMP%]{font-size:16px;line-height:1.5;margin:0 0 30px}.guide-banner-image[_ngcontent-%COMP%]{margin-bottom:34px;width:140px;height:180px;background-color:#ff6d70}.guide-banner-image[_ngcontent-%COMP%] mgs-picture[_ngcontent-%COMP%]{height:100%}.guide-banner-btn[_ngcontent-%COMP%]{text-transform:uppercase}"],changeDetection:0})}return e})();function Ur(e,a){if(e&1&&(c(0,"button",1)(1,"span",2),_(2),l()()),e&2){let t=a.$implicit;p("ngxScrollTo","#table-of-contents"),o(2),v(t("scroll-btn"))}}var ln=(()=>{class e{constructor(){}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=h({type:e,selectors:[["mgs-guide-scroll-btn"]],standalone:!1,decls:1,vars:2,consts:[["mat-button","","class","guide-scroll-btn",3,"ngxScrollTo",4,"transloco","translocoScope","translocoRead"],["mat-button","",1,"guide-scroll-btn",3,"ngxScrollTo"],[1,"guide-scroll-btn-text"]],template:function(n,i){n&1&&y(0,Ur,3,2,"button",0),n&2&&p("translocoScope","guide")("translocoRead","guide.table")},dependencies:[It,M],styles:[".guide-scroll-btn[_ngcontent-%COMP%]{text-align:center;display:block;cursor:pointer;width:176px;line-height:1;background-color:#95b3be;border:0;outline:none;border-radius:16px 16px 0 0;padding:10px 0 20px;transition:background-color .2s}.guide-scroll-btn[_ngcontent-%COMP%]:hover, .guide-scroll-btn[_ngcontent-%COMP%]:focus{background-color:#577e8f}.guide-scroll-btn[_ngcontent-%COMP%]:active{background-color:#1e3d4f}.guide-scroll-btn-text[_ngcontent-%COMP%]{color:#fff;font-size:12px;font-weight:600;text-transform:uppercase;letter-spacing:.6px;text-decoration:none}"],changeDetection:0})}return e})();function Wr(e,a){if(e&1&&(c(0,"div",1)(1,"div",2)(2,"div",3),_(3),l(),c(4,"div",4),_(5),l(),c(6,"a",5)(7,"span"),_(8),l(),g(9,"mat-icon",6),l()(),c(10,"div",7),g(11,"mgs-picture",8),l()()),e&2){let t=a.$implicit,n=r();o(3),v(t("title")),o(2),v(t("content")),o(),p("href",n.link(),wt),o(2),v(t("btn")),o(3),p("image",n.image)}}var Ge=(()=>{class e{localizationService=x(O);link=Sn(this.localizationService.activeLang$.pipe(S(t=>`https://ad-gallery.mgid.com/${t==="en"?"":t}`)),{requireSync:!0});image={url:"https://mgid-site.s3.amazonaws.com/In_Content_Image_Blue_ee8788fae4.png",alt:"",formats:{small:{ext:".png",url:"https://mgid-site.s3.amazonaws.com/small_In_Content_Image_Blue_ee8788fae4.png",mime:"image/png"},thumbnail:{ext:".png",url:"https://mgid-site.s3.amazonaws.com/thumbnail_In_Content_Image_Blue_ee8788fae4.png",mime:"image/png"}}};static \u0275fac=function(n){return new(n||e)};static \u0275cmp=h({type:e,selectors:[["mgs-wide-banner"]],decls:1,vars:1,consts:[["id","blog-content-banner","class","banner-wrap",4,"transloco","translocoRead"],["id","blog-content-banner",1,"banner-wrap"],[1,"banner-content-wrap"],[1,"banner-title"],[1,"banner-content"],["id","blog-content-banner-link","target","_blank","rel","noopener noreferrer",1,"btn","banner-link",3,"href"],["svgIcon","blog-banner-arrow","aria-label","arrow",1,"banner-icon"],[1,"banner-image-wrap"],[1,"banner-image",3,"image"]],template:function(n,i){n&1&&y(0,Wr,12,5,"div",0),n&2&&p("translocoRead","blog.contentBanner")},dependencies:[nt,ft,M,rt],styles:[".banner-wrap[_ngcontent-%COMP%]{display:flex;background-color:#ffe3e3;border-radius:40px;overflow:hidden}@media (max-width: 766.98px){.banner-wrap[_ngcontent-%COMP%]{flex-direction:column}}.banner-content[_ngcontent-%COMP%]{font-size:18px;line-height:22px;color:#00c;margin:0 0 28px}.banner-content-wrap[_ngcontent-%COMP%]{width:58%;padding:36px 20px 40px 40px}@media (max-width: 766.98px){.banner-content-wrap[_ngcontent-%COMP%]{width:100%;padding:36px 32px 40px}}.banner-title[_ngcontent-%COMP%]{font-weight:600;font-size:32px;line-height:1em;color:#00c;margin:0 0 12px}.banner-image[_ngcontent-%COMP%]{width:100%;
1max-width:200px;height:100%;max-height:200px}.banner-image-wrap[_ngcontent-%COMP%]{align-items:center;justify-content:center;display:flex;width:42%;background-color:#ccd4ff;border-radius:40px}@media (max-width: 766.98px){.banner-image-wrap[_ngcontent-%COMP%]{width:100%;height:260px}}.banner-link[_ngcontent-%COMP%]{font-weight:600;font-size:14px;color:#fff;letter-spacing:normal;line-height:56px;text-decoration:none;text-transform:uppercase;align-items:center;display:inline-flex;padding:0 10px 0 0;background-color:#ff7c7c;border-radius:28px;overflow:hidden}.banner-link[_ngcontent-%COMP%]:hover, .banner-link[_ngcontent-%COMP%]:focus{background:#ff2400}.banner-link[_ngcontent-%COMP%]:hover span[_ngcontent-%COMP%], .banner-link[_ngcontent-%COMP%]:focus span[_ngcontent-%COMP%]{background:#009}.banner-link[_ngcontent-%COMP%]:active{background-color:#ff7c7c}.banner-link[_ngcontent-%COMP%]:active span[_ngcontent-%COMP%]{background:#000075}.banner-link[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{text-align:center;display:inline-block;min-width:162px;padding:0 10px;margin-right:10px;background-color:#00c;border-radius:28px}.banner-icon[_ngcontent-%COMP%]{stroke:#fff;color:transparent;width:36px;height:36px}"],changeDetection:0})}return e})();var Qr=e=>["blog","category",e],cn=(()=>{class e{category;url;localizationService=x(O);getRoute(t){return this.localizationService.getLocalizedRoute(t)}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=h({type:e,selectors:[["mgs-article-category"]],inputs:{category:"category",url:"url"},standalone:!1,decls:3,vars:4,consts:[[1,"art-category"],["mat-button","",1,"btn","btn-link","btn-cat-link",3,"routerLink"]],template:function(n,i){n&1&&(c(0,"div",0)(1,"a",1),_(2),l()()),n&2&&(o(),p("routerLink",i.getRoute(R(2,Qr,i.url))),o(),b(" ",i.category," "))},dependencies:[N],encapsulation:2,changeDetection:0})}return e})();var Zr=e=>["blog","tags",e],Kr=(e,a)=>a.id;function Xr(e,a){if(e&1&&(c(0,"a",2),_(1),l()),e&2){let t=r().$implicit,n=r();p("routerLink",n.getRoute(R(2,Zr,t.shortLink))),o(),b(" ",t.name," ")}}function tl(e,a){if(e&1&&(c(0,"div",1),m(1,Xr,2,4,"a",2),l()),e&2){let t=a.$implicit;o(),d(!(t==null||t.name==null)&&t.name.length&&(!(t==null||t.shortLink==null)&&t.shortLink.length)?1:-1)}}var sn=(()=>{class e{localizationService;tags;constructor(t){this.localizationService=t}getRoute(t){return this.localizationService.getLocalizedRoute(t)}static \u0275fac=function(n){return new(n||e)(tt(O))};static \u0275cmp=h({type:e,selectors:[["mgs-article-tags"]],inputs:{tags:"tags"},standalone:!1,decls:3,vars:0,consts:[[1,"art-tags"],[1,"art-tag"],[1,"art-tag-link",3,"routerLink"]],template:function(n,i){n&1&&(c(0,"div",0),A(1,tl,2,1,"div",1,Kr),l()),n&2&&(o(),$(i.tags))},dependencies:[N],styles:['@charset "UTF-8";.art-tag[_ngcontent-%COMP%]{font-size:14px;line-height:1.3571;font-weight:600}.art-tags[_ngcontent-%COMP%]{color:#577e8f;display:flex;flex-wrap:wrap}.art-tag[_ngcontent-%COMP%]{font-weight:400;color:#577e8f;line-height:21px}.art-tag[_ngcontent-%COMP%]:after{content:"\\a0\\2022\\a0";display:inline-block;vertical-align:middle}.art-tag[_ngcontent-%COMP%]:last-child:after{display:none}.art-tag-link[_ngcontent-%COMP%]{display:inline-block;vertical-align:middle;color:inherit}'],changeDetection:0})}return e})();var pn=(()=>{class e{route=x(G);localizationService=x(O);section$=this.route.parent.url;entity$=this.route.url;lang$=this.localizationService.activeLang$;static \u0275fac=function(n){return new(n||e)};static \u0275cmp=h({type:e,selectors:[["mgs-comments"]],standalone:!1,decls:0,vars:0,template:function(n,i){},encapsulation:2})}return e})();function il(e,a){if(e&1&&(c(0,"div",2),g(1,"mgs-article-category",6),l()),e&2){let t=r(2);o(),p("category",t.post.category.name)("url",t.post.category.shortLink)}}function ol(e,a){if(e&1&&(c(0,"div",3),g(1,"mgs-article-tags",7),l()),e&2){let t=r(2);o(),p("tags",t.post.tags)}}function al(e,a){e&1&&g(0,"mgs-comments")}function rl(e,a){if(e&1&&(c(0,"div",0)(1,"div",1),m(2,il,2,2,"div",2),l(),m(3,ol,2,1,"div",3),g(4,"mgs-author",4),C(5,"readTime"),c(6,"div",5),g(7,"mgs-wide-banner"),l(),m(8,al,1,0,"mgs-comments"),l()),e&2){let t=r();o(2),d(!(t.post==null||t.post.category==null)&&t.post.category.name?2:-1),o(),d(!(t.post==null||t.post.tags==null)&&t.post.tags.length?3:-1),o(),p("author",t.post.author)("readTime",f(5,6,t.post.content))("publishDate",t.post.publishDate),o(4),d(t.articleType==="blog"?8:-1)}}var de=(()=>{class e{post;articleType;localizationService=x(O);getRoute(t){return this.localizationService.getLocalizedRoute(t)}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=h({type:e,selectors:[["mgs-article-footer"]],inputs:{post:"post",articleType:"articleType"},standalone:!1,decls:1,vars:1,consts:[[1,"art-footer"],[1,"art-footer-info"],[1,"art-footer-category"],[1,"art-footer-tags"],["type","content",3,"author","readTime","publishDate"],[1,"art-footer-banner"],[3,"category","url"],[3,"tags"]],template:function(n,i){n&1&&m(0,rl,9,8,"div",0),n&2&&d(i.post?0:-1)},dependencies:[ot,Ge,cn,sn,pn,lt],styles:[".art-footer-banner[_ngcontent-%COMP%]{margin:46px auto 0}@media (min-width: 1025px){.art-footer-info[_ngcontent-%COMP%]{display:flex;margin-bottom:15px}}.art-footer-category[_ngcontent-%COMP%]{width:50%;margin:auto -6px}.art-footer-counters[_ngcontent-%COMP%]{display:flex}@media (min-width: 1025px){.art-footer-counters[_ngcontent-%COMP%]{width:50%;justify-content:flex-end}}@media (max-width: 1024.98px){.art-footer-counters[_ngcontent-%COMP%]{margin:31px 0 16px}}.art-footer-tags[_ngcontent-%COMP%]{margin-bottom:60px}"],changeDetection:0})}return e})();var _i=(e,a)=>a.id;function ll(e,a){if(e&1&&(c(0,"div",3)(1,"p",4),_(2),l(),c(3,"h3",5),_(4),l()()),e&2){let t=a.$implicit,n=r(),i=n.$implicit,s=n.$index;o(2),xt("",t("chapter")," ",s+1),o(2),v(i.name)}}function cl(e,a){if(e&1&&g(0,"markdown",6),e&2){let t=r().$implicit;p("data",t.content)}}function sl(e,a){if(e&1&&g(0,"mgs-guide-banner",7),e&2){let t=r().$implicit,n=r(3);p("type","static")("banner",n.article.banners[t.banner])("hubspotId",n.article.hubspotFormId)}}function pl(e,a){if(e&1&&(m(0,cl,1,1,"markdown",6),m(1,sl,1,3,"mgs-guide-banner",7)),e&2){let t=a.$implicit,n=r(3);d(t!=null&&t.content?0:-1),o(),d(n.showBanner(t)?1:-1)}}function ml(e,a){if(e&1&&(c(0,"div",2),A(1,pl,2,2,null,null,_i),l()),e&2){let t=r().$implicit;o(),$(t.parsedContent)}}function dl(e,a){if(e&1&&(c(0,"div",0),y(1,ll,5,3,"div",1),m(2,ml,3,0,"div",2),l()),e&2){let t=a.$implicit;p("id",Tt(t.id)),o(),p("translocoRead","guide.table"),o(),d(!(t==null||t.parsedContent==null)&&t.parsedContent.length?2:-1)}}var ne=class e{article;showBanner(a){return a.banner&&this.article.banners.length>Number(a.banner)}static \u0275fac=function(t){return new(t||e)};static \u0275cmp=h({type:e,selectors:[["mgs-guide-steps-content"]],inputs:{article:"article"},standalone:!1,decls:2,vars:0,consts:[[1,"steps",3,"id"],["class","steps-top",4,"transloco","translocoRead"],[1,"steps-content"],[1,"steps-top"],[1,"steps-top-chapter"],[1,"steps-top-title"],[1,"markdown","guide-step",3,"data"],[1,"article-banner",3,"type","banner","hubspotId"]],template:function(t,n){t&1&&A(0,dl,3,4,"div",0,_i),t&2&&$(n.article.steps)},dependencies:[Dt,M,me],styles:['.steps[_ngcontent-%COMP%]:last-child .markdown[_ngcontent-%COMP%]{padding-bottom:40px}.steps[_ngcontent-%COMP%]:last-child .markdown[_ngcontent-%COMP%]:after{opacity:1}.steps-top[_ngcontent-%COMP%]{position:relative;margin-bottom:50px;padding:34px 76px 38px;background-color:#0f4b81;min-height:210px}@media (max-width: 766.98px){.steps-top[_ngcontent-%COMP%]{padding:34px 30px 38px 60px;margin-bottom:40px;min-height:170px}}.steps-top[_ngcontent-%COMP%]:before{position:absolute;top:30px;left:30px;height:calc(100% - 60px);width:16px;background-color:#95b3be;content:""}@media (max-width: 766.98px){.steps-top[_ngcontent-%COMP%]:before{width:8px}}.steps-top-chapter[_ngcontent-%COMP%]{font-size:17px;font-weight:600;line-height:1.2;letter-spacing:1.6px;color:#95b3be;margin:0 0 12px}@media (max-width: 766.98px){.steps-top-chapter[_ngcontent-%COMP%]{margin-bottom:10px}}.steps-top-title[_ngcontent-%COMP%]{margin:0;font-size:40px;font-weight:600;line-height:1.2;color:#fff}@media (max-width: 766.98px){.steps-top-title[_ngcontent-%COMP%]{font-size:26px}}.steps-content[_ngcontent-%COMP%]{max-width:665px;margin:0 auto}.steps[_ngcontent-%COMP%] .markdown[_ngcontent-%COMP%]{padding-bottom:80px}.steps[_ngcontent-%COMP%] .markdown[_ngcontent-%COMP%]:after{opacity:0;border-radius:0}'],changeDetection:0})};gn([zn()],ne.prototype,"showBanner",null);function _l(e,a){if(e&1&&(c(0,"div",6)(1,"button",10),g(2,"mat-icon",11),l()()),e&2){let t=r(2);o(),p("ngxScrollTo",t.data[0].id)}}function ul(e,a){if(e&1&&(c(0,"div",7),g(1,"mgs-guide-steps-content",12),l()),e&2){let t=r(2);o(),p("article",t.post)}}function Cl(e,a){if(e&1&&(c(0,"div",1)(1,"h2",2),_(2),l(),c(3,"p",3),_(4),l(),c(5,"div",4),g(6,"mgs-steps-nav",5),l(),m(7,_l,3,1,"div",6),C(8,"async"),m(9,ul,2,1,"div",7),c(10,"div",8),g(11,"mgs-article-footer",9),l(
1)()),e&2){let t=a.$implicit,n=r();o(2),v(t("title")),o(2),v(t("description")),o(2),p("nav",n.data)("placing","in-content"),o(),d(f(8,8,n.mobile$)?7:-1),o(2),d(!(n.post==null||n.post.steps==null)&&n.post.steps.length?9:-1),o(2),p("articleType",n.articleType.Guide)("post",n.post)}}var mn=(()=>{class e{data;post;breakpointObserver=x(Ut);articleType=St;mobile$=this.breakpointObserver.observe(["(max-width: 576px)"]).pipe(S(t=>t.matches));static \u0275fac=function(n){return new(n||e)};static \u0275cmp=h({type:e,selectors:[["mgs-guide-steps"]],inputs:{data:"data",post:"post"},standalone:!1,decls:1,vars:2,consts:[["id","table-of-contents","class","guide-steps",4,"transloco","translocoScope","translocoRead"],["id","table-of-contents",1,"guide-steps"],[1,"guide-steps-title"],[1,"guide-steps-description"],[1,"guide-steps-nav"],[3,"nav","placing"],[1,"guide-steps-arrow"],[1,"guide-steps-content"],[1,"guide-steps-footer"],[3,"articleType","post"],[1,"guide-steps-arrow-btn",3,"ngxScrollTo"],["svgIcon","landings-arrow-down","aria-hidden","false","aria-label","icon",1,"guide-steps-arrow-icon"],[3,"article"]],template:function(n,i){n&1&&y(0,Cl,12,10,"div",0),n&2&&p("translocoScope","guide")("translocoRead","guide.table")},dependencies:[It,de,nt,M,pe,ne,D],styles:[".guide-steps-title[_ngcontent-%COMP%]{font-size:30px;line-height:40px;font-weight:600;margin:0}.guide-steps-title[_ngcontent-%COMP%]{margin-bottom:10px;text-align:center}.guide-steps-description[_ngcontent-%COMP%]{text-align:center;font-size:17px;margin-bottom:50px}.guide-steps-nav[_ngcontent-%COMP%]{margin-bottom:50px}@media (max-width: 575.98px){.guide-steps-nav[_ngcontent-%COMP%]{margin-bottom:20px}}.guide-steps-arrow[_ngcontent-%COMP%]{text-align:center;margin-bottom:40px}.guide-steps-arrow-btn[_ngcontent-%COMP%]{border:none;outline:none;width:48px;height:48px;background-color:transparent}.guide-steps-arrow-icon[_ngcontent-%COMP%]{width:48px;height:48px;fill:none;stroke:#ff6d70;margin-bottom:40px}.guide-steps-footer[_ngcontent-%COMP%]{padding-top:50px;max-width:665px;margin:0 auto 120px}"],changeDetection:0})}return e})();function hl(e,a){if(e&1&&g(0,"mgs-steps-nav",19),e&2){let t=r(3);p("placing","top")("nav",t.steps)}}function vl(e,a){if(e&1&&(c(0,"div",3),m(1,hl,1,2,"mgs-steps-nav",19),l()),e&2){let t=r(2);o(),d(t.steps!=null&&t.steps.length?1:-1)}}function bl(e,a){e&1&&(c(0,"div",4)(1,"div",20),g(2,"mgs-guide-scroll-btn"),l()())}function yl(e,a){if(e&1&&(g(0,"mgs-author",12),C(1,"readTime")),e&2){let t=r(2),n=r();p("author",t.author)("readTime",f(1,4,n.getAllContent(t)))("publishDate",t.publishDate)("type",n.authorTemplateType.guide)}}function Pl(e,a){if(e&1&&(g(0,"mgs-author",12),C(1,"readTime")),e&2){let t=r(2),n=r();p("author",t.author)("readTime",f(1,4,n.getAllContent(t)))("publishDate",t.publishDate)("type",n.authorTemplateType.aside)}}function Ml(e,a){if(e&1&&g(0,"mgs-guide-banner",17),e&2){let t=r(2);p("banner",t.banners[0])("hubspotId",t!=null&&t.hubspotFormId?t==null?null:t.hubspotFormId:null)("type","sticky")}}function Sl(e,a){if(e&1&&g(0,"mgs-guide-steps",18),e&2){let t=r(2);p("data",t.steps)("post",t)}}function Ol(e,a){if(e&1&&(Gt(0),m(1,vl,2,1,"div",3),C(2,"async"),Ht(3,bl,3,0,"div",4),g(4,"mgs-article-header",5),c(5,"div",6)(6,"div",7)(7,"div",8)(8,"div",9),g(9,"mgs-social",10),l(),c(10,"div",11),m(11,yl,2,6,"mgs-author",12),l(),c(12,"div",13),g(13,"mgs-article-content",14),c(14,"p",15),_(15),l()(),c(16,"aside",16),m(17,Pl,2,6,"mgs-author",12),m(18,Ml,1,3,"mgs-guide-banner",17),l()(),m(19,Sl,1,2,"mgs-guide-steps",18),l()(),Vt()),e&2){let t=a.$implicit,n=r(),i=r();o(),d(f(2,15,i.tablet$)?1:3),o(3),p("type",i.articleType.Guide)("post",n),o(5),p("horizontal",!1)("downloadBtn",!!(n!=null&&n.hubspotFormId))("hubspotId",n!=null&&n.hubspotFormId?n.hubspotFormId:null)("color","secondary"),o(2),d(n.author!=null&&n.author.name?11:-1),o(2),p("post",n)("skipTextReplacement",i.skipTextReplacement),o(),p("ngxScrollTo","#table-of-contents"),o(),v(t("ready")),o(2),d(n.author!=null&&n.author.name?17:-1),o(),d(n.banners!=null&&n.banners.length?18:-1),o(),d(n.steps!=null&&n.steps.length?19:-1)}}function wl(e,a){if(e&1&&(c(0,"mgs-float-wrapper"),g(1,"mgs-blog-article-bottom-panel",21),l()),e&2){let t=r(),n=r();o(),p("text",t.name)("hubspotId",t.hubspotFormId)("classList","bottom-panel--article-guide")("type",n.articleType.Guide)}}function kl(e,a){if(e&1&&(c(0,"article",0),y(1,Ol,20,17,"ng-container",1),l(),g(2,"mgs-blog-related-posts",2)(3,"mgs-cooperate"),m(4,wl,2,4,"mgs-float-wrapper"),C(5,"async")),e&2){let t=a,n=r();o(),p("translocoScope","guide")("translocoRead","guide"),o(),p("posts",n.relatedPosts),o(2),d(!f(5,4,n.tablet$)&&(t!=null&&t.hubspotFormId)?4:-1)}}var ge=(()=>{class e{article;relatedPosts;breakpointObserver=x(Ut);toolsService=x(Q);router=x(G);generalSettingsDataService=x(Jt);skipTextReplacement=!1;data$;tablet$=this.breakpointObserver.observe(["(max-width: 1024px)"]).pipe(S(t=>t.matches));articleType=St;authorTemplateType=qn;constructor(){this.router.params.pipe(Wt()).subscribe(()=>{this.skipTextReplacement=this.generalSettingsDataService.firstLoadAfterSSR})}ngOnChanges(){this.data$=j(this.article).pipe(S(t=>(t?.steps?.length&&(t.steps=t.steps.map(n=>(n?.content?.length&&(n.parsedContent=this.parse(n.content)),n))),t)))}parse(t){let n=[],s=new RegExp(/(mgs-banner_)([0-9]{1,3})/g).exec(t);if(s){let u=s[0].replace("mgs-banner_","");n.push({content:s.index!==0?t.slice(0,s.index):"",banner:u});let E=t.slice(s.index+11+u.length);E.length&&n.push(...this.parse(E))}else n.push({content:t});return n}getAllContent(t){return this.toolsService.getAllContent(t)}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=h({type:e,selectors:[["mgs-guide"]],inputs:{article:"article",relatedPosts:"relatedPosts"},standalone:!1,features:[jt],decls:2,vars:3,consts:[[1,"article","guide-article"],[4,"transloco","translocoScope","translocoRead"],["title","blog.related.title",3,"posts"],[1,"guide-article-nav"],[1,"guide-article-label-sticky-wrap"],[3,"type","post"],[1,"article-body"],[1,"wrap","article-body-wrap"],[1,"article-body-inner"],[1,"article-social","guide-article-social"],[3,"horizontal","downloadBtn","hub
1spotId","color"],[1,"guide-article-body-author"],[3,"author","readTime","publishDate","type"],[1,"article-content"],[3,"post","skipTextReplacement"],[1,"guide-article-content-ready",3,"ngxScrollTo"],[1,"article-aside"],[1,"article-banner",3,"banner","hubspotId","type"],[3,"data","post"],[3,"placing","nav"],[1,"guide-article-label-sticky"],[3,"text","hubspotId","classList","type"]],template:function(n,i){if(n&1&&(m(0,kl,6,6),C(1,"async")),n&2){let s;d((s=f(1,1,i.data$))?0:-1,s)}},dependencies:[It,le,ce,zt,se,ot,Rt,Me,M,Y,pe,me,ln,mn,D,lt],styles:[".guide-article[_ngcontent-%COMP%]{position:relative}.guide-article-label-sticky[_ngcontent-%COMP%]{position:sticky;top:230px;left:0;right:0;transform:rotate(-90deg)}.guide-article-label-sticky-wrap[_ngcontent-%COMP%]{width:45px;position:absolute;top:500px;right:0;height:100%;z-index:10}.guide-article-nav[_ngcontent-%COMP%]{padding-top:60px;margin:0 auto 20px;max-width:600px}@media (max-width: 575.98px){.guide-article-nav[_ngcontent-%COMP%]{max-width:375px}}.guide-article[_ngcontent-%COMP%] .article-content[_ngcontent-%COMP%]{padding-bottom:62px;border-bottom:1px solid #D1D1D4;margin-bottom:70px}@media (max-width: 766.98px){.guide-article[_ngcontent-%COMP%] .article-content[_ngcontent-%COMP%]{margin-bottom:50px;padding-bottom:32px}}.guide-article[_ngcontent-%COMP%] .article-content[_ngcontent-%COMP%] .markdown[_ngcontent-%COMP%]:after{display:none}@media (max-width: 1024.98px){.guide-article-social[_ngcontent-%COMP%]{margin-bottom:50px}}.guide-article-body-author[_ngcontent-%COMP%]{display:none}@media (max-width: 1024.98px){.guide-article-body-author[_ngcontent-%COMP%]{display:block;margin-bottom:50px}}.guide-article-content-ready[_ngcontent-%COMP%]{margin:102px 0 0;font-size:20px;font-weight:600;line-height:1.5;color:#577e8f;cursor:pointer}@media (max-width: 766.98px){.guide-article-content-ready[_ngcontent-%COMP%]{text-align:center;margin-top:30px}}"],changeDetection:0})}return e})();var Bl=()=>["signup"];function Ll(e,a){if(e&1&&(c(0,"div",1)(1,"div",2),g(2,"mat-icon",3)(3,"mgs-picture",4),l(),c(4,"p",5),_(5),l(),c(6,"p",6),_(7),l(),c(8,"a",7),_(9),l()()),e&2){let t=a.$implicit,n=r();o(3),p("image",n.image),o(2),v(t("title")),o(2),v(t("content")),o(),p("routerLink",n.getRoute(U(5,Bl))),o(),b(" ",t("btn")," ")}}var Ve=(()=>{class e{localizationService=x(O);image={id:1,url:"https://mgid-site.s3.amazonaws.com/Sidebar_Image_ba8f27ea0b.png",ext:".png",mime:"image/png"};getRoute(t){return this.localizationService.getLocalizedRoute(t)}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=h({type:e,selectors:[["mgs-blog-banner"]],decls:1,vars:1,consts:[["id","blog-sidebar-banner","class","banner-wrap",4,"transloco","translocoRead"],["id","blog-sidebar-banner",1,"banner-wrap"],[1,"banner-image-wrap"],["svgIcon","blog-banner-arrow","aria-label","arrow",1,"banner-icon"],[1,"banner-image",3,"image"],[1,"banner-title"],[1,"banner-content"],["id","blog-sidebar-banner-link","mat-button","",1,"btn","btn-xl","btn-rounded","btn-flat","btn-primary","banner-btn",3,"routerLink"]],template:function(n,i){n&1&&y(0,Ll,10,6,"div",0),n&2&&p("translocoRead","blog.sidebarBanner")},dependencies:[N,ft,M,nt,Rn,Dn,rt],styles:[".banner-wrap[_ngcontent-%COMP%]{align-items:center;display:flex;flex-direction:column;width:100%;padding:0 30px 30px;background-color:#ccd4ff;border-radius:40px;position:sticky;top:96px;left:0;right:0}@media (max-width: 1024.98px){.banner-wrap[_ngcontent-%COMP%]{background-color:#00c;padding:0 38px 30px}}.banner-icon[_ngcontent-%COMP%]{stroke:#00c;color:transparent;width:64px;height:64px;margin:0;transform:rotate(90deg)}@media (max-width: 1024.98px){.banner-icon[_ngcontent-%COMP%]{stroke:#fff}}.banner-image[_ngcontent-%COMP%]{width:72px;height:72px}@media (max-width: 1024.98px){.banner-image[_ngcontent-%COMP%]{display:none}}.banner-image-wrap[_ngcontent-%COMP%]{font-size:0;text-align:center}.banner-title[_ngcontent-%COMP%]{color:#00c;font-weight:600;font-size:32px;line-height:1em;margin:20px 0 16px}@media (max-width: 1024.98px){.banner-title[_ngcontent-%COMP%]{color:#fff;margin-top:16px}}.banner-content[_ngcontent-%COMP%]{color:#00c;font-size:16px;line-height:19px;margin:0 0 24px}@media (max-width: 1024.98px){.banner-content[_ngcontent-%COMP%]{color:#fff}}.banner-btn[_ngcontent-%COMP%]{line-height:56px!important;letter-spacing:inherit!important;align-self:flex-start;min-height:56px!important;padding:0 48px!important;background-color:#ff7c7c!important}.banner-btn[_ngcontent-%COMP%]:hover{background:#ff2400!important}"],changeDetection:0})}return e})();var Dl=()=>["blog"],Rl=e=>["blog",e],El=()=>({dateStyle:"medium"}),Al=(e,a)=>a.id;function $l(e,a){if(e&1&&(c(0,"div",9),_(1),C(2,"translocoDate"),l()),e&2){let t=r(2).$implicit;o(),b(" ",et(2,1,t.publishDate,U(5,El),a)," ")}}function Fl(e,a){if(e&1&&(c(0,"li",7)(1,"a",8),_(2),l(),m(3,$l,3,6,"div",9),C(4,"async"),l()),e&2){let t,n=r().$implicit,i=r(3);o(),p("routerLink",i.getRoute(R(5,Rl,n.shortLink))),o(),b(" ",n.name," "),o(),d((t=f(4,3,n.publishDate&&i.activeLang$))?3:-1,t)}}function zl(e,a){if(e&1&&m(0,Fl,5,7,"li",7),e&2){let t=a.$implicit;d(t!=null&&t.name&&(t!=null&&t.shortLink)?0:-1)}}function jl(e,a){if(e&1&&(Gt(0),c(1,"div",2)(2,"p",3),_(3),l()(),c(4,"div",4)(5,"ul",5),A(6,zl,1,1,null,null,Al),l(),c(8,"a",6),_(9),l()(),Vt()),e&2){let t=a.$implicit,n=r(),i=r();o(3),v(t("blog.recent")),o(3),$(n),o(2),p("routerLink",i.getRoute(U(3,Dl))),o(),b("",t("button.view-more"),"\u2026")}}function Hl(e,a){e&1&&(c(0,"div",0),y(1,jl,10,4,"ng-container",1),l())}var ui=(()=>{class e{article;localizationService=x(O);blogService=x(F);recentPosts$;activeLang$=this.localizationService.activeLang$;ngOnChanges(){this.recentPosts$=j(this.article).pipe(at(t=>{if(t.type==="guide")return j([]);let n=this.blogService.blogSortList().filter(i=>i.sortBy==="recent")[0];
1return this.blogService.blogListBySort({id:t.id,limit:4,sort:n.gql})}))}getRoute(t){return this.localizationService.getLocalizedRoute(t)}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=h({type:e,selectors:[["mgs-blog-related-posts-links"]],inputs:{article:"article"},standalone:!1,features:[jt],decls:2,vars:3,consts:[[1,"blog-related-posts-links"],[4,"transloco"],[1,"blog-related-posts-links__header"],[1,"blog-related-posts-links__title"],[1,"blog-related-posts-links__body"],[1,"blog-related-posts-links__list"],[1,"blog-related-posts-links__more-link",3,"routerLink"],[1,"blog-related-posts-links__item"],[1,"blog-related-posts-links__link",3,"routerLink"],[1,"blog-related-posts-links__date"]],template:function(n,i){if(n&1&&(m(0,Hl,2,0,"div",0),C(1,"async")),n&2){let s;d((s=f(1,1,i.recentPosts$))?0:-1,s)}},dependencies:[N,M,D,Lt],styles:[".blog-related-posts-links__title[_ngcontent-%COMP%]{font-size:24px;line-height:32px;font-weight:600;margin:0}.blog-related-posts-links__link[_ngcontent-%COMP%]{font-size:16px;line-height:1.5}.blog-related-posts-links__date[_ngcontent-%COMP%], .blog-related-posts-links__more-link[_ngcontent-%COMP%]{font-size:14px;line-height:1.3571;font-weight:600}@media (min-width: 1025px){.blog-related-posts-links[_ngcontent-%COMP%]{border-left:1px solid #FF6D70;padding:0 30px 15px}}@media (max-width: 1024.98px){.blog-related-posts-links[_ngcontent-%COMP%]{padding:0;margin-bottom:70px}}@media (min-width: 1025px){.blog-related-posts-links__header[_ngcontent-%COMP%]{border-bottom:1px solid #FF6D70;margin-bottom:20px;padding-bottom:20px}}@media (max-width: 1024.98px){.blog-related-posts-links__header[_ngcontent-%COMP%]{margin-bottom:59px}}.blog-related-posts-links__title[_ngcontent-%COMP%]{margin:0}@media (min-width: 1025px){.blog-related-posts-links__title[_ngcontent-%COMP%]{color:#ff6d70}}@media (max-width: 1024.98px){.blog-related-posts-links__title[_ngcontent-%COMP%]{font-size:30px;line-height:40px;color:#577e8f;text-align:center}}@media (max-width: 1024.98px){.blog-related-posts-links__body[_ngcontent-%COMP%]{border-left:1px solid #FF6D70;padding:0 0 15px 30px}}.blog-related-posts-links__list[_ngcontent-%COMP%]{list-style:none;margin:0 0 46px;padding:0}.blog-related-posts-links__item[_ngcontent-%COMP%]{margin-bottom:29px}.blog-related-posts-links__link[_ngcontent-%COMP%]{display:inline-block;font-weight:600;color:#333;text-decoration:none}.blog-related-posts-links__link[_ngcontent-%COMP%]:hover, .blog-related-posts-links__link[_ngcontent-%COMP%]:focus{text-decoration:underline;color:#333;outline:0}.blog-related-posts-links__link[_ngcontent-%COMP%]:active{color:#0f4b81;text-decoration:underline}.blog-related-posts-links__date[_ngcontent-%COMP%]{font-weight:400;margin-top:9px;color:#577e8f}.blog-related-posts-links__more-link[_ngcontent-%COMP%]{text-transform:uppercase;color:#95b3be;letter-spacing:1.4px}.blog-related-posts-links__more-link[_ngcontent-%COMP%]:hover, .blog-related-posts-links__more-link[_ngcontent-%COMP%]:focus{text-decoration:underline;color:#577e8f;outline:0}.blog-related-posts-links__more-link[_ngcontent-%COMP%]:active{color:#1e3d4f;text-decoration:underline}"],changeDetection:0})}return e})();function Vl(e,a){if(e&1&&(c(0,"article",3),g(1,"mgs-article-header",4),c(2,"div",5)(3,"div",6)(4,"div",7)(5,"div",8),g(6,"mgs-social",9),l(),c(7,"div",10),g(8,"mgs-article-content",11),c(9,"div",12),g(10,"mgs-article-footer",13),l()(),c(11,"aside",14),g(12,"mgs-author",15),C(13,"readTime"),g(14,"mgs-blog-related-posts-links",16)(15,"mgs-blog-banner",17),l()()()()()),e&2){let t=r(2);o(),p("type",t.articleType.Blog)("post",t.article),o(5),p("horizontal",!1)("color","secondary"),o(2),p("post",t.article)("skipTextReplacement",t.skipTextReplacement),o(2),p("articleType",t.articleType.Blog)("post",t.article),o(2),p("author",t.article.author)("readTime",f(13,12,t.article.content))("publishDate",t.article.publishDate),o(2),p("article",t.article)}}function Nl(e,a){if(e&1&&(y(0,Vl,16,14,"article",0),g(1,"mgs-blog-related-posts",1),c(2,"mgs-float-wrapper"),g(3,"mgs-blog-article-bottom-panel",2),l()),e&2){let t=r();o(),p("posts",t.relatedPosts),o(2),p("classList","bottom-panel--article")("adjacent",t.adjacent)("type",t.articleType.Blog)}}var Ci=(()=>{class e{article;adjacent;relatedPosts;bannerLink;router=x(G);generalSettingsDataService=x(Jt);articleType=St;skipTextReplacement=!1;constructor(){this.router.params.pipe(Wt()).subscribe(()=>{this.skipTextReplacement=this.generalSettingsDataService.firstLoadAfterSSR})}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=h({type:e,selectors:[["mgs-blog-article"]],inputs:{article:"article",adjacent:"adjacent",relatedPosts:"relatedPosts",bannerLink:"bannerLink"},standalone:!1,decls:2,vars:1,consts:[["class","article blog-article",4,"transloco"],["title","blog.related.title",3,"posts"],[3,"classList","adjacent","type"],[1,"article","blog-article"],[3,"type","post"],[1,"article-body"],[1,"wrap","article-body-wrap"],[1,"article-body-inner"],[1,"article-social"],[3,"horizontal","color"],[1,"article-content"],[3,"post","skipTextReplacement"],[1,"article-content-footer"],[3,"articleType","post"],[1,"article-aside"],["type","aside",3,"author","readTime","publishDate"],[3,"article"],[1,"article-banner"]],template:function(n,i){n&1&&(m(0,Nl,4,4),g(1,"mgs-cooperate")),n&2&&d(i.article?0:-1)},dependencies:[M,le,de,ce,zt,se,ot,Rt,Me,Y,Ve,ui,lt],encapsulation:2,changeDetection:0})}return e})();function ql(e,a){if(e&1&&(g(0,"mgs-guide",0),C(1,"async")),e&2){let t=r(),n=r();p("article",t)("relatedPosts",f(1,2,n.relatedPosts$))}}function Wl(e,a){if(e&1&&(g(0,"mgs-blog-article",1),C(1,"async"),C(2,"async"),C(3,"async")),e&2){let t=r(),n=r();p("article",t)("adjacent",f(1,4,n.adjacent$))("relatedPosts",f(2,6,n.relatedPosts$))("bannerLink",f(3,8,n.bannerLink$))}}function Jl(e,a){e&1&&m(0,ql,2,4,"mgs-guide",0)(1,Wl,4,10,"mgs-blog-article",1),e&2&&d(a.type==="guide"?0:1)}var xi=(()=>{class e{platformId;route=x(G);zone=x(xn);blogService=x(F);generalSettingsDataService=x(Jt);article$=this.route.data.pipe(H("blogArticle"),pt(t=>this.addImpression(t)),W({refCount:!0,bufferSize:1}));interval;adjacent$=this.article$.pipe(at(t=>t.type==="guide"?j(null):this.blogService.getAdjacent(t.publishDate)));bannerLink$=this.article$.pipe(at(t=>t.type==="guide"?j(null):this.generalSettingsDataService.settingsData$.pipe(H("generalSettings","blogArticleBannerLink"))));relatedPosts$=this.article$.pipe(_e(50),at(t=>{let n=this.blogService.blogSortList().filter(s=>s.sortBy==="popular")[0],i={id:t.id,sort:n.gql,limit:3};return t.type!=="guide"&&t.category?.id&&(i=gt(dt({},i),{categoryId:t.category.id})),this.blogService.blogListBySort(i)}));isBrowser;constructor(t){this.platformId=t,bn(this.platformId)&&(this.isBrowser=!0)}
1addImpression(t){this.isBrowser&&this.zone.runOutsideAngular(()=>{this.interval=setTimeout(()=>{this.blogService.addImpression(t.id,t.type).pipe(Ot(1)).subscribe()},5e3)})}ngOnDestroy(){clearInterval(this.interval)}static \u0275fac=function(n){return new(n||e)(tt(ue))};static \u0275cmp=h({type:e,selectors:[["mgs-blog-article-wrap"]],standalone:!1,decls:2,vars:3,consts:[[3,"article","relatedPosts"],[3,"article","adjacent","relatedPosts","bannerLink"]],template:function(n,i){if(n&1&&(m(0,Jl,2,1),C(1,"async")),n&2){let s;d((s=f(1,1,i.article$))?0:-1,s)}},dependencies:[ge,Ci,D],encapsulation:2,changeDetection:0})}return e})();var Ql=[{path:"",component:ti,runGuardsAndResolvers:"always",resolve:{blogList:Be},data:{animation:"fade"}},{path:"category/:shortLink",component:ei,runGuardsAndResolvers:"always",resolve:{blogList:Ie},data:{animation:"fade",breadcrumbs:[{label:"blogList:category:name"}]}},{path:"search",component:ni,data:{breadcrumbs:[{label:"search"}]}},{path:"author/:shortLink",component:oi,runGuardsAndResolvers:"always",resolve:{blogAuthorPage:De},data:{animation:"fade",breadcrumbs:[{label:"blogAuthorPage:author:name"}]}},{path:"tags/:shortLink",component:ai,runGuardsAndResolvers:"always",resolve:{blogTagPage:Re},data:{animation:"fade",breadcrumbs:[{label:"blogTagPage:tag:name"}]}},{path:":shortLink",component:xi,runGuardsAndResolvers:"always",resolve:{blogArticle:He},data:{animation:"fade",breadcrumbs:[{label:"blogArticle:category:name",hasNoRoute:!0,partRoute:["category"]},{label:"blogArticle:name"}]}}],fi=(()=>{class e{static \u0275fac=function(n){return new(n||e)};static \u0275mod=Ct({type:e});static \u0275inj=ut({imports:[Bt.forChild(Ql),Bt]})}return e})();var Yl=()=>({}),dn=(()=>{class e{static \u0275fac=function(n){return new(n||e)};static \u0275cmp=h({type:e,selectors:[["mgs-guides"]],standalone:!1,decls:3,vars:3,consts:[["type","guide-item",1,"blog-item",3,"item","classList"]],template:function(n,i){n&1&&(c(0,"p"),_(1,"guides works!"),l(),g(2,"mgs-blog-list-item",0)),n&2&&(o(2),p("item",U(2,Yl))("classList","blog-item--main-list"))},dependencies:[ct],encapsulation:2,changeDetection:0})}return e})();var hi=(()=>{class e{http=x(Pn);environmentService=x(fe);toolsService=x(Q);apiUrl=this.environmentService.get("apiUrl");getArticle(t){let n=this.toolsService.getQueryParams(t);return this.http.get(`${this.apiUrl}posts/article`,{params:n})}static \u0275fac=function(n){return new(n||e)};static \u0275prov=X({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var Ne=(()=>{class e{guideService;seoService;errorHandlerService;localizationService;constructor(t,n,i,s){this.guideService=t,this.seoService=n,this.errorHandlerService=i,this.localizationService=s}resolve(t,n){return this.guideService.getArticle({shortLink:t.paramMap.get("shortLink"),edit:!!t.queryParamMap.get("edit")}).pipe(S(i=>{i?.shortLink||this.errorHandlerService.generateHttpError();let s=this.localizationService.getActiveLang();return this.localizationService.i18n$.next({oldShortLink:i.shortLink,localizations:[...i.localizations,{locale:i.locale,publishedAt:i.publishedAt,shortLink:i.shortLink}]}),(!i.publishedAt||i.locale!==s)&&this.errorHandlerService.generateHttpError("languages"),i}),S(i=>(i?.content?.length&&(i.content=i.content.replace(/(<img )/g,'<img loading="lazy" ')),i)),K(i=>this.seoService.setSeo({entity:i,type:"post",url:n.url})),_t(i=>this.errorHandlerService.errorHandler(i,n.url)))}static \u0275fac=function(n){return new(n||e)(k(hi),k(it),k(ht),k(O))};static \u0275prov=X({token:e,factory:e.\u0275fac})}return e})();var Kl=[{path:"",component:dn,runGuardsAndResolvers:"always"},{path:":shortLink",component:ge,runGuardsAndResolvers:"always",resolve:{blogArticle:Ne}}],vi=(()=>{class e{static \u0275fac=function(n){return new(n||e)};static \u0275mod=Ct({type:e});static \u0275inj=ut({imports:[Bt.forChild(Kl),Bt]})}return e})();var Ue=(()=>{class e{static \u0275fac=function(n){return new(n||e)};static \u0275mod=Ct({type:e});static \u0275inj=ut({imports:[Nt,Bt,Zt,ot,Yt,qt,ft,ve,Ge]})}return e})();var bi=(()=>{class e{static \u0275fac=function(n){return new(n||e)};static \u0275mod=Ct({type:e});static \u0275inj=ut({providers:[{provide:he,useValue:"guide"},Ne],imports:[Nt,vi,kn,In,Ue,ot,Yt,Se,qt,Zt,ft,Y]})}return e})();var G0=(()=>{class e{static \u0275fac=function(n){return new(n||e)};static \u0275mod=Ct({type:e});static \u0275inj=ut({providers:[{provide:he,useValue:"blog"},Be,Ie,De,Re,F,He],imports:[Nt,fi,Vn,ft,ve,bi,Ue,ot,Kt,ke,Xt,Yt,Se,vt,qt,Nn,Zt,Y,we,Oe,Ve]})}return e})();export{G0 as BlogModule};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.