{"version":3,"sources":["webpack:///./src/views/Contact.vue?cfb5","webpack:///./node_modules/client-website-ts-library/plugins/view/index.ts","webpack:///./src/views/Contact.vue?3bbc","webpack:///./src/views/Contact.vue","webpack:///./src/views/Contact.vue?fd5b","webpack:///./src/views/Contact.vue?aba4"],"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","formCtx","_e","staticStyle","mapSettings","staticRenderFns","Map","office","Offices","Website","Settings","WebsiteId","Markers","Address","AddressLine1","AddressLine2","Title","Coordinate","Lat","Lon","ClientWebsiteId","Id","Items","Type","Context","Office","components","Form","component"],"mappings":"2IAAA,W,kpBCcM,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,SAA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YAAc,IAAI,OAAY,CACjCQ,QAAS,CACP,IAAI,OAAU,CACZC,QAAS,GAAF,OAAK,EAAKN,OAAOO,aAAjB,YAAiC,EAAKP,OAAOQ,cACpDC,MAAO,UACPC,WAAY,CACVC,KAAM,WACNC,IAAK,oBAOfpD,KAAKkC,QAAU,CACbmB,gBAAiB,OAAOX,QAAQY,GAChCC,MAAO,CACL,CACEC,KAAMC,EAAA,KAAgBC,OACtBJ,GAAI,OAAOZ,QAAQC,SAAUC,iBA7BvC,GAAqC,eAAO,SAAvB,EAAO,yBAN3B,eAAU,CACTe,WAAY,CACVpB,MACAqB,OAAA,SAGiB,WC/B6W,I,wBCQ9XC,EAAY,eACd,EACAnC,EACAY,GACA,EACA,KACA,WACA,MAIa,aAAAuB,E","file":"js/chunk-0a8f729a.e18332f9.js","sourcesContent":["export * from \"-!../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--7-oneOf-1-0!../../node_modules/css-loader/dist/cjs.js??ref--7-oneOf-1-1!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--7-oneOf-1-2!../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Contact.vue?vue&type=style&index=0&id=0b51816c&scoped=true&lang=css&\"","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 Us\"}}),_c('ContentRow',[_c('ContentContainer',{staticClass:\"content-container--narrow\"},[(_vm.formCtx)?_c('Form',{attrs:{\"context\":_vm.formCtx,\"type\":\"Generic.WebsiteContactForm\"}}):_vm._e()],1)],1),(_vm.mapSettings)?_c('Deferrable',[_c('Map',{staticStyle:{\"max-height\":\"500px\"},attrs:{\"settings\":_vm.mapSettings}})],1):_vm._e()],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nimport { Component, Mixins } from 'vue-property-decorator';\nimport { View } from 'client-website-ts-library/plugins';\n\nimport Form from '@/components/Forms/Form.vue';\nimport { Context, MapMarker, MapSettings, Office } from 'client-website-ts-library/types';\nimport { API, Config } from 'client-website-ts-library/services';\nimport { ContextItemType } from 'client-website-ts-library/types/Context';\n\nconst Map = () => import('client-website-ts-library/components/Map/Map.vue');\n\n@Component({\n components: {\n Map,\n Form,\n },\n})\nexport default class Contact extends Mixins(View) {\n private formCtx: Context | null = null;\n\n private office: Office | null = null;\n\n private mapSettings: MapSettings | null = null;\n\n mounted() {\n API.Offices.Get(Config.Website.Settings!.WebsiteId).then((office) => {\n this.office = office;\n this.mapSettings = new MapSettings({\n Markers: [\n new MapMarker({\n Address: `${this.office.AddressLine1} ${this.office.AddressLine2}`,\n Title: 'PROLIST',\n Coordinate: {\n Lat: -16.9344085,\n Lon: 145.774603,\n },\n }),\n ],\n });\n });\n\n this.formCtx = {\n ClientWebsiteId: Config.Website.Id,\n Items: [\n {\n Type: ContextItemType.Office,\n Id: Config.Website.Settings!.WebsiteId,\n },\n ],\n };\n }\n}\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--15-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/ts-loader/index.js??ref--15-3!../../node_modules/cache-loader/dist/cjs.js??ref--1-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--15-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/ts-loader/index.js??ref--15-3!../../node_modules/cache-loader/dist/cjs.js??ref--1-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=0b51816c&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=0b51816c&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 \"0b51816c\",\n null\n \n)\n\nexport default component.exports"],"sourceRoot":""}