{"version":3,"sources":["webpack:///./src/views/LetterOfOfferForm.vue?18c9","webpack:///./src/views/LetterOfOfferForm.vue","webpack:///./src/views/LetterOfOfferForm.vue?5b4f","webpack:///./src/views/LetterOfOfferForm.vue?db29","webpack:///./node_modules/client-website-ts-library/types/Forms/FormConstructorData.ts","webpack:///./node_modules/client-website-ts-library/types/Forms/FormField.ts","webpack:///./node_modules/client-website-ts-library/types/Forms/FormValue.ts"],"names":["render","_vm","this","_h","$createElement","_c","_self","attrs","profile","FirstName","LastName","staticClass","formCtx","_e","staticRenderFns","ContractPreparationAdviceForm","Mixins","View","constructor","resolveId","id","$route","params","length","updateAgent","API","Slugs","Resolve","then","resolved","Type","Id","Profiles","Get","FormConstructorData","ContextItemType","EnquiryTargetProfile","mounted","__decorate","Component","components","Form","component","items","ClientWebsiteId","Config","Website","Items","FormFieldType","FormValue","key","value","Key","Value"],"mappings":"8IAAA,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,OAAO,CAAC,CAACA,EAAG,eAAe,CAACE,MAAM,CAAC,KAAO,OAAO,MAAQ,kBAAkB,SAAW,QAAUN,EAAIO,QAAQC,UAAY,IAAMR,EAAIO,QAAQE,YAAYL,EAAG,aAAa,CAACA,EAAG,mBAAmB,CAACM,YAAY,6BAA6B,CAAEV,EAAW,QAAEI,EAAG,OAAO,CAACE,MAAM,CAAC,QAAUN,EAAIW,QAAQ,KAAO,kDAAkDX,EAAIY,MAAM,IAAI,KAAK,IACzcC,EAAkB,G,oFC4BtB,IAAqBC,EAArB,cAA2DC,eAAOC,SAAlEC,c,oBACU,KAAAN,QAA0B,KAE1B,KAAAJ,QAA0B,KAElCW,YACE,MAAM,GAAEC,GAAOlB,KAAKmB,OAAOC,OAET,KAAdF,EAAGG,OAELrB,KAAKsB,YAAYJ,GAEjBK,OAAIC,MAAMC,QAAQP,GAAIQ,KAAMC,IACJ,YAAlBA,EAASC,MACX5B,KAAKsB,YAAYK,EAASE,MAMlCP,YAAYJ,GACVK,OAAIO,SAASC,IAAIb,GAAI,GAAMQ,KAAMpB,IAC/BN,KAAKM,QAAUA,EACfN,KAAKU,QAAU,IAAIsB,OAAoB,CACrC,CACEJ,KAAMK,OAAgBC,qBACtBL,GAAIvB,EAAQuB,QAMpBM,UACEnC,KAAKiB,cAjCYJ,EAA6BuB,wBAAA,CANjDC,eAAU,CACTC,WAAY,CACVC,gBAIiB1B,WC7BuX,I,YCOxY2B,EAAY,eACd,EACA1C,EACAc,GACA,EACA,KACA,WACA,MAIa,aAAA4B,E,wJCff,MAAMR,EAIJhB,YAAYyB,GAHL,KAAAC,gBAA0BC,OAAOC,QAAQf,GAI9C7B,KAAK6C,MAAQJ,GAAS,I,ICNrBK,E,WAAL,SAAKA,GAEDA,IAAA,kBACAA,IAAA,oBACAA,IAAA,gBACAA,IAAA,0BACAA,IAAA,0BACAA,IAAA,gCACAA,IAAA,8BACAA,IAAA,4CACAA,IAAA,8BACAA,IAAA,kBACAA,IAAA,6BACAA,IAAA,oCAbJ,CAAKA,MAAa,K,wCCClB,MAAMC,EAIF/B,YAAYgC,EAAaC,GACrBjD,KAAKkD,IAAMF,EACXhD,KAAKmD,MAAQF,K","file":"js/chunk-30145413.caf6a253.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\":\"Letter of Offer\",\"subtitle\":'With ' + _vm.profile.FirstName + ' ' + _vm.profile.LastName}}),_c('ContentRow',[_c('ContentContainer',{staticClass:\"content-container--medium\"},[(_vm.formCtx)?_c('Form',{attrs:{\"context\":_vm.formCtx,\"type\":\"Variations.ExploreProperty.LetterOfOfferForm\"}}):_vm._e()],1)],1)]],2)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n\n\n\n\n\n\n\n\n\r\nimport { View } from 'client-website-ts-library/plugins';\r\nimport { API, Config } from 'client-website-ts-library/services';\r\nimport { Context, Office, Profile } from 'client-website-ts-library/types';\r\nimport { ContextItemType } from 'client-website-ts-library/types/Context';\r\nimport { FormConstructorData } from 'client-website-ts-library/types/Forms';\r\nimport { Component, Mixins } from 'vue-property-decorator';\r\n\r\nimport Form from '../components/Forms/Form.vue';\r\n\r\n@Component({\r\n components: {\r\n Form,\r\n },\r\n})\r\n\r\nexport default class ContractPreparationAdviceForm extends Mixins(View) {\r\n private formCtx: Context | null = null\r\n\r\n private profile: Profile | null = null\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 updateAgent(id: string) {\r\n API.Profiles.Get(id, true).then((profile) => {\r\n this.profile = profile;\r\n this.formCtx = new FormConstructorData([\r\n {\r\n Type: ContextItemType.EnquiryTargetProfile,\r\n Id: profile.Id,\r\n },\r\n ]);\r\n });\r\n }\r\n\r\n mounted() {\r\n this.resolveId();\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!./LetterOfOfferForm.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!./LetterOfOfferForm.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./LetterOfOfferForm.vue?vue&type=template&id=5cc59956&scoped=true&\"\nimport script from \"./LetterOfOfferForm.vue?vue&type=script&lang=ts&\"\nexport * from \"./LetterOfOfferForm.vue?vue&type=script&lang=ts&\"\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 \"5cc59956\",\n null\n \n)\n\nexport default component.exports","import { Config } from \"../../services/Config\";\r\nimport { ContextItem } from \"../Context\";\r\n\r\nclass FormConstructorData {\r\n public ClientWebsiteId: string = Config.Website.Id;\r\n public Items: ContextItem[];\r\n\r\n constructor(items?: ContextItem[]) {\r\n this.Items = items || [];\r\n }\r\n}\r\n\r\nexport { FormConstructorData }\r\n","import { FormFieldLayoutOptions } from \"./FormFieldLayoutOptions\";\r\n\r\nenum FormFieldType\r\n{\r\n Text,\r\n Email,\r\n Tel,\r\n Dropdown,\r\n Textarea,\r\n VideoUpload,\r\n FileUpload,\r\n MultiFileUploader,\r\n StaticText,\r\n Date,\r\n Signature,\r\n GraphicalPDF\r\n}\r\n\r\ninterface FormField {\r\n FieldId: string;\r\n SectionId: string;\r\n Type: FormFieldType;\r\n TypeName: string;\r\n Key: string;\r\n Label: string;\r\n Placeholder: string;\r\n LayoutOptions: FormFieldLayoutOptions;\r\n Required: boolean;\r\n \r\n}\r\n\r\nexport { FormField, FormFieldType }\r\n","import { PDFFieldData } from \"./FieldTypes/PDFFieldData\";\r\nimport { PDFKeyValuePair } from \"./FieldTypes/IFormField\";\r\n\r\nclass FormValue {\r\n Key: string;\r\n Value: string | PDFFieldData | Blob | Blob[] | PDFKeyValuePair | (string | PDFKeyValuePair)[] | number | null;\r\n\r\n constructor(key: string, value: string | PDFFieldData | Blob | Blob[] | PDFKeyValuePair | (string | PDFKeyValuePair)[] | number | null) {\r\n this.Key = key;\r\n this.Value = value;\r\n }\r\n}\r\n\r\nexport { FormValue }\r\n"],"sourceRoot":""}