1import{R as j}from"./chunk-WKLBE66B.js";import{a as A}from"./chunk-H7CCOU6M.js";import{Ma as L,Sa as z,b as k,eb as D,fb as U}from"./chunk-L6EN2BW6.js";import{a as W}from"./chunk-CE5WL3A7.js";import{h as F}from"./chunk-D3VLNOII.js";import{Ca as B,Dc as b,Hb as s,Ib as d,Jb as g,Kb as u,Lb as x,Sb as h,Vb as T,Wb as I,Yc as H,_a as v,ab as y,bc as E,cc as p,cd as M,dc as P,eb as i,ec as f,fb as S,oc as R,oh as $,tb as m,v as w,vb as o,w as O,yc as r,zc as a}from"./chunk-ADQO3XXX.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(L),this.changeBatteryWarehouseUrl$=this.sipSiteConfigService.getConfig(z),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(F),S(U),S(k),S(D),S(j))},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,A,M,$,W],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.