{"version":3,"sources":["web.js","app.js","contactUs/services/contactUs.service.js","designDevelopment/services/designDevelopment.service.js","inquiryUs/services/inquiryUs.service.js","contactUs/contactUs.js","core/common.js","core/commondirective.js","designDevelopment/designDevelopment.js","inquiryUs/inquiryUs.js","core/directives/format.js","core/filters/humanize.filter.js","core/lib/aimSave.js","core/components/alert/alert.js","core/components/backButton/backButton.js","core/components/checkbox/checkbox.js","core/components/inputFile/inputFile.js","core/components/nextButton/nextButton.js","core/components/phoneNumber/phoneNumber.js","core/components/radioAgeRange/radioAgeRange.js","core/components/radioButtons/radioButtons.js","core/components/radioStandardOption/radioStandardOption.js","core/components/radioYesNo/radioYesNo.js","core/components/saveExitButton/saveExitButton.js","core/components/selectBox/selectBox.js","core/components/selectBoxTwo/selectBoxTwo.js","core/components/submitApplicationButton/submitApplicationButton.js","core/components/submitButton/submitButton.js","core/components/textbox/textbox.js","core/components/textbox-contact/textbox-contact.js","core/components/textboxArea/textboxArea.js","core/components/textboxDate/textboxDate.js","templates.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AC1LA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;ACtCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;ACrBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;ACnCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;ACnCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;ACtBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AC1DA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AC3EA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;ACtEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AC9MA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;ACtBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;ACvFA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;ACfA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AChBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;ACrFA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;ACfA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;ACzCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;ACjBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;ACfA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;ACdA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;ACdA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;ACfA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;ACpBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;ACpBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;ACdA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;ACpBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AC9CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AChBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;yEC5CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","file":"app.js","sourcesContent":["$(document).ready(function () {\r\n $(\".navbar-toggle\").click(function (e) {\r\n $(\"html\").toggleClass(\"overflow-hidden\");\r\n });\r\n headerscroll();\r\n});\r\n\r\n\r\n/*** Header Sticky Js ***/\r\nfunction headerscroll() {\r\n var headerheight = $(\"header\").height();\r\n var scroll = $(window).scrollTop();\r\n if (scroll >= headerheight) {\r\n $(\"header\").addClass(\"sticky\");\r\n } else {\r\n $(\"header\").removeClass(\"sticky\");\r\n }\r\n};\r\n$(window).scroll(function () {\r\n headerscroll();\r\n});\r\n\r\n\r\n/*** Hero Slider Js ***/\r\nvar swiper = new Swiper('.hero-swiper', {\r\n loop: true,\r\n autoplay: {\r\n delay: 5000,\r\n disableOnInteraction: false,\r\n },\r\n effect: 'fade',\r\n speed: 2000,\r\n autoplayDisableOnInteraction: true,\r\n slidesPerView: 1,\r\n pagination: {\r\n el: '.swiper-pagination',\r\n clickable: true,\r\n },\r\n});\r\n\r\n/*** Products Slider Js ***/\r\nvar swiper = new Swiper('.products-swiper', {\r\n loop: true,\r\n autoplay: {\r\n delay: 5000,\r\n disableOnInteraction: false,\r\n },\r\n speed: 2000,\r\n autoplayDisableOnInteraction: true,\r\n spaceBetween: 30,\r\n slidesPerView: 3,\r\n pagination: {\r\n el: '.swiper-pagination',\r\n clickable: true,\r\n },\r\n breakpoints: {\r\n 300: {\r\n slidesPerView: 1,\r\n },\r\n 400: {\r\n slidesPerView: 1.5,\r\n },\r\n 576: {\r\n slidesPerView: 2,\r\n },\r\n 768: {\r\n slidesPerView: 3,\r\n },\r\n }\r\n});\r\n\r\n/*** Select2 Js ***/\r\nfunction formatState(state) {\r\n if (!state.id) {\r\n return state.text;\r\n }\r\n var baseUrl = \"https://hatscripts.github.io/circle-flags/flags/\";\r\n var $state = $(\r\n '
' + state.text + ''\r\n );\r\n $state.find(\"span\").text(state.text);\r\n $state.find(\"img\").attr(\"src\", baseUrl + \"/\" + state.element.value.toLowerCase() + \".svg\");\r\n\r\n return $state;\r\n};\r\nif ($('.common-form').length > 0) {\r\n $(document).ready(function () {\r\n $(\".custom-select\").select2({\r\n minimumResultsForSearch: -1\r\n });\r\n $(\"#countries\").select2({\r\n templateSelection: formatState,\r\n templateResult: formatState\r\n });\r\n });\r\n};\r\n\r\n\r\n/***about page multiple image slider js***/\r\nvar swiper = new Swiper('.common-slider-container', {\r\n slidesPerView: 1,\r\n spaceBetween: 30,\r\n loop: true,\r\n navigation: {\r\n nextEl: '.swiper-button-next',\r\n prevEl: '.swiper-button-prev',\r\n },\r\n centeredSlides: true,\r\n autoplayDisableOnInteraction: false,\r\n breakpoints: {\r\n 300: {\r\n slidesPerView: 1.4,\r\n },\r\n 576: {\r\n slidesPerView: 2.1,\r\n },\r\n 992: {\r\n slidesPerView: 3.5,\r\n },\r\n 1200: {\r\n slidesPerView: 3.8,\r\n },\r\n 2000: {\r\n slidesPerView: 6.1,\r\n },\r\n 2600: {\r\n slidesPerView: 8.1,\r\n },\r\n }\r\n});\r\n/***about page multiple image slider js***/\r\n\r\n/***how we decorate slider***/\r\nvar swiper = new Swiper('.decorate-container', {\r\n slidesPerView: 1,\r\n loop: true,\r\n effect: 'fade',\r\n navigation: {\r\n nextEl: '.swiper-button-next',\r\n prevEl: '.swiper-button-prev',\r\n },\r\n pagination: {\r\n el: '.swiper-pagination',\r\n clickable: true,\r\n },\r\n autoplayDisableOnInteraction: false,\r\n breakpoints: {\r\n 991: {\r\n autoplay:\r\n {\r\n delay: 3000,\r\n disableOnInteraction: false,\r\n },\r\n },\r\n },\r\n});\r\n/***how we decorate slider end***/\r\n\r\n/*** AOS Animation Js ***/\r\nAOS.init({\r\n duration: 1000,\r\n});\r\n\r\n/*** Back to top btn Js ***/\r\nif ($('#back-to-top').length) {\r\n var scrollTrigger = 150, // px\r\n backToTop = function () {\r\n var scrollTop = $(window).scrollTop();\r\n if (scrollTop > scrollTrigger) {\r\n $('#back-to-top').addClass('show');\r\n } else {\r\n $('#back-to-top').removeClass('show');\r\n }\r\n };\r\n backToTop();\r\n $(window).on('scroll', function () {\r\n backToTop();\r\n });\r\n $('#back-to-top').on('click', function (e) {\r\n e.preventDefault();\r\n $('html,body').animate({\r\n scrollTop: 0\r\n }, 700);\r\n });\r\n}\r\n\r\n","(function (angular) {\r\n \"use strict\";\r\n\r\n var app = angular.module(\"myApp\", [\r\n \"ngSanitize\",\r\n \"angularFileUpload\",\r\n \"cp.ngConfirm\"\r\n ]);\r\n\r\n app.run([\r\n '$ngConfirmDefaults',\r\n function ($ngConfirmDefaults) {\r\n $ngConfirmDefaults.theme = 'bootstrap';\r\n }\r\n ]);\r\n\r\n app.config([\r\n '$compileProvider', \r\n function ($compileProvider) {\r\n $compileProvider.aHrefSanitizationWhitelist(/^\\s*(https?|ftp|tel|mailto|file|chrome-extension|javascript):/);\r\n }\r\n ]);\r\n\r\n app.directive('enterKey', function () {\r\n return function (scope, element, attrs) {\r\n element.bind(\"keydown keypress\", function (event) {\r\n\r\n if (event.which === 13) {\r\n scope.$apply(function () {\r\n scope.$eval(attrs.enterKey);\r\n });\r\n event.preventDefault();\r\n }\r\n });\r\n };\r\n });\r\n\r\n}(window.angular));\r\n","(function (angular) {\r\n \"use strict\";\r\n \r\n angular.module('myApp')\r\n .service('contactUsService', [\r\n '$http',\r\n function ($http) {\r\n \r\n var urlBase = 'api/contact-us/';\r\n \r\n this.save = function (dto) {\r\n return $http({\r\n url: urlBase,\r\n method: 'POST',\r\n data: dto\r\n });\r\n };\r\n }\r\n ]);\r\n \r\n }(window.angular));\r\n","(function (angular) {\r\n \"use strict\";\r\n \r\n angular.module('myApp')\r\n .service('designDevelopmentService', [\r\n '$http',\r\n function ($http) {\r\n \r\n var urlBase = 'api/design-development/';\r\n \r\n this.save = function (dto) {\r\n return $http({\r\n url: urlBase,\r\n method: 'POST',\r\n data: dto\r\n });\r\n };\r\n\r\n this.categories = function () {\r\n return $http({\r\n url: 'api/products/get-categories',\r\n method: 'GET'\r\n });\r\n };\r\n\r\n this.products = function (categoryId) {\r\n return $http({\r\n url: 'api/products/get-sub-categories/' + categoryId,\r\n method: 'GET'\r\n });\r\n };\r\n }\r\n ]);\r\n \r\n }(window.angular));\r\n","(function (angular) {\r\n \"use strict\";\r\n \r\n angular.module('myApp')\r\n .service('inquiryUsService', [\r\n '$http',\r\n function ($http) {\r\n \r\n var urlBase = 'api/inquiry-us/';\r\n \r\n this.save = function (dto) {\r\n return $http({\r\n url: urlBase,\r\n method: 'POST',\r\n data: dto\r\n });\r\n };\r\n\r\n this.categories = function () {\r\n return $http({\r\n url: 'api/products/get-categories',\r\n method: 'GET'\r\n });\r\n };\r\n\r\n this.products = function (categoryId) {\r\n return $http({\r\n url: 'api/products/get-sub-categories/' + categoryId,\r\n method: 'GET'\r\n });\r\n };\r\n }\r\n ]);\r\n \r\n }(window.angular));\r\n","(function (angular) {\r\n \"use strict\";\r\n\r\n angular.module('myApp').component('contactUs', {\r\n templateUrl: '/contactUs/contactUs.tpl.html',\r\n controller: [\r\n '$scope', '$http', 'aimSave','contactUsService',\r\n function ($scope, $http, aimSave, contactUsService) {\r\n\r\n $scope.aim = new aimSave();\r\n $scope.aim.serviceMethod = contactUsService.save;\r\n\r\n $(function () {\r\n var customSelect = $('.c-custom-select');\r\n jcf.replace(customSelect);\r\n });\r\n\r\n }\r\n ],\r\n });\r\n\r\n}(window.angular));\r\n","$(document).ready(function () {\r\n //setTimeout(function () { initAutoSearchcomplete(); }, 1000);\r\n});\r\n\r\nfunction initAutoSearchcomplete() {\r\n // Create the autocomplete object, restricting the search predictions to\r\n // geographical location types.\r\n\r\n var autocomplete = new google.maps.places.Autocomplete(\r\n document.getElementById('searchAddress'),\r\n { types: ['establishment'], componentRestrictions: { country: \"us\" }, placeholder: undefined });\r\n \r\n}\r\n","angular.module('myApp').directive('allowDecimalNumbers', function () {\r\n return {\r\n restrict: 'A',\r\n link: function (scope, elm, attrs, ctrl) {\r\n elm.on('keydown',\r\n function (event) {\r\n\r\n var $input = $(this);\r\n var value = $input.val();\r\n value = value.replace(/[^0-9\\.]/g, '');\r\n $input.val(value);\r\n\r\n if (event.which === 64 || event.which === 16) {\r\n // numbers \r\n return false;\r\n }\r\n if ([8, 9, 13, 27, 37, 38, 39, 40].indexOf(event.which) > -1) {\r\n // backspace, Tab,enter, escape, arrows \r\n return true;\r\n } else if (event.which >= 48 && event.which <= 57) {\r\n // numbers \r\n return true;\r\n } else if (event.which >= 96 && event.which <= 105) {\r\n // numpad number \r\n return true;\r\n }\r\n else if ([46, 110, 190].indexOf(event.which) > -1) {\r\n // dot and numpad dot \r\n return true;\r\n }\r\n else {\r\n event.preventDefault();\r\n return false;\r\n }\r\n });\r\n }\r\n };\r\n});\r\nangular.module('myApp').directive('allowNumbersOnly', function () {\r\n return {\r\n require: 'ngModel',\r\n link: function (scope, element, attr, ngModelCtrl) {\r\n function fromUser(text) {\r\n if (text) {\r\n var transformedInput = text.replace(/[^0-9]/g, '');\r\n\r\n if (transformedInput !== text) {\r\n ngModelCtrl.$setViewValue(transformedInput);\r\n ngModelCtrl.$render();\r\n }\r\n return transformedInput;\r\n }\r\n return undefined;\r\n }\r\n ngModelCtrl.$parsers.push(fromUser);\r\n }\r\n };\r\n});\r\n","(function (angular) {\r\n \"use strict\";\r\n\r\n angular.module('myApp').component('designDevelopment', {\r\n templateUrl: '/designDevelopment/designDevelopment.tpl.html',\r\n controller: [\r\n '$scope', '$http', 'aimSave', 'designDevelopmentService','FileUploader',\r\n function ($scope, $http, aimSave, designDevelopmentService, FileUploader) {\r\n\r\n $scope.aim = new aimSave();\r\n $scope.aim.serviceMethod = designDevelopmentService.save;\r\n $scope.aim.dto.country = \"US\";\r\n designDevelopmentService.categories().then(function (resp) {\r\n $scope.categories = resp.data;\r\n });\r\n\r\n $scope.productChange = function () {\r\n designDevelopmentService.products($scope.aim.dto.categoryId).then(function (resp) {\r\n $scope.products = resp.data;\r\n });\r\n }\r\n\r\n function formatState(state) {\r\n if (!state.id) {\r\n return state.text;\r\n }\r\n var baseUrl = \"https://hatscripts.github.io/circle-flags/flags/\";\r\n var $state = $(\r\n '
' + state.text + ''\r\n );\r\n $state.find(\"span\").text(state.text);\r\n $state.find(\"img\").attr(\"src\", baseUrl + \"/\" + state.element.value.toLowerCase() + \".svg\");\r\n\r\n return $state;\r\n };\r\n\r\n setTimeout(function () {\r\n $(\".custom-select\").select2({\r\n minimumResultsForSearch: -1\r\n });\r\n\r\n $(\"#countries\").select2({\r\n templateSelection: formatState,\r\n templateResult: formatState\r\n });\r\n }, 200);\r\n\r\n $scope.entity = {};\r\n $scope.result = {};\r\n $scope.errors = {};\r\n $scope.tempUploadUrl = tempUploads;\r\n $scope.designDevelopmentUpload = designDevelopmentUpload;\r\n\r\n $scope.profileUploader = new FileUploader({ url: \"design-development-image-upload\" });\r\n $scope.profileUploader.onAfterAddingFile = function (fileItem) { fileItem.uploader.queue[0].upload(); };\r\n $scope.profileUploader.onProgressItem = function (fileItem, progress) { };\r\n $scope.profileUploader.onCompleteItem = function (fileItem, response, status, headers) {\r\n debugger;\r\n if (response.success) {\r\n $scope.entity.profileImage = response.data.filePath + response.data.fileName;\r\n }\r\n else {\r\n $scope.errors.profileImage = response.message;\r\n $scope.entity.profileImage = '';\r\n }\r\n $scope.aim.dto.image = $scope.entity.profileImage;\r\n if (this._directives.select[0].element[0].value !== undefined)\r\n this._directives.select[0].element[0].value = '';\r\n fileItem.uploader.clearQueue();\r\n };\r\n }\r\n ],\r\n });\r\n\r\n}(window.angular));\r\n","(function (angular) {\r\n \"use strict\";\r\n\r\n angular.module('myApp').component('inquiryUs', {\r\n templateUrl: '/inquiryUs/inquiryUs.tpl.html',\r\n controller: [\r\n '$scope', '$http', 'aimSave','inquiryUsService',\r\n function ($scope, $http, aimSave, inquiryUsService) {\r\n\r\n $scope.aim = new aimSave();\r\n $scope.aim.serviceMethod = inquiryUsService.save;\r\n $scope.aim.dto.country = \"US\";\r\n\r\n inquiryUsService.categories().then(function (resp) {\r\n $scope.categories = resp.data;\r\n });\r\n\r\n $scope.productChange = function () {\r\n inquiryUsService.products($scope.aim.dto.categoryId).then(function (resp) {\r\n $scope.products = resp.data;\r\n });\r\n }\r\n\r\n function formatState(state) {\r\n if (!state.id) {\r\n return state.text;\r\n }\r\n var baseUrl = \"https://hatscripts.github.io/circle-flags/flags/\";\r\n var $state = $(\r\n '
' + state.text + ''\r\n );\r\n $state.find(\"span\").text(state.text);\r\n $state.find(\"img\").attr(\"src\", baseUrl + \"/\" + state.element.value.toLowerCase() + \".svg\");\r\n\r\n return $state;\r\n };\r\n\r\n setTimeout(function () {\r\n $(\".custom-select\").select2({\r\n minimumResultsForSearch: -1\r\n });\r\n\r\n $(\"#countries\").select2({\r\n templateSelection: formatState,\r\n templateResult: formatState\r\n });\r\n }, 200);\r\n //var input = document.querySelector(\"#contactNo\");\r\n\r\n //window.intlTelInput(input, {\r\n // llowExtensions: true,\r\n // formatOnDisplay: true,\r\n // autoFormat: true,\r\n // autoHideDialCode: true,\r\n // autoPlaceholder: true,\r\n // defaultCountry: \"auto\",\r\n // ipinfoToken: \"yolo\",\r\n\r\n // nationalMode: false,\r\n // numberType: \"MOBILE\",\r\n // preventInvalidNumbers: true,\r\n // separateDialCode: true,\r\n // utilsScript: \"js/utils.js\",\r\n //});\r\n\r\n }\r\n ],\r\n });\r\n\r\n}(window.angular));\r\n","(function (angular) {\r\n \"use strict\";\r\n\r\n angular.module('myApp').directive('format', ['$filter', function ($filter) {\r\n return {\r\n require: '?ngModel',\r\n link: function (scope, elem, attrs, ctrl) {\r\n if (!ctrl) return;\r\n\r\n\r\n ctrl.$formatters.unshift(function (a) {\r\n return $filter(attrs.format)(ctrl.$modelValue)\r\n });\r\n\r\n\r\n ctrl.$parsers.unshift(function (viewValue) {\r\n\r\n elem.priceFormat({\r\n prefix: '',\r\n centsSeparator: '.',\r\n thousandsSeparator: ''\r\n });\r\n\r\n return elem[0].value;\r\n });\r\n }\r\n };\r\n }]);\r\n\r\n}(window.angular));\r\n\r\n\r\n(function ($) {\r\n $.fn.priceFormat = function (options) {\r\n var defaults = {\r\n prefix: 'US$ ',\r\n suffix: '',\r\n centsSeparator: '.',\r\n thousandsSeparator: ',',\r\n limit: false,\r\n centsLimit: 2,\r\n clearPrefix: false,\r\n clearSufix: false,\r\n allowNegative: false,\r\n insertPlusSign: false\r\n };\r\n var options = $.extend(defaults, options);\r\n return this.each(function () {\r\n var obj = $(this);\r\n var is_number = /[0-9]/;\r\n var prefix = options.prefix;\r\n var suffix = options.suffix;\r\n var centsSeparator = options.centsSeparator;\r\n var thousandsSeparator = options.thousandsSeparator;\r\n var limit = options.limit;\r\n var centsLimit = options.centsLimit;\r\n var clearPrefix = options.clearPrefix;\r\n var clearSuffix = options.clearSuffix;\r\n var allowNegative = options.allowNegative;\r\n var insertPlusSign = options.insertPlusSign;\r\n if (insertPlusSign) allowNegative = true;\r\n\r\n function to_numbers(str) {\r\n var formatted = '';\r\n for (var i = 0; i < (str.length); i++) {\r\n char_ = str.charAt(i);\r\n if (formatted.length == 0 && char_ == 0) char_ = false;\r\n if (char_ && char_.match(is_number)) {\r\n if (limit) {\r\n if (formatted.length < limit) formatted = formatted + char_\r\n } else {\r\n formatted = formatted + char_\r\n }\r\n }\r\n }\r\n return formatted\r\n }\r\n\r\n function fill_with_zeroes(str) {\r\n while (str.length < (centsLimit + 1)) str = '0' + str;\r\n return str\r\n }\r\n\r\n function price_format(str) {\r\n var formatted = fill_with_zeroes(to_numbers(str));\r\n var thousandsFormatted = '';\r\n var thousandsCount = 0;\r\n if (centsLimit == 0) {\r\n centsSeparator = \"\";\r\n centsVal = \"\"\r\n }\r\n var centsVal = formatted.substr(formatted.length - centsLimit, centsLimit);\r\n var integerVal = formatted.substr(0, formatted.length - centsLimit);\r\n formatted = (centsLimit == 0) ? integerVal : integerVal + centsSeparator + centsVal;\r\n if (thousandsSeparator || $.trim(thousandsSeparator) != \"\") {\r\n for (var j = integerVal.length; j > 0; j--) {\r\n char_ = integerVal.substr(j - 1, 1);\r\n thousandsCount++;\r\n if (thousandsCount % 3 == 0) char_ = thousandsSeparator + char_;\r\n thousandsFormatted = char_ + thousandsFormatted\r\n }\r\n if (thousandsFormatted.substr(0, 1) == thousandsSeparator) thousandsFormatted = thousandsFormatted.substring(1, thousandsFormatted.length);\r\n formatted = (centsLimit == 0) ? thousandsFormatted : thousandsFormatted + centsSeparator + centsVal\r\n }\r\n if (allowNegative && (integerVal != 0 || centsVal != 0)) {\r\n if (str.indexOf('-') != -1 && str.indexOf('+') < str.indexOf('-')) {\r\n formatted = '-' + formatted\r\n } else {\r\n if (!insertPlusSign) formatted = '' + formatted;\r\n else formatted = '+' + formatted\r\n }\r\n }\r\n if (prefix) formatted = prefix + formatted;\r\n if (suffix) formatted = formatted + suffix;\r\n return formatted\r\n }\r\n\r\n function key_check(e) {\r\n var code = (e.keyCode ? e.keyCode : e.which);\r\n var typed = String.fromCharCode(code);\r\n var functional = false;\r\n var str = obj.val();\r\n var newValue = price_format(str + typed);\r\n if ((code >= 48 && code <= 57) || (code >= 96 && code <= 105)) functional = true;\r\n if (code == 8) functional = true;\r\n if (code == 9) functional = true;\r\n if (code == 13) functional = true;\r\n if (code == 46) functional = true;\r\n if (code == 37) functional = true;\r\n if (code == 39) functional = true;\r\n if (allowNegative && (code == 189 || code == 109)) functional = true;\r\n if (insertPlusSign && (code == 187 || code == 107)) functional = true;\r\n if (!functional) {\r\n e.preventDefault();\r\n e.stopPropagation();\r\n if (str != newValue) obj.val(newValue)\r\n }\r\n }\r\n\r\n function price_it() {\r\n var str = obj.val();\r\n var price = price_format(str);\r\n if (str != price) obj.val(price)\r\n }\r\n\r\n function add_prefix() {\r\n var val = obj.val();\r\n obj.val(prefix + val)\r\n }\r\n\r\n function add_suffix() {\r\n var val = obj.val();\r\n obj.val(val + suffix)\r\n }\r\n\r\n function clear_prefix() {\r\n if ($.trim(prefix) != '' && clearPrefix) {\r\n var array = obj.val().split(prefix);\r\n obj.val(array[1])\r\n }\r\n }\r\n\r\n function clear_suffix() {\r\n if ($.trim(suffix) != '' && clearSuffix) {\r\n var array = obj.val().split(suffix);\r\n obj.val(array[0])\r\n }\r\n }\r\n $(this).bind('keydown.price_format', key_check);\r\n $(this).bind('keyup.price_format', price_it);\r\n $(this).bind('focusout.price_format', price_it);\r\n if (clearPrefix) {\r\n $(this).bind('focusout.price_format', function () {\r\n clear_prefix()\r\n });\r\n $(this).bind('focusin.price_format', function () {\r\n add_prefix()\r\n })\r\n }\r\n if (clearSuffix) {\r\n $(this).bind('focusout.price_format', function () {\r\n clear_suffix()\r\n });\r\n $(this).bind('focusin.price_format', function () {\r\n add_suffix()\r\n })\r\n }\r\n if ($(this).val().length > 0) {\r\n price_it();\r\n clear_prefix();\r\n clear_suffix()\r\n }\r\n })\r\n };\r\n $.fn.unpriceFormat = function () {\r\n return $(this).unbind(\".price_format\")\r\n };\r\n $.fn.unmask = function () {\r\n var field = $(this).val();\r\n var result = \"\";\r\n for (var f in field) {\r\n if (!isNaN(field[f]) || field[f] == \"-\") result += field[f]\r\n }\r\n return result\r\n }\r\n})(jQuery);\r\n","(function (angular) {\r\n \"use strict\";\r\n\r\n angular.module('myApp').filter('humanize', function () {\r\n return function (text) {\r\n if (text) {\r\n text = text.split(/(?=[A-Z])/);\r\n\r\n // go through each word in the text and capitalize the first letter\r\n for (var i in text) {\r\n var word = text[i];\r\n word = word.toLowerCase();\r\n word = word.charAt(0).toUpperCase() + word.slice(1);\r\n text[i] = word;\r\n }\r\n\r\n return text.join(\" \");\r\n }\r\n };\r\n });\r\n\r\n}(window.angular));\r\n","(function (angular) {\r\n \"use strict\";\r\n\r\n angular.module('myApp').factory('aimSave', [\r\n \"$window\",\r\n function ($window) {\r\n\r\n var aimSave = function () {\r\n\r\n this.serviceMethod = null;\r\n\r\n //this.recaptchaEnable = recaptchaEnable;\r\n //this.requireCaptcha = false;\r\n\r\n // login page hack\r\n this.returnUrl = null;\r\n\r\n this.result = {};\r\n this.dto = {};\r\n\r\n //callback function\r\n this.onAfterSave = null;\r\n };\r\n\r\n aimSave.prototype.save = function () {\r\n //dataNeedSaving = false;\r\n var $that = this;\r\n\r\n //var dto = clone(this.dto);\r\n //DotObject.object(dto);\r\n\r\n this.serviceMethod(this.dto)\r\n .then(function (resp) {\r\n\r\n $that.result = resp.data;\r\n\r\n if (resp.data.success) {\r\n\r\n if (resp.data.clearForm) {\r\n $that.dto = {};\r\n //setTimeout(function () {\r\n // funResetInputPlaceholder();\r\n //}, 300);\r\n }\r\n\r\n if (typeof $that.onAfterSave === \"function\") {\r\n $that.onAfterSave();\r\n }\r\n\r\n if (resp.data.redirect) {\r\n if ($that.returnUrl != null || $that.returnUrl != undefined) {\r\n window.location.href = $that.returnUrl;\r\n } else {\r\n window.location.href = resp.data.redirect;\r\n }\r\n }\r\n }\r\n //else {\r\n // dataNeedSaving = true;\r\n //}\r\n\r\n //if ($that.recaptchaEnable && $that.requireCaptcha)\r\n // $that.cbExpiration();\r\n\r\n $window.scrollTo(0, 0);\r\n });\r\n };\r\n\r\n //aimSave.prototype.setResponse = function (response) {\r\n // this.dto.googleRecaptchaResponse = response;\r\n // this.save();\r\n //};\r\n\r\n //aimSave.prototype.setWidgetId = function (widgetId) {\r\n // this.widgetId = widgetId;\r\n //};\r\n\r\n //aimSave.prototype.cbExpiration = function () {\r\n // vcRecaptchaService.reload(this.widgetId);\r\n // this.dto.googleRecaptchaResponse = null;\r\n //};\r\n\r\n return aimSave;\r\n }\r\n ]);\r\n\r\n}(window.angular));\r\n","(function (angular) {\r\n \"use strict\";\r\n\r\n angular.module('myApp').filter('messageType', [function () { return function (input) { return getMessageType(input); }; }]);\r\n angular.module('myApp').filter('messageIcon', [function () { return function (input) { return getMessageIcon(input); }; }]);\r\n function getMessageType(messageType) { switch (messageType) { case 0: return \"danger\"; case 1: return \"success\"; case 3: return \"warning\"; default: return 'info'; } }\r\n function getMessageIcon(messageType) { switch (messageType) { case 0: return \"times\"; case 1: return \"check\"; case 3: return \"warning\"; default: return 'info'; } }\r\n\r\n angular.module('myApp').component(\"alert\", {\r\n templateUrl: '/core/components/alert/alert.tpl.html',\r\n bindings: {\r\n service: '='\r\n }\r\n });\r\n\r\n}(window.angular));","(function (angular) {\r\n \"use strict\";\r\n\r\n angular.module('myApp').component(\"backButton\", {\r\n templateUrl: '/core/components/backButton/backButton.tpl.html',\r\n transclude: true,\r\n bindings: {\r\n service: '=',\r\n back: '&'\r\n }\r\n });\r\n\r\n}(window.angular));\r\n","(function (angular) {\r\n \"use strict\";\r\n\r\n angular.module('myApp').component(\"checkbox\", {\r\n templateUrl: '/core/components/checkbox/checkbox.tpl.html',\r\n transclude: true,\r\n bindings: {\r\n name: '@',\r\n label: '@?',\r\n service: '=',\r\n required: '@',\r\n disabledIf: ''\r\n }\r\n });\r\n\r\n}(window.angular));\r\n","(function (angular) {\r\n \"use strict\";\r\n\r\n angular.module('myApp').component(\"inputFile\", {\r\n templateUrl: \"/core/components/inputFile/inputFile.tpl.html\",\r\n transclude: true,\r\n bindings: {\r\n name: '@',\r\n label: '@',\r\n required: '@',\r\n service: '=',\r\n disabledIf: ''\r\n },\r\n controller: ['$scope', 'Upload', '$timeout', '$http',\r\n function ($scope, Upload, $timeout, $http) {\r\n\r\n var model = null;\r\n $scope.fileUrl = null;\r\n $scope.uploadFiles = function (file, errFiles) {\r\n $scope.f = file;\r\n $scope.errFile = errFiles && errFiles[0];\r\n if (file) {\r\n file.upload = Upload.upload({\r\n url: 'api/file',\r\n data: {\r\n file: file\r\n }\r\n });\r\n\r\n file.upload.then(function (resp) {\r\n $timeout(function () {\r\n if (resp.data.success) {\r\n $scope.$ctrl.service.dto[$scope.$ctrl.name] = resp.data.file;\r\n $scope.fileUrl = resp.data.fileUrl;\r\n $scope.$apply();\r\n } else {\r\n $scope.$ctrl.service.dto[$scope.$ctrl.name] = null;\r\n $scope.fileUrl = null;\r\n $scope.f = null;\r\n }\r\n });\r\n }, function (resp) {\r\n if (resp.status > 0)\r\n $scope.errorMsg = resp.status + ': ' + resp.data;\r\n }, function (evt) {\r\n file.progress = Math.min(100, parseInt(100.0 *\r\n evt.loaded / evt.total));\r\n });\r\n }\r\n };\r\n\r\n \r\n\r\n this.$onInit = function () {\r\n\r\n $timeout(function(){\r\n model = $scope.$ctrl.service.dto[$scope.$ctrl.name];\r\n\r\n if (model != null) {\r\n $http({\r\n url: 'api/file/get-prefix-url',\r\n method: 'GET',\r\n params: {\r\n file: model\r\n }\r\n }).then(function (resp) {\r\n $scope.fileUrl = resp.data.url;\r\n });\r\n }\r\n\r\n }, 500);\r\n };\r\n\r\n \r\n $scope.fileLink = function () {\r\n setTimeout(function () {\r\n dataNeedSaving = false;\r\n }, 200); \r\n }; \r\n\r\n }\r\n ],\r\n });\r\n\r\n}(window.angular));\r\n","(function (angular) {\r\n \"use strict\";\r\n\r\n angular.module('myApp').component(\"nextButton\", {\r\n templateUrl: '/core/components/nextButton/nextButton.tpl.html',\r\n transclude: true,\r\n bindings: {\r\n service: '=',\r\n next: '&',\r\n save: '&',\r\n disabledIf: ''\r\n }\r\n });\r\n\r\n}(window.angular));\r\n","(function (angular) {\r\n \"use strict\";\r\n\r\n angular.module('myApp').component(\"phoneNumber\", {\r\n templateUrl: '/core/components/phoneNumber/phoneNumber.tpl.html',\r\n transclude: true,\r\n bindings: {\r\n name: '@',\r\n service: '=',\r\n required: '@',\r\n fax: '@'\r\n },\r\n controller: [\r\n '$scope','accountService',\r\n function ($scope, accountService) {\r\n\r\n $scope.$on('dataLoad', function (e) {\r\n\r\n if ($scope.$ctrl.service.dto[$scope.$ctrl.name + '.numberType'] == null)\r\n $scope.$ctrl.service.dto[$scope.$ctrl.name + '.numberType'] = 'US/Canada';\r\n });\r\n\r\n $scope.$on('memberDetail', function (e) {\r\n accountService.getEditProfile().then(function(resp) {\r\n $scope.memberData = resp.data;\r\n if ($scope.$ctrl.name.includes(\"phoneNumber\") && resp.data.phoneNumber !== null && resp.data.phoneNumber !== '') {\r\n $scope.$ctrl.service.dto[$scope.$ctrl.name + '.number'] = resp.data.phoneNumber;\r\n }\r\n if ($scope.$ctrl.name.includes(\"phoneNumber\") && resp.data.phoneNumberExt !== null && resp.data.phoneNumberExt !== '') {\r\n $scope.$ctrl.service.dto[$scope.$ctrl.name + '.ext'] = resp.data.phoneNumberExt;\r\n }\r\n if ($scope.$ctrl.name.includes(\"phoneNumber\") && resp.data.phoneNumberType !== null && resp.data.phoneNumberType !== '') {\r\n $scope.$ctrl.service.dto[$scope.$ctrl.name + '.numberType'] = (resp.data.phoneNumberType === 1 ? 'US/Canada' : 'Outside US');\r\n }\r\n });\r\n });\r\n }\r\n ]\r\n });\r\n\r\n}(window.angular));\r\n","(function (angular) {\r\n \"use strict\";\r\n\r\n angular.module('myApp').component(\"radioAgeRange\", {\r\n templateUrl: '/core/components/radioAgeRange/radioAgeRange.tpl.html',\r\n transclude: true,\r\n bindings: {\r\n name: '@',\r\n label: '@?',\r\n service: '=',\r\n required: '@',\r\n data: '=',\r\n change: '&'\r\n }\r\n });\r\n\r\n}(window.angular));\r\n","(function (angular) {\r\n \"use strict\";\r\n\r\n angular.module('myApp').component(\"radioButtons\", {\r\n templateUrl: '/core/components/radioButtons/radioButtons.tpl.html',\r\n transclude: true,\r\n bindings: {\r\n name: '@',\r\n label: '@?',\r\n service: '=',\r\n required: '@',\r\n data: '='\r\n }\r\n });\r\n\r\n}(window.angular));","(function (angular) {\r\n \"use strict\";\r\n\r\n angular.module('myApp').component(\"radioStandardOption\", {\r\n templateUrl: '/core/components/radioStandardOption/radioStandardOption.tpl.html',\r\n transclude: true,\r\n bindings: {\r\n name: '@',\r\n label: '@?',\r\n service: '=',\r\n required: '@'\r\n }\r\n });\r\n\r\n}(window.angular));","(function (angular) {\r\n \"use strict\";\r\n\r\n angular.module('myApp').component(\"radioYesNo\", {\r\n templateUrl: '/core/components/radioYesNo/radioYesNo.tpl.html',\r\n transclude: true,\r\n bindings: {\r\n name: '@',\r\n label: '@?',\r\n service: '=',\r\n required: '@'\r\n }\r\n });\r\n\r\n}(window.angular));","(function (angular) {\r\n \"use strict\";\r\n\r\n angular.module('myApp').component(\"saveExitButton\", {\r\n templateUrl: '/core/components/saveExitButton/saveExitButton.tpl.html',\r\n transclude: true,\r\n bindings: {\r\n service: '=',\r\n exit: '&',\r\n save: '&',\r\n disabledIf: ''\r\n }\r\n });\r\n\r\n}(window.angular));\r\n","(function (angular) {\r\n \"use strict\";\r\n\r\n angular.module('myApp').component(\"selectBox\", {\r\n templateUrl: \"/core/components/selectBox/select-box.tpl.html\",\r\n transclude: true,\r\n bindings: {\r\n name: '@',\r\n label: '@',\r\n required: '@',\r\n data: '=',\r\n service: '=',\r\n change: '&',\r\n },\r\n controller: ['$scope', function($scope) {\r\n $scope.number = 0;\r\n }],\r\n });\r\n\r\n}(window.angular));\r\n","(function (angular) {\r\n \"use strict\";\r\n\r\n angular.module('myApp').component(\"selectBoxTwo\", {\r\n templateUrl: \"/core/components/selectBoxTwo/select-box-two.tpl.html\",\r\n transclude: true,\r\n bindings: {\r\n name: '@',\r\n label: '@',\r\n required: '@',\r\n data: '=',\r\n service: '=',\r\n change: '&',\r\n },\r\n controller: ['$scope', function($scope) {\r\n $scope.number = 0;\r\n }],\r\n });\r\n\r\n}(window.angular));\r\n","(function (angular) {\r\n \"use strict\";\r\n\r\n angular.module('myApp').component(\"submitApplicationButton\", {\r\n templateUrl: '/core/components/submitApplicationButton/submitApplicationButton.tpl.html',\r\n transclude: true,\r\n bindings: {\r\n service: '=',\r\n save: '&',\r\n disabledIf: ''\r\n }\r\n });\r\n\r\n}(window.angular));\r\n","(function (angular) {\r\n \"use strict\";\r\n\r\n angular.module('myApp').component(\"submitButton\", {\r\n templateUrl: '/core/components/submitButton/submitButton.tpl.html',\r\n transclude: true,\r\n bindings: {\r\n service: '='\r\n }\r\n });\r\n\r\n}(window.angular));","(function (angular) {\r\n \"use strict\";\r\n\r\n angular.module('myApp').component(\"textbox\", {\r\n templateUrl: '/core/components/textbox/textbox.tpl.html',\r\n transclude: true,\r\n bindings: {\r\n name: '@',\r\n label: '@?',\r\n placeholder: '@',\r\n type: '@',\r\n maxlength: '@',\r\n service: '=',\r\n required: '@',\r\n changed: '&',\r\n disabledIf: '',\r\n isLabelHide: '',\r\n }\r\n });\r\n\r\n}(window.angular));","(function (angular) {\r\n \"use strict\";\r\n\r\n angular.module('myApp').component(\"textboxContact\", {\r\n templateUrl: '/core/components/textbox-contact/textbox-contact.tpl.html',\r\n transclude: true,\r\n bindings: {\r\n name: '@',\r\n label: '@?',\r\n placeholder: '@',\r\n type: '@',\r\n maxlength: '@',\r\n service: '=',\r\n required: '@',\r\n changed: '&',\r\n disabledIf: '',\r\n isLabelHide: '',\r\n },\r\n controller: ['$scope', '$timeout', '$http',\r\n function ($scope, $timeout, $http) {\r\n \r\n \r\n setTimeout(function () {\r\n var input = document.querySelector(\"#contactNo\");\r\n console.log(input);\r\n window.intlTelInput(input, {\r\n llowExtensions: true,\r\n formatOnDisplay: true,\r\n autoFormat: true,\r\n autoHideDialCode: true,\r\n autoPlaceholder: true,\r\n defaultCountry: \"auto\",\r\n ipinfoToken: \"yolo\",\r\n\r\n nationalMode: false,\r\n numberType: \"MOBILE\",\r\n preventInvalidNumbers: true,\r\n separateDialCode: true,\r\n utilsScript: \"assets/js/utils.js\",\r\n });\r\n }, 200);\r\n }\r\n ],\r\n });\r\n\r\n}(window.angular));\r\n","(function (angular) {\r\n \"use strict\";\r\n\r\n angular.module('myApp').component(\"textboxArea\", {\r\n templateUrl: '/core/components/textboxArea/textboxArea.tpl.html',\r\n transclude: true,\r\n bindings: {\r\n name: '@',\r\n label: '@?',\r\n service: '=',\r\n required: '@',\r\n placeholder: '@',\r\n }\r\n });\r\n\r\n}(window.angular));\r\n","(function (angular) {\r\n \"use strict\";\r\n\r\n angular.module('myApp').component(\"textboxDate\", {\r\n templateUrl: '/core/components/textboxDate/textboxDate.tpl.html',\r\n transclude: true,\r\n bindings: {\r\n name: '@',\r\n label: '@?',\r\n placeholder: '@',\r\n type: '@',\r\n maxlength: '@',\r\n service: '=',\r\n required: '@',\r\n changed: '&',\r\n disabledIf: '',\r\n },\r\n controller: ['$scope',\r\n function ($scope) {\r\n\r\n this.$onInit = function () {\r\n \r\n setTimeout(function () {\r\n if ($scope.$ctrl.service.dto[$scope.$ctrl.name] != undefined && $scope.$ctrl.service.dto[$scope.$ctrl.name] != null) {\r\n var d = new Date($scope.$ctrl.service.dto[$scope.$ctrl.name]);\r\n var datestring = (\"0\" + (d.getMonth() + 1)).slice(-2) + \"/\" + (\"0\" + d.getDate()).slice(-2) + \"/\" + d.getFullYear();\r\n $scope.$ctrl.service.dto[$scope.$ctrl.name] = datestring;\r\n $scope.$apply();\r\n }\r\n \r\n $('.datepicker').datepicker({\r\n todayBtn: \"linked\",\r\n clearBtn: true,\r\n autoclose: true,\r\n todayHighlight: true,\r\n format: 'mm/dd/yyyy' \r\n }); \r\n },400); \r\n };\r\n }\r\n ]\r\n });\r\n\r\n}(window.angular));\r\n",null]}