1"use strict";(self.webpackChunkfabindia=self.webpackChunkfabindia||[]).push([[4276],{34276(Nt,h,s){s.d(h,{t:()=>St});var t=s(41360),u=s(76707),P=s(84412),C=s(18359),b=s(33726),m=s(76325),d=s(71005),v=s(84526),G=s(73117),_=s(32881),x=s(49870),I=s(12550);const k=["widgetsContent"],p=e=>({data:e}),E=e=>({"background-color":e}),R=e=>({"product-recommendation-cart":e}),D=(e,l)=>({data:e,index:l}),f=e=>({cxRoute:"product",params:e}),F=(e,l)=>({promoname:e,promoID:l}),T=e=>({promoname:e}),S=e=>({promoID:e});function $(e,l){if(1&e&&(t.j41(0,"h2"),t.EFF(1),t.k0s()),2&e){const n=t.XpG(3);t.R7$(),t.JRh(n.title)}}function O(e,l){1&e&&t.eu8(0)}function N(e,l){if(1&e&&(t.j41(0,"div",16),t.DNE(1,O,1,0,"ng-container",17),t.k0s()),2&e){const n=t.XpG().$implicit;t.XpG(3);const o=t.sdS(4);t.R7$(),t.Y8G("ngTemplateOutlet",o)("ngTemplateOutletContext",t.eq3(2,p,n))}}function z(e,l){if(1&e&&(t.qex(0),t.DNE(1,N,2,4,"div",15),t.bVm()),2&e){const n=l.$implicit;t.R7$(),t.Y8G("ngIf",n)}}function j(e,l){if(1&e){const n=t.RV6();t.j41(0,"a",18),t.bIt("click",function(){t.eBV(n);const i=t.XpG(3);return t.Njj(i.scrollLeft())}),t.nrm(1,"i",19),t.k0s()}}function y(e,l){if(1&e){const n=t.RV6();t.j41(0,"a",20),t.bIt("click",function(){t.eBV(n);const i=t.XpG(3);return t.Njj(i.scrollRight())}),t.nrm(1,"i",21),t.k0s()}}function M(e,l){1&e&&t.eu8(0)}function Y(e,l){if(1&e&&(t.j41(0,"div",23),t.DNE(1,M,1,0,"ng-container",17),t.k0s()),2&e){const n=t.XpG().$implicit;t.XpG(3);const o=t.sdS(4);t.R7$(),t.Y8G("ngTemplateOutlet",o)("ngTemplateOutletContext",t.eq3(2,p,n))}}function w(e,l){if(1&e&&(t.qex(0),t.DNE(1,Y,2,4,"div",22),t.bVm()),2&e){const n=l.$implicit;t.R7$(),t.Y8G("ngIf",n)}}function X(e,l){if(1&e&&(t.qex(0),t.DNE(1,$,2,1,"h2",4),t.j41(2,"div",5)(3,"div",6)(4,"div",7),t.nrm(5,"div",8),t.j41(6,"div",9,2),t.DNE(8,z,2,1,"ng-container",10),t.k0s()(),t.DNE(9,j,2,0,"a",11)(10,y,2,0,"a",12),t.k0s()(),t.j41(11,"div",13)(12,"div",14),t.DNE(13,w,2,1,"ng-container",10),t.k0s()(),t.bVm()),2&e){const n=l.ngIf,o=t.XpG(2);t.R7$(),t.Y8G("ngIf",o.title),t.R7$(7),t.Y8G("ngForOf",n),t.R7$(),t.Y8G("ngIf",(null==n?null:n.length)>4),t.R7$(),t.Y8G("ngIf",(null==n?null:n.length)>4),t.R7$(3),t.Y8G("ngForOf",n)}}function V(e,l){if(1&e&&(t.qex(0),t.DNE(1,X,14,5,"ng-container",4),t.bVm()),2&e){const n=t.XpG();t.R7$(),t.Y8G("ngIf",null==n.items?null:n.items.products)}}function B(e,l){if(1&e&&(t.j41(0,"h2"),t.EFF(1),t.k0s()),2&e){const n=t.XpG(3);t.R7$(),t.JRh(n.title)}}function L(e,l){1&e&&t.eu8(0)}function U(e,l){if(1&e&&(t.j41(0,"div",26),t.DNE(1,L,1,0,"ng-container",17),t.k0s()),2&e){const n=t.XpG().$implicit;t.XpG(3);const o=t.sdS(4);t.R7$(),t.Y8G("ngTemplateOutlet",o)("ngTemplateOutletContext",t.eq3(2,p,n))}}function A(e,l){if(1&e&&(t.qex(0),t.DNE(1,U,2,4,"div",25),t.bVm()),2&e){const n=l.$implicit;t.R7$(),t.Y8G("ngIf",n)}}function q(e,l){if(1&e){const n=t.RV6();t.j41(0,"a",18),t.bIt("click",function(){t.eBV(n);const i=t.XpG(3);return t.Njj(i.scrollLeft())}),t.nrm(1,"i",19),t.k0s()}}function W(e,l){if(1&e){const n=t.RV6();t.j41(0,"a",20),t.bIt("click",function(){t.eBV(n);const i=t.XpG(3);return t.Njj(i.scrollRight())}),t.nrm(1,"i",21),t.k0s()}}function K(e,l){1&e&&t.eu8(0)}function H(e,l){if(1&e&&(t.j41(0,"div",23),t.DNE(1,K,1,0,"ng-container",17),t.k0s()),2&e){const n=t.XpG().$implicit;t.XpG(3);const o=t.sdS(4);t.R7$(),t.Y8G("ngTemplateOutlet",o)("ngTemplateOutletContext",t.eq3(2,p,n))}}function J(e,l){if(1&e&&(t.qex(0),t.DNE(1,H,2,4,"div",22),t.bVm()),2&e){const n=l.$implicit;t.R7$(),t.Y8G("ngIf",n)}}function Z(e,l){if(1&e&&(t.qex(0),t.DNE(1,B,2,1,"h2",4),t.j41(2,"div",5)(3,"div",6)(4,"div",7),t.nrm(5,"div",24),t.j41(6,"div",9,2),t.DNE(8,A,2,1,"ng-container",10),t.k0s()(),t.DNE(9,q,2,0,"a",11)(10,W,2,0,"a",12),t.k0s()(),t.j41(11,"div",13)(12,"div",14),t.DNE(13,J,2,1,"ng-container",10),t.k0s()(),t.bVm()),2&e){const n=l.ngIf,o=t.XpG(2);t.R7$(),t.Y8G("ngIf",o.title),t.R7$(4),t.Y8G("ngStyle",t.eq3(6,E,o.data.color)),t.R7$(3),t.Y8G("ngForOf",n),t.R7$(),t.Y8G("ngIf",(null==n?null:n.length)>3),t.R7$(),t.Y8G("ngIf",(null==n?null:n.length)>3),t.R7$(3),t.Y8G("ngForOf",n)}}function Q(e,l){if(1&e&&(t.qex(0),t.DNE(1,Z,14,8,"ng-container",4),t.bVm()),2&e){const n=t.XpG();t.R7$(),t.Y8G("ngIf",null==n.items?null:n.items.products)}}function tt(e,l){1&e&&t.eu8(0)}function nt(e,l){if(1&e&&(t.j41(0,"div",30),t.DNE(1,tt,1,0,"ng-container",17),t.k0s()),2&e){const n=t.XpG(),o=n.$implicit,i=n.index,r=t.XpG(2),c=t.sdS(6);t.Y8G("ngClass",t.eq3(3,R,r.isCartPage)),t.R7$(),t.Y8G("ngTemplateOutlet",c)("ngTemplateOutletContext",t.l_i(5,D,o,i))}}function et(e,l){if(1&e&&(t.qex(0),t.DNE(1,nt,2,8,"div",29),t.bVm()),2&e){const n=l.$implicit;t.R7$(),t.Y8G("ngIf",n.stock>
10||0==n.stock&&(null==n||null==n.sizeGroup||null==n.sizeGroup[0]?null:n.sizeGroup[0].stock)>0)}}function ot(e,l){if(1&e){const n=t.RV6();t.j41(0,"a",18),t.bIt("click",function(){t.eBV(n);const i=t.XpG(2);return t.Njj(i.scrollLeft())}),t.nrm(1,"i",19),t.k0s()}}function it(e,l){if(1&e){const n=t.RV6();t.j41(0,"a",20),t.bIt("click",function(){t.eBV(n);const i=t.XpG(2);return t.Njj(i.scrollRight())}),t.nrm(1,"i",21),t.k0s()}}function lt(e,l){1&e&&t.eu8(0)}function rt(e,l){if(1&e&&(t.j41(0,"div",23),t.DNE(1,lt,1,0,"ng-container",17),t.k0s()),2&e){const n=t.XpG().$implicit;t.XpG(2);const o=t.sdS(6);t.R7$(),t.Y8G("ngTemplateOutlet",o)("ngTemplateOutletContext",t.eq3(2,p,n))}}function ct(e,l){if(1&e&&(t.qex(0),t.DNE(1,rt,2,4,"div",22),t.bVm()),2&e){const n=l.$implicit;t.R7$(),t.Y8G("ngIf",n)}}function at(e,l){if(1&e&&(t.qex(0),t.j41(1,"div",5)(2,"div",6)(3,"div",27)(4,"div",9,2),t.DNE(6,et,2,1,"ng-container",28),t.k0s()(),t.DNE(7,ot,2,0,"a",11)(8,it,2,0,"a",12),t.k0s()(),t.j41(9,"div",13)(10,"div",14),t.DNE(11,ct,2,1,"ng-container",28),t.k0s()(),t.bVm()),2&e){const n=t.XpG();t.R7$(6),t.Y8G("ngForOf",n.bestSellerProducts)("ngForTrackBy",n.trackByProduct),t.R7$(),t.Y8G("ngIf",(null==n.bestSellerProducts?null:n.bestSellerProducts.length)>4),t.R7$(),t.Y8G("ngIf",(null==n.bestSellerProducts?null:n.bestSellerProducts.length)>4),t.R7$(3),t.Y8G("ngForOf",n.bestSellerProducts)("ngForTrackBy",n.trackByProduct)}}function st(e,l){if(1&e&&t.nrm(0,"cx-media",42),2&e){const n=t.XpG().data,o=t.XpG();t.Y8G("container",o.getModifiedImage(null==n.images?null:n.images.PRIMARY))("alt",n.summary?n.summary:n.name)}}function ut(e,l){if(1&e&&t.nrm(0,"cx-media",42),2&e){const n=t.XpG().data,o=t.XpG();t.Y8G("container",o.getModifiedImage(n.images))("alt",n.summary?n.summary:n.name)}}function _t(e,l){if(1&e&&(t.j41(0,"span",43),t.EFF(1),t.nI1(2,"cxTranslate"),t.k0s()),2&e){const n=t.XpG(2);t.R7$(),t.SpI("","INR"==n.selectedCurrency?t.bMT(2,1,"fabProductList.mrp"):""," ")}}function pt(e,l){1&e&&(t.j41(0,"span",44),t.EFF(1,"M.R.P.\xa0"),t.k0s())}function dt(e,l){if(1&e&&(t.j41(0,"del")(1,"span",45),t.EFF(2),t.k0s()()),2&e){const n=t.XpG().data;t.R7$(2),t.JRh(null==n.price?null:n.price.formattedValue)}}function mt(e,l){if(1&e&&(t.j41(0,"ins")(1,"span",45),t.EFF(2),t.nI1(3,"number"),t.k0s()()),2&e){const n=t.XpG().data;t.R7$(2),t.SpI("",t.i5U(3,1,(null==n.totalDiscount?null:n.totalDiscount.value)/(null==n.price?null:n.price.value)*100,"1.0-0"),"% off")}}function gt(e,l){1&e&&(t.j41(0,"span",46),t.EFF(1),t.nI1(2,"cxTranslate"),t.k0s()),2&e&&(t.R7$(),t.JRh(t.bMT(2,1,"fabCommon.outOfStock")))}function ft(e,l){if(1&e){const n=t.RV6();t.j41(0,"a",31),t.nI1(1,"cxUrl"),t.bIt("click",function(){const i=t.eBV(n).data,r=t.XpG();return t.Njj(r.onClickEvent(i))}),t.j41(2,"div",32)(3,"div"),t.DNE(4,st,1,2,"cx-media",33)(5,ut,1,2,"cx-media",33),t.j41(6,"div",34)(7,"a",35),t.nI1(8,"cxUrl"),t.bIt("click",function(){const i=t.eBV(n).data,r=t.XpG();return t.Njj(r.onClickEvent(i))}),t.nrm(9,"p",36),t.k0s(),t.j41(10,"p",37),t.DNE(11,_t,3,3,"span",38),t.j41(12,"span",39),t.EFF(13),t.k0s(),t.DNE(14,pt,2,0,"span",40)(15,dt,3,1,"del",4)(16,mt,4,4,"ins",4)(17,gt,3,3,"span",41),t.k0s()()()()()}if(2&e){const n=l.data,o=t.XpG();t.Y8G("routerLink",t.bMT(1,12,t.eq3(16,f,n)))("queryParams",o.promoName?o.promoID?t.l_i(18,F,o.promoName,o.promoID):t.eq3(21,T,o.promoName):o.promoID?t.eq3(23,S,o.promoID):null),t.R7$(4),t.Y8G("ngIf",!o.isBestSeller),t.R7$(),t.Y8G("ngIf",o.isBestSeller),t.R7$(2),t.Y8G("routerLink",t.bMT(8,14,t.eq3(25,f,n))),t.R7$(2),t.Y8G("innerHtml",n.nameHtml?n.nameHtml:n.name,t.npT),t.R7$(2),t.Y8G("ngIf",0==(null==n||null==n.totalDiscount?null:n.totalDiscount.value)),t.R7$(2),t.SpI("",(null==n.totalDiscount?null:n.totalDiscount.value)>0?null==n.priceAfterDiscount?null:n.priceAfterDiscount.formattedValue:null==n.price?null:n.price.formattedValue," "),t.R7$(),t.Y8G("ngIf",(null==n||null==n.totalDiscount?null:n.totalDiscount.value)&&"INR"==o.selectedCurrency),t.R7$(),t.Y8G("ngIf",n.totalDiscount&&(null==n.totalDiscount?null:n.totalDiscount.value)>0),t.R7$(),t.Y8G("ngIf",n.totalDiscount&&(null==n.totalDiscount?null:n.totalDiscount.value)>0),t.R7$(),t.Y8G("ngIf",(null==n||null==n.stock?null:n.stock.stockLevel)<=0||"outOfStock"==(null==n||null==n.stock?null:n.stock.stockLevelStatus))}}function ht(e,l){if(1&e&&t.nrm(0,"cx-media",42),2&e){const n=t.XpG().data,o=t.XpG();t.Y8G("container",o.getModifiedImage(n.images))("alt",n.summary?n.summary:n.name)}}function Pt(e,l){1&e&&(t.j41(0,"span",43),t.EFF(1),t.nI1(2,"cxTranslate"),t.k0s()),2&e&&(t.R7$(),t.SpI(" ",t.bMT(2,1,"fabProductList.mrp"),"\n"))}function Ct(e,l){if(1&e&&(t.qex(0),t.EFF(1),t.bVm()),2&e){const n=t.XpG().data;t.R7$(),t.SpI(" ",null==n?null:n.variantPriceRange," ")}}function bt(e,l){if(1&e&&(t.j41(0,"ng-contianer"),t.EFF(1),t.k0s()),2&e){const n=t.XpG(2).data;t.R7$(),t.SpI(" ",(null==n||null==n.discount?null:n.discount.value)>0?null==n||null==n.priceAfterDiscount?null:n.priceAfterDiscount.formattedValue:null==n||null==n.price?null:n.price.formattedValue," ")}}function vt(e,l){if(1&e&&(t.j41(0,"ng-contianer"),t.EFF(1),t.k0s()),2&e){const n=t.XpG(2).data;t.R7$(),t.SpI(" ",(null==n||null==n.sizeGroup||null==n.sizeGroup[0]||null==n.sizeGroup[0].discount?null:n.sizeGroup[0].discount.value)>0?null==n||null==n.sizeGroup||null==n.sizeGroup[0]||null==n.sizeGroup[0].priceAfterDiscount?null:n.sizeGroup[0].priceAfterDiscount.formattedValue:null==n||null==n.sizeGroup||null==n.sizeGroup[0]||null==n.sizeGroup[0].price?null:n.sizeGroup[0].price.formattedValue," ")}}function Gt(e,l){if(1&e&&t.DNE(0,bt,2,1,"ng-contianer",4)(1,vt,2,1,"ng-contianer",4),2&e){const n=t.XpG().data;t.Y8G("ngIf",(null==n?null:n.stock)>0),t.R7$(),t.Y8G("ngIf",0==(null==n?null:n.stock)&&(null==n||null==n.sizeGroup||null==n.sizeGroup[0]?null:n.sizeGroup[0].stock)>0)}}function xt(e,l){1&e&&(t.j41(0,"span",44),t.EFF(1," M.R.P.\xa0 "),t.k0s())}function It(e,l){if(1&e&&(t.j41(0,"span",45),t.EFF(1),t.k0s()),2&e){const n=t.XpG(2).data;t.R7$(),t.SpI("",null==n||null==n.price?null:n.price.formattedValue," ")}}function kt(e,l){if(1&e&&(t.j41(0,"span",45),t.EFF(1),t.k0s()),2&e){const n=t.XpG(2).data;t.R7$(),t.SpI("",null==n.sizeGroup||null==n.sizeGroup[0]||null==n.sizeGroup[0].price?null:n.sizeGroup[0].price.formattedValue," ")}}function Et(e,l){if(1&e&&(t.j41(0,"span",45),t.EFF(1),t.nI1(2,"number"),t.k0s()),2&e){const n=t.XpG(2).data;t.R7$(),t.SpI(" ",t.i5U(2,1,null!=n&&null!=n.price&&n.price.value?(null==n.discount?null:n.discount.value)/(null==n.price?null:n.price.value)*100:0,"1.0-0"),"% off ")}}function Rt(e,l){if(1&e&&(t.j41(0,"span",45),t.EFF(1),t.nI1(2,"number"),t.k0s()),2&e){const n=t.XpG(2).data;t.R7$(),t.SpI(" ",t.i5U(2,1,null!=n&&null!=n.sizeGroup&&null!=n.sizeGroup[0]&&null!=n.sizeGroup[0].price&&n.sizeGroup[0].price.value?(null==n||null==n.sizeGroup||null==n.sizeGroup[0]||null==n.sizeGroup[0].discount?null:n.sizeGroup[0].discount.value)/(null==n||null==n.sizeGroup||null==n.sizeGroup[0]||null==n.sizeGroup[0].price?null:n.sizeGroup[0].price.value)*100:0,"1.0-0"),"% off ")}}function Dt(e,l){if(1&e&&(t.qex(0),t.DNE(1,xt,2,0,"span",40),t.j41(2,"del"),t.DNE(3,It,2,1,"span",50)(4,kt,2,1,"span",50),t.k0s(),t.j41(5,"ins",51),t.DNE(6,Et,3,4,"span",50)(7,Rt,3,4,"span",50),t.k0s(),t.bVm()),2&e){const n=t.XpG().data,o=t.XpG();t.R7$(),t.Y8G("ngIf","INR"===o.selectedCurrency),t.R7$(2),t.Y8G("ngIf",(null==n?null:n.stock)>0),t.R7$(),t.Y8G("ngIf",0==(null==n?null:n.stock)&&(null==n||null==n.sizeGroup||null==n.sizeGroup[0]?null:n.sizeGroup[0].stock)>0),t.R7$(),t.Y8G("ngClass",o.isCartPage?"discount-percentage":""),t.R7$(),t.Y8G("ngIf",(null==n?null:n.stock)>0),t.R7$(),t.Y8G("ngIf",0==(null==n?null:n.stock)&&(null==n||null==n.sizeGroup||null==n.sizeGroup[0]?null:n.sizeGroup[0].stock)>0)}}function Ft(e,l){if(1&e){const n=t.RV6();t.qex(0),t.j41(1,"div",52)(2,"app-fab-variant-size-selector",53),t.bIt("variantChange",function(i){t.eBV(n);const r=t.XpG().data,c=t.XpG();return t.Njj(c.onRecoVariantChange(i,r))}),t.k0s()(),t.bVm()}if(2&e){const n=t.XpG().data,o=t.XpG();t.R7$(2),t.Y8G("isCartPage",o.isCartPage)("productRecommendation",n)}}function Tt(e,l){if(1&e){const n=t.RV6();t.j41(0,"a",47),t.bIt("click",function(){const i=t.eBV(n),r=i.data,c=i.index,a=t.XpG();return t.Njj(a.onClickEvent(r,a.widgetDetail,c))}),t.k0s(),t.j41(1,"div",32)(2,"div")(3,"a",35),t.bIt("click",function(){const i=t.eBV(n),r=i.data,c=i.index,a=t.XpG();return t.Njj(a.onClickEvent(r,a.widgetDetail,c))}),t.DNE(4,ht,1,2,"cx-media",33),t.k0s(),t.j41(5,"div",48)(6,"a",35),t.bIt("click",function(){const i=t.eBV(n).data,r=t.XpG();return t.Njj(r.onClickEvent(i))}),t.nrm(7,"p",36),t.k0s(),t.j41(8,"p",37),t.DNE(9,Pt,3,3,"span",38),t.j41(10,"span",39),t.DNE(11,Ct,2,1,"ng-container",49)(12,Gt,2,2,"ng-template",null,3,t.C5r),t.k0s(),t.DNE(14,Dt,8,6,"ng-container",4)(15,Ft,3,2,"ng-container",4),t.k0s()()()()}if(2&e){const n=l.data,o=t.sdS(13),i=t.XpG();t.Y8G("routerLink",n.productUrl),t.R7$(3),t.Y8G("routerLink",n.productUrl),t.R7$(),t.Y8G("ngIf",i.isBestSeller),t.R7$(),t.Y8G("ngClass",i.isCartPage?"produc-des-cont-cart-page":""),t.R7$(),t.Y8G("routerLink",n.productUrl),t.R7$(),t.Y8G("innerHtml",n.nameHtml?n.nameHtml:n.name,t.npT),t.R7$(2),t.Y8G("ngIf",!("INR"!==i.selectedCurrency||null!=n&&null!=n.discount&&n.discount.value||null!=n&&n.variantPriceRange&&(null==n||!n.selectedVariant))),t.R7$(2),t.Y8G("ngIf",(null==n?null:n.variantPriceRange)&&!(null!=n&&n.selectedVariant)&&(!(null!=n&&n.sizeGroup)||(null==n||null==n.sizeGroup?null:n.sizeGroup.length)>1))("ngIfElse",o),t.R7$(3),t.Y8G("ngIf",(null==n||null==n.discount?null:n.discount.value)>0&&!(null!=n&&n.variantPriceRange&&(null==n||!n.selectedVariant))),t.R7$(),t.Y8G("ngIf",i.isCartPage)}}let St=(()=>{class e extends u.gUq{set bestSellerProducts(n){this._bestSellerProducts=Array.isArray(n)?n:[],this.applyInternationalFilters()}get bestSellerProducts(){return this._bestSellerProducts}constructor(n,o,i,r,c,a,g,$t,Ot){super(n,o),this.el=n,this.service=o,this.zone=i,this.winRef=r,this.fabCustomEventBuilder=c,this.fabProdcutService=a,this.currencyService=g,this.breakpointService=$t,this.cdr=Ot,this.itemWidth="25%",this.size=this.getSize(),this.sizeGift=this.getSizeGift(),this.productShownNumber=new P.t(null),this.isCartPage=!1,this.scrollPosition=0,this._bestSellerProducts=[],this.selectedProductPlp=new t.bkB,this.subscriptions=new C.yU,this.x=1,this.carouselProducts$=this.fabProdcutService.loadCarou
1selProducts$(),this.promoName="",this.promoID="",this.unbxdScriptLoaded=!1}removeComments(n){for(var o=n?.childNodes,i=0;i<o.length;i++){var r=o[i];r.nodeType===Node.COMMENT_NODE?(n.removeChild(r),i--):r.nodeType===Node.ELEMENT_NODE&&this.removeComments(r)}}updateIcons(n){const o=this.el.nativeElement.querySelector(".seller-kurta-carousel .carousel-overflow");if(o){if("right"===n){const i=o.firstElementChild;i&&o.appendChild(i)}if("left"===n){const i=o.lastElementChild;i&&o.insertBefore(i,o.firstElementChild)}}}scrollRight(){const n=this.el.nativeElement.querySelector(".seller-kurta-carousel .carousel-overflow");if(!n||!this.widgetsContent)return;if(1===this.x){const i=n.lastElementChild;if(i){const r=i.cloneNode(!0);r.id="carousel-extra-content",n.insertBefore(r,n.firstElementChild),this.x++}}this.widgetsContent.nativeElement.scrollTo({left:this.widgetsContent.nativeElement.scrollLeft-this.el.nativeElement.offsetWidth/this.countProducts}),this.updateIcons("right"),this.widgetsContent.nativeElement.scrollTo({left:this.widgetsContent.nativeElement.scrollLeft+this.el.nativeElement.offsetWidth/this.countProducts,behavior:"smooth"});const o=this.winRef.document.getElementById("carousel-extra-content");o&&n.contains(o)&&n.removeChild(o)}scrollLeft(){this.widgetsContent&&(this.widgetsContent.nativeElement.scrollTo({left:this.widgetsContent.nativeElement.scrollLeft+this.el.nativeElement.offsetWidth/this.countProducts}),this.updateIcons("left"),this.widgetsContent.nativeElement.scrollTo({left:this.widgetsContent.nativeElement.scrollLeft-this.el.nativeElement.offsetWidth/this.countProducts,behavior:"smooth"}))}getProductNumber(){return this.productShownNumber.asObservable()}ngOnInit(){let n;this.selectedProduct=this.product,this.countProducts=this.componentData?.giftHeading?3:this.isCartPage?5:4,this.resizeObservable$=(0,b.R)(window,"resize"),this.subscriptions.add(this.resizeObservable$.subscribe(()=>{this.size=this.getSize(),this.sizeGift=this.getSizeGift()})),this.subscriptions.add(this.currencyService.getActive().subscribe(i=>{this.selectedCurrency=i,this.applyInternationalFilters()}));const o=new URLSearchParams(this.winRef?.nativeWindow?.location?.search);if(o?.has("promoname")){const i=o.get("promoname"),r=o.get("promoID");this.promoName=decodeURIComponent(i),this.promoID=decodeURIComponent(r),this.winRef?.nativeWindow?.sessionStorage?.setItem("promoName",this.promoName),this.winRef?.nativeWindow?.sessionStorage?.setItem("promoID",this.promoID)}if(this.widgetDetail){let i=this.widgetDetail?.count?.map(r=>r?.optionId);n={pageType:this.widgetDetail.pageType,widgetId:this.widgetDetail.widgetID,Count:i||[]},this.unbxdScriptLoaded?this.fabCustomEventBuilder.experienceImpression$.next(new m.eI(n)):setTimeout(()=>{this.fabCustomEventBuilder.experienceImpression$.next(new m.eI(n)),this.unbxdScriptLoaded=!0},5e3)}}getSize(){return this.breakpointService.isUp(u.SLZ.md)?4:this.breakpointService.isDown(u.SLZ.md)?2:4}getSizeGift(){return this.breakpointService.isUp(u.SLZ.md)?3:this.breakpointService.isDown(u.SLZ.md)?2:4}ngAfterContentInit(){}ngAfterViewInit(){}ngAfterViewChecked(){let n=this.el.nativeElement.querySelectorAll(".seller-kurta-carousel .carousel-item"),o=this.el.nativeElement.querySelector(".seller-kurta-carousel");o&&(this.carouselInner=o.querySelector(".carousel-inner"),this.carouselItem=o.querySelector(".carousel-item")),n&&n.length>4&&n.forEach(i=>{let c=i.nextElementSibling;for(var a=1;a<4;a++){if(!c)return;let g=c.cloneNode(!0);i.appendChild(g.children[0]),c=c.nextElementSibling}})}next(){this.winRef.document.getElementById("myDIV").scrollLeft+=50}prev(){this.scrollPosition>0&&(this.scrollPosition-=this.carouselItem.clientWidth,this.carouselInner.scrollTo({top:0,left:this.scrollPosition,behavior:"smooth"}))}calculateItems(n,o){let i=0;return o.endsWith("px")&&(i=n/o.substring(0,o.length-2)),o.endsWith("%")&&(i=n/(n*(o.substring(0,o.length-1)/100))),Math.floor(i)||1}ngOnDestroy(){this.subscriptions&&this.subscriptions.unsubscribe()}nextSlide(){this.activeSlide++}previousSlide(){this.activeSlide--}
1onClickEvent(n,o,i){const r=o?{...n,widgetDetail:o,index:i}:n;this.fabCustomEventBuilder.productClick$.next(new m.uX(r))}getModifiedImage(n){const o=r=>r?.includes("?")?`${r}&aio=w-400`:`${r}?aio=w-400`;if(!n||"object"!=typeof n)return n??{};const i={};return Object.keys(n||{}).forEach(r=>{const c=n[r];i[r]={...c,url:c?.url?o(c.url):c?.url}}),i}trackByProduct(n,o){return o?.code||o?.id||o?.productCode||n}selectedVarient(n){this.zone.run(()=>{this.selectedProduct={...n,price:n?.priceData},this.selectedProductPlp.emit(this.selectedProduct),this.cdr.markForCheck()})}onRecoVariantChange(n,o){if(!n||!o)return;o.selectedVariant=n;const i=(this.selectedCurrency||"USD").toUpperCase(),r=Number(n?.price?.value??n?.price??o?.price?.value??0),c=Number(n?.discount?.value??o?.discount?.value??0),a=n?.priceAfterDiscount?.value??n?.priceAfterDiscount??(c>0?r-c:r);"USD"===i?(o.price={value:r,formattedValue:n?.price?.formattedValue??o?.price?.formattedValue},o.priceAfterDiscount={value:Number(a),formattedValue:n?.priceAfterDiscount?.formattedValue??o?.priceAfterDiscount?.formattedValue}):(o.price={value:r,formattedValue:this.formatPrice(r)},o.priceAfterDiscount={value:Number(a),formattedValue:this.formatPrice(Number(a))}),o.discount={value:c},this.cdr.markForCheck()}isInternational(){return"INR"!==(this.selectedCurrency||"").toUpperCase()}formatPrice(n,o){if(null==n)return"";const i=(o||this.selectedCurrency||"USD").toUpperCase(),r="INR"===i?"en-IN":"en-US",c=Math.round(n);return new Intl.NumberFormat(r,{style:"currency",currency:i,minimumFractionDigits:0,maximumFractionDigits:0}).format(c)}hasInStockSizeGroup(n){const o=n?.sizeGroup;return!(!Array.isArray(o)||0===o.length)&&o.some(i=>Number(i?.stock)>0)}isProductLevelInStock(n){return(n?.stockStatus||"").toLowerCase(),Number(n?.stock||0)>0}applyInternationalFilters(){this.isInternational()&&(!Array.isArray(this._bestSellerProducts)||0===this._bestSellerProducts.length||(this._bestSellerProducts=this._bestSellerProducts.map(n=>{const o=Array.isArray(n?.sizeGroup)?n.sizeGroup:[],i=o.filter(r=>Number(r?.stock)>0);return{...n,sizeGroup:i.length>0?i:o}}).filter(n=>this.hasInStockSizeGroup(n)||this.isProductLevelInStock(n)),this.cdr.markForCheck()))}static{this.\u0275fac=function(o){return new(o||e)(t.rXU(t.aKT),t.rXU(u.Yah),t.rXU(t.SKi),t.rXU(d.WTn),t.rXU(v.o),t.rXU(G.K),t.rXU(d.PnO),t.rXU(u.dci),t.rXU(t.gRc))}}static{this.\u0275cmp=t.VBU({type:e,selectors:[["cx-carousel"]],viewQuery:function(o,i){if(1&o&&t.GBs(k,5,t.aKT),2&o){let r;t.mGM(r=t.lsd())&&(i.widgetsContent=r.first)}},inputs:{componentData:"componentData",items:"items",widgetDetail:"widgetDetail",isCartPage:"isCartPage",isBestSeller:"isBestSeller",bestSellerProducts:"bestSellerProducts",product:"product"},outputs:{selectedProductPlp:"selectedProductPlp"},standalone:!1,features:[t.Vt3],decls:7,vars:3,consts:[["product",""],["productRecommendation",""],["widgetsContent",""],["normalPrice",""],[4,"ngIf"],[1,"d-none","d-sm-block","product_carousel_arrrow-align"],[1,"carousel"],["id","myDIV",1,"row","seller-kurta-carousel","custom-row-mr"],[1,"desktop-slide-hider"],[1,"carousel-overflow","px-0"],[4,"ngFor","ngForOf"],["class","carousel-control-prev","role","button","data-bs-slide","prev",3,"click",4,"ngIf"],["class","carousel-control-next","role","button","data-bs-slide","next",3,"click",4,"ngIf"],[1,"row","d-sm-none","d-block","seller-kurta-carousel"],[1,"carousel-overflow","pl-0"],["class","col-8 col-sm-6 col-md-3 pl-0",4,"ngIf"],[1,"col-8","col-sm-6","col-md-3","pl-0"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["role","button","data-bs-slide","prev",1,"carousel-control-prev",3,"click"],[1,"fas","fa-chevron-left"],["role","button","data-bs-slide","next",1,"carousel-control-next",3,"click"],[1,"fas","fa-chevron-right"],["class","col-8 custom-p-l-0-mob",4,"ngIf"],[1,"col-8","custom-p-l-0-mob"],[1,"desktop-slide-hider",3,"ngStyle"],["class","col-4 col-sm-4 col-md-4 pl-0",4,"ngIf"],[1,"col-4","col-sm-4","col-md-4","pl-0"],["id","myDIV",1,"row","seller-kurta-carousel"],[4,"ngFor","ngForOf","ngForTrackBy"],["class","col-8 col-sm-6 col-md-3 pl-0",3,"ngClass",4,"ngIf"],[1,"col-8","col-sm-6","col-md-3","pl-0",3,"ngClass"],["target","_blank","tabindex","-1",1,"text-decoration-none","text-muted","text-secondary",3,"click","routerLink","queryParams"],[1,"kurta-home-product"],["class","product-image","format","product","loading","lazy",3,"container","alt",4,"ngIf"],[1,"produc-des-cont"],["tabindex","-1","target","_blank",1,"text-decoration-none","text-muted","text-secondary",3,"click","routerLink"],[1,"product-description",3,"innerHtml"],[1,"product-description"],["class","mrp_text",4,"ngIf"],[1,"offer-amount"],["class","mrp-sale",4,"ngIf"],["class","text-danger",4,"ngIf"],["format","product","loading","lazy",1,"product-image",3,"container","alt"],[1,"mrp_text"],[1,"mrp-sale"],[1,"amount"],[1,"text-danger"],["target","_blank","tabindex","-1",1,"text-decoration-none","text-muted","text-secondary",3,"click","routerLink"],[1,"produc-des-cont",3,"ngClass"],[4,"ngIf","ngIfElse"],["class","amount",4,"ngIf"],[3,"ngClass"],[1,"size-selection"],[3,"variantChange","isCartPage","productRecommendation"]],template:function(o,i){1&o&&t.DNE(0,V,2,1,"ng-container",4)(1,Q,2,1,"ng-container",4)(2,at,12,6,"ng-container",4)(3,ft,18,27,"ng-template",null,0,t.C5r)(5,Tt,16,11,"ng-template",null,1,t.C5r),2&o&&(t.Y8G("ngIf",i.items&&i.size&&!i.isBestSeller&&!(null!=i.componentData&&i.componentData.giftHeading)),t.R7$(),t.Y8G("ngIf",i.items&&i.sizeGift&&!i.isBestSeller&&(null==i.componentData?null:i.componentData.giftHeading)),t.R7$(),t.Y8G("ngIf",i.isBestSeller&&i.bestSellerProducts&&i.size))},dependencies:[_.YU,_.Sq,_.bT,_.T3,_.B3,x.Wk,u.w_H,I.I,_.QX,d._xc,d.D97],styles:[".mrp_text[_ngcontent-%COMP%]{font-size:1rem}.mrp-sale[_ngcontent-%COMP%]{font-size:.8rem}.desktop-slide-hider[_ngcontent-%COMP%]{background:#fff;position:absolute;z-index:1;height:100%;width:15px;right:0;padding:0;top:0}#myDIV[_ngcontent-%COMP%]{position:relative}.carousel-control-next[_ngcontent-%COMP%], .carousel-control-prev[_ngcontent-%COMP%]{top:38%}.product-recommendation-cart[_ngcontent-%COMP%]{width:20%!important;position:relative}@media only screen and (min-width: 320px) and (max-width: 768px){.desktop-slide-hider[_ngcontent-%COMP%]{display:none}.discount-percentage[_ngcontent-%COMP%]{display:contents}}@media (min-width: 768px){.size-selection[_ngcontent-%COMP%]{opacity:0;visibility:hidden;height:0}}@media (min-width: 768px){.kurta-home-product[_ngcontent-%COMP%] .produc-des-cont-cart-page[_ngcontent-%COMP%] a[_ngcontent-%COMP%] .product-description[_ngcontent-%COMP%], .kurta-home-product[_ngcontent-%COMP%] .produc-des-cont-cart-page[_ngcontent-%COMP%] .product-description[_ngcontent-%COMP%]{overflow:hidden}.kurta-home-product[_ngcontent-%COMP%]:hover .size-selection[_ngcontent-%COMP%]{opacity:1;visibility:visible;height:unset}.kurta-home-product[_ngcontent-%COMP%]:hover .produc-des-cont-cart-page[_ngcontent-%COMP%]{margin-top:-83px;position:absolute;bottom:0;width:calc(100% - 15px);background:#fff;padding:5px 10px 10px}.kurta-home-product[_ngcontent-%COMP%]:hover .produc-des-cont-cart-page[_ngcontent-%COMP%] a[_ngcontent-%COMP%] .product-description[_ngcontent-%COMP%]{overflow:hidden}.kurta-home-product[_ngcontent-%COMP%]:hover .produc-des-cont-cart-page[_ngcontent-%COMP%] .product-description[_ngcontent-%COMP%]{overflow:visible}}.discount-percentage[_ngcontent-%COMP%], .discount-percentage[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{padding-left:7px}"]})}}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.