1import{a as R,b as $}from"./chunk-5YCCF2PU.js";import{a as U,b as X}from"./chunk-4KA42QXT.js";import{a as H,b as Z}from"./chunk-PIPYJDLV.js";import{a as A,b as Y}from"./chunk-2LTT3RQW.js";import{a as z,b as W}from"./chunk-SD646YB5.js";import{wa as J}from"./chunk-WIGKG7EH.js";import{l as B,m as N,n as G,x as F,y as K}from"./chunk-AWM5Z66J.js";import{X as M}from"./chunk-CJE2JCLT.js";import{R as Q,y as I}from"./chunk-SEOSB6FY.js";import{m as E,v as q}from"./chunk-R2M3QBBK.js";import{Aa as w,Ac as S,Cc as l,Fd as b,Hb as T,Ld as L,Md as u,Qc as V,Rc as m,Tc as h,Zd as D,cc as P,ec as a,gc as p,jd as k,lc as v,mc as d,nc as r,oc as C,ra as _,sb as n,ud as s,vc as O,vd as f,wd as y,za as x}from"./chunk-NKYWAUTV.js";import{d as j}from"./chunk-YZFYTRZT.js";function ee(e,c){if(e&1&&C(0,"pwr-product-price-savings-label",3),e&2){let t=l();v("product",t.product())("showVAT",t.showVAT())("variant",t.variant())("alignLeft",t.alignLeft())("showSavingsAsAmount",t.product().outletId!==void 0&&t.priceAnchorABEnabled())}}function te(e,c){if(e&1&&(m(0),s(1,"number")),e&2){let t=l();h(" ",y(1,1,t,"1.0-0")," ")}}function ie(e,c){if(e&1&&(m(0),s(1,"number")),e&2){let t=l();h(" ",y(1,1,t,"1.2-2")," ")}}function ne(e,c){if(e&1&&(d(0,"div",5)(1,"div",8),s(2,"transloco"),s(3,"pwrcurrency"),a(4,te,2,4)(5,ie,2,4),r()()),e&2){let t=c;n(),P("aria-label",f(2,2,"Outlet.NormalPrice")+" "+f(3,4,t)),n(3),p(t%1===0?4:5)}}function oe(e,c){e&1&&(d(0,"div",9),m(1),s(2,"transloco"),r()),e&2&&(n(),h(" ",f(2,1,"Product.DepositPriceExcluded")," "))}function re(e,c){e&1&&(d(0,"div",9),m(1),s(2,"transloco"),r()),e&2&&(n(),h(" ",f(2,1,"Product.DepositPriceIncluded")," "))}function ce(e,c){if(e&1&&(d(0,"div",6),a(1,oe,3,3,"div",9)(2,re,3,3,"div",9),m(3),s(4,"pwrcurrency"),r()),e&2){let t=l();n(),p(t.product().depositPriceIncluded?2:1),n(2),h(" ",f(4,2,t.productDepositPrice())," ")}}function ae(e,c){e&1&&C(0,"div",11)}function pe(e,c){if(e&1){let t=O();d(0,"div",7)(1,"pwr-product-energy-label",10),S("productFicheClick",function(i){x(t);let g=l();return w(g.productFicheClick.emit(i))})("energyLabelClick",function(i){x(t);let g=l();return w(g.energyLabelClick.emit(i))}),r(),a(2,ae,1,0,"div",11),r()}if(e&2){let t,o=l();n(),v("product",o.product())("variant",o.variant()),n(),p((t=o.originalPrice())?2:-1,t)}}var ye,de=j(()=>{"use strict";q();D();Q();J();W();G();K();Y();Z();X();$();D();ye=(()=>{class e{constructor(){this.calculateVisiblePricePipe=_(A),this.abTestService=_(N),this.configurationService=_(F),this.product=u.required(),this.showVAT=u(!this.configurationService.appSettings.b2bSite),this.showSavingsLabel=u(!0),this.showEnergyLabel=u(!0),this.variant=u("normal"),this.alignLeft=u(!0),this.productFicheClick=L(),this.energyLabelClick=L(),this.productDepositPrice=b(()=>{let t=this.product(),o=this.showVAT();if(!(!t?.depositPrice||t?.depositPrice<=0))return this.calculateVisiblePricePipe.transform(t.depositPrice,t.depositVATPercent,1,void 0,void 0,void 0,o)}),this.priceAnchorABEnabled=b(()=>this.abTestService.activeAbTest()===B._39906),this.originalPrice=b(()=>{if(this.priceAnchorABEnabled())return z.getOriginalPrice(this.product(),!!this.showVAT(),0,1)})}static{this.\u0275fac=function(o){return new(o||e)}}static{this.\u0275cmp=T({type:e,selectors:[["pwr-product-price"]],inputs:{product:[1,"product"],showVAT:[1,"showVAT"],showSavingsLabel:[1,"showSavingsLabel"],showEnergyLabel:[1,"showEnergyLabel"],variant:[1,"variant"],alignLeft:[1,"alignLeft"]},outputs:{productFicheClick:"productFicheClick",energyLabelClick:"energyLabelClick"},features:[k([A,M])],decls:9,vars:15,consts:[["fxLayout","row",1,"product-price","w-100-p","gx-spacer-xmini"],["fxLayout","row","fxLayoutAlign","start center",1,"price-container","g-spacer-xmini"],["fxLayout","column"],[3,"product","showVAT","variant","alignLeft","showSavingsAsAmount"],[3,"price","vatlessPrice","showVAT","variant","monthlyPrice","costPerUnit","alignLeft"],["fxLayout","row","fxLayoutAlign","end center",1,"w-100-p"],["fxLayout","column","fxLayoutAlign","start start",1,"power-primary-400-fg","max-w-100"],[1,"energylabel-container"],[1,"pwr-font-black","price-anchor"],[1,"text-body-2"],[3,"productFicheClick","energyLabelClick","product","variant"],[1,"price-anchor-offset"]],template:function(o,i){if(o&1&&(d(0,"div",0)(1,"div",1)(2,"div",2),a(3,ee,1,5,"pwr-product-price-savings-label",3),d(4,"div"),C(5,"pwr-price-label",4),a(6,ne,6,6,"div",5),r()(),a(7,ce,5,4,"div",6),r(),a(8,pe,3,3,"div",7),r()
1),o&2){let g;V(i.variant()+"-variant"),P("fxLayoutAlign",i.alignLeft()?"space-between end":"end end"),n(2),P("fxLayoutAlign",i.alignLeft()?"start start":"start end"),n(),p(i.showSavingsLabel()?3:-1),n(2),v("price",i.product().price)("vatlessPrice",i.product().vatlessPrice)("showVAT",i.showVAT())("variant",i.variant())("monthlyPrice",!!i.product().isRecurringPaymentProduct)("costPerUnit",i.product().costPerUnit)("alignLeft",i.alignLeft()),n(),p((g=i.originalPrice())?6:-1,g),n(),p(i.productDepositPrice()?7:-1),n(),p(i.showEnergyLabel()?8:-1)}},dependencies:[R,H,U,M,E,I],styles:[`.line-through[_ngcontent-%COMP%]{text-decoration:line-through;text-decoration-thickness:2px}[_nghost-%COMP%]{position:relative;width:100%;display:block;--anchor-font-size: 16px;--anchor-price-height: 42px}[_nghost-%COMP%] .price-container[_ngcontent-%COMP%]{z-index:2}[_nghost-%COMP%] .product-price[_ngcontent-%COMP%]{--discount-offset: 22px}[_nghost-%COMP%] .product-price.small-variant[_ngcontent-%COMP%]{--discount-offset: 16px;--anchor-font-size: 12px;--anchor-price-height: 32px}[_nghost-%COMP%] .product-price.mobile-variant[_ngcontent-%COMP%]{--discount-offset: 20px;--anchor-font-size: 16px;--anchor-price-height: 36px}[_nghost-%COMP%] .product-price[_ngcontent-%COMP%]{margin-top:var(--discount-offset)}[_nghost-%COMP%] .product-price[_ngcontent-%COMP%]:has(pwr-product-price-savings-label>*){margin-top:0}[_nghost-%COMP%] .product-price[_ngcontent-%COMP%] .energylabel-container[_ngcontent-%COMP%]{position:absolute;right:0}[_nghost-%COMP%] .price-anchor[_ngcontent-%COMP%]{margin-right:calc(var(--anchor-price-height) * .2193154129);position:relative;font-size:var(--anchor-font-size);margin-top:3px;line-height:.75}[_nghost-%COMP%] .price-anchor[_ngcontent-%COMP%]:after{--strike-color: color-mix(in srgb, var(--power-red-500) 80%, transparent);content:" ";position:absolute;top:0;left:0;width:100%;height:100%;background:linear-gradient(to top left,transparent calc(50% - 2px),var(--strike-color),transparent calc(50% + 2px))}[_nghost-%COMP%] .price-anchor-offset[_ngcontent-%COMP%]{margin-top:3px;height:var(--anchor-font-size)} 2/*# sourceMappingURL=product-price.component-CGHQKBAH.css.map */`],changeDetection:0})}}return e})()});export{ye as a,de as b}; 3//# sourceMappingURL=chunk-YUA253YO.js.map
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.