@pronto-tools-and-more/files 13.2.0 → 13.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/deep-link-landing/purple-deep-link-landing.js +80 -80
- package/files/framework-latest/src/default/storefront/index.html +2 -2
- package/files/framework-latest/src/default/storefront/modules/common.js +1 -1
- package/files/framework-latest/src/default/storefront/modules/default-node_modules_angular_forms_fesm2022_forms_mjs.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-571069.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 -0
- 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/default-projects_storefront_src_app_service_tts_tts_service_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 -0
- package/files/framework-latest/src/default/storefront/modules/projects_storefront_src_app_common-pipes_common-pipes_module_ts-projects_storefront_src_app_c-7956f0.js +1 -1
- package/files/framework-latest/src/default/storefront/modules/projects_storefront_src_app_component_action-executor_action-executor_module_ts.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_app-menu-xml_app-menu-xml_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_bookmark_bookmark_module_ts.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_catalog-content_content-featured-image_content-featured-c9ba26.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_coupon_coupon_module_ts.js +1 -1
- package/files/framework-latest/src/default/storefront/modules/projects_storefront_src_app_component_dev-components_user-tag-testing_user-tag-testing_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_iframe_iframe_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_login_login_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_product_product_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_recommendations_recommendations_module_ts.js +1 -1
- package/files/framework-latest/src/default/storefront/modules/projects_storefront_src_app_component_search-field_search-field_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_ticker_ticker_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_component_widget_widget_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 -0
- package/files/framework-latest/src/default/storefront/modules/projects_storefront_src_app_modal_modal_leandom_component_ts.js +1 -0
- package/files/framework-latest/src/default/storefront/modules/projects_storefront_src_app_preview_preview_leandom_component_ts.js +1 -0
- package/files/schema/views-schema.json +23 -116
- package/package.json +1 -1
@@ -0,0 +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 +1 @@
|
|
1
|
-
"use strict";(self.webpackChunkstorefront=self.webpackChunkstorefront||[]).push([["projects_storefront_src_app_common-pipes_common-pipes_module_ts-projects_storefront_src_app_c-7956f0"],{4767:(A,
|
1
|
+
"use strict";(self.webpackChunkstorefront=self.webpackChunkstorefront||[]).push([["projects_storefront_src_app_common-pipes_common-pipes_module_ts-projects_storefront_src_app_c-7956f0"],{4767:(A,c,o)=>{o.d(c,{d:()=>f});var r=o(177),l=o(4438);let f=(()=>{var n;class d{}return(n=d).\u0275fac=function(_){return new(_||n)},n.\u0275mod=l.$C({type:n}),n.\u0275inj=l.G2t({imports:[r.MD]}),d})()},2914:(A,c,o)=>{o.d(c,{w:()=>d});var r=o(4438),l=o(9516),f=o(4049),n=o(7370);let d=(()=>{var p;class _{constructor(){this.contextService=(0,r.WQX)(l.V)}transform(e,E){if(!e||(0,n.vh)(e))return e;let g=e?(0,f.K)(e,E):"";const v=this.contextService.getIsCustomerDomainUsed()?"":"/".concat(this.contextService.getBrand(),"/"),t=this.contextService.isPreview();return"/"===g&&(g=""),g="".concat(v).concat(g).concat(t?"?preview=true":""),g}}return(p=_).\u0275fac=function(e){return new(e||p)},p.\u0275pipe=r.EJ8({name:"urlTransform",type:p,pure:!0,standalone:!1}),p.\u0275prov=r.jDH({token:p,factory:p.\u0275fac,providedIn:"root"}),_})()},4365:(A,c,o)=>{o.d(c,{AN:()=>p,FZ:()=>_,Mw:()=>u,Rp:()=>d,W9:()=>n});var r=o(4404),n=function(e){return e.COVER="cover",e.CARD="card",e.HIGHLIGHT="highlight",e.DETAILS="details",e.GROUP="group",e}(n||{});const d={showErrorDialog:!0};var p=function(e){return e.SINGLE="SINGLE",e.MULTI="MULTI",e}(p||{}),_=function(e){return e.SILENT="SILENT",e}(_||{});const u={template:n.CARD,openContent:{mode:r.DisplayMode.MODAL,titleBar:!0},downloadOptions:null,customButtons:[],customMessages:[],titleMessage:"ISSUE_TITLE",descriptionMessage:"ISSUE_DESCRIPTION",publicationTitleMessage:"ISSUE_PUBLICATION_TITLE"}},3092:(A,c,o)=>{o.d(c,{X:()=>v,s:()=>g});var r=o(4438),l=o(345),f=o(5927);function n(t,m){1&t&&r.nrm(0,"div",5)}function d(t,m){if(1&t&&(r.qex(0),r.nrm(1,"div",1),r.j41(2,"div",2),r.nrm(3,"div",3),r.k0s(),r.DNE(4,n,1,0,"div",4),r.bVm()),2&t){const i=r.XpG();r.R7$(2),r.xc7("-webkit-clip-path",i.getClipPath())("clip-path",i.getClipPath()),r.R7$(2),r.Y8G("ngIf",i.showBorder)}}function p(t,m){if(1&t&&(r.qex(0),r.j41(1,"div",6),r.nrm(2,"div",7)(3,"div",8),r.k0s(),r.bVm()),2&t){const i=r.XpG();r.R7$(2),r.xc7("width",i.progress,"%"),r.R7$(),r.Y8G("storefrontTranslate",i.message)}}function _(t,m){1&t&&r.nrm(0,"div",9)}function u(t,m){1&t&&r.nrm(0,"storefront-spinner",10)}function e(t,m){1&t&&r.nrm(0,"div",5)}function E(t,m){if(1&t&&(r.qex(0),r.DNE(1,_,1,0,"div",9)(2,u,1,0,"storefront-spinner",10)(3,e,1,0,"div",4),r.j41(4,"div",11),r.EFF(5),r.k0s(),r.nrm(6,"i",12),r.bVm()),2&t){const i=r.XpG();r.R7$(),r.vxM(i.domHelper.leanDom?1:2),r.R7$(2),r.Y8G("ngIf",i.showBorder),r.R7$(2),r.SpI("",i.progress,"%")}}var g=function(t){return t.RADIAL="RADIAL",t.BAR="BAR",t.NUMERIC="NUMERIC",t}(g||{});let v=(()=>{var t;class m{constructor(){this.sanitizer=(0,r.WQX)(l.up),this.domHelper=(0,r.WQX)(f.S),this.type=g.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 a;const s=this.progress;return a=s<=12.5?"polygon(50% 0, 50% 50%, ".concat(50+4*s,"% 0, 100% 0)"):s<=25?"polygon(50% 50%, 50% 0, 100% 0, 100% ".concat(4*(s-12.5),"%)"):s<=37.5?"polygon(50% 50%, 50% 0, 100% 0, 100% ".concat(4*(s-25)+50,"%)"):s<=75?"polygon(50% 50%, ".concat(100-4*(s-37.5),"% 100%, 100% 100%, 100% 0, 50% 0)"):s<=87.5?"polygon(50% 50%, 50% 0, 100% 0, 100% 100%, 0 100%, 0 ".concat(50-4*(s-75),"%)"):"polygon(50% 50%, 50% 0, 100% 0, 100% 100%, 0 100%, 0 0, ".concat(4*(s-87.5),"% 0)"),this.sanitizer.bypassSecurityTrustStyle(a)}}return(t=m).\u0275fac=function(a){return new(a||t)},t.\u0275cmp=r.VBU({type:t,selectors:[["storefront-progress"]],hostVars:4,hostBindings:function(a,s){2&a&&(r.BMQ("type",s.regularType)("data-pxp-type",s.prefixedType),r.AVh("progress-on-border",s.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(a,s){1&a&&r.DNE(0,d,5,5,"ng-container",0)(1,p,4,3,"ng-container",0)(2,E,7,3,"ng-container",0),2&a&&(r.Y8G("ngIf","RADIAL"===s.type),r.R7$(),r.Y8G("ngIf","BAR"===s.type),r.R7$(),r.Y8G("ngIf","NUMERIC"===s.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}),m})()},3363:(A,c,o)=>{o.d(c,{E:()=>u});var r=o(177),l=o(3092),f=o(6215),n=o(4438),d=o(8909),p=o(7240),_=o(6962);let u=(()=>{var e;class E{}return(e=E).\u0275fac=function(v){return new(v||e)},e.\u0275mod=n.$C({type:e}),e.\u0275inj=n.G2t({imports:[r.MD,f.O]}),E})();n.wjB(l.X,[r.bT,d.M,p.t,_.n],[])},1739:(A,c,o)=>{function r(l){return l&&!!l.code}o.d(c,{b:()=>r})}}]);
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";(self.webpackChunkstorefront=self.webpackChunkstorefront||[]).push([["projects_storefront_src_app_component_action-executor_action-executor_module_ts"],{3527:(
|
1
|
+
"use strict";(self.webpackChunkstorefront=self.webpackChunkstorefront||[]).push([["projects_storefront_src_app_component_action-executor_action-executor_module_ts"],{3527:(Y,i,c)=>{c.r(i),c.d(i,{ActionExecutorModule:()=>B,component:()=>V});var a=c(177),f=c(467),d=c(9379),t=c(3953),x=c(8179),C=c(8004),g=c(1210);const v={action:null,mode:"once"};var l=c(8909),p=c(7240),u=c(6962);const h=n=>[n];function A(n,r){1&n&&t.nrm(0,"div",2)}function E(n,r){1&n&&t.nrm(0,"storefront-spinner",3)}function D(n,r){if(1&n&&t.DNE(0,A,1,0,"div",2)(1,E,1,0,"storefront-spinner",3),2&n){const s=t.XpG();t.vxM(s.domHelper.leanDom?0:1)}}let m=(()=>{var n;class r extends g.${constructor(){super(...arguments),this.eventActionService=(0,t.WQX)(C.G),this.changeDetectorRef=(0,t.WQX)(t.gRc),this.defaultConfig=(0,d.A)({},v),this.variables=[],this.state={processing:!1,count:0}}get hasText(){return!!this.message}onConfigChanges(){var o;super.onConfigChanges(),this.message=this.config.message,this.variables=null!==(o=this.config.variables)&&void 0!==o?o:[],this.changeDetectorRef.detectChanges(),this.executeAction()}executeAction(){var o=this;return(0,f.A)(function*(){const e=(0,x.v3)(o.config.action);e&&"once"===o.config.mode&&0===o.state.count&&!o.state.processing&&(o.state={count:o.state.count+1,processing:!0},o.changeDetectorRef.detectChanges(),yield o.eventActionService.processEventAction(e,o),o.state.processing=!1,o.changeDetectorRef.detectChanges())})()}getConfigEscapeProperties(){return[...super.getConfigEscapeProperties()]}}return(n=r).type="action-executor",n.\u0275fac=(()=>{let s;return function(e){return(s||(s=t.xGo(n)))(e||n)}})(),n.\u0275cmp=t.VBU({type:n,selectors:[["storefront-action-executor"]],hostVars:2,hostBindings:function(o,e){2&o&&t.AVh("has-text",e.hasText)},standalone:!1,features:[t.Vt3],decls:3,vars:6,consts:[[3,"ngClass"],[3,"storefrontTranslate","storefrontTranslateArgs"],[1,"pxp-spinner","button-spinner"],[1,"button-spinner"]],template:function(o,e){1&o&&(t.j41(0,"div",0),t.DNE(1,D,2,1),t.nrm(2,"span",1),t.k0s()),2&o&&(t.Y8G("ngClass",t.eq3(4,h,e.hasText?"has-text":"").join(" ")),t.R7$(),t.vxM(e.state.processing?1:-1),t.R7$(),t.Y8G("storefrontTranslate",e.message)("storefrontTranslateArgs",e.variables))},dependencies:[a.YU,l.M,p.t,u.n],encapsulation:2,changeDetection:0}),r})();var T=c(3),M=c(6215);const y=["class","pxp-action-executor"],G=n=>[n];function L(n,r){1&n&&t.nrm(0,"div",2)}function R(n,r){1&n&&t.nrm(0,"storefront-spinner",3)}function $(n,r){if(1&n&&t.DNE(0,L,1,0,"div",2)(1,R,1,0,"storefront-spinner",3),2&n){const s=t.XpG();t.vxM(s.domHelper.leanDom?0:1)}}let j=(()=>{var n;class r extends m{}return(n=r).\u0275fac=(()=>{let s;return function(e){return(s||(s=t.xGo(n)))(e||n)}})(),n.\u0275cmp=t.VBU({type:n,selectors:[["div",8,"pxp-action-executor"]],standalone:!1,features:[t.Vt3],attrs:y,decls:3,vars:6,consts:[[3,"ngClass"],[3,"storefrontTranslate","storefrontTranslateArgs"],[1,"pxp-spinner","button-spinner"],[1,"button-spinner"]],template:function(o,e){1&o&&(t.j41(0,"div",0),t.DNE(1,$,2,1),t.nrm(2,"span",1),t.k0s()),2&o&&(t.Y8G("ngClass",t.eq3(4,G,e.hasText?"has-text":"").join(" ")),t.R7$(),t.vxM(e.state.processing?1:-1),t.R7$(),t.Y8G("storefrontTranslate",e.message)("storefrontTranslateArgs",e.variables))},dependencies:[a.YU,l.M,p.t,u.n],encapsulation:2,changeDetection:0}),r})(),B=(()=>{var n;class r{}return(n=r).\u0275fac=function(o){return new(o||n)},n.\u0275mod=t.$C({type:n}),n.\u0275inj=t.G2t({imports:[a.MD,T.pZ,M.O]}),r})();const V={component:m,leanDomComponent:j}}}]);
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";(self.webpackChunkstorefront=self.webpackChunkstorefront||[]).push([["projects_storefront_src_app_component_ad_ad_module_ts"],{6278:(M,x,s)=>{s.r(x),s.d(x,{AdModule:()=>we,component:()=>$e});var u=s(177),c=s(467),y=s(9379),e=s(4438),v=s(1210),r=s(9692),_=s(8251),E=s(4945),G=s(6843),O=s(1184),z=s(610),B=s(1803);const w={adId:null};var U=s(2932),D=s(8890),h=s(7370),b=s(3178),m=s(5964),g=s(6697),d=s(4412),A=s(4572),I=s(7673),S=s(8179),P=s(8582),T=s(9516),L=s(2596),V=s(3331),Z=s(345),Q=s(8340),J=s(7816);class k extends J.Q{getAdConfig(){var a;return null===(a=this.data)||void 0===a?void 0:a.configuration}}class F extends Q.U{}class q extends k{constructor(a){super("Audienzz Ads",a),this.data=a}createInstance(){return new ee(this)}canRunWithoutConsent(){return!0}isValidConfiguration(){const a=this.getAdConfig();return!!(null!=a&&a.adTagId&&null!=a&&a.headerScriptId&&null!=a&&a.headerScriptUrl)}}class ee extends F{constructor(a){super(a),this.config=a}adjustDocument(){var a=this;return(0,c.A)(function*(){return new Promise((n,t)=>{document.head.appendChild(a.createScript(n,t))})})()}showAd(a,n,t,o){const p=this.createAdElement(n.providerConfig);t.parentNode.appendChild(p),o&&o()}removeAd(a){const n=document.getElementById("".concat(a));n&&n.remove()}createAdElement(a){const n=document.createElement("div");return n.id="".concat(a.id),n}createScript(a,n){const t=this.getConfig().getAdConfig(),o=document.createElement("script");return o.id=t.headerScriptId,o.src="".concat(t.headerScriptUrl,"?adTagId=").concat(t.adTagId),o.setAttribute("defer","defer"),o.onload=()=>{console.debug("[".concat(this.getDisplayName(),"] Script loaded successfully")),a()},o.onerror=l=>{console.error("[".concat(this.getDisplayName(),"] Failed to load script:"),l),n(l)},o}}class te extends k{constructor(){super("NoopAdService",{})}createInstance(){return new Y}isValidConfiguration(){return!0}}class Y extends F{constructor(){super(new te)}adjustDocument(){return Promise.resolve()}showAd(){}removeAd(){}}var ie=s(7879),ne=s(953),K=s(6078);let re=(()=>{var i;class a{constructor(t,o,l,p){this.platformId=t,this.pxpConfig=o,this.pluginService=l,this.consentService=p,this.activePlugin=new Y,this.initPromise=this.initializeAdPlugin()}showAd(t,o,l,p){var f=this;return(0,c.A)(function*(){yield f.initPromise;try{f.activePlugin.showAd(t,o,l,p)}catch(C){console.error("Failed to show plugin ad: ".concat(C))}})()}removeAd(t){var o=this;return(0,c.A)(function*(){yield o.initPromise;try{o.activePlugin.removeAd(t)}catch(l){console.error("Failed to remove plugin ad: ".concat(l))}})()}initializeAdPlugin(){var t=this;return(0,c.A)(function*(){var o;if(!(0,u.UE)(t.platformId))return;yield t.pluginService.init$,yield t.consentService.init$;const l=t.pxpConfig,p=null==l||null===(o=l.purple)||void 0===o?void 0:o.ads;let f;null!=p&&p.audienzz&&(t.pluginConfig=new q(p.audienzz),f=t.consentService.canRunPlugin(t.pluginConfig)&&t.pluginService.loadPlugin(t.pluginConfig)),f&&(t.activePlugin=f)})()}}return(i=a).\u0275fac=function(t){return new(t||i)(e.KVO(e.Agw),e.KVO(ie.Wp),e.KVO(ne.z),e.KVO(K.e))},i.\u0275prov=e.jDH({token:i,factory:i.\u0275fac,providedIn:"root"}),a})();var oe=s(8482),ae=s(1652),se=s(4748),le=s(5927),de=s(3726),ce=s(152);let N=(()=>{var i;class a{constructor(t,o,l){this.el=t,this.ngZone=o,this.platformId=l,this.pixelsLeftToScroll=600,this.elementVisible=new e.bkB,this.isVisible=!1}ngAfterViewInit(){(0,u.UE)(this.platformId)&&this.ngZone.runOutsideAngular(()=>{this.scrollSubscription=(0,de.R)(window,"scroll",{passive:!0}).pipe((0,ce.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(),o=window.innerHeight;t.top<=o+this.pixelsLeftToScroll&&this.ngZone.run(()=>{this.isVisible=!0,this.elementVisible.emit(!0)})}}}return(i=a).\u0275fac=function(t){return new(t||i)(e.rXU(e.aKT),e.rXU(e.SKi),e.rXU(e.Agw))},i.\u0275dir=e.FsC({type:i,selectors:[["","storefrontVisibleOnScroll",""]],inputs:{pixelsLeftToScroll:"pixelsLeftToScroll"},outputs:{elementVisible:"elementVisible"},standalone:!1}),a})();var H=s(3647);const ge=["stickyLink"],fe=["adContainer"];function pe(i,a){if(1&i&&(e.qex(0),e.nrm(1,"div",6),e.bVm()),2&i){const n=e.XpG(2);e.R7$(),e.Y8G("id",n.uuid)}}function ue(i,a){if(1&i&&e.nrm(0,"iframe",8),2&i){const n=e.XpG(3);e.Y8G("src",n.safeIframeUrl,e.f$h)}}function me(i,a){if(1&i&&(e.qex(0),e.DNE(1,ue,1,1,"iframe",7),e.bVm()),2&i){const n=e.XpG(2);e.R7$(),e.Y8G("ngIf",n.safeIframeUrl)}}function he(i,a){if(1&i){const n=e.RV6();e.qex(0),e.j41(1,"div",9),e.bIt("elementVisible",function(o){e.eBV(n);const l=e.XpG(3);return e.Njj(l.onVisible(o))}),e.k0s(),e.bVm()}if(2&i){const n=e.XpG(2).ngIf;e.R7$(),e.HbH(n.class),e.Y8G("id",n.id)}}function ve(i,a){if(1&i&&(e.qex(0),e.DNE(1,he,2,3,"ng-container",2),e.bVm()),2&i){const n=e.XpG(2);e.R7$(),e.Y8G("ngIf",!n.isDynamicAd)}}function _e(i,a){1&i&&e.eu8(0)}function ye(i,a){if(1&i&&e.nrm(0,"storefront-image",14),2&i){const n=e.XpG(4);e.Y8G("height",n.getImageHeight())("src",n.getImageSrc())}}function Ae(i,a){if(1&i&&(e.j41(0,"a",13),e.nI1(1,"sanitizeUrl"),e.DNE(2,ye,1,2,"storefront-image",12),e.k0s()),2&i){const n=e.XpG(3);e.Y8G("href",e.bMT(1,3,n.getHref()),e.B4B)("target",n.target),e.R7$(2),e.Y8G("ngIf",n.getImageSrc())}}function Ce(i,a){if(1&i&&e.nrm(0,"storefront-image",14),2&i){const n=e.XpG(3);e.Y8G("height",n.getImageHeight())("src",n.getImageSrc(!0))}}function Se(i,a){if(1&i&&(e.qex(0),e.DNE(1,Ae,3,5,"a",10),e.j41(2,"a",11,1),e.nI1(4,"sanitizeUrl"),e.DNE(5,Ce,1,2,"storefront-image",12),e.k0s(),e.bVm()),2&i){const n=e.XpG(2);e.R7$(),e.Y8G("ngIf",n.ad),e.R7$(),e.Y8G("href",e.bMT(4,4,n.getHref()),e.B4B)("target",n.target),e.R7$(3),e.Y8G("ngIf",n.getImageSrc(!0))}}function xe(i,a){if(1&i&&(e.qex(0,null,0)(2,3),e.DNE(3,pe,2,1,"ng-container",4)(4,me,2,1,"ng-container",4)(5,ve,2,1,"ng-container",4)(6,_e,1,0,"ng-container",4)(7,Se,6,6,"ng-container",5),e.bVm()()),2&i){const n=a.ngIf;e.R7$(2),e.Y8G("ngSwitch",n.type),e.R7$(),e.Y8G("ngSwitchCase","GPT"),e.R7$(),e.Y8G("ngSwitchCase","HTML"),e.R7$(),e.Y8G("ngSwitchCase","TRAFFECTIVE"),e.R7$(),e.Y8G("ngSwitchCase","AUDIENZZ")}}let j=(()=>{var i;class a extends v.${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,z.k4)({url:window.location.href,key:"AD_STICKY_CLICKED",params:this.getTrackingParams()})):this.store.dispatch((0,z.k4)({url:window.location.href,key:"AD_CLICKED",params:this.getTrackingParams()}));const o=this.getHref();if(o.startsWith("#"))return this.router.navigateByUrl(o.substring(1)),t.preventDefault(),!1}constructor(t,o,l,p,f,C,R,X,$,ke,W,Fe,Ye,Ke,Ne){super(l,t,p,X,W),this.elementRef=t,this.store=o,this.injector=l,this.contextService=p,this.googleAdService=f,this.router=C,this.sanitizer=R,this.document=X,this.adService=$,this.traffectiveAdService=ke,this.globalService=W,this.consentService=Fe,this.ssrService=Ye,this.ngZone=Ke,this.domHelper=Ne,this.load=new e.bkB,this.loaded=!1,this.adVisible$=new d.t(!1),this.defaultConfig=(0,y.A)({},w)}ngOnDestroy(){super.ngOnDestroy(),this.ad&&this.loaded&&this.ad.providerConfig.type===r.P.GPT&&this.googleAdService.removeAd(this.uuid)}rebuildContextKeys(){super.rebuildContextKeys();const t=this.getAdConfig(this.baseConfig);null!=t&&t.providerConfig&&(0,O.Fl)(t.providerConfig,this.contextKeys)}onConfigChanges(){var t=this;return(0,c.A)(function*(){var o;const l=t.getAdConfig(t.config);if(l&&l.providerConfig){if(l.providerConfig){const C=(0,S.uQ)((0,y.A)((0,y.A)({},l.providerConfig),{},{targeting:null}),t.contextService.getContext(),t.contextService.$functions,t.globalService.getGlobalData());if(!(0,S.ZY)(C))return void(t.config=null)}var p;if(l.providerConfig.type==r.P.TRAFFECTIVE&&(0,u.UE)(t.platformId)&&(yield t.consentService.init$,null===(p=t.traffectiveAdService)||void 0===p||!p.hasConsent()))return;t.ad=l,t.changeDetectorRef.detectChanges(),void 0===t.config.isLazy||t.config.isLazy?t.store.subscribe((0,D.eh)(t,t.elementRef,{skipWait:(0,u.Vy)(t.platformId)}),C=>{t.initAd()},b.lQ,b.lQ,"visible"):t.initAd()}else t.config.adId&&(l?l.providerConfig||console.warn("No provider config found for id ".concat(l.id,". Please migrate the ad configuration")):console.warn("No ad found for id ".concat(t.config.adId)));if("HTML"===(null===(o=t.ad)||void 0===o?void 0:o.providerConfig.type)){var f;const C=null===(f=t.ad)||void 0===f||null===(f=f.providerConfig)||void 0===f?void 0:f.url;C!==t.iframeUrl&&(t.iframeUrl=C,t.safeIframeUrl=t.sanitizer.bypassSecurityTrustResourceUrl(t.contextService.toResourceUrl(C)))}t.target=t.getTarget()})()}getAdConfig(t){let o=null;return t&&(t.adId?this.store.select((0,E.jZ)(G.O.AD),l=>{o=l.adSlots.find(p=>p.id===t.adId)}):t.ad&&(o=t.ad)),o}initAd(){var t;if(this.loaded=!0,(null===(t=window.storefrontHooks)||void 0===t||!t.isAdDisabled||!window.storefrontHooks.isAdDisabled(this.ad.id))&&(0,u.UE)(this.platformId))switch(this.ad.providerConfig.type){case r.P.GPT:this.initGpt();break;case r.P.TRAFFECTIVE:this.initTraffective();break;case r.P.AUDIENZZ:this.initPluginAd();break;default:return this.target=this.getTarget(),void this.load.emit()}}initGpt(){var t=this;return(0,c.A)(function*(){const o=(0,S.uQ)((0,y.A)((0,y.A)({},t.ad.providerConfig),{},{targeting:null}),t.contextService.getContext(),t.contextService.$functions,t.globalService.getGlobalData());o.targeting=t.mergeTargeting(t.ad.providerConfig.targeting),t.uuid="div-gpt-"+(o.fixedId?t.ad.id:(0,P.l)()),t.changeDetectorRef.detectChanges();let l=null;o.sizeMapping&&t.store.select((0,E.jZ)(G.O.AD),p=>{const f=p.adSlots.find(C=>C.id===o.sizeMapping);f&&f.providerConfig&&"SIZEMAPPING"===f.providerConfig.type&&(l=f.providerConfig)}),t.googleAdService.showAd(t.uuid,o,l,t.elementRef.nativeElement,()=>{t.load.emit(),t.resizeGoogleAd()},()=>t.resizeGoogleAd()),t.store.subscribe((0,D.Ne)(),()=>t.resizeGoogleAd())})()}initTraffective(){var t=this;return(0,c.A)(function*(){if(t.ad.providerConfig){var o;const{id:l,class:p}=t.ad.providerConfig;t.isDynamicAd="Floor"==p||"Mobile_Sticky"==p,(0,A.z)([null===(o=t.traffectiveAdService)||void 0===o?void 0:o.isTRFConfigReady$.pipe((0,m.p)(f=>f),(0,g.s)(1)),t.isDynamicAd?(0,I.of)(!0):t.adVisible$.pipe((0,m.p)(f=>f),(0,g.s)(1))]).subscribe(()=>{var f;if(!(0,u.Vy)(t.platformId)&&null!==(f=window)&&void 0!==f&&f.traffective)try{t.ssrService.prebootCompleted$.subscribe(()=>{t.ngZone.runOutsideAngular(t.isDynamicAd?()=>{window.traffective.refreshBottomSticky(p,l)}:()=>{window.traffective.refreshSlot(p,l)})})}catch(C){console.warn("Error with traffective refresh slot",C)}})}})()}mergeTargeting(t){let o=null;if(t||this.config.targeting){o=[];let l=new Map;this.evaluateTargeting(t,l),this.evaluateTargeting(this.config.targeting,l),l.forEach((p,f)=>{o.push({key:f,value:p})})}return o}evaluateTargeting(t,o){t&&t.forEach(l=>{const p=(0,S.uQ)(l.key,this.contextService.getContext(),this.contextService.$functions,this.globalService.getGlobalData(),!1);if(p&&""!==p){let f=o.get(p);f||(f=[]),(Array.isArray(l.value)?l.value:[l.value]).forEach(C=>{let R=(0,S.uQ)(C,this.contextService.getContext(),this.contextService.$functions,this.globalService.getGlobalData(),!1);if(l.multiValue){let X=R.split(",").filter($=>""!==$);f.concat(X)}else R&&""!==R&&f.push(R)}),f.length>0&&o.set(p,f)}})}resizeGoogleAd(){}getImageHeight(){return this.config.imageHeight||U.q.AUTO}getImageSrc(t=!1){const o=this.ad&&this.ad.providerConfig;return o&&(0,O.rv)(t&&o.stickyImage||o.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)}initPluginAd(){var t=this;return(0,c.A)(function*(){t.adContainer&&t.adService.showAd(null,t.ad,t.adContainer.nativeElement,()=>t.load.emit())})()}getTarget(){return(0,h.tb)(this.getHref())?B.We.BLANK:B.We.SELF}}return(i=a).type="ad",i.\u0275fac=function(t){return new(t||i)(e.rXU(e.aKT),e.rXU(_.B),e.rXU(e.zZn),e.rXU(T.V),e.rXU(L.s),e.rXU(V.Ix),e.rXU(Z.up),e.rXU(u.qQ),e.rXU(re),e.rXU(oe.y),e.rXU(ae.d),e.rXU(K.e),e.rXU(se.i),e.rXU(e.SKi),e.rXU(le.S))},i.\u0275cmp=e.VBU({type:i,selectors:[["storefront-ad"]],viewQuery:function(t,o){if(1&t&&(e.GBs(ge,5,e.aKT),e.GBs(fe,5,e.aKT)),2&t){let l;e.mGM(l=e.lsd())&&(o.stickyLink=l.first),e.mGM(l=e.lsd())&&(o.adContainer=l.first)}},hostVars:4,hostBindings:function(t,o){1&t&&e.bIt("click",function(p){return o.onClick(p)}),2&t&&(e.BMQ("ad-type",o.regularAdType)("data-pxp-ad-type",o.prefixedAdType),e.xc7("height",o.iframeHostHeight))},standalone:!1,features:[e.Jv_([_.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,"height","src",4,"ngIf"],[3,"href","target"],[3,"height","src"]],template:function(t,o){1&t&&e.DNE(0,xe,8,5,"ng-container",2),2&t&&e.Y8G("ngIf",o.ad&&o.ad.providerConfig)},dependencies:[u.bT,u.ux,u.e1,u.fG,U.h,N,H.R],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}),a})();var Ie=s(4403),Ee=s(4871);let be=(()=>{var i;class a{}return(i=a).\u0275fac=function(t){return new(t||i)},i.\u0275mod=e.$C({type:i}),i.\u0275inj=e.G2t({imports:[u.MD]}),a})();const De=["class","pxp-ad"];function Pe(i,a){if(1&i&&(e.qex(0),e.nrm(1,"div",6),e.bVm()),2&i){const n=e.XpG(2);e.R7$(),e.Y8G("id",n.uuid)}}function Re(i,a){if(1&i&&e.nrm(0,"iframe",8),2&i){const n=e.XpG(3);e.Y8G("src",n.safeIframeUrl,e.f$h)}}function Ue(i,a){if(1&i&&(e.qex(0),e.DNE(1,Re,1,1,"iframe",7),e.bVm()),2&i){const n=e.XpG(2);e.R7$(),e.Y8G("ngIf",n.safeIframeUrl)}}function Te(i,a){if(1&i){const n=e.RV6();e.qex(0),e.j41(1,"div",9),e.bIt("elementVisible",function(o){e.eBV(n);const l=e.XpG(3);return e.Njj(l.onVisible(o))}),e.k0s(),e.bVm()}if(2&i){const n=e.XpG(2).ngIf;e.R7$(),e.HbH(n.class),e.Y8G("id",n.id)}}function Le(i,a){if(1&i&&(e.qex(0),e.DNE(1,Te,2,3,"ng-container",2),e.bVm()),2&i){const n=e.XpG(2);e.R7$(),e.Y8G("ngIf",!n.isDynamicAd)}}function Ve(i,a){1&i&&e.eu8(0)}function Me(i,a){if(1&i&&e.nrm(0,"storefront-image",14),2&i){const n=e.XpG(4);e.Y8G("height",n.getImageHeight())("src",n.getImageSrc())}}function Ge(i,a){if(1&i&&(e.j41(0,"a",13),e.nI1(1,"sanitizeUrl"),e.DNE(2,Me,1,2,"storefront-image",12),e.k0s()),2&i){const n=e.XpG(3);e.Y8G("href",e.bMT(1,3,n.getHref()),e.B4B)("target",n.target),e.R7$(2),e.Y8G("ngIf",n.getImageSrc())}}function Oe(i,a){if(1&i&&e.nrm(0,"storefront-image",14),2&i){const n=e.XpG(3);e.Y8G("height",n.getImageHeight())("src",n.getImageSrc(!0))}}function ze(i,a){if(1&i&&(e.qex(0),e.DNE(1,Ge,3,5,"a",10),e.j41(2,"a",11,1),e.nI1(4,"sanitizeUrl"),e.DNE(5,Oe,1,2,"storefront-image",12),e.k0s(),e.bVm()),2&i){const n=e.XpG(2);e.R7$(),e.Y8G("ngIf",n.ad),e.R7$(),e.Y8G("href",e.bMT(4,4,n.getHref()),e.B4B)("target",n.target),e.R7$(3),e.Y8G("ngIf",n.getImageSrc(!0))}}function Be(i,a){if(1&i&&(e.qex(0,null,0)(2,3),e.DNE(3,Pe,2,1,"ng-container",4)(4,Ue,2,1,"ng-container",4)(5,Le,2,1,"ng-container",4)(6,Ve,1,0,"ng-container",4)(7,ze,6,6,"ng-container",5),e.bVm()()),2&i){const n=a.ngIf;e.R7$(2),e.Y8G("ngSwitch",n.type),e.R7$(),e.Y8G("ngSwitchCase","GPT"),e.R7$(),e.Y8G("ngSwitchCase","HTML"),e.R7$(),e.Y8G("ngSwitchCase","TRAFFECTIVE"),e.R7$(),e.Y8G("ngSwitchCase","AUDIENZZ")}}let Xe=(()=>{var i;class a extends j{}return(i=a).\u0275fac=(()=>{let n;return function(o){return(n||(n=e.xGo(i)))(o||i)}})(),i.\u0275cmp=e.VBU({type:i,selectors:[["div",8,"pxp-ad"]],standalone:!1,features:[e.Jv_([_.B]),e.Vt3],attrs:De,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,"height","src",4,"ngIf"],[3,"href","target"],[3,"height","src"]],template:function(t,o){1&t&&e.DNE(0,Be,8,5,"ng-container",2),2&t&&e.Y8G("ngIf",o.ad&&o.ad.providerConfig)},dependencies:[u.bT,u.ux,u.e1,u.fG,U.h,N,H.R],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}),a})(),we=(()=>{var i;class a{}return(i=a).\u0275fac=function(t){return new(t||i)},i.\u0275mod=e.$C({type:i}),i.\u0275inj=e.G2t({imports:[u.MD,Ie.U,Ee.E,be]}),a})();const $e={component:j,leanDomComponent:Xe}},1803:(M,x,s)=>{s.d(x,{OE:()=>v,OK:()=>e,TS:()=>u,We:()=>y});var u=function(r){return r.VERTICAL="vertical",r.HORIZONTAL="horizontal",r.GRID="grid",r.GROUP="group",r.TABS="tabs",r}(u||{}),y=function(r){return r.BLANK="_blank",r.SELF="_self",r}(y||{}),e=function(r){return r.a="a",r.br="br",r.button="button",r.div="div",r.em="em",r.h1="h1",r.h2="h2",r.h3="h3",r.h4="h4",r.h5="h5",r.h6="h6",r.hr="hr",r.iframe="iframe",r.img="img",r.input="input",r.li="li",r.ol="ol",r.p="p",r.pre="pre",r.small="small",r.span="span",r.ul="ul",r.article="article",r.aside="aside",r.details="details",r.figcaption="figcaption",r.figure="figure",r.footer="footer",r.header="header",r.main="main",r.mark="mark",r.nav="nav",r.section="section",r.summary="summary",r.time="time",r}(e||{}),v=function(r){return r.div="div",r.li="li",r.ol="ol",r.p="p",r.ul="ul",r.article="article",r.aside="aside",r.details="details",r.figcaption="figcaption",r.figure="figure",r.footer="footer",r.header="header",r.main="main",r.mark="mark",r.nav="nav",r.section="section",r.summary="summary",r.time="time",r}(v||{})},2932:(M,x,s)=>{s.d(x,{h:()=>U,q:()=>D});var u=s(177),c=s(4438),y=s(8251),e=s(8890),v=s(9516),r=s(9876),_=s(5102),E=s(3307),G=s(5927),O=s(3647);const z=["image"],B=(h,b,m)=>({imgRef:h,imageResolutionStrategy:b,focalPoint:m});function w(h,b){if(1&h){const m=c.RV6();c.j41(0,"img",2,0),c.nI1(2,"sanitizeUrl"),c.bIt("error",function(){c.eBV(m);const d=c.XpG();return c.Njj(d.onError())}),c.k0s()}if(2&h){const m=c.XpG();c.Y8G("priority",m.lcpPrioritized()||m.inViewPort())("ngSrc",c.i5U(2,6,m.src,"resourceUrl"))("alt",m.alt)("title",m.title)("loaderParams",c.sMw(9,B,m.elementRef.nativeElement,m.imageResolutionStrategy,m.focalPoint)),c.BMQ("aria-label",m.ariaLabel)}}let U=(()=>{var h;class b{get regularSrc(){return this.domHelper.regularSelector(this.src)}get prefixedPostType(){return this.domHelper.prefixedSelector(this.src)}get regularLabel(){return this.domHelper.regularSelector(this.label)}get prefixedLabel(){return this.domHelper.prefixedSelector(this.label)}get regularResolutionStrategy(){return this.domHelper.regularSelector(this.imageResolutionStrategy)}get prefixedResolutionStrategy(){return this.domHelper.prefixedSelector(this.imageResolutionStrategy)}set image(g){g&&this.onLoad(g),this._image=g}get image(){return this._image}get regularAlt(){return this.domHelper.regularSelector(this.alt)}get prefixedAlt(){return this.domHelper.prefixedSelector(this.alt)}get regularTitle(){return this.domHelper.regularSelector(this.title)}get prefixedTitle(){return this.domHelper.prefixedSelector(this.title)}get regularAriaLabel(){return this.domHelper.regularSelector(this.ariaLabel)}get prefixedAriaLabel(){return this.domHelper.prefixedSelector(this.ariaLabel)}get regularFocalPoint(){return this.domHelper.regularSelector(this.focalPoint)}get prefixedFocalPoint(){return this.domHelper.prefixedSelector(this.focalPoint)}get regularHeightStrategy(){return this.domHelper.regularSelector(this.height)}get prefixedHeightStrategy(){return this.domHelper.prefixedSelector(this.height)}constructor(g,d,A,I,S,P,T,L){this.changeDetectorRef=g,this.elementRef=d,this.subscriptions=A,this.platformId=I,this.contextService=S,this.purpleService=P,this.imagePreloaderService=T,this.domHelper=L,this.inViewPort=(0,c.vPA)(!1),this.lcpPrioritized=(0,c.hFB)(!1),this.error=new c.bkB,this.height=D.AUTO,(0,u.UE)(this.platformId)&&this.subscriptions.subscribe((0,e.eh)(this,this.elementRef),V=>this.load())}get empty(){return!this.src}ngOnInit(){var g;(0,u.UE)(this.platformId)&&(this.imagePreloaderService.getAboveFoldImg()===(null===(g=this.src)||void 0===g?void 0:g.split("?")[0])&&this.inViewPort.set(!0));this.initProperties()}initProperties(){var g,d,A,I;this.alt=(null===(g=this.extendedThumbnail)||void 0===g?void 0:g.properties.alt)||(null===(d=this.extendedThumbnail)||void 0===d?void 0:d.properties.caption)||"",this.title=this.alt,this.ariaLabel=null!==(A=this.label)&&void 0!==A?A:this.alt,this.focalPoint=null===(I=this.extendedThumbnail)||void 0===I?void 0:I.properties.focuspoint}initAndLoad(){this.initProperties(),this.load()}load(){this.loaded||(this.loaded=!0,this.src&&this.update(),this.changeDetectorRef.detectChanges())}ngOnChanges(g){g.src&&this.loaded&&this.update()}update(){this.updateImageRatio()}onLoad(g){g.nativeElement.classList.add("loaded"),this.elementRef.nativeElement.classList.add("loaded"),this.changeDetectorRef.detectChanges(),g.nativeElement.addEventListener("load",()=>{this.updateImageRatio(!0,g),this.changeDetectorRef.markForCheck()}),g.nativeElement.addEventListener("error",function(){g.nativeElement.style.display="none",g.nativeElement.nextElementSibling&&(g.nativeElement.nextElementSibling.style.display="inline")}),this.purpleService.addImageSrc(this.resizeSrc)}onError(){if(!this.src)return;const g=this.purpleService.getAlternativeSrc(this.resizeSrc);var d;g&&g!==this.resizeSrc?(this.setResizeSrc(g),this.changeDetectorRef.detectChanges()):(null===(d=this.image)||void 0===d||d.nativeElement.classList.add("error"),this.elementRef.nativeElement.classList.add("error"),this.error.emit(this))}updateImageRatio(g=!1,d=this.image){this.imageRatio=this.height===D.AUTO?(0,r.z)(!g,null==d?void 0:d.nativeElement,this.src)+"%":void 0}setResizeSrc(g){const d=this.contextService.toResourceUrl(g);this.resizeSrc=this.src=d}}return(h=b).\u0275fac=function(g){return new(g||h)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(y.v),c.rXU(c.Agw),c.rXU(v.V),c.rXU(_.Wj),c.rXU(E.d),c.rXU(G.S))},h.\u0275cmp=c.VBU({type:h,selectors:[["storefront-image"]],viewQuery:function(g,d){if(1&g&&c.GBs(z,5),2&g){let A;c.mGM(A=c.lsd())&&(d.image=A.first)}},hostAttrs:["ngSkipHydration","true"],hostVars:20,hostBindings:function(g,d){2&g&&(c.BMQ("src",d.regularSrc)("data-pxp-src",d.prefixedPostType)("label",d.regularLabel)("data-pxp-label",d.prefixedLabel)("resolution-strategy",d.regularResolutionStrategy)("data-pxp-resolution-strategy",d.prefixedResolutionStrategy)("alt",d.regularAlt)("data-pxp-alt",d.prefixedAlt)("title",d.regularTitle)("data-pxp-title",d.prefixedTitle)("aria-label",d.regularAriaLabel)("data-pxp-aria-label",d.prefixedAriaLabel)("focal-point",d.regularFocalPoint)("data-pxp-focal-point",d.prefixedFocalPoint)("height-strategy",d.regularHeightStrategy)("data-pxp-height-strategy",d.prefixedHeightStrategy),c.xc7("padding-top",d.imageRatio),c.AVh("empty",d.empty))},inputs:{src:"src",label:"label",extendedThumbnail:"extendedThumbnail",imageResolutionStrategy:"imageResolutionStrategy",lcpPrioritized:[1,"lcpPrioritized"],height:"height"},outputs:{error:"error"},standalone:!1,features:[c.Jv_([y.v,{provide:u.WM,useFactory:(m,g)=>d=>{var A;const I=null==d||null===(A=d.loaderParams)||void 0===A?void 0:A.imgRef;if(I.offsetWidth){var S,P;const T=null==d||null===(S=d.loaderParams)||void 0===S?void 0:S.imageResolutionStrategy,L=(null==d||null===(P=d.loaderParams)||void 0===P?void 0:P.focalPoint)||"",V=g.toResourceUrl((0,r.G)(I,d.src,T,L));return m.resizeSrc=V,V}return""},deps:[h,v.V]}]),c.OA$],decls:1,vars:1,consts:[["image",""],["fill","true","disableOptimizedSrcset","",3,"priority","ngSrc","alt","title","loaderParams"],["fill","true","disableOptimizedSrcset","",3,"error","priority","ngSrc","alt","title","loaderParams"]],template:function(g,d){1&g&&c.DNE(0,w,3,13,"img",1),2&g&&c.vxM(d.src&&d.loaded?0:-1)},dependencies:[u.kt,O.R],styles:["storefront-image,.pxp-image{display:flex;justify-content:center;align-items:center;position:relative;background-color:var(--imageLoadingColor);transition:.2s background-color ease-in}storefront-image[height-strategy=FIXED]>img,storefront-image[data-pxp-height-strategy=FIXED]>img,storefront-image[height-strategy=AUTO]>img,storefront-image[data-pxp-height-strategy=AUTO]>img,.pxp-image[height-strategy=FIXED]>img,.pxp-image[data-pxp-height-strategy=FIXED]>img,.pxp-image[height-strategy=AUTO]>img,.pxp-image[data-pxp-height-strategy=AUTO]>img{position:absolute;width:auto;max-width:100%;top:0;object-fit:contain}storefront-image[height-strategy=DEFAULT]>img,storefront-image[data-pxp-height-strategy=DEFAULT]>img,.pxp-image[height-strategy=DEFAULT]>img,.pxp-image[data-pxp-height-strategy=DEFAULT]>img{position:static!important}storefront-image.img-with-hidden-alt,.pxp-image.img-with-hidden-alt{content:attr(data-alt);display:none}storefront-image>img,.pxp-image>img{display:block;transition:opacity .2s ease-in,background-color .2s ease-in;background-color:#fff0;max-width:100%;max-height:100%;opacity:0}storefront-image>img.loaded,.pxp-image>img.loaded{opacity:1;background-color:var(--imageBackgroundColor)}storefront-image.loaded,.pxp-image.loaded{background:#fff0}\n"],encapsulation:2,changeDetection:0}),b})();var D=function(h){return h.AUTO="AUTO",h.FIXED="FIXED",h.DEFAULT="DEFAULT",h}(D||{})},4403:(M,x,s)=>{s.d(x,{U:()=>e});var u=s(177),c=s(4871),y=s(4438);let e=(()=>{var v;class r{}return(v=r).\u0275fac=function(E){return new(E||v)},v.\u0275mod=y.$C({type:v}),v.\u0275inj=y.G2t({imports:[u.MD,c.E]}),r})()},3647:(M,x,s)=>{s.d(x,{R:()=>y});var u=s(4438),c=s(345);let y=(()=>{var e;class v{constructor(_){this.sanitizer=_}transform(_,E="url"){switch(E){case"html":return this.sanitizer.bypassSecurityTrustHtml(_);case"style":return this.sanitizer.bypassSecurityTrustStyle(_);case"script":return this.sanitizer.bypassSecurityTrustScript(_);case"url":return this.sanitizer.bypassSecurityTrustUrl(_);case"resourceUrl":return this.sanitizer.bypassSecurityTrustResourceUrl(_);default:throw new Error("Invalid safe type specified: ".concat(E))}}}return(e=v).\u0275fac=function(_){return new(_||e)(u.rXU(c.up,16))},e.\u0275pipe=u.EJ8({name:"sanitizeUrl",type:e,pure:!0,standalone:!1}),v})()}}]);
|
1
|
+
"use strict";(self.webpackChunkstorefront=self.webpackChunkstorefront||[]).push([["projects_storefront_src_app_component_ad_ad_module_ts"],{3394:(Y,A,c)=>{c.r(A),c.d(A,{AdModule:()=>He,component:()=>Ze});var f=c(177),h=c(467),v=c(9379),e=c(3953),y=c(1210),a=c(9692),x=c(8251),D=c(4945),G=c(6843),E=c(1184),$=c(610),P=c(1803);const B={adId:null};var S=c(2932),V=c(8890),W=c(2596),F=c(7370),Q=c(3331),w=c(345),T=c(3178),O=c(8482),R=c(5964),L=c(6697),j=c(4412),K=c(4572),H=c(7673),C=c(8179),k=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 X}isValidConfiguration(){return!0}}class X 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:g}=d,p=(0,ae.A)(d,se);let u=(null==p?void 0:p.params)||"";if(u.includes("special=no_ad")||s.getPurchasedSubscription())return;u&&!u.startsWith("&")&&(u="&"+u);const m=s.createAdElement(p,u),_=t.parentNode;_.classList.add("ad",...null!==(l=null==g?void 0:g.split(" "))&&void 0!==l?l:[]),_.appendChild(m),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 u=document.createElement("div");u.className="ad-content-inner";const m=document.createElement("ins");m.className="asm_async_creative",m.style.width=r?"".concat(r,"px"):"100%",m.style.height=s?"".concat(s,"px"):"auto",m.style.textAlign="left",m.style.textDecoration="none",m.setAttribute("data-asm-cdn","cdn.adspirit.de"),m.setAttribute("data-asm-host","apoverlag.adspirit.de"),m.setAttribute("data-asm-params","pid=".concat(t).concat(i));const _=document.createElement("span");return _.className="ad-badge",_.textContent="Anzeige",u.appendChild(m),u.appendChild(_),g.appendChild(u),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 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)(k.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,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 z=c(1302),ge=c(3726),fe=c(152);let M=(()=>{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=new e.bkB,this.isVisible=!1}ngAfterViewInit(){(0,f.UE)(this.platformId)&&this.ngZone.runOutsideAngular(()=>{this.scrollSubscription=(0,ge.R)(window,"scroll",{passive:!0}).pipe((0,fe.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 Ge(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 Ee(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,Ge,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 $e(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,Ee,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 U=(()=>{var n;class o extends y.${constructor(){super(...arguments),this.store=(0,e.WQX)(x.B),this.googleAdService=(0,e.WQX)(W.s),this.router=(0,e.WQX)(Q.Ix),this.sanitizer=(0,e.WQX)(w.up),this.adService=(0,e.WQX)(le),this.traffectiveAdService=(0,e.WQX)(O.y),this.consentService=(0,e.WQX)(k.e),this.ssrService=(0,e.WQX)(Z.i),this.ngZone=(0,e.WQX)(e.SKi),this.changeDetectorRef=(0,e.WQX)(e.gRc),this.load=new e.bkB,this.loaded=!1,this.adVisible$=new j.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.baseConfig);null!=t&&t.providerConfig&&(0,E.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,C.uQ)((0,v.A)((0,v.A)({},s.providerConfig),{},{targeting:null}),t.contextService.getContext(),t.contextService.$functions,t.globalService.getGlobalData());if(!(0,C.ZY)(g))return void(t.config=null)}var l;if(s.providerConfig.type==a.P.TRAFFECTIVE&&(0,f.UE)(t.platformId)&&(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,f.Vy)(t.platformId)}),g=>{t.initAd()},T.lQ,T.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,D.jZ)(G.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,(null===(t=window.storefrontHooks)||void 0===t||!t.isAdDisabled||!window.storefrontHooks.isAdDisabled(this.ad.id))&&(0,f.UE)(this.platformId))switch(this.ad.providerConfig.type){case a.P.GPT:this.initGpt();break;case a.P.TRAFFECTIVE:this.initTraffective();break;case a.P.AUDIENZZ:case a.P.ADSPIRIT:this.initPluginAd();break;default:return this.target=this.getTarget(),void this.load.emit()}}initGpt(){var t=this;return(0,h.A)(function*(){const r=(0,C.uQ)((0,v.A)((0,v.A)({},t.ad.providerConfig),{},{targeting:null}),t.contextService.getContext(),t.contextService.$functions,t.globalService.getGlobalData());r.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)(G.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,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,R.p)(d=>d),(0,L.s)(1)),t.isDynamicAd?(0,H.of)(!0):t.adVisible$.pipe((0,R.p)(d=>d),(0,L.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,C.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,C.uQ)(g,this.contextService.getContext(),this.contextService.$functions,this.globalService.getGlobalData(),!1);if(s.multiValue){let u=p.split(",").filter(m=>""!==m);d.concat(u)}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,E.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,this.ad,this.adContainer.nativeElement,()=>this.load.emit())}getTarget(){return(0,F.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(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,$e,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,z.x,M,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 Pe=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:[f.MD]}),o})();const Te=["class","pxp-ad"];function Re(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 Le(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 ke(n,o){if(1&n&&(e.qex(0),e.DNE(1,Le,1,1,"iframe",7),e.bVm()),2&n){const i=e.XpG(2);e.R7$(),e.Y8G("ngIf",i.safeIframeUrl)}}function Xe(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 ze(n,o){if(1&n&&(e.qex(0),e.DNE(1,Xe,2,3,"ng-container",2),e.bVm()),2&n){const i=e.XpG(2);e.R7$(),e.Y8G("ngIf",!i.isDynamicAd)}}function Me(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 Ue(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,Ue,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,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 Qe(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 Oe(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,Qe,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,Re,2,1,"ng-container",4)(4,ke,2,1,"ng-container",4)(5,ze,2,1,"ng-container",4)(6,Me,1,0,"ng-container",4)(7,Oe,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 U{}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:Te,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:[f.bT,f.ux,f.e1,f.fG,S.h,z.x,M,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:[f.MD,Pe.U,Ve.E,we]}),o})();const Ze={component:U,leanDomComponent:Ke}},1803:(Y,A,c)=>{c.d(A,{OE:()=>y,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.a="a",a.br="br",a.button="button",a.div="div",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||{}),y=function(a){return a.div="div",a.li="li",a.ol="ol",a.p="p",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}(y||{})}}]);
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";(self.webpackChunkstorefront=self.webpackChunkstorefront||[]).push([["projects_storefront_src_app_component_app-menu-xml_app-menu-xml_module_ts"],{4767:(k,h,a)=>{a.d(h,{d:()=>f});var c=a(177),x=a(4438);let f=(()=>{var e;class g{}return(e=g).\u0275fac=function(C){return new(C||e)},e.\u0275mod=x.$C({type:e}),e.\u0275inj=x.G2t({imports:[c.MD]}),g})()},2914:(k,h,a)=>{a.d(h,{w:()=>g});var c=a(4049),x=a(7370),f=a(4438),e=a(9516);let g=(()=>{var u;class C{constructor(d){this.contextService=d}transform(d,E){if(!d||(0,x.vh)(d))return d;let _=d?(0,c.K)(d,E):"";const O=this.contextService.getIsCustomerDomainUsed()?"":"/".concat(this.contextService.getBrand(),"/"),A=this.contextService.isPreview();return"/"===_&&(_=""),_="".concat(O).concat(_).concat(A?"?preview=true":""),_}}return(u=C).\u0275fac=function(d){return new(d||u)(f.rXU(e.V,16))},u.\u0275pipe=f.EJ8({name:"urlTransform",type:u,pure:!0,standalone:!1}),u.\u0275prov=f.jDH({token:u,factory:u.\u0275fac,providedIn:"root"}),C})()},9131:(k,h,a)=>{a.r(h),a.d(h,{AppMenuXmlModule:()=>Ge,component:()=>$e});var c=a(177),x=a(9379),f=a(7027),e=a(4438),g=a(4404),u=a(2771),C=a(8793),U=a(7673),d=a(3726),E=a(4572),_=a(6354),O=a(9568),A=a(9745),S=a(8251),B=a(7370),P=a(1210);const j={};function L(t){const r=[];for(const o of t.childNodes)if(o.nodeType===Node.ELEMENT_NODE)switch(o.nodeName){case"image":r.push({type:"image"});break;case"search":r.push({type:"search"});break;default:throw{code:g.ERROR_CODE.CONFIGURATION_ERROR,message:"Unknown type in ".concat(t.tagName,": ").concat(o.nodeName)}}return r}function H(t){const o=(new DOMParser).parseFromString(t,"text/xml"),n=o.querySelector("parsererror");if(n)throw{code:g.ERROR_CODE.CONFIGURATION_ERROR,message:n.textContent};const i=o.documentElement;if("app_menu"!==i.tagName)throw{code:g.ERROR_CODE.CONFIGURATION_ERROR,message:"Missing root <app_menu>"};const p={},m=i.querySelector("navigationHeader");m&&(p.header=L(m));const s=i.querySelector("navigation");s&&(p.dynamicEntries=function Y(t){const r=[];for(const p of t.getElementsByTagName("navigationNode")){var o,n,i;const m=p.getAttribute("targetURL"),s=p.getElementsByTagName("title"),l={default:m};for(const T of s)l[T.getAttribute("locale")||"default"]=T.textContent;const v=null!==(o=p.getAttribute("access"))&&void 0!==o?o:void 0;if(v&&"AUTHENTICATED"!==v&&"ROLE_ANONYMOUS"!==v)throw{code:g.ERROR_CODE.NOT_AVAILABLE,message:'Only simple roles are accepted as "access" on navigationNode, got "'.concat(v,'"')};r.push({targetUrl:m,titles:l,iconUrl:null===(n=p.getElementsByTagName("iconURL").item(0))||void 0===n?void 0:n.textContent,activeIconURL:null===(i=p.getElementsByTagName("activeIconURL").item(0))||void 0===i?void 0:i.textContent,access:v})}return r}(s));const l=i.querySelector("navigationFooter");return l&&(p.footer=L(l)),p}var R=a(7879),z=a(9079),w=a(7598),K=a(9360),W=a(9516),J=a(2838),G=a(3331),Q=a(8004),Z=a(20),q=a(3377),ee=a(9118),ne=a(9668),te=a(1652),oe=a(5204),$=a(2914);const re=(t,r)=>({"mask-image":t,"-webkit-mask-image":r}),ae=()=>({"background-color":"transparent"}),I=t=>({item:t});function ie(t,r){1&t&&(e.qex(0),e.j41(1,"div",6),e.EFF(2,"TODO SEARCH CONTAINER"),e.k0s(),e.bVm())}function pe(t,r){1&t&&(e.qex(0),e.j41(1,"div",7),e.EFF(2,"TODO IMAGE CONTAINER"),e.k0s(),e.bVm())}function me(t,r){if(1&t&&e.DNE(0,ie,3,0,"ng-container",5)(1,pe,3,0,"ng-container",5),2&t){const o=r.item;e.Y8G("ngIf","search"===o.type),e.R7$(),e.Y8G("ngIf","image"===o.type)}}function se(t,r){if(1&t){const o=e.RV6();e.j41(0,"li")(1,"a",8),e.nI1(2,"urlTransform"),e.bIt("click",function(i){const p=e.eBV(o).item,m=e.XpG();return e.Njj(m.handleItemClick(p,i))}),e.nrm(3,"span",9),e.j41(4,"span",10),e.EFF(5),e.k0s()()()}if(2&t){const o=r.item,n=e.XpG();e.R7$(),e.AVh("app-menu-entry-active",o.active),e.BMQ("href",e.i5U(2,7,o.targetUrl,n.context),e.B4B)("target",o.target),e.R7$(2),e.Aen(o.iconUrl?e.l_i(10,re,"url('"+o.iconUrl+"')","url('"+o.iconUrl+"')"):e.lJ4(13,ae)),e.R7$(2),e.JRh(o.title)}}function le(t,r){if(1&t&&(e.qex(0),e.eu8(1,13),e.bVm()),2&t){const o=r.$implicit;e.XpG(2);const n=e.sdS(1);e.R7$(),e.Y8G("ngTemplateOutlet",n)("ngTemplateOutletContext",e.eq3(2,I,o))}}function ce(t,r){if(1&t&&(e.j41(0,"div",11),e.DNE(1,le,2,4,"ng-container",12),e.k0s()),2&t){const o=e.XpG();e.R7$(),e.Y8G("ngForOf",o.header)}}function ue(t,r){if(1&t&&(e.qex(0),e.eu8(1,13),e.bVm()),2&t){const o=r.$implicit;e.XpG(2);const n=e.sdS(3);e.R7$(),e.Y8G("ngTemplateOutlet",n)("ngTemplateOutletContext",e.eq3(2,I,o))}}function ge(t,r){if(1&t&&(e.j41(0,"ul",14),e.DNE(1,ue,2,4,"ng-container",12),e.k0s()),2&t){const o=e.XpG();e.R7$(),e.Y8G("ngForOf",o.dynamicEntries)}}function de(t,r){if(1&t&&(e.qex(0),e.eu8(1,13),e.bVm()),2&t){const o=r.$implicit;e.XpG(2);const n=e.sdS(1);e.R7$(),e.Y8G("ngTemplateOutlet",n)("ngTemplateOutletContext",e.eq3(2,I,o))}}function ve(t,r){if(1&t&&(e.j41(0,"div",15),e.DNE(1,de,2,4,"ng-container",12),e.k0s()),2&t){const o=e.XpG();e.R7$(),e.Y8G("ngForOf",o.footer)}}const _e=["purple://app/settings/open","purple://app/info/open","purple://app/share_app_or_issue","purple://app/share_app_or_issue_or_page","purple://app/push/register","purple://app/onboarding/app_start/open"],he=(0,f.A)(/^purple:\/\/(?:storefront|app)\/resource\/dynamic\/storefront\/index\.html(?:[^#]*)(?:#\/)?(.*)?/,{path:1}),xe=(0,K.zk)();let F=(()=>{var t;class r extends P.${constructor(n,i,p,m,s,l,v,T,N,Fe,be,Ve,b,Be){super(i,n,p,m,b),this.elementRef=n,this.injector=i,this.contextService=p,this.document=m,this.resourceService=s,this.router=l,this.destroyRef=v,this.eventActionService=T,this.dialogService=N,this.actionUrlService=Fe,this.kioskConfigService=be,this.browserService=Ve,this.globalService=b,this.appMenuService=Be,this.defaultConfig=(0,x.A)({},j),this.rawAppMenuXml$=new u.m(1),this.colorCssVars={};const V=this.contextService.toResourceUrl("resource://dynamic/app_menu.xml"),D=(0,e.zw6)(V);this.transferState.hasKey(D)?this.rawAppMenuXml$.next(this.transferState.get(D,"")):this.resourceService.getString(V).then(M=>{this.rawAppMenuXml$.next(M),this.transferState.set(D,M)}).catch(M=>{this.rawAppMenuXml$.error({code:g.ERROR_CODE.NOT_FOUND,message:M.toString()})})}ngOnInit(){super.ngOnInit(),this.updateColorCssVars({});const n=this.rawAppMenuXml$.pipe((0,z.pQ)(this.destroyRef),(0,_.T)(H),(0,O.t)({refCount:!0,bufferSize:1})),i=(0,C.x)((0,U.of)(null),(0,d.R)(xe,w.YT));(0,E.z)([n,this.kioskConfigService.getAppProperties(),i]).subscribe({next:([{header:p,footer:m,dynamicEntries:s},l])=>{this.header=p,this.footer=m,this.dynamicEntries=this.convertToDisplayEntries(s,l),this.updateColorCssVars(l),this.changeDetectorRef.markForCheck()},error:p=>{var m,s;this.dialogService.alert({text:"APP_MENU_XML_ERROR_MESSAGE",args:[null!==(m=p.code)&&void 0!==m?m:"UNKNOWN",null!==(s=p.message)&&void 0!==s?s:"UNKNOWN"]},"APP_MENU_XML_ERROR_TITLE","APP_MENU_XML_ERROR_CONFIRM")}})}updateColorCssVars(n){const i={iconNormal:(0,R.l6)(n.app_menu_icon_normal_color||n.text_color_variation)||"#898b8e",itemNormalBg:(0,R.l6)(n.app_menu_item_normal_background_color||n.main_background_color)||"#f5f5f6",itemNormalText:(0,R.l6)(n.app_menu_item_normal_text_color||n.text_color_variation)||"#898b8e",iconActive:(0,R.l6)(n.app_menu_icon_active_color||n.main_background_color)||"#f5f5f6",itemHoverBg:(0,R.l6)(n.app_menu_item_pressed_background_color||n.main_highlight_color)||"#00adef",itemHoverText:(0,R.l6)(n.app_menu_item_pressed_text_color||n.text_color_on_highlight_color)||"#f5f5f6"},p={};for(const[m,s]of Object.entries(i))p["--appMenuXml".concat(m.substring(0,1).toUpperCase()).concat(m.substring(1))]=s;this.colorCssVars=p}convertToDisplayEntries(n,i){const p=this.contextService.getPath(),m=this.contextService.isLoggedIn();return n.map(s=>{if("AUTHENTICATED"===s.access&&!m||"ROLE_ANONYMOUS"===s.access&&m)return;if(_e.includes(s.targetUrl))return void console.log("app_menu.xml: Ignored unsupported action url ".concat(s.targetUrl));const l=this.convertTargetUrl(s.targetUrl,i),v=l.targetUrl&&p.startsWith(l.targetUrl);return{title:s.titles.default,iconUrl:this.handleIconUrl(s,v),active:v,targetUrl:l.targetUrl,isClientNavigation:l.isClientNavigation,onClick:l.onClick,target:l.target}}).filter(s=>!!s)}handleIconUrl(n,i){if(n.activeIconURL||n.iconUrl)return this.convertIconUrl(i&&n.activeIconURL?n.activeIconURL:n.iconUrl)}convertIconUrl(n){return n.endsWith(".png")||console.error("Expected app menu icon to be png!"),n=n.split(".png")[0]+"@3x.png",this.contextService.toResourceUrl("resource://dynamic/".concat(n))}handleItemClick(n,i){if(n.isClientNavigation)return i.preventDefault(),this.appMenuService.setOpen(!1),this.eventActionService.processNavigateAction({type:A.H.NAVIGATE,path:n.targetUrl},this);n.onClick&&n.onClick(n)}convertTargetUrl(n,i){if(!(0,B.vh)(n)){if(n.startsWith("/"))throw{code:g.ERROR_CODE.VALIDATION_FAILED,message:'Unknown target URL "'.concat(n,'"')};n="purple://app/resource/dynamic/"+n}if("purple://app/bookmarks/open"===n)return i.app_bookmarks_custom_ui_url?this.convertTargetUrl(i.app_bookmarks_custom_ui_url||"storefront/index.html?title_bar=false#/bookmarks",i):{isClientNavigation:!0,targetUrl:"/bookmarks"};if("purple://kiosk/entitlement/login/open"===n)return{onClick:()=>{this.eventActionService.processLoginAction({type:A.H.LOGIN},this)}};if("purple://app/home/open"===n||"purple://kiosk/open"===n)return i.app_initial_screen_url?this.convertTargetUrl(i.app_initial_screen_url,i):{isClientNavigation:!0,targetUrl:"/"};if(n.startsWith("purple://app/open/external/url/")){const m=n.replace("purple://app/open/external/url/","");return{target:"_blank",targetUrl:decodeURIComponent(m)}}const p=he.exec(n);return p?{isClientNavigation:!0,targetUrl:p.groups.path||"/"}:n.startsWith("purple://")?{onClick:()=>{this.actionUrlService.openUrl(n)}}:this.browserService.willOpenExternally(n)?{targetUrl:n,target:"_blank"}:{onClick:()=>this.browserService.showBrowser(n)}}}return(t=r).\u0275fac=function(n){return new(n||t)(e.rXU(e.aKT),e.rXU(e.zZn),e.rXU(W.V),e.rXU(c.qQ),e.rXU(J.Q),e.rXU(G.Ix),e.rXU(e.abz),e.rXU(Q.G),e.rXU(Z.o),e.rXU(q.p),e.rXU(ee.x),e.rXU(ne.I),e.rXU(te.d),e.rXU(oe.I))},t.\u0275cmp=e.VBU({type:t,selectors:[["storefront-app-menu-xml"]],hostVars:2,hostBindings:function(n,i){2&n&&e.Aen(i.colorCssVars)},standalone:!1,features:[e.Jv_([S.B]),e.Vt3],decls:7,vars:3,consts:[["headerItem",""],["dynamicItem",""],["class","app-menu-xml-header",4,"ngIf"],["class","app-menu-xml-dynamic-entries",4,"ngIf"],["class","app-menu-xml-footer",4,"ngIf"],[4,"ngIf"],[1,"app-menu-search"],[1,"app-menu-image"],[1,"app-menu-entry",3,"click"],[1,"app-menu-entry-icon"],[1,"app-menu-entry-title"],[1,"app-menu-xml-header"],[4,"ngFor","ngForOf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"app-menu-xml-dynamic-entries"],[1,"app-menu-xml-footer"]],template:function(n,i){1&n&&e.DNE(0,me,2,2,"ng-template",null,0,e.C5r)(2,se,6,14,"ng-template",null,1,e.C5r)(4,ce,2,1,"div",2)(5,ge,2,1,"ul",3)(6,ve,2,1,"div",4),2&n&&(e.R7$(4),e.Y8G("ngIf",i.header),e.R7$(),e.Y8G("ngIf",i.dynamicEntries),e.R7$(),e.Y8G("ngIf",i.footer))},dependencies:[c.Sq,c.bT,c.T3,$.w],styles:[".app-menu-xml-dynamic-entries .app-menu-entry{display:grid;cursor:pointer;position:relative;margin:calc(var(--gutter) / 2) 0;gap:var(--gutter);grid-template-columns:40px auto;align-items:center;background-color:var(--appMenuXmlItemNormalBg)}.app-menu-xml-dynamic-entries .app-menu-entry:hover,.app-menu-xml-dynamic-entries .app-menu-entry .app-menu-entry-active{background-color:var(--appMenuXmlItemHoverBg)}.app-menu-xml-dynamic-entries .app-menu-entry:hover>.app-menu-entry-icon,.app-menu-xml-dynamic-entries .app-menu-entry .app-menu-entry-active>.app-menu-entry-icon{background-color:var(--appMenuXmlIconActive)}.app-menu-xml-dynamic-entries .app-menu-entry:hover>.app-menu-entry-title,.app-menu-xml-dynamic-entries .app-menu-entry .app-menu-entry-active>.app-menu-entry-title{color:var(--appMenuXmlItemHoverText)}.app-menu-xml-dynamic-entries .app-menu-entry>.app-menu-entry-icon{width:40px;height:40px;background-color:var(--appMenuXmlIconNormal);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:contain;mask-size:contain;-webkit-mask-position:center;mask-position:center;z-index:2}.app-menu-xml-dynamic-entries .app-menu-entry>.app-menu-entry-title{color:var(--appMenuXmlItemNormalText);z-index:2}\n"],encapsulation:2,changeDetection:0}),r})();var Ce=a(9805),Re=a(4767);const ye=["class","pxp-app-menu-xml"],Ae=(t,r)=>({"mask-image":t,"-webkit-mask-image":r}),Te=()=>({"background-color":"transparent"}),X=t=>({item:t});function Me(t,r){1&t&&(e.qex(0),e.j41(1,"div",6),e.EFF(2,"TODO SEARCH CONTAINER"),e.k0s(),e.bVm())}function Ue(t,r){1&t&&(e.qex(0),e.j41(1,"div",7),e.EFF(2,"TODO IMAGE CONTAINER"),e.k0s(),e.bVm())}function Ee(t,r){if(1&t&&e.DNE(0,Me,3,0,"ng-container",5)(1,Ue,3,0,"ng-container",5),2&t){const o=r.item;e.Y8G("ngIf","search"===o.type),e.R7$(),e.Y8G("ngIf","image"===o.type)}}function Oe(t,r){if(1&t){const o=e.RV6();e.j41(0,"li")(1,"a",8),e.nI1(2,"urlTransform"),e.bIt("click",function(i){const p=e.eBV(o).item,m=e.XpG();return e.Njj(m.handleItemClick(p,i))}),e.nrm(3,"span",9),e.j41(4,"span",10),e.EFF(5),e.k0s()()()}if(2&t){const o=r.item,n=e.XpG();e.R7$(),e.AVh("app-menu-entry-active",o.active),e.BMQ("href",e.i5U(2,7,o.targetUrl,n.context),e.B4B)("target",o.target),e.R7$(2),e.Aen(o.iconUrl?e.l_i(10,Ae,"url('"+o.iconUrl+"')","url('"+o.iconUrl+"')"):e.lJ4(13,Te)),e.R7$(2),e.JRh(o.title)}}function Ie(t,r){if(1&t&&(e.qex(0),e.eu8(1,13),e.bVm()),2&t){const o=r.$implicit;e.XpG(2);const n=e.sdS(1);e.R7$(),e.Y8G("ngTemplateOutlet",n)("ngTemplateOutletContext",e.eq3(2,X,o))}}function Xe(t,r){if(1&t&&(e.j41(0,"div",11),e.DNE(1,Ie,2,4,"ng-container",12),e.k0s()),2&t){const o=e.XpG();e.R7$(),e.Y8G("ngForOf",o.header)}}function Ne(t,r){if(1&t&&(e.qex(0),e.eu8(1,13),e.bVm()),2&t){const o=r.$implicit;e.XpG(2);const n=e.sdS(3);e.R7$(),e.Y8G("ngTemplateOutlet",n)("ngTemplateOutletContext",e.eq3(2,X,o))}}function De(t,r){if(1&t&&(e.j41(0,"ul",14),e.DNE(1,Ne,2,4,"ng-container",12),e.k0s()),2&t){const o=e.XpG();e.R7$(),e.Y8G("ngForOf",o.dynamicEntries)}}function ke(t,r){if(1&t&&(e.qex(0),e.eu8(1,13),e.bVm()),2&t){const o=r.$implicit;e.XpG(2);const n=e.sdS(1);e.R7$(),e.Y8G("ngTemplateOutlet",n)("ngTemplateOutletContext",e.eq3(2,X,o))}}function Se(t,r){if(1&t&&(e.j41(0,"div",15),e.DNE(1,ke,2,4,"ng-container",12),e.k0s()),2&t){const o=e.XpG();e.R7$(),e.Y8G("ngForOf",o.footer)}}let Le=(()=>{var t;class r extends F{}return(t=r).\u0275fac=(()=>{let o;return function(i){return(o||(o=e.xGo(t)))(i||t)}})(),t.\u0275cmp=e.VBU({type:t,selectors:[["div",8,"pxp-app-menu-xml"]],standalone:!1,features:[e.Jv_([S.B]),e.Vt3],attrs:ye,decls:7,vars:3,consts:[["headerItem",""],["dynamicItem",""],["class","app-menu-xml-header",4,"ngIf"],["class","app-menu-xml-dynamic-entries",4,"ngIf"],["class","app-menu-xml-footer",4,"ngIf"],[4,"ngIf"],[1,"app-menu-search"],[1,"app-menu-image"],[1,"app-menu-entry",3,"click"],[1,"app-menu-entry-icon"],[1,"app-menu-entry-title"],[1,"app-menu-xml-header"],[4,"ngFor","ngForOf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"app-menu-xml-dynamic-entries"],[1,"app-menu-xml-footer"]],template:function(n,i){1&n&&e.DNE(0,Ee,2,2,"ng-template",null,0,e.C5r)(2,Oe,6,14,"ng-template",null,1,e.C5r)(4,Xe,2,1,"div",2)(5,De,2,1,"ul",3)(6,Se,2,1,"div",4),2&n&&(e.R7$(4),e.Y8G("ngIf",i.header),e.R7$(),e.Y8G("ngIf",i.dynamicEntries),e.R7$(),e.Y8G("ngIf",i.footer))},dependencies:[c.Sq,c.bT,c.T3,$.w],styles:[".app-menu-xml-dynamic-entries .app-menu-entry{display:grid;cursor:pointer;position:relative;margin:calc(var(--gutter) / 2) 0;gap:var(--gutter);grid-template-columns:40px auto;align-items:center;background-color:var(--appMenuXmlItemNormalBg)}.app-menu-xml-dynamic-entries .app-menu-entry:hover,.app-menu-xml-dynamic-entries .app-menu-entry .app-menu-entry-active{background-color:var(--appMenuXmlItemHoverBg)}.app-menu-xml-dynamic-entries .app-menu-entry:hover>.app-menu-entry-icon,.app-menu-xml-dynamic-entries .app-menu-entry .app-menu-entry-active>.app-menu-entry-icon{background-color:var(--appMenuXmlIconActive)}.app-menu-xml-dynamic-entries .app-menu-entry:hover>.app-menu-entry-title,.app-menu-xml-dynamic-entries .app-menu-entry .app-menu-entry-active>.app-menu-entry-title{color:var(--appMenuXmlItemHoverText)}.app-menu-xml-dynamic-entries .app-menu-entry>.app-menu-entry-icon{width:40px;height:40px;background-color:var(--appMenuXmlIconNormal);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:contain;mask-size:contain;-webkit-mask-position:center;mask-position:center;z-index:2}.app-menu-xml-dynamic-entries .app-menu-entry>.app-menu-entry-title{color:var(--appMenuXmlItemNormalText);z-index:2}\n"],encapsulation:2,changeDetection:0}),r})(),Ge=(()=>{var t;class r{}return(t=r).\u0275fac=function(n){return new(n||t)},t.\u0275mod=e.$C({type:t}),t.\u0275inj=e.G2t({imports:[c.MD,Ce.ButtonModule,G.iI,Re.d]}),r})();const $e={component:F,leanDomComponent:Le}}}]);
|
1
|
+
"use strict";(self.webpackChunkstorefront=self.webpackChunkstorefront||[]).push([["projects_storefront_src_app_component_app-menu-xml_app-menu-xml_module_ts"],{4767:(X,_,i)=>{i.d(_,{d:()=>A});var u=i(177),h=i(3953);let A=(()=>{var e;class f{}return(e=f).\u0275fac=function(x){return new(x||e)},e.\u0275mod=h.$C({type:e}),e.\u0275inj=h.G2t({imports:[u.MD]}),f})()},2914:(X,_,i)=>{i.d(_,{w:()=>f});var u=i(3953),h=i(4049),A=i(7370),e=i(7879);let f=(()=>{var s;class x{constructor(){this.appData=(0,u.WQX)(e.fj)}transform(g,T){if(!g||(0,A.vh)(g))return g;let R=g?(0,h.K)(g,T):"";const M=this.appData.customDomain?"":"/".concat(this.appData.brand,"/");return"/"===R&&(R=""),"".concat(M).concat(R).concat(this.appData.preview?"?preview=true":"")}}return(s=x).\u0275fac=function(g){return new(g||s)},s.\u0275pipe=u.EJ8({name:"urlTransform",type:s,pure:!0,standalone:!1}),s.\u0275prov=u.jDH({token:s,factory:s.\u0275fac,providedIn:"root"}),x})()},9131:(X,_,i)=>{i.r(_),i.d(_,{AppMenuXmlModule:()=>Xe,component:()=>Ne});var u=i(177),h=i(9379),A=i(7027),e=i(3953),f=i(3331),s=i(4404),x=i(2771),y=i(8793),g=i(7673),T=i(3726),R=i(4572),M=i(6354),S=i(9568),$=i(20),F=i(3377),b=i(9668),N=i(9745),V=i(8004),B=i(9118),P=i(2838),U=i(8251),E=i(7370),j=i(1210);const W={};function D(t){const a=[];for(const o of t.childNodes)if(o.nodeType===Node.ELEMENT_NODE)switch(o.nodeName){case"image":a.push({type:"image"});break;case"search":a.push({type:"search"});break;default:throw{code:s.ERROR_CODE.CONFIGURATION_ERROR,message:"Unknown type in ".concat(t.tagName,": ").concat(o.nodeName)}}return a}function H(t){const o=(new DOMParser).parseFromString(t,"text/xml"),n=o.querySelector("parsererror");if(n)throw{code:s.ERROR_CODE.CONFIGURATION_ERROR,message:n.textContent};const r=o.documentElement;if("app_menu"!==r.tagName)throw{code:s.ERROR_CODE.CONFIGURATION_ERROR,message:"Missing root <app_menu>"};const p={},m=r.querySelector("navigationHeader");m&&(p.header=D(m));const l=r.querySelector("navigation");l&&(p.dynamicEntries=function Y(t){const a=[];for(const p of t.getElementsByTagName("navigationNode")){var o,n,r;const m=p.getAttribute("targetURL"),l=p.getElementsByTagName("title"),c={default:m};for(const G of l)c[G.getAttribute("locale")||"default"]=G.textContent;const d=null!==(o=p.getAttribute("access"))&&void 0!==o?o:void 0;if(d&&"AUTHENTICATED"!==d&&"ROLE_ANONYMOUS"!==d)throw{code:s.ERROR_CODE.NOT_AVAILABLE,message:'Only simple roles are accepted as "access" on navigationNode, got "'.concat(d,'"')};a.push({targetUrl:m,titles:c,iconUrl:null===(n=p.getElementsByTagName("iconURL").item(0))||void 0===n?void 0:n.textContent,activeIconURL:null===(r=p.getElementsByTagName("activeIconURL").item(0))||void 0===r?void 0:r.textContent,access:d})}return a}(l));const c=r.querySelector("navigationFooter");return c&&(p.footer=D(c)),p}var v=i(7879),Q=i(5204),w=i(9079),z=i(7598),K=i(9360),k=i(2914);const J=(t,a)=>({"mask-image":t,"-webkit-mask-image":a}),Z=()=>({"background-color":"transparent"}),O=t=>({item:t});function q(t,a){1&t&&(e.qex(0),e.j41(1,"div",6),e.EFF(2,"TODO SEARCH CONTAINER"),e.k0s(),e.bVm())}function ee(t,a){1&t&&(e.qex(0),e.j41(1,"div",7),e.EFF(2,"TODO IMAGE CONTAINER"),e.k0s(),e.bVm())}function ne(t,a){if(1&t&&e.DNE(0,q,3,0,"ng-container",5)(1,ee,3,0,"ng-container",5),2&t){const o=a.item;e.Y8G("ngIf","search"===o.type),e.R7$(),e.Y8G("ngIf","image"===o.type)}}function te(t,a){if(1&t){const o=e.RV6();e.j41(0,"li")(1,"a",8),e.nI1(2,"urlTransform"),e.bIt("click",function(r){const p=e.eBV(o).item,m=e.XpG();return e.Njj(m.handleItemClick(p,r))}),e.nrm(3,"span",9),e.j41(4,"span",10),e.EFF(5),e.k0s()()()}if(2&t){const o=a.item,n=e.XpG();e.R7$(),e.AVh("app-menu-entry-active",o.active),e.BMQ("href",e.i5U(2,7,o.targetUrl,n.context),e.B4B)("target",o.target),e.R7$(2),e.Aen(o.iconUrl?e.l_i(10,J,"url('"+o.iconUrl+"')","url('"+o.iconUrl+"')"):e.lJ4(13,Z)),e.R7$(2),e.JRh(o.title)}}function oe(t,a){if(1&t&&(e.qex(0),e.eu8(1,13),e.bVm()),2&t){const o=a.$implicit;e.XpG(2);const n=e.sdS(1);e.R7$(),e.Y8G("ngTemplateOutlet",n)("ngTemplateOutletContext",e.eq3(2,O,o))}}function ae(t,a){if(1&t&&(e.j41(0,"div",11),e.DNE(1,oe,2,4,"ng-container",12),e.k0s()),2&t){const o=e.XpG();e.R7$(),e.Y8G("ngForOf",o.header)}}function re(t,a){if(1&t&&(e.qex(0),e.eu8(1,13),e.bVm()),2&t){const o=a.$implicit;e.XpG(2);const n=e.sdS(3);e.R7$(),e.Y8G("ngTemplateOutlet",n)("ngTemplateOutletContext",e.eq3(2,O,o))}}function ie(t,a){if(1&t&&(e.j41(0,"ul",14),e.DNE(1,re,2,4,"ng-container",12),e.k0s()),2&t){const o=e.XpG();e.R7$(),e.Y8G("ngForOf",o.dynamicEntries)}}function pe(t,a){if(1&t&&(e.qex(0),e.eu8(1,13),e.bVm()),2&t){const o=a.$implicit;e.XpG(2);const n=e.sdS(1);e.R7$(),e.Y8G("ngTemplateOutlet",n)("ngTemplateOutletContext",e.eq3(2,O,o))}}function me(t,a){if(1&t&&(e.j41(0,"div",15),e.DNE(1,pe,2,4,"ng-container",12),e.k0s()),2&t){const o=e.XpG();e.R7$(),e.Y8G("ngForOf",o.footer)}}const se=["purple://app/settings/open","purple://app/info/open","purple://app/share_app_or_issue","purple://app/share_app_or_issue_or_page","purple://app/push/register","purple://app/onboarding/app_start/open"],ce=(0,A.A)(/^purple:\/\/(?:storefront|app)\/resource\/dynamic\/storefront\/index\.html(?:[^#]*)(?:#\/)?(.*)?/,{path:1}),ue=(0,K.zk)();let L=(()=>{var t;class a extends j.${constructor(){super(),this.resourceService=(0,e.WQX)(P.Q),this.router=(0,e.WQX)(f.Ix),this.destroyRef=(0,e.WQX)(e.abz),this.eventActionService=(0,e.WQX)(V.G),this.dialogService=(0,e.WQX)($.o),this.actionUrlService=(0,e.WQX)(F.p),this.kioskConfigService=(0,e.WQX)(B.x),this.browserService=(0,e.WQX)(b.I),this.appMenuService=(0,e.WQX)(Q.I),this.changeDetectorRef=(0,e.WQX)(e.gRc),this.appData=(0,e.WQX)(v.fj),this.defaultConfig=(0,h.A)({},W),this.rawAppMenuXml$=new x.m(1),this.colorCssVars={};const n=(0,E.Al)("app_menu.xml",this.appData),r=(0,e.zw6)("app_menu.xml");this.transferState.hasKey(r)?this.rawAppMenuXml$.next(this.transferState.get(r,"")):this.resourceService.getString(n).then(p=>{this.rawAppMenuXml$.next(p),this.transferState.set(r,p)}).catch(p=>{this.rawAppMenuXml$.error({code:s.ERROR_CODE.NOT_FOUND,message:p.toString()})})}ngOnInit(){super.ngOnInit(),this.updateColorCssVars({});const n=this.rawAppMenuXml$.pipe((0,w.pQ)(this.destroyRef),(0,M.T)(H),(0,S.t)({refCount:!0,bufferSize:1})),r=(0,y.x)((0,g.of)(null),(0,T.R)(ue,z.YT));(0,R.z)([n,this.kioskConfigService.getAppProperties(),r]).subscribe({next:([{header:p,footer:m,dynamicEntries:l},c])=>{this.header=p,this.footer=m,this.dynamicEntries=this.convertToDisplayEntries(l,c),this.updateColorCssVars(c),this.changeDetectorRef.markForCheck()},error:p=>{var m,l;this.dialogService.alert({text:"APP_MENU_XML_ERROR_MESSAGE",args:[null!==(m=p.code)&&void 0!==m?m:"UNKNOWN",null!==(l=p.message)&&void 0!==l?l:"UNKNOWN"]},"APP_MENU_XML_ERROR_TITLE","APP_MENU_XML_ERROR_CONFIRM")}})}updateColorCssVars(n){const r={iconNormal:(0,v.l6)(n.app_menu_icon_normal_color||n.text_color_variation)||"#898b8e",itemNormalBg:(0,v.l6)(n.app_menu_item_normal_background_color||n.main_background_color)||"#f5f5f6",itemNormalText:(0,v.l6)(n.app_menu_item_normal_text_color||n.text_color_variation)||"#898b8e",iconActive:(0,v.l6)(n.app_menu_icon_active_color||n.main_background_color)||"#f5f5f6",itemHoverBg:(0,v.l6)(n.app_menu_item_pressed_background_color||n.main_highlight_color)||"#00adef",itemHoverText:(0,v.l6)(n.app_menu_item_pressed_text_color||n.text_color_on_highlight_color)||"#f5f5f6"},p={};for(const[m,l]of Object.entries(r))p["--appMenuXml".concat(m.substring(0,1).toUpperCase()).concat(m.substring(1))]=l;this.colorCssVars=p}convertToDisplayEntries(n,r){const p=this.contextService.getPath(),m=this.contextService.isLoggedIn();return n.map(l=>{if("AUTHENTICATED"===l.access&&!m||"ROLE_ANONYMOUS"===l.access&&m)return;if(se.includes(l.targetUrl))return void console.log("app_menu.xml: Ignored unsupported action url ".concat(l.targetUrl));const c=this.convertTargetUrl(l.targetUrl,r),d=c.targetUrl&&p.startsWith(c.targetUrl);return{title:l.titles.default,iconUrl:this.handleIconUrl(l,d),active:d,targetUrl:c.targetUrl,isClientNavigation:c.isClientNavigation,onClick:c.onClick,target:c.target}}).filter(l=>!!l)}handleIconUrl(n,r){if(n.activeIconURL||n.iconUrl)return this.convertIconUrl(r&&n.activeIconURL?n.activeIconURL:n.iconUrl)}convertIconUrl(n){return n.endsWith(".png")||console.error("Expected app menu icon to be png!"),n=n.split(".png")[0]+"@3x.png",(0,E.Al)(n,this.appData)}handleItemClick(n,r){if(n.isClientNavigation)return r.preventDefault(),this.appMenuService.setOpen(!1),this.eventActionService.processNavigateAction({type:N.H.NAVIGATE,path:n.targetUrl},this);n.onClick&&n.onClick(n)}convertTargetUrl(n,r){if(!(0,E.vh)(n)){if(n.startsWith("/"))throw{code:s.ERROR_CODE.VALIDATION_FAILED,message:'Unknown target URL "'.concat(n,'"')};n="purple://app/resource/dynamic/"+n}if("purple://app/bookmarks/open"===n)return r.app_bookmarks_custom_ui_url?this.convertTargetUrl(r.app_bookmarks_custom_ui_url||"storefront/index.html?title_bar=false#/bookmarks",r):{isClientNavigation:!0,targetUrl:"/bookmarks"};if("purple://kiosk/entitlement/login/open"===n)return{onClick:()=>{this.eventActionService.processLoginAction({type:N.H.LOGIN},this)}};if("purple://app/home/open"===n||"purple://kiosk/open"===n)return r.app_initial_screen_url?this.convertTargetUrl(r.app_initial_screen_url,r):{isClientNavigation:!0,targetUrl:"/"};if(n.startsWith("purple://app/open/external/url/")){const m=n.replace("purple://app/open/external/url/","");return{target:"_blank",targetUrl:decodeURIComponent(m)}}const p=ce.exec(n);return p?{isClientNavigation:!0,targetUrl:p.groups.path||"/"}:n.startsWith("purple://")?{onClick:()=>{this.actionUrlService.openUrl(n)}}:this.browserService.willOpenExternally(n)?{targetUrl:n,target:"_blank"}:{onClick:()=>this.browserService.showBrowser(n)}}}return(t=a).\u0275fac=function(n){return new(n||t)},t.\u0275cmp=e.VBU({type:t,selectors:[["storefront-app-menu-xml"]],hostVars:2,hostBindings:function(n,r){2&n&&e.Aen(r.colorCssVars)},standalone:!1,features:[e.Jv_([U.B]),e.Vt3],decls:7,vars:3,consts:[["headerItem",""],["dynamicItem",""],["class","app-menu-xml-header",4,"ngIf"],["class","app-menu-xml-dynamic-entries",4,"ngIf"],["class","app-menu-xml-footer",4,"ngIf"],[4,"ngIf"],[1,"app-menu-search"],[1,"app-menu-image"],[1,"app-menu-entry",3,"click"],[1,"app-menu-entry-icon"],[1,"app-menu-entry-title"],[1,"app-menu-xml-header"],[4,"ngFor","ngForOf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"app-menu-xml-dynamic-entries"],[1,"app-menu-xml-footer"]],template:function(n,r){1&n&&e.DNE(0,ne,2,2,"ng-template",null,0,e.C5r)(2,te,6,14,"ng-template",null,1,e.C5r)(4,ae,2,1,"div",2)(5,ie,2,1,"ul",3)(6,me,2,1,"div",4),2&n&&(e.R7$(4),e.Y8G("ngIf",r.header),e.R7$(),e.Y8G("ngIf",r.dynamicEntries),e.R7$(),e.Y8G("ngIf",r.footer))},dependencies:[u.Sq,u.bT,u.T3,k.w],styles:[".app-menu-xml-dynamic-entries .app-menu-entry{display:grid;cursor:pointer;position:relative;margin:calc(var(--gutter) / 2) 0;gap:var(--gutter);grid-template-columns:40px auto;align-items:center;background-color:var(--appMenuXmlItemNormalBg)}.app-menu-xml-dynamic-entries .app-menu-entry:hover,.app-menu-xml-dynamic-entries .app-menu-entry .app-menu-entry-active{background-color:var(--appMenuXmlItemHoverBg)}.app-menu-xml-dynamic-entries .app-menu-entry:hover>.app-menu-entry-icon,.app-menu-xml-dynamic-entries .app-menu-entry .app-menu-entry-active>.app-menu-entry-icon{background-color:var(--appMenuXmlIconActive)}.app-menu-xml-dynamic-entries .app-menu-entry:hover>.app-menu-entry-title,.app-menu-xml-dynamic-entries .app-menu-entry .app-menu-entry-active>.app-menu-entry-title{color:var(--appMenuXmlItemHoverText)}.app-menu-xml-dynamic-entries .app-menu-entry>.app-menu-entry-icon{width:40px;height:40px;background-color:var(--appMenuXmlIconNormal);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:contain;mask-size:contain;-webkit-mask-position:center;mask-position:center;z-index:2}.app-menu-xml-dynamic-entries .app-menu-entry>.app-menu-entry-title{color:var(--appMenuXmlItemNormalText);z-index:2}\n"],encapsulation:2,changeDetection:0}),a})();var ge=i(9805),de=i(4767);const fe=["class","pxp-app-menu-xml"],ve=(t,a)=>({"mask-image":t,"-webkit-mask-image":a}),_e=()=>({"background-color":"transparent"}),I=t=>({item:t});function he(t,a){1&t&&(e.qex(0),e.j41(1,"div",6),e.EFF(2,"TODO SEARCH CONTAINER"),e.k0s(),e.bVm())}function xe(t,a){1&t&&(e.qex(0),e.j41(1,"div",7),e.EFF(2,"TODO IMAGE CONTAINER"),e.k0s(),e.bVm())}function Ce(t,a){if(1&t&&e.DNE(0,he,3,0,"ng-container",5)(1,xe,3,0,"ng-container",5),2&t){const o=a.item;e.Y8G("ngIf","search"===o.type),e.R7$(),e.Y8G("ngIf","image"===o.type)}}function Ae(t,a){if(1&t){const o=e.RV6();e.j41(0,"li")(1,"a",8),e.nI1(2,"urlTransform"),e.bIt("click",function(r){const p=e.eBV(o).item,m=e.XpG();return e.Njj(m.handleItemClick(p,r))}),e.nrm(3,"span",9),e.j41(4,"span",10),e.EFF(5),e.k0s()()()}if(2&t){const o=a.item,n=e.XpG();e.R7$(),e.AVh("app-menu-entry-active",o.active),e.BMQ("href",e.i5U(2,7,o.targetUrl,n.context),e.B4B)("target",o.target),e.R7$(2),e.Aen(o.iconUrl?e.l_i(10,ve,"url('"+o.iconUrl+"')","url('"+o.iconUrl+"')"):e.lJ4(13,_e)),e.R7$(2),e.JRh(o.title)}}function Re(t,a){if(1&t&&(e.qex(0),e.eu8(1,13),e.bVm()),2&t){const o=a.$implicit;e.XpG(2);const n=e.sdS(1);e.R7$(),e.Y8G("ngTemplateOutlet",n)("ngTemplateOutletContext",e.eq3(2,I,o))}}function ye(t,a){if(1&t&&(e.j41(0,"div",11),e.DNE(1,Re,2,4,"ng-container",12),e.k0s()),2&t){const o=e.XpG();e.R7$(),e.Y8G("ngForOf",o.header)}}function Te(t,a){if(1&t&&(e.qex(0),e.eu8(1,13),e.bVm()),2&t){const o=a.$implicit;e.XpG(2);const n=e.sdS(3);e.R7$(),e.Y8G("ngTemplateOutlet",n)("ngTemplateOutletContext",e.eq3(2,I,o))}}function Me(t,a){if(1&t&&(e.j41(0,"ul",14),e.DNE(1,Te,2,4,"ng-container",12),e.k0s()),2&t){const o=e.XpG();e.R7$(),e.Y8G("ngForOf",o.dynamicEntries)}}function Ee(t,a){if(1&t&&(e.qex(0),e.eu8(1,13),e.bVm()),2&t){const o=a.$implicit;e.XpG(2);const n=e.sdS(1);e.R7$(),e.Y8G("ngTemplateOutlet",n)("ngTemplateOutletContext",e.eq3(2,I,o))}}function Oe(t,a){if(1&t&&(e.j41(0,"div",15),e.DNE(1,Ee,2,4,"ng-container",12),e.k0s()),2&t){const o=e.XpG();e.R7$(),e.Y8G("ngForOf",o.footer)}}let Ie=(()=>{var t;class a extends L{}return(t=a).\u0275fac=(()=>{let o;return function(r){return(o||(o=e.xGo(t)))(r||t)}})(),t.\u0275cmp=e.VBU({type:t,selectors:[["div",8,"pxp-app-menu-xml"]],standalone:!1,features:[e.Jv_([U.B]),e.Vt3],attrs:fe,decls:7,vars:3,consts:[["headerItem",""],["dynamicItem",""],["class","app-menu-xml-header",4,"ngIf"],["class","app-menu-xml-dynamic-entries",4,"ngIf"],["class","app-menu-xml-footer",4,"ngIf"],[4,"ngIf"],[1,"app-menu-search"],[1,"app-menu-image"],[1,"app-menu-entry",3,"click"],[1,"app-menu-entry-icon"],[1,"app-menu-entry-title"],[1,"app-menu-xml-header"],[4,"ngFor","ngForOf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"app-menu-xml-dynamic-entries"],[1,"app-menu-xml-footer"]],template:function(n,r){1&n&&e.DNE(0,Ce,2,2,"ng-template",null,0,e.C5r)(2,Ae,6,14,"ng-template",null,1,e.C5r)(4,ye,2,1,"div",2)(5,Me,2,1,"ul",3)(6,Oe,2,1,"div",4),2&n&&(e.R7$(4),e.Y8G("ngIf",r.header),e.R7$(),e.Y8G("ngIf",r.dynamicEntries),e.R7$(),e.Y8G("ngIf",r.footer))},dependencies:[u.Sq,u.bT,u.T3,k.w],styles:[".app-menu-xml-dynamic-entries .app-menu-entry{display:grid;cursor:pointer;position:relative;margin:calc(var(--gutter) / 2) 0;gap:var(--gutter);grid-template-columns:40px auto;align-items:center;background-color:var(--appMenuXmlItemNormalBg)}.app-menu-xml-dynamic-entries .app-menu-entry:hover,.app-menu-xml-dynamic-entries .app-menu-entry .app-menu-entry-active{background-color:var(--appMenuXmlItemHoverBg)}.app-menu-xml-dynamic-entries .app-menu-entry:hover>.app-menu-entry-icon,.app-menu-xml-dynamic-entries .app-menu-entry .app-menu-entry-active>.app-menu-entry-icon{background-color:var(--appMenuXmlIconActive)}.app-menu-xml-dynamic-entries .app-menu-entry:hover>.app-menu-entry-title,.app-menu-xml-dynamic-entries .app-menu-entry .app-menu-entry-active>.app-menu-entry-title{color:var(--appMenuXmlItemHoverText)}.app-menu-xml-dynamic-entries .app-menu-entry>.app-menu-entry-icon{width:40px;height:40px;background-color:var(--appMenuXmlIconNormal);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:contain;mask-size:contain;-webkit-mask-position:center;mask-position:center;z-index:2}.app-menu-xml-dynamic-entries .app-menu-entry>.app-menu-entry-title{color:var(--appMenuXmlItemNormalText);z-index:2}\n"],encapsulation:2,changeDetection:0}),a})(),Xe=(()=>{var t;class a{}return(t=a).\u0275fac=function(n){return new(n||t)},t.\u0275mod=e.$C({type:t}),t.\u0275inj=e.G2t({imports:[u.MD,ge.ButtonModule,f.iI,de.d]}),a})();const Ne={component:L,leanDomComponent:Ie}}}]);
|