{"version":3,"sources":["custom-script.js","app.js","blogInquiry/services/blogInquiry.service.js","contactUs/services/contactUs.service.js","exportInquiry/services/exportInquiry.service.js","inquiryUs/services/inquiryUs.service.js","articles/newsController.js","blogInquiry/blogInquiry.js","catalogues/catalogue.js","catalougeContactUs/catalougeContactUs.js","contactUs/contactUs.js","core/common.js","core/commondirective.js","downloadInquiryUs/downloadInquiryUs.js","exportInquiry/exportInquiry.js","galleries/galleryController.js","inquiryUs/inquiryUs.js","productInquiryUs/productInquiryUs.js","products/product.js","core/directives/format.js","core/filters/humanize.filter.js","core/lib/aimList.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/selectBoxCountry/selectBoxCountry.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;ACxHA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;ACrIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AC1CA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AC1CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AC1CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;ACjHA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;ACxCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AClDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AC3BA;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;ACxCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;ACxCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;ACtGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;ACxCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AC/CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AChGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;ACpRA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;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;AACA;AC/CA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA","file":"app.js","sourcesContent":["// sticky header\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// home banner slider\r\n$('.banner-slider').slick({\r\n infinite: true,\r\n slidesToShow: 1\r\n});\r\n// home banner slider\r\n$('.feature-slider').slick({\r\n infinite: true,\r\n slidesToShow: 1,\r\n vertical: true,\r\n verticalSwiping: true,\r\n arrows:false,\r\n touchThreshold:100,\r\n dots:true,\r\n responsive: [\r\n {\r\n breakpoint: 768,\r\n settings: {\r\n vertical: false,\r\n verticalSwiping: false,\r\n }\r\n },\r\n ]\r\n});\r\n// location slider\r\n$('.location-slider').slick({\r\n infinite: true,\r\n slidesToShow: 1,\r\n arrows:true,\r\n variableWidth: true\r\n});\r\n// product slider\r\n$('.product-slider').slick({\r\n slidesToShow: 1,\r\n slidesToScroll: 1,\r\n arrows: false,\r\n fade:true,\r\n asNavFor: '.product-thumb-slider'\r\n});\r\n$('.product-thumb-slider').slick({\r\n slidesToShow: 3,\r\n slidesToScroll: 1,\r\n asNavFor: '.product-slider',\r\n dots: false,\r\n focusOnSelect: true\r\n});\r\n// testimonial slider css\r\n$('.testimonial-slider').slick({\r\n infinite: true,\r\n slidesToShow: 1\r\n});\r\n\r\n// nav toggle\r\n$(\".navbar-toggler\").click(function(){\r\n $(this).toggleClass(\"open-menu\");\r\n $(\"header\").toggleClass(\"bg-white\");\r\n});\r\n// wow js\r\nnew WOW().init();\r\n// show go to top button\r\n/*** Back to top btn Js ***/\r\nif ($('#go-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 $('#go-top').addClass('show');\r\n } else {\r\n $('#go-top').removeClass('show');\r\n }\r\n };\r\n backToTop();\r\n $(window).on('scroll', function () {\r\n backToTop();\r\n });\r\n}\r\n// home page video\r\n$(document).ready(function () {\r\n //jQuery(\".nk-preloader\").fadeOut();\r\n var video = document.getElementById(\"flooring-video\");\r\n var playPauseButton = $(\"#playPauseButton\");\r\n playPauseButton.click(function() {\r\n if (video.paused) {\r\n video.play();\r\n playPauseButton.children().attr('src','dist/client/img/video-pause-button.png');\r\n playPauseButton.addClass(\"remove-icon\");\r\n $(\".video-sec\").addClass(\"before-unset\");\r\n } else {\r\n video.pause();\r\n playPauseButton.children().attr('src','dist/client/img/play-button.svg');\r\n playPauseButton.removeClass(\"remove-icon\");\r\n $(\".video-sec\").removeClass(\"before-unset\");\r\n }\r\n });\r\n});\r\n// loader\r\n//$(window).on('load', function () {\r\n// jQuery(\".nk-preloader\").fadeOut();\r\n//});\r\n// google translate\r\nfunction googleTranslateElementInit() {\r\n\r\n new google.translate.TranslateElement({\r\n pageLanguage: 'en'\r\n }, 'google_translate_element');\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 \"bw.paging\",\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 app.directive('backImg', function () {\r\n return function (scope, element, attrs) {\r\n var url = attrs.backImg;\r\n element.css({\r\n 'background-image': 'url(' + url + ')',\r\n 'background-size': 'cover'\r\n });\r\n };\r\n });\r\n app.directive('tInternationalPhone', ['internationalPhoneProvider', '$log', '$window', '$parse', '$timeout',\r\n function (internationalPhoneProvider, $log, $window, $parse, $timeout) {\r\n return {\r\n restrict: 'A',\r\n require: 'ngModel',\r\n link: function (scope, elm, attr, ctrl) {\r\n\r\n internationalPhoneProvider.set({ preferredCountries: ['gb'] });\r\n\r\n // Set initial country if passed as attribute\r\n scope.$watch(function () {\r\n return attr.initialCountry;\r\n }, function (newVal) {\r\n if (angular.isDefined(newVal) && newVal != null && newVal !== '') {\r\n var country = newVal.toLowerCase();\r\n internationalPhoneProvider.set({ initialCountry: country });\r\n internationalPhoneProvider.init(elm);\r\n }\r\n });\r\n\r\n if (attr.setInitialCountry === undefined || !attr.setInitialCountry) {\r\n internationalPhoneProvider.init(elm);\r\n }\r\n\r\n // Set Selected Country Data\r\n function setSelectedCountryData(model) {\r\n var getter = $parse(model);\r\n var setter = getter.assign;\r\n setter(scope, elm.intlTelInput('getSelectedCountryData'));\r\n }\r\n\r\n // Force input validation if country selection changes but number stays the same\r\n angular.element($window).on('countrychange', function () {\r\n ctrl.$validate();\r\n $timeout(function () {\r\n scope.$apply();\r\n });\r\n });\r\n\r\n // Handle Country Changes.\r\n function handleCountryChange() {\r\n setSelectedCountryData(attr.selectedCountry);\r\n }\r\n\r\n // Country Change cleanup.\r\n function cleanUp() {\r\n angular.element($window).off('countrychange', handleCountryChange);\r\n }\r\n\r\n // Selected Country Data.\r\n if (attr.selectedCountry) {\r\n setSelectedCountryData(attr.selectedCountry);\r\n angular.element($window).on('countrychange', handleCountryChange);\r\n scope.$on('$destroy', cleanUp);\r\n }\r\n\r\n // Validation.\r\n ctrl.$validators.tInternationalPhone = function (value) {\r\n // if phone number is deleted / empty do not run phone number validation\r\n if (value || elm[0].value.length > 0) {\r\n return elm.intlTelInput('isValidNumber');\r\n } else {\r\n return true;\r\n }\r\n };\r\n\r\n // Set model value to valid, formatted version.\r\n ctrl.$parsers.push(function (value) {\r\n return elm.intlTelInput('getNumber');\r\n });\r\n\r\n // Set input value to model value and trigger evaluation.\r\n ctrl.$formatters.push(function (value) {\r\n if (value) {\r\n if (value.charAt(0) !== '+') {\r\n value = '+' + value;\r\n }\r\n elm.intlTelInput('setNumber', value);\r\n }\r\n return value;\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')\r\n .service('blogInquiryService', [\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-products/' + categoryId,\r\n method: 'GET'\r\n });\r\n };\r\n\r\n //this.finish = function () {\r\n // return $http({\r\n // url: 'api/products/get-finish',\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('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('exportInquiryService', [\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-products/' + categoryId,\r\n method: 'GET'\r\n });\r\n };\r\n\r\n //this.finish = function () {\r\n // return $http({\r\n // url: 'api/products/get-finish',\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-products/' + categoryId,\r\n method: 'GET'\r\n });\r\n };\r\n\r\n //this.finish = function () {\r\n // return $http({\r\n // url: 'api/products/get-finish',\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').controller('newsController',\r\n [\r\n '$scope', '$http',\r\n function ($scope, $http) {\r\n\r\n $scope.years = [];\r\n $scope.dto = null;\r\n $scope.paging = {};\r\n $scope.filters = {};\r\n $scope.filters.page = 1;\r\n $scope.filters.size = 9;\r\n $scope.isShowMoreButtonShow = false; \r\n\r\n $scope.load = function () {\r\n\r\n $http.get('api/articles/', {\r\n params: $scope.filters\r\n }).then(function (resp) {\r\n\r\n if (resp.data.paging.total >= 9)\r\n $scope.isShowMoreButtonShow = true;\r\n else\r\n $scope.isShowMoreButtonShow = false;\r\n debugger;\r\n $scope.paging = resp.data.paging;\r\n $scope.list = resp.data.data;\r\n });\r\n };\r\n $scope.load();\r\n\r\n $scope.page = 1;\r\n $scope.TotalPage = 2;\r\n $scope.loading = true;\r\n\r\n var width = $(window).width();\r\n var height = $(window).height();\r\n\r\n if (width > 767 && height > 500) {\r\n $(window).scroll(function () {\r\n (function () {\r\n var win = $(window);\r\n var sizes = {\r\n half: 0.5,\r\n full: 1,\r\n threequarter: 3 / 4,\r\n onefive: 1.5,\r\n double: 2,\r\n triple: 3\r\n };\r\n for (var k in sizes) {\r\n var v = sizes[k];\r\n $(\".\" + k).css({\r\n height: Math.floor(win.height() - 124 * v) + \"px\"\r\n });\r\n }\r\n\r\n //$(\".item\").stick_in_parent({\r\n // container: $(\".latest-blog\"),\r\n // offset_top: 124\r\n //});\r\n })();\r\n });\r\n }\r\n\r\n //$(window).on(\"scroll\", function () {\r\n // if ($(window).scrollTop() + $(window).height() >= $('#blogList').height()) {\r\n\r\n // if ($scope.loading === true) {\r\n // $scope.page = $scope.page + 1;\r\n\r\n // if ($scope.TotalPage + 1 >= $scope.page) {\r\n // $scope.goToPage($scope.page);\r\n // }\r\n // }\r\n // }\r\n //});\r\n\r\n $scope.showMore = function () {\r\n $scope.filters.page = $scope.filters.page + 1;\r\n\r\n $http.get('api/articles/', {\r\n params: $scope.filters\r\n }).then(function (resp) {\r\n if (resp.data.data.length >= 9)\r\n $scope.isShowMoreButtonShow = true;\r\n else\r\n $scope.isShowMoreButtonShow = false;\r\n debugger;\r\n $scope.list = $scope.list.concat(resp.data.data);\r\n $scope.TotalPage = resp.data.paging.total / $scope.filters.size;\r\n });\r\n };\r\n\r\n $scope.goToPage = function (page) {\r\n $scope.loading = false;\r\n $scope.filters.page = page;\r\n\r\n $http.get('api/articles/', {\r\n params: $scope.filters\r\n }).then(function (resp) {\r\n\r\n $scope.list = $scope.list.concat(resp.data.data);\r\n $scope.TotalPage = resp.data.paging.total / $scope.filters.size;\r\n $scope.loading = true;\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('blogInquiry', {\r\n templateUrl: '/blogInquiry/blogInquiry.tpl.html',\r\n controller: [\r\n '$scope', '$http', 'aimSave','blogInquiryService',\r\n function ($scope, $http, aimSave, blogInquiryService) {\r\n\r\n $scope.aim = new aimSave();\r\n $scope.aim.serviceMethod = blogInquiryService.save;\r\n $scope.aim.dto.country = \"United States\";\r\n\r\n // Select 2 Script\r\n setTimeout(function () {\r\n // select2\r\n $('.custom-selectbox').select2({\r\n minimumResultsForSearch: -1,\r\n });\r\n }, 200);\r\n\r\n blogInquiryService.categories().then(function (resp) {\r\n $scope.categories = resp.data;\r\n });\r\n\r\n $scope.productChange = function () {\r\n if ($scope.aim.dto.categoryId != null && $scope.aim.dto.categoryId != undefined) {\r\n blogInquiryService.products($scope.aim.dto.categoryId).then(function (resp) {\r\n $scope.products = resp.data;\r\n });\r\n }\r\n else {\r\n $scope.products = {};\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('catalogue', {\r\n templateUrl: '/catalogues/catalogue.tpl.html',\r\n controller: [\r\n '$scope', '$http', \r\n function ($scope, $http,) {\r\n\r\n $scope.paging = {};\r\n $scope.filters = {};\r\n $scope.filters.page = 1;\r\n $scope.filters.size = 10;\r\n\r\n $scope.load = function () {\r\n $http.get('api/catalogues',\r\n { params: $scope.filters }).then(function (resp) {\r\n\r\n $scope.paging = resp.data.paging;\r\n $scope.list = resp.data.data;\r\n $(\"html, body\").animate({ scrollTop: 0 }, \"slow\");\r\n });\r\n };\r\n\r\n $scope.load();\r\n\r\n $scope.goToPage = function (page) {\r\n $scope.filters.page = page;\r\n $scope.load();\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('catalougeContactUs', {\r\n templateUrl: '/catalougeContactUs/catalougeContactUs.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.dto.country = \"United States\";\r\n\r\n\r\n // Select 2 Script\r\n //setTimeout(function () {\r\n \r\n // $(\"#countries\").select2({\r\n // templateSelection: formatState,\r\n // templateResult: formatState\r\n // });\r\n //}, 200);\r\n\r\n $scope.submit = function () {\r\n contactUsService.save($scope.aim.dto).then(function (resp) {\r\n $scope.aim.result = resp.data;\r\n var fileUrl = $(\"#catalogeLink\").val();\r\n var type = $(\"#type\").val();\r\n var fileName = $(\"#fileName\").val();\r\n if ($scope.aim.result.success == true) {\r\n if (fileUrl != \"\" || fileUrl != null) {\r\n $(\"#DownloadInquiryModel\").modal('hide');\r\n $(\"#catalogeLink\").val('');\r\n $scope.aim.result.message = '';\r\n if (type === \"Download\") {\r\n var link = document.createElement('a');\r\n link.href = fileUrl;\r\n link.download = fileName !== '' ? fileName : \"Wintel Surface Catalouge\";\r\n link.dispatchEvent(new MouseEvent('click'));\r\n } else {\r\n window.open(window.location.origin + '/' + fileUrl, '_blank');\r\n }\r\n }\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('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 $scope.aim.dto.country = \"United States\";\r\n\r\n // Select 2 Script\r\n //setTimeout(function () {\r\n \r\n // $(\"#countries\").select2({\r\n // templateSelection: formatState,\r\n // templateResult: formatState\r\n // });\r\n //}, 200);\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('downloadInquiryUs', {\r\n templateUrl: '/downloadInquiryUs/downloadInquiryUs.tpl.html',\r\n controller: [\r\n '$scope', '$http', 'aimSave', 'exportInquiryService',\r\n function ($scope, $http, aimSave, exportInquiryService) {\r\n\r\n $scope.aim = new aimSave();\r\n $scope.aim.serviceMethod = exportInquiryService.save;\r\n $scope.aim.dto.country = \"United States\";\r\n\r\n // Select 2 Script\r\n setTimeout(function () {\r\n // select2\r\n $('.custom-selectbox').select2({\r\n minimumResultsForSearch: -1,\r\n });\r\n }, 200);\r\n\r\n exportInquiryService.categories().then(function (resp) {\r\n $scope.categories = resp.data;\r\n });\r\n\r\n $scope.productChange = function () {\r\n if ($scope.aim.dto.categoryId != null && $scope.aim.dto.categoryId != undefined) {\r\n exportInquiryService.products($scope.aim.dto.categoryId).then(function (resp) {\r\n $scope.products = resp.data;\r\n });\r\n }\r\n else {\r\n $scope.products = {};\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('exportInquiry', {\r\n templateUrl: '/exportInquiry/exportInquiry.tpl.html',\r\n controller: [\r\n '$scope', '$http', 'aimSave','exportInquiryService',\r\n function ($scope, $http, aimSave, exportInquiryService) {\r\n\r\n $scope.aim = new aimSave();\r\n $scope.aim.serviceMethod = exportInquiryService.save;\r\n $scope.aim.dto.country = \"United States\";\r\n\r\n // Select 2 Script\r\n setTimeout(function () {\r\n // select2\r\n $('.custom-selectbox').select2({\r\n minimumResultsForSearch: -1,\r\n });\r\n }, 200);\r\n\r\n exportInquiryService.categories().then(function (resp) {\r\n $scope.categories = resp.data;\r\n });\r\n\r\n $scope.productChange = function () {\r\n if ($scope.aim.dto.categoryId != null && $scope.aim.dto.categoryId != undefined) {\r\n exportInquiryService.products($scope.aim.dto.categoryId).then(function (resp) {\r\n $scope.products = resp.data;\r\n });\r\n }\r\n else {\r\n $scope.products = {};\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').controller('galleryController',\r\n [\r\n '$scope', '$http',\r\n function ($scope, $http) {\r\n\r\n $scope.years = [];\r\n $scope.dto = null;\r\n $scope.paging = {};\r\n $scope.filters = {};\r\n $scope.filters.page = 1;\r\n $scope.filters.size = 12;\r\n $scope.isShowMoreButtonShow = false; \r\n\r\n $scope.load = function () {\r\n\r\n $http.get('api/galleries/', {\r\n params: $scope.filters\r\n }).then(function (resp) {\r\n\r\n if (resp.data.data.length >= 12)\r\n $scope.isShowMoreButtonShow = true;\r\n else\r\n $scope.isShowMoreButtonShow = false;\r\n\r\n console.log($scope.isShowMoreButtonShow);\r\n console.log(resp.data.data.length);\r\n $scope.paging = resp.data.paging;\r\n $scope.list = resp.data.data;\r\n });\r\n };\r\n $scope.load();\r\n\r\n $scope.page = 1;\r\n $scope.TotalPage = 2;\r\n \r\n var width = $(window).width();\r\n var height = $(window).height();\r\n\r\n if (width > 767 && height > 500) {\r\n $(window).scroll(function () {\r\n (function () {\r\n var win = $(window);\r\n var sizes = {\r\n half: 0.5,\r\n full: 1,\r\n threequarter: 3 / 4,\r\n onefive: 1.5,\r\n double: 2,\r\n triple: 3\r\n };\r\n for (var k in sizes) {\r\n var v = sizes[k];\r\n $(\".\" + k).css({\r\n height: Math.floor(win.height() - 124 * v) + \"px\"\r\n });\r\n }\r\n\r\n $(\".item\").stick_in_parent({\r\n container: $(\".latest-blog\"),\r\n offset_top: 124\r\n });\r\n })();\r\n });\r\n }\r\n\r\n //$(window).on(\"scroll\", function () {\r\n // if ($(window).scrollTop() + $(window).height() >= $('#blogList').height()) {\r\n\r\n // if ($scope.loading === true) {\r\n // $scope.page = $scope.page + 1;\r\n\r\n // if ($scope.TotalPage + 1 >= $scope.page) {\r\n // $scope.goToPage($scope.page);\r\n // }\r\n // }\r\n // }\r\n //});\r\n\r\n $scope.showMore = function () {\r\n $scope.filters.page = $scope.filters.page + 1;\r\n\r\n $http.get('api/galleries/', {\r\n params: $scope.filters\r\n }).then(function (resp) {\r\n if (resp.data.data.length >= 12)\r\n $scope.isShowMoreButtonShow = true;\r\n else\r\n $scope.isShowMoreButtonShow = false;\r\n\r\n console.log($scope.isShowMoreButtonShow);\r\n console.log(resp.data.data.length);\r\n $scope.list = $scope.list.concat(resp.data.data);\r\n $scope.TotalPage = resp.data.paging.total / $scope.filters.size;\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 = \"United States\";\r\n\r\n // Select 2 Script\r\n setTimeout(function () {\r\n // select2\r\n $('.custom-selectbox').select2({\r\n minimumResultsForSearch: -1,\r\n });\r\n }, 200);\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 if ($scope.aim.dto.categoryId != null && $scope.aim.dto.categoryId != undefined) {\r\n inquiryUsService.products($scope.aim.dto.categoryId).then(function (resp) {\r\n $scope.products = resp.data;\r\n });\r\n }\r\n else {\r\n $scope.products = {};\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('productInquiryUs', {\r\n templateUrl: '/productInquiryUs/productInquiryUs.tpl.html',\r\n controller: [\r\n '$scope', '$http', 'aimSave', 'exportInquiryService','$filter',\r\n function ($scope, $http, aimSave, exportInquiryService, $filter) {\r\n\r\n $scope.aim = new aimSave();\r\n $scope.aim.serviceMethod = exportInquiryService.save;\r\n $scope.aim.dto.country = \"United States\";\r\n //var categoryName = $(\"#categoryName\").val();\r\n //var productName = $(\"#productName\").val();\r\n // Select 2 Script\r\n setTimeout(function () {\r\n // select2\r\n //$('.custom-selectbox').select2({\r\n // minimumResultsForSearch: -1,\r\n //});\r\n }, 200);\r\n\r\n exportInquiryService.categories().then(function (resp) {\r\n $scope.categories = resp.data;\r\n //console.log(JSON.stringify($scope.categories));\r\n //console.log(categoryName);\r\n //if (categoryName != '' && categoryName != undefined && categoryName != null) {\r\n // $scope.aim.dto.categoryId = $filter('filter')($scope.categories, categoryName);\r\n // console.log($scope.aim.dto.categoryId);\r\n //}\r\n });\r\n\r\n $scope.productChange = function () {\r\n if ($scope.aim.dto.categoryId != null && $scope.aim.dto.categoryId != undefined) {\r\n exportInquiryService.products($scope.aim.dto.categoryId).then(function (resp) {\r\n $scope.products = resp.data;\r\n });\r\n }\r\n else {\r\n $scope.products = {};\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('product', {\r\n templateUrl: '/products/product.tpl.html',\r\n controller: [\r\n '$scope', '$http','inquiryUsService', \r\n function ($scope, $http, inquiryUsService) {\r\n\r\n $scope.paging = {};\r\n $scope.filters = {};\r\n $scope.filters.page = 1;\r\n $scope.filters.size = 9;\r\n $scope.categoryId = categoryId;\r\n $scope.isShowMoreButtonShow = false; \r\n\r\n //inquiryUsService.categories().then(function (resp) {\r\n // $scope.categories = resp.data;\r\n //});\r\n\r\n //$http.get('api/products/get-finish').then(function (resp) {\r\n // $scope.finishes = resp.data;\r\n //});\r\n\r\n $scope.load = function () {\r\n $scope.filters.categoryId = $scope.categoryId;\r\n $scope.filters.finishId = $scope.finishId;\r\n $http.get('api/products',\r\n { params: $scope.filters }).then(function (resp) {\r\n if (resp.data.data.length >= 9)\r\n $scope.isShowMoreButtonShow = true;\r\n else\r\n $scope.isShowMoreButtonShow = false;\r\n\r\n console.log($scope.isShowMoreButtonShow);\r\n $scope.paging = resp.data.paging;\r\n $scope.list = resp.data.data;\r\n $(\"html, body\").animate({ scrollTop: 0 }, \"slow\");\r\n });\r\n };\r\n\r\n $scope.load();\r\n\r\n $scope.goToPage = function (page) {\r\n $scope.filters.page = page;\r\n $scope.load();\r\n };\r\n\r\n $scope.showMore = function () {\r\n \r\n $scope.filters.page = $scope.filters.page + 1;\r\n\r\n $http.get('api/products', {\r\n params: $scope.filters\r\n }).then(function (resp) {\r\n if (resp.data.data.length >= 9)\r\n $scope.isShowMoreButtonShow = true;\r\n else\r\n $scope.isShowMoreButtonShow = false;\r\n\r\n console.log($scope.isShowMoreButtonShow);\r\n console.log(resp.data.data.length);\r\n $scope.list = $scope.list.concat(resp.data.data);\r\n $scope.TotalPage = resp.data.paging.total / $scope.filters.size;\r\n });\r\n };\r\n\r\n // Select 2 Script\r\n $(\".custom-selectbox\").select2({\r\n minimumResultsForSearch: -1,\r\n dropdownParent: $('#InquiryModel')\r\n }); \r\n\r\n $('[data-fancybox=\"gallery\"]').fancybox({\r\n thumbs: {\r\n autoStart: true,\r\n buttons: [\r\n \"close\"\r\n ],\r\n }\r\n });\r\n\r\n //$scope.categoryChange = function () {\r\n // $scope.filters.page = 1;\r\n // $scope.load();\r\n //}\r\n\r\n //$scope.finishChange = function () {\r\n // $scope.filters.page = 1;\r\n // $scope.load();\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('aimList', [\"$http\", \"$cookies\", \"flash\", function ($http, $cookies, flash) {\r\n\r\n var aimList = function () {\r\n\r\n // api url for list page\r\n this.url = null;\r\n\r\n // module name\r\n this.module = null;\r\n\r\n // from api result result\r\n this.result = {};\r\n\r\n // data\r\n this.data = {};\r\n\r\n // show/hide paging\r\n this.showPaging = true;\r\n\r\n this.paging = {};\r\n\r\n // for search filters send to api\r\n this.filters = {};\r\n\r\n // default page index\r\n this.filters.page = 1;\r\n\r\n // default page size\r\n this.filters.size = 10;\r\n\r\n this.filters.sortColumn = null;\r\n this.filters.sortType = null;\r\n\r\n // default page sizes\r\n this.pageSizes = [10, 25, 50, 100, 200];\r\n\r\n // Geenrate unique Number for selectall\r\n this.uniqueNumber = new Date().getTime();\r\n\r\n // select all checkbox. use for select other checkboxes\r\n this.selectAll = false;\r\n\r\n //callback function\r\n this.onAfterLoad = null;\r\n this.afterFireIdChange = null;\r\n\r\n this.idsResetAfterLoad = true;\r\n this.ids = [];\r\n this.action = '';\r\n this.actions = {\r\n \"active\": \"edit\",\r\n \"inactive\": \"edit\",\r\n \"delete\": \"delete\"\r\n };\r\n };\r\n\r\n aimList.prototype.load = function (clearPage) {\r\n\r\n if (typeof argument2 !== 'undefined' || clearPage === true)\r\n this.filters.page = 1;\r\n\r\n $http({\r\n url: this.url,\r\n method: \"GET\",\r\n params: this.filters\r\n }).then(function (resp) {\r\n\r\n var result = resp.data;\r\n\r\n flash.show(result.message, result.messageType);\r\n\r\n if (!result.success)\r\n return;\r\n\r\n\r\n\r\n this.result = result;\r\n this.paging = result.paging;\r\n this.data = result.data;\r\n this.filters.page = this.paging.page;\r\n this.filters.size = this.paging.size;\r\n\r\n // if second page all record delete than automatic first page record display\r\n if(this.filters.page > 1 && this.data.length == 0 && this.paging.total > 0)\r\n this.load(true);\r\n\r\n if (typeof this.onAfterLoad === \"function\")\r\n this.onAfterLoad();\r\n\r\n this.filters.action = null;\r\n this.filters.ids = null;\r\n\r\n this.action = '';\r\n if(this.idsResetAfterLoad)\r\n this.ids = [];\r\n\r\n this.selectAll = false;\r\n setTimeout(function () { funInputPlaceholder(); }, 500);\r\n\r\n }.bind(this));\r\n };\r\n\r\n aimList.prototype.sort = function ($event, name) {\r\n\r\n if (this.loading) return;\r\n\r\n var elmt = angular.element($event.target);\r\n var sortType = 'asc';\r\n\r\n elmt.removeClass('sorting');\r\n\r\n if (elmt.hasClass('sorting_asc'))\r\n sortType = 'desc';\r\n\r\n this.filters.sortColumn = name;\r\n this.filters.sortType = sortType;\r\n angular.element('.sorting_asc, .sorting_desc').removeClass('sorting_asc sorting_desc')\r\n .addClass('sorting');\r\n elmt.addClass(sortType === 'asc' ? 'sorting_asc' : 'sorting_desc')\r\n .removeClass(sortType === 'asc' ? 'sorting_desc' : 'sorting_asc');\r\n\r\n this.load(true);\r\n };\r\n\r\n aimList.prototype.previousPage = function () {\r\n if (this.result.paging.Page === 1) return;\r\n\r\n this.filters.page = this.result.paging.page - 1;\r\n\r\n this.load();\r\n };\r\n\r\n aimList.prototype.nextPage = function () {\r\n if (this.result.paging.lastPage === this.result.paging.page) return;\r\n\r\n this.filters.page = this.result.paging.page + 1;\r\n\r\n this.load();\r\n };\r\n\r\n aimList.prototype.goToPage = function (page) {\r\n this.filters.page = page;\r\n\r\n this.load();\r\n };\r\n\r\n aimList.prototype.deleteRow = function (id) {\r\n\r\n var $that = this;\r\n var ids = Array.isArray(id) ? id : [id];\r\n\r\n $.confirm({\r\n text: \"Do you want to delete record?\",\r\n title: \"Confirmation required\",\r\n confirmButtonClass: \"btn-danger\",\r\n confirm: function () {\r\n\r\n $http({\r\n url: $that.url + 'delete',\r\n method: \"POST\",\r\n data: {\r\n ids: ids\r\n }\r\n }).then(function (resp) {\r\n\r\n var result = resp.data;\r\n\r\n flash.show(result.message, result.messageType);\r\n\r\n if (result.success)\r\n $that.load();\r\n });\r\n }\r\n });\r\n };\r\n\r\n aimList.prototype.fireAction = function () {\r\n\r\n this.message = null;\r\n this.messageType = null;\r\n\r\n if (this.action !== '' && this.ids.length === 0) {\r\n flash.show('Select at least one item from action list.', 2);\r\n return;\r\n }\r\n\r\n var $that = this;\r\n\r\n if (this.action === 'delete') {\r\n\r\n $that.deleteRow(this.ids);\r\n\r\n } else {\r\n\r\n $http({\r\n url: $that.url + this.action,\r\n method: \"POST\",\r\n data: {\r\n ids: this.ids\r\n }\r\n }).then(function (resp) {\r\n\r\n var result = resp.data;\r\n\r\n flash.show(result.message, result.messageType);\r\n\r\n if (result.success)\r\n $that.load();\r\n });\r\n }\r\n };\r\n\r\n aimList.prototype.checkAll = function () {\r\n\r\n var $that = this;\r\n\r\n if ($that.selectAll)\r\n $that.ids.splice(0, $that.ids.length);\r\n else {\r\n angular.forEach($that.data.map(function (item) {\r\n return item.id;\r\n }),\r\n function (value) {\r\n $that.ids.push(value);\r\n });\r\n }\r\n };\r\n\r\n aimList.prototype.fireIdChange = function () {\r\n if (this.ids.length !== this.result.data.length)\r\n this.selectAll = false;\r\n\r\n if (typeof this.afterFireIdChange === \"function\")\r\n this.afterFireIdChange();\r\n\r\n };\r\n\r\n /**\r\n * Set sorting class on sort columns\r\n *\r\n * @param {any} model same class. If not defined then no sorting.\r\n * @param {any} name column name\r\n */\r\n aimList.prototype.setSortingClass = function (model, name) {\r\n\r\n if (model === null)\r\n return '';\r\n\r\n if (model.paging.sortColumn === name) {\r\n return model.paging.sortType === 'asc' ? 'sorting_asc' : 'sorting_desc';\r\n }\r\n\r\n return 'sorting';\r\n };\r\n\r\n /* Extra for amazon project */\r\n aimList.prototype.languageAvailable = function (languages, language) {\r\n\r\n var result = false;\r\n\r\n angular.forEach(languages,\r\n function (value) {\r\n if (value === language)\r\n result = true;\r\n });\r\n\r\n return result;\r\n };\r\n\r\n return aimList;\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: ' 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: '