1"use strict";(self.webpackChunkfabindia=self.webpackChunkfabindia||[]).push([[7887],{77887(R,_,c){c.d(_,{FabPdpSummaryComponent:()=>E});var u=c(76707),t=c(41360),d=c(73117),r=c(71005),a=c(32881);const p=e=>({product:e}),m=(e,o)=>({"background-color":e,color:o});function f(e,o){1&e&&t.eu8(0)}function g(e,o){if(1&e&&(t.j41(0,"div",5),t.DNE(1,f,1,0,"ng-container",6),t.k0s()),2&e){const n=o.ngIf;t.XpG();const l=t.sdS(10);t.R7$(),t.Y8G("ngTemplateOutlet",l)("ngTemplateOutletContext",t.eq3(2,p,n))}}function v(e,o){1&e&&t.eu8(0)}function P(e,o){if(1&e&&(t.j41(0,"div",5),t.DNE(1,v,1,0,"ng-container",6),t.k0s()),2&e){const n=o.ngIf;t.XpG(2);const l=t.sdS(10);t.R7$(),t.Y8G("ngTemplateOutlet",l)("ngTemplateOutletContext",t.eq3(2,p,n))}}function x(e,o){if(1&e&&(t.DNE(0,P,2,4,"div",7),t.nI1(1,"async")),2&e){const n=t.XpG();t.Y8G("ngIf",t.bMT(1,1,n.product$))}}function T(e,o){1&e&&(t.j41(0,"div",14),t.EFF(1,"M.R.P."),t.k0s())}function b(e,o){if(1&e&&t.nrm(0,"div",15),2&e){const n=t.XpG().product,l=t.XpG();t.Y8G("innerHtml",n.tagName,t.npT)("ngStyle",t.l_i(2,m,l.tickerResponse.othersColor,l.tickerResponse.othersTextColor))}}function C(e,o){1&e&&(t.j41(0,"div",16),t.EFF(1,"M.R.P."),t.k0s())}function D(e,o){if(1&e&&(t.j41(0,"div",17),t.EFF(1),t.k0s()),2&e){const n=t.XpG().product;t.R7$(),t.SpI(" ",null==n||null==n.price?null:n.price.formattedValue," ")}}function I(e,o){if(1&e&&(t.j41(0,"div",18),t.EFF(1),t.nI1(2,"number"),t.nI1(3,"cxTranslate"),t.k0s()),2&e){const n=t.XpG().product,l=t.XpG();t.R7$(),t.Lme(" ",t.i5U(2,2,l.calculateDiscountPrecentage(null==n?null:n.price.value,null==n||null==n.totalDiscount?null:n.totalDiscount.value),"1.0-0"),"% ",t.bMT(3,5,"fabProductList.off")," ")}}function S(e,o){if(1&e&&t.nrm(0,"div",15),2&e){const n=t.XpG().product,l=t.XpG();t.Y8G("innerHtml",n.tagName,t.npT)("ngStyle",t.l_i(2,m,l.tickerResponse.othersColor,l.tickerResponse.othersTextColor))}}function y(e,o){if(1&e&&(t.DNE(0,T,2,0,"div",8),t.j41(1,"div",9),t.EFF(2),t.k0s(),t.DNE(3,b,1,5,"div",10)(4,C,2,0,"div",11)(5,D,2,1,"div",12)(6,I,4,7,"div",13)(7,S,1,5,"div",10)),2&e){const n=o.product,l=t.XpG();t.Y8G("ngIf","INR"==l.selectedCurrency&&0==(null==n||null==n.totalDiscount?null:n.totalDiscount.value)),t.R7$(2),t.SpI(" ",(null==n||null==n.totalDiscount?null:n.totalDiscount.value)>0?null==n||null==n.priceAfterDiscount?null:n.priceAfterDiscount.formattedValue:null==n||null==n.price?null:n.price.formattedValue," "),t.R7$(),t.Y8G("ngIf",0==(null==n||null==n.totalDiscount?null:n.totalDiscount.value)&&n.tagName),t.R7$(),t.Y8G("ngIf","INR"==l.selectedCurrency&&(null==n||null==n.totalDiscount?null:n.totalDiscount.value)),t.R7$(),t.Y8G("ngIf",(null==n||null==n.totalDiscount?null:n.totalDiscount.value)>0),t.R7$(),t.Y8G("ngIf",(null==n||null==n.totalDiscount?null:n.totalDiscount.value)>0),t.R7$(),t.Y8G("ngIf",(null==n||null==n.totalDiscount?null:n.totalDiscount.value)>0&&n.tagName)}}let E=(()=>{class e extends u.LUf{constructor(n,l,i,s){super(n),this.currentProductService=n,this.fabProductService=l,this.currencyService=i,this.winRef=s,this.outlets=u.da3,this.product$=this.currentProductService.getProduct(),this.getSelectedSizeProduct$=this.fabProductService.getSelectedPDPSize(),this.tickerResponse={}}ngOnInit(){this.subscriptions=this.currencyService.getActive().subscribe(l=>{this.selectedCurrency=l});let n=this.winRef?.nativeWindow?.sessionStorage.getItem("tickerApi");n&&(this.tickerResponse=JSON.parse(n))}calculateDiscountPrecentage(n,l){return 100*(n-(n-l))/n}ngOnDestroy(){this.subscriptions&&this.subscriptions.unsubscribe()}static{this.\u0275fac=function(l){return new(l||e)(t.rXU(u.GmA),t.rXU(d.K),t.rXU(r.PnO),t.rXU(r.WTn))}}static{this.\u0275cmp=t.VBU({type:e,selectors:[["app-fab-pdp-summary"]],standalone:!1,features:[t.Vt3],decls:11,vars:7,consts:[["priceInfo",""],["productTemp",""],[1,"price_block_pdp_parent"],["class","price_block d-flex align-items-center",4,"ngIf","ngIfElse"],[1,"greyText"],[1,"price_block","d-flex","align-items-center"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["class","price_block d-flex align-items-center",4,"ngIf"],["class","mrp_text",4,"ngIf"],[1,"amount"],["class","tag_name",3,"innerHtml","ngStyle",4,"ngIf"],["class"," mrp-sale",4,"ngIf"],["class","deleted_price position-relative",4,"ngIf"],["class","off_class",4,"ngIf"],[1,"mrp_text"],[1,"tag_name",3,"innerHtml","ngStyle"],[1,"mrp-sale"],[1,"deleted_price","position-relative"],[1,"off_class"]],template:function(l,i){if(1&l&&(t.j41(0,"div",2),t.qex(1),t.DNE(2,g,2,4,"div",3),t.nI1(3,"async"),t.bVm(),t.j41(4,"p",4),t.EFF(5),t.nI1(6,"cxTranslate"),t.k0s(),t.DNE(7,x,2,3,"ng-template",null,0,t.C5r)(9,y,8,7,"ng-template",null,1,t.C5r),t.k0s()),2&l){const s=t.sdS(8);t.R7$(2),t.Y8G("ngIf",t.bMT(3,3,i.getSelectedSizeProduct$))("ngIfElse",s),t.R7$(3),t.JRh(t.bMT(6,5,"fabProductSummary.taxesInfo"))}},dependencies:[a.bT,a.T3,a.B3,a.Jj,a.QX,r.D97],styles:[".margin[_ngcontent-%COMP%]{margin-top:1px;margin-left:3px}.margin-off[_ngcontent-%COMP%]{margin-left:3px}@media (min-width: 768px){.margin-off[_ngcontent-%COMP%]{margin-top:1px}}.tag_name[_ngcontent-%COMP%]{padding:2px 8px;margin-left:10px}p.greyText[_ngcontent-%COMP%]{margin-bottom:5px!important}@media (max-width: 768px){p.greyText[_ngcontent-%COMP%]{margin-bottom:15px!important}}"]})}}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.