PageSourceSearch

https://www.repassa.com.br/2365.5657cc944f326a36.js

js repassa.com.br collected 2026-09-25 04:15:41 UTC 114,444 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkstore=self.webpackChunkstore||[]).push([[2365],{22365:(A,E,r)=>{r.r(E),r.d(E,{ProductDetailsPageComponent:()=>ni});var g=r(60177),t=r(54438),d=r(89079),u=r(62557),_=r(19520),p=r(62775),y=r(25459),b=r(47029),s=r(54114),h=r(19075);function I(i,a){if(1&i){const e=t.RV6();t.qex(0),t.j41(1,"ui-button",1),t.bIt("clicked",function(){t.eBV(e);const n=t.XpG();return t.Njj(n.onButtonClick())}),t.EFF(2),t.k0s(),t.bVm()}if(2&i){const e=a.$implicit,o=t.XpG();t.R7$(),t.Y8G("type","primary")("size",o.uiButtonSize())("disabled",o.isButtonDisabled())("loading",o.loading()),t.R7$(),t.SpI(" ",e(o.buttonLabel())," ")}}let f=(()=>{class i{constructor(){this.productId=t.hFB.required(),this.productStatus=(0,t.hFB)(),this.productReservedUntil=(0,t.hFB)(),this.size=(0,t.hFB)("medium"),this.disabled=(0,t.hFB)(!1),this.loading=(0,t.hFB)(!1),this.isUserAuthenticated=(0,t.hFB)(!1),this.isProductInCart=(0,t.hFB)(!1),this.isCartFull=(0,t.hFB)(!1),this.addToCartClicked=(0,t.CGW)(),this.authenticationRequired=(0,t.CGW)(),this.uiButtonSize=(0,t.EWP)(()=>({medium:"medium",large:"large"}[this.size()])),this.isProductUnavailable=(0,t.EWP)(()=>{const e=[h.Sz.Published,h.Sz.EnqueuedForPublication],o=this.productStatus()&&!e.includes(this.productStatus()),n=this.productReservedUntil()&&this.productReservedUntil()>new Date;return!(!o&&!n)}),this.buttonLabel=(0,t.EWP)(()=>this.isProductInCart()?"shared.addToCartButton.alreadyInCart":this.isProductUnavailable()?"shared.addToCartButton.productUnavailable":this.isCartFull()?"shared.addToCartButton.cartFull":"shared.addToCartButton.addToCart"),this.isButtonDisabled=(0,t.EWP)(()=>this.disabled()||this.loading()||this.isProductInCart()||this.isProductUnavailable()||this.isCartFull())}onButtonClick(){if(!this.isButtonDisabled()){if(!this.isUserAuthenticated())return void this.authenticationRequired.emit();this.addToCartClicked.emit()}}static{this.\u0275fac=function(o){return new(o||i)}}static{this.\u0275cmp=t.VBU({type:i,selectors:[["app-add-to-cart-button"]],inputs:{productId:[t.Mj6.SignalBased,"productId"],productStatus:[t.Mj6.SignalBased,"productStatus"],productReservedUntil:[t.Mj6.SignalBased,"productReservedUntil"],size:[t.Mj6.SignalBased,"size"],disabled:[t.Mj6.SignalBased,"disabled"],loading:[t.Mj6.SignalBased,"loading"],isUserAuthenticated:[t.Mj6.SignalBased,"isUserAuthenticated"],isProductInCart:[t.Mj6.SignalBased,"isProductInCart"],isCartFull:[t.Mj6.SignalBased,"isCartFull"]},outputs:{addToCartClicked:"addToCartClicked",authenticationRequired:"authenticationRequired"},standalone:!0,features:[t.aNF],decls:1,vars:0,consts:[[4,"transloco"],[3,"clicked","type","size","disabled","loading"]],template:function(o,n){1&o&&t.DNE(0,I,3,5,"ng-container",0)},dependencies:[g.MD,_.Q8,_.bA,s.A4],encapsulation:2})}}return i})();const C=i=>({benefit:i}),P=(i,a,e)=>({couponCode:i,benefit:a,condition:e});function c(i,a){if(1&i&&t.nrm(0,"ui-paragraph",2),2&i){const e=t.XpG().$implicit,o=t.XpG();t.Y8G("uiMarkdownText",e("shared.firstPurchase.notLoggedMessage",t.eq3(1,C,o.benefit())))}}function S(i,a){if(1&i&&t.nrm(0,"ui-paragraph",2),2&i){const e=t.XpG().$implicit,o=t.XpG();t.Y8G("uiMarkdownText",e("shared.firstPurchase.loggedMessage",t.sMw(1,P,o.couponCode(),o.benefit(),o.condition())))}}function m(i,a){if(1&i&&(t.qex(0),t.j41(1,"ui-alert",1),t.DNE(2,c,1,3,"ui-paragraph",2)(3,S,1,5),t.k0s(),t.bVm()),2&i){const e=t.XpG();t.R7$(2),t.vxM(2,e.context()===e.FirstPurchaseMessageContext.NotLogged?2:3)}}let w=(()=>{class i{constructor(){this.context=t.hFB.required(),this.benefit=t.hFB.required(),this.couponCode=t.hFB.required(),this.condition=t.hFB.required(),this.FirstPurchaseMessageContext=y.Ad}static{this.\u0275fac=function(o){return new(o||i)}}static{this.\u0275cmp=t.VBU({type:i,selectors:[["app-first-purchase-message"]],inputs:{context:[t.Mj6.SignalBased,"context"],benefit:[t.Mj6.SignalBased,"benefit"],couponCode:[t.Mj6.SignalBased,"couponCode"],condition:[t.Mj6.SignalBased,"condition"]},standalone:!0,features:[t.aNF],decls:1,vars:0,consts:[[4,"transloco"],["type","notification","leadingIcon","vestua-bright-star"],["baseSize","small",3,"uiMarkdownText"]],template:function(o,n){1&o&&t.DNE(0,m,4,1,"ng-container",0)},dependencies:[s.ck,s.E0,s.cA,_.bA],encapsulation:2})}}return i})();const F=i=>({size:i}),G=i=>({amount:i}),j=i=>({price:i});function X(i,a){if(1&i&&(t.j41(0,"ui-badge",9),t.EFF(1),t.nI1(2,"appCurrency"),t.k0s()),2&i){const e=t.XpG().$implicit,o=t.XpG();t.R7$(),t.SpI(" ",e("shared.general.savingsPresent",t.eq3(3,G,t.bMT(2,1,o.savingsAmount())))," ")}}function N(i,a){if(1&i&&(t.j41(0,"ui-text",10),t.EFF(1),t.nI1(2,"appCurrency"),t.k0s()),2&i){const e=t.XpG(2);t.R7$(),t.SpI(" ",t.bMT(2,1,e.product().referencePrice)," ")}}function K(i,a){if(1&i&&(t.j41(0,"ui-text",10),t.EFF(1),t.nI1(2,"appCurrency"),t.k0s()),2&i){const e=t.XpG().$implicit,o=t.XpG();t.R7$(),t.SpI(" ",e("pagesProductDetails.basicInfo.referencePrice",t.eq3(3,j,t.bMT(2,1,o.product().referencePrice)))," ")}}function $(i,a){if(1&i&&(t.qex(0),t.j41(1,"ui-column",1)(2,"ui-row",2)(3,"ui-heading",3),t.EFF(4),t.k0s(),t.j41(5,"ui-heading",4),t.EFF(6),t.k0s()(),t.j41(7,"ui-row",5)(8,"ui-heading",6),t.EFF(9),t.nI1(10,"appCurrency"),t.k0s(),t.DNE(11,X,3,5,"ui-badge",7),t.k0s(),t.DNE(12,N,3,3,"ui-text",8)(13,K,3,5,"ui-text",8),t.k0s(),t.bVm()),2&i){const e=a.$implicit,o=t.XpG();t.R7$(4),t.JRh(o.productName()),t.R7$(2),t.SpI(" - ",e("shared.general.sizeWithLabel",t.eq3(9,F,o.productSize()))," "),t.R7$(2),t.Y8G("color",o.product().hasDiscount?"intent-error-fg":"text-primary"),t.R7$(),t.SpI(" ",t.bMT(10,7,o.displayPrice())," "),t.R7$(2),t.Y8G("ngIf",o.savingsAmount()>0),t.R7$(),t.Y8G("ngIf",o.product().hasDiscount&&o.product().referencePrice),t.R7$(),t.Y8G("ngIf",o.product().referencePrice)}}let Z=(()=>{class i{constructor(){this.product=t.hFB.required(),this.productName=t.hFB.required(),this.productSize=(0,t.hFB)(),this.displayPrice=t.h
1FB.required(),this.savingsAmount=t.hFB.required()}static{this.\u0275fac=function(o){return new(o||i)}}static{this.\u0275cmp=t.VBU({type:i,selectors:[["app-product-basic-info"]],inputs:{product:[t.Mj6.SignalBased,"product"],productName:[t.Mj6.SignalBased,"productName"],productSize:[t.Mj6.SignalBased,"productSize"],displayPrice:[t.Mj6.SignalBased,"displayPrice"],savingsAmount:[t.Mj6.SignalBased,"savingsAmount"]},standalone:!0,features:[t.aNF],decls:1,vars:0,consts:[[4,"transloco"],["gap","s8","crossAxisAlignment","start"],["gap","s7","crossAxisAlignment","baseline"],["size","h5"],["size","h6","color","text-secondary"],["crossAxisAlignment","center","gap","s7"],["size","h3",3,"color"],["type","neutral","size","small",4,"ngIf"],["size","medium","weight","w400","color","text-secondary",4,"ngIf"],["type","neutral","size","small"],["size","medium","weight","w400","color","text-secondary"]],template:function(o,n){1&o&&t.DNE(0,$,14,11,"ng-container",0)},dependencies:[g.MD,g.bT,_.bA,s.ob,s.qE,s.S7,s.tL,s.zR,p.HS],encapsulation:2})}}return i})();var z=r(42905);const H=(i,a)=>a.label,J=i=>({siteName:i});function L(i,a){1&i&&t.nrm(0,"ui-icon",3)}function Q(i,a){if(1&i&&(t.DNE(0,L,1,0,"ui-icon",3),t.j41(1,"ui-link",2),t.EFF(2),t.k0s()),2&i){const e=a.$implicit,o=a.$index,n=a.$count,T=t.XpG().$implicit,B=t.XpG();t.vxM(0,0!==o?0:-1),t.R7$(),t.Y8G("weight",o===n-1?"w600":"w500")("color",o===n-1?"text-primary":"text-secondary")("routerLink",e.url),t.R7$(),t.SpI(" ",B.isTranslationKey(e.label)?T(e.label,t.eq3(5,J,B.siteName)):e.label," ")}}function U(i,a){if(1&i&&(t.qex(0),t.j41(1,"ui-row",1),t.Z7z(2,Q,3,7,"ui-link",2,H),t.k0s(),t.bVm()),2&i){const e=t.XpG();t.R7$(2),t.Dyx(e.breadcrumbs())}}let q=(()=>{class i{constructor(){this.product=t.hFB.required(),this.countryConfigService=(0,t.WQX)(z.tP),this.siteName=this.countryConfigService.config.branding.siteName,this.breadcrumbs=(0,t.EWP)(()=>{const e=this.product(),o=[];o.push({label:"shared.breadcrumbs.home",url:"/store"}),o.push({label:"shared.breadcrumbs.catalog",url:"/store/catalog"});const n=this.getCategoryTag(e);if(n){const T=this.buildCategoryUrl(e.category);o.push({label:n.translation??n.value,url:T})}if(e.isBranded){const T=this.buildBrandUrl(e.category,e.brand.name);o.push({label:e.brand.name,url:T})}return o})}isTranslationKey(e){return e.startsWith("shared.")}getCategoryTag(e){return e.tags.find(o=>"Category"===o.TagType.name)}buildCategoryUrl(e){return`/store/catalog/${e.toLowerCase().replace(/ /g,"-")}`}buildBrandUrl(e,o){return`/store/catalog/${e.toLowerCase().replace(/ /g,"-")}/${o.toLowerCase().replace(/ /g,"-")}`}static{this.\u0275fac=function(o){return new(o||i)}}static{this.\u0275cmp=t.VBU({type:i,selectors:[["app-product-breadcrumbs"]],inputs:{product:[t.Mj6.SignalBased,"product"]},standalone:!0,features:[t.aNF],decls:1,vars:0,consts:[[4,"transloco"],["gap","s7","crossAxisAlignment","center",1,"breadcrumbs"],["size","small",3,"weight","color","routerLink"],["name","chevron_right","size","small","weight","w500"]],template:function(o,n){1&o&&t.DNE(0,U,4,0,"ng-container",0)},dependencies:[g.MD,_.bA,s.qE,s.uF,s.bh],styles:[".breadcrumbs[_ngcontent-%COMP%]{padding:0 16px;overflow-x:auto;scrollbar-width:none;-ms-overflow-style:none}.breadcrumbs[_ngcontent-%COMP%]::-webkit-scrollbar{display:none}@media (min-width: 768px){.breadcrumbs[_ngcontent-%COMP%]{padding:0}}"]})}}return i})();class D{static{this.translations={[h.bV.Tier1_WithRetailLabel]:"shared.product.condition.withRetailLabel",[h.bV.Tier2_LikeNew]:"shared.product.condition.likeNew",[h.bV.Tier3_SmallImperfections]:"shared.product.condition.smallImperfections",[h.bV.Tier4_EvidentUse]:"shared.product.condition.evidentUse",[h.bV.NoInfo]:"shared.product.condition.noInfo"}}transform(a){return D.translations[a]}static{this.\u0275fac=function(e){return new(e||D)}}static{this.\u0275pipe=t.EJ8({name:"productConditionTranslationKey",type:D,pure:!0,standalone:!0})}}class W{static{this.translations={[h.bV.Tier1_WithRetailLabel]:"pagesProductDetails.conditionMeanings.withRetailLabel",[h.bV.Tier2_LikeNew]:"pagesProductDetails.conditionMeanings.likeNew",[h.bV.Tier3_SmallImperfections]:"pagesProductDetails.conditionMeanings.smallImperfections",[h.bV.Tier4_EvidentUse]:"pagesProductDetails.conditionMeanings.evidentUse",[h.bV.NoInfo]:"pagesProductDetails.conditionMeanings.noInfo"}}transform(a){return W.translations[a]}static{this.\u0275fac=function(e){return new(e||W)}}
1static{this.\u0275pipe=t.EJ8({name:"productConditionMeaningTranslationKey",type:W,pure:!0,standalone:!0})}}let tt=(()=>{class i{static{this.translations={general:"pagesProductDetails.detailZones.general",front:"pagesProductDetails.detailZones.front",back:"pagesProductDetails.detailZones.back",armpits:"pagesProductDetails.detailZones.armpits",collar:"pagesProductDetails.detailZones.collar",cuffs:"pagesProductDetails.detailZones.cuffs",interior:"pagesProductDetails.detailZones.interior",crotch:"pagesProductDetails.detailZones.crotch","upper-end":"pagesProductDetails.detailZones.upperEnd","lower-end":"pagesProductDetails.detailZones.lowerEnd",waist:"pagesProductDetails.detailZones.waist",knees:"pagesProductDetails.detailZones.knees",upper:"pagesProductDetails.detailZones.upper",outsole:"pagesProductDetails.detailZones.outsole",vamp:"pagesProductDetails.detailZones.vamp",heel:"pagesProductDetails.detailZones.heel",shoelace:"pagesProductDetails.detailZones.shoelace",strap:"pagesProductDetails.detailZones.strap",border:"pagesProductDetails.detailZones.border",surface:"pagesProductDetails.detailZones.surface",accessory:"pagesProductDetails.detailZones.accessory",ankles:"pagesProductDetails.detailZones.ankles",zipper:"pagesProductDetails.detailZones.zipper",button:"pagesProductDetails.detailZones.button","left-leg":"pagesProductDetails.detailZones.leftLeg","right-leg":"pagesProductDetails.detailZones.rightLeg","left-sleeve":"pagesProductDetails.detailZones.leftSleeve","right-sleeve":"pagesProductDetails.detailZones.rightSleeve",side:"pagesProductDetails.detailZones.side","left-side":"pagesProductDetails.detailZones.leftSide","right-side":"pagesProductDetails.detailZones.rightSide",superior:"pagesProductDetails.detailZones.superior",inferior:"pagesProductDetails.detailZones.inferior",sole:"pagesProductDetails.detailZones.sole",exterior:"pagesProductDetails.detailZones.exterior",lateral:"pagesProductDetails.detailZones.lateral",elbow:"pagesProductDetails.detailZones.elbow",pockets:"pagesProductDetails.detailZones.pockets",waistband:"pagesProductDetails.detailZones.waistband","additional-ornaments":"pagesProductDetails.detailZones.additionalOrnaments","artificial-leather":"pagesProductDetails.detailZones.artificialLeather",sleeves:"pagesProductDetails.detailZones.sleeves"}}transform(e){return i.translations[e.toLowerCase()]||"pagesProductDetails.detailZones.other"}static{this.\u0275fac=function(o){return new(o||i)}}static{this.\u0275pipe=t.EJ8({name:"productDetailZoneTranslationKey",type:i,pure:!0,standalone:!0})}}return i})(),rt=(()=>{class i{static{this.translations={"not-accepted-category":"pagesProductDetails.detailTypes.notAcceptedCategory","not-genuine-brand":"pagesProductDetails.detailTypes.notGenuineBrand","out-of-season":"pagesProductDetails.detailTypes.outOfSeason","torn-seam":"pagesProductDetails.detailTypes.tornSeam","loose-threads":"pagesProductDetails.detailTypes.looseThreads","not-genuine-sewing":"pagesProductDetails.detailTypes.notGenuineSewing","worn-seam":"pagesProductDetails.detailTypes.wornSeam",scratched:"pagesProductDetails.detailTypes.scratched",misshapen:"pagesProductDetails.detailTypes.misshapen","missing-piece":"pagesProductDetails.detailTypes.missingPiece",torn:"pagesProductDetails.detailTypes.torn",hole:"pagesProductDetails.detailTypes.hole","washable-stain":"pagesProductDetails.detailTypes.washableStain","permanent-stain":"pagesProductDetails.detailTypes.permanentStain","animal-hair":"pagesProductDetails.detailTypes.animalHair","bad-smell":"pagesProductDetails.detailTypes.badSmell",dirt:"pagesProductDetails.detailTypes.dirt",discolored:"pagesProductDetails.detailTypes.discolored","worn-out":"pagesProductDetails.detailTypes.wornOut",pilled:"pagesProductDetails.detailTypes.pilled",peeled:"pagesProductDetails.detailTypes.peeled",fluff:"pagesProductDetails.detailTypes.fluff",stain:"pagesProductDetails.detailTypes.stain","missing-button-or-defective-brooch":"pagesProductDetails.detailTypes.missingButtonOrDefectiveBrooch","wear-and-tear":"pagesProductDetails.detailTypes.wearAndTear","very-basic-or-outdated":"pagesProductDetails.detailTypes.veryBasicOrOutdated"}}transform(e){return i.translations[e.toLowerCase()]||"pagesProductDetails.detailTypes.other"}static{this.\u0275fac=function(o){return new(o||i)}}static{this.\u0275pipe=t.EJ8({name:"productDetailTypeTranslationKey",type:i,pure:!0,standalone:!0})}}return i})();class V{static{this.translations={[h.uU.WaistWidth]:"pagesProductDetails.measurementsModal.waistWidth",[h.uU.BustWidth]:"pagesProductDetails.measurementsModal.bustWidth",[h.uU.ShouldersWidth]:"pagesProductDetails.measurementsModal.shoulderWidth",[h.uU.HipsWidth]:"pagesProductDetails.measurementsModal.hipsWidth",[h.uU.InferiorWidth]:"pagesProductDetails.measurementsModal.inferiorWidth",[h.uU.Length]:"pagesProductDetails.measurementsModal.length",[h.uU.PantRiseLength]:"pagesProductDetails.measurementsModal.pantRiseLength",[h.uU.HeelHeight]:"pagesProductDetails.measurementsModal.heelHeight",[h.uU.PlantLength]:"pagesProductDetails.measurementsModal.plantLength",[h.uU.SleeveLength]:"pagesProductDetails.measurementsModal.armLength",[h.uU.Depth]:"pagesProductDetails.measurementsModal.depth",[h.uU.PalmLength]:"pagesProductDetails.measurementsModal.palmLength",[h.uU.PalmWidth]:"pagesProductDetails.measurementsModal.palmWidth",[h.uU.Height]:"pagesProductDetails.measurementsModal.height"}}transform(a){return V.translations[a]}static{this.\u0275fac=function(e){return new(e||V)}}static{this.\u0275pipe=t.EJ8({name:"measurementNameTranslationKey",type:V,pure:!0,standalone:!0})}}let ct=(()=>
1{class i{static{this.colorTranslationKeys={beige:"shared.colors.beige",black:"shared.colors.black",blue:"shared.colors.blue",burgundy:"shared.colors.burgundy",brown:"shared.colors.brown",cyan:"shared.colors.cyan",fuchsia:"shared.colors.fuchsia",gold:"shared.colors.gold",green:"shared.colors.green",gray:"shared.colors.gray",grey:"shared.colors.grey",khaki:"shared.colors.khaki",maroon:"shared.colors.maroon",multicolor:"shared.colors.multicolor",neutral:"shared.colors.neutral",lilac:"shared.colors.lilac",olive:"shared.colors.olive",orange:"shared.colors.orange",silver:"shared.colors.silver",pink:"shared.colors.pink",purple:"shared.colors.purple",red:"shared.colors.red",tan:"shared.colors.tan",turquoise:"shared.colors.turquoise",violet:"shared.colors.violet",white:"shared.colors.white",yellow:"shared.colors.yellow","navy blue":"shared.colors.navy_blue",navy_blue:"shared.colors.navy_blue","sky blue":"shared.colors.sky_blue",sky_blue:"shared.colors.sky_blue"}}transform(e){if(!e)return"shared.colors.unknown";const o=e.toLowerCase().trim();return i.colorTranslationKeys[o]||`shared.colors.${o.replace(/\s+/g,"_")}`}static{this.\u0275fac=function(o){return new(o||i)}}static{this.\u0275pipe=t.EJ8({name:"colorTranslationKey",type:i,pure:!0,standalone:!0})}}return i})();function lt(i,a){if(1&i&&(t.qex(0),t.j41(1,"ui-badge",1),t.EFF(2),t.nI1(3,"productConditionTranslationKey"),t.k0s(),t.bVm()),2&i){const e=a.$implicit,o=t.XpG();t.R7$(),t.Y8G("type",o.badgeType())("trailingIcon",o.showTrailingIcon()?"info":void 0),t.R7$(),t.SpI(" ",e(t.bMT(3,3,o.condition()))," ")}}let v=(()=>{class i{constructor(){this.condition=t.hFB.required(),this.showTrailingIcon=(0,t.hFB)(!1),this.badgeType=(0,t.EWP)(()=>{const e=this.condition();return{[h.bV.Tier1_WithRetailLabel]:"success",[h.bV.Tier2_LikeNew]:"success",[h.bV.Tier3_SmallImperfections]:"warning",[h.bV.Tier4_EvidentUse]:"warning",[h.bV.NoInfo]:"neutral"}[e]})}static{this.\u0275fac=function(o){return new(o||i)}}static{this.\u0275cmp=t.VBU({type:i,selectors:[["app-product-condition-badge"]],inputs:{condition:[t.Mj6.SignalBased,"condition"],showTrailingIcon:[t.Mj6.SignalBased,"showTrailingIcon"]},standalone:!0,features:[t.aNF],decls:1,vars:0,consts:[[4,"transloco"],["size","medium",3,"type","trailingIcon"]],template:function(o,n){1&o&&t.DNE(0,lt,4,5,"ng-container",0)},dependencies:[g.MD,_.bA,s.zR,D],encapsulation:2})}}return i})();var R=r(34006);function l(i,a){if(1&i&&(t.qex(0),t.j41(1,"ui-column",1)(2,"ui-text",2),t.EFF(3),t.k0s(),t.j41(4,"ui-text",3),t.EFF(5),t.k0s(),t.j41(6,"ui-table",4)(7,"tbody")(8,"ui-tr")(9,"ui-td"),t.nrm(10,"app-product-condition-badge",5),t.k0s(),t.j41(11,"ui-td")(12,"ui-text",2),t.EFF(13),t.k0s()()(),t.j41(14,"ui-tr")(15,"ui-td"),t.nrm(16,"app-product-condition-badge",5),t.k0s(),t.j41(17,"ui-td")(18,"ui-text",2),t.EFF(19),t.k0s()()(),t.j41(20,"ui-tr")(21,"ui-td"),t.nrm(22,"app-product-condition-badge",5),t.k0s(),t.j41(23,"ui-td")(24,"ui-text",2),t.EFF(25),t.k0s()()(),t.j41(26,"ui-tr")(27,"ui-td"),t.nrm(28,"app-product-condition-badge",5),t.k0s(),t.j41(29,"ui-td")(30,"ui-text",2),t.EFF(31),t.k0s()()()()()(),t.bVm()),2&i){const e=a.$implicit,o=t.XpG();t.R7$(3),t.SpI(" ",e("pagesProductDetails.conditionsModal.introduction")," "),t.R7$(2),t.SpI(" ",e("pagesProductDetails.conditionsModal.statesLabel")," "),t.R7$(5),t.Y8G("condition",o.ProductCondition.Tier1_WithRetailLabel),t.R7$(3),t.SpI(" ",e("pagesProductDetails.conditionsModal.withRetailLabelDescription")," "),t.R7$(3),t.Y8G("condition",o.ProductCondition.Tier2_LikeNew),t.R7$(3),t.SpI(" ",e("pagesProductDetails.conditionsModal.likeNewDescription")," "),t.R7$(3),t.Y8G("condition",o.ProductCondition.Tier3_SmallImperfections),t.R7$(3),t.SpI(" ",e("pagesProductDetails.conditionsModal.smallImperfectionsDescription")," "),t.R7$(3),t.Y8G("condition",o.ProductCondition.Tier4_EvidentUse),t.R7$(3),t.SpI(" ",e("pagesProductDetails.conditionsModal.evidentUseDescription")," ")}}let x=(()=>{class i{constructor(){this.ProductCondition=h.bV}static{this.\u0275fac=function(o){return new(o||i)}}static{this.\u0275cmp=t.VBU({type:i,selectors:[["app-product-conditions-explanation"]],standalone:!0,features:[t.aNF],decls:1,vars:0,consts:[[4,"transloco"],["gap","s5","crossAxisAlignment","stretch"],["size","small","weight","w500"],["size","medium","weight","w600"],["padding","medium"],[3,"condition"]],template:function(o,n){1&o&&t.DNE(0,l,32,10,"ng-container",0)},dependencies:[g.MD,_.bA,s.ob,s.tL,v,s.ii,s.wd,s.MI],encapsulation:2})}}return i})(),M=(()=>{class i{constructor(){this.dialogRef=(0,t.WQX)(R.CP),this._data=(0,t.WQX)(R.Vh)}onClose(){this.dialogRef.close()}static{this.\u0275fac=function(o){return new(o||i)}}static{this.\u0275cmp=t.VBU({type:i,selectors:[["app-product-conditions-explanation-modal"]],standalone:!0,features:[t.aNF],decls:3,vars:3,consts:[[3,"closeModal","title"]],template:function(o,n){1&o&&(t.j41(0,"ui-content-modal",0),t.nI1(1,"transloco"),t.bIt("closeModal",function(){return n.onClose()}),t.nrm(2,"app-product-conditions-explanation"),t.k0s()),2&o&&t.Y8G("title",t.bMT(1,1,"pagesProductDetails.conditionsModal.title"))},dependencies:[g.MD,_.Kj,s._E,x],encapsulation:2})}}return i})();function k(i,a){if(1&i&&t.nrm(0,"ui-paragraph",6),2&i){const e=t.XpG().$implicit;t.Y8G("uiMarkdownText",e("pagesProductDetails.disclaimers.swimwear"))}}function dt(i,a){if(1&i&&(t.j41(0,"ui-column",7),t.nrm(1,"ui-paragraph",6)(2,"ui-paragraph",6),t.k0s()),2&i){const e=t.XpG().$implicit;t.R7$(),t.Y8G("uiMarkdownText",e("pagesProductDetails.disclaimers.pijamas.separateParts")),t.R7$(),t.Y8G("uiMarkdownText",e("pagesProductDetails.disclaimers.pijamas.noReturns"))}}function ut(i,a){if(1&i){const e=t.RV6();t.qex(0),t.j41(1,"ui-column",1)(2,"ui-row",2)(3,"ui-link-element",3),t.bIt("clicked",function(){t.eBV(e);const n=t.XpG();return t.Njj(n.openConditionsModal())}),t.nrm(4,"app-product-condition-badge",4),t.k0s(),t.j41(5,"ui-paragraph")(6,"ui-text",5),t.EFF(7),t.k0s(),t.j41(8,"ui-text",5),t.EFF(9),t.k0s()()(),t.DNE(10,k,1,1,"ui-paragraph",6)(11,dt,3,2,"ui-column",7),t.k0s(),t.bVm()}if(2&i){const e=a.$implicit,o=t.XpG();t.R7$(4),t.Y8G("condition",o.product().condition)("showTrailingIcon",!0),t.R7$(3),t.SpI("",e("shared.product.sku"),": "),t.R7$(2),t.JRh(o.product().sku),t.R7$(),t.vxM(10,o.category()===o.ProductCategory.Swimwear?10:-1),t.R7$(),t.vxM(11,o.category()===o.ProductCategory.Pijamas?11:-1)}}let ht=(()=>{class i{constructor(){this.modalService=(0,t.WQX)(z.Ii),this.product=t.hFB.required(),this.category=(0,t.EWP)(()=>this.product().category),this.ProductCategory=h.KK}openConditionsModal(){this.modalService.open(M,{disableClose:!1,data:{},horizontalSize:"medium"})}static{this.\u0275fac=function(o){return new(o||i)}}static{this.\u0275cmp=t.VBU({type:i,selectors:[["app-product-condition-sku"]],inputs:{product:[t.Mj6.SignalBased,"product"]},standalone:!0,features:[t.aNF],decls:1,vars:0,consts:[[4,"transloco"],["gap","s5","crossAxisAlignment","start"],["gap","s7","mainAxisAlignment","start","crossAxisAlignment","center"],[3,"clicked"],[3,"condition","showTrailingIcon"],["size","extra-small","weight","w400","color","text-secondary"],["baseSize","extra-small",3,"uiMarkdownText"],["gap","s8","crossAxisAlignment","stretch"]],template:function(o,n){1&o&&t.DNE(0,ut,12,6,"ng-container",0)},dependencies:[g.MD,_.bA,s.qE,s.ob,s.tL,v,s.E0,s.yY,s.cA],encapsulation:2})}}return i})();
1var et=r(10467),pt=r(91247),gt=r(90329);function ft(i,a){1&i&&t.nrm(0,"ui-icon",2)}function Ct(i,a){1&i&&t.nrm(0,"ui-icon",4)}function Pt(i,a){if(1&i&&(t.j41(0,"ui-text",3),t.EFF(1),t.k0s()),2&i){const e=t.XpG();t.R7$(),t.JRh(e.adjustedFavoritesCount())}}let vt=(()=>{class i{constructor(){this.product=t.hFB.required(),this.size=(0,t.hFB)("large"),this.favoritesStore=(0,t.WQX)(y.n2),this.favoritesLogic=(0,t.WQX)(y.k9),this.authAdapter=(0,t.WQX)(gt.h),this.favoritesState=(0,d.ot)(this.favoritesLogic.state$),this.favoritesStoreState=(0,d.ot)(this.favoritesStore.value$,{initialValue:this.favoritesStore.currentValue}),this.initiallyFavorited=(0,t.vPA)(null),this.isLoading=(0,t.EWP)(()=>"executing"===this.favoritesState()?.kind),this.isFavorite=(0,t.EWP)(()=>{const e=this.product(),o=this.favoritesStoreState();return!(!e||!o)&&o.favoriteProductIds.has(e.id)}),this.adjustedFavoritesCount=(0,t.EWP)(()=>{const o=this.product().favorites,n=this.isFavorite(),T=this.initiallyFavorited();return null===T?o:n&&!T?o+1:!n&&T?Math.max(0,o-1):o})}ngOnInit(){const e=this.product(),o=this.favoritesStore.currentValue,n=!(!e||!o)&&o.favoriteProductIds.has(e.id);this.initiallyFavorited.set(n)}onFavoritesClick(){var e=this;return(0,et.A)(function*(){if(e.isLoading())return;const o=e.product();if(yield e.authAdapter.ensureAuthenticated(pt.Pm.AddedFavorite)){const T=o.discountedPrice||o.price,B=o.discountPercent;e.isFavorite()?e.favoritesLogic.add(new y.O8(o.id,T,o.referencePrice,B,o.favorites)):e.favoritesLogic.add(new y.aq(o.id,T,o.referencePrice,B,o.favorites))}})()}static{this.\u0275fac=function(o){return new(o||i)}}static{this.\u0275cmp=t.VBU({type:i,selectors:[["app-product-favorites-button"]],inputs:{product:[t.Mj6.SignalBased,"product"],size:[t.Mj6.SignalBased,"size"]},standalone:!0,features:[t.Jv_([y.k9]),t.aNF],decls:5,vars:4,consts:[["type","secondary",3,"clicked","size","noHighlight"],["gap","s7","crossAxisAlignment","center"],["name","vestua-heart-outline","weight","w600","size","large"],["size","medium","weight","w600"],["name","vestua-heart-filled","weight","w600","size","large","type","error"]],template:function(o,n){1&o&&(t.j41(0,"ui-button",0),t.bIt("clicked",function(){return n.onFavoritesClick()}),t.j41(1,"ui-row",1),t.DNE(2,ft,1,0,"ui-icon",2)(3,Ct,1,0)(4,Pt,2,1,"ui-text",3),t.k0s()()),2&o&&(t.Y8G("size",n.size())("noHighlight",!0),t.R7$(2),t.vxM(2,n.isFavorite()?3:2),t.R7$(2),t.vxM(4,n.adjustedFavoritesCount()>0?4:-1))},dependencies:[g.MD,s.qE,s.bh,s.A4,s.tL],encapsulation:2})}}return i})();var Y=r(74084),bt=r(78541),it=r(41545);let yt=(()=>{class i{constructor(){this.product=t.hFB.required(),this.legacyProduct=(0,t.EWP)(()=>{const e=this.product();return{Assets:e.assets.map(n=>({_id:n.id,pos:n.pos,url:n.url,s3Key:(0,Y.h)(n.url),s3Bucket:(0,Y.i)(n.url),photoClass:n.photoClass,type:n.type})),HiddenAssets:e.hiddenAssets?.map(n=>({_id:n.id,pos:n.pos,url:n.url,s3Key:(0,Y.h)(n.url),s3Bucket:(0,Y.i)(n.url),photoClass:n.photoClass,type:n.type}))||[],Tags:e.tags.map(n=>({_id:n.id,value:n.value,TagType:{_id:n.TagType.id,name:n.TagType.name,class:n.TagType.class}})),customAttributes:e.customAttributes,condition:this.mapCondition(e.condition)}}),this.imageKeys=(0,t.EWP)(()=>this.product().assets.map(e=>(0,Y.h)(e.url))),this.imageThumbnailKeys=(0,t.EWP)(()=>this.product().assets.map(e=>(0,Y.h)(e.url))),this.s3Bucket=(0,t.EWP)(()=>{const e=this.product().assets[0];return(0,Y.i)(e?.url??"")})}mapCondition(e){const o={[h.bV.Tier1_WithRetailLabel]:it.bV.ConEtiqueta,[h.bV.Tier2_LikeNew]:it.bV.ComoNuevo,[h.bV.Tier3_SmallImperfections]:it.bV.ConDetalles,[h.bV.Tier4_EvidentUse]:it.bV.UsoVisible};if(!o[e])throw new Error(`Cannot map product condition "${e}" to legacy ProductCondition`);return o[e]}static{this.\u0275fac=function(o){return new(o||i)}}static{this.\u0275cmp=t.VBU({type:i,selectors:[["app-product-image-gallery"]],inputs:{product:[t.Mj6.SignalBased,"product"]},standalone:!0,features:[t.aNF],decls:1,vars:5,consts:[[3,"product","images","imagesThumbnail","condition","s3Bucket"]],template:function(o,n){1&o&&t.nrm(0,"app-gallery-images",0),2&o&&t.Y8G("product",n.legacyProduct())("images",n.imageKeys())("imagesThumbnail",n.imageThumbnailKeys())("condition",n.legacyProduct().condition)("s3Bucket",n.s3Bucket())},dependencies:[g.MD,bt.o],encapsulation:2})}}return i})(),Mt=(()=>{class i{constructor(){this.color=t.hFB.required(),this.colorMap={white:{backgroundColor:"#FFFFFF",borderColor:"#BCBBBB"},beige:{backgroundColor:"#EBDDCC",borderColor:"#D4C4A8"},yellow:{backgroundColor:"#F4C46A"},orange:{backgroundColor:"#F8713D"},red:{backgroundColor:"#EE4040"},burgundy:{backgroundColor:"#971414"},pink:{backgroundColor:"#FFB4B4"},fuchsia:{backgroundColor:"#FF4EAE"},purple:{backgroundColor:"#8654A5"},lilac:{backgroundColor:"#C1ACD2"},blue:{backgroundColor:"#485080"},"navy blue":{backgroundColor:"#485080"},"sky blue":{backgroundColor:"#B4D1F2"},green:{backgroundColor:"#479146"},brown:{backgroundColor:"#7E4B0F"},gray:{backgroundColor:"#BCBBBB"},grey:{backgroundColor:"#BCBBBB"},black:{backgroundColor:"#000000"},silver:{backgroundColor:"#D6D6D6",borderColor:"#BCBBBB"},gold:{backgroundColor:"#D6AB59"},multicolor:{backgroundColor:"multicolor"}},this.colorClasses=(0,t.EWP)(()=>{const e=this.color().toLowerCase().trim();return"product-color product-color--"+(this.isKnownColor(e)?"known":"unknown")}),this.colorCustomProperty=(0,t.EWP)(()=>{const e=this.color().toLowerCase().trim(),o=this.colorMap[e];if(o){const n={"--background-color":o.backgroundColor};return o.borderColor&&(n["--border-color"]=o.borderColor),n}return{}}),this.iconSize=(0,t.EWP)(()=>"small")}isKnownColor(e){return!!this.colorMap[e]}static{this.\u0275fac=function(o){return new(o||i)}}static{this.\u0275cmp=t.VBU({type:i,selectors:[["app-product-color"]],inputs:{color:[t.Mj6.SignalBased,"color"]},standalone:!0,features:[t.aNF],decls:1,vars:5,consts:[[3,"title"]],template:function(o,n){1&o&&t.nrm(0,"div",0),2&o&&(t.Aen(n.colorCustomProperty()),t.HbH(n.colorClasses()),t.Y8G("title",n.color()))},dependencies:[g.MD],styles:[".product-color[_ngcontent-%COMP%]{width:16px;height:16px;border-radius:50%}.product-color--known[_ngcontent-%COMP%]{background-color:var(--background-color);border:1px solid var(--border-color, transparent)}.product-color--unknown[_ngcontent-%COMP%]{background-color:transparent;border:transparent}"]})}}return i})();const wt=(i,a)=>a.name;function xt(i,a){if(1&i&&t.EFF(0),2&i){const e=t.XpG().$implicit;t.SpI(" ",e.percentage,"% ")}}function St(i,a){if(1&i&&(t.j41(0,"ui-text",6),t.DNE(1,xt,1,1),t.EFF(2),t.k0s()),2&i){const e=a.$implicit,o=t.XpG(2).$implicit;t.R7$(),t.vxM(1,e.percentage?1:-1),t.R7$(),t.SpI(" ",o("shared.product.material."+e.n
1ame)," ")}}function Tt(i,a){if(1&i&&t.Z7z(0,St,3,2,"ui-text",6,wt),2&i){const e=t.XpG(2);t.Dyx(e.productMaterials())}}function kt(i,a){if(1&i&&(t.j41(0,"ui-text",7),t.EFF(1),t.k0s()),2&i){const e=t.XpG().$implicit;t.R7$(),t.JRh(e("shared.general.notSpecified"))}}function It(i,a){if(1&i&&(t.j41(0,"ui-row",8),t.nrm(1,"app-product-color",9),t.j41(2,"ui-text",6),t.EFF(3),t.nI1(4,"colorTranslationKey"),t.k0s()()),2&i){const e=a.$implicit,o=t.XpG(2).$implicit;t.R7$(),t.Y8G("color",e),t.R7$(2),t.JRh(o(t.bMT(4,2,e)))}}function Dt(i,a){if(1&i&&t.Z7z(0,It,5,4,"ui-row",8,t.fX1),2&i){const e=t.XpG(2);t.Dyx(e.productColors())}}function Et(i,a){if(1&i&&(t.j41(0,"ui-text",6),t.EFF(1),t.k0s()),2&i){const e=t.XpG().$implicit;t.R7$(),t.JRh(e("shared.general.noInfo"))}}function Ft(i,a){if(1&i&&(t.qex(0),t.j41(1,"ui-card",1)(2,"ui-row",2)(3,"ui-column",3)(4,"ui-text",4),t.EFF(5),t.k0s(),t.DNE(6,Tt,2,0)(7,kt,2,1),t.k0s(),t.nrm(8,"ui-divider",5),t.j41(9,"ui-column",3)(10,"ui-text",4),t.EFF(11),t.k0s(),t.DNE(12,Dt,2,0)(13,Et,2,1),t.k0s()()(),t.bVm()),2&i){const e=a.$implicit,o=t.XpG();t.R7$(3),t.Y8G("uiGrow",1),t.R7$(2),t.JRh(e("shared.general.material")),t.R7$(),t.vxM(6,o.hasMaterials()?6:7),t.R7$(3),t.Y8G("uiGrow",1),t.R7$(2),t.JRh(e("shared.general.color")),t.R7$(),t.vxM(12,o.hasColors()?12:13)}}let Rt=(()=>{class i{constructor(){this.product=t.hFB.required(),this.productColors=(0,t.EWP)(()=>this.product().colors||[]),this.productMaterials=(0,t.EWP)(()=>this.product().materials||[]),this.hasColors=(0,t.EWP)(()=>this.productColors().length>0),this.hasMaterials=(0,t.EWP)(()=>this.productMaterials().length>0)}static{this.\u0275fac=function(o){return new(o||i)}}static{this.\u0275cmp=t.VBU({type:i,selectors:[["app-product-material-color"]],inputs:{product:[t.Mj6.SignalBased,"product"]},standalone:!0,features:[t.aNF],decls:1,vars:0,consts:[[4,"transloco"],["backgroundColor","surface-muted","padding","medium"],["gap","s8","mainAxisAlignment","space-between","crossAxisAlignment","stretch"],["gap","s8","crossAxisAlignment","start",3,"uiGrow"],["size","medium","weight","w600"],["padding","small","orientation","vertical","color","border-default"],["size","small","weight","w500"],["size","medium","weight","w500"],["gap","s7","crossAxisAlignment","center"],[3,"color"]],template:function(o,n){1&o&&t.DNE(0,Ft,14,6,"ng-container",0)},dependencies:[g.MD,_.bA,s.Cs,s.ob,s.xP,s.lk,s.qE,s.tL,Mt,ct],encapsulation:2})}}return i})();var Bt=r(61324),At=r(22975),Gt=r(53346);const $t=(i,a)=>a.key;function jt(i,a){if(1&i&&(t.j41(0,"ui-tr")(1,"ui-td")(2,"ui-text",8),t.EFF(3),t.k0s()(),t.j41(4,"ui-td")(5,"ui-text",8),t.EFF(6),t.k0s()()()),2&i){const e=t.XpG(2).$implicit,o=t.XpG();t.R7$(3),t.SpI(" ",e("pagesProductDetails.measurementsModal.originalSize")," "),t.R7$(3),t.SpI(" ",o.originalSize," ")}}function Ot(i,a){if(1&i&&(t.j41(0,"ui-tr")(1,"ui-td")(2,"ui-text",8),t.EFF(3),t.nI1(4,"measurementNameTranslationKey"),t.k0s()(),t.j41(5,"ui-td")(6,"ui-text",8),t.EFF(7),t.k0s()()()),2&i){const e=a.$implicit,o=t.XpG(2).$implicit;t.R7$(3),t.SpI(" ",o(t.bMT(4,2,e.key))," "),t.R7$(4),t.SpI(" ",e.value+" cm"," ")}}function Lt(i,a){if(1&i&&(t.j41(0,"ui-table",7)(1,"tbody"),t.DNE(2,jt,7,2,"ui-tr"),t.Z7z(3,Ot,8,4,"ui-tr",null,$t),t.nI1(5,"recordEntries"),t.k0s()()),2&i){const e=t.XpG(2);t.R7$(2),t.vxM(2,e.originalSize?2:-1),t.R7$(),t.Dyx(t.bMT(5,1,e.product().measurements))}}function Wt(i,a){if(1&i&&(t.j41(0,"ui-text",9),t.EFF(1),t.k0s()),2&i){const e=t.XpG().$implicit;t.R7$(),t.SpI(" ",e("shared.labels.not_available")," ")}}function zt(i,a){1&i&&t.nrm(0,"ui-image",13),2&i&&t.Y8G("src",a)("width",1483)("height",910)("fluid",!0)}function Ut(i,a){1&i&&t.nrm(0,"ui-image",14),2&i&&t.Y8G("src",a)("width",1483)("height",910)("fluid",!0)}function Xt(i,a){if(1&i&&(t.DNE(0,zt,1,4,"ui-image",13),t.nI1(1,"isCountry"),t.DNE(2,Ut,1,4,"ui-image",14),t.nI1(3,"isCountry")),2&i){let e,o;t.vxM(0,(e=t.i5U(1,2,"/assets/images/tables/size_table_superior_cl.jpg","CL"))?0:-1,e),t.R7$(2),t.vxM(2,(o=t.i5U(3,5,"/assets/images/tables/size_table_superior_mx.jpg","MX"))?2:-1,o)}}function Nt(i,a){1&i&&t.nrm(0,"ui-image",15),2&i&&t.Y8G("src",a)("width",1808)("height",1298)("fluid",!0)}function Vt(i,a){1&i&&t.nrm(0,"ui-image",16),2&i&&t.Y8G("src",a)("width",2158)("height",1022)("fluid",!0)}function Yt(i,a){if(1&i&&(t.DNE(0,Nt,1,4,"ui-image",15),t.nI1(1,"isCountry"),t.DNE(2,Vt,1,4,"ui-image",16),t.nI1(3,"isCountry")),2&i){let e,o;t.vxM(0,(e=t.i5U(1,2,"/assets/images/tables/size_table_inferior_cl.jpg","CL"))?0:-1,e),t.R7$(2),t.vxM(2,(o=t.i5U(3,5,"/assets/images/tables/size_table_inferior_mx.jpg","MX"))?2:-1,o)}}function Kt(i,a){1&i&&t.nrm(0,"ui-image",17),2&i&&t.Y8G("src",a)("width",2036)("height",616)("fluid",!0)}function Zt(i,a){1&i&&t.nrm(0,"ui-image",18),2&i&&t.Y8G("src",a)("width",2036)("height",616)("fluid",!0)}function Ht(i,a){if(1&i&&(t.DNE(0,Kt,1,4,"ui-image",17),t.nI1(1,"isCountry"),t.DNE(2,Zt,1,4,"ui-image",18),t.nI1(3,"isCountry")),2&i){let e,o;t.vxM(0,(e=t.i5U(1,2,"/assets/images/tables/size_table_footwear_cl.jpg","CL"))?0:-1,e),t.R7$(2),t.vxM(2,(o=t.i5U(3,5,"/assets/images/tables/size_table_footwear_mx.jpg","MX"))?2:-1,o)}}function Jt(i,a){if(1&i&&(t.nrm(0,"ui-divider",10),t.j41(1,"ui-expansion-panel",11)(2,"ui-card",12),t.DNE(3,Xt,4,8)(4,Yt,4,8)(5,Ht,4,8),t.k0s()()),2&i){let e;const o=t.XpG().$implicit,n=t.XpG();t.R7$(),t.Y8G("title",o("pagesProductDetails.measurementsModal.sizeGuide"))("outlined",!0),t.R7$(2),t.vxM(3,(e=n.product().garmentClass)===n.GarmentClass.Superior?3:e===n.GarmentClass.Inferior?4:e===n.GarmentClass.Footwear?5:-1)}}function Qt(i,a){if(1&i&&(t.j41(0,"ui-tr")(1,"ui-td")(2,"ui-text",8),t.EFF(3),t.k0s()(),t.j41(4,"ui-td")(5,"ui-text",8),t.EFF(6),t.k0s()()()),2&i){const e=t.XpG(2).$implicit,o=t.XpG();t.R7$(3),t.SpI(" ",e("pagesProductDetails.measurementsModal.modelSize")," "),t.R7$(3),t.SpI(" ",o.modelSize()||e("shared.labels.not_available")," ")}}function qt(i,a){if(1&i&&(t.j41(0,"ui-tr")(1,"ui-td")(2,"ui-text",8),t.EFF(3),t.k0s()(),t.j41(4,"ui-td")(5,"ui-text",8),t.EFF(6),t.k0s()()()),2&i){const e=t.XpG(2).$implicit,o=t.XpG();t.R7$(3),t.SpI(" ",e("pagesProductDetails.measurementsModal.height")," "),t.R7$(3),t.SpI(" ",o.product().model.height+" cm"," ")}}function te(i,a){if(1&i&&(t.j41(0,"ui-tr")(1,"ui-td")(2,"ui-text",8),t.EFF(3),t.k0s()(),t.j41(4,"ui-td")(5,"ui-text",8),t.EFF(6),t.k0s()()()),2&i){const e=t.XpG(2).$implicit,o=t.XpG();t.R7$(3),t.SpI(" ",e("pagesProductDetails.measurementsModal.bustMeasurement")," "),t.R7$(3),t.SpI(" ",o.product().model.bustMeasurement+" cm"," ")}}function ee(i,a){if(1&i&&(t.j41(0,"ui-tr")(1,"ui-td")(2,"ui-text",8),t.EFF(3),t.k0s()(),t.j41(4,"ui-td")(5,"ui-text",8),t.EFF(6),t.k0s()()()),2&i){const e=t.XpG(2).$implicit,o=t.XpG();t.R7$(3),t.SpI(" ",e("pagesProductDetails.measurementsModal.waistMeasurement")," "),t.R7$(3),t.SpI(" ",o.product().model.waistMeasurement+" cm"," ")}}function ie(i,a){if(1&i&&(t.j41(0,"ui-tr")(1,"ui-td")(2,"ui-text",8),t.EFF(3),t.k0s()(),t.j41(4,"ui-td")(5,"ui-text",8),t.EFF(6),t.k0s()()()),2&i){const e=t.XpG(2).$implicit,o=t.XpG();t.R7$(3),t.SpI(" ",e("pagesProductDetails.measurementsModal.hipsMeasurement")," "),t.R7$(3),t.SpI(" ",o.product().model.hipsMeasurement+" cm"," ")}}function oe(i,a){if(1&i&&(t.j41(0,"ui-tr")(1,"ui-td")(2,"ui-text",8),t.EFF(3),t.k0s()(),t.j41(4,"ui-td")(5,"ui-text",8),t.EFF(6),t.k0s()()()),2&i){const e=t.XpG(2).$implicit,o=t.XpG();t.R7$(3),t.SpI(" ",e("pagesProductDetails.measurementsModal.legLengthMeasurement")," "),t.R7$(3),t.SpI(" ",o.product().model.legLengthMeasurement+" cm"," ")}}function ne(i,a){if(1&i&&(t.j41(0,"ui-tr")(1,"ui-td")(2,"ui-text",8),t.EFF(3),t.k0s()(),t.j41(4,"ui-td")(5,"ui-text",8),t.EFF(6),t.k0s()()()),2&i){const e=t.XpG(2).$implicit,o=t.XpG();t.R7$(3),t.SpI(" ",e("pagesProductDetails.measurementsModal.armLengthMeasurement")," "),t.R7$(3),t.SpI(" ",o.product().model.armLengthMeasurement+" cm"," ")}}function se(i,a){if(1&i&&(t.j41(0,"ui-tr")(1,"ui-td")(2,"ui-text",8),t.EFF(3),t.k0s()(),t.j41(4,"ui-td")(5,"ui-text",8),t.EFF(6),t.k0s()()()),2&i){const e=t.XpG(2).$implicit,o=t.XpG();t.R7$(3),t.SpI(" ",e("pagesProductDetails.measurementsModal.thighMeasurement")," "),t.R7$(3),t.SpI(" ",o.product().model.thighMeasurement+" cm"," ")}}function ae(i,a){if(1&i&&(t.j41(0,"ui-tr")(1,"ui-td")(2,"ui-text",8),t.EFF(3),t.k0s()(),t.j41(4,"ui-td")(5,"ui-text",8),t.EFF(6),t.k0s()()()),2&i){const e=t.XpG(2).$implicit,o=t.XpG();t.R7$(3),t.SpI(" ",e("pagesProductDetails.measurementsModal.inferiorSize")," "),t.R7$(3),t.SpI(" ",o.product().model.inferiorSize," ")}}function re(i,a){if(1&i&&(t.j41(0,"ui-tr")(1,"ui-td")(2,"ui-text",8),t.EFF(3),t.k0s()(),t.j41(4,"ui-td")(5,"ui-text",8),t.EFF(6),t.k0s()()()),2&i){const e=t.XpG(2).$implicit,o=t.XpG();t.R7$(3),t.SpI(" ",e("pagesProductDetails.measurementsModal.superiorSize")," "),t.R7$(3),t.SpI(" ",o.product().model.superiorSize," ")}}function ce(i,a){if(1&i&&(t.nrm(0,"ui-divider",10),t.j41(1,"ui-column",2)(2,"ui-text",5),t.EFF(3),t.k0s(),t.j41(4,"ui-table",7)(5,"tbody"),t.DNE(6,Qt,7,2,"ui-tr")(7,qt,7,2,"ui-tr")(8,te,7,2,"ui-tr")(9,ee,7,2,"ui-tr")(10,ie,7,2,"ui-tr")(11,oe,7,2,"ui-tr")(12,ne,7,2,"ui-tr")(13,se,7,2,"ui-tr")(14,ae,7,2,"ui-tr")(15,re,7,2,"ui-tr"),t.k0s()()()),2&i){let e,o,n,T,B,ot,nt,st,_t;
1const si=t.XpG().$implicit,O=t.XpG();t.R7$(3),t.SpI(" ",si("pagesProductDetails.measurementsModal.modelMeasurements")," "),t.R7$(3),t.vxM(6,O.modelSize()?6:-1),t.R7$(),t.vxM(7,null!=(e=O.product().model)&&e.height?7:-1),t.R7$(),t.vxM(8,null!=(o=O.product().model)&&o.bustMeasurement?8:-1),t.R7$(),t.vxM(9,null!=(n=O.product().model)&&n.waistMeasurement?9:-1),t.R7$(),t.vxM(10,null!=(T=O.product().model)&&T.hipsMeasurement?10:-1),t.R7$(),t.vxM(11,null!=(B=O.product().model)&&B.legLengthMeasurement?11:-1),t.R7$(),t.vxM(12,null!=(ot=O.product().model)&&ot.armLengthMeasurement?12:-1),t.R7$(),t.vxM(13,null!=(nt=O.product().model)&&nt.thighMeasurement?13:-1),t.R7$(),t.vxM(14,null!=(st=O.product().model)&&st.inferiorSize?14:-1),t.R7$(),t.vxM(15,null!=(_t=O.product().model)&&_t.superiorSize?15:-1)}}function le(i,a){if(1&i&&(t.qex(0),t.j41(1,"ui-column",1)(2,"ui-column",2)(3,"ui-link-element",3)(4,"ui-row",4)(5,"ui-text",5),t.EFF(6),t.k0s(),t.nrm(7,"ui-icon",6),t.k0s()(),t.DNE(8,Lt,6,3,"ui-table",7),t.nI1(9,"recordEntries"),t.DNE(10,Wt,2,1),t.k0s(),t.DNE(11,Jt,6,3)(12,ce,16,11),t.k0s(),t.bVm()),2&i){const e=a.$implicit,o=t.XpG();t.R7$(3),t.Y8G("href",o.measurementsGuideUrl),t.R7$(3),t.SpI(" ",e("pagesProductDetails.measurementsModal.productMeasurements")," "),t.R7$(2),t.vxM(8,t.bMT(9,5,o.product().measurements).length>0||o.originalSize?8:10),t.R7$(3),t.vxM(11,o.shouldShowSizeGuide?11:-1),t.R7$(),t.vxM(12,o.hasModelMeasurements?12:-1)}}let de=(()=>{class i{constructor(){this.countryConfigService=(0,t.WQX)(z.tP),this.technicalConfigService=(0,t.WQX)(Gt.z),this.measurementsGuideUrl=this.technicalConfigService.config.productDetails.measurementsGuideUrl,this.product=t.hFB.required(),this.modelSize=(0,t.hFB)(""),this.GarmentClass=h.PA}get originalSize(){return this.product().sizeConversion?.standardEquivalent||""}get hasModelMeasurements(){return!!this.product().model}get shouldShowSizeGuide(){return this.countryConfigService.config.country!==At.T.Brazil&&this.product().garmentClass!==h.PA.Accessory}static{this.\u0275fac=function(o){return new(o||i)}}static{this.\u0275cmp=t.VBU({type:i,selectors:[["app-measurements"]],inputs:{product:[t.Mj6.SignalBased,"product"],modelSize:[t.Mj6.SignalBased,"modelSize"]},standalone:!0,features:[t.aNF],decls:1,vars:0,consts:[[4,"transloco"],["gap","s4","crossAxisAlignment","stretch"],["gap","s5","crossAxisAlignment","stretch"],["target","_blank",3,"href"],["gap","s8","crossAxisAlignment","center"],["size","medium","weight","w600"],["name","error_outline","size","medium","weight","w600"],["horizontalAlignment","last-right"],["size","small","weight","w500"],["size","small","weight","w500","color","text-secondary"],["padding","small"],["leadingIcon","straighten","headerPadding","medium",3,"title","outlined"],["padding","none"],["uiBlock","","type","regular","alt","Size table for superior garments (Chile)",3,"src","width","height","fluid"],["uiBlock","","type","regular","alt","Size table for superior garments (Mexico)",3,"src","width","height","fluid"],["uiBlock","","type","regular","alt","Size table for inferior garments (Chile)",3,"src","width","height","fluid"],["uiBlock","","type","regular","alt","Size table for inferior garments (Mexico)",3,"src","width","height","fluid"],["uiBlock","","type","regular","alt","Size table for footwear (Chile)",3,"src","width","height","fluid"],["uiBlock","","type","regular","alt","Size table for footwear (Mexico)",3,"src","width","height","fluid"]],template:function(o,n){1&o&&t.DNE(0,le,13,7,"ng-container",0)},dependencies:[g.MD,_.bA,s.jV,s.Cs,s.ob,s.xP,s.jB,s.bh,s.PM,s.yY,s.qE,s.ii,s.MI,s.tL,s.wd,V,p.Ux,p.Tp],encapsulation:2})}}return i})(),ue=(()=>{class i{constructor(){this.dialogRef=(0,t.WQX)(R.CP),this.data=(0,t.WQX)(R.Vh),this.product=this.data.data.product}onClose(){this.dialogRef.close()}static{this.\u0275fac=function(o){return new(o||i)}}static{this.\u0275cmp=t.VBU({type:i,selectors:[["app-measurements-modal"]],standalone:!0,features:[t.aNF],decls:3,vars:4,consts:[[3,"closeModal","title"],[3,"product"]],template:function(o,n){1&o&&(t.j41(0,"ui-content-modal",0),t.nI1(1,"transloco"),t.bIt("closeModal",function(){return n.onClose()}),t.nrm(2,"app-measurements",1),t.k0s()),2&o&&(t.Y8G("title",t.bMT(1,2,"pagesProductDetails.measurementsModal.title")),t.R7$(2),t.Y8G("product",n.product))},dependencies:[g.MD,_.Kj,s._E,de],encapsulation:2})}}return i})();const pe=(i,a)=>a.imageKey,me=i=>({number:i});function _e(i,a){if(1&i&&t.nrm(0,"ui-image",11),2&i){const e=t.XpG().$implicit,o=t.XpG(3);
1t.Y8G("src",e.imageKey)("bucketName",e.imageBucket)("fluid",!0)("alt",o.getImageAltText(e.type))("width",1920)("height",1080)("useProgressiveLoading",!0)}}function he(i,a){if(1&i&&(t.j41(0,"ui-text",12),t.EFF(1),t.k0s()),2&i){const e=t.XpG(3).$implicit;t.Y8G("italic",!0),t.R7$(),t.SpI(" ",e("pagesProductDetails.detailsModal.noPhoto")," ")}}function ge(i,a){1&i&&t.nrm(0,"ui-divider",2)}function fe(i,a){if(1&i&&(t.j41(0,"ui-column",1)(1,"ui-text",7),t.EFF(2),t.k0s(),t.j41(3,"ui-card",8)(4,"ui-table",9)(5,"tbody")(6,"ui-tr")(7,"ui-td")(8,"ui-text",10),t.EFF(9),t.k0s()(),t.j41(10,"ui-td")(11,"ui-text",4),t.EFF(12),t.nI1(13,"productDetailTypeTranslationKey"),t.k0s()()(),t.j41(14,"ui-tr")(15,"ui-td")(16,"ui-text",10),t.EFF(17),t.k0s()(),t.j41(18,"ui-td")(19,"ui-text",4),t.EFF(20),t.nI1(21,"productDetailZoneTranslationKey"),t.k0s()()()()()(),t.DNE(22,_e,1,7,"ui-image",11)(23,he,2,2)(24,ge,1,0,"ui-divider",2),t.k0s()),2&i){const e=a.$implicit,o=a.$index,n=t.XpG(2).$implicit,T=t.XpG();t.R7$(2),t.SpI(" ",n("pagesProductDetails.detailsModal.detailNumber",t.eq3(11,me,o+1))," "),t.R7$(7),t.SpI(" ",n("pagesProductDetails.detailsModal.detailTypeLabel")," "),t.R7$(3),t.SpI(" ",n(t.bMT(13,7,e.type))," "),t.R7$(5),t.SpI(" ",n("pagesProductDetails.detailsModal.whereLabel")," "),t.R7$(3),t.SpI(" ",n(t.bMT(21,9,e.zone))," "),t.R7$(2),t.vxM(22,e.imageKey?22:23),t.R7$(2),t.vxM(24,o<T.product().details.length-1?24:-1)}}function Ce(i,a){if(1&i&&(t.nrm(0,"ui-divider",5),t.j41(1,"ui-column",6),t.Z7z(2,fe,25,13,"ui-column",1,pe),t.k0s()),2&i){const e=t.XpG(2);t.R7$(2),t.Dyx(e.product().details)}}function Pe(i,a){if(1&i&&(t.qex(0),t.j41(1,"ui-column",1)(2,"ui-table",2)(3,"tbody")(4,"ui-tr")(5,"ui-td"),t.nrm(6,"app-product-condition-badge",3),t.k0s(),t.j41(7,"ui-td")(8,"ui-text",4),t.EFF(9),t.nI1(10,"productConditionMeaningTranslationKey"),t.k0s()()()()(),t.DNE(11,Ce,4,0),t.k0s(),t.bVm()),2&i){const e=a.$implicit,o=t.XpG();t.R7$(6),t.Y8G("condition",o.product().condition),t.R7$(3),t.SpI(" ",e(t.bMT(10,3,o.product().condition))," "),t.R7$(2),t.vxM(11,o.shouldShowDetails()?11:-1)}}let ve=(()=>{class i{constructor(){this.product=t.hFB.required(),this.shouldShowDetails=(0,t.EWP)(()=>{const e=this.product(),o=e.condition;return e.details&&e.details.length>0&&(o===h.bV.Tier4_EvidentUse||o===h.bV.Tier3_SmallImperfections)})}getImageAltText(e){return`Foto de ${e}`}static{this.\u0275fac=function(o){return new(o||i)}}static{this.\u0275cmp=t.VBU({type:i,selectors:[["app-product-details-content"]],inputs:{product:[t.Mj6.SignalBased,"product"]},standalone:!0,features:[t.aNF],decls:1,vars:0,consts:[[4,"transloco"],["gap","s5","crossAxisAlignment","stretch"],["padding","medium"],["size","large",3,"condition"],["size","small","weight","w500","color","text-secondary"],["padding","small"],["gap","s3","crossAxisAlignment","stretch"],["size","medium","weight","w600","color","text-primary"],["padding","none","variant","outline"],["padding","small",2,"text-align","left"],["size","small","weight","w600","color","text-primary"],["type","cdn","imageDomain","product",3,"src","bucketName","fluid","alt","width","height","useProgressiveLoading"],["size","small","weight","w500","color","text-secondary",3,"italic"]],template:function(o,n){1&o&&t.DNE(0,Pe,12,5,"ng-container",0)},dependencies:[g.MD,_.bA,s.Cs,s.ob,s.xP,s.PM,s.ii,s.MI,s.tL,s.wd,v,W,tt,rt],encapsulation:2})}}return i})(),be=(()=>{class i{constructor(){this.dialogRef=(0,t.WQX)(R.CP),this.data=(0,t.WQX)(R.Vh),this.product=this.data.data.product}onClose(){this.dialogRef.close()}static{this.\u0275fac=function(o){return new(o||i)}}static{this.\u0275cmp=t.VBU({type:i,selectors:[["app-product-details-modal"]],standalone:!0,features:[t.aNF],decls:3,vars:4,consts:[[3,"closeModal","title"],[3,"product"]],template:function(o,n){1&o&&(t.j41(0,"ui-content-modal",0),t.nI1(1,"transloco"),t.bIt("closeModal",function(){return n.onClose()}),t.nrm(2,"app-product-details-content",1),t.k0s()),2&o&&(t.Y8G("title",t.bMT(1,2,"pagesProductDetails.detailsModal.title")),t.R7$(2),t.Y8G("product",n.product))},dependencies:[g.MD,_.Kj,s._E,ve],encapsulation:2})}}return i})();const ye=(i,a)=>a.id,Me=(i,a)=>({displayName:i,amount:a});function we(i,a){if(1&i){const e=t.RV6();t.nrm(0,"ui-divider",8),t.j41(1,"ui-link-element",3),t.bIt("click",function(){t.eBV(e);const n=t.XpG(2);return t.Njj(n.onViewDetails())}),t.j41(2,"ui-card",4)(3,"ui-row",5)(4,"ui-label",11),t.EFF(5),t.k0s(),t.nrm(6,"ui-icon",7),t.k0s()()()}if(2&i){const e=t.XpG().$implicit;t.R7$(5),t.JRh(e("pagesProductDetails.measurementsShipping.viewDetails"))}}function xe(i,a){if(1&i&&(t.j41(0,"li"),t.nrm(1,"ui-paragraph",12),t.nI1(2,"appCurrency"),t.k0s()),2&i){const e=a.$implicit,o=t.XpG().$implicit;t.R7$(),t.Y8G("uiMarkdownText",o("pagesProductDetails.measurementsShipping.freeShippingPromotion",t.l_i(3,Me,e.effectiveDisplayName,t.bMT(2,1,e.subtotalMinAmount))))}}function Se(i,a){if(1&i){const e=t.RV6();t.qex(0),t.j41(1,"ui-card",1)(2,"ui-column",2)(3,"ui-link-element",3),t.bIt("click",function(){t.eBV(e);const n=t.XpG();return t.Njj(n.onViewMeasurements())}),t.j41(4,"ui-card",4)(5,"ui-row",5)(6,"ui-label",6),t.EFF(7),t.k0s(),t.nrm(8,"ui-icon",7),t.k0s()()(),t.DNE(9,we,7,1),t.nrm(10,"ui-divider",8),t.j41(11,"ui-card",4)(12,"ui-column",9)(13,"ui-label",10),t.EFF(14),t.k0s(),t.j41(15,"ul"),t.Z7z(16,xe,3,6,"li",null,ye),t.j41(18,"li"),t.EFF(19),t.k0s()()()()()(),t.bVm()}if(2&i){const e=a.$implicit,o=t.XpG();t.R7$(7),t.JRh(e("pagesProductDetails.measurementsShipping.viewMeasurements")),t.R7$(2),t.vxM(9,o.hasDetail
1s()?9:-1),t.R7$(5),t.SpI(" ",e("pagesProductDetails.measurementsShipping.shippingTitle")," "),t.R7$(2),t.Dyx(o.shippingPromotions()),t.R7$(3),t.JRh(e("pagesProductDetails.measurementsShipping.returnPolicy"))}}let Te=(()=>{class i{constructor(){this.promotionLogic=(0,t.WQX)(y.fo),this.modalService=(0,t.WQX)(z.Ii),this.product=t.hFB.required(),this.promotionState=(0,d.ot)(this.promotionLogic.state$),this.shippingPromotions=(0,t.EWP)(()=>{const e=this.promotionState();return e instanceof Bt.Rw?e.value:[]}),this.isLoading=(0,t.EWP)(()=>"executing"===this.promotionState()?.kind),this.hasError=(0,t.EWP)(()=>"error"===this.promotionState()?.kind),this.hasDetails=(0,t.EWP)(()=>{const e=this.product();return e.details&&e.details.length>0})}ngOnInit(){var e=this;return(0,et.A)(function*(){e.promotionLogic.loadPromotions()})()}onViewMeasurements(){const o={product:this.product()};this.modalService.open(ue,{disableClose:!1,data:o,horizontalSize:"large"})}onViewDetails(){const o={product:this.product()};this.modalService.open(be,{disableClose:!1,data:o,horizontalSize:"large"})}static{this.\u0275fac=function(o){return new(o||i)}}static{this.\u0275cmp=t.VBU({type:i,selectors:[["app-product-measurements-shipping"]],inputs:{product:[t.Mj6.SignalBased,"product"]},standalone:!0,features:[t.Jv_([y.fo]),t.aNF],decls:1,vars:0,consts:[[4,"transloco"],["padding","none","variant","outline"],["gap","none","crossAxisAlignment","stretch"],[3,"click"],["padding","medium"],["mainAxisAlignment","space-between","crossAxisAlignment","center"],["size","medium","weight","w600","leadingIcon","ruler"],["name","nav-arrow-right","size","medium","weight","w500"],["padding","none"],["gap","s7","crossAxisAlignment","stretch"],["size","medium","weight","w600","leadingIcon","vestua-delivery-truck"],["size","medium","weight","w600","leadingIcon","info"],["baseSize","small","baseWeight","w500",3,"uiMarkdownText"]],template:function(o,n){1&o&&t.DNE(0,Se,20,4,"ng-container",0)},dependencies:[g.MD,_.bA,s.Cs,s.ob,s.xP,s.bh,s.cu,s.yY,s.cA,s.E0,s.qE,pt.HS],encapsulation:2})}}return i})();var mt=r(50957);const ke=(i,a)=>a.url;function Ie(i,a){if(1&i){const e=t.RV6();t.j41(0,"ui-list-item",4),t.bIt("click",function(){const n=t.eBV(e).$implicit,T=t.XpG(2);return t.Njj(T.onShareLinkClick(n))}),t.nrm(1,"ui-image",5),t.j41(2,"ui-text",6),t.EFF(3),t.k0s()()}if(2&i){const e=a.$implicit;t.Y8G("clickable",!0),t.R7$(),t.Y8G("showShimmerAnimation",!1)("src",e.iconAssetPath)("alt",e.name+" icon")("width",20)("height",20),t.R7$(2),t.JRh(e.name)}}function De(i,a){if(1&i){const e=t.RV6();t.j41(0,"ui-list-item",4),t.bIt("click",function(){t.eBV(e);const n=t.XpG(2);return t.Njj(n.onCopyLinkClick())}),t.nrm(1,"ui-image",7),t.j41(2,"ui-text",6),t.EFF(3),t.k0s()()}if(2&i){const e=t.XpG().$implicit;t.Y8G("clickable",!0),t.R7$(),t.Y8G("showShimmerAnimation",!1)("width",20)("height",20),t.R7$(2),t.JRh(e("shared.buttons.copy_link"))}}function Ee(i,a){if(1&i&&(t.qex(0),t.j41(1,"ui-card",1)(2,"ui-column",2),t.Z7z(3,Ie,4,7,"ui-list-item",3,ke),t.DNE(5,De,4,5,"ui-list-item",3),t.k0s()(),t.bVm()),2&i){const e=t.XpG();t.R7$(),t.Y8G("shadow",!0),t.R7$(2),t.Dyx(e.shareLinks()),t.R7$(2),t.vxM(5,e.showCopyLink()?5:-1)}}let Fe=(()=>{class i{constructor(){this.shareLinks=t.hFB.required(),this.showCopyLink=(0,t.hFB)(!0),this.linkClicked=(0,t.CGW)(),this.copyLinkClicked=(0,t.CGW)()}onShareLinkClick(e){this.linkClicked.emit(e)}onCopyLinkClick(){this.copyLinkClicked.emit()}static{this.\u0275fac=function(o){return new(o||i)}}static{this.\u0275cmp=t.VBU({type:i,selectors:[["app-product-share-options"]],inputs:{shareLinks:[t.Mj6.SignalBased,"shareLinks"],showCopyLink:[t.Mj6.SignalBased,"showCopyLink"]},outputs:{linkClicked:"linkClicked",copyLinkClicked:"copyLinkClicked"},standalone:!0,features:[t.aNF],decls:1,vars:0,consts:[[4,"transloco"],["padding","none","backgroundColor","surface-base",3,"shadow"],["gap","none","crossAxisAlignment","stretch"],["size","regular",3,"clickable"],["size","regular",3,"click","clickable"],["slot","leading","type","regular",3,"showShimmerAnimation","src","alt","width","height"],["size","small","weight","w500"],["slot","leading","type","regular","src","/assets/images/icons/material/content-copy.svg","alt","Copy icon",3,"showShimmerAnimation","width","height"]],template:function(o,n){1&o&&t.DNE(0,Ee,6,2,"ng-container",0)},dependencies:[g.MD,_.bA,s.Cs,s.ob,s.PM,s.HS,s.tL],encapsulation:2,changeDetection:0})}}return i})(),Re=(()=>{class i{constructor(){this.product=t.hFB.required(),this.popoverPosition=(0,t.hFB)("bottom-right"),this._isPopoverVisible=(0,t.vPA)(!1),this.isPopoverVisible=this._isPopoverVisible.asReadonly(),this.shareInfo=(0,t.EWP)(()=>this.shareService.generateShareInfo(this.product())),this.shareLinks=(0,t.EWP)(()=>this.shareService.generateShareLinks(this.shareInfo())),this.shouldPreferNativeShare=(0,t.EWP)(()=>this.shareService.shouldPreferNativeShare()),this.shareService=(0,t.WQX)(mt.a)}onShareClick(){var e=this;return(0,et.A)(function*(){if(e.shareService.shouldPreferNativeShare())try{return e.closePopover(),yield e.shareService.openNativeShare(e.shareInfo()),void e.showFeedback("success","Contenido compartido")}catch(o){if(o instanceof Error&&o.message.includes("cancelled by user"))return;return void e.togglePopover()}e.closePopover(),e.togglePopover()})()}onShareLinkClick(e){this.closePopover(),this.shareService.openShareLink(e.url)}onCopyLinkClick(){var e=this;return(0,et.A)(function*(){e.closePopover();try{const o=e.shareInfo(),n=`${o.description}\n${o.url}`;yield e.shareService.copyToClipboard(n),e.showFeedback("success","Enlace copiado al portapapeles")}catch{e.showFeedback("error","No se pudo copiar el enlace")}})()}onPopoverClose(){this.closePopover()}togglePopover(){this._isPopoverVisible.set(!this._isPopoverVisible())}
1closePopover(){this._isPopoverVisible.set(!1)}showFeedback(e,o){}static{this.\u0275fac=function(o){return new(o||i)}}static{this.\u0275cmp=t.VBU({type:i,selectors:[["app-product-share-button"]],inputs:{product:[t.Mj6.SignalBased,"product"],popoverPosition:[t.Mj6.SignalBased,"popoverPosition"]},standalone:!0,features:[t.Jv_([mt.a]),t.aNF],decls:5,vars:5,consts:[[3,"mainAxisAlignment"],[3,"closeRequested","isVisible","position"],[3,"clicked"],["name","share","weight","w500","size","large"],["slot","content",3,"linkClicked","copyLinkClicked","shareLinks","showCopyLink"]],template:function(o,n){1&o&&(t.j41(0,"ui-row",0)(1,"ui-popover",1),t.bIt("closeRequested",function(){return n.onPopoverClose()}),t.j41(2,"ui-link-element",2),t.bIt("clicked",function(){return n.onShareClick()}),t.nrm(3,"ui-icon",3),t.k0s(),t.j41(4,"app-product-share-options",4),t.bIt("linkClicked",function(B){return n.onShareLinkClick(B)})("copyLinkClicked",function(){return n.onCopyLinkClick()}),t.k0s()()()),2&o&&(t.Y8G("mainAxisAlignment","center"),t.R7$(),t.Y8G("isVisible",n.isPopoverVisible())("position",n.popoverPosition()),t.R7$(3),t.Y8G("shareLinks",n.shareLinks())("showCopyLink",!0))},dependencies:[g.MD,s.qE,s.bh,s.yY,s.P,Fe],encapsulation:2})}}return i})();function Be(i,a){if(1&i&&(t.qex(0),t.j41(1,"ui-card",1)(2,"ui-column",2)(3,"ui-text",3),t.EFF(4),t.k0s(),t.j41(5,"ui-row",4)(6,"ui-column",5)(7,"ui-row",6),t.nrm(8,"ui-image",7),t.j41(9,"ui-column",8)(10,"ui-text",9),t.EFF(11),t.k0s(),t.j41(12,"ui-text",10),t.EFF(13),t.k0s()()(),t.j41(14,"ui-row",6),t.nrm(15,"ui-image",11),t.j41(16,"ui-column",8)(17,"ui-text",9),t.EFF(18),t.k0s(),t.j41(19,"ui-text",10),t.EFF(20),t.k0s()()()(),t.j41(21,"ui-column",5)(22,"ui-row",6),t.nrm(23,"ui-image",12),t.j41(24,"ui-column",8)(25,"ui-text",9),t.EFF(26),t.k0s(),t.j41(27,"ui-text",10),t.EFF(28),t.k0s()()(),t.j41(29,"ui-row",6),t.nrm(30,"ui-image",13),t.j41(31,"ui-column",8)(32,"ui-text",9),t.EFF(33),t.k0s(),t.j41(34,"ui-text",10),t.EFF(35),t.k0s()()()()()()(),t.bVm()),2&i){const e=a.$implicit,o=t.XpG();t.R7$(4),t.SpI(" ",e("pagesProductDetails.sustainability.title")," "),t.R7$(2),t.Y8G("uiGrow",1),t.R7$(2),t.Y8G("width",o.iconSize())("height",o.iconSize()),t.R7$(3),t.Lme(" ",o.sustainabilityMetrics().emissionsSaved.amount," ",o.sustainabilityMetrics().emissionsSaved.unit," "),t.R7$(2),t.SpI(" ",e("pagesProductDetails.sustainability.benefits.emissionsSaved")," "),t.R7$(2),t.Y8G("width",o.iconSize())("height",o.iconSize()),t.R7$(3),t.Lme(" ",o.sustainabilityMetrics().waterSaved.amount," ",o.sustainabilityMetrics().waterSaved.unit," "),t.R7$(2),t.SpI(" ",e("pagesProductDetails.sustainability.benefits.waterSaved")," "),t.R7$(),t.Y8G("uiGrow",1),t.R7$(2),t.Y8G("width",o.iconSize())("height",o.iconSize()),t.R7$(3),t.Lme(" ",o.sustainabilityMetrics().energySaved.amount," ",o.sustainabilityMetrics().energySaved.unit," "),t.R7$(2),t.SpI(" ",e("pagesProductDetails.sustainability.benefits.energySaved")," "),t.R7$(2),t.Y8G("width",o.iconSize())("height",o.iconSize()),t.R7$(3),t.Lme(" ",o.sustainabilityMetrics().textileWasteSaved.amount," ",o.sustainabilityMetrics().textileWasteSaved.unit," "),t.R7$(2),t.SpI(" ",e("pagesProductDetails.sustainability.benefits.textileWasteSaved")," ")}}let Ae=(()=>{class i{constructor(){this.product=t.hFB.required(),this.iconSize=(0,t.hFB)(32),this.sustainabilityMetrics=(0,t.EWP)(()=>this.calculateSustainabilityMetrics())}calculateSustainabilityMetrics(){return{emissionsSaved:this.formatMetric(20,"kilogramos","toneladas"),waterSaved:this.formatMetric(2,"mil litros","Millones de lts"),textileWasteSaved:this.formatMetric(.3,"kilogramos","toneladas"),energySaved:this.formatMetric(20,"kW / hr","MWh")}}formatMetric(e,o,n){let T=e,B=o;return T>=1e3&&(T/=1e3,B=n),T=Math.round(10*T)/10,{amount:T,unit:B}}static{this.\u0275fac=function(o){return new(o||i)}}static{this.\u0275cmp=t.VBU({type:i,selectors:[["app-product-sustainability"]],inputs:{product:[t.Mj6.SignalBased,"product"],iconSize:[t.Mj6.SignalBased,"iconSize"]},standalone:!0,features:[t.aNF],decls:1,vars:0,consts:[[4,"transloco"],["padding","medium"],["gap","s5","crossAxisAlignment","stretch"],["size","medium","weight","w600"],["gap","s5","crossAxisAlignment","start"],["gap","s5","crossAxisAlignment","start",3,"uiGrow"],["gap","s5","crossAxisAlignment","center"],["src","assets/images/icons/impact/leaf.png","type","regular",3,"width","height"],["gap","none","crossAxisAlignment","start"],["size","small","weight","w600"],["size","extra-small","weight","w400"],["src","assets/images/icons/impact/waterdrop.png","type","regular",3,"width","height"],["src","assets/images/icons/impact/lightbulb.png","type","regular",3,"width","height"],["src","assets/images/icons/impact/trashcan.png","type","regular",3,"width","height"]],template:function(o,n){1&o&&t.DNE(0,Be,36,23,"ng-container",0)},dependencies:[g.MD,_.bA,s.Cs,s.ob,s.lk,s.PM,s.qE,s.tL],encapsulation:2})}}return i})();function Ge(i,a){if(1&i){const e=t.RV6();t.qex(0),t.j41(1,"ui-button",1),t.bIt("click",function(){t.eBV(e);const n=t.XpG();return t.Njj(n.onSeeMoreFromProvider())}),t.EFF(2),t.k0s(),t.bVm()}if(2&i){const e=a.$implicit;t.R7$(),t.Y8G("type","secondary")("size","medium"),t.R7$(),t.SpI(" ",e("pagesProductDetails.seeMoreProviderButton.seeMoreFromProvider")," ")}}let $e=(()=>{class i{constructor(){this.providerId=t.hFB.required(),this.router=(0,t.WQX)(u.Ix)}onSeeMoreFromProvider(){this.router.navigate(["/store/catalog"],{queryParams:{provider_id:this.providerId()}})}static{this.\u0275fac=function(o){return new(o||i)}}static{this.\u0275cmp=t.VBU({type:i,selectors:[["app-see-more-provider-button"]],inputs:{providerId:[t.Mj6.SignalBased,"providerId"]},standalone:!0,features:[t.aNF],decls:1,vars:0,consts:[[4,"transloco"],["leadingIcon","tshirt",3,"click","type","size"]],template:function(o,n){1&o&&t.DNE(0,Ge,3,3,"ng-container",0)},dependencies:[_.bA,s.A4],encapsulation:2})}}return i})();var je=r(93261),Oe=r(11493),Le=r(45467),We=r(56029);const ze=i=>[i];let Ue=(()=>
1{class i{static{this.\u0275fac=function(o){return new(o||i)}}static{this.\u0275cmp=t.VBU({type:i,selectors:[["app-product-carousels"]],inputs:{productId:"productId",providerId:"providerId",brandName:"brandName"},standalone:!0,features:[t.aNF],decls:4,vars:8,consts:[[3,"productId"],[3,"productId","brandName"],[3,"productIdsToHide"],[3,"productId","providerId"]],template:function(o,n){1&o&&t.nrm(0,"app-similar-recommendation",0)(1,"app-more-products-of-this-brand",1)(2,"app-recently-viewed-products",2)(3,"app-more-products-of-this-provider",3),2&o&&(t.Y8G("productId",n.productId),t.R7$(),t.Y8G("productId",n.productId)("brandName",n.brandName),t.R7$(),t.Y8G("productIdsToHide",t.eq3(6,ze,n.productId)),t.R7$(),t.Y8G("productId",n.productId)("providerId",n.providerId))},dependencies:[g.MD,We.o,Le.I,Oe.b,je.j],encapsulation:2,changeDetection:0})}}return i})();const Xe=i=>({count:i}),Ne=(i,a)=>({count:i,cartWord:a}),Ve=()=>({amount:"$30.000"});function Ye(i,a){if(1&i&&t.nrm(0,"ui-paragraph",12),2&i){const e=t.XpG().$implicit,o=t.XpG();t.Y8G("uiMarkdownText",e("pagesProductDetails.content.demandMessage",t.l_i(3,Ne,o.productDemand(),e("pagesProductDetails.content.cartWord",t.eq3(1,Xe,o.productDemand())))))}}function Ke(i,a){if(1&i&&t.nrm(0,"app-first-purchase-message",13),2&i){const e=t.XpG().$implicit,o=t.XpG();t.Y8G("context",o.firstPurchaseMessageContext())("condition",e("shared.firstPurchase.condition",t.lJ4(2,Ve)))}}function Ze(i,a){if(1&i){const e=t.RV6();t.qex(0),t.j41(1,"ui-sections",1)(2,"ui-section",2),t.nrm(3,"app-product-breadcrumbs",3),t.k0s(),t.j41(4,"ui-section",2)(5,"ui-two-column-layout",4)(6,"ui-column",5),t.nrm(7,"app-product-image-gallery",3),t.k0s(),t.j41(8,"ui-column",6)(9,"ui-row",7),t.nrm(10,"app-product-basic-info",8)(11,"app-product-share-button",3),t.k0s(),t.j41(12,"ui-column",9)(13,"ui-page-primary-button-container")(14,"ui-row",10),t.nrm(15,"app-product-favorites-button",3),t.j41(16,"app-add-to-cart-button",11),t.bIt("addToCartClicked",function(){t.eBV(e);const n=t.XpG();return t.Njj(n.onAddToCartClicked())}),t.k0s()(),t.DNE(17,Ye,1,6,"ui-paragraph",12),t.k0s()(),t.DNE(18,Ke,1,3,"app-first-purchase-message",13),t.nrm(19,"app-see-more-provider-button",14)(20,"app-product-condition-sku",3)(21,"app-product-material-color",3)(22,"app-product-measurements-shipping",3)(23,"app-product-sustainability",3),t.k0s()()(),t.j41(24,"ui-section",15),t.nrm(25,"app-product-carousels",16),t.k0s()(),t.bVm()}if(2&i){const e=t.XpG();t.R7$(3),t.Y8G("product",e.product()),t.R7$(3),t.Y8G("uiSticky","desktop"),t.R7$(),t.Y8G("product",e.product()),t.R7$(3),t.Y8G("product",e.product())("productName",e.product().name)("productSize",e.product().sizeConversion.standardEquivalent)("displayPrice",e.product().discountedPrice)("savingsAmount",e.product().savings),t.R7$(),t.Y8G("product",e.product()),t.R7$(4),t.Y8G("product",e.product()),t.R7$(),t.Y8G("productId",e.product().id)("productStatus",e.product().status)("productReservedUntil",e.product().reservedUntil)("size","large")("disabled",!e.isAddToCartEnabled())("loading",e.isAddToCartLoading())("isProductInCart",e.isProductInCart())("isCartFull",e.isCartFull())("isUserAuthenticated",!0)("uiGrow",1),t.R7$(),t.vxM(17,e.productDemand()>0?17:-1),t.R7$(),t.vxM(18,e.shouldShowFirstPurchaseMessage()&&e.firstPurchaseMessageContext()?18:-1),t.R7$(),t.Y8G("providerId",e.product().providerId),t.R7$(),t.Y8G("product",e.product()),t.R7$(),t.Y8G("product",e.product()),t.R7$(),t.Y8G("product",e.product()),t.R7$(),t.Y8G("product",e.product()),t.R7$(2),t.Y8G("productId",e.product().id)("providerId",e.product().providerId)("brandName",e.product().brand.name)}}let He=(()=>{class i{constructor(){this.cartStore=(0,t.WQX)(y.Ij),this.addToCartLogic=(0,t.WQX)(y.Xi),this.data=t.hFB.required(),this.firstPurchaseMessageState=t.hFB.required(),this.product=(0,t.EWP)(()=>this.data().product),this.productDemand=(0,t.EWP)(()=>this.data().productDemand),this.shouldShowFirstPurchaseMessage=(0,t.EWP)(()=>"active"===this.firstPurchaseMessageState()?.kind),this.firstPurchaseMessageContext=(0,t.EWP)(()=>{const e=this.firstPurchaseMessageState();return"active"===e?.kind?e.context:null}),this.cart=(0,d.ot)(this.cartStore.value$),this.addToCartState=(0,d.ot)(this.addToCartLogic.state$),this.availabilityLabel=(0,t.EWP)(()=>{const e=this.product();return e&&{[h.n.Available]:"shared.product.availability.available",[h.n.Reserved]:"shared.product.availability.reserved",[h.n.OutOfStock]:"shared.product.availability.outOfStock"}[e.availability]||""}),this.availabilityBadgeType=(0,t.EWP)(()=>{const o=this.product().availability;return{[h.n.Available]:"success",[h.n.Reserved]:"warning",[h.n.OutOfStock]:"error"}[o]||"neutral"}),this.isAddToCartEnabled=(0,t.EWP)(()=>{const e=this.product();return!!e&&e.canBeAddedToCart}),this.isProductInCart=(0,t.EWP)(()=>{const e=this.cart()?.cart,o=this.product();return!(!e||!o)&&e.hasProduct(o.id)}),this.isCartFull=(0,t.EWP)(()=>{const e=this.cart()?.cart;return!!e&&e.lineItemsCount>=100}),this.isAddToCartLoading=(0,t.EWP)(()=>"executing"===this.addToCartState()?.kind)}onAddToCartClicked(){const e=new y.Jo({productId:this.data().product.id,referencePrice:this.data().product.referencePrice});this.addToCartLogic.add(e)}static{this.\u0275fac=function(o){return new(o||i)}}static{this.\u0275cmp=t.VBU({type:i,selectors:[["app-product-details-content"]],inputs:{data:[t.Mj6.SignalBased,"data"],firstPurchaseMessageState:[t.Mj6.SignalBased,"firstPurchaseMessageState"]},standalone:!0,features:[t.Jv_([y.Xi]),t.aNF],decls:1,vars:0,consts:[[4,"transloco"],["gap","medium"],["gap","none"],[3,"product"],["gap","l4"],["slot","main","gap","component-3","crossAxisAlignment","stretch","uiStickyTopGap","s6",3,"uiSticky"],["slot","aside","gap","component-2","crossAxisAlignment","stretch"],["mainAxisAlignment","space-between","crossAxisAlignment","start"],[3,"product","productName","productSize","displayPrice","savingsAmount"],["gap","detail-2","crossAxisAlignment","stretch","uiHide","mobile"],["gap","component-2","crossAxisAlignment","center"],[3,"addToCartClicked","productId","productStatus","productReservedUntil","size","disabled","loading","isProductInCart","isCartFull","isUserAuthenticated","uiGrow"],["textAlign","center","baseSize","small","baseWeight","w600",3,"uiMarkdownText"],["benefit","$25.000","couponCode","BIENVENIDO",3,"context","condition"],[3,"providerId"],["gap","none","bleed","mobile","bleedContentMode","flush"],[3,"productId","providerId","brandName"]],template:function(o,n){1&o&&t.DNE(0,Ze,26,30,"ng-container",0)},dependencies:[g.MD,u.iI,_.bA,s.qE,s.ob,s.EQ,s.OG,s.s2,s.Dx,s.IP,s.hA,Z,q,Re,vt,$e,ht,Rt,Ae,Te,f,w,s.lk,s.cA,s.E0,yt,Ue],encapsulation:2})}}return i})();function Je(i,a){1&i&&t.nrm(0,"ui-page-spinner")}function Qe(i,a){if(1&i&&t.nrm(0,"app-product-details-content",3),2&i){const e=t.XpG(2);t.Y8G("data",e.successData())("firstPurchaseMessageState",e.firstPurchaseMessageState())}}function qe(i,a){if(1&i&&t.nrm(0,"ui-not-found",4),2&i){const e=t.XpG().$implicit;t.Y8G("title",e("pagesProductDetails.shell.notFoundTitle"))("message",e("pagesProductDetails.shell.notFoundMessage"))}}function ti(i,a){if(1&i){const e=t.RV6();t.j41(0,"ui-error-content",5),t.bIt("retry",function(){t.eBV(e);const n=t.XpG(2);return t.Njj(n.onRetry())}),t.k0s()}if(2&i){const e=t.XpG().$implicit;t.Y8G("title",e("shared.errors.contentGenericTitle"))("message",e("shared.errors.contentGenericDescription"))("retryText",e("shared.buttons.retry"))}}function ei(i,a){if(1&i){const e=t.RV6();t.j41(0,"ui-page-primary-button-container",2)(1,"app-add-to-cart-button",6),t.bIt("addToCartClicked",function(){t.eBV(e);const n=t.XpG(2);return t.Njj(n.onAddToCartClicked())}),t.k0s()()}if(2&i){const e=t.XpG(2);t.R7$(),t.Y8G("productId",e.product().id)("productStatus",e.product().status)("productReservedUntil",e.product().reservedUntil)("size","large")("disabled",!e.isAddToCartEnabled())("loading",e.isAddToCartLoading())("isProductInCart",e.isProductInCart())("isCartFull",e.isCartFull())("isUserAuthenticated",!0)}}function ii(i,a){if(1&i&&(t.qex(0),t.j41(1,"ui-page-content",1),t.DNE(2,Je,1,0,"ui-page-spinner")(3,Qe,1,2)(4,qe,1,2)(5,ti,1,3)(6,ei,2,9,"ui-page-primary-button-container",2),t.k0s(),t.bVm()),2&i){let e,o;const n=t.XpG();t.R7$(2),t.vxM(2,"executing"===(null==(e=n.state())?null:e.kind)?2:"success"===(null==(e=n.state())?null:e.kind)&&n.successData()?3:"error"===(null==(e=n.state())?null:e.kind)&&n.isProductNotFound()?4:"error"===(null==(e=n.state())?null:e.kind)?5:-1),t.R7$(4),t.vxM(6,"success"===(null==(o=n.state())?null:o.kind)&&n.product()?6:-1)}}let oi=(()=>{class i{constructor(){this.cartStore=(0,t.WQX)(y.Ij),this.addToCartLogic=(0,t.WQX)(y.Xi),this.state=t.hFB.required(),this.firstPurchaseMessageState=t.hFB.required(),this.retry=(0,t.CGW)(),this.cart=(0,d.ot)(this.cartStore.value$),this.addToCartState=(0,d.ot)(this.addToCartLogic.state$),this.successData=(0,t.EWP)(()=>{const e=this.state();return e&&"success"===e.kind?e.value:void 0}),this.product=(0,t.EWP)(()=>this.successData()?.product),this.isProductNotFound=(0,t.EWP)(()=>{const e=this.state();return!(!e||"error"!==e.kind)&&"PRODUCT_NOT_FOUND"===e.errorCode}),this.isAddToCartEnabled=(0,t.EWP)(()=>{const e=this.product();return!!e&&e.availability===h.n.Available}),this.isProductInCart=(0,t.EWP)(()=>{const e=this.cart()?.cart,o=this.product();return!(!e||!o)&&e.hasProduct(o.id)}),this.isCartFull=(0,t.EWP)(()=>{const e=this.cart()?.cart;return!!e&&e.lineItemsCount>=100}),this.isAddToCartLoading=(0,t.EWP)(()=>"executing"===this.addToCartState()?.kind)}onRetry(){this.retry.emit()}onAddToCartClicked(){const e=this.product();if(!e)return;const o=new y.Jo({productId:e.id,referencePrice:e.referencePrice});this.addToCartLogic.add(o)}static{this.\u0275fac=function(o){return new(o||i)}}static{this.\u0275cmp=t.VBU({type:i,selectors:[["app-product-details-shell"]],inputs:{state:[t.Mj6.SignalBased,"state"],firstPurchaseMessageState:[t.Mj6.SignalBased,"firstPurchaseMessageState"]},outputs:{retry:"retry"},standalone:!0,features:[t.Jv_([y.Xi]),t.aNF],decls:1,vars:0,consts:[[4,"transloco"],["gutter","medium","paddingY","medium"],["slot","page-actions"],[3,"data","firstPurchaseMessageState"],[3,"title","message"],[3,"retry","title","message","retryText"],["uiBlock","",3,"addToCartClicked","productId","productStatus","productReservedUntil","size","disabled","loading","isProductInCart","isCartFull","isUserAuthenticated"]],template:function(o,n){1&o&&t.DNE(0,ii,7,2,"ng-container",0)},dependencies:[g.MD,u.iI,_.Q8,_.bA,s.KQ,s.wp,s.OG,s.jV,s.rK,s.n4,He,f],encapsulation:2})}}return i})(),ni=(()=>{class i extends p.H1{constructor(){super(),this.route=(0,t.WQX)(u.nX),this.logic=(0,t.WQX)(y.nF),this.firstPurchaseMessageLogic=(0,t.WQX)(y.T9),this.paramMap=(0,d.ot)(this.route.paramMap,{initialValue:(0,u.wl)({})}),this.productId=(0,t.EWP)(()=>{const e=this.paramMap().get("id");if(!e)throw new Error("Missing required route param: id");if(isNaN(Number(e)))throw new Error(`Invalid product ID: ${e}`);return Number(e)}),this.state=(0,d.ot)(this.logic.state$),this.firstPurchaseMessageState=(0,d.ot)(this.firstPurchaseMessageLogic.state$),(0,t.QZP)(()=>{this.logic.add(new y.iv(this.productId()))}),(0,t.QZP)(()=>{this.firstPurchaseMessageLogic.add(new b.Jw)})}onRetry(){const e=this.productId();this.logic.add(new y.iv(e))}static{this.\u0275fac=function(o){return new(o||i)}}static{this.\u0275cmp=t.VBU({type:i,selectors:[["app-product-details-page"]],standalone:!0,features:[t.Jv_([y.nF,y.T9,(0,_.bF)("pages/product-details")]),t.Vt3,t.aNF],decls:2,vars:2,consts:[["maxWidth","normal"],[3,"retry","state","firstPurchaseMessageState"]],template:function(o,n){1&o&&(t.j41(0,"ui-frame",0)(1,"app-product-details-shell",1),t.bIt("retry",function(){return n.onRetry()}
1),t.k0s()()),2&o&&(t.R7$(),t.Y8G("state",n.state())("firstPurchaseMessageState",n.firstPurchaseMessageState()))},dependencies:[g.MD,u.iI,_.Q8,oi,s.pn],encapsulation:2})}}return i})()},91862:(A,E,r)=>{r.d(E,{r:()=>g});var g=function(t){return t.WaistWidth="Ancho cintura",t.BustWidth="Ancho busto",t.ShouldersWidth="Ancho hombros",t.InferiorWidth="Ancho inferior",t.Length="Largo",t.PantRiseLength="Largo tiro",t.HeelHeight="Alto del taco o terrapl\xe9n",t.PlantLength="Largo Planta",t.Sleevelength="Largo manga",t.Depth="Profundidad",t.PalmLength="Largo de palma",t.PalmWidth="Ancho de palma",t.HipsWidth="Ancho cadera",t.Height="Alto",t}(g||{})},79323:(A,E,r)=>{r.d(E,{nW:()=>t,zh:()=>u});var g=r(16796);class t extends g.t{constructor(p){super(p),p.values&&(this.values=p.values.split(",").map(y=>y.trim()))}static findByCodename(p,y){const b=p.find(s=>s.codename===y);if(!b)throw new Error(`attribute with codename '${y}' was not found`);return b}}var u=function(_){return _.Unclassified="unclassified",_.Measurement="measurement",_}(u||{})},66113:(A,E,r)=>{r.d(E,{h:()=>t});var g=r(41545);const t={[g.bV.ConEtiqueta]:"with_label",[g.bV.ComoNuevo]:"like_new",[g.bV.ConDetalles]:"has_details",[g.bV.UsoVisible]:"visible_use"}},97174:(A,E,r)=>{r.d(E,{w:()=>h});var g=r(4384),t=r(54438),d=r(10467),u=r(79323),_=r(15215),p=r(44237),y=r(45312);let b=class at extends p.FW{constructor(f){super(f)}static{this.\u0275fac=function(C){return new(C||at)(t.KVO(p.tX))}}static{this.\u0275prov=t.jDH({token:at,factory:at.\u0275fac,providedIn:"root"})}};(0,_.__decorate)([(0,p.ZN)({method:p.rI.Get,path:"/"})],b.prototype,"list",void 0),b=(0,_.__decorate)([(0,p.nk)({pathPrefix:`${y.c.apiUrl}/api/attributes`,returnAs:p.ds.Promise})],b);let s=(()=>{class I{constructor(C){this.attributeResource=C}list(){var C=this;return(0,d.A)(function*(){return(yield C.attributeResource.list()).map(c=>new u.nW(c))})()}static{this.\u0275fac=function(P){return new(P||I)(t.KVO(b))}}static{this.\u0275prov=t.jDH({token:I,factory:I.\u0275fac,providedIn:"root"})}}return I})(),h=(()=>{class I{constructor(C){this.attributeService=C,this.cachedAttributes=new g.t(()=>this.attributeService.list(),5)}static{this.\u0275fac=function(P){return new(P||I)(t.KVO(s))}}static{this.\u0275prov=t.jDH({token:I,factory:I.\u0275fac,providedIn:"root"})}}return I})()},78541:(A,E,r)=>{r.d(E,{o:()=>lt});var g=r(60177),t=r(54438),d=r(19520),u=r(54114),_=r(44046),p=r(53903),y=r(68771),b=r(21464),s=r(94754),h=r(41545),I=r(53289),f=r(59222),C=r(66113),P=r(45312),c=r(92151),S=r(88301),m=r(8693),w=r(33192),F=r(34006),G=r(34674),j=r(30360);const X=()=>[];function N(v,R){if(1&v){const l=t.RV6();t.j41(0,"app-product-ai-original-viewer",16),t.bIt("clicked",function(){t.eBV(l);const M=t.XpG(4);return t.Njj(M.onAiImageOriginalViewerClick())}),t.k0s()}if(2&v){const l=t.XpG(2).index,x=t.XpG(2);t.Y8G("disabled",!x.hasHiddenAssetForIndex(l))}}function K(v,R){if(1&v&&(t.j41(0,"div")(1,"ui-badge",17),t.EFF(2),t.nI1(3,"transloco"),t.k0s()()),2&v){const l=t.XpG(4);t.R7$(),t.Y8G("type","success"),t.R7$(),t.JRh(t.bMT(3,2,l.productConditionI18n[l.ProductCondition.ConEtiqueta]))}}function $(v,R){if(1&v&&(t.j41(0,"div")(1,"ui-badge",17),t.EFF(2),t.nI1(3,"transloco"),t.k0s()()),2&v){const l=t.XpG(4);t.R7$(),t.Y8G("type","success"),t.R7$(),t.JRh(t.bMT(3,2,l.productConditionI18n[l.ProductCondition.ComoNuevo]))}}function Z(v,R){if(1&v&&(t.j41(0,"div")(1,"ui-badge",17),t.EFF(2),t.nI1(3,"transloco"),t.k0s()()),2&v){const l=t.XpG(4);t.R7$(),t.Y8G("type","warning"),t.R7$(),t.JRh(t.bMT(3,2,l.productConditionI18n[l.ProductCondition.ConDetalles]))}}function z(v,R){if(1&v&&(t.j41(0,"div")(1,"ui-badge",17),t.EFF(2),t.nI1(3,"transloco"),t.k0s()()),2&v){const l=t.XpG(4);t.R7$(),t.Y8G("type","error"),t.R7$(),t.JRh(t.bMT(3,2,l.productConditionI18n[l.ProductCondition.UsoVisible]))}}function H(v,R){if(1&v){const l=t.RV6();t.j41(0,"app-product-ai-original-viewer",16),t.bIt("clicked",function(){t.eBV(l);const M=t.XpG(4);return t.Njj(M.onAiImageOriginalViewerClick())}),t.k0s()}if(2&v){const l=t.XpG(2).index,x=t.XpG(2);t.Y8G("disabled",!x.hasHiddenAssetForIndex(l))}}function J(v,R){if(1&v){const l=t.RV6();t.j41(0,"div",8)(1,"figure",9),t.bIt("mouseenter",function(){t.eBV(l);const M=t.XpG().index,k=t.XpG(2);return t.Njj(k.onZoomHover(M))})("mousemove",function(M){t.eBV(l);const k=t.XpG(3);
1return t.Njj(k.zoomIn(M))}),t.nrm(2,"app-image",10),t.DNE(3,N,1,1,"app-product-ai-original-viewer",11),t.k0s(),t.j41(4,"div",12)(5,"app-image",13),t.bIt("touchstart",function(M){t.eBV(l);const k=t.XpG(3);return t.Njj(k.handleMultipleTouch(M))})("click",function(){t.eBV(l);const M=t.XpG(3);return t.Njj(M.openZoomableModalForCurrentImage())}),t.k0s(),t.j41(6,"div",14),t.DNE(7,K,4,4,"div",15)(8,$,4,4,"div",15)(9,Z,4,4,"div",15)(10,z,4,4,"div",15),t.k0s(),t.DNE(11,H,1,1,"app-product-ai-original-viewer",11),t.k0s()()}if(2&v){const l=t.XpG(),x=l.$implicit,M=l.index,k=t.XpG(2);t.R7$(),t.xc7("background-image",k.shouldLoadZoomImage(M)?"url("+k.getImageUrlForIndex(M)+")":"none"),t.R7$(),t.Y8G("s3Key",x)("imageSize",k.mainImageSize)("skipLazyLoad",0===M)("skipLowResolution",!0)("s3Bucket",k.s3Bucket),t.R7$(),t.Y8G("ngIf",k.isAiGeneratedImageIndex(M)),t.R7$(2),t.Y8G("s3Bucket",k.s3Bucket)("s3Key",x)("imageSize",k.splideImageSize)("skipLazyLoad",0===M)("skipLowResolution",!0),t.R7$(2),t.Y8G("ngIf",k.condition===k.ProductCondition.ConEtiqueta),t.R7$(),t.Y8G("ngIf",k.condition===k.ProductCondition.ComoNuevo),t.R7$(),t.Y8G("ngIf",k.condition===k.ProductCondition.ConDetalles),t.R7$(),t.Y8G("ngIf",k.condition===k.ProductCondition.UsoVisible),t.R7$(),t.Y8G("ngIf",k.isAiGeneratedImageIndex(M))}}function L(v,R){if(1&v&&(t.j41(0,"div",18),t.nrm(1,"app-measurements-image",19),t.k0s()),2&v){const l=t.XpG(3);t.R7$(),t.Y8G("product",l.product)}}function Q(v,R){if(1&v&&(t.j41(0,"vestua-ui-splide-slide"),t.DNE(1,J,12,18,"div",4)(2,L,2,1,"div",7),t.k0s()),2&v){const l=R.$implicit,x=t.XpG(2);t.R7$(),t.Y8G("ngIf","measurement-image"!==l),t.R7$(),t.Y8G("ngIf",x.showMeasurements&&"measurement-image"===l)}}function U(v,R){if(1&v){const l=t.RV6();t.j41(0,"app-splide",5),t.mxI("selectedSlideIndexChange",function(M){t.eBV(l);const k=t.XpG();return t.DH7(k.currentImageIndex,M)||(k.currentImageIndex=M),t.Njj(M)}),t.bIt("moved",function(M){t.eBV(l);const k=t.XpG();return t.Njj(k.onImageMoved(M))}),t.DNE(1,Q,3,2,"vestua-ui-splide-slide",6),t.k0s()}if(2&v){const l=t.XpG();t.R50("selectedSlideIndex",l.currentImageIndex),t.Y8G("options",l.DEFAULT_OPTIONS),t.R7$(),t.Y8G("ngForOf",l.images)}}function q(v,R){if(1&v){const l=t.RV6();t.j41(0,"ui-image",23),t.bIt("click",function(){const M=t.eBV(l).index,k=t.XpG(2);return t.Njj(k.onClickImage(M))}),t.k0s()}if(2&v){const l=R.$implicit,x=t.XpG(2);t.AVh("selected",l===x.imagesThumbnail[x.currentImageIndex]),t.Y8G("src",l)("width",75)("height",100)("bucketName",x.s3Bucket)("useProgressiveLoading",!1)("showShimmerAnimation",!1)}}function D(v,R){if(1&v){const l=t.RV6();t.j41(0,"app-measurements-image",24),t.bIt("click",function(){t.eBV(l);const M=t.XpG(2);return t.Njj(M.onClickImage(M.imagesThumbnail.length))}),t.k0s()}if(2&v){const l=t.XpG(2);t.Y8G("product",l.product)("showMeasures",!1)("className",l.currentImageIndex===l.imagesThumbnail.length?"selected":"")}}function W(v,R){if(1&v&&(t.j41(0,"div",20),t.DNE(1,q,1,8,"ui-image",21)(2,D,1,3,"app-measurements-image",22),t.k0s()),2&v){const l=t.XpG();t.R7$(),t.Y8G("ngForOf",l.imagesThumbnail),t.R7$(),t.Y8G("ngIf",l.showMeasurements)}}function tt(v,R){1&v&&t.nrm(0,"div",26),2&v&&t.xc7("width",78,"px")("height",104,"px")}function rt(v,R){1&v&&(t.j41(0,"div",20),t.DNE(1,tt,1,4,"div",25),t.k0s()),2&v&&(t.R7$(),t.Y8G("ngForOf",t.lJ4(1,X).constructor(3)))}function V(v,R){if(1&v&&(t.j41(0,"div",8),t.nrm(1,"app-image",27),t.k0s()),2&v){const l=t.XpG();t.R7$(),t.Y8G("s3Bucket",l.s3Bucket)("s3Key",l.imageToShow)("imageSize",l.mainImageSize)("skipLazyLoad",!0)("skipLowResolution",l.skipLowResolution)}}function ct(v,R){1&v&&(t.j41(0,"div",8)(1,"figure"),t.nrm(2,"div",28),t.k0s()()),2&v&&(t.R7$(2),t.xc7("height",661,"px"))}let lt=(()=>{class v{constructor(l,x,M,k){this.platformId=l,this.dialog=x,this.layoutService=M,this.trackService=k,this.DEFAULT_OPTIONS={keyboard:!1,rewind:!0,perPage:1,autoHeight:!0,gap:"0.5rem",start:0,pagination:!0,arrows:!1},this.ProductCondition=h.bV,this.currentImageIndex=0,this.indexesOfViewedImages=[],this.loadedZoomImages=new Set,this.thumbnailImageSize=c.A3.S,this.mainImageSize=c.A3.XXL,this.splideImageSize=c.A3.L,this.condition="",this.showPlaceholders=!1,this.imagesThumbnail=[],this.images=[],this.skipLowResolution=!1,this.s3Bucket="",this.productC
1onditionI18n=C.h,this.inServer=(0,g.Vy)(this.platformId)}showZoomableImage(l){this.dialog.open(w.j,{data:{image:l.key,s3Bucket:l.bucket}}).addPanelClass("custom-dialog-container")}openZoomableModalForCurrentImage(){this.showZoomableImage({key:this.images[this.currentImageIndex],bucket:this.s3Bucket})}handleMultipleTouch(l){l.touches.length>1&&this.openZoomableModalForCurrentImage()}ngOnInit(){this.imageToShow=this.images[0],this.currentImageIndex=0}ngOnChanges(l){l.images&&(this.imageToShow=this.images[0],this.currentImageIndex=0,this.onFirstImageViewed()),this.showMeasurements=m.w.shouldShowMeasurement(this?.product),this.showMeasurements&&this.images.push("measurement-image"),l.product&&(this.aiGeneratedImageAssets=this.product.Assets.filter(x=>x.photoClass===b.q.Ai))}isAiGeneratedImageIndex(l){return l<this.aiGeneratedImageAssets.length}hasHiddenAssetForIndex(l){return void 0!==this.product.HiddenAssets?.[l]}onAiImageOriginalViewerClick(){if(this.currentImageIndex>=this.aiGeneratedImageAssets.length)return;const l=this.product.HiddenAssets[this.currentImageIndex];this.showZoomableImage({key:l.s3Key,bucket:l.s3Bucket})}onClickImage(l){this.imageToShow=this.images[l],this.currentImageIndex=l}zoomIn(l){let x,M;const k=l.currentTarget;x=l.offsetX?l.offsetX:l.touches?l.touches[0]?.pageX:void 0,M=l.offsetY?l.offsetY:l.touches?l.touches[0]?.pageY:void 0,k.style.backgroundPosition=`${x/k.offsetWidth*100}% ${M/k.offsetHeight*100}%`}generateImageUrl(l){return(0,S.wV)({bucket:this.s3Bucket||P.c.images.bucket,key:l,edits:{resize:{height:this.mainImageSize,fit:"cover"},webp:{quality:80},toFormat:"webp"}})}getImageUrl(){return this.generateImageUrl(this.imageToShow)}onImageMoved(l){const x=l[0];this.currentImageIndex=x,this.imageToShow=this.images[x],this.handleImageViewedEvent(x)}handleImageViewedEvent(l){this.indexesOfViewedImages.includes(l)||(this.indexesOfViewedImages.push(l),this.trackService.pushEvent(s.B.ViewPDPImage,{imageViewed:l+1,imageTotal:this.images.length}))}onFirstImageViewed(){this.images.length>0&&this.handleImageViewedEvent(0)}shouldLoadZoomImage(l){return this.loadedZoomImages.has(l)}getImageUrlForIndex(l){return this.shouldLoadZoomImage(l)?this.generateImageUrl(this.images[l]):""}onZoomHover(l){this.loadedZoomImages.has(l)||this.loadedZoomImages.add(l)}static{this.\u0275fac=function(x){return new(x||v)(t.rXU(t.Agw),t.rXU(F.bZ),t.rXU(G.Y),t.rXU(j.x))}}static{this.\u0275cmp=t.VBU({type:v,selectors:[["app-gallery-images"]],inputs:{condition:"condition",showPlaceholders:"showPlaceholders",imagesThumbnail:"imagesThumbnail",images:"images",skipLowResolution:"skipLowResolution",product:"product",s3Bucket:"s3Bucket"},standalone:!0,features:[t.OA$,t.aNF],decls:7,vars:5,consts:[[1,"gallery-product"],[3,"selectedSlideIndex","options","selectedSlideIndexChange","moved",4,"ngIf"],[1,"img-thumbnails"],["class","product-small-img",4,"ngIf"],["class","img-container",4,"ngIf"],[3,"selectedSlideIndexChange","moved","selectedSlideIndex","options"],[4,"ngFor","ngForOf"],["class","measurements-container",4,"ngIf"],[1,"img-container"],[1,"zoom","desktop",3,"mouseenter","mousemove"],[3,"s3Key","imageSize","skipLazyLoad","skipLowResolution","s3Bucket"],[3,"disabled","clicked",4,"ngIf"],[1,"app-image-mobile-container"],[1,"mobile",3,"touchstart","click","s3Bucket","s3Key","imageSize","skipLazyLoad","skipLowResolution"],[1,"c-condition"],[4,"ngIf"],[3,"clicked","disabled"],["size","medium",3,"type"],[1,"measurements-container"],["width","100%","height","100%",3,"product"],[1,"product-small-img"],["class","small","type","cdn","loading","lazy","objectFit","cover",3,"src","width","height","bucketName","useProgressiveLoading","showShimmerAnimation","selected","click",4,"ngFor","ngForOf"],["height","layoutService.isSmallScreen ? '100px' : '3rem'","width","layoutService.isSmallScreen ? '75px' : '3rem'",3,"product","showMeasures","className","click",4,"ngIf"],["type","cdn","loading","lazy","objectFit","cover",1,"small",3,"click","src","width","height","bucketName","useProgressiveLoading","showShimmerAnimation"],["height","layoutService.isSmallScreen ? '100px' : '3rem'","width","layoutService.isSmallScreen ? '75px' : '3rem'",3,"click","product","showMeasures","className"],["class","ph-picture l-margin-extra-small",3,"width","height",4,"ngFor","ngForOf"],[1,"ph-picture","l-margin-extra-small"],[3,"s3Bucket","s3Key","imageSize","skipLazyLoad","skipLowResolution"],[1,"ph-picture"]],template:function(x,M){1&x&&(t.j41(0,"div",0),t.DNE(1,U,2,3,"app-splide",1),t.j41(2,"div",2),t.DNE(3,W,3,2,"div",3)(4,rt,2,2,"div",3),t.k0s(),t.DNE(5,V,2,5,"div",4)(6,ct,3,2,"div",4),t.k0s()),2&x&&(t.R
17$(),t.Y8G("ngIf",M.images.length>=1&&!M.inServer),t.R7$(2),t.Y8G("ngIf",M.imagesThumbnail.length>1),t.R7$(),t.Y8G("ngIf",M.showPlaceholders&&0===M.images.length),t.R7$(),t.Y8G("ngIf",M.inServer),t.R7$(),t.Y8G("ngIf",0===M.images.length&&M.showPlaceholders&&!M.inServer))},dependencies:[g.MD,g.Sq,g.bT,y.R,p.G,f.h,_.P,I.W,m.w,u.zR,d.Kj],styles:[".ui-width-w-120[_ngcontent-%COMP%]{width:7.5rem}.ui-min-width-w-120[_ngcontent-%COMP%]{min-width:7.5rem}.ui-max-width-w-120[_ngcontent-%COMP%]{max-width:7.5rem}.ui-width-w-160[_ngcontent-%COMP%]{width:10rem}.ui-min-width-w-160[_ngcontent-%COMP%]{min-width:10rem}.ui-max-width-w-160[_ngcontent-%COMP%]{max-width:10rem}.ui-width-w-200[_ngcontent-%COMP%]{width:12.5rem}.ui-min-width-w-200[_ngcontent-%COMP%]{min-width:12.5rem}.ui-max-width-w-200[_ngcontent-%COMP%]{max-width:12.5rem}.ui-width-w-240[_ngcontent-%COMP%]{width:15rem}.ui-min-width-w-240[_ngcontent-%COMP%]{min-width:15rem}.ui-max-width-w-240[_ngcontent-%COMP%]{max-width:15rem}.ui-width-w-280[_ngcontent-%COMP%]{width:17.5rem}.ui-min-width-w-280[_ngcontent-%COMP%]{min-width:17.5rem}.ui-max-width-w-280[_ngcontent-%COMP%]{max-width:17.5rem}.ui-width-w-320[_ngcontent-%COMP%]{width:20rem}.ui-min-width-w-320[_ngcontent-%COMP%]{min-width:20rem}.ui-max-width-w-320[_ngcontent-%COMP%]{max-width:20rem}.ui-width-w-400[_ngcontent-%COMP%]{width:25rem}.ui-min-width-w-400[_ngcontent-%COMP%]{min-width:25rem}.ui-max-width-w-400[_ngcontent-%COMP%]{max-width:25rem}.ui-width-w-480[_ngcontent-%COMP%]{width:30rem}.ui-min-width-w-480[_ngcontent-%COMP%]{min-width:30rem}.ui-max-width-w-480[_ngcontent-%COMP%]{max-width:30rem}[_ngcontent-%COMP%]:root{--ui-gutter-none: 0;--ui-gutter-small: 1rem;--ui-gutter-medium: 1.5rem;--ui-gutter-large: 2.5rem;--ui-padding-none: 0;--ui-padding-small: 1rem;--ui-padding-medium: 1.5rem;--ui-padding-large: 2.5rem;--ui-frame-max-width-wide: 1500px;--ui-frame-max-width-normal: 1060px;--ui-frame-max-width-narrow: 960px}[_nghost-%COMP%]     .splide__arrows svg path{stroke:#360510;stroke-linecap:round;stroke-linejoin:round}[_nghost-%COMP%]     .splide__arrow{background:none}[_nghost-%COMP%]     .splide__arrow--next{right:-1.625em}[_nghost-%COMP%]     .splide__arrow--prev{left:-1.625em}[_nghost-%COMP%]     .splide__pagination{display:none}.gallery-product[_ngcontent-%COMP%]{display:flex;flex-direction:row-reverse;min-height:420px}figure.zoom[_ngcontent-%COMP%]{margin-bottom:0;background-position:55% 55%;background-repeat:no-repeat;position:relative;max-width:-moz-fit-content;max-width:fit-content;overflow:hidden;cursor:zoom-in}figure.zoom[_ngcontent-%COMP%]   app-image[_ngcontent-%COMP%]:hover{opacity:0}figure.zoom[_ngcontent-%COMP%]   app-image[_ngcontent-%COMP%]{transition:opacity .5s;display:flex;justify-content:center}.img-thumbnails[_ngcontent-%COMP%]{padding-right:8px;order:0}.img-container[_ngcontent-%COMP%]{width:100%;overflow:hidden;order:1}.measurements-container[_ngcontent-%COMP%]{height:100%;width:100%}.product-small-img[_ngcontent-%COMP%]{float:left;display:flex;align-items:flex-start;flex-direction:column}.product-small-img[_ngcontent-%COMP%]   ui-image[_ngcontent-%COMP%], .product-small-img[_ngcontent-%COMP%]   app-measurements-image[_ngcontent-%COMP%]{display:flex;justify-content:center;margin:.5rem .25rem;margin-top:0;width:80px;height:105px;overflow:hidden;border:1px solid transparent;margin-bottom:8px;
1cursor:pointer;opacity:.6;align-items:center;flex-direction:column}.product-small-img[_ngcontent-%COMP%]   ui-image[_ngcontent-%COMP%]:hover, .product-small-img[_ngcontent-%COMP%]   app-measurements-image[_ngcontent-%COMP%]:hover{opacity:1}.product-small-img[_ngcontent-%COMP%]   ui-image.selected[_ngcontent-%COMP%], .product-small-img[_ngcontent-%COMP%]   app-measurements-image.selected[_ngcontent-%COMP%]{opacity:1;border-radius:3px}.mobile[_ngcontent-%COMP%]{display:none}.desktop[_ngcontent-%COMP%]{display:block}@media (max-width: 960px){.mobile[_ngcontent-%COMP%]{display:block}.desktop[_ngcontent-%COMP%]{display:none}.gallery-product[_ngcontent-%COMP%]{justify-content:center;flex-direction:column;z-index:0}.img-container[_ngcontent-%COMP%]{width:95%;margin:0 auto;order:0;display:flex;justify-content:center}figure.zoom[_ngcontent-%COMP%]   app-image[_ngcontent-%COMP%]{flex-grow:1}figure.zoom[_ngcontent-%COMP%]   app-image[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{object-fit:cover;width:100vw;height:115vw}.img-thumbnails[_ngcontent-%COMP%]{order:1;padding-right:0;padding-top:8px;display:flex;justify-content:center}.img-thumbnails[_ngcontent-%COMP%]   ui-image[_ngcontent-%COMP%], .img-thumbnails[_ngcontent-%COMP%]   app-measurements-image[_ngcontent-%COMP%]{width:3rem!important;height:3rem!important}.product-small-img[_ngcontent-%COMP%]{flex-direction:row!important}}@media (min-width: 768px){  .zoomable-gallery-image-modal .img-container img{height:600px!important}}.c-condition[_ngcontent-%COMP%]{position:absolute;top:10px;right:8px;z-index:1}.app-image-mobile-container[_ngcontent-%COMP%]{position:relative}  .custom-dialog-container mat-dialog-container{padding:0;margin-top:-7%}"],changeDetection:0})}}return v})()},33192:(A,E,r)=>{r.d(E,{j:()=>s});var g=r(54438),t=r(34006),d=r(44046),u=r(60177);const _=["*"],p=(h,I,f,C,P)=>({transform:h,"z-index":I,transition:f,position:C,"transform-origin":P}),y=h=>({zooming:h});let b=(()=>{class h{constructor(){this.zIndex=Number.MAX_SAFE_INTEGER,this.maxScale=Number.MAX_SAFE_INTEGER,this.releaseAnimationTimeout=500,this.style={},this.className="",this.touchStartEmitter=new g.bkB,this.touchMoveEmitter=new g.bkB,this.touchEndEmitter=new g.bkB,this.releaseAnimationStart=new g.bkB,this.releaseAnimationEndEmitter=new g.bkB,this.initialDistance=0,this.initialAbsolutePositionX=0,this.initialAbsolutePositionY=0,this.zoom=0,this.moveLeft=0,this.moveTop=0,this.anchorLeftPercentage=50,this.anchorTopPercentage=50,this.isMoving=!1,this.releaseAnimationDone=!0}touchStart(f){f&&f.touches&&2===f.touches.length&&(this.isMoving=!0,this.releaseAnimationDone=!1,this.twoFingerTouchStart(f),this.touchStartEmitter.emit())}touchMove(f){f&&f.touches&&2===f.touches.length&&(this.twoFingerTouchMove(f),this.touchMoveEmitter.emit())}touchCancel(){this.twoFingerTouchStop()}touchEnd(){this.twoFingerTouchStop()}twoFingerTouchStop(){this.isMoving=!1,this.initialDistance=0,this.initialAbsolutePositionX=0,this.initialAbsolutePositionY=0,this.zoom=0,this.moveLeft=0,this.moveTop=0,this.anchorLeftPercentage=50,this.anchorTopPercentage=50,this.touchEndEmitter.emit(),this.releaseAnimationStart.emit(),clearTimeout(this.timeout),this.timeout=setTimeout(()=>{this.releaseAnimationDone=!0,this.releaseAnimationEndEmitter.emit()},this.releaseAnimationTimeout)}twoFingerTouchMove(f){f.preventDefault();const{distance:C,absolutePosition:P}=this.getTouchData(f),c=Math.max(0,C-this.initialDistance);this.zoom=c,this.moveLeft=P.x-this.initialAbsolutePositionX,this.moveTop=P.y-this.initialAbsolutePositionY,c<=0&&(this.initialDistance=C)}getTransformOrigin(){return`${this.anchorLeftPercentage}% ${this.anchorTopPercentage}%`}getTransform(){const f=Math.min(this.maxScale,1+this.zoom/100);return`translate(${this.moveLeft}px, ${this.moveTop}px) scale(${f})`}getTransition(){return this.isMoving?void 0:`\n        ${this.releaseAnimationTimeout}ms transform,\n        ${this.releaseAnimationTimeout}ms transform-origin,\n        ${this.releaseAnimationTimeout}ms z-index,\n        ${this.releaseAnimationTimeout}ms position\n      `}getTouchData(f){const C=f.target&&f.target.getBoundingClientRect(),P=f.touches&&f.touches[0],c=f.touches&&f.touches[1],S=P.clientX,m=P.clientY,w=c.clientX,F=c.clientY,G=Math.round(Math.sqrt((w-S)**2+(F-m)**2)),j_x=Math.round((S-C.left+(w-C.left))/2),j_y=Math.round((m-C.top+(F-C.top))/2);return{distance:G,absolutePosition:{x:Math.round((S+w)/2),y:Math.round((m+F)/2)},anchor:{left:Math.round(j_x/C.width*100),top:Math.round(j_y/C.height*100)}}}twoFingerTouchStart(f){f.preventDefault();const{distance:C,absolutePosition:P,anchor:c}=this.getTouchData(f);this.initialDistance=C,this.initialAbsolutePositionX=P&&P.x||0,this.initialAbsolutePositionY=P&&P.y||0,this.anchorTopPercentage=c.top,this.anchorLeftPercentage=c.left}static{this.\u0275fac=function(C){return new(C||h)}}static{this.\u0275cmp=g.VBU({type:h,selectors:[["app-zoomable"]],inputs:{zIndex:"zIndex",maxScale:"maxScale",releaseAnimationTimeout:"releaseAnimationTimeout",style:"style",className:"className"},outputs:{touchStartEmitter:"touchStartEmitter",touchMoveEmitter:"touchMoveEmitter",touchEndEmitter:"touchEndEmitter",releaseAnimationStart:"releaseAnimationStart",releaseAnimationEndEmitter:"releaseAnimationEndEmitter"},standalone:!0,features:[g.aNF],ngContentSelectors:_,decls:2,vars:14,consts:[[3,"touchstart","touchmove","touchcancel","touchend","ngStyle","ngClass"]],template:function(C,P){1&C&&(g.NAR(),g.j41(0,"div",0),g.bIt("touchstart",function(S){return P.touchStart(S)})("touchmove",function(S){return P.touchMove(S)})("touchcancel",function(){return P.touchCancel()})("touchend",function(){return P.touchEnd()}),g.SdG(1),g.k0s()),2&C&&(g.Aen(P.style),g.HbH(P.className),g.Y8G("ngStyle",g.s1E(6,p,P.getTransform(),(P.isMoving||!P.releaseAnimationDone)&&P.zIndex,P.getTransition(),P.isMoving||!P.releaseAnimationDone?"relative":void 0,P.getTransformOrigin()))("ngClass",g.eq3(12,y,P.isMoving)))},dependencies:[u.MD,u.YU,u.B3],encapsulation:2})}}return h})(),s=(()=>{class h{constructor(){this.imageWidth=450,this.imageHeight=600,this.data=(0,g.WQX)(t.Vh)}static{this.\u0275fac=function(C){return new(C||h)}}static{this.\u0275cmp=g.VBU({type:h,selectors:[["app-zoomable-gallery-image-modal"]],standalone:!0,features:[g.aNF],decls:2,vars:7,consts:[["type","cdn","objectFit","fill",3,"src","width","height","priority","bucketName"]],template:function(C,P){1&C&&(g.j41(0,"app-zoomable"),g.nrm(1,"ui-image",0),g.k0s()),2&C&&(g.HbH("zoomable-gallery-image-modal"),g.R7$(),g.Y8G("src",P.data.image)("width",P.imageWidth)("height",P.imageHeight)("priority",!0)("bucketN
1ame",P.data.s3Bucket))},dependencies:[d.P,b],encapsulation:2})}}return h})()},8693:(A,E,r)=>{r.d(E,{w:()=>P});var g=r(10467),t=r(60177),d=r(79323),u=r(91862),_=function(c){return c.Blazers="blazers",c.Bodies="bodies",c.Boots="boots",c.Cardigans="cardigans",c.Coats="coats",c.Heels="heels",c.Jackets="jackets",c.Jumpsuits="jumpsuits",c.LongSleeveTops="long_sleeve_tops",c.MaxiDresses="maxi_dresses",c.MaxiSkirts="maxi_skirts",c.Sandals="sandals",c.TankTops="tanktops",c.Shirts="shirts",c.CropTops="croptops",c.Dresses="dresses",c.Footwear="footwear",c.Jeans="jeans",c.Skirts="skirts",c.Shorts="shorts",c.Superior="superior",c.Sweaters="sweaters",c.NoImage="no-image",c.Swimsuit="swimsuit",c.BikiniTop="bikini_top",c.BikiniBottom="bikini_bottom",c.PijamaTop="pijama_top",c.PijamaBottom="pijama_bottom",c.PijamaOnesie="pijama_onesie",c}(_||{});class p{constructor(S,m){this.x=S+"%",this.y=m+"%"}}const y={[_.Blazers]:{[u.r.ShouldersWidth]:new p(51.5,24),[u.r.BustWidth]:new p(51.5,49.5),[u.r.Length]:new p(15,50)},[_.Bodies]:{[u.r.BustWidth]:new p(51.5,44.5),[u.r.Length]:new p(22,51)},[_.Boots]:{[u.r.HeelHeight]:new p(19,64),[u.r.PlantLength]:new p(61,71)},[_.Cardigans]:{[u.r.ShouldersWidth]:new p(51.5,26.5),[u.r.BustWidth]:new p(51.5,53.5),[u.r.Length]:new p(14.5,54)},[_.Coats]:{[u.r.ShouldersWidth]:new p(54.5,27.5),[u.r.BustWidth]:new p(54.5,52),[u.r.Length]:new p(18,54)},[_.CropTops]:{[u.r.BustWidth]:new p(50,52.5),[u.r.Length]:new p(18,48)},[_.Footwear]:{[u.r.HeelHeight]:new p(15,60),[u.r.PlantLength]:new p(50,65.5)},[_.Heels]:{[u.r.HeelHeight]:new p(18,56),[u.r.PlantLength]:new p(66,71.1)},[_.Jackets]:{[u.r.ShouldersWidth]:new p(54.5,28),[u.r.BustWidth]:new p(54.5,52.25),[u.r.Length]:new p(18.5,54)},[_.Jeans]:{[u.r.WaistWidth]:new p(52,23),[u.r.PantRiseLength]:new p(55.5,34),[u.r.HipsWidth]:new p(43,40),[u.r.Length]:new p(23,49)},[_.Jumpsuits]:{[u.r.ShouldersWidth]:new p(55,24),[u.r.BustWidth]:new p(55,42.5),[u.r.HipsWidth]:new p(55,59),[u.r.Length]:new p(28.5,54)},[_.LongSleeveTops]:{[u.r.BustWidth]:new p(53,47),[u.r.Length]:new p(16,50)},[_.MaxiDresses]:{[u.r.ShouldersWidth]:new p(53.5,24),[u.r.BustWidth]:new p(53.5,34.5),[u.r.Length]:new p(29,50)},[_.MaxiSkirts]:{[u.r.WaistWidth]:new p(52,25),[u.r.HipsWidth]:new p(52,41.5),[u.r.Length]:new p(20,50)},[_.Sandals]:{[u.r.HeelHeight]:new p(14,59),[u.r.PlantLength]:new p(50,67.1)},[_.Shirts]:{[u.r.BustWidth]:new p(53,54.5),[u.r.Length]:new p(16.5,60)},[_.Dresses]:{[u.r.ShouldersWidth]:new p(51.5,24),[u.r.BustWidth]:new p(51.5,36.5),[u.r.Length]:new p(22.5,50)},[_.Skirts]:{[u.r.WaistWidth]:new p(52,25),[u.r.HipsWidth]:new p(52,43.5),[u.r.Length]:new p(18.5,50)},[_.Shorts]:{[u.r.WaistWidth]:new p(51,28.75),[u.r.PantRiseLength]:new p(55,41),[u.r.HipsWidth]:new p(43,48.5),[u.r.Length]:new p(16,44)},[_.Superior]:{[u.r.ShouldersWidth]:new p(54.75,27.6),[u.r.BustWidth]:new p(54.75,52),[u.r.Length]:new p(19,53)},[_.Sweaters]:{[u.r.ShouldersWidth]:new p(51.5,27.65),[u.r.BustWidth]:new p(51.5,52.25),[u.r.Length]:new p(16,54)},[_.TankTops]:{[u.r.BustWidth]:new p(52.5,58.5),[u.r.Length]:new p(19,45)},[_.Swimsuit]:{[u.r.BustWidth]:new p(50,42),[u.r.WaistWidth]:new p(50,50),[u.r.HipsWidth]:new p(50,62)},[_.BikiniTop]:{[u.r.BustWidth]:new p(50,58)},[_.BikiniBottom]:{[u.r.HipsWidth]:new p(50,44)},[_.PijamaTop]:{[u.r.ShouldersWidth]:new p(50,25.5),[u.r.BustWidth]:new p(50,55)},[_.PijamaBottom]:{[u.r.PantRiseLength]:new p(58,36),[u.r.HipsWidth]:new p(40,41)},[_.PijamaOnesie]:{[u.r.ShouldersWidth]:new p(54,21.5),[u.r.BustWidth]:new p(54,36),[u.r.PantRiseLength]:new p(58,49),[u.r.HipsWidth]:new p(48,52.5),[u.r.Length]:new p(25,51)}};var b=r(54438),s=r(97174),h=r(19520);function I(c,S){if(1&c&&(b.qSk(),b.j41(0,"text",7),b.EFF(1),b.k0s()),2&c){const m=S.$implicit,w=b.XpG(2);b.BMQ("fill",w.measurementColor)("id",m.name)("x",m.coordinate.x)("y",m.coordinate.y),b.R7$(),b.SpI(" ",m.value," ")}}function f(c,S){if(1&c&&(b.qSk(),b.j41(0,"g"),b.DNE(1,I,2,5,"text",6),b.k0s()),2&c){const m=b.XpG();b.R7$(),b.Y8G("ngForOf",m.displayableMeasurements)}}var C=function(c){return c[c.WaistWidth=11]="WaistWidth",c[c.HipsWidth=147]="HipsWidth",c[c.BustWidth=7]="BustWidth",c[c.Length=3]="Length",c}(C||{});let P=(()=>{class c{get viewBox(){return`0 0 ${this.width} ${this.height}`}constructor(m,w){this.attributeCacheService=m,this.translocoService=w,this.showMeasures=!0,this.width="462px",this.height="618px",this.measurementsMap=new Map,this.attributes=[],this.displayableMeasurements=[],this.measurementColor="#f8713d"}ngOnInit(){var m=this;return(0,g.A)(function*(){m.buildImageAndMeasurements(),yield m.buildMeasurementsMap(),m.buildDisplayableMeasurements()})()}static shouldShowMeasurement(m){if(!m)return!1;const w=c.getProductCategory(m),F=c.getAssociatedMeasurementCategory(m);return!(!w||!F)}static getProductCategory(m){return m?.Tags.find(w=>"Category"===w.TagType?.name)}static getProductSubcategory(m){return m?.Tags.find(w=>"Subcategory"===w.TagType?.name)}static getDressesLength(m){return m?.Tags.find(w=>"dresses_length"===w.TagType?.name)}static getSkirtsLength(m){return m?.Tags.find(w=>"skirts_length"===w.TagType?.name)}static getTopsSubcategory(m){return m?.Tags.find(w=>"tops_subcategory"===w.TagType?.name)}static getSleeveType(m){return m?.Tags.find(w=>"tops_sleeve_type"===w.TagType?.name)}static getShoesSubcategory(m){return m?.Tags.find(w=>"footwear_subcategory"===w.TagType?.name)}static getAssociatedMeasurementCategory(m){const w=c.getProductCategory(m),F=c.getProductSubcategory(m),G=c.getDressesLength(m),j=c.getSkirtsLength(m),X=c.getTopsSubcategory(m),N=c.getSleeveType(m),K=c.getShoesSubcategory(m),$=w?.value.toLowerCase(),Z=F?.value.toLowerCase(),z=w?.garmentClass?.toLowerCase(),H=G?.value.toLowerCase(),J=j?.value.toLowerCase(),L=X?.value.toLowerCase(),Q=N?.value.toLocaleLowerCase(),U=K?.value.toLowerCase(),q=Object.values(_);function D(W){return q.find(tt=>tt===W)}if("pants"===$)return D("jeans");if("dresses"===$&&"maxi"===H)return D("maxi_dresses");if("skirts"===$&&"maxi"===J)return D("maxi_skirts");if("tops"===$){if("crop tops"===L)return D("croptops");if("tank tops"===L)return D("tanktops");if("shirts"===L||"blouses"===L)return D("shirts");if("t-shirts"===L&&"long sleeves"===Q)return D("long_sleeve_tops")}if("footwear"===$){if("sandals"===U)return D("sandals");if("heels"===U)return D("heels");if("boots"===U||"booties"===U)return D("boots")}if("swimwear"===$)if(m.customAttributes[C.WaistWidth]){if(m.customAttributes[C.WaistWidth])return D("swimsuit")}else{if(m.customAttributes[C.BustWidth])return D("bikini_top");if(m.customAttributes[C.HipsWidth])return D("bikini_bottom")}if("pijamas"===$)if(m.customAttributes[C.Length]){if(m.customAttributes[C.Length])return D("pijama_onesie")}else{if(m.customAttributes[C.BustWidth])return D("pijama_top");if(m.customAttributes[C.HipsWidth])return D("pijama_bottom")}return D(Z)||D($)||D(z)}buildImageAndMeasurements(){const m=c.getAssociatedMeasurementCategory(this.product);this.measurementImage=`/assets/images/measurement-images/${m}.svg`,this.imageMeasurementCoordinates=y[m]}buildMeasurementsMap(){var m=this;return(0,g.A)(function*(){if(!m.imageMeasurementCoordinates)return;m.attributes=(yield m.attributeCacheService.cachedAttributes.listAsPromise())||[];const w=m.attributes.filter(F=>F.class===d.zh.Measurement);for(const F of w){const G=F.name.replace("(cms)","").trimEnd();m.measurementsMap.set(G,F._id),m.measurementsMap.set(F._id,G)}})()}buildDisplayableMeasurements(){if(!this.imageMeasurementCoordinates)return;const m=Object.entries(this.imageMeasurementCoordinates);for(const[w,F]of m){const G=this.measurementsMap.get(w),j=this.getAttributeValue(G);this.displayableMeasurements.push({name:w,value:Number(j)>1?j+" cm":this.translocoService.translate("details-description-list.not_measured"),coordinate:F})}}getAttributeName(m){return this.measurementsMap.get(Number(m))?.replace("(cms)","")}getAttributeValue(m){return this.product?.customAttributes[m]}static{this.\u0275fac=function(w){return new(w||c)(b.rXU(s.w),b.rXU(h.JO))}}static{this.\u0275cmp=b.VBU({type:c,selectors:[["app-measurements-image"]],inputs:{product:"product",showMeasures:"showMeasures",width:"width",height:"height"},standalone:!0,features:[b.aNF],decls:7,vars:5,consts:[["fill","white","xmlns","http://www.w3.org/2000/svg"],["id","text-background-color"],["flood-color","white"],["in","SourceGraphic"],["x","0","y","0","width","100%","height","100%"],[4,"ngIf"],["class","measurement-text","filter","url(#text-background-color)","dominant-baseline","middle","text-anchor","middle",4,"ngFor","ngForOf"],["filter","url(#text-background-color)","dominant-baseline","middle","text-anchor","middle",1,"measurement-text"]],template:function(w,F){1&w&&(b.qSk(),b.j41(0,"svg",0)(1,"def
1s")(2,"filter",1),b.nrm(3,"feFlood",2)(4,"feComposite",3),b.k0s()(),b.nrm(5,"image",4),b.DNE(6,f,2,1,"g",5),b.k0s()),2&w&&(b.BMQ("width",F.width)("height",F.height)("viewBox",F.viewBox),b.R7$(5),b.BMQ("href",F.measurementImage),b.R7$(),b.Y8G("ngIf",F.showMeasures))},dependencies:[t.MD,t.Sq,t.bT],styles:["svg[_ngcontent-%COMP%]   text[_ngcontent-%COMP%]{color:#000;font-family:Outfit;font-style:normal;font-weight:600;font-size:1.5em;line-height:1.5em}svg[_ngcontent-%COMP%]   text.measurement-text[_ngcontent-%COMP%]{font-size:1em;text-shadow:0 0 2px white}"]})}}return c})()},93261:(A,E,r)=>{r.d(E,{j:()=>f});var g=r(10467),t=r(60177),d=r(54438),u=r(62557),_=r(19520),p=r(94033),y=r(34674),b=r(1888);const s=C=>({brand:C}),h=C=>({name:C});function I(C,P){if(1&C&&(d.j41(0,"div",3)(1,"button",4),d.EFF(2),d.nI1(3,"transloco"),d.k0s()()),2&C){const c=d.XpG();d.R7$(),d.Y8G("routerLink","/store/catalog/"+c.brandName),d.R7$(),d.JRh(d.i5U(3,2,"product.go_to_brand",d.eq3(5,h,c.brandName)))}}let f=(()=>{class C{constructor(c,S,m,w){this.layoutService=c,this.productService=S,this.changeDetector=m,this.platformId=w,this.products=[],this.searchParams={},this.sliderOptions={perPage:4,pagination:!1},this.pageSize=21,this.listType="more-of-this-brand",this.layoutService.isSmallScreen&&(this.sliderOptions.perPage=2)}ngOnInit(){var c=this;return(0,g.A)(function*(){if((0,t.UE)(c.platformId)){c.searchParams={sort:"rank:desc",brand:c.brandName,page:1,pageSize:c.pageSize};try{const S=yield c.productService.search(c.searchParams);c.products=S.data,c.changeDetector.markForCheck(),c.products=c.products.filter(m=>m.id!==c.productId)}catch{}}})()}static{this.\u0275fac=function(S){return new(S||C)(d.rXU(y.Y),d.rXU(b.b),d.rXU(d.gRc),d.rXU(d.Agw))}}static{this.\u0275cmp=d.VBU({type:C,selectors:[["app-more-products-of-this-brand"]],inputs:{productId:"productId",brandName:"brandName"},standalone:!0,features:[d.aNF],decls:4,vars:10,consts:[[1,"div","mt-4"],[3,"products","title","sliderOptions","listType"],["class","d-flex mt-4 px-4 w-100 align-items-center justify-content-center",4,"ngIf"],[1,"d-flex","mt-4","px-4","w-100","align-items-center","justify-content-center"],[1,"button","primary","large",3,"routerLink"]],template:function(S,m){1&S&&(d.nrm(0,"div",0)(1,"app-products-suggestion",1),d.nI1(2,"transloco"),d.DNE(3,I,4,7,"div",2)),2&S&&(d.R7$(),d.Y8G("products",m.products)("title",d.i5U(2,5,"product.more_from_brand_title",d.eq3(8,s,m.brandName)))("sliderOptions",m.sliderOptions)("listType",m.listType),d.R7$(2),d.Y8G("ngIf",!m.layoutService.isSmallScreen&&m.products.length>=3||m.layoutService.isSmallScreen&&m.products.length>=2))},dependencies:[t.MD,t.bT,u.iI,u.Wk,p.e,_.Q8,_.Kj],encapsulation:2,changeDetection:0})}}return C})()},11493:(A,E,r)=>{r.d(E,{b:()=>I});var g=r(10467),t=r(60177),d=r(54438),u=r(62557),_=r(19520),p=r(94033),y=r(34674),b=r(1888);const s=f=>({provider_id:f});function h(f,C){if(1&f&&(d.j41(0,"div",3)(1,"button",4),d.EFF(2),d.nI1(3,"transloco"),d.k0s()()),2&f){const P=d.XpG();d.R7$(),d.Y8G("routerLink","/store/catalog/")("queryParams",d.eq3(5,s,P.providerId)),d.R7$(),d.JRh(d.bMT(3,3,"product.view_more_from_seller"))}}let I=(()=>{class f{constructor(P,c,S,m){this.layoutService=P,this.productService=c,this.changeDetector=S,this.platformId=m,this.products=[],this.searchParams={},this.sliderOptions={perPage:4,pagination:!1},this.pageSize=21,this.listType="more-of-this-provider",this.layoutService.isSmallScreen&&(this.sliderOptions.perPage=2)}ngOnInit(){var P=this;return(0,g.A)(function*(){if((0,t.UE)(P.platformId)){P.searchParams={sort:"rank:desc",provider_id:P.providerId,page:1,pageSize:P.pageSize};try{const c=yield P.productService.search(P.searchParams);P.products=c.data,P.changeDetector.markForCheck(),P.products=P.products.filter(S=>S.id!==P.productId)}catch{}}})()}static{this.\u0275fac=function(c){return new(c||f)(d.rXU(y.Y),d.rXU(b.b),d.rXU(d.gRc),d.rXU(d.Agw))}}static{this.\u0275cmp=d.VBU({type:f,selectors:[["app-more-products-of-this-provider"]],inputs:{productId:"productId",providerId:"providerId"},standalone:!0,features:[d.aNF],decls:4,vars:7,consts:[[1,"div","mt-4"],[3,"products","title","sliderOptions","listType"],["class","d-flex mt-4 px-4 w-100 align-items-center justify-content-center",4,"ngIf"],[1,"d-flex","mt-4","px-4","w-100","align-items-center","justify-content-center"],[1,"button","primary","large",3,"routerLink","queryParams"]],template:function(c,S){1&c&&(d.nrm(0,"div",0)(1,"app-products-suggestion",1),d.nI1(2,"transloco"),d.DNE(3,h,4,7,"div",2)),2&c&&(d.R7$(),d.Y8G("products",S.products)("title",d.bMT(2,5,"product.more_from_this_seller_title"))("sliderOptions",S.sliderOptions)("listType",S.listType),d.R7$(2),d.Y8G("ngIf",!S.layoutService.isSmallScreen&&S.products.length>=3||S.layoutService.isSmallScreen&&S.products.length>=2))},dependencies:[t.MD,t.bT,u.iI,u.Wk,p.e,_.Q8,_.Kj],encapsulation:2,changeDetection:0})}}return f})()},53289:(A,E,r)=>{r.d(E,{W:()=>p});var g=r(60177),t=r(54438),d=r(66010),u=r(19520);function _(y,b){if(1&y){const s=t.RV6();t.qex(0),t.j41(1,"div",1)(2,"ui-chip-round-button",2),t.bIt("clicked",function(){t.eBV(s);const I=t.XpG();return t.Njj(I.onButtonClick())}),t.k0s()(),t.bVm()}if(2&y){const s=b.$implicit,h=t.XpG();t.R7$(2),t.Y8G("autoExpandWithAnimation",!0)("mainText",s("product_ai_original_viewer.main_text"))("secondaryText",h.disabled?void 0:s("product_ai_original_viewer.secondary_text"))("fadeAwayAfterExpand",h.disabled)}}let p=(()=>{class y{constructor(){this.disabled=!1,this.clicked=new t.bkB}
1onButtonClick(){this.disabled||this.clicked.emit()}static{this.\u0275fac=function(h){return new(h||y)}}static{this.\u0275cmp=t.VBU({type:y,selectors:[["app-product-ai-original-viewer"]],inputs:{disabled:"disabled"},outputs:{clicked:"clicked"},standalone:!0,features:[t.aNF],decls:1,vars:0,consts:[[4,"transloco"],[1,"product-ai-original-viewer-container"],["leadingIcon","sparks","backgroundColor","surface-muted","textColor","text-primary",1,"product-ai-original-viewer-button-override",3,"clicked","autoExpandWithAnimation","mainText","secondaryText","fadeAwayAfterExpand"]],template:function(h,I){1&h&&t.DNE(0,_,3,4,"ng-container",0)},dependencies:[g.MD,u.Q8,u.bA,d.G],styles:[".product-ai-original-viewer-container[_ngcontent-%COMP%]{position:absolute;bottom:16px;left:16px;z-index:10}"],changeDetection:0})}}return y})()},45467:(A,E,r)=>{r.d(E,{I:()=>s});var g=r(10467),t=r(60177),d=r(54438),u=r(42905),_=r(19520),p=r(94033),y=r(34674),b=r(1888);let s=(()=>{class h{constructor(f,C,P,c,S){this.layoutService=f,this.recentlyViewedProducts=C,this.productService=P,this.changeDetector=c,this.platformId=S,this.productIds=[],this.products=[],this.sliderOptions={perPage:4,pagination:!1},this.listType="recently-viewed",this.showAddToCart=!1,this.productIdsToHide=[],this.hideMostRecent=!0,this.layoutService.isSmallScreen&&(this.sliderOptions.perPage=2)}ngOnInit(){var f=this;return(0,g.A)(function*(){if(!(0,t.UE)(f.platformId))return;f.productIds=yield f.recentlyViewedProducts.getRecentlyViewedProducts();const C=yield f.productService.getRecentlyViewed(f.productIds);f.products=C.data,0!==f.products.length&&(f.products.sort((P,c)=>f.productIds.indexOf(P.id)-f.productIds.indexOf(c.id)),f.hideMostRecent&&f.products.pop(),f.products.reverse(),f.changeDetector.markForCheck())})()}static{this.\u0275fac=function(C){return new(C||h)(d.rXU(y.Y),d.rXU(u.R$),d.rXU(b.b),d.rXU(d.gRc),d.rXU(d.Agw))}}static{this.\u0275cmp=d.VBU({type:h,selectors:[["app-recently-viewed-products"]],inputs:{showAddToCart:"showAddToCart",cart:"cart",productIdsToHide:"productIdsToHide",hideMostRecent:"hideMostRecent"},standalone:!0,features:[d.aNF],decls:3,vars:9,consts:[[1,"div","mt-4"],[3,"products","title","sliderOptions","listType","showAddToCart","cart","productIdsToHide"]],template:function(C,P){1&C&&(d.nrm(0,"div",0)(1,"app-products-suggestion",1),d.nI1(2,"transloco")),2&C&&(d.R7$(),d.Y8G("products",P.products)("title",d.bMT(2,7,"product.recently_viewed_title"))("sliderOptions",P.sliderOptions)("listType",P.listType)("showAddToCart",P.showAddToCart)("cart",P.cart)("productIdsToHide",P.productIdsToHide))},dependencies:[t.MD,p.e,_.Q8,_.Kj],encapsulation:2,changeDetection:0})}}return h})()},56029:(A,E,r)=>{r.d(E,{o:()=>b});var g=r(10467),t=r(60177),d=r(54438),u=r(19520),_=r(94033),p=r(34674),y=r(1888);let b=(()=>{class s{constructor(I,f,C,P){this.layoutService=I,this.productService=f,this.changeDetector=C,this.platformId=P,this.sliderOptions={perPage:4,pagination:!1},this.products=[],this.listType="similar-pdp",this.layoutService.isSmallScreen&&(this.sliderOptions.perPage=2)}ngOnInit(){var I=this;return(0,g.A)(function*(){if(!(0,t.UE)(I.platformId))return;const f={page:1,pageSize:10};try{const C=yield I.productService.searchSimilar(I.productId,f);C.data&&C.data.length>0&&(I.products=C.data,I.changeDetector.markForCheck())}catch{}})()}static{this.\u0275fac=function(f){return new(f||s)(d.rXU(p.Y),d.rXU(y.b),d.rXU(d.gRc),d.rXU(d.Agw))}}static{this.\u0275cmp=d.VBU({type:s,selectors:[["app-similar-recommendation"]],inputs:{productId:"productId"},standalone:!0,features:[d.aNF],decls:3,vars:6,consts:[[1,"div","mt-4"],[3,"products","title","sliderOptions","listType"]],template:function(f,C){1&f&&(d.nrm(0,"div",0)(1,"app-products-suggestion",1),d.nI1(2,"transloco")),2&f&&(d.R7$(),d.Y8G("products",C.products)("title",d.bMT(2,4,"product.similar_products_title"))("sliderOptions",C.sliderOptions)("listType",C.listType))},dependencies:[t.MD,_.e,u.Q8,u.Kj],encapsulation:2,changeDetection:0})}}return s})()}}]);

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.