{"version":3,"sources":["webpack:///./src/views/AgentProfileAppraisal.vue?555e","webpack:///./src/views/AgentProfileAppraisal.vue?f3d4","webpack:///./src/components/Forms/SteppedForm.vue?214a","webpack:///./node_modules/client-website-ts-library/plugins/view/index.ts","webpack:///./src/views/AgentProfileAppraisal.vue?b691","webpack:///./src/views/AgentProfileAppraisal.vue","webpack:///./src/views/AgentProfileAppraisal.vue?711c","webpack:///./src/views/AgentProfileAppraisal.vue?e408","webpack:///./src/components/Forms/SteppedForm.vue?67c9","webpack:///./src/components/Forms/SteppedForm.vue","webpack:///./src/components/Forms/SteppedForm.vue?14c6","webpack:///./src/components/Forms/SteppedForm.vue?cfde"],"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","staticClass","attrs","_v","_s","profile","FullName","Position","PROLISTPhoto","style","Preview","Url","_e","submitted","formData","on","$event","staticRenderFns","id","params","length","updateAgent","Slugs","Resolve","resolved","Type","Id","html","el","document","createElement","innerHTML","innerText","about","stripHtml","AboutAgent","substring","title","description","image","Photo","Profiles","$emit","Items","Context","EnquiryTargetProfile","ClientWebsiteId","Website","WebsiteId","Settings","WebsiteLevel","resolveId","FromProfile","components","Masthead","SteppedForm","component","class","fullHeight","fieldBg","fieldColour","labelColour","labelFocusedColour","loading","errored","domProps","definition","Options","SubmittedText","currentStep","_l","section","idx","key","SectionId","Title","Sections","validatingStep","ref","refInFor","errors","ctx","type","handleFieldInput","goBack","goForward","submitButtonClass","submitButtonColour","submitButtonBackgroundColour","submitForm","SubmitButtonText","context","submitPercent","recaptchaService","ReCaptcha","progress","total","Math","round","console","log","Forms","GetForm","def","catch","fieldDef","filter","err","Key","collectData","data","normalisedData","normaliseData","SubmitForm","Valid","Submitted","resetRecaptcha","ValidationState","Errors","includeRecaptcha","resolve","reject","sectionComponent","$refs","push","ex","getRecaptchaResponse","recaptchaResponse","Log","Debug","Value","Reset","GetResponse","ValidateSection","newValues","entry","Array","i","default","Section","Loader"],"mappings":"oKAAA,W,kCCAA,W,kCCAA,W,woBCcM,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,KAAKhB,KAAhBA,GAEZc,aAAkBG,QACnBH,EAAOI,MAAK,SAACC,GACX,EAAKxB,YAAYyB,OAAOD,MAG1BnB,KAAKL,YAAYyB,OAAON,QAG1Bd,KAAKL,YAAY0B,iBAAiBrB,KAAKI,OAAOC,UAzCpD,GAAuB,cAAjB,EAAQ,GADb,QACK,GA+CN,IAAM,EAAN,yKACS,WAAO,WACZiB,uBAAsB,WACpB,EAAKC,aACL,EAAKC,yBAJX,GAAmB,GAAb,EAAI,GADT,QACK,GAUN,IAAM,EAAN,yKACS,WAA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MAAO,Q,8BAIjC,yBADC,kB,2BAID,yBADC,kB,yCAID,yBADC,kB,mDAID,yBADC,kB,wCAID,yBADC,kB,wCAID,yBADC,kB,qCAID,yBADC,eAAK,CAAE+F,QAAS,0B,8BAIjB,yBADC,eAAK,CAAEA,QAAS,8B,kCAIjB,yBADC,eAAK,CAAEA,QAAS,8B,kCAIjB,yBADC,eAAK,CAAEA,QAAS,qC,mCAIjB,yBADC,eAAK,CAAEA,QAAS,kC,qCAIjB,yBADC,eAAK,CAAEA,QAAS,sC,yCA5CE,EAAW,2BAN/B,eAAU,CACTrF,WAAY,CACVsF,UAAA,KACAC,SAAA,SAGiB,WCjGmY,I,wBCQpZpF,EAAY,eACd,EACA7D,EACAsB,GACA,EACA,KACA,WACA,MAIa,OAAAuC,E","file":"js/chunk-6a4c9925.94e3ba36.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!./AgentProfileAppraisal.vue?vue&type=style&index=0&id=dda1dfce&scoped=true&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!./AgentProfileAppraisal.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!./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","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('Page',[(_vm.profile)?[_c('Masthead',{staticClass:\"agent-profile__masthead\",attrs:{\"mini\":\"true\",\"title\":\"Get an appraisal 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(\"Get an appraisal 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.AgentSalesAppraisalForm\",\"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(\" Your appraisal request has been successfully submitted. \")]),_c('p',[_vm._v(\" One of our professional agents will contact you shortly to discuss the details and schedule your personalized property valuation. \")]),_c('p',[_vm._v(\" Thank you for considering us to assist with your property needs. \")])])],1)]):_vm._e()]:_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\r\nimport { Component, Mixins } from 'vue-property-decorator';\r\nimport { Profile, ListingStatus, WebsiteLevel, Context } from 'client-website-ts-library/types';\r\nimport { API, Config } from 'client-website-ts-library/services';\r\nimport { AsyncView, RouteMeta } from 'client-website-ts-library/plugins';\r\n\r\nimport Masthead from '@/components/Common/Masthead.vue';\r\nimport { AnalyticsEventObject } from 'client-website-ts-library/services/Analytics';\r\nimport { ContextItemType } from 'client-website-ts-library/types/Context';\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 AgentProfile extends Mixins(AsyncView) {\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\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.$emit('updateView');\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 }\r\n\r\n getAnalyticsData(): AnalyticsEventObject | null {\r\n if (this.profile === null) return null;\r\n\r\n return AnalyticsEventObject.FromProfile(this.profile);\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!./AgentProfileAppraisal.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!./AgentProfileAppraisal.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./AgentProfileAppraisal.vue?vue&type=template&id=dda1dfce&scoped=true&\"\nimport script from \"./AgentProfileAppraisal.vue?vue&type=script&lang=ts&\"\nexport * from \"./AgentProfileAppraisal.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./AgentProfileAppraisal.vue?vue&type=style&index=0&id=dda1dfce&scoped=true&lang=css&\"\nimport style1 from \"./AgentProfileAppraisal.vue?vue&type=style&index=1&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 \"dda1dfce\",\n null\n \n)\n\nexport default component.exports","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"],"sourceRoot":""}