@pronto-tools-and-more/files 5.10.0 → 6.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (47) hide show
  1. package/files/framework/src/default/storefront/3rdpartylicenses.txt +0 -29
  2. package/files/framework/src/default/storefront/buildInfo.json +4 -4
  3. package/files/framework/src/default/storefront/deep-link-landing/purple-deep-link-landing.js +80 -80
  4. package/files/framework/src/default/storefront/deep-link-landing/purple-deep-link-landing.js.LICENSE.txt +1 -1
  5. package/files/framework/src/default/storefront/index.html +3 -3
  6. package/files/framework/src/default/storefront/modules/common.js +1 -1
  7. package/files/framework/src/default/storefront/modules/default-node_modules_angular_forms_fesm2022_forms_mjs.js +1 -1
  8. package/files/framework/src/default/storefront/modules/default-projects_storefront_src_app_component_base-component_base-datacollection_component_ts-4706f8.js +1 -1
  9. package/files/framework/src/default/storefront/modules/default-projects_storefront_src_app_component_content_content_module_ts.js +1 -1
  10. package/files/framework/src/default/storefront/modules/default-projects_storefront_src_app_component_issue_issue_module_ts.js +1 -1
  11. package/files/framework/src/default/storefront/modules/default-projects_storefront_src_app_service_tts_tts_service_ts.js +1 -1
  12. package/files/framework/src/default/storefront/modules/main.js +1 -1
  13. package/files/framework/src/default/storefront/modules/node_modules_purple_web-player_dist_webPresenter_js_webPresenter_min_js.js +1 -1
  14. package/files/framework/src/default/storefront/modules/projects_storefront_src_app_common-pipes_common-pipes_module_ts-projects_storefront_src_app_c-94b9b6.js +1 -1
  15. package/files/framework/src/default/storefront/modules/projects_storefront_src_app_component_action-executor_action-executor_module_ts.js +1 -1
  16. package/files/framework/src/default/storefront/modules/projects_storefront_src_app_component_ad_ad_module_ts.js +1 -1
  17. package/files/framework/src/default/storefront/modules/projects_storefront_src_app_component_app-menu-xml_app-menu-xml_module_ts.js +1 -1
  18. package/files/framework/src/default/storefront/modules/projects_storefront_src_app_component_base-component_base-datacollection_component_ts-project-6cb588.js +1 -1
  19. package/files/framework/src/default/storefront/modules/projects_storefront_src_app_component_bookmark_bookmark_module_ts.js +1 -1
  20. package/files/framework/src/default/storefront/modules/projects_storefront_src_app_component_catalog-content_content-body_content-body_module_ts.js +1 -1
  21. package/files/framework/src/default/storefront/modules/projects_storefront_src_app_component_catalog-content_content-featured-image_content-featured-c9ba26.js +1 -1
  22. package/files/framework/src/default/storefront/modules/projects_storefront_src_app_component_category_category_module_ts.js +1 -1
  23. package/files/framework/src/default/storefront/modules/projects_storefront_src_app_component_collection_collection_module_ts.js +1 -1
  24. package/files/framework/src/default/storefront/modules/projects_storefront_src_app_component_component_module_ts.js +1 -1
  25. package/files/framework/src/default/storefront/modules/projects_storefront_src_app_component_coupon_coupon_module_ts.js +1 -1
  26. package/files/framework/src/default/storefront/modules/projects_storefront_src_app_component_dev-components_user-tag-testing_user-tag-testing_module_ts.js +1 -1
  27. package/files/framework/src/default/storefront/modules/projects_storefront_src_app_component_download-issues_download-issues_module_ts.js +1 -1
  28. package/files/framework/src/default/storefront/modules/projects_storefront_src_app_component_dropdown_dropdown_module_ts.js +1 -1
  29. package/files/framework/src/default/storefront/modules/projects_storefront_src_app_component_embeddable-view_embeddable-view_module_ts.js +1 -1
  30. package/files/framework/src/default/storefront/modules/projects_storefront_src_app_component_iframe_iframe_module_ts.js +1 -1
  31. package/files/framework/src/default/storefront/modules/projects_storefront_src_app_component_issue-search-result_issue-search-result_module_ts.js +1 -1
  32. package/files/framework/src/default/storefront/modules/projects_storefront_src_app_component_login_login_module_ts.js +1 -1
  33. package/files/framework/src/default/storefront/modules/projects_storefront_src_app_component_menu_menu_module_ts.js +1 -1
  34. package/files/framework/src/default/storefront/modules/projects_storefront_src_app_component_product_product_module_ts.js +1 -1
  35. package/files/framework/src/default/storefront/modules/projects_storefront_src_app_component_publication-completion_publication-completion_module_ts.js +1 -1
  36. package/files/framework/src/default/storefront/modules/projects_storefront_src_app_component_publication_publication_module_ts.js +1 -1
  37. package/files/framework/src/default/storefront/modules/projects_storefront_src_app_component_recommendations_recommendations_module_ts.js +1 -1
  38. package/files/framework/src/default/storefront/modules/projects_storefront_src_app_component_search-field_search-field_module_ts.js +1 -1
  39. package/files/framework/src/default/storefront/modules/projects_storefront_src_app_component_subscription_subscription_module_ts.js +1 -1
  40. package/files/framework/src/default/storefront/modules/projects_storefront_src_app_component_swiper_swiper_module_ts.js +1 -1
  41. package/files/framework/src/default/storefront/modules/projects_storefront_src_app_component_ticker_ticker_module_ts.js +1 -1
  42. package/files/framework/src/default/storefront/modules/projects_storefront_src_app_component_toggle_toggle_module_ts.js +1 -1
  43. package/files/framework/src/default/storefront/modules/projects_storefront_src_app_component_toolbar_toolbar_module_ts.js +1 -1
  44. package/files/framework/src/default/storefront/modules/projects_storefront_src_app_component_web-presenter_presenter_presenter_module_ts.js +1 -1
  45. package/files/framework/src/default/storefront/modules/projects_storefront_src_app_component_widget_widget_module_ts.js +1 -1
  46. package/files/framework/src/default/storefront/modules/styles.css +1 -1
  47. package/package.json +1 -1
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkstorefront=self.webpackChunkstorefront||[]).push([["projects_storefront_src_app_common-pipes_common-pipes_module_ts-projects_storefront_src_app_c-94b9b6"],{4767:(v,g,r)=>{r.d(g,{d:()=>m});var e=r(177),t=r(4438);let m=(()=>{var s;class c{}return(s=c).\u0275fac=function(p){return new(p||s)},s.\u0275mod=t.$C({type:s}),s.\u0275inj=t.G2t({imports:[e.MD]}),c})()},2914:(v,g,r)=>{r.d(g,{w:()=>c});var e=r(4049),t=r(7370),m=r(4438),s=r(5483);let c=(()=>{var d;class p{constructor(o){this.contextService=o}transform(o,l){if(!o||(0,t.vh)(o))return o;let h=o?(0,e.K)(o,l):"";const u=this.contextService.getIsCustomerDomainUsed()?"":"/".concat(this.contextService.getBrand(),"/"),_=new URL(window.location.href),i="true"===_.searchParams.get("preview")||0===_.pathname.indexOf("/preview");return"/"===h&&(h=""),h="".concat(u).concat(h).concat(i?"?preview=true":""),h}}return(d=p).\u0275fac=function(o){return new(o||d)(m.rXU(s.V,16))},d.\u0275pipe=m.EJ8({name:"urlTransform",type:d,pure:!0}),p})()},2932:(v,g,r)=>{r.d(g,{h:()=>u,q:()=>_});var e=r(177),t=r(4438),m=r(4338),s=r(8890),c=r(9876),d=r(345),p=r(4748),f=r(5483),o=r(8471);const l=["image"];function h(i,R){if(1&i){const E=t.RV6();t.j41(0,"img",2,0),t.bIt("error",function(){t.eBV(E);const a=t.XpG();return t.Njj(a.onError())}),t.k0s()}if(2&i){const E=t.XpG();t.Y8G("src",E.safeResizeSrc,t.B4B)("alt",E.alt)("title",E.title),t.BMQ("aria-label",E.ariaLabel)}}let u=(()=>{var i;class R{set image(n){n&&this.onLoad(n),this._image=n}get image(){return this._image}constructor(n,a,D,P,M,C,I,A){this.sanitizer=n,this.changeDetectorRef=a,this.elementRef=D,this.subscriptions=P,this.platformId=M,this.ssrService=C,this.contextService=I,this.purpleService=A,this.error=new t.bkB,this.height=_.AUTO}get empty(){return!this.src}ngOnInit(){this.initProperties(),(0,e.UE)(this.platformId)&&this.subscriptions.subscribe((0,s.eh)(this,this.elementRef,{skipWait:!1}),n=>this.load())}initProperties(){var n,a,D,P;this.alt=(null===(n=this.extendedThumbnail)||void 0===n?void 0:n.properties.alt)||(null===(a=this.extendedThumbnail)||void 0===a?void 0:a.properties.caption)||"",this.title=this.alt,this.ariaLabel=null!==(D=this.label)&&void 0!==D?D:this.alt,this.focalPoint=null===(P=this.extendedThumbnail)||void 0===P?void 0:P.properties.focuspoint}initAndLoad(){this.initProperties(),this.load()}load(){this.loaded||(this.loaded=!0,this.src&&this.update(),this.changeDetectorRef.detectChanges())}ngOnChanges(n){n.src&&this.loaded&&this.update()}update(){this.updateImageRatio(),this.updateResizeSrc()}onLoad(n){n.nativeElement.classList.add("loaded"),this.elementRef.nativeElement.classList.add("loaded"),this.changeDetectorRef.detectChanges(),n.nativeElement.addEventListener("load",()=>{this.updateImageRatio(!0,n),this.changeDetectorRef.markForCheck()}),n.nativeElement.addEventListener("error",function(){n.nativeElement.style.display="none",n.nativeElement.nextElementSibling&&(n.nativeElement.nextElementSibling.style.display="inline")}),this.purpleService.addImageSrc(this.resizeSrc)}onError(){if(!this.safeResizeSrc)return;const n=this.purpleService.getAlternativeSrc(this.src);var a;n&&n!==this.resizeSrc?(this.setResizeSrc(n),this.changeDetectorRef.detectChanges()):(null===(a=this.image)||void 0===a||a.nativeElement.classList.add("error"),this.elementRef.nativeElement.classList.add("error"),this.error.emit(this))}updateImageRatio(n=!1,a=this.image){this.imageRatio=this.height===_.AUTO?(0,c.z)(!n,null==a?void 0:a.nativeElement,this.src)+"%":void 0}updateResizeSrc(){this.setResizeSrc((0,c.G)(this.elementRef.nativeElement,this.src,this.imageResolutionStrategy,this.focalPoint)),this.changeDetectorRef.detectChanges()}setResizeSrc(n){const a=this.contextService.toResourceUrl(n);this.resizeSrc=a,this.safeResizeSrc=this.sanitizer.bypassSecurityTrustResourceUrl(a)}}return(i=R).\u0275fac=function(n){return new(n||i)(t.rXU(d.up),t.rXU(t.gRc),t.rXU(t.aKT),t.rXU(m.v),t.rXU(t.Agw),t.rXU(p.i),t.rXU(f.V),t.rXU(o.Wj))},i.\u0275cmp=t.VBU({type:i,selectors:[["storefront-image"]],viewQuery:function(n,a){if(1&n&&t.GBs(l,5),2&n){let D;t.mGM(D=t.lsd())&&(a.image=D.first)}},hostAttrs:["ngSkipHydration","true"],hostVars:12,hostBindings:function(n,a){2&n&&(t.BMQ("src",a.src)("label",a.label)("resolution-strategy",a.imageResolutionStrategy)("alt",a.alt)("title",a.title)("aria-label",a.ariaLabel)("focal-point",a.focalPoint)("height-strategy",a.height),t.xc7("padding-top",a.imageRatio),t.AVh("empty",a.empty))},inputs:{src:"src",label:"label",extendedThumbnail:"extendedThumbnail",imageResolutionStrategy:"imageResolutionStrategy",height:"height"},outputs:{error:"error"},features:[t.Jv_([m.v]),t.OA$],decls:1,vars:1,consts:[["image",""],[3,"src","alt","title","error",4,"ngIf"],[3,"error","src","alt","title"]],template:function(n,a){1&n&&t.DNE(0,h,2,4,"img",1),2&n&&t.Y8G("ngIf",a.loaded&&a.src)},dependencies:[e.bT],styles:["storefront-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[height-strategy=AUTO]>img{position:absolute;width:auto;max-width:100%;top:0;object-fit:contain;height:100%;left:50%;transform:translate(-50%)}storefront-image.img-with-hidden-alt{content:attr(data-alt);display:none}storefront-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{opacity:1;background-color:var(--imageBackgroundColor)}storefront-image.loaded{background:#fff0}\n"],encapsulation:2,changeDetection:0}),R})();var _=function(i){return i.AUTO="AUTO",i.FIXED="FIXED",i.DEFAULT="DEFAULT",i}(_||{})},4403:(v,g,r)=>{r.d(g,{U:()=>m});var e=r(177),t=r(4438);let m=(()=>{var s;class c{}return(s=c).\u0275fac=function(p){return new(p||s)},s.\u0275mod=t.$C({type:s}),s.\u0275inj=t.G2t({imports:[e.MD]}),c})()},4365:(v,g,r)=>{r.d(g,{AN:()=>d,FZ:()=>p,Mw:()=>f,Rp:()=>c,W9:()=>s});var e=r(4404),s=function(o){return o.COVER="cover",o.CARD="card",o.HIGHLIGHT="highlight",o.DETAILS="details",o.GROUP="group",o}(s||{});const c={showErrorDialog:!0};var d=function(o){return o.SINGLE="SINGLE",o.MULTI="MULTI",o}(d||{}),p=function(o){return o.SILENT="SILENT",o}(p||{});const f={template:s.CARD,openContent:{mode:e.DisplayMode.MODAL,titleBar:!0},downloadOptions:null,customButtons:[],customMessages:[],titleMessage:"ISSUE_TITLE",descriptionMessage:"ISSUE_DESCRIPTION",publicationTitleMessage:"ISSUE_PUBLICATION_TITLE"}},3092:(v,g,r)=>{r.d(g,{X:()=>o,s:()=>f});var e=r(4438),t=r(345);function m(l,h){1&l&&e.nrm(0,"div",5)}function s(l,h){if(1&l&&(e.qex(0),e.nrm(1,"div",1),e.j41(2,"div",2),e.nrm(3,"div",3),e.k0s(),e.DNE(4,m,1,0,"div",4),e.bVm()),2&l){const u=e.XpG();e.R7$(2),e.xc7("-webkit-clip-path",u.getClipPath())("clip-path",u.getClipPath()),e.R7$(2),e.Y8G("ngIf",u.showBorder)}}function c(l,h){if(1&l&&(e.qex(0),e.j41(1,"div",6),e.nrm(2,"div",7)(3,"div",8),e.k0s(),e.bVm()),2&l){const u=e.XpG();e.R7$(2),e.xc7("width",u.progress,"%"),e.R7$(),e.Y8G("storefrontTranslate",u.message)}}function d(l,h){1&l&&e.nrm(0,"div",5)}function p(l,h){if(1&l&&(e.qex(0),e.nrm(1,"storefront-spinner",9),e.DNE(2,d,1,0,"div",4),e.j41(3,"div",10),e.EFF(4),e.k0s(),e.nrm(5,"i",11),e.bVm()),2&l){const u=e.XpG();e.R7$(2),e.Y8G("ngIf",u.showBorder),e.R7$(2),e.SpI("",u.progress,"%")}}var f=function(l){return l.RADIAL="RADIAL",l.BAR="BAR",l.NUMERIC="NUMERIC",l}(f||{});let o=(()=>{var l;class h{constructor(_){this.sanitizer=_,this.type=f.RADIAL,this.showBorder=!1,this.message="ISSUE_ACTION_DOWNLOADING",this.progressOnBorder=!1}getClipPath(){let _;const i=this.progress;return _=i<=12.5?"polygon(50% 0, 50% 50%, ".concat(50+4*i,"% 0, 100% 0)"):i<=25?"polygon(50% 50%, 50% 0, 100% 0, 100% ".concat(4*(i-12.5),"%)"):i<=37.5?"polygon(50% 50%, 50% 0, 100% 0, 100% ".concat(4*(i-25)+50,"%)"):i<=75?"polygon(50% 50%, ".concat(100-4*(i-37.5),"% 100%, 100% 100%, 100% 0, 50% 0)"):i<=87.5?"polygon(50% 50%, 50% 0, 100% 0, 100% 100%, 0 100%, 0 ".concat(50-4*(i-75),"%)"):"polygon(50% 50%, 50% 0, 100% 0, 100% 100%, 0 100%, 0 0, ".concat(4*(i-87.5),"% 0)"),this.sanitizer.bypassSecurityTrustStyle(_)}}return(l=h).\u0275fac=function(_){return new(_||l)(e.rXU(t.up))},l.\u0275cmp=e.VBU({type:l,selectors:[["storefront-progress"]],hostVars:3,hostBindings:function(_,i){2&_&&(e.BMQ("type",i.type),e.AVh("progress-on-border",i.progressOnBorder))},inputs:{type:"type",showBorder:"showBorder",message:"message",progressOnBorder:"progressOnBorder",progress:"progress"},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,"progress-spinner"],[1,"bar-progress"],[1,"icon","icon-delete"]],template:function(_,i){1&_&&e.DNE(0,s,5,5,"ng-container",0)(1,c,4,3,"ng-container",0)(2,p,6,2,"ng-container",0),2&_&&(e.Y8G("ngIf","RADIAL"===i.type),e.R7$(),e.Y8G("ngIf","BAR"===i.type),e.R7$(),e.Y8G("ngIf","NUMERIC"===i.type))},styles:["storefront-progress[type=RADIAL]{position:relative;display:flex;width:22px;height:22px}storefront-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{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{border-radius:100%;box-sizing:border-box}storefront-progress[type=RADIAL] .background-circle,storefront-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{border:2px solid var(--secondaryColor)}storefront-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{position:absolute;height:100%;top:0;left:0;background-color:var(--issueProgressColor);transition:width .2s ease}storefront-progress[type=BAR] .bar-message{font-size:.8em;z-index:1;position:relative;color:var(--issueProgressFontColor)}storefront-progress[type=NUMERIC]{display:flex;justify-content:space-between;align-items:center;padding:0 var(--gutter)}storefront-progress[type=NUMERIC] storefront-spinner.progress-spinner{position:relative;background:transparent;--spinnerColor: var(--issueProgressColor);padding:0;display:flex;width:20px}storefront-progress[type=NUMERIC] i{font-size:12px}\n"],encapsulation:2}),h})()},3363:(v,g,r)=>{r.d(g,{E:()=>f});var e=r(177),t=r(3092),m=r(6483),s=r(6215),c=r(4438),d=r(8909),p=r(7240);let f=(()=>{var o;class l{}return(o=l).\u0275fac=function(u){return new(u||o)},o.\u0275mod=c.$C({type:o}),o.\u0275inj=c.G2t({imports:[e.MD,m.h,s.O]}),l})();c.wjB(t.X,[e.bT,d.M,p.t],[])},6953:(v,g,r)=>{r.d(g,{n:()=>m});var e=r(177),t=r(4438);let m=(()=>{var s;class c{}return(s=c).\u0275fac=function(p){return new(p||s)},s.\u0275mod=t.$C({type:s}),s.\u0275inj=t.G2t({imports:[e.MD]}),c})()},2813:(v,g,r)=>{r.d(g,{Z:()=>m});var e=r(3178),t=r(4438);let m=(()=>{var s;class c{transform(p,f){return new Date(p).toLocaleDateString((0,e.JK)())}}return(s=c).\u0275fac=function(p){return new(p||s)},s.\u0275pipe=t.EJ8({name:"storefrontDate",type:s,pure:!0}),c})()},1739:(v,g,r)=>{function e(t){return t&&!!t.code}r.d(g,{b:()=>e})}}]);
1
+ "use strict";(self.webpackChunkstorefront=self.webpackChunkstorefront||[]).push([["projects_storefront_src_app_common-pipes_common-pipes_module_ts-projects_storefront_src_app_c-94b9b6"],{4767:(v,m,r)=>{r.d(m,{d:()=>g});var e=r(177),t=r(3953);let g=(()=>{var s;class _{}return(s=_).\u0275fac=function(p){return new(p||s)},s.\u0275mod=t.$C({type:s}),s.\u0275inj=t.G2t({imports:[e.MD]}),_})()},2914:(v,m,r)=>{r.d(m,{w:()=>_});var e=r(4049),t=r(7370),g=r(3953),s=r(9516);let _=(()=>{var c;class p{constructor(o){this.contextService=o}transform(o,l){if(!o||(0,t.vh)(o))return o;let h=o?(0,e.K)(o,l):"";const u=this.contextService.getIsCustomerDomainUsed()?"":"/".concat(this.contextService.getBrand(),"/"),d=new URL(window.location.href),i="true"===d.searchParams.get("preview")||0===d.pathname.indexOf("/preview");return"/"===h&&(h=""),h="".concat(u).concat(h).concat(i?"?preview=true":""),h}}return(c=p).\u0275fac=function(o){return new(o||c)(g.rXU(s.V,16))},c.\u0275pipe=g.EJ8({name:"urlTransform",type:c,pure:!0}),c.\u0275prov=g.jDH({token:c,factory:c.\u0275fac,providedIn:"root"}),p})()},2932:(v,m,r)=>{r.d(m,{h:()=>u,q:()=>d});var e=r(177),t=r(3953),g=r(8251),s=r(8890),_=r(9876),c=r(345),p=r(4748),f=r(9516),o=r(8471);const l=["image"];function h(i,R){if(1&i){const E=t.RV6();t.j41(0,"img",2,0),t.bIt("error",function(){t.eBV(E);const a=t.XpG();return t.Njj(a.onError())}),t.k0s()}if(2&i){const E=t.XpG();t.Y8G("src",E.safeResizeSrc,t.B4B)("alt",E.alt)("title",E.title),t.BMQ("aria-label",E.ariaLabel)}}let u=(()=>{var i;class R{set image(n){n&&this.onLoad(n),this._image=n}get image(){return this._image}constructor(n,a,D,P,M,C,I,A){this.sanitizer=n,this.changeDetectorRef=a,this.elementRef=D,this.subscriptions=P,this.platformId=M,this.ssrService=C,this.contextService=I,this.purpleService=A,this.error=new t.bkB,this.height=d.AUTO}get empty(){return!this.src}ngOnInit(){this.initProperties(),(0,e.UE)(this.platformId)&&this.subscriptions.subscribe((0,s.eh)(this,this.elementRef,{skipWait:!1}),n=>this.load())}initProperties(){var n,a,D,P;this.alt=(null===(n=this.extendedThumbnail)||void 0===n?void 0:n.properties.alt)||(null===(a=this.extendedThumbnail)||void 0===a?void 0:a.properties.caption)||"",this.title=this.alt,this.ariaLabel=null!==(D=this.label)&&void 0!==D?D:this.alt,this.focalPoint=null===(P=this.extendedThumbnail)||void 0===P?void 0:P.properties.focuspoint}initAndLoad(){this.initProperties(),this.load()}load(){this.loaded||(this.loaded=!0,this.src&&this.update(),this.changeDetectorRef.detectChanges())}ngOnChanges(n){n.src&&this.loaded&&this.update()}update(){this.updateImageRatio(),this.updateResizeSrc()}onLoad(n){n.nativeElement.classList.add("loaded"),this.elementRef.nativeElement.classList.add("loaded"),this.changeDetectorRef.detectChanges(),n.nativeElement.addEventListener("load",()=>{this.updateImageRatio(!0,n),this.changeDetectorRef.markForCheck()}),n.nativeElement.addEventListener("error",function(){n.nativeElement.style.display="none",n.nativeElement.nextElementSibling&&(n.nativeElement.nextElementSibling.style.display="inline")}),this.purpleService.addImageSrc(this.resizeSrc)}onError(){if(!this.safeResizeSrc)return;const n=this.purpleService.getAlternativeSrc(this.src);var a;n&&n!==this.resizeSrc?(this.setResizeSrc(n),this.changeDetectorRef.detectChanges()):(null===(a=this.image)||void 0===a||a.nativeElement.classList.add("error"),this.elementRef.nativeElement.classList.add("error"),this.error.emit(this))}updateImageRatio(n=!1,a=this.image){this.imageRatio=this.height===d.AUTO?(0,_.z)(!n,null==a?void 0:a.nativeElement,this.src)+"%":void 0}updateResizeSrc(){this.setResizeSrc((0,_.G)(this.elementRef.nativeElement,this.src,this.imageResolutionStrategy,this.focalPoint)),this.changeDetectorRef.detectChanges()}setResizeSrc(n){const a=this.contextService.toResourceUrl(n);this.resizeSrc=a,this.safeResizeSrc=this.sanitizer.bypassSecurityTrustResourceUrl(a)}}return(i=R).\u0275fac=function(n){return new(n||i)(t.rXU(c.up),t.rXU(t.gRc),t.rXU(t.aKT),t.rXU(g.v),t.rXU(t.Agw),t.rXU(p.i),t.rXU(f.V),t.rXU(o.Wj))},i.\u0275cmp=t.VBU({type:i,selectors:[["storefront-image"]],viewQuery:function(n,a){if(1&n&&t.GBs(l,5),2&n){let D;t.mGM(D=t.lsd())&&(a.image=D.first)}},hostAttrs:["ngSkipHydration","true"],hostVars:12,hostBindings:function(n,a){2&n&&(t.BMQ("src",a.src)("label",a.label)("resolution-strategy",a.imageResolutionStrategy)("alt",a.alt)("title",a.title)("aria-label",a.ariaLabel)("focal-point",a.focalPoint)("height-strategy",a.height),t.xc7("padding-top",a.imageRatio),t.AVh("empty",a.empty))},inputs:{src:"src",label:"label",extendedThumbnail:"extendedThumbnail",imageResolutionStrategy:"imageResolutionStrategy",height:"height"},outputs:{error:"error"},features:[t.Jv_([g.v]),t.OA$],decls:1,vars:1,consts:[["image",""],[3,"src","alt","title","error",4,"ngIf"],[3,"error","src","alt","title"]],template:function(n,a){1&n&&t.DNE(0,h,2,4,"img",1),2&n&&t.Y8G("ngIf",a.loaded&&a.src)},dependencies:[e.bT],styles:["storefront-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[height-strategy=AUTO]>img{position:absolute;width:auto;max-width:100%;top:0;object-fit:contain;height:100%;left:50%;transform:translate(-50%)}storefront-image.img-with-hidden-alt{content:attr(data-alt);display:none}storefront-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{opacity:1;background-color:var(--imageBackgroundColor)}storefront-image.loaded{background:#fff0}\n"],encapsulation:2,changeDetection:0}),R})();var d=function(i){return i.AUTO="AUTO",i.FIXED="FIXED",i.DEFAULT="DEFAULT",i}(d||{})},4403:(v,m,r)=>{r.d(m,{U:()=>g});var e=r(177),t=r(3953);let g=(()=>{var s;class _{}return(s=_).\u0275fac=function(p){return new(p||s)},s.\u0275mod=t.$C({type:s}),s.\u0275inj=t.G2t({imports:[e.MD]}),_})()},4365:(v,m,r)=>{r.d(m,{AN:()=>c,FZ:()=>p,Mw:()=>f,Rp:()=>_,W9:()=>s});var e=r(4404),s=function(o){return o.COVER="cover",o.CARD="card",o.HIGHLIGHT="highlight",o.DETAILS="details",o.GROUP="group",o}(s||{});const _={showErrorDialog:!0};var c=function(o){return o.SINGLE="SINGLE",o.MULTI="MULTI",o}(c||{}),p=function(o){return o.SILENT="SILENT",o}(p||{});const f={template:s.CARD,openContent:{mode:e.DisplayMode.MODAL,titleBar:!0},downloadOptions:null,customButtons:[],customMessages:[],titleMessage:"ISSUE_TITLE",descriptionMessage:"ISSUE_DESCRIPTION",publicationTitleMessage:"ISSUE_PUBLICATION_TITLE"}},3092:(v,m,r)=>{r.d(m,{X:()=>o,s:()=>f});var e=r(3953),t=r(345);function g(l,h){1&l&&e.nrm(0,"div",5)}function s(l,h){if(1&l&&(e.qex(0),e.nrm(1,"div",1),e.j41(2,"div",2),e.nrm(3,"div",3),e.k0s(),e.DNE(4,g,1,0,"div",4),e.bVm()),2&l){const u=e.XpG();e.R7$(2),e.xc7("-webkit-clip-path",u.getClipPath())("clip-path",u.getClipPath()),e.R7$(2),e.Y8G("ngIf",u.showBorder)}}function _(l,h){if(1&l&&(e.qex(0),e.j41(1,"div",6),e.nrm(2,"div",7)(3,"div",8),e.k0s(),e.bVm()),2&l){const u=e.XpG();e.R7$(2),e.xc7("width",u.progress,"%"),e.R7$(),e.Y8G("storefrontTranslate",u.message)}}function c(l,h){1&l&&e.nrm(0,"div",5)}function p(l,h){if(1&l&&(e.qex(0),e.nrm(1,"storefront-spinner",9),e.DNE(2,c,1,0,"div",4),e.j41(3,"div",10),e.EFF(4),e.k0s(),e.nrm(5,"i",11),e.bVm()),2&l){const u=e.XpG();e.R7$(2),e.Y8G("ngIf",u.showBorder),e.R7$(2),e.SpI("",u.progress,"%")}}var f=function(l){return l.RADIAL="RADIAL",l.BAR="BAR",l.NUMERIC="NUMERIC",l}(f||{});let o=(()=>{var l;class h{constructor(d){this.sanitizer=d,this.type=f.RADIAL,this.showBorder=!1,this.message="ISSUE_ACTION_DOWNLOADING",this.progressOnBorder=!1}getClipPath(){let d;const i=this.progress;return d=i<=12.5?"polygon(50% 0, 50% 50%, ".concat(50+4*i,"% 0, 100% 0)"):i<=25?"polygon(50% 50%, 50% 0, 100% 0, 100% ".concat(4*(i-12.5),"%)"):i<=37.5?"polygon(50% 50%, 50% 0, 100% 0, 100% ".concat(4*(i-25)+50,"%)"):i<=75?"polygon(50% 50%, ".concat(100-4*(i-37.5),"% 100%, 100% 100%, 100% 0, 50% 0)"):i<=87.5?"polygon(50% 50%, 50% 0, 100% 0, 100% 100%, 0 100%, 0 ".concat(50-4*(i-75),"%)"):"polygon(50% 50%, 50% 0, 100% 0, 100% 100%, 0 100%, 0 0, ".concat(4*(i-87.5),"% 0)"),this.sanitizer.bypassSecurityTrustStyle(d)}}return(l=h).\u0275fac=function(d){return new(d||l)(e.rXU(t.up))},l.\u0275cmp=e.VBU({type:l,selectors:[["storefront-progress"]],hostVars:3,hostBindings:function(d,i){2&d&&(e.BMQ("type",i.type),e.AVh("progress-on-border",i.progressOnBorder))},inputs:{type:"type",showBorder:"showBorder",message:"message",progressOnBorder:"progressOnBorder",progress:"progress"},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,"progress-spinner"],[1,"bar-progress"],[1,"icon","icon-delete"]],template:function(d,i){1&d&&e.DNE(0,s,5,5,"ng-container",0)(1,_,4,3,"ng-container",0)(2,p,6,2,"ng-container",0),2&d&&(e.Y8G("ngIf","RADIAL"===i.type),e.R7$(),e.Y8G("ngIf","BAR"===i.type),e.R7$(),e.Y8G("ngIf","NUMERIC"===i.type))},styles:["storefront-progress[type=RADIAL]{position:relative;display:flex;width:22px;height:22px}storefront-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{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{border-radius:100%;box-sizing:border-box}storefront-progress[type=RADIAL] .background-circle,storefront-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{border:2px solid var(--secondaryColor)}storefront-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{position:absolute;height:100%;top:0;left:0;background-color:var(--issueProgressColor);transition:width .2s ease}storefront-progress[type=BAR] .bar-message{font-size:.8em;z-index:1;position:relative;color:var(--issueProgressFontColor)}storefront-progress[type=NUMERIC]{display:flex;justify-content:space-between;align-items:center;padding:0 var(--gutter)}storefront-progress[type=NUMERIC] storefront-spinner.progress-spinner{position:relative;background:transparent;--spinnerColor: var(--issueProgressColor);padding:0;display:flex;width:20px}storefront-progress[type=NUMERIC] i{font-size:12px}\n"],encapsulation:2}),h})()},3363:(v,m,r)=>{r.d(m,{E:()=>f});var e=r(177),t=r(3092),g=r(6483),s=r(6215),_=r(3953),c=r(8909),p=r(7240);let f=(()=>{var o;class l{}return(o=l).\u0275fac=function(u){return new(u||o)},o.\u0275mod=_.$C({type:o}),o.\u0275inj=_.G2t({imports:[e.MD,g.h,s.O]}),l})();_.wjB(t.X,[e.bT,c.M,p.t],[])},6953:(v,m,r)=>{r.d(m,{n:()=>g});var e=r(177),t=r(3953);let g=(()=>{var s;class _{}return(s=_).\u0275fac=function(p){return new(p||s)},s.\u0275mod=t.$C({type:s}),s.\u0275inj=t.G2t({imports:[e.MD]}),_})()},2813:(v,m,r)=>{r.d(m,{Z:()=>g});var e=r(3178),t=r(3953);let g=(()=>{var s;class _{transform(p,f){return new Date(p).toLocaleDateString((0,e.JK)())}}return(s=_).\u0275fac=function(p){return new(p||s)},s.\u0275pipe=t.EJ8({name:"storefrontDate",type:s,pure:!0}),_})()},1739:(v,m,r)=>{function e(t){return t&&!!t.code}r.d(m,{b:()=>e})}}]);
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkstorefront=self.webpackChunkstorefront||[]).push([["projects_storefront_src_app_component_action-executor_action-executor_module_ts"],{1819:(V,a,o)=>{o.r(a),o.d(a,{ActionExecutorModule:()=>R,component:()=>X});var i=o(177),g=o(467),h=o(8179),p=o(1210);const v={action:null,mode:"once"};var e=o(4438),m=o(5483),d=o(8004),C=o(1652),x=o(8909),A=o(7240);const E=n=>[n];function T(n,r){1&n&&e.nrm(0,"storefront-spinner",3)}let U=(()=>{var n;class r extends p.${constructor(t,s,G,u,f,$,l){super(u,t,s,f,l),this.elementRef=t,this.contextService=s,this.eventActionService=G,this.injector=u,this.document=f,this.changeDetectorRef=$,this.globalService=l,this.defaultConfig={...v},this.variables=[],this.state={processing:!1,count:0}}get hasText(){return!!this.message}onConfigChanges(){var t;super.onConfigChanges(),this.message=this.config.message,this.variables=null!==(t=this.config.variables)&&void 0!==t?t:[],this.changeDetectorRef.detectChanges(),this.executeAction()}executeAction(){var t=this;return(0,g.A)(function*(){const s=(0,h.v3)(t.config.action);s&&"once"===t.config.mode&&0===t.state.count&&!t.state.processing&&(t.state={count:t.state.count+1,processing:!0},t.changeDetectorRef.detectChanges(),yield t.eventActionService.processEventAction(s,t),t.state.processing=!1,t.changeDetectorRef.detectChanges())})()}getConfigEscapeProperties(){return[...super.getConfigEscapeProperties()]}}return(n=r).type="action-executor",n.\u0275fac=function(t){return new(t||n)(e.rXU(e.aKT),e.rXU(m.V),e.rXU(d.G),e.rXU(e.zZn),e.rXU(i.qQ),e.rXU(e.gRc),e.rXU(C.d))},n.\u0275cmp=e.VBU({type:n,selectors:[["storefront-action-executor"]],hostVars:2,hostBindings:function(t,s){2&t&&e.AVh("has-text",s.hasText)},features:[e.Vt3],decls:3,vars:6,consts:[[3,"ngClass"],["class","button-spinner",4,"ngIf"],[3,"storefrontTranslate","storefrontTranslateArgs"],[1,"button-spinner"]],template:function(t,s){1&t&&(e.j41(0,"div",0),e.DNE(1,T,1,0,"storefront-spinner",1),e.nrm(2,"span",2),e.k0s()),2&t&&(e.Y8G("ngClass",e.eq3(4,E,s.hasText?"has-text":"").join(" ")),e.R7$(),e.Y8G("ngIf",s.state.processing),e.R7$(),e.Y8G("storefrontTranslate",s.message)("storefrontTranslateArgs",s.variables))},dependencies:[i.YU,i.bT,x.M,A.t],encapsulation:2,changeDetection:0}),r})();var y=o(6483),D=o(9383),M=o(6215);let R=(()=>{var n;class r{}return(n=r).\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.$C({type:n}),n.\u0275inj=e.G2t({imports:[i.MD,y.h,D.pZ,M.O]}),r})();const X=U}}]);
1
+ "use strict";(self.webpackChunkstorefront=self.webpackChunkstorefront||[]).push([["projects_storefront_src_app_component_action-executor_action-executor_module_ts"],{1819:(V,a,o)=>{o.r(a),o.d(a,{ActionExecutorModule:()=>R,component:()=>X});var i=o(177),g=o(467),h=o(8179),p=o(1210);const v={action:null,mode:"once"};var e=o(3953),m=o(9516),d=o(8004),C=o(1652),x=o(8909),A=o(7240);const E=n=>[n];function T(n,r){1&n&&e.nrm(0,"storefront-spinner",3)}let U=(()=>{var n;class r extends p.${constructor(t,s,G,u,f,$,l){super(u,t,s,f,l),this.elementRef=t,this.contextService=s,this.eventActionService=G,this.injector=u,this.document=f,this.changeDetectorRef=$,this.globalService=l,this.defaultConfig={...v},this.variables=[],this.state={processing:!1,count:0}}get hasText(){return!!this.message}onConfigChanges(){var t;super.onConfigChanges(),this.message=this.config.message,this.variables=null!==(t=this.config.variables)&&void 0!==t?t:[],this.changeDetectorRef.detectChanges(),this.executeAction()}executeAction(){var t=this;return(0,g.A)(function*(){const s=(0,h.v3)(t.config.action);s&&"once"===t.config.mode&&0===t.state.count&&!t.state.processing&&(t.state={count:t.state.count+1,processing:!0},t.changeDetectorRef.detectChanges(),yield t.eventActionService.processEventAction(s,t),t.state.processing=!1,t.changeDetectorRef.detectChanges())})()}getConfigEscapeProperties(){return[...super.getConfigEscapeProperties()]}}return(n=r).type="action-executor",n.\u0275fac=function(t){return new(t||n)(e.rXU(e.aKT),e.rXU(m.V),e.rXU(d.G),e.rXU(e.zZn),e.rXU(i.qQ),e.rXU(e.gRc),e.rXU(C.d))},n.\u0275cmp=e.VBU({type:n,selectors:[["storefront-action-executor"]],hostVars:2,hostBindings:function(t,s){2&t&&e.AVh("has-text",s.hasText)},features:[e.Vt3],decls:3,vars:6,consts:[[3,"ngClass"],["class","button-spinner",4,"ngIf"],[3,"storefrontTranslate","storefrontTranslateArgs"],[1,"button-spinner"]],template:function(t,s){1&t&&(e.j41(0,"div",0),e.DNE(1,T,1,0,"storefront-spinner",1),e.nrm(2,"span",2),e.k0s()),2&t&&(e.Y8G("ngClass",e.eq3(4,E,s.hasText?"has-text":"").join(" ")),e.R7$(),e.Y8G("ngIf",s.state.processing),e.R7$(),e.Y8G("storefrontTranslate",s.message)("storefrontTranslateArgs",s.variables))},dependencies:[i.YU,i.bT,x.M,A.t],encapsulation:2,changeDetection:0}),r})();var y=o(6483),D=o(6600),M=o(6215);let R=(()=>{var n;class r{}return(n=r).\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.$C({type:n}),n.\u0275inj=e.G2t({imports:[i.MD,y.h,D.pZ,M.O]}),r})();const X=U}}]);
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkstorefront=self.webpackChunkstorefront||[]).push([["projects_storefront_src_app_component_ad_ad_module_ts"],{5766:(X,E,r)=>{r.r(E),r.d(E,{AdModule:()=>ut,component:()=>mt});var h=r(177),s=r(467),e=r(4438),C=r(1210),y=r(9692),I=r(4338),T=r(4945),R=r(6843),_=r(1184),x=r(610),G=r(1803);const M={adId:null};var b=r(2932),u=r(6883),D=r(8890),p=r(7370),a=r(7879),c=r(3178),v=r(5964),S=r(6697),P=r(4412),V=r(4572),O=r(7673),A=r(8179),k=r(5483),w=r(2596),F=r(9047),z=r(345),K=r(8482),Y=r(1652),j=r(7574),W=r(4748),N=r(3726),Q=r(152);let Z=(()=>{var i;class f{constructor(t,n,l){this.el=t,this.ngZone=n,this.platformId=l,this.pixelsLeftToScroll=600,this.elementVisible=new e.bkB,this.isVisible=!1}ngAfterViewInit(){(0,h.UE)(this.platformId)&&this.ngZone.runOutsideAngular(()=>{this.scrollSubscription=(0,N.R)(window,"scroll",{passive:!0}).pipe((0,Q.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(),n=window.innerHeight;t.top<=n+this.pixelsLeftToScroll&&this.ngZone.run(()=>{this.isVisible=!0,this.elementVisible.emit(!0)})}}}return(i=f).\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"}}),f})(),J=(()=>{var i;class f{constructor(t){this.sanitizer=t}transform(t,n="url"){switch(n){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(n))}}}return(i=f).\u0275fac=function(t){return new(t||i)(e.rXU(z.up,16))},i.\u0275pipe=e.EJ8({name:"sanitizeUrl",type:i,pure:!0}),f})();const q=["stickyLink"];function tt(i,f){if(1&i&&(e.qex(0),e.nrm(1,"div",5),e.bVm()),2&i){const o=e.XpG(2);e.R7$(),e.Y8G("id",o.uuid)}}function et(i,f){if(1&i&&e.nrm(0,"iframe",7),2&i){const o=e.XpG(3);e.Y8G("src",o.safeIframeUrl,e.f$h)}}function it(i,f){if(1&i&&(e.qex(0),e.DNE(1,et,1,1,"iframe",6),e.bVm()),2&i){const o=e.XpG(2);e.R7$(),e.Y8G("ngIf",o.safeIframeUrl)}}function nt(i,f){if(1&i){const o=e.RV6();e.qex(0),e.j41(1,"div",8),e.bIt("elementVisible",function(n){e.eBV(o);const l=e.XpG(3);return e.Njj(l.onVisible(n))}),e.k0s(),e.bVm()}if(2&i){const o=e.XpG(2).ngIf;e.R7$(),e.HbH(o.class),e.Y8G("id",o.id)}}function rt(i,f){if(1&i&&(e.qex(0),e.DNE(1,nt,2,3,"ng-container",1),e.bVm()),2&i){const o=e.XpG(2);e.R7$(),e.Y8G("ngIf",!o.isDynamicAd)}}function ot(i,f){if(1&i&&e.nrm(0,"storefront-image",13),2&i){const o=e.XpG(4);e.Y8G("height",o.getImageHeight())("src",o.getImageSrc())}}function st(i,f){if(1&i&&(e.j41(0,"a",12),e.nI1(1,"sanitizeUrl"),e.DNE(2,ot,1,2,"storefront-image",11),e.k0s()),2&i){const o=e.XpG(3);e.Y8G("href",e.bMT(1,3,o.getHref()),e.B4B)("target",o.target),e.R7$(2),e.Y8G("ngIf",o.getImageSrc())}}function at(i,f){if(1&i&&e.nrm(0,"storefront-image",13),2&i){const o=e.XpG(3);e.Y8G("height",o.getImageHeight())("src",o.getImageSrc(!0))}}function lt(i,f){if(1&i&&(e.qex(0),e.DNE(1,st,3,5,"a",9),e.j41(2,"a",10,0),e.nI1(4,"sanitizeUrl"),e.DNE(5,at,1,2,"storefront-image",11),e.k0s(),e.bVm()),2&i){const o=e.XpG(2);e.R7$(),e.Y8G("ngIf",o.ad),e.R7$(),e.Y8G("href",e.bMT(4,4,o.getHref()),e.B4B)("target",o.target),e.R7$(3),e.Y8G("ngIf",o.getImageSrc(!0))}}function ct(i,f){if(1&i&&(e.qex(0)(1,2),e.DNE(2,tt,2,1,"ng-container",3)(3,it,2,1,"ng-container",3)(4,rt,2,1,"ng-container",3)(5,lt,6,6,"ng-container",4),e.bVm()()),2&i){const o=f.ngIf;e.R7$(),e.Y8G("ngSwitch",o.type),e.R7$(),e.Y8G("ngSwitchCase","GPT"),e.R7$(),e.Y8G("ngSwitchCase","HTML"),e.R7$(),e.Y8G("ngSwitchCase","TRAFFECTIVE")}}let dt=(()=>{var i;class f extends C.${get adType(){var t;return null===(t=this.ad)||void 0===t?void 0:t.providerConfig.type}get iframeHostHeight(){var t;return(null===(t=this.ad)||void 0===t?void 0:t.providerConfig)&&this.ad.providerConfig.height}constructor(t,n,l,g,d,m,U,L,B,$,pt,H,vt,Ct,yt,St){super(l,t,g,$,H),this.elementRef=t,this.store=n,this.injector=l,this.contextService=g,this.changeDetectorRef=d,this.googleAdService=m,this.router=U,this.sanitizer=L,this.platformId=B,this.document=$,this.traffectiveAdService=pt,this.globalService=H,this.consentService=vt,this.ssrService=Ct,this.ngZone=yt,this.purpleEnv=St,this.load=new e.bkB,this.loaded=!1,this.adVisible$=new P.t(!1),this.defaultConfig={...M},this.isBrowser=(0,h.UE)(this.platformId)}getAdConfig(t){let n=null;return t&&(t.adId?this.store.select((0,T.jZ)(R.O.AD),l=>{n=l.adSlots.find(g=>g.id===t.adId)}):t.ad&&(n=t.ad)),n}rebuildContextKeys(){super.rebuildContextKeys();const t=this.getAdConfig(this.baseConfig);null!=t&&t.providerConfig&&(0,_.Fl)(t.providerConfig,this.contextKeys)}handleChange(t,n,l,g){super.handleChange(t,n,l,g)}onConfigChanges(){var t=this;return(0,s.A)(function*(){var n;const l=t.getAdConfig(t.config);if(l&&l.providerConfig){if(l.providerConfig){const m=(0,A.uQ)({...l.providerConfig,targeting:null},t.contextService.getContext(),t.contextService.$functions,t.globalService.getGlobalData());if(!(0,A.ZY)(m))return void(t.config=null)}var g;if(l.providerConfig.type==y.P.TRAFFECTIVE&&(0,h.UE)(t.platformId)&&(yield t.consentService.init$,null===(g=t.traffectiveAdService)||void 0===g||!g.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,h.Vy)(t.platformId)}),m=>{t.initAd()},c.lQ,c.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===(n=t.ad)||void 0===n?void 0:n.providerConfig.type)){var d;const m=null===(d=t.ad)||void 0===d||null===(d=d.providerConfig)||void 0===d?void 0:d.url;m!==t.iframeUrl&&(t.iframeUrl=m,t.safeIframeUrl=t.sanitizer.bypassSecurityTrustResourceUrl(t.contextService.toResourceUrl(m)))}t.target=t.getTarget()})()}initAd(){var t;if(this.loaded=!0,(null===(t=window.storefrontHooks)||void 0===t||!t.isAdDisabled||!window.storefrontHooks.isAdDisabled(this.ad.id))&&this.isBrowser)switch(this.ad.providerConfig.type){case y.P.GPT:this.initGpt();break;case y.P.TRAFFECTIVE:this.initTraffective();break;default:return this.target=this.getTarget(),void this.load.emit()}}initGpt(){var t=this;return(0,s.A)(function*(){const n=(0,A.uQ)({...t.ad.providerConfig,targeting:null},t.contextService.getContext(),t.contextService.$functions,t.globalService.getGlobalData());n.targeting=t.mergeTargeting(t.ad.providerConfig.targeting),t.uuid="div-gpt-"+(n.fixedId?t.ad.id:(0,u.A)()),t.changeDetectorRef.detectChanges();let l=null;n.sizeMapping&&t.store.select((0,T.jZ)(R.O.AD),g=>{const d=g.adSlots.find(m=>m.id===n.sizeMapping);d&&d.providerConfig&&"SIZEMAPPING"===d.providerConfig.type&&(l=d.providerConfig)}),t.googleAdService.showAd(t.uuid,n,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,s.A)(function*(){if(t.ad.providerConfig){var n;const{id:l,class:g}=t.ad.providerConfig;t.isDynamicAd="Floor"==g||"Mobile_Sticky"==g,(0,V.z)([null===(n=t.traffectiveAdService)||void 0===n?void 0:n.isTRFConfigReady$.pipe((0,v.p)(d=>d),(0,S.s)(1)),t.isDynamicAd?(0,O.of)(!0):t.adVisible$.pipe((0,v.p)(d=>d),(0,S.s)(1))]).subscribe(()=>{var d;if(!(0,h.Vy)(t.platformId)&&null!==(d=window)&&void 0!==d&&d.traffective)try{t.ssrService.prebootCompleted$.subscribe(()=>{t.ngZone.runOutsideAngular(t.isDynamicAd?()=>{window.traffective.refreshBottomSticky(g,l)}:()=>{window.traffective.refreshSlot(g,l)})})}catch(m){console.warn("Error with traffective refresh slot",m)}})}})()}mergeTargeting(t){let n=null;if(t||this.config.targeting){n=[];let l=new Map;this.evaluateTargeting(t,l),this.evaluateTargeting(this.config.targeting,l),l.forEach((g,d)=>{n.push({key:d,value:g})})}return n}evaluateTargeting(t,n){t&&t.forEach(l=>{const g=(0,A.uQ)(l.key,this.contextService.getContext(),this.contextService.$functions,this.globalService.getGlobalData(),!1);if(g&&""!==g){let d=n.get(g);d||(d=[]),(Array.isArray(l.value)?l.value:[l.value]).forEach(m=>{let U=(0,A.uQ)(m,this.contextService.getContext(),this.contextService.$functions,this.globalService.getGlobalData(),!1);if(l.multiValue){let L=U.split(",").filter(B=>""!==B);d.concat(L)}else U&&""!==U&&d.push(U)}),d.length>0&&n.set(g,d)}})}resizeGoogleAd(){}ngOnDestroy(){super.ngOnDestroy(),this.ad&&this.loaded&&this.ad.providerConfig.type===y.P.GPT&&this.googleAdService.removeAd(this.uuid)}getImageHeight(){return this.config.imageHeight||b.q.AUTO}getImageSrc(t=!1){const n=this.ad&&this.ad.providerConfig;return n&&(0,_.rv)(t&&n.stickyImage||n.image)}getHref(){const t=this.ad&&this.ad.providerConfig;return t&&t.target}getTarget(){return(0,p.tb)(this.getHref())?G.We.BLANK:G.We.SELF}onClick(t){t.stopPropagation(),this.stickyLink&&(t.target===this.stickyLink.nativeElement||this.stickyLink.nativeElement.contains(t.target))?this.store.dispatch((0,x.k4)({key:"AD_STICKY_CLICKED",params:this.getTrackingParams()})):this.store.dispatch((0,x.k4)({key:"AD_CLICKED",params:this.getTrackingParams()}));const n=this.getHref();if(n.startsWith("#"))return this.router.navigateByUrl(n.substring(1)),t.preventDefault(),!1}getTrackingParams(){return{AD_ID:this.config.adId}}onVisible(t){t&&this.adVisible$.next(!0)}}return(i=f).type="ad",i.\u0275fac=function(t){return new(t||i)(e.rXU(e.aKT),e.rXU(I.B),e.rXU(e.zZn),e.rXU(k.V),e.rXU(e.gRc),e.rXU(w.s),e.rXU(F.Ix),e.rXU(z.up),e.rXU(e.Agw),e.rXU(h.qQ),e.rXU(K.y),e.rXU(Y.d),e.rXU(j.e),e.rXU(W.i),e.rXU(e.SKi),e.rXU(a.r6))},i.\u0275cmp=e.VBU({type:i,selectors:[["storefront-ad"]],viewQuery:function(t,n){if(1&t&&e.GBs(q,5,e.aKT),2&t){let l;e.mGM(l=e.lsd())&&(n.stickyLink=l.first)}},hostVars:3,hostBindings:function(t,n){1&t&&e.bIt("click",function(g){return n.onClick(g)}),2&t&&(e.BMQ("ad-type",n.adType),e.xc7("height",n.iframeHostHeight))},features:[e.Jv_([I.B]),e.Vt3],decls:1,vars:1,consts:[["stickyLink",""],[4,"ngIf"],[3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],[3,"id"],["frameborder","0",3,"src",4,"ngIf"],["frameborder","0",3,"src"],["storefrontVisibleOnScroll","",2,"display","none",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,n){1&t&&e.DNE(0,ct,6,4,"ng-container",1),2&t&&e.Y8G("ngIf",n.ad&&n.ad.providerConfig)},dependencies:[h.bT,h.ux,h.e1,h.fG,b.h,Z,J],styles:["storefront-ad{display:block;overflow:hidden}storefront-ad a{display:block}storefront-ad a.ad-sticky{display:none}storefront-ad storefront-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{width:100%;height:100%}.sticky-elements storefront-ad a{display:none}.sticky-elements storefront-ad a.ad-sticky{display:block}\n"],encapsulation:2}),f})();var gt=r(4403),ft=r(4871);let ht=(()=>{var i;class f{}return(i=f).\u0275fac=function(t){return new(t||i)},i.\u0275mod=e.$C({type:i}),i.\u0275inj=e.G2t({imports:[h.MD]}),f})(),ut=(()=>{var i;class f{}return(i=f).\u0275fac=function(t){return new(t||i)},i.\u0275mod=e.$C({type:i}),i.\u0275inj=e.G2t({imports:[h.MD,gt.U,ft.E,ht]}),f})();const mt=dt},2932:(X,E,r)=>{r.d(E,{h:()=>M,q:()=>b});var h=r(177),s=r(4438),e=r(4338),C=r(8890),y=r(9876),I=r(345),T=r(4748),R=r(5483),_=r(8471);const x=["image"];function G(u,D){if(1&u){const p=s.RV6();s.j41(0,"img",2,0),s.bIt("error",function(){s.eBV(p);const c=s.XpG();return s.Njj(c.onError())}),s.k0s()}if(2&u){const p=s.XpG();s.Y8G("src",p.safeResizeSrc,s.B4B)("alt",p.alt)("title",p.title),s.BMQ("aria-label",p.ariaLabel)}}let M=(()=>{var u;class D{set image(a){a&&this.onLoad(a),this._image=a}get image(){return this._image}constructor(a,c,v,S,P,V,O,A){this.sanitizer=a,this.changeDetectorRef=c,this.elementRef=v,this.subscriptions=S,this.platformId=P,this.ssrService=V,this.contextService=O,this.purpleService=A,this.error=new s.bkB,this.height=b.AUTO}get empty(){return!this.src}ngOnInit(){this.initProperties(),(0,h.UE)(this.platformId)&&this.subscriptions.subscribe((0,C.eh)(this,this.elementRef,{skipWait:!1}),a=>this.load())}initProperties(){var a,c,v,S;this.alt=(null===(a=this.extendedThumbnail)||void 0===a?void 0:a.properties.alt)||(null===(c=this.extendedThumbnail)||void 0===c?void 0:c.properties.caption)||"",this.title=this.alt,this.ariaLabel=null!==(v=this.label)&&void 0!==v?v:this.alt,this.focalPoint=null===(S=this.extendedThumbnail)||void 0===S?void 0:S.properties.focuspoint}initAndLoad(){this.initProperties(),this.load()}load(){this.loaded||(this.loaded=!0,this.src&&this.update(),this.changeDetectorRef.detectChanges())}ngOnChanges(a){a.src&&this.loaded&&this.update()}update(){this.updateImageRatio(),this.updateResizeSrc()}onLoad(a){a.nativeElement.classList.add("loaded"),this.elementRef.nativeElement.classList.add("loaded"),this.changeDetectorRef.detectChanges(),a.nativeElement.addEventListener("load",()=>{this.updateImageRatio(!0,a),this.changeDetectorRef.markForCheck()}),a.nativeElement.addEventListener("error",function(){a.nativeElement.style.display="none",a.nativeElement.nextElementSibling&&(a.nativeElement.nextElementSibling.style.display="inline")}),this.purpleService.addImageSrc(this.resizeSrc)}onError(){if(!this.safeResizeSrc)return;const a=this.purpleService.getAlternativeSrc(this.src);var c;a&&a!==this.resizeSrc?(this.setResizeSrc(a),this.changeDetectorRef.detectChanges()):(null===(c=this.image)||void 0===c||c.nativeElement.classList.add("error"),this.elementRef.nativeElement.classList.add("error"),this.error.emit(this))}updateImageRatio(a=!1,c=this.image){this.imageRatio=this.height===b.AUTO?(0,y.z)(!a,null==c?void 0:c.nativeElement,this.src)+"%":void 0}updateResizeSrc(){this.setResizeSrc((0,y.G)(this.elementRef.nativeElement,this.src,this.imageResolutionStrategy,this.focalPoint)),this.changeDetectorRef.detectChanges()}setResizeSrc(a){const c=this.contextService.toResourceUrl(a);this.resizeSrc=c,this.safeResizeSrc=this.sanitizer.bypassSecurityTrustResourceUrl(c)}}return(u=D).\u0275fac=function(a){return new(a||u)(s.rXU(I.up),s.rXU(s.gRc),s.rXU(s.aKT),s.rXU(e.v),s.rXU(s.Agw),s.rXU(T.i),s.rXU(R.V),s.rXU(_.Wj))},u.\u0275cmp=s.VBU({type:u,selectors:[["storefront-image"]],viewQuery:function(a,c){if(1&a&&s.GBs(x,5),2&a){let v;s.mGM(v=s.lsd())&&(c.image=v.first)}},hostAttrs:["ngSkipHydration","true"],hostVars:12,hostBindings:function(a,c){2&a&&(s.BMQ("src",c.src)("label",c.label)("resolution-strategy",c.imageResolutionStrategy)("alt",c.alt)("title",c.title)("aria-label",c.ariaLabel)("focal-point",c.focalPoint)("height-strategy",c.height),s.xc7("padding-top",c.imageRatio),s.AVh("empty",c.empty))},inputs:{src:"src",label:"label",extendedThumbnail:"extendedThumbnail",imageResolutionStrategy:"imageResolutionStrategy",height:"height"},outputs:{error:"error"},features:[s.Jv_([e.v]),s.OA$],decls:1,vars:1,consts:[["image",""],[3,"src","alt","title","error",4,"ngIf"],[3,"error","src","alt","title"]],template:function(a,c){1&a&&s.DNE(0,G,2,4,"img",1),2&a&&s.Y8G("ngIf",c.loaded&&c.src)},dependencies:[h.bT],styles:["storefront-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[height-strategy=AUTO]>img{position:absolute;width:auto;max-width:100%;top:0;object-fit:contain;height:100%;left:50%;transform:translate(-50%)}storefront-image.img-with-hidden-alt{content:attr(data-alt);display:none}storefront-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{opacity:1;background-color:var(--imageBackgroundColor)}storefront-image.loaded{background:#fff0}\n"],encapsulation:2,changeDetection:0}),D})();var b=function(u){return u.AUTO="AUTO",u.FIXED="FIXED",u.DEFAULT="DEFAULT",u}(b||{})},4403:(X,E,r)=>{r.d(E,{U:()=>e});var h=r(177),s=r(4438);let e=(()=>{var C;class y{}return(C=y).\u0275fac=function(T){return new(T||C)},C.\u0275mod=s.$C({type:C}),C.\u0275inj=s.G2t({imports:[h.MD]}),y})()}}]);
1
+ "use strict";(self.webpackChunkstorefront=self.webpackChunkstorefront||[]).push([["projects_storefront_src_app_component_ad_ad_module_ts"],{5766:(z,I,r)=>{r.r(I),r.d(I,{AdModule:()=>he,component:()=>ue});var h=r(177),a=r(467),t=r(3953),C=r(1210),y=r(9692),T=r(8251),E=r(4945),U=r(6843),R=r(1184),x=r(610),G=r(1803);const M={adId:null};var S=r(2932),u=r(6883),_=r(8890),p=r(7370),o=r(3178),c=r(5964),v=r(6697),b=r(4412),P=r(4572),V=r(7673),A=r(8179),O=r(9516),k=r(2596),H=r(4559),X=r(345),F=r(8482),K=r(1652),Y=r(6850),j=r(4748),W=r(3726),N=r(152);let Q=(()=>{var i;class f{constructor(e,n,l){this.el=e,this.ngZone=n,this.platformId=l,this.pixelsLeftToScroll=600,this.elementVisible=new t.bkB,this.isVisible=!1}ngAfterViewInit(){(0,h.UE)(this.platformId)&&this.ngZone.runOutsideAngular(()=>{this.scrollSubscription=(0,W.R)(window,"scroll",{passive:!0}).pipe((0,N.B)(100)).subscribe(()=>this.checkPosition()),setTimeout(()=>this.checkPosition(),500)})}ngOnDestroy(){this.scrollSubscription&&this.scrollSubscription.unsubscribe()}checkPosition(){if(!this.isVisible){const e=this.el.nativeElement.getBoundingClientRect(),n=window.innerHeight;e.top<=n+this.pixelsLeftToScroll&&this.ngZone.run(()=>{this.isVisible=!0,this.elementVisible.emit(!0)})}}}return(i=f).\u0275fac=function(e){return new(e||i)(t.rXU(t.aKT),t.rXU(t.SKi),t.rXU(t.Agw))},i.\u0275dir=t.FsC({type:i,selectors:[["","storefrontVisibleOnScroll",""]],inputs:{pixelsLeftToScroll:"pixelsLeftToScroll"},outputs:{elementVisible:"elementVisible"}}),f})(),Z=(()=>{var i;class f{constructor(e){this.sanitizer=e}transform(e,n="url"){switch(n){case"html":return this.sanitizer.bypassSecurityTrustHtml(e);case"style":return this.sanitizer.bypassSecurityTrustStyle(e);case"script":return this.sanitizer.bypassSecurityTrustScript(e);case"url":return this.sanitizer.bypassSecurityTrustUrl(e);case"resourceUrl":return this.sanitizer.bypassSecurityTrustResourceUrl(e);default:throw new Error("Invalid safe type specified: ".concat(n))}}}return(i=f).\u0275fac=function(e){return new(e||i)(t.rXU(X.up,16))},i.\u0275pipe=t.EJ8({name:"sanitizeUrl",type:i,pure:!0}),f})();const J=["stickyLink"];function q(i,f){if(1&i&&(t.qex(0),t.nrm(1,"div",5),t.bVm()),2&i){const s=t.XpG(2);t.R7$(),t.Y8G("id",s.uuid)}}function ee(i,f){if(1&i&&t.nrm(0,"iframe",7),2&i){const s=t.XpG(3);t.Y8G("src",s.safeIframeUrl,t.f$h)}}function te(i,f){if(1&i&&(t.qex(0),t.DNE(1,ee,1,1,"iframe",6),t.bVm()),2&i){const s=t.XpG(2);t.R7$(),t.Y8G("ngIf",s.safeIframeUrl)}}function ie(i,f){if(1&i){const s=t.RV6();t.qex(0),t.j41(1,"div",8),t.bIt("elementVisible",function(n){t.eBV(s);const l=t.XpG(3);return t.Njj(l.onVisible(n))}),t.k0s(),t.bVm()}if(2&i){const s=t.XpG(2).ngIf;t.R7$(),t.HbH(s.class),t.Y8G("id",s.id)}}function ne(i,f){if(1&i&&(t.qex(0),t.DNE(1,ie,2,3,"ng-container",1),t.bVm()),2&i){const s=t.XpG(2);t.R7$(),t.Y8G("ngIf",!s.isDynamicAd)}}function re(i,f){if(1&i&&t.nrm(0,"storefront-image",13),2&i){const s=t.XpG(4);t.Y8G("height",s.getImageHeight())("src",s.getImageSrc())}}function oe(i,f){if(1&i&&(t.j41(0,"a",12),t.nI1(1,"sanitizeUrl"),t.DNE(2,re,1,2,"storefront-image",11),t.k0s()),2&i){const s=t.XpG(3);t.Y8G("href",t.bMT(1,3,s.getHref()),t.B4B)("target",s.target),t.R7$(2),t.Y8G("ngIf",s.getImageSrc())}}function se(i,f){if(1&i&&t.nrm(0,"storefront-image",13),2&i){const s=t.XpG(3);t.Y8G("height",s.getImageHeight())("src",s.getImageSrc(!0))}}function ae(i,f){if(1&i&&(t.qex(0),t.DNE(1,oe,3,5,"a",9),t.j41(2,"a",10,0),t.nI1(4,"sanitizeUrl"),t.DNE(5,se,1,2,"storefront-image",11),t.k0s(),t.bVm()),2&i){const s=t.XpG(2);t.R7$(),t.Y8G("ngIf",s.ad),t.R7$(),t.Y8G("href",t.bMT(4,4,s.getHref()),t.B4B)("target",s.target),t.R7$(3),t.Y8G("ngIf",s.getImageSrc(!0))}}function le(i,f){if(1&i&&(t.qex(0)(1,2),t.DNE(2,q,2,1,"ng-container",3)(3,te,2,1,"ng-container",3)(4,ne,2,1,"ng-container",3)(5,ae,6,6,"ng-container",4),t.bVm()()),2&i){const s=f.ngIf;t.R7$(),t.Y8G("ngSwitch",s.type),t.R7$(),t.Y8G("ngSwitchCase","GPT"),t.R7$(),t.Y8G("ngSwitchCase","HTML"),t.R7$(),t.Y8G("ngSwitchCase","TRAFFECTIVE")}}let ce=(()=>{var i;class f extends C.${get adType(){var e;return null===(e=this.ad)||void 0===e?void 0:e.providerConfig.type}get iframeHostHeight(){var e;return(null===(e=this.ad)||void 0===e?void 0:e.providerConfig)&&this.ad.providerConfig.height}constructor(e,n,l,g,d,m,D,L,B,w,me,$,pe,ve,Ce){super(l,e,g,w,$),this.elementRef=e,this.store=n,this.injector=l,this.contextService=g,this.changeDetectorRef=d,this.googleAdService=m,this.router=D,this.sanitizer=L,this.platformId=B,this.document=w,this.traffectiveAdService=me,this.globalService=$,this.consentService=pe,this.ssrService=ve,this.ngZone=Ce,this.load=new t.bkB,this.loaded=!1,this.adVisible$=new b.t(!1),this.defaultConfig={...M},this.isBrowser=(0,h.UE)(this.platformId)}getAdConfig(e){let n=null;return e&&(e.adId?this.store.select((0,E.jZ)(U.O.AD),l=>{n=l.adSlots.find(g=>g.id===e.adId)}):e.ad&&(n=e.ad)),n}rebuildContextKeys(){super.rebuildContextKeys();const e=this.getAdConfig(this.baseConfig);null!=e&&e.providerConfig&&(0,R.Fl)(e.providerConfig,this.contextKeys)}handleChange(e,n,l,g){super.handleChange(e,n,l,g)}onConfigChanges(){var e=this;return(0,a.A)(function*(){var n;const l=e.getAdConfig(e.config);if(l&&l.providerConfig){if(l.providerConfig){const m=(0,A.uQ)({...l.providerConfig,targeting:null},e.contextService.getContext(),e.contextService.$functions,e.globalService.getGlobalData());if(!(0,A.ZY)(m))return void(e.config=null)}var g;if(l.providerConfig.type==y.P.TRAFFECTIVE&&(0,h.UE)(e.platformId)&&(yield e.consentService.init$,null===(g=e.traffectiveAdService)||void 0===g||!g.hasConsent()))return;e.ad=l,e.changeDetectorRef.detectChanges(),void 0===e.config.isLazy||e.config.isLazy?e.store.subscribe((0,_.eh)(e,e.elementRef,{skipWait:(0,h.Vy)(e.platformId)}),m=>{e.initAd()},o.lQ,o.lQ,"visible"):e.initAd()}else e.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(e.config.adId)));if("HTML"===(null===(n=e.ad)||void 0===n?void 0:n.providerConfig.type)){var d;const m=null===(d=e.ad)||void 0===d||null===(d=d.providerConfig)||void 0===d?void 0:d.url;m!==e.iframeUrl&&(e.iframeUrl=m,e.safeIframeUrl=e.sanitizer.bypassSecurityTrustResourceUrl(e.contextService.toResourceUrl(m)))}e.target=e.getTarget()})()}initAd(){var e;if(this.loaded=!0,(null===(e=window.storefrontHooks)||void 0===e||!e.isAdDisabled||!window.storefrontHooks.isAdDisabled(this.ad.id))&&this.isBrowser)switch(this.ad.providerConfig.type){case y.P.GPT:this.initGpt();break;case y.P.TRAFFECTIVE:this.initTraffective();break;default:return this.target=this.getTarget(),void this.load.emit()}}initGpt(){var e=this;return(0,a.A)(function*(){const n=(0,A.uQ)({...e.ad.providerConfig,targeting:null},e.contextService.getContext(),e.contextService.$functions,e.globalService.getGlobalData());n.targeting=e.mergeTargeting(e.ad.providerConfig.targeting),e.uuid="div-gpt-"+(n.fixedId?e.ad.id:(0,u.A)()),e.changeDetectorRef.detectChanges();let l=null;n.sizeMapping&&e.store.select((0,E.jZ)(U.O.AD),g=>{const d=g.adSlots.find(m=>m.id===n.sizeMapping);d&&d.providerConfig&&"SIZEMAPPING"===d.providerConfig.type&&(l=d.providerConfig)}),e.googleAdService.showAd(e.uuid,n,l,e.elementRef.nativeElement,()=>{e.load.emit(),e.resizeGoogleAd()},()=>e.resizeGoogleAd()),e.store.subscribe((0,_.Ne)(),()=>e.resizeGoogleAd())})()}initTraffective(){var e=this;return(0,a.A)(function*(){if(e.ad.providerConfig){var n;const{id:l,class:g}=e.ad.providerConfig;e.isDynamicAd="Floor"==g||"Mobile_Sticky"==g,(0,P.z)([null===(n=e.traffectiveAdService)||void 0===n?void 0:n.isTRFConfigReady$.pipe((0,c.p)(d=>d),(0,v.s)(1)),e.isDynamicAd?(0,V.of)(!0):e.adVisible$.pipe((0,c.p)(d=>d),(0,v.s)(1))]).subscribe(()=>{var d;if(!(0,h.Vy)(e.platformId)&&null!==(d=window)&&void 0!==d&&d.traffective)try{e.ssrService.prebootCompleted$.subscribe(()=>{e.ngZone.runOutsideAngular(e.isDynamicAd?()=>{window.traffective.refreshBottomSticky(g,l)}:()=>{window.traffective.refreshSlot(g,l)})})}catch(m){console.warn("Error with traffective refresh slot",m)}})}})()}mergeTargeting(e){let n=null;if(e||this.config.targeting){n=[];let l=new Map;this.evaluateTargeting(e,l),this.evaluateTargeting(this.config.targeting,l),l.forEach((g,d)=>{n.push({key:d,value:g})})}return n}evaluateTargeting(e,n){e&&e.forEach(l=>{const g=(0,A.uQ)(l.key,this.contextService.getContext(),this.contextService.$functions,this.globalService.getGlobalData(),!1);if(g&&""!==g){let d=n.get(g);d||(d=[]),(Array.isArray(l.value)?l.value:[l.value]).forEach(m=>{let D=(0,A.uQ)(m,this.contextService.getContext(),this.contextService.$functions,this.globalService.getGlobalData(),!1);if(l.multiValue){let L=D.split(",").filter(B=>""!==B);d.concat(L)}else D&&""!==D&&d.push(D)}),d.length>0&&n.set(g,d)}})}resizeGoogleAd(){}ngOnDestroy(){super.ngOnDestroy(),this.ad&&this.loaded&&this.ad.providerConfig.type===y.P.GPT&&this.googleAdService.removeAd(this.uuid)}getImageHeight(){return this.config.imageHeight||S.q.AUTO}getImageSrc(e=!1){const n=this.ad&&this.ad.providerConfig;return n&&(0,R.rv)(e&&n.stickyImage||n.image)}getHref(){const e=this.ad&&this.ad.providerConfig;return e&&e.target}getTarget(){return(0,p.tb)(this.getHref())?G.We.BLANK:G.We.SELF}onClick(e){e.stopPropagation(),this.stickyLink&&(e.target===this.stickyLink.nativeElement||this.stickyLink.nativeElement.contains(e.target))?this.store.dispatch((0,x.k4)({url:window.location.href,key:"AD_STICKY_CLICKED",params:this.getTrackingParams()})):this.store.dispatch((0,x.k4)({url:window.location.href,key:"AD_CLICKED",params:this.getTrackingParams()}));const n=this.getHref();if(n.startsWith("#"))return this.router.navigateByUrl(n.substring(1)),e.preventDefault(),!1}getTrackingParams(){return{AD_ID:this.config.adId}}onVisible(e){e&&this.adVisible$.next(!0)}}return(i=f).type="ad",i.\u0275fac=function(e){return new(e||i)(t.rXU(t.aKT),t.rXU(T.B),t.rXU(t.zZn),t.rXU(O.V),t.rXU(t.gRc),t.rXU(k.s),t.rXU(H.Ix),t.rXU(X.up),t.rXU(t.Agw),t.rXU(h.qQ),t.rXU(F.y),t.rXU(K.d),t.rXU(Y.e),t.rXU(j.i),t.rXU(t.SKi))},i.\u0275cmp=t.VBU({type:i,selectors:[["storefront-ad"]],viewQuery:function(e,n){if(1&e&&t.GBs(J,5,t.aKT),2&e){let l;t.mGM(l=t.lsd())&&(n.stickyLink=l.first)}},hostVars:3,hostBindings:function(e,n){1&e&&t.bIt("click",function(g){return n.onClick(g)}),2&e&&(t.BMQ("ad-type",n.adType),t.xc7("height",n.iframeHostHeight))},features:[t.Jv_([T.B]),t.Vt3],decls:1,vars:1,consts:[["stickyLink",""],[4,"ngIf"],[3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],[3,"id"],["frameborder","0",3,"src",4,"ngIf"],["frameborder","0",3,"src"],["storefrontVisibleOnScroll","",2,"display","none",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(e,n){1&e&&t.DNE(0,le,6,4,"ng-container",1),2&e&&t.Y8G("ngIf",n.ad&&n.ad.providerConfig)},dependencies:[h.bT,h.ux,h.e1,h.fG,S.h,Q,Z],styles:["storefront-ad{display:block;overflow:hidden}storefront-ad a{display:block}storefront-ad a.ad-sticky{display:none}storefront-ad storefront-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{width:100%;height:100%}.sticky-elements storefront-ad a{display:none}.sticky-elements storefront-ad a.ad-sticky{display:block}\n"],encapsulation:2}),f})();var de=r(4403),ge=r(4871);let fe=(()=>{var i;class f{}return(i=f).\u0275fac=function(e){return new(e||i)},i.\u0275mod=t.$C({type:i}),i.\u0275inj=t.G2t({imports:[h.MD]}),f})(),he=(()=>{var i;class f{}return(i=f).\u0275fac=function(e){return new(e||i)},i.\u0275mod=t.$C({type:i}),i.\u0275inj=t.G2t({imports:[h.MD,de.U,ge.E,fe]}),f})();const ue=ce},2932:(z,I,r)=>{r.d(I,{h:()=>M,q:()=>S});var h=r(177),a=r(3953),t=r(8251),C=r(8890),y=r(9876),T=r(345),E=r(4748),U=r(9516),R=r(8471);const x=["image"];function G(u,_){if(1&u){const p=a.RV6();a.j41(0,"img",2,0),a.bIt("error",function(){a.eBV(p);const c=a.XpG();return a.Njj(c.onError())}),a.k0s()}if(2&u){const p=a.XpG();a.Y8G("src",p.safeResizeSrc,a.B4B)("alt",p.alt)("title",p.title),a.BMQ("aria-label",p.ariaLabel)}}let M=(()=>{var u;class _{set image(o){o&&this.onLoad(o),this._image=o}get image(){return this._image}constructor(o,c,v,b,P,V,A,O){this.sanitizer=o,this.changeDetectorRef=c,this.elementRef=v,this.subscriptions=b,this.platformId=P,this.ssrService=V,this.contextService=A,this.purpleService=O,this.error=new a.bkB,this.height=S.AUTO}get empty(){return!this.src}ngOnInit(){this.initProperties(),(0,h.UE)(this.platformId)&&this.subscriptions.subscribe((0,C.eh)(this,this.elementRef,{skipWait:!1}),o=>this.load())}initProperties(){var o,c,v,b;this.alt=(null===(o=this.extendedThumbnail)||void 0===o?void 0:o.properties.alt)||(null===(c=this.extendedThumbnail)||void 0===c?void 0:c.properties.caption)||"",this.title=this.alt,this.ariaLabel=null!==(v=this.label)&&void 0!==v?v:this.alt,this.focalPoint=null===(b=this.extendedThumbnail)||void 0===b?void 0:b.properties.focuspoint}initAndLoad(){this.initProperties(),this.load()}load(){this.loaded||(this.loaded=!0,this.src&&this.update(),this.changeDetectorRef.detectChanges())}ngOnChanges(o){o.src&&this.loaded&&this.update()}update(){this.updateImageRatio(),this.updateResizeSrc()}onLoad(o){o.nativeElement.classList.add("loaded"),this.elementRef.nativeElement.classList.add("loaded"),this.changeDetectorRef.detectChanges(),o.nativeElement.addEventListener("load",()=>{this.updateImageRatio(!0,o),this.changeDetectorRef.markForCheck()}),o.nativeElement.addEventListener("error",function(){o.nativeElement.style.display="none",o.nativeElement.nextElementSibling&&(o.nativeElement.nextElementSibling.style.display="inline")}),this.purpleService.addImageSrc(this.resizeSrc)}onError(){if(!this.safeResizeSrc)return;const o=this.purpleService.getAlternativeSrc(this.src);var c;o&&o!==this.resizeSrc?(this.setResizeSrc(o),this.changeDetectorRef.detectChanges()):(null===(c=this.image)||void 0===c||c.nativeElement.classList.add("error"),this.elementRef.nativeElement.classList.add("error"),this.error.emit(this))}updateImageRatio(o=!1,c=this.image){this.imageRatio=this.height===S.AUTO?(0,y.z)(!o,null==c?void 0:c.nativeElement,this.src)+"%":void 0}updateResizeSrc(){this.setResizeSrc((0,y.G)(this.elementRef.nativeElement,this.src,this.imageResolutionStrategy,this.focalPoint)),this.changeDetectorRef.detectChanges()}setResizeSrc(o){const c=this.contextService.toResourceUrl(o);this.resizeSrc=c,this.safeResizeSrc=this.sanitizer.bypassSecurityTrustResourceUrl(c)}}return(u=_).\u0275fac=function(o){return new(o||u)(a.rXU(T.up),a.rXU(a.gRc),a.rXU(a.aKT),a.rXU(t.v),a.rXU(a.Agw),a.rXU(E.i),a.rXU(U.V),a.rXU(R.Wj))},u.\u0275cmp=a.VBU({type:u,selectors:[["storefront-image"]],viewQuery:function(o,c){if(1&o&&a.GBs(x,5),2&o){let v;a.mGM(v=a.lsd())&&(c.image=v.first)}},hostAttrs:["ngSkipHydration","true"],hostVars:12,hostBindings:function(o,c){2&o&&(a.BMQ("src",c.src)("label",c.label)("resolution-strategy",c.imageResolutionStrategy)("alt",c.alt)("title",c.title)("aria-label",c.ariaLabel)("focal-point",c.focalPoint)("height-strategy",c.height),a.xc7("padding-top",c.imageRatio),a.AVh("empty",c.empty))},inputs:{src:"src",label:"label",extendedThumbnail:"extendedThumbnail",imageResolutionStrategy:"imageResolutionStrategy",height:"height"},outputs:{error:"error"},features:[a.Jv_([t.v]),a.OA$],decls:1,vars:1,consts:[["image",""],[3,"src","alt","title","error",4,"ngIf"],[3,"error","src","alt","title"]],template:function(o,c){1&o&&a.DNE(0,G,2,4,"img",1),2&o&&a.Y8G("ngIf",c.loaded&&c.src)},dependencies:[h.bT],styles:["storefront-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[height-strategy=AUTO]>img{position:absolute;width:auto;max-width:100%;top:0;object-fit:contain;height:100%;left:50%;transform:translate(-50%)}storefront-image.img-with-hidden-alt{content:attr(data-alt);display:none}storefront-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{opacity:1;background-color:var(--imageBackgroundColor)}storefront-image.loaded{background:#fff0}\n"],encapsulation:2,changeDetection:0}),_})();var S=function(u){return u.AUTO="AUTO",u.FIXED="FIXED",u.DEFAULT="DEFAULT",u}(S||{})},4403:(z,I,r)=>{r.d(I,{U:()=>t});var h=r(177),a=r(3953);let t=(()=>{var C;class y{}return(C=y).\u0275fac=function(E){return new(E||C)},C.\u0275mod=a.$C({type:C}),C.\u0275inj=a.G2t({imports:[h.MD]}),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:(D,_,o)=>{o.d(_,{d:()=>m});var d=o(177),e=o(4438);let m=(()=>{var g;class U{}return(g=U).\u0275fac=function(C){return new(C||g)},g.\u0275mod=e.$C({type:g}),g.\u0275inj=e.G2t({imports:[d.MD]}),U})()},2914:(D,_,o)=>{o.d(_,{w:()=>U});var d=o(4049),e=o(7370),m=o(4438),g=o(5483);let U=(()=>{var f;class C{constructor(u){this.contextService=u}transform(u,N){if(!u||(0,e.vh)(u))return u;let h=u?(0,d.K)(u,N):"";const T=this.contextService.getIsCustomerDomainUsed()?"":"/".concat(this.contextService.getBrand(),"/"),E=new URL(window.location.href),I="true"===E.searchParams.get("preview")||0===E.pathname.indexOf("/preview");return"/"===h&&(h=""),h="".concat(T).concat(h).concat(I?"?preview=true":""),h}}return(f=C).\u0275fac=function(u){return new(u||f)(m.rXU(g.V,16))},f.\u0275pipe=m.EJ8({name:"urlTransform",type:f,pure:!0}),C})()},6046:(D,_,o)=>{o.r(_),o.d(_,{AppMenuXmlModule:()=>Ue,component:()=>Ce});var d=o(177),e=o(4438),m=o(4404),g=o(2771),U=o(8793),f=o(7673),C=o(3726),M=o(4572),u=o(6354),N=o(9568),h=o(9745),T=o(4338),E=o(7370),I=o(1210);const G={};function k(n){const i=[];for(const r of n.childNodes)if(r.nodeType===Node.ELEMENT_NODE)switch(r.nodeName){case"image":i.push({type:"image"});break;case"search":i.push({type:"search"});break;default:throw{code:m.ERROR_CODE.CONFIGURATION_ERROR,message:"Unknown type in ".concat(n.tagName,": ").concat(r.nodeName)}}return i}function V(n){const r=(new DOMParser).parseFromString(n,"text/xml"),t=r.querySelector("parsererror");if(t)throw{code:m.ERROR_CODE.CONFIGURATION_ERROR,message:t.textContent};const a=r.documentElement;if("app_menu"!==a.tagName)throw{code:m.ERROR_CODE.CONFIGURATION_ERROR,message:"Missing root <app_menu>"};const s={},p=a.querySelector("navigationHeader");p&&(s.header=k(p));const c=a.querySelector("navigation");c&&(s.dynamicEntries=function F(n){const i=[];for(const s of n.getElementsByTagName("navigationNode")){var r,t,a;const p=s.getAttribute("targetURL"),c=s.getElementsByTagName("title"),l={default:p};for(const O of c)l[O.getAttribute("locale")||"default"]=O.textContent;const v=null!==(r=s.getAttribute("access"))&&void 0!==r?r:void 0;if(v&&"AUTHENTICATED"!==v&&"ROLE_ANONYMOUS"!==v)throw{code:m.ERROR_CODE.NOT_AVAILABLE,message:'Only simple roles are accepted as "access" on navigationNode, got "'.concat(v,'"')};i.push({targetUrl:p,titles:l,iconUrl:null===(t=s.getElementsByTagName("iconURL").item(0))||void 0===t?void 0:t.textContent,activeIconURL:null===(a=s.getElementsByTagName("activeIconURL").item(0))||void 0===a?void 0:a.textContent,access:v})}return i}(c));const l=a.querySelector("navigationFooter");return l&&(s.footer=k(l)),s}var R=o(7879),B=o(9079),b=o(7598),H=o(9360),j=o(5483),Y=o(2838),L=o(9047),K=o(8004),W=o(20),w=o(3377),z=o(9118),J=o(9668),Q=o(1652),Z=o(5204),q=o(2914);const ee=(n,i)=>({"mask-image":n,"-webkit-mask-image":i}),te=()=>({"background-color":"transparent"}),X=n=>({item:n});function ne(n,i){1&n&&(e.qex(0),e.j41(1,"div",6),e.EFF(2,"TODO SEARCH CONTAINER"),e.k0s(),e.bVm())}function oe(n,i){1&n&&(e.qex(0),e.j41(1,"div",7),e.EFF(2,"TODO IMAGE CONTAINER"),e.k0s(),e.bVm())}function re(n,i){if(1&n&&e.DNE(0,ne,3,0,"ng-container",5)(1,oe,3,0,"ng-container",5),2&n){const r=i.item;e.Y8G("ngIf","search"===r.type),e.R7$(),e.Y8G("ngIf","image"===r.type)}}function ae(n,i){if(1&n){const r=e.RV6();e.j41(0,"li")(1,"a",8),e.nI1(2,"urlTransform"),e.bIt("click",function(a){const s=e.eBV(r).item,p=e.XpG();return e.Njj(p.handleItemClick(s,a))}),e.nrm(3,"span",9),e.j41(4,"span",10),e.EFF(5),e.k0s()()()}if(2&n){const r=i.item,t=e.XpG();e.R7$(),e.AVh("app-menu-entry-active",r.active),e.BMQ("href",e.i5U(2,7,r.targetUrl,t.context),e.B4B)("target",r.target),e.R7$(2),e.Aen(r.iconUrl?e.l_i(10,ee,"url('"+r.iconUrl+"')","url('"+r.iconUrl+"')"):e.lJ4(13,te)),e.R7$(2),e.JRh(r.title)}}function ie(n,i){if(1&n&&(e.qex(0),e.eu8(1,13),e.bVm()),2&n){const r=i.$implicit;e.XpG(2);const t=e.sdS(1);e.R7$(),e.Y8G("ngTemplateOutlet",t)("ngTemplateOutletContext",e.eq3(2,X,r))}}function se(n,i){if(1&n&&(e.j41(0,"div",11),e.DNE(1,ie,2,4,"ng-container",12),e.k0s()),2&n){const r=e.XpG();e.R7$(),e.Y8G("ngForOf",r.header)}}function pe(n,i){if(1&n&&(e.qex(0),e.eu8(1,13),e.bVm()),2&n){const r=i.$implicit;e.XpG(2);const t=e.sdS(3);e.R7$(),e.Y8G("ngTemplateOutlet",t)("ngTemplateOutletContext",e.eq3(2,X,r))}}function ce(n,i){if(1&n&&(e.j41(0,"ul",14),e.DNE(1,pe,2,4,"ng-container",12),e.k0s()),2&n){const r=e.XpG();e.R7$(),e.Y8G("ngForOf",r.dynamicEntries)}}function le(n,i){if(1&n&&(e.qex(0),e.eu8(1,13),e.bVm()),2&n){const r=i.$implicit;e.XpG(2);const t=e.sdS(1);e.R7$(),e.Y8G("ngTemplateOutlet",t)("ngTemplateOutletContext",e.eq3(2,X,r))}}function me(n,i){if(1&n&&(e.j41(0,"div",15),e.DNE(1,le,2,4,"ng-container",12),e.k0s()),2&n){const r=e.XpG();e.R7$(),e.Y8G("ngForOf",r.footer)}}const ge=["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"],ve=/^purple:\/\/(?:storefront|app)\/resource\/dynamic\/storefront\/index\.html(?:[^#]*)(?:#\/)?(?<path>.*)?/,de=(0,H.zk)();let fe=(()=>{var n;class i extends I.${constructor(t,a,s,p,c,l,v,O,y,Re,xe,Ee,Oe,Ae,P,Me){super(a,t,s,p,P),this.elementRef=t,this.injector=a,this.contextService=s,this.document=p,this.resourceService=c,this.transferState=l,this.router=v,this.destroyRef=O,this.changeDetectorRef=y,this.eventActionService=Re,this.dialogService=xe,this.actionUrlService=Ee,this.kioskConfigService=Oe,this.browserService=Ae,this.globalService=P,this.appMenuService=Me,this.defaultConfig={...G},this.rawAppMenuXml$=new g.m(1),this.colorCssVars={};const $=this.contextService.toResourceUrl("resource://dynamic/app_menu.xml"),S=(0,e.zw6)($);this.transferState.hasKey(S)?this.rawAppMenuXml$.next(this.transferState.get(S,"")):this.resourceService.getString($).then(A=>{this.rawAppMenuXml$.next(A),this.transferState.set(S,A)}).catch(A=>{this.rawAppMenuXml$.error({code:m.ERROR_CODE.NOT_FOUND,message:A.toString()})})}ngOnInit(){super.ngOnInit(),this.updateColorCssVars({});const t=this.rawAppMenuXml$.pipe((0,B.pQ)(this.destroyRef),(0,u.T)(V),(0,N.t)(1)),a=(0,U.x)((0,f.of)(null),(0,C.R)(de,b.YT));(0,M.z)([t,this.kioskConfigService.getAppProperties(),a]).subscribe({next:([{header:s,footer:p,dynamicEntries:c},l])=>{this.header=s,this.footer=p,this.dynamicEntries=this.convertToDisplayEntries(c,l),this.updateColorCssVars(l),this.changeDetectorRef.markForCheck()},error:s=>{var p,c;this.dialogService.alert({text:"APP_MENU_XML_ERROR_MESSAGE",args:[null!==(p=s.code)&&void 0!==p?p:"UNKNOWN",null!==(c=s.message)&&void 0!==c?c:"UNKNOWN"]},"APP_MENU_XML_ERROR_TITLE","APP_MENU_XML_ERROR_CONFIRM")}})}updateColorCssVars(t){const a={iconNormal:(0,R.l6)(t.app_menu_icon_normal_color||t.text_color_variation)||"#898b8e",itemNormalBg:(0,R.l6)(t.app_menu_item_normal_background_color||t.main_background_color)||"#f5f5f6",itemNormalText:(0,R.l6)(t.app_menu_item_normal_text_color||t.text_color_variation)||"#898b8e",iconActive:(0,R.l6)(t.app_menu_icon_active_color||t.main_background_color)||"#f5f5f6",itemHoverBg:(0,R.l6)(t.app_menu_item_pressed_background_color||t.main_highlight_color)||"#00adef",itemHoverText:(0,R.l6)(t.app_menu_item_pressed_text_color||t.text_color_on_highlight_color)||"#f5f5f6"},s={};for(const[p,c]of Object.entries(a))s["--appMenuXml".concat(p.substring(0,1).toUpperCase()).concat(p.substring(1))]=c;this.colorCssVars=s}convertToDisplayEntries(t,a){const s=this.contextService.getPath(),p=this.contextService.isLoggedIn();return t.map(c=>{if("AUTHENTICATED"===c.access&&!p||"ROLE_ANONYMOUS"===c.access&&p)return;if(ge.includes(c.targetUrl))return void console.log("app_menu.xml: Ignored unsupported action url ".concat(c.targetUrl));const l=this.convertTargetUrl(c.targetUrl,a),v=l.targetUrl&&s.startsWith(l.targetUrl);return{title:c.titles.default,iconUrl:this.handleIconUrl(c,v),active:v,targetUrl:l.targetUrl,isClientNavigation:l.isClientNavigation,onClick:l.onClick,target:l.target}}).filter(c=>!!c)}handleIconUrl(t,a){if(t.activeIconURL||t.iconUrl)return this.convertIconUrl(a&&t.activeIconURL?t.activeIconURL:t.iconUrl)}convertIconUrl(t){return t.endsWith(".png")||console.error("Expected app menu icon to be png!"),t=t.split(".png")[0]+"@3x.png",this.contextService.toResourceUrl("resource://dynamic/".concat(t))}handleItemClick(t,a){if(t.isClientNavigation)return a.preventDefault(),this.appMenuService.setOpen(!1),this.eventActionService.processNavigateAction({type:h.H.NAVIGATE,path:t.targetUrl},this);t.onClick&&t.onClick(t)}convertTargetUrl(t,a){if(!(0,E.vh)(t)){if(t.startsWith("/"))throw{code:m.ERROR_CODE.VALIDATION_FAILED,message:'Unknown target URL "'.concat(t,'"')};t="purple://app/resource/dynamic/"+t}if("purple://app/bookmarks/open"===t)return a.app_bookmarks_custom_ui_url?this.convertTargetUrl(a.app_bookmarks_custom_ui_url||"storefront/index.html?title_bar=false#/bookmarks",a):{isClientNavigation:!0,targetUrl:"/bookmarks"};if("purple://kiosk/entitlement/login/open"===t)return{onClick:()=>{this.eventActionService.processLoginAction({type:h.H.LOGIN},this)}};if("purple://app/home/open"===t||"purple://kiosk/open"===t)return a.app_initial_screen_url?this.convertTargetUrl(a.app_initial_screen_url,a):{isClientNavigation:!0,targetUrl:"/"};if(t.startsWith("purple://app/open/external/url/")){const p=t.replace("purple://app/open/external/url/","");return{target:"_blank",targetUrl:decodeURIComponent(p)}}const s=ve.exec(t);return s?{isClientNavigation:!0,targetUrl:s.groups.path||"/"}:t.startsWith("purple://")?{onClick:()=>{this.actionUrlService.openUrl(t)}}:this.browserService.willOpenExternally(t)?{targetUrl:t,target:"_blank"}:{onClick:()=>this.browserService.showBrowser(t)}}}return(n=i).\u0275fac=function(t){return new(t||n)(e.rXU(e.aKT),e.rXU(e.zZn),e.rXU(j.V),e.rXU(d.qQ),e.rXU(Y.Q),e.rXU(e.pJN),e.rXU(L.Ix),e.rXU(e.abz),e.rXU(e.gRc),e.rXU(K.G),e.rXU(W.o),e.rXU(w.p),e.rXU(z.x),e.rXU(J.I),e.rXU(Q.d),e.rXU(Z.I))},n.\u0275cmp=e.VBU({type:n,selectors:[["storefront-app-menu-xml"]],hostVars:2,hostBindings:function(t,a){2&t&&e.Aen(a.colorCssVars)},features:[e.Jv_([T.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(t,a){1&t&&e.DNE(0,re,2,2,"ng-template",null,0,e.C5r)(2,ae,6,14,"ng-template",null,1,e.C5r)(4,se,2,1,"div",2)(5,ce,2,1,"ul",3)(6,me,2,1,"div",4),2&t&&(e.R7$(4),e.Y8G("ngIf",a.header),e.R7$(),e.Y8G("ngIf",a.dynamicEntries),e.R7$(),e.Y8G("ngIf",a.footer))},dependencies:[d.Sq,d.bT,d.T3,q.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}),i})();var he=o(9805),_e=o(4767);let Ue=(()=>{var n;class i{}return(n=i).\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.$C({type:n}),n.\u0275inj=e.G2t({imports:[d.MD,he.ButtonModule,L.iI,_e.d]}),i})();const Ce=fe}}]);
1
+ "use strict";(self.webpackChunkstorefront=self.webpackChunkstorefront||[]).push([["projects_storefront_src_app_component_app-menu-xml_app-menu-xml_module_ts"],{4767:(D,_,o)=>{o.d(_,{d:()=>m});var f=o(177),e=o(3953);let m=(()=>{var v;class U{}return(v=U).\u0275fac=function(C){return new(C||v)},v.\u0275mod=e.$C({type:v}),v.\u0275inj=e.G2t({imports:[f.MD]}),U})()},2914:(D,_,o)=>{o.d(_,{w:()=>U});var f=o(4049),e=o(7370),m=o(3953),v=o(9516);let U=(()=>{var u;class C{constructor(g){this.contextService=g}transform(g,N){if(!g||(0,e.vh)(g))return g;let h=g?(0,f.K)(g,N):"";const T=this.contextService.getIsCustomerDomainUsed()?"":"/".concat(this.contextService.getBrand(),"/"),E=new URL(window.location.href),I="true"===E.searchParams.get("preview")||0===E.pathname.indexOf("/preview");return"/"===h&&(h=""),h="".concat(T).concat(h).concat(I?"?preview=true":""),h}}return(u=C).\u0275fac=function(g){return new(g||u)(m.rXU(v.V,16))},u.\u0275pipe=m.EJ8({name:"urlTransform",type:u,pure:!0}),u.\u0275prov=m.jDH({token:u,factory:u.\u0275fac,providedIn:"root"}),C})()},6046:(D,_,o)=>{o.r(_),o.d(_,{AppMenuXmlModule:()=>Ue,component:()=>Ce});var f=o(177),e=o(3953),m=o(4404),v=o(2771),U=o(8793),u=o(7673),C=o(3726),M=o(4572),g=o(6354),N=o(9568),h=o(9745),T=o(8251),E=o(7370),I=o(1210);const G={};function k(n){const i=[];for(const r of n.childNodes)if(r.nodeType===Node.ELEMENT_NODE)switch(r.nodeName){case"image":i.push({type:"image"});break;case"search":i.push({type:"search"});break;default:throw{code:m.ERROR_CODE.CONFIGURATION_ERROR,message:"Unknown type in ".concat(n.tagName,": ").concat(r.nodeName)}}return i}function V(n){const r=(new DOMParser).parseFromString(n,"text/xml"),t=r.querySelector("parsererror");if(t)throw{code:m.ERROR_CODE.CONFIGURATION_ERROR,message:t.textContent};const a=r.documentElement;if("app_menu"!==a.tagName)throw{code:m.ERROR_CODE.CONFIGURATION_ERROR,message:"Missing root <app_menu>"};const s={},p=a.querySelector("navigationHeader");p&&(s.header=k(p));const c=a.querySelector("navigation");c&&(s.dynamicEntries=function F(n){const i=[];for(const s of n.getElementsByTagName("navigationNode")){var r,t,a;const p=s.getAttribute("targetURL"),c=s.getElementsByTagName("title"),l={default:p};for(const O of c)l[O.getAttribute("locale")||"default"]=O.textContent;const d=null!==(r=s.getAttribute("access"))&&void 0!==r?r:void 0;if(d&&"AUTHENTICATED"!==d&&"ROLE_ANONYMOUS"!==d)throw{code:m.ERROR_CODE.NOT_AVAILABLE,message:'Only simple roles are accepted as "access" on navigationNode, got "'.concat(d,'"')};i.push({targetUrl:p,titles:l,iconUrl:null===(t=s.getElementsByTagName("iconURL").item(0))||void 0===t?void 0:t.textContent,activeIconURL:null===(a=s.getElementsByTagName("activeIconURL").item(0))||void 0===a?void 0:a.textContent,access:d})}return i}(c));const l=a.querySelector("navigationFooter");return l&&(s.footer=k(l)),s}var R=o(7879),B=o(9079),b=o(7598),H=o(9360),j=o(9516),Y=o(2838),L=o(4559),K=o(8004),W=o(20),w=o(3377),z=o(9118),J=o(9668),Q=o(1652),Z=o(5204),q=o(2914);const ee=(n,i)=>({"mask-image":n,"-webkit-mask-image":i}),te=()=>({"background-color":"transparent"}),y=n=>({item:n});function ne(n,i){1&n&&(e.qex(0),e.j41(1,"div",6),e.EFF(2,"TODO SEARCH CONTAINER"),e.k0s(),e.bVm())}function oe(n,i){1&n&&(e.qex(0),e.j41(1,"div",7),e.EFF(2,"TODO IMAGE CONTAINER"),e.k0s(),e.bVm())}function re(n,i){if(1&n&&e.DNE(0,ne,3,0,"ng-container",5)(1,oe,3,0,"ng-container",5),2&n){const r=i.item;e.Y8G("ngIf","search"===r.type),e.R7$(),e.Y8G("ngIf","image"===r.type)}}function ae(n,i){if(1&n){const r=e.RV6();e.j41(0,"li")(1,"a",8),e.nI1(2,"urlTransform"),e.bIt("click",function(a){const s=e.eBV(r).item,p=e.XpG();return e.Njj(p.handleItemClick(s,a))}),e.nrm(3,"span",9),e.j41(4,"span",10),e.EFF(5),e.k0s()()()}if(2&n){const r=i.item,t=e.XpG();e.R7$(),e.AVh("app-menu-entry-active",r.active),e.BMQ("href",e.i5U(2,7,r.targetUrl,t.context),e.B4B)("target",r.target),e.R7$(2),e.Aen(r.iconUrl?e.l_i(10,ee,"url('"+r.iconUrl+"')","url('"+r.iconUrl+"')"):e.lJ4(13,te)),e.R7$(2),e.JRh(r.title)}}function ie(n,i){if(1&n&&(e.qex(0),e.eu8(1,13),e.bVm()),2&n){const r=i.$implicit;e.XpG(2);const t=e.sdS(1);e.R7$(),e.Y8G("ngTemplateOutlet",t)("ngTemplateOutletContext",e.eq3(2,y,r))}}function se(n,i){if(1&n&&(e.j41(0,"div",11),e.DNE(1,ie,2,4,"ng-container",12),e.k0s()),2&n){const r=e.XpG();e.R7$(),e.Y8G("ngForOf",r.header)}}function pe(n,i){if(1&n&&(e.qex(0),e.eu8(1,13),e.bVm()),2&n){const r=i.$implicit;e.XpG(2);const t=e.sdS(3);e.R7$(),e.Y8G("ngTemplateOutlet",t)("ngTemplateOutletContext",e.eq3(2,y,r))}}function ce(n,i){if(1&n&&(e.j41(0,"ul",14),e.DNE(1,pe,2,4,"ng-container",12),e.k0s()),2&n){const r=e.XpG();e.R7$(),e.Y8G("ngForOf",r.dynamicEntries)}}function le(n,i){if(1&n&&(e.qex(0),e.eu8(1,13),e.bVm()),2&n){const r=i.$implicit;e.XpG(2);const t=e.sdS(1);e.R7$(),e.Y8G("ngTemplateOutlet",t)("ngTemplateOutletContext",e.eq3(2,y,r))}}function me(n,i){if(1&n&&(e.j41(0,"div",15),e.DNE(1,le,2,4,"ng-container",12),e.k0s()),2&n){const r=e.XpG();e.R7$(),e.Y8G("ngForOf",r.footer)}}const ge=["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"],ve=/^purple:\/\/(?:storefront|app)\/resource\/dynamic\/storefront\/index\.html(?:[^#]*)(?:#\/)?(?<path>.*)?/,de=(0,H.zk)();let fe=(()=>{var n;class i extends I.${constructor(t,a,s,p,c,l,d,O,X,Re,xe,Ee,Oe,Ae,P,Me){super(a,t,s,p,P),this.elementRef=t,this.injector=a,this.contextService=s,this.document=p,this.resourceService=c,this.transferState=l,this.router=d,this.destroyRef=O,this.changeDetectorRef=X,this.eventActionService=Re,this.dialogService=xe,this.actionUrlService=Ee,this.kioskConfigService=Oe,this.browserService=Ae,this.globalService=P,this.appMenuService=Me,this.defaultConfig={...G},this.rawAppMenuXml$=new v.m(1),this.colorCssVars={};const $=this.contextService.toResourceUrl("resource://dynamic/app_menu.xml"),S=(0,e.zw6)($);this.transferState.hasKey(S)?this.rawAppMenuXml$.next(this.transferState.get(S,"")):this.resourceService.getString($).then(A=>{this.rawAppMenuXml$.next(A),this.transferState.set(S,A)}).catch(A=>{this.rawAppMenuXml$.error({code:m.ERROR_CODE.NOT_FOUND,message:A.toString()})})}ngOnInit(){super.ngOnInit(),this.updateColorCssVars({});const t=this.rawAppMenuXml$.pipe((0,B.pQ)(this.destroyRef),(0,g.T)(V),(0,N.t)(1)),a=(0,U.x)((0,u.of)(null),(0,C.R)(de,b.YT));(0,M.z)([t,this.kioskConfigService.getAppProperties(),a]).subscribe({next:([{header:s,footer:p,dynamicEntries:c},l])=>{this.header=s,this.footer=p,this.dynamicEntries=this.convertToDisplayEntries(c,l),this.updateColorCssVars(l),this.changeDetectorRef.markForCheck()},error:s=>{var p,c;this.dialogService.alert({text:"APP_MENU_XML_ERROR_MESSAGE",args:[null!==(p=s.code)&&void 0!==p?p:"UNKNOWN",null!==(c=s.message)&&void 0!==c?c:"UNKNOWN"]},"APP_MENU_XML_ERROR_TITLE","APP_MENU_XML_ERROR_CONFIRM")}})}updateColorCssVars(t){const a={iconNormal:(0,R.l6)(t.app_menu_icon_normal_color||t.text_color_variation)||"#898b8e",itemNormalBg:(0,R.l6)(t.app_menu_item_normal_background_color||t.main_background_color)||"#f5f5f6",itemNormalText:(0,R.l6)(t.app_menu_item_normal_text_color||t.text_color_variation)||"#898b8e",iconActive:(0,R.l6)(t.app_menu_icon_active_color||t.main_background_color)||"#f5f5f6",itemHoverBg:(0,R.l6)(t.app_menu_item_pressed_background_color||t.main_highlight_color)||"#00adef",itemHoverText:(0,R.l6)(t.app_menu_item_pressed_text_color||t.text_color_on_highlight_color)||"#f5f5f6"},s={};for(const[p,c]of Object.entries(a))s["--appMenuXml".concat(p.substring(0,1).toUpperCase()).concat(p.substring(1))]=c;this.colorCssVars=s}convertToDisplayEntries(t,a){const s=this.contextService.getPath(),p=this.contextService.isLoggedIn();return t.map(c=>{if("AUTHENTICATED"===c.access&&!p||"ROLE_ANONYMOUS"===c.access&&p)return;if(ge.includes(c.targetUrl))return void console.log("app_menu.xml: Ignored unsupported action url ".concat(c.targetUrl));const l=this.convertTargetUrl(c.targetUrl,a),d=l.targetUrl&&s.startsWith(l.targetUrl);return{title:c.titles.default,iconUrl:this.handleIconUrl(c,d),active:d,targetUrl:l.targetUrl,isClientNavigation:l.isClientNavigation,onClick:l.onClick,target:l.target}}).filter(c=>!!c)}handleIconUrl(t,a){if(t.activeIconURL||t.iconUrl)return this.convertIconUrl(a&&t.activeIconURL?t.activeIconURL:t.iconUrl)}convertIconUrl(t){return t.endsWith(".png")||console.error("Expected app menu icon to be png!"),t=t.split(".png")[0]+"@3x.png",this.contextService.toResourceUrl("resource://dynamic/".concat(t))}handleItemClick(t,a){if(t.isClientNavigation)return a.preventDefault(),this.appMenuService.setOpen(!1),this.eventActionService.processNavigateAction({type:h.H.NAVIGATE,path:t.targetUrl},this);t.onClick&&t.onClick(t)}convertTargetUrl(t,a){if(!(0,E.vh)(t)){if(t.startsWith("/"))throw{code:m.ERROR_CODE.VALIDATION_FAILED,message:'Unknown target URL "'.concat(t,'"')};t="purple://app/resource/dynamic/"+t}if("purple://app/bookmarks/open"===t)return a.app_bookmarks_custom_ui_url?this.convertTargetUrl(a.app_bookmarks_custom_ui_url||"storefront/index.html?title_bar=false#/bookmarks",a):{isClientNavigation:!0,targetUrl:"/bookmarks"};if("purple://kiosk/entitlement/login/open"===t)return{onClick:()=>{this.eventActionService.processLoginAction({type:h.H.LOGIN},this)}};if("purple://app/home/open"===t||"purple://kiosk/open"===t)return a.app_initial_screen_url?this.convertTargetUrl(a.app_initial_screen_url,a):{isClientNavigation:!0,targetUrl:"/"};if(t.startsWith("purple://app/open/external/url/")){const p=t.replace("purple://app/open/external/url/","");return{target:"_blank",targetUrl:decodeURIComponent(p)}}const s=ve.exec(t);return s?{isClientNavigation:!0,targetUrl:s.groups.path||"/"}:t.startsWith("purple://")?{onClick:()=>{this.actionUrlService.openUrl(t)}}:this.browserService.willOpenExternally(t)?{targetUrl:t,target:"_blank"}:{onClick:()=>this.browserService.showBrowser(t)}}}return(n=i).\u0275fac=function(t){return new(t||n)(e.rXU(e.aKT),e.rXU(e.zZn),e.rXU(j.V),e.rXU(f.qQ),e.rXU(Y.Q),e.rXU(e.pJN),e.rXU(L.Ix),e.rXU(e.abz),e.rXU(e.gRc),e.rXU(K.G),e.rXU(W.o),e.rXU(w.p),e.rXU(z.x),e.rXU(J.I),e.rXU(Q.d),e.rXU(Z.I))},n.\u0275cmp=e.VBU({type:n,selectors:[["storefront-app-menu-xml"]],hostVars:2,hostBindings:function(t,a){2&t&&e.Aen(a.colorCssVars)},features:[e.Jv_([T.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(t,a){1&t&&e.DNE(0,re,2,2,"ng-template",null,0,e.C5r)(2,ae,6,14,"ng-template",null,1,e.C5r)(4,se,2,1,"div",2)(5,ce,2,1,"ul",3)(6,me,2,1,"div",4),2&t&&(e.R7$(4),e.Y8G("ngIf",a.header),e.R7$(),e.Y8G("ngIf",a.dynamicEntries),e.R7$(),e.Y8G("ngIf",a.footer))},dependencies:[f.Sq,f.bT,f.T3,q.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}),i})();var he=o(9805),_e=o(4767);let Ue=(()=>{var n;class i{}return(n=i).\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.$C({type:n}),n.\u0275inj=e.G2t({imports:[f.MD,he.ButtonModule,L.iI,_e.d]}),i})();const Ce=fe}}]);
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkstorefront=self.webpackChunkstorefront||[]).push([["projects_storefront_src_app_component_base-component_base-datacollection_component_ts-project-6cb588","projects_storefront_src_app_config_common_config_ts"],{3713:(M,T,a)=>{a.d(T,{r:()=>R});var p=a(1210),f=a(4452),e=a(4412),G=a(4438);let R=(()=>{var _;class I extends p.${constructor(){super(...arguments),this.dependingDataCollections=[],this.excludedData=[],this.latestDataSubject$=new e.t(null),this.skipWait=new e.t(!1)}ngOnInit(){if(!0===this.baseConfig.excludeContentPriorLoaded){const S=this.getDataSourceType();this.dependingDataCollections=this.contextService.getDataCollectionComponents().filter(y=>y.getDataSourceType()===S),this.dependingDataCollections.forEach(y=>{y.skipWait.value||y.skipWait.next(!0)})}!0!==this.baseConfig.dontExcludeThisContent&&this.contextService.registerDataCollectionComponent(this),super.ngOnInit()}ngOnDestroy(){super.ngOnDestroy(),this.contextService.unregisterDataCollectionComponent(this)}getDataSourceType(){return(0,f.xV)(this.baseConfig)}getDependingDataCollections(){return this.dependingDataCollections}notifyHasData(S){this.excludedData=this.excludedData.concat(S.data),this.dependingDataCollections&&this.dependingDataCollections.length>0&&(this.dependingDataCollections=this.dependingDataCollections.filter(y=>y!==S.component),0===this.dependingDataCollections.length&&this.setComponentContext("resolvedDependencies","true"))}dataArrived(S){this.latestDataSubject$.next(S),this.contextService.notifyContainerComponents({component:this,data:S})}getLatestData(){return this.latestDataSubject$.value}getExcludedData(){return this.dependingDataCollections.length>0?void 0:this.excludedData}}return(_=I).\u0275fac=(()=>{let A;return function(y){return(A||(A=G.xGo(_)))(y||_)}})(),_.\u0275dir=G.FsC({type:_,features:[G.Vt3]}),I})()},6479:(M,T,a)=>{a.r(T),a.d(T,{ListModule:()=>It,component:()=>Pt});var p=a(177),f=a(467),e=a(4438),G=a(1413),R=a(3726),_=a(152),I=a(6977),A=a(9758),S=a(873),y=a(4452),m=a(8179),N=a(4338),z=a(610),x=a(3178),B=a(2962),Y=a(7598),k=a(8890),H=a(3472),v=a(1803),U=function(s){return s.FIRST="FIRST",s.ALL="ALL",s}(U||{});const F={dataSource:null,template:v.TS.VERTICAL,groupTemplate:v.TS.VERTICAL,content:null,emptyMessage:"LIST_NO_RESULTS",errorMessage:"LIST_ERROR",errorButtonLabel:"LIST_ERROR_BUTTON",maxLoadMoreRetries:2};var P=a(362);function D(s){return!!s&&s.groupable}var Q=a(7967),W=a(8075),w=a(7879),X=a(9047),K=a(8004),Z=a(5483),$=a(4748),J=a(8471),q=a(1652),tt=a(2838),et=a(680),nt=a(8909),it=a(3648),j=a(9383);let ot=(()=>{var s;class u{set storefrontDynamicAttributes(t){var n;t=null!==(n=t)&&void 0!==n?n:{};for(const[i,o]of Object.entries(t))o&&this.el.nativeElement.setAttribute(i,o);for(const i of Object.keys(this.currentAttributes))t[i]||this.el.nativeElement.removeAttribute(i);this.currentAttributes=t}constructor(t){this.el=t,this.currentAttributes={}}}return(s=u).\u0275fac=function(t){return new(t||s)(e.rXU(e.aKT))},s.\u0275dir=e.FsC({type:s,selectors:[["","storefrontDynamicAttributes",""]],inputs:{storefrontDynamicAttributes:"storefrontDynamicAttributes"}}),u})();const st=["listContent"],rt=["indicator"],lt=["childComponent"],O=s=>[s];function at(s,u){1&s&&e.nrm(0,"div",17,1)}function ct(s,u){if(1&s&&e.nrm(0,"storefront-element",24),2&s){const r=e.XpG().$implicit,t=e.XpG(2);e.Y8G("baseConfig",t.groupHeaderConfig[r])("baseContext",t.groupHeaderContext[r])("dataType",t.getGroupDataType(r))}}function ut(s,u){if(1&s){const r=e.RV6();e.j41(0,"storefront-element",27,2),e.bIt("click",function(n){const i=e.eBV(r).$implicit,o=e.sdS(1),l=e.XpG(4);return e.Njj(l.onClickEntry(o,i,n))})("delete",function(n){e.eBV(r);const i=e.XpG(4);return e.Njj(i.onDeleteEntry(n))}),e.k0s()}if(2&s){const r=u.$implicit,t=u.index,n=e.sdS(1),i=e.XpG(2).index,o=e.XpG(2);e.AVh("no-ripple",!(null!=o.config&&null!=o.config.selection&&o.config.selection.ripple))("selected",o.isSelected(n)),e.Y8G("baseConfig",o.getEntryConfig(r))("baseContext",o.getEntryContext(r,t,i))("dataType",o.getDataType())("matRippleDisabled",!(null!=o.config&&null!=o.config.selection&&o.config.selection.ripple)),e.BMQ("data-entry-index",t)}}function dt(s,u){if(1&s&&(e.j41(0,"div",25)(1,"div",3),e.DNE(2,ut,2,9,"storefront-element",26),e.k0s()()),2&s){const r=e.XpG(),t=r.$implicit,n=r.index,i=e.XpG(2);e.BMQ("template",i.config.groupTemplate)("data-group-index",n),e.R7$(),e.Y8G("storefrontCheckOverflow",i.config.groupTemplate),e.R7$(),e.Y8G("ngForOf",i.slicedGroupData[t])("ngForTrackBy",i.trackBySlicedData)}}function gt(s,u){if(1&s){const r=e.RV6();e.j41(0,"div",28),e.bIt("click",function(){e.eBV(r);const n=e.XpG().$implicit,i=e.XpG(2);return e.Njj(i.toggleGroupedEntriesLength(n))}),e.nrm(1,"span",29)(2,"i",30),e.k0s()}if(2&s){const r=e.XpG().$implicit,t=e.XpG(2);e.AVh("expanded",t.groupedEntriesLength[r]>=t.groupData[r].length),e.R7$(),e.Y8G("storefrontTranslate",t.getExpandCollapseMessage("EXPAND_COLLAPSE_GROUPED_ENTRIES",r))("storefrontTranslateArgs",e.eq3(4,O,t.groupData[r].length-t.getGroupedEntriesConfigLength()))}}function ft(s,u){if(1&s&&(e.j41(0,"div",19),e.DNE(1,ct,1,3,"storefront-element",20)(2,dt,3,5,"div",21),e.j41(3,"div",22),e.DNE(4,gt,3,6,"div",23),e.k0s()()),2&s){const r=u.$implicit,t=e.XpG(2);e.Y8G("storefrontDynamicAttributes",t.groupAttributes&&t.groupAttributes[r]),e.R7$(),e.Y8G("ngIf",t.config&&t.groupHeaderConfig&&t.groupHeaderConfig[r]),e.R7$(),e.Y8G("ngIf",t.slicedGroupData),e.R7$(2),e.Y8G("ngIf",t.showGroupedEntriesExpandToggle(r))}}function pt(s,u){if(1&s&&(e.qex(0),e.DNE(1,ft,5,4,"div",18),e.bVm()),2&s){const r=e.XpG();e.R7$(),e.Y8G("ngForOf",r.slicedGroups)("ngForTrackBy",r.trackBySlicedData)}}function ht(s,u){if(1&s){const r=e.RV6();e.j41(0,"storefront-element",27,2),e.bIt("click",function(n){const i=e.eBV(r).$implicit,o=e.sdS(1),l=e.XpG(2);return e.Njj(l.onClickEntry(o,i,n))})("delete",function(n){e.eBV(r);const i=e.XpG(2);return e.Njj(i.onDeleteEntry(n))}),e.k0s()}if(2&s){const r=u.$implicit,t=u.index,n=e.sdS(1),i=e.XpG(2);e.AVh("no-ripple",!(null!=i.config&&null!=i.config.selection&&i.config.selection.ripple))("selected",i.isSelected(n)),e.Y8G("baseConfig",i.getEntryConfig(r))("baseContext",i.getEntryContext(r,t))("dataType",i.getDataType())("matRippleDisabled",!(null!=i.config&&null!=i.config.selection&&i.config.selection.ripple)),e.BMQ("data-entry-index",t)}}function mt(s,u){if(1&s&&(e.qex(0),e.DNE(1,ht,2,9,"storefront-element",26),e.bVm()),2&s){const r=e.XpG();e.R7$(),e.Y8G("ngForOf",r.slicedData)("ngForTrackBy",r.trackBySlicedData)}}function vt(s,u){if(1&s&&e.nrm(0,"div",31),2&s){const r=e.XpG();e.Y8G("storefrontTranslate",r.emptyMessage)("storefrontTranslateArgs",r.emptyMessageVariables)}}function Ct(s,u){if(1&s){const r=e.RV6();e.j41(0,"div",32),e.nrm(1,"span",29),e.j41(2,"button",33),e.bIt("click",function(){e.eBV(r);const n=e.XpG();return e.Njj(n.reload())}),e.k0s()()}if(2&s){const r=e.XpG();e.R7$(),e.Y8G("storefrontTranslate",r.config.errorMessage)("storefrontTranslateArgs",e.eq3(3,O,r.error.code)),e.R7$(),e.Y8G("storefrontTranslate",r.config.errorButtonLabel)}}function bt(s,u){if(1&s){const r=e.RV6();e.j41(0,"div",34),e.bIt("click",function(){e.eBV(r);const n=e.XpG();return e.Njj(n.toggleEntriesLength())}),e.nrm(1,"span",29)(2,"i",30),e.k0s()}if(2&s){const r=e.XpG();e.AVh("expanded",r.entriesLimit>=(r.groups||r.data).length),e.R7$(),e.Y8G("storefrontTranslate",r.getExpandCollapseMessage("EXPAND_COLLAPSE_ENTRIES"))("storefrontTranslateArgs",e.eq3(4,O,r.data.length-r.getEntriesConfigLength()))}}function St(s,u){if(1&s){const r=e.RV6();e.j41(0,"button",35),e.bIt("click",function(){e.eBV(r);const n=e.XpG();return e.Njj(n.confirmSelection())}),e.k0s()}if(2&s){const r=e.XpG();e.Y8G("storefrontTranslate",r.getMessage("CONFIRM"))}}function yt(s,u){if(1&s){const r=e.RV6();e.j41(0,"button",36),e.bIt("click",function(){e.eBV(r);const n=e.XpG();return e.Njj(n.resetSelection())}),e.k0s()}if(2&s){const r=e.XpG();e.Y8G("storefrontTranslate",r.getMessage("RESET"))}}function Et(s,u){if(1&s){const r=e.RV6();e.j41(0,"button",37),e.bIt("click",function(){e.eBV(r);const n=e.XpG();return e.Njj(n.selectAll())}),e.k0s()}if(2&s){const r=e.XpG();e.Y8G("storefrontTranslate",r.getMessage("SELECT_ALL"))}}function _t(s,u){if(1&s){const r=e.RV6();e.j41(0,"button",38),e.bIt("click",function(){e.eBV(r);const n=e.XpG();return e.Njj(n.unSelectAll())}),e.k0s()}if(2&s){const r=e.XpG();e.Y8G("storefrontTranslate",r.getMessage("UNSELECT_ALL"))}}function Tt(s,u){if(1&s&&(e.j41(0,"div",39)(1,"a",40),e.EFF(2," mehr "),e.k0s()()),2&s){const r=e.XpG();e.R7$(),e.Y8G("href",r.generateUrlWithPageSet(),e.B4B)}}const V="data";let xt=(()=>{var s;class u extends H.M{get selectable(){return this.baseConfig.selection}get centered(){return this.baseConfig.centered}get isNotHorizontalList(){return this.template!==v.TS.HORIZONTAL}get paginationSuffix(){var t;return null===(t=this.config)||void 0===t||null===(t=t.pagination)||void 0===t?void 0:t.suffix}get showPaginationButton(){return!!(this.isNotHorizontalList&&this.hasNext&&this.paginationSuffix)}constructor(t,n,i,o,l,c,d,g,C,h,E,b,L,Ot,Mt,Nt){super(i,n,d,g,L),this.store=t,this.elementRef=n,this.injector=i,this.router=o,this.changeDetectorRef=l,this.eventActionService=c,this.contextService=d,this.document=g,this.platformId=C,this.transferState=h,this.ssrService=E,this.purpleService=b,this.globalService=L,this.route=Ot,this.purpleEnv=Mt,this.resourceService=Nt,this.defaultConfig={...F},this.selectedComponents=[],this.initiallySelectedComponents=[],this.destroyRef$=new G.B,this.slicedGroupData={},this.entryContextCache={},this.groupedEntriesLength={},this.listenQueryParamsInit=!1}ngOnInit(){this.baseContext.isGhost||(this.store.subscribe((0,R.R)(this.listContent.nativeElement,"scroll",{passive:!0}).pipe((0,_.B)(100)),t=>this.onScroll()),this.store.subscribe((0,k.Ne)(),t=>{this.updatePositionIndicator(this.selectedComponents[0]).then(()=>this.changeDetectorRef.detectChanges())}),this.isNotHorizontalList&&(0,p.UE)(this.platformId)&&this.store.subscribe((0,R.R)(window,Y.Zm),t=>{(t.detail.emitter===this.elementRef.nativeElement||t.detail.emitter.contains(this.elementRef.nativeElement))&&this.loadMore()}),super.ngOnInit())}ngOnDestroy(){this.destroyRef$.next(),this.destroyRef$.complete()}onScroll(){(0,p.UE)(this.platformId)&&this.isNotHorizontalList&&(0,B.IL)(this.listContent.nativeElement,!0)>S._&&this.loadMore()}loadOnVisible(){var t=this;return(0,f.A)(function*(){(0,p.Vy)(t.platformId)||!t.ssrService.currentPrebootStatus?t.loadAndInit():(t.store.subscribe((0,k.eh)(t,t.elementRef,{skipWait:t.purpleEnv.isUniversal&&!t.ssrService.currentPrebootStatus||t.skipWait}),n=>t.loadAndInit(),x.lQ,x.lQ,"visible"),t.skipWait.subscribe(n=>{n&&(t.store.unsubscribe("visible"),t.loadAndInit())}))})()}onConfigChanges(){var t=this;return(0,f.A)(function*(){t.listenQueryParams();const n=t.getExcludedData();if(null!=n){if((!t.dataSource||t.dataSource.hasConfigChanged(t.config.dataSource))&&(t.dataSource?(t.dataSource.setConfig(t.config.dataSource),t.dataSource.reset()):(t.dataSource=(0,y.O8)(t.config.dataSource,t.contextService,t.store,t.elementRef.nativeElement,t.transferState,t.purpleService,t.globalService,t.document,t.resourceService,t.platformId),n.length>0&&t.dataSource.setExcludedData(n))),t.store.hasSubscription(V)||(t.store.subscribe(t.dataSource.data$,function(){var o=(0,f.A)(function*(l){var c,d,g;t.hasNext=!(null===(c=t.dataSource)||void 0===c||null===(c=c.lastCallMetadata)||void 0===c||!c.hasNextPage||null===(d=t.data)||void 0===d||!d.length)&&(null===(g=t.dataSource)||void 0===g||null===(g=g.lastCallMetadata)||void 0===g?void 0:g.hasNextPage);const C=!t.data||t.data.length&&t.data.every(E=>null===E);t.data=l;const h=!t.data||t.data.length&&t.data.every(E=>null===E);h||t.dataArrived(t.data),t.listEmpty=0===(null==l?void 0:l.length),yield t.setGroupData(),t.updateAllSlicedData(),t.changedEntryContexts(),h||t.changeDetectorRef.detectChanges(),C&&t.loadMoreUntilFilled()});return function(l){return o.apply(this,arguments)}}(),x.lQ,x.lQ,V),t.store.subscribe(t.dataSource.error$,o=>{t.error=o,o&&t.dataArrived([])},x.lQ,x.lQ,"error")),!t.dataSource.hasData())try{t.loadOnVisible()}catch{}var i;t.config.selection&&t.dataSource.hasData()&&(t.elementRef.nativeElement.setAttribute("template",t.config.template),t.setSelectionFromContext()),t.config.emptyMessage&&(t.emptyMessage="string"==typeof t.config.emptyMessage?t.config.emptyMessage:t.config.emptyMessage.message,t.emptyMessageVariables="string"==typeof t.config.emptyMessage?[]:null!==(i=t.config.emptyMessage.variables)&&void 0!==i?i:[]),t.changedEntryContexts()}})()}updateAllSlicedData(){var t,n;if(this.entriesLimit=null!==(t=null!==(n=this.entriesLimit)&&void 0!==n?n:this.getEntriesConfigLength())&&void 0!==t?t:1/0,this.template===v.TS.GROUP){this.slicedGroups=this.groups.slice(0,this.entriesLimit);const o=this.getGroupedEntriesConfigLength();for(const l of this.groups)this.groupedEntriesLength[l]||(this.groupedEntriesLength[l]=o),this.slicedGroupData[l]=this.groupData[l].slice(0,this.groupedEntriesLength[l])}else{var i;this.slicedData=null===(i=this.data)||void 0===i||null===(i=i.slice(0,this.entriesLimit))||void 0===i?void 0:i.filter(o=>(0,m.ru)(this.getEntryConfig(o),this.getEntryContext(o),this.contextService.$functions,this.globalService.getGlobalData()))}}getGroupedEntriesConfigLength(){var t;return null===(t=this.config)||void 0===t||null===(t=t.lengthLimit)||void 0===t?void 0:t.groupedEntries}getEntriesConfigLength(){var t;return null===(t=this.config)||void 0===t||null===(t=t.lengthLimit)||void 0===t?void 0:t.entries}showEntriesExpandToggle(){var t,n,i;return(null===(t=this.config)||void 0===t?void 0:t.template)===v.TS.GROUP?(null===(i=this.groups)||void 0===i?void 0:i.length)>this.getEntriesConfigLength():(null===(n=this.data)||void 0===n?void 0:n.length)>this.getEntriesConfigLength()}showGroupedEntriesExpandToggle(t){var n;return t&&(null===(n=this.groupData[t])||void 0===n?void 0:n.length)>this.getGroupedEntriesConfigLength()}toggleEntriesLength(){var n;this.entriesLimit=void 0===this.entriesLimit||this.entriesLimit<1/0?1/0:this.getEntriesConfigLength(),this.template===v.TS.GROUP?this.slicedGroups=this.groups.slice(0,this.entriesLimit):this.slicedData=null===(n=this.data)||void 0===n||null===(n=n.slice(0,this.entriesLimit))||void 0===n?void 0:n.filter(i=>(0,m.ru)(this.getEntryConfig(i),this.getEntryContext(i),this.contextService.$functions,this.globalService.getGlobalData()))}toggleGroupedEntriesLength(t){void 0===this.groupedEntriesLength[t]||this.groupedEntriesLength[t]<1/0?(this.groupedEntriesLength[t]=1/0,this.slicedGroupData[t]=this.groupData[t]):(this.groupedEntriesLength[t]=this.getGroupedEntriesConfigLength(),this.slicedGroupData[t]=this.groupData[t].slice(0,this.groupedEntriesLength[t]))}changedEntryContexts(t){t?t.forEach(n=>{delete this.entryContextCache[n]}):this.entryContextCache={}}loadMoreUntilFilled(){var t=this;return(0,f.A)(function*(){let n=0,o=t.getElementRef().nativeElement.closest("body, storefront-embeddable-view .content, storefront-modal .modal-content");if(o===t.document.body&&t.document.scrollingElement!==o&&(o=t.document.scrollingElement),o)for(;o.scrollHeight<o.clientHeight&&null!==(l=t.dataSource.lastCallMetadata)&&void 0!==l&&l.hasNextPage;){var l;if(n>=t.config.maxLoadMoreRetries)return void console.warn("loadMore was called ".concat(t.config.maxLoadMoreRetries," times, but screen still isn't filled. Increase List maxLoadMoreRetries or DataSource batchSize"));yield t.loadMore(),n++}})()}loadAndInit(){var t=this;return(0,f.A)(function*(){t.isNotHorizontalList&&t.paginationSuffix?(t.currentPageSet=t.route.snapshot.queryParams["page-set-".concat(t.paginationSuffix)],t.currentPageSet&&(t.dataSource.cursor=t.currentPageSet),yield t.dataSource.loadData({ignoreCursor:!t.currentPageSet})):yield t.dataSource.loadData(),t.paginationSuffix&&(t.currentPageSet=t.dataSource.cursor),t.config.selection&&t.dataSource.hasData()&&(t.elementRef.nativeElement.setAttribute("template",t.config.template),t.setSelectionFromContext(!0))})()}loadMore(){var t=this;return(0,f.A)(function*(){try{yield t.dataSource.loadMore(),t.paginationSuffix&&(t.currentPageSet=t.dataSource.cursor,t.hasNext=!!t.currentPageSet)}catch{}})()}getData(){return this.data}isEmpty(){const t=this.getData();return t&&t.length}getGroups(){return D(this.dataSource)&&this.dataSource.getGroups()}getGroupData(t){return D(this.dataSource)&&this.dataSource.getGroupData(t)}getEntryContext(t,n,i){const o=null==t?void 0:t.id;if(o&&this.entryContextCache[o])return this.entryContextCache[o];let l;if(t){var c;let d=(0,m.uQ)(null!==(c=this.getConfig().dataSource.entryId)&&void 0!==c?c:this.getDataType(),this.context,this.contextService.$functions,this.globalService.getGlobalData());l={...this.context,[this.config&&d]:t,...null!=n?{entryIndex:n}:{},...null!=i?{groupIndex:i}:{}},o&&(this.entryContextCache[o]=l)}else l={...this.context,isGhost:!0,...null!=n?{entryIndex:n}:{},...null!=i?{groupIndex:i}:{}};return l}getGroupEntryContext(t){return{...this.context,[this.config&&this.config.dataSource.type]:t}}getGroupDataType(t){return D(this.dataSource)&&"group"}getGroupHeaderContext(t,n){var i=this;return(0,f.A)(function*(){const o=D(i.dataSource)&&(yield i.dataSource.getGroupHeaderContextData(t,n));return o?{...i.context,group:o}:void 0})()}getGroupHeaderConfig(t){if(this.config.groupHeader&&D(this.dataSource)){var n,i,o;let l={...this.config.groupHeader};return l.condition&&(l=(0,m.uQ)(l,this.groupHeaderContext[t],this.contextService.$functions,this.globalService.getGlobalData()),l=(0,m.v3)(l),!l)?null:null!==(n=null===(i=(o=this.dataSource).getGroupHeaderConfig)||void 0===i?void 0:i.call(o,l,t))&&void 0!==n?n:l}return null}onClickEntry(t,n,i){var o=this;return(0,f.A)(function*(){if(!o.isAnyChildComponentProcessing()&&((o.config.selection||o.baseConfig.tapEntry)&&o.store.dispatch((0,z.k4)({key:"".concat(o.getTrackingBaseKey(),"_").concat(t.getChildComponent().getTrackingBaseKey(),"_CLICKED"),params:t.getChildComponent().getTrackingParams()})),o.config.selection&&o.setSelection(t,!0),o.baseConfig.tapEntry)){t.processing=!0,o.changeDetectorRef.detectChanges();const l=(0,m.uQ)(o.baseConfig.tapEntry,o.getEntryContext(n),o.contextService.$functions,o.globalService.getGlobalData(),!1);yield o.eventActionService.processEventAction((0,m.v3)(l),t.getChildComponent(),o),t.processing=!1,o.changeDetectorRef.detectChanges()}})()}isAnyChildComponentProcessing(){return!(!this.childComponents||!this.childComponents.find(t=>t.processing))}setSelectionFromContext(t=!1){const n=this.getDataFromContext();let i=[];if(n)if("string"==typeof n){const o=this.childComponents.find(l=>l.getDataId()===n);o&&i.push(o)}else if("object"==typeof n)if(Array.isArray(n))i=this.childComponents.filter(o=>n.indexOf(o.getDataId())>-1);else{const o=this.childComponents.find(l=>l.getDataId()===n.id);o&&i.push(o)}!i.length&&this.config.selection.init&&(this.config.selection.init===U.ALL?this.config.selection.multi&&(i=this.childComponents.map(o=>o)):i.push(this.childComponents.toArray()[0])),i.length&&this.hasSelectionChanged(i)&&i.forEach(o=>this.setSelection(o,!1,!0)),t&&(this.initiallySelectedComponents=[...i])}setSelection(t,n=!1,i=!1){this.config.selection.multi?(this.isSelected(t)?n&&(this.selectedComponents=this.selectedComponents.filter(o=>o!==t)):this.selectedComponents.push(t),this.config.selection.confirm||this.updateSelection()):(this.selectedComponents=[t],this.config.selection.confirm||this.updatePositionIndicator(t,i?100:0).then(()=>this.updateSelection()),this.template!==v.TS.TABS&&t.scrollIntoView(this.getScrollOptions()))}updatePositionIndicator(t,n=0){var i=this;return(0,f.A)(function*(){return new Promise(o=>{if(i.template===v.TS.TABS){const l=t.elementRef.nativeElement;(0,B.L$)(i.indicator.nativeElement,"transitionend",o),setTimeout(()=>{i.indicator.nativeElement.style.transform="translateX(".concat(l.offsetLeft-1,"px) translateY(").concat(l.offsetTop,"px)"),i.indicator.nativeElement.style.width=l.offsetWidth+1+"px",i.indicator.nativeElement.style.height=l.offsetHeight+"px"},n),setTimeout(o,n+500)}else o()})})()}updateSelection(){var t=this;return(0,f.A)(function*(){const n=t.config.selection.multi?"filter":"find",i=t.selectedComponents.map(o=>o.getDataId())[n](o=>!!o);t.config.selection.paramScope===A.x.USER_ATTRIBUTE?t.contextService.setUserAttribute(t.config.selection.param,i):(0,W.CV)(t.router,{[t.config.selection.param]:i})})()}getScrollOptions(){return{behavior:"smooth",axis:this.template===v.TS.HORIZONTAL?"horiz":void 0,padding:!0}}onDeleteEntry(t){const n=null==t?void 0:t.id;n&&this.entryContextCache[n]&&delete this.entryContextCache[n],this.dataSource.update()}reload(){(0,p.UE)(this.platformId)&&window.location.reload()}isSelected(t){return this.selectedComponents.indexOf(t)>-1}confirmSelection(){var t=this;return(0,f.A)(function*(){yield t.updateSelection(),t.eventActionService.processEventAction((0,m.v3)((0,m.uQ)(t.config.selection.confirm.action,t.context,t.contextService.$functions,t.globalService.getGlobalData())),t)})()}resetSelection(){this.selectedComponents=[...this.initiallySelectedComponents],this.config.selection.confirm||this.updateSelection()}unSelectAll(){this.selectedComponents=[],this.config.selection.confirm||this.updateSelection()}selectAll(){this.selectedComponents=this.childComponents.toArray(),this.config.selection.confirm||this.updateSelection()}setGroupData(){var t=this;return(0,f.A)(function*(){if(D(t.dataSource)&&t.template===v.TS.GROUP){const n=t.getGroups();if(P(t.groups,n)||(t.groups=n),t.groupData?(Object.keys(t.groupData).forEach(i=>{t.groups.indexOf(i)<0&&delete t.groupData[i]}),t.groups.forEach(i=>{const o=t.getGroupData(i);P(o,t.groupData[i])||(t.groupData[i]=o)})):t.groupData=t.groups.reduce((i,o)=>({...i,[o]:t.getGroupData(o)}),{}),t.config.groupHeader){const i=yield Promise.all(t.groups.map(function(){var l=(0,f.A)(function*(c){return[c,yield t.getGroupHeaderContext(c,t.groupData[c])]});return function(c){return l.apply(this,arguments)}}()));if(!P(t.groups,n))return;t.groups=t.groups.filter(l=>i.some(([c,d])=>c===l&&!!d));const o={};for(const[l,c]of i)o[l]=c;if(t.groupHeaderContext=o,t.groupHeaderConfig=t.groups.reduce((l,c)=>({...l,[c]:t.getGroupHeaderConfig(c)}),{}),t.config.groupAttributes){t.groupAttributes={};for(const[l,c]of Object.entries(o)){const d=(0,m.uQ)({...t.config.groupAttributes},c,t.contextService.$functions,t.globalService.getGlobalData(),!1);for(const g of Object.keys(d))null!=d[g]&&(d[g]=(0,m.v3)(d[g]));t.groupAttributes[l]=d}}}}})()}getMessage(t){switch(t){case"CONFIRM":return this.config.selection.confirm.message||"LIST_ACTION_CONFIRM";case"RESET":return"string"==typeof this.config.selection.reset?this.config.selection.reset:"LIST_ACTION_RESET";case"SELECT_ALL":return"string"==typeof this.config.selection.selectAll?this.config.selection.selectAll:"LIST_ACTION_SELECT_ALL";case"UNSELECT_ALL":return"string"==typeof this.config.selection.unSelectAll?this.config.selection.unSelectAll:"LIST_ACTION_UNSELECT_ALL"}}getExpandCollapseMessage(t,n){function i(b,L){return"string"==typeof b?b:(0,Q.t)(b,L)}if("EXPAND_COLLAPSE_ENTRIES"===t){const b=(this.template===v.TS.GROUP?this.groups:this.data).length-this.getEntriesConfigLength();var o,l,c,d;return i(void 0!==this.entriesLimit&&this.entriesLimit<1/0?null!==(o=null===(l=this.config.lengthLimit)||void 0===l?void 0:l.entriesExpandMessage)&&void 0!==o?o:{singular:"LIST_ENTRY_TOGGLE_EXPAND",plural:"LIST_ENTRIES_TOGGLE_EXPAND"}:null!==(c=null===(d=this.config.lengthLimit)||void 0===d?void 0:d.entriesCollapseMessage)&&void 0!==c?c:{singular:"LIST_ENTRY_TOGGLE_COLLAPSE",plural:"LIST_ENTRIES_TOGGLE_COLLAPSE"},b)}{const b=this.groupData[n].length-this.getGroupedEntriesConfigLength();var g,C,h,E;return i(void 0!==this.groupedEntriesLength[n]&&this.groupedEntriesLength[n]<1/0?null!==(g=null===(C=this.config.lengthLimit)||void 0===C?void 0:C.groupedEntriesExpandMessage)&&void 0!==g?g:{singular:"LIST_GROUPED_ENTRY_TOGGLE_EXPAND",plural:"LIST_GROUPED_ENTRIES_TOGGLE_EXPAND"}:null!==(h=null===(E=this.config.lengthLimit)||void 0===E?void 0:E.groupedEntriesCollapseMessage)&&void 0!==h?h:{singular:"LIST_GROUPED_ENTRY_TOGGLE_COLLAPSE",plural:"LIST_GROUPED_ENTRIES_TOGGLE_COLLAPSE"},b)}}hasSelectionChanged(t){return this.selectedComponents.length!==t.length||this.selectedComponents.find((n,i)=>n!==t[i])}isSelectionEnabled(){return this.config&&!!this.config.selection}getParam(){return this.config&&this.config.selection&&this.config.selection.param}getSelectionScope(){return this.config&&this.config.selection&&this.config.selection.paramScope}getConfigEscapeProperties(){return[...super.getConfigEscapeProperties(),"groupHeader","groupAttributes","tapEntry"]}trackBySlicedData(t,n){var i,o,l,c,d,g,C,h;return"string"!=typeof n&&n?null!==(i=null!==(o=null!==(l=null!==(c=null==n?void 0:n.id)&&void 0!==c?c:null==n||null===(d=n.issue)||void 0===d?void 0:d.id)&&void 0!==l?l:null==n||null===(g=n.post)||void 0===g?void 0:g.id)&&void 0!==o?o:null==n||null===(C=n.bundle)||void 0===C?void 0:C.id)&&void 0!==i?i:null==n||null===(h=n.ad)||void 0===h?void 0:h.id:n}generateUrlWithPageSet(){const t="page-set-".concat(this.paginationSuffix),n={...this.route.snapshot.queryParams,[t]:this.currentPageSet};return this.router.createUrlTree([],{relativeTo:this.route,queryParams:n}).toString()}listenQueryParams(){(0,p.UE)(this.platformId)&&this.isNotHorizontalList&&this.paginationSuffix&&!this.listenQueryParamsInit&&(this.listenQueryParamsInit=!0,this.route.queryParams.pipe((0,I.Q)(this.destroyRef$)).subscribe(t=>{!t["page-set-".concat(this.paginationSuffix)]&&this.currentPageSet&&(this.currentPageSet="",this.loadAndInit())}))}}return(s=u).type="list",s.\u0275fac=function(t){return new(t||s)(e.rXU(N.B),e.rXU(e.aKT),e.rXU(e.zZn),e.rXU(X.Ix),e.rXU(e.gRc),e.rXU(K.G),e.rXU(Z.V),e.rXU(p.qQ),e.rXU(e.Agw),e.rXU(e.pJN),e.rXU($.i),e.rXU(J.Wj),e.rXU(q.d),e.rXU(X.nX),e.rXU(w.r6),e.rXU(tt.Q))},s.\u0275cmp=e.VBU({type:s,selectors:[["storefront-list"]],viewQuery:function(t,n){if(1&t&&(e.GBs(st,7,e.aKT),e.GBs(rt,5,e.aKT),e.GBs(lt,5)),2&t){let i;e.mGM(i=e.lsd())&&(n.listContent=i.first),e.mGM(i=e.lsd())&&(n.indicator=i.first),e.mGM(i=e.lsd())&&(n.childComponents=i)}},hostVars:6,hostBindings:function(t,n){2&t&&e.AVh("selectable",n.selectable)("centered",n.centered)("list-empty",n.listEmpty)},inputs:{baseConfig:"baseConfig"},features:[e.Jv_([N.B]),e.Vt3],decls:15,vars:14,consts:[["listContent",""],["indicator",""],["childComponent",""],[1,"list-content",3,"storefrontCheckOverflow"],[3,"ngSwitch"],["class","list-position-indicator",4,"ngIf"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],["class","list-no-results",3,"storefrontTranslate","storefrontTranslateArgs",4,"ngIf"],["class","list-error",4,"ngIf"],[1,"list-actions"],["class","action-button list-entries-expand-toggle",3,"expanded","click",4,"ngIf"],["mat-ripple","","class","action-button list-selection-confirm",3,"storefrontTranslate","click",4,"ngIf"],["mat-ripple","","class","action-button list-selection-reset",3,"storefrontTranslate","click",4,"ngIf"],["mat-ripple","","class","action-button list-selection-select-all",3,"storefrontTranslate","click",4,"ngIf"],["mat-ripple","","class","action-button list-selection-unselect-all",3,"storefrontTranslate","click",4,"ngIf"],["class","list-pagination-btns",4,"ngIf"],[1,"list-position-indicator"],["class","list-group",3,"storefrontDynamicAttributes",4,"ngFor","ngForOf","ngForTrackBy"],[1,"list-group",3,"storefrontDynamicAttributes"],["class","list-group-header",3,"baseConfig","baseContext","dataType",4,"ngIf"],["class","list-group-entries",4,"ngIf"],[1,"list-group-actions"],["class","action-button list-grouped-entries-expand-toggle",3,"expanded","click",4,"ngIf"],[1,"list-group-header",3,"baseConfig","baseContext","dataType"],[1,"list-group-entries"],["class","list-entry","mat-ripple","",3,"no-ripple","baseConfig","baseContext","dataType","selected","matRippleDisabled","click","delete",4,"ngFor","ngForOf","ngForTrackBy"],["mat-ripple","",1,"list-entry",3,"click","delete","baseConfig","baseContext","dataType","matRippleDisabled"],[1,"action-button","list-grouped-entries-expand-toggle",3,"click"],[3,"storefrontTranslate","storefrontTranslateArgs"],[1,"icon","icon-arrow-down"],[1,"list-no-results",3,"storefrontTranslate","storefrontTranslateArgs"],[1,"list-error"],["mat-ripple","",1,"action-button",3,"click","storefrontTranslate"],[1,"action-button","list-entries-expand-toggle",3,"click"],["mat-ripple","",1,"action-button","list-selection-confirm",3,"click","storefrontTranslate"],["mat-ripple","",1,"action-button","list-selection-reset",3,"click","storefrontTranslate"],["mat-ripple","",1,"action-button","list-selection-select-all",3,"click","storefrontTranslate"],["mat-ripple","",1,"action-button","list-selection-unselect-all",3,"click","storefrontTranslate"],[1,"list-pagination-btns"],["type","button","rel","next","aria-label","mehr",3,"href"]],template:function(t,n){1&t&&(e.j41(0,"div",3,0),e.qex(2,4),e.DNE(3,at,2,0,"div",5)(4,pt,2,2,"ng-container",6)(5,mt,2,2,"ng-container",7),e.bVm(),e.DNE(6,vt,1,2,"div",8)(7,Ct,3,5,"div",9),e.k0s(),e.j41(8,"div",10),e.DNE(9,bt,3,6,"div",11)(10,St,1,1,"button",12)(11,yt,1,1,"button",13)(12,Et,1,1,"button",14)(13,_t,1,1,"button",15),e.k0s(),e.DNE(14,Tt,3,1,"div",16)),2&t&&(e.AVh("processing",n.isAnyChildComponentProcessing()),e.Y8G("storefrontCheckOverflow",n.template),e.R7$(2),e.Y8G("ngSwitch",n.template),e.R7$(),e.Y8G("ngIf","tabs"===n.template),e.R7$(),e.Y8G("ngSwitchCase","group"),e.R7$(2),e.Y8G("ngIf",!n.error&&n.getData()&&!n.getData().length),e.R7$(),e.Y8G("ngIf",n.error&&n.config),e.R7$(2),e.Y8G("ngIf",n.showEntriesExpandToggle()),e.R7$(),e.Y8G("ngIf",n.config&&n.config.selection&&n.config.selection.confirm),e.R7$(),e.Y8G("ngIf",n.config&&n.config.selection&&n.config.selection.reset),e.R7$(),e.Y8G("ngIf",n.config&&n.config.selection&&n.config.selection.selectAll),e.R7$(),e.Y8G("ngIf",n.config&&n.config.selection&&n.config.selection.unSelectAll),e.R7$(),e.Y8G("ngIf",n.showPaginationButton))},dependencies:[p.Sq,p.bT,p.ux,p.e1,p.fG,et.G,nt.M,it._,j.r6,ot],styles:['storefront-list{width:100%;position:relative;overflow-x:hidden;display:block}storefront-list>.list-content{display:flex;flex-direction:row;padding:var(--listPadding)}storefront-list .list-content.processing .list-entry:after{position:absolute;content:"";width:100%;height:100%;top:0;left:0;pointer-events:all}storefront-list[template=vertical]>.list-content,storefront-list .list-group-entries[template=vertical]>.list-content{flex-direction:column}storefront-list[template=vertical]>.list-content>.list-entry:not(:last-child),storefront-list .list-group-entries[template=vertical]>.list-content>.list-entry:not(:last-child){margin-bottom:var(--listItemGutter)}storefront-list[template=horizontal]>.list-content,storefront-list .list-group-entries[template=horizontal]>.list-content{overflow-x:auto}storefront-list[template=horizontal]>.list-content>.list-entry,storefront-list .list-group-entries[template=horizontal]>.list-content>.list-entry{margin-right:var(--listItemGutter);flex-shrink:0}storefront-list[template=horizontal]>.list-content>.list-entry:last-child,storefront-list .list-group-entries[template=horizontal]>.list-content>.list-entry:last-child{margin-right:0}storefront-list[template=horizontal].centered>.list-content>.list-entry:first-child,storefront-list .list-group-entries[template=horizontal].centered>.list-content>.list-entry:first-child{margin-left:auto}storefront-list[template=horizontal].centered>.list-content>.list-entry:last-child,storefront-list .list-group-entries[template=horizontal].centered>.list-content>.list-entry:last-child{margin-right:auto}storefront-list[template=horizontal].scrollable-horiz:after,storefront-list[template=horizontal].scrollable-horiz:before,storefront-list .list-group-entries[template=horizontal].scrollable-horiz:after,storefront-list .list-group-entries[template=horizontal].scrollable-horiz:before{top:0;position:absolute;content:"";height:100%;width:calc(2 * var(--listPaddingHoriz));z-index:3;opacity:0;pointer-events:none;background-color:inherit}storefront-list[template=horizontal].scrollable-horiz>.list-content:after,storefront-list .list-group-entries[template=horizontal].scrollable-horiz>.list-content:after{content:"";flex:0 0 var(--listPaddingHoriz)}storefront-list[template=horizontal].scrollable-right:after,storefront-list .list-group-entries[template=horizontal].scrollable-right:after{right:-1px;opacity:1;-webkit-mask-image:linear-gradient(to left,black 0%,black 25%,rgba(0,0,0,0) 100%);mask-image:linear-gradient(to left,#000,#000 25%,#0000)}storefront-list[template=horizontal].scrollable-left:before,storefront-list .list-group-entries[template=horizontal].scrollable-left:before{left:-1px;opacity:1;-webkit-mask-image:linear-gradient(to right,black 0%,black 25%,rgba(0,0,0,0) 100%);mask-image:linear-gradient(to right,#000,#000 25%,#0000)}storefront-list[template=grid]>.list-content,storefront-list .list-group-entries[template=grid]>.list-content{display:grid;grid-template-columns:repeat(var(--gridListColumns),minmax(0,1fr));grid-column-gap:var(--listItemGutter);grid-row-gap:var(--listItemGutter)}storefront-list[template=grid]>.list-content>.list-no-results,storefront-list[template=grid]>.list-content>.list-error,storefront-list .list-group-entries[template=grid]>.list-content>.list-no-results,storefront-list .list-group-entries[template=grid]>.list-content>.list-error{grid-column:1/calc(var(--gridListColumns) + 1)}storefront-list[template=group]>.list-content{flex-direction:column}storefront-list[template=group]>.list-content>.list-group>.list-group-header{width:100%}storefront-list[template=group]>.list-content>.list-group>.list-group-entries>.list-content{display:flex;flex-direction:row;padding:var(--listPadding) 0}storefront-list[template=group]>.list-content>.list-group .list-group-entries[template=vertical]>.list-content{flex-direction:column}storefront-list[template=group]>.list-content>.list-group>.list-group-actions>.list-grouped-entries-expand-toggle>.icon{font-size:.9em;margin-left:.5em}storefront-list[template=group]>.list-content>.list-group>.list-group-actions>.list-grouped-entries-expand-toggle.expanded>.icon:after{transform:rotate(-90deg)}storefront-list[template=tabs],storefront-list .list-group-entries[template=tabs]{display:flex;width:auto}storefront-list[template=tabs].centered,storefront-list .list-group-entries[template=tabs].centered{justify-content:center}storefront-list[template=tabs]>.list-content,storefront-list .list-group-entries[template=tabs]>.list-content{border-radius:var(--listTabBorderRadius);padding:0;flex-wrap:wrap}storefront-list[template=tabs]>.list-content:after,storefront-list .list-group-entries[template=tabs]>.list-content:after{content:"";position:absolute;border:var(--listTabBorderWidth) solid var(--listTabHighlightColor);width:calc(100% - 2 * var(--listTabBorderWidth));height:calc(100% - 2 * var(--listTabBorderWidth));border-radius:var(--listTabBorderRadius);pointer-events:none;transform:translateZ(0)}storefront-list[template=tabs]>.list-content .list-position-indicator,storefront-list .list-group-entries[template=tabs]>.list-content .list-position-indicator{position:absolute;background-color:var(--listTabHighlightColor);transition:transform .1s ease}storefront-list[template=tabs]>.list-content>.list-entry,storefront-list .list-group-entries[template=tabs]>.list-content>.list-entry{padding:var(--gutter);transition:background-color .2s ease;height:calc(100% - var(--listTabBorderWidth))}storefront-list[template=tabs]>.list-content>.list-entry.selected,storefront-list .list-group-entries[template=tabs]>.list-content>.list-entry.selected{color:var(--listTabHighlightTextColor);transition:color .1s 50ms ease}storefront-list[template=tabs]>.list-content>.list-entry:not(:last-child),storefront-list .list-group-entries[template=tabs]>.list-content>.list-entry:not(:last-child){border-right:var(--listTabBorderWidth) solid var(--listTabHighlightColor)}storefront-list .list-error button.action-button{margin:0 8px;background-color:var(--secondaryColor);color:#fff}storefront-list:has(.list-pagination-btns){padding-bottom:25px}storefront-list .list-pagination-btns{position:absolute;bottom:5px;left:50%;z-index:1}storefront-list .list-pagination-btns a{cursor:pointer}\n'],encapsulation:2,changeDetection:0}),u})();var Dt=a(6218),Lt=a(8301),Gt=a(6483),At=a(6895);let Rt=(()=>{var s;class u{}return(s=u).\u0275fac=function(t){return new(t||s)},s.\u0275mod=e.$C({type:s}),s.\u0275inj=e.G2t({imports:[p.MD]}),u})(),It=(()=>{var s;class u{}return(s=u).\u0275fac=function(t){return new(t||s)},s.\u0275mod=e.$C({type:s}),s.\u0275inj=e.G2t({imports:[p.MD,Dt.SectionModule,Lt.d,Gt.h,At.r,j.pZ,Rt]}),u})();const Pt=xt},9758:(M,T,a)=>{a.d(T,{x:()=>p});var p=function(f){return f.URL="URL",f.USER_ATTRIBUTE="USER_ATTRIBUTE",f}(p||{})}}]);
1
+ "use strict";(self.webpackChunkstorefront=self.webpackChunkstorefront||[]).push([["projects_storefront_src_app_component_base-component_base-datacollection_component_ts-project-6cb588","projects_storefront_src_app_config_common_config_ts"],{3713:(M,T,a)=>{a.d(T,{r:()=>R});var p=a(1210),f=a(4452),e=a(4412),G=a(3953);let R=(()=>{var _;class I extends p.${constructor(){super(...arguments),this.dependingDataCollections=[],this.excludedData=[],this.latestDataSubject$=new e.t(null),this.skipWait=new e.t(!1)}ngOnInit(){if(!0===this.baseConfig.excludeContentPriorLoaded){const y=this.getDataSourceType();this.dependingDataCollections=this.contextService.getDataCollectionComponents().filter(E=>E.getDataSourceType()===y),this.dependingDataCollections.forEach(E=>{E.skipWait.value||E.skipWait.next(!0)})}!0!==this.baseConfig.dontExcludeThisContent&&this.contextService.registerDataCollectionComponent(this),super.ngOnInit()}ngOnDestroy(){super.ngOnDestroy(),this.contextService.unregisterDataCollectionComponent(this)}getDataSourceType(){return(0,f.xV)(this.baseConfig)}getDependingDataCollections(){return this.dependingDataCollections}notifyHasData(y){this.excludedData=this.excludedData.concat(y.data),this.dependingDataCollections&&this.dependingDataCollections.length>0&&(this.dependingDataCollections=this.dependingDataCollections.filter(E=>E!==y.component),0===this.dependingDataCollections.length&&this.setComponentContext("resolvedDependencies","true"))}dataArrived(y){this.latestDataSubject$.next(y),this.contextService.notifyContainerComponents({component:this,data:y})}getLatestData(){return this.latestDataSubject$.value}getExcludedData(){return this.dependingDataCollections.length>0?void 0:this.excludedData}}return(_=I).\u0275fac=(()=>{let A;return function(E){return(A||(A=G.xGo(_)))(E||_)}})(),_.\u0275dir=G.FsC({type:_,features:[G.Vt3]}),I})()},6479:(M,T,a)=>{a.r(T),a.d(T,{ListModule:()=>Rt,component:()=>It});var p=a(177),f=a(467),e=a(3953),G=a(1413),R=a(3726),_=a(152),I=a(6977),A=a(9758),y=a(873),E=a(4452),m=a(8179),N=a(8251),z=a(610),x=a(3178),B=a(2962),Y=a(7598),k=a(8890),H=a(3472),v=a(1803),j=function(s){return s.FIRST="FIRST",s.ALL="ALL",s}(j||{});const F={dataSource:null,template:v.TS.VERTICAL,groupTemplate:v.TS.VERTICAL,content:null,emptyMessage:"LIST_NO_RESULTS",errorMessage:"LIST_ERROR",errorButtonLabel:"LIST_ERROR_BUTTON",maxLoadMoreRetries:2};var P=a(362);function D(s){return!!s&&s.groupable}var Q=a(7967),w=a(8075),W=a(7879),U=a(4559),K=a(8004),Z=a(9516),$=a(4748),J=a(8471),q=a(1652),tt=a(680),et=a(8909),nt=a(3648),X=a(6600);let it=(()=>{var s;class u{set storefrontDynamicAttributes(t){var n;t=null!==(n=t)&&void 0!==n?n:{};for(const[i,o]of Object.entries(t))o&&this.el.nativeElement.setAttribute(i,o);for(const i of Object.keys(this.currentAttributes))t[i]||this.el.nativeElement.removeAttribute(i);this.currentAttributes=t}constructor(t){this.el=t,this.currentAttributes={}}}return(s=u).\u0275fac=function(t){return new(t||s)(e.rXU(e.aKT))},s.\u0275dir=e.FsC({type:s,selectors:[["","storefrontDynamicAttributes",""]],inputs:{storefrontDynamicAttributes:"storefrontDynamicAttributes"}}),u})();const ot=["listContent"],st=["indicator"],rt=["childComponent"],O=s=>[s];function lt(s,u){1&s&&e.nrm(0,"div",17,1)}function at(s,u){if(1&s&&e.nrm(0,"storefront-element",24),2&s){const r=e.XpG().$implicit,t=e.XpG(2);e.Y8G("baseConfig",t.groupHeaderConfig[r])("baseContext",t.groupHeaderContext[r])("dataType",t.getGroupDataType(r))}}function ct(s,u){if(1&s){const r=e.RV6();e.j41(0,"storefront-element",27,2),e.bIt("click",function(n){const i=e.eBV(r).$implicit,o=e.sdS(1),l=e.XpG(4);return e.Njj(l.onClickEntry(o,i,n))})("delete",function(n){e.eBV(r);const i=e.XpG(4);return e.Njj(i.onDeleteEntry(n))}),e.k0s()}if(2&s){const r=u.$implicit,t=u.index,n=e.sdS(1),i=e.XpG(2).index,o=e.XpG(2);e.AVh("no-ripple",!(null!=o.config&&null!=o.config.selection&&o.config.selection.ripple))("selected",o.isSelected(n)),e.Y8G("baseConfig",o.getEntryConfig(r))("baseContext",o.getEntryContext(r,t,i))("dataType",o.getDataType())("matRippleDisabled",!(null!=o.config&&null!=o.config.selection&&o.config.selection.ripple)),e.BMQ("data-entry-index",t)}}function ut(s,u){if(1&s&&(e.j41(0,"div",25)(1,"div",3),e.DNE(2,ct,2,9,"storefront-element",26),e.k0s()()),2&s){const r=e.XpG(),t=r.$implicit,n=r.index,i=e.XpG(2);e.BMQ("template",i.config.groupTemplate)("data-group-index",n),e.R7$(),e.Y8G("storefrontCheckOverflow",i.config.groupTemplate),e.R7$(),e.Y8G("ngForOf",i.slicedGroupData[t])("ngForTrackBy",i.trackBySlicedData)}}function dt(s,u){if(1&s){const r=e.RV6();e.j41(0,"div",28),e.bIt("click",function(){e.eBV(r);const n=e.XpG().$implicit,i=e.XpG(2);return e.Njj(i.toggleGroupedEntriesLength(n))}),e.nrm(1,"span",29)(2,"i",30),e.k0s()}if(2&s){const r=e.XpG().$implicit,t=e.XpG(2);e.AVh("expanded",t.groupedEntriesLength[r]>=t.groupData[r].length),e.R7$(),e.Y8G("storefrontTranslate",t.getExpandCollapseMessage("EXPAND_COLLAPSE_GROUPED_ENTRIES",r))("storefrontTranslateArgs",e.eq3(4,O,t.groupData[r].length-t.getGroupedEntriesConfigLength()))}}function gt(s,u){if(1&s&&(e.j41(0,"div",19),e.DNE(1,at,1,3,"storefront-element",20)(2,ut,3,5,"div",21),e.j41(3,"div",22),e.DNE(4,dt,3,6,"div",23),e.k0s()()),2&s){const r=u.$implicit,t=e.XpG(2);e.Y8G("storefrontDynamicAttributes",t.groupAttributes&&t.groupAttributes[r]),e.R7$(),e.Y8G("ngIf",t.config&&t.groupHeaderConfig&&t.groupHeaderConfig[r]),e.R7$(),e.Y8G("ngIf",t.slicedGroupData),e.R7$(2),e.Y8G("ngIf",t.showGroupedEntriesExpandToggle(r))}}function ft(s,u){if(1&s&&(e.qex(0),e.DNE(1,gt,5,4,"div",18),e.bVm()),2&s){const r=e.XpG();e.R7$(),e.Y8G("ngForOf",r.slicedGroups)("ngForTrackBy",r.trackBySlicedData)}}function pt(s,u){if(1&s){const r=e.RV6();e.j41(0,"storefront-element",27,2),e.bIt("click",function(n){const i=e.eBV(r).$implicit,o=e.sdS(1),l=e.XpG(2);return e.Njj(l.onClickEntry(o,i,n))})("delete",function(n){e.eBV(r);const i=e.XpG(2);return e.Njj(i.onDeleteEntry(n))}),e.k0s()}if(2&s){const r=u.$implicit,t=u.index,n=e.sdS(1),i=e.XpG(2);e.AVh("no-ripple",!(null!=i.config&&null!=i.config.selection&&i.config.selection.ripple))("selected",i.isSelected(n)),e.Y8G("baseConfig",i.getEntryConfig(r))("baseContext",i.getEntryContext(r,t))("dataType",i.getDataType())("matRippleDisabled",!(null!=i.config&&null!=i.config.selection&&i.config.selection.ripple)),e.BMQ("data-entry-index",t)}}function ht(s,u){if(1&s&&(e.qex(0),e.DNE(1,pt,2,9,"storefront-element",26),e.bVm()),2&s){const r=e.XpG();e.R7$(),e.Y8G("ngForOf",r.slicedData)("ngForTrackBy",r.trackBySlicedData)}}function mt(s,u){if(1&s&&e.nrm(0,"div",31),2&s){const r=e.XpG();e.Y8G("storefrontTranslate",r.emptyMessage)("storefrontTranslateArgs",r.emptyMessageVariables)}}function vt(s,u){if(1&s){const r=e.RV6();e.j41(0,"div",32),e.nrm(1,"span",29),e.j41(2,"button",33),e.bIt("click",function(){e.eBV(r);const n=e.XpG();return e.Njj(n.reload())}),e.k0s()()}if(2&s){const r=e.XpG();e.R7$(),e.Y8G("storefrontTranslate",r.config.errorMessage)("storefrontTranslateArgs",e.eq3(3,O,r.error.code)),e.R7$(),e.Y8G("storefrontTranslate",r.config.errorButtonLabel)}}function Ct(s,u){if(1&s){const r=e.RV6();e.j41(0,"div",34),e.bIt("click",function(){e.eBV(r);const n=e.XpG();return e.Njj(n.toggleEntriesLength())}),e.nrm(1,"span",29)(2,"i",30),e.k0s()}if(2&s){const r=e.XpG();e.AVh("expanded",r.entriesLimit>=(r.groups||r.data).length),e.R7$(),e.Y8G("storefrontTranslate",r.getExpandCollapseMessage("EXPAND_COLLAPSE_ENTRIES"))("storefrontTranslateArgs",e.eq3(4,O,r.data.length-r.getEntriesConfigLength()))}}function bt(s,u){if(1&s){const r=e.RV6();e.j41(0,"button",35),e.bIt("click",function(){e.eBV(r);const n=e.XpG();return e.Njj(n.confirmSelection())}),e.k0s()}if(2&s){const r=e.XpG();e.Y8G("storefrontTranslate",r.getMessage("CONFIRM"))}}function yt(s,u){if(1&s){const r=e.RV6();e.j41(0,"button",36),e.bIt("click",function(){e.eBV(r);const n=e.XpG();return e.Njj(n.resetSelection())}),e.k0s()}if(2&s){const r=e.XpG();e.Y8G("storefrontTranslate",r.getMessage("RESET"))}}function Et(s,u){if(1&s){const r=e.RV6();e.j41(0,"button",37),e.bIt("click",function(){e.eBV(r);const n=e.XpG();return e.Njj(n.selectAll())}),e.k0s()}if(2&s){const r=e.XpG();e.Y8G("storefrontTranslate",r.getMessage("SELECT_ALL"))}}function St(s,u){if(1&s){const r=e.RV6();e.j41(0,"button",38),e.bIt("click",function(){e.eBV(r);const n=e.XpG();return e.Njj(n.unSelectAll())}),e.k0s()}if(2&s){const r=e.XpG();e.Y8G("storefrontTranslate",r.getMessage("UNSELECT_ALL"))}}function _t(s,u){if(1&s&&(e.j41(0,"div",39)(1,"a",40),e.EFF(2," mehr "),e.k0s()()),2&s){const r=e.XpG();e.R7$(),e.Y8G("href",r.generateUrlWithPageSet(),e.B4B)}}const V="data";let Tt=(()=>{var s;class u extends H.M{get selectable(){return this.baseConfig.selection}get centered(){return this.baseConfig.centered}get isNotHorizontalList(){return this.template!==v.TS.HORIZONTAL}get paginationSuffix(){var t;return null===(t=this.config)||void 0===t||null===(t=t.pagination)||void 0===t?void 0:t.suffix}get showPaginationButton(){return!!(this.isNotHorizontalList&&this.hasNext&&this.paginationSuffix)}constructor(t,n,i,o,l,c,d,g,C,h,S,b,L,Pt,Ot){super(i,n,d,g,L),this.store=t,this.elementRef=n,this.injector=i,this.router=o,this.changeDetectorRef=l,this.eventActionService=c,this.contextService=d,this.document=g,this.platformId=C,this.transferState=h,this.ssrService=S,this.purpleService=b,this.globalService=L,this.route=Pt,this.purpleEnv=Ot,this.defaultConfig={...F},this.selectedComponents=[],this.initiallySelectedComponents=[],this.destroyRef$=new G.B,this.slicedGroupData={},this.entryContextCache={},this.groupedEntriesLength={},this.listenQueryParamsInit=!1}ngOnInit(){this.baseContext.isGhost||(this.store.subscribe((0,R.R)(this.listContent.nativeElement,"scroll",{passive:!0}).pipe((0,_.B)(100)),t=>this.onScroll()),this.store.subscribe((0,k.Ne)(),t=>{this.updatePositionIndicator(this.selectedComponents[0]).then(()=>this.changeDetectorRef.detectChanges())}),this.isNotHorizontalList&&(0,p.UE)(this.platformId)&&this.store.subscribe((0,R.R)(window,Y.Zm),t=>{(t.detail.emitter===this.elementRef.nativeElement||t.detail.emitter.contains(this.elementRef.nativeElement))&&this.loadMore()}),super.ngOnInit())}ngOnDestroy(){this.destroyRef$.next(),this.destroyRef$.complete()}onScroll(){(0,p.UE)(this.platformId)&&this.isNotHorizontalList&&(0,B.IL)(this.listContent.nativeElement,!0)>y._&&this.loadMore()}loadOnVisible(){var t=this;return(0,f.A)(function*(){(0,p.Vy)(t.platformId)||!t.ssrService.currentPrebootStatus?t.loadAndInit():(t.store.subscribe((0,k.eh)(t,t.elementRef,{skipWait:t.purpleEnv.isUniversal&&!t.ssrService.currentPrebootStatus||t.skipWait}),n=>t.loadAndInit(),x.lQ,x.lQ,"visible"),t.skipWait.subscribe(n=>{n&&(t.store.unsubscribe("visible"),t.loadAndInit())}))})()}onConfigChanges(){var t=this;return(0,f.A)(function*(){t.listenQueryParams();const n=t.getExcludedData();if(null!=n){if((!t.dataSource||t.dataSource.hasConfigChanged(t.config.dataSource))&&(t.dataSource?(t.dataSource.setConfig(t.config.dataSource),t.dataSource.reset()):(t.dataSource=(0,E.O8)(t.injector,t.config.dataSource,t.elementRef.nativeElement,t.document),n.length>0&&t.dataSource.setExcludedData(n))),t.store.hasSubscription(V)||(t.store.subscribe(t.dataSource.data$,function(){var o=(0,f.A)(function*(l){var c,d,g;t.hasNext=!(null===(c=t.dataSource)||void 0===c||null===(c=c.lastCallMetadata)||void 0===c||!c.hasNextPage||null===(d=t.data)||void 0===d||!d.length)&&(null===(g=t.dataSource)||void 0===g||null===(g=g.lastCallMetadata)||void 0===g?void 0:g.hasNextPage);const C=!t.data||t.data.length&&t.data.every(S=>null===S);t.data=l;const h=!t.data||t.data.length&&t.data.every(S=>null===S);h||t.dataArrived(t.data),t.listEmpty=0===(null==l?void 0:l.length),yield t.setGroupData(),t.updateAllSlicedData(),t.changedEntryContexts(),h||t.changeDetectorRef.detectChanges(),C&&t.loadMoreUntilFilled()});return function(l){return o.apply(this,arguments)}}(),x.lQ,x.lQ,V),t.store.subscribe(t.dataSource.error$,o=>{t.error=o,o&&t.dataArrived([])},x.lQ,x.lQ,"error")),!t.dataSource.hasData())try{t.loadOnVisible()}catch{}var i;t.config.selection&&t.dataSource.hasData()&&(t.elementRef.nativeElement.setAttribute("template",t.config.template),t.setSelectionFromContext()),t.config.emptyMessage&&(t.emptyMessage="string"==typeof t.config.emptyMessage?t.config.emptyMessage:t.config.emptyMessage.message,t.emptyMessageVariables="string"==typeof t.config.emptyMessage?[]:null!==(i=t.config.emptyMessage.variables)&&void 0!==i?i:[]),t.changedEntryContexts()}})()}updateAllSlicedData(){var t,n;if(this.entriesLimit=null!==(t=null!==(n=this.entriesLimit)&&void 0!==n?n:this.getEntriesConfigLength())&&void 0!==t?t:1/0,this.template===v.TS.GROUP){this.slicedGroups=this.groups.slice(0,this.entriesLimit);const o=this.getGroupedEntriesConfigLength();for(const l of this.groups)this.groupedEntriesLength[l]||(this.groupedEntriesLength[l]=o),this.slicedGroupData[l]=this.groupData[l].slice(0,this.groupedEntriesLength[l])}else{var i;this.slicedData=null===(i=this.data)||void 0===i||null===(i=i.slice(0,this.entriesLimit))||void 0===i?void 0:i.filter(o=>(0,m.ru)(this.getEntryConfig(o),this.getEntryContext(o),this.contextService.$functions,this.globalService.getGlobalData()))}}getGroupedEntriesConfigLength(){var t;return null===(t=this.config)||void 0===t||null===(t=t.lengthLimit)||void 0===t?void 0:t.groupedEntries}getEntriesConfigLength(){var t;return null===(t=this.config)||void 0===t||null===(t=t.lengthLimit)||void 0===t?void 0:t.entries}showEntriesExpandToggle(){var t,n,i;return(null===(t=this.config)||void 0===t?void 0:t.template)===v.TS.GROUP?(null===(i=this.groups)||void 0===i?void 0:i.length)>this.getEntriesConfigLength():(null===(n=this.data)||void 0===n?void 0:n.length)>this.getEntriesConfigLength()}showGroupedEntriesExpandToggle(t){var n;return t&&(null===(n=this.groupData[t])||void 0===n?void 0:n.length)>this.getGroupedEntriesConfigLength()}toggleEntriesLength(){var n;this.entriesLimit=void 0===this.entriesLimit||this.entriesLimit<1/0?1/0:this.getEntriesConfigLength(),this.template===v.TS.GROUP?this.slicedGroups=this.groups.slice(0,this.entriesLimit):this.slicedData=null===(n=this.data)||void 0===n||null===(n=n.slice(0,this.entriesLimit))||void 0===n?void 0:n.filter(i=>(0,m.ru)(this.getEntryConfig(i),this.getEntryContext(i),this.contextService.$functions,this.globalService.getGlobalData()))}toggleGroupedEntriesLength(t){void 0===this.groupedEntriesLength[t]||this.groupedEntriesLength[t]<1/0?(this.groupedEntriesLength[t]=1/0,this.slicedGroupData[t]=this.groupData[t]):(this.groupedEntriesLength[t]=this.getGroupedEntriesConfigLength(),this.slicedGroupData[t]=this.groupData[t].slice(0,this.groupedEntriesLength[t]))}changedEntryContexts(t){t?t.forEach(n=>{delete this.entryContextCache[n]}):this.entryContextCache={}}loadMoreUntilFilled(){var t=this;return(0,f.A)(function*(){let n=0,o=t.getElementRef().nativeElement.closest("body, storefront-embeddable-view .content, storefront-modal .modal-content");if(o===t.document.body&&t.document.scrollingElement!==o&&(o=t.document.scrollingElement),o)for(;o.scrollHeight<o.clientHeight&&null!==(l=t.dataSource.lastCallMetadata)&&void 0!==l&&l.hasNextPage;){var l;if(n>=t.config.maxLoadMoreRetries)return void console.warn("loadMore was called ".concat(t.config.maxLoadMoreRetries," times, but screen still isn't filled. Increase List maxLoadMoreRetries or DataSource batchSize"));yield t.loadMore(),n++}})()}loadAndInit(){var t=this;return(0,f.A)(function*(){t.isNotHorizontalList&&t.paginationSuffix?(t.currentPageSet=t.route.snapshot.queryParams["page-set-".concat(t.paginationSuffix)],t.currentPageSet&&(t.dataSource.cursor=t.currentPageSet),yield t.dataSource.loadData({ignoreCursor:!t.currentPageSet})):yield t.dataSource.loadData(),t.paginationSuffix&&(t.currentPageSet=t.dataSource.cursor),t.config.selection&&t.dataSource.hasData()&&(t.elementRef.nativeElement.setAttribute("template",t.config.template),t.setSelectionFromContext(!0))})()}loadMore(){var t=this;return(0,f.A)(function*(){try{yield t.dataSource.loadMore(),t.paginationSuffix&&(t.currentPageSet=t.dataSource.cursor,t.hasNext=!!t.currentPageSet)}catch{}})()}getData(){return this.data}isEmpty(){const t=this.getData();return t&&t.length}getGroups(){return D(this.dataSource)&&this.dataSource.getGroups()}getGroupData(t){return D(this.dataSource)&&this.dataSource.getGroupData(t)}getEntryContext(t,n,i){const o=null==t?void 0:t.id;if(o&&this.entryContextCache[o])return this.entryContextCache[o];let l;if(t){var c;let d=(0,m.uQ)(null!==(c=this.getConfig().dataSource.entryId)&&void 0!==c?c:this.getDataType(),this.context,this.contextService.$functions,this.globalService.getGlobalData());l={...this.context,[this.config&&d]:t,...null!=n?{entryIndex:n}:{},...null!=i?{groupIndex:i}:{}},o&&(this.entryContextCache[o]=l)}else l={...this.context,isGhost:!0,...null!=n?{entryIndex:n}:{},...null!=i?{groupIndex:i}:{}};return l}getGroupEntryContext(t){return{...this.context,[this.config&&this.config.dataSource.type]:t}}getGroupDataType(t){return D(this.dataSource)&&"group"}getGroupHeaderContext(t,n){var i=this;return(0,f.A)(function*(){const o=D(i.dataSource)&&(yield i.dataSource.getGroupHeaderContextData(t,n));return o?{...i.context,group:o}:void 0})()}getGroupHeaderConfig(t){if(this.config.groupHeader&&D(this.dataSource)){var n,i,o;let l={...this.config.groupHeader};return l.condition&&(l=(0,m.uQ)(l,this.groupHeaderContext[t],this.contextService.$functions,this.globalService.getGlobalData()),l=(0,m.v3)(l),!l)?null:null!==(n=null===(i=(o=this.dataSource).getGroupHeaderConfig)||void 0===i?void 0:i.call(o,l,t))&&void 0!==n?n:l}return null}onClickEntry(t,n,i){var o=this;return(0,f.A)(function*(){if(!o.isAnyChildComponentProcessing()&&((o.config.selection||o.baseConfig.tapEntry)&&o.store.dispatch((0,z.k4)({url:window.location.href,key:"".concat(o.getTrackingBaseKey(),"_").concat(t.getChildComponent().getTrackingBaseKey(),"_CLICKED"),params:t.getChildComponent().getTrackingParams()})),o.config.selection&&o.setSelection(t,!0),o.baseConfig.tapEntry)){t.processing=!0,o.changeDetectorRef.detectChanges();const l=(0,m.uQ)(o.baseConfig.tapEntry,o.getEntryContext(n),o.contextService.$functions,o.globalService.getGlobalData(),!1);yield o.eventActionService.processEventAction((0,m.v3)(l),t.getChildComponent(),o),t.processing=!1,o.changeDetectorRef.detectChanges()}})()}isAnyChildComponentProcessing(){return!(!this.childComponents||!this.childComponents.find(t=>t.processing))}setSelectionFromContext(t=!1){const n=this.getDataFromContext();let i=[];if(n)if("string"==typeof n){const o=this.childComponents.find(l=>l.getDataId()===n);o&&i.push(o)}else if("object"==typeof n)if(Array.isArray(n))i=this.childComponents.filter(o=>n.indexOf(o.getDataId())>-1);else{const o=this.childComponents.find(l=>l.getDataId()===n.id);o&&i.push(o)}!i.length&&this.config.selection.init&&(this.config.selection.init===j.ALL?this.config.selection.multi&&(i=this.childComponents.map(o=>o)):i.push(this.childComponents.toArray()[0])),i.length&&this.hasSelectionChanged(i)&&i.forEach(o=>this.setSelection(o,!1,!0)),t&&(this.initiallySelectedComponents=[...i])}setSelection(t,n=!1,i=!1){this.config.selection.multi?(this.isSelected(t)?n&&(this.selectedComponents=this.selectedComponents.filter(o=>o!==t)):this.selectedComponents.push(t),this.config.selection.confirm||this.updateSelection()):(this.selectedComponents=[t],this.config.selection.confirm||this.updatePositionIndicator(t,i?100:0).then(()=>this.updateSelection()),this.template!==v.TS.TABS&&t.scrollIntoView(this.getScrollOptions()))}updatePositionIndicator(t,n=0){var i=this;return(0,f.A)(function*(){return new Promise(o=>{if(i.template===v.TS.TABS){const l=t.elementRef.nativeElement;(0,B.L$)(i.indicator.nativeElement,"transitionend",o),setTimeout(()=>{i.indicator.nativeElement.style.transform="translateX(".concat(l.offsetLeft-1,"px) translateY(").concat(l.offsetTop,"px)"),i.indicator.nativeElement.style.width=l.offsetWidth+1+"px",i.indicator.nativeElement.style.height=l.offsetHeight+"px"},n),setTimeout(o,n+500)}else o()})})()}updateSelection(){var t=this;return(0,f.A)(function*(){const n=t.config.selection.multi?"filter":"find",i=t.selectedComponents.map(o=>o.getDataId())[n](o=>!!o);t.config.selection.paramScope===A.x.USER_ATTRIBUTE?t.contextService.setUserAttribute(t.config.selection.param,i):(0,w.CV)(t.router,{[t.config.selection.param]:i})})()}getScrollOptions(){return{behavior:"smooth",axis:this.template===v.TS.HORIZONTAL?"horiz":void 0,padding:!0}}onDeleteEntry(t){const n=null==t?void 0:t.id;n&&this.entryContextCache[n]&&delete this.entryContextCache[n],this.dataSource.update()}reload(){(0,p.UE)(this.platformId)&&window.location.reload()}isSelected(t){return this.selectedComponents.indexOf(t)>-1}confirmSelection(){var t=this;return(0,f.A)(function*(){yield t.updateSelection(),t.eventActionService.processEventAction((0,m.v3)((0,m.uQ)(t.config.selection.confirm.action,t.context,t.contextService.$functions,t.globalService.getGlobalData())),t)})()}resetSelection(){this.selectedComponents=[...this.initiallySelectedComponents],this.config.selection.confirm||this.updateSelection()}unSelectAll(){this.selectedComponents=[],this.config.selection.confirm||this.updateSelection()}selectAll(){this.selectedComponents=this.childComponents.toArray(),this.config.selection.confirm||this.updateSelection()}setGroupData(){var t=this;return(0,f.A)(function*(){if(D(t.dataSource)&&t.template===v.TS.GROUP){const n=t.getGroups();if(P(t.groups,n)||(t.groups=n),t.groupData?(Object.keys(t.groupData).forEach(i=>{t.groups.indexOf(i)<0&&delete t.groupData[i]}),t.groups.forEach(i=>{const o=t.getGroupData(i);P(o,t.groupData[i])||(t.groupData[i]=o)})):t.groupData=t.groups.reduce((i,o)=>({...i,[o]:t.getGroupData(o)}),{}),t.config.groupHeader){const i=yield Promise.all(t.groups.map(function(){var l=(0,f.A)(function*(c){return[c,yield t.getGroupHeaderContext(c,t.groupData[c])]});return function(c){return l.apply(this,arguments)}}()));if(!P(t.groups,n))return;t.groups=t.groups.filter(l=>i.some(([c,d])=>c===l&&!!d));const o={};for(const[l,c]of i)o[l]=c;if(t.groupHeaderContext=o,t.groupHeaderConfig=t.groups.reduce((l,c)=>({...l,[c]:t.getGroupHeaderConfig(c)}),{}),t.config.groupAttributes){t.groupAttributes={};for(const[l,c]of Object.entries(o)){const d=(0,m.uQ)({...t.config.groupAttributes},c,t.contextService.$functions,t.globalService.getGlobalData(),!1);for(const g of Object.keys(d))null!=d[g]&&(d[g]=(0,m.v3)(d[g]));t.groupAttributes[l]=d}}}}})()}getMessage(t){switch(t){case"CONFIRM":return this.config.selection.confirm.message||"LIST_ACTION_CONFIRM";case"RESET":return"string"==typeof this.config.selection.reset?this.config.selection.reset:"LIST_ACTION_RESET";case"SELECT_ALL":return"string"==typeof this.config.selection.selectAll?this.config.selection.selectAll:"LIST_ACTION_SELECT_ALL";case"UNSELECT_ALL":return"string"==typeof this.config.selection.unSelectAll?this.config.selection.unSelectAll:"LIST_ACTION_UNSELECT_ALL"}}getExpandCollapseMessage(t,n){function i(b,L){return"string"==typeof b?b:(0,Q.t)(b,L)}if("EXPAND_COLLAPSE_ENTRIES"===t){const b=(this.template===v.TS.GROUP?this.groups:this.data).length-this.getEntriesConfigLength();var o,l,c,d;return i(void 0!==this.entriesLimit&&this.entriesLimit<1/0?null!==(o=null===(l=this.config.lengthLimit)||void 0===l?void 0:l.entriesExpandMessage)&&void 0!==o?o:{singular:"LIST_ENTRY_TOGGLE_EXPAND",plural:"LIST_ENTRIES_TOGGLE_EXPAND"}:null!==(c=null===(d=this.config.lengthLimit)||void 0===d?void 0:d.entriesCollapseMessage)&&void 0!==c?c:{singular:"LIST_ENTRY_TOGGLE_COLLAPSE",plural:"LIST_ENTRIES_TOGGLE_COLLAPSE"},b)}{const b=this.groupData[n].length-this.getGroupedEntriesConfigLength();var g,C,h,S;return i(void 0!==this.groupedEntriesLength[n]&&this.groupedEntriesLength[n]<1/0?null!==(g=null===(C=this.config.lengthLimit)||void 0===C?void 0:C.groupedEntriesExpandMessage)&&void 0!==g?g:{singular:"LIST_GROUPED_ENTRY_TOGGLE_EXPAND",plural:"LIST_GROUPED_ENTRIES_TOGGLE_EXPAND"}:null!==(h=null===(S=this.config.lengthLimit)||void 0===S?void 0:S.groupedEntriesCollapseMessage)&&void 0!==h?h:{singular:"LIST_GROUPED_ENTRY_TOGGLE_COLLAPSE",plural:"LIST_GROUPED_ENTRIES_TOGGLE_COLLAPSE"},b)}}hasSelectionChanged(t){return this.selectedComponents.length!==t.length||this.selectedComponents.find((n,i)=>n!==t[i])}isSelectionEnabled(){return this.config&&!!this.config.selection}getParam(){return this.config&&this.config.selection&&this.config.selection.param}getSelectionScope(){return this.config&&this.config.selection&&this.config.selection.paramScope}getConfigEscapeProperties(){return[...super.getConfigEscapeProperties(),"groupHeader","groupAttributes","tapEntry"]}trackBySlicedData(t,n){var i,o,l,c,d,g,C,h;return"string"!=typeof n&&n?null!==(i=null!==(o=null!==(l=null!==(c=null==n?void 0:n.id)&&void 0!==c?c:null==n||null===(d=n.issue)||void 0===d?void 0:d.id)&&void 0!==l?l:null==n||null===(g=n.post)||void 0===g?void 0:g.id)&&void 0!==o?o:null==n||null===(C=n.bundle)||void 0===C?void 0:C.id)&&void 0!==i?i:null==n||null===(h=n.ad)||void 0===h?void 0:h.id:n}generateUrlWithPageSet(){const t="page-set-".concat(this.paginationSuffix),n={...this.route.snapshot.queryParams,[t]:this.currentPageSet};return this.router.createUrlTree([],{relativeTo:this.route,queryParams:n}).toString()}listenQueryParams(){(0,p.UE)(this.platformId)&&this.isNotHorizontalList&&this.paginationSuffix&&!this.listenQueryParamsInit&&(this.listenQueryParamsInit=!0,this.route.queryParams.pipe((0,I.Q)(this.destroyRef$)).subscribe(t=>{!t["page-set-".concat(this.paginationSuffix)]&&this.currentPageSet&&(this.currentPageSet="",this.loadAndInit())}))}}return(s=u).type="list",s.\u0275fac=function(t){return new(t||s)(e.rXU(N.B),e.rXU(e.aKT),e.rXU(e.zZn),e.rXU(U.Ix),e.rXU(e.gRc),e.rXU(K.G),e.rXU(Z.V),e.rXU(p.qQ),e.rXU(e.Agw),e.rXU(e.pJN),e.rXU($.i),e.rXU(J.Wj),e.rXU(q.d),e.rXU(U.nX),e.rXU(W.r6))},s.\u0275cmp=e.VBU({type:s,selectors:[["storefront-list"]],viewQuery:function(t,n){if(1&t&&(e.GBs(ot,7,e.aKT),e.GBs(st,5,e.aKT),e.GBs(rt,5)),2&t){let i;e.mGM(i=e.lsd())&&(n.listContent=i.first),e.mGM(i=e.lsd())&&(n.indicator=i.first),e.mGM(i=e.lsd())&&(n.childComponents=i)}},hostVars:6,hostBindings:function(t,n){2&t&&e.AVh("selectable",n.selectable)("centered",n.centered)("list-empty",n.listEmpty)},inputs:{baseConfig:"baseConfig"},features:[e.Jv_([N.B]),e.Vt3],decls:15,vars:14,consts:[["listContent",""],["indicator",""],["childComponent",""],[1,"list-content",3,"storefrontCheckOverflow"],[3,"ngSwitch"],["class","list-position-indicator",4,"ngIf"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],["class","list-no-results",3,"storefrontTranslate","storefrontTranslateArgs",4,"ngIf"],["class","list-error",4,"ngIf"],[1,"list-actions"],["class","action-button list-entries-expand-toggle",3,"expanded","click",4,"ngIf"],["mat-ripple","","class","action-button list-selection-confirm",3,"storefrontTranslate","click",4,"ngIf"],["mat-ripple","","class","action-button list-selection-reset",3,"storefrontTranslate","click",4,"ngIf"],["mat-ripple","","class","action-button list-selection-select-all",3,"storefrontTranslate","click",4,"ngIf"],["mat-ripple","","class","action-button list-selection-unselect-all",3,"storefrontTranslate","click",4,"ngIf"],["class","list-pagination-btns",4,"ngIf"],[1,"list-position-indicator"],["class","list-group",3,"storefrontDynamicAttributes",4,"ngFor","ngForOf","ngForTrackBy"],[1,"list-group",3,"storefrontDynamicAttributes"],["class","list-group-header",3,"baseConfig","baseContext","dataType",4,"ngIf"],["class","list-group-entries",4,"ngIf"],[1,"list-group-actions"],["class","action-button list-grouped-entries-expand-toggle",3,"expanded","click",4,"ngIf"],[1,"list-group-header",3,"baseConfig","baseContext","dataType"],[1,"list-group-entries"],["class","list-entry","mat-ripple","",3,"no-ripple","baseConfig","baseContext","dataType","selected","matRippleDisabled","click","delete",4,"ngFor","ngForOf","ngForTrackBy"],["mat-ripple","",1,"list-entry",3,"click","delete","baseConfig","baseContext","dataType","matRippleDisabled"],[1,"action-button","list-grouped-entries-expand-toggle",3,"click"],[3,"storefrontTranslate","storefrontTranslateArgs"],[1,"icon","icon-arrow-down"],[1,"list-no-results",3,"storefrontTranslate","storefrontTranslateArgs"],[1,"list-error"],["mat-ripple","",1,"action-button",3,"click","storefrontTranslate"],[1,"action-button","list-entries-expand-toggle",3,"click"],["mat-ripple","",1,"action-button","list-selection-confirm",3,"click","storefrontTranslate"],["mat-ripple","",1,"action-button","list-selection-reset",3,"click","storefrontTranslate"],["mat-ripple","",1,"action-button","list-selection-select-all",3,"click","storefrontTranslate"],["mat-ripple","",1,"action-button","list-selection-unselect-all",3,"click","storefrontTranslate"],[1,"list-pagination-btns"],["type","button","rel","next","aria-label","mehr",3,"href"]],template:function(t,n){1&t&&(e.j41(0,"div",3,0),e.qex(2,4),e.DNE(3,lt,2,0,"div",5)(4,ft,2,2,"ng-container",6)(5,ht,2,2,"ng-container",7),e.bVm(),e.DNE(6,mt,1,2,"div",8)(7,vt,3,5,"div",9),e.k0s(),e.j41(8,"div",10),e.DNE(9,Ct,3,6,"div",11)(10,bt,1,1,"button",12)(11,yt,1,1,"button",13)(12,Et,1,1,"button",14)(13,St,1,1,"button",15),e.k0s(),e.DNE(14,_t,3,1,"div",16)),2&t&&(e.AVh("processing",n.isAnyChildComponentProcessing()),e.Y8G("storefrontCheckOverflow",n.template),e.R7$(2),e.Y8G("ngSwitch",n.template),e.R7$(),e.Y8G("ngIf","tabs"===n.template),e.R7$(),e.Y8G("ngSwitchCase","group"),e.R7$(2),e.Y8G("ngIf",!n.error&&n.getData()&&!n.getData().length),e.R7$(),e.Y8G("ngIf",n.error&&n.config),e.R7$(2),e.Y8G("ngIf",n.showEntriesExpandToggle()),e.R7$(),e.Y8G("ngIf",n.config&&n.config.selection&&n.config.selection.confirm),e.R7$(),e.Y8G("ngIf",n.config&&n.config.selection&&n.config.selection.reset),e.R7$(),e.Y8G("ngIf",n.config&&n.config.selection&&n.config.selection.selectAll),e.R7$(),e.Y8G("ngIf",n.config&&n.config.selection&&n.config.selection.unSelectAll),e.R7$(),e.Y8G("ngIf",n.showPaginationButton))},dependencies:[p.Sq,p.bT,p.ux,p.e1,p.fG,tt.G,et.M,nt._,X.r6,it],styles:['storefront-list{width:100%;position:relative;overflow-x:hidden;display:block}storefront-list>.list-content{display:flex;flex-direction:row;padding:var(--listPadding)}storefront-list .list-content.processing .list-entry:after{position:absolute;content:"";width:100%;height:100%;top:0;left:0;pointer-events:all}storefront-list[template=vertical]>.list-content,storefront-list .list-group-entries[template=vertical]>.list-content{flex-direction:column}storefront-list[template=vertical]>.list-content>.list-entry:not(:last-child),storefront-list .list-group-entries[template=vertical]>.list-content>.list-entry:not(:last-child){margin-bottom:var(--listItemGutter)}storefront-list[template=horizontal]>.list-content,storefront-list .list-group-entries[template=horizontal]>.list-content{overflow-x:auto}storefront-list[template=horizontal]>.list-content>.list-entry,storefront-list .list-group-entries[template=horizontal]>.list-content>.list-entry{margin-right:var(--listItemGutter);flex-shrink:0}storefront-list[template=horizontal]>.list-content>.list-entry:last-child,storefront-list .list-group-entries[template=horizontal]>.list-content>.list-entry:last-child{margin-right:0}storefront-list[template=horizontal].centered>.list-content>.list-entry:first-child,storefront-list .list-group-entries[template=horizontal].centered>.list-content>.list-entry:first-child{margin-left:auto}storefront-list[template=horizontal].centered>.list-content>.list-entry:last-child,storefront-list .list-group-entries[template=horizontal].centered>.list-content>.list-entry:last-child{margin-right:auto}storefront-list[template=horizontal].scrollable-horiz:after,storefront-list[template=horizontal].scrollable-horiz:before,storefront-list .list-group-entries[template=horizontal].scrollable-horiz:after,storefront-list .list-group-entries[template=horizontal].scrollable-horiz:before{top:0;position:absolute;content:"";height:100%;width:calc(2 * var(--listPaddingHoriz));z-index:3;opacity:0;pointer-events:none;background-color:inherit}storefront-list[template=horizontal].scrollable-horiz>.list-content:after,storefront-list .list-group-entries[template=horizontal].scrollable-horiz>.list-content:after{content:"";flex:0 0 var(--listPaddingHoriz)}storefront-list[template=horizontal].scrollable-right:after,storefront-list .list-group-entries[template=horizontal].scrollable-right:after{right:-1px;opacity:1;-webkit-mask-image:linear-gradient(to left,black 0%,black 25%,rgba(0,0,0,0) 100%);mask-image:linear-gradient(to left,#000,#000 25%,#0000)}storefront-list[template=horizontal].scrollable-left:before,storefront-list .list-group-entries[template=horizontal].scrollable-left:before{left:-1px;opacity:1;-webkit-mask-image:linear-gradient(to right,black 0%,black 25%,rgba(0,0,0,0) 100%);mask-image:linear-gradient(to right,#000,#000 25%,#0000)}storefront-list[template=grid]>.list-content,storefront-list .list-group-entries[template=grid]>.list-content{display:grid;grid-template-columns:repeat(var(--gridListColumns),minmax(0,1fr));grid-column-gap:var(--listItemGutter);grid-row-gap:var(--listItemGutter)}storefront-list[template=grid]>.list-content>.list-no-results,storefront-list[template=grid]>.list-content>.list-error,storefront-list .list-group-entries[template=grid]>.list-content>.list-no-results,storefront-list .list-group-entries[template=grid]>.list-content>.list-error{grid-column:1/calc(var(--gridListColumns) + 1)}storefront-list[template=group]>.list-content{flex-direction:column}storefront-list[template=group]>.list-content>.list-group>.list-group-header{width:100%}storefront-list[template=group]>.list-content>.list-group>.list-group-entries>.list-content{display:flex;flex-direction:row;padding:var(--listPadding) 0}storefront-list[template=group]>.list-content>.list-group .list-group-entries[template=vertical]>.list-content{flex-direction:column}storefront-list[template=group]>.list-content>.list-group>.list-group-actions>.list-grouped-entries-expand-toggle>.icon{font-size:.9em;margin-left:.5em}storefront-list[template=group]>.list-content>.list-group>.list-group-actions>.list-grouped-entries-expand-toggle.expanded>.icon:after{transform:rotate(-90deg)}storefront-list[template=tabs],storefront-list .list-group-entries[template=tabs]{display:flex;width:auto}storefront-list[template=tabs].centered,storefront-list .list-group-entries[template=tabs].centered{justify-content:center}storefront-list[template=tabs]>.list-content,storefront-list .list-group-entries[template=tabs]>.list-content{border-radius:var(--listTabBorderRadius);padding:0;flex-wrap:wrap}storefront-list[template=tabs]>.list-content:after,storefront-list .list-group-entries[template=tabs]>.list-content:after{content:"";position:absolute;border:var(--listTabBorderWidth) solid var(--listTabHighlightColor);width:calc(100% - 2 * var(--listTabBorderWidth));height:calc(100% - 2 * var(--listTabBorderWidth));border-radius:var(--listTabBorderRadius);pointer-events:none;transform:translateZ(0)}storefront-list[template=tabs]>.list-content .list-position-indicator,storefront-list .list-group-entries[template=tabs]>.list-content .list-position-indicator{position:absolute;background-color:var(--listTabHighlightColor);transition:transform .1s ease}storefront-list[template=tabs]>.list-content>.list-entry,storefront-list .list-group-entries[template=tabs]>.list-content>.list-entry{padding:var(--gutter);transition:background-color .2s ease;height:calc(100% - var(--listTabBorderWidth))}storefront-list[template=tabs]>.list-content>.list-entry.selected,storefront-list .list-group-entries[template=tabs]>.list-content>.list-entry.selected{color:var(--listTabHighlightTextColor);transition:color .1s 50ms ease}storefront-list[template=tabs]>.list-content>.list-entry:not(:last-child),storefront-list .list-group-entries[template=tabs]>.list-content>.list-entry:not(:last-child){border-right:var(--listTabBorderWidth) solid var(--listTabHighlightColor)}storefront-list .list-error button.action-button{margin:0 8px;background-color:var(--secondaryColor);color:#fff}storefront-list:has(.list-pagination-btns){padding-bottom:25px}storefront-list .list-pagination-btns{position:absolute;bottom:5px;left:50%;z-index:1}storefront-list .list-pagination-btns a{cursor:pointer}\n'],encapsulation:2,changeDetection:0}),u})();var xt=a(6218),Dt=a(8301),Lt=a(6483),Gt=a(6895);let At=(()=>{var s;class u{}return(s=u).\u0275fac=function(t){return new(t||s)},s.\u0275mod=e.$C({type:s}),s.\u0275inj=e.G2t({imports:[p.MD]}),u})(),Rt=(()=>{var s;class u{}return(s=u).\u0275fac=function(t){return new(t||s)},s.\u0275mod=e.$C({type:s}),s.\u0275inj=e.G2t({imports:[p.MD,xt.SectionModule,Dt.d,Lt.h,Gt.r,X.pZ,At]}),u})();const It=Tt},9758:(M,T,a)=>{a.d(T,{x:()=>p});var p=function(f){return f.URL="URL",f.USER_ATTRIBUTE="USER_ATTRIBUTE",f}(p||{})}}]);
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkstorefront=self.webpackChunkstorefront||[]).push([["projects_storefront_src_app_component_bookmark_bookmark_module_ts"],{1721:(C,f,a)=>{a.r(f),a.d(f,{BookmarkModule:()=>N,component:()=>V});var u=a(177),r=a(9383),p=a(6953),c=a(1605),g=a(6483),v=a(4403),d=a(467),R=a(362),M=a(8179),I=a(4338),A=a(610),_=a(8091),E=a(7879),m=a(1210),D=a(2932),h=a(4404),n=a(9745);const i={openContent:{type:n.H.OPEN_CONTENT,mode:h.DisplayMode.MODAL,titleBar:!0,fallback:{path:"issueDetails",type:n.H.POPUP,params:{issue:"$context.bookmark.issueId"}}},deleteConfirm:!0,bookmarkTitleMessage:"BOOKMARK_TITLE",creationDateMessage:"BOOKMARK_CREATION_DATE_MESSAGE",pageLabelMessage:"BOOKMARK_PAGE_LABEL_MESSAGE"};var t=a(4438),T=a(20),B=a(5483),O=a(8004),L=a(8471),S=a(1652),G=a(8909),X=a(2813);const P=s=>[s];function j(s,b){if(1&s&&t.nrm(0,"h3",9),2&s){const l=t.XpG(2);t.Y8G("storefrontTranslate",l.config.bookmarkTitleMessage)("storefrontTranslateArgs",t.eq3(2,P,l.bookmarkTitle))}}function W(s,b){if(1&s&&t.nrm(0,"div",10),2&s){const l=t.XpG(2);t.Y8G("storefrontTranslate",l.config.pageLabelMessage)("storefrontTranslateArgs",t.eq3(2,P,l.pageLabel))}}function z(s,b){if(1&s){const l=t.RV6();t.qex(0),t.j41(1,"div",1),t.bIt("click",function(o){t.eBV(l);const k=t.XpG();return t.Njj(k.onClickBookmark(o))}),t.nrm(2,"storefront-image",2),t.k0s(),t.j41(3,"div",3),t.DNE(4,j,1,4,"h3",4),t.nrm(5,"div",5),t.nI1(6,"storefrontDate"),t.DNE(7,W,1,4,"div",6),t.j41(8,"div",7)(9,"i",8),t.bIt("click",function(o){t.eBV(l);const k=t.XpG();return t.Njj(k.onClickDelete(o))}),t.k0s()()(),t.bVm()}if(2&s){const l=t.XpG();t.R7$(2),t.Y8G("src",l.bookmark.thumbnailURL)("height",l.getImageHeight())("extendedThumbnail",null==l.issue||null==l.issue.thumbnailsExtended?null:l.issue.thumbnailsExtended.default),t.R7$(2),t.Y8G("ngIf",l.bookmarkTitle),t.R7$(),t.Y8G("storefrontTranslate",l.config.creationDateMessage)("storefrontTranslateArgs",t.eq3(9,P,t.bMT(6,7,l.bookmark.createdAt))),t.R7$(2),t.Y8G("ngIf",l.pageLabel)}}let F=(()=>{var s;class b extends m.${constructor(e,o,k,y,Y,U,Q,x,$,K){super(U,k,y,x,K),this.store=e,this.dialog=o,this.elementRef=k,this.contextService=y,this.eventActionService=Y,this.injector=U,this.changeDetectorRef=Q,this.document=x,this.purpleService=$,this.globalService=K,this.defaultConfig={...i},this.openLoading=!1,this.deleteLoading=!1}get issueType(){return this.bookmark&&this.bookmark.issueType}get bookmarkTitle(){return this.bookmark.title?this.bookmark.title:this.issue.name}ngOnInit(){super.ngOnInit()}onConfigChanges(){var e=this;return(0,d.A)(function*(){var o;e.context.bookmark&&(e.bookmark=e.context.bookmark,e.pageLabel=e.bookmark.pageLabel,e.issue=(null===(o=e.bookmark.customData)||void 0===o||null===(o=o.contentType)||void 0===o?void 0:o.length)>0?yield e.purpleService.getCatalogContent(e.bookmark.contentId).catch(()=>null):yield e.purpleService.getIssue(e.bookmark.contentId).catch(()=>null),e.issue&&(e.bookmark.issue=e.issue),e.publication=yield e.purpleService.getPublication(e.issue.publicationId),e.changeDetectorRef.detectChanges())})()}hasContextChanged(e){return!R(e.bookmark,this.bookmark)||super.hasContextChanged(e)}onClickBookmark(e){var o=this;return(0,d.A)(function*(){if(o.config.openContent){e.stopPropagation(),o.changeDetectorRef.detectChanges(),o.purpleService.getDownloadHandler(o.issue).then(y=>o.handleTrackAction("OPEN_CLICKED",y));const k={...(0,M.uQ)(o.config.openContent,o.context,o.contextService.$functions,o.globalService.getGlobalData()),issueId:o.issue.id,pageIndex:o.bookmark.pageIndex};yield o.eventActionService.processEventAction(k,o),o.changeDetectorRef.detectChanges()}})()}onClickDelete(e){var o=this;return(0,d.A)(function*(){if(e.stopPropagation(),o.config.deleteConfirm)try{yield o.dialog.confirm(o.bookmark.title?{text:"BOOKMARK_DELETE_MESSAGE_WITH_TITLE",args:[o.bookmark.title]}:"BOOKMARK_DELETE_MESSAGE","BOOKMARK_DELETE_TITLE","BOOKMARK_DELETE_CONFIRM","BOOKMARK_DELETE_CANCEL"),yield o.deleteBookmark()}catch{}else yield o.deleteBookmark()})()}deleteBookmark(){var e=this;return(0,d.A)(function*(){if(!e.deleteLoading)try{e.deleteLoading=!0,e.changeDetectorRef.detectChanges(),e.purpleService.getDownloadHandler(e.issue).then(o=>e.handleTrackAction("DELETE_CLICKED",o)),yield e.purpleService.deleteBookmark({id:e.bookmark.id}),e.purpleService.getDownloadHandler(e.issue).then(o=>e.handleTrackAction("DELETED",o)),e.deleteLoading=!1,e.changeDetectorRef.detectChanges(),e.delete.emit(e.bookmark)}catch(o){console.log(o),e.deleteLoading=!1,e.changeDetectorRef.detectChanges(),e.dialog.alert(e.bookmark.title?{text:"ERROR_DELETE_BOOKMARK_WITH_TITLE",args:(0,_._3)((0,_.E2)(o,e.contextService),e.bookmark)}:{text:"ERROR_DELETE_BOOKMARK",args:[(0,_.E2)(o,e.contextService)]},"DIALOG_ERROR"),e.purpleService.getDownloadHandler(e.issue).then(k=>e.handleTrackAction("DELETE_FAILED",k))}})()}getImageHeight(){return D.q.FIXED}getTrackingBaseKey(e){return this.elementId||e&&"".concat(e.getContentType(),"_").concat(this.getType())||this.getType()}getTrackingParams(e){const o=(0,E.aM)(this.bookmark,this.issue,this.publication);return{...e&&(0,E.Gw)(e.getContentType())?(0,E.bJ)(e.issue,e.publication,null,"SOURCE_"):{},...o}}handleTrackAction(e,o){this.store.dispatch((0,A.k4)({key:"".concat(this.getTrackingBaseKey(o),"_").concat(e),params:this.getTrackingParams(o)}))}}return(s=b).type="bookmark",s.\u0275fac=function(e){return new(e||s)(t.rXU(I.B),t.rXU(T.o),t.rXU(t.aKT),t.rXU(B.V),t.rXU(O.G),t.rXU(t.zZn),t.rXU(t.gRc),t.rXU(u.qQ),t.rXU(L.Wj),t.rXU(S.d))},s.\u0275cmp=t.VBU({type:s,selectors:[["storefront-bookmark"]],hostVars:1,hostBindings:function(e,o){2&e&&t.BMQ("issue-type",o.issueType)},features:[t.Jv_([I.B]),t.Vt3],decls:1,vars:1,consts:[[4,"ngIf"],[1,"bookmark-image",3,"click"],[3,"src","height","extendedThumbnail"],[1,"bookmark-data"],["class","bookmark-title",3,"storefrontTranslate","storefrontTranslateArgs",4,"ngIf"],[1,"bookmark-creation-date",3,"storefrontTranslate","storefrontTranslateArgs"],["class","bookmark-page-label",3,"storefrontTranslate","storefrontTranslateArgs",4,"ngIf"],[1,"bookmark-actions"],[1,"icon","icon-bookmark-active",3,"click"],[1,"bookmark-title",3,"storefrontTranslate","storefrontTranslateArgs"],[1,"bookmark-page-label",3,"storefrontTranslate","storefrontTranslateArgs"]],template:function(e,o){1&e&&t.DNE(0,z,10,11,"ng-container",0),2&e&&t.Y8G("ngIf",o.bookmark&&o.issue)},dependencies:[u.bT,D.h,G.M,X.Z],styles:["storefront-bookmark{display:flex;flex-direction:column;position:relative;background-color:var(--bookmarkBgColor)}storefront-bookmark .bookmark-image{position:relative;background-color:var(--bookmarkImageBgColor)}storefront-bookmark .bookmark-image storefront-image{width:100%}storefront-bookmark .bookmark-image storefront-spinner{position:absolute;top:0;height:100%;width:100%;background-color:#0000001a}storefront-bookmark .bookmark-data{display:flex;flex-direction:column;padding:var(--gutter) 0}storefront-bookmark .bookmark-data .bookmark-title,storefront-bookmark .bookmark-data .bookmark-creation-date,storefront-bookmark .bookmark-data .bookmark-page-label{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;padding-right:calc(var(--gutter) * 2)}storefront-bookmark .bookmark-data .bookmark-actions{position:absolute;right:0}storefront-bookmark .bookmark-data .bookmark-actions i{color:var(--primaryColor)}storefront-bookmark[issue-type=ISSUE] storefront-image{padding-top:75%;height:100%}storefront-bookmark[issue-type=ISSUE] storefront-image>img{object-fit:cover;width:100%}storefront-bookmark[issue-type=ISSUE] .bookmark-data .bookmark-title{display:none}storefront-bookmark[issue-type=ARTICLE] storefront-image{padding-top:75%;height:100%}storefront-bookmark[issue-type=ARTICLE] storefront-image>img{object-fit:cover;width:100%}storefront-bookmark[issue-type=ARTICLE] .bookmark-data .bookmark-page-label{display:none}\n"],encapsulation:2,changeDetection:0}),b})(),N=(()=>{var s;class b{}return(s=b).\u0275fac=function(e){return new(e||s)},s.\u0275mod=t.$C({type:s}),s.\u0275inj=t.G2t({imports:[u.MD,v.U,g.h,c.P,r.pZ,p.n]}),b})();const V=F},2932:(C,f,a)=>{a.d(f,{h:()=>_,q:()=>E});var u=a(177),r=a(4438),p=a(4338),c=a(8890),g=a(9876),v=a(345),d=a(4748),R=a(5483),M=a(8471);const I=["image"];function A(m,D){if(1&m){const h=r.RV6();r.j41(0,"img",2,0),r.bIt("error",function(){r.eBV(h);const i=r.XpG();return r.Njj(i.onError())}),r.k0s()}if(2&m){const h=r.XpG();r.Y8G("src",h.safeResizeSrc,r.B4B)("alt",h.alt)("title",h.title),r.BMQ("aria-label",h.ariaLabel)}}let _=(()=>{var m;class D{set image(n){n&&this.onLoad(n),this._image=n}get image(){return this._image}constructor(n,i,t,T,B,O,L,S){this.sanitizer=n,this.changeDetectorRef=i,this.elementRef=t,this.subscriptions=T,this.platformId=B,this.ssrService=O,this.contextService=L,this.purpleService=S,this.error=new r.bkB,this.height=E.AUTO}get empty(){return!this.src}ngOnInit(){this.initProperties(),(0,u.UE)(this.platformId)&&this.subscriptions.subscribe((0,c.eh)(this,this.elementRef,{skipWait:!1}),n=>this.load())}initProperties(){var n,i,t,T;this.alt=(null===(n=this.extendedThumbnail)||void 0===n?void 0:n.properties.alt)||(null===(i=this.extendedThumbnail)||void 0===i?void 0:i.properties.caption)||"",this.title=this.alt,this.ariaLabel=null!==(t=this.label)&&void 0!==t?t:this.alt,this.focalPoint=null===(T=this.extendedThumbnail)||void 0===T?void 0:T.properties.focuspoint}initAndLoad(){this.initProperties(),this.load()}load(){this.loaded||(this.loaded=!0,this.src&&this.update(),this.changeDetectorRef.detectChanges())}ngOnChanges(n){n.src&&this.loaded&&this.update()}update(){this.updateImageRatio(),this.updateResizeSrc()}onLoad(n){n.nativeElement.classList.add("loaded"),this.elementRef.nativeElement.classList.add("loaded"),this.changeDetectorRef.detectChanges(),n.nativeElement.addEventListener("load",()=>{this.updateImageRatio(!0,n),this.changeDetectorRef.markForCheck()}),n.nativeElement.addEventListener("error",function(){n.nativeElement.style.display="none",n.nativeElement.nextElementSibling&&(n.nativeElement.nextElementSibling.style.display="inline")}),this.purpleService.addImageSrc(this.resizeSrc)}onError(){if(!this.safeResizeSrc)return;const n=this.purpleService.getAlternativeSrc(this.src);var i;n&&n!==this.resizeSrc?(this.setResizeSrc(n),this.changeDetectorRef.detectChanges()):(null===(i=this.image)||void 0===i||i.nativeElement.classList.add("error"),this.elementRef.nativeElement.classList.add("error"),this.error.emit(this))}updateImageRatio(n=!1,i=this.image){this.imageRatio=this.height===E.AUTO?(0,g.z)(!n,null==i?void 0:i.nativeElement,this.src)+"%":void 0}updateResizeSrc(){this.setResizeSrc((0,g.G)(this.elementRef.nativeElement,this.src,this.imageResolutionStrategy,this.focalPoint)),this.changeDetectorRef.detectChanges()}setResizeSrc(n){const i=this.contextService.toResourceUrl(n);this.resizeSrc=i,this.safeResizeSrc=this.sanitizer.bypassSecurityTrustResourceUrl(i)}}return(m=D).\u0275fac=function(n){return new(n||m)(r.rXU(v.up),r.rXU(r.gRc),r.rXU(r.aKT),r.rXU(p.v),r.rXU(r.Agw),r.rXU(d.i),r.rXU(R.V),r.rXU(M.Wj))},m.\u0275cmp=r.VBU({type:m,selectors:[["storefront-image"]],viewQuery:function(n,i){if(1&n&&r.GBs(I,5),2&n){let t;r.mGM(t=r.lsd())&&(i.image=t.first)}},hostAttrs:["ngSkipHydration","true"],hostVars:12,hostBindings:function(n,i){2&n&&(r.BMQ("src",i.src)("label",i.label)("resolution-strategy",i.imageResolutionStrategy)("alt",i.alt)("title",i.title)("aria-label",i.ariaLabel)("focal-point",i.focalPoint)("height-strategy",i.height),r.xc7("padding-top",i.imageRatio),r.AVh("empty",i.empty))},inputs:{src:"src",label:"label",extendedThumbnail:"extendedThumbnail",imageResolutionStrategy:"imageResolutionStrategy",height:"height"},outputs:{error:"error"},features:[r.Jv_([p.v]),r.OA$],decls:1,vars:1,consts:[["image",""],[3,"src","alt","title","error",4,"ngIf"],[3,"error","src","alt","title"]],template:function(n,i){1&n&&r.DNE(0,A,2,4,"img",1),2&n&&r.Y8G("ngIf",i.loaded&&i.src)},dependencies:[u.bT],styles:["storefront-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[height-strategy=AUTO]>img{position:absolute;width:auto;max-width:100%;top:0;object-fit:contain;height:100%;left:50%;transform:translate(-50%)}storefront-image.img-with-hidden-alt{content:attr(data-alt);display:none}storefront-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{opacity:1;background-color:var(--imageBackgroundColor)}storefront-image.loaded{background:#fff0}\n"],encapsulation:2,changeDetection:0}),D})();var E=function(m){return m.AUTO="AUTO",m.FIXED="FIXED",m.DEFAULT="DEFAULT",m}(E||{})},4403:(C,f,a)=>{a.d(f,{U:()=>p});var u=a(177),r=a(4438);let p=(()=>{var c;class g{}return(c=g).\u0275fac=function(d){return new(d||c)},c.\u0275mod=r.$C({type:c}),c.\u0275inj=r.G2t({imports:[u.MD]}),g})()},6953:(C,f,a)=>{a.d(f,{n:()=>p});var u=a(177),r=a(4438);let p=(()=>{var c;class g{}return(c=g).\u0275fac=function(d){return new(d||c)},c.\u0275mod=r.$C({type:c}),c.\u0275inj=r.G2t({imports:[u.MD]}),g})()},2813:(C,f,a)=>{a.d(f,{Z:()=>p});var u=a(3178),r=a(4438);let p=(()=>{var c;class g{transform(d,R){return new Date(d).toLocaleDateString((0,u.JK)())}}return(c=g).\u0275fac=function(d){return new(d||c)},c.\u0275pipe=r.EJ8({name:"storefrontDate",type:c,pure:!0}),g})()}}]);
1
+ "use strict";(self.webpackChunkstorefront=self.webpackChunkstorefront||[]).push([["projects_storefront_src_app_component_bookmark_bookmark_module_ts"],{1721:(C,f,a)=>{a.r(f),a.d(f,{BookmarkModule:()=>N,component:()=>V});var u=a(177),r=a(6600),p=a(6953),c=a(1605),g=a(6483),v=a(4403),d=a(467),R=a(362),M=a(8179),I=a(8251),A=a(610),_=a(8091),E=a(7879),m=a(1210),D=a(2932),h=a(4404),n=a(9745);const i={openContent:{type:n.H.OPEN_CONTENT,mode:h.DisplayMode.MODAL,titleBar:!0,fallback:{path:"issueDetails",type:n.H.POPUP,params:{issue:"$context.bookmark.issueId"}}},deleteConfirm:!0,bookmarkTitleMessage:"BOOKMARK_TITLE",creationDateMessage:"BOOKMARK_CREATION_DATE_MESSAGE",pageLabelMessage:"BOOKMARK_PAGE_LABEL_MESSAGE"};var t=a(3953),T=a(20),B=a(9516),O=a(8004),L=a(8471),S=a(1652),G=a(8909),X=a(2813);const P=s=>[s];function j(s,b){if(1&s&&t.nrm(0,"h3",9),2&s){const l=t.XpG(2);t.Y8G("storefrontTranslate",l.config.bookmarkTitleMessage)("storefrontTranslateArgs",t.eq3(2,P,l.bookmarkTitle))}}function W(s,b){if(1&s&&t.nrm(0,"div",10),2&s){const l=t.XpG(2);t.Y8G("storefrontTranslate",l.config.pageLabelMessage)("storefrontTranslateArgs",t.eq3(2,P,l.pageLabel))}}function z(s,b){if(1&s){const l=t.RV6();t.qex(0),t.j41(1,"div",1),t.bIt("click",function(o){t.eBV(l);const k=t.XpG();return t.Njj(k.onClickBookmark(o))}),t.nrm(2,"storefront-image",2),t.k0s(),t.j41(3,"div",3),t.DNE(4,j,1,4,"h3",4),t.nrm(5,"div",5),t.nI1(6,"storefrontDate"),t.DNE(7,W,1,4,"div",6),t.j41(8,"div",7)(9,"i",8),t.bIt("click",function(o){t.eBV(l);const k=t.XpG();return t.Njj(k.onClickDelete(o))}),t.k0s()()(),t.bVm()}if(2&s){const l=t.XpG();t.R7$(2),t.Y8G("src",l.bookmark.thumbnailURL)("height",l.getImageHeight())("extendedThumbnail",null==l.issue||null==l.issue.thumbnailsExtended?null:l.issue.thumbnailsExtended.default),t.R7$(2),t.Y8G("ngIf",l.bookmarkTitle),t.R7$(),t.Y8G("storefrontTranslate",l.config.creationDateMessage)("storefrontTranslateArgs",t.eq3(9,P,t.bMT(6,7,l.bookmark.createdAt))),t.R7$(2),t.Y8G("ngIf",l.pageLabel)}}let F=(()=>{var s;class b extends m.${constructor(e,o,k,y,Y,U,Q,x,$,K){super(U,k,y,x,K),this.store=e,this.dialog=o,this.elementRef=k,this.contextService=y,this.eventActionService=Y,this.injector=U,this.changeDetectorRef=Q,this.document=x,this.purpleService=$,this.globalService=K,this.defaultConfig={...i},this.openLoading=!1,this.deleteLoading=!1}get issueType(){return this.bookmark&&this.bookmark.issueType}get bookmarkTitle(){return this.bookmark.title?this.bookmark.title:this.issue.name}ngOnInit(){super.ngOnInit()}onConfigChanges(){var e=this;return(0,d.A)(function*(){var o;e.context.bookmark&&(e.bookmark=e.context.bookmark,e.pageLabel=e.bookmark.pageLabel,e.issue=(null===(o=e.bookmark.customData)||void 0===o||null===(o=o.contentType)||void 0===o?void 0:o.length)>0?yield e.purpleService.getCatalogContent(e.bookmark.contentId).catch(()=>null):yield e.purpleService.getIssue(e.bookmark.contentId).catch(()=>null),e.issue&&(e.bookmark.issue=e.issue),e.publication=yield e.purpleService.getPublication(e.issue.publicationId),e.changeDetectorRef.detectChanges())})()}hasContextChanged(e){return!R(e.bookmark,this.bookmark)||super.hasContextChanged(e)}onClickBookmark(e){var o=this;return(0,d.A)(function*(){if(o.config.openContent){e.stopPropagation(),o.changeDetectorRef.detectChanges(),o.purpleService.getDownloadHandler(o.issue).then(y=>o.handleTrackAction("OPEN_CLICKED",y));const k={...(0,M.uQ)(o.config.openContent,o.context,o.contextService.$functions,o.globalService.getGlobalData()),issueId:o.issue.id,pageIndex:o.bookmark.pageIndex};yield o.eventActionService.processEventAction(k,o),o.changeDetectorRef.detectChanges()}})()}onClickDelete(e){var o=this;return(0,d.A)(function*(){if(e.stopPropagation(),o.config.deleteConfirm)try{yield o.dialog.confirm(o.bookmark.title?{text:"BOOKMARK_DELETE_MESSAGE_WITH_TITLE",args:[o.bookmark.title]}:"BOOKMARK_DELETE_MESSAGE","BOOKMARK_DELETE_TITLE","BOOKMARK_DELETE_CONFIRM","BOOKMARK_DELETE_CANCEL"),yield o.deleteBookmark()}catch{}else yield o.deleteBookmark()})()}deleteBookmark(){var e=this;return(0,d.A)(function*(){if(!e.deleteLoading)try{e.deleteLoading=!0,e.changeDetectorRef.detectChanges(),e.purpleService.getDownloadHandler(e.issue).then(o=>e.handleTrackAction("DELETE_CLICKED",o)),yield e.purpleService.deleteBookmark({id:e.bookmark.id}),e.purpleService.getDownloadHandler(e.issue).then(o=>e.handleTrackAction("DELETED",o)),e.deleteLoading=!1,e.changeDetectorRef.detectChanges(),e.delete.emit(e.bookmark)}catch(o){console.log(o),e.deleteLoading=!1,e.changeDetectorRef.detectChanges(),e.dialog.alert(e.bookmark.title?{text:"ERROR_DELETE_BOOKMARK_WITH_TITLE",args:(0,_._3)((0,_.E2)(o,e.contextService),e.bookmark)}:{text:"ERROR_DELETE_BOOKMARK",args:[(0,_.E2)(o,e.contextService)]},"DIALOG_ERROR"),e.purpleService.getDownloadHandler(e.issue).then(k=>e.handleTrackAction("DELETE_FAILED",k))}})()}getImageHeight(){return D.q.FIXED}getTrackingBaseKey(e){return this.elementId||e&&"".concat(e.getContentType(),"_").concat(this.getType())||this.getType()}getTrackingParams(e){const o=(0,E.aM)(this.bookmark,this.issue,this.publication);return{...e&&(0,E.Gw)(e.getContentType())?(0,E.bJ)(e.issue,e.publication,null,"SOURCE_"):{},...o}}handleTrackAction(e,o){this.store.dispatch((0,A.k4)({url:window.location.href,key:"".concat(this.getTrackingBaseKey(o),"_").concat(e),params:this.getTrackingParams(o)}))}}return(s=b).type="bookmark",s.\u0275fac=function(e){return new(e||s)(t.rXU(I.B),t.rXU(T.o),t.rXU(t.aKT),t.rXU(B.V),t.rXU(O.G),t.rXU(t.zZn),t.rXU(t.gRc),t.rXU(u.qQ),t.rXU(L.Wj),t.rXU(S.d))},s.\u0275cmp=t.VBU({type:s,selectors:[["storefront-bookmark"]],hostVars:1,hostBindings:function(e,o){2&e&&t.BMQ("issue-type",o.issueType)},features:[t.Jv_([I.B]),t.Vt3],decls:1,vars:1,consts:[[4,"ngIf"],[1,"bookmark-image",3,"click"],[3,"src","height","extendedThumbnail"],[1,"bookmark-data"],["class","bookmark-title",3,"storefrontTranslate","storefrontTranslateArgs",4,"ngIf"],[1,"bookmark-creation-date",3,"storefrontTranslate","storefrontTranslateArgs"],["class","bookmark-page-label",3,"storefrontTranslate","storefrontTranslateArgs",4,"ngIf"],[1,"bookmark-actions"],[1,"icon","icon-bookmark-active",3,"click"],[1,"bookmark-title",3,"storefrontTranslate","storefrontTranslateArgs"],[1,"bookmark-page-label",3,"storefrontTranslate","storefrontTranslateArgs"]],template:function(e,o){1&e&&t.DNE(0,z,10,11,"ng-container",0),2&e&&t.Y8G("ngIf",o.bookmark&&o.issue)},dependencies:[u.bT,D.h,G.M,X.Z],styles:["storefront-bookmark{display:flex;flex-direction:column;position:relative;background-color:var(--bookmarkBgColor)}storefront-bookmark .bookmark-image{position:relative;background-color:var(--bookmarkImageBgColor)}storefront-bookmark .bookmark-image storefront-image{width:100%}storefront-bookmark .bookmark-image storefront-spinner{position:absolute;top:0;height:100%;width:100%;background-color:#0000001a}storefront-bookmark .bookmark-data{display:flex;flex-direction:column;padding:var(--gutter) 0}storefront-bookmark .bookmark-data .bookmark-title,storefront-bookmark .bookmark-data .bookmark-creation-date,storefront-bookmark .bookmark-data .bookmark-page-label{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;padding-right:calc(var(--gutter) * 2)}storefront-bookmark .bookmark-data .bookmark-actions{position:absolute;right:0}storefront-bookmark .bookmark-data .bookmark-actions i{color:var(--primaryColor)}storefront-bookmark[issue-type=ISSUE] storefront-image{padding-top:75%;height:100%}storefront-bookmark[issue-type=ISSUE] storefront-image>img{object-fit:cover;width:100%}storefront-bookmark[issue-type=ISSUE] .bookmark-data .bookmark-title{display:none}storefront-bookmark[issue-type=ARTICLE] storefront-image{padding-top:75%;height:100%}storefront-bookmark[issue-type=ARTICLE] storefront-image>img{object-fit:cover;width:100%}storefront-bookmark[issue-type=ARTICLE] .bookmark-data .bookmark-page-label{display:none}\n"],encapsulation:2,changeDetection:0}),b})(),N=(()=>{var s;class b{}return(s=b).\u0275fac=function(e){return new(e||s)},s.\u0275mod=t.$C({type:s}),s.\u0275inj=t.G2t({imports:[u.MD,v.U,g.h,c.P,r.pZ,p.n]}),b})();const V=F},2932:(C,f,a)=>{a.d(f,{h:()=>_,q:()=>E});var u=a(177),r=a(3953),p=a(8251),c=a(8890),g=a(9876),v=a(345),d=a(4748),R=a(9516),M=a(8471);const I=["image"];function A(m,D){if(1&m){const h=r.RV6();r.j41(0,"img",2,0),r.bIt("error",function(){r.eBV(h);const i=r.XpG();return r.Njj(i.onError())}),r.k0s()}if(2&m){const h=r.XpG();r.Y8G("src",h.safeResizeSrc,r.B4B)("alt",h.alt)("title",h.title),r.BMQ("aria-label",h.ariaLabel)}}let _=(()=>{var m;class D{set image(n){n&&this.onLoad(n),this._image=n}get image(){return this._image}constructor(n,i,t,T,B,O,L,S){this.sanitizer=n,this.changeDetectorRef=i,this.elementRef=t,this.subscriptions=T,this.platformId=B,this.ssrService=O,this.contextService=L,this.purpleService=S,this.error=new r.bkB,this.height=E.AUTO}get empty(){return!this.src}ngOnInit(){this.initProperties(),(0,u.UE)(this.platformId)&&this.subscriptions.subscribe((0,c.eh)(this,this.elementRef,{skipWait:!1}),n=>this.load())}initProperties(){var n,i,t,T;this.alt=(null===(n=this.extendedThumbnail)||void 0===n?void 0:n.properties.alt)||(null===(i=this.extendedThumbnail)||void 0===i?void 0:i.properties.caption)||"",this.title=this.alt,this.ariaLabel=null!==(t=this.label)&&void 0!==t?t:this.alt,this.focalPoint=null===(T=this.extendedThumbnail)||void 0===T?void 0:T.properties.focuspoint}initAndLoad(){this.initProperties(),this.load()}load(){this.loaded||(this.loaded=!0,this.src&&this.update(),this.changeDetectorRef.detectChanges())}ngOnChanges(n){n.src&&this.loaded&&this.update()}update(){this.updateImageRatio(),this.updateResizeSrc()}onLoad(n){n.nativeElement.classList.add("loaded"),this.elementRef.nativeElement.classList.add("loaded"),this.changeDetectorRef.detectChanges(),n.nativeElement.addEventListener("load",()=>{this.updateImageRatio(!0,n),this.changeDetectorRef.markForCheck()}),n.nativeElement.addEventListener("error",function(){n.nativeElement.style.display="none",n.nativeElement.nextElementSibling&&(n.nativeElement.nextElementSibling.style.display="inline")}),this.purpleService.addImageSrc(this.resizeSrc)}onError(){if(!this.safeResizeSrc)return;const n=this.purpleService.getAlternativeSrc(this.src);var i;n&&n!==this.resizeSrc?(this.setResizeSrc(n),this.changeDetectorRef.detectChanges()):(null===(i=this.image)||void 0===i||i.nativeElement.classList.add("error"),this.elementRef.nativeElement.classList.add("error"),this.error.emit(this))}updateImageRatio(n=!1,i=this.image){this.imageRatio=this.height===E.AUTO?(0,g.z)(!n,null==i?void 0:i.nativeElement,this.src)+"%":void 0}updateResizeSrc(){this.setResizeSrc((0,g.G)(this.elementRef.nativeElement,this.src,this.imageResolutionStrategy,this.focalPoint)),this.changeDetectorRef.detectChanges()}setResizeSrc(n){const i=this.contextService.toResourceUrl(n);this.resizeSrc=i,this.safeResizeSrc=this.sanitizer.bypassSecurityTrustResourceUrl(i)}}return(m=D).\u0275fac=function(n){return new(n||m)(r.rXU(v.up),r.rXU(r.gRc),r.rXU(r.aKT),r.rXU(p.v),r.rXU(r.Agw),r.rXU(d.i),r.rXU(R.V),r.rXU(M.Wj))},m.\u0275cmp=r.VBU({type:m,selectors:[["storefront-image"]],viewQuery:function(n,i){if(1&n&&r.GBs(I,5),2&n){let t;r.mGM(t=r.lsd())&&(i.image=t.first)}},hostAttrs:["ngSkipHydration","true"],hostVars:12,hostBindings:function(n,i){2&n&&(r.BMQ("src",i.src)("label",i.label)("resolution-strategy",i.imageResolutionStrategy)("alt",i.alt)("title",i.title)("aria-label",i.ariaLabel)("focal-point",i.focalPoint)("height-strategy",i.height),r.xc7("padding-top",i.imageRatio),r.AVh("empty",i.empty))},inputs:{src:"src",label:"label",extendedThumbnail:"extendedThumbnail",imageResolutionStrategy:"imageResolutionStrategy",height:"height"},outputs:{error:"error"},features:[r.Jv_([p.v]),r.OA$],decls:1,vars:1,consts:[["image",""],[3,"src","alt","title","error",4,"ngIf"],[3,"error","src","alt","title"]],template:function(n,i){1&n&&r.DNE(0,A,2,4,"img",1),2&n&&r.Y8G("ngIf",i.loaded&&i.src)},dependencies:[u.bT],styles:["storefront-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[height-strategy=AUTO]>img{position:absolute;width:auto;max-width:100%;top:0;object-fit:contain;height:100%;left:50%;transform:translate(-50%)}storefront-image.img-with-hidden-alt{content:attr(data-alt);display:none}storefront-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{opacity:1;background-color:var(--imageBackgroundColor)}storefront-image.loaded{background:#fff0}\n"],encapsulation:2,changeDetection:0}),D})();var E=function(m){return m.AUTO="AUTO",m.FIXED="FIXED",m.DEFAULT="DEFAULT",m}(E||{})},4403:(C,f,a)=>{a.d(f,{U:()=>p});var u=a(177),r=a(3953);let p=(()=>{var c;class g{}return(c=g).\u0275fac=function(d){return new(d||c)},c.\u0275mod=r.$C({type:c}),c.\u0275inj=r.G2t({imports:[u.MD]}),g})()},6953:(C,f,a)=>{a.d(f,{n:()=>p});var u=a(177),r=a(3953);let p=(()=>{var c;class g{}return(c=g).\u0275fac=function(d){return new(d||c)},c.\u0275mod=r.$C({type:c}),c.\u0275inj=r.G2t({imports:[u.MD]}),g})()},2813:(C,f,a)=>{a.d(f,{Z:()=>p});var u=a(3178),r=a(3953);let p=(()=>{var c;class g{transform(d,R){return new Date(d).toLocaleDateString((0,u.JK)())}}return(c=g).\u0275fac=function(d){return new(d||c)},c.\u0275pipe=r.EJ8({name:"storefrontDate",type:c,pure:!0}),g})()}}]);