{"version":3,"sources":["webpack:///./src/views/MarketUpdates.vue?3510","webpack:///./src/views/MarketUpdates.vue","webpack:///./src/views/MarketUpdates.vue?6149","webpack:///./src/views/MarketUpdates.vue?c40d","webpack:///./src/views/MarketUpdates.vue?204a"],"names":["render","_vm","this","_h","$createElement","_c","_self","attrs","_v","staticClass","_e","step","on","registerFCM","directives","name","rawName","value","expression","domProps","$event","target","composing","email","phone","createContact","$$selectedVal","Array","prototype","filter","call","options","o","selected","map","val","_value","beds","multiple","baths","carSpaces","submitPropertyRequirement","staticRenderFns","loading","contactId","fcm","Get","Firebase","Subscribe","then","token","pla","Analytics","SetFCMToken","postCodes","CRM","CreateBasicPropertyRequirement","catch","nameParts","split","firstName","lastName","length","pop","join","CreateContact","contact","Id","cca","ContactCorrelation","SetContactId","components","Loader","component"],"mappings":"uHAAA,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,OAAO,CAACA,EAAG,eAAe,CAACE,MAAM,CAAC,MAAO,EAAK,MAAQ,oBAAoBF,EAAG,aAAa,CAACA,EAAG,mBAAmB,CAACA,EAAG,eAAe,CAACJ,EAAIO,GAAG,8BAA8BH,EAAG,kBAAkB,CAACJ,EAAIO,GAAG,8HAA8HH,EAAG,KAAK,CAACI,YAAY,SAAS,CAAER,EAAW,QAAEI,EAAG,KAAK,CAACI,YAAY,iBAAiB,CAACJ,EAAG,SAAS,CAACE,MAAM,CAAC,QAAU,WAAW,GAAGN,EAAIS,KAAmB,IAAbT,EAAIU,KAAYN,EAAG,KAAK,CAACI,YAAY,QAAQ,CAACJ,EAAG,MAAM,CAACI,YAAY,mBAAmB,CAACJ,EAAG,MAAM,CAACI,YAAY,aAAaF,MAAM,CAAC,IAAM,6DAA6DF,EAAG,MAAM,CAACI,YAAY,cAAc,CAACJ,EAAG,KAAK,CAACI,YAAY,eAAe,CAACR,EAAIO,GAAG,kCAAkCH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AAU,GACtBG,EAAW,KAEXD,EAAY,GACZC,EAAW,IAGb,OAAIN,IAAIU,cAAcL,EAAWC,EAAU3D,KAAKqB,MAAOrB,KAAKsB,OAAOyB,KAAMiB,IACvEhE,KAAK0C,UAAYsB,EAAQC,GAEzB,MAAMC,EAAM,OAAetB,IAA+B,OAAYuB,oBAE1D,OAARD,GACFA,EAAIE,aAAaJ,EAAQC,IAG3BjE,KAAKS,KAAO,EACZT,KAAKyC,SAAU,IACdc,MAAM,KACPvD,KAAKyC,SAAU,MAtFA,EAAa,GALjC,eAAU,CACT4B,WAAY,CACVC,SAAA,SAGiB,WC7ImX,I,wBCQpYC,EAAY,eACd,EACAzE,EACA0C,GACA,EACA,KACA,WACA,MAIa,aAAA+B,E,2CCnBf,W","file":"js/chunk-8e5bc10a.e438baa0.js","sourcesContent":["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\":\"Market Updates\"}}),_c('ContentRow',[_c('ContentContainer',[_c('SectionTitle',[_vm._v(\"Exclusive Market Updates\")]),_c('SectionSubtitle',[_vm._v(\"Keep up-to-date with the ever-evolving property market with our exclusive market updates, delivered to you in real-time.\")]),_c('ul',{staticClass:\"steps\"},[(_vm.loading)?_c('li',{staticClass:\"steps__loader\"},[_c('Loader',{attrs:{\"loading\":\"true\"}})],1):_vm._e(),(_vm.step === 0)?_c('li',{staticClass:\"step\"},[_c('div',{staticClass:\"step__icon-wrap\"},[_c('img',{staticClass:\"step__icon\",attrs:{\"src\":\"/assets/images/icons/market-updates/notifications.svg\"}})]),_c('div',{staticClass:\"step__body\"},[_c('h4',{staticClass:\"step__title\"},[_vm._v(\"Step 1: Enable Notifications\")]),_c('p',{staticClass:\"step__content\"},[_vm._v(\" We'll send you exclusive market updates in real-time. \")]),_c('div',{staticClass:\"step__actions\"},[_c('Button',{on:{\"click\":_vm.registerFCM}},[_vm._v(\"Enable Notifications\")])],1)])]):_vm._e(),(_vm.step === 1)?_c('li',{staticClass:\"step\"},[_c('div',{staticClass:\"step__icon-wrap\"},[_c('img',{staticClass:\"step__icon\",attrs:{\"src\":\"/assets/images/icons/market-updates/user.svg\"}})]),_c('div',{staticClass:\"step__body\"},[_c('h4',{staticClass:\"step__title\"},[_vm._v(\"Step 2: Create your Profile\")]),_c('p',{staticClass:\"step__content\"},[_vm._v(\" Receive the latest property news straight to your inbox. \")]),_c('div',{staticClass:\"step__actions\"},[_c('div',{staticClass:\"form-field\"},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.name),expression:\"name\"}],staticClass:\"form-field__input form-field__input--has-value\",attrs:{\"placeholder\":\"E.g. John Smith\",\"type\":\"text\"},domProps:{\"value\":(_vm.name)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.name=$event.target.value}}}),_c('label',{staticClass:\"form-field__label\"},[_vm._v(\"Your Name\")])]),_c('div',{staticClass:\"form-field\"},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.email),expression:\"email\"}],staticClass:\"form-field__input form-field__input--has-value\",attrs:{\"placeholder\":\"E.g. john@example.com\",\"type\":\"email\"},domProps:{\"value\":(_vm.email)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.email=$event.target.value}}}),_c('label',{staticClass:\"form-field__label\"},[_vm._v(\"Your Email\")])]),_c('div',{staticClass:\"form-field\"},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.phone),expression:\"phone\"}],staticClass:\"form-field__input form-field__input--has-value\",attrs:{\"type\":\"tel\"},domProps:{\"value\":(_vm.phone)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.phone=$event.target.value}}}),_c('label',{staticClass:\"form-field__label\"},[_vm._v(\"Your Phone (optional)\")])]),_c('Button',{attrs:{\"block\":\"true\"},on:{\"click\":_vm.createContact}},[_vm._v(\"Next\")])],1)])]):_vm._e(),(_vm.step === 2)?_c('li',{staticClass:\"step\"},[_c('div',{staticClass:\"step__icon-wrap\"},[_c('img',{staticClass:\"step__icon\",attrs:{\"src\":\"/assets/images/icons/market-updates/preferences.svg\"}})]),_c('div',{staticClass:\"step__body\"},[_c('h4',{staticClass:\"step__title\"},[_vm._v(\"Step 3: Set your Preferences\")]),_c('p',{staticClass:\"step__content\"},[_vm._v(\" We'll use the information you supply here to provide updates tailored to you. \")]),_c('div',{staticClass:\"step__actions\"},[_c('div',{staticClass:\"form-field\"},[_c('select',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.beds),expression:\"beds\"}],staticClass:\"form-field__input form-field__input--has-value\",on:{\"change\":function($event){var $$selectedVal = Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = \"_value\" in o ? o._value : o.value;return val}); _vm.beds=$event.target.multiple ? $$selectedVal : $$selectedVal[0]}}},[_c('option',{attrs:{\"value\":\"0\"}},[_vm._v(\"Studio\")]),_c('option',{attrs:{\"value\":\"1\"}},[_vm._v(\"1 Bed\")]),_c('option',{attrs:{\"value\":\"2\"}},[_vm._v(\"2 Beds\")]),_c('option',{attrs:{\"value\":\"3\"}},[_vm._v(\"3 Beds\")]),_c('option',{attrs:{\"value\":\"4\"}},[_vm._v(\"4 Beds\")]),_c('option',{attrs:{\"value\":\"5\"}},[_vm._v(\"5 Beds\")]),_c('option',{attrs:{\"value\":\"6\"}},[_vm._v(\"6 Beds\")])]),_c('label',{staticClass:\"form-field__label\"},[_vm._v(\"Beds\")])]),_c('div',{staticClass:\"form-field\"},[_c('select',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.baths),expression:\"baths\"}],staticClass:\"form-field__input form-field__input--has-value\",on:{\"change\":function($event){var $$selectedVal = Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = \"_value\" in o ? o._value : o.value;return val}); _vm.baths=$event.target.multiple ? $$selectedVal : $$selectedVal[0]}}},[_c('option',{attrs:{\"value\":\"1\"}},[_vm._v(\"1 Bath\")]),_c('option',{attrs:{\"value\":\"2\"}},[_vm._v(\"2 Baths\")]),_c('option',{attrs:{\"value\":\"3\"}},[_vm._v(\"3 Baths\")]),_c('option',{attrs:{\"value\":\"4\"}},[_vm._v(\"4 Baths\")])]),_c('label',{staticClass:\"form-field__label\"},[_vm._v(\"Baths\")])]),_c('div',{staticClass:\"form-field\"},[_c('select',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.carSpaces),expression:\"carSpaces\"}],staticClass:\"form-field__input form-field__input--has-value\",on:{\"change\":function($event){var $$selectedVal = Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = \"_value\" in o ? o._value : o.value;return val}); _vm.carSpaces=$event.target.multiple ? $$selectedVal : $$selectedVal[0]}}},[_c('option',{attrs:{\"value\":\"1\"}},[_vm._v(\"1 Space\")]),_c('option',{attrs:{\"value\":\"2\"}},[_vm._v(\"2 Spaces\")]),_c('option',{attrs:{\"value\":\"3\"}},[_vm._v(\"3 Spaces\")]),_c('option',{attrs:{\"value\":\"4\"}},[_vm._v(\"4 Spaces\")])]),_c('label',{staticClass:\"form-field__label\"},[_vm._v(\"Car Spaces\")])]),_c('Button',{attrs:{\"block\":\"true\"},on:{\"click\":_vm.submitPropertyRequirement}},[_vm._v(\"Save Preferences\")])],1)])]):_vm._e(),(_vm.step === 3)?_c('li',{staticClass:\"step\"},[_c('div',{staticClass:\"step__icon-wrap\"},[_c('img',{staticClass:\"step__icon\",attrs:{\"src\":\"/assets/images/icons/market-updates/tick.svg\"}})]),_c('div',{staticClass:\"step__body\"},[_c('h4',{staticClass:\"step__title\"},[_vm._v(\"You're All Set\")]),_c('p',{staticClass:\"step__content\"},[_vm._v(\" You'll start receiving market updates that match your preferences as soon as they become available. \")])])]):_vm._e()])],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\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\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\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nimport { Component, Mixins } from 'vue-property-decorator';\n\nimport {\n ServiceManager,\n ServiceType,\n Firebase,\n API,\n} from 'client-website-ts-library/services';\n\nimport { View } from 'client-website-ts-library/plugins';\n\nimport Loader from '@/components/UI/Loader.vue';\nimport { PROListAnalyticsAdapter } from 'client-website-ts-library/services/Analytics';\nimport { ContactCorrelationAdapter } from 'client-website-ts-library/services/CRM/ContactCorrelationAdapter';\n\n@Component({\n components: {\n Loader,\n },\n})\nexport default class MarketUpdates extends Mixins(View) {\n private step = 0;\n\n private loading = false;\n\n private beds = 4;\n\n private baths = 2;\n\n private carSpaces = 2;\n\n private name = '';\n\n private email = '';\n\n private phone = '';\n\n private contactId: string | null = null;\n\n registerFCM(): void {\n this.loading = true;\n\n const fcm = ServiceManager.Get(ServiceType.Firebase) as Firebase;\n\n fcm.Subscribe().then((token: string) => {\n const pla = ServiceManager.Get(ServiceType.Analytics, 'PROListAnalyticsAdapter');\n\n if (pla !== null) {\n pla.SetFCMToken(token);\n }\n\n this.loading = false;\n this.step = 1;\n });\n }\n\n submitPropertyRequirement(): void {\n this.loading = true;\n\n const postCodes: string[] = [\n '4870',\n '4879',\n '4868',\n '4869',\n '4865',\n ];\n\n API.CRM.CreateBasicPropertyRequirement(this.contactId!, this.beds, this.baths, this.carSpaces, postCodes).then(() => {\n this.loading = false;\n this.step = 3;\n }).catch(() => {\n this.loading = false;\n });\n }\n\n createContact(): void {\n this.loading = true;\n\n const nameParts = this.name.split(' ');\n\n let firstName;\n let lastName;\n\n if (nameParts.length >= 2) {\n lastName = nameParts.pop()!;\n firstName = nameParts.join(' ');\n } else if (nameParts.length > 0) {\n firstName = nameParts[0];\n lastName = '';\n } else {\n firstName = '';\n lastName = '';\n }\n\n API.CRM.CreateContact(firstName, lastName, this.email, this.phone).then((contact) => {\n this.contactId = contact.Id;\n\n const cca = ServiceManager.Get(ServiceType.ContactCorrelation);\n\n if (cca !== null) {\n cca.SetContactId(contact.Id);\n }\n\n this.step = 2;\n this.loading = false;\n }).catch(() => {\n this.loading = false;\n });\n }\n}\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!./MarketUpdates.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!./MarketUpdates.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./MarketUpdates.vue?vue&type=template&id=1d0a10da&scoped=true&\"\nimport script from \"./MarketUpdates.vue?vue&type=script&lang=ts&\"\nexport * from \"./MarketUpdates.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./MarketUpdates.vue?vue&type=style&index=0&id=1d0a10da&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 \"1d0a10da\",\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!./MarketUpdates.vue?vue&type=style&index=0&id=1d0a10da&scoped=true&lang=css&\""],"sourceRoot":""}