@pronto-tools-and-more/files 14.0.0 → 14.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "branch": "HEAD",
3
- "commit": "f8db5ac",
4
- "commitDate": "Tue Mar 11 2025 09:58:14 GMT+0000 (Coordinated Universal Time)",
5
- "buildDate": "Tue Mar 11 2025 10:02:28 GMT+0000 (Coordinated Universal Time)",
3
+ "commit": "33d45ba",
4
+ "commitDate": "Wed Mar 12 2025 15:06:08 GMT+0000 (Coordinated Universal Time)",
5
+ "buildDate": "Wed Mar 12 2025 15:09:46 GMT+0000 (Coordinated Universal Time)",
6
6
  "packageVersion": "3.9.0-SNAPSHOT"
7
7
  }
@@ -4,7 +4,7 @@
4
4
  <meta charset="utf-8">
5
5
  <title></title>
6
6
  <meta name="viewport" content="width=device-width, initial-scale=1">
7
- <meta name="storefront-commit" content="f8db5ac">
7
+ <meta name="storefront-commit" content="33d45ba">
8
8
  <meta name="storefront-version" content="3.9.0-SNAPSHOT">
9
9
  <link rel="icon" type="image/x-icon" href="favicon.ico">
10
10
  <link rel="stylesheet" href="assets/fonts.css" media="print" onload="this.media='all'"><noscript><link rel="stylesheet" href="assets/fonts.css"></noscript>
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkstorefront=self.webpackChunkstorefront||[]).push([["default-projects_storefront_src_app_component_image_image_leandom_component_ts-projects_store-a6979f"],{2932:(T,v,a)=>{a.d(v,{h:()=>p,q:()=>u});var c=a(177),e=a(3953),_=a(8251),E=a(8890),o=a(5102),h=a(9516),r=a(9876),l=a(5927),m=a(6033);const g=["image"],f=(s,y)=>({imageResolutionStrategy:s,focalPoint:y});function n(s,y){if(1&s){const d=e.RV6();e.j41(0,"img",2,0),e.bIt("error",function(){e.eBV(d);const i=e.XpG();return e.Njj(i.onError())}),e.k0s()}if(2&s){const d=e.XpG();e.Y8G("priority",d.lcpPrioritized())("ngSrc",d.src)("alt",d.alt)("title",d.title)("loaderParams",e.l_i(5,f,d.imageResolutionStrategy,d.focalPoint))}}let p=(()=>{var s;class y{get regularSrc(){return this.domHelper.regularSelector(this.src)}get prefixedPostType(){return this.domHelper.prefixedSelector(this.src)}get regularLabel(){return this.domHelper.regularSelector(this.label)}get prefixedLabel(){return this.domHelper.prefixedSelector(this.label)}get regularResolutionStrategy(){return this.domHelper.regularSelector(this.imageResolutionStrategy)}get prefixedResolutionStrategy(){return this.domHelper.prefixedSelector(this.imageResolutionStrategy)}set image(t){t&&this.onLoad(t),this._image=t}get image(){return this._image}get regularAlt(){return this.domHelper.regularSelector(this.alt)}get prefixedAlt(){return this.domHelper.prefixedSelector(this.alt)}get regularTitle(){return this.domHelper.regularSelector(this.title)}get prefixedTitle(){return this.domHelper.prefixedSelector(this.title)}get regularFocalPoint(){return this.domHelper.regularSelector(this.focalPoint)}get prefixedFocalPoint(){return this.domHelper.prefixedSelector(this.focalPoint)}get regularHeightStrategy(){return this.domHelper.regularSelector(this.height)}get prefixedHeightStrategy(){return this.domHelper.prefixedSelector(this.height)}constructor(){this.changeDetectorRef=(0,e.WQX)(e.gRc),this.elementRef=(0,e.WQX)(e.aKT),this.subscriptions=(0,e.WQX)(_.v),this.platformId=(0,e.WQX)(e.Agw),this.contextService=(0,e.WQX)(h.V),this.purpleService=(0,e.WQX)(o.Wj),this.domHelper=(0,e.WQX)(l.S),this.lcpPrioritized=(0,e.hFB)(!1),this.error=new e.bkB,this.height=u.AUTO,(0,c.UE)(this.platformId)&&this.subscriptions.subscribe((0,E.eh)(this,this.elementRef),t=>this.load())}get empty(){return!this.src}ngOnInit(){this.initProperties()}initProperties(){var t,i,x,D;this.alt=(null===(t=this.extendedThumbnail)||void 0===t?void 0:t.properties.alt)||(null===(i=this.extendedThumbnail)||void 0===i?void 0:i.properties.caption)||"",this.title=this.alt,this.ariaLabel=null!==(x=this.label)&&void 0!==x?x:this.alt,this.focalPoint=null===(D=this.extendedThumbnail)||void 0===D?void 0:D.properties.focuspoint}initAndLoad(){this.initProperties(),this.load()}load(){this.loaded||(this.loaded=!0,this.src&&this.update(),this.changeDetectorRef.detectChanges())}ngOnChanges(t){t.src&&this.loaded&&this.update()}update(){this.updateImageRatio()}onLoad(t){t.nativeElement.classList.add("loaded"),this.elementRef.nativeElement.classList.add("loaded"),this.changeDetectorRef.detectChanges(),t.nativeElement.addEventListener("load",()=>{this.updateImageRatio(!0,t),this.changeDetectorRef.markForCheck()}),t.nativeElement.addEventListener("error",function(){t.nativeElement.style.display="none",t.nativeElement.nextElementSibling&&(t.nativeElement.nextElementSibling.style.display="inline")})}onError(){if(!this.src)return;const t=this.purpleService.getAlternativeSrc(this.src);var i;t&&t!==this.src?(this.src=this.contextService.toStorefrontResourceUrl(t),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(t=!1,i=this.image){this.imageRatio=this.height===u.AUTO?(0,r.z)(!t,null==i?void 0:i.nativeElement,this.src)+"%":void 0}}return(s=y).\u0275fac=function(t){return new(t||s)},s.\u0275cmp=e.VBU({type:s,selectors:[["storefront-image"]],viewQuery:function(t,i){if(1&t&&e.GBs(g,5),2&t){let x;e.mGM(x=e.lsd())&&(i.image=x.first)}},hostVars:18,hostBindings:function(t,i){2&t&&(e.BMQ("src",i.regularSrc)("data-pxp-src",i.prefixedPostType)("label",i.regularLabel)("data-pxp-label",i.prefixedLabel)("resolution-strategy",i.regularResolutionStrategy)("data-pxp-resolution-strategy",i.prefixedResolutionStrategy)("alt",i.regularAlt)("data-pxp-alt",i.prefixedAlt)("title",i.regularTitle)("data-pxp-title",i.prefixedTitle)("focal-point",i.regularFocalPoint)("data-pxp-focal-point",i.prefixedFocalPoint)("height-strategy",i.regularHeightStrategy)("data-pxp-height-strategy",i.prefixedHeightStrategy),e.xc7("padding-top",i.imageRatio),e.AVh("empty",i.empty))},inputs:{src:"src",label:"label",extendedThumbnail:"extendedThumbnail",imageResolutionStrategy:"imageResolutionStrategy",lcpPrioritized:[1,"lcpPrioritized"],height:"height"},outputs:{error:"error"},standalone:!1,features:[e.Jv_([_.v,m.K,{provide:c.WM,useFactory:d=>t=>d.generateImageUrl(t),deps:[m.K]}]),e.OA$],decls:1,vars:1,consts:[["image",""],["fill","true","ngSrcset","300w, 600w, 900w, 1200w",3,"priority","ngSrc","alt","title","loaderParams"],["fill","true","ngSrcset","300w, 600w, 900w, 1200w",3,"error","priority","ngSrc","alt","title","loaderParams"]],template:function(t,i){1&t&&e.DNE(0,n,2,8,"img",1),2&t&&e.vxM(i.src?0:-1)},dependencies:[c.kt],styles:["storefront-image,.pxp-image{display:flex;justify-content:center;align-items:center;position:relative;background-color:var(--imageLoadingColor);transition:.2s background-color ease-in}storefront-image[height-strategy=FIXED]>img,storefront-image[data-pxp-height-strategy=FIXED]>img,storefront-image[height-strategy=AUTO]>img,storefront-image[data-pxp-height-strategy=AUTO]>img,.pxp-image[height-strategy=FIXED]>img,.pxp-image[data-pxp-height-strategy=FIXED]>img,.pxp-image[height-strategy=AUTO]>img,.pxp-image[data-pxp-height-strategy=AUTO]>img{position:absolute;width:auto;max-width:100%;top:0;object-fit:contain}storefront-image[height-strategy=DEFAULT]>img,storefront-image[data-pxp-height-strategy=DEFAULT]>img,.pxp-image[height-strategy=DEFAULT]>img,.pxp-image[data-pxp-height-strategy=DEFAULT]>img{position:static!important}storefront-image.img-with-hidden-alt,.pxp-image.img-with-hidden-alt{content:attr(data-alt);display:none}storefront-image>img,.pxp-image>img{display:block;transition:opacity .2s ease-in,background-color .2s ease-in;background-color:#fff0;max-width:100%;max-height:100%;opacity:0}storefront-image>img.loaded,.pxp-image>img.loaded{opacity:1;background-color:var(--imageBackgroundColor)}storefront-image.loaded,.pxp-image.loaded{background:#fff0}\n"],encapsulation:2,changeDetection:0}),y})();var u=function(s){return s.AUTO="AUTO",s.FIXED="FIXED",s.DEFAULT="DEFAULT",s}(u||{})},1302:(T,v,a)=>{a.d(v,{x:()=>m});var c=a(8251),e=a(2932),_=a(177),E=a(6033),o=a(3953);const h=["class","pxp-image"],r=(g,f)=>({imageResolutionStrategy:g,focalPoint:f});function l(g,f){if(1&g){const n=o.RV6();o.j41(0,"img",2,0),o.bIt("error",function(){o.eBV(n);const u=o.XpG();return o.Njj(u.onError())}),o.k0s()}if(2&g){const n=o.XpG();o.Y8G("priority",n.lcpPrioritized())("ngSrc",n.src)("alt",n.alt)("title",n.title)("loaderParams",o.l_i(5,r,n.imageResolutionStrategy,n.focalPoint))}}let m=(()=>{var g;class f extends e.h{}return(g=f).\u0275fac=(()=>{let n;return function(u){return(n||(n=o.xGo(g)))(u||g)}})(),g.\u0275cmp=o.VBU({type:g,selectors:[["div",8,"pxp-image"]],standalone:!1,features:[o.Jv_([c.v,E.K,{provide:_.WM,useFactory:n=>p=>n.generateImageUrl(p),deps:[E.K]}]),o.Vt3],attrs:h,decls:1,vars:1,consts:[["image",""],["fill","true","ngSrcset","300w, 600w, 900w, 1200w",3,"priority","ngSrc","alt","title","loaderParams"],["fill","true","ngSrcset","300w, 600w, 900w, 1200w",3,"error","priority","ngSrc","alt","title","loaderParams"]],template:function(p,u){1&p&&o.DNE(0,l,2,8,"img",1),2&p&&o.vxM(u.src?0:-1)},dependencies:[_.kt],styles:["storefront-image,.pxp-image{display:flex;justify-content:center;align-items:center;position:relative;background-color:var(--imageLoadingColor);transition:.2s background-color ease-in}storefront-image[height-strategy=FIXED]>img,storefront-image[data-pxp-height-strategy=FIXED]>img,storefront-image[height-strategy=AUTO]>img,storefront-image[data-pxp-height-strategy=AUTO]>img,.pxp-image[height-strategy=FIXED]>img,.pxp-image[data-pxp-height-strategy=FIXED]>img,.pxp-image[height-strategy=AUTO]>img,.pxp-image[data-pxp-height-strategy=AUTO]>img{position:absolute;width:auto;max-width:100%;top:0;object-fit:contain}storefront-image[height-strategy=DEFAULT]>img,storefront-image[data-pxp-height-strategy=DEFAULT]>img,.pxp-image[height-strategy=DEFAULT]>img,.pxp-image[data-pxp-height-strategy=DEFAULT]>img{position:static!important}storefront-image.img-with-hidden-alt,.pxp-image.img-with-hidden-alt{content:attr(data-alt);display:none}storefront-image>img,.pxp-image>img{display:block;transition:opacity .2s ease-in,background-color .2s ease-in;background-color:#fff0;max-width:100%;max-height:100%;opacity:0}storefront-image>img.loaded,.pxp-image>img.loaded{opacity:1;background-color:var(--imageBackgroundColor)}storefront-image.loaded,.pxp-image.loaded{background:#fff0}\n"],encapsulation:2,changeDetection:0}),f})()},4403:(T,v,a)=>{a.d(v,{U:()=>E});var c=a(177),e=a(4871),_=a(3953);let E=(()=>{var o;class h{}return(o=h).\u0275fac=function(l){return new(l||o)},o.\u0275mod=_.$C({type:o}),o.\u0275inj=_.G2t({imports:[c.MD,e.E]}),h})()},9876:(T,v,a)=>{a.d(v,{z:()=>E,G:()=>o});var c=a(3178);const e={type:"dynamic",mode:"width"};function E(h,r,l){return r?1/(h?function _(h,r=1){const l=parseInt((0,c.sF)(h,"w"),10),m=parseInt((0,c.sF)(h,"h"),10);return isNaN(l)||isNaN(m)?r:l/m}(l,0):r.naturalWidth/r.naturalHeight)*100:1}function o(h,r,l,m,g){if(!r||!l||isNaN(r)||isNaN(l))return(0,c.LS)(h,{w:!r||isNaN(r)?200:r,webp:1});const f=null!=m?m:e;let u,n=r,p=null;switch(f.type){case"fixed":break;case"dynamic":switch(p=l,f.mode){case"min":n<p?p=void 0:n=void 0;break;case"max":n<p?n=void 0:p=void 0;break;case"width":p=void 0;break;case"height":n=void 0}}if(g)try{const s=JSON.parse(g),y=s[0],d=s[1],i=s[3],x=r,D=l,P=Math.round(2*y/(1+s[2])),M=Math.round(2*d/(1-i));if(P/x>M/D){const I=Math.round(M*x/D),S=Math.round(Math.min(Math.max(y-I/2,0),P-I));u="".concat(S,"px,0px,").concat(I,"px,").concat(M,"px")}else{const I=Math.round(P*D/x),S=Math.round(Math.min(Math.max(d-I/2,0),M-I));u="0px,".concat(S,"px,").concat(P,"px,").concat(I,"px")}}catch(s){console.warn("Error parsing focal point: "+g)}return(0,c.LS)(h,{w:n,h:p,crop:u,webp:1})}},6033:(T,v,a)=>{a.d(v,{K:()=>o});var c=a(3953),e=a(9876),_=a(9516),E=a(5102);class o{constructor(){this.contextService=(0,c.WQX)(_.V),this.purpleService=(0,c.WQX)(E.Wj)}generateImageUrl(r){if(r.width){var l,m;const g=null==r||null===(l=r.loaderParams)||void 0===l?void 0:l.imageResolutionStrategy,f=(null==r||null===(m=r.loaderParams)||void 0===m?void 0:m.focalPoint)||"",n=this.contextService.toStorefrontResourceUrl((0,e.G)(r.src,r.width,Math.round(r.width/(4/3)),g,f));return this.purpleService.addImageSrc(n),n}return""}}}}]);
1
+ "use strict";(self.webpackChunkstorefront=self.webpackChunkstorefront||[]).push([["default-projects_storefront_src_app_component_image_image_leandom_component_ts-projects_store-a6979f"],{2932:(P,v,a)=>{a.d(v,{h:()=>p,q:()=>u});var c=a(177),e=a(3953),_=a(8251),E=a(8890),o=a(5102),h=a(9516),r=a(9876),l=a(5927),m=a(6033);const g=["image"],f=(s,y)=>({imageResolutionStrategy:s,focalPoint:y});function n(s,y){if(1&s){const d=e.RV6();e.j41(0,"img",2,0),e.bIt("error",function(){e.eBV(d);const i=e.XpG();return e.Njj(i.onError())}),e.k0s()}if(2&s){const d=e.XpG();e.Y8G("priority",d.lcpPrioritized())("ngSrc",d.src)("alt",d.alt)("title",d.title)("loaderParams",e.l_i(5,f,d.imageResolutionStrategy,d.focalPoint))}}let p=(()=>{var s;class y{get regularSrc(){return this.domHelper.regularSelector(this.src)}get prefixedPostType(){return this.domHelper.prefixedSelector(this.src)}get regularLabel(){return this.domHelper.regularSelector(this.label)}get prefixedLabel(){return this.domHelper.prefixedSelector(this.label)}get regularResolutionStrategy(){return this.domHelper.regularSelector(this.imageResolutionStrategy)}get prefixedResolutionStrategy(){return this.domHelper.prefixedSelector(this.imageResolutionStrategy)}set image(t){t&&this.onLoad(t),this._image=t}get image(){return this._image}get regularAlt(){return this.domHelper.regularSelector(this.alt)}get prefixedAlt(){return this.domHelper.prefixedSelector(this.alt)}get regularTitle(){return this.domHelper.regularSelector(this.title)}get prefixedTitle(){return this.domHelper.prefixedSelector(this.title)}get regularFocalPoint(){return this.domHelper.regularSelector(this.focalPoint)}get prefixedFocalPoint(){return this.domHelper.prefixedSelector(this.focalPoint)}get regularHeightStrategy(){return this.domHelper.regularSelector(this.height)}get prefixedHeightStrategy(){return this.domHelper.prefixedSelector(this.height)}constructor(){this.changeDetectorRef=(0,e.WQX)(e.gRc),this.elementRef=(0,e.WQX)(e.aKT),this.subscriptions=(0,e.WQX)(_.v),this.platformId=(0,e.WQX)(e.Agw),this.contextService=(0,e.WQX)(h.V),this.purpleService=(0,e.WQX)(o.Wj),this.domHelper=(0,e.WQX)(l.S),this.lcpPrioritized=(0,e.hFB)(!1),this.error=(0,e.CGW)(),this.height=u.AUTO,(0,c.UE)(this.platformId)&&this.subscriptions.subscribe((0,E.eh)(this,this.elementRef),t=>this.load())}get empty(){return!this.src}ngOnInit(){this.initProperties()}initProperties(){var t,i,x,T,D;this.alt=(null===(t=this.extendedThumbnail)||void 0===t?void 0:t.properties.alt)||(null===(i=this.extendedThumbnail)||void 0===i?void 0:i.properties.caption)||"",this.title=(null===(x=this.extendedThumbnail)||void 0===x?void 0:x.properties.title)||this.alt,this.ariaLabel=null!==(T=this.label)&&void 0!==T?T:this.alt,this.focalPoint=null===(D=this.extendedThumbnail)||void 0===D?void 0:D.properties.focuspoint}initAndLoad(){this.initProperties(),this.load()}load(){this.loaded||(this.loaded=!0,this.src&&this.update(),this.changeDetectorRef.detectChanges())}ngOnChanges(t){t.src&&this.loaded&&this.update()}update(){this.updateImageRatio()}onLoad(t){t.nativeElement.classList.add("loaded"),this.elementRef.nativeElement.classList.add("loaded"),this.changeDetectorRef.detectChanges(),t.nativeElement.addEventListener("load",()=>{this.updateImageRatio(!0,t),this.changeDetectorRef.markForCheck()}),t.nativeElement.addEventListener("error",function(){t.nativeElement.style.display="none",t.nativeElement.nextElementSibling&&(t.nativeElement.nextElementSibling.style.display="inline")})}onError(){if(!this.src)return;const t=this.purpleService.getAlternativeSrc(this.src);var i;t&&t!==this.src?(this.src=this.contextService.toStorefrontResourceUrl(t),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(t=!1,i=this.image){this.imageRatio=this.height===u.AUTO?(0,r.z)(!t,null==i?void 0:i.nativeElement,this.src)+"%":void 0}}return(s=y).\u0275fac=function(t){return new(t||s)},s.\u0275cmp=e.VBU({type:s,selectors:[["storefront-image"]],viewQuery:function(t,i){if(1&t&&e.GBs(g,5),2&t){let x;e.mGM(x=e.lsd())&&(i.image=x.first)}},hostVars:18,hostBindings:function(t,i){2&t&&(e.BMQ("src",i.regularSrc)("data-pxp-src",i.prefixedPostType)("label",i.regularLabel)("data-pxp-label",i.prefixedLabel)("resolution-strategy",i.regularResolutionStrategy)("data-pxp-resolution-strategy",i.prefixedResolutionStrategy)("alt",i.regularAlt)("data-pxp-alt",i.prefixedAlt)("title",i.regularTitle)("data-pxp-title",i.prefixedTitle)("focal-point",i.regularFocalPoint)("data-pxp-focal-point",i.prefixedFocalPoint)("height-strategy",i.regularHeightStrategy)("data-pxp-height-strategy",i.prefixedHeightStrategy),e.xc7("padding-top",i.imageRatio),e.AVh("empty",i.empty))},inputs:{src:"src",label:"label",extendedThumbnail:"extendedThumbnail",imageResolutionStrategy:"imageResolutionStrategy",lcpPrioritized:[1,"lcpPrioritized"],height:"height"},outputs:{error:"error"},standalone:!1,features:[e.Jv_([_.v,m.K,{provide:c.WM,useFactory:d=>t=>d.generateImageUrl(t),deps:[m.K]}]),e.OA$],decls:1,vars:1,consts:[["image",""],["fill","true","ngSrcset","300w, 600w, 900w, 1200w",3,"priority","ngSrc","alt","title","loaderParams"],["fill","true","ngSrcset","300w, 600w, 900w, 1200w",3,"error","priority","ngSrc","alt","title","loaderParams"]],template:function(t,i){1&t&&e.DNE(0,n,2,8,"img",1),2&t&&e.vxM(i.src?0:-1)},dependencies:[c.kt],styles:["storefront-image,.pxp-image{display:flex;justify-content:center;align-items:center;position:relative;background-color:var(--imageLoadingColor);transition:.2s background-color ease-in}storefront-image[height-strategy=FIXED]>img,storefront-image[data-pxp-height-strategy=FIXED]>img,storefront-image[height-strategy=AUTO]>img,storefront-image[data-pxp-height-strategy=AUTO]>img,.pxp-image[height-strategy=FIXED]>img,.pxp-image[data-pxp-height-strategy=FIXED]>img,.pxp-image[height-strategy=AUTO]>img,.pxp-image[data-pxp-height-strategy=AUTO]>img{position:absolute;width:auto;max-width:100%;top:0;object-fit:contain}storefront-image[height-strategy=DEFAULT]>img,storefront-image[data-pxp-height-strategy=DEFAULT]>img,.pxp-image[height-strategy=DEFAULT]>img,.pxp-image[data-pxp-height-strategy=DEFAULT]>img{position:static!important}storefront-image.img-with-hidden-alt,.pxp-image.img-with-hidden-alt{content:attr(data-alt);display:none}storefront-image>img,.pxp-image>img{display:block;transition:opacity .2s ease-in,background-color .2s ease-in;background-color:#fff0;max-width:100%;max-height:100%;opacity:0}storefront-image>img.loaded,.pxp-image>img.loaded{opacity:1;background-color:var(--imageBackgroundColor)}storefront-image.loaded,.pxp-image.loaded{background:#fff0}\n"],encapsulation:2,changeDetection:0}),y})();var u=function(s){return s.AUTO="AUTO",s.FIXED="FIXED",s.DEFAULT="DEFAULT",s}(u||{})},1302:(P,v,a)=>{a.d(v,{x:()=>m});var c=a(8251),e=a(2932),_=a(177),E=a(6033),o=a(3953);const h=["class","pxp-image"],r=(g,f)=>({imageResolutionStrategy:g,focalPoint:f});function l(g,f){if(1&g){const n=o.RV6();o.j41(0,"img",2,0),o.bIt("error",function(){o.eBV(n);const u=o.XpG();return o.Njj(u.onError())}),o.k0s()}if(2&g){const n=o.XpG();o.Y8G("priority",n.lcpPrioritized())("ngSrc",n.src)("alt",n.alt)("title",n.title)("loaderParams",o.l_i(5,r,n.imageResolutionStrategy,n.focalPoint))}}let m=(()=>{var g;class f extends e.h{}return(g=f).\u0275fac=(()=>{let n;return function(u){return(n||(n=o.xGo(g)))(u||g)}})(),g.\u0275cmp=o.VBU({type:g,selectors:[["div",8,"pxp-image"]],standalone:!1,features:[o.Jv_([c.v,E.K,{provide:_.WM,useFactory:n=>p=>n.generateImageUrl(p),deps:[E.K]}]),o.Vt3],attrs:h,decls:1,vars:1,consts:[["image",""],["fill","true","ngSrcset","300w, 600w, 900w, 1200w",3,"priority","ngSrc","alt","title","loaderParams"],["fill","true","ngSrcset","300w, 600w, 900w, 1200w",3,"error","priority","ngSrc","alt","title","loaderParams"]],template:function(p,u){1&p&&o.DNE(0,l,2,8,"img",1),2&p&&o.vxM(u.src?0:-1)},dependencies:[_.kt],styles:["storefront-image,.pxp-image{display:flex;justify-content:center;align-items:center;position:relative;background-color:var(--imageLoadingColor);transition:.2s background-color ease-in}storefront-image[height-strategy=FIXED]>img,storefront-image[data-pxp-height-strategy=FIXED]>img,storefront-image[height-strategy=AUTO]>img,storefront-image[data-pxp-height-strategy=AUTO]>img,.pxp-image[height-strategy=FIXED]>img,.pxp-image[data-pxp-height-strategy=FIXED]>img,.pxp-image[height-strategy=AUTO]>img,.pxp-image[data-pxp-height-strategy=AUTO]>img{position:absolute;width:auto;max-width:100%;top:0;object-fit:contain}storefront-image[height-strategy=DEFAULT]>img,storefront-image[data-pxp-height-strategy=DEFAULT]>img,.pxp-image[height-strategy=DEFAULT]>img,.pxp-image[data-pxp-height-strategy=DEFAULT]>img{position:static!important}storefront-image.img-with-hidden-alt,.pxp-image.img-with-hidden-alt{content:attr(data-alt);display:none}storefront-image>img,.pxp-image>img{display:block;transition:opacity .2s ease-in,background-color .2s ease-in;background-color:#fff0;max-width:100%;max-height:100%;opacity:0}storefront-image>img.loaded,.pxp-image>img.loaded{opacity:1;background-color:var(--imageBackgroundColor)}storefront-image.loaded,.pxp-image.loaded{background:#fff0}\n"],encapsulation:2,changeDetection:0}),f})()},4403:(P,v,a)=>{a.d(v,{U:()=>E});var c=a(177),e=a(4871),_=a(3953);let E=(()=>{var o;class h{}return(o=h).\u0275fac=function(l){return new(l||o)},o.\u0275mod=_.$C({type:o}),o.\u0275inj=_.G2t({imports:[c.MD,e.E]}),h})()},9876:(P,v,a)=>{a.d(v,{z:()=>E,G:()=>o});var c=a(3178);const e={type:"dynamic",mode:"width"};function E(h,r,l){return r?1/(h?function _(h,r=1){const l=parseInt((0,c.sF)(h,"w"),10),m=parseInt((0,c.sF)(h,"h"),10);return isNaN(l)||isNaN(m)?r:l/m}(l,0):r.naturalWidth/r.naturalHeight)*100:1}function o(h,r,l,m,g){if(!r||!l||isNaN(r)||isNaN(l))return(0,c.LS)(h,{w:!r||isNaN(r)?200:r,webp:1});const f=null!=m?m:e;let u,n=r,p=null;switch(f.type){case"fixed":break;case"dynamic":switch(p=l,f.mode){case"min":n<p?p=void 0:n=void 0;break;case"max":n<p?n=void 0:p=void 0;break;case"width":p=void 0;break;case"height":n=void 0}}if(g)try{const s=JSON.parse(g),y=s[0],d=s[1],i=s[3],x=r,T=l,D=Math.round(2*y/(1+s[2])),M=Math.round(2*d/(1-i));if(D/x>M/T){const I=Math.round(M*x/T),S=Math.round(Math.min(Math.max(y-I/2,0),D-I));u="".concat(S,"px,0px,").concat(I,"px,").concat(M,"px")}else{const I=Math.round(D*T/x),S=Math.round(Math.min(Math.max(d-I/2,0),M-I));u="0px,".concat(S,"px,").concat(D,"px,").concat(I,"px")}}catch(s){console.warn("Error parsing focal point: "+g)}return(0,c.LS)(h,{w:n,h:p,crop:u,webp:1})}},6033:(P,v,a)=>{a.d(v,{K:()=>o});var c=a(3953),e=a(9876),_=a(9516),E=a(5102);class o{constructor(){this.contextService=(0,c.WQX)(_.V),this.purpleService=(0,c.WQX)(E.Wj)}generateImageUrl(r){if(r.width){var l,m;const g=null==r||null===(l=r.loaderParams)||void 0===l?void 0:l.imageResolutionStrategy,f=(null==r||null===(m=r.loaderParams)||void 0===m?void 0:m.focalPoint)||"",n=this.contextService.toStorefrontResourceUrl((0,e.G)(r.src,r.width,Math.round(r.width/(4/3)),g,f));return this.purpleService.addImageSrc(n),n}return""}}}}]);