1import{Zb as T,dd as A,hc as F}from"./chunk-ZG3WIRAI.js";import"./chunk-PDVHZBRZ.js";import"./chunk-OVBXJYOG.js";import"./chunk-L2VYXFBY.js";import"./chunk-KWKV72KD.js";import{b as S}from"./chunk-C5YBR67A.js";import"./chunk-QQHKCXPT.js";import"./chunk-VEM5W72G.js";import"./chunk-B6YB2BQC.js";import"./chunk-G3GX2XHR.js";import"./chunk-M4U67OAB.js";import{h as k}from"./chunk-DOVFIF3D.js";import"./chunk-FM66ALZX.js";import"./chunk-ARPYOZEF.js";import{T as I,p as w}from"./chunk-KJBXQB2C.js";import"./chunk-ENLTPXSF.js";import{L as l,d as p}from"./chunk-JEUNMMQS.js";import"./chunk-DJKPENO3.js";import{Dc as c,Dd as M,Gc as a,Id as d,Ja as o,Se as G,Tc as s,Wa as u,Wb as y,bc as j,bd as D,eb as _,hc as f,ic as b,qc as h,sf as x,tc as C,w as n,wc as v,yc as P}from"./chunk-AAVCIRPQ.js";import{a as g,b as m}from"./chunk-RA2WU32H.js";var L=()=>[G,F,T];function B(r,t){if(r&1&&a(0,"jpg-media",2),r&2){let e=t.item;c("container",e)("autoplay",!0)("ngClass",e!=null&&e.immersive?"jpg-gallery--immersive":"")("widthDesktop","250")("widthMobile",e!=null&&e.immersive?"100%":"260")("visibleForAccessibility",!1)}}function N(r,t){if(r&1&&(a(0,"jpg-carousel",1),f(1,B,1,6,"ng-template",null,0,M)),r&2){let e=D(2),i=s(2);c("carouselConfig",i.carouselConfig)("items",i._primaryMedia())("template",e)("applyLoader",!0)}}function E(r,t){if(r&1&&v(0,N,3,4),r&2){let e=s();P(e._primaryMedia()?0:-1)}}function R(r,t){r&1&&a(0,"span")}var V=class r{component=o(w);rendererFactory=o(y);document=o(u);currentProductService=o(I);pdpFragranceService=o(A);deviceService=o(k);_medias=p(this.currentProductService.getProduct().pipe(n(t=>t?.showVideos?[t?.images?.[l.VIDEO],...t?.images?.[l.ALL]||[]]:t?.images?.[l.ALL])),{initialValue:[]});_isMobile=p(this.deviceService.isMobile$,{initialValue:!1});_images=p(S(this.component.data$,t=>t.images).pipe(n(t=>t.map(e=>{let i=e;if(!(!i.mediaDesktop?.url&&!i.mediaMobile?.url))return m(g({},e),{immersive:!0})}))),{initialValue:[]});_allMedia=d(()=>{let t=this._medias(),e=this._images();return e&&e.length>0?[...e.filter(J=>J),...t]:t});_primaryMedia=d(()=>this._isMobile()?this._allMedia():this._medias());carouselConfig={hiddenArrows:!0,hiddenIndicators:!1};renderer=this.rendererFactory.createRenderer(null,null);isMobile=!1;ngAfterViewChecked(){this.document.querySelector(".JPGPDPFragranceSection1ContentSlot .jpg-media img")?.setAttribute("role","presentation"),this.pdpFragranceService.calculateFraganceBoxHeight()}constructor(){_(()=>{this.isMobile=this._isMobile()})}static \u0275fac=function(e){return new(e||r)};static \u0275cmp=j({type:r,selectors:[["jpg-pdp-gallery"]],hostAttrs:[1,"jpg-pdp-gallery"],decls:4,vars:0,consts:[["carouselItem",""],[3,"carouselConfig","items","template","applyLoader"],[3,"container","autoplay","ngClass","widthDesktop","widthMobile","visibleForAccessibility"]],template:function(e,i){e&1&&(b(0,E,1,1)(1,R,1,0),h(2,0,L,null,1),C(0,-1))},dependencies:[x],styles:[`.jpg-pdp-gallery{width:15.625rem;margin:0 auto .9375rem}.jpg-pdp-gallery .jpg-carousel__bottom-controls{display:none}.jpg-pdp-gallery .jpg-carousel .jpg-media{height:15.625rem}.jpg-pdp-gallery .jpg-carousel .jpg-media img,.jpg-pdp-gallery .jpg-carousel .jpg-media video{object-fit:contain}@media(max-width:1023px){.jpg-pdp-gallery{width:100dvw;margin:0 -1.875rem 5rem}.jpg-pdp-gallery:has(.jpg-gallery--immersive){margin-top:-4.375rem}.jpg-pdp-gallery:has(.jpg-carousel__indicators.hidden){margin-bottom:1.875rem}.jpg-pdp-gallery .jpg-carousel .keen-slider__slide{display:flex;align-items:flex-end;justify-content:center}.jpg-pdp-gallery .jpg-carousel__bottom-controls{bottom:-3.75rem;display:block;text-align:center}.jpg-pdp-gallery .jpg-carousel__bottom-controls .jpg-carousel__indicator-core{fill:#ffffff4d}.jpg-pdp-gallery .jpg-carousel__bottom-controls .jpg-carousel__indicator--active .jpg-carou
1sel__indicator-core{fill:var(--jpg-pdp-text-color)}.jpg-pdp-gallery .jpg-carousel .jpg-media{height:20.3125rem}.jpg-pdp-gallery .jpg-carousel .jpg-media.jpg-gallery--immersive{width:100%;height:24.6875rem}.jpg-pdp-gallery .jpg-carousel .jpg-media.jpg-gallery--immersive img{object-fit:cover}body.header--bg-transparent-text-white:not(.pdp--type-ancillary):not(.pdp--type-gift-set):not(.pdp--type-bundle):has(.jpg-pdp-gallery .jpg-gallery--immersive):has(.jpg-pdp-gallery .keen-slider__slide:first-child.keen-slider__slide--active) .jpg-pdp-gallery:after,body.header--bg-transparent-text-black:not(.pdp--type-ancillary):not(.pdp--type-gift-set):not(.pdp--type-bundle):has(.jpg-pdp-gallery .jpg-gallery--immersive):has(.jpg-pdp-gallery .keen-slider__slide:first-child.keen-slider__slide--active) .jpg-pdp-gallery:after{position:absolute;top:0;right:0;left:0;height:8.75rem;content:"";background:linear-gradient(rgba(0,0,0,.88),rgba(0,0,0,.54),transparent)}body.pdp--type-ancillary .JPGPDPTemplate .jpg-pdp-gallery .jpg-carousel__bottom-controls .jpg-carousel__indicator:not(.jpg-carousel__indicator--active) .jpg-carousel__indicator-core,body.pdp--type-ancillary .JPGBDPTemplate .jpg-pdp-gallery .jpg-carousel__bottom-controls .jpg-carousel__indicator:not(.jpg-carousel__indicator--active) .jpg-carousel__indicator-core{fill:#0000004d}body.pdp--type-gift-set .JPGPDPTemplate .jpg-pdp-gallery .jpg-carousel__bottom-controls .jpg-carousel__indicator:not(.jpg-carousel__indicator--active) .jpg-carousel__indicator-core,body.pdp--type-gift-set .JPGBDPTemplate .jpg-pdp-gallery .jpg-carousel__bottom-controls .jpg-carousel__indicator:not(.jpg-carousel__indicator--active) .jpg-carousel__indicator-core{fill:#0000004d}body.pdp--type-bundle .JPGPDPTemplate .jpg-pdp-gallery .jpg-carousel__bottom-controls .jpg-carousel__indicator:not(.jpg-carousel__indicator--active) .jpg-carousel__indicator-core,body.pdp--type-bundle .JPGBDPTemplate .jpg-pdp-gallery .jpg-carousel__bottom-controls .jpg-carousel__indicator:not(.jpg-carousel__indicator--active) .jpg-carousel__indicator-core{fill:#0000004d}} 2`],encapsulation:2})};export{V as PdpGalleryComponent};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.