{"version":3,"sources":["webpack:///./node_modules/client-website-ts-library/plugins/view/index.ts","webpack:///./src/views/Contact.vue?e90d","webpack:///./src/views/Contact.vue","webpack:///./src/views/Contact.vue?9a79","webpack:///./src/views/Contact.vue?6aac","webpack:///./src/views/Contact.vue?01ca"],"names":["prolistAnalyticsService","ServiceManager","Get","Analytics","headService","Require","Head","evt","obj","this","getAnalyticsEvent","call","getAnalyticsData","$route","path","name","undefined","triggerAnalyticsEvent","event","GetAll","forEach","adapter","Record","result","head","bind","Promise","then","meta","Update","UpdateWithStatic","requestAnimationFrame","updateHead","updateAnalytics","$on","render","_vm","_h","$createElement","_c","_self","attrs","staticClass","_v","_s","office","FranchiseName","OfficeName","Phone","_e","AddressLine1","AddressLine2","POBoxLine1","POBoxLine2","staticRenderFns","Offices","Website","Settings","WebsiteId","$emit","components","Form","component"],"mappings":"yWAcM,EAAN,yG,0BACY,EAAAA,wBAA0BC,EAAA,KAAeC,IAA6B,OAAYC,UAAW,2BAC7F,EAAAC,YAAcH,EAAA,KAAeI,QAAqB,OAAYC,MAF1E,wDAIS,WACL,IAAIC,EAA6B,KAC7BC,EAAmC,KAED,qBAA3BC,KAAKC,kBACdH,EAAME,KAAKC,kBAAkBC,KAAKF,MACO,qBAA1BA,KAAKG,mBACpBJ,EAAMC,KAAKG,iBAAiBD,KAAKF,OAGvB,OAARF,IAAcA,EAAM,IAAIJ,EAAA,KAAkBM,KAAKI,OAAOC,KAAML,KAAKI,OAAOE,MAAQ,GAAIP,QAAOQ,IAE/FP,KAAKQ,sBAAsBV,KAhB/B,mCAmBS,SAAsBW,GAC3BjB,EAAA,KAAekB,OAA0B,OAAYhB,WAAWiB,SAAQ,SAACC,GACvEA,EAAQC,OAAOJ,QArBrB,yCAyBS,SAA4BA,GACI,OAAjCT,KAAKT,yBAAkCS,KAAKT,wBAAwBsB,OAAOJ,KA1BnF,wBA6BY,WAAU,WAClB,GAAI,SAAUT,KAAM,CAClB,IAAMc,EAASd,KAAKe,KAAMC,KA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AOK,cAAc,KAAKX,EAAG,MAAMH,EAAIO,GAAG,IAAIP,EAAIQ,GAAGR,EAAIS,OAAOM,cAAc,OAAOf,EAAIa,KAAMb,EAAIS,OAAiB,WAAEN,EAAG,KAAK,CAACG,YAAY,0BAA0B,CAACN,EAAIO,GAAG,IAAIP,EAAIQ,GAAGR,EAAIS,OAAOO,YAAY,KAAKb,EAAG,MAAMH,EAAIO,GAAG,IAAIP,EAAIQ,GAAGR,EAAIS,OAAOQ,YAAY,OAAOjB,EAAIa,SAASb,EAAIa,KAAKV,EAAG,OAAO,CAACE,MAAM,CAAC,KAAO,iCAAiC,IAAI,IAAI,IACjjCa,EAAkB,G,wgBC4CD,EAArB,yG,0BACS,EAAAT,OAAwB,KADjC,gDAGE,WAAO,WACL,OAAIU,QAAQrD,IAAI,OAAOsD,QAAQC,SAAUC,WAAW/B,MAAK,SAACkB,GACxD,EAAKA,OAASA,KAEhBpC,KAAKkD,MAAM,kBAPf,GAAqC,eAAO,SAAvB,EAAO,GAL3B,eAAU,CACTC,WAAY,CACVC,OAAA,SAGiB,WC7C6W,I,wBCQ9XC,EAAY,eACd,EACA3B,EACAmB,GACA,EACA,KACA,WACA,MAIa,aAAAQ,E,gECnBf","file":"js/chunk-b2539a3e.add78d6d.js","sourcesContent":["import Vue from \"vue\";\r\nimport { Component } from \"vue-property-decorator\";\r\nimport { AnalyticsEvent, AnalyticsEventObject, AnalyticsPageView, IAnalyticsAdapter, PROListAnalyticsAdapter } from \"../../services/Analytics\";\r\nimport { HeadService } from \"../../services/HeadService\";\r\nimport { ServiceManager, ServiceType } from \"../../services/ServiceManager\";\r\nimport { RouteMeta } from \"../meta\";\r\n\r\ninterface ViewBase {\r\n getAnalyticsEvent?(): AnalyticsEvent | null;\r\n getAnalyticsData?(): AnalyticsEventObject | null;\r\n head?(): RouteMeta | Promise | null;\r\n}\r\n\r\n@Component\r\nclass ViewBase extends Vue {\r\n protected prolistAnalyticsService = ServiceManager.Get(ServiceType.Analytics, 'PROListAnalyticsAdapter');\r\n protected headService = ServiceManager.Require(ServiceType.Head)!;\r\n\r\n public updateAnalytics() {\r\n let evt: AnalyticsEvent | null = null;\r\n let obj: AnalyticsEventObject | null = null;\r\n\r\n if (typeof this.getAnalyticsEvent !== 'undefined') {\r\n evt = this.getAnalyticsEvent.call(this);\r\n } else if(typeof this.getAnalyticsData !== 'undefined') {\r\n obj = this.getAnalyticsData.call(this);\r\n }\r\n\r\n if (evt === null) evt = new AnalyticsPageView(this.$route.path, this.$route.name || '', obj || undefined);\r\n\r\n this.triggerAnalyticsEvent(evt);\r\n }\r\n\r\n public triggerAnalyticsEvent(event: AnalyticsEvent) {\r\n ServiceManager.GetAll(ServiceType.Analytics).forEach((adapter) => {\r\n adapter.Record(event);\r\n });\r\n }\r\n\r\n public triggerCustomAnalyticsEvent(event: AnalyticsEvent) {\r\n if (this.prolistAnalyticsService !== null) this.prolistAnalyticsService.Record(event);\r\n }\r\n\r\n protected updateHead() {\r\n if ('head' in this) {\r\n const result = this.head!.bind(this)();\r\n\r\n if(result instanceof Promise) {\r\n result.then((meta: RouteMeta | null) => {\r\n this.headService.Update(meta);\r\n });\r\n } else {\r\n this.headService.Update(result as RouteMeta | null);\r\n }\r\n } else {\r\n this.headService.UpdateWithStatic(this.$route.path);\r\n }\r\n }\r\n}\r\n\r\n@Component\r\nclass View extends ViewBase {\r\n public mounted() {\r\n requestAnimationFrame(() => {\r\n this.updateHead();\r\n this.updateAnalytics();\r\n });\r\n }\r\n}\r\n\r\n@Component\r\nclass AsyncView extends ViewBase {\r\n public mounted() {\r\n this.$on('updateView', () => {\r\n requestAnimationFrame(() => {\r\n this.updateHead();\r\n this.updateAnalytics();\r\n });\r\n });\r\n }\r\n}\r\n\r\nexport {\r\n View,\r\n AsyncView\r\n}\r\n","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('Page',[_c('SiteMasthead',{attrs:{\"mini\":true,\"title\":\"Contact\"}}),_c('ContentRow',[_c('ContentContainer',{staticClass:\"content-container--narrow\"},[(_vm.office)?_c('div',{staticClass:\"office__contact-methods\"},[_c('ul',[_c('li',{staticClass:\"office__contact-method\"},[_c('h2',[_vm._v(_vm._s(_vm.office.FranchiseName)+\" \"+_vm._s(_vm.office.OfficeName))])]),(_vm.office.Phone)?_c('li',{staticClass:\"office__contact-method\"},[_c('a',{attrs:{\"href\":(\"tel:\" + (_vm.office.Phone))}},[_vm._v(_vm._s(_vm.office.Phone))])]):_vm._e(),(_vm.office.AddressLine1)?_c('li',{staticClass:\"office__contact-method\"},[_vm._v(\" \"+_vm._s(_vm.office.AddressLine1)+\" \"),_c('br'),_vm._v(\" \"+_vm._s(_vm.office.AddressLine2)+\" \")]):_vm._e(),(_vm.office.POBoxLine1)?_c('li',{staticClass:\"office__contact-method\"},[_vm._v(\" \"+_vm._s(_vm.office.POBoxLine1)+\" \"),_c('br'),_vm._v(\" \"+_vm._s(_vm.office.POBoxLine2)+\" \")]):_vm._e()])]):_vm._e(),_c('Form',{attrs:{\"type\":\"Generic.WebsiteContactForm\"}})],1)],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\r\nimport { Component, Mixins } from 'vue-property-decorator';\r\nimport { AsyncView } from 'client-website-ts-library/plugins';\r\nimport { API, Config } from 'client-website-ts-library/services';\r\nimport { Office } from 'client-website-ts-library/types';\r\n\r\nimport Form from '@/components/Forms/Form.vue';\r\n\r\n@Component({\r\n components: {\r\n Form,\r\n },\r\n})\r\nexport default class Contact extends Mixins(AsyncView) {\r\n public office: Office | null = null;\r\n\r\n mounted() {\r\n API.Offices.Get(Config.Website.Settings!.WebsiteId).then((office) => {\r\n this.office = office;\r\n });\r\n this.$emit('updateView');\r\n }\r\n}\r\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/ts-loader/index.js??ref--14-3!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Contact.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/ts-loader/index.js??ref--14-3!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Contact.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./Contact.vue?vue&type=template&id=799f4eae&scoped=true&\"\nimport script from \"./Contact.vue?vue&type=script&lang=ts&\"\nexport * from \"./Contact.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./Contact.vue?vue&type=style&index=0&id=799f4eae&scoped=true&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"799f4eae\",\n null\n \n)\n\nexport default component.exports","export * from \"-!../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-2!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Contact.vue?vue&type=style&index=0&id=799f4eae&scoped=true&lang=css&\""],"sourceRoot":""}