PageSourceSearch

https://interid.ru/chunk-QVJSWPD5.js

js interid.ru collected 2026-09-25 04:23:28 UTC 207,782 bytes, 14 lines download raw bytes

1import{b as vo,d as _o,e as yo,g as gi}from"./chunk-XLVWD3NE.js";import{b as Ci}from"./chunk-IE6QVQ2L.js";import{$ as Nt,$b as Jn,$d as lo,Ab as re,Ba as si,Bc as eo,Bd as bt,C as Ct,Cc as to,Ce as Co,Dc as yt,De as Bt,E as Rn,Ee as tt,Ga as $n,H as Ke,Ha as jn,Hb as Qn,Hc as Ne,Hd as oo,He as fi,Ia as qn,Id as ao,Ie as go,Jc as io,Jd as wt,Kd as Pt,L as Je,Lb as Fi,Ld as be,M as xe,Ma as Gn,Na as et,Nc as de,Nd as St,Od as Ni,P as fe,Pc as Ie,Pd as Z,Q as Fn,Qc as Ue,Qd as Hi,Ra as vt,Rb as Xn,Rc as no,Rd as ro,Uc as $t,V as De,X as Ft,Xc as He,Xd as mi,Yb as Zn,Yc as Me,Z as Vi,Zb as Yn,Zd as so,_b as Kn,_d as co,aa as ve,ae as po,ba as Nn,be as mo,c as ri,d as j,de as $i,ea as Li,f as Ye,fa as Ht,fe as jt,g as Vn,ga as st,ge as uo,h as ye,ha as Te,hd as xt,ie as ho,j as Ln,k as ae,ka as qe,ke as fo,la as Ge,lb as Un,n as ce,nd as ci,o as le,od as li,oe as kt,q as K,qe as ui,ra as Hn,sa as gt,sb as zn,se as hi,ta as Ri,ue as W,vb as _t,vd as di,wd as pi,yb as Wn,ze as Mt}from"./chunk-C7M2QLPL.js";import{$a as he,$b as r,$c as An,Ac as ft,Bb as Dn,Bc as v,C as ct,Cc as _,Dc as X,E as ti,Ea as Lt,Ga as _e,Gb as oi,I as Se,Ic as ge,Jc as ai,K as ke,L as Ei,La as ni,Lc as In,Mc as U,Nc as Oi,Oc as f,P as lt,Pc as C,Rb as I,Rc as En,Sb as je,T as ii,Tb as p,U as J,Ub as m,V as Ve,Vb as pe,Wb as G,Wc as z,Xb as D,Yb as T,Z as q,Zb as l,_ as dt,_a as R,_b as a,ab as Mn,ac as d,ad as g,ca as A,cd as Rt,d as H,da as ue,dd as On,e as Kt,gc as Ai,hc as S,ib as Bn,jb as o,jd as se,k as Jt,ka as w,l as ei,la as P,lc as b,ma as M,na as L,nb as Le,nc as s,o as Ii,ob as Re,p as Vt,pa as pt,q as F,qb as h,r as Be,rc as Qe,sa as oe,sb as Fe,sc as Xe,tc as Ze,uc as ut,vc as ht,w as kn,wa as $,wc as Y,xc as Tn,yb as y,yc as te,za as ee,zb as mt}from"./chunk-OYMNJVQ6.js";import{a as E,b as O}from"./chunk-YNC7RVHT.js";var it=Vi.ProductSearchSortDirection,nt=Vi.ProductSearchSort,ji=De.ViewMode;var Ee=(function(t){return t.Popular="Popular",t.PriceDesc="PriceDesc",t.PriceAsc="PriceAsc",t.DatePublished="DatePublished",t.HasSale="HasSale",t.HasDiscounted="HasDiscounted",t.HasMarkingkits="HasMarkingkits",t.Commented="Commented",t})(Ee||{}),Dt=[{sort:Ee.Popular,sortOrders:[...$n]},{sort:Ee.PriceDesc,sortOrders:[{field:nt.Price,direction:it.Desc}]},{sort:Ee.PriceAsc,sortOrders:[{field:nt.Price,direction:it.Asc}]},{sort:Ee.DatePublished,sortOrders:[{field:nt.IsNew,direction:it.Desc},{field:nt.DatePublished,direction:it.Desc}]},{sort:Ee.HasSale,sortOrders:[{field:nt.HasSale,direction:it.Desc},{field:nt.DatePublished,direction:it.Desc}]},{sort:Ee.Commented,sortOrders:[{field:nt.Comments,direction:it.Desc},{field:nt.DatePublished,direction:it.Desc}]}];var ie=(()=>{class t{constructor(e,i){this.appSession=e,this.localStorageStrategy=i,this._product=$(void 0),this._product$=new Kt(void 0),this.productSignal=this._product.asReadonly()}emit(e){this._product.set(e),this._product$.next(e)}withProduct(e){if(e){if(this.appSession.isLocalStorageStrategy){let i=this.localStorageStrategy.state.basket.entries.find(n=>n.product.id===e.id);i&&(e.inBasket=i.amount),e.inFavorites=!!this.localStorageStrategy.state.favorites.find(n=>n.id===e.id),e.inCompares=!!this.localStorageStrategy.state.compares.find(n=>n===e.id)}this.emit(e)}}patchProduct(e){this.emit(E(E({},this.product),e))}get product(){return this._product()}get product$(){return this._product$.asObservable()}static{this.\u0275fac=function(i){return new(i||t)(A(de),A(io))}}static{this.\u0275prov=q({token:t,factory:t.\u0275fac})}}return t})();var Xo=5,vi=(()=>{class t{constructor(e,i){this.i18n=e,this.source=i,this._maxParams=Xo}get product(){return this.source.product}set maxParams(e){this._maxParams=e}get maxParams(){return this._maxParams}get hasProductParams(){return!!this.product.productParams}get hasCardProductBagesParams(){return!!this.cardProductBagesParams&&this.cardProductBagesParams.length!==0}get cardProductBagesParams(){return this.product?.productParams?.filter(e=>e.displayDictionaryIcon&&e.paramsName!=="\u0413\u0430\u0440\u0430\u043D\u0442\u0438\u044F")}
1get cardProductParams(){let e=this.product.productParams.filter(i=>i.displayInProductCard);return e.sort((i,n)=>i.sortOrder-n.sortOrder),this.maxParams&&e.length>this.maxParams&&(e=e.slice(0,this.maxParams)),e}get paramsAreLong(){return this.cardProductParams.some(i=>i.paramsName.length+i.staticValue?.length>60)}booleanParamDisplayValue(e){return Ft.allAvailableTruthyBooleanValue.includes(e.staticValue)?"__models.BooleanYesNo.Yes":"__models.BooleanYesNo.No"}isBooleanParam(e){return e.paramsType===Ft.ParamsType.Boolean}isDictParam(e){return e.paramsType===Ft.ParamsType.Dict}isDictManyParam(e){return e.paramsType===Ft.ParamsType.DictMany}paramDisplayValue(e){return this.isBooleanParam(e)?this.i18n.instant(this.booleanParamDisplayValue(e)):this.isDictParam(e)?this.dictParamDisplayValue(e):this.isDictManyParam(e)?this.dictManyParamDisplayValue(e):e.staticValue||""}dictManyParamDisplayValue(e){return e.dictManyStaticValue}dictParamDisplayValue(e){return e.dictValue}static{this.\u0275fac=function(i){return new(i||t)(A(le),A(ie))}}static{this.\u0275prov=q({token:t,factory:t.\u0275fac})}}return t})();var _i=(()=>{class t{constructor(e,i,n,u,x,B){this.source=e,this.productReviewEndpoint=i,this.errorHandler=n,this.messagesService=u,this.recaptchaV3Service=x,this.appBootstrap=B}get product(){return this.source.product}t(e){return`__shared.product.components.product_card.${e}`}get hasRating(){return this.product.rating!==void 0&&this.product.ratingCount>0}sendProductReview(e){let i=this.appBootstrap.data.recaptchaSettings,n={rating:e.rating,productId:this.product.id,author:e.author,email:e.isAnonymous?void 0:e.email||void 0,negative:e.negative,positive:e.positive,contents:e.contents,isAnonymous:e.isAnonymous,contentAttachmentIds:e.contentAttachmentIds||[]},u=x=>this.productReviewEndpoint.review(n,x).pipe(ti(B=>(this.errorHandler.handle(B),ei(B))),F(()=>{}),Ve(()=>this.messagesService.info({message:this.t("sendReviewSuccess"),translate:!0})));return i?.enabled?this.recaptchaV3Service.execute("Review",i.siteKey).pipe(ii(x=>u(x))):u()}static{this.\u0275fac=function(i){return new(i||t)(A(ie),A(Zn),A(Ue),A(Ie),A($t),A(Me))}}static{this.\u0275prov=q({token:t,factory:t.\u0275fac})}}return t})();var xo=(()=>{class t{constructor(e,i){this.appSession=e,this.messages=i}t(e){return`product.shared.services.basket.${e}`}addProductToBasket(e){return Be([this.appSession.addProductToBasket(e),this.appSession.numProductsInBasket$]).pipe(Se(1),F(([i,n])=>(this.messages.basketCompare({translate:!0,message:this.t("added"),translateParams:{title:i.product.title}},"basket",n),i)))}setProductToBasket(e){return this.appSession.setProductBasket(e)}removeProductFromBasket(e){return this.appSession.removeProductFromBasket(e)}clearProductBasket(){return this.appSession.clearProductBasket()}getProductBasket(){return this.appSession.getProductBasket()}static{this.\u0275fac=function(i){return new(i||t)(A(de),A(Ie))}}static{this.\u0275prov=q({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var yi=(()=>{class t{constructor(e,i,n){this.source=e,this.i18n=i,this.basketService=n}get product(){return this.source.product}t(e){return`__shared.product.components.product_card.${e}`}addToBasket(){this.basketService.addProductToBasket({amount:this.product.priceStep?parseFloat(this.product.priceStep):1,productId:this.product.id}).pipe(Ve(()=>{this.product&&(this.source.patchProduct({inBasket:(this.product.inBasket||0)+1}),this.pushYmAdd(this.product.priceStep?parseFloat(this.product.priceStep):1))})).subscribe()}addToBasket$(){return this.basketService.addProductToBasket({amount:this.product.priceStep?parseFloat(this.product.priceStep):1,productId:this.product.id}).pipe(Ve(()=>{this.product&&(this.source.patchProduct({inBasket:(this.product.inBasket||0)+1}),this.pushYmAdd(this.product.priceStep?parseFloat(this.product.priceStep):1))}))}pushYmAdd(e){if(!(typeof window>"u"))try{let i=this.product;(window.dataLayer=window.dataLayer||[]).push({ecommerce:{currencyCode:"RUB",add:{products:[{id:String(i.id),name:i.title,price:parseFloat(i.price)||0,brand:i.manufacturer?.title??"",category:i.productCategory?.title??"",quantity:e}]}}})}catch(i){console.error("[ym] add to cart tracking failed",i)}}setBasketAmount(e){return this.basketService.setProductToBasket({setAmount:e,productId:this.product.id}).pipe(Ve(()=>{this.product&&this.source.patchProduct({inBasket:e})}))}get labelBasket(){return this.product.inBasket?this.i18n.instant(this.t("inBasket"),{amount:this.product.inBasket}):this.i18n.instant(this.t("addToBasket"))}get labelBasketShort(){return this.product.inBasket?this.i18n.instant(this.t("inBasketShort"),{amount:this.product.inBasket}):this.i18n.instant(this.t("addToBasketShort"))}static{this.\u0275fac=function(i){return new(i||t)(A(ie),A(le),A(xo))}}static{this.\u0275prov=q({token:t,factory:t.\u0275fac})}}return t})();var bo=(()=>{class t{constructor(e,i){this.appSession=e,this.messages=i}t(e){return`product.shared.services.favorite.${e}`}addProductToFavorite(e){return Be([this.appSession.addToFavorites(e),this.appSession.numFavorites$]).pipe(lt(_t()),Se(1),F(([i,n])=>(this.messages.basketCompare({translate:!0,message:this.t("added"),translateParams:{title:e.productTitle}},"favorite",n),i)))}removeProductFromFavorite(e){return Be([this.appSession.deleteFromFavorites(e),this.appSession.numFavorites$]).pipe(lt(_t()),Se(1),F(([i,n])=>{this.messages.basketCompare({translate:!0,message:this.t("delete"),translateParams:{title:e.productTitle}},"favorite",n)}))}static{this.\u0275fac=function(i){return new(i||t)(A(de),A(Ie))}}static{this.\u0275prov=q({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var xi=(()=>{class t{constructor(e,i,n){this.i18n=e,this.source=i,this.favoriteService=n}get product(){return this.source.product}t(e){return`__shared.product.components.product_card.${e}`}toggleFavorites(){this.product&&this.product.inFavorites?this.favoriteService.removeProductFromFavorite({productId:this.product.id,productTitle:this.product.title}).subscribe(()=>{this.product&&this.source.patchProduct({inFavorites:!1})}):this.favoriteService.addProductToFavorite({productId:this.product.id,productCategoryId:this.product.productCategory.id,productTitle:this.product.title}).subscribe(()=>{this.product&&this.source.patchProduct({inFavorites:!0})})}get labelFavorite(){return this.product&&this.product.inFavorites?this.i18n.instant(this.t("inFavorites")):this.i18n.instant(this.t("favorite"))}get isInFavorites$(){return this.source.product$.pipe(F(e=>!!e&&e.inFavorites))}static{this.\u0275fac=function(i){return new(i||t)(A(le),A(ie),A(bo))}}static{this.\u0275prov=q({token:t,factory:t.\u0275fac})}}return t})();var wo=(()=>{class t{constructor(e,i){this.appSession=e,this.messages=i}t(e){return`product.shared.services.compares.${e}`}addManyToCompare(e){return kn(e.map(i=>this.appSession.addToCompares(i))).pipe(Se(1),F(()=>{}))}addProductToCompare(e){return Be([this.appSession.addToCompares(e),this.appSession.numCompares$]).pipe(lt(_t()),Se(1),F(([i,n])=>(this.messages.basketCompare({translate:!0,message:this.t("added"),translateParams:{title:e.productTitle}},"compare",n),i)))}removeProductFromCompare(e){return Be([this.appSession.deleteFromCompares(e),this.appSession.numCompares$]).pipe(lt(_t()),Se(1),F(([i,n])=>(this.messages.basketCompare({translate:!0,message:this.t("delete"),translateParams:{title:e.productTitle}},"compare",n),i)))}static{this.\u0275fac=function(i){return new(i||t)(A(de),A(Ie))}}static{this.\u0275prov=q({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var bi=(()=>{class t{constructor(e,i,n){this.i18n=e,this.source=i,this.compareService=n}get product(){return this.source.product}t(e){return`__shared.product.components.product_card.${e}`}toggleCompares(){this.product&&(this.source.product.inCompares?this.compareService.removeProductFromCompare({productId:this.product.id,productTitle:this.product.title}).subscribe(()=>{this.source.patchProduct({inCompares:!1})}):this.compareService.addProductToCompare({productId:this.product.id,productTitle:this.product.title}).subscribe(()=>{this.source.patchProduct({inCompares:!0})}))}get labelCompare(){return this.product&&this.product.inCompares?this.i18n.instant(this.t("inCompares")):this.i18n.instant(this.t("compare"))}get isInCompares$(){return this.source.product$.pipe(F(e=>!!e&&e.inCompares))}static{this.\u0275fac=function(i){return new(i||t)(A(le),A(ie),A(wo))}}static{this.\u0275prov=q({token:t,factory:t.\u0275fac})}}return t})();var wi=(()=>{class t{constructor(e){this.source=e}get product(){return this.source.product}get hasBadges(){return this.hasPercentsDiscount||this.hasSale||this.product?.flags?.isAvailableDepot||this.product?.flags?.isAvailableVendorDepot||this.product?.flags?.isHit||this.product?.flags?.isNew}get hasPrice(){return!!this.product.price&&parseFloat(this.product.price)>0&&!this.product.flags.isOutOfProduction}get hasSale(){let e=this.product?.sale?.dateFrom?new Date(this.product?.sale?.dateFrom):new Date(-864e13),i=this.product?.sale?.dateTo?new Date(this.product?.sale?.dateTo):new Date(864e13),n=e<=new Date&&new Date<=i;return!!this.product.sale&&!!this.product.flags&&this.product.flags.hasSale&&n&&!!this.product.sale.badgeForCard}get hasDiscount(){return this.hasPercentsDiscount||this.hasFixedDiscount}get hasTradePrice(){return!!this.product.tradePrice&&parseFloat(this.product.tradePrice)>0}get tradePriceRub(){return(parseFloat(this.product.tradePrice)*this.product.basePriceCurrency.exchangeRate).toFixed(2)}get hasPercentsDiscount(){return this.product.displayDiscountPercents?!0:this.hasSale?[Nt.ProductSaleStrategy.DiscountPercents].includes(this.product.sale.strategy.type):!1}get hasFixedDiscount(){return this.product.displayDiscountFrom?!0:this.hasSale?[Nt.ProductSaleStrategy.DiscountFixed].includes(this.product.sale.strategy.type):!1}get percentsDiscount(){if(this.product.displayDiscountPercents)return this.product.displayDiscountPercents;if(this.hasSale){let e=this.product.sale.strategy;return e.type===Nt.ProductSaleStrategy.DiscountPercents?e.payload.discountPercents.toString():""}else return""}get fixedDiscount(){if(this.product.displayDiscountFrom)return this.product.displayDiscountFrom;if(this.hasSale){let e=this.product.sale.strategy;return e.type===Nt.ProductSaleStrategy.DiscountFixed?e.payload.discountFixed.toFixed(0):""}else return""}static{this.\u0275fac=function(i){return new(i||t)(A(ie))}}static{this.\u0275prov=q({token:t,factory:t.\u0275fac})}}return t})();var Pi=(()=>{class t{constructor(e,i,n,u){this.source=e,this.productQuestionEndpoint=i,this.errorHandler=n,this.messagesService=u}get product(){return this.source.product}t(e){return`__shared.product.components.product_card.${e}`}sendProductQuestion(e){return this.productQuestionEndpoint.question(e.isAnonymous?{productId:this.product.id,contents:e.contents,isA
1nonymous:!0,contentAttachmentIds:e.contentAttachmentIds||[]}:{productId:this.product.id,author:e.author,email:e.email?e.email:void 0,contents:e.contents,isAnonymous:!1,contentAttachmentIds:e.contentAttachmentIds||[]}).pipe(ti(i=>(this.errorHandler.handle(i),ei(i))),F(()=>{}),Ve(()=>this.messagesService.info({message:this.t("sendQuestionSuccess"),translate:!0})))}static{this.\u0275fac=function(i){return new(i||t)(A(ie),A(Kn),A(Ue),A(Ie))}}static{this.\u0275prov=q({token:t,factory:t.\u0275fac})}}return t})();var Si=(()=>{class t{constructor(e){this.source=e}get product(){return this.source.product}listDeliveriesB(e){return this.product.flags.isAvailableDepot&&e.isDefault?{availableColor:"#28BC00",available:"\u0412 \u043D\u0430\u043B\u0438\u0447\u0438\u0438",deliveries:[{title:"\u0421\u0430\u043C\u043E\u0432\u044B\u0432\u043E\u0437, \u0441\u0435\u0433\u043E\u0434\u043D\u044F - \u0431\u0435\u0441\u043F\u043B\u0430\u0442\u043D\u043E",additionally:""},{title:"\u041A\u0443\u0440\u044C\u0435\u0440\u043E\u043C, 1-3 \u0434\u043D\u044F - \u043E\u0442 890 \u0440\u0443\u0431.",additionally:""}]}:this.product.flags.isAvailableDepot&&!e.isDefault?{availableColor:"#28BC00",available:"\u0412 \u043D\u0430\u043B\u0438\u0447\u0438\u0438",deliveries:[{title:"\u0422\u0440\u0430\u043D\u0441\u043F\u043E\u0440\u0442\u043D\u043E\u0439 \u043A\u043E\u043C\u043F\u0430\u043D\u0438\u0435\u0439, 3-7 \u0434\u043D\u0435\u0439",additionally:""}]}:this.product.flags.isAvailableVendorDepot&&e.isDefault?{availableColor:"#28BC00",available:"\u0412 \u043D\u0430\u043B\u0438\u0447\u0438\u0438",deliveries:[{title:"\u0421\u0430\u043C\u043E\u0432\u044B\u0432\u043E\u0437, \u0437\u0430\u0432\u0442\u0440\u0430 - \u0431\u0435\u0441\u043F\u043B\u0430\u0442\u043D\u043E",additionally:""},{title:"\u041A\u0443\u0440\u044C\u0435\u0440\u043E\u043C, 2-4 \u0434\u043D\u044F - \u043E\u0442 890 \u0440\u0443\u0431.",additionally:""}]}:this.product.flags.isAvailableVendorDepot&&!e.isDefault?{availableColor:"#28BC00",available:"\u0412 \u043D\u0430\u043B\u0438\u0447\u0438\u0438",deliveries:[{title:"\u0422\u0440\u0430\u043D\u0441\u043F\u043E\u0440\u0442\u043D\u043E\u0439 \u043A\u043E\u043C\u043F\u0430\u043D\u0438\u0435\u0439, 3-7 \u0434\u043D\u0435\u0439",additionally:""}]}:!this.product.flags.isAvailable&&!this.product.flags.isAvailableDepot&&!this.product.flags.isAvailableVendorDepot?{availableColor:"#253238",available:"\u041D\u0430\u043B\u0438\u0447\u0438\u0435 \u0443\u0442\u043E\u0447\u043D\u044F\u0439\u0442\u0435 \u0443 \u043C\u0435\u043D\u0435\u0434\u0436\u0435\u0440\u0430",deliveries:[]}:void 0}static{this.\u0275fac=function(i){return new(i||t)(A(ie))}}static{this.\u0275prov=q({token:t,factory:t.\u0275fac})}}return t})();var N=(()=>{class t{constructor(e,i,n,u,x,B,V,we,Pe,Ot){this.urlBuilder=e,this.source=i,this.params=n,this.reviews=u,this.questions=x,this.basket=B,this.favorite=V,this.delivery=we,this.compare=Pe,this.price=Ot,this._nextProduct$=new H,this._product$=new Kt(void 0)}ngOnDestroy(){this._nextProduct$.next()}t(e){return`__shared.product.components.product_card.${e}`}withProduct(e){this._nextProduct$.next(),this._product$.next(e),this.source.withProduct(e)}get product(){return this.source.product}get productSignal(){return this.source.productSignal}get product$(){return this._product$.asObservable()}get productRouterLink(){return this.urlBuilder.urlLink({type:Te.Product,payload:{productId:this.product.id}})}get isAvailable(){return!!this.product}static{this.\u0275fac=function(i){return new(i||t)(A(Ne),A(ie),A(vi),A(_i),A(Pi),A(yi),A(xi),A(Si),A(bi),A(wi))}}static{this.\u0275prov=q({token:t,factory:t.\u0275fac})}}return t})();var qt=[N,ie,vi,_i,Pi,yi,xi,Si,bi,wi];function sa(t,c){if(t&1&&d(0,"img",1),t&2){let e,i=s(2);l("alt",(e=i.product())==null?null:e.title),I("src",i.images()[i.activeIndex()],he)}}function ca(t,c){if(t&1){let e=S();a(0,"div",4),b("mouseenter",function(){let n=w(e).$index,u=s(3);return P(u.onHoverZone(n))}),r()}}function la(t,c){if(t&1&&(a(0,"div",2),D(1,ca,1,0,"div",3,pe),r()),t&2){let e=s(2);o(),T(e.images())}}function da(t,c){if(t&1&&(p(0,sa,1,2,"img",1),p(1,la,3,0,"div",2)),t&2){let e=s();m(e.images()[e.activeIndex()]?0:-1),o(),m(e.isBrowser?1:-1)}}function pa(t,c){if(t&1&&d(0,"app-shared-attachment-image",0),t&2){let e,i,n=s();l("attachment",(e=n.product())==null?null:e.preview)("alt",(i=n.product())==null?null:i.title)("maxImageWidth",n.maxImageWidth())}}function ma(t,c){if(t&1&&d(0,"span",8),t&2){let e=c.$index,i=s(3);te("active",e===i.activeIndex())}}function ua(t,c){if(t&1&&(a(0,"div",5),D(1,ma,1,2,"span",7,pe),r()),t&2){let e=s(2);o(),T(e.images())}}function ha(t,c){t&1&&d(0,"div",6)}function fa(t,c){if(t&1&&p(0,ua,3,0,"div",5)(1,ha,1,0,"div",6),t&2){let e=s();m(e.isBrowser?0:1)}}var It=(()=>{class t{constructor(e){this.helper=e,this.isBrowser=ae(ue(ee)),this.maxImageWidth=g(),this.withSlider=g(!1),this.product=g(),this.images=$([]),this.activeIndex=$(0),this.parentScrollContainer=null,this.touchStartX=0,this.touchEndX=0,Lt(()=>{let i=this.product();if(!i)return;let u=(i?.images??[]).map(x=>{let B=x?.response?.payload?.webpVariants;return Array.isArray(B)&&B.length>0?B[0].url:null}
1).filter(Boolean);this.images.set(u),this.activeIndex.set(0)})}onHoverZone(e){e>=0&&e<this.images().length&&this.activeIndex.set(e)}onTouchStart(e){this.touchStartX=e.changedTouches[0].screenX,this.touchEndX=this.touchStartX,this.parentScrollContainer=this.findScrollableParent(e.target),this.parentScrollContainer&&(this.parentScrollContainer.style.overflowX="hidden")}onTouchMove(e){e.stopPropagation(),this.touchEndX=e.changedTouches[0].screenX}onTouchEnd(e){e.stopPropagation();let i=this.touchEndX-this.touchStartX;this.parentScrollContainer&&(this.parentScrollContainer.style.overflowX="auto",this.parentScrollContainer=null),!(Math.abs(i)<40)&&(i<0?this.next():this.prev())}findScrollableParent(e){let i=e.parentElement;for(;i;){let n=window.getComputedStyle(i);if(n.overflowX==="auto"||n.overflowX==="scroll")return i;i=i.parentElement}return null}next(){let e=this.images();e.length&&this.activeIndex.set((this.activeIndex()+1)%e.length)}prev(){let e=this.images();e.length&&this.activeIndex.set((this.activeIndex()-1+e.length)%e.length)}static{this.\u0275fac=function(i){return new(i||t)(h(N))}}static{this.\u0275cmp=y({type:t,selectors:[["app-shared-product-card-assets-preview"]],hostBindings:function(i,n){i&1&&b("touchstart",function(x){return n.onTouchStart(x)})("touchmove",function(x){return n.onTouchMove(x)})("touchend",function(x){return n.onTouchEnd(x)})},inputs:{maxImageWidth:[1,"maxImageWidth"],withSlider:[1,"withSlider"],product:[1,"product"]},standalone:!1,decls:3,vars:2,consts:[["loading","lazy","objectFit","scale-down",3,"attachment","alt","maxImageWidth"],["loading","lazy",1,"preview-img",3,"alt"],[1,"slider-hotzones"],[1,"zone"],[1,"zone",3,"mouseenter"],[1,"dots"],[1,"dots-skeleton"],[1,"dot",3,"active"],[1,"dot"]],template:function(i,n){i&1&&(p(0,da,2,2)(1,pa,1,3,"app-shared-attachment-image",0),p(2,fa,2,1)),i&2&&(m(n.images().length>1?0:1),o(2),m(n.images().length>1?2:-1))},dependencies:[ce],encapsulation:2})}}return t})();function Ca(t,c){t&1&&(a(0,"div",4),M(),a(1,"svg",6)(2,"g",7),d(3,"path",8),r(),a(4,"defs")(5,"clipPath",9),d(6,"path",10),r()()()())}function ga(t,c){t&1&&(a(0,"div",4),M(),a(1,"svg",6),d(2,"path",11),r()())}function va(t,c){t&1&&(a(0,"div",4),M(),a(1,"svg",12),d(2,"path",13)(3,"path",14),r()())}function _a(t,c){t&1&&(a(0,"div",4),M(),a(1,"svg",6),d(2,"path",15),r()())}function ya(t,c){if(t&1){let e=S();a(0,"div",3),b("click",function(){let n=w(e).$implicit,u=s();return P(u.clickLink(n))}),p(1,Ca,7,0,"div",4),p(2,ga,3,0,"div",4),p(3,va,4,0,"div",4),p(4,_a,3,0,"div",4),a(5,"div",5)(6,"span"),v(7),r()()()}if(t&2){let e=c.$implicit;o(),m(e.type==="telegram"?1:-1),o(),m(e.type==="vk"?2:-1),o(),m(e.type==="whatsapp"?3:-1),o(),m(e.type==="link"?4:-1),o(3),_(e.title)}}var Gi=(()=>{class t{constructor(e,i,n,u,x){this.clipboard=e,this.env=i,this.activatedRoute=n,this.cdr=u,this.appBootstrap$=x,this.confirmCityEvent=new oe,this.selectCityEvent=new oe,this.closeEvent=new oe,this.ngOnDestroy$=new H,this.state={links:[]}}ngOnInit(){this.state=O(E({},this.state),{links:[{url:"https://t.me/share/?url=",title:"Telegram",type:"telegram"},{url:"https://vk.com/share.php?url=",title:"\u0412\u041A\u043E\u043D\u0442\u0430\u043A\u0442\u0435",type:"vk"},{url:"https://api.whatsapp.com/send?text=",title:"WhatsApp",type:"whatsapp"},{title:"\u0421\u043A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0441\u0441\u044B\u043B\u043A\u0443",type:"link"}]})}get resolvedData(){return this.activatedRoute.snapshot.data[vo]}clickLink(e){let i=Un({type:Te.Product,payload:{productId:this.productId}}),n=`${this.env.current.baseUrl}${i}`;e.type==="link"?this.clipboard.copy(n):window&&window.open&&window.open(`${e.url}${n}`,"_blank"),this.close()}close(){this.closeEvent.emit(void 0)}ngOnDestroy(){this.ngOnDestroy$.next()}t(e){return`app.components.app_header_desktop_city.${e}`}static{this.\u0275fac=function(i){return new(i||t)(h(_o),h(re),h(Ke),h(se),h(Me))}}static{this.\u0275cmp=y({type:t,selectors:[["app-shared-product-favorite-share"]],inputs:{productId:"productId"},outputs:{confirmCityEvent:"confirmCityEvent",selectCityEvent:"selectCityEvent",closeEvent:"closeEvent"},standalone:!1,decls:4,vars:0,consts:[[1,"c"],[1,"c-options"],[1,"c-option"],[1,"c-option",3,"click"],[1,"c-option-label"],[1,"c-option-text"],["width","20","height","20","viewBox","0 0 20 20","fill","none","xmlns","http://www.w3.org/2000/svg"],["clip-path","url(#ba11)"],["d","M17.22 3.096 2.447 8.793c-1.009.405-1.003.968-.185 1.219l3.793 1.183 8.777-5.537c.415-.253.794-.117.482.16l-7.11 6.417H8.2h.002l-.262 3.91c.383 0 .552-.175.767-.382l1.843-1.792 3.832 2.83c.707.39 1.215.19 1.39-.653L18.29 4.29c.258-1.
1033-.394-1.5-1.068-1.195Z","fill","#617E8C"],["id","ba11"],["fill","#fff","d","M0 0h20v20H0z"],["fill-rule","evenodd","clip-rule","evenodd","d","M18.934 5.156c.139-.44 0-.76-.616-.76h-2.045c-.516 0-.755.28-.894.58 0 0-1.052 2.562-2.522 4.224-.476.48-.694.64-.953.64-.139 0-.318-.16-.318-.6V5.136c0-.52-.158-.761-.595-.761H7.773a.495.495 0 0 0-.516.48c0 .5.735.621.814 2.022v3.045c0 .66-.117.781-.377.781-.695 0-2.383-2.582-3.396-5.525-.196-.583-.396-.803-.913-.803H1.32c-.596 0-.695.28-.695.58 0 .541.695 3.263 3.237 6.867 1.688 2.46 4.09 3.783 6.255 3.783 1.31 0 1.47-.3 1.47-.8v-1.862c0-.6.119-.7.536-.7.297 0 .834.159 2.045 1.34 1.39 1.401 1.628 2.042 2.403 2.042h2.045c.596 0 .874-.3.715-.88-.179-.581-.854-1.422-1.728-2.423-.476-.56-1.191-1.18-1.41-1.481-.297-.4-.218-.56 0-.92-.02 0 2.483-3.564 2.74-4.766","fill","#617E8C"],["width","24","height","24","viewBox","0 0 24 24","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M16.722 14.06c-.255-.131-1.528-.755-1.765-.839-.236-.089-.41-.131-.58.131-.174.26-.667.84-.821 1.015-.15.174-.302.195-.558.066-1.519-.76-2.515-1.355-3.516-3.073-.264-.457.265-.424.76-1.41.084-.174.042-.322-.024-.453-.065-.131-.58-1.402-.797-1.92-.208-.504-.424-.433-.58-.443-.15-.009-.322-.009-.495-.009a.956.956 0 0 0-.69.321c-.236.26-.904.886-.904 2.156s.926 2.501 1.052 2.675c.132.173 1.821 2.78 4.416 3.902 1.64.708 2.283.769 3.103.647.5-.075 1.528-.624 1.741-1.23.214-.605.214-1.123.15-1.231-.063-.115-.236-.18-.492-.305Z","fill","#617E8C"],["d","M21.684 7.931a10.505 10.505 0 0 0-5.615-5.615A10.45 10.45 0 0 0 12 1.5h-.047A10.475 10.475 0 0 0 1.5 12.05a10.533 10.533 0 0 0 1.125 4.684v3.563c0 .595.483 1.078 1.078 1.078h3.565a10.532 10.532 0 0 0 4.685 1.125h.05c1.403 0 2.765-.272 4.047-.804a10.418 10.418 0 0 0 3.347-2.231 10.473 10.473 0 0 0 3.103-7.418 10.459 10.459 0 0 0-.816-4.116Zm-3.54 10.266A8.673 8.673 0 0 1 12 20.719h-.04a8.75 8.75 0 0 1-4.057-1.02l-.197-.105h-3.3v-3.3l-.105-.197a8.75 8.75 0 0 1-1.02-4.057 8.665 8.665 0 0 1 2.522-6.183 8.653 8.653 0 0 1 6.16-2.576h.04c1.171 0 2.308.228 3.38.678a8.662 8.662 0 0 1 2.788 1.875 8.683 8.683 0 0 1 2.552 6.206 8.686 8.686 0 0 1-2.58 6.157Z","fill","#617E8C"],["d","m15.802 12.848-1.441-1.442 1.441-1.441a4.078 4.078 0 0 0-5.767-5.767L8.594 5.639 7.152 4.198l1.442-1.442a6.117 6.117 0 0 1 8.65 8.65l-1.442 1.442Zm-2.884 2.884-1.441 1.441a6.116 6.116 0 1 1-8.65-8.65l1.441-1.441L5.71 8.523 4.268 9.965a4.078 4.078 0 1 0 5.767 5.767l1.442-1.442 1.441 1.442Zm0-10.093 1.443 1.443-7.209 7.207-1.442-1.441 7.208-7.208Z","fill","#617E8C"]],template:function(i,n){i&1&&(a(0,"div",0)(1,"div",1),D(2,ya,8,5,"div",2,G),r()()),i&2&&(o(2),T(n.state.links))},styles:[".c[_ngcontent-%COMP%]   .c-options[_ngcontent-%COMP%]   .c-option[_ngcontent-%COMP%]{padding:6px 15px;display:flex;gap:8px}.c[_ngcontent-%COMP%]   .c-options[_ngcontent-%COMP%]   .c-option[_ngcontent-%COMP%]:last-child{border-bottom:0}.c[_ngcontent-%COMP%]   .c-options[_ngcontent-%COMP%]   .c-option[_ngcontent-%COMP%]   .c-option-label[_ngcontent-%COMP%]   svg[_ngcontent-%COMP%]{display:block;margin:auto;height:100%}.c[_ngcontent-%COMP%]   .c-options[_ngcontent-%COMP%]   .c-option[_ngcontent-%COMP%]   .c-option-text[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-style:normal;font-weight:400;font-size:13px;line-height:38px;color:var(--color-black)}.c[_ngcontent-%COMP%]   .c-options[_ngcontent-%COMP%]   .c-option[_ngcontent-%COMP%]{cursor:pointer}.c[_ngcontent-%COMP%]   .c-options[_ngcontent-%COMP%]   .c-option[_ngcontent-%COMP%]:hover   .c-option-text[_ngcontent-%COMP%]   span[_ngcontent-%COMP%], .c[_ngcontent-%COMP%]   .c-options[_ngcontent-%COMP%]   .c-option.is-selected[_ngcontent-%COMP%]   .c-option-text[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{color:var(--color-primary)}.c[_ngcontent-%COMP%]   .c-options[_ngcontent-%COMP%]   .c-option[_ngcontent-%COMP%]   .c-option-text[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-style:normal;font-weight:400;font-size:14px;line-height:28px;color:var(--color-black)}"]})}}return t})();var xa=["attachProductSharePopup"],Po=t=>({"is-active":t}),Gt=(()=>{class t{constructor(e,i,n){this.helper=e,this.cdr=i,this.overlay=n,this.withLabels=!1,this.withShare=!1,this.withCompare=!1,this.withFavorite=!1,this.withBasket=!1,this.animTokens=new WeakMap,this.ngOnDestroy$=new H}ngOnDestroy(){this.ngOnDestroy$.next()}onFavoriteClick(e){let i=Math.random()*1e9|0;this.animTokens.set(e,i),e.classList.remove("just-toggled"),e.offsetWidth,e.classList.add("just-toggled"),window.setTimeout(()=>{this.animTokens.get(e)===i&&(e.classList.remove("just-toggled"),this.animTokens.delete(e))},720)}shareClick(){let e=new H,i=this.overlay.create(O(E({},Fn),{positionStrategy:this.overlay.position().flexibleConnectedTo(this.attachProductSharePopupRef.nativeElement).withPositions([{originX:"start",originY:"bottom",offsetX:-16,offsetY:0,overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",offsetX:-16,offsetY:0,overlayX:"start",overlayY:"bottom"}]).withFlexibleDimensions(!1).withPush(!1),hasBackdrop:!0,scrollStrategy:this.overlay.scrollStrategies.reposition({autoClose:!0,scrollThrottle:0})})),n=new oo(Gi),u=i.attach(n);u.instance.productId=this.helper.product.id,u.instance.closeEvent.pipe(J(e)).subscribe(()=>{this.cdr.markForCheck(),e.next(),i.detach()}),i.backdropClick().pipe(J(e)).subscribe(()=>{e.next(),i.detach()})}static{this.\u0275fac=function(i){return new(i||t)(h(N),h(se),h(ao))}}static{this.\u0275cmp=y({type:t,selectors:[["app-shared-product-card-assets-favorite-compare"]],viewQuery:function(i,n){if(i&1&&Qe(
1xa,5),i&2){let u;Xe(u=Ze())&&(n.attachProductSharePopupRef=u.first)}},inputs:{withLabels:"withLabels",withShare:"withShare",withCompare:"withCompare",withFavorite:"withFavorite",withBasket:"withBasket"},standalone:!1,decls:17,vars:27,consts:[["favoriteBtn",""],[1,"c-action-button",3,"click","ngClass"],[1,"icon-heart","sprite_u_favorite"],[1,"glow","glow1"],[1,"glow","glow2"],[1,"fill"],[1,"stroke"],[1,"sprite_u_compare"]],template:function(i,n){if(i&1){let u=S();a(0,"div",1,0),f(2,"async"),b("click",function(){w(u);let B=Y(1);return n.onFavoriteClick(B),P(n.helper.favorite.toggleFavorites())}),M(),a(3,"svg",2),d(4,"use",3),f(5,"sprite"),d(6,"use",4),f(7,"sprite"),d(8,"use",5),f(9,"sprite"),d(10,"use",6),f(11,"sprite"),r()(),L(),a(12,"div",1),f(13,"async"),b("click",function(){return n.helper.compare.toggleCompares()}),M(),a(14,"svg",7),d(15,"use"),f(16,"sprite"),r()()}i&2&&(l("ngClass",U(23,Po,C(2,9,n.helper.favorite.isInFavorites$))),I("data-favorite-for",n.helper.product?.id),o(4),I("href",C(5,11,"u_favorite_fill")),o(2),I("href",C(7,13,"u_favorite_fill")),o(2),I("href",C(9,15,"u_favorite_fill")),o(2),I("href",C(11,17,"u_favorite_stroke")),o(2),l("ngClass",U(25,Po,C(13,19,n.helper.compare.isInCompares$))),I("data-compare-for",n.helper.product?.id),o(3),I("href",C(16,21,"u_compare")))},dependencies:[j,ye,Z],encapsulation:2})}}return t})();function ba(t,c){if(t&1&&(a(0,"div",3),f(1,"translate"),a(2,"span"),v(3),f(4,"translate"),r()()),t&2){let e=s(2);l("title",ge(C(1,3,e.t("badge.isOutOfProduction.alt")))),o(3),_(C(4,5,e.t("badge.isOutOfProduction.title")))}}function wa(t,c){if(t&1&&p(0,ba,5,7,"div",3),t&2){let e=s();m(e.helper.product.flags.isOutOfProduction?0:-1)}}function Pa(t,c){if(t&1&&(a(0,"div",4)(1,"span"),v(2),r(),M(),a(3,"svg",5),d(4,"path",6)(5,"path",7)(6,"path",8),r()()),t&2){let e=s(2);o(2),_("-"+e.helper.price.percentsDiscount)}}function Sa(t,c){if(t&1&&p(0,Pa,7,1,"div",4),t&2){let e=s();m(e.helper.price.hasPercentsDiscount?0:-1)}}function ka(t,c){if(t&1&&(a(0,"div",9)(1,"span"),v(2),r()()),t&2){let e=s(2);l("title",e.helper.product.sale.badge||e.helper.product.sale.badgeForCard),o(2),_(e.helper.product.sale.badgeForCard)}}function Ma(t,c){if(t&1&&p(0,ka,3,2,"div",9),t&2){let e=s();m(e.helper.price.hasSale?0:-1)}}function Ba(t,c){if(t&1&&(a(0,"div",10),f(1,"translate"),M(),a(2,"svg",11),d(3,"use"),f(4,"sprite"),r(),L(),a(5,"span"),v(6),f(7,"translate"),r()()),t&2){let e=s(2);l("title",ge(C(1,4,e.t("badge.isNew.alt")))),o(3),I("href",C(4,6,"u_isnew")),o(3),_(C(7,8,e.t("badge.isNew.title")))}}function Da(t,c){if(t&1&&p(0,Ba,8,10,"div",10),t&2){let e=s();m(e.helper.product.flags.isNew?0:-1)}}function Ta(t,c){if(t&1&&(a(0,"div",12),f(1,"translate"),M(),a(2,"svg",11),d(3,"use"),f(4,"sprite"),r(),L(),a(5,"span"),v(6),f(7,"translate"),r()()),t&2){let e=s(2);l("title",ge(C(1,4,e.t("badge.isHit.alt")))),o(3),I("href",C(4,6,"u_ishit")),o(3),_(C(7,8,e.t("badge.isHit.title")))}}function Ia(t,c){if(t&1&&p(0,Ta,8,10,"div",12),t&2){let e=s();m(e.helper.product.flags.isHit?0:-1)}}function Ea(t,c){if(t&1&&(a(0,"div",1),f(1,"translate"),a(2,"span"),v(3),f(4,"translate"),r()()),t&2){let e=s();l("title",ge(C(1,3,e.t("badge.analogBadge.alt")))),o(3),_(C(4,5,e.t("badge.analogBadge.title")))}}function Aa(t,c){t&1&&(a(0,"div",2)(1,"span"),v(2,"\u0414\u0415\u0428\u0415\u0412\u041B\u0415"),r()())}var Ui=["out-of-production","sale","new","hit","customer-choice","popular","is-available-vendor-depot","is-available-depot"],Ut=(()=>{class t{constructor(e){this.helper=e,this.maxBadgeWidth=180,this.filter=[...Ui],this.fontSize="default",this.flexPrices=!0,this.analogBage=!1,this.cheapestBage=!1}t(e){return`__shared.product.components.product_card.${e}`}get ngClass(){let e=[`font-size-${this.fontSize}`];return this.viewmode&&e.push(`viewmode-${this.viewmode}`),e}get badgeNgStyle(){return{"max-width":`${this.maxBadgeWidth}px`}}isBadgeEnabled(e){return this.filter.includes(e)}static{this.\u0275fac=function(i){return new(i||t)(h(N))}}static{this.\u0275cmp=y({type:t,selectors:[["app-shared-product-card-assets-badges-a"]],inputs:{resolvedData:"resolvedData",maxBadgeWidth:"maxBadgeWidth",filter:"filter",fontSize:"fontSize",flexPrices:"flexPrices",analogBage:"analogBage",cheapestBage:"cheapestBage",product:"product",viewmode:"viewmode"},standalone:!1,decls:8,vars:8,consts:[[1,"c",3,"ngClass"],[1,"badge","badge-analog",3,"title"],["title","\u0414\u0415\u0428\u0415\u0412\u041B\u0415",1,"badge","badge-analog"],[1,"badge","badge-is-out-of-production",3,"title"],[1,"badge","badge-percents-discount"],["width","13","height","13","viewBox","0 0 13 13","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M10.1 3.09994L3.09998 10.0999","stroke","white","stroke-width","2","stroke-linecap","round","stroke-linejoin","round"],["d","M3.60004 5.60001C4.70461 5.60001 5.
160004 4.70458 5.60004 3.60001C5.60004 2.49544 4.70461 1.60001 3.60004 1.60001C2.49547 1.60001 1.60004 2.49544 1.60004 3.60001C1.60004 4.70458 2.49547 5.60001 3.60004 5.60001Z","stroke","white","stroke-width","2","stroke-linecap","round","stroke-linejoin","round"],["d","M9.60004 11.5999C10.7046 11.5999 11.6 10.7045 11.6 9.59994C11.6 8.49537 10.7046 7.59994 9.60004 7.59994C8.49547 7.59994 7.60004 8.49537 7.60004 9.59994C7.60004 10.7045 8.49547 11.5999 9.60004 11.5999Z","stroke","white","stroke-width","2","stroke-linecap","round","stroke-linejoin","round"],[1,"badge","badge-sale",3,"title"],[1,"badge","badge-new",3,"title"],["width","16","height","16"],[1,"badge","badge-hit",3,"title"]],template:function(i,n){i&1&&(a(0,"div",0),p(1,wa,1,1),p(2,Sa,1,1),p(3,Ma,1,1),p(4,Da,1,1),p(5,Ia,1,1),p(6,Ea,5,7,"div",1),p(7,Aa,3,0,"div",2),r()),i&2&&(l("ngClass",n.ngClass),o(),m(n.isBadgeEnabled("out-of-production")?1:-1),o(),m(n.isBadgeEnabled("discount")?2:-1),o(),m(n.isBadgeEnabled("sale")?3:-1),o(),m(n.isBadgeEnabled("new")?4:-1),o(),m(n.isBadgeEnabled("hit")?5:-1),o(),m(n.analogBage?6:-1),o(),m(n.cheapestBage?7:-1))},dependencies:[j,K,Z],encapsulation:2})}}return t})();function Oa(t,c){t&1&&(M(),a(0,"svg",7),d(1,"use"),f(2,"sprite"),r()),t&2&&(o(),I("href",C(2,1,"star-icon")))}function Va(t,c){t&1&&(M(),a(0,"svg",8),d(1,"use"),f(2,"sprite"),r()),t&2&&(o(),I("href",C(2,1,"star-icon")))}function La(t,c){if(t&1&&(a(0,"div",5),p(1,Oa,3,3,":svg:svg",7)(2,Va,3,3,":svg:svg",8),v(3),r()),t&2){let e=s();o(),m(e.helper.product.rating>3?1:2),o(2),X(" ",e.helper.product.rating||1," ")}}function Ra(t,c){if(t&1&&(a(0,"div",6),M(),a(1,"svg",9),d(2,"use"),f(3,"sprite"),r(),v(4),r()),t&2){let e=s();o(2),I("href",C(3,2,"rating-count")),o(2),X(" ",e.helper.product.ratingCount," ")}}var zt=(()=>{class t{constructor(e){this.helper=e,this.layout="stretch"}async copyCode(e){let i=this.helper.product?.id;if(i)try{await navigator.clipboard.writeText(i.toString()),e.classList.add("copied"),setTimeout(()=>e.classList.remove("copied"),1500)}catch{}}static{this.\u0275fac=function(i){return new(i||t)(h(N))}}static{this.\u0275cmp=y({type:t,selectors:[["app-shared-product-card-assets-rating-a"]],hostVars:4,hostBindings:function(i,n){i&2&&te("stretch",n.layout==="stretch")("compact",n.layout==="compact")},inputs:{product:"product",layout:"layout"},standalone:!1,decls:11,vars:6,consts:[["copyBtn",""],[1,"c-code"],["title","\u0421\u043A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0430\u0440\u0442\u0438\u043A\u0443\u043B",1,"c-code-copy",3,"click"],[1,"sprite_icon-copy"],[1,"c-ratings"],[1,"c-rating"],[1,"c-rating-count"],[1,"sprite_star-icon","sprite_star-icon_full"],[1,"sprite_star-icon"],[1,"sprite_rating-count"]],template:function(i,n){if(i&1){let u=S();a(0,"div",1)(1,"span"),v(2),r(),a(3,"div",2,0),b("click",function(){w(u);let B=Y(4);return P(n.copyCode(B))}),M(),a(5,"svg",3),d(6,"use"),f(7,"sprite"),r()()(),L(),a(8,"div",4),p(9,La,4,2,"div",5),p(10,Ra,5,4,"div",6),r()}
1i&2&&(o(2),X("\u0410\u0440\u0442. ",n.helper.product.id),o(4),I("href",C(7,4,"icon-copy")),o(3),m(n.helper.product.rating?9:-1),o(),m(n.helper.product.ratingCount?10:-1))},dependencies:[Z],encapsulation:2})}}return t})();function Fa(t,c){if(t&1&&(M(),a(0,"svg",4),d(1,"use"),f(2,"sprite"),r()),t&2){let e=c.$index;te("c-first-star",e===0),o(),I("href",C(2,3,"u_star"))}}var Wt=(()=>{class t{constructor(e){this.helper=e,this.withRating=!0,this.withReviews=!0,this.withIsAvailableOnDepot=!0,this.shouldShowNoReviewsMessage=!0,this.shouldShowFiveEmptyStars=!1}t(e){return`product_shared.assets.product_card_rating.${e}`}get starsArray(){let e=Number(this.product?.ratings?.score)||0;return Array(e).fill(0)}get isAvailableNgClass(){return{"is-available-on-depot":this.helper.product&&this.helper.product.flags.isAvailableDepot,"is-available-on-vendor-depot":this.helper.product&&this.helper.product.flags.isAvailableVendorDepot&&!this.helper.product.flags.isAvailableDepot}}static{this.\u0275fac=function(i){return new(i||t)(h(N))}}static{this.\u0275cmp=y({type:t,selectors:[["app-shared-product-card-assets-rating-interid"]],inputs:{withRating:"withRating",withReviews:"withReviews",withIsAvailableOnDepot:"withIsAvailableOnDepot",shouldShowNoReviewsMessage:"shouldShowNoReviewsMessage",shouldShowFiveEmptyStars:"shouldShowFiveEmptyStars",product:"product"},standalone:!1,decls:10,vars:6,consts:[[1,"c-r-f-number"],["width","17","height","16",1,"sprite_u_device_small"],["width","8","height","8",1,"sprite_u_star_small",3,"c-first-star"],[1,"c-r-s"],["width","8","height","8",1,"sprite_u_star_small"]],template:function(i,n){i&1&&(a(0,"div",0),M(),a(1,"svg",1),d(2,"use"),f(3,"sprite"),r(),v(4),f(5,"ratingFormat"),D(6,Fa,3,5,":svg:svg",2,pe),r(),L(),a(8,"div",3),v(9,"\u0420\u0435\u0439\u0442\u0438\u043D\u0433 Inter iD"),r()),i&2&&(o(2),I("href",C(3,2,"u_device")),o(2),X(" ",C(5,4,n.product.ratings==null?null:n.product.ratings.score)," "),o(2),T(n.starsArray))},dependencies:[Co,Z],encapsulation:2})}}return t})();var ki=t=>({"is-active":t});function Na(t,c){if(t&1&&(a(0,"span",10),v(1),r()),t&2){let e=s(3);o(),_(e.helper.compare.labelCompare)}}function Ha(t,c){if(t&1){let e=S();a(0,"div",2),f(1,"async"),b("click",function(){w(e);let n=s(2);return P(n.helper.compare.toggleCompares())}),M(),a(2,"svg",3),d(3,"rect",4)(4,"rect",5)(5,"rect",6)(6,"rect",7)(7,"rect",8)(8,"rect",9),r(),p(9,Na,2,1,"span",10),r()}if(t&2){let e=s(2);l("ngClass",U(5,ki,C(1,3,e.helper.compare.isInCompares$))),I("data-compare-for",e.helper.product?.id),o(9),m(e.withLabels?9:-1)}}function $a(t,c){if(t&1&&(a(0,"span",10),v(1),r()),t&2){let e=s(3);o(),_(e.helper.favorite.labelFavorite)}}function ja(t,c){if(t&1){let e=S();a(0,"div",11),f(1,"async"),b("click",function(){w(e);let n=s(2);return P(n.helper.favorite.toggleFavorites())}),M(),a(2,"svg",12),d(3,"path",13),r(),p(4,$a,2,1,"span",10),r()}if(t&2){let e=s(2);l("ngClass",U(5,ki,C(1,3,e.helper.favorite.isInFavorites$))),I("data-favorite-for",e.helper.product?.id),o(4),m(e.withLabels?4:-1)}}function qa(t,c){if(t&1&&(p(0,Ha,10,7,"div",0),p(1,ja,5,7,"div",1)),t&2){let e=s();m(e.withCompare?0:-1),o(),m(e.withFavorite?1:-1)}}function Ga(t,c){if(t&1&&(a(0,"span",10),v(1),r()),t&2){let e=s(3);o(),_(e.helper.compare.labelCompare)}}function Ua(t,c){if(t&1){let e=S();a(0,"div",18),f(1,"async"),b("click",function(){w(e);let n=s(2);return P(n.helper.compare.toggleCompares())}),M(),a(2,"svg",3),d(3,"rect",4)(4,"rect",5)(5,"rect",6)(6,"rect",7)(7,"rect",8)(8,"rect",9),r(),p(9,Ga,2,1,"span",10),r()}if(t&2){let e=s(2);l("ngClass",U(6,ki,C(1,4,e.helper.compare.isInCompares$)))("title",e.withLabels?null:e.helper.compare.labelCompare),I("data-compare-for",e.helper.product?.id),o(9),m(e.withLabels?9:-1)}}function za(t,c){if(t&1&&(a(0,"span",10),v(1),r()),t&2){let e=s(3);o(),_(e.helper.favorite.labelFavorite)}}function Wa(t,c){if(t&1){let e=S();a(0,"div",19),f(1,"async"),b("click",function(){w(e);let n=s(2);return P(n.helper.favorite.toggleFavorites())}),M(),a(2,"svg",12),d(3,"path",13),r(),p(4,za,2,1,"span",10),r()}if(t&2){let e=s(2);l("ngClass",U(6,ki,C(1,4,e.helper.favorite.isInFavorites$)))("title",e.withLabels?null:e.helper.favorite.labelFavorite),I("data-favorite-for",e.helper.product?.id),o(4),m(e.withLabels?4:-1)}}function Qa(t,c){if(t&1&&(a(0,"span",22),v(1),r(),a(2,"span",23),v(3),r()),t&2){let e=s(3);o(),_(e.basketLabelShort),o(2),_(e.basketLabelFull)}}function Xa(t,c){if(t&1&&v(0),t&2){let e=s(3);X(" ",e.basketLabelFull," ")}}function Za(t,c){if(t&1){let e=S();a(0,"div",20),b("click",function(){w(e);let n=s(2);return P(n.onBasketClick())}),M(),a(1,"svg",21),d(2,"use"),f(3,"sprite"),r(),L(),a(4,"span"),p(5,Qa,4,2)(6,Xa,1,1),r()()}if(t&2){let e=s(2);te("is-active",e.state.productsAmountVisible),l("ngClass",e.buttonNgClass),I("data-product-id",e.helper.product?.id)("data-basket-labels",e.basketLabels),o(2),I("href",C(3,7,"icon-cart")),o(3),m(e.mobileMainLayout?5:6)}}function Ya(t,c){if(t&1&&(a(0,"span",25),v(1),f(2,"translate"),r(),a(3,"span",26),v(4),f(5,"translate"),r()),t&2){let e=s(3);o(),_(C(2,2,e.t("orderWithProductRequestShort"))),o(3),_(C(5,4,e.t("orderWithProductRequest")))}}function Ka(t,c){if(t&1&&(v(0),f(1,"translate")),t&2){let e=s(3);X(" ",C(1,1,e.t("orderWithProductRequest"))," ")}}function Ja(t,c){if(t&1){let e=S();a(0,"div",24),b("click",function(){w(e);let n=s(2);return P(n.productRequest())}),a(1,"span"),p(2,Ya,6,6)(3,Ka,2,3),r()()}if(t&2){let e=s(2);l("ngClass",e.buttonNgClass),o(2),m(e.mobileMainLayout?2:3)}}function er(t,c){if(t&1&&(p(0,Ua,10,8,"div",14),p(1,Wa,5,8,"div",15),p(2,Za,7,9,"div",16),p(3,Ja,4,2,"div",17)),t&2){let e=s();m(e.withCompare?0:-1),o(),m(e.withFavorite?1:-1),o(),m(e.helper.price.hasPrice&&!e.isCustomOrder&&e.withBasket?2:-1),o(),m(!e.helper.price.hasPrice||e.isCustomOrder?3:-1)}}var Qt=(()=>{class t{get classVariant1(){return this.variant===1}get classVariant2(){return this.variant===2}get classMobileMain(){return this.variant===2&&this.mobileMainLayout}constructor(e,i,n,u,x,B,V){this.matDialog=e,this.env=i,this.i18n=n,this.platformId=u,this.cdr=x,this.helper=B,this.session=V,this.variant=1,this.withLabels=!1,this.withCompare=!1,this.withFavorite=!1,this.withBasket=!1,this.fullWidthBasketButton=!1,this.mobileMainLayout=!0,this.classC=!0,this.state={productsAmountVisible:!1,amount:0}}ngOnInit(){ae(this.platformId)&&(this.state=O(E({},this.state),{productsAmountVisible:!!this.helper.product.inBasket,amount:this.helper.product.inBasket??0}))}productRequest(){this.matDialog.open(Mt,O(E({},fe),{disableClose:!1,data:{withMessage:this.i18n.instant(this.t("orderWithProductRequestMessage"),{product:this.helper.product,url:`${this.env.current.baseUrl}/kupit/${this.helper.product.id}`}),context:gt.ProductOneClickBuy,productId:this.helper.product.id,productPrice:this.helper.product.price}}))}get isCustomOrder(){return!this.isAvailableDepot&&!this.isAvailableVendorDepot}get isAvailableDepot(){return this.helper.product.flags.isAvailableDepot}get isAvailableVendorDepot(){return this.helper.product.flags.isAvailableVendorDepot}get buttonNgClass(){return{fullWidthBasketButton:this.fullWidthBasketButton}}async removeFromBasket(){this.helper.source.product.inBasket=void 0,this.state.productsAmountVisible=!1,await Vt(this.helper.basket.setBasketAmount(0)),this.state.amount=0}addToBasket(){this.helper.basket.addToBasket$().subscribe(e=>{this.state.productsAmountVisible=!0,this.state.amount=e.amount,this.cdr.markForCheck()})}async setBasketAmount(e){let i=this.state.amount+parseFloat(e);i<0||(i==0&&(this.helper.source.product.inBasket=void 0,this.state.productsAmountVisible=!1),await Vt(this.helper.basket.setBasketAmount(i)),this.state.amount=i)}onBasketClick(){this.state.productsAmountVisible?this.removeFromBasket():this.addToBasket()}get basketLabels(){let e=this.i18n.instant(this.t("inBasketSingle"));return[e,e].join("|")}get basketLabelFull(){return this.state.productsAmountVisible?this.i18n.instant(this.t("inBasketSingle")):this.i18n.instant(this.t("inBasketNone"))}get basketLabelShort(){return this.state.productsAmountVisible?this.i18n.instant(this.t("inBasketSingle")):this.i18n.instant(this.t("inBasketNoneShort"))}t(e){return`product_shared.assets.product_card_buy_button.${e}`}static{this.\u0275fac=function(i){return new(i||t)(h(be),h(re),h(le),h(ee),h(se),h(N),h(de))}}static{this.\u0275cmp=y({type:t,selectors:[["app-shared-product-card-assets-favorite-compare-a"]],hostVars:8,hostBindings:function(i,n){i&2&&te("c",n.classC)("c-variant-1",n.classVariant1)("c-variant-2",n.classVariant2)("is-mobile-main",n.classMobileMain)},inputs:{variant:"variant",withLabels:"withLabels",withCompare:"withCompare",withFavorite:"withFavorite",withBasket:"withBasket",fullWidthBasketButton:"fullWidthBasketButton",product:"product",mobileMainLayout:"mobileMainLayout"},standalone:!1,decls:2,vars:2,consts:[[1,"c-control","c-compare",3,"ngClass"],[1,"c-control","c-favorite",3,"ngClass"],[1,"c-control","c-compare",3,"click","ngClass"],["width","18","height","17","viewBox","0 0 18 17","fill","none","xmlns","http://www.w3.org/2000/svg"],["x","4","y","13","width","2","height","4","fill","#8D96B9",1,"hover-fill"],["x","4","width","2","height","10","fill","#8D96B9",1,"hover-fill"],["x","10","y","4","width","2","height","10","transform","rotate(90 10 4)","fill","#8D96B9",1,"hover-fill"],["x","8","y","11","width","2","height","6","fill","#8D96B9",1,"hover-fill"],["x","16","y","9","
1width","2","height","8","fill","#8D96B9",1,"hover-fill"],["x","12","y","7","width","2","height","10","fill","#8D96B9",1,"hover-fill"],[1,"c-label"],[1,"c-control","c-favorite",3,"click","ngClass"],["width","18","height","18","viewBox","0 0 18 18","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M8.148 4.04979L8.99989 5.43582L9.85186 4.04984C10.5341 2.93993 11.7503 2.20386 13.1391 2.20386C15.2714 2.20386 17 3.93238 17 6.06466C17 7.22347 16.4879 8.26089 15.6741 8.97078L15.6484 8.99317L15.6243 9.01727L8.99994 15.6419L2.37557 9.01727L2.35149 8.99318L2.32582 8.97079C1.51207 8.26092 1 7.22351 1 6.06466C1 3.93222 2.72812 2.20386 4.86029 2.20386C6.24919 2.20386 7.46593 2.94006 8.148 4.04979Z","stroke","#8D96B9","stroke-width","2",1,"hover-stroke"],[1,"c-control","c-compare",3,"ngClass","title"],[1,"c-control","c-favorite",3,"ngClass","title"],["data-basket-active-class","is-active",1,"c-basket",3,"is-active","ngClass"],[1,"c-basket","is-not-available",3,"ngClass"],[1,"c-control","c-compare",3,"click","ngClass","title"],[1,"c-control","c-favorite",3,"click","ngClass","title"],["data-basket-active-class","is-active",1,"c-basket",3,"click","ngClass"],[1,"sprite_icon-cart"],["data-basket-label","",1,"c-basket-label-short"],["data-basket-label","",1,"c-basket-label-full"],[1,"c-basket","is-not-available",3,"click","ngClass"],[1,"c-basket-label-short"],[1,"c-basket-label-full"]],template:function(i,n){i&1&&(p(0,qa,2,2),p(1,er,4,4)),i&2&&(m(n.variant===1?0:-1),o(),m(n.variant===2?1:-1))},dependencies:[j,ye,K,Z],encapsulation:2})}}return t})();function tr(t,c){if(t&1&&(a(0,"div",2)(1,"div",4)(2,"span"),v(3),r()(),a(4,"div",5)(5,"span"),v(6),r()()()),t&2){let e=s().$implicit,i=s();o(3),_(e.paramsName),o(3),_(i.helper.params.paramDisplayValue(e))}}function ir(t,c){if(t&1&&(a(0,"div",3)(1,"div",4)(2,"span"),v(3),r()(),a(4,"div",5)(5,"span"),v(6),r()()()),t&2){let e=s().$implicit,i=s();o(3),X("",e.paramsName,":"),o(3),_(i.helper.params.paramDisplayValue(e))}}function nr(t,c){if(t&1&&(a(0,"div",1),p(1,tr,7,2,"div",2)(2,ir,7,2,"div",3),r()),t&2){let e=s();o(),m(e.viewmode==="card"?1:e.viewmode==="list"?2:-1)}}var To=(function(t){return t.List="list",t.Card="card",t})(To||{}),Xt=(()=>{class t{constructor(e){this.helper=e,this.viewmode=To.Card}trackByProductParamsId(e,i){return i.id}static{this.\u0275fac=function(i){return new(i||t)(h(N))}}static{this.\u0275cmp=y({type:t,selectors:[["app-shared-product-card-assets-params-a"]],inputs:{viewmode:"viewmode",product:"product"},standalone:!1,decls:3,vars:0,consts:[[1,"c"],[1,"params"],[1,"param"],[1,"param","list-mode"],[1,"param-name"],[1,"param-value"]],template:function(i,n){i&1&&(a(0,"div",0),D(1,nr,3,1,"div",1,n.trackByProductParamsId,!0),r()),i&2&&(o(),T(n.helper.params.cardProductParams))},encapsulation:2})}}return t})();function or(t,c){return this.trackByIconPath(c)}function ar(t,c){if(t&1&&d(0,"img",3),t&2){let e=s().$implicit,i=s(2);l("title",e.dictTooltip)("src",i.url(e.dictIconPath),he),I("alt",e.dictTooltip)}}function rr(t,c){if(t&1&&d(0,"img",3),t&2){let e=s().$implicit,i=s(4);l("title",e.tooltip)("src",i.url(e.iconPath),he),I("alt",e.tooltip)}}function sr(t,c){if(t&1&&p(0,rr,1,3,"img",3),t&2){let e=c.$implicit;m(e.iconPath?0:-1)}}function cr(t,c){if(t&1&&D(0,sr,1,1,null,null,or,!0),t&2){let e=s().$implicit,i=s(2);T(i.dictManyStaticBagesArray(e.dictManyStaticBagesArray))}}function lr(t,c){if(t&1&&(p(0,ar,1,3,"img",3),p(1,cr,2,0)),t&2){let e=c.$implicit;m(e.paramsType==="dict"&&e.dictIconPath?0:-1),o(),m(e.paramsType==="dictMany"?1:-1)}}function dr(t,c){if(t&1){let e=S();a(0,"div",1)(1,"div",2,0),b("pointerdown",function(n){w(e);let u=Y(2),x=s();return P(x.onPointerDown(n,u))})("pointermove",function(n){w(e);let u=Y(2),x=s();return P(x.onPointerMove(n,u))})("pointerup",function(){w(e);let n=Y(2),u=s();return P(u.onPointerUp(n))})("pointercancel",function(){w(e);let n=Y(2),u=s();return P(u.onPointerUp(n))})("mouseleave",function(){w(e);let n=Y(2),u=s();return P(u.onPointerUp(n))}),D(3,lr,2,2,null,null,G),r()()}if(t&2){let e=s();o(),te("centered",e.centered),I("data-badges-product-id",e.helper.product.id),o(2),T(e.helper.params.cardProductBagesParams)}}var Zt=(()=>{class t{constructor(e,i,n){this.platformId=e,this.env=i,this.helper=n,this.centered=!1,this.isDown=!1,this.startX=0,this.startLeft=0,this.browser=!1}ngOnInit(){this.browser=ae(this.platformId)}onPointerDown(e,i){this.browser&&(this.isDown=!0,i.classList.add("dragging"),i.setPointerCapture?.(e.pointerId),this.startX=e.clientX,this.startLeft=i.scrollLeft)}onPointerMove(e,i){if(!this.browser||!this.isDown)return;e.preventDefault();let n=e.clientX-this.startX;i.scrollLeft=this.startLeft-n}onPointerUp(e){this.browser&&(this.isDown=!1,e.classList.remove("dragging"))}trackByIconPath(e){return e.iconPath}dictManyStaticBagesArray(e){return e?.map(i=>
1{let[n,u]=i.split("	");return{iconPath:n,tooltip:u}})??[]}url(e){return e?`${this.env.current.attachmentEndpoint}/${e}`:void 0}static{this.\u0275fac=function(i){return new(i||t)(h(ee),h(re),h(N))}}static{this.\u0275cmp=y({type:t,selectors:[["app-shared-product-card-assets-parameters-badges"]],inputs:{product:"product",centered:"centered"},standalone:!1,decls:1,vars:1,consts:[["scroller",""],[1,"c-image-parameters-badges"],["aria-label","\u0421\u043F\u0438\u0441\u043E\u043A \u0431\u0435\u0439\u0434\u0436\u0435\u0439","role","list","tabindex","0",1,"c-badges",3,"pointerdown","pointermove","pointerup","pointercancel","mouseleave"],["loading","lazy","role","listitem",3,"title","src"]],template:function(i,n){i&1&&p(0,dr,5,3,"div",1),i&2&&m(n.helper.params.hasCardProductBagesParams?0:-1)},encapsulation:2})}}return t})();var pr=["bonusTrigger"],mr=t=>({"price-current--blue":t});function ur(t,c){if(t&1&&(a(0,"span",5),v(1),r()),t&2){let e=s(2);o(),X("/ ",e.helper.product.priceComment)}}function hr(t,c){if(t&1){let e=S();a(0,"div",10,0),b("click",function(){w(e);let n=s(2);return P(n.openLoyaltyBannerPopup())}),a(2,"div",11)(3,"span"),v(4),f(5,"money"),r(),a(6,"div",12),M(),a(7,"svg",13),d(8,"use"),f(9,"sprite"),r(),a(10,"svg",14),d(11,"use"),f(12,"sprite"),r()()(),L(),a(13,"span",15),v(14,"\u0431\u043E\u043D\u0443\u0441\u044B"),r()()}if(t&2){let e=s(2);o(4),_(C(5,3,e.getBonusAmount())),o(4),I("href",C(9,5,"gift_id")),o(3),I("href",C(12,7,"gift_id-plus"))}}function fr(t,c){if(t&1){let e=S();a(0,"div",16,0),b("click",function(){w(e);let n=s(2);return P(n.openLoyaltyBannerPopup())}),a(2,"span"),v(3),f(4,"money"),r(),a(5,"div",17),M(),a(6,"svg",18),d(7,"use"),f(8,"sprite"),r(),L(),a(9,"span"),v(10,"\u0431\u043E\u043D\u0443\u0441\u044B"),r()()()}if(t&2){let e=s(2);o(3),_(C(4,2,e.getBonusAmount())),o(4),I("href",C(8,4,"gift_id-v2"))}}function Cr(t,c){if(t&1&&(a(0,"span",20),v(1),r()),t&2){let e=s(4);o(),X(" -",e.helper.product.displayDiscountPercents,"% ")}}function gr(t,c){if(t&1&&(a(0,"span",21),v(1),r()),t&2){let e=s(4);o(),X(" -",e.helper.product.displayDiscountPercents,"% ")}}function vr(t,c){if(t&1&&(p(0,Cr,2,1,"span",20),p(1,gr,2,1,"span",21)),t&2){let e=s(3);m(e.labelcolor===1?0:-1),o(),m(e.labelcolor===2?1:-1)}}function _r(t,c){if(t&1&&(a(0,"div",8)(1,"span",19),v(2),f(3,"money"),r(),p(4,vr,2,2),r()),t&2){let e=s(2);o(2),X(" ",C(3,2,e.helper.product.displayDiscountFrom)," \u20BD "),o(2),m(e.helper.product.displayDiscountPercents&&e.labelenabled?4:-1)}}function yr(t,c){if(t&1&&(a(0,"span",24),v(1),f(2,"money"),r()),t&2){let e=s(3);o(),_(C(2,1,e.helper.price.tradePriceRub))}}function xr(t,c){if(t&1&&(a(0,"div",25),M(),a(1,"svg",26),d(2,"use"),f(3,"sprite"),r()()),t&2){let e=s(3);l("title",e.helper.product.tradePriceAnnotation),o(2),I("href",C(3,2,"info"))}}function br(t,c){if(t&1&&(a(0,"div",9)(1,"div",22)(2,"span",23),v(3),f(4,"translate"),r(),p(5,yr,3,3,"span",24),a(6,"span",4),v(7,"\u20BD"),r()(),p(8,xr,4,4,"div",25),r()),t&2){let e=s(2);o(3),X("",C(4,3,e.t("tradePrice")),":"),o(2),m(e.helper.price.tradePriceRub>0?5:-1),o(3),m(e.helper.product.tradePriceAnnotation?8:-1)}}function wr(t,c){if(t&1&&(a(0,"div",1)(1,"div",2)(2,"span",3),v(3),f(4,"money"),r(),a(5,"span",4),v(6,"\u20BD"),r(),p(7,ur,2,1,"span",5),r(),p(8,hr,15,9,"div",6),p(9,fr,11,6,"div",7),p(10,_r,5,4,"div",8),r(),p(11,br,9,5,"div",9)),t&2){let e=s();o(),l("ngClass",U(9,mr,e.helper.product.displayDiscountPercents&&e.labelenabled)),o(2),_(C(4,7,e.helper.product.price)),o(4),m(e.helper.product.priceComment?7:-1),o(),m(e.withBonus&&e.getBonusAmount()&&e.bonusVariant==="default"?8:-1),o(),m(e.withBonus&&e.getBonusAmount()&&e.bonusVariant==="catalog"?9:-1),o(),m(e.helper.price.hasFixedDiscount?10:-1),o(),m(e.withTradePrice==="yes"&&e.helper.price.hasTradePrice?11:-1)}}var Et=(()=>{class t{get hostClass(){return this.viewmode}constructor(e,i,n,u){this.viewBreakpoints=e,this.loyaltyBanner=i,this.vcr=n,this.helper=u,this.viewmode="card",this.bonusVariant="default",this.flexPrices="yes",this.highlight="yes",this.withTradePrice="no",this.labelenabled=!0,this.labelcolor=1,this.ngOnDestroy$=new H,this.isMobile=Ci(this.viewBreakpoints.currentLayout$.pipe(F(x=>[ve.Layout.Mobile].includes(x)),ke()))}
1t(e){return`product_shared.assets.product_card_price.${e}`}openLoyaltyBannerPopup(){this.loyaltyBanner.popup({vcr:this.vcr,flexibleConnectedTo:this.bonusTrigger,isMobile:this.isMobile()})}getBonusAmount(){let e=this.helper?.product;return zn(e?.bonusRate,e?.price)}ngOnDestroy(){this.ngOnDestroy$.next()}static{this.\u0275fac=function(i){return new(i||t)(h(He),h(go),h(Fe),h(N))}}static{this.\u0275cmp=y({type:t,selectors:[["app-shared-product-card-assets-price-a"]],viewQuery:function(i,n){if(i&1&&Qe(pr,5,ni),i&2){let u;Xe(u=Ze())&&(n.bonusTrigger=u.first)}},hostVars:2,hostBindings:function(i,n){i&2&&ft(n.hostClass)},inputs:{viewmode:"viewmode",bonusVariant:"bonusVariant",flexPrices:"flexPrices",highlight:"highlight",withTradePrice:"withTradePrice",withBonus:"withBonus",labelenabled:"labelenabled",labelcolor:"labelcolor",product:"product"},standalone:!1,decls:1,vars:1,consts:[["bonusTrigger",""],[1,"price-main"],[1,"price-current","price-block",3,"ngClass"],[1,"value"],[1,"currency"],[1,"comment"],[1,"c-bonus","bonus-block"],[1,"c-bonus-catalog","bonus-block"],[1,"price-old","old-block"],[1,"trade-price"],[1,"c-bonus","bonus-block",3,"click"],[1,"c-bonus-rate"],[1,"c-b-r-icon"],[1,"sprite_gift_id",2,"height","11px","width","13px","min-width","13px"],[1,"sprite_gift_id-plus",2,"height","8px","width","8px","min-width","8px"],[1,"c-b-r-subtitle"],[1,"c-bonus-catalog","bonus-block",3,"click"],[1,"c-bonus-catalog-rate"],[1,"sprite_gift_id-v2"],[1,"old-value"],[1,"discount-label"],[1,"discount-label-alt"],[1,"trade-left"],[1,"label"],[1,"trade-value"],[1,"trade-info",3,"title"],["width","20","height","20"]],template:function(i,n){i&1&&p(0,wr,12,11),i&2&&m(n.helper.price.hasPrice?0:-1)},dependencies:[j,K,kt,Z],encapsulation:2})}}return t})();var Oo=t=>({background:t}),Vo=t=>({color:t});function Pr(t,c){if(t&1&&(a(0,"div",0),d(1,"div",2),a(2,"span",3),v(3),r()()),t&2){let e=s();o(),l("ngStyle",U(3,Oo,e.deliveryList.availableColor)),o(),l("ngStyle",U(5,Vo,e.deliveryList.availableColor)),o(),_(e.deliveryList.available)}}function Sr(t,c){if(t&1&&(a(0,"div",5)(1,"div",6)(2,"span"),v(3),r()()()),t&2){let e=c.$implicit;o(3),_(e.title)}}function kr(t,c){if(t&1&&(a(0,"div",1)(1,"div",4)(2,"div",0),d(3,"div",2),a(4,"span",3),v(5),r()()(),D(6,Sr,4,1,"div",5,G),r()),t&2){let e=s();o(3),l("ngStyle",U(3,Oo,e.deliveryList.availableColor)),o(),l("ngStyle",U(5,Vo,e.deliveryList.availableColor)),o(),_(e.deliveryList.available),o(),T(e.deliveryList.deliveries)}}var Yt=(()=>{class t{constructor(e){this.helper=e,this.withList=!1}static{this.\u0275fac=function(i){return new(i||t)(h(N))}}static{this.\u0275cmp=y({type:t,selectors:[["app-shared-product-card-deliveries-list"]],inputs:{deliveryList:"deliveryList",withList:"withList"},standalone:!1,decls:2,vars:2,consts:[[1,"c-status"],[1,"c-deliveries-list"],[1,"dot",3,"ngStyle"],[3,"ngStyle"],[1,"c-dl-list-item","available"],[1,"c-dl-list-item"],[1,"c-dl-li-title"]],template:function(i,n){i&1&&(p(0,Pr,4,7,"div",0),p(1,kr,8,7,"div",1)),i&2&&(m(n.withList===!1||n.deliveryList.deliveries?.length===0?0:-1),o(),m(n.withList===!0&&n.deliveryList.deliveries?.length!==0?1:-1))},dependencies:[Ye],encapsulation:2})}}return t})();var Ro=t=>({"is-full-width":t});function Mr(t,c){if(t&1&&(a(0,"div",7),d(1,"app-shared-product-card-assets-rating-interid",29),r()),t&2){let e=s();o(),l("variant","small")("product",e.helper.product)}}function Br(t,c){if(t&1&&(a(0,"div"),v(1),r()),t&2){let e=s(2);o(),_(e.helper.product.ratings.description)}}function Dr(t,c){if(t&1&&(a(0,"div"),v(1),r()),t&2){let e=s(2);o(),_(e.helper.product.ratings.paramsDescription)}}function Tr(t,c){if(t&1&&(a(0,"div"),v(1),r()),t&2){let e=s(2);o(),_(e.helper.product.ratings.deviceClassDescription)}}function Ir(t,c){if(t&1&&(a(0,"div",12)(1,"div",30),p(2,Br,2,1,"div"),p(3,Dr,2,1,"div"),p(4,Tr,2,1,"div"),r()()),t&2){let e=s();o(2),m(e.helper.product.ratings?.description?2:-1),o(),m(e.helper.product.ratings?.paramsDescription?3:-1),o(),m(e.helper.product.ratings?.deviceClassDescription?4:-1)}}function Er(t,c){if(t&1&&d(0,"app-shared-product-card-deliveries-list",21),t&2){let e=s();l("withList",!0)("deliveryList",e.deliveryList)}}function Ar(t,c){if(t&1&&(a(0,"div",7),d(1,"app-shared-product-card-assets-rating-interid",31),r()),t&2){let e=s();o(),l("product",e.helper.product)}}function Or(t,c){if(t&1&&d(0,"app-shared-product-card-deliveries-list",21),t&2){let e=s();l("withList",!1)("deliveryList",e.deliveryList)}}var Wi=(()=>{class t{constructor(e,i,n,u,x,B,V,we,Pe){this.matDialog=e,this.i18n=i,this.appBootstrap=n,this.env=u,this.platformId=x,this.request=B,this.cdr=V,this.helper=we,this.appSession=Pe,this.product=g(),this.variant=g("default"),this.maxParams=g(),this.withParametersBadges=g(!1),this.withBadges=g(!1),this.withParams=g(!1),this.withRating=g(!1),this.withReviews=g(!1),this.withBasket=g(!1),this.withBonus=g(!1),this.withInteridRating=g(!1),this.bonusVariant=g("default"),this.shouldShowNoReviewsMessage=g(!0),this.shouldShowFiveEmptyStars=g(!1),this.productBadges=g(["out-of-production","sale","new","hit","customer-choice","popular"]),this.state=$({productsAmountVisible:!1,amount:0,city:new si}
1)}ngOnInit(){ae(this.platformId)&&this.state.update(e=>O(E({},e),{productsAmountVisible:!!this.helper.product.inBasket,amount:this.helper.product.inBasket??0})),this.appSession.city$.pipe(Se(1)).subscribe(e=>{this.state.update(i=>O(E({},i),{city:e}))})}productRequest(){this.matDialog.open(Mt,O(E({},fe),{disableClose:!1,data:{withMessage:this.i18n.instant(this.t("orderWithProductRequestMessage"),{product:this.helper.product,url:`${this.env.current.baseUrl}/kupit/${this.helper.product.id}`}),context:gt.ProductOneClickBuy,productId:this.helper.product.id,productPrice:this.helper.product.price}}))}get isCustomOrder(){return!this.isAvailableDepot&&!this.isAvailableVendorDepot}get isAvailableDepot(){return this.helper.product.flags.isAvailableDepot}get isAvailableVendorDepot(){return this.helper.product.flags.isAvailableVendorDepot}ngOnChanges(e){e.product&&this.helper.withProduct(this.product()),e.maxParams&&parseInt(this.maxParams(),10)>0&&(this.helper.params.maxParams=parseInt(this.maxParams(),10))}ngOnDestroy(){this.helper.ngOnDestroy()}t(e){return`__shared.product.components.product_card.${e}`}get deliveryList(){return this.helper.delivery.listDeliveriesB(this.state().city)}get isAvailableNgClass(){return{"is-available-on-depot":this.helper.product&&this.helper.product.flags.isAvailableDepot,"is-available-on-vendor-depot":this.helper.product&&this.helper.product.flags.isAvailableVendorDepot&&!this.helper.product.flags.isAvailableDepot}}get basketButtonStyle(){return this.helper.product.inBasket?"stroked":"default"}async setBasketAmount(e){let i=this.state().amount+parseFloat(e);i<0||(i==0&&(this.state().productsAmountVisible=!1),await this.helper.basket.setBasketAmount(i).toPromise(),this.state().amount=i)}addToBasket(){this.helper.basket.addToBasket$().subscribe(e=>{this.state().productsAmountVisible=!0,this.state().amount=e.amount,this.cdr.markForCheck()})}static{this.\u0275fac=function(i){return new(i||t)(h(be),h(le),h(Me),h(re),h(ee),h(mi,8),h(se),h(N),h(de))}}static{this.\u0275cmp=y({type:t,selectors:[["app-shared-product-card-c"]],inputs:{product:[1,"product"],variant:[1,"variant"],maxParams:[1,"maxParams"],withParametersBadges:[1,"withParametersBadges"],withBadges:[1,"withBadges"],withParams:[1,"withParams"],withRating:[1,"withRating"],withReviews:[1,"withReviews"],withBasket:[1,"withBasket"],withBonus:[1,"withBonus"],withInteridRating:[1,"withInteridRating"],bonusVariant:[1,"bonusVariant"],shouldShowNoReviewsMessage:[1,"shouldShowNoReviewsMessage"],shouldShowFiveEmptyStars:[1,"shouldShowFiveEmptyStars"],productBadges:[1,"productBadges"]},standalone:!1,features:[ai([...qt]),_e],decls:50,vars:44,consts:[[1,"c","variant-desktop"],[1,"c-preview"],[3,"routerLink"],[1,"c-image"],[1,"c-badges"],[3,"filter"],[3,"maxImageWidth","product"],[1,"c-interid-rating-badge"],[1,"c-image-parameters-badges"],[3,"centered"],[1,"c-contents"],[1,"c-title"],[1,"c-interid-rating"],[1,"c-rating"],[3,"layout"],[1,"c-params",3,"ngClass"],[3,"viewmode"],[1,"c-actions"],[1,"c-action-price"],[3,"withBonus","bonusVariant","product","viewmode"],[1,"c-favorite-compare",3,"variant","withBasket"],[1,"c-delivery-list",3,"withList","deliveryList"],[3,"withLabels","withCompare","withShare","withFavorite"],[1,"c","variant-mobile"],[1,"c-content"],[3,"product","maxImageWidth"],[1,"c-action-favorite-compare"],[3,"withLabels","withCompare","withFavorite","withShare"],[3,"withBonus","bonusVariant","product"],[3,"variant","product"],[1,"c-lines"],[3,"product"]],template:function(i,n){i&1&&(a(0,"div",0)(1,"div",1)(2,"a",2)(3,"div",3)(4,"div",4),d(5,"app-shared-product-card-assets-badges-a",5),r(),d(6,"app-shared-product-card-assets-preview",6),p(7,Mr,2,2,"div",7),r()(),a(8,"div",8),d(9,"app-shared-product-card-assets-parameters-badges",9),r()(),a(10,"div",10)(11,"div",11)(12,"a",2)(13,"span"),v(14),r()()(),p(15,Ir,5,3,"div",12),a(16,"div",13),d(17,"app-shared-product-card-assets-rating-a",14),r(),a(18,"div",15),d(19,"app-shared-product-card-assets-params-a",16),r()(),a(20,"div",17)(21,"div",18),d(22,"app-shared-product-card-assets-price-a",19),r(),d(23,"app-shared-product-card-assets-favorite-compare-a",20),p(24,Er,1,2,"app-shared-product-card-deliveries-list",21),d(25,"app-shared-product-card-assets-favorite-compare",22),r()(),a(26,"div",23)(27,"div",24)(28,"div",1)(29,"div",3),d(30,"app-shared-product-card-assets-preview",25),p(31,Ar,2,1,"div",7),r(),a(32,"div",4),d(33,"app-shared-product-card-assets-badges-a"),r()(),a(34,"div",10)(35,"div",11)(36,"a",2)(37,"span"),v(38),r()()(),a(39,"div",13),d(40,"app-shared-product-card-assets-rating-a"),r(),a(41,"div",15),d(42,"app-shared-product-card-assets-params-a",16),r(),a(43,"div",17)(44,"div",26),d(45,"app-shared-product-card-assets-favorite-compare",27),r(),d(46,"app-shared-product-card-assets-favorite-compare-a",20),p(47,Or,1,2,"app-shared-product-card-deliveries-list",21),a(48,"div",18),d(49,"app-shared-product-card-assets-price-a",28),r()()()()()),i&2&&(o(2),l("routerLink",n.helper.productRouterLink),o(3),l("filter",n.productBadges()),o(),l("maxImageWidth",520)("product",n.helper.product),o(),m(n.withInteridRating()&&n.helper.product.flags.hasRatings&&n.helper.product.ratings?7:-1),o(2),l("centered",!0),o(3),l("routerLink",n.helper.productRouterLink),o(2),_(n.product().title),o(),m(n.withInteridRating()&&n.helper.product.flags.hasRatings&&n.helper.product.ratings?15:-1),o(2),l("layout","compact"),o(),l("ngClass",U(40,Ro,n.helper.params.paramsAreLong)),o(),l("viewmode","list"),o(3),l("withBonus",n.withBonus())("bonusVariant",n.bonusVariant())("product",n.helper.product)("viewmode","list"),o(),l("variant",2)("withBasket",!0),o(),m(n.deliveryList?24:-1),o(),l("withLabels",!1)("withCompare",!0)("withShare",!1)("withFavorite",!0),o(5),l("product",n.helper.product)("maxImageWidth",520),o(),m(n.withInteridRating()&&n.helper.product.flags.hasRatings&&n.helper.product.ratings?31:-1),o(5),l("routerLink",n.helper.productRouterLink),o(2),_(n.product().title),o(3),l("ngClass",U(42,Ro,n.helper.params.paramsAreLong)),o(),l("viewmode","list"),o(3),l("withLabels",!0)("withCompare",!0)("withFavorite",!0)("withShare",!0),o(),l("variant",2)("withBasket",!0),o(),m(n.deliveryList?47:-1),o(2),l("withBonus",n.withBonus())("bonusVariant",n.bonusVariant())("product",n.helper.product))},dependencies:[j,xe,It,Gt,Ut,zt,Wt,Qt,Xt,Zt,Et,Yt],encapsulation:2})}}return t})();function Lr(t,c){if(t&1&&d(0,"app-shared-product-card-assets-favorite-compare",1),t&2){let e=s(3);l("withLabels",!1)("withCompare",e.withCompare())("withShare",!1)("withFavorite",e.withFavorite())}}function Rr(t,c){if(t&1){let e=S();a(0,"a",16),b("click",function(){w(e);let n=s(3);return P(n.click())}),d(1,"app-shared-product-card-assets-preview",17),r()}if(t&2){let e=s(3);l("routerLink",e.helper.productRouterLink)("target",e.linkTarget()),o(),l("withSlider",e.withSlider())("product",e.product())("maxImageWidth",520)}}function Fr(t,c){if(t&1&&d(0,"app-shared-product-card-assets-badges-a",4),t&2){let e=s(3);l("product",e.product())("filter",e.productBadges())("analogBage",e.analogBage())("cheapestBage",e.cheapestBage())}}function Nr(t,c){if(t&1&&d(0,"app-shared-product-card-assets-rating-interid",5),t&2){let e=s(3);l("variant","small")("product",e.helper.product)}}function Hr(t,c){if(t&1&&(a(0,"div",6),d(1,"app-shared-product-card-assets-parameters-badges",18),r()),t&2){let e=s(3);o(),l("product",e.product())}}function $r(t,c){if(t&1&&d(0,"app-shared-product-card-assets-params-a",9),t&2){let e=s(3);l("product",e.product())("viewmode","card")}}function jr(t,c){if(t&1&&d(0,"app-shared-product-card-deliveries-list",12),t&2){let e=s(3);l("withList",!1)("deliveryList",e.deliveryList)}}function qr(t,c){if(t&1&&d(0,"app-shared-product-card-assets-favorite-compare",15),t&2){let e=s(3);l("withLabels",!1)("withCompare",e.withCompare())("withShare",!1)("withFavorite",e.withFavorite())}}function Gr(t,c){if(t&1){let e=S();a(0,"div",0),p(1,Lr,1,4,"app-shared-product-card-assets-favorite-compare",1),a(2,"div",2),p(3,Rr,2,5,"a",3),p(4,Fr,1,4,"app-shared-product-card-assets-badges-a",4),p(5,Nr,1,2,"app-shared-product-card-assets-rating-interid",5),r()(),p(6,Hr,2,1,"div",6),d(7,"app-shared-product-card-assets-rating-a",7),a(8,"a",8),b("click",function(){w(e);let n=s(2);return P(n.click())}),a(9,"span"),v(10),r()(),p(11,$r,1,2,"app-shared-product-card-assets-params-a",9),a(12,"div",10),d(13,"a
1pp-shared-product-card-assets-price-a",11),p(14,jr,1,2,"app-shared-product-card-deliveries-list",12),a(15,"div",13),d(16,"app-shared-product-card-assets-favorite-compare-a",14),p(17,qr,1,4,"app-shared-product-card-assets-favorite-compare",15),r()()}if(t&2){let e=s(2);o(),m(e.compareTopbarVariant()==="simple"?1:-1),o(2),m(e.product().preview?3:-1),o(),m(e.withBadges()&&e.helper.price.hasBadges?4:-1),o(),m(e.withInteridRating()&&e.helper.product.flags.hasRatings&&e.helper.product.ratings?5:-1),o(),m(e.withParametersBadges()&&e.helper.params.hasCardProductBagesParams?6:-1),o(),l("layout","stretch")("product",e.product()),o(),l("routerLink",e.helper.productRouterLink)("target",e.linkTarget()),o(2),_(e.product().title),o(),m(e.withParams()&&e.helper.params.hasProductParams?11:-1),o(2),l("withBonus",e.withBonus())("bonusVariant",e.bonusVariant())("product",e.product())("labelenabled",!0)("labelcolor",1),o(),m(e.deliveryList?14:-1),o(2),l("variant",2)("fullWidthBasketButton",!0)("withBasket",e.withBasket())("withShare",e.withShare())("product",e.product().id)("mobileMainLayout",e.mobileMainLayout()),o(),m(e.compareTopbarVariant()==="default"?17:-1)}}function Ur(t,c){if(t&1&&p(0,Gr,18,24),t&2){let e=s();m(e.product()?0:-1)}}var We=(()=>{class t{constructor(e,i,n,u,x,B){this.helper=e,this.appBootstrap=i,this.platformId=n,this.env=u,this.request=x,this.appSession=B,this.product=g(),this.variant=g("default"),this.maxParams=g(),this.mobileMainLayout=g(!1),this.withFavorite=g(!1),this.withParametersBadges=g(!1),this.withBadges=g(!1),this.withParams=g(!1),this.withRating=g(!1),this.withReviews=g(!1),this.withBasket=g(!1),this.withShare=g(!1),this.withInteridRating=g(!1),this.withCompare=g(!1),this.withBonus=g(!1),this.bonusVariant=g("default"),this.paddingVariant=g("default"),this.analogBage=g(!1),this.cheapestBage=g(!1),this.withBoldTitle=g(!1),this.withIsAvailableOnDepot=g(!0),this.compareTopbarVariant=g("none"),this.shouldShowNoReviewsMessage=g(!0),this.shouldShowFiveEmptyStars=g(!1),this.withSlider=g(!1),this.linkTarget=g("_self"),this.productBadges=g(Ui),this.state=$({city:new si}),this.redirectEvent=new oe}ngOnInit(){this.appSession.city$.pipe(Se(1)).subscribe(e=>{this.state.update(i=>O(E({},i),{city:e}))})}ngOnChanges(e){e.product&&this.helper.withProduct(this.product()),e.maxParams&&parseInt(this.maxParams(),10)>0&&(this.helper.params.maxParams=parseInt(this.maxParams(),10))}get deliveryList(){return this.helper.delivery.listDeliveriesB(this.state().city)}click(){this.redirectEvent.next()}ngOnDestroy(){this.helper.ngOnDestroy()}t(e){return`__shared.product.components.product_card.${e}`}get ngClass(){return{[`variant-${this.variant()}`]:!0,"variant-compare-topbar-simple":this.compareTopbarVariant()==="simple","variant-compare-topbar-default":this.compareTopbarVariant()==="default","variant-padding-default":this.paddingVariant()==="default","variant-padding-homepage":this.paddingVariant()==="homepage","with-bold-title":this.withBoldTitle(),"mobile-main-layout":this.mobileMainLayout()}}static{this.\u0275fac=function(i){return new(i||t)(h(N),h(Me),h(ee),h(re),h(mi,8),h(de))}}static{this.\u0275cmp=y({type:t,selectors:[["app-shared-product-card-g"]],hostVars:2,hostBindings:function(i,n){i&2&&ft(n.ngClass)},inputs:{product:[1,"product"],variant:[1,"variant"],maxParams:[1,"maxParams"],mobileMainLayout:[1,"mobileMainLayout"],withFavorite:[1,"withFavorite"],withParametersBadges:[1,"withParametersBadges"],withBadges:[1,"withBadges"],withParams:[1,"withParams"],withRating:[1,"withRating"],withReviews:[1,"withReviews"],withBasket:[1,"withBasket"],withShare:[1,"withShare"],withInteridRating:[1,"withInteridRating"],withCompare:[1,"withCompare"],withBonus:[1,"withBonus"],bonusVariant:[1,"bonusVariant"],paddingVariant:[1,"paddingVariant"],analogBage:[1,"analogBage"],cheapestBage:[1,"cheapestBage"],withBoldTitle:[1,"withBoldTitle"],withIsAvailableOnDepot:[1,"withIsAvailableOnDepot"],compareTopbarVariant:[1,"compareTopbarVariant"],shouldShowNoReviewsMessage:[1,"shouldShowNoReviewsMessage"],shouldShowFiveEmptyStars:[1,"shouldShowFiveEmptyStars"],withSlider:[1,"withSlider"],linkTarget:[1,"linkTarget"],productBadges:[1,"productBadges"]},outputs:{redirectEvent:"redirected"},standalone:!1,features:[ai([...qt]),_e],decls:1,vars:1,consts:[[1,"c-preview"],[1,"c-topbar",3,"withLabels","withCompare","withShare","withFavorite"],[1,"c-image"],[1,"c-image-container",3,"routerLink","target"],[1,"c-image-badges",3,"product","filter","analogBage","cheapestBage"],[3,"variant","product"],[1,"c-product-badges"],[1,"c-rating",3,"layout","product"],[1,"c-title",3,"click","routerLink","target"],[1,"c-params",3,"product","viewmode"],[1,"c-bottom"],[1,"c-price-favorite-compare",3,"withBonus","bonusVariant","product","labelenabled","labelcolor"],[1,"c-delivery-list",3,"withList","deliveryList"],[1,"c-price-favorite-compare"],[1,"c-favorite-compare",3,"variant","fullWidthBasketButton","withBasket","withShare","product","mobileMainLayout"],[3,"withLabels","withCompare","withShare","withFavorite"],[1,"c-image-container",3,"click","routerLink","target"],[3,"withSlider","product","maxImageWidth"],[1,"c-image-parameters-badges",3,"product"]],template:function(i,n){i&1&&p(0,Ur,1,1),i&2&&m(n.helper.isAvailable?0:-1)},dependencies:[xe,It,Gt,Ut,zt,Wt,Qt,Xt,Zt,Et,Yt],encapsulation:2})}}return t})();var Qi=t=>({"is-icon-active":t});function zr(t,c){if(t&1){let e=S();a(0,"span",33),b("click",function(){w(e);let n=s();return P(n.setViewMode("List"))}),M(),a(1,"svg",9)(2,"g",34),d(3,"circle",35)(4,"circle",36)(5,"circle",37)(6,"circle",38),r(),a(7,"defs")(8,"clipPath",31),d(9,"rect",39),r()()()()}}function Wr(t,c){if(t&1){let e=S();
1a(0,"span",40),b("click",function(){w(e);let n=s();return P(n.setViewMode("Card"))}),M(),a(1,"svg",9),d(2,"rect",22)(3,"rect",23)(4,"rect",24),r()()}}function Qr(t,c){if(t&1&&(a(0,"div",15),d(1,"app-shared-ui-checkbox",41),f(2,"translate"),Le(),r()),t&2){let e=s();o(),l("label",ge(C(2,3,e.t("onlyWithRatings"))))("labelColor","gradient"),Re()}}function Xr(t,c){if(t&1){let e=S();a(0,"div",20),f(1,"translate"),b("click",function(){w(e);let n=s();return P(n.setViewMode("Series"))}),a(2,"div",42),f(3,"async"),M(),a(4,"svg",43),d(5,"use"),f(6,"sprite"),r()()()}if(t&2){let e=s();l("title",C(1,3,e.t("view_mode_series"))),o(2),l("ngClass",U(9,Qi,C(3,5,e.isViewModeActive$("Series")))),o(3),I("href",C(6,7,"ic_catalog_models"))}}var Xi=(()=>{class t{get viewMode$(){return Be([this.activatedRoute.queryParams,this.session.accountSettings$]).pipe(F(([e,i])=>e.vm==="series"?De.ViewMode.Series:i.catalogViewModeR2||De.defaultCatalogViewMode),ke())}get isSeriesView$(){return this.activatedRoute.queryParams.pipe(F(e=>e.vm==="series"),ke())}get pageSize$(){return this.session.accountSettings$.pipe(F(e=>e.catalogPageSize),F(e=>e||De.defaultCatalogPageSize),ke())}get availablePageSizes(){return De.availablePageSizes}constructor(e,i,n,u,x){this.fb=e,this.session=i,this.localStorage=n,this.router=u,this.activatedRoute=x,this.ngOnDestroy$=new H,this.nextViewMode$=new H,this.nextPageSize$=new H,this.searchRequest=g(),this.blackl
1istSort=g([]),this.showRatings=g(!1),this.hideSeriesViewButton=g(!1),this.updateSearchRequestEvent=new oe,this.filterScreenEvent=new oe,this.disableOnlyAvailableOnDepotEmit=!1,this.disableOnlyWithRatingsEmit=!1,this.disableSortEmit=!1,this.state=$({form:this.fb.group({onlyAvailableOnDepot:[!1],onlyWithRatings:[!1],sort:[Ee.Popular]}),sortOptions:[],sortPlaceholdersMobile:[],sortPlaceholdersDesktop:[]})}ngOnInit(){this.rebuildSortList(),this.session.accountSettings$.pipe(J(this.ngOnDestroy$),ke()).subscribe(),this.state().form.get("onlyAvailableOnDepot").setValue(this.searchRequest()&&this.searchRequest().filters?this.searchRequest().filters.isAvailable:!1),this.state().form.get("onlyAvailableOnDepot").valueChanges.pipe(ct(()=>!this.disableOnlyAvailableOnDepotEmit),J(this.ngOnDestroy$)).subscribe(e=>{this.updateSearchRequestEvent.emit(O(E({},this.searchRequest()),{filters:O(E({},(this.searchRequest()||{}).filters),{isAvailable:e?!0:void 0})}))}),this.state().form.get("onlyWithRatings").setValue(this.searchRequest()&&this.searchRequest().filters?this.searchRequest().filters.hasRatings:!1),this.state().form.get("onlyWithRatings").valueChanges.pipe(ct(()=>!this.disableOnlyWithRatingsEmit),J(this.ngOnDestroy$)).subscribe(e=>{this.updateSearchRequestEvent.emit(O(E({},this.searchRequest()),{filters:O(E({},(this.searchRequest()||{}).filters),{hasRatings:e?!0:void 0})}))}),this.state().form.get("sort").valueChanges.pipe(ke(),ct(()=>!this.disableSortEmit),J(this.ngOnDestroy$)).subscribe(e=>{let i=Dt.find(n=>n.sort===e);i&&(i.sort===Ee.Popular?this.updateSearchRequestEvent.emit(O(E({},this.searchRequest()),{sort:void 0})):this.updateSearchRequestEvent.emit(O(E({},this.searchRequest()),{sort:i.sortOrders})))})}ngOnChanges(e){if(e.searchRequest&&this.searchRequest()&&(this.searchRequest().filters&&this.searchRequest().filters.isAvailable||(this.disableOnlyAvailableOnDepotEmit=!0,this.state().form.patchValue({onlyAvailableOnDepot:!1},{emitEvent:!1}),this.disableOnlyAvailableOnDepotEmit=!1),this.searchRequest().filters&&this.searchRequest().filters.hasRatings||(this.disableOnlyWithRatingsEmit=!0,this.state().form.patchValue({onlyWithRatings:!1},{emitEvent:!1}),this.disableOnlyWithRatingsEmit=!1),Array.isArray(this.searchRequest().sort)&&this.searchRequest().sort.length>0||(this.disableSortEmit=!0,this.state().form.patchValue({sort:Ee.Popular},{emitEvent:!1}),this.disableSortEmit=!1),Array.isArray(this.searchRequest().sort)))for(let i of Dt)i.sortOrders.length===this.searchRequest().sort.length&&i.sortOrders.every(n=>this.searchRequest().sort.find(u=>u.direction===n.direction&&u.field===n.field))&&this.state().form.patchValue({sort:i.sort},{emitEvent:!1});e.blacklistSort&&this.rebuildSortList()}ngOnDestroy(){this.ngOnDestroy$.next()}isViewModeActive$(e){return this.viewMode$.pipe(F(i=>i===e))}filterScreen(){this.filterScreenEvent.emit()}rebuildSortList(){this.state.update(e=>O(E({},e),{sortPlaceholdersMobile:Dt.filter(i=>!this.blacklistSort().includes(i.sort)).map(i=>({label:this.t(`sort.mobile.${i.sort}`),value:i.sort,translate:!0})),sortPlaceholdersDesktop:Dt.filter(i=>!this.blacklistSort().includes(i.sort)).map(i=>({label:this.t(`sort.desktop.${i.sort}`),value:i.sort,translate:!0})),sortOptions:Dt.filter(i=>!this.blacklistSort().includes(i.sort)).map(i=>({label:this.t(`sort.modal.${i.sort}`),value:i.sort,translate:!0}))}))}setViewMode(e){this.nextViewMode$.next();let i=et(this.router.url.split("?")[0]);e===De.ViewMode.Series?this.router.navigate([i],{queryParams:{vm:"series"}}):(this.activatedRoute.snapshot.queryParams.vm==="series"&&this.router.navigate([i],{queryParams:{}}),this.session.updateAccountSettings({catalogViewModeR2:e}).pipe(J(this.nextViewMode$)).subscribe())}setPageSize(e){this.nextPageSize$.next(),this.localStorage.set("catalogPageSize",e.toString()),this.session.setCatalogPageSize({catalogPageSize:e}).pipe(ii(()=>this.session.updateAccountSettings({catalogPageSize:e})),Ve(()=>{this.updateSearchRequestEvent.emit(O(E({},this.searchRequest()),{view:O(E({},this.searchRequest().view),{limit:e})}))}),J(this.nextPageSize$)).subscribe()}t(e){return`product.shared.components.product_list_sort_and_view.${e}`}static{this.\u0275fac=function(i){return new(i||t)(h(bt),h(de),h(eo),h(Je),h(Ke))}}static{this.\u0275cmp=y({type:t,selectors:[["app-shared-product-list-sort-and-view"]],inputs:{searchRequest:[1,"searchRequest"],blackl
1istSort:[1,"blacklistSort"],showRatings:[1,"showRatings"],hideSeriesViewButton:[1,"hideSeriesViewButton"]},outputs:{updateSearchRequestEvent:"updateSearchRequest",filterScreenEvent:"filterScreen"},standalone:!1,features:[_e],decls:48,vars:40,consts:[[1,"c",3,"formGroup"],[1,"c-left"],[1,"c-sort"],["formControlName","sort","size","thinner",3,"singleselect","options","labels","labelsMobile","placeholder"],[1,"c-filter-mobile","__hide-viewport-desktop"],[1,"c-filter-mobile-button",3,"click"],[1,"c-label"],[1,"placeholder"],[1,"c-icon"],["width","24","height","25","viewBox","0 0 24 25","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M20 8.18V3a1 1 0 1 0-2 0v5.18a3 3 0 0 0 0 5.64V21a1 1 0 0 0 2 0v-7.18a3 3 0 0 0 0-5.64ZM19 12a1 1 0 1 1 0-2 1 1 0 0 1 0 2Zm-6 2.18V3a1 1 0 1 0-2 0v11.18a3 3 0 0 0 0 5.64V21a1 1 0 0 0 2 0v-1.18a3 3 0 0 0 0-5.64ZM12 18a1 1 0 1 1 0-2 1 1 0 0 1 0 2ZM6 6.18V3a1 1 0 1 0-2 0v3.18a3 3 0 0 0 0 5.64V21a1 1 0 1 0 2 0v-9.18a3 3 0 0 0 0-5.64ZM5 10a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z","fill","#1269FF"],[1,"c-listview-mobile","__hide-viewport-desktop"],[1,"icon","icon-primary-hover-custom","is-icon-active"],[1,"icon","icon-primary-hover","is-icon-active"],[1,"c-flags"],[1,"c-flag"],["formControlName","onlyAvailableOnDepot",3,"label"],[1,"c-right"],[1,"c-view-mode"],[1,"c-view-mode-option",3,"title"],[1,"c-view-mode-option",3,"click","title"],[1,"icon","icon-primary-hover",3,"ngClass"],["x","2","y","10.5","width","20","height","4","rx","2","fill","#D0D9DE"],["x","2","y","17.5","width","20","height","4","rx","2","fill","#D0D9DE"],["x","2","y","3.5","width","20","height","4","rx","2","fill","#D0D9DE"],[1,"icon","icon-primary-hover-custom",3,"ngClass"],["clip-path","url(#clip0_302_109097)","fill","#D0D9DE",1,"hover-fill"],["cx","6.5","cy","7","r","3.5"],["cx","17.5","cy","7","r","3.5"],["cx","17.5","cy","18","r","3.5"],["cx","6.5","cy","18","r","3.5"],["id","clip0_302_109097"],["fill","#fff","d","M0 .5h24v24H0z"],[1,"icon","icon-primary-hover-custom","is-icon-active",3,"click"],["clip-path","url(#clip0_302_109097)"],["cx","6.5","cy","7","r","3.5","fill","#253238"],["cx","17.5","cy","7","r","3.5","fill","#253238"],["cx","17.5","cy","18","r","3.5","fill","#253238"],["cx","6.5","cy","18","r","3.5","fill","#253238"],["width","24","height","24","fill","white","transform","translate(0 0.5)"],[1,"icon","icon-primary-hover","is-icon-active",3,"click"],["formControlName","onlyWithRatings",3,"labelColor","label"],[1,"icon","icon-models",3,"ngClass"],["width","21","height","21",1,"sprite_ic_catalog_models"]],template:function(i,n){i&1&&(a(0,"div",0)(1,"div",1)(2,"div",2),d(3,"app-ui-select",3),f(4,"translate"),Le(),r(),a(5,"div",4)(6,"div",5),b("click",function(){return n.filterScreen()}),a(7,"div",6)(8,"span",7),v(9),f(10,"translate"),r()(),a(11,"div",8),M(),a(12,"svg",9),d(13,"path",10),r()()()(),L(),a(14,"div",11),p(15,zr,10,0,"span",12),f(16,"async"),p(17,Wr,5,0,"span",13),f(18,"async"),r(),a(19,"div",14)(20,"div",15),d(21,"app-shared-ui-checkbox",16),f(22,"translate"),Le(),r(),p(23,Qr,3,5,"div",15),r()(),a(24,"div",17)(25,"div",18),p(26,Xr,7,11,"div",19),a(27,"div",20),f(28,"translate"),b("click",function(){return n.setViewMode("List")}),a(29,"div",21),f(30,"async"),M(),a(31,"svg",9),d(32,"rect",22)(33,"rect",23)(34,"rect",24),r()()(),L(),a(35,"div",20),f(36,"translate"),b("click",function(){return n.setViewMode("Card")}),a(37,"div",25),f(38,"async"),M(),a(39,"svg",9)(40,"g",26),d(41,"circle",27)(42,"circle",28)(43,"circle",29)(44,"circle",30),r(),a(45,"defs")(46,"clipPath",31),d(47,"path",32),r()()()()()()()()),i&2&&(l("formGroup",n.state().form),o(3),l("placeholder",ge(C(4,18,n.t("sortPlaceholder"))))("singleselect",!0)("options",n.state().sortOptions)("labels",n.state().sortPlaceholdersDesktop)("labelsMobile",n.state().sortPlaceholdersMobile),Re(),o(6),_(C(10,20,n.t("filtersPlaceholder"))),o(6),m(C(16,22,n.isViewModeActive$("Card"))?15:-1),o(2),m(C(18,24,n.isViewModeActive$("List"))?17:-1),o(4),l("label",ge(C(22,26,n.t("onlyAvailableOnDepot")))),Re(),o(2),m(n.showRatings()?23:-1),o(3),m(n.hideSeriesViewButton()?-1:26),o(),l("title",C(28,28,n.t("view_mode_list"))),o(2),l("ngClass",U(36,Qi,C(30,30,n.isViewModeActive$("List")))),o(6),l("title",C(36,32,n.t("view_mode_card"))),o(2),l("ngClass",U(38,Qi,C(38,34,n.isViewModeActive$("Card")))))},dependencies:[j,ci,li,pi,di,uo,fo,ye,K,Z],encapsulation:2})}}return t})();var Yr=["container"],Kr=t=>({"is-active-url-match":t});function Jr(t,c){if(t&1){let e=S();a(0,"div",8),b("click",function(n){w(e);let u=s(3);return P(u.resetClick(n))}),M(),a(1,"svg",9),d(2,"path",10),r()()}}function es(t,c){if(t&1&&(a(0,"a",3)(1,"div",4)(2,"div",5)(3,"div",6)(4,"span"),v(5),r()(),p(6,Jr,3,0,"div",7),r()()()),t&2){let e=s().$implicit,i=s();l("routerLink",i.routerLink(e).route)("queryParams",i.routerLink(e).queryParams)("ngClass",U(6,Kr,i.isActive(e)))("title",e.alt),o(5),_(e.title),o(),m(i.isActive(e)?6:-1)}}function ts(t,c){if(t&1&&p(0,es,7,8,"a",3),t&2){let e=c.$index,i=s();m(i.isCollapsed(e)?-1:0)}}function is(t,c){if(t&1){let e=S();a(0,"button",11),b("click",function(){w(e);let n=s();return P(n.viewMoreClick())}),a(1,"div",4)(2,"div",5)(3,"div",6)(4,"span"),v(5,"\u0415\u0449\u0451..."),r()()()()()}}var ns="catalog",Zi=(()=>{class t{constructor(e,i,n,u,x,B){this.cdr=e,this.vbr=i,this.router=n,this.location=u,this.activatedRoute=x,this.urlBuilder=B,this.state={brakepoint:ve.ViewBreakpoints.XS,viewMore:!1},this.ngOnDestroy$=new H}get isTablet(){return this.state.brakepoint===ve.ViewBreakpoints.LG}viewMoreClick(){this.state=O(E({},this.state),{viewMore:!0})}isCollapsed(e){return this.isTablet&&e>6&&!this.state.viewMore}ngOnChanges(e){e.seoLinks&&!e.seoLinks.firstChange&&(this.state=O(E({},this.state),{viewMore:!1}))}ngOnInit(){this.vbr.currentBreakpoint$.pipe(J(this.ngOnDestroy$)).subscribe(e=>{this.state.brakepoint=e,this.cdr.markForCheck()}),this.router.events.pipe(ct(e=>e instanceof Rn),J(this.ngOnDestroy$)).subscribe(()=>{this.containerRef&&this.containerRef.nativeElement&&(this.containerRef.nativeElement.scrollLeft=0)})}ngOnDestroy(){this.ngOnDestroy$.next()}get resolvedData(){return this.activatedRoute.snapshot.data[ns]}get sortedSeoLinks(){return[...this.seoLinks.filter(e=>this.isActive(e)),...this.seoLinks.filter(e=>!this.isActive(e))]}routerLink(e){return this.urlBuilder.routerLink(e.source,{origUrl:e.uri})}get resetRouterLink(){return this.isVendorPage?this.urlBuilder.routerLink({type:Te.Manufacturer,payload:{vendorUrl:this.manufacturer.uri}}):this.urlBuilder.routerLink({type:Te.Catalog,payload:{productCategoryId:this.categoryId}})}resetClick(e){e.preventDefault(),e.stopPropagation();let i=this.resetRouterLink,n=Array.isArray(i.route)?i.route:[i.route];this.router.navigate(n,i.queryParams&&Object.keys(i.queryParams).length>0?{queryParams:i.queryParams}:{})}isActive(e){let i=this.isVendorPage?this.seoLinks.find(u=>u.id===e.id):this.resolvedData.category.categorySeoLinksRouteResolves.find(u=>
1u.id===e.id),n=i?i.uri:e.uri;return!n.startsWith("/")&&!(n.startsWith("http://")||n.startsWith("https://"))&&(n="/"+n),vt(et(this.location.path()))===vt(et(n))}trackById(e,i){return i.id}static{this.\u0275fac=function(i){return new(i||t)(h(se),h(He),h(Je),h(ri),h(Ke),h(Ne))}}static{this.\u0275cmp=y({type:t,selectors:[["app-shared-catalog-category-seo-links"]],viewQuery:function(i,n){if(i&1&&Qe(Yr,5),i&2){let u;Xe(u=Ze())&&(n.containerRef=u.first)}},inputs:{seoLinks:"seoLinks",categoryId:"categoryId",manufacturer:"manufacturer",isVendorPage:"isVendorPage"},standalone:!1,features:[_e],decls:5,vars:1,consts:[["container",""],[1,"c"],[1,"c-link"],[1,"c-link",3,"routerLink","queryParams","ngClass","title"],[1,"c-link-borders"],[1,"c-link-box"],[1,"c-link-box-text"],["title","\u0421\u0431\u0440\u043E\u0441\u0438\u0442\u044C \u043F\u043E\u0434\u0431\u043E\u0440\u043A\u0443",1,"c-link-box-close"],["title","\u0421\u0431\u0440\u043E\u0441\u0438\u0442\u044C \u043F\u043E\u0434\u0431\u043E\u0440\u043A\u0443",1,"c-link-box-close",3,"click"],["width","10","height","10","viewBox","0 0 10 10","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M1.37529 1.22454C1.31917 1.24181 1.2869 1.26247 1.27456 1.2748C1.24192 1.30744 1.2254 1.33213 1.2159 1.3535C1.20679 1.374 1.1998 1.40116 1.1998 1.44449C1.1998 1.48782 1.20679 1.51499 1.2159 1.53549C1.2254 1.55685 1.24192 1.58155 1.27456 1.61418L1.27553 1.61516L4.61406 5.00006L1.25366 8.4065C1.21405 8.48748 1.1998 8.52632 1.1998 8.5556C1.1998 8.57359 1.20461 8.59115 1.22177 8.61689C1.24216 8.64748 1.27169 8.67798 1.319 8.72529C1.3619 8.76819 1.4395 8.80005 1.53314 8.80005C1.6262 8.80005 1.70342 8.76858 1.74647 8.72609L4.9998 5.3798L8.25324 8.7262C8.28463 8.75744 8.30684 8.7719 8.32964 8.78102C8.35426 8.79087 8.39374 8.80005 8.46647 8.80005C8.61342 8.80005 8.6869 8.76345 8.72505 8.72529C8.75769 8.69266 8.77421 8.66797 8.78371 8.6466C8.79282 8.6261 8.7998 8.59893 8.7998 8.5556C8.7998 8.52632 8.78556 8.48748 8.74595 8.4065L5.38555 5.00006L8.72408 1.61516L8.72505 1.61418C8.75769 1.58155 8.77421 1.55686 8.78371 1.53549C8.79282 1.51499 8.7998 1.48782 8.7998 1.44449C8.7998 1.42651 8.795 1.40895 8.77784 1.38321C8.75745 1.35262 8.72792 1.32212 8.68061 1.2748C8.63771 1.23191 8.56011 1.20005 8.46647 1.20005C8.37313 1.20005 8.29572 1.23171 8.25275 1.2744C8.25261 1.27453 8.25288 1.27426 8.25275 1.2744L4.9998 4.57381L1.74687 1.2744C1.70389 1.23171 1.62648 1.20005 1.53314 1.20005C1.48656 1.20005 1.4286 1.20813 1.37529 1.22454ZM1.25765 0.842226C1.34879 0.814186 1.44638 0.800049 1.53314 0.800049C1.70617 0.800049 1.89523 0.857077 2.03012 0.991961L2.03112 0.992964L4.9998 4.00407L7.96849 0.992967L7.96949 0.991961C8.10438 0.857077 8.29344 0.800049 8.46647 0.800049C8.6395 0.800049 8.82856 0.857077 8.96345 0.991961C8.96722 0.995732 8.97119 0.999667 8.97532 1.00377C9.05598 1.0838 9.1998 1.22651 9.1998 1.44449C9.1998 1.5345 9.18457 1.61844 9.14923 1.69794C9.11439 1.77634 9.06444 1.84039 9.0084 1.89652C9.00823 1.89669 9.00857 1.89635 9.0084 1.89652L5.9474 5.00004L9.0756 8.17109L9.0898 8.19949C9.09189 8.20367 9.09408 8.20802 9.09634 8.21252C9.13595 8.29125 9.1998 8.41818 9.1998 8.5556C9.1998 8.64561 9.18457 8.72955 9.14923 8.80905C9.11429 8.88769 9.06414 8.95189 9.00789 9.00814C8.86827 9.14776 8.67508 9.20005 8.46647 9.20005C8.36142 9.20005 8.26757 9.18701 8.18108 9.15241C8.09298 9.11717 8.02652 9.06516 7.96949 9.00814L7.9675 9.00615L4.9998 5.95363L2.03013 9.00815C1.89525 9.14303 1.70617 9.20005 1.53314 9.20005C1.36011 9.20005 1.17104 9.14302 1.03616 9.00814C1.03239 9.00436 1.02843 9.00043 1.02429 8.99633C0.943633 8.9163 0.799805 8.77359 0.799805 8.5556C0.799805 8.41817 0.863658 8.29125 0.903268 8.21252C0.905533 8.20802 0.907718 8.20367 0.909808 8.19949L0.924011 8.17109L4.05221 5.00004L0.991717 1.89703C0.991544 1.89685 0.991889 1.8972 0.991717 1.89703C0.935675 1.8409 0.885217 1.77634 0.850376 1.69794C0.815042 1.61844 0.799805 1.5345 0.799805 1.44449C0.799805 1.35449 0.815042 1.27055 0.850376 1.19104C0.885324 1.11241 0.935465 1.04821 0.991717 0.991961C1.06827 0.91541 1.16933 0.869403 1.25765 0.842226Z","fill","white"],[1,"c-link",3,"click"]],template:function(i,n){i&1&&(a(0,"div",1,0),D(2,ts,1,1,null,null,n.trackById,!0),p(4,
1is,6,0,"button",2),r()),i&2&&(o(2),T(n.sortedSeoLinks),o(2),m(n.isTablet&&n.sortedSeoLinks.length>7&&!n.state.viewMore?4:-1))},dependencies:[j,xe],encapsulation:2})}}return t})();var as=()=>[1,2,3,4],rs=(t,c)=>c.id;function ss(t,c){if(t&1&&(a(0,"div",1),d(1,"app-shared-catalog-category-seo-links",6),r()),t&2){let e=s();o(),l("manufacturer",e.manufacturer())("isVendorPage",e.isVendorPage())("seoLinks",e.categoryTopSeoLinks())("categoryId",e.categoryId())}}function cs(t,c){t&1&&d(0,"div",2)}function ls(t,c){if(t&1&&d(0,"app-shared-product-card-g",9),t&2){let e=s().$implicit,i=s(3);l("shouldShowFiveEmptyStars",i.shouldShowFiveEmptyStars())("shouldShowNoReviewsMessage",i.shouldShowNoReviewsMessage())("compareTopbarVariant","default")("withParametersBadges",!0)("variant","tiny")("product",e)("withBonus",!0)("withSlider",!0)("bonusVariant","catalog")("withCompare",!0)("withFavorite",!0)("withBadges",!0)("withParams",i.showParamsInCardView())("withRating",!0)("withReviews",!0)("withInteridRating",!0)("withBasket",!0)}}function ds(t,c){if(t&1&&d(0,"app-shared-product-card-c",10),t&2){let e=s().$implicit,i=s(3);l("shouldShowFiveEmptyStars",i.shouldShowFiveEmptyStars())("shouldShowNoReviewsMessage",i.shouldShowNoReviewsMessage())("product",e)("withBonus",!0)("bonusVariant","catalog")("withBadges",!0)("withParams",!0)("withRating",!0)("withReviews",!0)("withInteridRating",!0)("withBasket",!0)}}function ps(t,c){if(t&1&&(p(0,ls,1,17,"app-shared-product-card-g",9),p(1,ds,1,11,"app-shared-product-card-c",10)),t&2){let e=s(3);m(e.isCardView()?0:-1),o(),m(e.isListView()?1:-1)}}function ms(t,c){if(t&1&&(a(0,"div",7),D(1,ps,2,2,null,null,je().trackById,!0),r()),t&2){let e=s(2);l("ngClass",e.productListNgClass()),o(),T(e.products())}}function us(t,c){if(t&1&&(a(0,"div",8)(1,"div",11)(2,"span"),v(3),f(4,"translate"),r()()()),t&2){let e=s(2);o(3),_(C(4,1,e.t("no_products")))}}function hs(t,c){if(t&1&&(p(0,ms,3,1,"div",7),p(1,us,5,3,"div",8)),t&2){let e=s();m(e.products().length>0?0:-1),o(),m(e.products().length===0?1:-1)}}function fs(t,c){t&1&&(a(0,"div",13),d(1,"div",14)(2,"div",15)(3,"div",16)(4,"div",17)(5,"div",18),r())}function Cs(t,c){t&1&&(a(0,"div",12),D(1,fs,6,0,"div",13,G),r()),t&2&&(o(),T(In(0,as)))}function gs(t,c){if(t&1&&d(0,"app-shared-attachment-image",22),t&2){let e=s().$implicit;l("loading","lazy")("attachment",e.image)("alt",e.title)("maxImageWidth",256)}}function vs(t,c){if(t&1&&(a(0,"span",23),v(1),f(2,"translate"),r()),t&2){let e=s(4);o(),_(C(2,1,e.t("series_out_of_production")))}}function _s(t,c){if(t&1&&(a(0,"span",24),v(1),f(2,"money"),r()),t&2){let e=s().$implicit;o(),X("\u043E\u0442 ",C(2,1,e.minPrice)," \u20BD")}}function ys(t,c){if(t&1&&(a(0,"div",20)(1,"a",21),p(2,gs,1,4,"app-shared-attachment-image",22),r(),p(3,vs,3,3,"span",23),p(4,_s,3,3,"span",24),a(5,"a",25),v(6),r(),a(7,"a",26),M(),a(8,"svg",27),d(9,"use"),f(10,"sprite"),r(),v(11),r()()),t&2){let e=c.$implicit,i=s(3);te("is-out-of-production",e.isOutOfProduction),o(),l("routerLink",i.buildSeriesRoute(e).route)("queryParams",i.buildSeriesRoute(e).query),o(),m(e.image?2:-1),o(),m(e.isOutOfProduction?3:-1),o(),m(e.minPrice&&!e.isOutOfProduction?4:-1),o(),l("routerLink",i.buildSeriesRoute(e).route)("queryParams",i.buildSeriesRoute(e).query),o(),_(e.title),o(),l("routerLink",i.buildSeriesRoute(e).route)("queryParams",i.buildSeriesRoute(e).query),o(2),I("href",C(10,14,"modifications")),o(2),X(" ",e.productsCount," \u043C\u043E\u0434\u0438\u0444\u0438\u043A\u0430\u0446\u0438\u0439")}}function xs(t,c){if(t&1&&(a(0,"div",12),D(1,ys,12,16,"div",19,rs),r()),t&2){let e=s(2);o(),T(e.series())}}function bs(t,c){if(t&1&&(a(0,"div",8)(1,"div",11)(2,"span"),v(3),f(4,"translate"),r()()()),t&2){let e=s(2);o(3),_(C(4,1,e.t("no_products")))}}function ws(t,c){if(t&1){let e=S();a(0,"div",5)(1,"app-shared-paginator",28),b("next",function(n){w(e);let u=s(2);return P(u.seriesPaginatorNextEvent.emit(n))}),r()()}if(t&2){let e=s(2);o(),l("page",e.seriesPaginatorPage())("pageSize",e.seriesPaginatorPageSize())("total",e.seriesPaginatorTotal())("urlGenerator",e.seriesPaginatorUrlGenerator())("canonicalUrlGenerator",e.seriesPaginatorCanonicalUrlGenerator())("shouldFollowUrl",!1)}}function Ps(t,c){if(t&1&&(p(0,Cs,3,1,"div",12),p(1,xs,3,0,"div",12),p(2,bs,5,3,"div",8),p(3,ws,2,6,"div",5)),t&2){let e=s();m(e.series()===null?0:-1),o(),m(e.series()!==null&&e.series().length>0?1:-1),o(),m(e.series()!==null&&e.series().length===0?2:-1),o(),m(e.withSeriesPaginator()&&e.series()!==null?3:-1)}}function Ss(t,c){if(t&1){let e=S();a(0,"div",4)(1,"app-shared-ui-load-more",29),b("click",function(){w(e);let n=s();return P(n.loadMoreEvent.emit())}),r()()}if(t&2){let e=s();o(),l("disabled",e.isLoading())}}function ks(t,c){if(t&1){let e=S();a(0,"div",5)(1,"app-shared-paginator",28),b("next",function(n){w(e);let u=s();return P(u.paginatorNextEvent.emit(n))}),r()()}if(t&2){let e=s();o(),l("page",e.paginatorPage())("pageSize",e.paginatorPageSize())("total",e.paginatorTotal())("urlGenerator",e.paginatorUrlGenerator())("canonicalUrlGenerator",e.paginatorCanonicalUrlGenerator())("shouldFollowUrl",e.paginatorShouldFollowUrl())}}var Ms=(()=>{class t{constructor(e,i,n){this.appLoading=e,this.session=i,this.urlBuilder=n,this.ngOnDestroy$=new H,this.products=g(),this.series=g(null),this.searchRequest=g(),this.withSortAndView=g(!1),this.withLoadMore=g(!1),this.withPaginator=g(!1),this.manufacturer=g(),this.isVendorPage=g(!1),this.compareTopbarVariant=g("none"),this.hasMoreToLoad=g(!1),this.paginatorPage=g(),this.paginatorPageSize=g(),this.paginatorTotal=g(),this.paginatorUrlGenerator=g(),this.paginatorCanonicalUrlGenerator=g(),this.paginatorShouldFollowUrl=g(!1),this.shouldDisplaySeoLinks=g(),this.withSeriesPaginator=g(!1),this.seriesPaginatorPage=g(),this.seriesPaginatorPageSize=g(),this.seriesPaginatorTotal=g(),this.seriesPaginatorUrlGenerator=g(),this.seriesPaginatorCanonicalUrlGenerator=g(),this.categoryTopSeoLinks=g(),this.blackl
1istSort=g([]),this.categoryId=g(),this.showRatings=g(!1),this.shouldShowNoReviewsMessage=g(!0),this.shouldShowFiveEmptyStars=g(!1),this.showParamsInCardView=g(!0),this.hideSeriesViewButton=g(!1),this.updateSearchRequestEvent=new oe,this.paginatorNextEvent=new oe,this.seriesPaginatorNextEvent=new oe,this.loadMoreEvent=new oe,this.filterScreenEvent=new oe,this.isLoading=Ci(this.appLoading.isLoading$),this.activatedRoute=ue(Ke),this.sessionViewMode=jt(this.session.accountSettings$.pipe(F(u=>u.catalogViewModeR2||De.defaultCatalogViewMode),ke())),this.vmQueryParam=jt(this.activatedRoute.queryParams.pipe(F(u=>u.vm))),this.viewMode=z(()=>this.vmQueryParam()==="series"?De.ViewMode.Series:this.sessionViewMode()??De.defaultCatalogViewMode),this.productListNgClass=z(()=>[`view-mode-${this.viewMode()}`]),this.isCardView=z(()=>this.viewMode()===ji.Card),this.isListView=z(()=>this.viewMode()===ji.List),this.isSeriesView=z(()=>this.vmQueryParam()==="series")}trackById(e,i){return i.id}t(e){return`product.shared.components.product_list.${e}`}buildSeriesRoute(e){if(e.url){let we=this.urlBuilder.uri(e.url),{path:Pe,query:Ot}=this.splitUrl(we);return{route:[Pe],query:Ot}}let i=`/categories/index/id/${e.categoryId}?series_id=${e.id}`,n=this.urlBuilder.uri(i);if(n!==i){let{path:we,query:Pe}=this.splitUrl(n);return{route:[we],query:Pe}}let u=`/categories/index/id/${e.categoryId}`,x=this.urlBuilder.uri(u),{path:B,query:V}=this.splitUrl(x);return{route:[B],query:O(E({},V),{series_id:e.id})}}splitUrl(e){let[i,n]=e.split("?");if(!n)return{path:i,query:{}};let u={};for(let x of n.split("&")){let[B,V]=x.split("=");B&&(u[decodeURIComponent(B)]=decodeURIComponent(V??""))}return{path:i,query:u}}static{this.\u0275fac=function(i){return new(i||t)(h(no),h(de),h(Ne))}}static{this.\u0275cmp=y({type:t,selectors:[["app-shared-product-list"]],inputs:{products:[1,"products"],series:[1,"series"],searchRequest:[1,"searchRequest"],withSortAndView:[1,"withSortAndView"],withLoadMore:[1,"withLoadMore"],withPaginator:[1,"withPaginator"],manufacturer:[1,"manufacturer"],isVendorPage:[1,"isVendorPage"],compareTopbarVariant:[1,"compareTopbarVariant"],hasMoreToLoad:[1,"hasMoreToLoad"],paginatorPage:[1,"paginatorPage"],paginatorPageSize:[1,"paginatorPageSize"],paginatorTotal:[1,"paginatorTotal"],paginatorUrlGenerator:[1,"paginatorUrlGenerator"],paginatorCanonicalUrlGenerator:[1,"paginatorCanonicalUrlGenerator"],paginatorShouldFollowUrl:[1,"paginatorShouldFollowUrl"],shouldDisplaySeoLinks:[1,"shouldDisplaySeoLinks"],withSeriesPaginator:[1,"withSeriesPaginator"],seriesPaginatorPage:[1,"seriesPaginatorPage"],seriesPaginatorPageSize:[1,"seriesPaginatorPageSize"],seriesPaginatorTotal:[1,"seriesPaginatorTotal"],seriesPaginatorUrlGenerator:[1,"seriesPaginatorUrlGenerator"],seriesPaginatorCanonicalUrlGenerator:[1,"seriesPaginatorCanonicalUrlGenerator"],categoryTopSeoLinks:[1,"categoryTopSeoLinks"],blacklistSort:[1,"blacklistSort"],categoryId:[1,"categoryId"],showRatings:[1,"showRatings"],shouldShowNoReviewsMessage:[1,"shouldShowNoReviewsMessage"],shouldShowFiveEmptyStars:[1,"shouldShowFiveEmptyStars"],showParamsInCardView:[1,"showParamsInCardView"],hideSeriesViewButton:[1,"hideSeriesViewButton"]},outputs:{updateSearchRequestEvent:"updateSearchRequest",paginatorNextEvent:"paginatorNext",seriesPaginatorNextEvent:"seriesPaginatorNext",loadMoreEvent:"loadMore",filterScreenEvent:"filterScreen"},standalone:!1,decls:8,vars:10,consts:[[1,"c-sort-and-view"],[1,"c-header-links"],[1,"c-delimiter"],[3,"filterScreen","updateSearchRequest","searchRequest","blacklistSort","showRatings","hideSeriesViewButton"],[1,"c-show-more"],[1,"c-paginator"],[3,"manufacturer","isVendorPage","seoLinks","categoryId"],[1,"products-list",3,"ngClass"],[1,"no-products"],[1,"product",3,"shouldShowFiveEmptyStars","shouldShowNoReviewsMessage","compareTopbarVariant","withParametersBadges","variant","product","withBonus","withSlider","bonusVariant","withCompare","withFavorite","withBadges","withParams","withRating","withReviews","withInteridRating","withBasket"],[1,"product",3,"shouldShowFiveEmptyStars","shouldShowNoReviewsMessage","product","withBonus","bonusVariant","withBadges","withParams","withRating","withReviews","withInteridRating","withBasket"],[1,"message"],[1,"products-list","view-mode-Series"],[1,"c-series-card","skeleton"],[1,"sk","sk-series-image"],[1,"sk","sk-series-price"],[1,"sk","sk-series-title"],[1,"sk","sk-series-title-short"],[1,"sk","sk-series-button"],[1,"c-series-card",3,"is-out-of-production"],[1,"c-series-card"],[1,"product-image-wrapper",3,"routerLink","queryParams"],["objectFit","scale-down",3,"loading","attachment","alt","maxImageWidth"],[1,"series-out-of-production-badge"],[1,"product-price"],[1,"product-title",3,"routerLink","queryParams"],[1,"product-mods-button",3,"routerLink","queryParams"],[1,"sprite_modifications"],[3,"next","page","pageSize","total","urlGenerator","canonicalUrlGenerator","shouldFollowUrl"],[3,"click","disabled"]],template:function(i,n){i&1&&(a(0,"div",0),p(1,ss,2,4,"div",1),p(2,cs,1,0,"div",2),a(3,"app-shared-product-list-sort-and-view",3),b("filterScreen",function(x){return n.filterScreenEvent.emit(x)})("updateSearchRequest",function(x){return n.updateSearchRequestEvent.emit(x)}),r()(),p(4,hs,2,2),p(5,Ps,4,4),p(6,Ss,2,1,"div",4),p(7,ks,2,6,"div",5)),i&2&&(o(),m(n.shouldDisplaySeoLinks()&&n.categoryTopSeoLinks()&&(n.categoryId()||n.isVendorPage())?1:-1),o(),m(n.shouldDisplaySeoLinks()&&n.categoryTopSeoLinks()&&(n.categoryId()||n.isVendorPage())?2:-1),o(),l("searchRequest",n.searchRequest())("blacklistSort",n.blacklistSort())("showRatings",n.showRatings())("hideSeriesViewButton",n.hideSeriesViewButton()),o(),m(n.isSeriesView()?-1:4),o(),m(n.isSeriesView()?5:-1),o(),m(n.hasMoreToLoad()?6:-1),o(),m(n.withPaginator()?7:-1))},dependencies:[j,xe,ce,so,ho,Wi,We,Xi,Zi,K,kt,Z],encapsulation:2})}}return t})();var Bs=t=>({"is-article":t}),Yi=(()=>{class t{get html$(){let e=[this.h1.h1$];return Be(e).pipe(F(([i])=>{let n=this.payload().contents.split("{{ h1 }}").join(i);return this.fillImageAltFromFigcaption(n)}))}constructor(e){this.h1=e,this.ngOnDestroy$=new H,this.payload=g(),this.isArticle=g(!1)}ngOnDestroy(){this.ngOnDestroy$.next()}fillImageAltFromFigcaption(e){return!e||e.indexOf("<figure")===-1?e:e.replace(/<figure\b[^>]*>[\s\S]*?<\/figure>/gi,i=>{let n=i.match(/<figcaption\b[^>]*>([\s\S]*?)<\/figcaption>/i);if(!n)return i;let u=this.toAttributeValue(n[1]);return u?i.replace(/<img\b[^>]*>/i,x=>/\balt\s*=/i.test(x)?x:x.replace(/^<img/i,`<img alt="${u}"`)):i})}toAttributeValue(e){return e.replace(/<[^>]+>/g,"").replace(/&lt;/gi,"<").replace(/&gt;/gi,">").replace(/&quot;/gi,'"').replace(/&apos;/gi,"'").replace(/&#39;/g,"'").replace(/&nbsp;/gi," ").replace(/&#(\d+);/g,(n,u)=>String.fromCharCode(Number(u))).replace(/&amp;/gi,"&").replace(/\s+/g," ").trim().replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}
1t(e){return`content.components.content.${e}`}static{this.\u0275fac=function(i){return new(i||t)(h(Wn))}}static{this.\u0275cmp=y({type:t,selectors:[["app-content-block-html"]],inputs:{payload:[1,"payload"],isArticle:[1,"isArticle"]},standalone:!1,decls:3,vars:8,consts:[[1,"__app-content","content-block-html",3,"ngClass","innerHTML"]],template:function(i,n){i&1&&(d(0,"div",0),f(1,"async"),f(2,"trustHtml")),i&2&&l("ngClass",U(6,Bs,n.isArticle()))("innerHTML",C(2,4,C(1,2,n.html$)),R)},dependencies:[j,ye,W],encapsulation:2})}}return t})();var No={consult:"\u041A\u043E\u043D\u0441\u0443\u043B\u044C\u0442\u0430\u0446\u0438\u044F \u0441\u043E \u0441\u0442\u0440\u0430\u043D\u0438\u0446\u044B",request:"\u0417\u0430\u044F\u0432\u043A\u0430 \u0441\u043E \u0441\u0442\u0440\u0430\u043D\u0438\u0446\u044B"},Ts=t=>t==="consult"||t==="request",Ki=(()=>{class t{constructor(){this.document=ue(pt),this.elementRef=ue(ni),this.matDialog=ue(be),this.payload=g()}get html(){let e=this.payload();return e?`<style>${e.css??""}</style>${e.html??""}`:""}onContentsClick(e){let n=(e.target instanceof Element?e.target:void 0)?.closest("[data-lp-action]");if(!n)return;let u=n.getAttribute("data-lp-action");Ts(u)&&(e.preventDefault(),this.matDialog.open(ro,O(E({},fe),{disableClose:!1,data:{context:Hn.Solution,withMessage:this.landingMessage(u,n)}})))}landingMessage(e,i){let n=lo(this.document,this.elementRef.nativeElement),u=n?`${No[e]}: ${n}`:No[e],x=co(i.getAttribute("data-lp-subject"));return x?[u,"",`\u0422\u0435\u043C\u0430: ${x}`].join(`
2`):u}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=y({type:t,selectors:[["app-content-block-raw-html"]],inputs:{payload:[1,"payload"]},standalone:!1,decls:2,vars:3,consts:[[1,"content-block-raw-html",3,"click","innerHTML"]],template:function(i,n){i&1&&(a(0,"div",0),f(1,"trustHtml"),b("click",function(x){return n.onContentsClick(x)}),r()),i&2&&l("innerHTML",C(1,1,n.html),R)},dependencies:[W],styles:[`.content-block-raw-html{position:relative;overflow-x:clip}
3`],encapsulation:2})}}return t})();function Es(t,c){if(t&1&&(a(0,"div",1),d(1,"app-shared-product-card-g",2),f(2,"async"),f(3,"async"),f(4,"async"),r()),t&2){let e=c.$implicit,i=s(2);o(),l("compareTopbarVariant","simple")("withParametersBadges",!0)("withParams",!0)("variant",C(2,10,i.productCardVariant$))("product",e)("withBadges",!0)("withBasket",!0)("withReviews",!0)("withRating",C(3,12,i.withRating$))("withIsAvailableOnDepot",C(4,14,i.withAvailableOnDepot$))}}function As(t,c){if(t&1&&(a(0,"div",0),D(1,Es,5,16,"div",1,G),r()),t&2){let e=s();o(),T(e.categoryProducts)}}var Ji=(()=>{class t{constructor(e){this.urlBuilder=e,this.payload=g(),this.bundle=g()}get product(){return this.bundle()?.product}get categoryProducts(){return this.bundle()?.categoryProducts}get solution(){return this.bundle()?.solution}get solutionRouterLink(){return this.urlBuilder.urlLink({type:Te.Solution,payload:{solutionId:this.solution.id,solutionUri:this.solution.uri}})}get productCardVariant$(){return Jt("tiny")}static{this.\u0275fac=function(i){return new(i||t)(h(Ne))}}static{this.\u0275cmp=y({type:t,selectors:[["app-content-block-products"]],inputs:{payload:[1,"payload"],bundle:[1,"bundle"]},standalone:!1,decls:1,vars:1,consts:[[1,"frame-1526"],[1,"frame"],[3,"compareTopbarVariant","withParametersBadges","withParams","variant","product","withBadges","withBasket","withReviews","withRating","withIsAvailableOnDepot"]],template:function(i,n){i&1&&p(0,As,3,0,"div",0),i&2&&m(n.categoryProducts?0:-1)},dependencies:[We,ye],encapsulation:2})}}return t})();var Ho=(t,c)=>({row:t,rowIndex:c});function Vs(t,c){t&1&&Ai(0)}function Ls(t,c){if(t&1&&(a(0,"li"),oi(1,Vs,1,0,"ng-container",3),r()),t&2){let e=c.$implicit,i=c.$index;s(2);let n=Y(6);o(),l("ngTemplateOutlet",n)("ngTemplateOutletContext",Oi(2,Ho,e,i))}}function Rs(t,c){if(t&1&&(a(0,"ul",1),D(1,Ls,2,5,"li",null,G),r()),t&2){let e=s();l("ngClass",e.listNgClass),o(),T(e.payload().items)}}function Fs(t,c){t&1&&Ai(0)}function Ns(t,c){if(t&1&&(a(0,"li"),oi(1,Fs,1,0,"ng-container",3),r()),t&2){let e=c.$implicit,i=c.$index;s(2);let n=Y(6);o(),l("ngTemplateOutlet",n)("ngTemplateOutletContext",Oi(2,Ho,e,i))}}function Hs(t,c){if(t&1&&(a(0,"ol",1),D(1,Ns,2,5,"li",null,G),r()),t&2){let e=s();l("ngClass",e.listNgClass),o(),T(e.payload().items)}}function $s(t,c){if(t&1&&(a(0,"div",4),d(1,"span",5),f(2,"trustHtml"),r()),t&2){let e=c.$implicit;o(),l("innerHTML",C(2,1,e.text),R)}}function js(t,c){if(t&1&&(a(0,"div",1),D(1,$s,3,3,"div",4,G),r()),t&2){let e=s();l("ngClass",e.listNgClass),o(),T(e.payload().items)}}function qs(t,c){if(t&1&&(a(0,"div",4)(1,"div",6),d(2,"div",5),f(3,"trustHtml"),r()()),t&2){let e=c.row;o(2),l("innerHTML",C(3,1,e.text),R)}}var en=(()=>{class t{constructor(){this.payload=g(),this.isArticle=g(!1)}get listNgClass(){return[`style-${this.payload().style}`,this.isArticle()?"is-article":""]}get cNgClass(){return[this.isMarketplaces?"c":"c padding"]}get isMarketplaces(){return[st.Style.Marketplaces].includes(this.payload().style)}get isUL(){return[st.Style.Dots,st.Style.Marks,st.Style.Checklist].includes(this.payload().style)}get isOL(){return[st.Style.Digits,st.Style.Steps].includes(this.payload().style)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=y({type:t,selectors:[["app-content-block-list"]],inputs:{payload:[1,"payload"],isArticle:[1,"isArticle"]},standalone:!1,decls:7,vars:4,consts:[["itemTemplate",""],[3,"ngClass"],[1,"c-items"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"item"],[3,"innerHTML"],[1,"item-text"]],template:function(i,n){i&1&&(a(0,"div",1)(1,"div",2),p(2,Rs,3,1,"ul",1),p(3,Hs,3,1,"ol",1),p(4,js,3,1,"div",1),r()(),oi(5,qs,4,3,"ng-template",null,0,En)),i&2&&(l("ngClass",n.cNgClass),o(2),m(n.isUL?2:-1),o(),m(n.isOL?3:-1),o(),m(n.isMarketplaces?4:-1))},dependencies:[j,Vn,W],encapsulation:2})}}return t})();function zs(t,c){if(t&1){let e=S();a(0,"div",3),b("click",function(){w(e);let n=s();return P(n.play())}),a(1,"img",4),b("load",function(n){w(e);let u=s();return P(u.onImageLoad(n))}),r(),a(2,"div",5),M(),a(3,"svg",6),d(4,"path",7)(5,"path",8),a(6,"g",9)(7,"g")(8,"linearGradient",10),d(9,"stop",11)(10,"stop",12),r(),d(11,"path",13),r()()()()()}if(t&2){let e=s();o(),l("src",e.state().youtubeImageUrl,he)}}function Ws(t,c){if(t&1&&(a(0,"div",2),d(1,"app-shared-youtube-player
3-flex",14),r()),t&2){let e=s();o(),l("videoId",e.state().youtubeId)("autoplay",!0)}}var tn=(()=>{class t{constructor(e){this.sanitizer=e,this.payload=g(),this.state=$({mode:"preview"})}ngOnChanges(e){if(e.payload){let i=this.payload().youtubeId?this.payload().youtubeId:jn(this.payload().url),n=`https://img.youtube.com/vi/${i}/maxresdefault.jpg`;this.state.update(u=>O(E({},u),{youtubeId:i,youtubeImageUrl:this.sanitizer.bypassSecurityTrustUrl(n)}))}}onImageLoad(e){if(e&&e.target&&e.target.naturalHeight<=90){let i=`https://img.youtube.com/vi/${this.state().youtubeId}/hqdefault.jpg`;this.state().youtubeImageUrl=this.sanitizer.bypassSecurityTrustUrl(i)}}play(){this.state.update(e=>O(E({},e),{mode:"play"}))}static{this.\u0275fac=function(i){return new(i||t)(h(Ct))}}static{this.\u0275cmp=y({type:t,selectors:[["app-content-block-youtube"]],inputs:{payload:[1,"payload"]},standalone:!1,features:[_e],decls:3,vars:2,consts:[[1,"c"],[1,"c-youtube-preview"],[1,"c-youtube-player"],[1,"c-youtube-preview",3,"click"],["alt","Video",1,"c-youtube-preview-img",3,"load","src"],[1,"c-youtube-preview-play-icon"],["version","1.1","id","YouTube_Icon","width","1024","height","721","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/1999/xlink","x","0px","y","0px","viewBox","0 0 1024 721","enable-background","new 0 0 1024 721",0,"xml","space","preserve"],["id","Triangle","fill","#FFFFFF","d","M407,493l276-143L407,206V493z"],["id","The_Sharpness","opacity","0.12","fill","#420000","d","M407,206l242,161.6l34-17.6L407,206z"],["id","Lozenge"],["id","SVGID_1_","gradientUnits","userSpaceOnUse","x1","512.5","y1","719.7","x2","512.5","y2","1.2","gradientTransform","matrix(1 0 0 -1 0 721)"],["offset","0",2,"stop-color","#E52D27"],["offset","1",2,"stop-color","#BF171D"],["fill","url(#SVGID_1_)","d",`M1013,156.3c0,0-10-70.4-40.6-101.4C933.6,14.2,890,14,870.1,11.6C727.1,1.3,512.7,1.3,512.7,1.3
4          h-0.4c0,0-214.4,0-357.4,10.3C135,14,91.4,14.2,52.6,54.9C22,85.9,12,156.3,12,156.3S1.8,238.9,1.8,321.6v77.5
5          C1.8,481.8,12,564.4,12,564.4s10,70.4,40.6,101.4c38.9,40.7,89.9,39.4,112.6,43.7c81.7,7.8,347.3,10.3,347.3,10.3
6          s214.6-0.3,357.6-10.7c20-2.4,63.5-2.6,102.3-43.3c30.6-31,40.6-101.4,40.6-101.4s10.2-82.7,10.2-165.3v-77.5
7          C1023.2,238.9,1013,156.3,1013,156.3z M407,493V206l276,144L407,493z`],[3,"videoId","autoplay"]],template:function(i,n){i&1&&(a(0,"div",0),p(1,zs,12,1,"div",1),p(2,Ws,2,2,"div",2),r()),i&2&&(o(),m(n.state().mode==="preview"?1:-1),o(),m(n.state().mode==="play"?2:-1))},dependencies:[fi],encapsulation:2})}}return t})();function Xs(t,c){if(t&1&&d(0,"iframe",2),t&2){let e=s();l("src",e.state().safeVideoUrl,Mn)}}var nn=(()=>{class t{constructor(){this.payload=g(),this.sanitizer=ue(Ct),this.platformId=ue(ee),this.state=$({})}ngOnChanges(e){if(e.payload){let i=this.payload().vkId?this.payload().vkId:qn(this.payload().url),[n,u]=i?.split("_")||[],x=n&&u&&ae(this.platformId)?this.sanitizer.bypassSecurityTrustResourceUrl(`https://vk.com/video_ext.php?oid=${n}&id=${u}&hd=2`):void 0;this.state.update(B=>O(E({},B),{vkId:i,safeVideoUrl:x}))}}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=y({type:t,selectors:[["app-content-block-vk"]],inputs:{payload:[1,"payload"]},standalone:!1,features:[_e],decls:3,vars:1,consts:[[1,"c"],[1,"c-vk-player"],["width","100%","height","100%","frameborder","0","allowfullscreen","","allow","autoplay; encrypted-media; fullscreen; picture-in-picture","loading","lazy",3,"src"]],template:function(i,n){i&1&&(a(0,"div",0)(1,"div",1),p(2,Xs,1,1,"iframe",2),r()()),i&2&&(o(2),m(n.state().safeVideoUrl?2:-1))},encapsulation:2})}}return t})();function Ys(t,c){return this.trackByAttachmentId(c)}function Ks(t,c){if(t&1){let e=S();a(0,"div",3),b("click",function(){let n=w(e).$implicit,u=s();return P(u.openImageGallery(n))}),a(1,"div",4),d(2,"app-shared-attachment-image",5),r()()}if(t&2){let e=c.$implicit,i=c.$index;o(2),l("attachment",e)("alt","\u0424\u043E\u0442\u043E #"+(i+1))}}var on=(()=>{class t{constructor(e,i){this.vcr=e,this.imageGallery=i,this.payload=g()}get width(){return this.payload().widthInPixels||Li.DEFAULT_BLOCK_PHOTOS_WIDTH}get height(){return this.payload().heightInPixels||Li.DEFAULT_BLOCK_PHOTOS_HEIGHT}get cPhotosNgStyle(){return{"grid-template-columns":`repeat(auto-fit, minmax(${this.width}px, 1fr))`}}get cImgNgStyle(){return{"max-height":`${this.height}px`}}trackByAttachmentId(e){return e.id}openImageGallery(e){this.imageGallery.open(this.vcr,{images:this.payload().images,startWith:e})}static{this.\u0275fac=function(i){return new(i||t)(h(Fe),h(tt))}}static{this.\u0275cmp=y({type:t,selectors:[["app-content-block-photos"]],inputs:{payload:[1,"payload"]},standalone:!1,decls:4,vars:1,consts:[[1,"c"],[1,"c-photos",3,"ngStyle"],[1,"c-photo"],[1,"c-photo",3,"click"],[1,"c-photo-container"],["objectFit","cover",1,"content-block-photos",3,"attachment","alt"]],template:function(i,n){i&1&&(a(0,"div",0)(1,"div",1),D(2,Ks,3,2,"div",2,Ys,!0),r()()),i&2&&(o(),l("ngStyle",n.cPhotosNgStyle),o(),T(n.payload().images))},dependencies:[Ye,ce],encapsulation:2})}}return t})();function ec(t,c){return this.trackByAttachmentId(c)}function tc(t,c){if(t&1){let e=S();a(0,"div",5),b("click",function(){let n=w(e).$implicit,u=s();return P(u.changeActive(n))}),d(1,"app-shared-attachment-image",6),r()}if(t&2){let e=c.$implicit,i=c.$index;o(),l("attachment",e)("alt","\u0424\u043E\u0442\u043E #"+(i+1))}}var an=(()=>{class t{constructor(e,i){this.vcr=e,this.imageGallery=i,this.payload=g(),this.mouseDown=!1}startDragging(e,i,n){this.mouseDown=!0,this.startX=e.pageX-n.offsetLeft,this.scrollLeft=n.scrollLeft}stopDragging(e,i){this.mouseDown=!1}moveEvent(e,i){if(e.preventDefault(),!this.mouseDown)return;let u=e.pageX-i.offsetLeft-this.startX;i.scrollLeft=this.scrollLeft-u}ngOnInit(){this.payload().images.length>0&&(this.active=this.payload().images[0])}get cPhotosNgStyle(){return{}}get cImgNgStyle(){return{}}trackByAttachmentId(e){return e.id}changeActive(e){this.active=e}static{this.\u0275fac=function(i){return new(i||t)(h(Fe),h(tt))}}static{this.\u0275cmp=y({type:t,selectors:[["app-content-block-photo-gallery"]],inputs:{payload:[1,"payload"]},standalone:!1,decls:6,vars:3,consts:[["container",""],[1,"frame-2141"],["objectFit","cover",1,"content-block-photo-active",3,"attachment","alt"],[1,"frame-1769",3,"mousedown","mouseup","mouseleave","mousemove","ngStyle"],[1,"frame-993"],[1,"frame-993",3,"click"],["objectFit","cover",1,"content-block-photo",3,"attachment","alt"]],template:function(i,n){if(i&1){let u=S();a(0,"div",1),d(1,"app-shared-attachment-image",2),a(2,"div",3,0),b("mousedown",function(B){w(u);let V=Y(3);return P(n.startDragging(B,!1,V))})("mouseup",function(B){return n.stopDragging(B,!1)})("mouseleave",function(B){return n.stopDragging(B,!1)})("mousemove",function(B){w(u);let V=Y(3);return P(n.moveEvent(B,V))}),D(4,tc,2,2,"div",4,ec,!0),r()()}
7i&2&&(o(),l("attachment",n.active)("alt","\u0424\u043E\u0442\u043E"),o(),l("ngStyle",n.cPhotosNgStyle),o(2),T(n.payload().images))},dependencies:[Ye,ce],encapsulation:2})}}return t})();var rn=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=y({type:t,selectors:[["app-content-block-files"]],inputs:{payload:"payload"},standalone:!1,decls:0,vars:0,template:function(i,n){},encapsulation:2})}}return t})();var sn=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=y({type:t,selectors:[["app-content-block-manufacturers"]],inputs:{payload:"payload"},standalone:!1,decls:0,vars:0,template:function(i,n){},encapsulation:2})}}return t})();var ac=["container"];function rc(t,c){if(t&1&&(a(0,"div",3),d(1,"app-shared-attachment-image",4),r()),t&2){let e=c.$implicit,i=c.$index;o(),l("alt","\u0421\u0435\u0440\u0442\u0438\u0444\u0438\u043A\u0430\u0442 #"+(i+1))("attachment",e)}}var cn=(()=>{class t{constructor(){this.payload=g(),this.container=Rt("container"),this.mouseDown=!1}startDragging(e,i,n){this.mouseDown=!0,this.startX=e.pageX-n.offsetLeft,this.scrollLeft=n.scrollLeft}stopDragging(e,i){this.mouseDown=!1}moveEvent(e,i){if(e.preventDefault(),!this.mouseDown)return;let u=e.pageX-i.offsetLeft-this.startX;i.scrollLeft=this.scrollLeft-u}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=y({type:t,selectors:[["app-content-block-about-company-certificates"]],viewQuery:function(i,n){i&1&&ut(n.container,ac,5),i&2&&ht()},inputs:{payload:[1,"payload"]},standalone:!1,decls:5,vars:0,consts:[["container",""],[1,"c","__app-fluid-container-control-padding-bottom",3,"mousedown","mouseup","mouseleave","mousemove"],[1,"c-frame"],[1,"c-item"],["objectFit","cover",3,"alt","attachment"]],template:function(i,n){if(i&1){let u=S();a(0,"div",1,0),b("mousedown",function(B){w(u);let V=Y(1);return P(n.startDragging(B,!1,V))})("mouseup",function(B){return n.stopDragging(B,!1)})("mouseleave",function(B){return n.stopDragging(B,!1)})("mousemove",function(B){w(u);let V=Y(1);return P(n.moveEvent(B,V))}),a(2,"div",2),D(3,rc,2,2,"div",3,G),r()()}i&2&&(o(3),T(n.payload().images))},dependencies:[ce],encapsulation:2})}}return t})();function cc(t,c){if(t&1&&(a(0,"a",4),d(1,"img",6),r()),t&2){let e=s().$implicit;l("routerLink",e.link),o(),l("src",e.icon.url,he),I("alt",e.title)("title",e.title)}}function lc(t,c){if(t&1&&(a(0,"a",5),d(1,"img",6),r()),t&2){let e=s().$implicit;l("href",e.link,he),o(),l("src",e.icon.url,he),I("alt",e.title)("title",e.title)}}function dc(t,c){if(t&1&&d(0,"img",6),t&2){let e=s().$implicit;l("src",e.icon.url,he),I("alt",e.title)("title",e.title)}}function pc(t,c){if(t&1&&(a(0,"div",3),p(1,cc,2,4,"a",4),p(2,lc,2,4,"a",5),p(3,dc,1,3,"img",6),r()),t&2){let e=c.$implicit,i=s();o(),m(e.link&&!i.isExternal(e.link)?1:-1),o(),m(e.link&&i.isExternal(e.link)?2:-1),o(),m(e.link?-1:3)}}var ln=(()=>{class t{constructor(){this.payload=g(),this.mouseDown=!1}startDragging(e,i){this.mouseDown=!0,this.startX=e.pageX-i.offsetLeft,this.scrollLeft=i.scrollLeft}stopDragging(){this.mouseDown=!1}moveEvent(e,i){if(e.preventDefault(),!this.mouseDown)return;let n=e.pageX-i.offsetLeft;i.scrollLeft=this.scrollLeft-(n-this.startX)}isExternal(e){return/^https?:\/\//i.test(e)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=y({type:t,selectors:[["app-content-block-about-company-categories"]],inputs:{payload:[1,"payload"]},standalone:!1,decls:5,vars:0,consts:[["container",""],[1,"c","__app-fluid-container-control-padding-bottom",3,"mousedown","mouseup","mouseleave","mousemove"],[1,"c-bottom","___hide-mobile-scroll"],[1,"c-bottom-card"],[3,"routerLink"],["target","_blank",3,"href"],["loading","lazy",1,"c-bottom-card-image",3,"src"]],template:function(i,n){if(i&1){let u=S();a(0,"div",1,0),b("mousedown",function(B){w(u);let V=Y(1);return P(n.startDragging(B,V))})("mouseup",function(){return n.stopDragging()})("mouseleave",function(){return n.stopDragging()})("mousemove",function(B){w(u);let V=Y(1);return P(n.moveEvent(B,V))}),a(2,"div",2),D(3,pc,4,3,"div",3,G),r()()}
7i&2&&(o(3),T(n.payload().items))},dependencies:[xe],styles:[".c[_ngcontent-%COMP%]{overflow-y:hidden;overflow-x:auto}.c[_ngcontent-%COMP%]::-webkit-scrollbar{height:4px;background:#ecf0f2;border-radius:111px}.c[_ngcontent-%COMP%]::-webkit-scrollbar-thumb:horizontal{background:var(--color-black);border-radius:100px}.c[_ngcontent-%COMP%]   .c-bottom[_ngcontent-%COMP%]{display:flex;justify-content:space-between;column-gap:24px}.c[_ngcontent-%COMP%]   .c-bottom[_ngcontent-%COMP%]   .c-bottom-card[_ngcontent-%COMP%]{width:22vw;height:22vw;max-width:220px;max-height:220px;min-width:220px;min-height:220px;border-radius:8px;background:radial-gradient(50% 50% at 50% 56.99%,#ecf0f2 54.32% 100%)}.c[_ngcontent-%COMP%]   .c-bottom[_ngcontent-%COMP%]   .c-bottom-card[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{padding:8px;width:100%;height:100%;display:flex;justify-content:center;align-items:center}@media screen and (min-width:768px){.c[_ngcontent-%COMP%]   .c-bottom[_ngcontent-%COMP%]   .c-bottom-card[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{padding:12px}}@media screen and (min-width:1440px){.c[_ngcontent-%COMP%]   .c-bottom[_ngcontent-%COMP%]   .c-bottom-card[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{padding:16px}}@media screen and (min-width:1000px){.c[_ngcontent-%COMP%]   .c-bottom[_ngcontent-%COMP%]   .c-bottom-card[_ngcontent-%COMP%]{max-width:302px;max-height:302px}}@media screen and (min-width:1440px){.c[_ngcontent-%COMP%]   .c-bottom[_ngcontent-%COMP%]   .c-bottom-card[_ngcontent-%COMP%]{max-width:302px;max-height:302px}}@media screen and (min-width:1600px){.c[_ngcontent-%COMP%]   .c-bottom[_ngcontent-%COMP%]   .c-bottom-card[_ngcontent-%COMP%]{max-width:336px;max-height:336px}}.c[_ngcontent-%COMP%]   .c-bottom[_ngcontent-%COMP%]   .c-bottom-card[_ngcontent-%COMP%]   .c-bottom-card-image[_ngcontent-%COMP%]{max-height:90%;max-width:90%;width:auto;height:auto;display:block;user-drag:none;-webkit-user-drag:none;user-select:none;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none}"]})}}return t})();function uc(t,c){if(t&1&&(a(0,"div",1)(1,"div",2)(2,"span",3),v(3),r(),a(4,"div",4),d(5,"app-shared-attachment-image",5),r()(),a(6,"div",6)(7,"span",7),v(8),r(),a(9,"span",8),v(10),r()()()),t&2){let e=c.$implicit;o(3),_(e.title),o(2),l("alt",e.title)("attachment",e.icon),o(3),_(e.subtitle),o(2),_(e.description)}}var dn=(()=>{class t{constructor(){this.payload=g()}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=y({type:t,selectors:[["app-content-block-about-company-advantages"]],inputs:{payload:[1,"payload"]},standalone:!1,decls:3,vars:0,consts:[[1,"c"],[1,"c-item"],[1,"c-item-head"],[1,"title"],[1,"c-item-image"],["objectFit","cover",3,"alt","attachment"],[1,"c-item-body"],[1,"subtitle"],[1,"description"]],template:function(i,n){i&1&&(a(0,"div",0),D(1,uc,11,5,"div",1,G),r()),i&2&&(o(),T(n.payload().items))},dependencies:[ce],encapsulation:2})}}return t})();function fc(t,c){if(t&1&&(a(0,"div",2)(1,"div",3),d(2,"app-shared-attachment-image",4),r(),a(3,"div",5)(4,"span",6),v(5),r(),a(6,"span",7),v(7),r()()()),t&2){let e=c.$implicit;o(2),l("alt",e.title)("attachment",e.icon),o(3),_(e.title),o(2),_(e.subtitle)}}var pn=(()=>{class t{constructor(){this.payload=g()}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=y({type:t,selectors:[["app-content-block-about-company-activities"]],inputs:{payload:[1,"payload"]},standalone:!1,decls:4,vars:0,consts:[[1,"c"],[1,"c-frame"],[1,"c-item"],[1,"c-item-image"],["objectFit","cover",3,"alt","attachment"],[1,"c-item-frame"],[1,"title"],[1,"subtitle"]],template:function(i,n){i&1&&(a(0,"div",0)(1,"div",1),D(2,fc,8,4,"div",2,G),r()()),i&2&&(o(2),T(n.payload().items))},dependencies:[ce],encapsulation:2})}}return t})();function gc(t,c){if(t&1&&(a(0,"div",7)(1,"span"),v(2),r()()),t&2){let e=s().$implicit;o(2),_(e.title)}}function vc(t,c){if(t&1&&(a(0,"div",8),d(1,"div",9),f(2,"trustHtml"),r()),t&2){let e=s().$implicit;o(),l("innerHTML",C(2,1,e.description),R)}}function _c(t,c){if(t&1&&(a(0,"div",2)(1,"div",3)(2,"div",4),d(3,"img",5),r()(),a(4,"div",6),p(5,gc,3,1,"div",7),p(6,vc,3,3,"div",8),r()()),t&2){let e=c.$implicit;o(3),l("src",e.icon.url,he),I("alt",e.title),o(2),m(e.title?5:-1),o(),m(e.description?6:-1)}}function yc(t,c){if(t&1&&(a(0,"div",1),D(1,_c,7,4,"div",2,G),r()),t&2){let e=s();l("ngClass",e.ngClass),o(),T(e.payload().items)}}var mn=(()=>{class t{constructor(){this.payload=g()}get ngClass(){return{"is-horizontal":this.isHorizontalLayout,"is-horizontal-v2":this.isHorizontalV2Layout,"is-vertical":this.isVerticalLayout,"is-vertical-v2":this.isVerticalV2Layout}}get isHorizontalLayout(){return this.payload().layout===Ht.Layout.Horizontal}get isHorizontalV2Layout(){return this.payload().layout===Ht.Layout.HorizontalV2}get isVerticalLayout(){return this.payload().layout===Ht.Layout.Vertical}get isVerticalV2Layout(){return this.payload().layout===Ht.Layout.VerticalV2}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=y({type:t,selectors:[["app-content-block-features"]],inputs:{payload:[1,"payload"]},standalone:!1,decls:2,vars:1,consts:[[1,"c"],[1,"c-features",3,"ngClass"],[1,"c-feature"],[1,"c-feature-icon"],[1,"icon-container"],[3,"src"],[1,"c-feature-info"],[1,"c-feature-title"],[1,"c-feature-description"],[3,"innerHTML"]],template:function(i,n){i&1&&(a(0,"div",0),p(1,yc,3,1,"div",1),r()),i&2&&(o(),m(n.payload().items.length>0?1:-1))},dependencies:[j,W],encapsulation:2})}}return t})();var un=(()=>{class t{get boxStyle(){return{"background-color":this.payload.backgroundColor,"border-left":`4px solid ${this.payload.lineColor??Nn.NoteAccent}`}}get textStyle(){return{color:this.payload.textColor}}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=y({type:t,selectors:[["app-content-block-hint"]],inputs:{payload:"payload"},standalone:!1,decls:3,vars:5,consts:[[1,"content-block-hint",3,"ngStyle"],[1,"content-block-hint__text",3,"ngStyle","innerHTML"]],template:function(i,n){i&1&&(a(0,"div",0),d(1,"div",1),f(2,"trustHtml"),r()),i&2&&(l("ngStyle",n.boxStyle),o(),l("ngStyle",n.textStyle)("innerHTML",C(2,3,n.payload.contents),R))},dependencies:[Ye,W],styles:[`.content-block-hint{margin:24px 0;padding:18px 20px;border-radius:0 12px 12px 0;line-height:1.65}.content-block-hint .content-block-hint__text{font-size:16px}.content-block-hint .content-block-hint__text p{margin:0 0 16px}.content-block-hint .content-block-hint__text p:last-child{margin-bottom:0}.content-block-hint .content-block-hint__text strong{font-weight:700}.content-block-hint .content-block-hint__text a{display:inline;text-decoration:underline;text-underline-offset:3px}
8`],encapsulation:2})}}return t})();function wc(t,c){if(t&1&&(a(0,"h2",1),v(1),r()),t&2){let e=s();o(),_(e.payload().header)}}function Pc(t,c){if(t&1){let e=S();a(0,"a",5),b("click",function(){let n=w(e).$implicit,u=s(2);return P(u.scrollTo(n.targetBlockSid))}),v(1),r()}if(t&2){let e=c.$implicit;o(),_(e.title)}}function Sc(t,c){if(t&1&&(a(0,"nav",3),D(1,Pc,2,1,"a",4,pe),r()),t&2){let e=s();o(),T(e.buttons())}}var hn=(()=>{class t{constructor(){this.payload=g(),this.buttons=z(()=>{let e=this.payload();return e&&e.buttons?e.buttons:[]}),this.document=ue(pt)}scrollTo(e){let i=this.document.getElementById(e);i&&i.scrollIntoView({behavior:"smooth",block:"start"})}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=y({type:t,selectors:[["app-content-block-seo-intro"]],inputs:{payload:[1,"payload"]},standalone:!1,decls:5,vars:5,consts:[[1,"content-block-seo-intro"],[1,"content-block-seo-intro__header"],[1,"content-block-seo-intro__lead",3,"innerHTML"],[1,"content-block-seo-intro__nav"],[1,"content-block-seo-intro__pill"],[1,"content-block-seo-intro__pill",3,"click"]],template:function(i,n){i&1&&(a(0,"section",0),p(1,wc,2,1,"h2",1),d(2,"div",2),f(3,"trustHtml"),p(4,Sc,3,0,"nav",3),r()),i&2&&(o(),m(n.payload().header?1:-1),o(),l("innerHTML",C(3,3,n.payload().contents),R),o(2),m(n.buttons().length>0?4:-1))},dependencies:[W],styles:[`.content-block-seo-intro{padding:28px;border:1px solid var(--color-border);border-radius:18px;background:radial-gradient(circle at 100% 0,rgba(18,105,255,.1),transparent 36%),var(--color-white);color:var(--color-black);line-height:1.65}.content-block-seo-intro .content-block-seo-intro__header{margin:0 0 20px;font-size:clamp(26px,3vw,36px);line-height:1.25;letter-spacing:-.02em;color:var(--color-black)}.content-block-seo-intro .content-block-seo-intro__lead{max-width:1020px;font-size:18px}.content-block-seo-intro .content-block-seo-intro__lead p{margin:0 0 16px}.content-block-seo-intro .content-block-seo-intro__lead p:last-child{margin-bottom:0}.content-block-seo-intro .content-block-seo-intro__nav{display:flex;flex-wrap:wrap;gap:10px;margin-top:22px}.content-block-seo-intro .content-block-seo-intro__pill{padding:9px 13px;border:1px solid var(--color-border);border-radius:999px;background:var(--color-white);font-size:14px;line-height:1.4;color:var(--color-black);text-decoration:none;cursor:pointer}.content-block-seo-intro .content-block-seo-intro__pill:hover{border-color:var(--color-primary);color:var(--color-primary)}@media screen and (max-width:600px){.content-block-seo-intro{padding:21px}.content-block-seo-intro .content-block-seo-intro__lead{font-size:16px}}
9`],encapsulation:2})}}return t})();function Mc(t,c){if(t&1&&(a(0,"h2",1),v(1),r()),t&2){let e=s();o(),_(e.payload().header)}}var fn=(()=>{class t{constructor(){this.payload=g()}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=y({type:t,selectors:[["app-content-block-seo-cta"]],inputs:{payload:[1,"payload"]},standalone:!1,decls:4,vars:4,consts:[[1,"content-block-seo-cta"],[1,"content-block-seo-cta__header"],[1,"content-block-seo-cta__contents",3,"innerHTML"]],template:function(i,n){i&1&&(a(0,"section",0),p(1,Mc,2,1,"h2",1),d(2,"div",2),f(3,"trustHtml"),r()),i&2&&(o(),m(n.payload().header?1:-1),o(),l("innerHTML",C(3,2,n.payload().contents),R))},dependencies:[W],styles:[`.content-block-seo-cta{margin-top:48px;padding:30px;border-radius:18px;background:var(--color-note-text);color:var(--color-white);font-size:16px;line-height:1.65}.content-block-seo-cta .content-block-seo-cta__header{margin:0 0 20px;font-size:clamp(26px,3vw,36px);line-height:1.25;letter-spacing:-.02em;color:var(--color-white)}.content-block-seo-cta .content-block-seo-cta__contents p{margin:0 0 16px}.content-block-seo-cta .content-block-seo-cta__contents p:last-child{margin-bottom:0}.content-block-seo-cta .content-block-seo-cta__contents a{display:inline;color:var(--color-white);text-decoration:underline;text-underline-offset:3px}@media screen and (max-width:767px){.content-block-seo-cta{padding:21px}}
10`],encapsulation:2})}}return t})();function Dc(t,c){if(t&1&&(a(0,"article",1)(1,"h3",2),v(2),r(),d(3,"div",3),f(4,"trustHtml"),r()),t&2){let e=c.$implicit;o(2),_(e.header),o(),l("innerHTML",C(4,2,e.contents),R)}}function Tc(t,c){if(t&1&&(a(0,"div",0),D(1,Dc,5,4,"article",1,pe),r()),t&2){let e=s();o(),T(e.payload().items)}}var Cn=(()=>{class t{constructor(){this.payload=g()}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=y({type:t,selectors:[["app-content-block-seo-cards"]],inputs:{payload:[1,"payload"]},standalone:!1,decls:1,vars:1,consts:[[1,"content-block-seo-cards"],[1,"content-block-seo-cards__card"],[1,"content-block-seo-cards__header"],[1,"content-block-seo-cards__contents",3,"innerHTML"]],template:function(i,n){i&1&&p(0,Tc,3,0,"div",0),i&2&&m(n.payload().items.length>0?0:-1)},dependencies:[W],styles:[`.content-block-seo-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:22px 0}.content-block-seo-cards .content-block-seo-cards__card{padding:22px;border:1px solid #e3e8ef;border-radius:16px;background:var(--color-white)}.content-block-seo-cards .content-block-seo-cards__header{margin:0 0 16px;font-size:20px;line-height:1.25;font-weight:700;color:var(--color-note-text)}.content-block-seo-cards .content-block-seo-cards__contents{font-size:16px;line-height:1.65;color:var(--color-note-text)}.content-block-seo-cards .content-block-seo-cards__contents p{margin:0 0 16px}.content-block-seo-cards .content-block-seo-cards__contents p:last-child{margin-bottom:0}.content-block-seo-cards .content-block-seo-cards__contents a{display:inline;color:var(--color-note-accent);text-decoration:underline;text-underline-offset:3px}@media screen and (max-width:1023px){.content-block-seo-cards{grid-template-columns:repeat(2,minmax(0,1fr))}}@media screen and (max-width:767px){.content-block-seo-cards{grid-template-columns:minmax(0,1fr)}}
11`],encapsulation:2})}}return t})();function Ec(t,c){if(t&1&&(a(0,"details",1)(1,"summary",2),v(2),r(),d(3,"div",3),f(4,"trustHtml"),r()),t&2){let e=c.$implicit;o(2),_(e.question),o(),l("innerHTML",C(4,2,e.answer),R)}}function Ac(t,c){if(t&1&&(a(0,"section",0),D(1,Ec,5,4,"details",1,pe),r()),t&2){let e=s();o(),T(e.items())}}var gn=(()=>{class t{constructor(){this.payload=g(),this.items=z(()=>{let e=this.payload();return e&&e.items?e.items:[]})}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=y({type:t,selectors:[["app-content-block-seo-faq"]],inputs:{payload:[1,"payload"]},standalone:!1,decls:1,vars:1,consts:[[1,"content-block-seo-faq"],[1,"content-block-seo-faq__item"],[1,"content-block-seo-faq__question"],[1,"content-block-seo-faq__answer",3,"innerHTML"]],template:function(i,n){i&1&&p(0,Ac,3,0,"section",0),i&2&&m(n.items().length>0?0:-1)},dependencies:[W],styles:[`@charset "UTF-8";.content-block-seo-faq{display:grid;gap:10px}.content-block-seo-faq .content-block-seo-faq__item{border:1px solid var(--color-border);border-radius:14px;background:var(--color-white);color:var(--color-black)}.content-block-seo-faq .content-block-seo-faq__question{position:relative;padding:17px 50px 17px 18px;list-style:none;font-size:17px;font-weight:700;line-height:1.4;cursor:pointer}.content-block-seo-faq .content-block-seo-faq__question::-webkit-details-marker{display:none}.content-block-seo-faq .content-block-seo-faq__question:after{content:"+";position:absolute;top:12px;right:18px;font-size:26px;font-weight:400;line-height:1;color:var(--color-primary)}.content-block-seo-faq .content-block-seo-faq__item[open] .content-block-seo-faq__question:after{content:"\\2212"}.content-block-seo-faq .content-block-seo-faq__answer{padding:0 18px 17px;font-size:16px;line-height:1.65}.content-block-seo-faq .content-block-seo-faq__answer p{margin:0 0 16px}.content-block-seo-faq .content-block-seo-faq__answer p:last-child{margin-bottom:0}@media screen and (max-width:600px){.content-block-seo-faq .content-block-seo-faq__question{padding:15px 44px 15px 15px;font-size:16px}.content-block-seo-faq .content-block-seo-faq__answer{padding:0 15px 15px;font-size:15px}}
12`],encapsulation:2})}}return t})();function Vc(t,c){if(t&1&&(a(0,"th"),d(1,"span",3),f(2,"trustHtml"),r()),t&2){let e=c.$implicit;o(),l("innerHTML",C(2,1,e),R)}}function Lc(t,c){if(t&1&&(a(0,"thead")(1,"tr"),D(2,Vc,3,3,"th",null,pe),r()()),t&2){let e=s();o(2),T(e.payload().header)}}function Rc(t,c){if(t&1&&(a(0,"td"),d(1,"span",3),f(2,"trustHtml"),r()),t&2){let e=c.$implicit;o(),l("innerHTML",C(2,1,e),R)}}function Fc(t,c){if(t&1&&(a(0,"tr"),D(1,Rc,3,3,"td",null,pe),r()),t&2){let e=c.$implicit;o(),T(e)}}function Nc(t,c){if(t&1&&(a(0,"p",2),v(1),r()),t&2){let e=s();o(),_(e.payload().footer)}}var vn=(()=>{class t{constructor(){this.payload=g(),this.hasHeader=z(()=>{let e=this.payload()?.header;return Array.isArray(e)&&e.some(i=>(i??"").toString().length>0)})}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=y({type:t,selectors:[["app-content-block-simple-table"]],inputs:{payload:[1,"payload"]},standalone:!1,decls:7,vars:2,consts:[[1,"seo-table-wrap"],[1,"seo-table"],[1,"seo-table-footnote"],[3,"innerHTML"]],template:function(i,n){i&1&&(a(0,"div",0)(1,"table",1),p(2,Lc,4,0,"thead"),a(3,"tbody"),D(4,Fc,3,0,"tr",null,pe),r()()(),p(6,Nc,2,1,"p",2)),i&2&&(o(2),m(n.hasHeader()?2:-1),o(2),T(n.payload().data),o(2),m(n.payload().footer?6:-1))},dependencies:[W],encapsulation:2})}}return t})();var _n=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=y({type:t,selectors:[["app-content-block-order-constructor"]],inputs:{payload:"payload"},standalone:!1,decls:0,vars:0,template:function(i,n){}
12,encapsulation:2})}}return t})();var yn=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=y({type:t,selectors:[["app-content-block-cost-table"]],inputs:{payload:"payload"},standalone:!1,decls:0,vars:0,template:function(i,n){},encapsulation:2})}}return t})();function qc(t,c){if(t&1&&(a(0,"div",3),d(1,"div",4),f(2,"trustHtml"),r()),t&2){let e=s().$implicit;o(),l("innerHTML",C(2,1,e.shortDescription),R)}}function Gc(t,c){if(t&1&&(a(0,"div",1)(1,"div",2)(2,"span"),v(3),r()(),p(4,qc,3,3,"div",3),r()),t&2){let e=c.$implicit;o(3),_(e.title),o(),m(e.shortDescription?4:-1)}}var xn=(()=>{class t{constructor(){this.bundle=g()}t(e){return`delivery.components.delivery.${e}`}trackByDeliveryId(e,i){return i.id}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=y({type:t,selectors:[["app-content-block-list-delivery-options"]],inputs:{bundle:[1,"bundle"]},standalone:!1,decls:3,vars:0,consts:[[1,"c"],[1,"c-delivery"],[1,"c-delivery-title","is-accent"],[1,"c-delivery-description"],[3,"innerHTML"]],template:function(i,n){i&1&&(a(0,"div",0),D(1,Gc,5,2,"div",1,n.trackByDeliveryId,!0),r()),i&2&&(o(),T(n.bundle()?.deliveries))},dependencies:[W],encapsulation:2})}}return t})();function zc(t,c){if(t&1&&(a(0,"tr")(1,"td",3)(2,"div",4),d(3,"app-shared-attachment-image",5),r()(),a(4,"td",6),d(5,"div",7),f(6,"trustHtml"),r()()),t&2){let e=c.$implicit;o(3),l("attachment",e.image)("maxImageWidth",520),o(2),l("innerHTML",C(6,3,e.description),R)}}function Wc(t,c){if(t&1&&(a(0,"div",2)(1,"span"),v(2),r()()),t&2){let e=s();o(2),_(e.payload().footer)}}var bn=(()=>{class t{constructor(){this.payload=g()}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=y({type:t,selectors:[["app-content-block-simple-image-table"]],inputs:{payload:[1,"payload"]},standalone:!1,decls:7,vars:1,consts:[[1,"c"],[1,"c-items"],[1,"c-footer"],[1,"image"],[1,"preview-container"],[3,"attachment","maxImageWidth"],[1,"title"],[3,"innerHTML"]],template:function(i,n){i&1&&(a(0,"div",0)(1,"div",1)(2,"table")(3,"tbody"),D(4,zc,7,5,"tr",null,G),r()(),p(6,Wc,3,1,"div",2),r()()),i&2&&(o(4),T(n.payload().items),o(2),m(n.payload().footer?6:-1))},dependencies:[ce,W],encapsulation:2})}}return t})();function Xc(t,c){if(t&1&&(a(0,"h2",2),v(1),r()),t&2){let e=s().$implicit;o(),_(e.title)}}function Zc(t,c){if(t&1&&d(0,"app-content-block-html",12),t&2){let e=s().$implicit,i=s(3);ft("block-html_"+e.sid),l("useCutoff",i.useHtmlCutoff())("payload",e.pair.payload)("isArticle",i.isArticle())}}function Yc(t,c){if(t&1&&d(0,"app-content-block-raw-html",4),t&2){let e=s().$implicit;l("payload",e.pair.payload)}}function Kc(t,c){if(t&1&&d(0,"app-content-block-simple-table",4),t&2){let e=s().$implicit;l("payload",e.pair.payload)}}function Jc(t,c){if(t&1&&d(0,"app-content-block-youtube",4),t&2){let e=s().$implicit;l("payload",e.pair.payload)}}function el(t,c){if(t&1&&d(0,"app-content-block-vk",4),t&2){let e=s().$implicit;l("payload",e.pair.payload)}}function tl(t,c){if(t&1&&d(0,"app-content-block-photos",4),t&2){let e=s().$implicit;l("payload",e.pair.payload)}}function il(t,c){if(t&1&&d(0,"app-content-block-photo-gallery",4),t&2){let e=s().$implicit;l("payload",e.pair.payload)}}function nl(t,c){if(t&1&&d(0,"app-content-block-files",4),t&2){let e=s().$implicit;l("payload",e.pair.payload)}}function ol(t,c){if(t&1&&d(0,"app-content-block-about-company-certificates",5),t&2){let e=s().$implicit;l("payload",e.pair.payload)}}function al(t,c){if(t&1&&d(0,"app-content-block-about-company-categories",6),t&2){let e=s().$implicit;l("payload",e.pair.payload)}}function rl(t,c){if(t&1&&d(0,"app-content-block-about-company-advantages",7),t&2){let e=s().$implicit;l("payload",e.pair.payload)}}function sl(t,c){if(t&1&&d(0,"app-content-block-about-company-activities",8),t&2){let e=s().$implicit;l("payload",e.pair.payload)}}function cl(t,c){t&1&&d(0,"app-shared-phone-call-request")}function ll(t,c){if(t&1&&d(0,"app-content-block-manufacturers",4),t&2){let e=s().$implicit;l("payload",e.pair.payload)}}function dl(t,c){if(t&1&&d(0,"app-content-block-features",4),t&2){let e=s().$implicit;l("payload",e.pair.payload)}}function pl(t,c){if(t&1&&d(0,"app-content-block-order-constructor",4),t&2){let e=s().$implicit;l("payload",e.pair.payload)}}function ml(t,c){if(t&1&&d(0,"app-content-block-cost-table",4),t&2){let e=s().$implicit;l("payload",e.pair.payload)}}function ul(t,c){if(t&1&&d(0,"app-content-block-hint",4),t&2){let e=s().$implicit;l("payload",e.pair.payload)}}function hl(t,c){if(t&1&&d(0,"app-content-block-seo-intro",4),t&2){let e=s().$implicit;l("payload",e.pair.payload)}}function fl(t,c){if(t&1&&d(0,"app-content-block-seo-cta",4),t&2){let e=s().$implicit;l("payload",e.pair.payload)}}function Cl(t,c){if(t&1&&d(0,"app-content-block-seo-cards",4),t&2){let e=s().$implicit;l("payload",e.pair.payload)}}function gl(t,c){if(t&1&&d(0,"app-content-block-seo-faq",4),t&2){let e=s().$implicit;l("payload",e.pair.payload)}}function vl(t,c){if(t&1&&d(0,"app-content-block-products",9),t&2){let e=s().$implicit,i=s(3);l("payload",e.pair.payload)("bundle",i.bundleFor(e))}}function _l(t,c){if(t&1&&d(0,"app-content-block-list-delivery-options",10),t&2){let e=s().$implicit,i=s(3);l("bundle",i.bundleFor(e))}}function yl(t,c){if(t&1&&d(0,"app-content-block-simple-image-table",4),t&2){let e=s().$implicit;l("payload",e.pair.payload)}}function xl(t,c){if(t&1&&d(0,"app-content-block-list",11),t&2){let e=s().$implicit,i=s(3);l("payload",e.pair.payload)("isArticle",i.isArticle())}}function bl(t,c){if(t&1&&(a(0,"div",1),p(1,Xc,2,1,"h2",2),p(2,Zc,1,5,"app-content-block-html",3),p(3,Yc,1,1,"app-content-block-raw-html",4),p(4,Kc,1,1,"app-content-block-simple-table",4),p(5,Jc,1,1,"app-content-block-youtube",4),p(6,el,1,1,"app-content-block-vk",4),p(7,tl,1,1,"app-content-block-photos",4),p(8,il,1,1,"app-content-block-photo-gallery",4),p(9,nl,1,1,"app-content-block-files",4),p(10,ol,1,1,"app-content-block-about-company-certificates",5),p(11,al,1,1,"app-content-block-about-company-categories",6),p(12,rl,1,1,"app-content-block-about-company-advantages",7),p(13,sl,1,1,"app-content-block-about-company-activities",8),p(14,cl,1,0,"app-shared-phone-call-request"),p(15,ll,1,1,"app-content-block-manufacturers",4),p(16,dl,1,1,"app-content-block-features",4),p(17,pl,1,1,"app-content-block-order-constructor",4),p(18,ml,1,1,"app-content-block-cost-table",4),p(19,ul,1,1,"app-content-block-hint",4),p(20,hl,1,1,"app-content-block-seo-intro",4),p(21,fl,1,1,"app-content-block-seo-cta",4),p(22,Cl,1,1,"app-content-block-seo-cards",4),p(23,gl,1,1,"app-content-block-seo-faq",4),p(24,vl,1,2,"app-content-block-products",9),p(25,_l,1,1,"app-content-block-list-delivery-options",10),p(26,yl,1,1,"app-content-block-simple-image-table",4),p(27,xl,1,2,"app-content-block-list",11),r()),t&2){let e=c.$implicit;l("id",e.sid),o(),m(e.title?1:-1),o(),m(e.pair.type==="HTML"?2:-1),o(),m(e.pair.type==="RawHTML"?3:-1),o(),m(e.pair.type==="SimpleTable"?4:-1),o(),m(e.pair.type==="YouTube"?5:-1),o(),m(e.pair.type==="VK"?6:-1),o(),m(e.pair.type==="Photos"?7:-1),o(),m(e.pair.type==="PhotoGallery"?8:-1),o(),m(e.pair.type==="Files"?9:-1),o(),m(e.pair.type==="AboutCompanyCertificates"?10:-1),o(),m(e.pair.type==="AboutCompanyCategories"?11:-1),o(),m(e.pair.type==="AboutCompanyAdvantages"?12:-1),o(),m(e.pair.type==="AboutCompanyActivities"?13:-1),o(),m(e.pair.type==="PhoneCallRequestForm"?14:-1),o(),m(e.pair.type==="Manufacturers"?15:-1),o(),m(e.pair.type==="Features"?16:-1),o(),m(e.pair.type==="OrderConstructor"?17:-1),o(),m(e.pair.type==="CostTable"?18:-1),o(),m(e.pair.type==="Hint"?19:-1),o(),m(e.pair.type==="SeoIntro"?20:-1),o(),m(e.pair.type==="SeoCta"?21:-1),o(),m(e.pair.type==="SeoCards"?22:-1),o(),m(e.pair.type==="SeoFaq"?23:-1),o(),m(e.pair.type==="Products"?24:-1),o(),m(e.pair.type==="ListDeliveryOptions"?25:-1),o(),m(e.pair.type==="SimpleImageTable"?26:-1),o(),m(e.pair.type==="List"?27:-1)}}function wl(t,c){if(t&1&&D(0,bl,28,28,"div",1,je().trackByBlockSID,!0),t&2){let e=s(2);T(e.dto().blocks)}}function Pl(t,c){if(t&1&&(a(0,"div",0),p(1,wl,2,0),r()),t&2){let e=s();o(),m(e.isMarketplacePage?-1:1)}}function Sl(t,c){if(t&1&&(a(0,"div",15)(1,"div",16),v(2),r(),d(3,"a
12pp-content-block-list",4),r()),t&2){let e=c.$implicit;o(),l("id",e.sid),o(),_(e.title),o(),l("payload",e.pair.payload)}}function kl(t,c){if(t&1&&(a(0,"div",13),v(1,"\u0410\u043A\u043A\u0440\u0435\u0434\u0438\u0442\u043E\u0432\u0430\u043D\u044B \u043D\u0430 \u043F\u043B\u043E\u0449\u0430\u0434\u043A\u0430\u0445"),r(),a(2,"div",14),D(3,Sl,4,3,"div",15,je().trackByBlockSID,!0),r()),t&2){let e=s();o(3),T(e.dto().blocks)}}var wn=(()=>{class t{get isMarketplacePage(){let e="/about/marketplaces";return!e.startsWith("/")&&!(e.startsWith("http://")||e.startsWith("https://"))&&(e="/"+e),vt(et(this.location.path()))===vt(et(e))}constructor(e){this.location=e,this.dto=g(),this.useHtmlCutoff=g(),this.isArticle=g(!1),this.bundle=g({bundles:[]})}trackByBlockSID(e,i){return i.sid}bundleFor(e){let i=this.bundle().bundles.find(n=>n.sid===e.sid);return i?i.payload:void 0}static{this.\u0275fac=function(i){return new(i||t)(h(ri))}}static{this.\u0275cmp=y({type:t,selectors:[["app-shared-content"]],inputs:{dto:[1,"dto"],useHtmlCutoff:[1,"useHtmlCutoff"],isArticle:[1,"isArticle"],bundle:[1,"bundle"]},standalone:!1,decls:2,vars:2,consts:[[1,"c"],[1,"c-block",3,"id"],[1,"c-block-header","__app-fluid-container-control-margin-bottom"],[3,"class","useCutoff","payload","isArticle"],[3,"payload"],[1,"about-company-block","certificates",3,"payload"],[1,"about-company-block","categories",3,"payload"],[1,"about-company-block","advantages",3,"payload"],[1,"about-company-block","activities",3,"payload"],[3,"payload","bundle"],[3,"bundle"],[3,"payload","isArticle"],[3,"useCutoff","payload","isArticle"],[1,"c-marketplaces-header","__app-fluid-container-control-margin-bottom"],[1,"c-marketplaces","__app-fluid-container-padding-bottom"],[1,"column"],[1,"header","__app-fluid-container-control-margin-bottom",3,"id"]],template:function(i,n){i&1&&(p(0,Pl,2,1,"div",0),p(1,kl,5,0)),i&2&&(m(n.dto()&&n.dto().blocks.length>0?0:-1),o(),m(n.isMarketplacePage?1:-1))},dependencies:[po,Yi,Ki,Ji,en,tn,nn,on,an,rn,sn,cn,ln,dn,pn,mn,un,hn,fn,Cn,gn,vn,_n,yn,xn,bn],styles:[`.c-block{scroll-margin-top:90px}
13`],encapsulation:2})}}return t})();function Bl(t,c){if(t&1){let e=S();a(0,"div",1)(1,"div",2)(2,"span"),v(3),r()(),a(4,"div",3),d(5,"app-shared-content",4),r(),a(6,"div",5)(7,"a",6),b("click",function(){w(e);let n=s();return P(n.close())}),a(8,"span"),v(9),f(10,"translate"),r()()()()}if(t&2){let e=s();o(),l("title",e.paramReference().title),o(2),_(e.paramReference().title),o(2),l("dto",e.paramReference().descriptionForTooltip),o(2),l("routerLink",e.routerLink()),o(2),_(C(10,5,e.t("dictionary")))}}var Pn=(()=>{class t{constructor(){this.paramReference=g(),this.contentBundle=g(),this.closeEvent=new oe,this.routerLink=z(()=>[Gn(this.paramReference().webUrl)])}t(e){return`catalog.components.catalog_param_reference.${e}`}close(){this.closeEvent.emit()}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=y({type:t,selectors:[["app-product-param-reference"]],inputs:{paramReference:[1,"paramReference"],contentBundle:[1,"contentBundle"]},outputs:{closeEvent:"close"},standalone:!1,decls:2,vars:1,consts:[[3,"close"],[1,"c"],[1,"c-title",3,"title"],[1,"c-contents"],[3,"dto"],[1,"c-link"],[3,"click","routerLink"]],template:function(i,n){i&1&&(a(0,"app-shared-dialog-close",0),b("close",function(){return n.close()}),r(),p(1,Bl,11,7,"div",1)),i&2&&(o(),m(n.paramReference()?1:-1))},dependencies:[xe,St,wn,K],styles:["[_nghost-%COMP%]     * p{text-align:unset!important;width:90%}@media only screen and (min-width:768px){[_nghost-%COMP%]     * p{text-align:justify!important;width:100%}}.c[_ngcontent-%COMP%]{padding:20px;background-color:var(--color-white);width:400px;max-width:90vw}.c[_ngcontent-%COMP%]   .c-title[_ngcontent-%COMP%]{margin-bottom:20px}.c[_ngcontent-%COMP%]   .c-title[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-style:normal;font-weight:700;font-size:24px;line-height:28px;color:var(--color-primary-dark)}.c[_ngcontent-%COMP%]   .c-contents[_ngcontent-%COMP%]{position:relative;margin-bottom:40px}.c[_ngcontent-%COMP%]   .c-link[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{display:block}.c[_ngcontent-%COMP%]   .c-link[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:hover   span[_ngcontent-%COMP%]{color:var(--color-primary-dark)}.c[_ngcontent-%COMP%]   .c-link[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-style:normal;font-weight:500;font-size:14px;line-height:16px;color:var(--color-primary)}"]})}}return t})();var Tl=(()=>{class t{constructor(e,i){this.modalRequest=e,this.matDialogRef=i}close(){this.matDialogRef.close()}static{this.\u0275fac=function(i){return new(i||t)(h(Pt),h(wt))}}static{this.\u0275cmp=y({type:t,selectors:[["ng-component"]],standalone:!1,decls:1,vars:2,consts:[[3,"close","paramReference","contentBundle"]],template:function(i,n){i&1&&(a(0,"app-product-param-reference",0),b("
13close",function(){return n.close()}),r()),i&2&&l("paramReference",n.modalRequest.paramsReference)("contentBundle",n.modalRequest.contentBundle)},dependencies:[Pn],encapsulation:2})}}return t})();var Il=["productsRef"];function El(t,c){if(t&1){let e=S();a(0,"div",6)(1,"app-shared-product-card-g",7),f(2,"async"),f(3,"async"),f(4,"async"),b("redirected",function(){w(e);let n=s(2);return P(n.productClicked())}),r()()}if(t&2){let e=c.$implicit,i=s(2);o(),l("withParametersBadges",!0)("withParams",!0)("variant",C(2,9,i.productCardVariant$))("product",e)("withBadges",!0)("withBasket",!0)("withReviews",!0)("withRating",C(3,11,i.withRating$))("withIsAvailableOnDepot",C(4,13,i.withAvailableOnDepot$))}}function Al(t,c){if(t&1){let e=S();a(0,"div",8),b("click",function(){w(e);let n=s(2);return P(n.slidePrev())}),a(1,"button",9)(2,"span"),M(),a(3,"svg",10),d(4,"use"),f(5,"sprite"),r()()()(),L(),a(6,"div",11),b("click",function(){w(e);let n=s(2);return P(n.slideNext())}),a(7,"button",9)(8,"span"),M(),a(9,"svg",12),d(10,"use"),f(11,"sprite"),r()()()()}t&2&&(o(4),I("href",C(5,2,"arrow-left")),o(6),I("href",C(11,4,"arrow-right")))}function Ol(t,c){if(t&1&&(a(0,"div",2)(1,"div",3)(2,"span"),v(3),f(4,"translate"),r()(),a(5,"div",4)(6,"div",5,0),D(8,El,5,15,"div",6,je().trackByProductId,!0),r(),p(10,Al,12,6),r()()),t&2){let e=s();o(3),_(C(4,2,e.t("title"))),o(5),T(e.modalRequest.productAnalogs),o(2),m(e.modalRequest.showButtons?10:-1)}}var Di=(()=>{class t{constructor(e,i,n,u,x,B,V,we,Pe){this.vbr=e,this.modalRequest=i,this.fb=n,this.cdr=u,this.env=x,this.matDialogRef=B,this.errorHandler=V,this.router=we,this.appBootstrap=Pe,this.ngOnDestroy$=new H,this.state={layout:ve.Layout.Desktop}}slidePrev(){let e=this.productsRef.nativeElement;e.scrollBy({left:-e.clientWidth,behavior:"smooth"})}slideNext(){let e=this.productsRef.nativeElement;e.scrollBy({left:e.clientWidth,behavior:"smooth"})}productClicked(){this.close()}get withRating$(){return Jt(!0)}get withAvailableOnDepot$(){return this.vbr.currentLayout$.pipe(F(e=>e===ve.Layout.Mobile),ke())}get productCardVariant$(){return this.vbr.currentLayout$.pipe(F(e=>[ve.Layout.Mobile].includes(e)),F(e=>e?"tiny":"default"),ke())}ngOnDestroy(){this.ngOnDestroy$.next()}t(e){return`shared.components.product_analogs_modal.${e}`}close(){this.matDialogRef.close()}trackByProductId(e,i){return i.id}static{this.\u0275fac=function(i){return new(i||t)(h(He),h(Pt),h(bt),h(se),h(re),h(wt),h(Ue),h(Je),h(Me))}}static{this.\u0275cmp=y({type:t,selectors:[["ng-component"]],viewQuery:function(i,n){if(i&1&&Qe(Il,5),i&2){let u;Xe(u=Ze())&&(n.productsRef=u.first)}},standalone:!1,decls:2,vars:1,consts:[["productsRef",""],[3,"click"],[1,"c"],[1,"c-title"],[1,"c-block"],[1,"c-products"],[1,"c-product"],[3,"redirected","withParametersBadges","withParams","variant","product","withBadges","withBasket","withReviews","withRating","withIsAvailableOnDepot"],[1,"arrow","arrow--left",3,"click"],[1,"color-blue-gray-light"],[1,"sprite_arrow-left"],[1,"arrow","arrow--right",3,"click"],[1,"sprite_arrow-right"]],template:function(i,n){i&1&&(a(0,"app-shared-dialog-close",1),b("click",function(){return n.close()}),r(),p(1,Ol,11,4,"div",2)),i&2&&(o(),m(n.modalRequest.productAnalogs&&n.modalRequest.productAnalogs.length!==0?1:-1))},dependencies:[St,We,ye,K,Z],styles:[".c[_ngcontent-%COMP%]   .c-title[_ngcontent-%COMP%]{margin-bottom:27px;margin-top:27px;margin-left:15px}@media only screen and (min-width:768px){.c[_ngcontent-%COMP%]   .c-title[_ngcontent-%COMP%]{margin-left:70px}}.c[_ngcontent-%COMP%]   .c-title[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-family:Roboto,sans-serif;font-size:30px;line-height:35px;color:var(--color-graphite8)}.c[_ngcontent-%COMP%]   .c-block[_ngcontent-%COMP%]{margin-bottom:1rem}.c[_ngcontent-%COMP%]   .c-block[_ngcontent-%COMP%]   .c-products[_ngcontent-%COMP%]{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;scroll-behavior:smooth;scrollbar-width:none}.c[_ngcontent-%COMP%]   .c-block[_ngcontent-%COMP%]   .c-products[_ngcontent-%COMP%]::-webkit-scrollbar{display:none}.c[_ngcontent-%COMP%]   .c-block[_ngcontent-%COMP%]   .c-products[_ngcontent-%COMP%]{margin-right:15px;margin-left:15px}@media only screen and (min-width:768px){.c[_ngcontent-%COMP%]   .c-block[_ngcontent-%COMP%]   .c-products[_ngcontent-%COMP%]{margin-right:70px;margin-left:70px}}.c[_ngcontent-%COMP%]   .c-block[_ngcontent-%COMP%]   .c-products[_ngcontent-%COMP%]   .c-product[_ngcontent-%COMP%]{flex:0 0 100%;scroll-snap-align:start;padding-right:32px;box-sizing:border-box}@media only screen and (min-width:768px){.c[_ngcontent-%COMP%]   .c-block[_ngcontent-%COMP%]   .c-products[_ngcontent-%COMP%]   .c-product[_ngcontent-%COMP%]{flex:0 0 50%}}@media only screen and (min-width:1280px){.c[_ngcontent-%COMP%]   .c-block[_ngcontent-%COMP%]   .c-products[_ngcontent-%COMP%]   .c-product[_ngcontent-%COMP%]{flex:0 0 25%}}.arrow[_ngcontent-%COMP%]{position:absolute;top:50%;transform:translateY(-50%);-webkit-transform:translateY(-50%);cursor:pointer;display:flex;flex-direction:column;align-items:flex-start;padding:13px 12px;gap:10px;width:40px;height:40px;background:var(--color-white);box-shadow:0 4px 16px #25323814;border-radius:100px}.arrow[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{box-sizing:border-box;width:16px;height:0px}.arrow--left[_ngcontent-%COMP%]{left:15px}.arrow--right[_ngcontent-%COMP%]{left:auto;right:15px}  .__app-analogs-modal-panel .mat-mdc-dialog-container,   .__app-analogs-modal-panel .mat-mdc-dialog-surface{padding:0!important;border-radius:0!important;overflow-y:auto!important}"]})}}return t})();function Vl(t,c){if(t&1){let e=S();a(0,"div",5)(1,"div",6)(2,"button",7),b("click",function(){w(e);let n=s(2);return P(n.setBasketAmount(-1))}),a(3,"span"),M(),a(4,"svg",8),d(5,"path",9),r()()(),L(),a(6,"div",10),v(7),r(),a(8,"button",7),b("click",function(){w(e);let n=s(2);return P(n.setBasketAmount(1))}),a(9,"span"),M(),a(10,"svg",8),d(11,"path",11)(12,"path",12),r()()()(),L(),a(13,"div",13)(14,"span"),v(15),f(16,"money"),r()()()}if(t&2){let e=s(2);te("is-skeleton",!e.isReady()),o(7),X(" ",e.amount()," "),o(8),X("",C(16,4,e.basketEntryCost())," \u20BD")}}function Ll(t,c){if(t&1){let e=S();p(0,Vl,17,6,"div",2),a(1,"button",3),b("click",function(){w(e);let n=s();return P(n.buy())}),M(),a(2,"svg",4),d(3,"use"),f(4,"sprite"),r(),L(),a(5,"span"),v(6),f(7,"async"),r()()}if(t&2){let e=s();m(e.checkPriceStep()?0:-1),o(),te("has-in-basket",e.helper.product.inBasket>0),l("ngClass",e.buttonNgClass),I("data-product-id",e.helper.product.id)("data-basket-labels",e.basketLabels),o(2),I("href",C(4,8,"icon-cart")),o(3),_(C(7,10,e.title$))}}function Rl(t,c){if(t&1){let e=S();a(0,"button",14),b("click",function(){w(e);let n=s();return P(n.productRequest())}),a(1,"span"),v(2),f(3,"translate"),r()()}if(t&2){let e=s();l("ngClass",e.buttonNgClass),o(2),_(C(3,2,e.t("orderWithProductRequest")))}}function Fl(t,c){if(t&1){let e=S();
13a(0,"button",15),b("click",function(){w(e);let n=s();return P(n.openAnalogsDialog())}),a(1,"span"),v(2),f(3,"translate"),r()()}if(t&2){let e=s();l("ngClass",e.buttonNgClass),o(2),_(C(3,2,e.t("analogs")))}}var Nl=(()=>{class t{constructor(e,i,n,u,x,B){this.env=e,this.vbs=i,this.endpoint=n,this.i18n=u,this.helper=x,this.matDialog=B,this.fontSize="default",this.buttonWidth="100",this.productId=0,this.currentId=0,this.emitOnProductAddedToCard=new oe,this.resolvedData=g(),this.isReady=$(!1),this.amount=$(void 0),this.checkPriceStep=z(()=>{let V=this.resolvedData()?.product;return!!(V?.priceStep&&V?.type===2)}),Bn(()=>this.isReady.set(!0))}ngOnChanges(e){if(e.productId){let i=this.resolvedData()?.product;i?.priceStep&&i?.type===2?this.amount.set(parseFloat(i.priceStep)):this.amount.set(void 0)}}basketEntryCost(){return(parseFloat(this.helper.product.price)*this.amount()).toFixed(2)}t(e){return`product_shared.assets.product_card_buy_button.${e}`}get basketLabels(){return[this.i18n.instant(this.t("inBasketSingle")),this.i18n.instant(this.t("inBasketMulti"),{count:"%n%"})].join("|")}async buy(){if(this.helper.product.priceStep&&this.helper.product.type===2){let e=parseFloat(this.helper.product.priceStep);await Vt(this.helper.basket.setBasketAmount(e))}else this.helper.basket.addToBasket();this.emitOnProductAddedToCard.emit()}async setBasketAmount(e){let i=parseFloat(this.helper.product.priceStep),n=this.amount()+e*i;e===-1&&(n<=0||n<i)&&(n=i),this.amount.set(n)}openAnalogsDialog(){this.endpoint.searchProducts({filters:{ids:this.helper.product.productAnalogs.map(e=>e.id)}}).toPromise().then(e=>{this.vbs.currentLayout==ve.Layout.Mobile?this.matDialog.open(Di,O(E({},fe),{maxWidth:"100vw",maxHeight:"100vh",height:"100%",width:"100%",disableClose:!1,data:{productAnalogs:e.products,showButtons:!1}})):this.matDialog.open(Di,O(E({},fe),{width:"100vw",maxWidth:"100vw",height:"100vh",maxHeight:"100vh",position:{top:"0px",left:"0px"},panelClass:["__app-modal","__app-analogs-modal-panel"],disableClose:!1,data:{productAnalogs:e.products,showButtons:!0}}))})}productRequest(){this.matDialog.open(Mt,O(E({},fe),{disableClose:!1,data:{withMessage:this.i18n.instant(this.t("orderWithProductRequestMessage"),{product:this.helper.product,url:`${this.env.current.baseUrl}/kupit/${this.helper.product.id}`}),context:gt.ProductOneClickBuy,productId:this.helper.product.id,productPrice:this.helper.product.price}}))}get hasPrice(){return this.helper.price.hasPrice}get analogsProductsExist(){return this.helper.product.productAnalogs&&this.helper.product.productAnalogs.length!=0}get isOutOfProduction(){return this.helper.product.flags.isOutOfProduction}get showAnalogsButton(){return this.isOutOfProduction&&this.analogsProductsExist}get buttonNgClass(){return[`font-size-${this.fontSize}`,`width-${this.buttonWidth}`]}get isCustomOrder(){return!this.isAvailableDepot&&!this.isAvailableVendorDepot}get isAvailableDepot(){return this.helper.product.flags.isAvailableDepot}get isAvailableVendorDepot(){return this.helper.product.flags.isAvailableVendorDepot}get title$(){return this.helper.source.product$.pipe(F(e=>this.i18n.instant(!e.inBasket||e.inBasket<=0?this.t("inBasketNone"):e.inBasket===1?this.t("inBasketSingle"):this.t("inBasketMulti"),{count:e.inBasket})))}static{this.\u0275fac=function(i){return new(i||t)(h(re),h(He),h(Xn),h(le),h(N),h(be))}}static{this.\u0275cmp=y({type:t,selectors:[["app-shared-product-card-assets-buy-button"]],inputs:{fontSize:"fontSize",buttonWidth:"buttonWidth",productId:"productId",currentId:"currentId",resolvedData:[1,"resolvedData"]},outputs:{emitOnProductAddedToCard:"emitOnProductAddedToCard"},standalone:!1,features:[_e],decls:3,vars:3,consts:[[1,"c-button","is-not-available",3,"ngClass"],[1,"c-button","analogs",3,"ngClass"],[1,"c-frame-2020",3,"is-skeleton"],[1,"c-button",3,"click","ngClass"],[1,"sprite_icon-cart"],[1,"c-frame-2020"],[1,"align"],[1,"color-blue-gray-light",3,"click"],["width","16","height","16","viewBox","0 0 16 16","fill","none",0,"xml","space","preserve","xmlns","http://www.w3.org/2000/svg"],["d","M1.334 8h13.333","stroke","#253238","stroke-width","2","stroke-linecap","round","stroke-linejoin","round"],[1,"content2"],["d","M8 1.333v13.334","stroke","#253238","stroke-width","2","stroke-linecap","round","stroke-linejoin","round"],["d","M1.334 1.5h13.333","stroke","#253238","stroke-width","2","stroke-linecap","round","stroke-linejoin","round","transform","translate(0 6.5)",2,"fill","none"],[1,"c-frame-72
136"],[1,"c-button","is-not-available",3,"click","ngClass"],[1,"c-button","analogs",3,"click","ngClass"]],template:function(i,n){i&1&&(p(0,Ll,8,12),p(1,Rl,4,4,"button",0),p(2,Fl,4,4,"button",1)),i&2&&(m(n.hasPrice&&!n.isCustomOrder?0:-1),o(),m(!n.showAnalogsButton&&(!n.hasPrice||n.isCustomOrder)?1:-1),o(),m(n.showAnalogsButton?2:-1))},dependencies:[j,ye,K,kt,Z],encapsulation:2})}}return t})();var jo=(()=>{class t{constructor(e){this.i18n=e}transform(e,...i){let n=parseInt(e,10);if(isNaN(n)||n<0)return"";{let u=n.toString(),x=u[u.length-1];if(u==="0")return this.t("no_reviews",n);if(u==="1")return this.t("reviews_1",n);if(["11","12","13","14","15","16","17","18","19"].includes(u))return this.t("reviews_0",n);if(["2","3","4"].includes(x))return this.t("reviews_2",n);if(["5","6","7","8","9","0"].includes(x))return this.t("reviews_0",n)}}t(e,i){return this.i18n.instant(`product_shared.pipes.product_reviews.${e}`,{count:i})}static{this.\u0275fac=function(i){return new(i||t)(h(le,16))}}static{this.\u0275pipe=Dn({name:"appProductReviews",type:t,pure:!0,standalone:!1})}}return t})();function zl(t,c){t&1&&(a(0,"div",17),M(),a(1,"svg",20),d(2,"path",21),r()())}function Wl(t,c){if(t&1){let e=S();a(0,"div",2)(1,"div",4)(2,"span"),v(3),f(4,"translate"),r()(),a(5,"div",5)(6,"div",6),d(7,"app-shared-ui-input",7),f(8,"translate"),Le(),r(),a(9,"div",6),d(10,"app-shared-ui-input",8),f(11,"translate"),Le(),r(),a(12,"div",6),d(13,"app-shared-ui-input",9),f(14,"translate"),Le(),r(),a(15,"div",6),d(16,"app-shared-ui-input",10),f(17,"translate"),Le(),r(),a(18,"div",6),d(19,"app-shared-ui-textarea",11),f(20,"translate"),Le(),r()(),a(21,"div",12)(22,"app-shared-ui-button",13),b("click",function(){w(e);let n=s();return P(n.ngSubmit())}),a(23,"span"),v(24),f(25,"translate"),r()()(),a(26,"div",14)(27,"label",15),b("click",function(){w(e);let n=s();return P(n.toggleAgree())}),a(28,"div",16),p(29,zl,3,0,"div",17),r(),a(30,"div",18)(31,"span"),v(32," \u0421\u043E\u0433\u043B\u0430\u0441\u0435\u043D \u0441 "),a(33,"a",19),v(34," \u043F\u043E\u043B\u0438\u0442\u0438\u043A\u043E\u0439 \u043E\u0431\u0440\u0430\u0431\u043E\u0442\u043A\u0438 \u043F\u0435\u0440\u0441\u043E\u043D\u0430\u043B\u044C\u043D\u044B\u0445 \u0434\u0430\u043D\u043D\u044B\u0445 "),r()()()()()()}if(t&2){let e=s();l("formGroup",e.state().form),o(3),_(C(4,22,e.t("form.title2"))),o(4),l("placeholder",ge(C(8,24,e.t("form.name"))))("touchedTrigger",e.touchedCounter),Re(),o(3),l("placeholder",ge(C(11,26,e.t("form.phone"))))("touchedTrigger",e.touchedCounter),Re(),o(3),l("placeholder",ge(C(14,28,e.t("form.email"))))("touchedTrigger",e.touchedCounter),Re(),o(3),l("placeholder",ge(C(17,30,e.t("form.inn")))),Re(),o(3),l("placeholder",ge(C(20,32,e.t("form.message")))),Re(),o(3),l("disabled",e.state().form.disabled),o(2),_(C(25,34,e.t("form.submit"))),o(4),te("is-active",e.state().form.get("agree")?.value)("warning",e.state().form.get("agree")?.invalid&&e.state().form.get("agree")?.touched),o(),m(e.state().form.get("agree")?.value?29:-1)}}function Ql(t,c){if(t&1&&(a(0,"div",3)(1,"div",22)(2,"div",23),M(),a(3,"svg",24),d(4,"circle",25)(5,"path",26),r()(),L(),a(6,"div",4)(7,"div",27)(8,"span"),v(9),f(10,"translate"),r()(),a(11,"div",28)(12,"span"),v(13),f(14,"translate"),r()()(),a(15,"div",29)(16,"span"),v(17),f(18,"translate"),r()()()()),t&2){let e=s();o(9),_(C(10,3,e.t("success.thanks"))),o(4),_(C(14,5,e.t("success.sent"))),o(4),_(C(18,7,e.t("success.response")))}}var Sn=(()=>{class t{constructor(e,i,n,u,x,B,V,we,Pe,Ot,Go,Uo,zo,Wo){this.platformId=e,this.modalRequest=i,this.fb=n,this.cdr=u,this.env=x,this.matDialogRef=B,this.endpoint=V,this.errorHandler=we,this.router=Pe,this.appBootstrap=Ot,this.mindboxDataAccess=Go,this.documentCookieService=Uo,this.jwtService=zo,this.recaptchaV3Service=Wo,this.nextSubmit$=new H,this.ngOnDestroy$=new H,this.touchedCounter=null,this.state=$({screen:"form",form:this.fb.group({name:["",[xt.required]],phone:["",[xt.required]],email:["",[xt.required,xt.email]],inn:[""],message:[""],agree:[!1,xt.requiredTrue]})})}get formValue(){return this.state().form.value}ngOnInit(){this.appBootstrap.data.account&&this.state().form.patchValue({name:this.appBootstrap.data.account.fullName,phone:this.appBootstrap.data.account.phone,email:this.appBootstrap.data.account.email})}ngOnDestroy(){this.nextSubmit$.next(),this.ngOnDestroy$.next()}t(e){return`shared.components.quotation_request_modal.${e}`}close(){this.matDialogRef.close()}
13toggleAgree(){let e=this.state().form.get("agree");e?.setValue(!e.value),e?.markAsTouched(),this.cdr.detectChanges()}ngSubmit(){let e=this.state().form;if(e.markAllAsTouched(),this.touchedCounter=(this.touchedCounter??0)+1,!e.valid){this.cdr.detectChanges();return}this.nextSubmit$.next(),this.appBootstrap.data.recaptchaSettings?.enabled?this.recaptchaV3Service.execute("QuotationRequest",this.appBootstrap.data.recaptchaSettings?.siteKey).pipe(J(this.nextSubmit$)).subscribe(i=>this.submitForm(i)):this.submitForm()}submitForm(e){let i=this.formValue;this.state().form.disable();let n;try{n=window.ct("calltracking_params","y88mwzmo").sessionId}catch(u){console.log(u)}this.endpoint.send({sessionId:n,phone:i.phone,productId:this.modalRequest.productId,name:i.name,context:this.modalRequest.context,createdFromURL:`${this.env.current.baseDomainProtocol}://${this.env.current.baseDomain}${this.router.url}`,message:i.message,inn:i.inn,email:i.email},e).pipe(Ei(()=>this.state().form.enable()),Ei(()=>this.cdr.markForCheck()),J(this.nextSubmit$)).subscribe({next:async u=>{ae(this.platformId)&&(window&&window.gtag&&window.gtag("event","submit",{event_category:"forms",event_label:this.modalRequest&&this.modalRequest.isOneClick?"oneclick":"callback"}),window&&window.ym&&this.env.current.ymId&&window.ym(this.env.current.ymId,"reachGoal","kp"),this.jwtService.hasJwt()?await Ii(this.mindboxDataAccess.request({name:this.formValue?.name||"",phone:this.formValue?.phone||"",email:this.jwtService?.jwtPayload?.accountEmail||this.formValue?.email||""})):await Ii(this.mindboxDataAccess.request({name:this.formValue?.name||"",phone:this.formValue?.phone||"",email:this.formValue?.email||""}))),this.state.update(x=>O(E({},x),{screen:"success"})),this.state().form.reset()},error:u=>{this.errorHandler.handle(u)}})}static{this.\u0275fac=function(i){return new(i||t)(h(ee),h(Pt),h(bt),h(se),h(re),h(wt),h(Fi),h(Ue),h(Je),h(Me),h(Qn),h(to),h(yt),h($t))}}static{this.\u0275cmp=y({type:t,selectors:[["ng-component"]],standalone:!1,decls:4,vars:2,consts:[[3,"click"],[1,"c"],[1,"c-screen","c-screen-form",3,"formGroup"],[1,"c-screen","c-screen-success"],[1,"c-title"],[1,"c-form"],[1,"c-form-field"],["formControlName","name","leftIcon","person",3,"touchedTrigger","placeholder"],["formControlName","phone","leftIcon","phone",3,"touchedTrigger","placeholder"],["formControlName","email","leftIcon","email",3,"touchedTrigger","placeholder"],["formControlName","inn",3,"placeholder"],["formControlName","message",3,"placeholder"],[1,"c-submit"],[3,"click","disabled"],[1,"c-agree"],[1,"c-checkbox-field-label",3,"click"],[1,"c-checkbox-field","label-color-default"],[1,"icon"],[1,"c-label"],["href","/privacy-policy","target","_blank","rel","noopener noreferrer",2,"display","inline","color","#1269ff","text-decoration","underline"],["width","16","height","12","viewBox","0 0 16 12","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M15.2 1.704 13.51 0 5.6 7.908 2.505 4.824.8 6.516l4.8 4.788 9.6-9.6Z","fill","#fff"],[1,"c-box"],[1,"c-icon"],["width","80","height","80","viewBox","0 0 80 80","fill","none","xmlns","http://www.w3.org/2000/svg"],["cx","40","cy","40","r","40","fill","#0049FF"],["d","M59.4142 28.2981C58.6332 27.517 57.367 27.517 56.5858 28.2981L32.6246 52.2596L23.4143 43.0493C22.6332 42.2682 21.367 42.2683 20.5858 43.0493C19.8047 43.8303 19.8047 45.0965 20.5858 45.8776L31.2104 56.502C31.9911 57.283 33.2583 57.2825 34.0388 56.502L59.4142 31.1265C60.1953 30.3455 60.1953 29.0792 59.4142 28.2981Z","fill","white"],[1,"c-title-l1"],[1,"c-title-l2"],[1,"c-response"]],template:function(i,n){i&1&&(a(0,"app-shared-dialog-close",0),b("click",function(){return n.close()}),r(),a(1,"div",1),p(2,Wl,35,36,"div",2),p(3,Ql,19,9,"div",3),r()),i&2&&(o(2),m(n.state().screen==="form"?2:-1),o(),m(n.state().screen==="success"?3:-1))},dependencies:[ci,li,pi,di,St,Ni,Hi,mo,K],styles:[".c[_ngcontent-%COMP%]{width:600px;min-height:350px;max-width:80vw;padding:50px}@media(max-width:520px){.c[_ngcontent-%COMP%]{padding:50px 20px 20px}}.c[_ngcontent-%COMP%]   .c-screen[_ngcontent-%COMP%]{width:100%;height:100%;position:relative}.c[_ngcontent-%COMP%]   .c-screen.c-screen-form[_ngcontent-%COMP%]   .c-title[_ngcontent-%COMP%]{margin-bottom:27px}.c[_ngcontent-%COMP%]   .c-screen.c-screen-form[_ngcontent-%COMP%]   .c-title[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-style:normal;font-weight:500;font-size:30px;line-height:35px;color:var(--color-primary-dark)}.c[_ngcontent-%COMP%]   .c-screen.c-screen-form[_ngcontent-%COMP%]   .c-form[_ngcontent-%COMP%], .c[_ngcontent-%COMP%]   .c-screen.c-screen-form[_ngcontent-%COMP%]   .c-form[_ngcontent-%COMP%]   .c-form-field[_ngcontent-%COMP%]{margin-bottom:22px}.c[_ngcontent-%COMP%]   .c-screen.c-screen-form[_ngcontent-%COMP%]   .c-form[_ngcontent-%COMP%]   .c-form-field.last-child[_ngcontent-%COMP%]{margin-bottom:0}.c[_ngcontent-%COMP%]   .c-screen.c-screen-form[_ngcontent-%COMP%]   .c-submit[_ngcontent-%COMP%]{margin-bottom:20px}.c[_ngcontent-%COMP%]   .c-screen.c-screen-form[_ngcontent-%COMP%]   .c-agree[_ngcontent-%COMP%]{display:flex;justify-content:center}.c[_ngcontent-%COMP%]   .c-screen.c-screen-success[_ngcontent-%COMP%]{width:100%;height:100%;display:flex;align-items:center;justify-content:center;align-content:center}.c[_ngcontent-%COMP%]   .c-screen.c-screen-success[_ngcontent-%COMP%]   .c-box[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;text-align:center}.c[_ngcontent-%COMP%]   .c-screen.c-screen-success[_ngcontent-%COMP%]   .c-box[_ngcontent-%COMP%]   .c-icon[_ngcontent-%COMP%]{margin-bottom:22px}.c[_ngcontent-%COMP%]   .c-screen.c-screen-success[_ngcontent-%COMP%]   .c-box[_ngcontent-%COMP%]   .c-title[_ngcontent-%COMP%]{margin-bottom:14px}.c[_ngcontent-%COMP%]   .c-screen.c-screen-success[_ngcontent-%COMP%]   .c-box[_ngcontent-%COMP%]   .c-title[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-style:normal;font-weight:500;font-size:22px;line-height:26px;color:var(--color-black)}.c[_ngcontent-%COMP%]   .c-screen.c-screen-success[_ngcontent-%COMP%]   .c-box[_ngcontent-%COMP%]   .c-response[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-style:normal;font-weight:400;font-size:14px;line-height:24px;color:var(--color-black)}"]})}}return t})();var Xl=["viewport"],Zl=["track"];function Yl(t,c){if(t&1&&(a(0,"div",2),d(1,"app-shared-product-card-g",6),r()),t&2){let e=s();o(),l("shouldShowFiveEmptyStars",!0)("shouldShowNoReviewsMessage",!1)("compareTopbarVariant","default")("withParametersBadges",!0)("variant",e.variant)("product",c)("withBonus",!0)("withSlider",!0)("bonusVariant","catalog")("paddingVariant","homepage")("withCompare",!0)("withFavorite",!0)("withBadges",!0)("withParams",!0)("withRating",!0)("withReviews",!0)("withInteridRating",!0)("withBasket",!0)("mobileMainLayout",!0)}}function Kl(t,c){t&1&&(M(),a(0,"svg",11),d(1,"path",12),r())}function Jl(t,c){if(t&1){let e=S();a(0,"label",8)(1,"span",9)(2,"input",10),b("change",function(n){w(e);let u=s().$implicit,x=s();return P(x.toggleSelected(u.id,n.target.checked))})("click",function(n){return n.stopPropagation()}),r(),p(3,Kl,2,0,":svg:svg",11),r()()}if(t&2){let e=s().$implicit,i=s();te("is-active",i.selectedIds().has(e.id)),o(2),l("checked",i.selectedIds().has(e.id)),o(),m(i.selectedIds().has(e.id)?3:-1)}}function ed(t,c){if(t&1&&(a(0,"div",5),p(1,Jl,4,4,"label",7),d(2,"app-shared-product-card-g",6),r()),t&2){let e=c.$implicit,i=c.$index,n=s();o(),m(n.shouldShowCheckbox(i+(n.withPinnedFirstSignal()?1:0))?1:-1),o(),l("shouldShowFiveEmptyStars",!0)("shouldShowNoReviewsMessage",!1)("compareTopbarVariant","default")("withParametersBadges",!0)("variant",n.variant)("product",e)("withBonus",!0)("withSlider",!0)("bonusVariant","catalog")("paddingVariant","homepage")("withCompare",!0)("withFavorite",!0)("withBadges",!0)("withParams",!0)("withRating",!0)("withReviews",!0)("withInteridRating",!0)("withBasket",!0)("mobileMainLayout",!0)}}var At=(()=>{class t{constructor(){this.variant="tiny",this.vbr=ue(He),this.viewBreakpoints=jt(this.vbr.currentLayout$),this.Layout=ve.Layout,this.viewReady=$(!1),this.dragging=!1,this.moved=!1,this.startX=0,this.startOffset=0,this.activePointerId=null,this.dragThreshold=6,this.offsetX=$(0),this.transitionMs=$(0),this.maxOffset=$(0),this.blockOuterSlider=!1,this.slideWidth=z(()=>(this.viewBreakpoints()===ve.Layout.Mobile?196:268)+24),this.productsSignal=$([]),this.selectedIds=$(new Set),this.withCheckboxes=!1,this.withPinnedFirstSignal=$(!1),this.pinnedProduct=z(()=>this.withPinnedFirstSignal()?this.productsSignal()[0]??null:null),this.initialized=!1,this.initSelectedEffect=Lt(()=>{if(this.initialized)return;let e=this.sliderProducts();if(!e.length)return;let i=e.slice(0,3).map(n=>n.id);this.selectedIds.set(new Set(i)),this.selectedIdsChange.emit(i),this.initialized=!0}),this.sliderProducts=z(()=>{let e=this.productsSignal();return this.withPinnedFirstSignal()?e.slice(1):e}),this.selectedIdsChange=An(),this.platformId=ue(ee),this.rafId=0,this.viewportRef=Rt.required("viewport"),this.trackRef=Rt.required("track"),this.transform=z(()=>`translate3d(${-this.offsetX()}px, 0, 0)`),this.lastLength=0,this.boundsEffect=Lt(()=>{this.viewReady()&&(this.sliderProducts(),this.transitionMs.set(0),this.offsetX.set(0),queueMicrotask(()=>{this.recalcBounds()}))}),this.onPointerDown=e=>{if(e.button===0){if(this.viewBreakpoints()===ve.Layout.Mobile&&e.target instanceof HTMLElement&&e.target.closest(".slider-hotzones")){this.blockOuterSlider=!0;return}this.blockOuterSlider=!1,this.dragging=!0,this.moved=!1,this.activePointerId=e.pointerId,this.startX=e.clientX,this.startOffset=this.offsetX(),this.transitionMs.set(0)}},this.onPointerMove=e=>{if(this.blockOuterSlider||!this.dragging||this.activePointerId!==e.pointerId)return;let i=this.startX-e.clientX;if(!this.moved){if(Math.abs(i)<=this.dragThreshold)return;this.moved=!0;try{this.viewportRef().nativeElement.setPointerCapture(e.pointerId)}catch{}}e.preventDefault();let n=this.startOffset+i;this.offsetX.set(Math.max(0,Math.min(n,this.maxOffset())))},this.onPointerUp=e=>{if(this.blockOuterSlider){this.blockOuterSlider=!1;return}if(!this.dragging||this.activePointerId!==e.pointerId)return;this.dragging=!1;try{this.viewportRef().nativeElement.releasePointerCapture(e.pointerId)}catch{}if(this.activePointerId=null,!this.moved)return;let i=this.offsetX();if(this.maxOffset()-i<this.slideWidth()/2)this.animateTo(this.maxOffset());else{let u=Math.round(i/this.slideWidth())*this.slideWidth();this.animateTo(Math.max(0,Math.min(u,this.maxOffset())))}queueMicrotask(()=>{this.moved=!1})},this.onDragStart=e=>{e.preventDefault()},this.onClickCapture=e=>{this.moved&&(e.preventDefault(),e.stopPropagation(),this.moved=!1)}}set products(e){this.productsSignal.set(e??[])}set withPinnedFirst(e){this.withPinnedFirstSignal.set(e)}shouldShowCheckbox(e){return this.withCheckboxes&&e>0}toggleSelected(e,i){let n=new Set(this.selectedIds());i?n.add(e):n.delete(e),this.selectedIds.set(n),this.selectedIdsChange.emit(Array.from(n))}ngAfterViewInit(){if(!ae(this.platformId))return;let e=this.viewportRef().nativeElement,i=this.trackRef().nativeElement;e.addEventListener("pointerdown",this.onPointerDown,!0),window.addEventListener("pointermove",this.onPointerMove,{passive:!1}),window.addEventListener("pointerup",this.onPointerUp),window.addEventListener("pointercancel",this.onPointerUp),e.addEventListener("click",this.onClickCapture,!0),e.addEventListener("dragstart",this.onDragStart,!0),this.resizeObserver=new ResizeObserver(()=>{cancelAnimationFrame(this.rafId),this.rafId=requestAnimationFrame(()=>this.recalcBounds())}),this.resizeObserver.observe(e),this.resizeObserver.observe(i),this.viewReady.set(!0)}ngOnDestroy(){if(!ae(this.platformId))return;cancelAnimationFrame(this.rafId),this.resizeObserver?.disconnect();let e=this.viewportRef().nativeElement;e.removeEventListener("pointerdown",this.onPointerDown,!0),e.removeEventListener("click",this.onClickCapture,!0),e.removeEventListener("dragstart",this.onDragStart,!0),window.removeEventListener("pointermove",this.onPointerMove),window.removeEventListener("pointerup",this.onPointerUp),window.removeEventListener("pointercancel",this.onPointerUp)}recalcBounds(){let e=this.viewportRef().nativeElement,i=this.sliderProducts().length;if(!i){this.maxOffset.set(0),this.offsetX.set(0);return}let n=i*this.slideWidth()-24,u=Math.max(0,n-e.clientWidth);this.maxOffset.set(u),this.offsetX.set(Math.min(this.offsetX(),u))}next(){let e=this.offsetX()+this.slideWidth();this.animateTo(Math.min(e,this.maxOffset()))}prev(){this.animateTo(this.offsetX()-this.slideWidth())}animateTo(e){this.transitionMs.set(300),this.offsetX.set(Math.max(0,Math.min(e,this.maxOffset())))}trackByProductId(e,i){return i.id}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=y({type:t,selectors:[["app-shared-products-slider"]],viewQuery:function(i,n){i&1&&ut(n.viewportRef,Xl,5)(n.trackRef,Zl,5),i&2&&ht(2)},inputs:{variant:"variant",products:"products",withCheckboxes:"withCheckboxes",withPinnedFirst:"withPinnedFirst"},outputs:{selectedIdsChange:"selectedIdsChange"},standalone:!1,decls:7,vars:5,consts:[["viewport",""],["track",""],[1,"c-product","c-product--pinned"],[1,"c-products-viewport"],[1,"c-products-track"],[1,"c-product"],[3,"shouldShowFiveEmptyStars","shouldShowNoReviewsMessage","compareTopbarVariant","withParametersBadges","variant","product","withBonus","withSlider","bonusVariant","paddingVariant","withCompare","withFavorite","
13withBadges","withParams","withRating","withReviews","withInteridRating","withBasket","mobileMainLayout"],[1,"c","label-color-default",3,"is-active"],[1,"c","label-color-default"],[1,"c-checkbox"],["type","checkbox",3,"change","click","checked"],["width","16","height","12","viewBox","0 0 16 12","fill","none",1,"icon"],["d","M15.2 1.704 13.51 0 5.6 7.908 2.505 4.824.8 6.516l4.8 4.788 9.6-9.6Z","fill","#fff"]],template:function(i,n){if(i&1&&(p(0,Yl,2,19,"div",2),a(1,"div",3,0)(3,"div",4,1),D(5,ed,3,20,"div",5,n.trackByProductId,!0),r()()),i&2){let u;m((u=n.pinnedProduct())?0:-1,u),o(3),Tn("transform",n.transform())("transition-duration",n.transitionMs(),"ms"),o(2),T(n.sliderProducts())}},dependencies:[We],encapsulation:2})}}return t})();function id(t,c){if(t&1){let e=S();a(0,"section",0)(1,"div",1)(2,"h2"),v(3),r(),a(4,"div",2)(5,"button",3),b("click",function(){let n=w(e).$index,u=s();return P(u.prev(n))}),M(),a(6,"svg",4),d(7,"use"),f(8,"sprite"),r()(),L(),a(9,"button",5),b("click",function(){let n=w(e).$index,u=s();return P(u.next(n))}),M(),a(10,"svg",6),d(11,"use"),f(12,"sprite"),r()()()(),L(),d(13,"app-shared-products-slider",7),r()}if(t&2){let e=c.$implicit;o(3),_(e.title),o(4),I("href",C(8,5,"arrow-left")),o(4),I("href",C(12,7,"arrow-right")),o(2),l("products",e.products)("variant","tiny")}}var nd=(()=>{class t{constructor(){this.sliders=[],this.productsSliders=On(At)}prev(e){this.productsSliders()[e]?.prev()}next(e){this.productsSliders()[e]?.next()}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=y({type:t,selectors:[["app-shared-tool-page-products"]],viewQuery:function(i,n){i&1&&ut(n.productsSliders,At,5),i&2&&ht()},inputs:{sliders:"sliders"},standalone:!1,decls:2,vars:0,consts:[[1,"app-tool-page-products-block"],[1,"app-tool-page-products-header"],[1,"app-tool-page-products-arrows"],["type","button",1,"arrow","prev",3,"click"],[1,"sprite_arrow-left"],["type","button",1,"arrow","next",3,"click"],[1,"sprite_arrow-right"],[3,"products","variant"]],template:function(i,n){i&1&&D(0,id,14,9,"section",0,pe),i&2&&T(n.sliders)},dependencies:[At,Z],encapsulation:2})}}return t})();var od=(()=>{class t{constructor(e,i,n,u){this.i18n=e,this.matDialog=i,this.helper=n,this.env=u}t(e){return`product_shared.assets.product_card_one_click_buy.${e}`}oneClickBuy(){this.matDialog.open(Sn,O(E({},fe),{disableClose:!1,data:{withMessage:this.i18n.instant(this.t("message"),{product:this.helper.product,url:`${this.env.current.baseUrl}/kupit/${this.helper.product.id}`}),context:Ri.ProductOneClickBuy,productId:this.helper.product.id,productPrice:this.helper.product.price}}))}static{this.\u0275fac=function(i){return new(i||t)(h(le),h(be),h(N),h(re))}}static{this.\u0275cmp=y({type:t,selectors:[["app-shared-product-card-assets-one-click-buy"]],standalone:!1,decls:9,vars:0,consts:[[1,"c"],[1,"c-border-wrap"],[1,"c-button",3,"click"],["xmlns","http://www.w3.org/2000/svg","width","24","height","24","fill","none","viewBox","0 0 24 24",1,"c-icon"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","m9 15 6-6"],["fill","currentColor","stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M9.5 10a.5.5 0 1 0 0-1 .5.5 0 0 0 0 1m5 5a.5.5 0 1 0 0-1 .5.5 0 0 0 0 1"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M5 7.2A2.2 2.2 0 0 1 7.2 5h1a2.2 2.2 0 0 0 1.55-.64l.7-.7a2.2 2.2 0 0 1 3.12 0l.7.7c.412.41.97.64 1.55.64h1a2.2 2.2 0 0 1 2.2 2.2v1c0 .58.23 1.138.64 1.55l.7.7a2.2 2.2 0 0 1 0 3.12l-.7.7a2.2 2.2 0 0 0-.64 1.55v1a2.2 2.2 0 0 1-2.2 2.2h-1a2.2 2.2 0 0 0-1.55.64l-.7.7a2.2 2.2 0 0 1-3.12 0l-.7-.7a2.2 2.2 0 0 0-1.55-.64h-1a2.2 2.2 0 0 1-2.2-2.2v-1a2.2 2.2 0 0 0-.64-1.55l-.7-.7a2.2 2.2 0 0 1 0-3.12l.7-.7A2.2 2.2 0 0 0 5 8.2z"]],template:function(i,n){i&1&&(a(0,"div",0)(1,"div",1)(2,"button",2),b("click",function(){return n.oneClickBuy()}),M(),a(3,"svg",3),d(4,"path",4)(5,"path",5)(6,"path",6),r(),L(),a(7,"span"),v(8,"\u041F\u043E\u043B\u0443\u0447\u0438\u0442\u044C \u041A\u041F \u0441\u043E \u0441\u043A\u0438\u0434\u043A\u043E\u0439"),r()()()())},styles:[".c[_ngcontent-%COMP%]   .c-border-wrap[_ngcontent-%COMP%]{width:100%;border-radius:9px;background:linear-gradient(to right,#001aff,#da06ff);padding:1px;
13transition:box-shadow .15s ease}.c[_ngcontent-%COMP%]   .c-border-wrap[_ngcontent-%COMP%]:hover{box-shadow:0 4px 16px #1269ff40}.c[_ngcontent-%COMP%]   .c-border-wrap[_ngcontent-%COMP%]:hover   button.c-button[_ngcontent-%COMP%]{background:#dde0ff}.c[_ngcontent-%COMP%]   .c-border-wrap[_ngcontent-%COMP%]:hover   button.c-button[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{color:#111c20}.c[_ngcontent-%COMP%]   .c-border-wrap[_ngcontent-%COMP%]:active   button.c-button[_ngcontent-%COMP%], .c[_ngcontent-%COMP%]   .c-border-wrap[_ngcontent-%COMP%]   button.c-button.is-pending[_ngcontent-%COMP%]{background:#c7ccff}.c[_ngcontent-%COMP%]   .c-border-wrap[_ngcontent-%COMP%]:active   button.c-button[_ngcontent-%COMP%]   span[_ngcontent-%COMP%], .c[_ngcontent-%COMP%]   .c-border-wrap[_ngcontent-%COMP%]   button.c-button.is-pending[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{color:#000f14}.c[_ngcontent-%COMP%]   button.c-button[_ngcontent-%COMP%]{cursor:pointer;width:100%;color:var(--color-primary);transition:background .15s ease;display:flex;flex-direction:row;justify-content:center;align-items:center;gap:12px;padding:12px 24px}@media only screen and (min-width:768px)and (max-width:1439px){.c[_ngcontent-%COMP%]   button.c-button[_ngcontent-%COMP%]{padding:12px}}.c[_ngcontent-%COMP%]   button.c-button[_ngcontent-%COMP%]{height:43px;border-radius:8px;border:none;background:#f6f7f8}.c[_ngcontent-%COMP%]   button.c-button[_ngcontent-%COMP%]   .c-icon[_ngcontent-%COMP%]{flex-shrink:0}.c[_ngcontent-%COMP%]   button.c-button[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-style:normal;font-weight:500;font-size:16px;line-height:21px;color:var(--color-black);transition:color .15s ease}@media only screen and (min-width:768px)and (max-width:1000px){.c[_ngcontent-%COMP%]   button.c-button[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-size:12px;line-height:normal}}"]})}}return t})();function sd(t,c){if(t&1&&(a(0,"span"),v(1),r()),t&2){let e=s();o(),_(e.review.author)}}function cd(t,c){if(t&1&&(a(0,"span"),v(1),f(2,"translate"),r()),t&2){let e=s();o(),_(C(2,1,e.t("anonymous")))}}function ld(t,c){if(t&1&&(a(0,"div",7)(1,"div",16)(2,"div",17)(3,"span"),v(4),f(5,"translate"),r()()(),a(6,"div",18)(7,"span"),v(8),r()()()),t&2){let e=s();o(4),_(C(5,2,e.t("positive"))),o(4),_(e.review.positive)}}function dd(t,c){if(t&1&&(a(0,"div",8)(1,"div",19)(2,"div",20)(3,"span"),v(4),f(5,"translate"),r()()(),a(6,"div",21)(7,"span"),v(8),r()()()),t&2){let e=s();o(4),_(C(5,2,e.t("negative"))),o(4),_(e.review.negative)}}function pd(t,c){if(t&1&&(a(0,"div",10)(1,"span"),v(2),f(3,"translate"),r()()),t&2){let e=s();o(2),_(C(3,1,e.t("comment")))}}function md(t,c){if(t&1&&(a(0,"div",13)(1,"div",22),M(),a(2,"svg",23)(3,"g",24),d(4,"circle",25)(5,"path",26)(6,"path",27)(7,"path",28),r(),a(8,"defs")(9,"clipPath",29),d(10,"rect",30),r()()()(),L(),a(11,"div",31)(12,"span"),v(13),f(14,"translate"),r(),d(15,"div",32),r()()),t&2){let e=s();o(13),_(C(14,2,e.t("response"))),o(2),l("innerHTML",e.review.response,R)}}function ud(t,c){if(t&1){let e=S();a(0,"div",34)(1,"app-shared-attachment-image",35),b("click",function(){let n=w(e).$implicit,u=s(2);return P(u.preview(n))}),r()()}if(t&2){let e=c.$implicit;o(),l("attachment",e)}}function hd(t,c){if(t&1&&(a(0,"div",14)(1,"div",33),D(2,ud,2,1,"div",34,je().trackByAttachment,!0),r()()),t&2){let e=s();o(2),T(e.review.contentsAttachments)}}function fd(t,c){if(t&1){let e=S();a(0,"div",15)(1,"div",36)(2,"span",37),b("click",function(){w(e);let n=s();return P(n.like("Positive"))}),M(),a(3,"svg",38),d(4,"path",39),r()(),L(),d(5,"span",40),r(),a(6,"div",36)(7,"span",37),b("click",function(){w(e);let n=s();return P(n.like("Negative"))}),M(),a(8,"svg",38),d(9,"path",41),r()(),L(),d(10,"span",40),r()()}if(t&2){let e=s();o(2),l("ngClass",e.state.likesStats.positive.active?"c-like-icon active":"c-like-icon"),o(3),l("innerHTML",e.state.likesStats.positive.count,R),o(2),l("ngClass",e.state.likesStats.negative.active?"c-like-icon active":"c-like-icon"),o(3),l("innerHTML",e.state.likesStats.negative.count,R)}}var Cd=(()=>{class t{constructor(e,i,n,u,x,B,V){this.platformId=e,this.matDialog=i,this.cdr=n,this.reviewsLikesDataAccess=u,this.jwtService=x,this.vcr=B,this.imageGallery=V,this.ngOnDestroy$=new H,this.state={likes:[],accountId:void 0,like
13sStats:{negative:{count:0,active:!1},positive:{count:0,active:!1}}}}ngOnInit(){this.isBrowser&&(this.state=O(E({},this.state),{likes:this.reviewLikes}),this.jwtService.jwtPayload$.pipe(J(this.ngOnDestroy$)).subscribe(e=>{e?.accountId&&(this.state=O(E({},this.state),{accountId:e.accountId})),this.calcLikes(),this.cdr.markForCheck()}))}get isBrowser(){return ae(this.platformId)}ngOnDestroy(){this.ngOnDestroy$.next()}calcLikes(){if(!this.state.likes||this.state.likes?.length===0)return;let e=(i,n)=>i.filter(u=>u.type==n).reduce((u,x)=>{let B=u.findIndex(V=>V.type===x.type);return B>-1?u[B].count+=1:u.push({type:x.type,count:1}),u},[]);this.state.likesStats.negative.count=e(this.state.likes,qe.LikeType.Negative)[0]?.count??0,this.state.likesStats.positive.count=e(this.state.likes,qe.LikeType.Positive)[0]?.count??0,this.state.accountId&&(this.state.likesStats.negative.active=this.state.likes.some(i=>i.type==qe.LikeType.Negative&&i.authorAccountId==this.state.accountId),this.state.likesStats.positive.active=this.state.likes.some(i=>i.type==qe.LikeType.Positive&&i.authorAccountId==this.state.accountId))}t(e){return`product_shared.assets.product_review.${e}`}trackByAttachment(e,i){return i.id}async like(e){if(!this.jwtService.hasJwt()){this.matDialog.open(gi,E({},fe));return}let i=this.state.likes.find(u=>u.authorAccountId==this.jwtService.jwtPayload.accountId),n;i?i.type==e?n=this.reviewsLikesDataAccess.unlike({productReviewId:this.review.id}):n=this.reviewsLikesDataAccess.setType({productReviewId:this.review.id,type:i.type==qe.LikeType.Positive?qe.LikeType.Negative:qe.LikeType.Positive}):n=this.reviewsLikesDataAccess.like({productReviewId:this.review.id,type:qe.LikeType[e]}),n.subscribe(u=>{this.state.likes=u.likes,this.calcLikes(),this.cdr.markForCheck()},()=>{})}preview(e){this.imageGallery.open(this.vcr,{images:this.review.contentsAttachments,startWith:e})}static{this.\u0275fac=function(i){return new(i||t)(h(ee),h(be),h(se),h(Yn),h(yt),h(Fe),h(tt))}}static{this.\u0275cmp=y({type:t,selectors:[["app-shared-product-card-assets-review"]],inputs:{review:"review",reviewLikes:"reviewLikes"},standalone:!1,decls:22,vars:14,consts:[[1,"c"],[1,"c-header"],[1,"c-header-name-and-date"],[1,"c-header-name"],[1,"c-header-date"],[1,"c-header-rating"],[3,"current"],[1,"c-positive"],[1,"c-negative"],[1,"c-contents"],[1,"c-contents-label"],[1,"c-contents-body"],[3,"innerHTML"],[1,"c-response"],[1,"c-photos"],[1,"c-likes"],[1,"c-positive-header"],[1,"c-positive-label"],[1,"c-positive-contents"],[1,"c-negative-header"],[1,"c-negative-label"],[1,"c-negative-contents"],[1,"c-response-icon"],["width","24","height","24","viewBox","0 0 24 24","fill","none","xmlns","http://www.w3.org/2000/svg"],["clip-path","url(#clip0_302_114656)"],["cx","12","cy","12","r","12","fill","#253238"],["d","M5.29983 11.7443C5.26162 11.4453 5.24252 11.2958 5.28913 11.1799C5.33006 11.0781 5.40463 10.9933 5.50042 10.9398C5.60952 10.8789 5.76022 10.8789 6.06163 10.8789H7.61734C7.91962 10.8789 8.07077 10.8789 8.18002 10.9401C8.27595 10.9938 8.35054 11.0788 8.39131 11.1809C8.43776 11.2971 8.41811 11.447 8.37882 11.7467L7.59559 17.7217H6.0638L5.29983 11.7443Z","fill","#F6F7F8"],["d","M10.1808 6.37906C11.0895 6.21862 12.2714 6.12109 13.4979 6.12109C15.5885 6.12109 16.9486 6.52691 17.9791 7.35113C19.1135 8.24456 19.8262 9.66336 19.8262 11.7113C19.8262 13.926 19.066 15.4455 18.0266 16.3893C16.8744 17.4022 15.1104 17.8773 12.9752 17.8773C11.7012 17.8773 10.7717 17.7892 10.1719 17.7074V6.37906H10.1808ZM12.6367 15.7915C12.8416 15.8419 13.1979 15.8419 13.4979 15.8419C15.7489 15.8607 17.2189 14.5521 17.2189 11.79C17.2189 9.38652 15.8885 8.11558 13.7592 8.11558C13.2247 8.11558 12.8505 8.16592 12.6426 8.21625V15.7947H12.6367V15.7915Z","fill","#F6F7F8"],["d","M8.42286 7.71534C8.42286 8.58502 7.71783 9.29005 6.84815 9.29005C5.97846 9.29005 5.27344 8.58502 5.27344 7.71534C5.27344 6.84565 5.97846 6.14062 6.84815 6.14062C7.71783 6.14062 8.42286 6.84565 8.42286 7.71534Z","fill","#69A042"],["id","clip0_302_114656"],["width","24","height","24","fill","white"],[1,"c-response-contents"],[1,"c-response-contents-text",3,"innerHTML"],[1,"c-photos-list"],[1,"ph
13oto"],["objectFit","cover",3,"click","attachment"],[1,"c-like"],[3,"click","ngClass"],["width","22","height","22","viewBox","0 0 22 22","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M6 21H3a2 2 0 0 1-2-2v-7a2 2 0 0 1 2-2h3m7-2V4a3 3 0 0 0-3-3l-4 9v11h11.28a2 2 0 0 0 2-1.7l1.38-9a2 2 0 0 0-2-2.3H13Z","stroke","#B0BFC6","stroke-width","2","stroke-linecap","round","stroke-linejoin","round"],[1,"c-like-counter",3,"innerHTML"],["d","M16 1h2.67A2.31 2.31 0 0 1 21 3v7a2.31 2.31 0 0 1-2.33 2H16m-7 2v4a3 3 0 0 0 3 3l4-9V1H4.72a2 2 0 0 0-2 1.7l-1.381 9a2 2 0 0 0 2 2.3H9Z","stroke","#B0BFC6","stroke-width","2","stroke-linecap","round","stroke-linejoin","round"]],template:function(i,n){i&1&&(a(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),p(4,sd,2,1,"span")(5,cd,3,3,"span"),r(),a(6,"div",4)(7,"span"),v(8),f(9,"ruDate"),r()()(),a(10,"div",5),d(11,"app-shared-stars-rating",6),r()(),p(12,ld,9,4,"div",7),p(13,dd,9,4,"div",8),a(14,"div",9),p(15,pd,4,3,"div",10),a(16,"div",11),d(17,"div",12),f(18,"rtfMultiline"),r()(),p(19,md,16,4,"div",13),p(20,hd,4,0,"div",14),p(21,fd,11,4,"div",15),r()),i&2&&(o(4),m(n.review.author?4:5),o(4),_(C(9,10,n.review.createdAt)),o(3),l("current",n.review.rating),o(),m(n.review.positive&&n.review.positive.trim().length>0?12:-1),o(),m(n.review.negative&&n.review.negative.trim().length>0?13:-1),o(2),m(n.review.positive&&n.review.positive.trim().length>0||n.review.negative&&n.review.negative.trim().length>0?15:-1),o(2),l("innerHTML",C(18,12,n.review.contents),R),o(2),m(n.review.response?19:-1),o(),m(n.review.contentsAttachments.length>0?20:-1),o(),m(n.isBrowser?21:-1))},dependencies:[j,ce,$i,K,ui,hi],encapsulation:2})}}return t})();function gd(t,c){if(t&1&&(a(0,"span"),v(1),r()),t&2){let e=s();o(),_(e.question.author)}}function vd(t,c){if(t&1&&(a(0,"span"),v(1),f(2,"translate"),r()),t&2){let e=s();o(),_(C(2,1,e.t("anonymous")))}}function _d(t,c){if(t&1&&(a(0,"div",9)(1,"div",11),M(),a(2,"svg",12)(3,"g",13),d(4,"circle",14)(5,"path",15)(6,"path",16)(7,"path",17),r(),a(8,"defs")(9,"clipPath",18),d(10,"rect",19),r()()()(),L(),a(11,"div",20)(12,"span"),v(13),f(14,"translate"),r(),d(15,"div",21),r()()),t&2){let e=s();o(13),_(C(14,2,e.t("response"))),o(2),l("innerHTML",e.question.response,R)}}function yd(t,c){if(t&1){let e=S();a(0,"div",10)(1,"div",22)(2,"span",23),b("click",function(){w(e);let n=s();return P(n.like("Positive"))}),M(),a(3,"svg",24),d(4,"path",25),r()(),L(),d(5,"span",26),r(),a(6,"div",22)(7,"span",23),b("click",function(){w(e);let n=s();return P(n.like("Negative"))}),M(),a(8,"svg",24),d(9,"path",27),r()(),L(),d(10,"span",26),r()()}if(t&2){let e=s();o(2),l("ngClass",e.state.likesStats.positive.active?"c-like-icon active":"c-like-icon"),o(3),l("innerHTML",e.state.likesStats.positive.count,R),o(2),l("ngClass",e.state.likesStats.negative.active?"c-like-icon active":"c-like-icon"),o(3),l("innerHTML",e.state.likesStats.negative.count,R)}}var xd=(()=>{class t{constructor(e,i,n,u,x,B,V){this.platformId=e,this.matDialog=i,this.cdr=n,this.questionsLikesDataAccess=u,this.jwtService=x,this.vcr=B,this.imageGallery=V,this.ngOnDestroy$=new H,this.state={likes:[],accountId:void 0,likesStats:{negative:{count:0,active:!1},positive:{count:0,active:!1}}}}ngOnInit(){this.isBrowser&&(this.state=O(E({},this.state),{likes:this.questionLikes}),this.jwtService.jwtPayload$.pipe(J(this.ngOnDestroy$)).subscribe(e=>{e?.accountId&&(this.state=O(E({},this.state),{accountId:e.accountId})),this.calcLikes(),this.cdr.markForCheck()}))}get isBrowser(){return ae(this.platformId)}ngOnDestroy(){this.ngOnDestroy$.next()}calcLikes(){let e=(i,n)=>i.filter(u=>u.type==n).reduce((u,x)=>{let B=u.findIndex(V=>V.type===x.type);return B>-1?u[B].count+=1:u.push({type:x.type,count:1}),u},[]);this.state.likesStats.negative.count=e(this.state.likes,Ge.LikeType.Negative)[0]?.count??0,this.state.likesStats.positive.count=e(this.state.likes,Ge.LikeType.Positive)[0]?.count??0,this.state.accountId&&(this.state.likesStats.negative.active=this.state.likes.some(i=>i.type==Ge.LikeType.Negative&&i.authorAccountId==this.state.accountId),this.state.likesStats.positive.active=this.state.likes.some(i=>i.type==Ge.LikeType.Positive&&i.authorAccountId==this.state.accountId))}t(e){return`product_shared.assets.product_question.${e}`}trackByAttachment(e,i){return i.id}async like(e){if(!this.jwtService.hasJwt()){this.matDialog.open(gi,E({},fe));return}let i=this.state.likes.find(u=>u.authorAccountId==this.jwtService.jwtPayload.accountId),n;i?i.type==e?n=this.questionsLikesDataAccess.unlike({productQuestionId:this.question.id}):n=this.questionsLikesDataAccess.setType({productQuestionId:this.question.id,type:i.type==Ge.LikeType.Positive?Ge.LikeType.Negative:Ge.LikeType.Positive}):n=this.questionsLikesDataAccess.like({productQuestionId:this.question.id,type:Ge.LikeType[e]}),n.subscribe(u=>{this.state.likes=u.likes,this.calcLikes(),this.cdr.markForCheck()},()=>{})}static{this.\u0275fac=function(i){return new(i||t)(h(ee),h(be),h(se),h(Jn),h(yt),h(Fe),h(tt))}}static{this.\u0275cmp=y({type:t,selectors:[["app-shared-product-card-assets-question"]],inputs:{question:"question",questionLikes:"questionLikes"},standalone:!1,decls:20,vars:13,consts:[[1,"c"],[1,"c-header"],[1,"c-header-name-and-date"],[1,"c-header-name"],[1,"c-header-date"],[1,"c-contents"],[1,"c-contents-label"],[1,"c-contents-body"],[3,"innerHTML"],[1,"c-response"],[1,"c-likes"],[1,"c-response-icon"],["width","24","height","24","viewBox","0 0 24 24","fill","none","xmlns","http://www.w3.org/2000/svg"],["clip-path","url(#clip0_302_114656)"],["cx","12","cy","12","r","12","fill","#253238"],["d","M5.29983 11.7443C5.26162 11.4453 5.24252 11.2958 5.28913 11.1799C5.33006 11.0781 5.40463 10.9933 5.50042 10.9398C5.60952 10.8789 5.76022 10.8789 6.06163 10.8789H7.61734C7.91962 10.8789 8.07077 10.8789 8.18002 10.9401C8.27595 10.9938 8.35054 11.0788 8.39131 11.1809C8.43776 11.2971 8.41811 11.447 8.37882 11.7467L7.59559 17.7217H6.0638L5.29983 11.7443Z","fill","#F6F7F8"],["d","M10.1808 6.37906C11.0895 6.21862 12.2714 6.12109 13.4979 6.12109C15.5885 6.12109 16.9486 6.52691 17.9791 7.35113C19.1135 8.24456 19.8262 9.66336 19.8262 11.7113C19.8262 13.926 19.066 15.4455 18.0266 16.3893C16.8744 17.4022 15.1104 17.8773 12.9752 17.8773C11.7012 17.8773 10.7717 17.7892 10.1719 17.7074V6.37906H10.1808ZM12.6367 15.7915C12.8416 15.8419 13.1979 15.8419 13.4979 15.8419C15.7489 15.8607 17.2189 14.5521 17.2189 11.79C17.2189 9.38652 15.8885 8.11558 
1313.7592 8.11558C13.2247 8.11558 12.8505 8.16592 12.6426 8.21625V15.7947H12.6367V15.7915Z","fill","#F6F7F8"],["d","M8.42286 7.71534C8.42286 8.58502 7.71783 9.29005 6.84815 9.29005C5.97846 9.29005 5.27344 8.58502 5.27344 7.71534C5.27344 6.84565 5.97846 6.14062 6.84815 6.14062C7.71783 6.14062 8.42286 6.84565 8.42286 7.71534Z","fill","#69A042"],["id","clip0_302_114656"],["width","24","height","24","fill","white"],[1,"c-response-contents"],[1,"c-response-contents-text",3,"innerHTML"],[1,"c-like"],[3,"click","ngClass"],["width","22","height","22","viewBox","0 0 22 22","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M6 21H3a2 2 0 0 1-2-2v-7a2 2 0 0 1 2-2h3m7-2V4a3 3 0 0 0-3-3l-4 9v11h11.28a2 2 0 0 0 2-1.7l1.38-9a2 2 0 0 0-2-2.3H13Z","stroke","#B0BFC6","stroke-width","2","stroke-linecap","round","stroke-linejoin","round"],[1,"c-like-counter",3,"innerHTML"],["d","M16 1h2.67A2.31 2.31 0 0 1 21 3v7a2.31 2.31 0 0 1-2.33 2H16m-7 2v4a3 3 0 0 0 3 3l4-9V1H4.72a2 2 0 0 0-2 1.7l-1.381 9a2 2 0 0 0 2 2.3H9Z","stroke","#B0BFC6","stroke-width","2","stroke-linecap","round","stroke-linejoin","round"]],template:function(i,n){i&1&&(a(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),p(4,gd,2,1,"span"),p(5,vd,3,3,"span"),r(),a(6,"div",4)(7,"span"),v(8),f(9,"ruDate"),r()()()(),a(10,"div",5)(11,"div",6)(12,"span"),v(13),f(14,"translate"),r()(),a(15,"div",7),d(16,"div",8),f(17,"rtfMultiline"),r()(),p(18,_d,16,4,"div",9),p(19,yd,11,4,"div",10),r()),i&2&&(o(4),m(n.question.isAnonymous?-1:4),o(),m(n.question.isAnonymous?5:-1),o(3),_(C(9,7,n.question.createdAt)),o(5),_(C(14,9,n.t("comment"))),o(3),l("innerHTML",C(17,11,n.question.contents),R),o(2),m(n.question.response?18:-1),o(),m(n.isBrowser?19:-1))},dependencies:[j,K,ui,hi],encapsulation:2})}}return t})();var Ti=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=mt({type:t})}static{this.\u0275inj=dt({imports:[Bt,yo]})}}return t})();var bd=(t,c)=>c.sid;function wd(t,c){if(t&1){let e=S();a(0,"a",2),b("click",function(){let n=w(e).$implicit,u=s(2);return P(u.scrollTo(n.relatedBlockSid))}),v(1),r()}if(t&2){let e=c.$implicit;o(),_(e.title)}}function Pd(t,c){if(t&1&&(a(0,"nav",0),D(1,wd,2,1,"a",1,bd),r()),t&2){let e=s();o(),T(e.pills())}}var Sd=(()=>{class t{constructor(e){this.document=e,this.dto=g(),this.pills=z(()=>{let i=this.dto();return!i||!i.enableNavigation||!i.navigation||i.navigation.length===0?[]:i.navigation.filter(n=>!n.parentSid)})}scrollTo(e){let i=this.document.getElementById(e);i&&i.scrollIntoView({behavior:"smooth",block:"start"})}static{this.\u0275fac=function(i){return new(i||t)(h(pt))}}static{this.\u0275cmp=y({type:t,selectors:[["app-content-navigation-pills"]],inputs:{dto:[1,"dto"]},standalone:!1,decls:1,vars:1,consts:[["aria-label","\u041D\u0430\u0432\u0438\u0433\u0430\u0446\u0438\u044F",1,"content-navigation-pills"],[1,"content-navigation-pills__pill"],[1,"content-navigation-pills__pill",3,"click"]],template:function(i,n){i&1&&p(0,Pd,3,0,"nav",0),i&2&&m(n.pills().length>0?0:-1)},styles:[`.content-navigation-pills{display:flex;flex-wrap:wrap;gap:10px}.content-navigation-pills .content-navigation-pills__pill{padding:9px 13px;border:1px solid #e3e8ef;border-radius:999px;background:var(--color-white);font-size:14px;color:var(--color-black);text-decoration:none;cursor:pointer}.content-navigation-pills .content-navigation-pills__pill:hover{border-color:var(--color-black)}
14`],encapsulation:2})}}return t})();var qo=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=mt({type:t})}static{this.\u0275inj=dt({imports:[Ln,Bt,Ti,fi]})}}return t})();function kd(t,c){if(t&1&&(a(0,"div",2)(1,"div",4),d(2,"img",5),r()()),t&2){let e=s(2);o(2),l("src",e.resolvedData()?.manufacturer?.dealerImage?.url||e.resolvedData()?.manufacturer?.image?.url||"",he),I("alt",e.resolvedData()?.manufacturer?.title||"")}}function Md(t,c){if(t&1&&d(0,"div",3),t&2){let e=s(2);l("innerHTML",e.cleanedDealerDescription(),R)}}function Bd(t,c){if(t&1&&(a(0,"a",0)(1,"div",1),p(2,kd,3,2,"div",2),p(3,Md,1,1,"div",3),r()()),t&2){let e=s();l("routerLink",e.manufacturerRouterLink||"#"),o(2),m(e.resolvedData()?.manufacturer?2:-1),o(),m(e.cleanedDealerDescription()?3:-1)}}var Dd=(()=>{class t{constructor(e,i){this.urlBuilder=e,this.sanitizer=i,this.resolvedData=g(),this.cleanedDealerDescription=z(()=>{let n=this.resolvedData()?.manufacturer,u=n?.dealerDescription||"",x=n?.title?.trim(),B=x?`\u0421\u0435\u0440\u0442\u0438\u0444\u0438\u043A\u0430\u0442 ${x}`:"",V=this.injectAltIntoImages(u,B),we=this.convertImgAttributes(V),Pe=this.stripHtml(we);return this.sanitizer.bypassSecurityTrustHtml(Pe)})}convertImgAttributes(e){return e.replace(/\s(src=)/gi," data-src=").replace(/\s(srcset=)/gi," data-srcset=").replace(/\s(sizes=)/gi," data-sizes=")}injectAltIntoImages(e,i){return i?e.replace(/<img(?![^>]*\balt=)[^>]*?>/gi,n=>n.replace(/\/?>/,` alt="${this.escapeHtmlAttr(i)}"$&`)):e}escapeHtmlAttr(e){return e.replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}get hasManufacturer(){return this.resolvedData()?.manufacturer?.isDealer===!1}get hasDealer(){return this.resolvedData()?.manufacturer?.isDealer===!0}stripHtml(e){return e.replace(/<(?!img\b)[^>]+>/gi,"")}get productRouterLink(){let e=this.resolvedData()?.product?.id;if(!e)return null;try{return this.urlBuilder.urlLink({type:Te.Product,payload:{productId:e}})}catch(i){return console.error("Error generating productRouterLink:",i),null}}get manufacturerRouterLink(){let e=this.resolvedData()?.manufacturer?.uri;if(!e)return null;try{return this.urlBuilder.urlLink({type:Te.Manufacturer,payload:{vendorUrl:e}})}catch(i){return console.error("Error generating manufacturerRouterLink:",i),null}}static{this.\u0275fac=function(i){return new(i||t)(h(Ne),h(Ct))}}static{this.\u0275cmp=y({type:t,selectors:[["app-product-manufacturer-dealer"]],inputs:{resolvedData:[1,"resolvedData"]},standalone:!1,decls:1,vars:1,consts:[["rel","nofollow",1,"c-dealer",3,"routerLink"],[1,"c-box"],[1,"c-dealer-image"],[1,"c-dealer-title",3,"innerHTML"],[1,"image-container"],["loading","lazy",3,"src"]],template:function(i,n){i&1&&p(0,Bd,4,3,"a",0),i&2&&m(n.hasDealer&&n.manufacturerRouterLink?0:-1)},dependencies:[xe],encapsulation:2})}}return t})();var K2=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=mt({type:t})}
14static{this.\u0275inj=dt({imports:[Bt,qo,Ti]})}}return t})();export{bo as a,wo as b,N as c,Ut as d,qt as e,It as f,Gt as g,Et as h,We as i,wn as j,Nl as k,jo as l,Ee as m,Sn as n,At as o,nd as p,Ms as q,Pn as r,Tl as s,Dd as t,K2 as u,od as v,Cd as w,xd as x,Ti as y,Sd as z,qo as A};

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.