{"version":3,"sources":["webpack:///./src/views/MarketUpdates.vue?bbfb","webpack:///./src/views/MarketUpdates.vue","webpack:///./src/views/MarketUpdates.vue?6149","webpack:///./src/views/MarketUpdates.vue?c40d","webpack:///./src/views/MarketUpdates.vue?b869"],"names":["render","_vm","this","_h","$createElement","_c","_self","staticClass","attrs","_v","_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","firstName","lastName","nameParts","split","length","pop","join","CreateContact","contact","Id","cca","ContactCorrelation","SetContactId","components","Loader","ListingSearch","component"],"mappings":"uHAAA,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,OAAO,CAACA,EAAG,gBAAgBA,EAAG,MAAM,CAACE,YAAY,iBAAiB,CAACF,EAAG,aAAa,CAACA,EAAG,mBAAmB,CAACA,EAAG,eAAe,CAACE,YAAY,uBAAuBC,MAAM,CAAC,OAAS,UAAU,WAAW,OAAO,UAAY,eAAe,CAACP,EAAIQ,GAAG,eAAeJ,EAAG,OAAO,CAACE,YAAY,4BAA4B,CAACN,EAAIQ,GAAG,sBAAsBJ,EAAG,kBAAkB,CAACJ,EAAIQ,GAAG,8HAA8HJ,EAAG,KAAK,CAACE,YAAY,SAAS,CAAEN,EAAW,QAAEI,EAAG,KAAK,CAACE,YAAY,iBAAiB,CAACF,EAAG,SAAS,CAACG,MAAM,CAAC,QAAU,WAAW,GAAGP,EAAIS,KAAmB,IAAbT,EAAIU,KAAYN,EAAG,KAAK,CAACE,YAAY,QAAQ,CAACF,EAAG,MAAM,CAACE,YAAY,mBAAmB,CAACF,EAAG,MAAM,CAAC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XzC,KAAKyC,SAAU,EAEf,IAEIe,EACAC,EAHEC,EAAY1D,KAAKa,KAAK8C,MAAM,KAK9BD,EAAUE,QAAU,GACtBH,EAAWC,EAAUG,MACrBL,EAAYE,EAAUI,KAAK,MAClBJ,EAAUE,OAAS,GAC5BJ,EAAYE,EAAU,GACtBD,EAAW,KAEXD,EAAY,GACZC,EAAW,IAGb,OAAIJ,IAAIU,cAAcP,EAAWC,EAAUzD,KAAKqB,MAAOrB,KAAKsB,OAAOyB,MAAK,SAACiB,GACvE,EAAKtB,UAAYsB,EAAQC,GAEzB,IAAMC,EAAM,OAAetB,IAA+B,OAAYuB,oBAE1D,OAARD,GACFA,EAAIE,aAAaJ,EAAQC,IAG3B,EAAKxD,KAAO,EACZ,EAAKgC,SAAU,KACdc,OAAM,WACP,EAAKd,SAAU,SAtFrB,GAA2C,eAAO,SAA7B,EAAa,GANjC,eAAU,CACT4B,WAAY,CACVC,SAAA,KACAC,gBAAA,SAGiB,WClJmX,I,wBCQpYC,EAAY,eACd,EACA1E,EACA0C,GACA,EACA,KACA,WACA,MAIa,aAAAgC,E,2CCnBf,W","file":"js/chunk-72780222.7ab190c9.js","sourcesContent":["var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('Page',[_c('SiteMasthead'),_c('div',{staticClass:\"page__pull-up\"},[_c('ContentRow',[_c('ContentContainer',[_c('SectionTitle',{staticClass:\"section-title--light\",attrs:{\"colour\":\"#313133\",\"has-line\":\"true\",\"alignment\":\"flex-start\"}},[_vm._v(\" Exclusive \"),_c('span',{staticClass:\"section-title__highlight\"},[_vm._v(\"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)],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\n\n\n\r\nimport { Component, Mixins } from 'vue-property-decorator';\r\n\r\nimport {\r\n ServiceManager,\r\n ServiceType,\r\n Firebase,\r\n API,\r\n} from 'client-website-ts-library/services';\r\n\r\nimport { View } from 'client-website-ts-library/plugins';\r\n\r\nimport Loader from '@/components/UI/Loader.vue';\r\nimport { PROListAnalyticsAdapter } from 'client-website-ts-library/services/Analytics';\r\nimport { ContactCorrelationAdapter } from 'client-website-ts-library/services/CRM/ContactCorrelationAdapter';\r\nimport ListingSearch from '../components/ListingSearch.vue';\r\n\r\n@Component({\r\n components: {\r\n Loader,\r\n ListingSearch,\r\n },\r\n})\r\nexport default class MarketUpdates extends Mixins(View) {\r\n private step = 0;\r\n\r\n private loading = false;\r\n\r\n private beds = 4;\r\n\r\n private baths = 2;\r\n\r\n private carSpaces = 2;\r\n\r\n private name = '';\r\n\r\n private email = '';\r\n\r\n private phone = '';\r\n\r\n private contactId: string | null = null;\r\n\r\n registerFCM(): void {\r\n this.loading = true;\r\n\r\n const fcm = ServiceManager.Get(ServiceType.Firebase) as Firebase;\r\n\r\n fcm.Subscribe().then((token: string) => {\r\n const pla = ServiceManager.Get(ServiceType.Analytics, 'PROListAnalyticsAdapter');\r\n\r\n if (pla !== null) {\r\n pla.SetFCMToken(token);\r\n }\r\n\r\n this.loading = false;\r\n this.step = 1;\r\n });\r\n }\r\n\r\n submitPropertyRequirement(): void {\r\n this.loading = true;\r\n\r\n const postCodes: string[] = [\r\n '4870',\r\n '4879',\r\n '4868',\r\n '4869',\r\n '4865',\r\n ];\r\n\r\n API.CRM.CreateBasicPropertyRequirement(this.contactId!, this.beds, this.baths, this.carSpaces, postCodes).then(() => {\r\n this.loading = false;\r\n this.step = 3;\r\n }).catch(() => {\r\n this.loading = false;\r\n });\r\n }\r\n\r\n createContact(): void {\r\n this.loading = true;\r\n\r\n const nameParts = this.name.split(' ');\r\n\r\n let firstName;\r\n let lastName;\r\n\r\n if (nameParts.length >= 2) {\r\n lastName = nameParts.pop()!;\r\n firstName = nameParts.join(' ');\r\n } else if (nameParts.length > 0) {\r\n firstName = nameParts[0];\r\n lastName = '';\r\n } else {\r\n firstName = '';\r\n lastName = '';\r\n }\r\n\r\n API.CRM.CreateContact(firstName, lastName, this.email, this.phone).then((contact) => {\r\n this.contactId = contact.Id;\r\n\r\n const cca = ServiceManager.Get(ServiceType.ContactCorrelation);\r\n\r\n if (cca !== null) {\r\n cca.SetContactId(contact.Id);\r\n }\r\n\r\n this.step = 2;\r\n this.loading = false;\r\n }).catch(() => {\r\n this.loading = false;\r\n });\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!./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=1341f188&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=1341f188&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 \"1341f188\",\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=1341f188&scoped=true&lang=css&\""],"sourceRoot":""}