@pronto-tools-and-more/files 14.2.0 → 14.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/files/framework-latest/src/default/storefront/buildInfo.json +3 -3
- package/files/framework-latest/src/default/storefront/index.html +1 -1
- package/files/framework-latest/src/default/storefront/modules/common.js +1 -1
- package/files/framework-latest/src/default/storefront/modules/default-projects_storefront_src_app_component_base-component_base-datacollection_component_ts-4706f8.js +1 -1
- package/files/framework-latest/src/default/storefront/modules/default-projects_storefront_src_app_component_content_content_module_ts.js +1 -1
- package/files/framework-latest/src/default/storefront/modules/default-projects_storefront_src_app_component_html_html_module_ts.js +1 -1
- package/files/framework-latest/src/default/storefront/modules/default-projects_storefront_src_app_component_image_image_leandom_component_ts-projects_store-a6979f.js +1 -1
- package/files/framework-latest/src/default/storefront/modules/default-projects_storefront_src_app_component_issue_issue_module_ts.js +1 -1
- package/files/framework-latest/src/default/storefront/modules/default-projects_storefront_src_app_component_section_section_module_ts.js +1 -1
- package/files/framework-latest/src/default/storefront/modules/main.js +1 -1
- package/files/framework-latest/src/default/storefront/modules/projects_storefront_src_app_common-pipes_common-pipes_module_ts-projects_storefront_src_app_c-445afb.js +1 -1
- package/files/framework-latest/src/default/storefront/modules/projects_storefront_src_app_component_ad_ad_module_ts.js +1 -1
- package/files/framework-latest/src/default/storefront/modules/projects_storefront_src_app_component_base-component_base-datacollection_component_ts-project-6cb588.js +1 -1
- package/files/framework-latest/src/default/storefront/modules/projects_storefront_src_app_component_catalog-content_content-body_content-body_module_ts.js +1 -1
- package/files/framework-latest/src/default/storefront/modules/projects_storefront_src_app_component_category_category_module_ts.js +1 -1
- package/files/framework-latest/src/default/storefront/modules/projects_storefront_src_app_component_collection_collection_module_ts.js +1 -1
- package/files/framework-latest/src/default/storefront/modules/projects_storefront_src_app_component_component_module_ts.js +1 -1
- package/files/framework-latest/src/default/storefront/modules/projects_storefront_src_app_component_download-issues_download-issues_module_ts.js +1 -1
- package/files/framework-latest/src/default/storefront/modules/projects_storefront_src_app_component_dropdown_dropdown_module_ts.js +1 -1
- package/files/framework-latest/src/default/storefront/modules/projects_storefront_src_app_component_embeddable-view_embeddable-view_module_ts.js +1 -1
- package/files/framework-latest/src/default/storefront/modules/projects_storefront_src_app_component_issue-search-result_issue-search-result_module_ts.js +1 -1
- package/files/framework-latest/src/default/storefront/modules/projects_storefront_src_app_component_menu_menu_module_ts.js +1 -1
- package/files/framework-latest/src/default/storefront/modules/projects_storefront_src_app_component_publication-completion_publication-completion_module_ts.js +1 -1
- package/files/framework-latest/src/default/storefront/modules/projects_storefront_src_app_component_publication_publication_module_ts.js +1 -1
- package/files/framework-latest/src/default/storefront/modules/projects_storefront_src_app_component_subscription_subscription_module_ts.js +1 -1
- package/files/framework-latest/src/default/storefront/modules/projects_storefront_src_app_component_swiper_swiper_module_ts.js +1 -1
- package/files/framework-latest/src/default/storefront/modules/projects_storefront_src_app_component_toggle_toggle_module_ts.js +1 -1
- package/files/framework-latest/src/default/storefront/modules/projects_storefront_src_app_component_toolbar_toolbar_module_ts.js +1 -1
- package/files/framework-latest/src/default/storefront/modules/projects_storefront_src_app_component_web-presenter_presenter_presenter_module_ts.js +1 -1
- package/files/framework-latest/src/default/storefront/modules/projects_storefront_src_app_directive_check-overflow_check-overflow_directive_ts.js +1 -1
- package/files/framework-latest/src/default/storefront/modules/projects_storefront_src_app_modal_modal_leandom_component_ts.js +1 -1
- package/package.json +1 -1
@@ -1 +1 @@
|
|
1
|
-
"use strict";(self.webpackChunkstorefront=self.webpackChunkstorefront||[]).push([["projects_storefront_src_app_common-pipes_common-pipes_module_ts-projects_storefront_src_app_c-445afb","projects_storefront_src_app_directive_check-overflow_check-overflow_directive_ts"],{4767:(E,c,r)=>{r.d(c,{d:()=>_});var e=r(177),a=r(3953);let _=(()=>{var o;class i{}return(o=i).\u0275fac=function(l){return new(l||o)},o.\u0275mod=a.$C({type:o}),o.\u0275inj=a.G2t({imports:[e.MD]}),i})()},2914:(E,c,r)=>{r.d(c,{w:()=>i});var e=r(3953),a=r(4049),_=r(7370),o=r(7879);let i=(()=>{var n;class l{constructor(){this.appData=(0,e.WQX)(o.fj)}transform(t,f){if(!t||(0,_.vh)(t))return t;let h=t?(0,a.K)(t,f):"";const u=this.appData.customDomain?"":"/".concat(this.appData.brand,"/");return"/"===h&&(h=""),"".concat(u).concat(h).concat(this.appData.preview?"?preview=true":"")}}return(n=l).\u0275fac=function(t){return new(t||n)},n.\u0275pipe=e.EJ8({name:"urlTransform",type:n,pure:!0,standalone:!1}),n.\u0275prov=e.jDH({token:n,factory:n.\u0275fac,providedIn:"root"}),l})()},4365:(E,c,r)=>{r.d(c,{AN:()=>n,FZ:()=>l,Mw:()=>m,Rp:()=>i,W9:()=>o});var e=r(4404),o=function(t){return t.COVER="cover",t.CARD="card",t.HIGHLIGHT="highlight",t.DETAILS="details",t.GROUP="group",t}(o||{});const i={showErrorDialog:!0};var n=function(t){return t.SINGLE="SINGLE",t.MULTI="MULTI",t}(n||{}),l=function(t){return t.SILENT="SILENT",t}(l||{});const m={template:o.CARD,openContent:{mode:e.DisplayMode.MODAL,titleBar:!0},downloadOptions:null,customButtons:[],customMessages:[],titleMessage:"ISSUE_TITLE",descriptionMessage:"ISSUE_DESCRIPTION",publicationTitleMessage:"ISSUE_PUBLICATION_TITLE"}},3092:(E,c,r)=>{r.d(c,{X:()=>u,s:()=>h});var e=r(3953),a=r(345),_=r(5927);function o(s,v){1&s&&e.nrm(0,"div",5)}function i(s,v){if(1&s&&(e.qex(0),e.nrm(1,"div",1),e.j41(2,"div",2),e.nrm(3,"div",3),e.k0s(),e.DNE(4,o,1,0,"div",4),e.bVm()),2&s){const g=e.XpG();e.R7$(2),e.xc7("-webkit-clip-path",g.getClipPath())("clip-path",g.getClipPath()),e.R7$(2),e.Y8G("ngIf",g.showBorder)}}function n(s,v){if(1&s&&(e.qex(0),e.j41(1,"div",6),e.nrm(2,"div",7)(3,"div",8),e.k0s(),e.bVm()),2&s){const g=e.XpG();e.R7$(2),e.xc7("width",g.progress,"%"),e.R7$(),e.Y8G("storefrontTranslate",g.message)}}function l(s,v){1&s&&e.nrm(0,"div",9)}function m(s,v){1&s&&e.nrm(0,"storefront-spinner",10)}function t(s,v){1&s&&e.nrm(0,"div",5)}function f(s,v){if(1&s&&(e.qex(0),e.DNE(1,l,1,0,"div",9)(2,m,1,0,"storefront-spinner",10)(3,t,1,0,"div",4),e.j41(4,"div",11),e.EFF(5),e.k0s(),e.nrm(6,"i",12),e.bVm()),2&s){const g=e.XpG();e.R7$(),e.vxM(g.domHelper.leanDom?1:2),e.R7$(2),e.Y8G("ngIf",g.showBorder),e.R7$(2),e.SpI("",g.progress,"%")}}var h=function(s){return s.RADIAL="RADIAL",s.BAR="BAR",s.NUMERIC="NUMERIC",s}(h||{});let u=(()=>{var s;class v{constructor(){this.sanitizer=(0,e.WQX)(a.up),this.domHelper=(0,e.WQX)(_.S),this.type=h.RADIAL,this.showBorder=!1,this.message="ISSUE_ACTION_DOWNLOADING",this.progressOnBorder=!1}get regularType(){return this.domHelper.regularSelector(this.type)}get prefixedType(){return this.domHelper.prefixedSelector(this.type)}getClipPath(){let d;const p=this.progress;return d=p<=12.5?"polygon(50% 0, 50% 50%, ".concat(50+4*p,"% 0, 100% 0)"):p<=25?"polygon(50% 50%, 50% 0, 100% 0, 100% ".concat(4*(p-12.5),"%)"):p<=37.5?"polygon(50% 50%, 50% 0, 100% 0, 100% ".concat(4*(p-25)+50,"%)"):p<=75?"polygon(50% 50%, ".concat(100-4*(p-37.5),"% 100%, 100% 100%, 100% 0, 50% 0)"):p<=87.5?"polygon(50% 50%, 50% 0, 100% 0, 100% 100%, 0 100%, 0 ".concat(50-4*(p-75),"%)"):"polygon(50% 50%, 50% 0, 100% 0, 100% 100%, 0 100%, 0 0, ".concat(4*(p-87.5),"% 0)"),this.sanitizer.bypassSecurityTrustStyle(d)}}return(s=v).\u0275fac=function(d){return new(d||s)},s.\u0275cmp=e.VBU({type:s,selectors:[["storefront-progress"]],hostVars:4,hostBindings:function(d,p){2&d&&(e.BMQ("type",p.regularType)("data-pxp-type",p.prefixedType),e.AVh("progress-on-border",p.progressOnBorder))},inputs:{type:"type",showBorder:"showBorder",message:"message",progressOnBorder:"progressOnBorder",progress:"progress"},standalone:!1,decls:3,vars:3,consts:[[4,"ngIf"],[1,"background-circle"],[1,"loader"],[1,"circle"],["class","border-circle",4,"ngIf"],[1,"border-circle"],[1,"bar"],[1,"bar-indicator"],[1,"bar-message",3,"storefrontTranslate"],["type","segments",1,"pxp-spinner","progress-spinner"],["type","segments",1,"progress-spinner"],[1,"bar-progress"],[1,"icon","icon-delete"]],template:function(d,p){1&d&&e.DNE(0,i,5,5,"ng-container",0)(1,n,4,3,"ng-container",0)(2,f,7,3,"ng-container",0),2&d&&(e.Y8G("ngIf","RADIAL"===p.type),e.R7$(),e.Y8G("ngIf","BAR"===p.type),e.R7$(),e.Y8G("ngIf","NUMERIC"===p.type))},styles:["storefront-progress[type=RADIAL],.pxp-progress[type=RADIAL]{position:relative;display:flex;width:22px;height:22px}storefront-progress[type=RADIAL] .loader,.pxp-progress[type=RADIAL] .loader{position:absolute;left:50%;top:50%;transform:translate(-50%) translateY(-50%);width:calc(100% + 2px);height:calc(100% + 2px);display:flex;align-items:center;justify-content:center}storefront-progress[type=RADIAL] .loader .circle,.pxp-progress[type=RADIAL] .loader .circle{width:calc(100% - 2px);height:calc(100% - 2px);background-color:var(--secondaryColor)}storefront-progress[type=RADIAL] .background-circle,storefront-progress[type=RADIAL] .border-circle,storefront-progress[type=RADIAL] .circle,.pxp-progress[type=RADIAL] .background-circle,.pxp-progress[type=RADIAL] .border-circle,.pxp-progress[type=RADIAL] .circle{border-radius:100%;box-sizing:border-box}storefront-progress[type=RADIAL] .background-circle,storefront-progress[type=RADIAL] .border-circle,.pxp-progress[type=RADIAL] .background-circle,.pxp-progress[type=RADIAL] .border-circle{position:absolute;left:50%;top:50%;transform:translate(-50%) translateY(-50%);width:100%;height:100%}storefront-progress[type=RADIAL] .border-circle,.pxp-progress[type=RADIAL] .border-circle{border:2px solid var(--secondaryColor)}storefront-progress[type=RADIAL].progress-on-border,.pxp-progress[type=RADIAL].progress-on-border{-webkit-mask:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' version='1.1' width='110' height='110'%3E%3Ccircle cx='55' cy='55' r='50' stroke='black' stroke-width='4' fill='none' /%3E%3C/svg%3E\");mask:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' version='1.1' width='110' height='110'%3E%3Ccircle cx='55' cy='55' r='50' stroke='black' stroke-width='4' fill='none' /%3E%3C/svg%3E\");-webkit-mask-size:100%;mask-size:100%}storefront-progress[type=BAR] .bar-indicator,.pxp-progress[type=BAR] .bar-indicator{position:absolute;height:100%;top:0;left:0;background-color:var(--issueProgressColor);transition:width .2s ease}storefront-progress[type=BAR] .bar-message,.pxp-progress[type=BAR] .bar-message{font-size:.8em;z-index:1;position:relative;color:var(--issueProgressFontColor)}storefront-progress[type=NUMERIC],.pxp-progress[type=NUMERIC]{display:flex;justify-content:space-between;align-items:center;padding:0 var(--gutter)}storefront-progress[type=NUMERIC] storefront-spinner.progress-spinner,storefront-progress[type=NUMERIC] .pxp-spinner.progress-spinner,.pxp-progress[type=NUMERIC] storefront-spinner.progress-spinner,.pxp-progress[type=NUMERIC] .pxp-spinner.progress-spinner{--spinnerColor: var(--issueProgressColor);position:relative;background:transparent;padding:0;display:flex;width:20px}storefront-progress[type=NUMERIC] i,.pxp-progress[type=NUMERIC] i{font-size:12px}\n"],encapsulation:2}),v})()},3363:(E,c,r)=>{r.d(c,{E:()=>m});var e=r(177),a=r(3092),_=r(6215),o=r(3953),i=r(8909),n=r(7240),l=r(6962);let m=(()=>{var t;class f{}return(t=f).\u0275fac=function(u){return new(u||t)},t.\u0275mod=o.$C({type:t}),t.\u0275inj=o.G2t({imports:[e.MD,_.O]}),f})();o.wjB(a.X,[e.bT,i.M,n.t,l.n],[])},6953:(E,c,r)=>{r.d(c,{n:()=>_});var e=r(177),a=r(3953);let _=(()=>{var o;class i{}return(o=i).\u0275fac=function(l){return new(l||o)},o.\u0275mod=a.$C({type:o}),o.\u0275inj=a.G2t({imports:[e.MD]}),i})()},2813:(E,c,r)=>{r.d(c,{Z:()=>_});var e=r(3178),a=r(3953);let _=(()=>{var o;class i{transform(l,m){return new Date(l).toLocaleDateString((0,e.JK)())}}return(o=i).\u0275fac=function(l){return new(l||o)},o.\u0275pipe=a.EJ8({name:"storefrontDate",type:o,pure:!0,standalone:!1}),i})()},680:(E,c,r)=>{r.d(c,{G:()=>n});var e=r(3953),a=r(7786),_=r(3726),o=r(8890),i=r(8251);let n=(()=>{var l;class m{constructor(){this.elementRef=(0,e.WQX)(e.aKT),this.subscriptions=(0,e.WQX)(i.v),this.storefrontCheckOverflowTarget="parent"}ngOnChanges(){this.checkScrollable()}ngAfterViewInit(){this.ngOnChanges(),this.target="parent"===this.storefrontCheckOverflowTarget?this.elementRef.nativeElement.parentNode:this.elementRef.nativeElement,this.subscriptions.subscribe((0,a.h)((0,o.Ne)(),(0,_.R)(this.elementRef.nativeElement,"scroll",{passive:!0}),(0,o.S8)(this.elementRef.nativeElement)),f=>this.checkScrollable()),this.checkScrollable()}ngOnInit(){}checkScrollable(){this.target&&("horizontal"===this.storefrontCheckOverflow?this.checkScrollableHorizontal():this.checkScrollableVertical(),this.target.classList.add("initialized"))}checkScrollableVertical(){const f=this.elementRef.nativeElement.scrollHeight-this.elementRef.nativeElement.clientHeight;this.elementRef.nativeElement.scrollHeight>this.elementRef.nativeElement.clientHeight?(this.target.classList.add("scrollable-vert"),Math.abs(f-this.elementRef.nativeElement.scrollTop)>1?this.target.classList.add("scrollable-bottom"):this.target.classList.remove("scrollable-bottom"),this.elementRef.nativeElement.scrollTop>0?this.target.classList.add("scrollable-top"):this.target.classList.remove("scrollable-top")):(this.target.classList.remove("scrollable-vert"),this.target.classList.remove("scrollable-bottom"),this.target.classList.remove("scrollable-top"))}checkScrollableHorizontal(){const f=this.elementRef.nativeElement.scrollWidth-this.elementRef.nativeElement.clientWidth;this.elementRef.nativeElement.scrollWidth>this.elementRef.nativeElement.clientWidth?(this.target.classList.add("scrollable-horiz"),Math.abs(f-this.elementRef.nativeElement.scrollLeft)>1?this.target.classList.add("scrollable-right"):this.target.classList.remove("scrollable-right"),this.elementRef.nativeElement.scrollLeft>0?this.target.classList.add("scrollable-left"):this.target.classList.remove("scrollable-left")):(this.target.classList.remove("scrollable-horiz"),this.target.classList.remove("scrollable-left"),this.target.classList.remove("scrollable-right"))}}return(l=m).\u0275fac=function(f){return new(f||l)},l.\u0275dir=e.FsC({type:l,selectors:[["","storefrontCheckOverflow",""]],inputs:{storefrontCheckOverflow:"storefrontCheckOverflow",storefrontCheckOverflowTarget:"storefrontCheckOverflowTarget"},standalone:!1,features:[e.Jv_([i.v]),e.OA$]}),m})()},1739:(E,c,r)=>{function e(a){return a&&!!a.code}r.d(c,{b:()=>e})}}]);
|
1
|
+
"use strict";(self.webpackChunkstorefront=self.webpackChunkstorefront||[]).push([["projects_storefront_src_app_common-pipes_common-pipes_module_ts-projects_storefront_src_app_c-445afb","projects_storefront_src_app_directive_check-overflow_check-overflow_directive_ts"],{4767:(E,c,t)=>{t.d(c,{d:()=>_});var e=t(177),a=t(3953);let _=(()=>{var o;class i{}return(o=i).\u0275fac=function(l){return new(l||o)},o.\u0275mod=a.$C({type:o}),o.\u0275inj=a.G2t({imports:[e.MD]}),i})()},2914:(E,c,t)=>{t.d(c,{w:()=>i});var e=t(3953),a=t(4049),_=t(7370),o=t(7879);let i=(()=>{var n;class l{constructor(){this.appData=(0,e.WQX)(o.fj)}transform(r,f){if(!r||(0,_.vh)(r))return r;let h=r?(0,a.K)(r,f):"";const u=this.appData.customDomain?"":"/".concat(this.appData.brand,"/");return"/"===h&&(h=""),"".concat(u).concat(h).concat(this.appData.preview?"?preview=true":"")}}return(n=l).\u0275fac=function(r){return new(r||n)},n.\u0275pipe=e.EJ8({name:"urlTransform",type:n,pure:!0,standalone:!1}),n.\u0275prov=e.jDH({token:n,factory:n.\u0275fac,providedIn:"root"}),l})()},4365:(E,c,t)=>{t.d(c,{AN:()=>n,FZ:()=>l,Mw:()=>m,Rp:()=>i,W9:()=>o});var e=t(4404),o=function(r){return r.COVER="cover",r.CARD="card",r.HIGHLIGHT="highlight",r.DETAILS="details",r.GROUP="group",r}(o||{});const i={showErrorDialog:!0};var n=function(r){return r.SINGLE="SINGLE",r.MULTI="MULTI",r}(n||{}),l=function(r){return r.SILENT="SILENT",r}(l||{});const m={template:o.CARD,openContent:{mode:e.DisplayMode.MODAL,titleBar:!0},downloadOptions:null,customButtons:[],customMessages:[],titleMessage:"ISSUE_TITLE",descriptionMessage:"ISSUE_DESCRIPTION",publicationTitleMessage:"ISSUE_PUBLICATION_TITLE"}},3092:(E,c,t)=>{t.d(c,{X:()=>u,s:()=>h});var e=t(3953),a=t(345),_=t(5927);function o(s,v){1&s&&e.nrm(0,"div",5)}function i(s,v){if(1&s&&(e.qex(0),e.nrm(1,"div",1),e.j41(2,"div",2),e.nrm(3,"div",3),e.k0s(),e.DNE(4,o,1,0,"div",4),e.bVm()),2&s){const g=e.XpG();e.R7$(2),e.xc7("-webkit-clip-path",g.getClipPath())("clip-path",g.getClipPath()),e.R7$(2),e.Y8G("ngIf",g.showBorder())}}function n(s,v){if(1&s&&(e.qex(0),e.j41(1,"div",6),e.nrm(2,"div",7)(3,"div",8),e.k0s(),e.bVm()),2&s){const g=e.XpG();e.R7$(2),e.xc7("width",g.progress(),"%"),e.R7$(),e.Y8G("storefrontTranslate",g.message())}}function l(s,v){1&s&&e.nrm(0,"div",9)}function m(s,v){1&s&&e.nrm(0,"storefront-spinner",10)}function r(s,v){1&s&&e.nrm(0,"div",5)}function f(s,v){if(1&s&&(e.qex(0),e.DNE(1,l,1,0,"div",9)(2,m,1,0,"storefront-spinner",10)(3,r,1,0,"div",4),e.j41(4,"div",11),e.EFF(5),e.k0s(),e.nrm(6,"i",12),e.bVm()),2&s){const g=e.XpG();e.R7$(),e.vxM(g.domHelper.leanDom?1:2),e.R7$(2),e.Y8G("ngIf",g.showBorder()),e.R7$(2),e.SpI("",g.progress(),"%")}}var h=function(s){return s.RADIAL="RADIAL",s.BAR="BAR",s.NUMERIC="NUMERIC",s}(h||{});let u=(()=>{var s;class v{constructor(){this.sanitizer=(0,e.WQX)(a.up),this.domHelper=(0,e.WQX)(_.S),this.type=(0,e.hFB)(h.RADIAL),this.showBorder=(0,e.hFB)(!1),this.message=(0,e.hFB)("ISSUE_ACTION_DOWNLOADING"),this.progress=(0,e.hFB)(void 0)}get regularType(){return this.domHelper.regularSelector(this.type())}get prefixedType(){return this.domHelper.prefixedSelector(this.type())}getClipPath(){let d;const p=this.progress();return d=p<=12.5?"polygon(50% 0, 50% 50%, ".concat(50+4*p,"% 0, 100% 0)"):p<=25?"polygon(50% 50%, 50% 0, 100% 0, 100% ".concat(4*(p-12.5),"%)"):p<=37.5?"polygon(50% 50%, 50% 0, 100% 0, 100% ".concat(4*(p-25)+50,"%)"):p<=75?"polygon(50% 50%, ".concat(100-4*(p-37.5),"% 100%, 100% 100%, 100% 0, 50% 0)"):p<=87.5?"polygon(50% 50%, 50% 0, 100% 0, 100% 100%, 0 100%, 0 ".concat(50-4*(p-75),"%)"):"polygon(50% 50%, 50% 0, 100% 0, 100% 100%, 0 100%, 0 0, ".concat(4*(p-87.5),"% 0)"),this.sanitizer.bypassSecurityTrustStyle(d)}}return(s=v).\u0275fac=function(d){return new(d||s)},s.\u0275cmp=e.VBU({type:s,selectors:[["storefront-progress"]],hostVars:2,hostBindings:function(d,p){2&d&&e.BMQ("type",p.regularType)("data-pxp-type",p.prefixedType)},inputs:{type:[1,"type"],showBorder:[1,"showBorder"],message:[1,"message"],progress:[1,"progress"]},standalone:!1,decls:3,vars:3,consts:[[4,"ngIf"],[1,"background-circle"],[1,"loader"],[1,"circle"],["class","border-circle",4,"ngIf"],[1,"border-circle"],[1,"bar"],[1,"bar-indicator"],[1,"bar-message",3,"storefrontTranslate"],["type","segments",1,"pxp-spinner","progress-spinner"],["type","segments",1,"progress-spinner"],[1,"bar-progress"],[1,"icon","icon-delete"]],template:function(d,p){1&d&&e.DNE(0,i,5,5,"ng-container",0)(1,n,4,3,"ng-container",0)(2,f,7,3,"ng-container",0),2&d&&(e.Y8G("ngIf","RADIAL"==p.type()),e.R7$(),e.Y8G("ngIf","BAR"==p.type()),e.R7$(),e.Y8G("ngIf","NUMERIC"==p.type()))},styles:["storefront-progress[type=RADIAL],.pxp-progress[type=RADIAL]{position:relative;display:flex;width:22px;height:22px}storefront-progress[type=RADIAL] .loader,.pxp-progress[type=RADIAL] .loader{position:absolute;left:50%;top:50%;transform:translate(-50%) translateY(-50%);width:calc(100% + 2px);height:calc(100% + 2px);display:flex;align-items:center;justify-content:center}storefront-progress[type=RADIAL] .loader .circle,.pxp-progress[type=RADIAL] .loader .circle{width:calc(100% - 2px);height:calc(100% - 2px);background-color:var(--secondaryColor)}storefront-progress[type=RADIAL] .background-circle,storefront-progress[type=RADIAL] .border-circle,storefront-progress[type=RADIAL] .circle,.pxp-progress[type=RADIAL] .background-circle,.pxp-progress[type=RADIAL] .border-circle,.pxp-progress[type=RADIAL] .circle{border-radius:100%;box-sizing:border-box}storefront-progress[type=RADIAL] .background-circle,storefront-progress[type=RADIAL] .border-circle,.pxp-progress[type=RADIAL] .background-circle,.pxp-progress[type=RADIAL] .border-circle{position:absolute;left:50%;top:50%;transform:translate(-50%) translateY(-50%);width:100%;height:100%}storefront-progress[type=RADIAL] .border-circle,.pxp-progress[type=RADIAL] .border-circle{border:2px solid var(--secondaryColor)}storefront-progress[type=RADIAL].progress-on-border,.pxp-progress[type=RADIAL].progress-on-border{-webkit-mask:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' version='1.1' width='110' height='110'%3E%3Ccircle cx='55' cy='55' r='50' stroke='black' stroke-width='4' fill='none' /%3E%3C/svg%3E\");mask:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' version='1.1' width='110' height='110'%3E%3Ccircle cx='55' cy='55' r='50' stroke='black' stroke-width='4' fill='none' /%3E%3C/svg%3E\");-webkit-mask-size:100%;mask-size:100%}storefront-progress[type=BAR] .bar-indicator,.pxp-progress[type=BAR] .bar-indicator{position:absolute;height:100%;top:0;left:0;background-color:var(--issueProgressColor);transition:width .2s ease}storefront-progress[type=BAR] .bar-message,.pxp-progress[type=BAR] .bar-message{font-size:.8em;z-index:1;position:relative;color:var(--issueProgressFontColor)}storefront-progress[type=NUMERIC],.pxp-progress[type=NUMERIC]{display:flex;justify-content:space-between;align-items:center;padding:0 var(--gutter)}storefront-progress[type=NUMERIC] storefront-spinner.progress-spinner,storefront-progress[type=NUMERIC] .pxp-spinner.progress-spinner,.pxp-progress[type=NUMERIC] storefront-spinner.progress-spinner,.pxp-progress[type=NUMERIC] .pxp-spinner.progress-spinner{--spinnerColor: var(--issueProgressColor);position:relative;background:transparent;padding:0;display:flex;width:20px}storefront-progress[type=NUMERIC] i,.pxp-progress[type=NUMERIC] i{font-size:12px}\n"],encapsulation:2}),v})()},3363:(E,c,t)=>{t.d(c,{E:()=>m});var e=t(177),a=t(3092),_=t(6215),o=t(3953),i=t(8909),n=t(7240),l=t(6962);let m=(()=>{var r;class f{}return(r=f).\u0275fac=function(u){return new(u||r)},r.\u0275mod=o.$C({type:r}),r.\u0275inj=o.G2t({imports:[e.MD,_.O]}),f})();o.wjB(a.X,[e.bT,i.M,n.t,l.n],[])},6953:(E,c,t)=>{t.d(c,{n:()=>_});var e=t(177),a=t(3953);let _=(()=>{var o;class i{}return(o=i).\u0275fac=function(l){return new(l||o)},o.\u0275mod=a.$C({type:o}),o.\u0275inj=a.G2t({imports:[e.MD]}),i})()},2813:(E,c,t)=>{t.d(c,{Z:()=>_});var e=t(3178),a=t(3953);let _=(()=>{var o;class i{transform(l,m){return new Date(l).toLocaleDateString((0,e.JK)())}}return(o=i).\u0275fac=function(l){return new(l||o)},o.\u0275pipe=a.EJ8({name:"storefrontDate",type:o,pure:!0,standalone:!1}),i})()},680:(E,c,t)=>{t.d(c,{G:()=>n});var e=t(3953),a=t(7786),_=t(3726),o=t(8890),i=t(8251);let n=(()=>{var l;class m{constructor(){this.elementRef=(0,e.WQX)(e.aKT),this.subscriptions=(0,e.WQX)(i.v),this.storefrontCheckOverflow=(0,e.hFB)(void 0),this.storefrontCheckOverflowTarget=(0,e.hFB)("parent")}ngOnChanges(){this.checkScrollable()}ngAfterViewInit(){this.ngOnChanges(),this.target="parent"===this.storefrontCheckOverflowTarget()?this.elementRef.nativeElement.parentNode:this.elementRef.nativeElement,this.subscriptions.subscribe((0,a.h)((0,o.Ne)(),(0,_.R)(this.elementRef.nativeElement,"scroll",{passive:!0}),(0,o.S8)(this.elementRef.nativeElement)),f=>this.checkScrollable()),this.checkScrollable()}ngOnInit(){}checkScrollable(){this.target&&("horizontal"===this.storefrontCheckOverflow()?this.checkScrollableHorizontal():this.checkScrollableVertical(),this.target.classList.add("initialized"))}checkScrollableVertical(){const f=this.elementRef.nativeElement.scrollHeight-this.elementRef.nativeElement.clientHeight;this.elementRef.nativeElement.scrollHeight>this.elementRef.nativeElement.clientHeight?(this.target.classList.add("scrollable-vert"),Math.abs(f-this.elementRef.nativeElement.scrollTop)>1?this.target.classList.add("scrollable-bottom"):this.target.classList.remove("scrollable-bottom"),this.elementRef.nativeElement.scrollTop>0?this.target.classList.add("scrollable-top"):this.target.classList.remove("scrollable-top")):(this.target.classList.remove("scrollable-vert"),this.target.classList.remove("scrollable-bottom"),this.target.classList.remove("scrollable-top"))}checkScrollableHorizontal(){const f=this.elementRef.nativeElement.scrollWidth-this.elementRef.nativeElement.clientWidth;this.elementRef.nativeElement.scrollWidth>this.elementRef.nativeElement.clientWidth?(this.target.classList.add("scrollable-horiz"),Math.abs(f-this.elementRef.nativeElement.scrollLeft)>1?this.target.classList.add("scrollable-right"):this.target.classList.remove("scrollable-right"),this.elementRef.nativeElement.scrollLeft>0?this.target.classList.add("scrollable-left"):this.target.classList.remove("scrollable-left")):(this.target.classList.remove("scrollable-horiz"),this.target.classList.remove("scrollable-left"),this.target.classList.remove("scrollable-right"))}}return(l=m).\u0275fac=function(f){return new(f||l)},l.\u0275dir=e.FsC({type:l,selectors:[["","storefrontCheckOverflow",""]],inputs:{storefrontCheckOverflow:[1,"storefrontCheckOverflow"],storefrontCheckOverflowTarget:[1,"storefrontCheckOverflowTarget"]},standalone:!1,features:[e.Jv_([i.v]),e.OA$]}),m})()},1739:(E,c,t)=>{function e(a){return a&&!!a.code}t.d(c,{b:()=>e})}}]);
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";(self.webpackChunkstorefront=self.webpackChunkstorefront||[]).push([["projects_storefront_src_app_component_ad_ad_module_ts"],{3394:(Y,C,c)=>{c.r(C),c.d(C,{AdModule:()=>He,component:()=>Ze});var g=c(177),h=c(467),v=c(9379),e=c(3953),A=c(1210),a=c(9692),x=c(8251),D=c(7031),E=c(6843),G=c(1184),P=c(610),$=c(1803);const U={adId:null};var S=c(2932),V=c(8890),W=c(2596),F=c(7370),O=c(3331),w=c(345),R=c(3178),Q=c(8482),L=c(5964),T=c(6697),j=c(4412),K=c(4572),H=c(7673),y=c(8179),X=c(6078),Z=c(4748),J=c(8582),q=c(953),ee=c(8340),te=c(7816);class b extends te.Q{getAdConfig(){var o;return null===(o=this.data)||void 0===o?void 0:o.configuration}}class I extends ee.U{}class ne extends b{constructor(o){super("Audienzz Ads",o),this.data=o}createInstance(){return new ie(this)}canRunWithoutConsent(){return!0}isValidConfiguration(){const o=this.getAdConfig();return!!(null!=o&&o.adTagId&&null!=o&&o.headerScriptId&&null!=o&&o.headerScriptUrl)}}class ie extends I{constructor(o){super(o),this.config=o}adjustDocument(){var o=this;return(0,h.A)(function*(){return new Promise((i,t)=>{document.head.appendChild(o.createScript(i,t))})})()}showAd(o,i,t,r){const l=this.createAdElement(i.providerConfig);t.parentNode.appendChild(l),r&&r()}removeAd(o){const i=document.getElementById("".concat(o));i&&i.remove()}createAdElement(o){const i=document.createElement("div");return i.id="".concat(o.id),i}createScript(o,i){const t=this.getConfig().getAdConfig(),r=document.createElement("script");return r.id=t.headerScriptId,r.src="".concat(t.headerScriptUrl,"?adTagId=").concat(t.adTagId),r.setAttribute("defer","defer"),r.onload=()=>{console.debug("[".concat(this.getDisplayName(),"] Script loaded successfully")),o()},r.onerror=s=>{console.error("[".concat(this.getDisplayName(),"] Failed to load script:"),s),i(s)},r}}class oe extends b{constructor(){super("NoopAdService",{})}createInstance(){return new k}isValidConfiguration(){return!0}}class k extends I{constructor(){super(new oe)}adjustDocument(){return Promise.resolve()}showAd(){}removeAd(){}}var re=c(7879),ae=c(2305);const se=["platform"];class ce extends b{constructor(o){super("Adspirit Ads",o),this.data=o}createInstance(){return new de(this)}canRunWithoutConsent(){return!0}isValidConfiguration(){const o=this.getAdConfig();return!(null==o||!o.headerScriptId||null==o||!o.headerScriptUrl)}}class de extends I{constructor(o){super(o),this.config=o,this.setWindowKeys()}setWindowKeys(){const{scriptWinKey:o,premiumSubWinKey:i}=this.getConfig().getAdConfig();this.scriptWindowKey=o,this.premiumSubscriptionKey=i}adjustDocument(){var o=this;return(0,h.A)(function*(){return new Promise((i,t)=>{document.head.appendChild(o.createScript(i,t))})})()}showAd(o,i,t,r){var s=this;return(0,h.A)(function*(){var l;const d=i.providerConfig,{platform:f}=d,p=(0,ae.A)(d,se);let m=(null==p?void 0:p.params)||"";if(m.includes("special=no_ad")||s.getPurchasedSubscription())return;m&&!m.startsWith("&")&&(m="&"+m);const u=s.createAdElement(p,m),_=t.parentNode;_.classList.add("ad",...null!==(l=null==f?void 0:f.split(" "))&&void 0!==l?l:[]),_.appendChild(u),s.refreshSlot(p.id),r&&r()})()}removeAd(o){const i=document.getElementById("".concat(o));i&&i.remove()}refreshSlot(o){var i=this;return(0,h.A)(function*(){var t;yield i.init$,null===(t=i.scriptMethods)||void 0===t||t.refreshSlot(o)})()}getPurchasedSubscription(){return!!this.premiumSubscriptionKey&&!!window[this.premiumSubscriptionKey]}createAdElement(o,i){const{id:t,width:r,height:s,spaceTop:l,spaceBottom:d}=o,f=document.createElement("div");let p="ad-content";l&&(p+=" space-top-".concat(l)),d&&(p+=" space-bottom-".concat(d)),f.className=p;const m=document.createElement("div");m.className="ad-content-inner";const u=document.createElement("ins");u.className="asm_async_creative",u.style.display="inline-block",u.style.width=r?"".concat(r,"px"):"100%",u.style.height=s?"".concat(s,"px"):"auto",u.style.textAlign="left",u.style.textDecoration="none",u.setAttribute("data-asm-cdn","cdn.adspirit.de"),u.setAttribute("data-asm-host","apoverlag.adspirit.de"),u.setAttribute("data-asm-params","pid=".concat(t).concat(i));const _=document.createElement("span");return _.className="ad-badge",_.textContent="Anzeige",m.appendChild(u),m.appendChild(_),f.appendChild(m),f}createScript(o,i){const t=this.getConfig().getAdConfig(),r=document.createElement("script");return r.id=t.headerScriptId,r.src="".concat(t.headerScriptUrl),r.setAttribute("defer","defer"),r.onload=()=>{console.debug("[".concat(this.getDisplayName(),"] Script loaded successfully")),globalThis[this.scriptWindowKey]&&(this.scriptMethods=globalThis[this.scriptWindowKey]),o()},r.onerror=s=>{console.error("[".concat(this.getDisplayName(),"] Failed to load script:"),s),i(s)},r}}let le=(()=>{var n;class o{constructor(){this.platformId=(0,e.WQX)(e.Agw),this.pxpConfig=(0,e.WQX)(re.Wp),this.pluginService=(0,e.WQX)(q.z),this.consentService=(0,e.WQX)(X.e),this.activePlugin=new k,this.initPromise=this.initializeAdPlugin()}showAd(t,r,s,l){var d=this;return(0,h.A)(function*(){yield d.initPromise;try{d.activePlugin.showAd(t,r,s,l)}catch(f){console.error("Failed to show plugin ad: ".concat(f))}})()}removeAd(t){var r=this;return(0,h.A)(function*(){yield r.initPromise;try{r.activePlugin.removeAd(t)}catch(s){console.error("Failed to remove plugin ad: ".concat(s))}})()}initializeAdPlugin(){var t=this;return(0,h.A)(function*(){var r;if(!(0,g.UE)(t.platformId))return;yield t.pluginService.init$,yield t.consentService.init$;const s=t.pxpConfig,l=null==s||null===(r=s.purple)||void 0===r?void 0:r.ads;let d;null!=l&&l.audienzz&&(d=t.loadPlugin(l.audienzz,ne)),null!=l&&l.adspirit&&(d=t.loadPlugin(l.adspirit,ce)),d&&(t.activePlugin=d)})()}loadPlugin(t,r){return this.pluginConfig=new r(t),this.consentService.canRunPlugin(this.pluginConfig)&&this.pluginService.loadPlugin(this.pluginConfig)}}return(n=o).\u0275fac=function(t){return new(t||n)},n.\u0275prov=e.jDH({token:n,factory:n.\u0275fac,providedIn:"root"}),o})();var M=c(1302),fe=c(3726),ge=c(152);let z=(()=>{var n;class o{constructor(){this.el=(0,e.WQX)(e.aKT),this.ngZone=(0,e.WQX)(e.SKi),this.platformId=(0,e.WQX)(e.Agw),this.pixelsLeftToScroll=600,this.elementVisible=(0,e.CGW)(),this.isVisible=!1}ngAfterViewInit(){(0,g.UE)(this.platformId)&&this.ngZone.runOutsideAngular(()=>{this.scrollSubscription=(0,fe.R)(window,"scroll",{passive:!0}).pipe((0,ge.B)(100)).subscribe(()=>this.checkPosition()),setTimeout(()=>this.checkPosition(),500)})}ngOnDestroy(){this.scrollSubscription&&this.scrollSubscription.unsubscribe()}checkPosition(){if(!this.isVisible){const t=this.el.nativeElement.getBoundingClientRect(),r=window.innerHeight;t.top<=r+this.pixelsLeftToScroll&&this.ngZone.run(()=>{this.isVisible=!0,this.elementVisible.emit(!0)})}}}return(n=o).\u0275fac=function(t){return new(t||n)},n.\u0275dir=e.FsC({type:n,selectors:[["","storefrontVisibleOnScroll",""]],inputs:{pixelsLeftToScroll:"pixelsLeftToScroll"},outputs:{elementVisible:"elementVisible"},standalone:!1}),o})(),N=(()=>{var n;class o{constructor(){this.sanitizer=(0,e.WQX)(w.up)}transform(t,r="url"){switch(r){case"html":return this.sanitizer.bypassSecurityTrustHtml(t);case"style":return this.sanitizer.bypassSecurityTrustStyle(t);case"script":return this.sanitizer.bypassSecurityTrustScript(t);case"url":return this.sanitizer.bypassSecurityTrustUrl(t);case"resourceUrl":return this.sanitizer.bypassSecurityTrustResourceUrl(t);default:throw new Error("Invalid safe type specified: ".concat(r))}}}return(n=o).\u0275fac=function(t){return new(t||n)},n.\u0275pipe=e.EJ8({name:"sanitizeUrl",type:n,pure:!0,standalone:!1}),o})();const pe=["stickyLink"],ue=["adContainer"];function me(n,o){if(1&n&&(e.qex(0),e.nrm(1,"div",6),e.bVm()),2&n){const i=e.XpG(2);e.R7$(),e.Y8G("id",i.uuid)}}function he(n,o){if(1&n&&e.nrm(0,"iframe",8),2&n){const i=e.XpG(3);e.Y8G("src",i.safeIframeUrl,e.f$h)}}function ve(n,o){if(1&n&&(e.qex(0),e.DNE(1,he,1,1,"iframe",7),e.bVm()),2&n){const i=e.XpG(2);e.R7$(),e.Y8G("ngIf",i.safeIframeUrl)}}function _e(n,o){if(1&n){const i=e.RV6();e.qex(0),e.j41(1,"div",9),e.bIt("elementVisible",function(r){e.eBV(i);const s=e.XpG(3);return e.Njj(s.onVisible(r))}),e.k0s(),e.bVm()}if(2&n){const i=e.XpG(2).ngIf;e.R7$(),e.HbH(i.class),e.Y8G("id",i.id)}}function Ce(n,o){if(1&n&&(e.qex(0),e.DNE(1,_e,2,3,"ng-container",2),e.bVm()),2&n){const i=e.XpG(2);e.R7$(),e.Y8G("ngIf",!i.isDynamicAd)}}function Ae(n,o){1&n&&e.eu8(0)}function ye(n,o){if(1&n&&e.nrm(0,"div",13),2&n){const i=e.XpG(5);e.Y8G("height",i.getImageHeight())("src",i.getImageSrc())}}function xe(n,o){if(1&n&&e.nrm(0,"storefront-image",14),2&n){const i=e.XpG(5);e.Y8G("height",i.getImageHeight())("src",i.getImageSrc())}}function Se(n,o){if(1&n&&e.DNE(0,ye,1,2,"div",13)(1,xe,1,2,"storefront-image",14),2&n){const i=e.XpG(4);e.vxM(i.domHelper.leanDom?0:1)}}function be(n,o){if(1&n&&(e.j41(0,"a",12),e.nI1(1,"sanitizeUrl"),e.DNE(2,Se,2,1),e.k0s()),2&n){const i=e.XpG(3);e.Y8G("href",e.bMT(1,3,i.getHref()),e.B4B)("target",i.target),e.R7$(2),e.vxM(i.getImageSrc()?2:-1)}}function Ie(n,o){if(1&n&&e.nrm(0,"div",13),2&n){const i=e.XpG(4);e.Y8G("height",i.getImageHeight())("src",i.getImageSrc())}}function De(n,o){if(1&n&&e.nrm(0,"storefront-image",14),2&n){const i=e.XpG(4);e.Y8G("height",i.getImageHeight())("src",i.getImageSrc())}}function Ee(n,o){if(1&n&&e.DNE(0,Ie,1,2,"div",13)(1,De,1,2,"storefront-image",14),2&n){const i=e.XpG(3);e.vxM(i.domHelper.leanDom?0:1)}}function Ge(n,o){if(1&n&&(e.qex(0),e.DNE(1,be,3,5,"a",10),e.j41(2,"a",11,1),e.nI1(4,"sanitizeUrl"),e.DNE(5,Ee,2,1),e.k0s(),e.bVm()),2&n){const i=e.XpG(2);e.R7$(),e.Y8G("ngIf",i.ad),e.R7$(),e.Y8G("href",e.bMT(4,4,i.getHref()),e.B4B)("target",i.target),e.R7$(3),e.vxM(i.getImageSrc()?5:-1)}}function Pe(n,o){if(1&n&&(e.qex(0,null,0)(2,3),e.DNE(3,me,2,1,"ng-container",4)(4,ve,2,1,"ng-container",4)(5,Ce,2,1,"ng-container",4)(6,Ae,1,0,"ng-container",4)(7,Ge,6,6,"ng-container",5),e.bVm()()),2&n){const i=o.ngIf,t=e.XpG();e.R7$(2),e.Y8G("ngSwitch",i.type),e.R7$(),e.Y8G("ngSwitchCase","GPT"),e.R7$(),e.Y8G("ngSwitchCase","HTML"),e.R7$(),e.Y8G("ngSwitchCase","TRAFFECTIVE"),e.R7$(),e.Y8G("ngSwitchCase",t.isAdServiceType)}}let B=(()=>{var n;class o extends A.${constructor(){super(...arguments),this.store=(0,e.WQX)(x.B),this.googleAdService=(0,e.WQX)(W.s),this.router=(0,e.WQX)(O.Ix),this.sanitizer=(0,e.WQX)(w.up),this.adService=(0,e.WQX)(le),this.traffectiveAdService=(0,e.WQX)(Q.y),this.consentService=(0,e.WQX)(X.e),this.ssrService=(0,e.WQX)(Z.i),this.ngZone=(0,e.WQX)(e.SKi),this.changeDetectorRef=(0,e.WQX)(e.gRc),this.isBrowser=(0,g.UE)(this.platformId),this.load=new e.bkB,this.loaded=!1,this.adVisible$=new j.t(!1),this.defaultConfig=(0,v.A)({},U)}get adType(){var t;return null===(t=this.ad)||void 0===t?void 0:t.providerConfig.type}get regularAdType(){return this.domHelper.regularSelector(this.adType)}get prefixedAdType(){return this.domHelper.prefixedSelector(this.adType)}get iframeHostHeight(){var t;return(null===(t=this.ad)||void 0===t?void 0:t.providerConfig)&&this.ad.providerConfig.height}onClick(t){t.stopPropagation(),this.stickyLink&&(t.target===this.stickyLink.nativeElement||this.stickyLink.nativeElement.contains(t.target))?this.store.dispatch((0,P.k4)({url:window.location.href,key:"AD_STICKY_CLICKED",params:this.getTrackingParams()})):this.store.dispatch((0,P.k4)({url:window.location.href,key:"AD_CLICKED",params:this.getTrackingParams()}));const r=this.getHref();if(r.startsWith("#"))return this.router.navigateByUrl(r.substring(1)),t.preventDefault(),!1}ngOnDestroy(){super.ngOnDestroy(),this.ad&&this.loaded&&this.ad.providerConfig.type===a.P.GPT&&this.googleAdService.removeAd(this.uuid)}rebuildContextKeys(){super.rebuildContextKeys();const t=this.getAdConfig(this.baseConfig);null!=t&&t.providerConfig&&(0,G.Fl)(t.providerConfig,this.contextKeys)}onConfigChanges(){var t=this;return(0,h.A)(function*(){var r;const s=t.getAdConfig(t.config);if(s&&s.providerConfig){if(s.providerConfig){const f=(0,y.uQ)((0,v.A)((0,v.A)({},s.providerConfig),{},{targeting:null}),t.contextService.getContext(),t.contextService.$functions,t.globalService.getGlobalData());if(!(0,y.ZY)(f))return void(t.config=null);t.resolvedProviderConfig=f}var l;if((0,g.UE)(t.platformId)&&s.providerConfig.type==a.P.TRAFFECTIVE&&(yield t.consentService.init$,null===(l=t.traffectiveAdService)||void 0===l||!l.hasConsent()))return;t.ad=s,t.changeDetectorRef.detectChanges(),void 0===t.config.isLazy||t.config.isLazy?t.store.subscribe((0,V.eh)(t,t.elementRef,{skipWait:(0,g.Vy)(t.platformId)}),f=>{t.initAd()},R.lQ,R.lQ,"visible"):t.initAd()}else t.config.adId&&(s?s.providerConfig||console.warn("No provider config found for id ".concat(s.id,". Please migrate the ad configuration")):console.warn("No ad found for id ".concat(t.config.adId)));if("HTML"===(null===(r=t.ad)||void 0===r?void 0:r.providerConfig.type)){var d;const f=null===(d=t.ad)||void 0===d||null===(d=d.providerConfig)||void 0===d?void 0:d.url;f!==t.iframeUrl&&(t.iframeUrl=f,t.safeIframeUrl=t.sanitizer.bypassSecurityTrustResourceUrl(t.contextService.toStorefrontResourceUrl(f)))}t.target=t.getTarget()})()}getAdConfig(t){let r=null;return t&&(t.adId?this.store.select((0,D.jZ)(E.O.AD),s=>{r=s.adSlots.find(l=>l.id===t.adId)}):t.ad&&(r=t.ad)),r}initAd(){var t;if(this.loaded=!0,!this.isBrowser||null!==(t=window.storefrontHooks)&&void 0!==t&&t.isAdDisabled&&window.storefrontHooks.isAdDisabled(this.ad.id))return;const r=this.ad.providerConfig.type;if(this.isAdServiceType(r))this.initPluginAd();else switch(r){case a.P.GPT:this.initGpt();break;case a.P.TRAFFECTIVE:this.initTraffective();break;default:return this.target=this.getTarget(),void this.load.emit()}}initGpt(){var t=this;return(0,h.A)(function*(){const r=(0,v.A)((0,v.A)({},t.resolvedProviderConfig),{},{targeting:t.mergeTargeting(t.ad.providerConfig.targeting)});t.uuid="div-gpt-"+(r.fixedId?t.ad.id:(0,J.l)()),t.changeDetectorRef.detectChanges();let s=null;r.sizeMapping&&t.store.select((0,D.jZ)(E.O.AD),l=>{const d=l.adSlots.find(f=>f.id===r.sizeMapping);d&&d.providerConfig&&"SIZEMAPPING"===d.providerConfig.type&&(s=d.providerConfig)}),t.googleAdService.showAd(t.uuid,r,s,t.elementRef.nativeElement,()=>{t.load.emit(),t.resizeGoogleAd()},()=>t.resizeGoogleAd()),t.store.subscribe((0,V.Ne)(),()=>t.resizeGoogleAd())})()}initTraffective(){var t=this;return(0,h.A)(function*(){if(t.ad.providerConfig){var r;const{id:s,class:l}=t.ad.providerConfig;t.isDynamicAd="Floor"==l||"Mobile_Sticky"==l,(0,K.z)([null===(r=t.traffectiveAdService)||void 0===r?void 0:r.isTRFConfigReady$.pipe((0,L.p)(d=>d),(0,T.s)(1)),t.isDynamicAd?(0,H.of)(!0):t.adVisible$.pipe((0,L.p)(d=>d),(0,T.s)(1))]).subscribe(()=>{var d;if(!(0,g.Vy)(t.platformId)&&null!==(d=window)&&void 0!==d&&d.traffective)try{t.ssrService.prebootCompleted$.subscribe(()=>{t.ngZone.runOutsideAngular(t.isDynamicAd?()=>{window.traffective.refreshBottomSticky(l,s)}:()=>{window.traffective.refreshSlot(l,s)})})}catch(f){console.warn("Error with traffective refresh slot",f)}})}})()}mergeTargeting(t){let r=null;if(t||this.config.targeting){r=[];let s=new Map;this.evaluateTargeting(t,s),this.evaluateTargeting(this.config.targeting,s),s.forEach((l,d)=>{r.push({key:d,value:l})})}return r}evaluateTargeting(t,r){t&&t.forEach(s=>{const l=(0,y.uQ)(s.key,this.contextService.getContext(),this.contextService.$functions,this.globalService.getGlobalData(),!1);if(l&&""!==l){let d=r.get(l);d||(d=[]),(Array.isArray(s.value)?s.value:[s.value]).forEach(f=>{let p=(0,y.uQ)(f,this.contextService.getContext(),this.contextService.$functions,this.globalService.getGlobalData(),!1);if(s.multiValue){let m=p.split(",").filter(u=>""!==u);d.concat(m)}else p&&""!==p&&d.push(p)}),d.length>0&&r.set(l,d)}})}resizeGoogleAd(){}getImageHeight(){return this.config.imageHeight||S.q.AUTO}getImageSrc(t=!1){const r=this.ad&&this.ad.providerConfig;return r&&(0,G.rv)(t&&r.stickyImage||r.image)}getHref(){const t=this.ad&&this.ad.providerConfig;return t&&t.target}getTrackingParams(){return{AD_ID:this.config.adId}}onVisible(t){t&&this.adVisible$.next(!0)}isAdServiceType(t){return"AUDIENZZ"===t||"ADSPIRIT"===t}initPluginAd(){this.adContainer&&this.adService.showAd(null,(0,v.A)((0,v.A)({},this.ad),{},{providerConfig:this.resolvedProviderConfig}),this.adContainer.nativeElement,()=>this.load.emit())}getTarget(){return(0,F.tb)(this.getHref())?$.We.BLANK:$.We.SELF}}return(n=o).type="ad",n.\u0275fac=(()=>{let i;return function(r){return(i||(i=e.xGo(n)))(r||n)}})(),n.\u0275cmp=e.VBU({type:n,selectors:[["storefront-ad"]],viewQuery:function(t,r){if(1&t&&(e.GBs(pe,5,e.aKT),e.GBs(ue,5,e.aKT)),2&t){let s;e.mGM(s=e.lsd())&&(r.stickyLink=s.first),e.mGM(s=e.lsd())&&(r.adContainer=s.first)}},hostVars:4,hostBindings:function(t,r){1&t&&e.bIt("click",function(l){return r.onClick(l)}),2&t&&(e.BMQ("ad-type",r.regularAdType)("data-pxp-ad-type",r.prefixedAdType),e.xc7("height",r.iframeHostHeight))},standalone:!1,features:[e.Jv_([x.B]),e.Vt3],decls:1,vars:1,consts:[["adContainer",""],["stickyLink",""],[4,"ngIf"],[3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],[3,"id"],["title","ad",3,"src",4,"ngIf"],["title","ad",3,"src"],["storefrontVisibleOnScroll","",1,"no-display",3,"elementVisible","id"],[3,"href","target",4,"ngIf"],[1,"ad-sticky",3,"href","target"],[3,"href","target"],[1,"pxp-image",3,"height","src"],[3,"height","src"]],template:function(t,r){1&t&&e.DNE(0,Pe,8,5,"ng-container",2),2&t&&e.Y8G("ngIf",r.ad&&r.ad.providerConfig)},dependencies:[g.bT,g.ux,g.e1,g.fG,S.h,M.x,z,N],styles:["storefront-ad,.pxp-ad{display:block;overflow:hidden}storefront-ad a,.pxp-ad a{display:block}storefront-ad a.ad-sticky,.pxp-ad a.ad-sticky{display:none}storefront-ad storefront-image img.error,storefront-ad .pxp-image img.error,.pxp-ad storefront-image img.error,.pxp-ad .pxp-image img.error{position:relative;width:100vw;height:25vw;background-image:url(/assets/banner/banner_not_found.jpg);background-size:contain;opacity:1}storefront-ad[ad-type=HTML]>iframe,storefront-ad[data-pxp-ad-type=HTML]>iframe,.pxp-ad[ad-type=HTML]>iframe,.pxp-ad[data-pxp-ad-type=HTML]>iframe{width:100%;height:100%}.sticky-elements storefront-ad a,.sticky-elements .pxp-ad a{display:none}.sticky-elements storefront-ad a.ad-sticky,.sticky-elements .pxp-ad a.ad-sticky{display:block}.no-display{display:none}\n"],encapsulation:2}),o})();var $e=c(4403),Ve=c(4871);let we=(()=>{var n;class o{}return(n=o).\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.$C({type:n}),n.\u0275inj=e.G2t({imports:[g.MD]}),o})();const Re=["class","pxp-ad"];function Le(n,o){if(1&n&&(e.qex(0),e.nrm(1,"div",6),e.bVm()),2&n){const i=e.XpG(2);e.R7$(),e.Y8G("id",i.uuid)}}function Te(n,o){if(1&n&&e.nrm(0,"iframe",8),2&n){const i=e.XpG(3);e.Y8G("src",i.safeIframeUrl,e.f$h)}}function Xe(n,o){if(1&n&&(e.qex(0),e.DNE(1,Te,1,1,"iframe",7),e.bVm()),2&n){const i=e.XpG(2);e.R7$(),e.Y8G("ngIf",i.safeIframeUrl)}}function ke(n,o){if(1&n){const i=e.RV6();e.qex(0),e.j41(1,"div",9),e.bIt("elementVisible",function(r){e.eBV(i);const s=e.XpG(3);return e.Njj(s.onVisible(r))}),e.k0s(),e.bVm()}if(2&n){const i=e.XpG(2).ngIf;e.R7$(),e.HbH(i.class),e.Y8G("id",i.id)}}function Me(n,o){if(1&n&&(e.qex(0),e.DNE(1,ke,2,3,"ng-container",2),e.bVm()),2&n){const i=e.XpG(2);e.R7$(),e.Y8G("ngIf",!i.isDynamicAd)}}function ze(n,o){1&n&&e.eu8(0)}function Ne(n,o){if(1&n&&e.nrm(0,"div",13),2&n){const i=e.XpG(5);e.Y8G("height",i.getImageHeight())("src",i.getImageSrc())}}function Be(n,o){if(1&n&&e.nrm(0,"storefront-image",14),2&n){const i=e.XpG(5);e.Y8G("height",i.getImageHeight())("src",i.getImageSrc())}}function Ye(n,o){if(1&n&&e.DNE(0,Ne,1,2,"div",13)(1,Be,1,2,"storefront-image",14),2&n){const i=e.XpG(4);e.vxM(i.domHelper.leanDom?0:1)}}function Ue(n,o){if(1&n&&(e.j41(0,"a",12),e.nI1(1,"sanitizeUrl"),e.DNE(2,Ye,2,1),e.k0s()),2&n){const i=e.XpG(3);e.Y8G("href",e.bMT(1,3,i.getHref()),e.B4B)("target",i.target),e.R7$(2),e.vxM(i.getImageSrc()?2:-1)}}function We(n,o){if(1&n&&e.nrm(0,"div",13),2&n){const i=e.XpG(4);e.Y8G("height",i.getImageHeight())("src",i.getImageSrc())}}function Fe(n,o){if(1&n&&e.nrm(0,"storefront-image",14),2&n){const i=e.XpG(4);e.Y8G("height",i.getImageHeight())("src",i.getImageSrc())}}function Oe(n,o){if(1&n&&e.DNE(0,We,1,2,"div",13)(1,Fe,1,2,"storefront-image",14),2&n){const i=e.XpG(3);e.vxM(i.domHelper.leanDom?0:1)}}function Qe(n,o){if(1&n&&(e.qex(0),e.DNE(1,Ue,3,5,"a",10),e.j41(2,"a",11,1),e.nI1(4,"sanitizeUrl"),e.DNE(5,Oe,2,1),e.k0s(),e.bVm()),2&n){const i=e.XpG(2);e.R7$(),e.Y8G("ngIf",i.ad),e.R7$(),e.Y8G("href",e.bMT(4,4,i.getHref()),e.B4B)("target",i.target),e.R7$(3),e.vxM(i.getImageSrc()?5:-1)}}function je(n,o){if(1&n&&(e.qex(0,null,0)(2,3),e.DNE(3,Le,2,1,"ng-container",4)(4,Xe,2,1,"ng-container",4)(5,Me,2,1,"ng-container",4)(6,ze,1,0,"ng-container",4)(7,Qe,6,6,"ng-container",5),e.bVm()()),2&n){const i=o.ngIf,t=e.XpG();e.R7$(2),e.Y8G("ngSwitch",i.type),e.R7$(),e.Y8G("ngSwitchCase","GPT"),e.R7$(),e.Y8G("ngSwitchCase","HTML"),e.R7$(),e.Y8G("ngSwitchCase","TRAFFECTIVE"),e.R7$(),e.Y8G("ngSwitchCase",t.isAdServiceType)}}let Ke=(()=>{var n;class o extends B{}return(n=o).\u0275fac=(()=>{let i;return function(r){return(i||(i=e.xGo(n)))(r||n)}})(),n.\u0275cmp=e.VBU({type:n,selectors:[["div",8,"pxp-ad"]],standalone:!1,features:[e.Jv_([x.B]),e.Vt3],attrs:Re,decls:1,vars:1,consts:[["adContainer",""],["stickyLink",""],[4,"ngIf"],[3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],[3,"id"],["title","ad",3,"src",4,"ngIf"],["title","ad",3,"src"],["storefrontVisibleOnScroll","",1,"no-display",3,"elementVisible","id"],[3,"href","target",4,"ngIf"],[1,"ad-sticky",3,"href","target"],[3,"href","target"],[1,"pxp-image",3,"height","src"],[3,"height","src"]],template:function(t,r){1&t&&e.DNE(0,je,8,5,"ng-container",2),2&t&&e.Y8G("ngIf",r.ad&&r.ad.providerConfig)},dependencies:[g.bT,g.ux,g.e1,g.fG,S.h,M.x,z,N],styles:["storefront-ad,.pxp-ad{display:block;overflow:hidden}storefront-ad a,.pxp-ad a{display:block}storefront-ad a.ad-sticky,.pxp-ad a.ad-sticky{display:none}storefront-ad storefront-image img.error,storefront-ad .pxp-image img.error,.pxp-ad storefront-image img.error,.pxp-ad .pxp-image img.error{position:relative;width:100vw;height:25vw;background-image:url(/assets/banner/banner_not_found.jpg);background-size:contain;opacity:1}storefront-ad[ad-type=HTML]>iframe,storefront-ad[data-pxp-ad-type=HTML]>iframe,.pxp-ad[ad-type=HTML]>iframe,.pxp-ad[data-pxp-ad-type=HTML]>iframe{width:100%;height:100%}.sticky-elements storefront-ad a,.sticky-elements .pxp-ad a{display:none}.sticky-elements storefront-ad a.ad-sticky,.sticky-elements .pxp-ad a.ad-sticky{display:block}.no-display{display:none}\n"],encapsulation:2}),o})(),He=(()=>{var n;class o{}return(n=o).\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.$C({type:n}),n.\u0275inj=e.G2t({imports:[g.MD,$e.U,Ve.E,we]}),o})();const Ze={component:B,leanDomComponent:Ke}},1803:(Y,C,c)=>{c.d(C,{OE:()=>A,OK:()=>e,TS:()=>g,We:()=>v});var g=function(a){return a.VERTICAL="vertical",a.HORIZONTAL="horizontal",a.GRID="grid",a.GROUP="group",a.TABS="tabs",a}(g||{}),v=function(a){return a.BLANK="_blank",a.SELF="_self",a}(v||{}),e=function(a){return a.div="div",a.a="a",a.br="br",a.button="button",a.dialog="dialog",a.em="em",a.h1="h1",a.h2="h2",a.h3="h3",a.h4="h4",a.h5="h5",a.h6="h6",a.hr="hr",a.iframe="iframe",a.img="img",a.input="input",a.li="li",a.ol="ol",a.p="p",a.pre="pre",a.small="small",a.span="span",a.ul="ul",a.article="article",a.aside="aside",a.details="details",a.figcaption="figcaption",a.figure="figure",a.footer="footer",a.header="header",a.main="main",a.mark="mark",a.nav="nav",a.section="section",a.summary="summary",a.time="time",a}(e||{}),A=function(a){return a.div="div",a.a="a",a.button="button",a.dialog="dialog",a.h1="h1",a.h2="h2",a.h3="h3",a.h4="h4",a.h5="h5",a.h6="h6",a.li="li",a.ol="ol",a.p="p",a.span="span",a.ul="ul",a.article="article",a.aside="aside",a.details="details",a.figcaption="figcaption",a.figure="figure",a.footer="footer",a.header="header",a.main="main",a.mark="mark",a.nav="nav",a.section="section",a.summary="summary",a.time="time",a}(A||{})}}]);
|
1
|
+
"use strict";(self.webpackChunkstorefront=self.webpackChunkstorefront||[]).push([["projects_storefront_src_app_component_ad_ad_module_ts"],{3626:(Y,C,c)=>{c.r(C),c.d(C,{AdModule:()=>je,component:()=>Qe});var f=c(177),h=c(467),v=c(9379),e=c(3953),A=c(1210),a=c(9692),x=c(8251),b=c(7031),E=c(6843),G=c(1184),$=c(610),P=c(1803);const B={adId:null};var S=c(2932),w=c(8890),U=c(2596),W=c(7370),F=c(3331),R=c(345),L=c(3178),j=c(8482),k=c(5964),V=c(6697),Q=c(4412),K=c(4572),H=c(7673),y=c(8179),z=c(6078),O=c(4748),Z=c(8582),J=c(953),q=c(8340),ee=c(7816);class I extends ee.Q{getAdConfig(){var o;return null===(o=this.data)||void 0===o?void 0:o.configuration}}class D extends q.U{}class te extends I{constructor(o){super("Audienzz Ads",o),this.data=o}createInstance(){return new ne(this)}canRunWithoutConsent(){return!0}isValidConfiguration(){const o=this.getAdConfig();return!!(null!=o&&o.adTagId&&null!=o&&o.headerScriptId&&null!=o&&o.headerScriptUrl)}}class ne extends D{constructor(o){super(o),this.config=o}adjustDocument(){var o=this;return(0,h.A)(function*(){return new Promise((i,t)=>{document.head.appendChild(o.createScript(i,t))})})()}showAd(o,i,t,r){const l=this.createAdElement(i.providerConfig);t.parentNode.appendChild(l),r&&r()}removeAd(o){const i=document.getElementById("".concat(o));i&&i.remove()}createAdElement(o){const i=document.createElement("div");return i.id="".concat(o.id),i}createScript(o,i){const t=this.getConfig().getAdConfig(),r=document.createElement("script");return r.id=t.headerScriptId,r.src="".concat(t.headerScriptUrl,"?adTagId=").concat(t.adTagId),r.setAttribute("defer","defer"),r.onload=()=>{console.debug("[".concat(this.getDisplayName(),"] Script loaded successfully")),o()},r.onerror=s=>{console.error("[".concat(this.getDisplayName(),"] Failed to load script:"),s),i(s)},r}}class ie extends I{constructor(){super("NoopAdService",{})}createInstance(){return new X}isValidConfiguration(){return!0}}class X extends D{constructor(){super(new ie)}adjustDocument(){return Promise.resolve()}showAd(){}removeAd(){}}var oe=c(7879),re=c(2305);const ae=["platform"];class se extends I{constructor(o){super("Adspirit Ads",o),this.data=o}createInstance(){return new de(this)}canRunWithoutConsent(){return!0}isValidConfiguration(){const o=this.getAdConfig();return!(null==o||!o.headerScriptId||null==o||!o.headerScriptUrl)}}class de extends D{constructor(o){super(o),this.config=o,this.setWindowKeys()}setWindowKeys(){const{scriptWinKey:o,premiumSubWinKey:i}=this.getConfig().getAdConfig();this.scriptWindowKey=o,this.premiumSubscriptionKey=i}adjustDocument(){var o=this;return(0,h.A)(function*(){return new Promise((i,t)=>{document.head.appendChild(o.createScript(i,t))})})()}showAd(o,i,t,r){var s=this;return(0,h.A)(function*(){var l;const d=i.providerConfig,{platform:g}=d,p=(0,re.A)(d,ae);let m=(null==p?void 0:p.params)||"";if(m.includes("special=no_ad")||s.getPurchasedSubscription())return;m&&!m.startsWith("&")&&(m="&"+m);const u=s.createAdElement(p,m),_=t.parentNode;_.classList.add("ad",...null!==(l=null==g?void 0:g.split(" "))&&void 0!==l?l:[]),_.appendChild(u),s.refreshSlot(p.id),r&&r()})()}removeAd(o){const i=document.getElementById("".concat(o));i&&i.remove()}refreshSlot(o){var i=this;return(0,h.A)(function*(){var t;yield i.init$,null===(t=i.scriptMethods)||void 0===t||t.refreshSlot(o)})()}getPurchasedSubscription(){return!!this.premiumSubscriptionKey&&!!window[this.premiumSubscriptionKey]}createAdElement(o,i){const{id:t,width:r,height:s,spaceTop:l,spaceBottom:d}=o,g=document.createElement("div");let p="ad-content";l&&(p+=" space-top-".concat(l)),d&&(p+=" space-bottom-".concat(d)),g.className=p;const m=document.createElement("div");m.className="ad-content-inner";const u=document.createElement("ins");u.className="asm_async_creative",u.style.display="inline-block",u.style.width=r?"".concat(r,"px"):"100%",u.style.height=s?"".concat(s,"px"):"auto",u.style.textAlign="left",u.style.textDecoration="none",u.setAttribute("data-asm-cdn","cdn.adspirit.de"),u.setAttribute("data-asm-host","apoverlag.adspirit.de"),u.setAttribute("data-asm-params","pid=".concat(t).concat(i));const _=document.createElement("span");return _.className="ad-badge",_.textContent="Anzeige",m.appendChild(u),m.appendChild(_),g.appendChild(m),g}createScript(o,i){const t=this.getConfig().getAdConfig(),r=document.createElement("script");return r.id=t.headerScriptId,r.src="".concat(t.headerScriptUrl),r.setAttribute("defer","defer"),r.onload=()=>{console.debug("[".concat(this.getDisplayName(),"] Script loaded successfully")),globalThis[this.scriptWindowKey]&&(this.scriptMethods=globalThis[this.scriptWindowKey]),o()},r.onerror=s=>{console.error("[".concat(this.getDisplayName(),"] Failed to load script:"),s),i(s)},r}}let ce=(()=>{var n;class o{constructor(){this.platformId=(0,e.WQX)(e.Agw),this.pxpConfig=(0,e.WQX)(oe.Wp),this.pluginService=(0,e.WQX)(J.z),this.consentService=(0,e.WQX)(z.e),this.activePlugin=new X,this.initPromise=this.initializeAdPlugin()}showAd(t,r,s,l){var d=this;return(0,h.A)(function*(){yield d.initPromise;try{d.activePlugin.showAd(t,r,s,l)}catch(g){console.error("Failed to show plugin ad: ".concat(g))}})()}removeAd(t){var r=this;return(0,h.A)(function*(){yield r.initPromise;try{r.activePlugin.removeAd(t)}catch(s){console.error("Failed to remove plugin ad: ".concat(s))}})()}initializeAdPlugin(){var t=this;return(0,h.A)(function*(){var r;if(!(0,f.UE)(t.platformId))return;yield t.pluginService.init$,yield t.consentService.init$;const s=t.pxpConfig,l=null==s||null===(r=s.purple)||void 0===r?void 0:r.ads;let d;null!=l&&l.audienzz&&(d=t.loadPlugin(l.audienzz,te)),null!=l&&l.adspirit&&(d=t.loadPlugin(l.adspirit,se)),d&&(t.activePlugin=d)})()}loadPlugin(t,r){return this.pluginConfig=new r(t),this.consentService.canRunPlugin(this.pluginConfig)&&this.pluginService.loadPlugin(this.pluginConfig)}}return(n=o).\u0275fac=function(t){return new(t||n)},n.\u0275prov=e.jDH({token:n,factory:n.\u0275fac,providedIn:"root"}),o})();var T=c(1302);let N=(()=>{var n;class o{constructor(){this.sanitizer=(0,e.WQX)(R.up)}transform(t,r="url"){switch(r){case"html":return this.sanitizer.bypassSecurityTrustHtml(t);case"style":return this.sanitizer.bypassSecurityTrustStyle(t);case"script":return this.sanitizer.bypassSecurityTrustScript(t);case"url":return this.sanitizer.bypassSecurityTrustUrl(t);case"resourceUrl":return this.sanitizer.bypassSecurityTrustResourceUrl(t);default:throw new Error("Invalid safe type specified: ".concat(r))}}}return(n=o).\u0275fac=function(t){return new(t||n)},n.\u0275pipe=e.EJ8({name:"sanitizeUrl",type:n,pure:!0,standalone:!1}),o})();const le=["stickyLink"],ge=["adContainer"];function fe(n,o){if(1&n&&(e.qex(0),e.nrm(1,"div",6),e.bVm()),2&n){const i=e.XpG(2);e.R7$(),e.Y8G("id",i.uuid)}}function pe(n,o){if(1&n&&e.nrm(0,"iframe",8),2&n){const i=e.XpG(3);e.Y8G("src",i.safeIframeUrl,e.f$h)}}function ue(n,o){if(1&n&&(e.qex(0),e.DNE(1,pe,1,1,"iframe",7),e.bVm()),2&n){const i=e.XpG(2);e.R7$(),e.Y8G("ngIf",i.safeIframeUrl)}}function me(n,o){if(1&n){const i=e.RV6();e.qex(0),e.j41(1,"div",9),e.bIt("elementVisible",function(r){e.eBV(i);const s=e.XpG(3);return e.Njj(s.onVisible(r))}),e.k0s(),e.bVm()}if(2&n){const i=e.XpG(2).ngIf;e.R7$(),e.HbH(i.class),e.Y8G("id",i.id)}}function he(n,o){if(1&n&&(e.qex(0),e.DNE(1,me,2,3,"ng-container",2),e.bVm()),2&n){const i=e.XpG(2);e.R7$(),e.Y8G("ngIf",!i.isDynamicAd)}}function ve(n,o){1&n&&e.eu8(0)}function _e(n,o){if(1&n&&e.nrm(0,"div",13),2&n){const i=e.XpG(5);e.Y8G("height",i.getImageHeight())("src",i.getImageSrc())}}function Ce(n,o){if(1&n&&e.nrm(0,"storefront-image",14),2&n){const i=e.XpG(5);e.Y8G("height",i.getImageHeight())("src",i.getImageSrc())}}function Ae(n,o){if(1&n&&e.DNE(0,_e,1,2,"div",13)(1,Ce,1,2,"storefront-image",14),2&n){const i=e.XpG(4);e.vxM(i.domHelper.leanDom?0:1)}}function ye(n,o){if(1&n&&(e.j41(0,"a",12),e.nI1(1,"sanitizeUrl"),e.DNE(2,Ae,2,1),e.k0s()),2&n){const i=e.XpG(3);e.Y8G("href",e.bMT(1,3,i.getHref()),e.B4B)("target",i.target),e.R7$(2),e.vxM(i.getImageSrc()?2:-1)}}function xe(n,o){if(1&n&&e.nrm(0,"div",13),2&n){const i=e.XpG(4);e.Y8G("height",i.getImageHeight())("src",i.getImageSrc())}}function Se(n,o){if(1&n&&e.nrm(0,"storefront-image",14),2&n){const i=e.XpG(4);e.Y8G("height",i.getImageHeight())("src",i.getImageSrc())}}function Ie(n,o){if(1&n&&e.DNE(0,xe,1,2,"div",13)(1,Se,1,2,"storefront-image",14),2&n){const i=e.XpG(3);e.vxM(i.domHelper.leanDom?0:1)}}function De(n,o){if(1&n&&(e.qex(0),e.DNE(1,ye,3,5,"a",10),e.j41(2,"a",11,1),e.nI1(4,"sanitizeUrl"),e.DNE(5,Ie,2,1),e.k0s(),e.bVm()),2&n){const i=e.XpG(2);e.R7$(),e.Y8G("ngIf",i.ad),e.R7$(),e.Y8G("href",e.bMT(4,4,i.getHref()),e.B4B)("target",i.target),e.R7$(3),e.vxM(i.getImageSrc()?5:-1)}}function be(n,o){if(1&n&&(e.qex(0,null,0)(2,3),e.DNE(3,fe,2,1,"ng-container",4)(4,ue,2,1,"ng-container",4)(5,he,2,1,"ng-container",4)(6,ve,1,0,"ng-container",4)(7,De,6,6,"ng-container",5),e.bVm()()),2&n){const i=o.ngIf,t=e.XpG();e.R7$(2),e.Y8G("ngSwitch",i.type),e.R7$(),e.Y8G("ngSwitchCase","GPT"),e.R7$(),e.Y8G("ngSwitchCase","HTML"),e.R7$(),e.Y8G("ngSwitchCase","TRAFFECTIVE"),e.R7$(),e.Y8G("ngSwitchCase",t.isAdServiceType)}}let M=(()=>{var n;class o extends A.${constructor(){super(...arguments),this.store=(0,e.WQX)(x.B),this.googleAdService=(0,e.WQX)(U.s),this.router=(0,e.WQX)(F.Ix),this.sanitizer=(0,e.WQX)(R.up),this.adService=(0,e.WQX)(ce),this.traffectiveAdService=(0,e.WQX)(j.y),this.consentService=(0,e.WQX)(z.e),this.ssrService=(0,e.WQX)(O.i),this.ngZone=(0,e.WQX)(e.SKi),this.changeDetectorRef=(0,e.WQX)(e.gRc),this.isBrowser=(0,f.UE)(this.platformId),this.load=new e.bkB,this.loaded=!1,this.adVisible$=new Q.t(!1),this.defaultConfig=(0,v.A)({},B)}get adType(){var t;return null===(t=this.ad)||void 0===t?void 0:t.providerConfig.type}get regularAdType(){return this.domHelper.regularSelector(this.adType)}get prefixedAdType(){return this.domHelper.prefixedSelector(this.adType)}get iframeHostHeight(){var t;return(null===(t=this.ad)||void 0===t?void 0:t.providerConfig)&&this.ad.providerConfig.height}onClick(t){t.stopPropagation(),this.stickyLink&&(t.target===this.stickyLink.nativeElement||this.stickyLink.nativeElement.contains(t.target))?this.store.dispatch((0,$.k4)({url:window.location.href,key:"AD_STICKY_CLICKED",params:this.getTrackingParams()})):this.store.dispatch((0,$.k4)({url:window.location.href,key:"AD_CLICKED",params:this.getTrackingParams()}));const r=this.getHref();if(r.startsWith("#"))return this.router.navigateByUrl(r.substring(1)),t.preventDefault(),!1}ngOnDestroy(){super.ngOnDestroy(),this.ad&&this.loaded&&this.ad.providerConfig.type===a.P.GPT&&this.googleAdService.removeAd(this.uuid)}rebuildContextKeys(){super.rebuildContextKeys();const t=this.getAdConfig(this.mutableBaseConfig());null!=t&&t.providerConfig&&(0,G.Fl)(t.providerConfig,this.contextKeys)}onConfigChanges(){var t=this;return(0,h.A)(function*(){var r;const s=t.getAdConfig(t.config);if(s&&s.providerConfig){if(s.providerConfig){const g=(0,y.uQ)((0,v.A)((0,v.A)({},s.providerConfig),{},{targeting:null}),t.contextService.getContext(),t.contextService.$functions,t.globalService.getGlobalData());if(!(0,y.ZY)(g))return void(t.config=null);t.resolvedProviderConfig=g}var l;if((0,f.UE)(t.platformId)&&s.providerConfig.type==a.P.TRAFFECTIVE&&(yield t.consentService.init$,null===(l=t.traffectiveAdService)||void 0===l||!l.hasConsent()))return;t.ad=s,t.changeDetectorRef.detectChanges(),void 0===t.config.isLazy||t.config.isLazy?t.store.subscribe((0,w.eh)(t,t.elementRef,{skipWait:(0,f.Vy)(t.platformId)}),g=>{t.initAd()},L.lQ,L.lQ,"visible"):t.initAd()}else t.config.adId&&(s?s.providerConfig||console.warn("No provider config found for id ".concat(s.id,". Please migrate the ad configuration")):console.warn("No ad found for id ".concat(t.config.adId)));if("HTML"===(null===(r=t.ad)||void 0===r?void 0:r.providerConfig.type)){var d;const g=null===(d=t.ad)||void 0===d||null===(d=d.providerConfig)||void 0===d?void 0:d.url;g!==t.iframeUrl&&(t.iframeUrl=g,t.safeIframeUrl=t.sanitizer.bypassSecurityTrustResourceUrl(t.contextService.toStorefrontResourceUrl(g)))}t.target=t.getTarget()})()}getAdConfig(t){let r=null;return t&&(t.adId?this.store.select((0,b.jZ)(E.O.AD),s=>{r=s.adSlots.find(l=>l.id===t.adId)}):t.ad&&(r=t.ad)),r}initAd(){var t;if(this.loaded=!0,!this.isBrowser||null!==(t=window.storefrontHooks)&&void 0!==t&&t.isAdDisabled&&window.storefrontHooks.isAdDisabled(this.ad.id))return;const r=this.ad.providerConfig.type;if(this.isAdServiceType(r))this.initPluginAd();else switch(r){case a.P.GPT:this.initGpt();break;case a.P.TRAFFECTIVE:this.initTraffective();break;default:return this.target=this.getTarget(),void this.load.emit()}}initGpt(){var t=this;return(0,h.A)(function*(){const r=(0,v.A)((0,v.A)({},t.resolvedProviderConfig),{},{targeting:t.mergeTargeting(t.ad.providerConfig.targeting)});t.uuid="div-gpt-"+(r.fixedId?t.ad.id:(0,Z.l)()),t.changeDetectorRef.detectChanges();let s=null;r.sizeMapping&&t.store.select((0,b.jZ)(E.O.AD),l=>{const d=l.adSlots.find(g=>g.id===r.sizeMapping);d&&d.providerConfig&&"SIZEMAPPING"===d.providerConfig.type&&(s=d.providerConfig)}),t.googleAdService.showAd(t.uuid,r,s,t.elementRef.nativeElement,()=>{t.load.emit(),t.resizeGoogleAd()},()=>t.resizeGoogleAd()),t.store.subscribe((0,w.Ne)(),()=>t.resizeGoogleAd())})()}initTraffective(){var t=this;return(0,h.A)(function*(){if(t.ad.providerConfig){var r;const{id:s,class:l}=t.ad.providerConfig;t.isDynamicAd="Floor"==l||"Mobile_Sticky"==l,(0,K.z)([null===(r=t.traffectiveAdService)||void 0===r?void 0:r.isTRFConfigReady$.pipe((0,k.p)(d=>d),(0,V.s)(1)),t.isDynamicAd?(0,H.of)(!0):t.adVisible$.pipe((0,k.p)(d=>d),(0,V.s)(1))]).subscribe(()=>{var d;if(!(0,f.Vy)(t.platformId)&&null!==(d=window)&&void 0!==d&&d.traffective)try{t.ssrService.prebootCompleted$.subscribe(()=>{t.ngZone.runOutsideAngular(t.isDynamicAd?()=>{window.traffective.refreshBottomSticky(l,s)}:()=>{window.traffective.refreshSlot(l,s)})})}catch(g){console.warn("Error with traffective refresh slot",g)}})}})()}mergeTargeting(t){let r=null;if(t||this.config.targeting){r=[];let s=new Map;this.evaluateTargeting(t,s),this.evaluateTargeting(this.config.targeting,s),s.forEach((l,d)=>{r.push({key:d,value:l})})}return r}evaluateTargeting(t,r){t&&t.forEach(s=>{const l=(0,y.uQ)(s.key,this.contextService.getContext(),this.contextService.$functions,this.globalService.getGlobalData(),!1);if(l&&""!==l){let d=r.get(l);d||(d=[]),(Array.isArray(s.value)?s.value:[s.value]).forEach(g=>{let p=(0,y.uQ)(g,this.contextService.getContext(),this.contextService.$functions,this.globalService.getGlobalData(),!1);if(s.multiValue){let m=p.split(",").filter(u=>""!==u);d.concat(m)}else p&&""!==p&&d.push(p)}),d.length>0&&r.set(l,d)}})}resizeGoogleAd(){}getImageHeight(){return this.config.imageHeight||S.q.AUTO}getImageSrc(t=!1){const r=this.ad&&this.ad.providerConfig;return r&&(0,G.rv)(t&&r.stickyImage||r.image)}getHref(){const t=this.ad&&this.ad.providerConfig;return t&&t.target}getTrackingParams(){return{AD_ID:this.config.adId}}onVisible(t){t&&this.adVisible$.next(!0)}isAdServiceType(t){return"AUDIENZZ"===t||"ADSPIRIT"===t}initPluginAd(){this.adContainer&&this.adService.showAd(null,(0,v.A)((0,v.A)({},this.ad),{},{providerConfig:this.resolvedProviderConfig}),this.adContainer.nativeElement,()=>this.load.emit())}getTarget(){return(0,W.tb)(this.getHref())?P.We.BLANK:P.We.SELF}}return(n=o).type="ad",n.\u0275fac=(()=>{let i;return function(r){return(i||(i=e.xGo(n)))(r||n)}})(),n.\u0275cmp=e.VBU({type:n,selectors:[["storefront-ad"]],viewQuery:function(t,r){if(1&t&&(e.GBs(le,5,e.aKT),e.GBs(ge,5,e.aKT)),2&t){let s;e.mGM(s=e.lsd())&&(r.stickyLink=s.first),e.mGM(s=e.lsd())&&(r.adContainer=s.first)}},hostVars:4,hostBindings:function(t,r){1&t&&e.bIt("click",function(l){return r.onClick(l)}),2&t&&(e.BMQ("ad-type",r.regularAdType)("data-pxp-ad-type",r.prefixedAdType),e.xc7("height",r.iframeHostHeight))},standalone:!1,features:[e.Jv_([x.B]),e.Vt3],decls:1,vars:1,consts:[["adContainer",""],["stickyLink",""],[4,"ngIf"],[3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],[3,"id"],["title","ad",3,"src",4,"ngIf"],["title","ad",3,"src"],["storefrontVisibleOnScroll","",1,"no-display",3,"elementVisible","id"],[3,"href","target",4,"ngIf"],[1,"ad-sticky",3,"href","target"],[3,"href","target"],[1,"pxp-image",3,"height","src"],[3,"height","src"]],template:function(t,r){1&t&&e.DNE(0,be,8,5,"ng-container",2),2&t&&e.Y8G("ngIf",r.ad&&r.ad.providerConfig)},dependencies:[f.bT,f.ux,f.e1,f.fG,S.h,T.x,N],styles:["storefront-ad,.pxp-ad{display:block;overflow:hidden}storefront-ad a,.pxp-ad a{display:block}storefront-ad a.ad-sticky,.pxp-ad a.ad-sticky{display:none}storefront-ad storefront-image img.error,storefront-ad .pxp-image img.error,.pxp-ad storefront-image img.error,.pxp-ad .pxp-image img.error{position:relative;width:100vw;height:25vw;background-image:url(/assets/banner/banner_not_found.jpg);background-size:contain;opacity:1}storefront-ad[ad-type=HTML]>iframe,storefront-ad[data-pxp-ad-type=HTML]>iframe,.pxp-ad[ad-type=HTML]>iframe,.pxp-ad[data-pxp-ad-type=HTML]>iframe{width:100%;height:100%}.sticky-elements storefront-ad a,.sticky-elements .pxp-ad a{display:none}.sticky-elements storefront-ad a.ad-sticky,.sticky-elements .pxp-ad a.ad-sticky{display:block}.no-display{display:none}\n"],encapsulation:2}),o})();var Ee=c(4403),Ge=c(4871);const $e=["class","pxp-ad"];function Pe(n,o){if(1&n&&(e.qex(0),e.nrm(1,"div",6),e.bVm()),2&n){const i=e.XpG(2);e.R7$(),e.Y8G("id",i.uuid)}}function we(n,o){if(1&n&&e.nrm(0,"iframe",8),2&n){const i=e.XpG(3);e.Y8G("src",i.safeIframeUrl,e.f$h)}}function Re(n,o){if(1&n&&(e.qex(0),e.DNE(1,we,1,1,"iframe",7),e.bVm()),2&n){const i=e.XpG(2);e.R7$(),e.Y8G("ngIf",i.safeIframeUrl)}}function Le(n,o){if(1&n){const i=e.RV6();e.qex(0),e.j41(1,"div",9),e.bIt("elementVisible",function(r){e.eBV(i);const s=e.XpG(3);return e.Njj(s.onVisible(r))}),e.k0s(),e.bVm()}if(2&n){const i=e.XpG(2).ngIf;e.R7$(),e.HbH(i.class),e.Y8G("id",i.id)}}function ke(n,o){if(1&n&&(e.qex(0),e.DNE(1,Le,2,3,"ng-container",2),e.bVm()),2&n){const i=e.XpG(2);e.R7$(),e.Y8G("ngIf",!i.isDynamicAd)}}function Ve(n,o){1&n&&e.eu8(0)}function ze(n,o){if(1&n&&e.nrm(0,"div",13),2&n){const i=e.XpG(5);e.Y8G("height",i.getImageHeight())("src",i.getImageSrc())}}function Xe(n,o){if(1&n&&e.nrm(0,"storefront-image",14),2&n){const i=e.XpG(5);e.Y8G("height",i.getImageHeight())("src",i.getImageSrc())}}function Te(n,o){if(1&n&&e.DNE(0,ze,1,2,"div",13)(1,Xe,1,2,"storefront-image",14),2&n){const i=e.XpG(4);e.vxM(i.domHelper.leanDom?0:1)}}function Ne(n,o){if(1&n&&(e.j41(0,"a",12),e.nI1(1,"sanitizeUrl"),e.DNE(2,Te,2,1),e.k0s()),2&n){const i=e.XpG(3);e.Y8G("href",e.bMT(1,3,i.getHref()),e.B4B)("target",i.target),e.R7$(2),e.vxM(i.getImageSrc()?2:-1)}}function Me(n,o){if(1&n&&e.nrm(0,"div",13),2&n){const i=e.XpG(4);e.Y8G("height",i.getImageHeight())("src",i.getImageSrc())}}function Ye(n,o){if(1&n&&e.nrm(0,"storefront-image",14),2&n){const i=e.XpG(4);e.Y8G("height",i.getImageHeight())("src",i.getImageSrc())}}function Be(n,o){if(1&n&&e.DNE(0,Me,1,2,"div",13)(1,Ye,1,2,"storefront-image",14),2&n){const i=e.XpG(3);e.vxM(i.domHelper.leanDom?0:1)}}function Ue(n,o){if(1&n&&(e.qex(0),e.DNE(1,Ne,3,5,"a",10),e.j41(2,"a",11,1),e.nI1(4,"sanitizeUrl"),e.DNE(5,Be,2,1),e.k0s(),e.bVm()),2&n){const i=e.XpG(2);e.R7$(),e.Y8G("ngIf",i.ad),e.R7$(),e.Y8G("href",e.bMT(4,4,i.getHref()),e.B4B)("target",i.target),e.R7$(3),e.vxM(i.getImageSrc()?5:-1)}}function We(n,o){if(1&n&&(e.qex(0,null,0)(2,3),e.DNE(3,Pe,2,1,"ng-container",4)(4,Re,2,1,"ng-container",4)(5,ke,2,1,"ng-container",4)(6,Ve,1,0,"ng-container",4)(7,Ue,6,6,"ng-container",5),e.bVm()()),2&n){const i=o.ngIf,t=e.XpG();e.R7$(2),e.Y8G("ngSwitch",i.type),e.R7$(),e.Y8G("ngSwitchCase","GPT"),e.R7$(),e.Y8G("ngSwitchCase","HTML"),e.R7$(),e.Y8G("ngSwitchCase","TRAFFECTIVE"),e.R7$(),e.Y8G("ngSwitchCase",t.isAdServiceType)}}let Fe=(()=>{var n;class o extends M{}return(n=o).\u0275fac=(()=>{let i;return function(r){return(i||(i=e.xGo(n)))(r||n)}})(),n.\u0275cmp=e.VBU({type:n,selectors:[["div",8,"pxp-ad"]],standalone:!1,features:[e.Jv_([x.B]),e.Vt3],attrs:$e,decls:1,vars:1,consts:[["adContainer",""],["stickyLink",""],[4,"ngIf"],[3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],[3,"id"],["title","ad",3,"src",4,"ngIf"],["title","ad",3,"src"],["storefrontVisibleOnScroll","",1,"no-display",3,"elementVisible","id"],[3,"href","target",4,"ngIf"],[1,"ad-sticky",3,"href","target"],[3,"href","target"],[1,"pxp-image",3,"height","src"],[3,"height","src"]],template:function(t,r){1&t&&e.DNE(0,We,8,5,"ng-container",2),2&t&&e.Y8G("ngIf",r.ad&&r.ad.providerConfig)},dependencies:[f.bT,f.ux,f.e1,f.fG,S.h,T.x,N],styles:["storefront-ad,.pxp-ad{display:block;overflow:hidden}storefront-ad a,.pxp-ad a{display:block}storefront-ad a.ad-sticky,.pxp-ad a.ad-sticky{display:none}storefront-ad storefront-image img.error,storefront-ad .pxp-image img.error,.pxp-ad storefront-image img.error,.pxp-ad .pxp-image img.error{position:relative;width:100vw;height:25vw;background-image:url(/assets/banner/banner_not_found.jpg);background-size:contain;opacity:1}storefront-ad[ad-type=HTML]>iframe,storefront-ad[data-pxp-ad-type=HTML]>iframe,.pxp-ad[ad-type=HTML]>iframe,.pxp-ad[data-pxp-ad-type=HTML]>iframe{width:100%;height:100%}.sticky-elements storefront-ad a,.sticky-elements .pxp-ad a{display:none}.sticky-elements storefront-ad a.ad-sticky,.sticky-elements .pxp-ad a.ad-sticky{display:block}.no-display{display:none}\n"],encapsulation:2}),o})(),je=(()=>{var n;class o{}return(n=o).\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.$C({type:n}),n.\u0275inj=e.G2t({imports:[f.MD,Ee.U,Ge.E]}),o})();const Qe={component:M,leanDomComponent:Fe}},1803:(Y,C,c)=>{c.d(C,{OE:()=>A,OK:()=>e,TS:()=>f,We:()=>v});var f=function(a){return a.VERTICAL="vertical",a.HORIZONTAL="horizontal",a.GRID="grid",a.GROUP="group",a.TABS="tabs",a}(f||{}),v=function(a){return a.BLANK="_blank",a.SELF="_self",a}(v||{}),e=function(a){return a.div="div",a.a="a",a.br="br",a.button="button",a.dialog="dialog",a.em="em",a.h1="h1",a.h2="h2",a.h3="h3",a.h4="h4",a.h5="h5",a.h6="h6",a.hr="hr",a.iframe="iframe",a.img="img",a.input="input",a.li="li",a.ol="ol",a.p="p",a.pre="pre",a.small="small",a.span="span",a.ul="ul",a.article="article",a.aside="aside",a.details="details",a.figcaption="figcaption",a.figure="figure",a.footer="footer",a.header="header",a.main="main",a.mark="mark",a.nav="nav",a.section="section",a.summary="summary",a.time="time",a}(e||{}),A=function(a){return a.div="div",a.a="a",a.button="button",a.dialog="dialog",a.h1="h1",a.h2="h2",a.h3="h3",a.h4="h4",a.h5="h5",a.h6="h6",a.li="li",a.ol="ol",a.p="p",a.span="span",a.ul="ul",a.article="article",a.aside="aside",a.details="details",a.figcaption="figcaption",a.figure="figure",a.footer="footer",a.header="header",a.main="main",a.mark="mark",a.nav="nav",a.section="section",a.summary="summary",a.time="time",a}(A||{})}}]);
|