PageSourceSearch

https://www.fanniemay.com/475.ebc8914a7d794995.js

js fanniemay.com collected 2026-10-02 04:44:08 UTC 34,137 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkfmstorefront=self.webpackChunkfmstorefront||[]).push([[475],{475(Nt,E,a){a.d(E,{CustomCartDetailsComponent:()=>At});var u=a(5124),O=a(397),L=a(8629),j=a(9386),S=a(9694),g=a(7417),t=a(4704),C=a(4745),d=a(5327),_=a(6180),P=a(2034),G=a(4635),k=a(8080),w=a(6050),M=a(8328),F=a(5465),$=a(147),v=a(6597),X=a(4143),V=a(4276),R=a(659),p=a(9257),U=a(7791),z=a(2817),A=a(5956),Y=a(9633),h=a(720),N=a(6468),Q=a(4031);const x=e=>({cxRoute:"product",params:e});function D(e,n){if(1&e&&(t.j41(0,"span",24),t.EFF(1),t.k0s()),2&e){const i=t.XpG(4);t.R7$(),t.JRh(i.item.promotions[0].description)}}function B(e,n){if(1&e&&t.nVh(0,D,2,1,"span",24),2&e){const i=t.XpG(3);t.vxM(i.item.promotions[0].description?0:-1)}}function J(e,n){if(1&e){const i=t.RV6();t.j41(0,"div",12)(1,"a",25),t.nI1(2,"cxUrl"),t.bIt("click",function(){p.eBV(i);const o=t.XpG(3);return p.Njj(o.hidingContentPage())}),t.nrm(3,"p",26),t.k0s()()}if(2&e){const i=t.XpG(3);t.R7$(),t.Y8G("routerLink",t.bMT(2,2,t.eq3(4,x,i.item.product))),t.R7$(2),t.Y8G("innerHTML",null==i.item.product?null:i.item.product.name,t.npT)}}function H(e,n){if(1&e&&t.EFF(0),2&e){const i=t.XpG(6);t.SpI(" ",i.item.product.sizeTag," ")}}function Z(e,n){1&e&&t.EFF(0," \xa0\xb7\xa0 ")}function q(e,n){if(1&e&&t.EFF(0),2&e){const i=t.XpG(6);t.SpI(" ",i.item.product.flavourTag," ")}}function W(e,n){if(1&e&&(t.j41(0,"span",28),t.nVh(1,H,1,1),t.nVh(2,Z,1,0),t.nVh(3,q,1,1),t.k0s()),2&e){const i=t.XpG(5);t.R7$(),t.vxM(i.item.product.sizeTag?1:-1),t.R7$(),t.vxM(i.item.product.flavourTag&&i.item.product.sizeTag?2:-1),t.R7$(),t.vxM(i.item.product.flavourTag?3:-1)}}function K(e,n){if(1&e&&t.nVh(0,W,4,3,"span",28),2&e){const i=t.XpG(4);t.vxM(i.item.product.flavourTag||i.item.product.sizeTag?0:-1)}}function tt(e,n){if(1&e&&(t.j41(0,"div",13)(1,"a",27),t.nI1(2,"cxUrl"),t.nVh(3,K,1,1),t.k0s()()),2&e){const i=t.XpG(3);t.R7$(),t.Y8G("routerLink",t.bMT(2,2,t.eq3(4,x,i.item.product))),t.R7$(2),t.vxM(i.item.product?3:-1)}}function it(e,n){if(1&e&&(t.j41(0,"span",32),t.EFF(1),t.nI1(2,"currency"),t.k0s()),2&e){const i=t.XpG(4);t.Y8G("ngClass",i.isPromoApplied?"productcard-option-price":""),t.R7$(),t.SpI(" ",t.brH(2,2,i.ferreroItem.personalisationTotalPrice,i.ferreroItem.totalPrice.currencyIso,"symbol")," ")}}function et(e,n){if(1&e&&(t.j41(0,"span",33),t.EFF(1),t.nI1(2,"currency"),t.k0s()),2&e){const i=t.XpG(4);t.R7$(),t.SpI(" ",t.brH(2,1,i.calculatedSavingPersonalizationPrice,i.ferreroItem.totalPrice.currencyIso,"symbol")," ")}}function rt(e,n){if(1&e&&(t.j41(0,"div",13)(1,"a",29),t.nI1(2,"cxUrl"),t.j41(3,"span",30),t.EFF(4),t.nI1(5,"cxTranslate"),t.k0s()(),t.j41(6,"div",31),t.nVh(7,it,3,6,"span",32),t.nVh(8,et,3,5,"span",33),t.k0s()()),2&e){const i=t.XpG(3);t.R7$(),t.Y8G("routerLink",t.bMT(2,5,t.eq3(9,x,i.item.product))),t.R7$(3),t.Lme(" ",t.bMT(5,7,"miniCartTranslate.personalization"),"(",i.ferreroItem.personalisationParts.length,") "),t.R7$(3),t.vxM(i.ferreroItem&&i.ferreroItem.totalPrice&&i.ferreroItem.totalPrice.currencyIso?7:-1),t.R7$(),t.vxM(i.isPromoApplied&&i.ferreroItem&&i.ferreroItem.totalPrice&&i.ferreroItem.totalPrice.currencyIso?8:-1)}}function ot(e,n){if(1&e&&(t.j41(0,"div",38)(1,"span",41),t.EFF(2),t.k0s(),t.j41(3,"span",42),t.EFF(4),t.k0s()()),2&e){const i=n.$implicit;t.R7$(2),t.SpI("",i.split("x ")[0],"x"),t.R7$(2),t.JRh(i.split("x ")[1])}}function nt(e,n){if(1&e){const i=t.RV6();t.j41(0,"div",37),t.Z7z(1,ot,5,2,"div",38,t.fX1),t.j41(3,"div",39),t.bIt("click",function(){p.eBV(i);const o=t.XpG(4);return p.Njj(o.getProdCyo())}),t.j41(4,"span",40),t.EFF(5),t.nI1(6,"cxTranslate"),t.k0s()()()}if(2&e){const i=t.XpG(4);t.R7$(),t.Dyx(i.arrayCyo),t.R7$(4),t.JRh(t.bMT(6,1,"miniCartTranslate.editSelections"))}}function at(e,n){if(1&e){const i=t.RV6();t.j41(0,"div",14)(1,"div",34),t.bIt("click",function(){p.eBV(i);const o=t.XpG(3);return p.Njj(o.toggleSelection())}),t.j41(2,"span",35),t.EFF(3),t.nI1(4,"cxTranslate"),t.k0s(),t.nrm(5,"span",36),t.k0s(),t.nVh(6,nt,7,3,"div",37),t.k0s()}if(2&e){const i=t.XpG(3);t.R7$(3),t.Lme(" ",null==i.arrayCyo?null:i.arrayCyo.length," ",t.bMT(4,4,"miniCartTranslate.showSelections")," "),t.R7$(2),t.Y8G("ngClass",i.isSelectionExpanded?"fm-top-arrow":"fm-bottom-arrow"),t.R7$(),t.vxM(i.isSelectionExpanded&&i.arrayCyo?6:-1)}}function ct(e,n){1&e&&(t.j41(0,"div",44),t.EFF(1),t.nI1(2,"cxTranslate"),t.k0s()),2&e&&(t.R7$(),t.SpI(" ",t.bMT(2,1,"saveForLaterItems.forceInStock")," "))}function st(e,n){1&e&&(t.j41(0,"div",17)(1,"div",43),t.EFF(2),t.nI1(3,"cxTranslate"),t.k0s(),t.DNE(4,ct,3,3,"ng-template",null,0,t.C5r),t.k0s()),2&e&&(t.R7$(2),t.SpI(" ",t.bMT(3,1,"saveForLaterItems.stock")," "))}function pt(e,n){if(1&e&&(t.j41(0,"span",46),t.EFF(1),t.nI1(2,"currency"),t.k0s()),2&e){const i=t.XpG(5);t.R7$(),t.SpI(" ",t.brH(2,1,i.calculatedPrice,null==i.ferreroItem.totalPrice?null:i.ferreroItem.totalPrice.currencyIso,"symbol")," ")}}function mt(e,n){if(1&e&&t.nVh(0,pt,3,5,"span",46),2&e){const i=t.XpG(4);t.vxM(null!=i.ferreroItem&&null!=i.ferreroItem.totalPrice&&i.ferreroItem.totalPrice.currencyIso?0:-1)}}function lt(e,n){if(1&e&&(t.j41(0,"span",47),t.EFF(1),t.nI1(2,"currency"),t.k0s()),2&e){const i=t.XpG(),r=t.XpG(5);t.R7$(),t.SpI(" ",t.brH(2,1,r.strikeThrough,i,"symbol")," ")}}function dt(e,n){if(1&e&&(t.j41(0,"span",47),t.EFF(1),t.k0s()),2&e){const i=t.XpG(6);t.R7$(),t.SpI(" ",null==i.ferreroItem.basePrice?null:i.ferreroItem.basePrice.formattedValue," ")}}function ut(e,n){if(1&e&&(t.j41(0,"span",48),t.EFF(1),t.nI1(2,"number"),t.nI1(3,"currency"),t.nI1(4,"currency"),t.k0s()),2&e){const i=t.XpG(),r=t.XpG(5);t.R7$(),t.SpI(" ",r.savingPrice?t.brH(3,4,t.i5U(2,1,r.savingPrice,"1.2-2"),i,"symbol"):t.brH(4,8,null==r.ferreroItem.basePrice?null:r.ferreroItem.basePrice.formattedValue,i,"symbol")," ")}}function _t(e,n){if(1&e&&(t.j41(0,"span",49),t.EFF(1),t.nI1(2,"currency"),t.k0s()),2&e){const i=t.XpG(),r=t.XpG(5);t.R7$(),t.SpI(" ",t.brH(2,1,null==r.ferreroItem.basePrice?null:r.ferreroItem.basePrice.formattedValue,i,"symbol")," ")}}function ht(e,n){if(1&e&&(t.nVh(0,lt,3,5,"span",47),t.nVh(1,dt,2,1,"span",47),t.nVh(2,ut,5,12,"span",48),t.nVh(3,_t,3,5,"span",49)),2&e){const i=t.XpG(5);t.vxM(i.strikeThrough&&!i.isPromoApplied?0:-1),t.R7$(),t.vxM(i.isPromoApplied&&!i.strikeThrough?1:-1),t.R7$(),t.vxM(i.strikeThrough||i.isPromoApplied?2:-1),t.R7$(),t.vxM(i.strikeThrough||i.isPromoApplied?-1:3)}}function Ct(e,n){if(1&e&&(t.j41(0,"div",45),t.nVh(1,ht,4,4),t.nI1(2,"async"),t.k0s()),2&e){let i;const r=t.XpG(4);t.R7$(),t.vxM((i=t.bMT(2,1,r.currencyString$))?1:-1,i)}}function ft(e,n){if(1&e&&(t.nVh(0,mt,1,1),t.nVh(1,Ct,3,3,"div",45)),2&e){const i=t.XpG(3);t.vxM(i.isPromoApplied||i.strikeThrough?-1:0),t.R7$(),t.vxM(i.item.totalPrice?1:-1)}}function gt(e,n){1&e&&(t.j41(0,"div",23),t.nrm(1,"span",50),t.j41(2,"span",51),t.EFF(3),t.nI1(4,"cxTranslate"),t.k0s()()),2&e&&(t.R7$(3),t.JRh(t.bMT(4,1,"miniCartTranslate.productUnapproved")))}function xt(e,n){1&e&&(t.j41(0,"div",23),t.nrm(1,"span",50),t.j41(2,"span",51),t.EFF(3),t.nI1(4,"cxTranslate"),t.k0s()()),2&e&&(t.R7$(3),t.JRh(t.bMT(4,1,"miniCartTranslate.outOfStockBanner")))}function vt(e,n){1&e&&(t.j41(0,"div",52),t.nrm(1,"span",50),t.j41(2,"span",51),t.EFF(3),t.nI1(4,"cxTranslate"),t.k0s()()),2&e&&(t.R7$(3),t.JRh(t.bMT(4,1,"miniCartTranslate.pralineOOS")))}function It(e,n){if(1&e&&t.nVh(0,vt,5,3,"div",52),2&e){const i=n.$implicit,r=t.XpG
1(5);t.vxM(null!=r.ferreroItem.personalisationCYO.persValue&&r.ferreroItem.personalisationCYO.persValue.includes(i.code)?0:-1)}}function yt(e,n){1&e&&(t.j41(0,"div"),t.Z7z(1,It,1,1,null,null,t.fX1),t.k0s()),2&e&&(t.R7$(),t.Dyx(n))}function bt(e,n){if(1&e&&(t.j41(0,"div"),t.nVh(1,yt,3,0,"div"),t.nI1(2,"async"),t.k0s()),2&e){let i;const r=t.XpG(3);t.R7$(),t.vxM((i=t.bMT(2,1,r.pralinesOOSCodeArray$))?1:-1,i)}}function Tt(e,n){if(1&e){const i=t.RV6();t.j41(0,"div",2)(1,"div",3)(2,"div",4)(3,"div",5)(4,"div",6),t.nVh(5,B,1,1),t.j41(6,"a",7),t.nI1(7,"cxUrl"),t.bIt("click",function(){p.eBV(i);const o=t.XpG(2);return p.Njj(o.hidingContentPage())}),t.qex(8),t.nrm(9,"app-ferrero-media",8),t.bVm(),t.k0s()()(),t.j41(10,"div",9)(11,"div")(12,"div",10)(13,"div",11),t.nVh(14,J,4,6,"div",12),t.k0s()(),t.nVh(15,tt,4,6,"div",13),t.nVh(16,rt,9,11,"div",13),t.k0s(),t.nVh(17,at,7,6,"div",14),t.j41(18,"div",15)(19,"div",16),t.nVh(20,st,6,3,"div",17)(21,ft,2,2),t.k0s(),t.j41(22,"div",18)(23,"button",19),t.nI1(24,"cxTranslate"),t.bIt("click",function(){p.eBV(i);const o=t.XpG(2);return p.Njj(o.removeItem())}),t.k0s()(),t.j41(25,"div",20),t.nrm(26,"app-ferrero-item-counter",21),t.k0s()()()()(),t.j41(27,"div",22),t.nVh(28,gt,5,3,"div",23),t.nVh(29,xt,5,3,"div",23),t.k0s(),t.nVh(30,bt,3,3,"div"),t.k0s()}if(2&e){const i=t.XpG(2);t.R7$(),t.Y8G("ngClass",i.isFinishingTouches||i.isMakeUnique?"":"noPersonalization"),t.R7$(4),t.vxM(i.item.promotions&&i.item.promotions.length>0?5:-1),t.R7$(),t.Y8G("routerLink",t.bMT(7,18,t.eq3(22,x,i.item.product))),t.R7$(3),t.Y8G("container",i.ferreroItem.product.thumbnail),t.R7$(5),t.vxM(null!=i.item.product&&i.item.product.name?14:-1),t.R7$(),t.vxM(null!=i.item.product&&i.item.product.name?15:-1),t.R7$(),t.vxM(i.ferreroItem.personalisationParts&&i.ferreroItem.personalisationParts.length>0?16:-1),t.R7$(),t.vxM(i.ferreroItem.personalisationCYO?17:-1),t.R7$(3),t.vxM(i.options.isSaveForLater?20:21),t.R7$(3),t.Y8G("disabled",i.quantityControl.disabled),t.BMQ("aria-label",t.bMT(24,20,"addToCart.removeFromCart")),t.R7$(3),t.Y8G("max",i.maxStock)("maxQuantityControl",i.maxQuantityControl)("control",i.quantityControl)("allowZero",!0),t.R7$(2),t.vxM(i.isProductPurchasable?-1:28),t.R7$(),t.vxM(i.isProductOutOfStockControl?29:-1),t.R7$(),t.vxM(i.ferreroItem.personalisationCYO?30:-1)}}function St(e,n){if(1&e&&t.DNE(0,Tt,31,24,"ng-template",1),2&e){const i=t.XpG();t.Y8G("cxOutlet",i.CartOutlets.ITEM)}}let Pt=(()=>{class e extends u.TK{constructor(i,r,o,c,s,m,l,f,I,y,b,T){super(i),this.currencyService=r,this.activeCartService=o,this.ferreroMultiService=c,this.communicationService=s,this.spinner=m,this.httpService=l,this.router=f,this.mark=I,this.miniCartService=y,this.envconfig=b,this.route=T,this.personalMessage="pdp.personalMessageLabel",this.sleeveMessage="pdp.sleeveLabel",this.icingMessage="pdp.icingLabel",this.giftTagLabel="pdp.giftTagLabel",this.giftWrapLabel="pdp.giftWrapLabel",this.activeCustomizations=[],this.activeOption=-1,this.activeTouches=-1,this.personalizations=[],this.sleeveLabel="pdp.sleeveLabel",this.calculatedPrice=0,this.isSpinnerOpened=!1,this.strikeThrough=0,this.arrayCyo=[],this.isProductOutOfStockControl=!1,this.isPromoApplied=!1,this.savingPrice=0,this.calculatedSavingPrice=0,this.calculatedSavingPersonalizationPrice=0,this.isStrikeThroughPrice=!1,this.allSubscriptions=new P.yU,this.isMinicart=!1,this.isSelectionExpanded=!1}ngOnInit(){if(this.currencyString$=this.currencyService.getActive().pipe((0,R.t)(1)),this.productOrderEntry=this.item.product,this.isProductPurchasable=this.productOrderEntry.purchasable,this.isProductOutOfStockControl="outOfStock"===this.productOrderEntry.stock?.stockLevelStatus,this.ferreroItem=this.item,this.passingValue=this.ferreroItem,this.dataCart$=(0,V.y)(this.activeCartService.getActiveCartId(),this.activeCartService.getAssignedUser()).pipe((0,R.t)(1)),this.isGuest=this.activeCartService.isGuestCart(),this.priceToShow=(this.ferreroItem.basePrice?.value||1)*(this.ferreroItem.quantity||1)+(this.ferreroItem.personalisationTotalPrice||0),this.strikeThrough=this.productOrderEntry?.strikethroughPrice,this.isPromoApplied=this.ferreroItem.basePrice?.value!==(this.ferreroItem.totalPrice?.value||0)/(this.ferreroItem.quantity||1),this.isPromoApplied&&(this.savingPrice=(this.ferreroItem.totalPrice?.value||0)/(this.ferreroItem.quantity||1)),this.productOrderEntry?.strikethroughPrice&&!this.isPromoApplied&&(this.isStrikeThroughPrice=!0),this.calcStartingPrice(),this.ferreroItem.personalisationCYO&&this.ferreroItem.personalisationCYO.metadata){let i=[];i=this.ferreroItem.personalisationCYO.metadata.split(","),this.arrayCyo=i.slice(0,-1),this.pralinesOOSCodeArray$=this.httpService.getPralinesOutOfStock().pipe((0,g.T)(r=>r.pralines)),this.mark.markForCheck()}this.productOrderEntry?.maxOrderQuantity&&this.productOrderEntry?.stock?.stockLevel?this.productOrderEntry?.maxOrderQuantity<=this.productOrderEntry?.stock?.stockLevel?(this.maxStock=this.productOrderEntry?.maxOrderQuantity,this.maxQuantityControl=!0):(this.maxStock=this.productOrderEntry?.stock?.stockLevel,this.maxQuantityControl=!1):(this.productOrderEntry.code&&this.envconfig?.cyoCode?.includes(this.productOrderEntry.code)||(this.maxStock=this.productOrderEntry.stock?.stockLevel||0),this.maxQuantityControl=!1)}hidingContentPage(){this.communicationService.sendEvent({value:!0,component:this}),document.body.classList.contains("noscroll")&&document.body.classList.remove("noscroll"),this.miniCartService.closeMiniCart()}selectOption(i,r){this.activeOption=r}reset(){this.activeOption=-1,this.activeTouches=-1}updatePers(i){this.allSubscriptions.add(this.dataCart$.subscribe(o=>{this.isGuest?o[0]&&o[1].uid&&(this.ferreroMultiService?.updateEntry("anonymous",o[0],this.item.entryNumber||0,this.item.product?.code||"",1,[]),this.spinner.loadSpinner(),this.isSpinnerOpened=!0):o[0]&&o[1].uid&&(this.ferreroMultiService?.updateEntry(o[1].uid,o[0],this.item.entryNumber||0,this.item.product?.code||"",1,[]),this.spinner.loadSpinner(),this.isSpinnerOpened=!0),setTimeout(()=>{this.isSpinnerOpened&&(this.spinner.closeSpinner(),this.isSpinnerOpened=!1)},200)}))}calcStartingPrice(){this.ferreroItem.personalisationTotalPrice&&this.ferreroItem.quantity&&this.ferreroItem.basePrice&&this.ferreroItem.basePrice.value?this.calculatedPrice=this.ferreroItem.personalisationTotalPrice+this.ferreroItem.basePrice.value*this.ferreroItem.quantity:!this.ferreroItem.personalisationTotalPrice&&this.ferreroItem.quantity&&this.ferreroItem.basePrice&&this.ferreroItem.basePrice.value&&(this.calculatedPrice=this.ferreroItem.basePrice.value*this.ferreroItem.quantity),this.ferreroItem.basePrice?.value!==this.ferreroItem.totalPrice?.value&&!this.ferreroItem.personalisationTotalPrice&&this.ferreroItem.quantity&&this.ferreroItem.basePrice&&this.ferreroItem.basePrice.value&&(this.calculatedSavingPrice=this.ferreroItem.totalPrice?.value||0),this.ferreroItem.basePrice?.value!==this.ferreroItem.totalPrice?.value&&this.ferreroItem.personalisationTotalPrice&&this.ferreroItem.quantity&&this.ferreroItem.basePrice&&this.ferreroItem.basePrice.value&&(this.ferreroItem.personalisationPassed&&this.ferreroItem.personalisationPassed.forEach(i=>
1{this.calculatedSavingPersonalizationPrice+=i.totalPrice.value/(this.ferreroItem?.quantity||1)}),this.calculatedSavingPrice=this.calculatedSavingPersonalizationPrice*(this.ferreroItem?.quantity||1)+(this.ferreroItem.totalPrice?.value||0))}getProdCyo(){sessionStorage.setItem("cyoObj",this.item?.product?.code||""),sessionStorage.setItem("quantityToModify",(this.item?.quantity||1).toString()),this.hidingContentPage(),this.router.navigate([this.ferreroItem?.product?.url],{queryParams:{entry:this.item.entryNumber}})}toggleSelection(){this.isSelectionExpanded=!this.isSelectionExpanded}ngOnChanges(i){this.ferreroStocks?.cartModifications?.forEach(r=>{r?.entry?.entryNumber===this.ferreroItem?.entryNumber&&(this.isProductOutOfStockControl=!0)}),this.mark.markForCheck()}ngOnDestroy(){this.allSubscriptions&&this.allSubscriptions.unsubscribe()}static{this.\u0275fac=function(r){return new(r||e)(t.rXU(u.oA),t.rXU(d.PnO),t.rXU(C.e2),t.rXU(M.K),t.rXU(U.q),t.rXU(z.c),t.rXU(w.b),t.rXU(v.Ix),t.rXU(k.gRc),t.rXU(X.T),t.rXU(Y.v),t.rXU(v.nX))}}static{this.\u0275cmp=t.VBU({type:e,selectors:[["app-custom-cart-item"]],inputs:{insertedPersonalization:"insertedPersonalization",cartCodeString:"cartCodeString",maxLenght:"maxLenght",ferreroStocks:"ferreroStocks"},standalone:!1,features:[t.Jv_([u.oA,{provide:_.H4,useExisting:u.oA}]),t.Vt3,t.OA$],decls:1,vars:1,consts:[["forceInstock",""],[3,"cxOutlet"],[1,"minicart-productcard-wrapper"],[1,"minicart-productcard","container",3,"ngClass"],[1,"row","mw-100","m-0"],[1,"col-5","col-sm-4","col-md-3","col-lg-3","p-0"],[1,"productcard-image-wrapper"],[1,"imgLinkcontainer",3,"click","routerLink"],[1,"productcard-image",3,"container"],[1,"col-8","col-sm-8","col-md-9","col-lg-9","pr-0","d-flex","flex-column","justify-content-between","miniCart","pl-sm-2","pl-md-3"],[1,"row"],[1,"col-9"],[1,"cx-name"],[1,"productcard-option-wrapper","cx-name"],[1,"mt-2"],[1,"row","align-items-center"],[1,"col-sm-3","col-lg-5","pl-0","d-flex","align-items-end"],[1,"cx-total"],[1,"col-sm-2","col-lg-2","d-flex","trash-content","p-0"],[1,"productcard-remove-icon","fm-bin","link","cx-action-link","p-0",3,"click","disabled"],[1,"col-sm-7","col-lg-5","d-flex","justify-content-end","pl-lg-0"],[3,"max","maxQuantityControl","control","allowZero"],[1,"minicart-productcard","minicart-customization","container"],[1,"d-flex","align-items-center"],[1,"status-badge","status-promo","custom-position"],["cxModal","dismiss",1,"productcard-title-link","cx-link",3,"click","routerLink"],[1,"productcard-title","mb-0","text-neutrals-0",3,"innerHTML"],["cxModal","dismiss",1,"productcard-option-title-link","cx-link","d-flex","flex-nowrap","align-items-center","productcard-option-title",3,"routerLink"],[1,"order-1","productcard-option-qualifier",2,"color","var(--quarternary-1)","font-weight","400"],["cxModal","dismiss",1,"productcard-option-title-link","cx-link",3,"routerLink"],[1,"productcard-option-title","text-truncate","w-100","mw-100"],[1,"cx-price"],[1,"productcard-option-price","cx-value",3,"ngClass"],[1,"productcard-option-price","cx-value"],[1,"selection-header","d-flex","align-items-center","mb-2",3,"click"],[1,"text-secondary-brown"],[1,"text-secondary-brown","ml-1",3,"ngClass"],[1,"selection-content","mt-2"],[1,"d-flex","selection-item"],[1,"edit-selection","mb-2",3,"click"],[1,"edit-selection-text"],[1,"selection-qty"],[1,"selection-text","ml-2"],[1,"cx-label"],[1,"cx-value"],[1,"cx-price","custom-price-wrapper","ml-3"],[1,"productcard-total-price","ml-3","cx-total","text-secondary-brown"],[1,"strikeThrough","productcard-option-price","old-price","cx-value","mr-2"],[1,"new-price","cx-value"],[1,"cx-value","text-secondary-brown"],[1,"fm-info-circle","text-primary-1","mr-1","display-5"],[1,"text-primary-1","display-5"],[1,"d-flex","align-items-center","m-2"]],template:function(r,o){1&r&&t.nVh(0,St,1,1,null,1),2&r&&t.vxM("PERSONALIZATION"!=(null==o.item.product?null:o.item.product.baseProduct)?0:-1)},dependencies:[h.YU,A.Wk,$.FSQ,N.p,Q.i,h.Jj,h.QX,h.oe,d.D97,d._xc],styles:[":root{--primary-gradient: 90deg, #AC1E2E 0%, #AC1E2E 50%, #AC1E2E 100%;--secondary-gradient: 90deg, #AC1E2E 0%,#AC1E2E 50%, #AC1E2E 100%;--gradient-badges: 90deg, #8f212b 0%, #c86364 25%, #ffbfb3 50%, #c86364 75%, #8f212b 100%;--cx-page-widfm-max: 100%}app-custom-cart-item .minicart-productcard-wrapper .strike{text-decoration:line-through;width:100%;max-width:fit-content}app-custom-cart-item .minicart-productcard-wrapper .custom-position{position:absolute;top:0;z-index:1;font-size:.625rem!important}@media screen and (min-width:768px)and (max-width:1025px){app-custom-cart-item .minicart-productcard-wrapper .custom-position{font-size:7p
1x!important}}app-custom-cart-item .minicart-productcard-wrapper .cx-price{display:contents;width:100%;text-align:end;font-size:14px}app-custom-cart-item .minicart-productcard-wrapper .minicart-productcard{padding:22px 15px 0;margin:0;width:100%;max-width:100%!important}@media screen and (min-width:768px){app-custom-cart-item .minicart-productcard-wrapper .minicart-productcard{padding:10px 20px 0;margin:0;max-width:100%!important}}app-custom-cart-item .minicart-productcard-wrapper .minicart-productcard.minicart-customization{border-top:0}app-custom-cart-item .minicart-productcard-wrapper .minicart-productcard.noPersonalization{padding-bottom:22px}app-custom-cart-item .minicart-productcard-wrapper .minicart-productcard .productcard-image-wrapper{background-color:var(--neutrals-2);display:flex;align-items:center;justify-content:center;padding:13px 9px;height:auto!important}app-custom-cart-item .minicart-productcard-wrapper .minicart-productcard .productcard-image-wrapper .imgLinkcontainer{height:100%}app-custom-cart-item .minicart-productcard-wrapper .minicart-productcard .productcard-image-wrapper app-ferrero-media{width:100%;height:100%;object-fit:contain}app-custom-cart-item .minicart-productcard-wrapper .minicart-productcard .productcard-image-wrapper app-ferrero-media img{object-fit:contain}app-custom-cart-item .minicart-productcard-wrapper .minicart-productcard .productcard-image-wrapper app-ferrero-media.is-missing{height:88px;width:108.88px}@media screen and (max-width:768px){app-custom-cart-item .minicart-productcard-wrapper .minicart-productcard .productcard-image-wrapper app-ferrero-media img{width:100%;height:auto}}app-custom-cart-item .minicart-productcard-wrapper .minicart-productcard .productcard-title-link{text-decoration:none!important}app-custom-cart-item .minicart-productcard-wrapper .minicart-productcard .productcard-title-link .productcard-title{color:var(--primary-1);font-size:1.125rem;font-weight:400!important;letter-spacing:.62px;line-height:1.2!important}app-custom-cart-item .minicart-productcard-wrapper .minicart-productcard .productcard-remove-icon{color:var(--quarternary-1);font-size:1rem;font-weight:500;display:block;text-decoration:none;cursor:pointer;border:none;background-color:transparent}app-custom-cart-item .minicart-productcard-wrapper .minicart-productcard .productcard-option-wrapper{height:22px;display:flex;align-items:center;justify-content:space-between;padding-top:5px;margin-bottom:10px}app-custom-cart-item .minicart-productcard-wrapper .minicart-productcard .productcard-option-wrapper .productcard-option-title-link{display:grid;text-decoration:none!important}app-custom-cart-item .minicart-productcard-wrapper .minicart-productcard .productcard-option-wrapper .productcard-option-title-link .productcard-option-title{max-width:100%;display:block;line-height:22px}app-custom-cart-item .minicart-productcard-wrapper .minicart-productcard .productcard-option-wrapper .productcard-option-title-link .productcard-option-qualifier{padding-right:4px}app-custom-cart-item .minicart-productcard-wrapper .minicart-productcard .productcard-option-wrapper .productcard-option-price{max-width:20%;min-width:20%;text-align:right}app-custom-cart-item .minicart-productcard-wrapper .minicart-productcard .productcard-option-wrapper .productcard-option-title,app-custom-cart-item .minicart-productcard-wrapper .minicart-productcard .productcard-option-wrapper .productcard-option-price{font-size:.875rem;letter-spacing:0;line-height:26px;color:var(--neutrals-4);text-decoration:line-through}app-custom-cart-item .minicart-productcard-wrapper .minicart-productcard .productcard-option-wrapper .productcard-option-price-custom{padding-left:10px}app-custom-cart-item .minicart-productcard-wrapper .minicart-productcard cx-item-counter{height:30px;border-radius:0;width:100%}app-custom-cart-item .minicart-productcard-wrapper .minicart-productcard cx-item-counter button{border-radius:0;color:var(--primary-1);font-weight:600;width:25px;max-width:25px;min-width:25px}app-custom-cart-item .minicart-productcard-wrapper .minicart-productcard cx-item-counter input[type=number]{border:0;width:100%;padding:0;margin-top:2px!important;max-width:unset;min-width:unset;background-color:transparent;font-size:1rem}app-custom-cart-item .minicart-productcard-wrapper .minicart-productcard .productcard-total-price{font-size:1rem;font-weight:600;letter-spacing:0;line-height:.875rem;color:var(--neutrals-5);width:100%;max-width:fit-content}app-custom-cart-item .minicart-productcard-wrapper .minicart-productcard .subt
1itled{text-decoration:underline}app-custom-cart-item .minicart-productcard-wrapper .minicart-productcard .mat-expansion-indicator{color:var(--primary-1)}app-custom-cart-item .minicart-productcard-wrapper .minicart-productcard .editLabel{margin-top:10px}@media screen and (min-width:1025px){app-custom-cart-item .minicart-productcard-wrapper .minicart-productcard .editLabel{margin-top:0}}app-custom-cart-item .minicart-productcard-wrapper .minicart-productcard .custom-price-wrapper{display:flex;flex-direction:column;align-items:flex-start}app-custom-cart-item .minicart-productcard-wrapper .minicart-productcard .old-price{color:#b0b0b0!important;font-size:14px!important;text-decoration:line-through;line-height:16px;font-weight:400}app-custom-cart-item .minicart-productcard-wrapper .minicart-productcard .alone-price{color:#b0b0b0!important;font-size:14px!important;line-height:16px;font-weight:400}app-custom-cart-item .minicart-productcard-wrapper .minicart-productcard .new-price{color:var(--feedback-positive)!important;font-size:16px!important;font-weight:600;line-height:18px;margin-top:2px}app-custom-cart-item .minicart-productcard-wrapper .minicart-productcard .selection-header{cursor:pointer;font-size:.875rem;font-weight:400}app-custom-cart-item .minicart-productcard-wrapper .minicart-productcard .selection-header .fm-top-arrow{font-size:10px!important}app-custom-cart-item .minicart-productcard-wrapper .minicart-productcard .selection-header .fm-bottom-arrow{font-size:10px!important}app-custom-cart-item .minicart-productcard-wrapper .minicart-productcard .selection-item{font-size:.875rem;color:#5d5d5d;line-height:1.6}app-custom-cart-item .minicart-productcard-wrapper .minicart-productcard .edit-selection{cursor:pointer}app-custom-cart-item .minicart-productcard-wrapper .minicart-productcard .edit-selection .edit-selection-text{color:var(--primary-1);font-weight:400;text-decoration:underline;font-size:.875rem}app-custom-cart-item .minicart-productcard-wrapper .minicart-productcard .trash-content{justify-content:end}@media screen and (min-width:1025px){app-custom-cart-item .minicart-productcard-wrapper .minicart-productcard .trash-content{justify-content:center}}app-custom-cart-item .minicart-productcard-wrapper .editLabel{cursor:pointer}app-custom-cart-item .minicart-productcard-wrapper cx-global-message{background-color:var(--errorMessageColor)!important;z-index:1}app-custom-cart-item .minicart-productcard-wrapper cx-global-message .alert,app-custom-cart-item .minicart-productcard-wrapper cx-global-message .alert-danger{display:flex!important;align-items:center!important;text-align:center!important}app-custom-cart-item .minicart-productcard-wrapper cx-global-message .alert .alert-icon cx-icon:before,app-custom-cart-item .minicart-productcard-wrapper cx-global-message .alert-danger .alert-icon cx-icon:before{padding-right:10px}app-custom-cart-item .minicart-productcard-wrapper cx-global-message .alert button,app-custom-cart-item .minicart-productcard-wrapper cx-global-message .alert-danger button{margin-top:0}@media screen and (min-width:768px){app-custom-cart-item .minicart-productcard-wrapper cx-global-message .alert,app-custom-cart-item .minicart-productcard-wrapper cx-global-message .alert-danger{align-items:center!important}app-custom-cart-item .minicart-productcard-wrapper cx-global-message .alert button,app-custom-cart-item .minicart-productcard-wrapper cx-global-message .alert-danger button{margin-top:15px}}app-custom-cart-item .d-custom-none{display:none!important}@media screen and (min-width:1025px){app-custom-cart .cyoAccordion{padding:21px 51px!important}}\n"],encapsulation:2})}}return e})();function kt(e,n){if(1&e&&(t.j41(0,"div",1),t.nrm(1,"app-custom-cart-item",2),t.nI1(2,"async"),t.k0s()),2&e){const i=t.XpG().$implicit,r=t.XpG
1(2);t.R7$(),t.Y8G("item",i)("quantityControl",n.get("quantity"))("readonly",r.readonly)("promotionLocation",r.promotionLocation)("options",r.options)("cartCodeString",r.cartCodeString)("ferreroStocks",t.bMT(2,7,r.ferreroStocks$))}}function wt(e,n){}function Mt(e,n){if(1&e&&(t.j41(0,"div",0),t.nVh(1,kt,3,9,"div",1),t.nI1(2,"async"),t.nVh(3,wt,0,0),t.nI1(4,"async"),t.k0s()),2&e){let i;const r=n.$implicit,o=t.XpG(2);t.R7$(),t.vxM((i=t.bMT(2,2,o.ferreroGetControl(r)))?1:-1,i),t.R7$(2),t.vxM(t.bMT(4,4,o.ferreroStocks$)?3:-1)}}function $t(e,n){if(1&e&&(t.Z7z(0,Mt,5,6,"div",0,t.fX1),t.nI1(2,"async")),2&e){const i=t.XpG();t.Dyx(t.bMT(2,0,i.personalizationToPass))}}function Xt(e,n){if(1&e&&(t.j41(0,"div",1),t.nrm(1,"app-custom-cart-item",2),t.nI1(2,"async"),t.k0s()),2&e){const i=t.XpG().$implicit,r=t.XpG(4);t.R7$(),t.Y8G("item",i)("quantityControl",n.get("quantity"))("readonly",r.readonly)("promotionLocation",r.promotionLocation)("options",r.options)("cartCodeString",r.cartCodeString)("ferreroStocks",t.bMT(2,7,r.ferreroStocks$))}}function Rt(e,n){if(1&e&&(t.j41(0,"div"),t.nVh(1,Xt,3,9,"div",1),t.nI1(2,"async"),t.k0s()),2&e){let i;const r=n.$implicit,o=t.XpG(4);t.R7$(),t.vxM((i=t.bMT(2,1,o.ferreroGetControl(r)))?1:-1,i)}}function Et(e,n){if(1&e&&(t.j41(0,"div"),t.Z7z(1,Rt,3,3,"div",null,t.fX1),t.k0s()),2&e){const i=t.XpG();t.R7$(),t.Dyx(i)}}function Ot(e,n){1&e&&(t.j41(0,"div"),t.nVh(1,Et,3,0,"div"),t.k0s()),2&e&&(t.R7$(),t.vxM(n.length>0?1:-1))}function Lt(e,n){}function jt(e,n){if(1&e&&(t.nVh(0,Ot,2,1,"div"),t.nI1(1,"async"),t.nVh(2,Lt,0,0),t.nI1(3,"async")),2&e){let i;const r=t.XpG();t.vxM((i=t.bMT(1,2,r.personalizationToPass))?0:-1,i),t.R7$(2),t.vxM(t.bMT(3,4,r.ferreroStocks$)?2:-1)}}let Gt=(()=>{class e extends u.bA{constructor(i,r,o,c,s,m,l,f,I,y,b,T,Yt){super(l,f,o,I,y,b),this.activeCartService=i,this.selectiveCartService=r,this.userIdService=o,this.httpService=c,this.ferreroMultiService=s,this.addCartService=m,this.route=T,this.miniCartService=Yt,this.isMinicart=!1,this.allSubscriptions=new P.yU,this.lastQuantities={}}ngOnInit(){super.ngOnInit(),this.ferreroItems=this.activeCartService.getEntries(),this.personalizationToPass=this.ferreroItems.pipe((0,g.T)(i=>{if(this.isMinicart){let o=this.getLastAddedItem(i);return o?[o]:[]}let r=[];return i.forEach((o,c)=>{let s=0;if(o.personalisationParts&&o.personalisationParts.length>0){let m=[];o.personalisationParts.forEach((l,f)=>{m[f]=i[l.optionLine],s+=i[l.optionLine]?.totalPrice?.value||0}),r[c]={...o,personalisationPassed:[...m],personalisationTotalPrice:s}}else{if(o.personalisation)return;r[c]=o}}),r=r.filter(o=>o.personalisationParts),r}))}getLastAddedItem(i){if(!i||0===i.length)return null;let r=null;return i.forEach(o=>{let c=o.product?.code||"",s=o.quantity||0;"PAR_CYO"===o.product?.baseProduct&&(s=1);let m=this.lastQuantities[c]||0;("PAR_CYO"===o.product?.baseProduct||s>m)&&(r=o),this.lastQuantities[c]=s}),r}ngOnChanges(i){i&&i.items&&(this.ferreroStocks$=this.cart&&this.cart.guid&&this.cart.user&&this.cart.user.uid&&(this.cart.user.uid.includes("|")||"anonymous"===this.cart.user.uid.toLowerCase())?this.httpService.getProductStock(this.cart.guid,"anonymous"):this.httpService.getProductStock(this.cart.code||"",this.cart.user?.uid||""))}ferreroGetControl(i){if(i&&this.form&&this.form.get(this.getControlName(i))&&this.form.get(this.getControlName(i))?.valueChanges)return this.form.get(this.getControlName(i))?.valueChanges?.pipe((0,G.Z)(null),(0,S.M)(r=>{i.updateable&&r&&!this.readonly&&(this.selectiveCartService&&this.options.isSaveForLater?this.selectiveCartService.updateEntry(r.entryNumber,r.quantity):this.cartId&&this.userId?this.ferreroMultiService?.updateEntry(this.userId,this.cartId,r.entryNumber,i.product?.code||"",r.quantity):this.addCartService.updateEntry(r.entryNumber,i.product?.code||"",r.quantity))}),(0,g.T)(()=>this.form.get(this.getControlName(i))))}ngOnDestroy(){this.allSubscriptions&&this.allSubscriptions.unsubscribe()}static{this.\u0275fac=function(r){return new(r||e)(t.rXU(C.e2),t.rXU(C.Q0),t.rXU(d.y9w),t.rXU(w.b),t.rXU(M.K),t.rXU(F.Y),t.rXU(_.NL),t.rXU(_.z$),t.rXU(_.U8),t.rXU(k.gRc),t.rXU($.nou),t.rXU(v.nX),t.rXU(X.T))}}static{this.\u0275cmp=t.VBU({type:e,selectors:[["app-custom-list-item-component"]],inputs:{cartCodeString:"cartCodeString",cart:"cart",isMinicart:"isMinicart"},standalone:!1,features:[t.Vt3,t.OA$],decls:2,vars:2,consts:[[1,"cx-item-list-row"],[1,"cx-item-list-items"],[3,"item","quantityControl","readonly","promotionLocation","options","cartCodeString","ferreroStocks"]],template:function(r,o){1&r&&(t.nVh(0,$t,3,2),t.nVh(1,jt,4,6)),2&r&&(t.vxM(o.isMinicart?-1:0),t.R7$(),t.vxM(o.isMinicart?1:-1))},dependencies:[Pt,h.Jj],encapsulation:2})}}return e})();const Ft=()=>({isSaveForLater:!1});function Vt(e,n){if(1&e&&(t.j41(0,"div",0),t.nrm(1,"app-custom-list-item-component",1),t.nI1(2,"async"),t.k0s()),2&e){const i=t.XpG(),r=t.XpG(),o=t.XpG();
1t.R7$(),t.Y8G("items",i)("cartIsLoading",!t.bMT(2,6,o.cartLoaded$))("promotionLocation",o.promotionLocation)("options",t.lJ4(8,Ft))("cartCodeString",r.code)("cart",r)}}function Ut(e,n){if(1&e&&t.nVh(0,Vt,3,9,"div",0),2&e){const i=t.XpG();t.vxM(i&&i.totalItems&&i.totalItems>0?0:-1)}}function zt(e,n){if(1&e&&(t.nVh(0,Ut,1,1),t.nI1(1,"async")),2&e){let i;const r=t.XpG();t.vxM((i=t.bMT(1,1,r.entries$))?0:-1,i)}}let At=(()=>{class e extends u.KB{constructor(i,r,o,c,s,m,l){super(o,c,s,m,l),this.cartService=i,this.winRef=r}ngOnInit(){super.ngOnInit(),this.cart$=this.activeCartService.getActive(),this.entries$=this.activeCartService.getEntries().pipe((0,O.p)(i=>i.length>0)),this.selectiveCartEnabled=this.cartConfig.isSelectiveCartEnabled(),this.cartLoaded$=(0,L.z)([this.activeCartService.isStable(),this.selectiveCartEnabled?this.selectiveCartService.isStable():(0,j.of)(!1),this.authService.isUserLoggedIn()]).pipe((0,S.M)(([,,i])=>this.loggedIn=i),(0,g.T)(([i,r,o])=>o&&this.selectiveCartEnabled?i&&r:i))}static{this.\u0275fac=function(r){return new(r||e)(t.rXU(C.e2),t.rXU(d.WTn),t.rXU(_.NL),t.rXU(_.z$),t.rXU(d.uRZ),t.rXU(d.Oie),t.rXU(C.Q3))}}static{this.\u0275cmp=t.VBU({type:e,selectors:[["app-custom-cart-details"]],standalone:!1,features:[t.Vt3],decls:2,vars:3,consts:[[1,"cart-details-wrapper"],[3,"items","cartIsLoading","promotionLocation","options","cartCodeString","cart"]],template:function(r,o){if(1&r&&(t.nVh(0,zt,2,3),t.nI1(1,"async")),2&r){let c;t.vxM((c=t.bMT(1,1,o.cart$))?0:-1,c)}},dependencies:[Gt,h.Jj],styles:["app-custom-list-item-component{display:flex;flex-direction:column-reverse}\n"],encapsulation:2})}}return e})()}}]);

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.