1import{a as A}from"./chunk-SBGOI54C.js";import{a as U}from"./chunk-5BYY3CUG.js";import{ib as z,j as F,jb as D,p as W}from"./chunk-NGFOYMLE.js";import{c as k}from"./chunk-FCZ6MCLW.js";import{f as L}from"./chunk-ABACGHJ4.js";import{a as j}from"./chunk-HTGKFTJD.js";import{$a as v,Ac as a,Ca as B,Ec as b,Ib as s,Jb as d,Kb as g,Lb as u,Mb as x,Tb as h,Wb as T,Xb as I,Zc as H,bb as y,cc as E,dc as p,dd as M,ec as P,fb as i,fc as f,gb as S,pc as R,ub as m,uh as $,v as w,w as O,wb as o,zc as r}from"./chunk-ZIECK5QA.js";var q=()=>({changeWarehouse:"true"});function Y(t,n){if(t&1&&(s(0,"div",4)(1,"h5",5),g(2,"span",6),r(3,"cxTranslate"),s(4,"span")(5,"strong"),p(6),d(),p(7),s(8,"span",7),p(9),r(10,"cxTranslate"),s(11,"a",8),g(12,"span",6),r(13,"safeHtml"),d()()()(),s(14,"h5",9)(15,"a",10),r(16,"async"),p(17),r(18,"cxTranslate"),d()()()),t&2){let e=h(3);i(2),o("innerHTML",a(3,9,"batteries.warehouse.newbatteryservicecenter"),v),i(4),P(e.batteryPointOfService.name),i(),f(", ",e.batteryPointOfService.address,", "),i(2),f(" ",a(10,11,"tire.warehouse.telephone")," "),i(2),I("href","Tel:",e.batteryPointOfService.phone,"",y),i(),o("innerHTML",a(13,13,e.batteryPointOfService.phone),v),i(3),T("sipRouterLink",a(16,15,e.changeBatteryWarehouseUrl$)),i(2),f(" ",a(18,17,"tire.warehouse.change")," ")}}function G(t,n){if(t&1&&(u(0),m(1,Y,19,19,"div",3),x()),t&2){let e=h(2);i(),o("ngIf",!!(e.batteryPointOfService.name||e.batteryPointOfService.address))}}function J(t,n){if(t&1&&(u(0),m(1,G,2,1,"ng-container",2),x()),t&2){let e=h();i(),o("ngIf",!e.shouldRenderSkeleton&&e.batteryPointOfService)}}function K(t,n){if(t&1&&(s(0,"div",4)(1,"h5",5),g(2,"span",6),r(3,"cxTranslate"),s(4,"span")(5,"strong"),p(6),d(),p(7),s(8,"span",7),p(9),r(10,"cxTranslate"),s(11,"a",8),g(12,"span",6),r(13,"safeHtml"),d()()()(),s(14,"h5",9)(15,"a",11),r(16,"async"),p(17),r(18,"cxTranslate"),d()()()),t&2){let e=h().ngIf,l=h(2);i(2),o("innerHTML",a(3,10,"tire.warehouse.newservicecenter"),v),i(4),P(e.displayName),i(),f(", ",e.address==null?null:e.address.formattedAddress,", "),i(2),f(" ",a(10,12,"tire.warehouse.telephone")," "),i(2),I("href","Tel:",e.tireServiceCenterPhone,"",y),i(),o("innerHTML",a(13,14,e.tireServiceCenterPhone),v),i(3),T("sipRouterLink",a(16,16,l.changeWarehouseUrl$)),o("queryParams",R(20,q)),i(2),f(" ",a(18,18,"tire.warehouse.change")," ")}}function Q(t,n){if(t&1&&(u(0),m(1,K,19,21,"div",3),x()),t&2){let e=n.ngIf;i(),o("ngIf",!!(e.displayName||e.address))}}function V(t,n){if(t&1&&(m(0,Q,2,1,"ng-container",2),r(1,"async")),t&2){let e=h();o("ngIf",a(1,1,!e.shouldRenderSkeleton&&e.pointOfService$))}}var me=(()=>{let n=class n{constructor(l,c,_,C,N){this.sipSiteConfigService=l,this.storeFinderService=c,this.cmsComponentService=_,this.tireService=C,this.sipProductCompareService=N,this.shouldRenderSkeleton=this.cmsComponentService.shouldRenderSkeleton(),this.changeWarehouseUrl$=this.sipSiteConfigService.getConfig(F),this.changeBatteryWarehouseUrl$=this.sipSiteConfigService.getConfig(W),this.isCompareProductHasAllBatteries$=this.sipProductCompareService.containsAllBatteryProducts$}ngOnInit(){this.isBatteriesFlow$=O([this.tireService.isBatteriesPlp$,this.tireService.isBatteryPdp$,this.isCompareProductHasAllBatteries$]).pipe(w(([l,c,_])=>l||c||_)),this.batteryPointOfService=this.tireService.getBatteryStoreDetailsFromSession(),this.pointOfService$=this.storeFinderService.getPointOfService()}};n.\u0275fac=function(c){return new(c||n)(S(L),S(D),S(k),S(z),S(A))},n.\u0275cmp=B({type:n,selectors:[["sip-tire-warehouse-selection"]],decls:4,vars:4,consts:[["isTiresFlow",""],[4,"ngIf","ngIfElse"],[4,"ngIf"],["class","col-sm-9 col-md-9 col-lg-9 warehouse__address",4,"ngIf"],[1,"col-sm-9","col-md-9","col-lg-9","warehouse__address"],[1,"col-xs-9","col-md-9"],[3,"innerHTML"],[1,"search--telephone"],[3,"href"],[1,"col-xs-3","col-md-3"],[1,"change__warehouse",3,"sipRouterLink"],[1,"change__warehouse",3,"sipRouterLink","queryParams"]],template:function(c,_){if(c&1&&(m(0,J,2,1,"ng-container",1),r(1,"async"),m(2,V,2,3,"ng-template",null,0,b)),c&2){let C=E(3);o("ngIf",a(1,2,_.isBatteriesFlow$))("ngIfElse",C)}},dependencies:[H,U,M,$,j],styles:[".warehouse__address[_ngcontent-%COMP%]{padding:15px;background:#eaeaea;border:1px solid #9c9c9c;overflow:auto;width:100%;margin-bottom:20px;z-index:1}.warehouse__address[_ngcontent-%COMP%] h5[_ngcontent-%COMP%]{font-size:16px}.warehouse__address[_ngcontent-%COMP%] .search--telephone[_ngcontent-%COMP%]{display:inline-block}.warehouse__address[_ngcontent-%COMP%] .change__warehouse[_ngcontent-%COMP%]{font-size:16px;float:right}"],changeDetection:0});let t=n;return t})();export{me 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.