iBet uBet web content aggregator. Adding the entire web to your favor.
iBet uBet web content aggregator. Adding the entire web to your favor.



Link to original content: http://www.homedepot.com/services/js/chunk-441bbef2.2c0181cb.js
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-441bbef2","chunk-15fc8f78"],{"0284":function(t,e,s){},"0379":function(t,e,s){},"22ae":function(t,e,s){"use strict";s.r(e);var i=function(){var t=this,e=t._self._c;return t.showSection?e("div",{staticClass:"p-y-3 p-y-6"},[t.section.heading&&t.isLocalPage?e("section-heading",{attrs:{title:t.heading,subtitle:t.subHeader}}):t._e(),t.section.heading&&!t.isLocalPage?e("section-heading-with-zipcode",{attrs:{title:t.heading,subtitle:t.subHeader}}):t._e(),t.showLoading?e("sawblade",{staticClass:"m-x-auto m-y-3"}):[e("summarized-job-data",{attrs:{section:t.section}}),e("div",{staticClass:"d-flex jc-center"},[e("router-link",{staticClass:"btn m-y-3 p-x-6",attrs:{to:t.preservePrefix({name:"service-projects",params:{location:t.getLocation,page:1}})}},[t._v(" "+t._s(t.section.buttonText)+" ")])],1)]],2):t._e()},a=[],n=s("ade3"),c=s("5530"),r=s("2f62"),o=s("6f68"),l=s("a38a"),d=s("5fb0"),u=s("7f6d"),p=function(){var t=this,e=t._self._c;return e("div",{staticClass:"d-flex jc-center fd-column fd-row:d p-x-1:mo"},[e("div",{staticClass:"BOX m-r-2:d w-100:mo p-x-3 p-y-2"},[e("span",{staticClass:"HEADING"},[t._v(t._s(t.section.costEstimateTitle))]),e("span",{staticClass:"text-large text-bold"},[t._v("Brand")]),e("vk-carousel",{staticClass:"pos-relative CAROUSEL p-0:mo",class:{"m-b-3:d p-0":1===t.dotsCount},attrs:{"arrows-hidden":""},on:{"scroll-done":t.updateActiveIndex}},[e("template",{slot:"custom"},[t.displayDots?e("vk-carousel-arrow",{staticClass:"OVERLAY-ARROW-HALF-LEFT",attrs:{size:42}}):t._e(),t.displayDots?e("vk-carousel-arrow",{staticClass:"OVERLAY-ARROW-HALF-RIGHT",attrs:{size:42,direction:"right"}}):t._e(),e("vk-carousel-content",t._l(t.brands,(function(s,i){return e("div",{key:i,staticClass:"BRAND cur-pointer",class:{SELECTED:i==t.selectedBrand},on:{click:function(e){return t.onBrandSelect(s,i)}}},[e("div",{staticClass:"BRAND-INNER d-flex jc-center ai-center"},[e("dynamic-image",{staticClass:"BRAND-LOGO",attrs:{url:t.logoUrl(s.brand_name),alt:s.brand_name}})],1),e("div",{staticClass:"m-t-1"},[e("div",{staticClass:"BRAND-NAME text-center"},[t._v(" "+t._s(s.brand_name)+" ")])])])})),0)],1)],2),t.displayDots?e("pagination-dots",{attrs:{count:t.dotsCount,active:t.activeIndex}}):t._e(),e("div",{staticClass:"input-container m-t-0:d m-b-3",attrs:{static:""}},[e("span",{staticClass:"text-large text-bold"},[t._v("Number of Windows")]),e("vk-number-stepper",{attrs:{min:1,max:10},model:{value:t.numberOfWindows,callback:function(e){t.numberOfWindows=e},expression:"numberOfWindows"}})],1),e("div",{staticClass:"COST d-flex m-x-1"},[e("div",{staticClass:"COST-CONTAINER d-flex ai-center"},[e("div",{staticClass:"COST-ARROW ROTATE-DOWN"}),e("div",[e("span",{staticClass:"COST-TITLE"},[t._v("Lowest Cost")]),e("br"),e("price",{attrs:{value:t.lowestCost,decimals:!1}})],1)]),e("div",{staticClass:"COST-AVERAGE text-bold"},[e("span",{staticClass:"COST-AVERAGE-TITLE"},[t._v("Average Cost")]),e("price",{attrs:{value:t.averageCost,decimals:!1,size:"lg"}})],1),e("div",{staticClass:"COST-CONTAINER d-flex ai-center jc-end"},[e("div",{staticClass:"text-right"},[e("span",{staticClass:"COST-TITLE"},[t._v("Highest Cost")]),e("br"),e("price",{attrs:{value:t.highestCost,decimals:!1}})],1),e("div",{staticClass:"COST-ARROW ROTATE-UP"})])])],1),e("div",{staticClass:"TILE BOX w-100:mo"},[e("dynamic-image",{staticClass:"TILE-IMAGE flex-1-0:d",attrs:{url:t.section.image.desktop.file.url,alt:t.section.image.altText}}),e("div",{staticClass:"TILE-BODY text-center"},[e("span",{staticClass:"TILE-HEADER text-bold"},[t._v(t._s(t.section.priceFactorsHeader))]),e("div",{staticClass:"TILE-DETAILS text-left",domProps:{innerHTML:t._s(t.section.priceFactors)}})])],1)])},b=[],f=(s("b65f"),s("99af"),s("7cc2")),m=s("c720"),h={name:"summarized-job-data",components:{PaginationDots:f["a"],DynamicImage:m["a"]},props:{section:{type:Object,required:!0}},data:function(){return{numberOfWindows:1,activeIndex:0,selectedBrand:0}},computed:Object(c["a"])(Object(c["a"])(Object(c["a"])(Object(c["a"])({},Object(r["c"])("local",["cityName","stateAbbrev"])),Object(r["c"])("jobs",["brands","totalCount"])),Object(r["e"])("service",["service"])),{},{dotsCount:function(){return Math.ceil(this.brands.length/4)},displayDots:function(){return this.dotsCount>1&&!this.$device.isMobile&&!this.$device.isTablet},selectedBrandObj:function(){return this.brands[this.selectedBrand]},lowestCost:function(){return this.selectedBrandObj.min_cost*this.numberOfWindows},averageCost:function(){return this.selectedBrandObj.avg_cost*this.numberOfWindows},highestCost:function(){return this.selectedBrandObj.max_cost*this.numberOfWindows}}),watch:{numberOfWindows:{handler:function(t){this.$events.$emit(this.$events.SJDW_WINDOW_CHANGED,{numberOfWindows:t})}}},methods:{updateActiveIndex:function(t){var e=t.visibleIndex;this.activeIndex=e%4===0?e/4:Math.trunc(e/4)+1},onBrandSelect:function(t,e){this.selectedBrand=e,this.$events.$emit(this.$events.SJDW_BRAND_CHANGED,{brand:t.brand_name})},logoUrl:function(t){var e=encodeURIComponent(t);return"".concat(this.$store.$imageBucket,"/brand-logos/").concat(e,".png")}}},v=h,O=(s("a4c0"),s("2877")),C=Object(O["a"])(v,p,b,!1,null,"3ef30c05",null),j=C.exports,_=s("8569"),g={name:"section-summarized-job-data",components:{SummarizedJobData:j,SectionHeadingWithZipcode:_["default"]},props:{section:{type:Object,required:!0}},data:function(){return{numberOfWindows:1,activeIndex:0}},computed:Object(c["a"])(Object(c["a"])(Object(c["a"])(Object(c["a"])(Object(c["a"])({},Object(r["c"])("local",["cityName","stateAbbrev"])),Object(r["c"])("jobs",["brands","totalCount","hasItems"])),Object(r["e"])("service",["service"])),Object(r["e"])("jobs",["loadingProjects","showSection","stateName","zipcode","isNational"])),{},{heading:function(){var t;return Object(o["insertReplacements"])(this.section.heading,(t={},Object(n["a"])(t,d["F"].CITY_NAME,this.cityName),Object(n["a"])(t,d["F"].STATE_ABBREV,this.stateAbbrev),Object(n["a"])(t,d["F"].SERVICE_NAME,this.service.title),t))},subHeader:function(){var t;return Object(o["insertReplacements"])(this.section.subHeader,(t={},Object(n["a"])(t,d["F"].CITY_NAME,this.cityName),Object(n["a"])(t,d["F"].PROJECT_COUNT,this.totalCount||0),Object(n["a"])(t,d["F"].SERVICE_NAME,this.service.title),t))},showLoading:function(){return this.loadingProjects||!this.brands.length},isLocalPage:function(){return Object(u["x"])(this.$route)},fullStateName:function(){return l["s"][this.stateName]},getLocation:function(){var t;return t=this.isNational?"US":this.stateName||this.zipcode,t}})},x=g,I=(s("ef86"),Object(O["a"])(x,i,a,!1,null,"7dc3e595",null));e["default"]=I.exports},3581:function(t,e,s){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=s("7681");function a(t){return i.default.get("/platform/coresearch/r/hd/local/jobs/count/v1",{params:t})}e.default=a},4096:function(t,e,s){},"5a6e":function(t,e,s){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getJobCount=e.deleteJobsDisableCustomer=void 0;var i=s("eeb0");Object.defineProperty(e,"deleteJobsDisableCustomer",{enumerable:!0,get:function(){return i.default}});var a=s("3581");Object.defineProperty(e,"getJobCount",{enumerable:!0,get:function(){return a.default}})},"7cc2":function(t,e,s){"use strict";var i=function(){var t=this,e=t._self._c;return e("div",{staticClass:"text-center"},t._l(t.count,(function(s,i){return e("div",{key:i,staticClass:"DOT",class:{ACTIVE:t.active===i}})})),0)},a=[],n=(s("a9e3"),{name:"pagination-dots",props:{count:{type:Number,required:!0},active:{type:Number,required:!0}}}),c=n,r=(s("b2c7"),s("2877")),o=Object(r["a"])(c,i,a,!1,null,"bdf17028",null);e["a"]=o.exports},8569:function(t,e,s){"use strict";s.r(e);var i=function(){var t=this,e=t._self._c;return e("div",{staticClass:"SECTION-HEADING"},[t.title?e("h2",{staticClass:"TITLE",class:t.subtitle?"m-b-2 m-b-3:t":"m-b-3 m-b-2:t",attrs:{selenium:"section-heading-with-zipcode"}},[t._v(" "+t._s(t.title)+" ")]):t._e(),t.subtitle?e("h3",{staticClass:"SUBTITLE",class:t.subtitleClass,attrs:{selenium:"section-heading-with-zipcode"}},[t._v(" "+t._s(t.subtitle)+" "),e("old-zipcode-selector",{staticClass:"ZIPCODE"})],1):t._e()])},a=[],n=s("5530"),c=s("2f62"),r=(s("498a"),function(){var t=this,e=t._self._c;return e("form",{directives:[{name:"click-outside",rawName:"v-click-outside",value:t.clickOutside,expression:"clickOutside"}],staticClass:"d-flex ai-baseline",on:{submit:function(e){return e.preventDefault(),t.fetchProjects(t.$route)}}},[e("vk-icon",{staticClass:"flex-0-0 h6 m-r-1 c-depot",attrs:{name:"pin"}}),t.showInput?e("v-popover-error",{staticClass:"d-iblock",attrs:{open:t.showInvalidZipcode}},[e("div",{staticClass:"d-flex ai-center jc-center"},[e("div",{staticClass:"flex-0-0 input-container",class:{error:t.showInvalidZipcode}},[e("input",{directives:[{name:"model",rawName:"v-model.trim",value:t.internalZipcode,expression:"internalZipcode",modifiers:{trim:!0}},{name:"vk-focus",rawName:"v-vk-focus"}],staticClass:"input",attrs:{maxlength:"5",placeholder:"Zip code"},domProps:{value:t.internalZipcode},on:{input:[function(e){e.target.composing||(t.internalZipcode=e.target.value.trim())},function(e){t.showInvalidZipcode=!1}],blur:function(e){return t.$forceUpdate()}}})]),e("button",{staticClass:"btn",attrs:{type:"submit"}},[t._v(" Submit ")])]),e("template",{slot:"error-message"},[t._v(" "+t._s(t.$options.INVALID_ZIPCODE)+" ")])],2):e("div",{staticClass:"d-iblock h3 text-bold"},[e("a",{staticClass:"link",on:{click:function(e){e.preventDefault(),e.stopPropagation(),t.showInput=!0}}},[t._v(" "+t._s(t.selectorInputValue)+" ")])])],1)}),o=[],l=s("c7eb"),d=s("1da1"),u=(s("b0c0"),s("a9e3"),s("9b02")),p=s.n(u),b=s("5a6e"),f=s("25a3"),m=s("a38a"),h=s("5fb0"),v={name:"old-zipcode-selector",INVALID_ZIPCODE:h["r"].INVALID_ZIPCODE,data:function(){return{showInput:!1,showInvalidZipcode:!1,internalZipcode:null}},computed:Object(n["a"])(Object(n["a"])(Object(n["a"])(Object(n["a"])(Object(n["a"])({},Object(c["e"])("localizer",["storeInfo"])),Object(c["e"])("service",["service"])),Object(c["e"])("route",["name"])),Object(c["e"])("jobs",["stateName","zipcode","hasPrefetchedProjects","prefetchedLocation","isNational"])),{},{userZipcode:function(){return this.zipcode||p()(this.storeInfo,"zipcode",null)},isState:function(){return 0!==this.stateName.length},fullStateName:function(){return m["s"][this.stateName]},selectorInputValue:function(){return this.hasPrefetchedProjects?m["s"][this.prefetchedLocation]||this.prefetchedLocation:this.isNational?"Nationwide":this.isState?this.fullStateName:this.userZipcode}}),watch:{userZipcode:{handler:function(t){this.internalZipcode=t},immediate:!0},showInput:{handler:function(){this.isNational?this.internalZipcode="":this.hasPrefetchedProjects?this.internalZipcode=m["s"][this.prefetchedLocation]?"":this.prefetchedLocation:this.internalZipcode=this.userZipcode}}},methods:{fetchProjects:function(t){var e=this;return Object(d["a"])(Object(l["a"])().mark((function s(){var i,a,n,c,r,o,d,u,p,v,O,C,j;return Object(l["a"])().wrap((function(s){while(1)switch(s.prev=s.next){case 0:return s.prev=0,s.next=3,Object(f["geocode"])({country:"US",zipcodes:e.internalZipcode});case 3:if(i=s.sent,a=i.data.results,!a.length){s.next=39;break}return s.next=8,Object(b["getJobCount"])({service_identifiers:e.service.serviceId,zipcode:e.internalZipcode});case 8:if(n=s.sent,c=n.data.count,e.$store.commit("jobs/setCount",c),r=e.name===h["T"]?m["e"]:h["s"],o=t.params,d=o.serviceId,u=o.page,p=void 0===u?1:u,v=Math.max(0,(Number(p)-1)*r),c&&!(c<3)){s.next=30;break}return O=a[0].state,s.next=18,Object(b["getJobCount"])({service_identifiers:e.service.serviceId,state:O});case 18:if(C=s.sent,j=C.data.count,j&&!(j<3)){s.next=25;break}return s.next=23,e.$store.dispatch("jobs/fetchCityProjectsNational",{service_identifiers:d,size:r,from:v});case 23:s.next=27;break;case 25:return s.next=27,e.$store.dispatch("jobs/fetchCityProjectsState",{service_identifiers:d,state:O,size:r,from:v});case 27:e.$store.commit("jobs/setStateName",O),s.next=33;break;case 30:return s.next=32,e.$store.dispatch("jobs/fetchCityProjectsZip",{service_identifiers:d,zipcode:e.internalZipcode,size:r,from:v});case 32:e.$store.commit("jobs/setStateName","");case 33:e.$store.commit("jobs/setZipcode",e.internalZipcode),e.$events.$emit(e.$events.SJDW_ZIPCODE_CHANGED,{zipcode:e.internalZipcode}),e.$store.commit("jobs/setHasPrefetchedProjects",!1),e.showInput=!1,s.next=40;break;case 39:e.showInvalidZipcode=!0;case 40:s.next=44;break;case 42:s.prev=42,s.t0=s["catch"](0);case 44:case"end":return s.stop()}}),s,null,[[0,42]])})))()},clickOutside:function(){this.showInput=!1,this.showInvalidZipcode=!1}}},O=v,C=(s("f6ce"),s("2877")),j=Object(C["a"])(O,r,o,!1,null,"44cc24aa",null),_=j.exports,g={name:"section-heading-with-zipcode",components:{OldZipcodeSelector:_},props:{title:{type:String,default:""},subtitle:{type:String,default:""},subtitleClass:{type:String,default:"c-gray70"}},computed:Object(n["a"])({},Object(c["e"])("jobs",["count"]))},x=g,I=(s("87c2"),Object(C["a"])(x,i,a,!1,null,"44f8f91f",null));e["default"]=I.exports},"87c2":function(t,e,s){"use strict";s("914f")},"8bc8":function(t,e,s){},"914f":function(t,e,s){},a4c0:function(t,e,s){"use strict";s("8bc8")},b2c7:function(t,e,s){"use strict";s("0284")},b65f:function(t,e,s){var i=s("23e7"),a=s("b42e");i({target:"Math",stat:!0},{trunc:a})},c720:function(t,e,s){"use strict";var i=function(){var t=this,e=t._self._c;return t.prerendered?e("img",{attrs:{attrs:t.$props.attrs,src:t.$props.url}}):e("img",{directives:[{name:"lazy",rawName:"v-lazy",value:t.$props.url,expression:"$props.url"}],attrs:{attrs:t.$props.attrs}})},a=[],n={name:"dynamic-image",props:{url:{type:String,required:!0}},computed:{prerendered:function(){return this.$store.$prerendered}}},c=n,r=s("2877"),o=Object(r["a"])(c,i,a,!1,null,null,null);e["a"]=o.exports},eeb0:function(t,e,s){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=s("7681");function a(t){return i.default.put("/platform/coresearch/r/proreferral/users/inactivate/v1/"+t)}e.default=a},ef86:function(t,e,s){"use strict";s("4096")},f6ce:function(t,e,s){"use strict";s("0379")}}]);