1import{a as re}from"./chunk-DDRMLQGP.js";import{b as ie,c as oe}from"./chunk-EB6UNOQQ.js";import"./chunk-XFTF5WRX.js";import"./chunk-427ZX2AA.js";import"./chunk-SEX5KQKT.js";import"./chunk-6OYEC3VN.js";import"./chunk-XX3ZCPCH.js";import"./chunk-WX5IEK4X.js";import"./chunk-MA57432C.js";import"./chunk-X6EA6A5R.js";import"./chunk-AUEDX7UT.js";import"./chunk-GFFPIZE2.js";import"./chunk-2SRAXU7H.js";import"./chunk-FTBCFQJG.js";import"./chunk-OSTPGULE.js";import"./chunk-2X62MTQM.js";import"./chunk-JXMTAIBB.js";import"./chunk-LWUUEIQO.js";import"./chunk-ZFUIHNPN.js";import"./chunk-KJIUKXJ4.js";import{u as ee}from"./chunk-F2UDG76F.js";import"./chunk-KPFW5WDZ.js";import"./chunk-IQBVAIDQ.js";import"./chunk-L2XAKF7E.js";import"./chunk-B7NBARZN.js";import"./chunk-IZI3LWX3.js";import{a as ne}from"./chunk-HWMTSDLJ.js";import"./chunk-SCJMMS4R.js";import{a as te}from"./chunk-N2OMGYSR.js";import"./chunk-GLB6FXVW.js";import"./chunk-NKZ7GERH.js";import"./chunk-PLWO6N5B.js";import"./chunk-NYVODJB2.js";import{mj as u}from"./chunk-JWTTV2TH.js";import"./chunk-HKNOB5YZ.js";import{v as Y,y as Z}from"./chunk-WFKL35DD.js";import"./chunk-2CBKXUP7.js";import{$c as X,Aa as Q,fa as G,s as q}from"./chunk-DM3NC7AB.js";import{$b as E,Ac as j,Ad as k,Bb as C,Bc as r,Bd as $,Cc as l,Dc as d,Ec as v,Ee as U,Fa as H,Hd as K,Id as J,Jb as i,K as R,Oe as W,Rc as c,Vb as P,Wb as a,a as y,ac as A,be as V,dd as T,e as w,ed as f,fd as L,gd as b,hb as B,ta as I,td as z,uc as m,ud as F,ve as N,w as _,wa as D,wc as p,x as S,yc as O,zc as M}from"./chunk-WVBH4ZDA.js";import{a as x,b as g}from"./chunk-YDOXD4O3.js";var ce=(n,t)=>[n,t],me=n=>({"shadow-on-hover":n});function pe(n,t){if(n&1&&(l(0,"h2",2),f(1),d()),n&2){let e=c(2);r("ngClass",$(3,ce,e.carouselComponentBody?"":"heading-without-body",e.isKJPOBanner?"custom-carousel-paddingKJPO":""))("innerHtml",e.sanitizer.bypassSecurityTrustHtml(e.carouselComponentHeader),C),i(),b(" ",e.carouselComponentHeader," ")}}function de(n,t){if(n&1&&(l(0,"p",3),f(1),d()),n&2){let e=c(2);r("ngClass",e.isKJPOBanner?"custom-body-class":"")("innerHtml",e.sanitizer.bypassSecurityTrustHtml(e.carouselComponentBody),C),i(),L(e.carouselComponentBody)}}function ue(n,t){if(n&1&&v(0,"app-amor-content-box",12),n&2){let e=c().$implicit;r("amorBoxContent",e)}}function fe(n,t){if(n&1&&(l(0,"div",8)(1,"div",9)(2,"div",10),K(3,"async"),l(4,"div",11),f(5),m(6,ue,1,1,"app-amor-content-box",12),d()()()()),n&2){let e=t.$implicit,o=c(2);i(),r("ngClass",o.componentData.mobileLayout==="TWOCOLUMNS"?" carousel_li_slide_mobile":""),i(),r("ngClass",k(7,me,J(3,5,o.isOnHoverEnable$))),i(2),r("ngClass",((o.componentData==null?null:o.componentData.contentAlignment)==="LEFT"?" left":"")+" "+((o.componentData==null?null:o.componentData.contentAlignment)==="RIGHT"?" right":"")+" "+((o.componentData==null?null:o.componentData.verticalAlignment)==="Center"?" carousel-center":"")+" "+(o.isPLPURL?"":"lazyload-image")),i(),b(" ",e.lazyLoadImage," "),i(),p(e?6:-1)}}function he(n,t){if(n&1&&v(0,"div",13)(1,"div",14),n&2){let e=c(2);r("ngClass",e.uid+"-previous-button"+(e.shouldHideArrowsDesktop()?" btn-remove":"")),i(),r("ngClass",e.uid+"-next-button"+(e.shouldHideArrowsDesktop()?" btn-remove":""))}}function xe(n,t){if(n&1&&(l(0,"div",0)(1,"div",1),m(2,pe,2,6,"h2",2),m(3,de,2,3,"p",3),l(4,"div",4)(5,"ul",5)(6,"div",6)(7,"div",7),M(8,fe,7,9,"div",8,O),d()(),m(10,he,2,2),d()()()()),n&2){let e=c();i(2),p(e.carouselComponentHeader?2:-1),i(),p(e.carouselComponentBody?3:-1),i(),r("id",e.uid),i(),r("id",z("",e.uid,"_carousel-scroll"))("ngClass",e.componentData.layout==="FourColoumns"?" four-col-structure":""),i(),r("ngClass",e.uid?e.uid:""),i(),T(F("swiper-wrapper ",e.componentData.mobileLayout," ",e.componentData.layout)),r("ngClass",e.renderInSSR?"ssr-amor-carousel":""),i(),j(e.contentBoxes),i(2),p(e.renderInSSR?-1:10)}}var h=class n{constructor(t,e,o,s,ge,Ce,ve,be,ye,we){this.cmsComponentData=t;this.cmsService=e;this.changeDetect=o;this.winRef=s;this.renderer=ge;this.elementRef=Ce;this.headerService=ve;this.sanitizer=be;this.minHeightService=ye;this.siteIdentificationService=we;this.isKJPOBanner=!1;this.shadowEffectOnHover=!0;this.subscriptions$=new y;this.contentBoxes=[];this.renderInSSR=!1;this.isPLPURL=!1;this.isOnHoverEnable$=new w(!1);this.components$=this.cmsComponentData.data$.pipe(D(t=>{let e=t;e.uid&&this.setComponentProperties(e)}),I(t=>{let e=t?.imageRatio||"";return S((t?.contentBoxes??"").split(" ").map(o=>this.cmsService.getComponentData(o).pipe(_(s=>{if(s)return s.flexType||(s=g(x({},s),{flexType:s.typeCode})),g(x({},s),{imageRatio:e})}),R(s=>s!==void 0))))}
1));let se=this.siteIdentificationService.isUKSite;this.isPLPURL=this.winRef.location.href?.includes("/c/")||this.winRef.location.href?.includes("/search?text")||this.winRef.location.href?.includes("/l/")||this.winRef.location.href?.includes("/quiz/results/")||!1,this.renderInSSR=!this.winRef.isBrowser()&&(this.isPLPURL||se)}ngOnInit(){this.subscriptions$.add(this.components$.subscribe(t=>{t&&(this.contentBoxes=t,this.minHeightService?.setMinHeightFromCMS(t,this.elementRef),this.changeDetect.detectChanges(),this.swiperConfig())})),this.IsKJPBanner()}swiperConfig(){this.renderInSSR||!this.winRef.isBrowser()||(this.config={slidesPerView:this.componentData.layout===u.FourColoumns?4:6,slidesPerGroup:1,direction:"horizontal",allowTouchMove:!0,preloadImages:!1,lazy:!0,observer:!0,observeParents:!0,observeSlideChildren:!0,a11y:{enabled:!0},navigation:{enabled:!0,nextEl:`.${this.uid}-next-button`,prevEl:`.${this.uid}-previous-button`},breakpoints:{320:{slidesPerView:this.componentData.mobileLayout===u.twoColumns?2:1},769:{slidesPerView:this.elementRef.nativeElement.closest(".grid-content-1x1")?1:this.elementRef.nativeElement.closest(".grid-content-2x1")?2:this.componentData.layout===u.sixColumns&&this.elementRef.nativeElement.closest(".product-scroll-wrapper")?4:3},1281:{slidesPerView:this.elementRef.nativeElement.closest(".grid-content-1x1")?1:this.elementRef.nativeElement.closest(".grid-content-2x1")?2:this.componentData.layout===u.FourColoumns?4:6}}},requestAnimationFrame(()=>{let t=this.elementRef.nativeElement.querySelector("."+this.uid);t&&(this.swiper=new ee(t,this.config))}))}ngAfterViewInit(){}setComponentProperties(t){this.componentData=t,this.uid=t.uid,this.carouselComponentBody=t.carouselComponentBody,this.carouselComponentHeader=t.carouselComponentHeader,this.minHeightService?.setMinHeightFromCMS(t,this.elementRef),this.isOnHoverEnable$.next(t?.onHover==="true")}ngOnDestroy(){this.swiper&&(typeof this.swiper.detachEvents=="function"&&this.swiper.detachEvents(),typeof this.swiper.destroy=="function"&&this.swiper.destroy()),this.subscriptions$.unsubscribe()}IsKJPBanner(){(this.siteIdentificationService.isKayOutlet||this.siteIdentificationService.isKay||this.siteIdentificationService.isPeoples||this.siteIdentificationService.isJared)&&(this.isKJPOBanner=!0)}shouldHideArrowsDesktop(){if(!this.winRef.isBrowser()||!this.winRef.nativeWindow||this.winRef.nativeWindow.innerWidth<1281)return!1;let t=this.swiper?.params?.slidesPerView||6;return this.swiper||(this.elementRef.nativeElement.closest(".grid-content-1x1")?t=1:this.elementRef.nativeElement.closest(".grid-content-2x1")?t=2:this.componentData.layout===u.FourColoumns?t=4:t=6),this.contentBoxes.length<=t}static{this.\u0275fac=function(e){return new(e||n)(a(Y),a(X),a(V),a(Q),a(P),a(B),a(re),a(q),a(ne),a(te))}}static{this.\u0275cmp=E({type:n,selectors:[["app-amor-carousel"]],hostAttrs:["ngSkipHydration","true"],standalone:!1,decls:1,vars:1,consts:[[1,"amor-container","se-component"],[1,"main-carousel"],[1,"carousel-head","header-display-4",3,"ngClass","innerHtml"],[1,"carousel-body","body-one",3,"ngClass","innerHtml"],[1,"amor-carousel-container",3,"id"],["role","presentation",1,"carousel-scroll","carousel__ol_viewport",3,"id","ngClass"],[1,"swiper",3,"ngClass"],[3,"ngClass"],[1,"swiper-slide"],[1,"carousel_li_slide",3,"ngClass"],[1,"carousel_main_div",3,"ngClass"],[1,"carousel__div",3,"ngClass"],[3,"amorBoxContent"],[1,"swiper-button-prev",3,"ngClass"],[1,"swiper-button-next",3,"ngClass"]],template:function(e,o){e&1&&m(0,xe,11,13,"div",0),e&2&&p(o.contentBoxes&&o.contentBoxes.length>0?0:-1)},dependencies:[N,ie,U],styles:[`.amor-container .main-carousel{text-align:center;padding:0 15px 56px}.main-carousel .carousel-head{margin:0;padding-bottom:16px}.main-carousel .swiper-button-prev{color:#000;background-color:transparent;border:none;padding:10px;width:44px;height:44px;left:-16px}.main-carousel .swiper-button-next{color:#000;background-color:transparent;border:none;padding:10px;width:46px;height:44px;right:-16px}@media(min-width:1281px){.main-carousel .amor-carousel-container .swiper-button-next.btn-remove,.main-carousel .amor-carou
1sel-container .swiper-button-prev.btn-remove{display:none}}.main-carousel .heading-two{letter-spacing:0}.main-carousel .heading-without-body{padding-bottom:56px}.main-carousel .heading-without-body.custom-carousel-paddingKJPO{padding-bottom:32px}.main-carousel .carousel-body{margin:0;padding-bottom:56px}.main-carousel .carousel-body.custom-body-class{padding-bottom:32px}.main-carousel .body-one{font-size:16px;line-height:24px;letter-spacing:0}.main-carousel .amor-carousel-container{position:relative;display:flex;align-items:center;overflow:hidden;padding:0 20px;gap:0;flex-direction:row;margin:auto;max-width:100%}.main-carousel .amor-carousel-container .swiper-button-lock{display:block}.main-carousel .amor-carousel-container .swiper{width:100%}@media(min-width:1400px){.main-carousel .amor-carousel-container{max-width:1400px}}.main-carousel .carousel__ol_viewport{margin:0;padding:0;counter-reset:item}.main-carousel .carousel-scroll{text-transform:none;display:flex;overflow-x:auto;overflow-y:hidden;scroll-behavior:smooth;scroll-snap-type:x mandatory;scroll-snap-stop:always;width:100%}.main-carousel .carousel_li_slide{flex:0 0 25%;list-style:none;margin:0;padding:0;background-color:#fff;counter-increment:item;scroll-snap-align:start}@media(max-width:1280px){.main-carousel .carousel_li_slide.carousel_li_slide_mobile{flex:1 0 50%;padding:0 4px}}.main-carousel .carousel_main_div{display:flex;flex-direction:column;height:100%;justify-content:flex-start}.main-carousel .carousel_main_div.shadow-on-hover:hover .content-box-wrapper .content-box{box-shadow:0 0 30px #d4d4d6}.main-carousel .carousel_main_div .content-box-wrapper .content-box.linkImage{margin:20px 0}.main-carousel .carousel_main_div .content-box-wrapper .content-box .content-box-button{display:none}.main-carousel .carousel__div{display:flex;flex-direction:column;justify-content:flex-start;align-content:center;text-align:center;width:100%;height:100%}.main-carousel .carousel__div.carousel-center{justify-content:center}.main-carousel .carousel__div.right{text-align:right;align-content:flex-end}.main-carousel .carousel__div.right .eyebrow-text{justify-content:flex-end}.main-carousel .carousel__div.right .headline-text{align-self:flex-end}.main-carousel .carousel__div.left{text-align:left;align-content:flex-start}.main-carousel .carousel__div.left .eyebrow-text{justify-content:flex-start}.main-carousel .carousel__div.left .headline-text{align-self:flex-start}@media(max-width:1281px){.main-carousel .amor-carousel-container .carousel-scroll.carousel__ol_viewport .carousel_li_slide{flex:0 0 33.33%}.main-carousel .content-box-wrapper .content-box .headline-text{line-height:24px}}@media(max-width:768px){.amor-container .main-carousel .carousel-head{margin:0;padding-bottom:16px}.amor-container .main-carousel .carousel-head.heading-without-body.custom-carousel-paddingKJPO{padding-bottom:24px}.amor-container .main-carousel .carousel-body{padding-bottom:32px}.amor-container .main-carousel .carousel-body.custom-body-class{padding-bottom:24px}.amor-container .main-carousel .content-box-wrapper .content-box .description-text{font-size:14px;line-height:21px}.amor-container .main-carousel .carousel-head.heading-without-body{padding-bottom:32px}} 2`],encapsulation:2})}};var ae=class n{static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275mod=A({type:n})}static{this.\u0275inj=H({providers:[G({cmsComponents:{SignetCarouselComponent:{component:h}}})],imports:[W,Z,oe]})}};export{ae as AmorCarouselModule};
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.