{"ast":null,"code":"import { FormControl, FormGroup, Validators } from '@angular/forms';\nimport * as i0 from \"@angular/core\";\nimport * as i1 from \"@angular/forms\";\nimport * as i2 from \"@angular/common\";\n\nfunction ContactformComponent_span_15_Template(rf, ctx) {\n  if (rf & 1) {\n    i0.ɵɵelementStart(0, \"span\", 42);\n    i0.ɵɵtext(1, \"This field is required\");\n    i0.ɵɵelementEnd();\n  }\n}\n\nfunction ContactformComponent_span_20_Template(rf, ctx) {\n  if (rf & 1) {\n    i0.ɵɵelementStart(0, \"span\", 42);\n    i0.ɵɵtext(1, \"This field is required\");\n    i0.ɵɵelementEnd();\n  }\n}\n\nfunction ContactformComponent_span_26_Template(rf, ctx) {\n  if (rf & 1) {\n    i0.ɵɵelementStart(0, \"span\", 42);\n    i0.ɵɵtext(1, \"This field is required\");\n    i0.ɵɵelementEnd();\n  }\n}\n\nfunction ContactformComponent_span_31_Template(rf, ctx) {\n  if (rf & 1) {\n    i0.ɵɵelementStart(0, \"span\", 42);\n    i0.ɵɵtext(1, \"This field is required\");\n    i0.ɵɵelementEnd();\n  }\n}\n\nfunction ContactformComponent_span_35_Template(rf, ctx) {\n  if (rf & 1) {\n    i0.ɵɵelementStart(0, \"span\", 42);\n    i0.ɵɵtext(1, \"This field is required\");\n    i0.ɵɵelementEnd();\n  }\n}\n\nexport let ContactformComponent = /*#__PURE__*/(() => {\n  class ContactformComponent {\n    constructor() {\n      this.data = {};\n      this.UserDetails = new FormGroup({\n        name: new FormControl('', [Validators.required]),\n        email: new FormControl('', [Validators.required, Validators.email]),\n        phone: new FormControl('', [Validators.required]),\n        subject: new FormControl('', [Validators.required]),\n        message: new FormControl('', [Validators.required])\n      });\n    }\n\n    sendEmail() {\n      this.data = this.UserDetails.value;\n      console.log(this.data);\n    }\n\n    get name() {\n      return this.UserDetails.get('name');\n    }\n\n    get email() {\n      return this.UserDetails.get('email');\n    }\n\n    get phone() {\n      return this.UserDetails.get('phone');\n    }\n\n    get subject() {\n      return this.UserDetails.get('subject');\n    }\n\n    get message() {\n      return this.UserDetails.get('message');\n    }\n\n    ngOnInit() {}\n\n  }\n\n  ContactformComponent.ɵfac = function ContactformComponent_Factory(t) {\n    return new (t || ContactformComponent)();\n  };\n\n  ContactformComponent.ɵcmp = /*@__PURE__*/i0.ɵɵdefineComponent({\n    type: ContactformComponent,\n    selectors: [[\"app-contactform\"]],\n    decls: 85,\n    vars: 7,\n    consts: [[1, \"container\", \"my-5\"], [1, \"row\"], [1, \"col-lg-8\"], [1, \"cmt-col-bgcolor-yes\", \"cmt-bg\", \"cmt-bgcolor-grey\", \"spacing-9\", \"border-right\"], [1, \"cmt-col-wrapper-bg-layer\", \"cmt-bg-layer\"], [1, \"section-title\", \"with-desc\", \"clearfix\"], [1, \"title-header\"], [1, \"title\"], [\"id\", \"cmt-contactform-2\", 1, \"cmt-contactform-2\", \"wrap-form\", \"clearfix\", 3, \"formGroup\", \"ngSubmit\"], [1, \"col-lg-6\"], [1, \"text-input\"], [\"formControlName\", \"name\", \"type\", \"text\", \"value\", \"\", \"placeholder\", \"Your Name\", \"required\", \"required\"], [\"style\", \"color: red\", 4, \"ngIf\"], [\"formControlName\", \"email\", \"type\", \"text\", \"value\", \"\", \"placeholder\", \"Your Email\", \"required\", \"required\"], [\"formControlName\", \"phone\", \"type\", \"text\", \"value\", \"\", \"placeholder\", \"Phone Number\", \"required\", \"required\"], [\"formControlName\", \"subject\", \"type\", \"text\", \"value\", \"\", \"placeholder\", \"Subject\", \"required\", \"required\"], [\"formControlName\", \"message\", \"rows\", \"3\", \"placeholder\", \"Message\", \"required\", \"required\"], [\"type\", \"submit\", 1, \"submit\", \"cmt-btn\", \"cmt-btn-size-md\", \"cmt-btn-shape-square\", \"cmt-btn-style-fill\", \"cmt-btn-color-skincolor\", 3, \"disabled\"], [1, \"col-lg-4\"], [1, \"cmt-col-bgcolor-yes\", \"cmt-bg\", \"cmt-bgcolor-grey\", \"spacing-9\", \"border-left\"], [1, \"layer-content\"], [1, \"mb-15\", \"pb-15\", \"border-bottom\"], [1, \"d-flex\"], [1, \"cmt-icon\", \"cmt-icon_element-onlytxt\", \"cmt-icon_element-color-skincolor\", \"cmt-icon_element-size-sm\", \"mr-2\", \"mb-0\"], [1, \"flaticon\", \"flaticon-world\"], [1, \"flaticon\", \"flaticon-call\"], [\"href\", \"tel:+919581514666\"], [1, \"flaticon\", \"flaticon-message\"], [\"href\", \"vasavicourier@gmail.com\"], [1, \"social-icons\", \"circle\", \"social-hover\", \"mt-15\"], [1, \"social-facebook\"], [\"target\", \"_blank\", \"href\", \"#\", \"data-tooltip\", \"Facebook\", 1, \"tooltip-top\"], [\"aria-hidden\", \"true\", 1, \"fa\", \"fa-facebook\"], [1, \"social-twitter\"], [\"target\", \"_blank\", \"href\", \"#\", \"data-tooltip\", \"Twitter\", 1, \"tooltip-top\"], [\"aria-hidden\", \"true\", 1, \"fa\", \"fa-twitter\"], [1, \"social-gplus\"], [\"target\", \"_blank\", \"href\", \"#\", \"data-tooltip\", \"Google+\", 1, \"tooltip-top\"], [\"aria-hidden\", \"true\", 1, \"fa\", \"fa-google-plus\"], [1, \"social-linkedin\"], [\"target\", \"_blank\", \"href\", \"#\", \"data-tooltip\", \"LinkedIn\", 1, \"tooltip-top\"], [\"aria-hidden\", \"true\", 1, \"fa\", \"fa-linkedin\"], [2, \"color\", \"red\"]],\n    template: function ContactformComponent_Template(rf, ctx) {\n      if (rf & 1) {\n        i0.ɵɵelementStart(0, \"div\", 0);\n        i0.ɵɵelementStart(1, \"div\", 1);\n        i0.ɵɵelementStart(2, \"div\", 2);\n        i0.ɵɵelementStart(3, \"div\", 3);\n        i0.ɵɵelement(4, \"div\", 4);\n        i0.ɵɵelementStart(5, \"div\", 5);\n        i0.ɵɵelementStart(6, \"div\", 6);\n        i0.ɵɵelementStart(7, \"h2\", 7);\n        i0.ɵɵtext(8, \"Contact Us\");\n        i0.ɵɵelementEnd();\n        i0.ɵɵelementEnd();\n        i0.ɵɵelementEnd();\n        i0.ɵɵelementStart(9, \"form\", 8);\n        i0.ɵɵlistener(\"ngSubmit\", function ContactformComponent_Template_form_ngSubmit_9_listener() {\n          return ctx.sendEmail();\n        });\n        i0.ɵɵelementStart(10, \"div\", 1);\n        i0.ɵɵelementStart(11, \"div\", 9);\n        i0.ɵɵelementStart(12, \"label\");\n        i0.ɵɵelementStart(13, \"span\", 10);\n        i0.ɵɵelement(14, \"input\", 11);\n        i0.ɵɵtemplate(15, ContactformComponent_span_15_Template, 2, 0, \"span\", 12);\n        i0.ɵɵelementEnd();\n        i0.ɵɵelementEnd();\n        i0.ɵɵelementEnd();\n        i0.ɵɵelementStart(16, \"div\", 9);\n        i0.ɵɵelementStart(17, \"label\");\n        i0.ɵɵelementStart(18, \"span\", 10);\n        i0.ɵɵelement(19, \"input\", 13);\n        i0.ɵɵtemplate(20, ContactformComponent_span_20_Template, 2, 0, \"span\", 12);\n        i0.ɵɵelementEnd();\n        i0.ɵɵelementEnd();\n        i0.ɵɵelementEnd();\n        i0.ɵɵelementEnd();\n        i0.ɵɵelementStart(21, \"div\", 1);\n        i0.ɵɵelementStart(22, \"div\", 9);\n        i0.ɵɵelementStart(23, \"label\");\n        i0.ɵɵelementStart(24, \"span\", 10);\n        i0.ɵɵelement(25, \"input\", 14);\n        i0.ɵɵtemplate(26, ContactformComponent_span_26_Template, 2, 0, \"span\", 12);\n        i0.ɵɵelementEnd();\n        i0.ɵɵelementEnd();\n        i0.ɵɵelementEnd();\n        i0.ɵɵelementStart(27, \"div\", 9);\n        i0.ɵɵelementStart(28, \"label\");\n        i0.ɵɵelementStart(29, \"span\", 10);\n        i0.ɵɵelement(30, \"input\", 15);\n        i0.ɵɵtemplate(31, ContactformComponent_span_31_Template, 2, 0, \"span\", 12);\n        i0.ɵɵelementEnd();\n        i0.ɵɵelementEnd();\n        i0.ɵɵelementEnd();\n        i0.ɵɵelementEnd();\n        i0.ɵɵelementStart(32, \"label\");\n        i0.ɵɵelementStart(33, \"span\", 10);\n        i0.ɵɵelement(34, \"textarea\", 16);\n        i0.ɵɵtemplate(35, ContactformComponent_span_35_Template, 2, 0, \"span\", 12);\n        i0.ɵɵelementEnd();\n        i0.ɵɵelementEnd();\n        i0.ɵɵelementStart(36, \"button\", 17);\n        i0.ɵɵtext(37, \" Send Message \");\n        i0.ɵɵelementEnd();\n        i0.ɵɵelementEnd();\n        i0.ɵɵelementEnd();\n        i0.ɵɵelementEnd();\n        i0.ɵɵelementStart(38, \"div\", 18);\n        i0.ɵɵelementStart(39, \"div\", 19);\n        i0.ɵɵelement(40, \"div\", 4);\n        i0.ɵɵelementStart(41, \"div\", 20);\n        i0.ɵɵelementStart(42, \"div\", 21);\n        i0.ɵɵelementStart(43, \"h5\");\n        i0.ɵɵtext(44, \"Location\");\n        i0.ɵɵelementEnd();\n        i0.ɵɵelementStart(45, \"div\", 22);\n        i0.ɵɵelementStart(46, \"div\", 23);\n        i0.ɵɵelement(47, \"i\", 24);\n        i0.ɵɵelementEnd();\n        i0.ɵɵelementStart(48, \"div\");\n        i0.ɵɵtext(49, \" 11-10-744/2, BUS DEPO ROAD, BURHANPURAM ROAD NO: 5, KHAMMAM \");\n        i0.ɵɵelementEnd();\n        i0.ɵɵelementEnd();\n        i0.ɵɵelementEnd();\n        i0.ɵɵelementStart(50, \"div\", 21);\n        i0.ɵɵelementStart(51, \"h5\");\n        i0.ɵɵtext(52, \"Phone\");\n        i0.ɵɵelementEnd();\n        i0.ɵɵelementStart(53, \"div\", 22);\n        i0.ɵɵelementStart(54, \"div\", 23);\n        i0.ɵɵelement(55, \"i\", 25);\n        i0.ɵɵelementEnd();\n        i0.ɵɵelementStart(56, \"div\");\n        i0.ɵɵtext(57, \"Phone:\");\n        i0.ɵɵelementStart(58, \"a\", 26);\n        i0.ɵɵtext(59, \"+91 9581514666\");\n        i0.ɵɵelementEnd();\n        i0.ɵɵelementEnd();\n        i0.ɵɵelementEnd();\n        i0.ɵɵelementEnd();\n        i0.ɵɵelementStart(60, \"div\", 21);\n        i0.ɵɵelementStart(61, \"h5\");\n        i0.ɵɵtext(62, \"Email\");\n        i0.ɵɵelementEnd();\n        i0.ɵɵelementStart(63, \"div\", 22);\n        i0.ɵɵelementStart(64, \"div\", 23);\n        i0.ɵɵelement(65, \"i\", 27);\n        i0.ɵɵelementEnd();\n        i0.ɵɵelementStart(66, \"div\");\n        i0.ɵɵtext(67, \" Email: \");\n        i0.ɵɵelementStart(68, \"a\", 28);\n        i0.ɵɵtext(69, \"vasavicourier@gmail.com\");\n        i0.ɵɵelementEnd();\n        i0.ɵɵelementEnd();\n        i0.ɵɵelementEnd();\n        i0.ɵɵelementEnd();\n        i0.ɵɵelementStart(70, \"h5\");\n        i0.ɵɵtext(71, \"Get Social\");\n        i0.ɵɵelementEnd();\n        i0.ɵɵelementStart(72, \"ul\", 29);\n        i0.ɵɵelementStart(73, \"li\", 30);\n        i0.ɵɵelementStart(74, \"a\", 31);\n        i0.ɵɵelement(75, \"i\", 32);\n        i0.ɵɵelementEnd();\n        i0.ɵɵelementEnd();\n        i0.ɵɵelementStart(76, \"li\", 33);\n        i0.ɵɵelementStart(77, \"a\", 34);\n        i0.ɵɵelement(78, \"i\", 35);\n        i0.ɵɵelementEnd();\n        i0.ɵɵelementEnd();\n        i0.ɵɵelementStart(79, \"li\", 36);\n        i0.ɵɵelementStart(80, \"a\", 37);\n        i0.ɵɵelement(81, \"i\", 38);\n        i0.ɵɵelementEnd();\n        i0.ɵɵelementEnd();\n        i0.ɵɵelementStart(82, \"li\", 39);\n        i0.ɵɵelementStart(83, \"a\", 40);\n        i0.ɵɵelement(84, \"i\", 41);\n        i0.ɵɵelementEnd();\n        i0.ɵɵelementEnd();\n        i0.ɵɵelementEnd();\n        i0.ɵɵelementEnd();\n        i0.ɵɵelementEnd();\n        i0.ɵɵelementEnd();\n        i0.ɵɵelementEnd();\n        i0.ɵɵelementEnd();\n      }\n\n      if (rf & 2) {\n        i0.ɵɵadvance(9);\n        i0.ɵɵproperty(\"formGroup\", ctx.UserDetails);\n        i0.ɵɵadvance(6);\n        i0.ɵɵproperty(\"ngIf\", ctx.name && ctx.name.invalid && ctx.name.touched);\n        i0.ɵɵadvance(5);\n        i0.ɵɵproperty(\"ngIf\", ctx.email && ctx.email.invalid && ctx.email.touched);\n        i0.ɵɵadvance(6);\n        i0.ɵɵproperty(\"ngIf\", ctx.phone && ctx.phone.invalid && ctx.phone.touched);\n        i0.ɵɵadvance(5);\n        i0.ɵɵproperty(\"ngIf\", ctx.subject && ctx.subject.invalid && ctx.subject.touched);\n        i0.ɵɵadvance(4);\n        i0.ɵɵproperty(\"ngIf\", ctx.message && ctx.message.invalid && ctx.message.touched);\n        i0.ɵɵadvance(1);\n        i0.ɵɵproperty(\"disabled\", ctx.UserDetails.invalid);\n      }\n    },\n    directives: [i1.ɵNgNoValidate, i1.NgControlStatusGroup, i1.FormGroupDirective, i1.DefaultValueAccessor, i1.NgControlStatus, i1.FormControlName, i1.RequiredValidator, i2.NgIf],\n    styles: [\"button[_ngcontent-%COMP%]{color:#fff!important}button[_ngcontent-%COMP%]:disabled{opacity:.5}\"]\n  });\n  return ContactformComponent;\n})();","map":null,"metadata":{},"sourceType":"module"}