(window.webpackJsonp=window.webpackJsonp||[]).push([[42],{307:function(t,e,n){"use strict";n(28),n(54);e.a={methods:{getEncodedAddress:function(t){var e="";return t.address_one&&(e+=t.address_one),t.address_two&&(e+=" ".concat(t.address_two)),t.city&&(e.length&&(e+=", "),e+=t.city),t.state&&(e.length&&(e+=", "),e+=t.state),t.postal_code&&(e.length&&(e+=" "),e+=t.postal_code),e?e.replace(/\s+/gi,"+").replace(/#+/gi,"%23"):e}}}},479:function(t,e,n){"use strict";n.r(e);n(16),n(31),n(32);var o={name:"TzContactInfo",components:{TzBusinessHours:function(){return n.e(9).then(n.bind(null,493))}},mixins:[n(307).a],inject:["rootData"],props:{alignment:{type:String,default:function(){return""}},hoursDirectionXs:{type:String,default:function(){return""}},iconClass:{type:String,default:function(){return""}},language:{type:String,default:function(){return"en-US"}},location:{type:Object,default:function(){return{}}},schema:{type:Object,default:function(){return{}}},textColor:{type:String,default:function(){return"dark"}}},data:function(){return{getDirText:""}},computed:{computedIconClass:function(){switch(this.iconClass){case"accent":default:return"fill-accent";case"white":return"fill-white";case"dark":return"fill-neutral-700";case"gradient-start":return"fill-gradient-start";case"gradient-end":return"fill-gradient-end";case"extra-one":return"fill-extra-one"}},computedTextClass:function(){return"dark"!==this.textColor?"text-white":"text-dark"},encodedAddress:function(){return this.getEncodedAddress(this.location)}},created:function(){var t=this;Promise.resolve().then(n.bind(null,297)).then((function(e){var n=e.default;t.getDirText=n[t.language].GET_DIRECTIONS})).catch((function(){t.getDirText="Get directions"}))},methods:{getLineThree:function(){var line="";return this.location.city&&(line+=this.location.city),this.location.state&&(line.length&&(line+=", "),line+=this.location.state),this.location.postal_code&&(line.length&&(line+=" "),line+=this.location.postal_code),line},hasLocation:function(){return this.location&&(this.location.address_one||this.location.address_two||this.location.city||this.location.postal_code||this.location.state)}}},c=n(12),component=Object(c.a)(o,(function(){var t=this,e=t._self._c;return e("div",{directives:[{name:"tz-font-styles",rawName:"v-tz-font-styles",value:{rootData:t.rootData},expression:"{ rootData: rootData }"}],class:t.computedTextClass},[t.hasLocation()?e("tz-row",{staticClass:"items-center mb-3",class:{"flex-col justify-center":"center"===t.alignment}},[e("tz-col",{ref:"mapIcon",class:{shrink:"center"!==t.alignment,"flex-col items-center justify-center basis-full":"center"===t.alignment},attrs:{grow:!1}},[e("tz-icon",{class:[{"mr-5":"center"!==t.alignment}],attrs:{"icon-class":t.computedIconClass,icon:"mdiMapMarker"}})],1),t._v(" "),e("tz-col",{class:[{"flex-col items-center justify-center basis-full text-center":"center"===t.alignment}]},[e(t.encodedAddress?"a":"div",{tag:"component",staticStyle:{"text-decoration":"none"},attrs:{href:t.encodedAddress?"https://maps.google.com/?q="+t.encodedAddress:void 0,target:t.encodedAddress?"_blank":void 0}},[t.location.company_name?e("div",[e("b",[t._v(t._s(t.location.company_name))])]):t._e(),t._v(" "),t.location.address_one?e("span",[t._v(t._s(t.location.address_one))]):t._e(),t._v(" "),t.location.address_one&&t.location.address_two?e("br"):t._e(),t._v(" "),t.location.address_two?e("span",[t._v(t._s(t.location.address_two))]):t._e(),t._v(" "),(t.location.address_one||t.location.address_two)&&t.location.city?e("br"):t._e(),t._v(" "),t.getLineThree()?e("span",[t._v("\n          "+t._s(t.getLineThree())+"\n        ")]):t._e()])],1)],1):t._e(),t._v(" "),t.location.displayDirections?e("tz-row",{staticClass:"mb-3 items-center",class:{"flex-col justify-center":"center"===t.alignment}},[e("tz-col",{ref:"mapIcon",class:{shrink:"center"!==t.alignment,"flex-col items-center justify-center basis-full":"center"===t.alignment},attrs:{grow:!1}},[e("tz-icon",{class:[{"mr-5":"center"!==t.alignment}],attrs:{"icon-class":t.computedIconClass,icon:"mdiDirections"}})],1),t._v(" "),e("tz-col",{class:[{"flex-col items-center justify-center basis-full ":"center"===t.alignment}]},[e("a",{staticStyle:{"text-decoration":"none"},attrs:{href:"https://maps.google.com/?q="+t.encodedAddress,target:"_blank"}},[e("span",[t._v(t._s(t.getDirText))])])])],1):t._e(),t._v(" "),t.location.website_url?e("tz-row",{staticClass:"grow shrink items-center mb-3",class:{"flex-col justify-center":"center"===t.alignment}},[e("tz-col",{ref:"mapIcon",class:{shrink:"center"!==t.alignment,"flex-col items-center justify-center basis-full":"center"===t.alignment},attrs:{grow:!1}},[e("tz-icon",{class:[{"mr-5":"center"!==t.alignment}],attrs:{"icon-class":t.computedIconClass,icon:"mdiOpenInNew"}})],1),t._v(" "),e("tz-col",{staticClass:"shrink grow",class:[{"flex-col items-center justify-center basis-full":"center"===t.alignment}]},[e("a",{staticStyle:{"text-decoration":"none"},attrs:{href:t.location.website_url,target:"_blank"}},[e("span",[t._v(t._s(t.location.website_url))])])])],1):t._e(),t._v(" "),t.location.email?e("tz-row",{staticClass:"mb-3 grow shrink items-center",class:{"flex-col justify-center":"center"===t.alignment}},[e("tz-col",{ref:"mapIcon",class:{shrink:"center"!==t.alignment,"flex-col items-center justify-center basis-full":"center"===t.alignment},attrs:{grow:!1}},[e("tz-icon",{class:[{"mr-5":"center"!==t.alignment}],attrs:{"icon-class":t.computedIconClass,icon:"mdiEmail"}})],1),t._v(" "),e("tz-col",{class:[{"flex-col items-center justify-center basis-full ":"center"===t.alignment}]},[e("a",{staticStyle:{"text-decoration":"none"},attrs:{href:"mailto:"+t.location.email,target:"_blank"}},[e("span",[t._v(t._s(t.location.email))])])])],1):t._e(),t._v(" "),t.location.business_hours&&!t.location.closed_location?e("tz-row",{staticClass:"items-center mb-3",class:{"flex-col justify-center":"center"===t.alignment},attrs:{justify:t.location.open_all_week?"center":void 0}},[e("tz-col",{ref:"clockIcon",class:{shrink:"center"!==t.alignment,"flex-col items-center justify-center":"center"===t.alignment},attrs:{grow:!1}},[e("tz-icon",{class:[{"mr-5":"center"!==t.alignment}],attrs:{"icon-class":t.computedIconClass,icon:"mdiClock"}})],1),t._v(" "),e("tz-col",[e("tz-business-hours",{attrs:{location:t.location,alignment:t.alignment,"day-classes":"font-medium",language:t.language}})],1)],1):t._e()],1)}),[],!1,null,null,null);e.default=component.exports}}]);