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B,IAAK,CACvBpB,MAAO,+BACP+D,QAASP,EAAO,KAAOA,EAAO,GAAKC,GAAWF,EAAKS,eAClD,CACD3C,GACA,sBAAiB,qBAAiBkC,EAAKb,qBAAsB,MAE/D,wBAAoB,oIAGxB,wBAAoB,QAAQ,GAC/Ba,EAAqB,mBACjB,kBAAc,wBAAoB,MAAOjC,EAAaC,KACvD,wBAAoB,QAAQ,IAEpC,MIvKA,IAAA0C,WAAUC,GAAKC,MAAM,c","sources":["webpack://aspnetcore-vuejs-typescript-template/./VueApp/contact-us/contact-us.html","webpack://aspnetcore-vuejs-typescript-template/./VueApp/contact-us/contact-us-vm.ts","webpack://aspnetcore-vuejs-typescript-template/./VueApp/contact-us/contact-us.ts","webpack://aspnetcore-vuejs-typescript-template/./VueApp/contact-us/App.vue","webpack://aspnetcore-vuejs-typescript-template/./VueApp/contact-us/main.ts"],"sourcesContent":["import { vModelText as _vModelText, normalizeClass as _normalizeClass, createElementVNode as _createElementVNode, withDirectives as _withDirectives, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, toDisplayString as _toDisplayString, createTextVNode as _createTextVNode } from \"vue\"\n\nconst _hoisted_1 = {\n key: 0,\n class: \"row\"\n}\nconst _hoisted_2 = { class: \"input-field col l6 s12\" }\nconst _hoisted_3 = /*#__PURE__*/_createElementVNode(\"label\", { for: \"name\" }, \"Name\", -1 /* HOISTED */)\nconst _hoisted_4 = [\"data-error\"]\nconst _hoisted_5 = { class: \"input-field col l6 s12\" }\nconst _hoisted_6 = /*#__PURE__*/_createElementVNode(\"label\", { for: \"name\" }, \"School/Company Name\", -1 /* HOISTED */)\nconst _hoisted_7 = [\"data-error\"]\nconst _hoisted_8 = { class: \"input-field col l6 s12\" }\nconst _hoisted_9 = /*#__PURE__*/_createElementVNode(\"label\", { for: \"email\" }, \"Email\", -1 /* HOISTED */)\nconst _hoisted_10 = [\"data-error\"]\nconst _hoisted_11 = { class: \"input-field col l6 s12\" }\nconst _hoisted_12 = /*#__PURE__*/_createElementVNode(\"label\", { for: \"email\" }, \"Phone Number\", -1 /* HOISTED */)\nconst _hoisted_13 = [\"data-error\"]\nconst _hoisted_14 = { class: \"input-field col s12\" }\nconst _hoisted_15 = /*#__PURE__*/_createElementVNode(\"label\", { for: \"email\" }, \"Subject\", -1 /* HOISTED */)\nconst _hoisted_16 = [\"data-error\"]\nconst _hoisted_17 = { class: \"input-field col s12\" }\nconst _hoisted_18 = /*#__PURE__*/_createElementVNode(\"label\", { for: \"message\" }, \"Message\", -1 /* HOISTED */)\nconst _hoisted_19 = [\"data-error\"]\nconst _hoisted_20 = { class: \"col s12\" }\nconst _hoisted_21 = /*#__PURE__*/_createElementVNode(\"i\", { class: \"material-icons left\" }, \"send\", -1 /* HOISTED */)\nconst _hoisted_22 = {\n key: 1,\n class: \"row\"\n}\nconst _hoisted_23 = /*#__PURE__*/_createElementVNode(\"div\", { class: \"col s12\" }, [\n /*#__PURE__*/_createElementVNode(\"p\", null, \"Thank you! We'll get back to you as soon as possible.\")\n], -1 /* HOISTED */)\nconst _hoisted_24 = [\n _hoisted_23\n]\n\nexport function render(_ctx, _cache) {\n return (_openBlock(), _createElementBlock(\"div\", null, [\n (_ctx.showFrom)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n _createElementVNode(\"div\", _hoisted_2, [\n _withDirectives(_createElementVNode(\"input\", {\n \"onUpdate:modelValue\": _cache[0] || (_cache[0] = $event => (_ctx.vm.name = $event)),\n name: \"name\",\n id: \"name\",\n type: \"text\",\n class: _normalizeClass(_ctx.v$.name.$errors.length === 0 ? 'valid' : 'invalid')\n }, null, 2 /* CLASS */), [\n [_vModelText, _ctx.vm.name]\n ]),\n _hoisted_3,\n (_ctx.v$.name.$errors.length)\n ? (_openBlock(), _createElementBlock(\"span\", {\n key: 0,\n class: \"helper-text\",\n \"data-error\": _ctx.v$.name.$errors[0].$message\n }, null, 8 /* PROPS */, _hoisted_4))\n : _createCommentVNode(\"v-if\", true)\n ]),\n _createElementVNode(\"div\", _hoisted_5, [\n _withDirectives(_createElementVNode(\"input\", {\n \"onUpdate:modelValue\": _cache[1] || (_cache[1] = $event => (_ctx.vm.schoolOrCompanyName = $event)),\n name: \"SchoolOrCompanyName\",\n id: \"SchoolOrCompanyName\",\n type: \"text\",\n class: _normalizeClass(_ctx.v$.schoolOrCompanyName.$errors.length === 0 ? 'valid' : 'invalid')\n }, null, 2 /* CLASS */), [\n [_vModelText, _ctx.vm.schoolOrCompanyName]\n ]),\n _hoisted_6,\n (_ctx.v$.schoolOrCompanyName.$errors.length)\n ? (_openBlock(), _createElementBlock(\"span\", {\n key: 0,\n class: \"helper-text\",\n \"data-error\": _ctx.v$.schoolOrCompanyName.$errors[0].$message\n }, null, 8 /* PROPS */, _hoisted_7))\n : _createCommentVNode(\"v-if\", true)\n ]),\n _createElementVNode(\"div\", _hoisted_8, [\n _withDirectives(_createElementVNode(\"input\", {\n \"onUpdate:modelValue\": _cache[2] || (_cache[2] = $event => (_ctx.vm.email = $event)),\n name: \"email\",\n id: \"email\",\n type: \"text\",\n class: _normalizeClass(_ctx.v$.email.$errors.length === 0 ? 'valid' : 'invalid')\n }, null, 2 /* CLASS */), [\n [_vModelText, _ctx.vm.email]\n ]),\n _hoisted_9,\n (_ctx.v$.email.$errors.length)\n ? (_openBlock(), _createElementBlock(\"span\", {\n key: 0,\n class: \"helper-text\",\n \"data-error\": _ctx.v$.email.$errors[0].$message\n }, null, 8 /* PROPS */, _hoisted_10))\n : _createCommentVNode(\"v-if\", true)\n ]),\n _createElementVNode(\"div\", _hoisted_11, [\n _withDirectives(_createElementVNode(\"input\", {\n \"onUpdate:modelValue\": _cache[3] || (_cache[3] = $event => (_ctx.vm.phoneNumber = $event)),\n name: \"Phone\",\n id: \"Phone\",\n type: \"text\",\n class: _normalizeClass(_ctx.v$.phoneNumber.$errors.length === 0 ? 'valid' : 'invalid')\n }, null, 2 /* CLASS */), [\n [_vModelText, _ctx.vm.phoneNumber]\n ]),\n _hoisted_12,\n (_ctx.v$.phoneNumber.$errors.length)\n ? (_openBlock(), _createElementBlock(\"span\", {\n key: 0,\n class: \"helper-text\",\n \"data-error\": _ctx.v$.phoneNumber.$errors[0].$message\n }, null, 8 /* PROPS */, _hoisted_13))\n : _createCommentVNode(\"v-if\", true)\n ]),\n _createElementVNode(\"div\", _hoisted_14, [\n _withDirectives(_createElementVNode(\"input\", {\n \"onUpdate:modelValue\": _cache[4] || (_cache[4] = $event => (_ctx.vm.subject = $event)),\n name: \"subject\",\n id: \"subject\",\n type: \"text\",\n class: _normalizeClass(_ctx.v$.subject.$errors.length === 0 ? 'valid' : 'invalid')\n }, null, 2 /* CLASS */), [\n [_vModelText, _ctx.vm.subject]\n ]),\n _hoisted_15,\n (_ctx.v$.subject.$errors.length)\n ? (_openBlock(), _createElementBlock(\"span\", {\n key: 0,\n class: \"helper-text\",\n \"data-error\": _ctx.v$.subject.$errors[0].$message\n }, null, 8 /* PROPS */, _hoisted_16))\n : _createCommentVNode(\"v-if\", true)\n ]),\n _createElementVNode(\"div\", _hoisted_17, [\n _withDirectives(_createElementVNode(\"textarea\", {\n \"onUpdate:modelValue\": _cache[5] || (_cache[5] = $event => (_ctx.vm.message = $event)),\n name: \"message\",\n id: \"message\",\n class: _normalizeClass([\"materialize-textarea\", _ctx.v$.message.$errors.length === 0 ? 'valid' : 'invalid'])\n }, null, 2 /* CLASS */), [\n [_vModelText, _ctx.vm.message]\n ]),\n _hoisted_18,\n (_ctx.v$.message.$errors.length)\n ? (_openBlock(), _createElementBlock(\"span\", {\n key: 0,\n class: \"helper-text\",\n \"data-error\": _ctx.v$.message.$errors[0].$message\n }, null, 8 /* PROPS */, _hoisted_19))\n : _createCommentVNode(\"v-if\", true)\n ]),\n _createElementVNode(\"div\", _hoisted_20, [\n _createElementVNode(\"a\", {\n class: \"waves-effect waves-light btn\",\n onClick: _cache[6] || (_cache[6] = $event => (_ctx.submitForm()))\n }, [\n _hoisted_21,\n _createTextVNode(_toDisplayString(_ctx.subscribeButtonText), 1 /* TEXT */)\n ]),\n _createCommentVNode(\" @Html.GoogleInvisibleReCaptcha(\\\"Submit form\\\", Configuration.GetValue(\\\"GoogleReCaptcha:ClientKey\\\"), \\\"submitForm\\\") \")\n ])\n ]))\n : _createCommentVNode(\"v-if\", true),\n (_ctx.showConfirmation)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_22, _hoisted_24))\n : _createCommentVNode(\"v-if\", true)\n ]))\n}","import { ValidationArgs } from '@vuelidate/core';\r\nimport { email, required } from '@vuelidate/validators';\r\n\r\nexport class ContactUsVm {\r\n name:string = '';\r\n schoolOrCompanyName:string = '';\r\n email:string = '';\r\n phoneNumber:string = '';\r\n subject: string = '';\r\n message: string = '';\r\n} \r\n\r\nexport const ContactUsVmValidationRules: ValidationArgs = {\r\n name: { required },\r\n schoolOrCompanyName: { required },\r\n email: { required, email },\r\n phoneNumber: { required },\r\n subject: { required },\r\n message: { required },\r\n}","import { ContactUsVm, ContactUsVmValidationRules } from './contact-us-vm';\r\nimport { Component, Vue } from 'vue-facing-decorator';\r\nimport { useVuelidate } from '@vuelidate/core';\r\nimport { reactive } from 'vue';\r\n\r\n@Component({\r\n components: {\r\n }\r\n})\r\nexport default class About extends Vue {\r\n\r\n vm = reactive(new ContactUsVm());\r\n\r\n v$: any = useVuelidate(ContactUsVmValidationRules, this.vm);\r\n\r\n showFrom: boolean = true;\r\n showConfirmation: boolean = false;\r\n enableNewsLetterButton: boolean = true;\r\n subscribeButtonText: string = 'Send';\r\n\r\n async submitForm() {\r\n this.v$.$touch();\r\n var isValid: boolean = await this.v$.$validate();\r\n\r\n if (isValid) {\r\n this.subscribeButtonText = \"sending ...\"\r\n const result = await fetch(`/ContactUsApi/`, {\r\n method: \"post\",\r\n headers: {\r\n \"Content-Type\": \"application/json\",\r\n },\r\n body: JSON.stringify(this.vm),\r\n });\r\n\r\n if(result.status == 200){\r\n this.showFrom = false;\r\n this.showConfirmation = true;\r\n }\r\n else{\r\n this.subscribeButtonText = \"Send\";\r\n }\r\n }\r\n }\r\n\r\n}","import { render } from \"./contact-us.html?vue&type=template&id=0192b8d3&ts=true\"\nimport script from \"./contact-us.ts?vue&type=script&lang=ts\"\nexport * from \"./contact-us.ts?vue&type=script&lang=ts\"\n\nimport exportComponent from \"D:\\\\Personal-Projects\\\\CkWeb\\\\src\\\\CK.Web\\\\node_modules\\\\vue-loader\\\\dist\\\\exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","import { createApp } from 'vue'\r\nimport App from './App.vue'\r\n\r\ncreateApp(App).mount('#contact-us')"],"names":["_hoisted_1","key","class","_hoisted_2","_hoisted_3","for","_hoisted_4","_hoisted_5","_hoisted_6","_hoisted_7","_hoisted_8","_hoisted_9","_hoisted_10","_hoisted_11","_hoisted_12","_hoisted_13","_hoisted_14","_hoisted_15","_hoisted_16","_hoisted_17","_hoisted_18","_hoisted_19","_hoisted_20","_hoisted_21","_hoisted_22","_hoisted_24","ContactUsVm","name","schoolOrCompanyName","email","phoneNumber","subject","message","ContactUsVmValidationRules","required","About","Vue","vm","reactive","v$","this","showFrom","showConfirmation","enableNewsLetterButton","subscribeButtonText","async","$touch","$validate","fetch","method","headers","body","JSON","stringify","status","Component","components","_ctx","_cache","$event","id","type","$errors","length","$message","onClick","submitForm","createApp","App","mount"],"sourceRoot":""}