{"version":3,"sources":["app.js","account/account.module.js","auth/auth.module.js","branches/branches.module.js","home/home.module.js","errors/errors.module.js","menucategory/menus.module.js","menu/menu.module.js","optionGroups/optionGroups.module.js","auth/services/AuthService.js","account/services/AccountService.js","branches/services/branchService.js","home/services/dashboardService.js","home/services/languageService.js","menu/services/menuOptionGroupService.js","menu/services/menuService.js","menucategory/services/menucategoryService.js","optionGroups/services/optionGroupService.js","optionGroups/services/optionService.js","account/controllers/ChangePassword.js","account/controllers/EditProfile.js","auth/controllers/ForgotPassword.js","auth/controllers/login.js","auth/controllers/register.js","auth/controllers/ResetPasswordController.js","branches/controllers/branchCreate.js","branches/controllers/branchEdit.js","branches/controllers/branchList.js","core/filters/humanize.filter.js","core/filters/repeat.filter.js","core/lib/aimCreate.js","core/lib/aimEdit.js","core/lib/aimList.js","core/lib/allowDecimalNumbers.js","core/lib/flash.js","home/controllers/home.js","home/controllers/Menu.js","home/controllers/qrCode.js","menucategory/controllers/Create.js","menucategory/controllers/Edit.js","menucategory/controllers/List.js","menu/controllers/menuCreate.js","menu/controllers/menuEdit.js","menu/controllers/menuInformationEdit.js","menu/controllers/menuList.js","menu/controllers/menuOptionGroupList.js","optionGroups/controllers/optionCreate.js","optionGroups/controllers/optionEdit.js","optionGroups/controllers/optionGroupCreate.js","optionGroups/controllers/optionGroupEdit.js","optionGroups/controllers/optionGroupInformationEdit.js","optionGroups/controllers/optionGroupList.js","optionGroups/controllers/optionList.js","core/components/formActions/formActions.js","core/components/layoutHeader/layoutHeader.js","core/components/grid/grid.js","core/components/message/message.js","core/components/pager/pager.js","core/components/toolbar/toolbar.js","core/components/formButtons/delete/delete.js","core/components/formButtons/save/save.js","core/components/formButtons/saveNew/saveNew.js","core/components/formButtons/saveContinue/saveContinue.js","core/components/form/checkbox/checkbox.js","core/components/form/controlBase/controlBase.js","core/components/form/multiSelectCheckbox/multiSelectCheckbox.js","core/components/form/selectBox/selectBox.js","core/components/form/textbox/textbox.js","core/components/form/status/status.js","core/components/form/textboxArea/textboxArea.js","core/components/form/textboxDate/textboxDate.js","core/components/form/textboxDecimal/textboxDecimal.js","core/components/form/textboxDatetime/textboxDatetime.js","core/components/form/textboxNumeric/textboxNumeric.js","core/components/list/rowNoRecords/rowNoRecords.js","core/components/list/body/actionDelete/actionDelete.js","core/components/list/body/actionEdit/actionEdit.js","core/components/list/body/cell/cell.js","core/components/list/body/cellDate/cellDate.js","core/components/list/body/cellCheckboxId/cellCheckboxId.js","core/components/list/body/cellStatus/cellStatus.js","core/components/list/header/thSort/thSort.js","core/components/list/header/thSortAction/thSortAction.js","core/components/list/header/thSortDate/thSortDate.js","core/components/list/header/thSortStatus/thSortStatus.js","core/components/list/header/thSortSelectAll/thSortSelectAll.js","core/components/list/search/thSearch/thSearch.js","core/components/list/search/thSearchDecimal/thSearchDecimal.js","core/components/list/search/thSearchDate/thSearchDate.js","core/components/list/search/thSearchSelect/thSearchSelect.js","core/components/list/search/thSearchNumber/thSearchNumber.js","core/components/list/search/thSearchStatus/thSearchStatus.js","core/components/list/search/thSearchYesNo/thSearchYesNo.js","core/components/toolbar/buttons/buttonAdd/buttonAdd.js","core/components/toolbar/buttons/buttonBack/buttonBack.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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;ACpQA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;ACzBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;ACpCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AChCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AC1BA;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;AChCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;ACjEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AClFA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;ACzDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AC3DA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;ACtDA;AACA;AACA;AACA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;ACvBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AC7DA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AC7DA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;ACtDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AC7DA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;ACvDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AChCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;AClCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;ACnDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AC7EA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;ACnBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AClBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;ACnBA;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;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;ACtFA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;ACpGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;ACnEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AClCA;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;ACjCA;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;ACtCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AChCA;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;AC3CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AC5CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AC5CA;AACA;AACA;AACA;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;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;ACrBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;ACnBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;ACxBA;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;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;ACnBA;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;ACTA;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;ACVA;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;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;ACzBA;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;ACVA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;ACVA;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;ACjBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AC1BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AC9GA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;ACxBA;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;ACdA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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/BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;ACpCA;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;ACrCA;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;ACdA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;ACnBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;ACnBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;ACvBA;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;AChBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;ACvBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AClBA;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;AACA;AACA;AACA;AACA;AACA;ACnBA;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;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;ACpCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AClBA;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;ACfA;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;AACA;AACA;ACjBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","file":"app.js","sourcesContent":["var localStoragePrefix = 'restaurent/admin';\r\nvar tokenName = 'jwta';\r\n\r\n(function (angular) {\r\n 'use strict';\r\n\r\n var app = angular.module(\"myApp\", [\r\n \"ui.bootstrap\",\r\n \"ui.router\",\r\n \"ngCookies\",\r\n \"ngSanitize\",\r\n \"angularFileUpload\",\r\n \"angular-jwt\",\r\n \"ui.gravatar\",\r\n \"checklist-model\",\r\n \"LocalStorageModule\",\r\n \"blockUI\",\r\n \"ui.select\",\r\n \"ui.sortable\",\r\n \"slugifier\",\r\n \"monospaced.elastic\",\r\n \"ui.codemirror\",\r\n \"ui.mask\",\r\n \"ngDialog\",\r\n \"ngFileSaver\",\r\n \"bw.paging\",\r\n \"ui.tree\",\r\n \"ng-nestable\"\r\n ]);\r\n\r\n app.config([\r\n '$urlRouterProvider',\r\n \"$locationProvider\",\r\n \"jwtOptionsProvider\",\r\n \"$httpProvider\",\r\n \"localStorageServiceProvider\",\r\n \"$compileProvider\",\r\n '$stateProvider',\r\n function ($urlRouterProvider,\r\n $locationProvider,\r\n jwtOptionsProvider,\r\n $httpProvider,\r\n localStorageServiceProvider,\r\n $compileProvider,\r\n $stateProvider) {\r\n\r\n // unsafe\r\n $compileProvider.aHrefSanitizationWhitelist(/^\\s*(https?|ftp|mailto|file|javascript):/);\r\n\r\n /**\r\n * Set prefix for local storage data\r\n */\r\n localStorageServiceProvider.setPrefix(localStoragePrefix);\r\n\r\n /**\r\n * Added authentication barrier token for all request\r\n * - Also skip sending auth token for html templates\r\n */\r\n jwtOptionsProvider.config({\r\n tokenGetter: function (options) {\r\n // Skip authentication for any requests ending in .html\r\n if (options.url.substr(options.url.length - 5) === '.html') {\r\n return null;\r\n }\r\n\r\n return window.localStorage[localStoragePrefix + '.' + tokenName].slice(1, -1);\r\n }\r\n });\r\n $httpProvider.interceptors.push('jwtInterceptor');\r\n\r\n $httpProvider.interceptors.push([\r\n \"$q\", \"$state\", \"localStorageService\", \"$rootScope\", function ($q, $state, localStorageService, $rootScope) {\r\n return {\r\n 'responseError': function (rejection) {\r\n\r\n if (rejection.status === 400 || rejection.status === 401 || rejection.status === 419) {\r\n localStorageService.remove(tokenName);\r\n $rootScope.loggedIn = false;\r\n $rootScope.auth = null;\r\n $state.go(\"login\");\r\n\r\n return rejection;\r\n }\r\n\r\n return $q.reject(rejection);\r\n }\r\n };\r\n }\r\n ]);\r\n\r\n $urlRouterProvider.otherwise('/admin/menu');\r\n\r\n $stateProvider.state('admin', {\r\n resolve: {\r\n greeting: ['$rootScope', '$http', '$q', '$timeout',\r\n function ($rootScope, $http, $q, $timeout) {\r\n var deferred = $q.defer();\r\n return deferred.promise;\r\n }]\r\n }\r\n });\r\n\r\n $stateProvider.state('content', { parent: 'admin' });\r\n $stateProvider.state('system', { parent: 'admin' });\r\n $stateProvider.state('master', { parent: 'admin' });\r\n\r\n\r\n $locationProvider.html5Mode(true);\r\n }]);\r\n\r\n app.controller('BodyController', ['$rootScope', '$scope', function ($rootScope, $scope) {\r\n $scope.hasAccess = function (permissions) {\r\n return $rootScope.hasAccess(permissions);\r\n };\r\n }]);\r\n\r\n app.run([\r\n '$rootScope', '$state', '$transitions', 'auth', 'localStorageService', '$http', '$cookies',\r\n function ($rootScope, $state, $transitions, auth, localStorageService, $http, $cookies) {\r\n\r\n $rootScope.result = null;\r\n $rootScope.year = new Date().getFullYear();\r\n $rootScope.assetsAdminPath = assetsAdminPath;\r\n\r\n $rootScope.hasAccess = function (permissions) {\r\n if (permissions !== undefined && $rootScope.permissions != null) {\r\n var allow = false;\r\n\r\n angular.forEach(permissions.split(','), function (value) {\r\n if ($rootScope.permissions.indexOf(value) !== -1) {\r\n allow = true;\r\n }\r\n });\r\n\r\n return allow;\r\n }\r\n\r\n return true;\r\n };\r\n\r\n $rootScope.permissionsLoaded = function () {\r\n return $rootScope.permissions != null;\r\n };\r\n\r\n $transitions.onBefore({}, function (trans) {\r\n\r\n if (trans.$to().name === 'logout') {\r\n\r\n localStorageService.remove(tokenName);\r\n $cookies.remove('auth');\r\n $rootScope.loggedIn = false;\r\n $rootScope.auth = null;\r\n return $state.target(\"login\");\r\n }\r\n\r\n if (!auth.loggedIn()) {\r\n\r\n $rootScope.loggedIn = false;\r\n if (typeof trans.$to().data !== 'undefined') {\r\n return $state.target(\"login\");\r\n }\r\n }\r\n else {\r\n\r\n $rootScope.loggedIn = true;\r\n $cookies.put('auth', localStorageService.get(tokenName));\r\n\r\n\r\n var allow = true;\r\n if ($rootScope.resturant == null) {\r\n $http.get('api/admin/register/get-resturant-detail').then(function (resp) {\r\n $rootScope.resturant = resp.data;\r\n localStorage.removeItem(\"isApproved\");\r\n localStorage.removeItem(\"qrCodeUrl\");\r\n localStorage.removeItem(\"resturant\");\r\n localStorage.setItem(\"isApproved\", resp.data.isApproved);\r\n localStorage.setItem(\"qrCodeUrl\", resp.data.qrCodeUrl);\r\n localStorage.setItem(\"resturant\", JSON.stringify(resp.data));\r\n });\r\n };\r\n\r\n\r\n if (allow == false) {\r\n // TODO: Permission failed redirect access denied\r\n return $state.target(\"home\");\r\n }\r\n // TODO: Permission check\r\n }\r\n });\r\n }\r\n ]);\r\n\r\napp.factory('auth',\r\n [\r\n '$http', 'jwtHelper', 'localStorageService', '$rootScope', function ($http, jwtHelper, localStorageService, $rootScope) {\r\n return {\r\n loggedIn: function () {\r\n\r\n var token = localStorageService.get(tokenName);\r\n\r\n if (token == null)\r\n return false;\r\n\r\n if (jwtHelper.isTokenExpired(token)) {\r\n\r\n localStorageService.remove(tokenName);\r\n return false;\r\n } else {\r\n\r\n $rootScope.auth = jwtHelper.decodeToken(token);\r\n }\r\n\r\n return true;\r\n }\r\n };\r\n }\r\n ]);\r\n\r\n}) (angular);\r\n\r\nObject.size = function (obj) {\r\n var size = 0, key;\r\n\r\n for (key in obj) {\r\n if (obj.hasOwnProperty(key)) size++;\r\n }\r\n\r\n return size;\r\n};\r\n\r\nfunction unflatten(arr) {\r\n var tree = [],\r\n mappedArr = {},\r\n arrElem,\r\n mappedElem;\r\n\r\n // First map the nodes of the array to an object -> create a hash table.\r\n for (var i = 0, len = arr.length; i < len; i++) {\r\n arrElem = arr[i];\r\n mappedArr[arrElem.id] = arrElem;\r\n mappedArr[arrElem.id].nodes = [];\r\n }\r\n for (var id in mappedArr) {\r\n\r\n if (mappedArr.hasOwnProperty(id)) {\r\n mappedElem = mappedArr[id];\r\n\r\n // If the element is not at the root level, add it to its parent array of children.\r\n if (mappedElem.parentId) {\r\n mappedArr[mappedElem.parentId].nodes.push(mappedElem);\r\n }\r\n\r\n // If the element is at the root level, add it to first level elements array.\r\n else {\r\n tree.push(mappedElem);\r\n }\r\n }\r\n }\r\n return tree;\r\n}\r\n","(function (angular) {\r\n 'use strict';\r\n\r\n angular.module('myApp').config([\r\n '$stateProvider',\r\n function ($stateProvider) {\r\n\r\n $stateProvider.state('myAccount', {\r\n parent: 'system',\r\n templateUrl: '/account/views/layout.tpl.html'\r\n })\r\n .state('editProfile', {\r\n //parent: 'myAccount',\r\n url: '/admin/edit-profile',\r\n component: 'editProfile'\r\n })\r\n .state('changePassword', {\r\n //parent: 'myAccount',\r\n url: '/admin/change-password',\r\n component: 'changePassword'\r\n });\r\n }\r\n ]);\r\n\r\n})(angular);\r\n","(function (angular) {\r\n 'use strict';\r\n\r\n angular.module('myApp').config([\r\n '$stateProvider',\r\n function ($stateProvider) {\r\n\r\n $stateProvider.state('auth', {})\r\n .state('login', {\r\n parent: 'auth',\r\n url: '/admin/auth/login',\r\n component: 'login'\r\n })\r\n .state('register', {\r\n parent: 'auth',\r\n url: '/admin/register',\r\n component: 'register'\r\n })\r\n .state('forgotPassword', {\r\n parent: 'auth',\r\n url: '/admin/auth/forgot-password',\r\n component: 'forgotPassword'\r\n })\r\n .state('resetPassword', {\r\n parent: 'auth',\r\n url: '/admin/auth/reset-password/{token}',\r\n component: 'resetPassword'\r\n })\r\n .state('logout', {\r\n parent: 'auth',\r\n url: '/admin/auth/logout'\r\n });\r\n }\r\n ]);\r\n\r\n})(angular);\r\n","(function (angular) {\r\n 'use strict';\r\n\r\n angular.module('myApp').config([\r\n '$stateProvider',\r\n function ($stateProvider) {\r\n\r\n $stateProvider.state('branches', {\r\n url: '/admin/branches',\r\n component: 'branches',\r\n data: {\r\n permissions: ['branches']\r\n }\r\n })\r\n .state('branchesCreate', {\r\n url: '/admin/branches/create',\r\n component: 'branchesCreate',\r\n data: {\r\n permissions: ['branches.create']\r\n }\r\n })\r\n .state('branchesEdit', {\r\n url: '/admin/branches/edit/{id:int}',\r\n component: 'branchesEdit',\r\n data: {\r\n permissions: ['branches.edit']\r\n }\r\n });\r\n }\r\n ]);\r\n\r\n})(angular);\r\n","(function (angular) {\r\n 'use strict';\r\n\r\n angular.module('myApp').config([\r\n '$stateProvider',\r\n function ($stateProvider) {\r\n\r\n $stateProvider.state('home', {\r\n parent: 'admin',\r\n url: '/admin',\r\n component: 'adminDashboard',\r\n data: {\r\n permissions: ['dashboard']\r\n }\r\n });\r\n $stateProvider.state('qrCode', {\r\n url: '/admin/qr-code',\r\n component: 'qrCode',\r\n data: {\r\n permissions: ['dashboard']\r\n }\r\n });\r\n }\r\n ]);\r\n\r\n})(angular);\r\n","(function (angular) {\r\n 'use strict';\r\n\r\n angular.module('myApp').config([\r\n '$stateProvider',\r\n function ($stateProvider) {\r\n\r\n $stateProvider.state('404',\r\n {\r\n url: '/admin/404',\r\n templateUrl: '/errors/404.tpl.html'\r\n });\r\n }]);\r\n \r\n})(angular);\r\n","(function (angular) {\r\n 'use strict';\r\n\r\n angular.module('myApp').config([\r\n '$stateProvider',\r\n function ($stateProvider) {\r\n\r\n $stateProvider.state('menucategory', {\r\n url: '/admin/menucategory',\r\n component: 'menucategory',\r\n data: {\r\n permissions: ['menucategory']\r\n }\r\n })\r\n .state('menucategoryCreate', {\r\n url: '/admin/menucategory/create',\r\n component: 'menucategoryCreate',\r\n data: {\r\n permissions: ['menucategory.create']\r\n }\r\n })\r\n .state('menucategoryEdit', {\r\n url: '/admin/menucategory/edit/{id:int}',\r\n component: 'menucategoryEdit',\r\n data: {\r\n permissions: ['menucategory.edit']\r\n }\r\n });\r\n }\r\n ]);\r\n\r\n})(angular);\r\n","(function (angular) {\r\n 'use strict';\r\n\r\n angular.module('myApp').config([\r\n '$stateProvider',\r\n function ($stateProvider) {\r\n\r\n $stateProvider.state('menu', {\r\n url: '/admin/menu',\r\n component: 'menus',\r\n data: {\r\n permissions: ['menu']\r\n }\r\n })\r\n .state('menuCreate', {\r\n url: '/admin/menu/create',\r\n component: 'menuCreate',\r\n data: {\r\n permissions: ['menu.create']\r\n }\r\n })\r\n //.state('menuEdit', {\r\n // url: '/admin/menu/edit/{id:int}',\r\n // component: 'menuEdit',\r\n // data: {\r\n // permissions: ['menu.edit']\r\n // }\r\n //});\r\n\r\n .state('menuEdit', {\r\n url: '/admin/menu/edit/{id:int}',\r\n redirectTo: 'menuInformationEdit',\r\n component: 'menuEdit',\r\n data: {\r\n permissions: ['menu.edit']\r\n }\r\n })\r\n .state('menuInformationEdit',\r\n {\r\n parent: 'menuEdit',\r\n url: '/info',\r\n component: 'menuInformationEdit',\r\n data: {\r\n permissions: ['menu.edit']\r\n }\r\n });\r\n\r\n $stateProvider.state('menuOptionGroups',\r\n {\r\n parent: 'menuEdit',\r\n url: '/menu-option-groups',\r\n redirectTo: 'menuOptionGroupList',\r\n template: '',\r\n data: { permissions: ['menuOptionGroups'] }\r\n })\r\n .state('menuOptionGroupList',\r\n {\r\n parent: 'menuOptionGroups',\r\n component: 'menuOptionGroupList',\r\n data: { permissions: ['menuOptionGroups'] }\r\n })\r\n }\r\n ]);\r\n\r\n})(angular);\r\n","(function (angular) {\r\n 'use strict';\r\n\r\n angular.module('myApp').config([\r\n '$stateProvider',\r\n function ($stateProvider) {\r\n\r\n $stateProvider.state('optionGroups', {\r\n url: '/admin/option-groups',\r\n component: 'optionGroups',\r\n data: {\r\n permissions: ['optionGroups']\r\n }\r\n })\r\n .state('optionGroupsCreate', {\r\n url: '/admin/option-groups/create',\r\n component: 'optionGroupsCreate',\r\n data: {\r\n permissions: ['optionGroups.create']\r\n }\r\n })\r\n //.state('optionGroupsEdit', {\r\n // parent: 'catalog',\r\n // url: '/admin/option-groups/edit/{id:int}',\r\n // component: 'optionGroupsEdit',\r\n // data: {\r\n // permissions: ['optionGroups.edit']\r\n // }\r\n //});\r\n .state('optionGroupsEdit', {\r\n url: '/admin/option-group/edit/{id:int}',\r\n redirectTo: 'optionGroupInformationEdit',\r\n component: 'optionGroupsEdit',\r\n data: {\r\n permissions: ['optionGroups.edit']\r\n }\r\n })\r\n .state('optionGroupInformationEdit',\r\n {\r\n parent: 'optionGroupsEdit',\r\n url: '/info',\r\n component: 'optionGroupInformationEdit',\r\n data: {\r\n permissions: ['optionGroups.edit']\r\n }\r\n });\r\n\r\n\r\n $stateProvider.state('options',\r\n {\r\n parent: 'optionGroupsEdit',\r\n url: '/option',\r\n redirectTo: 'optionsList',\r\n template: '',\r\n data: { permissions: ['options'] }\r\n })\r\n .state('optionsList',\r\n {\r\n parent: 'options',\r\n component: 'optionsList',\r\n data: { permissions: ['options'] }\r\n })\r\n .state('optionCreate', {\r\n parent: 'options',\r\n url: '/create',\r\n component: 'optionCreate',\r\n data: {\r\n permissions: ['options']\r\n }\r\n })\r\n .state('optionEdit', {\r\n parent: 'options',\r\n url: '/edit/{childId:int}',\r\n component: 'optionEdit',\r\n data: {\r\n permissions: ['options']\r\n }\r\n });\r\n }\r\n ]);\r\n\r\n})(angular);\r\n","(function (angular) {\r\n \"use strict\";\r\n\r\n angular.module('myApp')\r\n .service('authService', [\r\n '$http',\r\n function ($http) {\r\n\r\n var urlBase = 'api/admin/auth/';\r\n\r\n this.login = function (adminLoginDto) {\r\n return $http({\r\n url: urlBase + 'login',\r\n skipAuthorization: true,\r\n method: 'POST',\r\n data: adminLoginDto\r\n });\r\n };\r\n\r\n this.register = function (adminLoginDto) {\r\n return $http({\r\n url: 'api/admin/register',\r\n skipAuthorization: true,\r\n method: 'POST',\r\n data: adminLoginDto\r\n });\r\n };\r\n\r\n this.getAllResturantCategory = function () {\r\n return $http({\r\n url: 'api/admin/register/get-all-resturant-category',\r\n skipAuthorization: true,\r\n method: 'GET'\r\n });\r\n };\r\n\r\n this.forgotPassword = function (adminForgotPasswordDto) {\r\n return $http({\r\n url: urlBase + 'forgot-password',\r\n skipAuthorization: true,\r\n method: 'POST',\r\n data: adminForgotPasswordDto\r\n });\r\n };\r\n\r\n this.resetPassword = function (token, adminResetPasswordDto) {\r\n return $http({\r\n url: urlBase + 'reset-password/' + token,\r\n skipAuthorization: true,\r\n method: 'POST',\r\n data: adminResetPasswordDto\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('accountService', [\r\n '$http',\r\n function ($http) {\r\n\r\n var urlBase = 'api/admin/account/';\r\n\r\n this.getEditProfile = function () {\r\n return $http({\r\n url: urlBase + 'edit-profile',\r\n method: 'GET'\r\n });\r\n };\r\n\r\n this.editProfile = function (dto) {\r\n return $http({\r\n url: urlBase + 'edit-profile',\r\n method: 'POST',\r\n data: dto\r\n });\r\n };\r\n\r\n this.changePassword = function (dto) {\r\n return $http({\r\n url: urlBase + 'change-password',\r\n method: 'POST',\r\n data: dto\r\n });\r\n };\r\n\r\n this.verifyMobileNumber = function (dto) {\r\n return $http({\r\n url: urlBase + 'verify-mobile',\r\n method: 'POST',\r\n data: dto\r\n });\r\n };\r\n this.generateOtp = function (mobileNumber) {\r\n return $http({\r\n url: urlBase + 'generate-otp',\r\n method: 'POST',\r\n data: mobileNumber\r\n });\r\n };\r\n\r\n this.getAllResturantCategory = function () {\r\n return $http({\r\n url: 'api/admin/register/get-all-resturant-category',\r\n skipAuthorization: true,\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('branchService', [\r\n '$http',\r\n function ($http) {\r\n\r\n var urlBase = 'api/admin/branches/';\r\n\r\n this.list = function (filters) {\r\n return $http({\r\n url: urlBase,\r\n params: filters,\r\n method: 'GET'\r\n });\r\n };\r\n\r\n this.create = 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.byId = function (id) {\r\n return $http({\r\n url: urlBase + id,\r\n method: 'GET'\r\n });\r\n };\r\n\r\n this.edit = function (id, dto) {\r\n return $http({\r\n url: urlBase + id,\r\n method: 'PUT',\r\n data: dto\r\n });\r\n };\r\n\r\n this.delete = function (ids) {\r\n return $http({\r\n url: urlBase + 'delete',\r\n method: 'POST',\r\n data: {\r\n ids: ids\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('dashboardService', [\r\n '$http',\r\n function ($http) {\r\n\r\n var urlBase = 'api/admin/dashboard/';\r\n\r\n this.getAllLatestApplication = function () {\r\n return $http({\r\n url: urlBase + 'get-latest-application',\r\n method: 'GET'\r\n });\r\n };\r\n\r\n this.getResturantDetail = function () {\r\n return $http({\r\n url: 'api/admin/register/get-resturant-detail',\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('languageService', [\r\n '$http',\r\n function ($http) {\r\n\r\n var urlBase = 'api/admin/register/';\r\n\r\n this.getLanguages = function () {\r\n return $http({\r\n url: urlBase + 'get-languages',\r\n skipAuthorization: true,\r\n method: 'GET'\r\n });\r\n };\r\n\r\n }\r\n ]);\r\n\r\n}(window.angular));\r\n\r\n","(function (angular) {\r\n \"use strict\";\r\n\r\n angular.module('myApp')\r\n .service('menuOptionGroupService', [\r\n '$http',\r\n function ($http) {\r\n\r\n var urlBase = 'api/admin/menu-option-groups/';\r\n\r\n this.list = function (filters) {\r\n return $http({\r\n url: urlBase,\r\n params: filters,\r\n method: 'GET'\r\n });\r\n };\r\n\r\n this.create = 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.byId = function (id) {\r\n return $http({\r\n url: urlBase + id,\r\n method: 'GET'\r\n });\r\n };\r\n\r\n this.edit = function (id, dto) {\r\n return $http({\r\n url: urlBase + id,\r\n method: 'PUT',\r\n data: dto\r\n });\r\n };\r\n\r\n this.delete = function (ids) {\r\n return $http({\r\n url: urlBase + 'delete',\r\n method: 'POST',\r\n data: {\r\n ids: ids\r\n }\r\n });\r\n };\r\n\r\n this.getAllMenu = function () {\r\n return $http({\r\n url: 'api/admin/menus/get-all-menu',\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('menuService', [\r\n '$http',\r\n function ($http) {\r\n\r\n var urlBase = 'api/admin/menus/';\r\n\r\n this.list = function (filters) {\r\n return $http({\r\n url: urlBase,\r\n params: filters,\r\n method: 'GET'\r\n });\r\n };\r\n\r\n this.create = 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.byId = function (id) {\r\n return $http({\r\n url: urlBase + id,\r\n method: 'GET'\r\n });\r\n };\r\n\r\n this.edit = function (id, dto) {\r\n return $http({\r\n url: urlBase + id,\r\n method: 'PUT',\r\n data: dto\r\n });\r\n };\r\n\r\n this.delete = function (ids) {\r\n return $http({\r\n url: urlBase + 'delete',\r\n method: 'POST',\r\n data: {\r\n ids: ids\r\n }\r\n });\r\n };\r\n\r\n this.getAllMenu = function () {\r\n return $http({\r\n url: 'api/admin/menus/get-all-menu',\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('menucategoryService', [\r\n '$http',\r\n function ($http) {\r\n\r\n var urlBase = 'api/admin/menucategory/';\r\n\r\n this.list = function (filters) {\r\n return $http({\r\n url: urlBase,\r\n params: filters,\r\n method: 'GET'\r\n });\r\n };\r\n\r\n this.create = 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.byId = function (id) {\r\n return $http({\r\n url: urlBase + id,\r\n method: 'GET'\r\n });\r\n };\r\n\r\n this.edit = function (id, dto) {\r\n return $http({\r\n url: urlBase + id,\r\n method: 'PUT',\r\n data: dto\r\n });\r\n };\r\n\r\n this.delete = function (ids) {\r\n return $http({\r\n url: urlBase + 'delete',\r\n method: 'POST',\r\n data: {\r\n ids: ids\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('optionGroupService', [\r\n '$http',\r\n function ($http) {\r\n\r\n var urlBase = 'api/admin/option-groups/';\r\n\r\n this.list = function (filters) {\r\n return $http({\r\n url: urlBase,\r\n params: filters,\r\n method: 'GET'\r\n });\r\n };\r\n\r\n this.create = 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.byId = function (id) {\r\n return $http({\r\n url: urlBase + id,\r\n method: 'GET'\r\n });\r\n };\r\n\r\n this.edit = function (id, dto) {\r\n return $http({\r\n url: urlBase + id,\r\n method: 'PUT',\r\n data: dto\r\n });\r\n };\r\n\r\n this.delete = function (ids) {\r\n return $http({\r\n url: urlBase + 'delete',\r\n method: 'POST',\r\n data: {\r\n ids: ids\r\n }\r\n });\r\n };\r\n\r\n this.getAllMenuItem = function () {\r\n return $http({\r\n url: 'api/admin/menus/get-all-menu-item',\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('optionService', [\r\n '$http',\r\n function ($http) {\r\n\r\n var urlBase = 'api/admin/options/';\r\n\r\n this.list = function (filters) {\r\n return $http({\r\n url: urlBase,\r\n params: filters,\r\n method: 'GET'\r\n });\r\n };\r\n\r\n this.create = 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.byId = function (id) {\r\n return $http({\r\n url: urlBase + id,\r\n method: 'GET'\r\n });\r\n };\r\n\r\n this.edit = function (id, dto) {\r\n return $http({\r\n url: urlBase + id,\r\n method: 'PUT',\r\n data: dto\r\n });\r\n };\r\n\r\n this.delete = function (ids) {\r\n return $http({\r\n url: urlBase + 'delete',\r\n method: 'POST',\r\n data: {\r\n ids: ids\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('changePassword', {\r\n templateUrl: '/account/views/change-password.tpl.html',\r\n controller: 'ChangePasswordController'\r\n });\r\n\r\n angular.module('myApp').controller('ChangePasswordController', [\r\n '$scope', '$http', 'accountService', 'flash',\r\n function ($scope, $http, accountService, flash) {\r\n\r\n $scope.aim = {};\r\n $scope.aim.dto = {};\r\n $scope.aim.result = {};\r\n\r\n $scope.submit = function () {\r\n accountService.changePassword($scope.aim.dto)\r\n .then(function (resp) {\r\n\r\n $scope.aim.result = resp.data;\r\n flash.show(resp.data.message, resp.data.messageType);\r\n\r\n if (resp.data.success) {\r\n $scope.aim.dto = {};\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('editProfile', {\r\n templateUrl: '/account/views/edit-profile.tpl.html',\r\n controller: 'EditProfileController'\r\n });\r\n\r\n angular.module('myApp').controller('EditProfileController', [\r\n '$scope', '$http', 'FileUploader', 'accountService', 'languageService', 'flash', '$state',\r\n function ($scope, $http, FileUploader, accountService, languageService, flash, $state) {\r\n $scope.aim = {};\r\n $scope.aim.dto = {};\r\n $scope.aim.dto.otp = '';\r\n $scope.aim.result = {};\r\n $scope.aim.result.errors = {};\r\n\r\n accountService.getAllResturantCategory().then(function (resp) {\r\n $scope.resturantCategory = resp.data;\r\n });\r\n languageService.getLanguages().then(function (resp) {\r\n $scope.languages = resp.data;\r\n });\r\n\r\n $scope.isDisableButton = false;\r\n $scope.tempUploadUrl = tempUploads;\r\n $scope.profileImageUploadUrl = memberProfileUpload;\r\n\r\n $scope.profileUploader = new FileUploader({url: \"image-upload-filesize\"});\r\n $scope.profileUploader.onAfterAddingFile = function (fileItem) {\r\n $scope.isDisableButton = true;\r\n fileItem.uploader.queue[0].upload();\r\n };\r\n $scope.profileUploader.onProgressItem = function (fileItem, progress) {\r\n };\r\n $scope.profileUploader.onCompleteItem = function (fileItem, response, status, headers) {\r\n if (response.success) {\r\n $scope.isDisableButton = false;\r\n $scope.aim.dto.logo = response.data.filePath + response.data.fileName;\r\n } else {\r\n $scope.aim.result.errors.logo = response.message;\r\n $scope.aim.dto.logo = '';\r\n $scope.isDisableButton = true;\r\n }\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 accountService.getEditProfile().then(function (resp) {\r\n $scope.aim.dto = resp.data;\r\n setTimeout(function () {\r\n funInputPlaceholder();\r\n }, 500);\r\n });\r\n\r\n $scope.submit = function () {\r\n accountService.editProfile($scope.aim.dto)\r\n .then(function (resp) {\r\n $scope.aim.result = resp.data;\r\n if (resp.data.success) {\r\n localStorage.removeItem(\"resturant\");\r\n localStorage.setItem(\"resturant\", resp.data.data);\r\n $state.go('menu');\r\n flash.show(resp.data.message, resp.data.messageType);\r\n }\r\n });\r\n };\r\n $scope.isGenerateOtp = false;\r\n $scope.sendOtpBtnText = 'Send OTP';\r\n $scope.generateOtp = function () {\r\n accountService.generateOtp($scope.aim.dto.mobileNumber).then(function (resp) {\r\n $scope.aim.result = resp.data;\r\n $scope.isGenerateOtp = resp.data.success;\r\n\r\n if ($scope.isGenerateOtp)\r\n $scope.sendOtpBtnText = 'Resend OTP';\r\n\r\n flash.show(resp.data.message, resp.data.messageType);\r\n });\r\n }\r\n\r\n $scope.verifyMobileNumber = function () {\r\n accountService.verifyMobileNumber({\r\n mobileNumber: $scope.aim.dto.mobileNumber,\r\n otp: $scope.aim.dto.otp\r\n }).then(function (resp) {\r\n console.log(resp.data);\r\n $scope.aim.dto = resp.data.data;\r\n flash.show(resp.data.message, resp.data.messageType);\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('forgotPassword', {\r\n templateUrl: '/auth/views/forgot-password.tpl.html',\r\n controller: 'ForgotPasswordController'\r\n });\r\n\r\n angular.module('myApp').controller('ForgotPasswordController', [\r\n '$scope', '$http', 'authService',\r\n function ($scope, $http, authService) {\r\n\r\n $scope.dto = {};\r\n $scope.result = {};\r\n\r\n $scope.submit = function () {\r\n authService.forgotPassword($scope.dto)\r\n .then(function (resp) {\r\n\r\n $scope.result = resp.data;\r\n if (resp.data.success) {\r\n $scope.dto = {};\r\n }\r\n\r\n });\r\n };\r\n\r\n setTimeout(function () {\r\n funInputPlaceholder();\r\n }, 20);\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('login', {\r\n templateUrl: '/auth/views/login.tpl.html',\r\n controller: 'LoginController'\r\n });\r\n\r\n angular.module('myApp').controller('LoginController', [\r\n '$scope', '$http', 'authService', '$rootScope', 'localStorageService', '$state', '$cookies',\r\n function ($scope, $http, authService, $rootScope, localStorageService, $state, $cookies) {\r\n\r\n $scope.dto = {};\r\n $scope.result = {};\r\n\r\n if ($rootScope.result) {\r\n $scope.result = $rootScope.result;\r\n $rootScope.result = null;\r\n }\r\n\r\n $scope.submit = function () {\r\n authService.login($scope.dto)\r\n .then(function (resp) {\r\n $scope.result = resp.data;\r\n if (resp.data.success) {\r\n var token = resp.data.data;\r\n localStorageService.set(tokenName, token);\r\n $cookies.put('auth', token);\r\n\r\n $http.get('api/admin/register/get-resturant-detail').then(function (resp) {\r\n localStorage.removeItem(\"isApproved\");\r\n localStorage.removeItem(\"qrCodeUrl\");\r\n localStorage.removeItem(\"resturant\");\r\n localStorage.setItem(\"isApproved\", resp.data.isApproved);\r\n localStorage.setItem(\"qrCodeUrl\", resp.data.qrCodeUrl);\r\n localStorage.setItem(\"resturant\", JSON.stringify(resp.data));\r\n });\r\n\r\n $state.go('menu');\r\n }\r\n\r\n });\r\n };\r\n\r\n setTimeout(function () {\r\n funInputPlaceholder();\r\n }, 20);\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('register', {\r\n templateUrl: '/auth/views/register.tpl.html',\r\n controller: 'RegisterController'\r\n });\r\n\r\n angular.module('myApp').controller('RegisterController', [\r\n '$scope', '$http', 'authService', 'languageService', '$rootScope', '$state', '$cookies', 'flash', 'FileUploader',\r\n function ($scope, $http, authService, languageService, $rootScope, $state, $cookies, flash, FileUploader) {\r\n\r\n $scope.dto = {};\r\n $scope.result = {};\r\n\r\n if ($rootScope.result) {\r\n $scope.result = $rootScope.result;\r\n $rootScope.result = null;\r\n }\r\n\r\n $scope.isDisableButton = false;\r\n $scope.tempUploadUrl = tempUploads;\r\n $scope.profileImageUploadUrl = memberProfileUpload;\r\n $scope.result.errors = {};\r\n $scope.profileUploader = new FileUploader({url: \"image-upload-filesize\"});\r\n $scope.profileUploader.onAfterAddingFile = function (fileItem) {\r\n $scope.isDisableButton = true;\r\n fileItem.uploader.queue[0].upload();\r\n };\r\n $scope.profileUploader.onProgressItem = function (fileItem, progress) {\r\n };\r\n $scope.profileUploader.onCompleteItem = function (fileItem, response, status, headers) {\r\n if (response.success) {\r\n $scope.isDisableButton = false;\r\n $scope.dto.logo = response.data.filePath + response.data.fileName;\r\n } else {\r\n $scope.result.errors.logo = response.message;\r\n $scope.dto.logo = '';\r\n $scope.isDisableButton = true;\r\n }\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 languageService.getLanguages().then(function (resp) {\r\n $scope.languages = resp.data;\r\n });\r\n\r\n authService.getAllResturantCategory().then(function (resp) {\r\n $scope.resturantCategory = resp.data;\r\n });\r\n\r\n $scope.submit = function () {\r\n authService.register($scope.dto)\r\n .then(function (resp) {\r\n\r\n $scope.result = resp.data;\r\n\r\n if (resp.data.success) {\r\n var token = resp.data.data;\r\n\r\n //localStorageService.set(tokenName, token);\r\n //$cookies.put('auth', token);\r\n $state.go('login');\r\n flash.show(\"Register completed successfully\", 1);\r\n }\r\n });\r\n };\r\n\r\n setTimeout(function () {\r\n funInputPlaceholder();\r\n }, 20);\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('resetPassword', {\r\n templateUrl: '/auth/views/reset-password.tpl.html',\r\n controller: 'ResetPasswordController'\r\n });\r\n\r\n angular.module('myApp').controller('ResetPasswordController', [\r\n '$scope', '$http', 'authService', '$stateParams', '$state', '$rootScope',\r\n function ($scope, $http, authService, $stateParams, $state, $rootScope) {\r\n\r\n if ($stateParams.token === undefined || $stateParams.token === '') {\r\n $state.go(\"login\");\r\n }\r\n\r\n $scope.dto = {};\r\n $scope.result = {};\r\n\r\n $scope.submit = function () {\r\n $scope.result = {};\r\n\r\n authService.resetPassword($stateParams.token, $scope.dto)\r\n .then(function (resp) {\r\n\r\n if (resp.data.success) {\r\n $rootScope.result = resp.data;\r\n $state.go(\"login\");\r\n }\r\n $scope.result = resp.data;\r\n\r\n });\r\n };\r\n setTimeout(function () {\r\n funInputPlaceholder();\r\n }, 20);\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('branchesCreate', {\r\n templateUrl: '/branches/views/branchCreate.tpl.html',\r\n controller: [\r\n '$scope', 'branchService', 'aimCreate',\r\n function ($scope, branchService, aimCreate) {\r\n\r\n $scope.aim = new aimCreate();\r\n $scope.aim.service = branchService;\r\n\r\n $scope.aim.listRoute = 'branches';\r\n $scope.aim.editRoute = 'branchesEdit';\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('branchesEdit', {\r\n templateUrl: '/branches/views/branchEdit.tpl.html',\r\n controller: [\r\n '$scope', 'branchService', 'aimEdit',\r\n function ($scope, branchService, aimEdit) {\r\n\r\n $scope.aim = new aimEdit();\r\n $scope.aim.service = branchService;\r\n $scope.aim.listRoute = 'branches';\r\n $scope.aim.load();\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('branches', {\r\n templateUrl: '/branches/views/branchList.tpl.html',\r\n controller: [\r\n '$scope', 'aimList',\r\n function ($scope, aimList) {\r\n\r\n $scope.list = new aimList();\r\n $scope.list.url = 'api/admin/branches/';\r\n $scope.list.module = 'branch';\r\n $scope.list.actions = null;\r\n $scope.list.load();\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').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').filter('repeat', function () {\r\n return function (text, times) {\r\n if (text) {\r\n return text.repeat(times);\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('aimCreate', [\r\n \"flash\", \"$state\", \"$window\",\r\n function (flash, $state, $window) {\r\n\r\n var aimCreate = function () {\r\n\r\n this.listRoute = null;\r\n this.editRoute = null;\r\n\r\n this.service = null;\r\n\r\n this.result = {};\r\n this.dto = {};\r\n\r\n this.isSubModule = false;\r\n\r\n setTimeout(function () { funInputPlaceholder(); }, 500);\r\n\r\n };\r\n\r\n aimCreate.prototype.save = function () {\r\n var $that = this;\r\n $that.service.create($that.dto)\r\n .then(function (resp) {\r\n\r\n $that.result = resp.data;\r\n flash.show(resp.data.message, resp.data.messageType);\r\n\r\n if (resp.data.success) {\r\n $state.go($that.listRoute);\r\n }\r\n\r\n $window.scrollTo(0, 0);\r\n });\r\n };\r\n\r\n aimCreate.prototype.saveContinue = function () {\r\n var $that = this;\r\n this.service.create(this.dto)\r\n .then(function (resp) {\r\n\r\n $that.result = resp.data;\r\n flash.show(resp.data.message, resp.data.messageType);\r\n\r\n if (resp.data.success) {\r\n if ($that.isSubModule) {\r\n $state.go($that.editRoute, {\r\n childId: resp.data.id\r\n });\r\n } else {\r\n $state.go($that.editRoute, {\r\n id: resp.data.id\r\n });\r\n }\r\n }\r\n\r\n $window.scrollTo(0, 0);\r\n });\r\n };\r\n\r\n aimCreate.prototype.saveNew = function () {\r\n var $that = this;\r\n this.service.create(this.dto)\r\n .then(function (resp) {\r\n\r\n $that.result = resp.data;\r\n flash.show(resp.data.message, resp.data.messageType);\r\n\r\n if (resp.data.success) {\r\n $that.dto = {};\r\n $that.dto.isActive = true;\r\n $state.reload();\r\n }\r\n\r\n $window.scrollTo(0, 0);\r\n });\r\n };\r\n\r\n return aimCreate;\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('aimEdit', [\r\n \"flash\", \"$state\", \"$window\",\r\n function (flash, $state, $window) {\r\n\r\n var aimEdit = function () {\r\n\r\n this.listRoute = null;\r\n this.editRoute = null;\r\n\r\n this.service = null;\r\n\r\n this.id = $state.params.id;\r\n\r\n this.result = {};\r\n this.dto = {};\r\n\r\n //callback function\r\n this.onAfterLoad = null;\r\n\r\n };\r\n\r\n aimEdit.prototype.load = function () {\r\n var $that = this;\r\n this.service.byId(this.id).then(function (resp) {\r\n $that.dto = resp.data;\r\n setTimeout(function () { funInputPlaceholder(); }, 500);\r\n if (typeof $that.onAfterLoad === \"function\")\r\n $that.onAfterLoad();\r\n\r\n }, function (error) {\r\n if (error.status === 404) {\r\n $state.go('404');\r\n }\r\n });\r\n };\r\n\r\n aimEdit.prototype.save = function () {\r\n var $that = this;\r\n this.service.edit(this.id, this.dto)\r\n .then(function (resp) {\r\n\r\n $that.result = resp.data;\r\n flash.show(resp.data.message, resp.data.messageType);\r\n\r\n if (resp.data.success) {\r\n $state.go($that.listRoute);\r\n }\r\n\r\n $window.scrollTo(0, 0);\r\n });\r\n };\r\n\r\n aimEdit.prototype.saveContinue = function () {\r\n var $that = this;\r\n this.service.edit(this.id, this.dto)\r\n .then(function (resp) {\r\n\r\n $that.result = resp.data;\r\n flash.show(resp.data.message, resp.data.messageType);\r\n\r\n if (typeof $that.onAfterLoad === \"function\")\r\n $that.onAfterLoad();\r\n\r\n $window.scrollTo(0, 0);\r\n });\r\n };\r\n\r\n aimEdit.prototype.deleteExecute = function () {\r\n var $that = this;\r\n this.service.delete([this.id])\r\n .then(function (resp) {\r\n\r\n $that.result = resp.data;\r\n flash.show(resp.data.message, resp.data.messageType);\r\n\r\n if (resp.data.success) {\r\n $state.go($that.listRoute);\r\n }\r\n\r\n $window.scrollTo(0, 0);\r\n });\r\n };\r\n\r\n aimEdit.prototype.delete = function () {\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: this.deleteExecute\r\n });\r\n };\r\n\r\n return aimEdit;\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 (obj) {\r\n var $that = this;\r\n var id = obj.id;\r\n var ids = Array.isArray(id) ? id : [id];\r\n var msgText = (obj.msg) ? obj.msg : \"Are you sure you want to delete record?\"\r\n $.confirm({\r\n text: msgText,\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) {\n \"use strict\";\n\n var app = angular.module('myApp');\n\n app.directive('allowDecimalNumbers', function () {\n return {\n restrict: 'A',\n link: function (scope, elm, attrs, ctrl) {\n elm.on('keydown',\n function (event) {\n\n var $input = $(this);\n var value = $input.val();\n value = value.replace(/[^0-9\\.]/g, '');\n $input.val(value);\n\n if (event.which == 64 || event.which == 16) {\n // numbers\n return false;\n }\n if ([8, 9, 13, 27, 37, 38, 39, 40].indexOf(event.which) > -1) {\n // backspace, Tab,enter, escape, arrows\n return true;\n } else if (event.which >= 48 && event.which <= 57) {\n // numbers\n return true;\n } else if (event.which >= 96 && event.which <= 105) {\n // numpad number\n return true;\n }\n else if ([46, 110, 190].indexOf(event.which) > -1) {\n // dot and numpad dot\n return true;\n }\n else {\n event.preventDefault();\n return false;\n }\n });\n }\n };\n });\n\n\n app.directive('allowNumbersOnly', function () {\n return {\n require: 'ngModel',\n link: function (scope, element, attr, ngModelCtrl) {\n function fromUser(text) {\n if (text) {\n var transformedInput = text.toString().replace(/[^0-9]/g, '');\n\n if (transformedInput !== text) {\n ngModelCtrl.$setViewValue(transformedInput);\n ngModelCtrl.$render();\n }\n return transformedInput;\n }\n return undefined;\n }\n ngModelCtrl.$parsers.push(fromUser);\n }\n };\n });\n\n}(window.angular));\n","(function (angular) {\r\n \"use strict\";\r\n\r\n var app = angular.module('myApp');\r\n\r\n app.filter('messageType', [function () { return function (input) { return getMessageType(input); }; }]);\r\n app.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 function getMessageColor(messageType) { switch (messageType) { case 0: return \"C46A69\"; case 1: return \"739E73\"; case 3: return \"C79121\"; default: return '296191'; } }\r\n function getMessageTitle(messageType) { switch (messageType) { case 0: return \"Error\"; case 1: return \"Success\"; case 3: return \"Warning\"; default: return 'Info'; } }\r\n\r\n app.service('flash', function() {\r\n this.show = function(message, messageType, close) {\r\n if (message === '' || message === null || typeof message === 'undefined') return;\r\n\r\n messageType = messageType;\r\n if (messageType === '' || messageType === null || typeof messageType === 'undefined')\r\n messageType=1;\r\n //messageType = messageType || 1;\r\n close = close || 5000;\r\n\r\n if (messageType === 0)\r\n toastr.error(message);\r\n else if (messageType === 1)\r\n toastr.success(message);\r\n else if (messageType === 3)\r\n toastr.warning(message);\r\n else\r\n toastr.info(message);\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('adminDashboard',\r\n {\r\n templateUrl: '/home/views/home.tpl.html',\r\n controller: ['$scope', '$state',\r\n function ($scope, $state,) {\r\n\r\n }]\r\n });\r\n\r\n}(window.angular));\r\n","(function (angular) {\n \"use strict\";\n\n angular.module('myApp').directive(\"mainMenu\", function () {\n return {\n templateUrl: '/home/views/menu.tpl.html',\n controller: [\"$scope\", \"$attrs\", \"$rootScope\", \"flash\", function ($scope, $attrs, $rootScope, flash) {\n $rootScope.$watch('permissions', function (newValue, oldValue, scope) {\n $scope.hideMenu = $rootScope.permissions === null;\n });\n\n $scope.resturant={};\n $scope.openFrontEndLink = function () {\n if (localStorage.getItem(\"resturant\") != null && localStorage.getItem(\"resturant\") != '' && localStorage.getItem(\"resturant\") != undefined){\n $scope.resturant = JSON.parse(localStorage.getItem(\"resturant\"));\n }\n if (localStorage.getItem(\"isApproved\") != null && localStorage.getItem(\"isApproved\") != '' && localStorage.getItem(\"isApproved\") != undefined)\n $scope.isApproved = localStorage.getItem(\"isApproved\");\n\n if ($scope.isApproved == 'false')\n flash.show(\"لم تتم الموافقة على طلبكم بعد\", 0);\n else {\n if ($scope.resturant != null)\n window.open('/menu/' + $scope.resturant.encryptedUrl, '_blank');\n else\n flash.show(\"Resturant not found!\", 0);\n }\n }\n }]\n };\n });\n\n}(window.angular));\n","(function (angular) {\r\n \"use strict\";\r\n\r\n angular.module('myApp').component('qrCode', {\r\n templateUrl: '/home/views/qr-code.tpl.html',\r\n controller: [\r\n '$scope',\r\n function ($scope) {\r\n\r\n $scope.isApproved = localStorage.getItem(\"isApproved\");\r\n $scope.qrCodeUrl = localStorage.getItem(\"qrCodeUrl\");\r\n\r\n $scope.downloadQrCode = function () {\r\n if ($scope.qrCodeUrl != 'null') {\r\n window.open($scope.qrCodeUrl);\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('menucategoryCreate', {\r\n templateUrl: '/menucategory/views/Create.tpl.html',\r\n controller: [\r\n '$scope', 'menucategoryService', 'aimCreate', 'FileUploader',\r\n function ($scope, menucategoryService, aimCreate, FileUploader) {\r\n\r\n $scope.aim = new aimCreate();\r\n $scope.aim.service = menucategoryService;\r\n\r\n $scope.aim.listRoute = 'menucategory';\r\n $scope.aim.editRoute = 'menucategoryEdit';\r\n\r\n $scope.tempUploadUrl = tempUploads;\r\n $scope.profileImageUploadUrl = memberProfileUpload;\r\n $scope.aim.result.errors = {};\r\n $scope.menucategoryUploader = new FileUploader({ url: \"image-upload-filesize\" });\r\n $scope.menucategoryUploader.onAfterAddingFile = function (fileItem) { fileItem.uploader.queue[0].upload(); };\r\n $scope.menucategoryUploader.onProgressItem = function (fileItem, progress) { };\r\n $scope.menucategoryUploader.onCompleteItem = function (fileItem, response, status, headers) {\r\n if (response.success) {\r\n $scope.aim.dto.icon = response.data.filePath + response.data.fileName;\r\n } else {\r\n $scope.aim.result.errors.icon = response.message;\r\n $scope.aim.dto.icon = '';\r\n }\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\r\n}(window.angular));\r\n","(function (angular) {\r\n \"use strict\";\r\n\r\n angular.module('myApp').component('menucategoryEdit', {\r\n templateUrl: '/menucategory/views/Edit.tpl.html',\r\n controller: [\r\n '$scope', 'menucategoryService', 'aimEdit','FileUploader',\r\n function ($scope, menucategoryService, aimEdit,FileUploader) {\r\n\r\n $scope.aim = new aimEdit();\r\n $scope.aim.service = menucategoryService;\r\n $scope.aim.listRoute = 'menucategory';\r\n $scope.menucategoryUploader = new FileUploader({ url: \"image-upload-filesize\" });\r\n $scope.menucategoryUploader.onAfterAddingFile = function (fileItem) { fileItem.uploader.queue[0].upload(); };\r\n $scope.menucategoryUploader.onProgressItem = function (fileItem, progress) { };\r\n $scope.menucategoryUploader.onCompleteItem = function (fileItem, response, status, headers) {\r\n if (response.success) {\r\n $scope.aim.dto.icon = response.data.filePath + response.data.fileName;\r\n } else {\r\n $scope.aim.result.errors.icon = response.message;\r\n $scope.aim.dto.icon = '';\r\n }\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 $scope.aim.load();\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('menucategory', {\r\n templateUrl: '/menucategory/views/List.tpl.html',\r\n controller: [\r\n '$scope', 'aimList',\r\n function ($scope, aimList) {\r\n\r\n $scope.list = new aimList();\r\n $scope.list.url = 'api/admin/menucategory/';\r\n $scope.list.module = 'menu';\r\n $scope.list.actions = undefined;\r\n $scope.list.showPaging = true;\r\n $scope.list.load();\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('menuCreate', {\r\n templateUrl: '/menu/views/menuCreate.tpl.html',\r\n controller: [\r\n '$scope', 'menuService', 'aimCreate', 'languageService', 'FileUploader',\r\n function ($scope, menuService, aimCreate, languageService, FileUploader,) {\r\n\r\n $scope.aim = new aimCreate();\r\n $scope.aim.service = menuService;\r\n $scope.aim.listRoute = 'menu';\r\n $scope.aim.editRoute = 'menuEdit';\r\n $scope.tempUploadUrl = tempUploads;\r\n $scope.profileImageUploadUrl = memberProfileUpload;\r\n $scope.aim.result.errors = {};\r\n $scope.profileUploader = new FileUploader({ url: \"image-upload-filesize\" });\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 if (response.success) {\r\n $scope.aim.dto.imageUrl = response.data.filePath + response.data.fileName;\r\n } else {\r\n $scope.aim.result.errors.imageUrl = response.message;\r\n $scope.aim.dto.imageUrl = '';\r\n }\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 menuService.getAllMenu().then(function (resp) {\r\n $scope.categories = resp.data;\r\n });\r\n\r\n languageService.getLanguages().then(function (resp) {\r\n $scope.languages = resp.data;\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('menuEdit', {\r\n templateUrl: '/menu/views/menuEdit.tpl.html',\r\n controller: [\r\n '$scope', 'menuService', 'aimEdit', 'languageService','FileUploader',\r\n function ($scope, menuService, aimEdit, languageService , FileUploader) {\r\n\r\n //$scope.aim = new aimEdit();\r\n //$scope.aim.service = menuService;\r\n //$scope.aim.listRoute = 'menu';\r\n //$scope.aim.load();\r\n\r\n //$scope.tempUploadUrl = tempUploads;\r\n //$scope.profileImageUploadUrl = memberProfileUpload;\r\n //$scope.aim.result.errors = {};\r\n //$scope.profileUploader = new FileUploader({ url: \"image-upload-filesize\" });\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 // if (response.success) {\r\n // $scope.aim.dto.imageUrl = response.data.filePath + response.data.fileName;\r\n // } else {\r\n // $scope.aim.result.errors.imageUrl = response.message;\r\n // $scope.aim.dto.imageUrl = '';\r\n // }\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 //menuService.getAllMenu().then(function (resp) {\r\n // $scope.categories = resp.data;\r\n //});\r\n\r\n //languageService.getLanguages().then(function (resp) {\r\n // $scope.languages = resp.data;\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('menuInformationEdit', {\r\n templateUrl: '/menu/views/menuInformationEdit.tpl.html',\r\n controller: [\r\n '$scope', 'menuService', 'aimEdit', 'languageService','FileUploader',\r\n function ($scope, menuService, aimEdit, languageService , FileUploader) {\r\n\r\n $scope.aim = new aimEdit();\r\n $scope.aim.service = menuService;\r\n $scope.aim.listRoute = 'menu';\r\n $scope.aim.load();\r\n\r\n $scope.tempUploadUrl = tempUploads;\r\n $scope.profileImageUploadUrl = memberProfileUpload;\r\n $scope.aim.result.errors = {};\r\n $scope.profileUploader = new FileUploader({ url: \"image-upload-filesize\" });\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 if (response.success) {\r\n $scope.aim.dto.imageUrl = response.data.filePath + response.data.fileName;\r\n } else {\r\n $scope.aim.result.errors.imageUrl = response.message;\r\n $scope.aim.dto.imageUrl = '';\r\n }\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 menuService.getAllMenu().then(function (resp) {\r\n $scope.categories = resp.data;\r\n });\r\n\r\n languageService.getLanguages().then(function (resp) {\r\n $scope.languages = resp.data;\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('menus', {\r\n templateUrl: '/menu/views/menuList.tpl.html',\r\n controller: [\r\n '$scope', 'aimList', 'flash',\r\n function ($scope, aimList, flash) {\r\n\r\n $scope.list = new aimList();\r\n $scope.list.url = 'api/admin/menus/';\r\n $scope.list.module = 'menu';\r\n $scope.list.actions = undefined;\r\n $scope.list.showPaging = true;\r\n $scope.list.load();\r\n\r\n $scope.qrCodeDownload = function (url, isApprovedUser) {\r\n if (!isApprovedUser)\r\n flash.show(\"لم تتم الموافقة على طلبكم بعد\", 0);\r\n else\r\n window.open(url, '_blank');\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('menuOptionGroupList', {\r\n templateUrl: '/menu/views/menuOptionGroupList.tpl.html',\r\n controller: [\r\n '$scope', 'aimList','$state',\r\n function ($scope, aimList, $state) {\r\n\r\n $scope.list = new aimList();\r\n $scope.list.url = 'api/admin/menu-option-groups/';\r\n $scope.list.module = 'menuOptionGroups';\r\n $scope.list.showPaging = false;\r\n $scope.list.actions = null;\r\n $scope.list.filters.MenuItemId = $state.params.id;\r\n $scope.list.load();\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('optionCreate', {\r\n templateUrl: '/optionGroups/views/optionCreate.tpl.html',\r\n controller: [\r\n '$scope', 'optionService', 'aimCreate','$state',\r\n function ($scope, optionService, aimCreate, $state) {\r\n\r\n $scope.aim = new aimCreate();\r\n $scope.aim.service = optionService;\r\n\r\n $scope.aim.listRoute = 'options';\r\n $scope.aim.editRoute = 'optionEdit';\r\n $scope.aim.dto.optionGroupId = $state.params.id;\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('optionEdit', {\r\n templateUrl: '/optionGroups/views/optionEdit.tpl.html',\r\n controller: [\r\n '$scope', 'optionService', 'aimEdit','$state',\r\n function ($scope, optionService, aimEdit, $state) {\r\n\r\n $scope.aim = new aimEdit();\r\n $scope.aim.id = $state.params.childId;\r\n $scope.aim.service = optionService;\r\n $scope.aim.listRoute = 'options';\r\n $scope.aim.load();\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('optionGroupsCreate', {\r\n templateUrl: '/optionGroups/views/optionGroupCreate.tpl.html',\r\n controller: [\r\n '$scope', 'optionGroupService', 'aimCreate',\r\n function ($scope, optionGroupService, aimCreate) {\r\n\r\n $scope.aim = new aimCreate();\r\n $scope.aim.service = optionGroupService;\r\n\r\n $scope.aim.listRoute = 'optionGroups';\r\n $scope.aim.editRoute = 'optionGroupsEdit';\r\n\r\n\r\n optionGroupService.getAllMenuItem().then(function (resp) {\r\n $scope.menuItems = resp.data;\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('optionGroupsEdit', {\r\n templateUrl: '/optionGroups/views/optionGroupEdit.tpl.html',\r\n controller: [\r\n '$scope', 'optionGroupService', 'aimEdit',\r\n function ($scope, optionGroupService, aimEdit) {\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('optionGroupInformationEdit', {\r\n templateUrl: '/optionGroups/views/optionGroupInformationEdit.tpl.html',\r\n controller: [\r\n '$scope', 'optionGroupService', 'aimEdit',\r\n function ($scope, optionGroupService, aimEdit) {\r\n\r\n $scope.aim = new aimEdit();\r\n $scope.aim.service = optionGroupService;\r\n $scope.aim.listRoute = 'optionGroups';\r\n $scope.aim.load();\r\n\r\n optionGroupService.getAllMenuItem().then(function (resp) {\r\n $scope.menuItems = resp.data;\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('optionGroups', {\r\n templateUrl: '/optionGroups/views/optionGroupList.tpl.html',\r\n controller: [\r\n '$scope', 'aimList',\r\n function ($scope, aimList) {\r\n\r\n $scope.list = new aimList();\r\n $scope.list.url = 'api/admin/option-groups/';\r\n $scope.list.module = 'optionGroup';\r\n $scope.list.actions = null;\r\n $scope.list.load();\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('optionsList', {\r\n templateUrl: '/optionGroups/views/optionList.tpl.html',\r\n controller: [\r\n '$scope', 'aimList','$state',\r\n function ($scope, aimList, $state) {\r\n\r\n $scope.list = new aimList();\r\n $scope.list.url = 'api/admin/options/';\r\n $scope.list.module = 'options';\r\n $scope.list.actions = null;\r\n $scope.list.filters.optionGroupId = $state.params.id;\r\n $scope.list.load();\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(\"formActions\",\r\n {\r\n templateUrl: \"/core/components/formActions/form-actions.tpl.html\",\r\n transclude: true\r\n });\r\n \r\n}(window.angular));","(function (angular) {\r\n \"use strict\";\r\n\r\n angular.module('myApp').component(\"layoutHeader\",\r\n {\r\n templateUrl: \"/core/components/layoutHeader/layout-header.tpl.html\",\r\n transclude: true,\r\n bindings: { icon: '@', breadcrumb: '=' },\r\n controller: ['$scope',\r\n function ($scope) {\r\n $scope.isApproved = localStorage.getItem(\"isApproved\");\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(\"grid\",\r\n {\r\n templateUrl: \"/core/components/grid/grid.tpl.html\",\r\n transclude: true\r\n });\r\n\r\n}(window.angular));\r\n","(function (angular) {\r\n \"use strict\";\r\n\r\n angular.module('myApp').component(\"message\",\r\n {\r\n templateUrl: \"/core/components/message/message.tpl.html\",\r\n bindings: { result: '=' },\r\n controller: ['$scope', function ($scope) {\r\n var $that = this;\r\n\r\n $scope.close = function () {\r\n $that.ngResult.message = null;\r\n };\r\n }]\r\n });\r\n \r\n}(window.angular));","(function (angular) {\r\n \"use strict\";\r\n \r\n angular.module('myApp').directive(\"pager\",\r\n function () {\r\n return {\r\n scope: {\r\n model: '=' \r\n },\r\n transclude: true,\r\n templateUrl: \"/core/components/pager/pager.tpl.html\"\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(\"toolbar\",\r\n function () {\r\n return {\r\n scope: {\r\n model: '=',\r\n //transclude: true\r\n //paging: '@?',\r\n permissions: '@?'\r\n },\r\n transclude: true,\r\n templateUrl: \"/core/components/toolbar/toolbar.tpl.html\",\r\n controller: [\"$scope\", \"$attrs\", \"$rootScope\", function ($scope, $attrs, $rootScope) {\r\n $scope.isAccess = $rootScope.hasAccess($attrs.permissions);\r\n\r\n $scope.hasAccess = function (permissions) {\r\n return $rootScope.hasAccess(permissions);\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(\"delete\", {\r\n templateUrl: \"/core/components/formButtons/delete/delete.tpl.html\",\r\n bindings: {\r\n click: '&',\r\n permissions: '@?'\r\n },\r\n controller: [\"$scope\", \"$attrs\", \"$rootScope\", function ($scope, $attrs, $rootScope) {\r\n $scope.isAccess = $rootScope.hasAccess($attrs.permissions);\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(\"save\",\r\n {\r\n templateUrl: \"/core/components/formButtons/save/save.tpl.html\",\r\n bindings: { click: '&' }\r\n });\r\n\r\n}(window.angular));\r\n","(function (angular) {\r\n \"use strict\";\r\n\r\n angular.module('myApp').component(\"saveNew\",\r\n {\r\n templateUrl: \"/core/components/formButtons/saveNew/save-new.tpl.html\",\r\n bindings: { click: '&' }\r\n });\r\n\r\n}(window.angular));\r\n","(function (angular) {\r\n \"use strict\";\r\n\r\n angular.module('myApp').component(\"saveContinue\",\r\n {\r\n templateUrl: \"/core/components/formButtons/saveContinue/save-continue.tpl.html\",\r\n bindings: {\r\n click: '&',\r\n permissions: '@?'\r\n },\r\n controller: [\"$scope\", \"$attrs\", \"$rootScope\", function ($scope, $attrs, $rootScope) {\r\n $scope.isAccess = $rootScope.hasAccess($attrs.permissions);\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/form/checkbox/checkbox.tpl.html\",\r\n transclude: true,\r\n bindings: {\r\n name: '@',\r\n label: '@?',\r\n checkboxLabel: '@?',\r\n required: '@',\r\n service: '=',\r\n secondColumnSize: '@?', \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(\"controlBase\", {\r\n templateUrl: '/core/components/form/controlBase/control-base.tpl.html',\r\n transclude: {\r\n 'note': '?controlBaseNote'\r\n },\r\n bindToController: true,\r\n bindings: {\r\n name: '@',\r\n label: '@?',\r\n required: '@',\r\n service: '=',\r\n secondColumnSize: '@?',\r\n buttonclick: '&',\r\n isbuttonshow: '@?',\r\n buttonlabel: '@?',\r\n permissions: '@?'\r\n },\r\n controller: [\"$scope\", \"$attrs\", \"$rootScope\", function ($scope, $attrs, $rootScope) {\r\n $scope.isAccess = $rootScope.hasAccess($attrs.permissions);\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(\"multiSelectCheckbox\", {\r\n templateUrl: '/core/components/form/multiSelectCheckbox/multi-select-checkbox.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 buttonclick: '&',\r\n isbuttonshow: '@?',\r\n buttonlabel: '@?',\r\n permissions: '@?'\r\n },\r\n controller: [\"$scope\", '$timeout', '$filter', function ($scope, $timeout, $filter) {\r\n var self = this;\r\n\r\n self.$onInit = function () {\r\n $timeout(function () {\r\n if (self.service.dto !== undefined && self.service.dto[self.name] !== undefined) {\r\n\r\n if (self.service.dto[self.name].length === self.data.length)\r\n self.service.dto[self.name + 'All'] = true;\r\n }\r\n },\r\n 500);\r\n };\r\n\r\n self.clicksearch = function (search) {\r\n\r\n if (self.service.dto[self.name] === undefined)\r\n self.service.dto[self.name] = [];\r\n\r\n var data = $filter('filter')(self.data, search).map(function (item) {\r\n return item.id;\r\n });\r\n\r\n var selectAll = true;\r\n for (var i = 0; i < data.length; i++) {\r\n if (self.service.dto[self.name].indexOf(data[i]) < 0) {\r\n selectAll = false;\r\n break;\r\n }\r\n }\r\n\r\n if (selectAll)\r\n self.service.dto[self.name + 'All'] = true;\r\n else\r\n self.service.dto[self.name + 'All'] = false;\r\n };\r\n\r\n self.clickCheckbox = function (search) {\r\n $timeout(function () {\r\n\r\n if (self.service.dto[self.name].length == $filter('filter')(self.data, search).length)\r\n self.service.dto[self.name + 'All'] = true;\r\n else\r\n self.service.dto[self.name + 'All'] = false;\r\n }, 50);\r\n\r\n };\r\n\r\n self.checkAll = function (search) {\r\n var data = $filter('filter')(self.data, search).map(function (item) {\r\n return item.id;\r\n });\r\n\r\n if (self.service.dto[self.name + 'All']) {\r\n self.service.dto[self.name + 'All'] = false;\r\n\r\n if (search === '')\r\n self.service.dto[self.name].splice(0, self.service.dto[self.name].length);\r\n\r\n else {\r\n for (var i = 0; i < data.length; i++) {\r\n var value = data[i];\r\n\r\n var matchIndex = self.service.dto[self.name].indexOf(value);\r\n if (matchIndex >= 0)\r\n self.service.dto[self.name].splice(matchIndex, 1);\r\n }\r\n }\r\n }\r\n else {\r\n if (self.service.dto[self.name] === undefined || search === '')\r\n self.service.dto[self.name] = [];\r\n\r\n self.service.dto[self.name + 'All'] = true;\r\n\r\n angular.forEach(data.map(function (item) {\r\n return item;\r\n }),\r\n function (value) {\r\n if (self.service.dto[self.name].indexOf(value) < 0)\r\n self.service.dto[self.name].push(value);\r\n });\r\n }\r\n };\r\n }]\r\n });\r\n\r\n}(window.angular));\r\n\r\n// special label click event\r\nfunction funCheckboxClick(ctrl) {\r\n $(ctrl).siblings('label').click();\r\n}\r\n","(function (angular) {\r\n \"use strict\";\r\n\r\n angular.module('myApp').component(\"selectBox\", {\r\n templateUrl: \"/core/components/form/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 buttonclick: '&',\r\n isbuttonshow: '@?',\r\n buttonlabel: '@?',\r\n change: '&',\r\n isdisable: '@?',\r\n permissions: '@?',\r\n ishide: '@?',\r\n humanize: '@?',\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(\"textbox\", {\r\n templateUrl: '/core/components/form/textbox/textbox.tpl.html',\r\n transclude: true,\r\n bindings: {\r\n name: '@',\r\n label: '@?',\r\n required: '@?',\r\n type: '@',\r\n maxlength: '@',\r\n disabledIf: '',\r\n nextText: '',\r\n onSelect: function (d, i) {\r\n if (d !== i.lastVal) {\r\n $(this).change();\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').directive(\"thSearchSelect\",\r\n function () {\r\n return {\r\n scope: {\r\n name: \"@\",\r\n model: '=',\r\n data: '=',\r\n label: '@'\r\n },\r\n replace: true,\r\n templateUrl: \"/core/components/list/search/thSearchSelect/th-search-select.tpl.html\"\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(\"thSearchNumber\",\r\n function () {\r\n return {\r\n scope: {\r\n name: \"@\",\r\n model: '='\r\n },\r\n replace: true,\r\n templateUrl: \"/core/components/list/search/thSearchNumber/th-search-number.tpl.html\"\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(\"thSearchStatus\",\r\n function () {\r\n return {\r\n scope: {\r\n model: '='\r\n },\r\n replace: true,\r\n templateUrl: \"/core/components/list/search/thSearchStatus/th-search-status.tpl.html\"\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(\"thSearchYesNo\",\r\n function () {\r\n return {\r\n scope: {\r\n name: \"@\",\r\n model: '=',\r\n label: '@'\r\n },\r\n replace: true,\r\n templateUrl: \"/core/components/list/search/thSearchYesNo/th-search-yes-no.tpl.html\"\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(\"buttonAdd\",\r\n {\r\n templateUrl: \"/core/components/toolbar/buttons/buttonAdd/button-add.tpl.html\",\r\n transclude: true,\r\n bindings: {\r\n state: '@',\r\n permissions: '@?'\r\n },\r\n controller: [\"$scope\", \"$attrs\", \"$rootScope\", function ($scope, $attrs, $rootScope) {\r\n $scope.isAccess = $rootScope.hasAccess($attrs.permissions);\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(\"buttonBack\",\r\n {\r\n templateUrl: \"/core/components/toolbar/buttons/buttonBack/button-back.tpl.html\",\r\n transclude: true,\r\n bindings: {\r\n state: '@',\r\n label: '@'\r\n }\r\n });\r\n\r\n}(window.angular));\r\n"]}