PageSourceSearch

https://cubeconsulting.gr/src_app_shared_directives_apply-style-co…src_app_shared_d-0e314f.9c91f2f9d2ba710d.js

js cubeconsulting.gr collected 2026-10-04 03:58:46 UTC 4,545 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkPlanoWebsiteBuilder=self.webpackChunkPlanoWebsiteBuilder||[]).push([["src_app_shared_directives_apply-style-config_apply-style-config_directive_ts-src_app_shared_d-0e314f","src_app_shared_directives_apply-style-config_apply-style-config_directive_ts-_b9ae0","src_app_shared_directives_apply-style-config_apply-style-config_directive_ts-_b9ae1"],{9453:(y,p,s)=>{s.d(p,{T:()=>d});var r=s(3953),i=s(9082),f=s(1763),h=s(4121),m=s(177),c=s(2905);let d=(()=>{class g{constructor(e){this.el=e,this.renderer=(0,r.WQX)(r.sFG),this.document=(0,r.WQX)(m.qQ),this.plApplyStyleConfig=(0,r.hFB)(),this.className=("ref-"+Math.random()).replace(".","-"),this.utilsService=(0,r.WQX)(c.T),this.sharedStore=(0,r.WQX)(f.H),this.initEffects()}initEffects(){if("builder"===this.sharedStore.viewMode()){const e=(0,r.WQX)(i.R);(0,r.QZP)(()=>{this.renderMode=e.device();const t=this.plApplyStyleConfig();t&&this.setClasses(t)})}else if("site"===this.sharedStore.viewMode()){const e=(0,r.WQX)(h.M);(0,r.QZP)(()=>{this.renderMode=e.deviceDisplayed();const t=this.plApplyStyleConfig();t&&this.setClasses(t)})}}ngOnDestroy(){const e=this.document.getElementById("style-"+this.className);e&&this.renderer.removeChild(this.document.head,e)}setClasses(e){const t=`.pl-typography .${this.className} { ${this.inlineStyle(e[this.renderMode])} }\n`,n=Object.keys(e.pseudoClasses).map(o=>`.pl-typography .${this.className}:${o} { ${this.inlineStyle(e.pseudoClasses[o])} }\n`).join("");this.utilsService.applyStyleTag(t+n,"style-"+this.className),this.renderer.addClass(this.el.nativeElement,this.className)}inlineStyle(e){if(!e)return"";let t=[];for(let n of Object.keys(e))e[n]&&e[n].length&&t.push(n+": "+e[n]);return t.join(";")}static{this.\u0275fac=function(t){return new(t||g)(r.rXU(r.aKT))}}static{this.\u0275dir=r.FsC({type:g,selectors:[["","plApplyStyleConfig",""]],inputs:{plApplyStyleConfig:[1,"plApplyStyleConfig"]},standalone:!0})}}return g})()},5595:(y,p,s)=>{s.d(p,{g:()=>c});var r=s(177),i=s(3953),f=s(1763),h=s(4121),m=s(4710);let c=(()=>{class d{constructor(a,e,t){if(this.el=a,this.renderer=e,this.router=t,this.plLink=i.hFB.required(),this.sharedStore=(0,i.WQX)(f.H),this.document=(0,i.WQX)(r.qQ),"site"===this.sharedStore.viewMode()){const n=(0,i.WQX)(h.M);this.includeLanguageCode=(0,i.EWP)(()=>n.parsedUrl()?.containsLanguageCodeInUrl??!1)}else this.includeLanguageCode=(0,i.vPA)(!1);(0,i.QZP)(n=>{const o=this.plLink().trim();if(!o)return;const l=this.el.nativeElement,E=l.tagName.toLowerCase(),v="a"===E||"area"===E;if(o.startsWith("http"))this.renderer.setAttribute(l,"href",o),this.renderer.setAttribute(l,"target","_blank"),this.renderer.setAttribute(l,"rel","noopener noreferrer"),n(this.renderer.listen(l,"click",_=>{_.preventDefault(),_.stopPropagation(),window.open(o,"_blank","noopener,noreferrer")}));else if(o.startsWith("tel:")||o.startsWith("mailto:"))this.renderer.setAttribute(l,"href",o),this.renderer.setAttribute(l,"target","_blank"),v||n(this.renderer.listen(l,"click",_=>{_.preventDefault(),_.stopPropagation(),window.location.href=o}));else{const u=this.normalizeInternalLink(o);this.renderer.setAttribute(l,"href",u),n(this.renderer.listen(l,"click",P=>{P.preventDefault(),P.stopPropagation(),this.isSamePageAnchorLink(u)?this.scrollToAnchor(u):this.router.navigateByUrl(u)}))}})}normalizeInternalLink(a){return a.startsWith("#")?`${this.router.url.split("#")[0]}${a}`:this.includeLanguageCode()?"/"+this.sharedStore.currentLanguageCode()+"/"+a:a}
1isSamePageAnchorLink(a){if(!a.includes("#"))return!1;const e=new URL(this.router.url,this.document.location.origin),t=new URL(a,this.document.location.origin);return e.pathname===t.pathname&&e.search===t.search}scrollToAnchor(a){const e=new URL(a,this.document.location.origin),t=decodeURIComponent(e.hash.replace(/^#/,""));if(!t)return;const n=this.document.getElementById(t);n&&(window.history.pushState({},"",e.pathname+e.search+e.hash),n.scrollIntoView({behavior:"smooth",block:"start"}))}static{this.\u0275fac=function(e){return new(e||d)(i.rXU(i.aKT),i.rXU(i.sFG),i.rXU(m.Ix))}}static{this.\u0275dir=i.FsC({type:d,selectors:[["","plLink",""]],inputs:{plLink:[1,"plLink"]},standalone:!0})}}return d})()},247:(y,p,s)=>{s.r(p),s.d(p,{SafeHtmlPipe:()=>f});var r=s(3953),i=s(345);let f=(()=>{class h{constructor(c){this.sanitizer=c}transform(c){return this.sanitizer.bypassSecurityTrustHtml(c)}static{this.\u0275fac=function(d){return new(d||h)(r.rXU(i.up,16))}}static{this.\u0275pipe=r.EJ8({name:"safeHtml",type:h,pure:!0,standalone:!0})}}return h})()}}]);

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.