{"version":3,"sources":["webpack:///./src/views/Survey.vue?5608","webpack:///./src/views/Survey.vue?9b37","webpack:///./src/components/Forms/SteppedForm.vue?2efa","webpack:///./src/components/Forms/SteppedForm.vue","webpack:///./src/components/Forms/SteppedForm.vue?14c6","webpack:///./src/components/Forms/SteppedForm.vue?cfde","webpack:///./src/views/Survey.vue","webpack:///./src/views/Survey.vue?8b09","webpack:///./src/views/Survey.vue?baa3","webpack:///./src/components/Forms/SteppedForm.vue?214a","webpack:///./node_modules/client-website-ts-library/plugins/view/index.ts","webpack:///./src/views/Survey.vue?7984","webpack:///./src/views/Survey.vue?8bf1"],"names":["render","_vm","this","_h","$createElement","_c","_self","staticClass","attrs","_v","_s","profile","FullName","Position","PROLISTPhoto","style","Preview","Url","_e","submitted","formData","on","$event","staticRenderFns","class","fullHeight","fieldBg","fieldColour","labelColour","labelFocusedColour","loading","errored","domProps","definition","Options","SubmittedText","currentStep","_l","section","idx","key","SectionId","Title","Sections","length","validatingStep","ref","refInFor","errors","ctx","type","handleFieldInput","goBack","goForward","submitButtonClass","submitButtonColour","submitButtonBackgroundColour","submitForm","SubmitButtonText","context","submitPercent","recaptchaService","Require","ReCaptcha","progress","total","Math","round","console","log","Items","ClientWebsiteId","Website","Id","undefined","Forms","GetForm","then","def","catch","fieldDef","filter","err","Key","collectData","data","normalisedData","normaliseData","SubmitForm","result","Valid","Submitted","$emit","resetRecaptcha","ValidationState","Errors","newValues","forEach","entry","Value","Array","push","i","includeRecaptcha","Promise","resolve","reject","sectionComponent","$refs","ex","getRecaptchaResponse","recaptchaResponse","Log","Debug","Reset","GetResponse","ValidateSection","default","components","Section","Loader","component","id","$route","params","updateAgent","Slugs","Resolve","resolved","Type","html","el","document","createElement","innerHTML","innerText","about","stripHtml","AboutAgent","substring","title","description","image","Photo","Profiles","Get","Context","EnquiryTargetProfile","WebsiteId","Settings","WebsiteLevel","resolveId","Masthead","SteppedForm","prolistAnalyticsService","ServiceManager","Analytics","headService","Head","evt","obj","getAnalyticsEvent","call","getAnalyticsData","path","name","triggerAnalyticsEvent","event","GetAll","adapter","Record","head","bind","meta","Update","UpdateWithStatic","View","requestAnimationFrame","updateHead","updateAnalytics","AsyncView","$on"],"mappings":"kKAAA,W,2CCAA,I,EAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,OAAO,CAACA,EAAG,WAAW,CAACE,YAAY,0BAA0BC,MAAM,CAAC,KAAO,OAAO,MAAQ,uBAAuB,MAAQ,sCAAsC,oBAAmB,EAAK,QAAS,IAAO,CAACH,EAAG,mBAAmB,CAACE,YAAY,8BAA8B,CAACF,EAAG,MAAM,CAACE,YAAY,yBAAyB,CAACF,EAAG,MAAM,CAACE,YAAY,kCAAkC,CAACF,EAAG,KAAK,CAACE,YAAY,2BAA2B,CAACN,EAAIQ,GAAG,0BAA0BJ,EAAG,KAAK,CAACE,YAAY,uBAAuB,CAACN,EAAIQ,GAAGR,EAAIS,GAAGT,EAAIU,QAAQC,aAAaP,EAAG,KAAK,CAACE,YAAY,2BAA2B,CAACN,EAAIQ,GAAGR,EAAIS,GAAGT,EAAIU,QAAQE,oBAAoB,GAAIZ,EAAY,SAAEI,EAAG,aAAa,CAACG,MAAM,CAAC,WAAY,IAAO,CAACH,EAAG,MAAM,CAACE,YAAY,UAAU,CAACF,EAAG,MAAM,CAACE,YAAY,eAAgBN,EAAIU,SAAWV,EAAIU,QAAQG,aAAcT,EAAG,MAAM,CAACE,YAAY,oBAAoBQ,MAAM,CAAE,mBAAoB,OAASd,EAAIU,QAAQG,aAAaE,QAAQC,IAAM,OAAQhB,EAAIiB,KAAOjB,EAAIkB,UAAmTd,EAAG,MAAM,CAACE,YAAY,qBAAqB,CAACF,EAAG,MAAM,CAACG,MAAM,CAAC,IAAM,gCAAgC,IAAM,UAAUH,EAAG,IAAI,CAACJ,EAAIQ,GAAG,8DAA8DJ,EAAG,IAAI,CAACJ,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IAAMY,EAAN,cAAmB,EACV,UACLC,sBAAsB,KACpB/K,KAAKgL,aACLhL,KAAKiL,sBAJLH,EAAI,GADT,QACKA,GAUN,IAAMI,EAAN,cAAwB,EACf,UACLlL,KAAKmL,IAAI,aAAc,KACrBJ,sBAAsB,KACpB/K,KAAKgL,aACLhL,KAAKiL,wBALPC,EAAS,GADd,QACKA,I,yDCvEN,W,kCCAA,W","file":"js/chunk-42089655.106fbc69.js","sourcesContent":["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!./Survey.vue?vue&type=style&index=0&id=dd3f8b1e&scoped=true&lang=css&\"","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('Page',[_c('Masthead',{staticClass:\"agent-profile__masthead\",attrs:{\"mini\":\"true\",\"title\":\"Property survey with\",\"image\":\"/assets/images/default/masthead.jpg\",\"relative-content\":true,\"darken\":true}},[_c('ContentContainer',{staticClass:\"agent-profile__header-wrap\"},[_c('div',{staticClass:\"agent-profile__header\"},[_c('div',{staticClass:\"agent-profile__header__details\"},[_c('h2',{staticClass:\"agent-profile__position\"},[_vm._v(\"Property survey with\")]),_c('h1',{staticClass:\"agent-profile__name\"},[_vm._v(_vm._s(_vm.profile.FullName))]),_c('h2',{staticClass:\"agent-profile__position\"},[_vm._v(_vm._s(_vm.profile.Position))])])])])],1),(_vm.formData)?_c('ContentRow',{attrs:{\"noPadding\":true}},[_c('div',{staticClass:\"survey\"},[_c('div',{staticClass:\"survey__bg\"}),(_vm.profile && _vm.profile.PROLISTPhoto)?_c('div',{staticClass:\"survey__agent-img\",style:({'background-image': 'url(' + _vm.profile.PROLISTPhoto.Preview.Url + ')'})}):_vm._e(),(!_vm.submitted)?_c('SteppedForm',{staticClass:\"survey__form\",attrs:{\"context\":_vm.formData,\"type\":\"Variations.InspireRealEstate.ScottMitchell.PropertySurveyForm\",\"full-height\":\"true\",\"fieldColour\":\"#fff\",\"labelColour\":\"#fff\",\"labelFocusedColour\":\"#fff\"},on:{\"submitted\":function($event){_vm.submitted = true}}}):_c('div',{staticClass:\"survey__submitted\"},[_c('img',{attrs:{\"src\":\"/assets/images/brand/logo.svg\",\"alt\":\"Logo\"}}),_c('p',[_vm._v(\" Thank you for taking the time to complete this survey. \")]),_c('p',[_vm._v(\" I'll be in touch shortly to discuss your property plans in more depth. \")]),_c('p',[_vm._v(\" In the meantime, please feel free to browse my recent results and current listings. \")]),_c('p',[_c('LinkButton',{attrs:{\"href\":\"/properties/sold\"}},[_vm._v(\"Recent Results\")]),_c('LinkButton',{attrs:{\"href\":\"/properties/for-sale\"}},[_vm._v(\"Properties for Sale\")])],1)])],1)]):_vm._e()],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('form',{staticClass:\"form form--stepped\",class:{'form--full-height': _vm.fullHeight},style:({'--field-bg': _vm.fieldBg, '--field-colour': _vm.fieldColour, '--label-colour': _vm.labelColour, '--label-focused-colour': _vm.labelFocusedColour})},[(_vm.definition)?[_c('div',{staticClass:\"form__steps-wrap\"},[(_vm.loading || _vm.errored || _vm.submitted)?_c('div',{staticClass:\"form__ancillaries\"},[_c('ContentContainer',[_c('Loader',{attrs:{\"loading\":_vm.loading}}),(_vm.errored)?_c('div',{staticClass:\"form__panel form__panel--errored\"},[_c('p',[_vm._v(\" An error occurred. Please try again later. \")])]):_vm._e(),(_vm.submitted)?_c('div',{staticClass:\"form__panel form__panel--success\"},[_c('p',{domProps:{\"innerHTML\":_vm._s(_vm.definition.Options.SubmittedText)}})]):_vm._e()],1)],1):_vm._e(),(!_vm.submitted)?[_c('div',{staticClass:\"form__nav-wrap\"},[_c('ul',{staticClass:\"form__nav\"},[_c('li',{staticClass:\"form__nav__spacer\",class:{'form__nav__item--active': _vm.currentStep === 0, 'form__nav__item--passed': _vm.currentStep > 0}}),_vm._l((_vm.definition.Sections),function(section,idx){return _c('li',{key:section.SectionId,staticClass:\"form__nav__item\",class:{'form__nav__item--passed': idx < _vm.currentStep, 'form__nav__item--active': idx === _vm.currentStep}},[_c('span',{staticClass:\"form__nav__item__number\"},[_vm._v(_vm._s(idx + 1))]),_c('span',{staticClass:\"form__nav__item__label\"},[_vm._v(\": \"+_vm._s(section.Title))])])}),_c('li',{staticClass:\"form__nav__spacer\",class:{'form__nav__item--active': _vm.currentStep === _vm.definition.Sections.length - 1}})],2)]),_c('div',{staticClass:\"form__steps\",class:{'form__steps--validating': _vm.validatingStep},style:({'--step': _vm.currentStep})},[_c('div',{staticClass:\"form__steps__viewport\"},_vm._l((_vm.definition.Sections),function(section,idx){return _c('div',{key:section.SectionId,staticClass:\"form__step\",class:{'form__step--active': idx === _vm.currentStep}},[_c('ContentContainer',{staticClass:\"content-container--narrow\"},[_c('Section',{ref:section.SectionId,refInFor:true,attrs:{\"def\":section,\"errors\":_vm.errors,\"form-context\":_vm.ctx,\"form-type\":_vm.type},on:{\"field_input\":_vm.handleFieldInput}}),_c('div',{staticClass:\"form__step__nav\"},[(idx > 0)?_c('Button',{attrs:{\"backgroundColour\":\"var(--brand-secondary)\"},on:{\"click\":_vm.goBack}},[_vm._v(\"Back\")]):_vm._e(),(idx !== _vm.definition.Sections.length - 1)?_c('Button',{attrs:{\"loading\":_vm.validatingStep && idx === _vm.currentStep},on:{\"click\":_vm.goForward}},[_vm._v(\"Next\")]):_c('Button',{staticClass:\"form__submit-btn\",class:_vm.submitButtonClass,attrs:{\"loading\":_vm.loading,\"colour\":_vm.submitButtonColour,\"background-colour\":_vm.submitButtonBackgroundColour},on:{\"click\":_vm.submitForm}},[_vm._v(_vm._s(_vm.definition.Options.SubmitButtonText))])],1)],1)],1)}),0)])]:_vm._e()],2)]:_vm._e()],2)}\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\r\nimport { Component, Vue, Prop } from 'vue-property-decorator';\r\nimport { FormDefinition, FormSubmissionValidationError, FormField, FormValue } from 'client-website-ts-library/types/Forms';\r\nimport {\r\n ServiceManager,\r\n ServiceType,\r\n API,\r\n Config,\r\n Logger,\r\n LogLevel,\r\n ReCaptchaService,\r\n} from 'client-website-ts-library/services';\r\nimport { Context } from 'client-website-ts-library/types';\r\nimport { PDFFieldData } from 'client-website-ts-library/types/Forms/FieldTypes';\r\nimport { IRequestProgressDelegate } from 'client-website-ts-library/services/API/IRequestProgressDelegate';\r\n\r\nimport Section from './Section.vue';\r\nimport Loader from '../UI/Loader.vue';\r\n\r\n@Component({\r\n components: {\r\n Section,\r\n Loader,\r\n },\r\n})\r\nexport default class SteppedForm extends Vue implements IRequestProgressDelegate {\r\n currentStep = 0\r\n\r\n validatingStep = false\r\n\r\n @Prop({ default: false })\r\n private readonly fullHeight!: boolean;\r\n\r\n @Prop({ default: () => ({ Items: [] }) })\r\n private readonly context!: Context;\r\n\r\n @Prop()\r\n private readonly type!: string;\r\n\r\n @Prop()\r\n private readonly submitButtonColour!: string;\r\n\r\n @Prop()\r\n private readonly submitButtonBackgroundColour!: string;\r\n\r\n @Prop()\r\n private readonly submitButtonClass!: string;\r\n\r\n @Prop()\r\n private readonly autosaveNamespace!: string;\r\n\r\n @Prop()\r\n private readonly enableAutosave!: boolean;\r\n\r\n @Prop({ default: 'var(--form-field-bg)' })\r\n private readonly fieldBg!: string;\r\n\r\n @Prop({ default: 'var(--form-field-colour)' })\r\n private readonly fieldColour!: string;\r\n\r\n @Prop({ default: 'var(--form-label-colour)' })\r\n private readonly labelColour!: string;\r\n\r\n @Prop({ default: 'var(--form-field-border-colour)' })\r\n private readonly borderColour!: string;\r\n\r\n @Prop({ default: 'var(--form-label-focused-bg)' })\r\n private readonly labelFocusedBg!: string;\r\n\r\n @Prop({ default: 'var(--form-label-focused-colour)' })\r\n private readonly labelFocusedColour!: string;\r\n\r\n private ctx: Context = this.context;\r\n\r\n private errored = false;\r\n\r\n private submitted = false;\r\n\r\n private errors: FormSubmissionValidationError[] = [];\r\n\r\n private loading = true;\r\n\r\n private definition: FormDefinition | null = null;\r\n\r\n private submitPercent = 0;\r\n\r\n private recaptchaService = ServiceManager.Require(ServiceType.ReCaptcha) as ReCaptchaService;\r\n\r\n onProgress(progress: number, total: number) {\r\n this.submitPercent = Math.round((progress / total) * 100);\r\n\r\n console.log(this.submitPercent);\r\n }\r\n\r\n mounted() {\r\n if (this.ctx === null) {\r\n this.ctx = {\r\n Items: [],\r\n ClientWebsiteId: Config.Website.Id,\r\n };\r\n }\r\n\r\n if (this.ctx.ClientWebsiteId === undefined) {\r\n this.ctx.ClientWebsiteId = Config.Website.Id;\r\n }\r\n\r\n API.Forms.GetForm(this.type, this.context).then((def) => {\r\n this.loading = false;\r\n this.definition = def;\r\n }).catch(() => {\r\n this.errored = true;\r\n });\r\n }\r\n\r\n private handleFieldInput(fieldDef: FormField): void {\r\n this.errors = this.errors.filter((err) => err.Key !== fieldDef.Key);\r\n }\r\n\r\n submitForm(): void {\r\n if (this.loading) return;\r\n\r\n this.loading = true;\r\n\r\n this.errors = [];\r\n\r\n this.collectData(true).then((data) => {\r\n const normalisedData = SteppedForm.normaliseData(data);\r\n\r\n this.loading = false;\r\n\r\n API.Forms.SubmitForm(this.type, this.context, normalisedData).then((result) => {\r\n this.loading = false;\r\n\r\n if (!result.Valid) {\r\n // Reset ReCaptcha\r\n this.resetRecaptcha();\r\n\r\n // Update errors\r\n this.errors = result.ValidationState.Errors;\r\n } else if (result.Submitted) {\r\n // Inform the user that the form was submitted\r\n this.submitted = true;\r\n\r\n this.$emit('submitted');\r\n }\r\n }).catch(() => {\r\n // Reset ReCaptcha\r\n this.resetRecaptcha();\r\n\r\n // Inform the user that there was an error\r\n this.errored = true;\r\n });\r\n });\r\n }\r\n\r\n private static normaliseData(data: FormValue[]): FormValue[] {\r\n const newValues: FormValue[] = [];\r\n\r\n data.forEach((entry) => {\r\n if (entry.Value instanceof Array) {\r\n if (entry.Value.length) {\r\n newValues.push({\r\n Key: `${entry.Key}_length`,\r\n Value: entry.Value.length,\r\n });\r\n\r\n for (let i = 0; i < entry.Value.length; i += 1) {\r\n newValues.push({\r\n Key: `${entry.Key}_${i}`,\r\n Value: entry.Value[i],\r\n });\r\n }\r\n }\r\n } else {\r\n newValues.push(entry);\r\n }\r\n });\r\n\r\n return newValues;\r\n }\r\n\r\n private collectData(includeRecaptcha: boolean): Promise {\r\n return new Promise((resolve, reject) => {\r\n const data: FormValue[] = [];\r\n\r\n // Loop through each form secction and collect the data from it\r\n this.definition!.Sections.forEach((section) => {\r\n try {\r\n const sectionComponent = (this.$refs[section.SectionId] as Vue[])[0] as Section;\r\n data.push(...sectionComponent.collectData());\r\n } catch (ex) { /* */ }\r\n });\r\n\r\n // If we also need to submit the ReCaptcha response, make sure we call getResponse on the ReCaptcha component\r\n if (includeRecaptcha) {\r\n this.getRecaptchaResponse().then((recaptchaResponse: string) => {\r\n Logger.Log(LogLevel.Debug, '[Form]', 'Got ReCaptcha response');\r\n\r\n data.push({\r\n Key: '_recaptcha',\r\n Value: recaptchaResponse,\r\n });\r\n\r\n resolve(data);\r\n }).catch(reject);\r\n\r\n return;\r\n }\r\n\r\n // If we don't need ReCaptcha, resolve straight away\r\n resolve(data);\r\n });\r\n }\r\n\r\n private resetRecaptcha(): void {\r\n this.recaptchaService.Reset();\r\n }\r\n\r\n private getRecaptchaResponse(): Promise {\r\n return this.recaptchaService.GetResponse();\r\n }\r\n\r\n goForward() {\r\n if (this.validatingStep) return;\r\n\r\n this.validatingStep = true;\r\n\r\n this.errors = [];\r\n\r\n this.collectData(false).then((data) => {\r\n const normalisedData = SteppedForm.normaliseData(data);\r\n\r\n API.Forms.ValidateSection(this.type, this.context, normalisedData, this.currentStep).then((result) => {\r\n this.loading = false;\r\n\r\n if (!result.Valid) {\r\n // Update errors\r\n this.errors = result.Errors;\r\n this.validatingStep = false;\r\n } else {\r\n // Move to next step\r\n this.validatingStep = false;\r\n this.currentStep += 1;\r\n }\r\n }).catch(() => {\r\n // Inform the user that there was an error\r\n this.validatingStep = false;\r\n this.errored = true;\r\n });\r\n });\r\n }\r\n\r\n goBack() {\r\n this.currentStep -= 1;\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!./SteppedForm.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!./SteppedForm.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./SteppedForm.vue?vue&type=template&id=6993258e&scoped=true&\"\nimport script from \"./SteppedForm.vue?vue&type=script&lang=ts&\"\nexport * from \"./SteppedForm.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./SteppedForm.vue?vue&type=style&index=0&id=6993258e&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 \"6993258e\",\n null\n \n)\n\nexport default component.exports","\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 Masthead from '@/components/Common/Masthead.vue';\r\nimport { RouteMeta, View } from 'client-website-ts-library/plugins';\r\nimport { API, Config } from 'client-website-ts-library/services';\r\nimport { Context, Profile } from 'client-website-ts-library/types';\r\nimport { ContextItemType } from 'client-website-ts-library/types/Context';\r\nimport { Component, Mixins } from 'vue-property-decorator';\r\n\r\nimport SteppedForm from '../components/Forms/SteppedForm.vue';\r\n\r\n@Component({\r\n components: {\r\n Masthead,\r\n SteppedForm,\r\n },\r\n})\r\nexport default class Survey extends Mixins(View) {\r\n private profile: Profile | null = null;\r\n\r\n private formData: Context | null = null;\r\n\r\n private submitted = false;\r\n\r\n resolveId() {\r\n const { id } = this.$route.params;\r\n\r\n if (id.length === 36) {\r\n // If the ID is 36 long we'll treat it as a guid\r\n this.updateAgent(id);\r\n } else {\r\n API.Slugs.Resolve(id).then((resolved) => {\r\n if (resolved.Type === 'Profile') {\r\n this.updateAgent(resolved.Id);\r\n }\r\n });\r\n }\r\n }\r\n\r\n stripHtml(html: string): string {\r\n const el = document.createElement('div');\r\n\r\n el.innerHTML = html;\r\n\r\n return el.innerText;\r\n }\r\n\r\n head(): RouteMeta | null {\r\n if (this.profile === null) return null;\r\n\r\n let about = this.stripHtml(this.profile.AboutAgent);\r\n\r\n if (about.length > 156) {\r\n about = `${about.substring(0, 156)}...`;\r\n }\r\n\r\n return {\r\n title: `Get an Appraisal - ${this.profile.FullName} - ${this.profile.Position}`,\r\n description: about,\r\n image: this.profile.Photo ? this.profile.Photo.Preview.Url : undefined,\r\n };\r\n }\r\n\r\n updateAgent(id: string) {\r\n this.formData = null;\r\n\r\n API.Profiles.Get(id).then((profile) => {\r\n this.profile = profile;\r\n\r\n this.formData = {\r\n Items: [{\r\n Type: ContextItemType.EnquiryTargetProfile,\r\n Id: profile.Id,\r\n }],\r\n ClientWebsiteId: Config.Website.Id,\r\n WebsiteId: Config.Website.Settings!.WebsiteId,\r\n WebsiteLevel: Config.Website.Settings!.WebsiteLevel,\r\n };\r\n });\r\n }\r\n\r\n mounted() {\r\n this.resolveId();\r\n this.submitted = false;\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!./Survey.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!./Survey.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./Survey.vue?vue&type=template&id=dd3f8b1e&scoped=true&\"\nimport script from \"./Survey.vue?vue&type=script&lang=ts&\"\nexport * from \"./Survey.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./Survey.vue?vue&type=style&index=0&id=dd3f8b1e&scoped=true&lang=css&\"\nimport style1 from \"./Survey.vue?vue&type=style&index=1&lang=css&\"\nimport style2 from \"./Survey.vue?vue&type=style&index=2&id=dd3f8b1e&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 \"dd3f8b1e\",\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!./SteppedForm.vue?vue&type=style&index=0&id=6993258e&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","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!./Survey.vue?vue&type=style&index=1&lang=css&\"","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!./Survey.vue?vue&type=style&index=2&id=dd3f8b1e&scoped=true&lang=css&\""],"sourceRoot":""}