@pronto-tools-and-more/files 6.41.0 → 7.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (37) hide show
  1. package/files/framework/src/default/storefront/buildInfo.json +4 -4
  2. package/files/framework/src/default/storefront/deep-link-landing/purple-deep-link-landing.js +80 -80
  3. package/files/framework/src/default/storefront/index.html +2 -2
  4. package/files/framework/src/default/storefront/modules/common.js +1 -1
  5. package/files/framework/src/default/storefront/modules/default-projects_storefront_src_app_component_content_content_module_ts.js +1 -1
  6. package/files/framework/src/default/storefront/modules/default-projects_storefront_src_app_component_issue_issue_module_ts.js +1 -1
  7. package/files/framework/src/default/storefront/modules/default-projects_storefront_src_app_service_tts_tts_service_ts.js +1 -1
  8. package/files/framework/src/default/storefront/modules/main.js +1 -1
  9. 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
  10. package/files/framework/src/default/storefront/modules/projects_storefront_src_app_component_ad_ad_module_ts.js +1 -1
  11. package/files/framework/src/default/storefront/modules/projects_storefront_src_app_component_base-component_base-datacollection_component_ts-project-6cb588.js +1 -1
  12. package/files/framework/src/default/storefront/modules/projects_storefront_src_app_component_bookmark_bookmark_module_ts.js +1 -1
  13. package/files/framework/src/default/storefront/modules/projects_storefront_src_app_component_catalog-content_content-body_content-body_module_ts.js +1 -1
  14. package/files/framework/src/default/storefront/modules/projects_storefront_src_app_component_catalog-content_content-featured-image_content-featured-c9ba26.js +1 -1
  15. package/files/framework/src/default/storefront/modules/projects_storefront_src_app_component_category_category_module_ts.js +1 -1
  16. package/files/framework/src/default/storefront/modules/projects_storefront_src_app_component_collection_collection_module_ts.js +1 -1
  17. package/files/framework/src/default/storefront/modules/projects_storefront_src_app_component_coupon_coupon_module_ts.js +1 -1
  18. 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
  19. package/files/framework/src/default/storefront/modules/projects_storefront_src_app_component_download-issues_download-issues_module_ts.js +1 -1
  20. package/files/framework/src/default/storefront/modules/projects_storefront_src_app_component_dropdown_dropdown_module_ts.js +1 -1
  21. package/files/framework/src/default/storefront/modules/projects_storefront_src_app_component_embeddable-view_embeddable-view_module_ts.js +1 -1
  22. package/files/framework/src/default/storefront/modules/projects_storefront_src_app_component_iframe_iframe_module_ts.js +1 -1
  23. package/files/framework/src/default/storefront/modules/projects_storefront_src_app_component_issue-search-result_issue-search-result_module_ts.js +1 -1
  24. package/files/framework/src/default/storefront/modules/projects_storefront_src_app_component_login_login_module_ts.js +1 -1
  25. package/files/framework/src/default/storefront/modules/projects_storefront_src_app_component_menu_menu_module_ts.js +1 -1
  26. package/files/framework/src/default/storefront/modules/projects_storefront_src_app_component_product_product_module_ts.js +1 -1
  27. package/files/framework/src/default/storefront/modules/projects_storefront_src_app_component_publication-completion_publication-completion_module_ts.js +1 -1
  28. package/files/framework/src/default/storefront/modules/projects_storefront_src_app_component_publication_publication_module_ts.js +1 -1
  29. package/files/framework/src/default/storefront/modules/projects_storefront_src_app_component_recommendations_recommendations_module_ts.js +1 -1
  30. package/files/framework/src/default/storefront/modules/projects_storefront_src_app_component_search-field_search-field_module_ts.js +1 -1
  31. package/files/framework/src/default/storefront/modules/projects_storefront_src_app_component_subscription_subscription_module_ts.js +1 -1
  32. package/files/framework/src/default/storefront/modules/projects_storefront_src_app_component_swiper_swiper_module_ts.js +1 -1
  33. package/files/framework/src/default/storefront/modules/projects_storefront_src_app_component_toggle_toggle_module_ts.js +1 -1
  34. package/files/framework/src/default/storefront/modules/projects_storefront_src_app_component_toolbar_toolbar_module_ts.js +1 -1
  35. package/files/framework/src/default/storefront/modules/projects_storefront_src_app_component_web-presenter_presenter_presenter_module_ts.js +1 -1
  36. package/files/framework/src/default/storefront/modules/projects_storefront_src_app_component_widget_widget_module_ts.js +1 -1
  37. 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,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
+ "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(5102);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("priority",E.lcpPrioritized())("ngSrc",E.safeResizeSrc)("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.lcpPrioritized=(0,t.hFB)(!1),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",lcpPrioritized:[1,"lcpPrioritized"],height:"height"},outputs:{error:"error"},features:[t.Jv_([g.v]),t.OA$],decls:1,vars:1,consts:[["image",""],["fill","true",3,"priority","ngSrc","alt","title","error",4,"ngIf"],["fill","true",3,"error","priority","ngSrc","alt","title"]],template:function(n,a){1&n&&t.DNE(0,h,2,5,"img",1),2&n&&t.Y8G("ngIf",a.loaded&&a.src)},dependencies:[e.bT,e.kt],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}storefront-image[height-strategy=DEFAULT]>img{position:static!important}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_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
+ "use strict";(self.webpackChunkstorefront=self.webpackChunkstorefront||[]).push([["projects_storefront_src_app_component_ad_ad_module_ts"],{5766:(B,T,r)=>{r.r(T),r.d(T,{AdModule:()=>ht,component:()=>ut});var h=r(177),a=r(467),e=r(3953),C=r(1210),y=r(9692),E=r(8251),I=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),D=r(8890),m=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),$=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(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,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 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})(),Z=(()=>{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(X.up,16))},i.\u0275pipe=e.EJ8({name:"sanitizeUrl",type:i,pure:!0}),f})();const J=["stickyLink"];function q(i,f){if(1&i&&(e.qex(0),e.nrm(1,"div",5),e.bVm()),2&i){const s=e.XpG(2);e.R7$(),e.Y8G("id",s.uuid)}}function tt(i,f){if(1&i&&e.nrm(0,"iframe",7),2&i){const s=e.XpG(3);e.Y8G("src",s.safeIframeUrl,e.f$h)}}function et(i,f){if(1&i&&(e.qex(0),e.DNE(1,tt,1,1,"iframe",6),e.bVm()),2&i){const s=e.XpG(2);e.R7$(),e.Y8G("ngIf",s.safeIframeUrl)}}function it(i,f){if(1&i){const s=e.RV6();e.qex(0),e.j41(1,"div",8),e.bIt("elementVisible",function(n){e.eBV(s);const l=e.XpG(3);return e.Njj(l.onVisible(n))}),e.k0s(),e.bVm()}if(2&i){const s=e.XpG(2).ngIf;e.R7$(),e.HbH(s.class),e.Y8G("id",s.id)}}function nt(i,f){if(1&i&&(e.qex(0),e.DNE(1,it,2,3,"ng-container",1),e.bVm()),2&i){const s=e.XpG(2);e.R7$(),e.Y8G("ngIf",!s.isDynamicAd)}}function rt(i,f){if(1&i&&e.nrm(0,"storefront-image",13),2&i){const s=e.XpG(4);e.Y8G("height",s.getImageHeight())("src",s.getImageSrc())}}function ot(i,f){if(1&i&&(e.j41(0,"a",12),e.nI1(1,"sanitizeUrl"),e.DNE(2,rt,1,2,"storefront-image",11),e.k0s()),2&i){const s=e.XpG(3);e.Y8G("href",e.bMT(1,3,s.getHref()),e.B4B)("target",s.target),e.R7$(2),e.Y8G("ngIf",s.getImageSrc())}}function st(i,f){if(1&i&&e.nrm(0,"storefront-image",13),2&i){const s=e.XpG(3);e.Y8G("height",s.getImageHeight())("src",s.getImageSrc(!0))}}function at(i,f){if(1&i&&(e.qex(0),e.DNE(1,ot,3,5,"a",9),e.j41(2,"a",10,0),e.nI1(4,"sanitizeUrl"),e.DNE(5,st,1,2,"storefront-image",11),e.k0s(),e.bVm()),2&i){const s=e.XpG(2);e.R7$(),e.Y8G("ngIf",s.ad),e.R7$(),e.Y8G("href",e.bMT(4,4,s.getHref()),e.B4B)("target",s.target),e.R7$(3),e.Y8G("ngIf",s.getImageSrc(!0))}}function lt(i,f){if(1&i&&(e.qex(0)(1,2),e.DNE(2,q,2,1,"ng-container",3)(3,et,2,1,"ng-container",3)(4,nt,2,1,"ng-container",3)(5,at,6,6,"ng-container",4),e.bVm()()),2&i){const s=f.ngIf;e.R7$(),e.Y8G("ngSwitch",s.type),e.R7$(),e.Y8G("ngSwitchCase","GPT"),e.R7$(),e.Y8G("ngSwitchCase","HTML"),e.R7$(),e.Y8G("ngSwitchCase","TRAFFECTIVE")}}let ct=(()=>{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,p,_,L,z,w,mt,k,pt,vt,Ct){super(l,t,g,w,k),this.elementRef=t,this.store=n,this.injector=l,this.contextService=g,this.changeDetectorRef=d,this.googleAdService=p,this.router=_,this.sanitizer=L,this.platformId=z,this.document=w,this.traffectiveAdService=mt,this.globalService=k,this.consentService=pt,this.ssrService=vt,this.ngZone=Ct,this.load=new e.bkB,this.loaded=!1,this.adVisible$=new b.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,I.jZ)(U.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,R.Fl)(t.providerConfig,this.contextKeys)}handleChange(t,n,l,g){super.handleChange(t,n,l,g)}onConfigChanges(){var t=this;return(0,a.A)(function*(){var n;const l=t.getAdConfig(t.config);if(l&&l.providerConfig){if(l.providerConfig){const p=(0,A.uQ)({...l.providerConfig,targeting:null},t.contextService.getContext(),t.contextService.$functions,t.globalService.getGlobalData());if(!(0,A.ZY)(p))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)}),p=>{t.initAd()},o.lQ,o.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 p=null===(d=t.ad)||void 0===d||null===(d=d.providerConfig)||void 0===d?void 0:d.url;p!==t.iframeUrl&&(t.iframeUrl=p,t.safeIframeUrl=t.sanitizer.bypassSecurityTrustResourceUrl(t.contextService.toResourceUrl(p)))}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,a.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,I.jZ)(U.O.AD),g=>{const d=g.adSlots.find(p=>p.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,a.A)(function*(){if(t.ad.providerConfig){var n;const{id:l,class:g}=t.ad.providerConfig;t.isDynamicAd="Floor"==g||"Mobile_Sticky"==g,(0,P.z)([null===(n=t.traffectiveAdService)||void 0===n?void 0:n.isTRFConfigReady$.pipe((0,c.p)(d=>d),(0,v.s)(1)),t.isDynamicAd?(0,V.of)(!0):t.adVisible$.pipe((0,c.p)(d=>d),(0,v.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(p){console.warn("Error with traffective refresh slot",p)}})}})()}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(p=>{let _=(0,A.uQ)(p,this.contextService.getContext(),this.contextService.$functions,this.globalService.getGlobalData(),!1);if(l.multiValue){let L=_.split(",").filter(z=>""!==z);d.concat(L)}else _&&""!==_&&d.push(_)}),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(t=!1){const n=this.ad&&this.ad.providerConfig;return n&&(0,R.rv)(t&&n.stickyImage||n.image)}getHref(){const t=this.ad&&this.ad.providerConfig;return t&&t.target}getTarget(){return(0,m.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)({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)),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(E.B),e.rXU(e.zZn),e.rXU(O.V),e.rXU(e.gRc),e.rXU($.s),e.rXU(H.Ix),e.rXU(X.up),e.rXU(e.Agw),e.rXU(h.qQ),e.rXU(F.y),e.rXU(K.d),e.rXU(Y.e),e.rXU(j.i),e.rXU(e.SKi))},i.\u0275cmp=e.VBU({type:i,selectors:[["storefront-ad"]],viewQuery:function(t,n){if(1&t&&e.GBs(J,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_([E.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,lt,6,4,"ng-container",1),2&t&&e.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 dt=r(4403),gt=r(4871);let ft=(()=>{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})(),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,dt.U,gt.E,ft]}),f})();const ut=ct},2932:(B,T,r)=>{r.d(T,{h:()=>M,q:()=>S});var h=r(177),a=r(3953),e=r(8251),C=r(8890),y=r(9876),E=r(345),I=r(4748),U=r(9516),R=r(5102);const x=["image"];function G(u,D){if(1&u){const m=a.RV6();a.j41(0,"img",2,0),a.bIt("error",function(){a.eBV(m);const c=a.XpG();return a.Njj(c.onError())}),a.k0s()}if(2&u){const m=a.XpG();a.Y8G("priority",m.lcpPrioritized())("ngSrc",m.safeResizeSrc)("alt",m.alt)("title",m.title),a.BMQ("aria-label",m.ariaLabel)}}let M=(()=>{var u;class D{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.lcpPrioritized=(0,a.hFB)(!1),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=D).\u0275fac=function(o){return new(o||u)(a.rXU(E.up),a.rXU(a.gRc),a.rXU(a.aKT),a.rXU(e.v),a.rXU(a.Agw),a.rXU(I.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",lcpPrioritized:[1,"lcpPrioritized"],height:"height"},outputs:{error:"error"},features:[a.Jv_([e.v]),a.OA$],decls:1,vars:1,consts:[["image",""],["fill","true",3,"priority","ngSrc","alt","title","error",4,"ngIf"],["fill","true",3,"error","priority","ngSrc","alt","title"]],template:function(o,c){1&o&&a.DNE(0,G,2,5,"img",1),2&o&&a.Y8G("ngIf",c.loaded&&c.src)},dependencies:[h.bT,h.kt],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}storefront-image[height-strategy=DEFAULT]>img{position:static!important}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 S=function(u){return u.AUTO="AUTO",u.FIXED="FIXED",u.DEFAULT="DEFAULT",u}(S||{})},4403:(B,T,r)=>{r.d(T,{U:()=>e});var h=r(177),a=r(3953);let e=(()=>{var C;class y{}return(C=y).\u0275fac=function(I){return new(I||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_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
+ "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),k=a(2962),Y=a(7598),B=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(5102),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,B.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,k.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,B.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(),t.changeDetectorRef.markForCheck()}})()}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,k.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(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})()}}]);
1
+ "use strict";(self.webpackChunkstorefront=self.webpackChunkstorefront||[]).push([["projects_storefront_src_app_component_bookmark_bookmark_module_ts"],{1721:(C,f,r)=>{r.r(f),r.d(f,{BookmarkModule:()=>V,component:()=>N});var h=r(177),a=r(6600),p=r(6953),c=r(1605),u=r(6483),v=r(4403),d=r(467),R=r(362),M=r(8179),I=r(8251),A=r(610),_=r(8091),E=r(7879),m=r(1210),D=r(2932),g=r(4404),n=r(9745);const i={openContent:{type:n.H.OPEN_CONTENT,mode:g.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=r(3953),T=r(20),B=r(9516),O=r(8004),L=r(5102),S=r(1652),G=r(8909),X=r(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.markForCheck()})()}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.VP)(e.content,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(h.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:[h.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})(),V=(()=>{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:[h.MD,v.U,u.h,c.P,a.pZ,p.n]}),b})();const N=F},2932:(C,f,r)=>{r.d(f,{h:()=>_,q:()=>E});var h=r(177),a=r(3953),p=r(8251),c=r(8890),u=r(9876),v=r(345),d=r(4748),R=r(9516),M=r(5102);const I=["image"];function A(m,D){if(1&m){const g=a.RV6();a.j41(0,"img",2,0),a.bIt("error",function(){a.eBV(g);const i=a.XpG();return a.Njj(i.onError())}),a.k0s()}if(2&m){const g=a.XpG();a.Y8G("priority",g.lcpPrioritized())("ngSrc",g.safeResizeSrc)("alt",g.alt)("title",g.title),a.BMQ("aria-label",g.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.lcpPrioritized=(0,a.hFB)(!1),this.error=new a.bkB,this.height=E.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}),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,u.z)(!n,null==i?void 0:i.nativeElement,this.src)+"%":void 0}updateResizeSrc(){this.setResizeSrc((0,u.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)(a.rXU(v.up),a.rXU(a.gRc),a.rXU(a.aKT),a.rXU(p.v),a.rXU(a.Agw),a.rXU(d.i),a.rXU(R.V),a.rXU(M.Wj))},m.\u0275cmp=a.VBU({type:m,selectors:[["storefront-image"]],viewQuery:function(n,i){if(1&n&&a.GBs(I,5),2&n){let t;a.mGM(t=a.lsd())&&(i.image=t.first)}},hostAttrs:["ngSkipHydration","true"],hostVars:12,hostBindings:function(n,i){2&n&&(a.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),a.xc7("padding-top",i.imageRatio),a.AVh("empty",i.empty))},inputs:{src:"src",label:"label",extendedThumbnail:"extendedThumbnail",imageResolutionStrategy:"imageResolutionStrategy",lcpPrioritized:[1,"lcpPrioritized"],height:"height"},outputs:{error:"error"},features:[a.Jv_([p.v]),a.OA$],decls:1,vars:1,consts:[["image",""],["fill","true",3,"priority","ngSrc","alt","title","error",4,"ngIf"],["fill","true",3,"error","priority","ngSrc","alt","title"]],template:function(n,i){1&n&&a.DNE(0,A,2,5,"img",1),2&n&&a.Y8G("ngIf",i.loaded&&i.src)},dependencies:[h.bT,h.kt],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}storefront-image[height-strategy=DEFAULT]>img{position:static!important}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,r)=>{r.d(f,{U:()=>p});var h=r(177),a=r(3953);let p=(()=>{var c;class u{}return(c=u).\u0275fac=function(d){return new(d||c)},c.\u0275mod=a.$C({type:c}),c.\u0275inj=a.G2t({imports:[h.MD]}),u})()},6953:(C,f,r)=>{r.d(f,{n:()=>p});var h=r(177),a=r(3953);let p=(()=>{var c;class u{}return(c=u).\u0275fac=function(d){return new(d||c)},c.\u0275mod=a.$C({type:c}),c.\u0275inj=a.G2t({imports:[h.MD]}),u})()},2813:(C,f,r)=>{r.d(f,{Z:()=>p});var h=r(3178),a=r(3953);let p=(()=>{var c;class u{transform(d,R){return new Date(d).toLocaleDateString((0,h.JK)())}}return(c=u).\u0275fac=function(d){return new(d||c)},c.\u0275pipe=a.EJ8({name:"storefrontDate",type:c,pure:!0}),u})()}}]);