{"version":3,"sources":["webpack:///./src/views/LetterOfOfferForm.vue?2bed","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/FormField.ts","webpack:///./node_modules/client-website-ts-library/types/Forms/FormConstructorData.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","id","$route","params","length","updateAgent","Slugs","Resolve","then","resolved","Type","Id","Profiles","Get","Context","EnquiryTargetProfile","resolveId","components","Form","component","FormFieldType","items","ClientWebsiteId","Config","Website","Items","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,oICmCD,EAArB,yG,0BACS,EAAAF,QAA0B,KAE1B,EAAAJ,QAA0B,KAHnC,kDAKE,WAAS,WACCO,EAAOb,KAAKc,OAAOC,OAAnBF,GAEU,KAAdA,EAAGG,OAELhB,KAAKiB,YAAYJ,GAEjB,OAAIK,MAAMC,QAAQN,GAAIO,MAAK,SAACC,GACJ,YAAlBA,EAASC,MACX,EAAKL,YAAYI,EAASE,SAdpC,yBAoBE,SAAYV,GAAU,WACpB,OAAIW,SAASC,IAAIZ,GAAI,GAAMO,MAAK,SAACd,GAC/B,EAAKA,QAAUA,EACf,EAAKI,QAAU,IAAI,OAAoB,CACrC,CACEY,KAAMI,EAAA,KAAgBC,qBACtBJ,GAAIjB,EAAQiB,WA1BtB,qBAgCE,WACEvB,KAAK4B,gBAjCT,GAA+C,eAAO,SAAjC,EAAiB,yBALrC,eAAU,CACTC,WAAY,CACVC,OAAA,SAGiB,WCpCuX,I,YCOxYC,EAAY,eACd,EACAjC,EACAc,GACA,EACA,KACA,WACA,MAIa,aAAAmB,E,4IChBVC,E,wBCCC,EAIJ,WAAYC,GAAqB,uBAH1B,KAAAC,gBAA0BC,EAAA,KAAOC,QAAQb,GAI9CvB,KAAKqC,MAAQJ,GAAS,I,WDN1B,SAAKD,GAED,sBACA,wBACA,oBACA,8BACA,8BACA,oCACA,kCACA,gDACA,kCACA,sBACA,iCACA,wCAbJ,CAAKA,MAAa,K,4CECZ,EAIF,WAAYM,EAAaC,GAA6G,uBAClIvC,KAAKwC,IAAMF,EACXtC,KAAKyC,MAAQF,I","file":"js/chunk-30145413.34c6eb93.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\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\nexport default class LetterOfOfferForm extends Mixins(View) {\r\n public formCtx: Context | null = null;\r\n\r\n public 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=134555e2&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 \"134555e2\",\n null\n \n)\n\nexport default component.exports","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 { 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 { 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":""}