{"version":3,"sources":["webpack:///./src/views/ContractPreparationAdviceForm.vue?e9f8","webpack:///./src/views/ContractPreparationAdviceForm.vue","webpack:///./src/views/ContractPreparationAdviceForm.vue?0e5e","webpack:///./src/views/ContractPreparationAdviceForm.vue?35b4","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":"uKAAA,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,mCAAmC,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,yEAAyEX,EAAIY,MAAM,IAAI,KAAK,IACjfC,EAAkB,G,oIC4BD,EAArB,yG,0BACU,EAAAF,QAA0B,KAE1B,EAAAJ,QAA0B,KAHpC,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,GAA2D,eAAO,SAA7C,EAA6B,yBANjD,eAAU,CACTC,WAAY,CACVC,OAAA,SAIiB,WC7BmY,I,YCOpZC,EAAY,eACd,EACAjC,EACAc,GACA,EACA,KACA,WACA,MAIa,aAAAmB,E,qHChBVC,E,oCCCC,E,gBAIJ,WAAYC,GAAqB,uBAH1B,KAAAC,gBAA0BC,EAAA,KAAOC,QAAQb,GAI9CvB,KAAKqC,MAAQJ,GAAS,M,WDN1B,SAAKD,GAED,sBACA,wBACA,oBACA,8BACA,8BACA,oCACA,kCACA,gDACA,kCACA,sBACA,iCACA,wCAbJ,CAAKA,MAAa,K,4CECZ,E,gBAIF,WAAYM,EAAaC,GAA6G,uBAClIvC,KAAKwC,IAAMF,EACXtC,KAAKyC,MAAQF,M","file":"js/chunk-44fbdcfc.58af3f7d.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\":\"Contract Preparation Advice Form\",\"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.Whitsunday.ContractPreparationAdviceForm\"}}):_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!./ContractPreparationAdviceForm.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!./ContractPreparationAdviceForm.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./ContractPreparationAdviceForm.vue?vue&type=template&id=7dc1159f&scoped=true&\"\nimport script from \"./ContractPreparationAdviceForm.vue?vue&type=script&lang=ts&\"\nexport * from \"./ContractPreparationAdviceForm.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 \"7dc1159f\",\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":""}