/**
 * @author v.lugovsky
 * created on 16.12.2015
 */
function isObject(e){return e===Object(e)}function isArray(e){return Array.isArray(e)}function isFile(e){return e instanceof File}function objectToFormData(e,o,t){return o=o||new FormData,Object.keys(e).forEach(function(a){var i=t?t+"["+a+"]":a;!isObject(e[a])||isArray(e[a])||isFile(e[a])?isArray(e[a])?e[a].forEach(function(e){var t=i+"[]";isObject(e)&&!isFile(e)?objectToFormData(e,o,t):o.append(t,e)}):o.append(i,e[a]):objectToFormData(e[a],o,i)}),o}!function(){"use strict";function e(e,o){e.otherwise("/dashboard")}e.$inject=["$urlRouterProvider","baSidebarServiceProvider"],angular.module("BlurAdmin.pages",["ui.router","BlurAdmin.pages.dashboard","BlurAdmin.pages.users","BlurAdmin.pages.categories","BlurAdmin.pages.login","BlurAdmin.pages.roles","BlurAdmin.pages.contactmanagements","BlurAdmin.pages.tours","BlurAdmin.pages.settings","BlurAdmin.pages.notifications","BlurAdmin.pages.forgotpassword","BlurAdmin.pages.useravailabilities","BlurAdmin.pages.ApiManagements"]).config(e)}(),function(){"use strict";angular.module("BlurAdmin.theme",["toastr","chart.js","angular-chartist","angular.morris-chart","textAngular","BlurAdmin.theme.components","BlurAdmin.theme.inputs"])}(),function(){"use strict";function e(e){e.state("ApiManagements",{url:"/ApiManagements",template:'<ui-view  autoscroll="true" autoscroll-body-top></ui-view>',controller:"ApiManagementsCtrl",abstract:!1,title:"API Managements",sidebarMeta:{icon:"fa fa-cog",order:497},data:{mainmodule:"api_managements",childmodule:"view"},resolve:{havePermission:checkUserPermission("api_managements","view")}}).state("ApiManagements.list",{url:"/list",templateUrl:"app/pages/ApiManagements/view.html",title:"API Managements",controller:"ApiManagementsCtrl",sidebarMeta:{order:1},resolve:{havePermission:checkUserPermission("api_managements","view")}}).state("ApiManagements.add",{url:"/add",templateUrl:"app/pages/ApiManagements/add.html",title:"Add API",controller:"AddApiManagementsCtrl",sidebarMeta:{order:2},resolve:{havePermission:checkUserPermission("api_managements","create")}}).state("ApiManagements.edit",{url:"/edit/:id",templateUrl:"app/pages/ApiManagements/add.html",title:"Edit API",controller:"EditApiManagementsCtrl",resolve:{havePermission:checkUserPermission("api_managements","update")}})}e.$inject=["$stateProvider"],angular.module("BlurAdmin.pages.ApiManagements",[]).config(e)}(),function(){"use strict";function e(e){e.state("categories",{url:"/categories",template:'<ui-view autoscroll="true" autoscroll-body-top></ui-view>',abstract:!0,title:"Manage Values",sidebarMeta:{icon:"ion-android-laptop",order:100},data:{mainmodule:"categories",childmodule:"view"}}).state("mealsvalue",{url:"/categories",template:'<ui-view autoscroll="true" autoscroll-body-top></ui-view>',abstract:!0,title:"Manage Meals",sidebarMeta:{icon:"ion-android-laptop",order:99},data:{mainmodule:"categories",childmodule:"view"}})}e.$inject=["$stateProvider"],angular.module("BlurAdmin.pages.categories",["BlurAdmin.pages.categories.meals","BlurAdmin.pages.categories.transports","BlurAdmin.pages.categories.visitors","BlurAdmin.pages.categories.organizations","BlurAdmin.pages.categories.tourtypes","BlurAdmin.pages.categories.locations","BlurAdmin.pages.categories.mealservicetypes","BlurAdmin.pages.categories.mealservicelocations","BlurAdmin.pages.categories.momentos","BlurAdmin.pages.categories.emailtemplates","BlurAdmin.pages.categories.affiliations"]).config(e)}(),function(){"use strict";function e(e,o){e.state("contactmanagements",{url:"/contactmanagements",template:'<ui-view  autoscroll="true" autoscroll-body-top></ui-view>',controller:"ListContactmanagementsCtrl",abstract:!1,title:"Contacts",sidebarMeta:{icon:"ion-person-stalker",order:3},data:{mainmodule:"contactmanagements",childmodule:"view"}}).state("contactmanagements.list",{url:"/list",templateUrl:"app/pages/contactmanagements/view.html",title:"Contacts",controller:"ListContactmanagementsCtrl",sidebarMeta:{order:1},data:{mainmodule:"contactmanagements",childmodule:"view"},resolve:{havePermission:checkUserPermission("contactmanagements","view")}}).state("contactmanagements.add",{url:"/add",templateUrl:"app/pages/contactmanagements/add.html",title:"Add Contact",controller:"AddContactmanagementsCtrl",sidebarMeta:{order:2},data:{mainmodule:"contactmanagements",childmodule:"create"},resolve:{havePermission:checkUserPermission("contactmanagements","create")}}).state("contactmanagements.edit",{url:"/edit/:id",templateUrl:"app/pages/contactmanagements/add.html",title:"Contacts",controller:"EditContactmanagementsCtrl",data:{mainmodule:"contactmanagements",childmodule:"update"},resolve:{havePermission:checkUserPermission("contactmanagements","update")}}).state("contactmanagements.viewdetails",{url:"/view/:id",templateUrl:"app/pages/contactmanagements/viewdetails.html",title:"Contacts",controller:"ViewContactmanagementsCtrl",data:{mainmodule:"contactmanagements",childmodule:"view"},resolve:{havePermission:checkUserPermission("contactmanagements","view")}}),o.when("/users","/users")}e.$inject=["$stateProvider","$urlRouterProvider"],angular.module("BlurAdmin.pages.contactmanagements",["ui.select","ngSanitize"]).config(e)}(),function(){"use strict";function e(e){e.state("dashboard",{url:"/dashboard",templateUrl:"app/pages/dashboard/dashboard.html",title:"Dashboard",controller:"DashboardCtrl",sidebarMeta:{icon:"ion-android-home",order:0},resolve:{havePermission:checkUserPermission("dashboard","view")}})}e.$inject=["$stateProvider"],angular.module("BlurAdmin.pages.dashboard",[]).config(e)}(),function(){"use strict";function e(e,o){e.state("defaulttasks",{url:"/defaulttasks",template:'<ui-view  autoscroll="true" autoscroll-body-top></ui-view>',controller:"ListDefaulttasksCtrl",abstract:!1,title:"Default Tour Tasks",sidebarMeta:{icon:"ion-person-stalker",order:10}}).state("defaulttasks.list",{url:"/list",templateUrl:"app/pages/defaulttasks/view.html",title:"Default Tour Tasks",controller:"ListDefaulttasksCtrl",sidebarMeta:{order:500},resolve:{havePermission:checkUserPermission("defaulttasks","view")}}).state("defaulttasks.add",{url:"/add",templateUrl:"app/pages/defaulttasks/add.html",title:"Default Tour Tasks",controller:"AddDefaulttasksCtrl",resolve:{havePermission:checkUserPermission("defaulttasks","create")}}).state("defaulttasks.edit",{url:"/edit/:id",templateUrl:"app/pages/defaulttasks/add.html",title:"Default Tour Tasks",controller:"EditDefaulttasksCtrl",resolve:{havePermission:checkUserPermission("defaulttasks","update")}}),o.when("/defaulttasks","/defaulttasks")}e.$inject=["$stateProvider","$urlRouterProvider"],angular.module("BlurAdmin.pages.defaulttasks",["ui.select","ngSanitize"]).config(e)}(),function(){"use strict";function e(e){e.state("forgotpassword",{url:"/forgot-password",title:"Forgot Password",templateUrl:"app/pages/forgotpassword/view.html",controller:"ForgotPasswordCtrl"}).state({name:"reset-password",url:"/password/reset/:token",templateUrl:"app/pages/forgotpassword/reset.html",controller:"ResetPasswordCtrl"})}e.$inject=["$stateProvider"],angular.module("BlurAdmin.pages.forgotpassword",[]).config(e)}(),function(){"use strict";function e(e){e.state("login",{url:"/login",title:"Login",templateUrl:"app/pages/login/login.html",controller:"LoginPageCtrl"})}e.$inject=["$stateProvider"],angular.module("BlurAdmin.pages.login",[]).config(e)}(),function(){"use strict";function e(e){e.state("notifications",{url:"/notifications",templateUrl:"app/pages/notifications/view.html",controller:"NotificationsCtrl",title:"Notifications",sidebarMeta:{icon:"fa fa-bell",order:498},data:{mainmodule:"notifications",childmodule:"view"},resolve:{havePermission:checkUserPermission("notifications","view")}})}e.$inject=["$stateProvider"],angular.module("BlurAdmin.pages.notifications",[]).config(e)}(),function(){"use strict";function e(e){e.state("profile",{url:"/profile",title:"Profile",templateUrl:"app/pages/profile/profile.html",controller:"ProfilePageCtrl"})}e.$inject=["$stateProvider"],angular.module("BlurAdmin.pages.profile",[]).config(e)}(),function(){"use strict";function e(e,o){e.state("roles",{url:"/roles",template:'<ui-view  autoscroll="true" autoscroll-body-top></ui-view>',controller:"RolesCtrl",title:"Roles",abstract:!1,sidebarMeta:{icon:"fa fa-user-secret",order:1},data:{mainmodule:"roles",childmodule:"view"},resolve:{havePermission:checkUserPermission("roles","view")}}).state("roles.list",{url:"/list",templateUrl:"app/pages/roles/view.html",title:"Roles",controller:"RolesCtrl",sidebarMeta:{order:1},resolve:{havePermission:checkUserPermission("roles","view")}}).state("roles.add",{url:"/add",templateUrl:"app/pages/roles/add.html",title:"Add Role",controller:"AddRolesCtrl",sidebarMeta:{order:2},resolve:{havePermission:checkUserPermission("roles","create")}}).state("roles.edit",{url:"/edit/:id",templateUrl:"app/pages/roles/add.html",title:"Roles",controller:"EditRolesCtrl",resolve:{havePermission:checkUserPermission("roles","update")}}),o.when("/roles","/roles/add/id")}e.$inject=["$stateProvider","$urlRouterProvider"],angular.module("BlurAdmin.pages.roles",[]).config(e)}(),function(){"use strict";function e(e){e.state("settings",{url:"/settings",templateUrl:"app/pages/settings/view.html",controller:"SettingsCtrl",title:"Settings",sidebarMeta:{icon:"fa fa-cog",order:500},data:{mainmodule:"global_settings",childmodule:"view"},resolve:{havePermission:checkUserPermission("global_settings","view")}})}e.$inject=["$stateProvider"],angular.module("BlurAdmin.pages.settings",[]).config(e)}(),function(){"use strict";function e(e,o){e.state("tours",{url:"/tours",template:'<ui-view  autoscroll="true" autoscroll-body-top></ui-view>',controller:"ListToursCtrl",abstract:!1,title:"Tours",sidebarMeta:{icon:"fa fa-bus",order:4},data:{mainmodule:"tours",childmodule:"view"}}).state("tours.list",{url:"/list?id=",templateUrl:"app/pages/tours/view.html",title:"Tours",controller:"ListToursCtrl",sidebarMeta:{order:0},data:{mainmodule:"tours",childmodule:"view"},resolve:{havePermission:checkUserPermission("tours","view")}}).state("tours.add",{url:"/add?date=",templateUrl:"app/pages/tours/add.html",title:"Add Tour",controller:"AddToursCtrl",sidebarMeta:{order:1},data:{mainmodule:"tours",childmodule:"create"},resolve:{havePermission:checkUserPermission("tours","create")}}).state("tours.edit",{url:"/edit/:id",templateUrl:"app/pages/tours/add.html",title:"Tours",controller:"EditToursCtrl",data:{mainmodule:"tours",childmodule:"update"},resolve:{havePermission:checkUserPermission("tours","update")}}).state("tours.viewdetails",{url:"/view/:id",templateUrl:"app/pages/tours/viewdetails.html",title:"Tour",controller:"ViewToursCtrl",data:{mainmodule:"tours",childmodule:"view"},resolve:{havePermission:checkUserPermission("tours","view")}}).state("tours.acknowledgedetails",{url:"/acknowledge/:id",templateUrl:"app/pages/tours/acknowledge.html",title:"Tours",controller:"AcknowledgeCtrl"}).state("tours.feedback",{url:"/feedback/:id",templateUrl:"app/pages/tours/feedback.html",title:"Tours",controller:"FeedbackCtrl"}).state("tours.approvetask",{url:"/task/approve/:id",templateUrl:"app/pages/tours/approve-task.html",title:"Tours",controller:"ApproveTaskCtrl"}),o.when("/tours","/tours")}e.$inject=["$stateProvider","$urlRouterProvider"],angular.module("BlurAdmin.pages.tours",["ui.select","ngSanitize"]).config(e)}(),function(){"use strict";function e(e){e.state("availability",{url:"/availability",templateUrl:"app/pages/useravailabilities/view.html",controller:"AvailabilitiesCtrl",title:"Availabilities",sidebarMeta:{icon:"fa fa-cog",order:499},data:{mainmodule:"availabilities",childmodule:"view"},resolve:{havePermission:checkUserPermission("availabilities","view")}})}e.$inject=["$stateProvider"],angular.module("BlurAdmin.pages.useravailabilities",[]).config(e)}(),function(){"use strict";function e(e,o){e.state("users",{url:"/users",template:'<ui-view  autoscroll="true" autoscroll-body-top></ui-view>',controller:"UsersCtrl",abstract:!1,title:"Users",data:{mainmodule:"users",childmodule:"view"},sidebarMeta:{icon:"ion-person-stalker",order:2}}).state("users.list",{url:"/list",templateUrl:"app/pages/users/view.html",title:"Users",controller:"UsersCtrl",sidebarMeta:{order:1},resolve:{havePermission:checkUserPermission("users","view")}}).state("users.add",{url:"/add",templateUrl:"app/pages/users/add.html",title:"Add User",controller:"AddUsersCtrl",sidebarMeta:{order:2},resolve:{havePermission:checkUserPermission("users","create")}}).state("users.edit",{url:"/edit/:id",templateUrl:"app/pages/users/add.html",title:"User",controller:"EditUsersCtrl",resolve:{havePermission:checkUserPermission("users","update")}}).state("users.viewdetails",{url:"/view/:id",templateUrl:"app/pages/users/viewdetails.html",title:"User",controller:"ViewUsersCtrl",resolve:{havePermission:checkUserPermission("users","view")}}).state("users.edit-profile",{url:"/editprofile",templateUrl:"app/pages/users/editprofile.html",title:"Profile",controller:"editProfileCtrl",data:{mainmodule:"users",childmodule:"editprofile"},resolve:{havePermission:checkUserPermission("users","editprofile")}}),o.when("/users","/users")}e.$inject=["$stateProvider","$urlRouterProvider"],angular.module("BlurAdmin.pages.users",["ui.select","ngSanitize"]).config(e)}(),function(){"use strict";angular.module("BlurAdmin.theme.components",[])}(),function(){"use strict";angular.module("BlurAdmin.theme.inputs",[])}(),function(){"use strict";function e(e,o){e.state("categories.affiliations",{url:"/affiliations",template:'<ui-view  autoscroll="true" autoscroll-body-top></ui-view>',abstract:!0,controller:"ListAffiliationsCtrl",title:"Affiliations",sidebarMeta:{order:8},data:{mainmodule:"affiliations",childmodule:"view"}}).state("categories.affiliations.list",{url:"/list",templateUrl:"app/pages/categories/affiliations/view.html",title:"Affiliations",controller:"ListAffiliationsCtrl",sidebarMeta:{order:500},resolve:{havePermission:checkUserPermission("affiliations","view")}}).state("categories.affiliations.add",{url:"/add",templateUrl:"app/pages/categories/affiliations/add.html",title:"Affiliations",controller:"AddAffiliationsCtrl",sidebarMeta:{order:500},resolve:{havePermission:checkUserPermission("affiliations","create")}}).state("categories.affiliations.edit",{url:"/edit/:id",templateUrl:"app/pages/categories/affiliations/add.html",title:"Affiliations",controller:"EditAffiliationsCtrl",sidebarMeta:{order:500},resolve:{havePermission:checkUserPermission("affiliations","update")}}),o.when("/categories/affiliations","/categories/affiliations/list")}e.$inject=["$stateProvider","$urlRouterProvider"],angular.module("BlurAdmin.pages.categories.affiliations",[]).config(e)}(),function(){"use strict";function e(e,o){e.state("categories.emailtemplates",{url:"/emailtemplates",template:'<ui-view  autoscroll="true" autoscroll-body-top></ui-view>',abstract:!0,controller:"ListEmailTemplatesCtrl",title:"Email Templates",sidebarMeta:{order:7},data:{mainmodule:"emailtemplates",childmodule:"view"}}).state("categories.emailtemplates.list",{url:"/list",templateUrl:"app/pages/categories/emailtemplates/view.html",title:"Email Templates",controller:"ListEmailTemplatesCtrl",sidebarMeta:{order:500},resolve:{havePermission:checkUserPermission("emailtemplates","view")}}).state("categories.emailtemplates.add",{url:"/add",templateUrl:"app/pages/categories/emailtemplates/add.html",title:"Email Templates",controller:"AddEmailTemplatesCtrl",sidebarMeta:{order:500},resolve:{havePermission:checkUserPermission("emailtemplates","create")}}).state("categories.emailtemplates.edit",{url:"/edit/:id",templateUrl:"app/pages/categories/emailtemplates/add.html",title:"Email Templates",controller:"EditEmailTemplatesCtrl",sidebarMeta:{order:500},resolve:{havePermission:checkUserPermission("emailtemplates","update")}}),o.when("/categories/emailtemplates","/categories/emailtemplates/list")}e.$inject=["$stateProvider","$urlRouterProvider"],angular.module("BlurAdmin.pages.categories.emailtemplates",[]).config(e)}(),function(){"use strict";function e(e,o){e.state("categories.locations",{url:"/locations",template:'<ui-view  autoscroll="true" autoscroll-body-top></ui-view>',abstract:!0,controller:"ListLocationsCtrl",title:"Info Session",sidebarMeta:{order:4},data:{mainmodule:"locations",childmodule:"view"}}).state("categories.locations.list",{url:"/list",templateUrl:"app/pages/categories/locations/view.html",title:"Info Session",controller:"ListLocationsCtrl",sidebarMeta:{order:500},resolve:{havePermission:checkUserPermission("locations","view")}}).state("categories.locations.add",{url:"/add",templateUrl:"app/pages/categories/locations/add.html",title:"Info Session",controller:"AddLocationsCtrl",sidebarMeta:{order:500},resolve:{havePermission:checkUserPermission("locations","create")}}).state("categories.locations.edit",{url:"/edit/:id",templateUrl:"app/pages/categories/locations/add.html",title:"Info Session",controller:"EditLocationsCtrl",sidebarMeta:{order:500},resolve:{havePermission:checkUserPermission("locations","update")}}),o.when("/categories/locations","/categories/locations/list")}e.$inject=["$stateProvider","$urlRouterProvider"],angular.module("BlurAdmin.pages.categories.locations",[]).config(e)}(),function(){"use strict";function e(e,o){e.state("mealsvalue.mealcategories",{url:"/mealcategories",template:'<ui-view  autoscroll="true" autoscroll-body-top></ui-view>',abstract:!0,controller:"ListMealcategoriesCtrl",title:"Categories",sidebarMeta:{order:9},data:{mainmodule:"mealcategories",childmodule:"view"}}).state("mealsvalue.mealcategories.list",{url:"/list",templateUrl:"app/pages/categories/mealcategories/view.html",title:"Categories",controller:"ListMealcategoriesCtrl",sidebarMeta:{order:1},resolve:{havePermission:checkUserPermission("mealcategories","view")}}).state("mealsvalue.mealcategories.add",{url:"/add",templateUrl:"app/pages/categories/mealcategories/add.html",title:"Category",controller:"AddMealcategoriesCtrl",sidebarMeta:{order:2},resolve:{havePermission:checkUserPermission("mealcategories","create")}}).state("mealsvalue.mealcategories.edit",{url:"/edit/:id",templateUrl:"app/pages/categories/mealcategories/add.html",title:"Category",controller:"EditMealcategoriesCtrl",sidebarMeta:{order:3},resolve:{havePermission:checkUserPermission("mealcategories","update")}}),o.when("/categories/mealcategories","/categories/mealcategories/list")}e.$inject=["$stateProvider","$urlRouterProvider"],angular.module("BlurAdmin.pages.categories.mealcategories",[]).config(e)}(),function(){"use strict";function e(e,o){e.state("mealsvalue.meals",{url:"/meals",template:'<ui-view  autoscroll="true" autoscroll-body-top></ui-view>',abstract:!0,controller:"ListMealsCtrl",title:"Meals",sidebarMeta:{order:6},data:{mainmodule:"meals",childmodule:"view"}}).state("mealsvalue.meals.list",{url:"/list",templateUrl:"app/pages/categories/meals/view.html",title:"Meals",controller:"ListMealsCtrl",sidebarMeta:{order:500},resolve:{havePermission:checkUserPermission("meals","view")}}).state("mealsvalue.meals.add",{url:"/add",templateUrl:"app/pages/categories/meals/add.html",title:"Meals",controller:"AddMealsCtrl",sidebarMeta:{order:500},resolve:{havePermission:checkUserPermission("meals","create")}}).state("mealsvalue.meals.edit",{url:"/edit/:id",templateUrl:"app/pages/categories/meals/add.html",title:"Meals",controller:"EditMealsCtrl",sidebarMeta:{order:500},resolve:{havePermission:checkUserPermission("meals","update")}}),o.when("/categories/meals","/categories/meals/list")}e.$inject=["$stateProvider","$urlRouterProvider"],angular.module("BlurAdmin.pages.categories.meals",[]).config(e)}(),function(){"use strict";function e(e,o){e.state("mealsvalue.mealservicelocations",{url:"/mealservicelocations",template:'<ui-view  autoscroll="true" autoscroll-body-top></ui-view>',abstract:!0,controller:"ListMealservicelocationsCtrl",title:"Service Locations",sidebarMeta:{order:7},data:{mainmodule:"mealservicelocations",childmodule:"view"}}).state("mealsvalue.mealservicelocations.list",{url:"/list",templateUrl:"app/pages/categories/mealservicelocations/view.html",title:"Service Locations",controller:"ListMealservicelocationsCtrl",sidebarMeta:{order:1},resolve:{havePermission:checkUserPermission("mealservicelocations","view")}}).state("mealsvalue.mealservicelocations.add",{url:"/add",templateUrl:"app/pages/categories/mealservicelocations/add.html",title:"Service Location",controller:"AddMealservicelocationsCtrl",sidebarMeta:{order:2},resolve:{havePermission:checkUserPermission("mealservicelocations","create")}}).state("mealsvalue.mealservicelocations.edit",{url:"/edit/:id",templateUrl:"app/pages/categories/mealservicelocations/add.html",title:"Service Location",controller:"EditMealservicelocationsCtrl",sidebarMeta:{order:3},resolve:{havePermission:checkUserPermission("mealservicelocations","update")}}),o.when("/categories/mealservicelocations","/categories/mealservicelocations/list")}e.$inject=["$stateProvider","$urlRouterProvider"],angular.module("BlurAdmin.pages.categories.mealservicelocations",[]).config(e)}(),function(){"use strict";function e(e,o){e.state("mealsvalue.mealservicetypes",{url:"/mealservicetypes",template:'<ui-view  autoscroll="true" autoscroll-body-top></ui-view>',abstract:!0,controller:"ListMealservicetypesCtrl",title:"Service Types",sidebarMeta:{order:8},data:{mainmodule:"mealservicetypes",childmodule:"view"}}).state("mealsvalue.mealservicetypes.list",{url:"/list",templateUrl:"app/pages/categories/mealservicetypes/view.html",title:"Service Types",controller:"ListMealservicetypesCtrl",sidebarMeta:{order:1},resolve:{havePermission:checkUserPermission("mealservicetypes","view")}}).state("mealsvalue.mealservicetypes.add",{url:"/add",templateUrl:"app/pages/categories/mealservicetypes/add.html",title:"Service Type",controller:"AddMealservicetypesCtrl",sidebarMeta:{order:2},resolve:{havePermission:checkUserPermission("mealservicetypes","create")}}).state("mealsvalue.mealservicetypes.edit",{url:"/edit/:id",templateUrl:"app/pages/categories/mealservicetypes/add.html",title:"Service Type",controller:"EditMealservicetypesCtrl",sidebarMeta:{order:3},resolve:{havePermission:checkUserPermission("mealservicetypes","update")}}),o.when("/categories/mealservicetypes","/categories/mealservicetypes/list")}e.$inject=["$stateProvider","$urlRouterProvider"],angular.module("BlurAdmin.pages.categories.mealservicetypes",[]).config(e)}(),function(){"use strict";function e(e,o){e.state("categories.momentos",{url:"/momentos",template:'<ui-view  autoscroll="true" autoscroll-body-top></ui-view>',abstract:!0,controller:"ListMomentosCtrl",title:"Momentos",sidebarMeta:{order:6},data:{mainmodule:"momentos",childmodule:"view"}}).state("categories.momentos.list",{url:"/list",templateUrl:"app/pages/categories/momentos/view.html",title:"Momentos",controller:"ListMomentosCtrl",sidebarMeta:{order:500},resolve:{havePermission:checkUserPermission("momentos","view")}}).state("categories.momentos.add",{url:"/add",templateUrl:"app/pages/categories/momentos/add.html",title:"Momento",controller:"AddMomentosCtrl",sidebarMeta:{order:500},resolve:{havePermission:checkUserPermission("momentos","create")}}).state("categories.momentos.edit",{url:"/edit/:id",templateUrl:"app/pages/categories/momentos/add.html",title:"Momento",controller:"EditMomentosCtrl",sidebarMeta:{order:500},resolve:{havePermission:checkUserPermission("momentos","update")}}),o.when("/categories/momentos","/categories/momentos/list")}e.$inject=["$stateProvider","$urlRouterProvider"],angular.module("BlurAdmin.pages.categories.momentos",[]).config(e)}(),function(){"use strict";function e(e,o){e.state("categories.organizations",{url:"/organizations",template:'<ui-view  autoscroll="true" autoscroll-body-top></ui-view>',abstract:!0,controller:"ListOrganizationsCtrl",title:"Organization Types",sidebarMeta:{order:2},data:{mainmodule:"organizations",childmodule:"view"}}).state("categories.organizations.list",{url:"/list",templateUrl:"app/pages/categories/organizations/view.html",title:"Organization Types",controller:"ListOrganizationsCtrl",sidebarMeta:{order:500},resolve:{havePermission:checkUserPermission("organizations","view")}}).state("categories.organizations.add",{url:"/add",templateUrl:"app/pages/categories/organizations/add.html",title:"Organization Types",controller:"AddOrganizationsCtrl",sidebarMeta:{order:500},resolve:{havePermission:checkUserPermission("organizations","create")}}).state("categories.organizations.edit",{url:"/edit/:id",templateUrl:"app/pages/categories/organizations/add.html",title:"Organization Types",controller:"EditOrganizationsCtrl",sidebarMeta:{order:500},resolve:{havePermission:checkUserPermission("organizations","update")}}),o.when("/categories/organizations","/categories/organizations/list")}e.$inject=["$stateProvider","$urlRouterProvider"],angular.module("BlurAdmin.pages.categories.organizations",[]).config(e)}(),function(){"use strict";function e(e,o){e.state("categories.tourtypes",{url:"/tourtypes",template:'<ui-view  autoscroll="true" autoscroll-body-top></ui-view>',abstract:!0,controller:"ListTourtypesCtrl",title:"Tour Types",sidebarMeta:{order:3},data:{mainmodule:"tourtypes",childmodule:"view"}}).state("categories.tourtypes.list",{url:"/list",templateUrl:"app/pages/categories/tourtypes/view.html",title:"Tour Types",controller:"ListTourtypesCtrl",sidebarMeta:{order:500},resolve:{havePermission:checkUserPermission("tourtypes","view")}}).state("categories.tourtypes.add",{url:"/add",templateUrl:"app/pages/categories/tourtypes/add.html",title:"Tour Types",controller:"AddTourtypesCtrl",sidebarMeta:{order:500},resolve:{havePermission:checkUserPermission("tourtypes","create")}}).state("categories.tourtypes.edit",{url:"/edit/:id",templateUrl:"app/pages/categories/tourtypes/add.html",title:"Tour Types",controller:"EditTourtypesCtrl",sidebarMeta:{order:500},resolve:{havePermission:checkUserPermission("tourtypes","update")}}).state("categories.tourtypes.view",{url:"/view/:id",templateUrl:"app/pages/categories/tourtypes/taskdetails.html",title:"Default Tour Task",controller:"ViewTourtypesCtrl",sidebarMeta:{order:500},resolve:{havePermission:checkUserPermission("tourtypes","update")}}),o.when("/categories/tourtypes","/categories/tourtypes/list")}e.$inject=["$stateProvider","$urlRouterProvider"],angular.module("BlurAdmin.pages.categories.tourtypes",[]).config(e)}(),function(){"use strict";function e(e,o){e.state("categories.transports",{url:"/transports",template:'<ui-view  autoscroll="true" autoscroll-body-top></ui-view>',abstract:!0,controller:"ListTransportsCtrl",title:"Transports",sidebarMeta:{order:1},data:{mainmodule:"transports",childmodule:"view"}}).state("categories.transports.list",{url:"/list",templateUrl:"app/pages/categories/transports/view.html",title:"Transports",controller:"ListTransportsCtrl",sidebarMeta:{order:500},resolve:{havePermission:checkUserPermission("transports","view")}}).state("categories.transports.add",{url:"/add",templateUrl:"app/pages/categories/transports/add.html",title:"Transports",controller:"AddTransportsCtrl",sidebarMeta:{order:500},resolve:{havePermission:checkUserPermission("transports","create")}}).state("categories.transports.edit",{url:"/edit/:id",templateUrl:"app/pages/categories/transports/add.html",title:"Transports",controller:"EditTransportsCtrl",sidebarMeta:{order:500},resolve:{havePermission:checkUserPermission("transports","update")}}),o.when("/categories/transports","/categories/transports/list")}e.$inject=["$stateProvider","$urlRouterProvider"],angular.module("BlurAdmin.pages.categories.transports",[]).config(e)}(),function(){"use strict";function e(e,o){e.state("categories.visitors",{url:"/visitors",template:'<ui-view  autoscroll="true" autoscroll-body-top></ui-view>',abstract:!0,controller:"ListVisitorsCtrl",title:"Visitor Types",sidebarMeta:{order:5},data:{mainmodule:"visitors",childmodule:"view"}}).state("categories.visitors.list",{url:"/list",templateUrl:"app/pages/categories/visitors/view.html",title:"Visitor Types",controller:"ListVisitorsCtrl",sidebarMeta:{order:500},resolve:{havePermission:checkUserPermission("visitors","view")}}).state("categories.visitors.add",{url:"/add",templateUrl:"app/pages/categories/visitors/add.html",title:"Visitor Types",controller:"AddVisitorsCtrl",sidebarMeta:{order:500},resolve:{havePermission:checkUserPermission("visitors","create")}}).state("categories.visitors.edit",{url:"/edit/:id",templateUrl:"app/pages/categories/visitors/add.html",title:"Visitor Types",controller:"EditVisitorsCtrl",sidebarMeta:{order:500},resolve:{havePermission:checkUserPermission("visitors","update")}}),o.when("/categories/visitors","/categories/visitors/list")}e.$inject=["$stateProvider","$urlRouterProvider"],angular.module("BlurAdmin.pages.categories.visitors",[]).config(e)}();var App=angular.module("BlurAdmin",["ngAnimate","ui.bootstrap","ui.utils","ui.sortable","ui.router","ngRoute","ngTouch","toastr","smart-table","xeditable","ui.slimscroll","ngJsTree","angular-progress-button-styles","datatables","datatables.light-columnfilter","validation","validation.rule","ui-notification","ngCookies","ivh.treeview","ngDialog","moment-picker","angularMoment","ngFileUpload","angucomplete-alt","localytics.directives","cc.autorefresh","jkAngularRatingStars","BlurAdmin.theme","BlurAdmin.pages"]).filter("fromNow",function(){return function(e){return moment(e).fromNow()}});route_url=document.location.hostname,apiRoutUrl="https://"+route_url+"/";var logoURL=apiRoutUrl+"public/assets/img/newlogo.png";App.value("base_url",route_url+"/");var config={};config.profile_url=apiRoutUrl+"upload/profile/",config.api_url=apiRoutUrl+"index.php/api/",App.constant("$config",config);var checkLogin=function(){return["$rootScope","$q","$cookies","$state","AuthenticationFactory",function(e,o,t,a,i){var n=o.defer();return setTimeout(function(){var o=t.get("token");o?"undefined"==typeof e.auth_user?i.checkLogin().success(function(o){e.auth_user=o,n.reject({goto:"root"})}):n.reject({goto:"root"}):n.resolve()},100),n.promise}]},checkUserPermission=function(e,o){return["$rootScope","$q","$cookies","$state","AuthenticationFactory","Notification",function(t,a,i,n,r,s){var l=a.defer();return setTimeout(function(){var a=i.get("token");if(a)if(Object.keys(t.permissions||{}).length){var c=t.havePermission(e,o);c?l.resolve():(l.reject(),s.error(t.nothavepermission))}else r.checkPermission(o+"."+e).success(function(e){t.permissions=e.permissions,t.role=e.role,t.nothavepermission=e.message,e.has_permission?l.resolve():(s.error(e.message),n.go("dashboard"),l.reject())}).error(function(e){s.error(e.error),l.reject(),t.logout()});else l.reject(),i.remove("authUser"),i.remove("token"),n.go("login")},100),l.promise}]};App.config(["$stateProvider","$urlRouterProvider","$httpProvider","ivhTreeviewOptionsProvider","$validationProvider","$locationProvider","chosenProvider","$sceDelegateProvider",function(e,o,t,a,i,n,r,s){t.defaults.useXDomain=!0,delete t.defaults.headers.common["X-Requested-With"],t.defaults.headers.common["Content-Type"]="application/json",t.defaults.withCredentials=!1,t.interceptors.push("authInterceptor"),s.resourceUrlWhitelist(["self",/^http?:\/\/(localhost:3000\.)?/]),a.set({idAttribute:"value",labelAttribute:"description",childrenAttribute:"childern",selectedAttribute:"selected",useCheckboxes:!0}),i.setErrorHTML(function(e){return"<label style='color:red;' class=\"colorred control-label has-error\">"+e+"</label>"}),i.showSuccessMessage=!1,r.setOption({scroll_to_highlighted:!1})}]),App.run(["editableOptions",function(e){e.theme="bs3",e.submitButtonTitle="Submit",e.submitButtonAriaLabel="Submit",e.cancelButtonTitle="Cancel",e.cancelButtonAriaLabel="Cancel",e.clearButtonTitle="Clear",e.clearButtonAriaLabel="Clear"}]),App.controller("rootCtrl",["$rootScope","$scope","$http","$state","$cookies","AuthenticationFactory","Notification","$config","$location","$timeout","$injector","$sce","$window","NotificationsFactory",function(e,o,t,a,i,n,r,s,l,c,d,u,m,p){
e.state=a,e.logoImage="assets/img/newlogo.png",e.notification_msg_string_limit=30,e.$on("$stateChangeSuccess",function(o,t,n,r,l){$("html, body").animate({scrollTop:0},700),e.curState=t,"login"!=e.state.current.name&&i.get("authUser")&&(e.auth_user=JSON.parse(i.get("authUser")),e.auth_user.mobile||a.go("users.edit-profile"),e.auth_user.image?e.profilePicture=s.profile_url+e.auth_user.id+"/"+e.auth_user.image:e.profilePicture=s.profile_url+"/noImage.png")}),e.$on("$stateChangeError",function(e,o,t,i,n,r){r&&r.goto&&a.go(r.goto,r.params||{})}),e.permissions={},o.toTrustedHTML1=function(e){return u.trustAsHtml(e)},e.havePermission=function(o,t){var a=Object.keys(e.permissions||{}).indexOf(o)!==-1&&e.permissions[o][t];return a},e.hasRole=function(o){return Object.values(e.role||{}).indexOf(o)!==-1},e.makeid=function(e){for(var o="",t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz_0123456789!@#$",a=0;a<e;a++)o+=t.charAt(Math.floor(Math.random()*t.length));return o};var g=d.get("$validation");o.checkManualValidation=function(e,o){g.validate(e[o])},e.appName="Tour Management",e.logout=function(){var e={token:i.get("token")};n.logout(e).success(function(e){i.remove("token"),i.remove("authUser"),r.success(e.message),a.go("login")}).error(function(e){i.remove("token"),i.remove("authUser"),e.error&&r.success(e.error),a.go("login")})},o.helptextData="",o.showModal=!1,o.buttonClicked="",o.toggleModal=function(t){for(var a=0;a<o.helpText.length;a++)e.state.current.name==o.helpText[a].route_name&&(o.helptextData=o.helpText[a].route_name+" - "+u.trustAsHtml(o.helpText[a].help_text));o.buttonClicked=t,o.showModal=!o.showModal},o.goBack=function(){m.history.back()},e.initialise=function(){o.refreshOpts={interval:1e4,paused:!1}},o.notification_old_count=0,o.notification_old_data=[],o.refreshList=function(){console.log("refreshing notifications ----"),p.headerNotification().success(function(e){o.imagePath=s.profile_url,o.dummyImage=s.profile_url+"/noImage.png",o.notification_old_count!=e.count&&(o.notification_old_data=e.notifications,o.notification_old_count=e.count)}).error(function(e){})},o.setLastRefreshed=function(e){o.lastRefresh=e.when},o.markReadTopNotification=function(){o.notification_old_count=0,p.markReadNotification().success(function(e){}).error(function(e){o.notification_old_count=0,o.notification_old_data=[]})},e.initialise(),o.randomString=function(e){for(var o="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890",t="",a=0;a<e;a++){var i=Math.floor(Math.random()*o.length);t+=o.charAt(i)}return t}}]),function(){"use strict";function e(e,t,a){a.decorator("$uiViewScroll",o)}function o(e,o,t){return function(a){t.hasAttr(a,"autoscroll-body-top")?o():e(a)}}e.$inject=["baConfigProvider","colorHelper","$provide"],o.$inject=["$delegate","$anchorScroll","baUtil"],angular.module("BlurAdmin.theme").config(e)}(),function(){"use strict";function e(e){var i={theme:{blur:!1},colors:{default:o.default,defaultText:o.defaultText,border:o.border,borderDark:o.borderDark,primary:t.primary,info:t.info,success:t.success,warning:t.warning,danger:t.danger,primaryLight:e.tint(t.primary,30),infoLight:e.tint(t.info,30),successLight:e.tint(t.success,30),warningLight:e.tint(t.warning,30),dangerLight:e.tint(t.danger,30),primaryDark:e.shade(t.primary,15),infoDark:e.shade(t.info,15),successDark:e.shade(t.success,15),warningDark:e.shade(t.warning,15),dangerDark:e.shade(t.danger,15),dashboard:{blueStone:a.blueStone,surfieGreen:a.surfieGreen,silverTree:a.silverTree,gossip:a.gossip,white:a.white}}};return i.changeTheme=function(e){angular.merge(i.theme,e)},i.changeColors=function(e){angular.merge(i.colors,e)},i.$get=function(){return delete i.$get,i},i}e.$inject=["colorHelper"];var o={default:"#ffffff",defaultText:"#666666",border:"#dddddd",borderDark:"#aaaaaa"},t={primary:"#209e91",info:"#2dacd1",success:"#90b900",warning:"#dfb81c",danger:"#e85656"},a={blueStone:"#005562",surfieGreen:"#0e8174",silverTree:"#6eba8c",gossip:"#b9f2a1",white:"#10c4b5"};angular.module("BlurAdmin.theme").provider("baConfig",e)}(),function(){"use strict";function e(e,o,t){function a(e){return e.toString(16)}function i(e){return parseInt(e,16)}for(var n="#",r=1;r<7;r+=2){var s=i(e.substr(r,2)),l=i(o.substr(r,2)),c=a(Math.floor(l+(s-l)*(t/100)));n+=("0"+c).slice(-2)}return n}var o="assets/img/";angular.module("BlurAdmin.theme").constant("layoutSizes",{resWidthCollapseSidebar:1200,resWidthHideSidebar:500}).constant("layoutPaths",{images:{root:o,profile:o+"app/profile/",amMap:"assets/img/theme/vendor/ammap//dist/ammap/images/",amChart:"assets/img/theme/vendor/amcharts/dist/amcharts/images/"}}).constant("colorHelper",{tint:function(o,t){return e("#ffffff",o,t)},shade:function(o,t){return e("#000000",o,t)}})}(),function(){"use strict";function e(e,o,t,a,i,n,r){var s=[a.loadAmCharts(),e(3e3)],l=r;l.blur&&(l.mobile?s.unshift(a.loadImg(t.images.root+"blur-bg-mobile.jpg")):(s.unshift(a.loadImg(t.images.root+"blur-bg.jpg")),s.unshift(a.loadImg(t.images.root+"blur-bg-blurred.jpg")))),i.all(s).then(function(){o.$pageFinishedLoading=!0}),e(function(){o.$pageFinishedLoading||(o.$pageFinishedLoading=!0)},7e3),o.$baSidebarService=n}e.$inject=["$timeout","$rootScope","layoutPaths","preloader","$q","baSidebarService","themeLayoutSettings"],angular.module("BlurAdmin.theme").run(e)}(),function(){"use strict";function e(e){var o=/android|webos|iphone|ipad|ipod|blackberry|windows phone/.test(navigator.userAgent.toLowerCase()),t=o?"mobile":"",a=e.theme.blur?"blur-theme":"";return angular.element(document.body).addClass(t).addClass(a),{blur:e.theme.blur,mobile:o}}e.$inject=["baConfig"],angular.module("BlurAdmin.theme").service("themeLayoutSettings",e)}(),App.directive("acOutsideClick",["$http","$config","$timeout","$templateCache",function(e,o,t,a){return{restrict:"EA",require:"^?form",scope:{acOutsideClick:"&",initialValue:"@",name:"@",id:"@",placeholder:"@",validator:"@",chars:"@",data:"@",outerHTML:"@"},link:function(e,o,a){var i=$(o),n=function(o){$.contains(i.parent(),o.target)||(e.acOutsideClick(),t(function(){}))},r=function(o){var a=o.keyCode||o.which;9==a&&(e.acOutsideClick(),t(function(){}))};document.body.addEventListener("click",n),document.body.addEventListener("keydown",r),e.$on("$destroy",function(){document.body.removeEventListener("click",n),document.body.removeEventListener("keydown",r)})}}}]),App.directive("chars",function(){"use strict";return{require:"ngModel",restrict:"A",link:function(e,o,t,a){var i,n={slug:"a-z0-9._-",text:"A-Z a-z')(.,- 0-9","company-name":"A-Z a-z.,- 0-9","only-numbers":"0-9.",numbers:"0-9","only-letters":"A-Za-z","only-letters-space":"A-Z a-z",letters:"a-z 0-9._-",email:"\\wÑñ@._\\-","alpha-numeric":"\\w\\s","latin-alpha-numeric":"\\w\\sÑñáéíóúüÁÉÍÓÚÜ"},r=n[t.chars]||t.chars;o.on("input",function(){i=new RegExp("[^"+r+"]","ig"),a.$setViewValue(o.val().replace(i,"")),a.$render()})}}}),App.directive("ngConfirmClick",[function(){return{link:function(e,o,t){var a=t.ngConfirmClick||"Are you sure?",i=t.confirmedClick;o.bind("click",function(o){window.confirm(a)&&e.$eval(i)})}}}]),App.directive("focusMe",["$timeout",function(e){return{link:function(o,t,a){e(function(){t[0].focus()},150)}}}]),App.directive("myYear",["$http","$config",function(e,o){return{restrict:"E",template:'<select inherit-select-classes="true" chosen ng-selected="true" ng-options="city.value as city.text for city in range2"></select>',replace:!0,controller:["$scope","$element","$attrs","$transclude","$http",function(e,o,t,a,i){e.$watch(e.stateNgModel,function(o,t){e.range2=[{value:null,text:"Select year"}];var a=(new Date).getFullYear();e.range2.push(a);for(var i=0;i<30;i++){var n=Number(a)+Number(i),r={value:n,text:n};e.range2.push(r)}})}],link:function(e,o,t){e.range2=[{value:null,text:"Select year"}]}}}]),App.directive("myMonth",["$http","$config",function(e,o){return{restrict:"E",template:'<select inherit-select-classes="true" chosen ng-selected="true" ng-options="month.value as month.text for month in months2"></select>',replace:!0,controller:["$scope","$element","$attrs","$transclude","$http",function(e,o,t,a,i){e.$watch(e.stateNgModel,function(o,t){e.months2=[{value:null,text:"Select month"},{value:1,text:"1 - Jan"},{value:2,text:"2 - Feb"},{value:3,text:"3 - Mar"},{value:4,text:"4 - Apr"},{value:5,text:"5 - May"},{value:6,text:"6 - Jun"},{value:7,text:"7 - Jul"},{value:8,text:"8 - Aug"},{value:9,text:"9 - Sep"},{value:10,text:"10 - Oct"},{value:11,text:"11 - Nov"},{value:12,text:"12 - Dec"}]})}],link:function(e,o,t){e.months2=[{value:null,text:"Select month"}]}}}]),App.directive("issueYear",["$http","$config",function(e,o){return{restrict:"E",template:'<select inherit-select-classes="true" chosen ng-selected="true" ng-options="city.value as city.text for city in range"></select>',replace:!0,controller:["$scope","$element","$attrs","$transclude","$http",function(e,o,t,a,i){e.$watch(e.stateNgModel,function(o,t){e.range=[{value:null,text:"Year"}];var a=(new Date).getFullYear();e.range.push(a);for(var i=-40;i<=0;i++){var n=Number(a)+Number(i),r={value:n,text:n};e.range.push(r)}})}],link:function(e,o,t){e.range=[{value:null,text:"Year"}]}}}]),App.directive("issueMonth",["$http","$config",function(e,o){return{restrict:"E",template:'<select inherit-select-classes="true" chosen ng-selected="true" ng-options="month.value as month.text disable when month.disabled for month in months"></select>',replace:!0,controller:["$scope","$element","$attrs","$transclude","$http",function(e,o,t,a,i){e.$watch("transaction.sender.id_proof_issue_year",function(o,t){e.mnthName=["1 - Jan","2 - Feb","3 - Mar","4 - Apr","5 - May","6 - Jun","7 - Jul","8 - Aug","9 - Sep","10 - Oct","11 - Nov","12 - Dec"],e.months=[{value:null,text:"Month"}];for(var a=(new Date).getFullYear(),i=Number((new Date).getMonth())+Number(1),n=0;n<12;n++){var r=!1;a==e.transaction.sender.id_proof_issue_year&&n>=i&&(r=!0);var s={value:Number(n)+Number(1),text:e.mnthName[n],disabled:r};e.months.push(s)}})}],link:function(e,o,t){e.months=[{value:null,text:"Month"}]}}}]),App.directive("expireYear",["$http","$config",function(e,o){return{restrict:"E",template:'<select inherit-select-classes="true" chosen ng-selected="true" ng-options="city.value as city.text for city in range1"></select>',replace:!0,controller:["$scope","$element","$attrs","$transclude","$http",function(e,o,t,a,i){e.$watch(e.stateNgModel,function(o,t){e.range1=[{value:null,text:"Year"}];var a=(new Date).getFullYear();e.range1.push(a);for(var i=0;i<40;i++){var n=Number(a)+Number(i),r={value:n,text:n};e.range1.push(r)}})}],link:function(e,o,t){e.range1=[{value:null,text:"Year"}]}}}]),App.directive("expireMonth",["$http","$config",function(e,o){return{restrict:"E",template:'<select inherit-select-classes="true" chosen ng-selected="true" ng-options="month.value as month.text disable when month.disabled for month in months1"></select>',replace:!0,controller:["$scope","$element","$attrs","$transclude","$http",function(e,o,t,a,i){e.transaction&&e.$watch("transaction.sender.id_proof_expire_year",function(o,t){e.mnthName=["1 - Jan","2 - Feb","3 - Mar","4 - Apr","5 - May","6 - Jun","7 - Jul","8 - Aug","9 - Sep","10 - Oct","11 - Nov","12 - Dec"],e.months1=[{value:null,text:"Month"}];for(var a=(new Date).getFullYear(),i=(new Date).getMonth(),n=0;n<12;n++){var r=!1;a==e.transaction.sender.id_proof_expire_year&&n<i&&(r=!0);var s={value:Number(n)+Number(1),text:e.mnthName[n],disabled:r};e.months1.push(s)}}),e.user&&e.$watch("user.id_proof_expire_year",function(o,t){e.mnthName=["1 - Jan","2 - Feb","3 - Mar","4 - Apr","5 - May","6 - Jun","7 - Jul","8 - Aug","9 - Sep","10 - Oct","11 - Nov","12 - Dec"],e.months1=[{value:null,text:"Month"}];for(var a=(new Date).getFullYear(),i=(new Date).getMonth(),n=0;n<12;n++){var r=!1;a==e.user.id_proof_expire_year&&n<i&&(r=!0);var s={value:Number(n)+Number(1),text:e.mnthName[n],disabled:r};e.months1.push(s)}})}],link:function(e,o,t){e.months1=[{value:null,text:"Month"}]}}}]),App.directive("reportYear",["$http","$config",function(e,o){return{restrict:"E",template:'<select inherit-select-classes="true" chosen ng-selected="true" ng-options="city.value as city.text for city in range"></select>',replace:!0,controller:["$scope","$element","$attrs","$transclude","$http",function(e,o,t,a,i){e.$watch(e.stateNgModel,function(o,t){e.range=[{value:null,text:"Year"}];var a=(new Date).getFullYear();e.range.push(a);for(var i=0;i<=30;i++){var n=Number(a)-Number(i),r={value:n,text:n};e.range.push(r)}})}],link:function(e,o,t){e.range=[{value:null,text:"Year"}]}}}]),App.directive("reportMonth",["$http","$config",function(e,o){return{restrict:"E",template:'<select inherit-select-classes="true" chosen ng-selected="true" ng-options="month.value as month.text for month in months"></select>',replace:!0,controller:["$scope","$element","$attrs","$transclude","$http",function(e,o,t,a,i){e.$watch(e.stateNgModel,function(o,t){e.mnthName=["1 - Jan","2 - Feb","3 - Mar","4 - Apr","5 - May","6 - Jun","7 - Jul","8 - Aug","9 - Sep","10 - Oct","11 - Nov","12 - Dec"],e.months=[{value:null,text:"Month"}];for(var a=((new Date).getFullYear(),Number((new Date).getMonth())+Number(1),0);a<12;a++){var i={value:Number(a)+Number(1),text:e.mnthName[a]};e.months.push(i)}})}],link:function(e,o,t){e.months=[{value:null,text:"Month"}]}}}]),App.directive("modal",function(){return{template:'<div class="modal fade"><div class="modal-dialog"><div class="modal-content"><div class="modal-header"><button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button><h4 class="modal-title">Help Text</h4></div><div class="modal-body" ng-transclude></div></div></div></div>',restrict:"E",transclude:!0,replace:!0,scope:!0,link:function(e,o,t){e.$watch(t.visible,function(e){1==e?$(o).modal("show"):$(o).modal("hide")}),$(o).on("shown.bs.modal",function(){e.$apply(function(){e.$parent[t.visible]=!0})}),$(o).on("hidden.bs.modal",function(){e.$apply(function(){e.$parent[t.visible]=!1})})}}}),App.directive("phoneInput",["$filter","$browser",function(e,o){return{require:"ngModel",link:function(t,a,i,n){var r=function(){var o=a.val().replace(/[^0-9]/g,"");a.val(e("tel")(o,!1))};n.$parsers.push(function(e){return e.replace(/[^0-9]/g,"").slice(0,10)}),n.$render=function(){a.val(e("tel")(n.$viewValue,!1))},a.bind("change",r),a.bind("keydown",function(e){var t=e.keyCode;91==t||15<t&&t<19||37<=t&&t<=40||o.defer(r)}),a.bind("paste cut",function(){o.defer(r)})}}}]),App.filter("tel",function(){return function(e){if(!e)return"";var o=e.toString().trim().replace(/^\+/,"");if(o.match(/[^0-9]/))return e;var t,a;switch(o.length){case 1:case 2:case 3:t=o;break;default:t=o.slice(0,3),a=o.slice(3)}return a?(a=a.length>3?a.slice(0,3)+"-"+a.slice(3,7):a,("("+t+") "+a).trim()):"("+t}}),App.directive("disallowSpaces",function(){return{restrict:"A",link:function(e,o){o.bind("input",function(){$(this).val($(this).val().replace(/ /g,""))})}}}),App.filter("replace_string",function(){return function(e){if(!e)return"";var o=e.toString().trim().replace("_"," ").replace("_"," ");return o}}),App.filter("titleCase",function(){return function(e){return e=e||"",e.replace(/\w\S*/g,function(e){return e.charAt(0).toUpperCase()+e.substr(1).toLowerCase()})}}),App.directive("ssn",function(){function e(e){var o=e,t=e?e.toString():"";return t.length>3&&(o=t.substr(0,3)+"-",t.length>5?(o+=t.substr(3,2)+"-",o+=t.substr(5,4)):o+=t.substr(3)),o}return{restrict:"A",require:"ngModel",link:function(o,t,a,i){i.$formatters.push(function(o){return e(o)}),i.$parsers.push(function(o){var a=t[0].selectionStart,n=o.toString().length,r=/[^0-9]/g,s=o.replace(r,"");s.length>9&&(s=s.substr(0,9));var l=e(s);return i.$setViewValue(l),i.$render(),t[0].setSelectionRange(a+l.length-n,a+l.length-n),s})}}}),App.directive("numbersOnly",function(){return{require:"ngModel",link:function(e,o,t,a){function i(e){if(e){var o=e.replace(/[^0-9]/g,"");return o!==e&&(a.$setViewValue(o),a.$render()),o}}a.$parsers.push(i)}}}),App.directive("myDate",["$filter","$browser",function(e,o){return{require:"ngModel",link:function(t,a,i,n){var r=function(){var o=a.val().replace(/[^0-9]/g,"");a.val(e("date")(o,!1))};n.$parsers.push(function(e){return e.replace(/[^0-9]/g,"").slice(0,10)}),n.$render=function(){a.val(e("date")(n.$viewValue,!1))},a.bind("change",r),a.bind("keydown",function(e){var t=e.keyCode;91==t||15<t&&t<19||37<=t&&t<=40||o.defer(r)}),a.bind("paste cut",function(){o.defer(r)})}}}]),App.filter("date",function(){return function(e){if(!e)return"";var o=e.toString().trim().replace(/^\+/,"");if(o.match(/[^0-9]/))return e;var t,a;switch(o.length){case 1:case 2:case 3:t=o;break;default:t=o.slice(0,4),a=o.slice(4)}return a?(a=a.length>3?a.slice(0,2)+"-"+a.slice(2,4):a,(t+"-"+a).trim()):t}}),App.directive("validFile",function(){return{require:"ngModel",link:function(e,o,t,a){a.$render=function(){o[0].files&&o[0].files.length&&a.$setViewValue(o[0].files[0])},o.bind("change",function(){e.$apply(function(){a.$render()})})}}}),App.directive("validPdf",function(){return{require:"ngModel",link:function(e,o,t,a){function i(e){a.$setValidity("extension",e)}var n=["pdf"];o.bind("change",function(){i(!1),e.$apply(function(){a.$render()})}),a.$render=function(){a.$setViewValue(o.val())},a.$parsers.push(function(e){var o=e.substr(e.lastIndexOf(".")+1);if(""!=o)return n.indexOf(o)==-1?e:(i(!0),e)})}}}),App.directive("pdfFile",function(){var e=["pdf"];return{require:"ngModel",link:function(o,t,a,i){i.$validators.validFile=function(){t.on("change",function(){var o=t.val(),a=o.substring(o.lastIndexOf(".")+1).toLowerCase();return e.indexOf(a)!==-1})}}}}),function(){"use strict";angular.module("BlurAdmin").factory("AffiliationsFactory",["$http","$q","$config",function(e,o,t){var a={};return a.validation={name:{required:"Name is required",minlength:"Name is too short",maxlength:"Name is too long"},description:{required:"Description is required"},status:{required:"Please select status"}},a.addRecord=function(o){return objectToFormData(o),e.post(t.api_url+"affiliations",o)},a.getRecord=function(o){return e.get(t.api_url+"affiliations/"+o+"/edit")},a.getRecords=function(){return e.get(t.api_url+"affiliations")},a.getAllRecords=function(){return e.get(t.api_url+"affiliations/getalldata")},a.updateRecord=function(o,a){return objectToFormData(a),e.post(t.api_url+"affiliations/"+o,a)},a.showDataTable=function(o){return e({method:"POST",url:t.api_url+"affiliations/get-affiliations-list",data:$.param(o),headers:{"Content-Type":"application/x-www-form-urlencoded"}})},a.deleteRecord=function(o){return e.delete(t.api_url+"affiliations/"+o)},a}])}(),function(){"use strict";angular.module("BlurAdmin").factory("ApiManagementsFactory",["$http","$q","$config",function(e,o,t){var a={};return a.validation={name:{required:"Company name is required",minlength:"Company name is too short",maxlength:"Company name is too long"},api_key:{required:"API key is required",minlength:"API key is too short",maxlength:"API key is too long"},slug:{required:"Slug is required",minlength:"Slug is too short",maxlength:"Slug is too long",duplicate:"Slug is already exist please chose other slug."},status:{required:"Please select status"},ipaddress:{required:"Ip address is required"}},a.addRecord=function(o){return e.post(t.api_url+"apimanagements",o)},a.getRecord=function(o){return e.get(t.api_url+"apimanagements/"+o+"/edit")},a.updateRecord=function(o,a){return e.post(t.api_url+"apimanagements/"+o,a)},a.checkSlug=function(o){return e.post(t.api_url+"apimanagements/check-slug",o)},a.showDataTable=function(o){return e({method:"POST",url:t.api_url+"apimanagements/get-apimanagements-list",data:$.param(o),headers:{"Content-Type":"application/x-www-form-urlencoded"}})},a.deleteRecord=function(o){return e.delete(t.api_url+"apimanagements/"+o)},a}])}(),function(){"use strict";angular.module("BlurAdmin").factory("authInterceptor",["$rootScope","$q","$window","$cookies","$injector",function(e,o,t,a,i){return{request:function(e){return e.headers=e.headers||{},a.get("token")&&(e.headers.Authorization="Bearer "+a.get("token")),e},response:function(t){var i=t.headers("authorization");return null!=i&&(i=i.replace("Bearer ",""),a.put("token",i)),200===t.status?t||o.when(t):void e.logout()},responseError:function(t){var n=i.get("$state");if("login"!=n.current.name&&t.config.url.indexOf("logout")==-1&&t.config.url.indexOf("refresh-token")==-1){if(400===t.status)return e.logout(),o.reject(t);if(422===t.status||501===t.status){var r=t.headers("authorization");if(null!==r&&(r=r.replace("Bearer ",""),a.put("token",r)),501===t.status){var s=i.get("Notification");return s.error(t.data.error),e.logout(),o.reject(t)}}if(401===t.status){var l=o.defer();return i.get("AuthenticationFactory").refreshToken().then(function(e){a.put("token",e.data.token),l.resolve(e)},l.reject),l.promise.then(function(){return i.get("$http")(t.config)})}return o.reject(t)}return o.reject(t)}}}])}(),function(){"use strict";angular.module("BlurAdmin").factory("AuthenticationFactory",["$http","$q","$config","$cookies",function(e,o,t,a){var i={};return i.validation={email:{required:"Email is required",invalidEmail:"Email is not valid",minlength:"Email is too short",maxlength:"Email is too long"},password:{required:"Password is required",minlength:"Password is too short",maxlength:"Password is too long"},confirm_password:{required:"Confirm password is required"}},i.login=function(o){return e.post(t.api_url+"login",o)},i.logout=function(o){var a=objectToFormData(o);return e.post(t.api_url+"logout",a,{headers:{"Content-Type":void 0}})},i.forgotPassword=function(o){return e.post(t.api_url+"password/email",o)},i.resetPassword=function(o){return e.post(t.api_url+"password/reset",o)},i.refreshToken=function(){return e.post(t.api_url+"refresh-token",{},{headers:{Authorization:a.get("token")}})},i.checkPermission=function(o){return e.post(t.api_url+"check-permission",{permission:o})},i.checkLogin=function(){return e.get(t.api_url+"check-for-login")},i}])}(),function(){"use strict";angular.module("BlurAdmin").factory("Contactmanagement",["$http","$q","$config",function(e,o,t){var a={};return a.validation={organization_id:{required:"Please select organization type"},visitor_type:{required:"Please select visitor type"},organization:{required:"Organization is required",minlength:"Organization is too short",maxlength:"Organization is too long"},first_name:{required:"First name is required",minlength:"First name is too short",maxlength:"First name is too long"},last_name:{required:"Last name is required",minlength:"Last name is too short",maxlength:"Last name is too long"},email:{required:"Email is required",invalidEmail:"Email is not valid",minlength:"Email is too short",maxlength:"Email is too long"},phone_number:{required:"Phone number is required",minlength:"Phone number is too short",maxlength:"Phone number is too long"},mobile:{required:"Mobile number is required",minlength:"Mobile number is too short",maxlength:"Mobile number is too long"},address:{required:"Street 1 is required",minlength:"Street 1 is too short",maxlength:"Street 1 is too long"},address1:{required:"Street 2 is required",minlength:"Street 2 is too short",maxlength:"Street 2 is too long"},gender:{required:"Please select gender"},dob:{required:"Birth date is required"},country_id:{required:"Please select country"},state:{required:"State is required",minlength:"State is too short",maxlength:"State is too long"},city:{required:"City is required",minlength:"City is too short",maxlength:"City is too long"},zip_code:{required:"Zip code is required",minlength:"Zip code is too short",maxlength:"Zip code is too long"},status:{required:"Please select status"},meetingtime:{required:"Please select meeting time"}},a.addRecord=function(o){return e.post(t.api_url+"contactmanagements",o)},a.getRecord=function(o){return e.get(t.api_url+"contactmanagements/"+o+"/edit")},a.getAllRecord=function(o){return e.get(t.api_url+"contactmanagements")},a.updateRecord=function(o,a){return e.post(t.api_url+"contactmanagements/"+o,a)},a.checkRecordByPhone=function(o){return e.post(t.api_url+"contactmanagements/checkvitisitorphone",o)},a.showDataTable=function(o){return e({method:"POST",url:t.api_url+"contactmanagements/get-contactmanagements-list",data:$.param(o),headers:{"Content-Type":"application/x-www-form-urlencoded"}})},a.deleteRecord=function(o){return e.delete(t.api_url+"contactmanagements/"+o)},a}])}(),function(){"use strict";angular.module("BlurAdmin").factory("DashboardsFactory",["$http","$q","$config",function(e,o,t){var a={};return a.validation={task:{required:"Task is required",minlength:"Task is too short",maxlength:"Task is too long"},status:{required:"Please select status"}},a.getRecord=function(){return e.get(t.api_url+"dashboard")},a.getCalenderRecord=function(){return e.get(t.api_url+"dashboard/calender-data")},a.getTourDataTable=function(o){return e({method:"POST",url:t.api_url+"dashboard/upcoming-tour",data:$.param(o),headers:{"Content-Type":"application/x-www-form-urlencoded"}})},a}])}(),function(){"use strict";angular.module("BlurAdmin").factory("DefaulttasksFactory",["$http","$q","$config",function(e,o,t){var a={};return a.validation={task:{required:"Task is required",minlength:"Task is too short",maxlength:"Task is too long"},status:{required:"Please select status"}},a.addRecord=function(o){return objectToFormData(o),e.post(t.api_url+"defaulttasks",o)},a.getRecord=function(o){return e.get(t.api_url+"defaulttasks/"+o+"/edit")},a.getRecords=function(o){return e.get(t.api_url+"defaulttasks/"+o)},a.getAllRecords=function(){return e.get(t.api_url+"defaulttasks/getalldata")},a.updateRecord=function(o,a){return objectToFormData(a),e.post(t.api_url+"defaulttasks/"+o,a)},a.showDataTable=function(o){return e({method:"POST",url:t.api_url+"defaulttasks/get-defaulttasks-list",data:$.param(o),headers:{"Content-Type":"application/x-www-form-urlencoded"}})},a.deleteRecord=function(o){return e.delete(t.api_url+"defaulttasks/"+o)},a}])}(),function(){"use strict";angular.module("BlurAdmin").factory("EmailtemplatesFactory",["$http","$q","$config",function(e,o,t){var a={};return a.validation={title:{required:"Title is required",minlength:"Title is too short",maxlength:"Title is too long"},emailtype:{required:"Please select Email Action"},html_code:{required:"Description is required"},status:{required:"Please select status"}},a.addRecord=function(o){return objectToFormData(o),e.post(t.api_url+"emailtemplates",o)},a.getRecord=function(o){return e.get(t.api_url+"emailtemplates/"+o+"/edit")},a.getRecords=function(){return e.get(t.api_url+"emailtemplates")},a.getAllRecords=function(){return e.get(t.api_url+"emailtemplates/getalldata")},a.updateRecord=function(o,a){return objectToFormData(a),e.post(t.api_url+"emailtemplates/"+o,a)},a.showDataTable=function(o){return e({method:"POST",url:t.api_url+"emailtemplates/get-emailtemplates-list",data:$.param(o),headers:{"Content-Type":"application/x-www-form-urlencoded"}})},a.deleteRecord=function(o){return e.delete(t.api_url+"emailtemplates/"+o)},a}])}(),function(){"use strict";angular.module("BlurAdmin").factory("LocationsFactory",["$http","$q","$config",function(e,o,t){var a={};return a.validation={name:{required:"Name is required",minlength:"Name is too short",maxlength:"Name is too long"},description:{required:"Description is required"},status:{required:"Please select status"}},a.addRecord=function(o){return objectToFormData(o),e.post(t.api_url+"locations",o)},a.getRecord=function(o){return e.get(t.api_url+"locations/"+o+"/edit")},a.getRecords=function(){return e.get(t.api_url+"locations")},a.getAllRecords=function(){return e.get(t.api_url+"locations/getalldata")},a.updateRecord=function(o,a){return objectToFormData(a),e.post(t.api_url+"locations/"+o,a)},a.showDataTable=function(o){return e({method:"POST",url:t.api_url+"locations/get-locations-list",data:$.param(o),headers:{"Content-Type":"application/x-www-form-urlencoded"}})},a.deleteRecord=function(o){return e.delete(t.api_url+"locations/"+o)},a}])}(),function(){"use strict";angular.module("BlurAdmin").factory("MealcategoriesFactory",["$http","$q","$config",function(e,o,t){var a={};return a.validation={name:{required:"Name is required",minlength:"Name is too short",maxlength:"Name is too long"},description:{required:"Description is required"},status:{required:"Please select status"}},a.addRecord=function(o){return objectToFormData(o),e.post(t.api_url+"mealcategories",o)},a.getRecord=function(o){return e.get(t.api_url+"mealcategories/"+o+"/edit")},a.getRecords=function(){return e.get(t.api_url+"mealcategories")},a.getAllRecords=function(){return e.get(t.api_url+"mealcategories/getalldata")},a.updateRecord=function(o,a){return objectToFormData(a),e.post(t.api_url+"mealcategories/"+o,a)},a.showDataTable=function(o){return e({method:"POST",url:t.api_url+"mealcategories/get-mealcategories-list",data:$.param(o),headers:{"Content-Type":"application/x-www-form-urlencoded"}})},a}])}(),function(){"use strict";angular.module("BlurAdmin").factory("MealsFactory",["$http","$q","$config",function(e,o,t){var a={};return a.validation={name:{required:"Name is required",minlength:"Name is too short",maxlength:"Name is too long"},description:{required:"Description is required"},status:{required:"Please select status"}},a.addRecord=function(o){return objectToFormData(o),e.post(t.api_url+"meals",o)},a.getRecord=function(o){return e.get(t.api_url+"meals/"+o+"/edit")},a.getRecords=function(){return e.get(t.api_url+"meals")},a.getAllRecords=function(){return e.get(t.api_url+"meals/getalldata")},a.updateRecord=function(o,a){return objectToFormData(a),e.post(t.api_url+"meals/"+o,a)},a.showDataTable=function(o){return e({method:"POST",url:t.api_url+"meals/get-meals-list",data:$.param(o),headers:{"Content-Type":"application/x-www-form-urlencoded"}})},a.deleteRecord=function(o){return e.delete(t.api_url+"meals/"+o)},a}])}(),function(){"use strict";angular.module("BlurAdmin").factory("MealservicelocationsFactory",["$http","$q","$config",function(e,o,t){var a={};return a.validation={name:{required:"Name is required",minlength:"Name is too short",maxlength:"Name is too long"},description:{required:"Description is required"},status:{required:"Please select status"}},a.addRecord=function(o){return objectToFormData(o),e.post(t.api_url+"mealservicelocations",o)},a.getRecord=function(o){return e.get(t.api_url+"mealservicelocations/"+o+"/edit")},a.getRecords=function(){return e.get(t.api_url+"mealservicelocations")},a.getAllRecords=function(){return e.get(t.api_url+"mealservicelocations/getalldata")},a.updateRecord=function(o,a){return objectToFormData(a),e.post(t.api_url+"mealservicelocations/"+o,a)},a.showDataTable=function(o){return e({method:"POST",url:t.api_url+"mealservicelocations/get-mealservicelocations-list",data:$.param(o),headers:{"Content-Type":"application/x-www-form-urlencoded"}})},a.deleteRecord=function(o){return e.delete(t.api_url+"mealservicelocations/"+o)},a}])}(),function(){"use strict";angular.module("BlurAdmin").factory("MealservicetypesFactory",["$http","$q","$config",function(e,o,t){var a={};return a.validation={name:{required:"Name is required",minlength:"Name is too short",maxlength:"Name is too long"},cost:{required:"Cost is required",minlength:"Cost is too short",maxlength:"Cost is too long"},description:{required:"Description is required"},status:{required:"Please select status"}},a.addRecord=function(o){return objectToFormData(o),e.post(t.api_url+"mealservicetypes",o)},a.getRecord=function(o){return e.get(t.api_url+"mealservicetypes/"+o+"/edit")},a.getRecords=function(){return e.get(t.api_url+"mealservicetypes")},a.getAllRecords=function(){return e.get(t.api_url+"mealservicetypes/getalldata")},a.updateRecord=function(o,a){return objectToFormData(a),e.post(t.api_url+"mealservicetypes/"+o,a)},a.showDataTable=function(o){return e({method:"POST",url:t.api_url+"mealservicetypes/get-mealservicetypes-list",data:$.param(o),headers:{"Content-Type":"application/x-www-form-urlencoded"
}})},a.deleteRecord=function(o){return e.delete(t.api_url+"mealservicetypes/"+o)},a}])}(),function(){"use strict";angular.module("BlurAdmin").factory("MomentosFactory",["$http","$q","$config",function(e,o,t){var a={};return a.validation={name:{required:"Name is required",minlength:"Name is too short",maxlength:"Name is too long"},description:{required:"Description is required"},status:{required:"Please select status"}},a.addRecord=function(o){return objectToFormData(o),e.post(t.api_url+"momento",o)},a.getRecord=function(o){return e.get(t.api_url+"momento/"+o+"/edit")},a.getRecords=function(){return e.get(t.api_url+"momento")},a.getAllRecords=function(){return e.get(t.api_url+"momento/getalldata")},a.updateRecord=function(o,a){return objectToFormData(a),e.post(t.api_url+"momento/"+o,a)},a.showDataTable=function(o){return e({method:"POST",url:t.api_url+"momento/get-momento-list",data:$.param(o),headers:{"Content-Type":"application/x-www-form-urlencoded"}})},a.deleteRecord=function(o){return e.delete(t.api_url+"momento/"+o)},a}])}(),function(){"use strict";angular.module("BlurAdmin").factory("NotificationsFactory",["$http","$q","$config",function(e,o,t){var a={};return a.validation={name:{required:"Name is required",minlength:"Name is too short",maxlength:"Name is too long"},description:{required:"Description is required"},status:{required:"Please select status"}},a.addRecord=function(o){var a=objectToFormData(o);return e.post(t.api_url+"notifications",a,{headers:{"Content-Type":void 0}})},a.getRecord=function(o){return e.get(t.api_url+"notifications/"+o+"/edit")},a.getRecords=function(){return e.get(t.api_url+"notifications")},a.updateRecord=function(o,a){var i=objectToFormData(a);return e.post(t.api_url+"notifications/"+o,i,{headers:{"Content-Type":void 0}})},a.showDataTable=function(o){return e({method:"POST",url:t.api_url+"notifications/get-notifications-list",data:$.param(o),headers:{"Content-Type":"application/x-www-form-urlencoded"}})},a.headerNotification=function(o){return e.get(t.api_url+"notifications/get-recent-notifications")},a.markReadNotification=function(o){return e.post(t.api_url+"notifications/mark-read-to-notification",o)},a}])}(),function(){"use strict";angular.module("BlurAdmin").factory("OrganizationsFactory",["$http","$q","$config",function(e,o,t){var a={};return a.validation={name:{required:"Name is required",minlength:"Name is too short",maxlength:"Name is too long"},description:{required:"Description is required"},status:{required:"Please select status"}},a.addRecord=function(o){return e.post(t.api_url+"organizations",o)},a.getRecord=function(o){return e.get(t.api_url+"organizations/"+o+"/edit")},a.getRecords=function(){return e.get(t.api_url+"organizations")},a.getAllRecords=function(){return e.get(t.api_url+"organizations/getalldata")},a.updateRecord=function(o,a){return e.post(t.api_url+"organizations/"+o,a)},a.showDataTable=function(o){return e({method:"POST",url:t.api_url+"organizations/get-organizations-list",data:$.param(o),headers:{"Content-Type":"application/x-www-form-urlencoded"}})},a.deleteRecord=function(o){return e.delete(t.api_url+"organizations/"+o)},a}])}(),function(){"use strict";angular.module("BlurAdmin").factory("RolesFactory",["$http","$q","$config",function(e,o,t){var a={};return a.validation={name:{required:"Role name is required",minlength:"Role name is too short",maxlength:"Role name is too long"},description:{required:"Role description is required",minlength:"Role description is too short",maxlength:"Role description is too long"}},a.getAllRole=function(){return e.get(t.api_url+"roles")},a.getRole=function(o){return e.get(t.api_url+"roles/"+o+"/edit")},a.getRolePermisssions=function(o){return e.post(t.api_url+"get-role-permission",{id:o})},a.addRole=function(o){return e.post(t.api_url+"roles",o)},a.updateRole=function(o,a){return e.put(t.api_url+"roles/"+o,a)},a.showDataTable=function(o){return e({method:"POST",url:t.api_url+"roles/get-roles-list",data:$.param(o),headers:{"Content-Type":"application/x-www-form-urlencoded"}})},a.changeUserRole=function(o){return e.post(t.api_url+"roles/change-user-role",o)},a.roleList=function(o){return e.post(t.api_url+"roles/role-list",o)},a.getAllPermission=function(){return e.post(t.api_url+"permission/get-permissions")},a.deleteRecord=function(o){return e.delete(t.api_url+"roles/"+o)},a}])}(),function(){"use strict";angular.module("BlurAdmin").factory("SettingsFactory",["$http","$q","$config",function(e,o,t){var a={};return a.validation={admin_email:{required:"Admin email is required",invalidEmail:"Email is not valid",minlength:"Admin email is too short",maxlength:"Admin email is too long"},confirm_link_expired:{required:"Hours is required",minlength:"Hours is too short",maxlength:"Hours is too long"}},a.getAllSettings=function(){return e.get(t.api_url+"settings")},a.updateRecord=function(o,a){return e.put(t.api_url+"settings/"+o,a)},a}])}(),function(){"use strict";angular.module("BlurAdmin").factory("ToursFactory",["$http","$q","$config",function(e,o,t){var a={};return a.validation={name:{required:"Name is required",minlength:"Name is too short",maxlength:"Name is too long"},start_date:{required:"Please select tour date"},transport_id:{required:"Please select transport type."},tourtype_id:{required:"Please select tour type."},location_id:{required:"Please select location."},meal_id:{required:"Please select meal type."},catering_manager:{required:"Please select catering manager."},meal_service_type_id:{required:"Please select meal service type."},meal_service_location_id:{required:"Please select meal service location."},contact_manager:{required:"Please select contact person."},specific_item:{required:"Specific item is required",minlength:"Specific item is too short",maxlength:"Specific item is too long"},people:{required:"People count is required",minlength:"People count is too short",maxlength:"People count is too long"},senior:{required:"Senior count is required",minlength:"Senior count is too short",maxlength:"Senior count is too long"},adults:{required:"Adults count is required",minlength:"Adults count is too short",maxlength:"Adults count is too long"},children:{required:"Children count is required",minlength:"Children count is too short",maxlength:"Children count is too long"},organization:{required:"Organization name is required",minlength:"Organization name is too short",maxlength:"Organization name is too long"},affiliate:{required:"Affiliate name is required"},description:{required:"Description is required"},request:{required:"Special request is required"},status:{required:"Please select status"},link:{required:"Link is required",error:"Please enter proper link"},title:{required:"Title is required",minlength:"Title is too short",maxlength:"Title is too long"},note:{required:"Note is required",minlength:"Note is too short",maxlength:"Note is too long"},feedback:{required:"Feedback is required"},manager:{required:"Please select tour manager"},budget:{required:"Budget is required",minlength:"Budget is too short",maxlength:"Budget is too long"},expense_field:{required:"Expense field is required",minlength:"Expense field is too short",maxlength:"Expense field is too long"}},a.addRecord=function(o){return e.post(t.api_url+"tours",o)},a.getRecord=function(o){return e.get(t.api_url+"tours/"+o+"/edit")},a.getRecords=function(o){return e.get(t.api_url+"tours/"+o)},a.updateRecord=function(o,a){return e.post(t.api_url+"tours/"+o,a)},a.viewRecord=function(o){return e.get(t.api_url+"tours/"+o)},a.getTaskApprovedStatus=function(o){return e.get(t.api_url+"tours/getTask/"+o)},a.acknowledgeTask=function(o){return e.post(t.api_url+"tours/getTaskUpdate/",o)},a.viewFeedback=function(o){return e.get(t.api_url+"tours/feedback/"+o)},a.addFeedback=function(o){return e.post(t.api_url+"tours/add-feedback",o)},a.actionRecord=function(o){return e.post(t.api_url+"tours/tour-action",o)},a.resend=function(o){return e.post(t.api_url+"tours/resendlink",o)},a.deleteVisitor=function(o){return e.post(t.api_url+"tours/delete-visitor",o)},a.showDataTable=function(o){return e({method:"POST",url:t.api_url+"tours/get-tours-list",data:$.param(o),headers:{"Content-Type":"application/x-www-form-urlencoded"}})},a.addTask=function(o){return e.post(t.api_url+"tours/add-task",o)},a.updateTask=function(o){return e.post(t.api_url+"tours/update-task",o)},a.getOrganization=function(){return e.get(t.api_url+"tours/organization-name")},a.actionTask=function(o){return e.post(t.api_url+"tours/action-task",o)},a.deleteTask=function(o){var a={id:o};return e.post(t.api_url+"tours/delete-task",a)},a.tourDocument=function(o){return e.post(t.api_url+"tours/tour-document",o)},a.deleteDocument=function(o){return e.post(t.api_url+"tours/delete-document",o)},a.tourNote=function(o){return e.post(t.api_url+"tours/tour-notes",o)},a.deleteNote=function(o){return e.post(t.api_url+"tours/delete-notes",o)},a.deleteRecord=function(o){return e.delete(t.api_url+"tours/"+o)},a}])}(),function(){"use strict";angular.module("BlurAdmin").factory("TourtypesFactory",["$http","$q","$config",function(e,o,t){var a={};return a.validation={name:{required:"Name is required",minlength:"Name is too short",maxlength:"Name is too long"},status:{required:"Please select status"}},a.addRecord=function(o){return objectToFormData(o),e.post(t.api_url+"tourtypes",o)},a.getRecord=function(o){return e.get(t.api_url+"tourtypes/"+o+"/edit")},a.getRecords=function(){return e.get(t.api_url+"tourtypes")},a.viewRecord=function(o){return e.get(t.api_url+"tourtypes/"+o)},a.getAllRecords=function(){return e.get(t.api_url+"tourtypes/getalldata")},a.getAllRecords=function(){return e.post(t.api_url+"tourtypes/get-all-tourtype")},a.updateRecord=function(o,a){return objectToFormData(a),e.post(t.api_url+"tourtypes/"+o,a)},a.showDataTable=function(o){return e({method:"POST",url:t.api_url+"tourtypes/get-tourtypes-list",data:$.param(o),headers:{"Content-Type":"application/x-www-form-urlencoded"}})},a.deleteRecord=function(o){return e.delete(t.api_url+"tourtypes/"+o)},a}])}(),function(){"use strict";angular.module("BlurAdmin").factory("TransportsFactory",["$http","$q","$config",function(e,o,t){var a={};return a.validation={name:{required:"Name is required",minlength:"Name is too short",maxlength:"Name is too long"},description:{required:"Description is required"},status:{required:"Please select status"}},a.addRecord=function(o){return objectToFormData(o),e.post(t.api_url+"transports",o)},a.getRecord=function(o){return e.get(t.api_url+"transports/"+o+"/edit")},a.getRecords=function(){return e.get(t.api_url+"transports")},a.getAllRecords=function(){return e.get(t.api_url+"transports/getalldata")},a.updateRecord=function(o,a){return objectToFormData(a),e.post(t.api_url+"transports/"+o,a)},a.showDataTable=function(o){return e({method:"POST",url:t.api_url+"transports/get-transports-list",data:$.param(o),headers:{"Content-Type":"application/x-www-form-urlencoded"}})},a.deleteRecord=function(o){return e.delete(t.api_url+"transports/"+o)},a}])}(),function(){"use strict";angular.module("BlurAdmin").factory("UsersFactory",["$http","$q","$config",function(e,o,t){var a={};return a.validation={name:{required:"Name is required",minlength:"Name is too short",maxlength:"Name is too long"},description:{required:"Description is required"},first_name:{required:"First name is required",minlength:"First name is too short",maxlength:"First name is too long"},last_name:{required:"Last name is required",minlength:"Last name is too short",maxlength:"Last name is too long"},email:{required:"Email is required",invalidEmail:"Email is not valid",minlength:"Email is too short",maxlength:"Email is too long"},phone_number:{required:"Phone number is required",minlength:"Phone number is too short",maxlength:"Phone number is too long"},mobile:{required:"Mobile number is required",minlength:"Mobile number is too short",maxlength:"Mobile number is too long"},address:{required:"Street 1 is required",minlength:"Street 1 is too short",maxlength:"Street 1 is too long"},address1:{required:"Street 2 is required",minlength:"Street 2 is too short",maxlength:"Street 2 is too long"},gender:{required:"Please select gender"},dob:{required:"Birth date is required"},status:{required:"Please select status"},user_type:{required:"Please select user type"},country_id:{required:"Please select country"},state:{required:"State is required",minlength:"State is too short",maxlength:"State is too long"},city:{required:"City is required",minlength:"City is too short",maxlength:"City is too long"},zip_code:{required:"Zip code is required",minlength:"Zip code is too short",maxlength:"Zip code is too long"},image:{required:"File is required",pdfFile:"Please upload only image.",maxSize:"File is too large"},password:{required:"Password is required",minlength:"Password is too short",maxlength:"Password is too long"},new_password:{required:"New password is required",minlength:"New password is too short",maxlength:"New password is too long"},confirm_password:{required:"Confirm password is required"}},a.addRecord=function(o){var a=objectToFormData(o);return e.post(t.api_url+"users",a,{headers:{"Content-Type":void 0}})},a.getRecord=function(o){return e.get(t.api_url+"users/"+o+"/edit")},a.getRecords=function(){return e.get(t.api_url+"users")},a.getTourManager=function(){return e.get(t.api_url+"users/tour-manager")},a.updateRecord=function(o,a){var i=objectToFormData(a);return e.post(t.api_url+"users/"+o,i,{headers:{"Content-Type":void 0}})},a.editProfile=function(o,a){var i=objectToFormData(a);return e.post(t.api_url+"users/"+o,i,{headers:{"Content-Type":void 0}})},a.getVolunteers=function(o){return e.get(t.api_url+"users/get-volunteers-user/"+o)},a.getCountry=function(){return e.get(t.api_url+"get-countries")},a.updatePassword=function(o,a){return a._method="PUT",e.post(t.api_url+"users/change-password/"+o,a)},a.updateAvailability=function(o,a){return a._method="PUT",e.post(t.api_url+"users/change-availability/"+o,a)},a.changePassword=function(o,a){return a._method="PUT",e.post(t.api_url+"users/admin-change-password/"+o,a)},a.resendEmail=function(o){return e.post(t.api_url+"users/resend-welcome-email",o)},a.showDataTable=function(o){return e({method:"POST",url:t.api_url+"users/get-users-list",data:$.param(o),headers:{"Content-Type":"application/x-www-form-urlencoded"}})},a.showAvailabilitiesDataTable=function(o){return e({method:"POST",url:t.api_url+"users/get-availabilities-list",data:$.param(o),headers:{"Content-Type":"application/x-www-form-urlencoded"}})},a.deleteRecord=function(o){return e.delete(t.api_url+"users/"+o)},a}])}(),function(){"use strict";angular.module("BlurAdmin").factory("VisitorsFactory",["$http","$q","$config",function(e,o,t){var a={};return a.validation={name:{required:"Name is required",minlength:"Name is too short",maxlength:"Name is too long"},description:{required:"Description is required"},status:{required:"Please select status"}},a.addRecord=function(o){return objectToFormData(o),e.post(t.api_url+"visitors",o)},a.getRecord=function(o){return e.get(t.api_url+"visitors/"+o+"/edit")},a.getRecords=function(){return e.get(t.api_url+"visitors")},a.getAllRecords=function(){return e.get(t.api_url+"visitors/getalldata")},a.updateRecord=function(o,a){return objectToFormData(a),e.post(t.api_url+"visitors/"+o,a)},a.showDataTable=function(o){return e({method:"POST",url:t.api_url+"visitors/get-visitors-list",data:$.param(o),headers:{"Content-Type":"application/x-www-form-urlencoded"}})},a.deleteRecord=function(o){return e.delete(t.api_url+"visitors/"+o)},a}])}(),function(){"use strict";function e(e,o,t,a,i,n,r,s,l,c,d,u,m,p){e.pageName="Add API",e.btnName="Add",e.isSubmitted=!1,e.errorMessage=s.validation;var g=u.get("$validation");e.formscope={status:1},e.managerOptions=[{name:"Please select tour manager",id:null}],r.getTourManager().success(function(o){e.managerOptions=e.managerOptions.concat(o.data),$.each(e.managerOptions,function(o,t){void 0!=e.managerOptions[o].id&&1==e.managerOptions[o].availability&&(e.managerOptions[o].isDisabled=!0)})}).error(function(e){}),e.formscope.api_key=e.randomString(16),e.statusOption=[{value:2,text:"Inactive"},{value:1,text:"Active"}],e.changeKey=function(){e.formscope.api_key=e.randomString(16)},e.add_data=function(o){e.formscope.slug,g.validate(o).success(function(){e.isSubmitted=!0,s.addRecord(e.formscope).success(function(o){m.success(o.success),d.go("ApiManagements.list"),e.isSubmitted=!1}).error(function(o){m.error(o.error),e.isSubmitted=!1})}).error(function(){e.isSubmitted=!1})}}e.$inject=["$scope","fileReader","$filter","$uibModal","$rootScope","$compile","UsersFactory","ApiManagementsFactory","$timeout","$stateParams","$state","$injector","Notification","$q"],angular.module("BlurAdmin.pages.ApiManagements").controller("AddApiManagementsCtrl",e)}(),function(){"use strict";function e(e,o,t,a,i,n,r,s,l,c,d,u,m,p){e.pageName="API Managements",e.reloadData=function(){e.dtInstance.rerender()},e.createdRow=function(o,t,a){n(angular.element(o).contents())(e)},e.deleteRecord=function(e){r.deleteRecord(e).success(function(e){p.success(e.success),c.reload()}).error(function(e){p.error(e.error)})},e.actionRoles=function(e,o,t){return"<a ui-sref='ApiManagements.edit({ id: "+t.id+" })'><i class='fa fa-edit'></i></a> <a ng-if=\"havePermission('api_managements','delete');\" ng-confirm-click='Are you sure to delete this API?' confirmed-click='deleteRecord("+t.id+")'><i class='fa fa-trash'></i></a>"},e.statusAction=function(e,o,t){return"1"!=e.status?'<small class="label label-danger">Inactive</small>':'<small class="label label-success">Active</small>'},e.indexNumber=function(e,o,t,a){var i=Number(a.row)+Number(1),n=a.settings._iDisplayStart+i;return"<span>"+n+"</span>"},e.dtOptions=u.newOptions().withDataProp("data").withOption("ajax",function(o,t,a){r.showDataTable(o).success(function(o){o.error?e.reloadData():t(o)}).error(function(o){o&&e.reloadData()})}).withOption("processing",!0).withOption("serverSide",!0).withPaginationType("simple_numbers").withOption("order",[0,"desc"]).withDOM("lftip").withOption("searchDelay",500).withOption("createdRow",e.createdRow),e.dtColumns=[m.newColumn("id").withTitle("No").withOption("searchable",!1).renderWith(e.indexNumber).withClass("table-index"),m.newColumn("name").withTitle("Company Name").withOption("searchable",!0),m.newColumn("ipaddress").withTitle("IP Address").withOption("searchable",!0),m.newColumn("api_key").withTitle("API Key").withOption("searchable",!0),m.newColumn("slug").withTitle("Slug").withOption("searchable",!0),m.newColumn(null).withTitle("Status").withOption("searchable",!1).notSortable().renderWith(e.statusAction),m.newColumn(null).withTitle("Action").withOption("searchable",!1).notSortable().renderWith(e.actionRoles)]}e.$inject=["$scope","fileReader","$filter","$uibModal","$rootScope","$compile","ApiManagementsFactory","$timeout","$stateParams","$state","$injector","DTOptionsBuilder","DTColumnBuilder","Notification"],angular.module("BlurAdmin.pages.ApiManagements").controller("ApiManagementsCtrl",e)}(),function(){"use strict";function e(e,o,t,a,i,n,r,s,l,c,d,u,m){e.pageName="Edit API",e.btnName="Update",e.isSubmitted=!1,e.urlID=s.id,e.statusOption=[{value:2,text:"Inactive"},{value:1,text:"Active"}];var p=c.get("$validation");e.managerOptions=[{name:"Please select tour manager",id:null}],m.getTourManager().success(function(o){e.managerOptions=e.managerOptions.concat(o.data),$.each(e.managerOptions,function(o,t){void 0!=e.managerOptions[o].id&&1==e.managerOptions[o].availability&&(e.managerOptions[o].isDisabled=!0)})}).error(function(e){}),e.errorMessage=u.validation,u.getRecord(e.urlID).success(function(o){e.formscope=o.data}).error(function(e){d.error(e.error),l.go("ApiManagements.list")}),e.changeKey=function(){e.formscope.api_key=e.randomString(16)},e.add_data=function(o){p.validate(o).success(function(){e.isSubmitted=!0,e.formscope._method="PUT",u.updateRecord(e.urlID,e.formscope).success(function(o){d.success(o.success),l.go("ApiManagements.list"),e.isSubmitted=!1}).error(function(o){d.error(o.error),e.isSubmitted=!1})}).error(function(){e.isSubmitted=!1})}}e.$inject=["$scope","fileReader","$filter","$uibModal","$rootScope","$compile","$timeout","$stateParams","$state","$injector","Notification","ApiManagementsFactory","UsersFactory"],angular.module("BlurAdmin.pages.ApiManagements").controller("EditApiManagementsCtrl",e)}(),function(){"use strict";function e(e,o,t,a,i,n,r,s,l,c,d,u,m,p,g){e.pageName="Add Contact Management",e.btnName="Add",e.isSubmitted=!1,e.formscope={gender:null,organization_id:null,visitor_type:null,country_id:null,status:1},e.formscope.country_code="1",e.formscope.phone_number_country_code="1",e.statusOption=[{value:2,text:"Inactive"},{value:1,text:"Active"}],e.genderOption=[{label:"Please select gender",value:null},{label:"Male",value:"m"},{label:"Female",value:"f"}],e.OrganizationOption=[{name:"Please select organization type",id:null}],e.VisitorOption=[{name:"Please select visitor type",id:null}],l.getRecords().success(function(o){e.OrganizationOption=e.OrganizationOption.concat(o.data)}).error(function(e){}),s.getRecords().success(function(o){e.VisitorOption=e.VisitorOption.concat(o.data)}).error(function(e){}),e.countries=[{id:null,country_name:"Please select country"}],r.getCountry().success(function(o){e.countries=e.countries.concat(o)}).error(function(e){}),e.errorMessage=c.validation;var f=p.get("$validation");e.add_data=function(o){f.validate(o).success(function(){e.formscope.mobile=e.formscope.country_code+"-"+e.formscope.mobile,e.formscope.phone_number=e.formscope.phone_number_country_code+"-"+e.formscope.phone_number,e.isSubmitted=!0,c.addRecord(e.formscope).success(function(o){g.success(o.success),m.go("contactmanagements.list"),e.isSubmitted=!1}).error(function(o){g.error(o.error),e.isSubmitted=!1})}).error(function(){e.isSubmitted=!1})}}e.$inject=["$scope","fileReader","$filter","$uibModal","$rootScope","$compile","UsersFactory","VisitorsFactory","OrganizationsFactory","Contactmanagement","$timeout","$stateParams","$state","$injector","Notification"],angular.module("BlurAdmin.pages.contactmanagements").controller("AddContactmanagementsCtrl",e)}(),function(){"use strict";function e(e,o,t,a,i,n,r,s,l,c,d,u,m,p,g){e.pageName="Edit Contact Management",e.btnName="Update",e.isSubmitted=!1,e.urlID=u.id,e.formscope={country_code:"1",phone_number_country_code:"1"},e.statusOption=[{value:2,text:"Inactive"},{value:1,text:"Active"}],e.genderOption=[{label:"Please select gender",value:""},{label:"Male",value:"m"},{label:"Female",value:"f"}],e.OrganizationOption=[{name:"Please select organization type",id:null}],e.VisitorOption=[{name:"Please select visitor type",id:null}],l.getRecords().success(function(o){e.OrganizationOption=e.OrganizationOption.concat(o.data)}).error(function(e){}),s.getRecords().success(function(o){e.VisitorOption=e.VisitorOption.concat(o.data)}).error(function(e){}),e.countries=[{id:null,country_name:"Please select country"}],r.getCountry().success(function(o){e.countries=e.countries.concat(o)}).error(function(e){});var f=p.get("$validation");e.errorMessage=c.validation,c.getRecord(e.urlID).success(function(o){e.formscope=o.data;var t;e.formscope.mobile&&e.formscope.mobile.indexOf("-")>-1?(t=e.formscope.mobile.split("-"),e.formscope.country_code=t[0],e.formscope.mobile=t[1]):e.formscope.country_code="1";var a;e.formscope.phone_number&&e.formscope.phone_number.indexOf("-")>-1?(a=e.formscope.phone_number.split("-"),e.formscope.phone_number_country_code=a[0],e.formscope.phone_number=a[1]):e.formscope.phone_number_country_code="1",e.formscope.country_code=visitorInfo.country_code,e.formscope.mobile=visitorInfo.mobile,e.formscope.phone_number=visitorInfo.phone_number,e.formscope.phone_number_country_code=visitorInfo.phone_number_country_code}).error(function(e){g.error(e.error),m.go("contactmanagements.list")}),e.add_data=function(o){f.validate(o).success(function(){e.formscope.mobile=e.formscope.country_code+"-"+e.formscope.mobile,e.formscope.phone_number=e.formscope.phone_number_country_code+"-"+e.formscope.phone_number,e.isSubmitted=!0,e.formscope._method="PUT",c.updateRecord(e.urlID,e.formscope).success(function(o){g.success(o.success),m.go("contactmanagements.list"),e.isSubmitted=!1}).error(function(o){g.error(o.error),e.isSubmitted=!1})}).error(function(){e.isSubmitted=!1})}}e.$inject=["$scope","fileReader","$filter","$uibModal","$rootScope","$compile","UsersFactory","VisitorsFactory","OrganizationsFactory","Contactmanagement","$timeout","$stateParams","$state","$injector","Notification"],angular.module("BlurAdmin.pages.contactmanagements").controller("EditContactmanagementsCtrl",e)}(),function(){"use strict";function e(e,o,t,a,i,n,r,s,l,c,d,u){e.dtInstance={},e.reloadData=function(){e.dtInstance.rerender()},e.createdRow=function(o,t,a){r(angular.element(o).contents())(e)},e.deleteRecord=function(e){c.deleteRecord(e).success(function(e){u.success(e.success),o.reload()}).error(function(e){u.error(e.error)})},e.actionRoles=function(e,o,t){return"<a ui-sref='contactmanagements.viewdetails({ id: "+t.id+" })'><i class='fa fa-eye'></i></a> <a ui-sref='contactmanagements.edit({ id: "+t.id+" })'><i class='fa fa-edit'></i></a> <a class='cursor-pointer' ng-if=\"havePermission('tours','delete');\" style='cursor:pointer' ng-confirm-click='Are you sure to delete this contact?' confirmed-click='deleteRecord("+t.id+")' title='Delete contact'><i class='fa fa-trash'></i></a>"},e.genderRender=function(e,o,t){return"f"==e?"Female":"m"==e?"Male":"-"},e.statusAction=function(e,o,t){return"2"==e.status?'<small class="label label-danger">Inactive</small>':'<small class="label label-success">Active</small>'},e.indexNumber=function(e,o,t,a){var i=Number(a.row)+Number(1),n=a.settings._iDisplayStart+i;return"<span>"+n+"</span>"},e.dtOptions=s.newOptions().withDataProp("data").withOption("ajax",function(o,t,a){c.showDataTable(o).success(function(o){o.error?e.reloadData():t(o)}).error(function(o){o&&e.reloadData()})}).withOption("processing",!0).withOption("serverSide",!0).withPaginationType("simple_numbers").withOption("order",[1,"asc"]).withDOM("lftip").withOption("searchDelay",500).withOption("createdRow",e.createdRow),e.dtColumns=[l.newColumn("id").withTitle("No").withOption("searchable",!1).renderWith(e.indexNumber).withClass("table-index"),l.newColumn("name").withTitle("Name").withOption("searchable",!0),l.newColumn("email").withTitle("Email").withOption("searchable",!0),l.newColumn("mobile").withTitle("Mobile").withOption("searchable",!0),l.newColumn("visitordata.name").withTitle("Visitor Type").withOption("searchable",!0),l.newColumn("organization").withTitle("Organization").withOption("searchable",!0),l.newColumn("gender").withTitle("Gender").withOption("searchable",!0),l.newColumn(null).withTitle("Status").withOption("searchable",!1).notSortable().renderWith(e.statusAction),l.newColumn(null).withTitle("Action").withOption("searchable",!1).notSortable().renderWith(e.actionRoles)]}e.$inject=["$scope","$state","fileReader","$filter","$uibModal","$rootScope","$compile","DTOptionsBuilder","DTColumnBuilder","Contactmanagement","$timeout","Notification"],angular.module("BlurAdmin.pages.contactmanagements").controller("ListContactmanagementsCtrl",e)}(),function(){"use strict";function e(e,o,t,a,i,n,r,s,l,c,d,u){e.pageName="Contact - View",e.btnName="View",e.isSubmitted=!1,e.urlID=r.id,e.genderOption=[{label:"-",value:""},{label:"Male",value:"m"},{label:"Female",value:"f"}],e.OrganizationOption=[{name:"-",id:null}],s.getRecords().success(function(o){e.OrganizationOption=e.OrganizationOption.concat(o.data)}).error(function(e){}),e.showStatus=function(o){var a=[];return o?(void 0===o.gender&&null==o.gender&&""==o.gender||(a=t("filter")(e.genderOption,{value:o.gender})),a.length?a[0].label:"-"):"-"},e.organizationType=function(o){var a=[];return o?(void 0===o.organization_id&&null==o.organization_id&&""==o.organization_id||(a=t("filter")(e.OrganizationOption,{id:o.organization_id})),a.length?a[0].name:"-"):"-"},l.getRecord(e.urlID).success(function(o){e.formscope=o.data}).error(function(e){Notification.error(e.error),$state.go("roles.list")})}e.$inject=["$scope","fileReader","$filter","$uibModal","$rootScope","$compile","$stateParams","OrganizationsFactory","Contactmanagement","$timeout","ngDialog","$config"],angular.module("BlurAdmin.pages.contactmanagements").controller("ViewContactmanagementsCtrl",e)}(),function(){"use strict";function e(e,o,t,a,i,n,r,s,l,c,d,u,m,p,g,f){e.pageName="Dashboard",g.getRecord().success(function(o){e.charts=o.data.countData,e.totalTour=o.data.totalTour,e.tourFilterData=o.data.tourCountData,1==Object.keys(i.role)[0]&&(e.tourFilterData.Today_Total_Volunteer=o.data.today_total_volunteer)}).error(function(e){}),e.dtInstance={},e.isSubmitted=!1,e.tours={},e.reloadData=function(){e.dtInstance.rerender()},e.createdRow=function(o,t,a){n(angular.element(o).contents())(e)},e.nameView=function(e,o,t){return"<a ui-sref='tours.viewdetails({ id: "+t.id+" })'>"+t.name+"</a>"},e.actionTours=function(e,o,t){return"<a title='View Tour' ui-sref='tours.viewdetails({ id: "+t.id+" })'><i class='fa fa-eye'></i></a> <a ng-if=\"havePermission('tours','update');\" ui-sref='tours.edit({ id: "+t.id+" })' title='Edit Tour'><i class='fa fa-edit'></i></a>"},e.setPerson=function(e,o,t){return Number(e.adults)+Number(e.children)+Number(e.senior)},e.statusAction=function(e,o,t){return"0"==e.status?'<small class="label label-warning">Pending</small>':"1"==e.status?'<small class="label label-info">Acknowledge</small>':"2"==e.status?'<small class="label label-success">Approved</small>':"3"==e.status?'<small class="label label-danger">Rejected</small>':'<small class="label label-primary">Completed</small>'},e.mealOptions=function(e,o,t){return"1"==e.meals?"Yes":"No"},e.momentosOption=function(e,o,t){return t.tour_momentos.length>0?"Yes":"No"},e.indexNumber=function(e,o,t,a){var i=Number(a.row)+Number(1),n=a.settings._iDisplayStart+i;return"<span>"+n+"</span>"},e.dtOptions=u.newOptions().withDataProp("data").withOption("ajax",function(o,t,a){g.getTourDataTable(o).success(function(o){o.error?e.reloadData():t(o)}).error(function(o){o&&e.reloadData()})}).withOption("processing",!0).withOption("serverSide",!0).withPaginationType("simple_numbers").withOption("order",[0,"desc"]).withDOM("lftip").withOption("searchDelay",500).withOption("createdRow",e.createdRow),e.dtColumns=[m.newColumn("id").withTitle("No").withOption("searchable",!1).renderWith(e.indexNumber).withClass("table-index"),m.newColumn("name").withTitle("Tour Name").withOption("searchable",!0),m.newColumn("organization").withTitle("Organization Name").withOption("searchable",!0),m.newColumn("start_date").withTitle("Date Time Arriving").withOption("searchable",!0),m.newColumn(null).withTitle("# of Visitors").withOption("searchable",!1).notSortable().renderWith(e.setPerson),m.newColumn("category").withTitle("Category").withOption("searchable",!0),m.newColumn("tour_tapes.name").withTitle("Tour Type").withOption("searchable",!0),m.newColumn("tour_manager.name").withTitle("Tour Manager").withOption("searchable",!0),m.newColumn(null).withTitle("Meal").withOption("searchable",!1).notSortable().renderWith(e.mealOptions),m.newColumn(null).withTitle("Momento").withOption("searchable",!0).renderWith(e.momentosOption),m.newColumn(null).withTitle("Action").withOption("searchable",!1).notSortable().renderWith(e.actionTours)]}e.$inject=["$scope","fileReader","$filter","$uibModal","$rootScope","$compile","$timeout","$stateParams","$state","$injector","Notification","DTOptionsBuilder","DTColumnBuilder","UsersFactory","DashboardsFactory","ToursFactory"],angular.module("BlurAdmin.pages.dashboard").controller("DashboardCtrl",e)}(),function(){"use strict";function e(e,o,t,a,i,n,r,s,l,c,d,u){e.pageName="Add",e.btnName="Add",e.isSubmitted=!1,e.formscope={gender:null,organization_id:null,visitor_type:null,status:1},e.statusOption=[{
value:0,text:"Inactive"},{value:1,text:"Active"}];var m=d.get("$validation");e.errorMessage=r.validation,e.add_data=function(o){m.validate(o).success(function(){e.isSubmitted=!0,r.addRecord(e.formscope).success(function(o){u.success(o.success),c.go("defaulttasks.list"),e.isSubmitted=!1}).error(function(o){u.error(o.error),e.isSubmitted=!1})}).error(function(){e.isSubmitted=!1})}}e.$inject=["$scope","fileReader","$filter","$uibModal","$rootScope","$compile","DefaulttasksFactory","$timeout","$stateParams","$state","$injector","Notification"],angular.module("BlurAdmin.pages.defaulttasks").controller("AddDefaulttasksCtrl",e)}(),function(){"use strict";function e(e,o,t,a,i,n,r,s,l,c,d,u,m){e.pageName="Edit",e.btnName="Update",e.isSubmitted=!1,e.urlID=c.id,e.statusOption=[{value:0,text:"Inactive"},{value:1,text:"Active"}];var p=u.get("$validation");e.errorMessage=r.validation,r.getRecord(e.urlID).success(function(o){e.formscope=o.data}).error(function(e){m.error(e.error),d.go("defaulttasks.list")}),e.add_data=function(o){p.validate(o).success(function(){e.isSubmitted=!0,e.formscope._method="PUT",r.updateRecord(e.urlID,e.formscope).success(function(o){m.success(o.success),d.go("defaulttasks.list"),e.isSubmitted=!1}).error(function(o){m.error(o.error),e.isSubmitted=!1})}).error(function(){e.isSubmitted=!1})}}e.$inject=["$scope","fileReader","$filter","$uibModal","$rootScope","$compile","DefaulttasksFactory","Contactmanagement","$timeout","$stateParams","$state","$injector","Notification"],angular.module("BlurAdmin.pages.defaulttasks").controller("EditDefaulttasksCtrl",e)}(),function(){"use strict";function e(e,o,t,a,i,n,r,s,l){r.getAllRecords().success(function(o){e.formscope=o.data}).error(function(e){Notification.error(e.error),$state.go("defaulttasks.list")})}e.$inject=["$scope","fileReader","$filter","$uibModal","$rootScope","$compile","TourtypesFactory","DefaulttasksFactory","$timeout"],angular.module("BlurAdmin.pages.defaulttasks").controller("ListDefaulttasksCtrl",e)}(),function(){"use strict";function e(e,o,t,a,i,n,r,s,l,c,d,u){e.pageName="Settings - Update",e.action="Send",e.formscope={},e.isSubmitted=!1,e.error="";var m=d.get("$validation");e.errorMessage=r.validation,e.forgotSubmit=function(o){e.isSubmitted=!0,m.validate(o).success(function(){e.loginProgress=!0;var o={email:e.formscope.email};r.forgotPassword(o).success(function(o){u.success(o.success),e.isSubmitted=!1,e.loginProgress=!1,c.go("login")}).error(function(o){e.isSubmitted=!1,e.loginProgress=!1,u.error(o.error)})}).error(function(){e.loginProgress=!1,e.isSubmitted=!1})}}e.$inject=["$scope","fileReader","$filter","$uibModal","$rootScope","$compile","AuthenticationFactory","$timeout","$stateParams","$state","$injector","Notification"],angular.module("BlurAdmin.pages.forgotpassword").controller("ForgotPasswordCtrl",e)}(),function(){"use strict";function e(e,o,t,a,i,n,r,s,l,c,d,u){e.pageName="Settings - Update",e.action="Change",e.formscope={},e.isSubmitted=!1,e.token=l.token,e.errorMessage=r.validation;var m=d.get("$validation");m.setExpression({confirmPassword:function(e,o,t,a){return o.formscope.password===o.formscope.confirm_password}}).setDefaultMsg({confirmPassword:{error:"Passwords do not match."}}),e.resetSubmit=function(o){e.isSubmitted=!0,m.validate(o).success(function(){e.loginProgress=!0;var o={email:e.formscope.email,password:e.formscope.password,password_confirmation:e.formscope.confirm_password,token:e.token};r.resetPassword(o).success(function(o){u.success(o.success),e.isSubmitted=!1,e.loginProgress=!1,c.go("login")}).error(function(o){e.isSubmitted=!1,e.loginProgress=!1,u.error(o.error)})}).error(function(){e.loginProgress=!1,e.isSubmitted=!1})}}e.$inject=["$scope","fileReader","$filter","$uibModal","$rootScope","$compile","AuthenticationFactory","$timeout","$stateParams","$state","$injector","Notification"],angular.module("BlurAdmin.pages.forgotpassword").controller("ResetPasswordCtrl",e)}(),function(){"use strict";function e(e,o,t,a,i,n,r,s,l,c){e.formscope={status:1},e.pageName="Login",e.btnName="Login",e.isSubmitted=!1,e.admin={},l.email&&l.password&&(e.admin.email=l.email,e.admin.password=l.password),e.isFormSubmit=!1,e.loginSubmit=function(t){if(e.submit=!0,e.isFormSubmit=!0,t){var a={email:e.admin.email,password:e.admin.password};e.loginProgress=!0,r.login(a).success(function(t){if(t&&t.result.token){c.success(t.result.message),l.put("token",t.result.token);var a={};a=t.result.user,l.put("authUser",JSON.stringify(a)),n.permissions=t.result.permissions,n.auth_user=t.result.user,n.role=t.result.role,n.auth_user.image?n.profilePicture=config.profile_url+a.id+"/"+a.image:n.profilePicture=config.profile_url+"/noImage.png",o.go("dashboard")}else c.error("These credentials do not match our records."),e.loginProgress=!1;e.isFormSubmit=!1}).error(function(o){e.isFormSubmit=!1;var t=o.error?o.error:"Invalid login detail.";c.error(t),e.loginProgress=!1})}}}e.$inject=["$scope","$state","fileReader","$filter","$uibModal","$rootScope","AuthenticationFactory","$timeout","$cookies","Notification"],angular.module("BlurAdmin.pages.login").controller("LoginPageCtrl",e)}(),function(){"use strict";function e(e,o,t,a,i,n,r,s,l,c,d){e.dtInstance={},i.initialise(),e.reloadData=function(){e.dtInstance.rerender()},e.createdRow=function(o,t,a){n(angular.element(o).contents())(e)},e.indexNumber=function(e,o,t,a){var i=Number(a.row)+Number(1),n=a.settings._iDisplayStart+i;return"<span>"+n+"</span>"},e.changeDateFormat=function(e,o,t,a){return"<span>{{"+e.created_at+" | amUtc | amLocal | amDateFormat:'dddd, MMMM Do YYYY, hh:mm:ss a'}}</span>"},e.dtOptions=r.newOptions().withDataProp("data").withOption("ajax",function(o,t,a){l.showDataTable(o).success(function(o){o.error?e.reloadData():t(o)}).error(function(o){o.error&&e.reloadData()})}).withOption("processing",!0).withOption("serverSide",!0).withPaginationType("simple_numbers").withOption("order",[2,"desc"]).withDOM("lftip").withOption("searchDelay",500).withOption("createdRow",e.createdRow),e.dtColumns=[s.newColumn("id").withTitle("No").withOption("searchable",!1).renderWith(e.indexNumber).withClass("table-index"),s.newColumn("message").withTitle("Message").withOption("searchable",!0),s.newColumn("created_at").withTitle("Date Time").withOption("searchable",!0)]}e.$inject=["$scope","fileReader","$filter","$uibModal","$rootScope","$compile","DTOptionsBuilder","DTColumnBuilder","NotificationsFactory","$timeout","ngDialog"],angular.module("BlurAdmin.pages.notifications").controller("NotificationsCtrl",e)}(),function(){"use strict";function e(e,o){e.link="",e.ok=function(){o.close(e.link)}}e.$inject=["$scope","$uibModalInstance"],angular.module("BlurAdmin.pages.profile").controller("ProfileModalCtrl",e)}(),function(){"use strict";function e(e,o,t,a){e.picture=t("profilePicture")("Nasta"),e.removePicture=function(){e.picture=t("appImage")("theme/no-photo.png"),e.noPicture=!0},e.uploadPicture=function(){document.getElementById("uploadFile");e.click()},e.socialProfiles=[{name:"Facebook",href:"https://www.facebook.com/akveo/",icon:"socicon-facebook"},{name:"Twitter",href:"https://twitter.com/akveo_inc",icon:"socicon-twitter"},{name:"Google",icon:"socicon-google"},{name:"LinkedIn",href:"https://www.linkedin.com/company/akveo",icon:"socicon-linkedin"},{name:"GitHub",href:"https://github.com/akveo",icon:"socicon-github"},{name:"StackOverflow",icon:"socicon-stackoverflow"},{name:"Dribbble",icon:"socicon-dribble"},{name:"Behance",icon:"socicon-behace"}],e.unconnect=function(o){e.href=void 0},e.showModal=function(o){a.open({animation:!1,controller:"ProfileModalCtrl",templateUrl:"app/pages/profile/profileModal.html"}).result.then(function(o){e.href=o})},e.getFile=function(){o.readAsDataUrl(e.file,e).then(function(o){e.picture=o})},e.switches=[!0,!0,!1,!0,!0,!1]}e.$inject=["$scope","fileReader","$filter","$uibModal"],angular.module("BlurAdmin.pages.profile").controller("ProfilePageCtrl",e)}(),function(){"use strict";function e(e,o,t,a,i,n,r,s,l,c,d,u){e.pageName="Add",e.action="Add",e.role={role_type:3,is_editable:1,permissions:{}},e.isSubmitted=!1;var m=d.get("$validation");r.getAllPermission().success(function(o){e.role.permissions=o}).error(function(e){u.error(e.error),c.go("roles.list")}),e.roleMessage=r.validation,e.submitRole=function(o){e.isSubmitted=!0,m.validate(o).success(function(){r.addRole(e.role).success(function(o){u.success(o.success),c.go("roles.list"),e.isSubmitted=!1}).error(function(o){u.error(o.error),e.isSubmitted=!1})}).error(function(){e.isSubmitted=!1})}}e.$inject=["$scope","fileReader","$filter","$uibModal","$rootScope","$compile","RolesFactory","$timeout","$stateParams","$state","$injector","Notification"],angular.module("BlurAdmin.pages.roles").controller("AddRolesCtrl",e)}(),function(){"use strict";function e(e,o,t,a,i,n,r,s,l,c,d,u){e.pageName="Edit",e.action="Update",e.roleId=l.id,e.role={},e.isSubmitted=!1;var m=d.get("$validation");r.getRole(e.roleId).success(function(o){e.role=o.data}).error(function(e){u.error(e.error),c.go("roles.list")}),e.roleMessage=r.validation,e.submitRole=function(o){e.isSubmitted=!0,m.validate(o).success(function(){r.updateRole(e.role.id,e.role).success(function(o){u.success(o.success),c.go("roles.list"),e.isSubmitted=!1}).error(function(o){u.error(o.error),e.isSubmitted=!1})}).error(function(){e.isSubmitted=!1})}}e.$inject=["$scope","fileReader","$filter","$uibModal","$rootScope","$compile","RolesFactory","$timeout","$stateParams","$state","$injector","Notification"],angular.module("BlurAdmin.pages.roles").controller("EditRolesCtrl",e)}(),function(){"use strict";function e(e,o,t,a,i,n,r,s,l,c,d,u,m){e.dtInstance={},e.reloadData=function(){e.dtInstance.rerender()},e.createdRow=function(o,t,a){r(angular.element(o).contents())(e)},e.showPermissions=function(e,o,t){return"<a href='javascript:void(0);' ng-click='getPermissions("+t.id+")'>Show Permissions</a>"},e.getPermissions=function(o){u.open({template:"app/pages/roles/modal/showPermissions.html",scope:e,controller:["$scope","RolesFactory","id",function(o,t,a){e.role={},t.getRolePermisssions(a).success(function(o){e.role.permissions=o}).error(function(e){})}],resolve:{id:function(){return o}}})},e.deleteRecord=function(e){c.deleteRecord(e).success(function(e){m.success(e.success),o.reload()}).error(function(e){m.error(e.error)})},e.actionRoles=function(e,o,t){return 0!=t.is_editable?"<a ui-sref='roles.edit({ id: "+t.id+" })'><i class='fa fa-edit'></i></a> <a class='cursor-pointer' ng-if=\"havePermission('roles','delete');\" style='cursor:pointer' ng-confirm-click='Are you sure to delete this role?' confirmed-click='deleteRecord("+t.id+")' title='Delete role'><i class='fa fa-trash'></i></a>":"-"},e.indexNumber=function(e,o,t,a){var i=Number(a.row)+Number(1),n=a.settings._iDisplayStart+i;return"<span>"+n+"</span>"},e.dtOptions=s.newOptions().withDataProp("data").withOption("ajax",function(o,t,a){c.showDataTable(o).success(function(o){o.error?e.reloadData():t(o)}).error(function(o){o.error&&e.reloadData()})}).withOption("processing",!0).withOption("serverSide",!0).withPaginationType("simple_numbers").withOption("order",[0,"asc"]).withDOM("lftip").withOption("searchDelay",500).withOption("createdRow",e.createdRow),e.dtColumns=[l.newColumn("id").withTitle("No").withOption("searchable",!1).renderWith(e.indexNumber).withClass("table-index"),l.newColumn("name").withTitle("Role Name"),l.newColumn("description").withTitle("Description"),l.newColumn("created_at").withTitle("Role Created On").withOption("searchable",!0),l.newColumn("count").withTitle("Total Permissions").withOption("searchable",!1).renderWith(e.showPermissions).notSortable(),l.newColumn(null).withTitle("Action").withOption("searchable",!1).renderWith(e.actionRoles).notSortable()]}e.$inject=["$scope","$state","fileReader","$filter","$uibModal","$rootScope","$compile","DTOptionsBuilder","DTColumnBuilder","RolesFactory","$timeout","ngDialog","Notification"],angular.module("BlurAdmin.pages.roles").controller("RolesCtrl",e)}(),function(){"use strict";function e(e,o,t,a,i,n,r,s,l,c,d,u){e.pageName="Settings - Update",e.action="Update",e.formscope={},e.isSubmitted=!1;var m=d.get("$validation");r.getAllSettings().success(function(o){e.formscope=o.data}).error(function(e){}),e.errorMessage=r.validation,e.updateSetting=function(o){e.isSubmitted=!0,m.validate(o).success(function(){r.updateRecord(e.formscope.id,e.formscope).success(function(o){u.success(o.success),e.isSubmitted=!1}).error(function(o){u.error(o.error),e.isSubmitted=!1})}).error(function(){e.isSubmitted=!1})}}e.$inject=["$scope","fileReader","$filter","$uibModal","$rootScope","$compile","SettingsFactory","$timeout","$stateParams","$state","$injector","Notification"],angular.module("BlurAdmin.pages.settings").controller("SettingsCtrl",e)}(),function(){"use strict";function e(e,o,t,a,i,n,r,s,l,c,d,u,m,p,g,f,v,b,h,y,w,_,M,x,T,S,P){e.pageName="View",e.btnName="Update",e.isSubmitted=!1,e.urlID=h.id,e.activeTaskList=[],e.addTaskBtn=!1,e.minDateMoment=moment().subtract("day"),e.visitors=[],e.mealsType=[],e.selectedMeals=[],e.showTable=!0,e.smartTablePageSize=5,e.genderOption=[{label:"-",value:""},{label:"Male",value:"m"},{label:"Female",value:"f"}],e.TransportOption=[{name:"Please select transport type",id:null}],v.getAllRecords().success(function(o){e.TransportOption=e.TransportOption.concat(o.data)}).error(function(e){}),e.TourTypeOption=[{name:"Please select tour type",id:null}],f.getAllRecords().success(function(o){e.TourTypeOption=e.TourTypeOption.concat(o.data)}).error(function(e){}),e.OrganizationTypeOption=[{name:"Please select organization type",id:null}],p.getAllRecords().success(function(o){e.OrganizationTypeOption=e.OrganizationTypeOption.concat(o.data)}).error(function(e){}),e.mealsTypeOption=[{name:"Please select meal type",id:null}],m.getAllRecords().success(function(o){e.mealsTypeOption=e.mealsTypeOption.concat(o.data)}).error(function(e){}),e.locationsTypeOption=[{name:"Please select location",id:null}],u.getAllRecords().success(function(o){e.locationsTypeOption=e.locationsTypeOption.concat(o.data)}).error(function(e){}),e.mealServiceTypeOption=[{name:"Please select meal service type",id:null}],c.getAllRecords().success(function(o){e.mealServiceTypeOption=e.mealServiceTypeOption.concat(o.data)}).error(function(e){}),e.mealServiceLocationsOption=[{name:"Please select meal service location",id:null}],d.getAllRecords().success(function(o){e.mealServiceLocationsOption=e.mealServiceLocationsOption.concat(o.data)}).error(function(e){}),e.VisitorOption=[{name:"Please select visitor type",id:null}],r.getAllRecords().success(function(o){e.VisitorOption=e.VisitorOption.concat(o.data)}).error(function(e){}),e.usersOption=[{name:"Please select catering manager",id:null}],l.getRecords().success(function(o){e.usersOption=e.usersOption.concat(o.data)}).error(function(e){}),e.showMealsTypeOption=function(o){var a=[];return null!=o.meal_id&&(a=t("filter")(e.mealsTypeOption,{id:o.meal_id})),a.length?a[0].name:"-"},e.showMealServiceTypeOption=function(o){var a=[];return null!=o.meal_service_type_id&&(a=t("filter")(e.mealServiceTypeOption,{id:o.meal_service_type_id})),a.length?a[0].name:"-"},e.showMealServiceLocationsOption=function(o){var a=[];return null!=o.meal_service_location_id&&(a=t("filter")(e.mealServiceLocationsOption,{id:o.meal_service_location_id})),a.length?a[0].name:"-"},e.showCateringManager=function(o){var a=[];return null!=o.catering_manager&&(a=t("filter")(e.usersOption,{id:o.catering_manager})),a.length?a[0].name:"-"},e.showOrganizationTypeOption=function(o){var a=[];return null!=o.organization_id&&(a=t("filter")(e.OrganizationTypeOption,{id:o.organization_id})),a.length?a[0].name:"-"},e.showVisitorOption=function(o){var a=[];return null!=o.visitor_type&&(a=t("filter")(e.VisitorOption,{id:o.visitor_type})),a.length?a[0].name:"-"},e.showGenderOption=function(o){var a=[];return null!=o.gender&&(a=t("filter")(e.genderOption,{value:o.gender})),a.length?a[0].label:"-"},s.viewRecord(e.urlID).success(function(o){e.formscope=o.data,e.formscope.meals=1==o.data.meals,e.activeTask=o.data.tour_tasks,e.mealsType=o.data.tour_meals,$.each(o.data.tour_visitors,function(t,a){1==o.data.tour_visitors[t].is_tour_admin&&(o.data.contact_manager=o.data.tour_visitors[t].visitor.email,e.contactManagerDetails=o.data.tour_visitors[t],e.contactManagerDetails.address=""!=e.contactManagerDetails.visitor.address?e.contactManagerDetails.visitor.address+", ":"",e.contactManagerDetails.address1=""!=e.contactManagerDetails.visitor.address1?e.contactManagerDetails.visitor.address1+", ":"",e.contactManagerDetails.city=""!=e.contactManagerDetails.visitor.city?e.contactManagerDetails.visitor.city+", ":"",e.contactManagerDetails.state=""!=e.contactManagerDetails.visitor.state?e.contactManagerDetails.visitor.state+", ":"",e.contactManagerDetails.countryName=null!=e.contactManagerDetails.visitor.country?e.contactManagerDetails.visitor.country.country_name+", ":"",e.contactManagerDetails.zip_code=""!=e.contactManagerDetails.visitor.zip_code?e.contactManagerDetails.visitor.zip_code:"",e.contactManagerDetails.fullAddress=e.contactManagerDetails.address+e.contactManagerDetails.address1+e.contactManagerDetails.city+e.contactManagerDetails.state+e.contactManagerDetails.countryName+e.contactManagerDetails.zip_code),e.visitors.push(o.data.tour_visitors[t].visitor)}),e.formscope.visitors=e.visitors,e.formscope.mealsType=e.mealsType,e.formscope.tasks=o.data.tour_tasks}).error(function(e){_.error(e.error),y.go("tours.list")}),e.approveRejectTour=function(o){var t={tour_id:e.urlID,action:o,name:e.contactManagerDetails.visitor.name,comment:e.formscope.comment};s.actionRecord(t).success(function(t){console.log("Acknowlege............ "),_.success(t.success),e.formscope.status=o,e.isSubmitted=1}).error(function(o){_.error(o.error),e.isSubmitted=1})},e.visitorOptions=T.newOptions().withPaginationType("simple_numbers"),e.visitorColumnDefs=[P.newColumnDef(0),P.newColumnDef(1),P.newColumnDef(2),P.newColumnDef(3),P.newColumnDef(4),P.newColumnDef(5)]}e.$inject=["$scope","fileReader","$filter","$uibModal","$rootScope","$compile","VisitorsFactory","ToursFactory","UsersFactory","MealservicetypesFactory","MealservicelocationsFactory","LocationsFactory","MealsFactory","OrganizationsFactory","DefaulttasksFactory","TourtypesFactory","TransportsFactory","$timeout","$stateParams","$state","$injector","Notification","editableOptions","editableThemes","DTOptionsBuilder","DTColumnBuilder","DTColumnDefBuilder"],angular.module("BlurAdmin.pages.tours").controller("AcknowledgeCtrl",e)}(),function(){"use strict";function e(e,o){e.comment="",e.message="",e.ok=function(){o.close(e.comment)}}e.$inject=["$scope","$uibModalInstance"],angular.module("BlurAdmin.pages.tours").controller("AddCommentModalCtrl",e)}(),function(){"use strict";function e(e,o,t,a,i,n,r,s,l,c,d){e.btnName="Add",e.titleName="Add Document",e.isSubmitted=!1;var u=o.auth_user.name;e.formdocscope={name:u},e.loginID=o.auth_user.id,l&&(e.btnName="Update",e.titleName="Edit Document",e.formdocscope.title=c,e.formdocscope.link=l,e.formdocscope.name=d,e.formdocscope.created_by=e.loginID);var m=a.get("$validation");e.errorMessage=s.validation;var p={link:/(ftp|http|https):\/\/(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-\/]))?/},g={link:{error:e.errorMessage.link.error,success:""}};m.setExpression(p).setDefaultMsg(g),e.add_data=function(o){m.validate(o).success(function(){n.close(e.formdocscope)}).error(function(){e.isSubmitted=!1})}}e.$inject=["$scope","$rootScope","$compile","$injector","UsersFactory","$uibModalInstance","Notification","ToursFactory","docLink","docTitle","docName"],angular.module("BlurAdmin.pages.tours").controller("AddDocumentModalCtrl",e)}(),function(){"use strict";function e(e,o,t,a,i,n,r,s,l,c,d,u,m,p){e.btnName="Add",e.formTitle="Add",e.isSubmitted=!1,e.mealServiceTypeDescription,e.formscope={meal_id:null,old_meal_id:null,meal_service_type_id:null,meal_service_location_id:null,catering_manager:null};var g=0;p&&(e.btnName="Update",e.formTitle="Edit",e.formscope.meal_id=p.meal_id,e.formscope.meal_service_type_id=p.meal_service_type_id,e.formscope.meal_service_location_id=p.meal_service_location_id,e.formscope.catering_manager=p.catering_manager,e.formscope.people=p.people,e.formscope.specific_item=p.specific_item,e.formscope.old_meal_id=p.meal_id,g=p.meal_id),0==m.length?$.each(u,function(e,o){delete u[e].isDisabled}):$.each(u,function(e,o){void 0!=u[e].id&&(delete u[e].isDisabled,$.inArray(parseInt(u[e].id),m)>=0&&u[e].id!=g&&(u[e].isDisabled=!0))}),e.mealsTypeOption=u,e.mealServiceTypeOption=[{name:"Please select meal service type",id:null}],s.getRecords().success(function(o){e.mealServiceTypeOption=e.mealServiceTypeOption.concat(o.data)}).error(function(e){}),e.mealServiceLocationsOption=[{name:"Please select meal service location",id:null}],r.getRecords().success(function(o){if(e.mealServiceLocationsOption=e.mealServiceLocationsOption.concat(o.data),p){var t=e.mealServiceLocationsOption.find(function(e){return e.id==p.meal_service_type_id});t&&(e.mealServiceTypeDescription=t.description)}}).error(function(e){}),e.usersOption=[{name:"Please select catering manager",id:null}],n.getRecords().success(function(o){e.usersOption=e.usersOption.concat(o.data),$.each(e.usersOption,function(o,t){void 0!=e.usersOption[o].id&&1==e.usersOption[o].availability&&(e.usersOption[o].isDisabled=!0)})}).error(function(e){}),e.checkNumber=function(o){e.formscope.people&&0==e.formscope.people.charAt(0)&&(e.formscope.people="")},e.mealServiceTypeChanged=function(o){o&&(e.mealServiceTypeDescription=o.description)};var f=a.get("$validation");e.errorMessage=d.validation,e.add_data=function(o){f.validate(o).success(function(){return"0"!=e.formscope.people&&0!=e.formscope.people&&""!=e.formscope.people&&(e.formscope.meal_txt=e.mealsTypeOption.filter(function(o){return o.id===e.formscope.meal_id})[0].name,e.formscope.mealservice_txt=e.mealServiceTypeOption.filter(function(o){return o.id===e.formscope.meal_service_type_id})[0].name,e.formscope.meallocation_txt=e.mealServiceLocationsOption.filter(function(o){return o.id===e.formscope.meal_service_location_id})[0].name,e.formscope.catering_manager_txt=e.usersOption.filter(function(o){return o.id===e.formscope.catering_manager})[0].name,void l.close(e.formscope))}).error(function(){e.isSubmitted=!1})}}e.$inject=["$scope","$rootScope","$compile","$injector","MealsFactory","UsersFactory","MealservicelocationsFactory","MealservicetypesFactory","$uibModalInstance","Notification","ToursFactory","meals","selectedMeals","mealData"],angular.module("BlurAdmin.pages.tours").controller("AddMealModalCtrl",e)}(),function(){"use strict";function e(e,o,t,a,i,n){if(e.formscope={},e.meetingtime_hour=[{value:"1",label:"1",isDisabled:!1},{value:"2",label:"2",isDisabled:!1},{value:"3",label:"3",isDisabled:!1},{value:"4",label:"4",isDisabled:!1},{value:"5",label:"5",isDisabled:!1},{value:"6",label:"6",isDisabled:!1},{value:"7",label:"7",isDisabled:!1},{value:"8",label:"8",isDisabled:!1},{value:"9",label:"9",isDisabled:!1},{value:"10",label:"10",isDisabled:!1},{value:"11",label:"11",isDisabled:!1},{value:"12",label:"12",isDisabled:!1}],e.meetingtime_min=[{value:"00",label:"00",isDisabled:!1},{value:"05",label:"05",isDisabled:!1},{value:"10",label:"10",isDisabled:!1},{value:"15",label:"15",isDisabled:!1},{value:"20",label:"20",isDisabled:!1},{value:"25",label:"25",isDisabled:!1},{value:"30",label:"30",isDisabled:!1},{value:"35",label:"35",isDisabled:!1},{value:"40",label:"40",isDisabled:!1},{value:"45",label:"45",isDisabled:!1},{value:"50",label:"50",isDisabled:!1},{value:"55",label:"55",isDisabled:!1}],e.meetingtime_format=[{value:"AM",label:"AM",isDisabled:!1},{value:"PM",label:"PM",isDisabled:!1}],e.btnName="Add",e.isSubmitted=!1,e.titleName="Add Meeting",e.minDateMoment=moment().subtract("day"),e.formscope.mobile_country_code="1",e.formscope.comment="",n.first_name){e.btnName="Update",e.titleName="Edit Meeting",e.formscope.meetingtime_hour=n.meetingtime_hour,e.formscope.meetingtime_min=n.meetingtime_min,e.formscope.meetingtime_format=n.meetingtime_format,e.formscope.first_name=n.first_name,e.formscope.last_name=n.last_name,e.formscope.email=n.email;var r;n.mobile&&n.mobile.indexOf("-")>-1?(r=n.mobile.split("-"),n.mobile_country_code=r[0],n.mobile=r[1]):n.mobile_country_code="1",e.formscope.mobile_country_code=n.mobile_country_code,e.formscope.mobile=n.mobile}e.showDropdownFirstName=!1,e.showDropdownLastName=!1,e.showDropdownEmail=!1,e.showDropdownMobile=!1,e.searching=!1,e.textNoResults="",e.closePopup=function(o){e.searchResult1=[],e.showDropdownFirstName=!1,e.showDropdownLastName=!1},e.hoverRow=function(o){e.currentIndex=o},e.searchResult1=[],e.checkPhoneNumber=function(o,t,a){if(o){var n={search_value:o};a&&(8==a.keyCode||a.keyCode>=48&&a.keyCode<=90||a.keyCode>=96&&a.keyCode<=105)&&o.length>=2&&i.checkRecordByPhone(n).success(function(o){0!=o.data.length?(e.searchResult1=o.data,"first_name"==t?e.showDropdownFirstName=!0:"last_name"==t?e.showDropdownLastName=!0:"email"==t?e.showDropdownEmail=!0:"mobile"==t&&(e.showDropdownMobile=!0),e.searching=!0):(e.searchResult1=[],e.textNoResults="No results found")}).error(function(e){})}else e.searchResult1=[],"first_name"==t?e.showDropdownFirstName=!1:"last_name"==t?e.showDropdownLastName=!1:"email"==t?e.showDropdownEmail=!1:"mobile"==t&&(e.showDropdownMobile=!1)},e.selectResult=function(o){if(o.name){e.formscope={};var t;o.mobile&&o.mobile.indexOf("-")>-1?(t=o.mobile.split("-"),o.mobile_country_code=t[0],o.mobile=t[1]):o.mobile_country_code="1",e.formscope=o,e.formscope.name=o.first_name+" "+o.last_name,e.$broadcast("angucomplete-alt:changeInput","firstName",o.first_name),e.$broadcast("angucomplete-alt:changeInput","lastName",o.last_name),e.$broadcast("angucomplete-alt:changeInput","email",o.email),e.$broadcast("angucomplete-alt:changeInput","mobile",o.mobile)}else e.formscope.first_name=o};var s=t.get("$validation");e.errorMessage=i.validation,e.add_data=function(o){s.validate(o).success(function(o){e.formscope.name=e.formscope.first_name+" "+e.formscope.last_name,e.formscope.mobile=e.formscope.mobile_country_code+"-"+e.formscope.mobile,a.close(e.formscope)}).error(function(o){e.isSubmitted=!1})}}e.$inject=["$scope","fileReader","$injector","$uibModalInstance","Contactmanagement","meetingInfo"],angular.module("BlurAdmin.pages.tours").controller("AddMeetingModalCtrl",e)}(),function(){"use strict";function e(e,o,t,a,i,n,r,s,l,c){e.btnName="Add",e.titleName="Add Note",e.isSubmitted=!1,e.loginID=o.auth_user.id;var d=o.auth_user.name;e.formnotescope={name:d},l&&(e.btnName="Update",e.titleName="Edit Note",e.formnotescope.note=l,e.formnotescope.name=c,e.formnotescope.created_by=e.loginID);var u=a.get("$validation");e.errorMessage=s.validation,e.add_data=function(o){u.validate(o).success(function(){n.close(e.formnotescope)}).error(function(){e.isSubmitted=!1})}}e.$inject=["$scope","$rootScope","$compile","$injector","UsersFactory","$uibModalInstance","Notification","ToursFactory","notesInfo","notesName"],angular.module("BlurAdmin.pages.tours").controller("AddNoteModalCtrl",e)}(),function(){"use strict";function e(e,o,t,a,i,n){if(e.formscope={},e.btnName="Add",e.isSubmitted=!1,e.titleName="Add Reference",e.formscope.mobile_country_code="1",e.formscope.comment="",n.first_name){e.btnName="Update",e.titleName="Edit Reference",e.formscope.first_name=n.first_name,e.formscope.last_name=n.last_name,e.formscope.email=n.email;var r;n.mobile&&n.mobile.indexOf("-")>-1?(r=n.mobile.split("-"),n.mobile_country_code=r[0],n.mobile=r[1]):n.mobile_country_code="1",e.formscope.mobile_country_code=n.mobile_country_code,e.formscope.mobile=n.mobile}e.showDropdownFirstName=!1,e.showDropdownLastName=!1,e.showDropdownEmail=!1,e.showDropdownMobile=!1,e.searching=!1,e.textNoResults="",e.closePopup=function(o){e.searchResult1=[],e.showDropdownFirstName=!1,e.showDropdownLastName=!1},e.hoverRow=function(o){e.currentIndex=o},e.searchResult1=[],e.checkPhoneNumber=function(o,t,a){if(o){var n={search_value:o};a&&(8==a.keyCode||a.keyCode>=48&&a.keyCode<=90||a.keyCode>=96&&a.keyCode<=105)&&o.length>=2&&i.checkRecordByPhone(n).success(function(o){0!=o.data.length?(e.searchResult1=o.data,"first_name"==t?e.showDropdownFirstName=!0:"last_name"==t?e.showDropdownLastName=!0:"email"==t?e.showDropdownEmail=!0:"mobile"==t&&(e.showDropdownMobile=!0),e.searching=!0):(e.searchResult1=[],e.textNoResults="No results found")}).error(function(e){})}else e.searchResult1=[],"first_name"==t?e.showDropdownFirstName=!1:"last_name"==t?e.showDropdownLastName=!1:"email"==t?e.showDropdownEmail=!1:"mobile"==t&&(e.showDropdownMobile=!1)},e.selectResult=function(o){if(o.name){e.formscope={};var t;o.mobile&&o.mobile.indexOf("-")>-1?(t=o.mobile.split("-"),o.mobile_country_code=t[0],o.mobile=t[1]):o.mobile_country_code="1",e.formscope=o,e.formscope.name=o.first_name+" "+o.last_name,e.$broadcast("angucomplete-alt:changeInput","firstName",o.first_name),e.$broadcast("angucomplete-alt:changeInput","lastName",o.last_name),e.$broadcast("angucomplete-alt:changeInput","email",o.email),e.$broadcast("angucomplete-alt:changeInput","mobile",o.mobile)}else e.formscope.first_name=o};var s=t.get("$validation");e.errorMessage=i.validation,e.add_data=function(o){s.validate(o).success(function(o){e.formscope.name=e.formscope.first_name+" "+e.formscope.last_name,e.formscope.mobile=e.formscope.mobile_country_code+"-"+e.formscope.mobile,a.close(e.formscope)}).error(function(o){e.isSubmitted=!1})}}e.$inject=["$scope","fileReader","$injector","$uibModalInstance","Contactmanagement","referenceInfo"],angular.module("BlurAdmin.pages.tours").controller("AddReferenceModalCtrl",e)}(),function(){"use strict";function e(e,o){e.task="",e.message="",e.ok=function(){e.task?o.close(e.task):e.message="Please add task"}}e.$inject=["$scope","$uibModalInstance"],angular.module("BlurAdmin.pages.tours").controller("AddTaskModalCtrl",e)}(),function(){"use strict";function e(e,o,t,a,i,n,r,s,l,c,d,u,m,p,g,f,v,b,h,y,w,_,M,x,T,S,P){if(e.sDate=h.date,h.date)var C=moment(h.date,"DDMMYYYYHHmmss").format("YYYY-MM-DD HH:mm:ss");else var C=null;e.pageName="Add Tour",e.btnName="Add",e.isSubmitted=!1,e.formscope={tourtype_id:null,transport_id:null,affiliate:null,location_id:null,language:"english",meals:1,manager:null,status:0,contact_manager:null,organization:"",start_date:C,momento_type:null,momento_quantity:null},e.tourLanguageOption=[{value:"english",label:"English",isDisabled:!1},{value:"gujarati",label:"Gujarati",isDisabled:!1},{value:"hindi",label:"Hindi",isDisabled:!1}],e.showTable=!0,e.smartTablePageSize=5,e.loginProgress=!1,e.loginID=i.auth_user.id,e.edittourtype=!1,e.organizationOption=[],s.getOrganization().success(function(o){e.organizationOption=e.organizationOption.concat(o.data)}).error(function(e){}),e.residentSelected=function(o){o&&(o.originalObject.organization?e.formscope.organization=o.originalObject.organization:e.formscope.organization=o.originalObject)},e.smartTablePageSize=10,e.activeTaskList=[],e.addTaskBtn=!1,e.minDateMoment=moment().subtract("day"),e.visitors=[],e.references=[],e.meetings=[],e.mealsType=[],e.selectedMeals=[],e.statusOption=[{value:0,text:"Inactive"},{value:1,text:"Active"}],e.TransportOption=[{name:"Please select transport type",id:null}],v.getRecords().success(function(o){e.TransportOption=e.TransportOption.concat(o.data)}).error(function(e){}),e.TourTypeOption=[{name:"Please select tour type",id:null}],f.getRecords().success(function(o){e.TourTypeOption=e.TourTypeOption.concat(o.data)}).error(function(e){}),e.OrganizationTypeOption=[{name:"Please select organization type",id:null}],p.getRecords().success(function(o){e.OrganizationTypeOption=e.OrganizationTypeOption.concat(o.data)}).error(function(e){}),e.mealsTypeOption=[{name:"Please select meal type",id:null}],m.getRecords().success(function(o){e.mealsTypeOption=e.mealsTypeOption.concat(o.data)}).error(function(e){}),e.locationsTypeOption=[{
name:"Please select location",id:null}],u.getRecords().success(function(o){e.locationsTypeOption=e.locationsTypeOption.concat(o.data)}).error(function(e){}),e.mealServiceTypeOption=[{name:"Please select meal service type",id:null}],c.getRecords().success(function(o){e.mealServiceTypeOption=e.mealServiceTypeOption.concat(o.data)}).error(function(e){}),e.mealServiceLocationsOption=[{name:"Please select meal service location",id:null}],d.getRecords().success(function(o){e.mealServiceLocationsOption=e.mealServiceLocationsOption.concat(o.data)}).error(function(e){}),e.managersOption=[{name:"Please select tour manager",id:null}],e.tourMomentoOptions=[{name:"Please select a momento",id:null}],S.getRecords().success(function(o){e.tourMomentoOptions=e.tourMomentoOptions.concat(o.data)}).error(function(e){}),l.getTourManager().success(function(o){e.managersOption=e.managersOption.concat(o.data),$.each(e.managersOption,function(o,t){void 0!=e.managersOption[o].id&&1==e.managersOption[o].availability&&(e.managersOption[o].isDisabled=!0)})}).error(function(e){}),e.VisitorOption=[{name:"Please select visitor type",id:null}],r.getRecords().success(function(o){e.VisitorOption=e.VisitorOption.concat(o.data)}).error(function(e){}),e.$watch("formscope.tourtype_id",function(o,t){o?(e.activeTaskList=[],g.getRecords(o).success(function(o){e.taskList=o.data;for(var t=0;t<e.taskList.length;t++)if(1==e.taskList[t].status){var a={task:e.taskList[t].task,status:1};e.activeTaskList.push(a)}}).error(function(e){}),e.addTaskBtn=!0):(e.addTaskBtn=!1,e.activeTaskList=[])}),e.unconnect=function(o){e.activeTaskList.splice(o,1)},e.connect=function(o){e.activeTaskList[o].status=1},e.showModal=function(o){a.open({animation:!0,size:"lg",controller:"AddTaskModalCtrl",templateUrl:"app/pages/tours/taskModal.html"}).result.then(function(o){var t={task:o,status:1};e.activeTaskList.push(t)})},e.addReferences=function(o){a.open({animation:!0,size:"lg",controller:"AddReferenceModalCtrl",templateUrl:"app/pages/tours/referenceModal.html",resolve:{referenceInfo:function(){return{}},isEdit:function(){return!1}}}).result.then(function(o){console.log("Previous References : ",e.references),console.log("References added : ",o);var t=!1;e.showReferenceTable=!1,$.each(e.references,function(a,i){void 0!=e.references[a].id&&e.references[a].id===o.id&&(t=!0)}),t?_.error("The reference you have entered already exist"):(e.references.splice(0,0,o),b(function(){e.$apply(),e.showReferenceTable=!0},100))})},e.editReference=function(o,t){a.open({animation:!0,size:"lg",controller:"AddReferenceModalCtrl",templateUrl:"app/pages/tours/referenceModal.html",resolve:{referenceInfo:function(){return o},isEdit:function(){return!1}}}).result.then(function(o){var a=!1;e.showReferenceTable=!1,$.each(e.references,function(i,n){void 0!=e.references[i].id&&e.references[i].id===o.id&&t!=i&&(a=!0)}),a?(_.error("The reference you have entered already exist."),b(function(){e.$apply(),e.showReferenceTable=!0},100)):(e.references[t]=o,b(function(){e.$apply(),e.showReferenceTable=!0},100))})},e.removeReference=function(o){var t=e.references.indexOf(o);t!==-1&&(e.references.splice(t,1),e.showReferenceTable=!1,b(function(){e.$apply(),e.showReferenceTable=!0,console.log("e.references : ",e.references)},100))},e.addMeetings=function(o){a.open({animation:!0,size:"lg",controller:"AddMeetingModalCtrl",templateUrl:"app/pages/tours/meetingModal.html",resolve:{meetingInfo:function(){return{}},isEdit:function(){return!1}}}).result.then(function(o){console.log("Previous meetings : ",e.meetings),console.log("meetings added : ",o);var t=!1;e.showMeetingTable=!1,$.each(e.meetings,function(a,i){void 0!=e.meetings[a].id&&e.meetings[a].id===o.id&&(t=!0)}),t?_.error("The meeting you have entered already exist"):(e.meetings.splice(0,0,o),b(function(){e.$apply(),e.showMeetingTable=!0},100))})},e.editMeetings=function(o,t){a.open({animation:!0,size:"lg",controller:"AddMeetingModalCtrl",templateUrl:"app/pages/tours/meetingModal.html",resolve:{meetingInfo:function(){return o},isEdit:function(){return!1}}}).result.then(function(o){var a=!1;e.showMeetingTable=!1,$.each(e.meetings,function(i,n){void 0!=e.meetings[i].id&&e.meetings[i].id===o.id&&t!=i&&(a=!0)}),a?(_.error("The meeting you have entered already exist."),b(function(){e.$apply(),e.showMeetingTable=!0},100)):(e.meetings[t]=o,b(function(){e.$apply(),e.showMeetingTable=!0},100))})},e.removeMeetings=function(o){var t=e.meetings.indexOf(o);t!==-1&&(e.meetings.splice(t,1),e.showMeetingTable=!1,b(function(){e.$apply(),e.showMeetingTable=!0,console.log("e.meetings : ",e.meetings)},100))},e.addVisitor=function(o){a.open({animation:!0,size:"lg",controller:"AddVisitorModalCtrl",templateUrl:"app/pages/tours/visitorModal.html",resolve:{organizationName:function(){return e.formscope.organization},organizationNameData:function(){return e.organizationOption},visitorInfo:function(){return{}},isEdit:function(){return!1}}}).result.then(function(o){var t=!1;e.showTable=!1,$.each(e.visitors,function(a,i){void 0!=e.visitors[a].id&&e.visitors[a].id===o.id&&(t=!0)}),t?_.error("The visitor you have entered already exist"):((!e.visitors||e.visitors&&0==e.visitors.length)&&(e.formscope.contact_manager=o.email),e.visitors.splice(0,0,o),b(function(){e.$apply(),e.showTable=!0},100))})},e.editVisitor=function(o,t){a.open({animation:!0,size:"lg",controller:"AddVisitorModalCtrl",templateUrl:"app/pages/tours/visitorModal.html",resolve:{organizationName:function(){return e.formscope.organization},organizationNameData:function(){return e.organizationOption},visitorInfo:function(){return o},isEdit:function(){return!1}}}).result.then(function(o){var a=!1;e.showTable=!1,$.each(e.visitors,function(i,n){void 0!=e.visitors[i].id&&e.visitors[i].id===o.id&&t!=i&&(a=!0)}),a?(_.error("The visitor you have entered already exist."),b(function(){e.$apply(),e.showTable=!0},100)):(e.visitors[t]=o,b(function(){e.$apply(),e.showTable=!0},100))})},e.removeVisitor=function(o){var t=e.visitors.indexOf(o);t!==-1&&(e.visitors.splice(t,1),e.showTable=!1,b(function(){e.$apply(),e.showTable=!0},100))},e.addMeals=function(o){a.open({animation:!0,backdrop:"static",controller:"AddMealModalCtrl",templateUrl:"app/pages/tours/mealModal.html",resolve:{meals:function(){return e.mealsTypeOption},selectedMeals:function(){return e.selectedMeals},mealData:function(){return o}}}).result.then(function(o){e.mealsType.push(o),$.each(e.mealsTypeOption,function(t,a){void 0!=e.mealsTypeOption[t].id&&e.mealsTypeOption[t].id===o.meal_id&&e.selectedMeals.push(o.meal_id)}),_.success("Meal added successfully.")})},e.editMeals=function(o,t){a.open({animation:!0,backdrop:"static",controller:"AddMealModalCtrl",templateUrl:"app/pages/tours/mealModal.html",resolve:{meals:function(){return e.mealsTypeOption},selectedMeals:function(){return e.selectedMeals},mealData:function(){return o}}}).result.then(function(o){if(e.mealsType[t]=o,o.meal_id!==o.old_meal_id){var a=[];$.each(e.selectedMeals,function(e,o){$.inArray(o,a)===-1&&a.push(o)}),e.selectedMeals=a;var i=e.selectedMeals.indexOf(o.old_meal_id);e.selectedMeals.splice(i,1)}$.each(e.mealsTypeOption,function(t,a){void 0!=e.mealsTypeOption[t].id&&e.mealsTypeOption[t].id===o.meal_id&&e.selectedMeals.push(o.meal_id)}),_.success("Meal updated successfully.")})},e.removeMeal=function(o){var t=[];$.each(e.selectedMeals,function(e,o){$.inArray(o,t)===-1&&t.push(o)}),e.selectedMeals=t;var a=e.selectedMeals.indexOf(e.mealsType[o].meal_id);e.selectedMeals.splice(a,1),e.mealsType.splice(o,1),_.success("Meal deleted successfully.")};var D=w.get("$validation");e.errorMessage=s.validation,D.setExpression({organization:function(e,o,t,a){return""!=e||null!=e||"null"!=e}}).setDefaultMsg({organization:{error:s.validation.organization.required}}),e.mailModal=function(o){D.validate(o).success(function(){return e.formscope.visitors=e.visitors,e.formscope.references=e.references,e.formscope.meetings=e.meetings,e.formscope.mealsType=e.mealsType,(!e.formscope.senior||e.formscope.senior<1)&&(!e.formscope.adults||e.formscope.adults<1)?void _.error("Adults or Senior count must be more than one!"):e.formscope.contact_manager?void a.open({animation:!0,backdrop:"static",controller:"TourMailModalCtrl",templateUrl:"app/pages/tours/mailModal.html",resolve:{tourStatus:function(){return 0}}}).result.then(function(o){e.add_data(o)}):void(0==e.formscope.visitors.length?_.error("Please add visitors first."):_.error("Please select contact manager."))}).error(function(){e.isSubmitted=!1})},e.changePreferredLanguage=function(o){console.log("Language selected : ",o,e.formscope)},e.getDate=function(e){return new Date(e).toString("MMMM yyyy")},e.add_data=function(o){e.loginProgress=!0,e.isSubmitted=!0,e.formscope.visitors=e.visitors,e.formscope.references=e.references,e.formscope.meetings=e.meetings,e.formscope.mealsType=e.mealsType,e.formscope.tasks=e.activeTaskList,e.formscope.sendMail=o.sendMail,e.formscope.mailSubject=o.mailSubject,e.formscope.mailContent=o.mailContent,e.formscope.status=o.status,e.formscope.documents=e.docList,e.formscope.notes=e.notes,s.addRecord(e.formscope).success(function(o){_.success(o.success),y.go("tours.list"),e.isSubmitted=!1}).error(function(o){e.loginProgress=!1,_.error(o.error),e.isSubmitted=!1})},e.docList=[],e.addDocument=function(o){a.open({animation:!0,controller:"AddDocumentModalCtrl",templateUrl:"app/pages/tours/documentModal.html",resolve:{docLink:function(){return""},docTitle:function(){return""},docName:function(){return""}}}).result.then(function(o){o.created_by=e.loginID;var t=!1,a=!1;$.each(e.docList,function(i,n){e.docList[i].title.toLowerCase()===o.title.toLowerCase()?t=!0:e.docList[i].link===o.link&&(a=!0)}),t?_.error("The document title you have entered already exist"):a?_.error("The document link you have entered already exist"):(e.docList.splice(0,0,o),b(function(){e.$apply(),e.showTable=!0},100))})},e.editDocument=function(o,t){a.open({animation:!0,controller:"AddDocumentModalCtrl",templateUrl:"app/pages/tours/documentModal.html",resolve:{docLink:function(){return o.link},docTitle:function(){return o.title},docName:function(){return o.name}}}).result.then(function(o){o.created_by=e.loginID;var a=!1,i=!1;$.each(e.docList,function(n,r){e.docList[n].title.toLowerCase()===o.title.toLowerCase()&&t!=n?a=!0:e.docList[n].link===o.link&&t!=n&&(i=!0)}),a?_.error("The document title you have entered already exist"):i?_.error("The document link you have entered already exist"):e.docList[t]=o})},e.removeDoc=function(o){e.docList.splice(o,1),b(function(){e.$apply()},100)},e.notes=[],e.addNote=function(o){a.open({animation:!0,controller:"AddNoteModalCtrl",templateUrl:"app/pages/tours/noteModal.html",resolve:{notesInfo:function(){return""},notesName:function(){return""}}}).result.then(function(o){o.created_by=e.loginID,e.notes.splice(0,0,o)})},e.editNote=function(o,t){a.open({animation:!0,controller:"AddNoteModalCtrl",templateUrl:"app/pages/tours/noteModal.html",resolve:{notesInfo:function(){return o.note},notesName:function(){return o.name}}}).result.then(function(o){e.showTable=!1,o.created_by=e.loginID,e.notes[t]=o,b(function(){e.$apply(),e.showTable=!0},100)})},e.removeNotes=function(o){e.notes.splice(o,1),b(function(){e.$apply()},100)},e.showOrganizationTypeOption=function(o){var a=[];return null!=o.organization_id&&(a=t("filter")(e.OrganizationTypeOption,{id:o.organization_id})),a.length?a[0].name:"-"},e.showVisitorOption=function(o){var a=[];return null!=o.visitor_type&&(a=t("filter")(e.VisitorOption,{id:o.visitor_type})),a.length?a[0].name:"-"},e.reloadData=function(){e.dtInstance.rerender()},e.createdRow=function(o,t,a){n(angular.element(o).contents())(e)},e.documentOptions=M.newOptions().withPaginationType("simple_numbers"),e.dtColumnDefs=[T.newColumnDef(0),T.newColumnDef(1),T.newColumnDef(2),T.newColumnDef(3)],e.notesOptions=M.newOptions().withPaginationType("simple_numbers"),e.notesColumnDefs=[T.newColumnDef(0),T.newColumnDef(1),T.newColumnDef(2)],e.visitorOptions=M.newOptions().withPaginationType("simple_numbers"),e.visitorColumnDefs=[T.newColumnDef(0),T.newColumnDef(1),T.newColumnDef(2),T.newColumnDef(3),T.newColumnDef(4),T.newColumnDef(5),T.newColumnDef(6),T.newColumnDef(7)]}e.$inject=["$scope","fileReader","$filter","$uibModal","$rootScope","$compile","VisitorsFactory","ToursFactory","UsersFactory","MealservicetypesFactory","MealservicelocationsFactory","LocationsFactory","MealsFactory","OrganizationsFactory","DefaulttasksFactory","TourtypesFactory","TransportsFactory","$timeout","$stateParams","$state","$injector","Notification","DTOptionsBuilder","DTColumnBuilder","DTColumnDefBuilder","MomentosFactory","AffiliationsFactory"],angular.module("BlurAdmin.pages.tours").controller("AddToursCtrl",e)}(),function(){"use strict";function e(e,o,t,a,i,n,r,s,l,c,d,u,m,p,g,f,v){e.visitorUser={},e.formscope={gender:null,organization_id:null,visitor_type:null,country_id:null,organization:g},e.btnName="Add",e.isSubmitted=!1,e.genderOption=[{label:"Please select gender",value:null},{label:"Male",value:"m"},{label:"Female",value:"f"}],e.organizationNameOption=f,e.residentSelected=function(o){o&&(o.originalObject.organization?e.formscope.organization=o.originalObject.organization:e.formscope.organization=o.originalObject)},e.countries=[{id:null,country_name:"Please select country"}],c.getCountry().success(function(o){e.countries=e.countries.concat(o)}).error(function(e){}),e.OrganizationOption=[{name:"Please select organization type",id:null}],p.getRecords().success(function(o){e.OrganizationOption=e.OrganizationOption.concat(o.data)}).error(function(e){}),e.VisitorOption=[{name:"Please select visitor type",id:null}],m.getRecords().success(function(o){e.VisitorOption=e.VisitorOption.concat(o.data)}).error(function(e){});var b=r.get("$validation");e.errorMessage=d.validation,e.checkPhoneNumber=function(o,t){if(o&&t){var a={search_key:o,search_value:t};d.checkRecordByPhone(a).success(function(o){o.data&&(e.formscope=o.data)}).error(function(e){})}},e.add_data=function(o){b.validate(o).success(function(){e.formscope.name=e.formscope.first_name+" "+e.formscope.last_name,e.formscope.gender_txt=e.genderOption.filter(function(o){return o.value===e.formscope.gender})[0].label,e.formscope.organization_txt=e.OrganizationOption.filter(function(o){return o.id===e.formscope.organization_id})[0].name,e.formscope.visitor_txt=e.VisitorOption.filter(function(o){return o.id===e.formscope.visitor_type})[0].name,s.close(e.formscope)}).error(function(){e.isSubmitted=!1})}}e.$inject=["$scope","fileReader","$filter","$uibModal","$rootScope","$compile","$injector","$uibModalInstance","Notification","UsersFactory","Contactmanagement","ToursFactory","VisitorsFactory","OrganizationsFactory","organizationName","organizationNameData","visitorInfo"],angular.module("BlurAdmin.pages.tours").controller("AddVisitorModalCtrl",e)}(),function(){"use strict";function e(e,o,t,a,i,n,r,s,l,c,d,u,m,p,g,f,v,b,h,y,w){if(e.visitorUser={},e.formscope={gender:null,momentos:null,organization_id:null,visitor_type:null,country_id:null,organization:f},e.btnName="Add",e.isSubmitted=!1,e.titleName="Add Visitor",e.addMomento=y,e.formscope.country_code="1",e.formscope.phone_number_country_code="1",b.first_name){e.btnName="Update",e.titleName="Edit Visitor",e.formscope.first_name=b.first_name,e.formscope.middle_name=b.middle_name,e.formscope.last_name=b.last_name,e.formscope.affiliate=b.affiliate,e.formscope.email=b.email;var _;b.mobile&&b.mobile.indexOf("-")>-1?(_=b.mobile.split("-"),b.country_code=_[0],b.mobile=_[1]):b.country_code="1";var M;b.phone_number&&b.phone_number.indexOf("-")>-1?(M=b.phone_number.split("-"),b.phone_number_country_code=M[0],b.phone_number=M[1]):b.phone_number_country_code="1",e.formscope.country_code=b.country_code,e.formscope.mobile=b.mobile,e.formscope.phone_number=b.phone_number,e.formscope.phone_number_country_code=b.phone_number_country_code,e.formscope.gender=b.gender,e.formscope.visitor_type=b.visitor_type,e.formscope.organization_id=b.organization_id,e.formscope.organization=b.organization,e.formscope.address=b.address,e.formscope.address1=b.address1,e.formscope.country_id=b.country_id,e.formscope.state=b.state,e.formscope.city=b.city,e.formscope.zip_code=b.zip_code,e.formscope.momentos=b.momentos}e.$broadcast("angucomplete-alt:changeInput","organization",f),e.showDropdownFirstName=!1,e.showDropdownLastName=!1,e.showDropdownEmail=!1,e.showDropdownMobile=!1,e.searching=!1,e.textNoResults="",e.genderOption=[{label:"Please select gender",value:null},{label:"Male",value:"m"},{label:"Female",value:"f"}],e.closePopup=function(o){e.searchResult1=[],e.showDropdownFirstName=!1,e.showDropdownLastName=!1},e.hoverRow=function(o){e.currentIndex=o},e.searchResult1=[],e.checkPhoneNumber=function(o,t,a){if(o){var i={search_value:o};a&&(8==a.keyCode||a.keyCode>=48&&a.keyCode<=90||a.keyCode>=96&&a.keyCode<=105)&&o.length>=2&&u.checkRecordByPhone(i).success(function(o){0!=o.data.length?(e.searchResult1=o.data,"first_name"==t?e.showDropdownFirstName=!0:"last_name"==t?e.showDropdownLastName=!0:"email"==t?e.showDropdownEmail=!0:"mobile"==t&&(e.showDropdownMobile=!0),e.searching=!0):(e.searchResult1=[],e.textNoResults="No results found")}).error(function(e){})}else e.searchResult1=[],"first_name"==t?e.showDropdownFirstName=!1:"last_name"==t?e.showDropdownLastName=!1:"email"==t?e.showDropdownEmail=!1:"mobile"==t&&(e.showDropdownMobile=!1)},e.selectResult=function(o){if(o.name){e.formscope={};var t;o.mobile&&o.mobile.indexOf("-")>-1?(t=o.mobile.split("-"),o.country_code=t[0],o.mobile=t[1]):o.country_code=1;var a;o.phone_number&&o.phone_number.indexOf("-")>-1?(a=o.phone_number.split("-"),o.phone_number_country_code=a[0],o.phone_number=a[1]):o.phone_number_country_code=1,e.formscope=o,e.formscope.name=o.first_name+" "+o.last_name,e.$broadcast("angucomplete-alt:changeInput","firstName",o.first_name),e.$broadcast("angucomplete-alt:changeInput","lastName",o.last_name),e.$broadcast("angucomplete-alt:changeInput","email",o.email),e.$broadcast("angucomplete-alt:changeInput","mobile",o.mobile)}else e.formscope.first_name=o},e.searchMobileResult=[],e.organizationNameOption=v,e.residentSelected=function(o){o&&(o.originalObject.organization?e.formscope.organization=o.originalObject.organization:e.formscope.organization=o.originalObject)},e.visitorSelectedFirst=function(o){o&&(o.originalObject.name?(e.formscope={},e.formscope=o.originalObject,e.formscope.name=o.originalObject.first_name+" "+o.originalObject.last_name,e.$broadcast("angucomplete-alt:changeInput","firstName",o.originalObject.first_name),e.$broadcast("angucomplete-alt:changeInput","lastName",o.originalObject.last_name),e.$broadcast("angucomplete-alt:changeInput","email",o.originalObject.email),e.$broadcast("angucomplete-alt:changeInput","mobile",o.originalObject.mobile)):e.formscope.first_name=o.originalObject)},e.visitorSelectedLast=function(o){o&&(o.originalObject.name?(e.formscope={},e.formscope=o.originalObject,e.formscope.name=o.originalObject.first_name+" "+o.originalObject.last_name,e.$broadcast("angucomplete-alt:changeInput","firstName",o.originalObject.first_name),e.$broadcast("angucomplete-alt:changeInput","lastName",o.originalObject.last_name),e.$broadcast("angucomplete-alt:changeInput","email",o.originalObject.email),e.$broadcast("angucomplete-alt:changeInput","mobile",o.originalObject.mobile)):e.formscope.last_name=o.originalObject)},e.visitorSelectedEmail=function(o){o&&(o.originalObject.name?(e.formscope={},e.formscope=o.originalObject,e.$broadcast("angucomplete-alt:changeInput","firstName",o.originalObject.first_name),e.$broadcast("angucomplete-alt:changeInput","lastName",o.originalObject.last_name),e.$broadcast("angucomplete-alt:changeInput","email",o.originalObject.email),e.$broadcast("angucomplete-alt:changeInput","mobile",o.originalObject.mobile)):e.formscope.email=o.originalObject)},e.visitorSelectedMobile=function(o){o&&(o.originalObject.name?(e.formscope={},e.formscope=o.originalObject,e.$broadcast("angucomplete-alt:changeInput","firstName",o.originalObject.first_name),e.$broadcast("angucomplete-alt:changeInput","lastName",o.originalObject.last_name),e.$broadcast("angucomplete-alt:changeInput","email",o.originalObject.email),e.$broadcast("angucomplete-alt:changeInput","mobile",o.originalObject.mobile)):e.formscope.mobile=o.originalObject)},e.countries=[{id:null,country_name:"Please select country"}],d.getCountry().success(function(o){e.countries=e.countries.concat(o)}).error(function(e){}),e.AffiliateOption=[{name:"Please select an affiliate",id:null}],w.getRecords().success(function(o){e.AffiliateOption=e.AffiliateOption.concat(o.data)}).error(function(e){}),e.OrganizationOption=[{name:"Please select organization type",id:null}],g.getRecords().success(function(o){e.OrganizationOption=e.OrganizationOption.concat(o.data)}).error(function(e){}),e.VisitorOption=[{name:"Please select visitor type",id:null}],p.getRecords().success(function(o){e.VisitorOption=e.VisitorOption.concat(o.data)}).error(function(e){}),e.MomentosOption=[{name:"Please select momento",id:null}],h.getRecords().success(function(o){e.MomentosOption=e.MomentosOption.concat(o.data)}).error(function(e){});var x=s.get("$validation");e.errorMessage=u.validation,e.add_data=function(o){x.validate(o).success(function(o){if(e.formscope.name=e.formscope.first_name+" "+e.formscope.last_name,e.formscope.mobile=e.formscope.country_code+"-"+e.formscope.mobile,e.formscope.phone_number=e.formscope.phone_number_country_code+"-"+e.formscope.phone_number,e.formscope.gender?e.formscope.gender_txt=e.genderOption.filter(function(o){return o.value===e.formscope.gender})[0].label:e.formscope.gender_txt="",e.formscope.organization_id){var t=e.OrganizationOption.filter(function(o){return o.id===e.formscope.organization_id});e.formscope.organization_txt=t.length?t[0].name:""}else e.formscope.organization_txt="";if(e.formscope.visitor_type){var a=e.formscope.visitor_txt=e.VisitorOption.filter(function(o){return o.id===e.formscope.visitor_type});e.formscope.visitor_txt=a.length>0?a[0].name:""}else e.formscope.visitor_txt="";l.close(e.formscope)}).error(function(o){e.isSubmitted=!1})}}e.$inject=["$scope","fileReader","$filter","$timeout","$uibModal","$rootScope","$compile","$injector","$uibModalInstance","Notification","UsersFactory","Contactmanagement","ToursFactory","VisitorsFactory","OrganizationsFactory","organizationName","organizationNameData","visitorInfo","MomentosFactory","isEdit","AffiliationsFactory"],angular.module("BlurAdmin.pages.tours").controller("AddVisitorModalCtrl",e)}(),function(){"use strict";function e(e,o,t,a,i){e.isSubmitted=!1,e.urlID=t.id,e.formscope={id:e.urlID,approved_status:null},e.filledForm="You have already acknowledged the task.",e.displayForm=!0,e.filled=!1,o.getTaskApprovedStatus(e.urlID).success(function(o){o.data&&(e.task=o.data,e.tour=o.tourdata,e.task.acknowledge>0&&(e.filled=!0)),e.displayForm=!0}).error(function(o){e.displayForm=!1,i.error(o.error)});a.get("$validation");e.errorMessage=o.validation,e.approveRejectTour=function(t){e.formscope.approved_status=t,o.acknowledgeTask(e.formscope).success(function(o){e.filledForm=o.success,i.success(o.success),e.filled=!0,e.isSubmitted=!1}).error(function(o){i.error(o.error),e.isSubmitted=!1})}}e.$inject=["$scope","ToursFactory","$stateParams","$injector","Notification"],angular.module("BlurAdmin.pages.tours").controller("ApproveTaskCtrl",e)}(),function(){"use strict";function e(e,o,t,a,i,n,r,s,l,c,d,u,m,p,g,f,v,b,h,y,w,_,M,x,T,S,P){e.pageName="Edit",e.btnName="Update",e.isSubmitted=!1,e.urlID=h.id,e.showTable=!1,e.smartTablePageSize=5,e.activeTaskList=[],e.addTaskBtn=!1,e.minDateMoment=moment().subtract("day"),e.visitors=[],e.mealsType=[],e.selectedMeals=[],e.docList=[],e.notes=[],e.errorMessage=s.validation;var C=w.get("$validation");e.organizationOption=[],s.getOrganization().success(function(o){e.organizationOption=e.organizationOption.concat(o.data)}).error(function(e){}),e.managersOption=[{name:"Please select tour manager",id:null}],l.getTourManager().success(function(o){e.managersOption=e.managersOption.concat(o.data),$.each(e.managersOption,function(o,t){void 0!=e.managersOption[o].id&&1==e.managersOption[o].availability&&(e.managersOption[o].isDisabled=!0)})}).error(function(e){}),e.residentSelected=function(o){o&&(o.originalObject.organization?e.formscope.organization=o.originalObject.organization:e.formscope.organization=o.originalObject)},e.TransportOption=[{name:"Please select transport type",id:null}],v.getRecords().success(function(o){e.TransportOption=e.TransportOption.concat(o.data)}).error(function(e){}),e.TourTypeOption=[{name:"Please select tour type",id:null}],f.getRecords().success(function(o){e.TourTypeOption=e.TourTypeOption.concat(o.data)}).error(function(e){}),e.OrganizationTypeOption=[{name:"Please select organization type",id:null}],p.getRecords().success(function(o){e.OrganizationTypeOption=e.OrganizationTypeOption.concat(o.data)}).error(function(e){}),e.mealsTypeOption=[{name:"Please select meal type",id:null}],m.getRecords().success(function(o){e.mealsTypeOption=e.mealsTypeOption.concat(o.data)}).error(function(e){}),e.locationsTypeOption=[{name:"Please select location",id:null}],u.getRecords().success(function(o){e.locationsTypeOption=e.locationsTypeOption.concat(o.data)}).error(function(e){}),e.mealServiceTypeOption=[{name:"Please select meal service type",id:null}],c.getRecords().success(function(o){e.mealServiceTypeOption=e.mealServiceTypeOption.concat(o.data)}).error(function(e){}),e.mealServiceLocationsOption=[{name:"Please select meal service location",id:null}],d.getRecords().success(function(o){e.mealServiceLocationsOption=e.mealServiceLocationsOption.concat(o.data)}).error(function(e){}),e.VisitorOption=[{name:"Please sele$scope.urlIDct visitor type",id:null}],r.getRecords().success(function(o){e.VisitorOption=e.VisitorOption.concat(o.data)}).error(function(e){}),e.usersOption=[{name:"Please select catering manager",id:null}],l.getRecords().success(function(o){e.usersOption=e.usersOption.concat(o.data)}).error(function(e){}),e.$watch("formscope.tourtype_id",function(o,t){o?(e.activeTaskList=[],g.getRecords(o).success(function(o){e.taskList=o.data;for(var t=0;t<e.taskList.length;t++)if(1==e.taskList[t].status){var a={task:e.taskList[t].task,status:1};e.activeTaskList.push(a)}}).error(function(e){}),e.addTaskBtn=!0):(e.addTaskBtn=!1,e.activeTaskList=[])}),e.unconnect=function(o){e.activeTaskList.splice(o,1)},e.connect=function(o){e.activeTaskList[addVisitoritem].status=1},e.showModal=function(o){a.open({animation:!0,controller:"AddTaskModalCtrl",templateUrl:"app/pages/tours/taskModal.html"}).result.then(function(o){var t={task:o,status:1};e.activeTaskList.push(t)})},e.addVisitor=function(o){e.urlID,a.open({animation:!0,size:"lg",controller:"AddVisitorModalCtrl",templateUrl:"app/pages/tours/visitorModal.html",resolve:{organizationName:function(){return e.formscope.organization},organizationNameData:function(){return e.organizationOption},visitorInfo:function(){return null}}}).result.then(function(o){var t=!1;e.showTable=!1,$.each(e.visitors,function(a,i){void 0!=e.visitors[a].id&&e.visitors[a].id===o.id&&(t=!0)}),t?(_.error("The visitor you have entered already exist"),b(function(){e.$apply(),e.showTable=!0},100)):(e.visitors.push(o),b(function(){e.$apply(),e.showTable=!0},100))})},e.editVisitor=function(o,t){a.open({animation:!0,size:"lg",controller:"AddVisitorModalCtrl",templateUrl:"app/pages/tours/visitorModal.html",resolve:{organizationName:function(){return e.formscope.organization},organizationNameData:function(){return e.organizationOption},visitorInfo:function(){return o}}}).result.then(function(o){e.urlID;var a=!1;e.showTable=!1,$.each(e.visitors,function(t,i){void 0!=e.visitors[t].id&&e.visitors[t].id===o.id&&(a=!0)}),a?(_.error("The visitor you have entered already exist"),b(function(){e.$apply(),e.showTable=!0},100)):(e.visitors[t]=o,console.log(e.visitors),b(function(){e.$apply(),e.showTable=!0},100))}),e.urlID},e.removeVisitor=function(o){var t=e.visitors.indexOf(o),a=e.visitors[t].id;if(a){var i={tour_id:e.urlID,visitor_id:a};s.deleteVisitor(i).success(function(o){e.visitorsOption=o.data}).error(function(e){})}t!==-1&&(e.visitors.splice(t,1),e.showTable=!1,b(function(){e.$apply(),e.showTable=!0},100))},e.addMeals=function(o){a.open({animation:!0,controller:"AddMealModalCtrl",templateUrl:"app/pages/tours/mealModal.html",resolve:{meals:function(){return e.mealsTypeOption},selectedMeals:function(){return e.selectedMeals}}}).result.then(function(o){e.mealsType.push(o),$.each(e.mealsTypeOption,function(t,a){void 0!=e.mealsTypeOption[t].id&&e.mealsTypeOption[t].id===o.meal_id&&e.selectedMeals.push(o.meal_id)})})},e.removeMeal=function(o){e.mealsType.splice(o,1)},s.getRecord(e.urlID).success(function(o){b(function(){e.formscope=o.data,e.formscope.meals=1==o.data.meals,e.activeTask=o.data.tour_tasks,e.docList=e.formscope.tour_documents,e.notes=e.formscope.tour_notes,e.showTable=!0,$.each(o.data.tour_visitors,function(t,a){1==o.data.tour_visitors[t].is_tour_admin&&(o.data.contact_manager=o.data.tour_visitors[t].visitor.email),o.data.tour_visitors[t].visitor.organization_txt=e.OrganizationTypeOption.filter(function(e){return e.id===o.data.tour_visitors[t].visitor.organization_id})[0].name,o.data.tour_visitors[t].visitor.visitor_txt=e.VisitorOption.filter(function(e){return e.id===o.data.tour_visitors[t].visitor.visitor_type})[0].name,e.visitors.push(o.data.tour_visitors[t].visitor)}),$.each(o.data.tour_meals,function(t,a){e.selectedMeals.push(o.data.tour_meals[t].meal_id),o.data.tour_meals[t].meal_txt=e.mealsTypeOption.filter(function(e){return e.id===o.data.tour_meals[t].meal_id})[0].name,o.data.tour_meals[t].mealservice_txt=e.mealServiceTypeOption.filter(function(e){return e.id===o.data.tour_meals[t].meal_service_type_id})[0].name,o.data.tour_meals[t].meallocation_txt=e.mealServiceLocationsOption.filter(function(e){return e.id===o.data.tour_meals[t].meal_service_location_id})[0].name,o.data.tour_meals[t].catering_manager_txt=e.usersOption.filter(function(e){return e.id===o.data.tour_meals[t].catering_manager})[0].name}),e.mealsType=o.data.tour_meals},100)}).error(function(e){_.error(e.error),y.go("tours.list")}),e.add_data=function(o){e.isSubmitted=!0,C.validate(o).success(function(){e.formscope.visitors=e.visitors,e.formscope.mealsType=e.mealsType,e.formscope.tasks=e.activeTaskList,e.formscope.documents=e.docList,e.formscope.notes=e.notes,e.formscope._method="PUT",s.updateRecord(e.urlID,e.formscope).success(function(o){_.success(o.success),y.go("tours.list"),e.isSubmitted=!1}).error(function(o){_.error(o.error),e.isSubmitted=!1})}).error(function(o){console.log(o),e.isSubmitted=!1})},e.deleteDocLInk=function(o){e.docList.splice(o,1)},e.addToDoItem=function(o,t){e.formscope.link&&(e.docList.unshift({link:e.formscope.link}),e.formscope.link="")},e.deleteNote=function(o){e.notes.splice(o,1)},e.addNote=function(o,t){e.formscope.note&&(e.notes.unshift({note:e.formscope.note}),e.formscope.note="")}}e.$inject=["$scope","fileReader","$filter","$uibModal","$rootScope","$compile","VisitorsFactory","ToursFactory","UsersFactory","MealservicetypesFactory","MealservicelocationsFactory","LocationsFactory","MealsFactory","OrganizationsFactory","DefaulttasksFactory","TourtypesFactory","TransportsFactory","$timeout","$stateParams","$state","$injector","Notification","editableOptions","editableThemes","$q","$route","baConfig"],angular.module("BlurAdmin.pages.tours").controller("EditToursCtrl",e)}(),function(){"use strict";function e(e,o,t,a,i,n,r,s,l,c,d,u,m,p,g,f,v,b,h,y,w,_,M,x,T,S,P,C,D,O,k,A){if(e.pageName="Edit",e.btnName="Update",e.isSubmitted=!1,e.urlID=y.id,e.showTable=!1,e.loginID=n.auth_user.id,e.smartTablePageSize=5,e.activeTaskList=[],e.addTaskBtn=!1,e.minDateMoment=moment().subtract("day"),e.visitors=[],e.references=[],e.meetings=[],e.mealsType=[],e.selectedMeals=[],e.userRoleID=Object.keys(n.role)[0],
e.documentDataFlag=!1,e.edittourtype=!1,1==e.userRoleID)var N=!1,R=!1,I=!1,B=!1,q=!1;else var N=!0,R=!0,I=!1,B=!1,q=!1;e.tourStatusOption=[{value:0,label:"Pending",isDisabled:N},{value:1,label:"Acknowledge",isDisabled:R},{value:2,label:"Approved",isDisabled:I},{value:3,label:"Rejected",isDisabled:B},{value:4,label:"Completed",isDisabled:q}],e.tourLanguageOption=[{value:"english",label:"English",isDisabled:!1},{value:"gujarati",label:"Gujarati",isDisabled:!1},{value:"hindi",label:"Hindi",isDisabled:!1}],e.docList=[],e.notes=[],e.errorMessage=l.validation;var z=_.get("$validation");e.organizationOption=[],l.getOrganization().success(function(o){e.organizationOption=e.organizationOption.concat(o.data)}).error(function(e){}),e.managersOption=[{name:"Please select tour manager",id:null}],e.tourMomentoOptions=[{name:"Please select a momento",id:null}],A.getRecords().success(function(o){e.tourMomentoOptions=e.tourMomentoOptions.concat(o.data)}).error(function(e){}),c.getTourManager().success(function(o){e.managersOption=e.managersOption.concat(o.data),$.each(e.managersOption,function(o,t){void 0!=e.managersOption[o].id&&1==e.managersOption[o].availability&&(e.managersOption[o].isDisabled=!0)})}).error(function(e){}),e.residentSelected=function(o){o&&(o.originalObject.organization?e.formscope.organization=o.originalObject.organization:e.formscope.organization=o.originalObject)},e.TransportOption=[{name:"Please select transport type",id:null}],b.getRecords().success(function(o){e.TransportOption=e.TransportOption.concat(o.data)}).error(function(e){}),e.TourTypeOption=[{name:"Please select tour type",id:null}],v.getRecords().success(function(o){e.TourTypeOption=e.TourTypeOption.concat(o.data)}).error(function(e){}),e.OrganizationTypeOption=[{name:"Please select organization type",id:null}],g.getRecords().success(function(o){e.OrganizationTypeOption=e.OrganizationTypeOption.concat(o.data)}).error(function(e){}),e.mealsTypeOption=[{name:"Please select meal type",id:null}],p.getRecords().success(function(o){e.mealsTypeOption=e.mealsTypeOption.concat(o.data)}).error(function(e){}),e.locationsTypeOption=[{name:"Please select location",id:null}],m.getRecords().success(function(o){e.locationsTypeOption=e.locationsTypeOption.concat(o.data)}).error(function(e){}),e.mealServiceTypeOption=[{name:"Please select meal service type",id:null}],d.getRecords().success(function(o){e.mealServiceTypeOption=e.mealServiceTypeOption.concat(o.data)}).error(function(e){}),e.mealServiceLocationsOption=[{name:"Please select meal service location",id:null}],u.getRecords().success(function(o){e.mealServiceLocationsOption=e.mealServiceLocationsOption.concat(o.data)}).error(function(e){}),e.VisitorOption=[{name:"Please select visitor type",id:null}],s.getRecords().success(function(o){e.VisitorOption=e.VisitorOption.concat(o.data)}).error(function(e){}),e.usersOption=[{name:"Please select catering manager",id:null}],c.getRecords().success(function(o){e.usersOption=e.usersOption.concat(o.data)}).error(function(e){}),e.$watch("formscope.tourtype_id",function(o,t){o?(e.activeTaskList=[],f.getRecords(o).success(function(o){e.taskList=o.data;for(var t=0;t<e.taskList.length;t++)if(1==e.taskList[t].status){var a={task:e.taskList[t].task,status:1};e.activeTaskList.push(a)}}).error(function(e){}),e.addTaskBtn=!0):(e.addTaskBtn=!1,e.activeTaskList=[])}),e.unconnect=function(o){e.activeTaskList.splice(o,1)},e.connect=function(o){e.activeTaskList[addVisitoritem].status=1},e.showModal=function(o){i.open({animation:!0,size:"lg",controller:"AddTaskModalCtrl",templateUrl:"app/pages/tours/taskModal.html"}).result.then(function(o){var t={task:o,status:1};e.activeTaskList.push(t)})},e.addReferences=function(o){i.open({animation:!0,size:"lg",controller:"AddReferenceModalCtrl",templateUrl:"app/pages/tours/referenceModal.html",resolve:{referenceInfo:function(){return{}},isEdit:function(){return!1}}}).result.then(function(o){var t=!1;e.showReferenceTable=!1,$.each(e.references,function(a,i){void 0!=e.references[a].id&&e.references[a].id===o.id&&(t=!0)}),t?M.error("The reference you have entered already exist"):(e.references.splice(0,0,o),h(function(){e.$apply(),e.showReferenceTable=!0},100))})},e.editReference=function(o,t){i.open({animation:!0,size:"lg",controller:"AddReferenceModalCtrl",templateUrl:"app/pages/tours/referenceModal.html",resolve:{referenceInfo:function(){return o},isEdit:function(){return!1}}}).result.then(function(o){var a=!1;e.showReferenceTable=!1,$.each(e.references,function(i,n){void 0!=e.references[i].id&&e.references[i].id===o.id&&t!=i&&(a=!0)}),a?(M.error("The reference you have entered already exist."),h(function(){e.$apply(),e.showReferenceTable=!0},100)):(e.references[t]=o,h(function(){e.$apply(),e.showReferenceTable=!0},100))})},e.removeReference=function(o){var t=e.references.indexOf(o);t!==-1&&(e.references.splice(t,1),e.showReferenceTable=!1,h(function(){e.$apply(),e.showReferenceTable=!0},100))},e.addMeetings=function(o){i.open({animation:!0,size:"lg",controller:"AddMeetingModalCtrl",templateUrl:"app/pages/tours/meetingModal.html",resolve:{meetingInfo:function(){return{}},isEdit:function(){return!1}}}).result.then(function(o){var t=!1;e.showMeetingTable=!1,$.each(e.meetings,function(a,i){void 0!=e.meetings[a].id&&e.meetings[a].id===o.id&&(t=!0)}),t?M.error("The meeting you have entered already exist"):(e.meetings.splice(0,0,o),h(function(){e.$apply(),e.showMeetingTable=!0},100))})},e.editMeetings=function(o,t){i.open({animation:!0,size:"lg",controller:"AddMeetingModalCtrl",templateUrl:"app/pages/tours/meetingModal.html",resolve:{meetingInfo:function(){return o},isEdit:function(){return!1}}}).result.then(function(o){var a=!1;e.showMeetingTable=!1,$.each(e.meetings,function(i,n){void 0!=e.meetings[i].id&&e.meetings[i].id===o.id&&t!=i&&(a=!0)}),a?(M.error("The meeting you have entered already exist."),h(function(){e.$apply(),e.showMeetingTable=!0},100)):(e.meetings[t]=o,h(function(){e.$apply(),e.showMeetingTable=!0},100))})},e.removeMeetings=function(o){var t=e.meetings.indexOf(o);t!==-1&&(e.meetings.splice(t,1),e.showMeetingTable=!1,h(function(){e.$apply(),e.showMeetingTable=!0},100))},e.addVisitor=function(o){i.open({animation:!0,size:"lg",controller:"AddVisitorModalCtrl",templateUrl:"app/pages/tours/visitorModal.html",resolve:{organizationName:function(){return e.formscope.organization},organizationNameData:function(){return e.organizationOption},visitorInfo:function(){return{}},isEdit:function(){return!0}}}).result.then(function(o){var t=!1;e.showTable=!1,$.each(e.visitors,function(a,i){void 0!=e.visitors[a].id&&e.visitors[a].id===o.id&&(t=!0)}),t?(M.error("The visitor you have entered already exist"),h(function(){e.$apply(),e.showTable=!0},100)):((!e.visitors||e.visitors&&0==e.visitors.length)&&(e.formscope.contact_manager=o.email),e.visitors.splice(0,0,o),h(function(){e.$apply(),e.showTable=!0},100))})},e.editVisitor=function(o,t){i.open({animation:!0,size:"lg",controller:"AddVisitorModalCtrl",templateUrl:"app/pages/tours/visitorModal.html",resolve:{organizationName:function(){return e.formscope.organization},organizationNameData:function(){return e.organizationOption},visitorInfo:function(){return o},isEdit:function(){return!0}}}).result.then(function(o){var a=!1;e.showTable=!1,$.each(e.visitors,function(i,n){void 0!=e.visitors[i].id&&e.visitors[i].id===o.id&&t!=i&&(a=!0)}),a?(M.error("The visitor you have entered already exist."),h(function(){e.$apply(),e.showTable=!0},100)):(e.visitors[t]=o,h(function(){e.$apply(),e.showTable=!0},100))})},e.removeVisitor=function(o){var t=e.visitors.indexOf(o),a=e.visitors[t].id;if(a){var i={tour_id:e.urlID,visitor_id:a};l.deleteVisitor(i).success(function(o){e.visitorsOption=o.data}).error(function(e){})}t!==-1&&(e.visitors.splice(t,1),e.showTable=!1,h(function(){e.$apply(),e.showTable=!0},100))},e.addMeals=function(o){i.open({animation:!0,backdrop:"static",controller:"AddMealModalCtrl",templateUrl:"app/pages/tours/mealModal.html",resolve:{meals:function(){return e.mealsTypeOption},selectedMeals:function(){return e.selectedMeals},mealData:function(){return o}}}).result.then(function(o){e.formscope.meals=1,e.mealsType.push(o),$.each(e.mealsTypeOption,function(t,a){void 0!=e.mealsTypeOption[t].id&&e.mealsTypeOption[t].id===o.meal_id&&e.selectedMeals.push(o.meal_id)}),M.success("Meal added successfully.")})},e.editMeals=function(o,t){i.open({animation:!0,backdrop:"static",controller:"AddMealModalCtrl",templateUrl:"app/pages/tours/mealModal.html",resolve:{meals:function(){return e.mealsTypeOption},selectedMeals:function(){return e.selectedMeals},mealData:function(){return o}}}).result.then(function(o){if(e.mealsType[t]=o,o.meal_id!==o.old_meal_id){var a=[];$.each(e.selectedMeals,function(e,o){$.inArray(o,a)===-1&&a.push(o)}),e.selectedMeals=a;var i=e.selectedMeals.indexOf(o.old_meal_id);e.selectedMeals.splice(i,1)}$.each(e.mealsTypeOption,function(t,a){void 0!=e.mealsTypeOption[t].id&&e.mealsTypeOption[t].id===o.meal_id&&e.selectedMeals.push(o.meal_id)}),M.success("Meal updated successfully.")})},e.removeMeal=function(o){var t=[];$.each(e.selectedMeals,function(e,o){$.inArray(o,t)===-1&&t.push(o)}),e.selectedMeals=t;var a=e.selectedMeals.indexOf(e.mealsType[o].meal_id);e.selectedMeals.splice(a,1),e.mealsType.splice(o,1),M.success("Meal deleted successfully.")},e.showOrganizationTypeOption=function(o){var a=[];return null!=o.organization_id&&(a=t("filter")(e.OrganizationTypeOption,{id:o.organization_id})),a.length?a[0].name:"-"},e.showVisitorOption=function(o){var a=[];return null!=o.visitor_type&&(a=t("filter")(e.VisitorOption,{id:o.visitor_type})),a.length?a[0].name:"-"},e.docList=[],e.notes=[],l.getRecord(e.urlID).success(function(o){h(function(){e.formscope=o.data,e.formscope.language=o.data.language,e.formscope.meals=1==o.data.meals,e.activeTask=o.data.tour_tasks,e.docList=e.formscope.tour_documents,e.notes=e.formscope.tour_notes,null==e.formscope.tourtype_id&&(e.edittourtype=!0),$.each(e.notes,function(o,t){e.notes[o].name=e.notes[o].tour_notes_created.name}),$.each(e.docList,function(o,t){e.docList[o].name=e.docList[o].tour_docs_created.name}),e.documentDataFlag=!0,e.showTable=!0,$.each(o.data.tour_visitors_edit,function(t,a){1==o.data.tour_visitors_edit[t].is_tour_admin&&(o.data.contact_manager=o.data.tour_visitors_edit[t].visitor.email),e.visitors.push(o.data.tour_visitors_edit[t].visitor)}),$.each(o.data.tour_refference_edit,function(t,a){1==o.data.tour_refference_edit[t].is_tour_admin&&(o.data.reference=o.data.tour_refference_edit[t].refference.email),e.references.push(o.data.tour_refference_edit[t].refference)}),$.each(o.data.tour_meeting_edit,function(t,a){1==o.data.tour_meeting_edit[t].is_tour_admin&&(o.data.meeting=o.data.tour_meeting_edit[t].meeting.email),e.meetings.push(o.data.tour_meeting_edit[t].meeting)}),$.each(o.data.tour_meals,function(t,a){e.selectedMeals.push(o.data.tour_meals[t].meal_id);var i=e.mealsTypeOption.filter(function(e){return e.id===o.data.tour_meals[t].meal_id});i.length>0&&(o.data.tour_meals[t].meal_txt=i[0].name);var n=e.mealServiceTypeOption.filter(function(e){return e.id===o.data.tour_meals[t].meal_service_type_id});n.length>0&&(o.data.tour_meals[t].mealservice_txt=n[0].name);var r=e.mealServiceLocationsOption.filter(function(e){return e.id===o.data.tour_meals[t].meal_service_location_id});r.length>0&&(o.data.tour_meals[t].meallocation_txt=r[0].name);var s=e.usersOption.filter(function(e){return e.id===o.data.tour_meals[t].catering_manager});s.length>0&&(o.data.tour_meals[t].catering_manager_txt=s[0].name)}),e.mealsType=o.data.tour_meals},100)}).error(function(e){M.error(e.error),w.go("tours.list")}),e.add_data=function(o){e.isSubmitted=!0,z.validate(o).success(function(){return e.formscope.visitors=e.visitors,e.formscope.references=e.references,e.formscope.meetings=e.meetings,e.formscope.mealsType=e.mealsType,e.formscope.tasks=e.activeTaskList,e.formscope.documents=e.docList,e.formscope.notes=e.notes,(!e.formscope.senior||e.formscope.senior<1)&&(!e.formscope.adults||e.formscope.adults<1)?void M.error("Adults or Senior count must be more than one!"):(e.formscope._method="PUT",void l.updateRecord(e.urlID,e.formscope).success(function(o){M.success(o.success),w.go("tours.list"),e.isSubmitted=!1}).error(function(o){M.error(o.error),e.isSubmitted=!1}))}).error(function(o){e.isSubmitted=!1})},e.addDocument=function(o){i.open({animation:!0,controller:"AddDocumentModalCtrl",templateUrl:"app/pages/tours/documentModal.html",resolve:{docLink:function(){return""},docTitle:function(){return""},docName:function(){return""}}}).result.then(function(o){o.tour_id=e.urlID;var t=!1,a=!1;$.each(e.docList,function(i,n){e.docList[i].title.toLowerCase()===o.title.toLowerCase()?t=!0:e.docList[i].link===o.link&&(a=!0)}),t?M.error("The document title you have entered already exist"):a?M.error("The document link you have entered already exist"):l.tourDocument(o).success(function(t){M.success(t.success),t.data.name=o.name,e.docList.splice(0,0,t.data)}).error(function(e){M.error(e.error)})})},e.editDocument=function(o,t){i.open({animation:!0,controller:"AddDocumentModalCtrl",templateUrl:"app/pages/tours/documentModal.html",resolve:{docLink:function(){return o.link},docTitle:function(){return o.title},docName:function(){return o.name}}}).result.then(function(a){a.tour_id=e.urlID,a.id=o.id,a.created_by=e.loginID;var i=!1,n=!1;$.each(e.docList,function(o,r){e.docList[o].title.toLowerCase()===a.title.toLowerCase()&&t!=o?i=!0:e.docList[o].link===a.link&&t!=o&&(n=!0)}),i?M.error("The document title you have entered already exist"):n?M.error("The document link you have entered already exist"):l.tourDocument(a).success(function(a){M.success(a.success),e.docList[t]=a.data,e.docList[t].name=o.name}).error(function(e){M.error(e.error)})})},e.removeDoc=function(o){var t={id:e.docList[o].id};l.deleteDocument(t).success(function(t){M.success(t.success),e.docList.splice(o,1)}).error(function(e){M.error(e.error)})},e.addNote=function(o){i.open({animation:!0,controller:"AddNoteModalCtrl",templateUrl:"app/pages/tours/noteModal.html",resolve:{notesInfo:function(){return""},notesName:function(){return""}}}).result.then(function(o){o.tour_id=e.urlID,l.tourNote(o).success(function(t){M.success(t.success),t.data.name=o.name,e.notes.splice(0,0,t.data)}).error(function(e){M.error(e.error)})})},e.editNote=function(o,t){i.open({animation:!0,controller:"AddNoteModalCtrl",templateUrl:"app/pages/tours/noteModal.html",resolve:{notesInfo:function(){return o.note},notesName:function(){return o.name}}}).result.then(function(a){e.showTable=!1,a.tour_id=e.urlID,a.id=o.id,l.tourNote(a).success(function(a){M.success(a.success),e.notes[t]=a.data,e.notes[t].name=o.name}).error(function(e){M.error(e.error)})})},e.removeNotes=function(o){var t={id:e.notes[o].id};l.deleteNote(t).success(function(t){M.success(t.success),e.notes.splice(o,1)}).error(function(e){M.error(e.error)})},e.documentOptions=D.newOptions().withPaginationType("simple_numbers"),e.dtColumnDefs=[k.newColumnDef(0),k.newColumnDef(1),k.newColumnDef(2),k.newColumnDef(3)],e.notesOptions=D.newOptions().withPaginationType("simple_numbers"),e.notesColumnDefs=[k.newColumnDef(0),k.newColumnDef(1),k.newColumnDef(2)],e.visitorOptions=D.newOptions().withPaginationType("simple_numbers"),e.visitorColumnDefs=[k.newColumnDef(0),k.newColumnDef(1),k.newColumnDef(2),k.newColumnDef(3),k.newColumnDef(4),k.newColumnDef(5),k.newColumnDef(6),k.newColumnDef(7)]}e.$inject=["$scope","fileReader","$filter","AffiliationsFactory","$uibModal","$rootScope","$compile","VisitorsFactory","ToursFactory","UsersFactory","MealservicetypesFactory","MealservicelocationsFactory","LocationsFactory","MealsFactory","OrganizationsFactory","DefaulttasksFactory","TourtypesFactory","TransportsFactory","$timeout","$stateParams","$state","$injector","Notification","editableOptions","editableThemes","$q","$route","baConfig","DTOptionsBuilder","DTColumnBuilder","DTColumnDefBuilder","MomentosFactory"],angular.module("BlurAdmin.pages.tours").controller("EditToursCtrl",e)}(),function(){"use strict";function e(e,o,t,a,i,n,r,s,l,c,d,u){e.pageName="View",e.btnName="Send",e.isSubmitted=!1,e.urlID=l.id,e.formscope={id:e.urlID,rating:1},e.filledForm="You have already fill this form.",e.displayForm=!1,e.filled=!1,r.viewFeedback(e.urlID).success(function(o){o.data&&(e.filled=!0),e.displayForm=!0}).error(function(e){u.error(e.error)}),e.setRating=function(o){e.formscope.rating=o};var m=d.get("$validation");e.errorMessage=r.validation,e.add_data=function(o){m.validate(o).success(function(){e.isSubmitted=!0,r.addFeedback(e.formscope).success(function(o){e.filledForm=o.success,u.success(o.success),e.filled=!0,e.isSubmitted=!1}).error(function(o){u.error(o.error),e.isSubmitted=!1})})}}e.$inject=["$scope","fileReader","$filter","$uibModal","$rootScope","$compile","ToursFactory","$timeout","$stateParams","$state","$injector","Notification"],angular.module("BlurAdmin.pages.tours").controller("FeedbackCtrl",e)}(),function(){"use strict";function e(e,o,t,a,i,n,r,s,l,c,d,u,m){e.dtInstance={},e.isSubmitted=!1,e.tours={},e.formData={filterData:"0"},e.filterData=e.formData.filterData,r.auth_user&&(e.loginUserID=r.auth_user.id),e.urlID=t.id,e.urlID&&(e.filterData=e.urlID,e.formData.filterData=e.urlID),e.filerdatatable=function(){e.filterData=e.formData.filterData,e.reloadData()},e.searchData=[{label:"All",value:"0"},{label:"Today",value:"1"},{label:"Next 7 days",value:"2"},{label:"This Month",value:"3"},{label:"Confirmed",value:"4"},{label:"Unconfirmed",value:"5"},{label:"Completed",value:"6"},{label:"Rejected",value:"7"}],e.reloadData=function(){e.dtInstance.rerender()},e.createdRow=function(o,t,a){s(angular.element(o).contents())(e)},e.deleteRecord=function(e){l.deleteRecord(e).success(function(e){m.success(e.success),o.reload()}).error(function(e){m.error(e.error)})},e.actionTours=function(o,t,a){e.tours[a.id]=a,e.tours[a.id].isSubmitted=!1;var i="",n="",r="";return"0"==o.status&&(n="<a class='cursor-pointer' ng-if=\"havePermission('tours','acknowledge');\" style='cursor:pointer' ng-click='acknowledge("+a.id+")' title='Acknowledge Tour'><i class='ion-android-checkbox-outline'></i></a> "),i="<a class='cursor-pointer' ng-hide='tours["+a.id+"].isSubmitted' ng-if=\"havePermission('tours','resend');\" style='cursor:pointer' ng-click='resendmailModal("+a.id+")' title='Resend Emails'><i class='ion-refresh'></i></a> ",r="<a class='cursor-pointer' ng-if=\"havePermission('tours','delete');\" style='cursor:pointer' ng-confirm-click='Are you sure to delete this tour?' confirmed-click='deleteRecord("+a.id+")' title='Delete Tour'><i class='fa fa-trash'></i></a>",n+i+"<a title='View Tour' ui-sref='tours.viewdetails({ id: "+a.id+" })'><i class='fa fa-eye'></i></a> <a ng-hide='"+a.status+" == 4' ng-if=\"havePermission('tours','update');\" ui-sref='tours.edit({ id: "+a.id+" })' title='Edit Tour'><i class='fa fa-edit'></i></a> "+r},e.resendmailModal=function(o){var t=e.tours[o];n.open({animation:!0,backdrop:"static",controller:"TourMailModalCtrl",templateUrl:"app/pages/tours/mailModal.html",resolve:{tourStatus:function(){return t.status}}}).result.then(function(t){if(t){e.tours[o].isSubmitted=!0,console.log("AFTER FORMSCOPE ----",t);var t={id:o,sendMail:t.sendMail,mailSubject:t.mailSubject,mailContent:t.mailContent,action:t.status};l.resend(t).success(function(t){m.success(t.success),e.tours[o].isSubmitted=!1}).error(function(t){e.tours[o].isSubmitted=!1,m.error(t.error)})}})},e.acknowledge=function(o){n.open({animation:!0,controller:"AddCommentModalCtrl",templateUrl:"app/pages/tours/commentModal.html"}).result.then(function(t){e.sendackmailModal(o,t)})},e.sendackmailModal=function(o,t){n.open({animation:!0,backdrop:"static",controller:"TourMailModalCtrl",templateUrl:"app/pages/tours/mailModal.html",resolve:{tourStatus:function(){return 1}}}).result.then(function(a){if(a){var a={id:o,action:a.status,comment:t,sendMail:a.sendMail,mailSubject:a.mailSubject,mailContent:a.mailContent};l.actionRecord(a).success(function(t){m.success(t.success),e.tours[o].isSubmitted=!1,e.reloadData()}).error(function(t){e.tours[o].isSubmitted=!1,m.error(t.error)})}})},e.setPerson=function(e,o,t){return Number(e.adults)+Number(e.children)+Number(e.senior)},e.mealOptions=function(e,o,t){return"1"==e.meals?"Yes":"No"},e.momentosOption=function(e,o,t){return t.tour_momentos.length>0?"Yes":"No"},e.statusAction=function(e,o,t){return"0"==e.status?'<small class="label label-warning">Pending</small>':"1"==e.status?'<small class="label label-info">Acknowledge</small>':"2"==e.status?'<small class="label label-success">Approved</small>':"3"==e.status?'<small class="label label-danger">Rejected</small>':'<small class="label label-primary">Completed</small>'},e.indexNumber=function(e,o,t,a){var i=Number(a.row)+Number(1),n=a.settings._iDisplayStart+i;return"<span>"+n+"</span>"},e.viewTour=function(e,o,t){return' <a ui-sref="tours.viewdetails({ id: '+t.id+' });"> '+e+"</a>"},e.nameView=function(e,o,t){return"<a ui-sref='tours.viewdetails({ id: "+t.id+" })'>"+t.name+"</a>"},e.Creator=function(e,o,t){return t.creator},e.dtOptions=c.newOptions().withDataProp("data").withOption("ajax",function(o,t,a){o.filerData=e.filterData,l.showDataTable(o).success(function(o){o.error?e.reloadData():t(o)}).error(function(o){o&&e.reloadData()})}).withOption("processing",!0).withOption("serverSide",!0).withPaginationType("simple_numbers").withOption("order",[0,"desc"]).withDOM("lftip").withOption("searchDelay",500).withOption("createdRow",e.createdRow),e.dtColumns=[d.newColumn("id").withTitle("No").withOption("searchable",!1).renderWith(e.indexNumber).withClass("table-index"),d.newColumn("name").withTitle("Tour Name").withOption("searchable",!0).renderWith(e.nameView),d.newColumn("organization").withTitle("Organization Name").withOption("searchable",!0),d.newColumn("start_date").withTitle("Date Time Arriving").withOption("searchable",!0),d.newColumn(null).withTitle("# of Visitors").withOption("searchable",!1).notSortable().renderWith(e.setPerson),d.newColumn("category").withTitle("Category").withOption("searchable",!0),d.newColumn("tapes.name").withTitle("Tour Type").withOption("searchable",!0),d.newColumn("tour_manager.name").withTitle("Tour Manager").withOption("searchable",!0),d.newColumn(null).withTitle("Meal").withOption("searchable",!1).notSortable().renderWith(e.mealOptions),d.newColumn(null).withTitle("Momento").withOption("searchable",!0).renderWith(e.momentosOption),d.newColumn(null).withTitle("Status").withOption("searchable",!1).notSortable().renderWith(e.statusAction),d.newColumn("creator").withTitle("Created By").withOption("searchable",!0).renderWith(e.Creator),d.newColumn(null).withTitle("Action").withOption("searchable",!1).notSortable().renderWith(e.actionTours)]}e.$inject=["$scope","$state","$stateParams","fileReader","$filter","$uibModal","$rootScope","$compile","ToursFactory","DTOptionsBuilder","DTColumnBuilder","$timeout","Notification"],angular.module("BlurAdmin.pages.tours").controller("ListToursCtrl",e)}(),function(){"use strict";function e(e,o,t,a,i,n,r,s,l,c,d,u,m,p){4==d?e.formscope={mailSubject:"Feedback for Tour",mailContent:"<p>Jay Swaminarayan! </p><p> Hope you all enjoyed a lot in tour. </p><p> Your feedback are appreciated, please click on below link and provide us your feedback. </p>"}:1==d?e.formscope={mailSubject:"Tour Status Information",mailContent:"<p>Jay Swaminarayan! </p><p>Your tour has been recieved but NOT confirmed. We will let you know once your tour is confirmed.</p>"}:3==d||2==d?e.formscope={mailSubject:"Tour Status Information",mailContent:"<p>Jay Swaminarayan! </p><p>Dear {visitorname}, Tour {tourname} on {startdate} is confirmed. Your contact for this tour is: {tourmanager}, {managerphone}, {manageremail}</p>"}:e.formscope={mailSubject:"Welcome to Tour Management",mailContent:"<p>Jay Swaminarayan! </p><p> Dear {tourmanager}, we have registered your Tour with our system on date: {startdate} </p><p> Please acknowledge your confirmation by click on this link. </p>"},e.findIndex=function(e,o,t){for(var a=0;a<t.length;a++)if(t[a][o]===e)return a;return-1},e.findIndexCustom=function(e,o,t){for(var a=0;a<t.length;a++)if(t[a][o]===e&&t[a].is_default)return a;return-1},e.formData={filterData:null},e.filerdatatable=function(){e.formscope.mailSubject=e.emailTemplates[e.findIndex(e.formData.filterData,"id",e.emailTemplates)].title,e.formscope.mailContent=e.emailTemplates[e.findIndex(e.formData.filterData,"id",e.emailTemplates)].html_code},e.createdRow=function(o,t,a){n(angular.element(o).contents())(e)},e.reloadData=function(){e.dtInstance.rerender()},p.getRecords().success(function(o){e.emailTemplates=o.data,e.currentTourStatus=e.emailTemplates[e.findIndexCustom(d,"emailtype",e.emailTemplates)],e.emailTemplates.unshift({title:e.formscope.mailSubject,html_code:e.formscope.mailContent}),e.formData.filterData=e.currentTourStatus.id,e.filerdatatable()}).error(function(e){console.log(Error,e)}),e.displayEditor=!1,l(function(){e.displayEditor=!0},100),e.sendMail=function(){console.log("FORMSCOPE -----",e.formscope),e.formscope.status=e.emailTemplates[e.findIndex(e.currentTourStatus.id,"id",e.emailTemplates)].emailtype,e.formscope.sendMail=1,s.close(e.formscope)},e.donotsendMail=function(){console.log("FORMSCOPE donotsendMail-----",e.formscope),e.formscope.status=e.emailTemplates[e.findIndex(e.currentTourStatus.id,"id",e.emailTemplates)].emailtype,e.formscope.sendMail=0,s.close(e.formscope)}}e.$inject=["$scope","$state","fileReader","$filter","$rootScope","$compile","$injector","$uibModalInstance","$timeout","Notification","tourStatus","DTOptionsBuilder","DTColumnBuilder","EmailtemplatesFactory"],angular.module("BlurAdmin.pages.tours").controller("TourMailModalCtrl",e)}(),function(){"use strict";function e(e,o,t,a,i,n,r,s,l,c,d,u,m,p,g,f,v,b,h,y,w,_,M,x,T,S,P,C,D){if(e.pageName="",e.btnName="Update",e.isSubmitted=!1,e.urlID=y.id,e.showTable=!0,e.smartTablePageSize=5,e.smartTablePageSize1=10,e.loginID=i.auth_user.id,e.userID=i.auth_user.id,e.activeTaskList=[],e.addTaskBtn=!1,e.minDateMoment=moment().subtract("day"),e.visitors=[],e.references=[],e.meetings=[],e.mealsType=[],e.selectedMeals=[],e.userRoleID=Object.keys(i.role)[0],e.tourCompleted=!0,e.editTourBtn=!1,e.genderOption=[{label:"-",value:""},{label:"Male",value:"m"},{label:"Female",value:"f"}],e.statusOption=[{label:"Pending",value:0},{label:"Confirmed",value:1},{label:"Rejected",value:2}],1==e.userRoleID);else;r.getRecords().success(function(o){e.tourStatusOption=o.data.filter(function(e){return e.is_default}),e.tourStatusOption=e.tourStatusOption.sort(function(e,o){return e.sort_by>o.sort_by})}).error(function(e){console.log(Error,e)}),D.getRecords().success(function(o){e.tourMomentoOptions=e.tourMomentoOptions.concat(o.data)}).error(function(e){}),e.getMomentoLabel=function(o){if(!e.tourMomentoOptions)return"";var t=e.tourMomentoOptions.filter(function(e){return e.id==o});return t?t.name:""},e.changeStatus=function(o){console.log("Status Info : ",o),a.open({animation:!0,controller:"AddCommentModalCtrl",templateUrl:"app/pages/tours/commentModal.html",resolve:{tourStatus:function(){return t}}}).result.then(function(t){if(1==o||2==o||3==o||4==o)e.mailModal(t,o);else{var a={id:e.urlID,action:o,comment:t};l.actionRecord(a).success(function(e){M.success(e.success)}).error(function(e){M.error(e.error)})}})},e.mailModal=function(o,t){a.open({animation:!0,backdrop:"static",controller:"TourMailModalCtrl",templateUrl:"app/pages/tours/mailModal.html",resolve:{tourStatus:function(){return t}}}).result.then(function(t){var t={id:e.urlID,action:t.status,comment:o,sendMail:t.sendMail,mailSubject:t.mailSubject,mailContent:t.mailContent};e.formscope.status=e.tourStatusOption[e.findIndexCustm(t.action,"emailtype",e.tourStatusOption)].emailtype,l.actionRecord(t).success(function(e){M.success(e.success)}).error(function(e){console.log("Error : ",e),M.error(e.error)})})},_.get("$validation"),e.errorMessage=f.validation,e.TransportOption=[{name:"Please select transport type",id:null}],e.findIndexCustm=function(e,o,t){for(var a=0;a<t.length;a++)if(t[a][o]===e)return a;return-1},b.getAllRecords().success(function(o){e.TransportOption=e.TransportOption.concat(o.data)}).error(function(e){}),e.TourTypeOption=[{name:"Please select tour type",id:null}],v.getAllRecords().success(function(o){e.TourTypeOption=e.TourTypeOption.concat(o.data)}).error(function(e){}),e.OrganizationTypeOption=[{name:"Please select organization type",id:null}],g.getAllRecords().success(function(o){e.OrganizationTypeOption=e.OrganizationTypeOption.concat(o.data)}).error(function(e){}),e.mealsTypeOption=[{name:"Please select meal type",id:null}],p.getAllRecords().success(function(o){e.mealsTypeOption=e.mealsTypeOption.concat(o.data)}).error(function(e){}),e.locationsTypeOption=[{name:"Please select location",id:null}],m.getAllRecords().success(function(o){e.locationsTypeOption=e.locationsTypeOption.concat(o.data)}).error(function(e){}),e.mealServiceTypeOption=[{name:"Please select meal service type",id:null}],d.getAllRecords().success(function(o){e.mealServiceTypeOption=e.mealServiceTypeOption.concat(o.data)}).error(function(e){}),e.mealServiceLocationsOption=[{name:"Please select meal service location",id:null}],u.getAllRecords().success(function(o){e.mealServiceLocationsOption=e.mealServiceLocationsOption.concat(o.data)}).error(function(e){}),e.VisitorOption=[{name:"Please select visitor type",id:null}],s.getAllRecords().success(function(o){e.VisitorOption=e.VisitorOption.concat(o.data)}).error(function(e){}),e.usersOption=[{name:"Please select catering manager",id:null}],c.getRecords().success(function(o){e.usersOption=e.usersOption.concat(o.data),$.each(e.usersOption,function(o,t){void 0!=e.usersOption[o].id&&1==e.usersOption[o].availability&&(e.usersOption[o].isDisabled=!0)})}).error(function(e){}),e.volunteersOption=[{name:"Please select volunteers",id:null}],c.getVolunteers(e.urlID).success(function(o){e.volunteersOption=e.volunteersOption.concat(o.data),$.each(e.volunteersOption,function(o,t){void 0!=e.volunteersOption[o].id&&1==e.volunteersOption[o].availability&&(e.volunteersOption[o].isDisabled=!0)})}).error(function(e){}),e.showOrganizationTypeOption=function(o){var a=[];return null!=o.organization_id&&(a=t("filter")(e.OrganizationTypeOption,{id:o.organization_id})),a.length?a[0].name:"-"},e.showVisitorOption=function(o){var a=[];return null!=o.visitor_type&&(a=t("filter")(e.VisitorOption,{id:o.visitor_type})),a.length?a[0].name:"-"},e.showUsers=function(o){var t=[];return o.user_id&&(t=e.volunteersOption.filter(function(e){return e.id==o.user_id})),t.length?t[0].name:"-"},e.showStatus=function(o){var a=[];return o.user_id?(o.user_id&&(a=t("filter")(e.statusOption,{value:o.acknowledge})),a.length?a[0].label:"-"):"-"},e.showMealsTypeOption=function(o){var a=[];return null!=o.meal_id&&(a=t("filter")(e.mealsTypeOption,{id:o.meal_id})),a.length?a[0].name:"-"},e.showMealServiceTypeOption=function(o){var a=[];return null!=o.meal_service_type_id&&(a=t("filter")(e.mealServiceTypeOption,{id:o.meal_service_type_id})),a.length?a[0].name:"-"},e.showMealServiceLocationsOption=function(o){var a=[];return null!=o.meal_service_location_id&&(a=t("filter")(e.mealServiceLocationsOption,{id:o.meal_service_location_id})),a.length?a[0].name:"-"},e.showCateringManager=function(o){var a=[];return null!=o.catering_manager&&(a=t("filter")(e.usersOption,{id:o.catering_manager})),a.length?a[0].name:"-"},e.visitortypes=[],l.getRecord(e.urlID).success(function(o){h(function(){e.formscope=o.data,e.formscope.status=e.tourStatusOption[e.findIndexCustm(o.data.status,"emailtype",e.tourStatusOption)].emailtype,e.pageName=e.formscope.name,null==e.formscope.tourtype_id&&(e.tourCompleted=!1),4==o.data.status?e.tourCompleted=!1:e.editTourBtn=!0,e.formscope.meals=1==o.data.meals,e.activeTask=o.data.tour_tasks,e.formscope.total_guest=Number(e.formscope.adults)+Number(e.formscope.children)+Number(e.formscope.senior),
$.each(o.data.tour_meals,function(e,o){}),e.mealsType=o.data.tour_meals,e.tourFeedback=o.data.tour_feedback,$.each(o.data.tour_visitors_edit,function(t,a){1==o.data.tour_visitors_edit[t].is_tour_admin&&(o.data.contact_manager=o.data.tour_visitors_edit[t].visitor.email,e.contactManagerDetails=o.data.tour_visitors_edit[t]);var i=e.VisitorOption.filter(function(a){return e.id===o.data.tour_visitors_edit[t].visitor.visitor_type});i.length>0&&(o.data.tour_visitors_edit[t].visitor.visitor_txt=i[0].name);var n=o.data.tour_visitors_edit[t].visitor.visitor_txt;$.inArray(n,e.visitortypes)==-1&&e.visitortypes.push(n),e.visitors.push(o.data.tour_visitors_edit[t].visitor)}),e.formscope.visitors=e.visitors,$.each(o.data.tour_refference_edit,function(t,a){e.references.push(o.data.tour_refference_edit[t].refference)}),e.formscope.references=e.references,$.each(o.data.tour_meeting_edit,function(t,a){e.meetings.push(o.data.tour_meeting_edit[t].meeting)}),e.formscope.meetings=e.meetings,e.formscope.mealsType=e.mealsType,e.formscope.tasks=o.data.tour_tasks,e.activity=o.data.tour_history,e.docList=e.formscope.tour_documents,e.notes=e.formscope.tour_notes,$.each(e.notes,function(o,t){e.notes[o].name=e.notes[o].tour_notes_created.name}),$.each(e.docList,function(o,t){e.docList[o].name=e.docList[o].tour_docs_created.name}),e.visitorcategory=e.visitortypes.join("/")},500)}).error(function(e){M.error(e.error),w.go("tours.list")}),e.addTask=function(){e.inserted={id:null,task:"",user_id:null,acknowledge:0},e.formscope.tasks.push(e.inserted)},e.add_data=function(o,t,a){t?(o.id=t,o.tour_name=e.formscope.name,o.user_name=e.showUsers(o),l.updateTask(o).success(function(e){M.success(e.success)}).error(function(e){M.error(e.error)})):(o.tourtype_id=e.formscope.tour_tapes.id,o.tour_id=e.formscope.id,o.tour_name=e.formscope.name,console.log("FInal add task data : ",o),o.user_name=e.showUsers(o),l.addTask(o).success(function(o){e.formscope.tasks[a].id=o.data.id,M.success(o.success)}).error(function(e){M.error(e.error)}))},e.checkTask=function(o){return""==o||null==o||"null"==o?e.errorMessage.task.required:o.length<=2?e.errorMessage.task.minlength:o.length>=200?e.errorMessage.task.maxlength:void 0},e.removeUser=function(o,t){t?l.deleteTask(t).success(function(t){M.success(t.success),e.formscope.tasks.splice(o,1)}).error(function(e){M.error(e.error)}):(e.showTable=!1,e.formscope.tasks.splice(o,1),h(function(){e.$apply(),e.showTable=!0},100))},e.cancelRow=function(o){e.showTable=!1,e.formscope.tasks.splice(o,1),e.showTable=!0},e.actionTask=function(o,t,a){var i={id:o,task_name:e.formscope.tasks[a].task,status:t};l.actionTask(i).success(function(o){e.formscope.tasks[a].acknowledge=t,M.success(o.success)}).error(function(e){M.error(e.error)})},e.addDocument=function(o){a.open({animation:!0,controller:"AddDocumentModalCtrl",templateUrl:"app/pages/tours/documentModal.html",resolve:{docLink:function(){return""},docTitle:function(){return""},docName:function(){return""}}}).result.then(function(o){o.tour_id=e.urlID;var t=!1,a=!1;$.each(e.docList,function(i,n){e.docList[i].title.toLowerCase()===o.title.toLowerCase()?t=!0:e.docList[i].link===o.link&&(a=!0)}),t?M.error("The document title you have entered already exist"):a?M.error("The document link you have entered already exist"):l.tourDocument(o).success(function(t){M.success(t.success),t.data.name=o.name,e.docList.splice(0,0,t.data)}).error(function(e){M.error(e.error)})})},e.editDocument=function(o,t){a.open({animation:!0,controller:"AddDocumentModalCtrl",templateUrl:"app/pages/tours/documentModal.html",resolve:{docLink:function(){return o.link},docTitle:function(){return o.title},docName:function(){return o.name}}}).result.then(function(a){a.tour_id=e.urlID,a.id=o.id,a.created_by=e.loginID;var i=!1,n=!1;$.each(e.docList,function(o,r){e.docList[o].title.toLowerCase()===a.title.toLowerCase()&&t!=o?i=!0:e.docList[o].link===a.link&&t!=o&&(n=!0)}),i?M.error("The document title you have entered already exist"):n?M.error("The document link you have entered already exist"):l.tourDocument(a).success(function(a){M.success(a.success),e.docList[t]=a.data,e.docList[t].name=o.name}).error(function(e){M.error(e.error)})})},e.removeDoc=function(o){var t={id:e.docList[o].id};l.deleteDocument(t).success(function(t){M.success(t.success),e.docList.splice(o,1)}).error(function(e){M.error(e.error)})},e.addNote=function(o){a.open({animation:!0,controller:"AddNoteModalCtrl",templateUrl:"app/pages/tours/noteModal.html",resolve:{notesInfo:function(){return""},notesName:function(){return""}}}).result.then(function(o){o.tour_id=e.urlID,l.tourNote(o).success(function(t){M.success(t.success),t.data.name=o.name,e.notes.splice(0,0,t.data)}).error(function(e){M.error(e.error)})})},e.editNote=function(o,t){a.open({animation:!0,controller:"AddNoteModalCtrl",templateUrl:"app/pages/tours/noteModal.html",resolve:{notesInfo:function(){return o.note},notesName:function(){return o.name}}}).result.then(function(a){e.showTable=!1,a.tour_id=e.urlID,a.id=o.id,l.tourNote(a).success(function(a){M.success(a.success),e.notes[t]=a.data,e.notes[t].name=o.name}).error(function(e){M.error(e.error)})})},e.removeNotes=function(o){var t={id:e.notes[o].id};l.deleteNote(t).success(function(t){M.success(t.success),e.notes.splice(o,1)}).error(function(e){M.error(e.error)})},e.documentOptions=S.newOptions().withPaginationType("simple_numbers"),e.dtColumnDefs=[C.newColumnDef(0),C.newColumnDef(1),C.newColumnDef(2),C.newColumnDef(3),C.newColumnDef(4)],e.notesOptions=S.newOptions().withPaginationType("simple_numbers"),e.notesColumnDefs=[C.newColumnDef(0),C.newColumnDef(1),C.newColumnDef(2),C.newColumnDef(3)],e.visitorOptions=S.newOptions().withPaginationType("simple_numbers"),e.visitorColumnDefs=[C.newColumnDef(0),C.newColumnDef(1),C.newColumnDef(2),C.newColumnDef(3),C.newColumnDef(4),C.newColumnDef(5)],e.historyOptions=S.newOptions().withPaginationType("simple_numbers"),e.historyColumnDefs=[C.newColumnDef(0),C.newColumnDef(1)],e.referenceOptions=S.newOptions().withPaginationType("simple_numbers"),e.referenceColumnDefs=[C.newColumnDef(0),C.newColumnDef(1),C.newColumnDef(2)],e.meetingOptions=S.newOptions().withPaginationType("simple_numbers"),e.meetingColumnDefs=[C.newColumnDef(0),C.newColumnDef(1),C.newColumnDef(2)]}e.$inject=["$scope","fileReader","$filter","$uibModal","$rootScope","$compile","EmailtemplatesFactory","VisitorsFactory","ToursFactory","UsersFactory","MealservicetypesFactory","MealservicelocationsFactory","LocationsFactory","MealsFactory","OrganizationsFactory","DefaulttasksFactory","TourtypesFactory","TransportsFactory","$timeout","$stateParams","$state","$injector","Notification","editableOptions","editableThemes","DTOptionsBuilder","DTColumnBuilder","DTColumnDefBuilder","MomentosFactory"],angular.module("BlurAdmin.pages.tours").controller("ViewToursCtrl",e)}(),function(){"use strict";function e(e,o,t,a,i,n,r,s,l,c,d,u,m,p){e.dtInstance={},e.reloadData=function(){e.dtInstance.rerender()},e.createdRow=function(o,t,a){s(angular.element(o).contents())(e)},e.statueRender=function(e,o,t){return 1==e?"Unavailable":"Available"},e.indexNumber=function(e,o,t,a){var i=Number(a.row)+Number(1),n=a.settings._iDisplayStart+i;return"<span>"+n+"</span>"},e.dtOptions=a.newOptions().withDataProp("data").withOption("ajax",function(o,t,a){l.showAvailabilitiesDataTable(o).success(function(o){o.error?e.reloadData():t(o)}).error(function(o){o.error&&e.reloadData()})}).withOption("processing",!0).withOption("serverSide",!0).withPaginationType("simple_numbers").withOption("order",[0,"desc"]).withDOM("lftip").withOption("searchDelay",500).withOption("createdRow",e.createdRow),e.dtColumns=[i.newColumn("id").withTitle("No").withOption("searchable",!1).renderWith(e.indexNumber).withClass("table-index"),i.newColumn("user.name").withTitle("User Name").withOption("searchable",!0),i.newColumn("status").withTitle("Status").withOption("searchable",!0).renderWith(e.statueRender),i.newColumn("comment").withTitle("Comment").withOption("searchable",!0)]}e.$inject=["$scope","fileReader","$filter","DTOptionsBuilder","DTColumnBuilder","$uibModal","$rootScope","$compile","UsersFactory","$timeout","$stateParams","$state","$injector","Notification"],angular.module("BlurAdmin.pages.useravailabilities").controller("AvailabilitiesCtrl",e)}(),function(){"use strict";function e(e,o,t,a,i,n,r,s,l,c,d,u,m){e.pageName="Add User",e.btnName="Add",e.formscope={gender:null,user_type:null,country_id:null,status:1,first_name:"",middle_name:"",last_name:"",dob:"",phone_number:"",mobile:"",address:"",address1:"",state:"",city:"",zip_code:""},e.isSubmitted=!1,e.loginProgress=!1,e.genderOption=[{label:"Please select gender",value:null},{label:"Male",value:"m"},{label:"Female",value:"f"}],e.statusOption=[{label:"Please select status",value:null},{label:"Active",value:1},{label:"Inactive",value:2}],e.userTypeOption=[{id:null,name:"Please select user type"}],m.roleList().success(function(o){e.userTypeOption=e.userTypeOption.concat(o.data)}).error(function(e){}),e.countries=[{id:null,country_name:"Please select country"}],r.getCountry().success(function(o){e.countries=e.countries.concat(o)}).error(function(e){}),e.errorMessage=r.validation;var p=d.get("$validation");p.setExpression({confirmPassword:function(e,o,t,a){return o.formscope.password===o.formscope.confirm_password}}).setDefaultMsg({confirmPassword:{error:"Passwords do not match."}}),e.mailModal=function(o){p.validate(o).success(function(){a.open({animation:!0,backdrop:"static",controller:"UserMailModalCtrl",templateUrl:"app/pages/users/mailModal.html",resolve:{}}).result.then(function(o){e.add_data(o)})}).error(function(){e.isSubmitted=!1})},e.add_data=function(o){if(e.isSubmitted=!0,e.loginProgress=!0,e.formscope.password=i.makeid(8),e.formscope.dob){if(e.formscope.dob=moment(e.formscope.dob).format("YYYY-MM-DD"),"Invalid date"==e.formscope.dob)return u.error("Please enter valid date.");e.formscope.dob="",e.loginProgress=!1,void(e.isSubmitted=!1);var t=(new moment).format("YYYY-MM-DD");if(e.formscope.dob>t)return u.error("Please enter valid date.");e.loginProgress=!1,void(e.isSubmitted=!1)}e.formscope.sendMail=o.sendMail,e.formscope.mailSubject=o.mailSubject,e.formscope.mailContent=o.mailContent,r.addRecord(e.formscope).success(function(o){u.success(o.success),c.go("users.list"),e.isSubmitted=!1}).error(function(o){e.loginProgress=!1,u.error(o.error),e.isSubmitted=!1})}}e.$inject=["$scope","fileReader","$filter","$uibModal","$rootScope","$compile","UsersFactory","$timeout","$stateParams","$state","$injector","Notification","RolesFactory"],angular.module("BlurAdmin.pages.users").controller("AddUsersCtrl",e)}(),function(){"use strict";function e(e,o,t,a,i,n,r,s,l,c,d,u){e.btnName="Change",e.isSubmitted=!1,e.titleName="Change Password",e.changepassformscope={};var m=s.get("$validation");e.errorMessage=d.validation,m.setExpression({confirmPassword:function(e,o,t,a){return o.changepassformscope.new_password===o.changepassformscope.confirm_password}}).setDefaultMsg({confirmPassword:{error:"Passwords do not match."}}),e.change_password=function(o){e.isSubmitted=!0,m.validate(o).success(function(){d.changePassword(u,e.changepassformscope).success(function(o){c.success(o.success),e.isSubmitted=!1,e.changepassformscope={},l.close(e.changepassformscope)}).error(function(o){c.error(o.error),e.isSubmitted=!1})}).error(function(){e.isSubmitted=!1})}}e.$inject=["$scope","fileReader","$filter","$timeout","$uibModal","$rootScope","$compile","$injector","$uibModalInstance","Notification","UsersFactory","user_id"],angular.module("BlurAdmin.pages.users").controller("ChangePasswordCtrl",e)}(),function(){"use strict";function o(o,t,a,i,n,r,s,l,c,d,u,m,p){o.pageName="Edit User",o.btnName="Update",o.isSubmitted=!1,o.urlID=c.id,s.getRecord(o.urlID).success(function(e){o.formscope=e.data}).error(function(e){m.error(e.error),d.go("roles.list")}),o.genderOption=[{label:"Please select gender",value:""},{label:"Male",value:"m"},{label:"Female",value:"f"}],o.statusOption=[{label:"Please select status",value:null},{label:"Active",value:1},{label:"Inactive",value:2}],o.userTypeOption=[{id:null,name:"Please select user type"}],p.roleList().success(function(e){o.userTypeOption=o.userTypeOption.concat(e.data)}).error(function(e){}),o.countries=[{id:null,country_name:"Please select country"}],s.getCountry().success(function(e){o.countries=o.countries.concat(e)}).error(function(e){}),o.errorMessage=s.validation;var g=u.get("$validation");g.setExpression({confirmPassword:function(e,o,t,a){return o.formscope.password===o.formscope.confirm_password}}).setDefaultMsg({confirmPassword:{error:"Passwords do not match."}}),o.add_data=function(t){o.isSubmitted=!0,g.validate(t).success(function(){if(o.formscope._method="PUT",void 0===o.formscope.dob||null===o.formscope.dob)o.formscope.dob=null;else{if(o.formscope.dob=moment(o.formscope.dob).format("YYYY-MM-DD"),"Invalid date"==o.formscope.dob)return m.error("Please enter valid date."),o.formscope.dob="",void(o.isSubmitted=!1);var t=(new moment).format("YYYY-MM-DD");if(o.formscope.dob>t)return m.error("Please enter valid date."),void(e.isSubmitted=!1)}s.updateRecord(o.urlID,o.formscope).success(function(e){m.success(e.success),d.go("users.list"),o.isSubmitted=!1}).error(function(e){m.error(e.error),o.isSubmitted=!1})}).error(function(e){o.isSubmitted=!1})}}o.$inject=["$scope","fileReader","$filter","$uibModal","$rootScope","$compile","UsersFactory","$timeout","$stateParams","$state","$injector","Notification","RolesFactory"],angular.module("BlurAdmin.pages.users").controller("EditUsersCtrl",o)}(),function(){"use strict";function e(e,o,t,a,i,n,r){e.formscope={mailSubject:"Welcome to Tour Management",mailContent:"<p>Jay Swaminarayan! </p><p> Welcome to Tour Management System </p><p> We have added you as {rolename} in tour management </p><p> Login details are as below.</p> "},e.displayEditor=!1,n(function(){e.displayEditor=!0},100),e.sendMail=function(){e.formscope.sendMail=1,i.close(e.formscope)},e.donotsendMail=function(){e.formscope.sendMail=0,i.close(e.formscope)}}e.$inject=["$scope","$rootScope","$compile","$injector","$uibModalInstance","$timeout","Notification"],angular.module("BlurAdmin.pages.users").controller("UserMailModalCtrl",e)}(),function(){"use strict";function e(e,o,t,a,i,n,r,s,l,c,d){e.pageName="Users - View",e.btnName="View",e.isSubmitted=!1,e.urlID=r.id,e.genderOption=[{label:"-",value:null},{label:"Male",value:"m"},{label:"Female",value:"f"}],e.showGender=function(o){var a=[];return a=t("filter")(e.genderOption,{value:o}),a.length?a[0].label:"-"},s.getRecord(e.urlID).success(function(o){e.formscope=o.data,e.formscope.gender_text=e.showGender(e.formscope),e.formscope.image&&null!=e.formscope.image?e.imageUrl=config.profile_url+"/"+e.formscope.id+"/"+e.formscope.image:e.imageUrl=config.profile_url+"/noImage.png"}).error(function(e){Notification.error(e.error),$state.go("roles.list")})}e.$inject=["$scope","fileReader","$filter","$uibModal","$rootScope","$compile","$stateParams","UsersFactory","$timeout","ngDialog","$config"],angular.module("BlurAdmin.pages.users").controller("ViewUsersCtrl",e)}(),function(){"use strict";function e(e,o,t,a,i,n,r,s,l,c,d,u,m,p){e.pageName="Edit User",e.btnName="Update Profile",e.isSubmitted=!1,e.urlID=n.auth_user.id,e.uploadPicture=function(){var e=document.getElementById("uploadFile");e.click()},e.time_hour=[{value:"00",label:"00",isDisabled:!1},{value:"01",label:"01",isDisabled:!1},{value:"02",label:"02",isDisabled:!1},{value:"03",label:"03",isDisabled:!1},{value:"04",label:"04",isDisabled:!1},{value:"05",label:"05",isDisabled:!1},{value:"06",label:"06",isDisabled:!1},{value:"07",label:"07",isDisabled:!1},{value:"08",label:"08",isDisabled:!1},{value:"09",label:"09",isDisabled:!1},{value:"10",label:"10",isDisabled:!1},{value:"11",label:"11",isDisabled:!1},{value:"12",label:"12",isDisabled:!1}],e.time_min=[{value:"00",label:"00",isDisabled:!1},{value:"05",label:"05",isDisabled:!1},{value:"10",label:"10",isDisabled:!1},{value:"15",label:"15",isDisabled:!1},{value:"20",label:"20",isDisabled:!1},{value:"25",label:"25",isDisabled:!1},{value:"30",label:"30",isDisabled:!1},{value:"35",label:"35",isDisabled:!1},{value:"40",label:"40",isDisabled:!1},{value:"45",label:"45",isDisabled:!1},{value:"50",label:"50",isDisabled:!1},{value:"55",label:"55",isDisabled:!1}],e.am_pm=[{value:"am",label:"AM",isDisabled:!1},{value:"pm",label:"PM",isDisabled:!1}],e.days=["monday","tuesday","wednesday","thursday","friday","saturday","sunday"],s.getRecord(e.urlID).success(function(o){e.formscope=o.data}).error(function(e){m.error(e.error),d.go("roles.list")}),e.genderOption=[{label:"Please select gender",value:""},{label:"Male",value:"m"},{label:"Female",value:"f"}],e.userTypeOption=[{id:null,name:"Please select user type"}],p.roleList().success(function(o){e.userTypeOption=e.userTypeOption.concat(o.data)}).error(function(e){}),e.countries=[{id:null,country_name:"Please select country"}],s.getCountry().success(function(o){e.countries=e.countries.concat(o)}).error(function(e){}),s.getRecord(e.urlID).success(function(o){e.formscope=o.data,e.tempDays=e.formscope,e.days.forEach(function(o){if(!e.tempDays[o+"_start"]){var t={};t.hour="",t.min="",t.am_pm="",e.tempDays[o+"_start"]=t}if(!e.tempDays[o+"_stop"]){var a={};a.hour="",a.min="",a.am_pm="",e.tempDays[o+"_stop"]=a}e.tempDays[o+"_full_day"]&&(e.tempDays[o+"_full_day"]=1==e.tempDays[o+"_full_day"])}),e.formscopestatus={status:e.formscope.availability},e.formscopestatus=Object.assign(e.formscopestatus,e.tempDays),e.formscope.image?e.imageUrl=config.profile_url+"/"+e.formscope.id+"/"+e.formscope.image:e.imageUrl=config.profile_url+"/noImage.png"}).error(function(e){m.error(e.error),d.go("roles.list")}),e.errorMessage=s.validation,e.add_data=function(o){e.isSubmitted=!0,g.validate(o).success(function(){if(e.formscope._method="PUT",void 0===e.formscope.dob)e.formscope.dob=null;else{if(e.formscope.dob=moment(e.formscope.dob).format("YYYY-MM-DD"),"Invalid date"==e.formscope.dob)return m.error("Please enter valid date."),e.formscope.dob="",void(e.isSubmitted=!1);var o=(new moment).format("YYYY-MM-DD");if(e.formscope.dob>o)return m.error("Please enter valid date."),void(e.isSubmitted=!1)}s.editProfile(e.urlID,e.formscope).success(function(o){m.success(o.success),o.data.image?e.imageUrl=config.profile_url+"/"+o.data.id+"/"+o.data.image:e.imageUrl=config.profile_url+"/noImage.png";var t={};t=o.data,i.put("authUser",JSON.stringify(t)),e.isSubmitted=!1}).error(function(o){m.error(o.error),e.isSubmitted=!1})}).error(function(o){e.isSubmitted=!1})},e.changepassformscope={};var g=u.get("$validation");g.setExpression({confirmPassword:function(e,o,t,a){return o.changepassformscope.new_password===o.changepassformscope.confirm_password}}).setDefaultMsg({confirmPassword:{error:"Passwords do not match."}}),e.change_password=function(o){e.isSubmitted=!0,g.validate(o).success(function(){s.updatePassword(e.urlID,e.changepassformscope).success(function(o){m.success(o.success),e.isSubmitted=!1,e.changepassformscope={}}).error(function(o){m.error(o.error),e.isSubmitted=!1})}).error(function(){e.isSubmitted=!1})},e.change_availability=function(o){e.isSubmitted=!0,g.validate(o).success(function(){e.formscope.availability===e.formscopestatus.status?(m.error("You have already defined this availability status. please select other availability status."),e.isSubmitted=!1):s.updateAvailability(e.urlID,e.formscopestatus).success(function(o){m.success(o.success),e.formscope.availability=e.formscopestatus.status,e.formscopestatus.comment="",e.isSubmitted=!1}).error(function(o){m.error(o.error),e.isSubmitted=!1})}).error(function(o){e.isSubmitted=!1})}}e.$inject=["$scope","fileReader","$filter","$uibModal","$cookies","$rootScope","$compile","UsersFactory","$timeout","$stateParams","$state","$injector","Notification","RolesFactory"],angular.module("BlurAdmin.pages.users").controller("editProfileCtrl",e)}(),function(){"use strict";function e(e,o,t,a,i,n,r,s,l,c,d,u,m){e.dtInstance={},e.reloadData=function(){e.dtInstance.rerender()},e.createdRow=function(o,t,a){r(angular.element(o).contents())(e)},e.genderRender=function(e,o,t){return"f"==e?"Female":"m"==e?"Male":"-"},e.changePassword=function(e){i.open({animation:!0,size:"sm",controller:"ChangePasswordCtrl",templateUrl:"app/pages/users/changePassword.html",resolve:{user_id:function(){return e}}}).result.then(function(e){})},e.resendmailModal=function(o){i.open({animation:!0,backdrop:"static",controller:"UserMailModalCtrl",templateUrl:"app/pages/users/mailModal.html",resolve:{}}).result.then(function(t){t.userId=o,1==t.sendMail&&e.resendEmail(t)})},e.resendEmail=function(o){e.users[o.userId].isSubmitted=!0;var t={id:o.userId,sendMail:o.sendMail,mailSubject:o.mailSubject,mailContent:o.mailContent};c.resendEmail(t).success(function(t){m.success(t.success),e.users[o.userId].isSubmitted=!1}).error(function(t){e.users[o.userId].isSubmitted=!1,m.error(t.error)})},e.roleRender=function(o,t,a){if(o){var i=e.role.split("||");return i[1]}return"-"},e.deleteRecord=function(e){c.deleteRecord(e).success(function(e){m.success(e.success),t.reload()}).error(function(e){m.error(e.error)})},e.actionRoles=function(o,t,a){if(0!=a.is_editable){var i="";return a.mobile&&(e.users[a.id]=a,e.users[a.id].isSubmitted=!1,i="<a ng-if=\"havePermission('users','resend.email');\" class='cursor-pointer' ng-hide='users["+a.id+"].isSubmitted' style='cursor:pointer' ng-click='resendmailModal("+a.id+")' title='Resend Email'><i class='fa fa-repeat'></i></a> "),"<a ng-if=\"havePermission('users','view');\" ui-sref='users.viewdetails({ id: "+a.id+" })'><i class='fa fa-eye'></i></a> <a ng-if=\"havePermission('users','update');\" ui-sref='users.edit({ id: "+a.id+" })'><i class='fa fa-edit'></i></a> <a ng-click='changePassword("+a.id+")' ng-if=\"havePermission('users','update.password');\" title='Change Password'><i class='fa fa-key'></i></a> <a ng-if=\"havePermission('users','delete');\" class='cursor-pointer' style='cursor:pointer' ng-confirm-click='Are you sure to delete this user?' confirmed-click='deleteRecord("+a.id+")' title='Delete User'><i class='fa fa-trash'></i></a> "+i}return"-"},e.indexNumber=function(e,o,t,a){var i=Number(a.row)+Number(1),n=a.settings._iDisplayStart+i;return"<span>"+n+"</span>"},e.dtOptions=s.newOptions().withDataProp("data").withOption("ajax",function(o,t,a){c.showDataTable(o).success(function(o){o.error?e.reloadData():t(o)}).error(function(o){o.error&&e.reloadData()})}).withOption("processing",!0).withOption("serverSide",!0).withPaginationType("simple_numbers").withOption("order",[1,"asc"]).withDOM("lftip").withOption("searchDelay",500).withOption("createdRow",e.createdRow),e.dtColumns=[l.newColumn("id").withTitle("No").withOption("searchable",!1).renderWith(e.indexNumber).withClass("table-index"),l.newColumn("name").withTitle("Name").withOption("searchable",!0),l.newColumn("email").withTitle("Email").withOption("searchable",!0),l.newColumn("mobile").withTitle("Mobile").withOption("searchable",!0),l.newColumn("gender").withTitle("Gender").withOption("searchable",!0),l.newColumn("role").withTitle("Role").withOption("searchable",!0),l.newColumn(null).withTitle("Action").withOption("searchable",!1).renderWith(e.actionRoles).notSortable()]}e.$inject=["$scope","fileReader","$state","$filter","$uibModal","$rootScope","$compile","DTOptionsBuilder","DTColumnBuilder","UsersFactory","$timeout","ngDialog","Notification"],angular.module("BlurAdmin.pages.users").controller("UsersCtrl",e)}(),function(){"use strict";function e(e){angular.extend(e,{closeButton:!0,closeHtml:"<button>&times;</button>",timeOut:5e3,autoDismiss:!1,containerId:"toast-container",maxOpened:0,newestOnTop:!0,positionClass:"toast-top-right",preventDuplicates:!1,preventOpenDuplicates:!1,target:"body"})}e.$inject=["toastrConfig"],angular.module("BlurAdmin.theme.components").config(e)}(),function(){"use strict";function e(e){return{link:function(o,t){e(function(){function o(o){e(function(){t.html(o)},30)}var a=t.attr("new-value"),i=parseInt(t.html());if(a>i)for(var n=i;n<=a;n++)o(n);else for(var r=i;r>=a;r--)o(r);e(function(){t.next().find("i").addClass("show-arr")},500)},3500)}}}e.$inject=["$timeout"],angular.module("BlurAdmin.theme").directive("animatedChange",e)}(),function(){"use strict";function e(){return{restrict:"A",link:function(e,o){o.bind("keydown",function(e){var o=e.target;$(o).height(0);var t=$(o)[0].scrollHeight;t=t<16?16:t,$(o).height(t)}),setTimeout(function(){var e=o;$(e).height(0);var t=$(e)[0].scrollHeight;t=t<16?16:t,$(e).height(t)},0)}}}angular.module("BlurAdmin.theme").directive("autoExpand",e)}(),function(){"use strict";function e(e,o){return{link:function(t,a,i){var n=o(i.autoFocus);t.$watch(n,function(o){o===!0&&e(function(){a[0].focus(),a[0].select()})}),a.bind("blur",function(){t.$apply(n.assign(t,!1))})}}}e.$inject=["$timeout","$parse"],angular.module("BlurAdmin.theme").directive("autoFocus",e)}(),function(){"use strict";function e(){return{restrict:"AE",templateUrl:function(e,o){return o.includeWithScope}}}angular.module("BlurAdmin.theme").directive("includeWithScope",e)}(),function(){"use strict";function e(e){return{restrict:"EA",template:"<div></div>",replace:!0,scope:{min:"=",max:"=",type:"@",prefix:"@",maxPostfix:"@",prettify:"=",prettifySeparator:"@",grid:"=",gridMargin:"@",postfix:"@",step:"@",hideMinMax:"@",hideFromTo:"@",from:"=",to:"=",disable:"=",onChange:"=",onFinish:"=",values:"=",timeout:"@"},link:function(o,t){t.ionRangeSlider({min:o.min,max:o.max,type:o.type,prefix:o.prefix,maxPostfix:o.maxPostfix,prettify_enabled:o.prettify,prettify_separator:o.prettifySeparator,grid:o.grid,gridMargin:o.gridMargin,postfix:o.postfix,step:o.step,hideMinMax:o.hideMinMax,hideFromTo:o.hideFromTo,from:o.from,to:o.to,disable:o.disable,onChange:o.onChange,onFinish:o.onFinish,values:o.values}),o.$watch("min",function(o){e(function(){t.data("ionRangeSlider").update({min:o})})},!0),o.$watch("max",function(o){e(function(){t.data("ionRangeSlider").update({max:o})})}),o.$watch("from",function(o){e(function(){t.data("ionRangeSlider").update({from:o})})}),o.$watch("to",function(o){e(function(){t.data("ionRangeSlider").update({to:o})})}),o.$watch("disable",function(o){e(function(){t.data("ionRangeSlider").update({disable:o})})})}}}e.$inject=["$timeout"],angular.module("BlurAdmin.theme").directive("ionSlider",e)}(),function(){"use strict";function e(){return{link:function(e,o){o.bind("change",function(o){e.file=(o.srcElement||o.target).files[0],e.getFile()})}}}angular.module("BlurAdmin.theme").directive("ngFileSelect",e)}(),function(){"use strict";function e(){return{scope:{scrollPosition:"=",maxHeight:"="},link:function(e){$(window).on("scroll",function(){var o=$(window).scrollTop()>e.maxHeight;o!==e.prevScrollTop&&e.$apply(function(){e.scrollPosition=o}),e.prevScrollTop=o})}}}angular.module("BlurAdmin.theme").directive("scrollPosition",e)}(),function(){"use strict";function e(){return{scope:{trackWidth:"=",minWidth:"="},link:function(e,o){e.trackWidth=$(o).width()<e.minWidth,e.prevTrackWidth=e.trackWidth,$(window).resize(function(){var t=$(o).width()<e.minWidth;t!==e.prevTrackWidth&&e.$apply(function(){e.trackWidth=t}),e.prevTrackWidth=t})}}}angular.module("BlurAdmin.theme").directive("trackWidth",e)}(),function(){"use strict";function e(e,o){return{restrict:"A",link:function(t,a){var i=1e3;o.$pageFinishedLoading&&(i=100),e(function(){a.removeClass("full-invisible"),a.addClass("animated zoomIn")},i)}}}e.$inject=["$timeout","$rootScope"],angular.module("BlurAdmin.theme").directive("zoomIn",e)}(),function(){"use strict";function e(e){var o={},t=0,a=100,i=!1;return{setProgress:function(e){if(e>a)throw Error("Progress can't be greater than max");t=e},getProgress:function(){return t},open:function(){if(i)throw Error("Progress modal opened now");o=e.open({animation:!0,templateUrl:"app/pages/ui/modals/progressModal/progressModal.html",size:"sm",keyboard:!1,backdrop:"static"}),i=!0},close:function(){if(!i)throw Error("Progress modal is not active");o.close(),i=!1}}}e.$inject=["$uibModal"],angular.module("BlurAdmin.theme").factory("baProgressModal",e)}(),function(){"use strict";function e(){this.isDescendant=function(e,o){for(var t=o.parentNode;null!=t;){if(t==e)return!0;t=t.parentNode}return!1},this.hexToRGB=function(e,o){var t=parseInt(e.slice(1,3),16),a=parseInt(e.slice(3,5),16),i=parseInt(e.slice(5,7),16);return"rgba("+t+", "+a+", "+i+", "+o+")"},this.hasAttr=function(e,o){var t=$(e).attr(o);return"undefined"!=typeof t&&t!==!1}}angular.module("BlurAdmin.theme").service("baUtil",e)}(),function(){"use strict";function e(e){var o=function(e,o,t){return function(){t.$apply(function(){o.resolve(e.result)})}},t=function(e,o,t){return function(){t.$apply(function(){o.reject(e.result)})}},a=function(e,o){return function(e){o.$broadcast("fileProgress",{total:e.total,loaded:e.loaded})}},i=function(e,i){var n=new FileReader;return n.onload=o(n,e,i),n.onerror=t(n,e,i),n.onprogress=a(n,i),n},n=function(o,t){var a=e.defer(),n=i(a,t);return n.readAsDataURL(o),a.promise};return{readAsDataUrl:n}}e.$inject=["$q"],angular.module("BlurAdmin.theme").service("fileReader",e)}(),function(){"use strict";function e(e){return{loadImg:function(o){var t=e.defer(),a=new Image;return a.src=o,a.onload=function(){t.resolve()},t.promise},loadAmCharts:function(){var o=e.defer();return AmCharts.ready(function(){o.resolve()}),o.promise}}}e.$inject=["$q"],angular.module("BlurAdmin.theme").service("preloader",e)}(),function(){"use strict";function e(e){return{start:function(o,t,a){function i(){return o(t,a)}var n=i();angular.element(e).bind("focus",function(){n&&o.cancel(n),n=i()}),angular.element(e).bind("blur",function(){n&&o.cancel(n)})}}}e.$inject=["$window"],angular.module("BlurAdmin.theme").service("stopableInterval",e)}(),function(){"use strict";function e(e,o,t,a,i,n,r,s,l,c,d,u){e.formscope={status:1},e.pageName="Add Affiliations",e.btnName="Add",e.isSubmitted=!1,e.statusData=[{value:0,text:"Inactive"},{value:1,text:"Active"}];var m=d.get("$validation");e.errorMessage=r.validation,e.add_data=function(o){m.validate(o).success(function(){e.isSubmitted=!0,r.addRecord(e.formscope).success(function(o){u.success(o.success),c.go("categories.affiliations.list"),e.isSubmitted=!1}).error(function(o){u.error(o.error),e.isSubmitted=!1})}).error(function(){e.isSubmitted=!1})}}e.$inject=["$scope","fileReader","$filter","$uibModal","$rootScope","$compile","AffiliationsFactory","$timeout","$stateParams","$state","$injector","Notification"],angular.module("BlurAdmin.pages.categories.affiliations").controller("AddAffiliationsCtrl",e)}(),function(){"use strict";function e(e,o,t,a,i,n,r,s,l,c,d,u){e.pageName="Edit Affiliations",e.btnName="Update",e.isSubmitted=!1,e.urlID=l.id,e.statusData=[{value:0,text:"Inactive"},{value:1,text:"Active"}];var m=d.get("$validation");e.errorMessage=r.validation,r.getRecord(e.urlID).success(function(o){e.formscope=o.data}).error(function(e){u.error(e.error),c.go("categories.affiliations.list")}),e.add_data=function(o){m.validate(o).success(function(){e.isSubmitted=!0,e.formscope._method="PUT",r.updateRecord(e.urlID,e.formscope).success(function(o){u.success(o.success),c.go("categories.affiliations.list"),e.isSubmitted=!1}).error(function(o){u.error(o.error),e.isSubmitted=!1})}).error(function(){e.isSubmitted=!1})}}e.$inject=["$scope","fileReader","$filter","$uibModal","$rootScope","$compile","AffiliationsFactory","$timeout","$stateParams","$state","$injector","Notification"],angular.module("BlurAdmin.pages.categories.affiliations").controller("EditAffiliationsCtrl",e)}(),function(){"use strict";function e(e,o,t,a,i,n,r,s,l,c,d,u){e.dtInstance={},e.reloadData=function(){e.dtInstance.rerender()},e.createdRow=function(o,t,a){r(angular.element(o).contents())(e)},e.deleteRecord=function(e){c.deleteRecord(e).success(function(e){u.success(e.success),o.reload()}).error(function(e){u.error(e.error)})},e.actionRoles=function(e,o,t){
return"<a ng-if=\"havePermission('affiliations','update');\" ui-sref='categories.affiliations.edit({ id: "+t.id+" })'><i class='fa fa-edit'></i></a> <a ng-if=\"havePermission('affiliations','delete');\" ng-confirm-click='Are you sure to delete this affiliate?' confirmed-click='deleteRecord( "+t.id+" )'><i class='fa fa-trash'></i></a>"},e.statusAction=function(e,o,t){return"0"==e.status?'<small class="label label-danger">Inactive</small>':'<small class="label label-success">Active</small>'},e.indexNumber=function(e,o,t,a){var i=Number(a.row)+Number(1),n=a.settings._iDisplayStart+i;return"<span>"+n+"</span>"},e.dtOptions=s.newOptions().withDataProp("data").withOption("ajax",function(o,t,a){c.showDataTable(o).success(function(o){o.error?e.reloadData():t(o)}).error(function(o){o&&e.reloadData()})}).withOption("processing",!0).withOption("serverSide",!0).withPaginationType("simple_numbers").withOption("order",[1,"asc"]).withDOM("lftip").withOption("searchDelay",500).withOption("createdRow",e.createdRow),e.dtColumns=[l.newColumn("id").withTitle("No").withOption("searchable",!1).renderWith(e.indexNumber).withClass("table-index"),l.newColumn("name").withTitle("Name").withOption("searchable",!0),l.newColumn(null).withTitle("Status").withOption("searchable",!1).notSortable().renderWith(e.statusAction),l.newColumn(null).withTitle("Action").withOption("searchable",!1).notSortable().renderWith(e.actionRoles)]}e.$inject=["$scope","$state","fileReader","$filter","$uibModal","$rootScope","$compile","DTOptionsBuilder","DTColumnBuilder","AffiliationsFactory","$timeout","Notification"],angular.module("BlurAdmin.pages.categories.affiliations").controller("ListAffiliationsCtrl",e)}(),function(){"use strict";function e(e,o,t,a,i,n,r,s,l,c,d,u){e.formscope={status:1,emailtype:null,is_default:!1},e.pageName="Add Email",e.btnName="Add",e.isSubmitted=!1,e.statusData=[{value:0,text:"Inactive"},{value:1,text:"Active"}],e.emailtypeOption=[{value:null,text:"Please select an email action"},{value:"0",text:"Tour Pending"},{value:"1",text:"Tour Acknowledgement"},{value:"2",text:"Tour Confirmed"},{value:"3",text:"Tour Cancelled"},{value:"4",text:"Tour Complete"}],r.getRecords().success(function(o){e.emailTemplates=o.data;for(var t=0;t<e.emailTemplates.length;t++){if(e.formscope.emailtype==e.emailTemplates[t].emailtype&&1===e.emailTemplates[t].is_default){e.formscope.is_default=!1,e.isDisabled=!0;break}e.isDisabled=!1}}).error(function(e){u.error(e.error),c.go("categories.emailtemplates.list")}),e.checkManualValidation=function(o){for(var t=0;t<e.emailTemplates.length;t++){if(e.formscope.emailtype==e.emailTemplates[t].emailtype&&1===e.emailTemplates[t].is_default){e.formscope.is_default=!1,e.isDisabled=!0;break}e.isDisabled=!1}};var m=d.get("$validation");e.errorMessage=r.validation,e.add_data=function(o){e.temp=JSON.parse(JSON.stringify(e.formscope)),e.temp.is_default=e.temp.is_default?1:0,e.temp.emailtype=parseInt(e.temp.emailtype),m.validate(o).success(function(){e.isSubmitted=!0,r.addRecord(e.temp).success(function(o){u.success(o.success),c.go("categories.emailtemplates.list"),e.isSubmitted=!1}).error(function(o){u.error(o.error),e.isSubmitted=!1})}).error(function(){e.isSubmitted=!1})}}e.$inject=["$scope","fileReader","$filter","$uibModal","$rootScope","$compile","EmailtemplatesFactory","$timeout","$stateParams","$state","$injector","Notification"],angular.module("BlurAdmin.pages.categories.emailtemplates").controller("AddEmailTemplatesCtrl",e)}(),function(){"use strict";function e(e,o,t,a,i,n,r,s,l,c,d,u){e.pageName="Edit Email",e.btnName="Update",e.isSubmitted=!1,e.urlID=l.id,e.statusData=[{value:0,text:"Inactive"},{value:1,text:"Active"}],e.emailtypeOption=[{value:null,text:"Please select an email action"},{value:"0",text:"Tour Pending"},{value:"1",text:"Tour Acknowledgement"},{value:"2",text:"Tour Confirmed"},{value:"3",text:"Tour Cancelled"},{value:"4",text:"Tour Complete"}];var m=d.get("$validation");e.errorMessage=r.validation,r.getRecord(e.urlID).success(function(o){e.formscope=o.data,e.formscope.is_default=1===e.formscope.is_default,e.getAllEmailTemplates()}).error(function(e){u.error(e.error),c.go("categories.emailtemplates.list")}),e.getAllEmailTemplates=function(){r.getRecords().success(function(o){e.emailTemplates=o.data,e.formscope.emailtype=e.formscope.emailtype.toString();for(var t=0;t<e.emailTemplates.length;t++){if(e.formscope.emailtype==e.emailTemplates[t].emailtype&&1===e.emailTemplates[t].is_default&&e.emailTemplates[t].id!==e.formscope.id){e.formscope.is_default=!1,e.isDisabled=!0;break}e.isDisabled=!1}}).error(function(e){u.error(e.error),c.go("categories.emailtemplates.list")})},e.checkManualValidation=function(o){for(var t=0;t<e.emailTemplates.length;t++){if(e.formscope.emailtype==e.emailTemplates[t].emailtype&&1===e.emailTemplates[t].is_default&&e.emailTemplates[t].id!==e.formscope.id){e.formscope.is_default=!1,e.isDisabled=!0;break}e.isDisabled=!1}},e.add_data=function(o){e.temp=JSON.parse(JSON.stringify(e.formscope)),e.temp.is_default=e.temp.is_default?1:0,e.temp.emailtype=parseInt(e.temp.emailtype),m.validate(o).success(function(){e.isSubmitted=!0,e.temp._method="PUT",r.updateRecord(e.urlID,e.temp).success(function(o){u.success(o.success),c.go("categories.emailtemplates.list"),e.isSubmitted=!1}).error(function(o){u.error(o.error),e.isSubmitted=!1})}).error(function(){e.isSubmitted=!1})}}e.$inject=["$scope","fileReader","$filter","$uibModal","$rootScope","$compile","EmailtemplatesFactory","$timeout","$stateParams","$state","$injector","Notification"],angular.module("BlurAdmin.pages.categories.affiliations").controller("EditEmailTemplatesCtrl",e)}(),function(){"use strict";function e(e,o,t,a,i,n,r,s,l,c,d,u){e.dtInstance={},e.reloadData=function(){e.dtInstance.rerender()},e.createdRow=function(o,t,a){r(angular.element(o).contents())(e)},e.deleteRecord=function(e){c.deleteRecord(e).success(function(e){u.success(e.success),o.reload()}).error(function(e){u.error(e.error)})},e.actionRoles=function(e,o,t){return"<a ng-if=\"havePermission('emailtemplates','update');\" ui-sref='categories.emailtemplates.edit({ id: "+t.id+" })'><i class='fa fa-edit'></i></a> <a ng-if=\"havePermission('emailtemplates','delete');\" ng-confirm-click='Are you sure to delete this email?' confirmed-click='deleteRecord( "+t.id+" )'><i class='fa fa-trash'></i></a>"},e.statusAction=function(e,o,t){return"0"==e.status?'<small class="label label-danger">Inactive</small>':'<small class="label label-success">Active</small>'},e.indexNumber=function(e,o,t,a){var i=Number(a.row)+Number(1),n=a.settings._iDisplayStart+i;return"<span>"+n+"</span>"},e.dtOptions=s.newOptions().withDataProp("data").withOption("ajax",function(o,t,a){c.showDataTable(o).success(function(o){o.error?e.reloadData():t(o)}).error(function(o){o&&e.reloadData()})}).withOption("processing",!0).withOption("serverSide",!0).withPaginationType("simple_numbers").withOption("order",[1,"asc"]).withDOM("lftip").withOption("searchDelay",500).withOption("createdRow",e.createdRow),e.dtColumns=[l.newColumn("id").withTitle("No").withOption("searchable",!1).renderWith(e.indexNumber).withClass("table-index"),l.newColumn("title").withTitle("Title").withOption("searchable",!0),l.newColumn(null).withTitle("Status").withOption("searchable",!1).notSortable().renderWith(e.statusAction),l.newColumn(null).withTitle("Action").withOption("searchable",!1).notSortable().renderWith(e.actionRoles)]}e.$inject=["$scope","$state","fileReader","$filter","$uibModal","$rootScope","$compile","DTOptionsBuilder","DTColumnBuilder","EmailtemplatesFactory","$timeout","Notification"],angular.module("BlurAdmin.pages.categories.affiliations").controller("ListEmailTemplatesCtrl",e)}(),function(){"use strict";function o(o,t,a,i,n,r,s,l,c,d,u,m){o.formscope={status:1},o.pageName="Add Info Session",o.btnName="Add",o.isSubmitted=!1,o.statusData=[{value:0,text:"Inactive"},{value:1,text:"Active"}];var p=u.get("$validation");o.errorMessage=s.validation,o.add_data=function(t){p.validate(t).success(function(){o.isSubmitted=!0,s.addRecord(e.formscope).success(function(e){m.success(e.success),d.go("categories.locations.list"),o.isSubmitted=!1}).error(function(e){m.error(e.error),o.isSubmitted=!1})}).error(function(){o.isSubmitted=!1})}}o.$inject=["$scope","fileReader","$filter","$uibModal","$rootScope","$compile","LocationsFactory","$timeout","$stateParams","$state","$injector","Notification"],angular.module("BlurAdmin.pages.categories.locations").controller("AddLocationsCtrl",o)}(),function(){"use strict";function o(o,t,a,i,n,r,s,c,d,u,m,p){o.pageName="Edit Info Session",o.btnName="Update",o.isSubmitted=!1,o.urlID=l.id,o.statusData=[{value:0,text:"Inactive"},{value:1,text:"Active"}];var g=m.get("$validation");o.errorMessage=s.validation,s.getRecord(o.urlID).success(function(e){o.formscope=e.data}).error(function(e){p.error(e.error),u.go("categories.locations.list")}),o.add_data=function(t){g.validate(t).success(function(){o.isSubmitted=!0,o.formscope._method="PUT",s.updateRecord(e.urlID,o.formscope).success(function(e){p.success(e.success),u.go("categories.locations.list"),o.isSubmitted=!1}).error(function(e){p.error(e.error),o.isSubmitted=!1})}).error(function(){o.isSubmitted=!1})}}o.$inject=["$scope","fileReader","$filter","$uibModal","$rootScope","$compile","LocationsFactory","$timeout","$stateParams","$state","$injector","Notification"],angular.module("BlurAdmin.pages.categories.locations").controller("EditLocationsCtrl",o)}(),function(){"use strict";function e(e,o,t,a,i,n,r,s,l,c,d,u){e.dtInstance={},e.reloadData=function(){e.dtInstance.rerender()},e.createdRow=function(o,t,a){r(angular.element(o).contents())(e)},e.deleteRecord=function(e){c.deleteRecord(e).success(function(e){u.success(e.success),o.reload()}).error(function(e){u.error(e.error)})},e.actionRoles=function(e,o,t){return"<a ng-if=\"havePermission('locations','update');\" ui-sref='categories.locations.edit({ id: "+t.id+" })'><i class='fa fa-edit'></i></a> <a ng-if=\"havePermission('locations','delete');\" ng-confirm-click='Are you sure to delete this location?' confirmed-click='deleteRecord( "+t.id+" )'><i class='fa fa-trash'></i></a>"},e.statusAction=function(e,o,t){return"0"==e.status?'<small class="label label-danger">Inactive</small>':'<small class="label label-success">Active</small>'},e.indexNumber=function(e,o,t,a){var i=Number(a.row)+Number(1),n=a.settings._iDisplayStart+i;return"<span>"+n+"</span>"},e.dtOptions=s.newOptions().withDataProp("data").withOption("ajax",function(o,t,a){c.showDataTable(o).success(function(o){o.error?e.reloadData():t(o)}).error(function(o){o&&e.reloadData()})}).withOption("processing",!0).withOption("serverSide",!0).withPaginationType("simple_numbers").withOption("order",[1,"asc"]).withDOM("lftip").withOption("searchDelay",500).withOption("createdRow",e.createdRow),e.dtColumns=[l.newColumn("id").withTitle("No").withOption("searchable",!1).renderWith(e.indexNumber).withClass("table-index"),l.newColumn("name").withTitle("Name").withOption("searchable",!0),l.newColumn(null).withTitle("Status").withOption("searchable",!1).notSortable().renderWith(e.statusAction),l.newColumn(null).withTitle("Action").withOption("searchable",!1).notSortable().renderWith(e.actionRoles)]}e.$inject=["$scope","$state","fileReader","$filter","$uibModal","$rootScope","$compile","DTOptionsBuilder","DTColumnBuilder","LocationsFactory","$timeout","Notification"],angular.module("BlurAdmin.pages.categories.locations").controller("ListLocationsCtrl",e)}(),function(){"use strict";function o(o,t,a,i,n,r,s,l,c,d,u,m){o.formscope={status:1},o.pageName="Add Meal Category",o.btnName="Add",o.isSubmitted=!1,o.statusData=[{value:0,text:"Inactive"},{value:1,text:"Active"}];var p=u.get("$validation");o.errorMessage=s.validation,o.add_data=function(t){p.validate(t).success(function(){o.isSubmitted=!0,s.addRecord(e.formscope).success(function(e){m.success(e.success),d.go("mealsvalue.mealcategories.list"),o.isSubmitted=!1}).error(function(e){m.error(e.error),o.isSubmitted=!1})}).error(function(){o.isSubmitted=!1})}}o.$inject=["$scope","fileReader","$filter","$uibModal","$rootScope","$compile","MealcategoriesFactory","$timeout","$stateParams","$state","$injector","Notification"],angular.module("BlurAdmin.pages.categories.mealcategories").controller("AddMealcategoriesCtrl",o)}(),function(){"use strict";function e(e,o,t,a,i,n,r,s,l,d,u,m){e.pageName="Edit Meal Category",e.btnName="Update",e.isSubmitted=!1,e.urlID=l.id,e.statusData=[{value:0,text:"Inactive"},{value:1,text:"Active"}];var p=u.get("$validation");e.errorMessage=r.validation,r.getRecord(e.urlID).success(function(o){e.formscope=o.data}).error(function(e){m.error(e.error),d.go("mealsvalue.mealcategories.list")}),e.add_data=function(o){p.validate(o).success(function(){e.isSubmitted=!0,e.formscope._method="PUT",r.updateRecord(e.urlID,e.formscope).success(function(o){m.success(o.success),c.go("mealsvalue.mealcategories.list"),e.isSubmitted=!1}).error(function(o){m.error(o.error),e.isSubmitted=!1})}).error(function(){e.isSubmitted=!1})}}e.$inject=["$scope","fileReader","$filter","$uibModal","$rootScope","$compile","MealcategoriesFactory","$timeout","$stateParams","$state","$injector","Notification"],angular.module("BlurAdmin.pages.categories.mealcategories").controller("EditMealcategoriesCtrl",e)}(),function(){"use strict";function e(e,o,t,a,n,r,s,l,c,d,u){e.dtInstance={},e.reloadData=function(){e.dtInstance.rerender()},e.createdRow=function(o,t,a){i(angular.element(o).contents())(e)},e.actionRoles=function(e,o,t){return"<a ui-sref='mealsvalue.mealcategories.edit({ id: "+t.id+" })'><i class='fa fa-edit'></i></a>"},e.statusAction=function(o,t,a){return"0"==e.status?'<small class="label label-danger">Inactive</small>':'<small class="label label-success">Active</small>'},e.indexNumber=function(e,o,t,a){var i=Number(a.row)+Number(1),n=a.settings._iDisplayStart+i;return"<span>"+n+"</span>"},e.dtOptions=s.newOptions().withDataProp("data").withOption("ajax",function(o,t,a){c.showDataTable(o).success(function(o){o.error?e.reloadData():t(o)}).error(function(o){o&&e.reloadData()})}).withOption("processing",!0).withOption("serverSide",!0).withPaginationType("simple_numbers").withOption("order",[1,"asc"]).withDOM("lftip").withOption("searchDelay",500).withOption("createdRow",e.createdRow),e.dtColumns=[l.newColumn("id").withTitle("No").withOption("searchable",!1).renderWith(e.indexNumber).withClass("table-index"),l.newColumn("name").withTitle("Name").withOption("searchable",!0),l.newColumn(null).withTitle("Status").withOption("searchable",!1).notSortable().renderWith(e.statusAction),l.newColumn(null).withTitle("Action").withOption("searchable",!1).notSortable().renderWith(e.actionRoles)]}e.$inject=["$scope","fileReader","$filter","$uibModal","$rootScope","$compile","DTOptionsBuilder","DTColumnBuilder","MealcategoriesFactory","$timeout","Notification"],angular.module("BlurAdmin.pages.categories.mealcategories").controller("ListMealcategoriesCtrl",e)}(),function(){"use strict";function e(e,o,t,a,i,n,r,s,l,c,d,u){e.formscope={status:1},e.pageName="Add Meal",e.btnName="Add",e.isSubmitted=!1,e.statusData=[{value:0,text:"Inactive"},{value:1,text:"Active"}];var m=d.get("$validation");e.errorMessage=r.validation,e.add_data=function(o){m.validate(o).success(function(){e.isSubmitted=!0,r.addRecord(e.formscope).success(function(o){u.success(o.success),c.go("mealsvalue.meals.list"),e.isSubmitted=!1}).error(function(o){u.error(o.error),e.isSubmitted=!1})}).error(function(){e.isSubmitted=!1})}}e.$inject=["$scope","fileReader","$filter","$uibModal","$rootScope","$compile","MealsFactory","$timeout","$stateParams","$state","$injector","Notification"],angular.module("BlurAdmin.pages.categories.meals").controller("AddMealsCtrl",e)}(),function(){"use strict";function e(e,o,t,a,i,n,r,s,l,c,d,u){e.pageName="Edit Meal",e.btnName="Update",e.isSubmitted=!1,e.urlID=l.id,e.statusData=[{value:0,text:"Inactive"},{value:1,text:"Active"}];var m=d.get("$validation");e.errorMessage=r.validation,r.getRecord(e.urlID).success(function(o){e.formscope=o.data}).error(function(e){u.error(e.error),c.go("mealsvalue.meals.list")}),e.add_data=function(o){m.validate(o).success(function(){e.isSubmitted=!0,e.formscope._method="PUT",r.updateRecord(e.urlID,e.formscope).success(function(o){u.success(o.success),c.go("mealsvalue.meals.list"),e.isSubmitted=!1}).error(function(o){u.error(o.error),e.isSubmitted=!1})}).error(function(){e.isSubmitted=!1})}}e.$inject=["$scope","fileReader","$filter","$uibModal","$rootScope","$compile","MealsFactory","$timeout","$stateParams","$state","$injector","Notification"],angular.module("BlurAdmin.pages.categories.meals").controller("EditMealsCtrl",e)}(),function(){"use strict";function e(e,o,t,a,i,n,r,s,l,c,d,u,m){e.dtInstance={},e.reloadData=function(){e.dtInstance.rerender()},e.createdRow=function(o,t,a){s(angular.element(o).contents())(e)},e.deleteRecord=function(e){d.deleteRecord(e).success(function(e){m.success(e.success),t.reload()}).error(function(e){m.error(e.error)})},e.actionRoles=function(e,o,t){return"<a ng-if=\"havePermission('meals','update');\" ui-sref='mealsvalue.meals.edit({ id: "+t.id+" })'><i class='fa fa-edit'></i></a> <a ng-if=\"havePermission('meals','delete');\" ng-confirm-click='Are you sure to delete this meal?' confirmed-click='deleteRecord( "+t.id+" )'><i class='fa fa-trash'></i></a>"},e.statusAction=function(o,t,a){return"0"==e.status?'<small class="label label-danger">Inactive</small>':'<small class="label label-success">Active</small>'},e.indexNumber=function(e,o,t,a){var i=Number(a.row)+Number(1),n=a.settings._iDisplayStart+i;return"<span>"+n+"</span>"},e.dtOptions=l.newOptions().withDataProp("data").withOption("ajax",function(o,t,a){d.showDataTable(o).success(function(o){o.error?e.reloadData():t(o)}).error(function(o){o&&e.reloadData()})}).withOption("processing",!0).withOption("serverSide",!0).withPaginationType("simple_numbers").withOption("order",[1,"asc"]).withDOM("lftip").withOption("searchDelay",500).withOption("createdRow",e.createdRow),e.dtColumns=[c.newColumn("id").withTitle("No").withOption("searchable",!1).renderWith(e.indexNumber).withClass("table-index"),c.newColumn("name").withTitle("Name").withOption("searchable",!0),c.newColumn(null).withTitle("Status").withOption("searchable",!1).notSortable().renderWith(e.statusAction),c.newColumn(null).withTitle("Action").withOption("searchable",!1).notSortable().renderWith(e.actionRoles)]}e.$inject=["$scope","$route","$state","fileReader","$filter","$uibModal","$rootScope","$compile","DTOptionsBuilder","DTColumnBuilder","MealsFactory","$timeout","Notification"],angular.module("BlurAdmin.pages.categories.meals").controller("ListMealsCtrl",e)}(),function(){"use strict";function e(e,o,t,a,i,n,r,s,l,c,d,u){e.formscope={status:1},e.pageName="Add Meal Service Location",e.btnName="Add",e.isSubmitted=!1,e.statusData=[{value:0,text:"Inactive"},{value:1,text:"Active"}];var m=d.get("$validation");e.errorMessage=r.validation,e.add_data=function(o){m.validate(o).success(function(){e.isSubmitted=!0,r.addRecord(e.formscope).success(function(o){u.success(o.success),c.go("mealsvalue.mealservicelocations.list"),e.isSubmitted=!1}).error(function(o){u.error(o.error),e.isSubmitted=!1})}).error(function(){e.isSubmitted=!1})}}e.$inject=["$scope","fileReader","$filter","$uibModal","$rootScope","$compile","MealservicelocationsFactory","$timeout","$stateParams","$state","$injector","Notification"],angular.module("BlurAdmin.pages.categories.mealservicelocations").controller("AddMealservicelocationsCtrl",e)}(),function(){"use strict";function e(e,o,t,a,i,n,r,s,l,c,d,u){e.pageName="Edit Meal Service Location",e.btnName="Update",e.isSubmitted=!1,e.urlID=l.id,e.statusData=[{value:0,text:"Inactive"},{value:1,text:"Active"}];var m=d.get("$validation");e.errorMessage=r.validation,r.getRecord(e.urlID).success(function(o){e.formscope=o.data}).error(function(e){u.error(e.error),c.go("mealsvalue.mealservicelocations.list")}),e.add_data=function(o){m.validate(o).success(function(){e.isSubmitted=!0,e.formscope._method="PUT",r.updateRecord(e.urlID,e.formscope).success(function(o){u.success(o.success),c.go("mealsvalue.mealservicelocations.list"),e.isSubmitted=!1}).error(function(o){u.error(o.error),e.isSubmitted=!1})}).error(function(){e.isSubmitted=!1})}}e.$inject=["$scope","fileReader","$filter","$uibModal","$rootScope","$compile","MealservicelocationsFactory","$timeout","$stateParams","$state","$injector","Notification"],angular.module("BlurAdmin.pages.categories.mealservicelocations").controller("EditMealservicelocationsCtrl",e)}(),function(){"use strict";function e(e,o,t,a,i,n,r,s,l,c,d,u,m){e.dtInstance={},e.reloadData=function(){e.dtInstance.rerender()},e.createdRow=function(o,t,a){s(angular.element(o).contents())(e)},e.deleteRecord=function(e){d.deleteRecord(e).success(function(e){m.success(e.success),o.reload()}).error(function(e){m.error(e.error)})},e.actionRoles=function(e,o,t){return"<a  ng-if=\"havePermission('mealservicelocations','update');\" ui-sref='mealsvalue.mealservicelocations.edit({ id: "+t.id+" })'><i class='fa fa-edit'></i></a> <a ng-if=\"havePermission('mealservicelocations','delete');\" ng-confirm-click='Are you sure to delete this service location?' confirmed-click='deleteRecord( "+t.id+" )'><i class='fa fa-trash'></i></a>"},e.statusAction=function(o,t,a){return"0"==e.status?'<small class="label label-danger">Inactive</small>':'<small class="label label-success">Active</small>'},e.indexNumber=function(e,o,t,a){var i=Number(a.row)+Number(1),n=a.settings._iDisplayStart+i;return"<span>"+n+"</span>"},e.dtOptions=l.newOptions().withDataProp("data").withOption("ajax",function(o,t,a){d.showDataTable(o).success(function(o){o.error?e.reloadData():t(o)}).error(function(o){o&&e.reloadData()})}).withOption("processing",!0).withOption("serverSide",!0).withPaginationType("simple_numbers").withOption("order",[1,"asc"]).withDOM("lftip").withOption("searchDelay",500).withOption("createdRow",e.createdRow),e.dtColumns=[c.newColumn("id").withTitle("No").withOption("searchable",!1).renderWith(e.indexNumber).withClass("table-index"),c.newColumn("name").withTitle("Name").withOption("searchable",!0),c.newColumn(null).withTitle("Status").withOption("searchable",!1).notSortable().renderWith(e.statusAction),c.newColumn(null).withTitle("Action").withOption("searchable",!1).notSortable().renderWith(e.actionRoles)]}e.$inject=["$scope","$state","$route","fileReader","$filter","$uibModal","$rootScope","$compile","DTOptionsBuilder","DTColumnBuilder","MealservicelocationsFactory","$timeout","Notification"],angular.module("BlurAdmin.pages.categories.mealservicelocations").controller("ListMealservicelocationsCtrl",e)}(),function(){"use strict";function e(e,o,t,a,i,n,r,s,l,c,d,u){e.formscope={status:1,type:1},e.pageName="Add Meal Service Type",e.btnName="Add",e.isSubmitted=!1,e.statusData=[{value:0,text:"Inactive"},{value:1,text:"Active"}];var m=d.get("$validation");e.errorMessage=r.validation,e.add_data=function(o){m.validate(o).success(function(){e.isSubmitted=!0,r.addRecord(e.formscope).success(function(o){u.success(o.success),c.go("mealsvalue.mealservicetypes.list"),e.isSubmitted=!1}).error(function(o){u.error(o.error),e.isSubmitted=!1})}).error(function(){e.isSubmitted=!1})}}e.$inject=["$scope","fileReader","$filter","$uibModal","$rootScope","$compile","MealservicetypesFactory","$timeout","$stateParams","$state","$injector","Notification"],angular.module("BlurAdmin.pages.categories.mealservicetypes").controller("AddMealservicetypesCtrl",e)}(),function(){"use strict";function e(e,o,t,a,i,n,r,s,l,c,d,u){e.pageName="Edit Meal Service Type",e.btnName="Update",e.isSubmitted=!1,e.urlID=l.id,e.statusData=[{value:0,text:"Inactive"},{value:1,text:"Active"}];var m=d.get("$validation");e.errorMessage=r.validation,r.getRecord(e.urlID).success(function(o){e.formscope=o.data}).error(function(e){u.error(e.error),c.go("mealsvalue.mealservicetypes.list")}),e.add_data=function(o){m.validate(o).success(function(){e.isSubmitted=!0,e.formscope._method="PUT",r.updateRecord(e.urlID,e.formscope).success(function(o){u.success(o.success),c.go("mealsvalue.mealservicetypes.list"),e.isSubmitted=!1}).error(function(o){u.error(o.error),e.isSubmitted=!1})}).error(function(){e.isSubmitted=!1})}}e.$inject=["$scope","fileReader","$filter","$uibModal","$rootScope","$compile","MealservicetypesFactory","$timeout","$stateParams","$state","$injector","Notification"],angular.module("BlurAdmin.pages.categories.mealservicetypes").controller("EditMealservicetypesCtrl",e)}(),function(){"use strict";function e(e,o,t,a,i,n,r,s,l,c,d,u){e.dtInstance={},e.reloadData=function(){e.dtInstance.rerender()},e.createdRow=function(o,t,a){r(angular.element(o).contents())(e)},e.deleteRecord=function(e){c.deleteRecord(e).success(function(e){u.success(e.success),o.reload()}).error(function(e){u.error(e.error)})},e.actionRoles=function(e,o,t){return"<a ng-if=\"havePermission('mealservicetypes','update');\" ui-sref='mealsvalue.mealservicetypes.edit({ id: "+t.id+" })'><i class='fa fa-edit'></i></a> <a ng-if=\"havePermission('mealservicetypes','delete');\" ng-confirm-click='Are you sure to delete this service type?' confirmed-click='deleteRecord( "+t.id+" )'><i class='fa fa-trash'></i></a>"},e.statusAction=function(e,o,t){return"0"==e.status?'<small class="label label-danger">Inactive</small>':'<small class="label label-success">Active</small>'},e.typeName=function(e,o,t){return"1"==e.type?"Free":"Paid"},e.indexNumber=function(e,o,t,a){var i=Number(a.row)+Number(1),n=a.settings._iDisplayStart+i;return"<span>"+n+"</span>"},e.dtOptions=s.newOptions().withDataProp("data").withOption("ajax",function(o,t,a){c.showDataTable(o).success(function(o){o.error?e.reloadData():t(o)}).error(function(o){o&&e.reloadData()})}).withOption("processing",!0).withOption("serverSide",!0).withPaginationType("simple_numbers").withOption("order",[1,"asc"]).withDOM("lftip").withOption("searchDelay",500).withOption("createdRow",e.createdRow),e.dtColumns=[l.newColumn("id").withTitle("No").withOption("searchable",!1).renderWith(e.indexNumber).withClass("table-index"),l.newColumn("name").withTitle("Name").withOption("searchable",!0),l.newColumn("type").withTitle("Type").withOption("searchable",!0),l.newColumn("cost").withTitle("Cost").withOption("searchable",!0),l.newColumn(null).withTitle("Status").withOption("searchable",!1).notSortable().renderWith(e.statusAction),l.newColumn(null).withTitle("Action").withOption("searchable",!1).notSortable().renderWith(e.actionRoles)]}e.$inject=["$scope","$state","fileReader","$filter","$uibModal","$rootScope","$compile","DTOptionsBuilder","DTColumnBuilder","MealservicetypesFactory","$timeout","Notification"],angular.module("BlurAdmin.pages.categories.mealservicetypes").controller("ListMealservicetypesCtrl",e)}(),function(){"use strict";function e(e,o,t,a,i,n,r,s,l,c,d,u){e.formscope={status:1},e.pageName="Add Momento",e.btnName="Add",e.isSubmitted=!1,e.statusData=[{value:0,text:"Inactive"},{value:1,text:"Active"}];var m=d.get("$validation");e.errorMessage=r.validation,e.add_data=function(o){m.validate(o).success(function(){e.isSubmitted=!0,r.addRecord(e.formscope).success(function(o){u.success(o.success),c.go("categories.momentos.list"),e.isSubmitted=!1}).error(function(o){u.error(o.error),e.isSubmitted=!1})}).error(function(){e.isSubmitted=!1})}}e.$inject=["$scope","fileReader","$filter","$uibModal","$rootScope","$compile","MomentosFactory","$timeout","$stateParams","$state","$injector","Notification"],angular.module("BlurAdmin.pages.categories.momentos").controller("AddMomentosCtrl",e)}(),function(){"use strict";function e(e,o,t,a,i,n,r,s,l,c,d,u){e.pageName="Edit Momento",e.btnName="Update",e.isSubmitted=!1,e.urlID=l.id,e.statusData=[{value:0,text:"Inactive"},{value:1,text:"Active"}];var m=d.get("$validation");e.errorMessage=r.validation,r.getRecord(e.urlID).success(function(o){e.formscope=o.data}).error(function(e){u.error(e.error),c.go("categories.momentos.list")}),e.add_data=function(o){m.validate(o).success(function(){e.isSubmitted=!0,e.formscope._method="PUT",r.updateRecord(e.urlID,e.formscope).success(function(o){u.success(o.success),c.go("categories.momentos.list"),e.isSubmitted=!1}).error(function(o){u.error(o.error),e.isSubmitted=!1})}).error(function(){e.isSubmitted=!1})}}e.$inject=["$scope","fileReader","$filter","$uibModal","$rootScope","$compile","MomentosFactory","$timeout","$stateParams","$state","$injector","Notification"],angular.module("BlurAdmin.pages.categories.momentos").controller("EditMomentosCtrl",e)}(),function(){"use strict";function e(e,o,t,a,i,n,r,s,l,c,d,u){e.dtInstance={},e.reloadData=function(){e.dtInstance.rerender()},e.createdRow=function(o,t,a){r(angular.element(o).contents())(e)},e.deleteRecord=function(e){c.deleteRecord(e).success(function(e){u.success(e.success),o.reload()}).error(function(e){u.error(e.error)})},e.actionRoles=function(e,o,t){return"<a ng-if=\"havePermission('momentos','update');\" ui-sref='categories.momentos.edit({ id: "+t.id+" })'><i class='fa fa-edit'></i></a> <a ng-if=\"havePermission('momentos','delete');\" ng-confirm-click='Are you sure to delete this momentos?' confirmed-click='deleteRecord( "+t.id+" )'><i class='fa fa-trash'></i></a>"},e.statusAction=function(e,o,t){return"0"==e.status?'<small class="label label-danger">Inactive</small>':'<small class="label label-success">Active</small>'},e.indexNumber=function(e,o,t,a){var i=Number(a.row)+Number(1),n=a.settings._iDisplayStart+i;return"<span>"+n+"</span>"},e.dtOptions=s.newOptions().withDataProp("data").withOption("ajax",function(o,t,a){c.showDataTable(o).success(function(o){o.error?e.reloadData():t(o)}).error(function(o){o&&e.reloadData()})}).withOption("processing",!0).withOption("serverSide",!0).withPaginationType("simple_numbers").withOption("order",[1,"asc"]).withDOM("lftip").withOption("searchDelay",500).withOption("createdRow",e.createdRow),e.dtColumns=[l.newColumn("id").withTitle("No").withOption("searchable",!1).renderWith(e.indexNumber).withClass("table-index"),l.newColumn("name").withTitle("Name").withOption("searchable",!0),l.newColumn(null).withTitle("Status").withOption("searchable",!1).notSortable().renderWith(e.statusAction),l.newColumn(null).withTitle("Action").withOption("searchable",!1).notSortable().renderWith(e.actionRoles)]}e.$inject=["$scope","$state","fileReader","$filter","$uibModal","$rootScope","$compile","DTOptionsBuilder","DTColumnBuilder","MomentosFactory","$timeout","Notification"],angular.module("BlurAdmin.pages.categories.momentos").controller("ListMomentosCtrl",e)}(),function(){"use strict";function e(e,o,t,a,i,n,r,s,l,c,d,u){e.formscope={status:1},e.pageName="Add Organization Type",e.btnName="Add",e.isSubmitted=!1,e.statusData=[{value:0,text:"Inactive"},{value:1,text:"Active"}];var m=d.get("$validation");e.errorMessage=r.validation,e.add_data=function(o){m.validate(o).success(function(){e.isSubmitted=!0,r.addRecord(e.formscope).success(function(o){u.success(o.success),c.go("categories.organizations.list"),e.isSubmitted=!1}).error(function(o){u.error(o.error),e.isSubmitted=!1})}).error(function(){e.isSubmitted=!1})}}e.$inject=["$scope","fileReader","$filter","$uibModal","$rootScope","$compile","OrganizationsFactory","$timeout","$stateParams","$state","$injector","Notification"],angular.module("BlurAdmin.pages.categories.organizations").controller("AddOrganizationsCtrl",e)}(),function(){"use strict";function e(e,o,t,a,i,n,r,s,l,c,d,u){e.pageName="Edit Organization Type",e.btnName="Update",e.isSubmitted=!1,e.urlID=l.id,e.statusData=[{value:0,text:"Inactive"},{value:1,text:"Active"}];var m=d.get("$validation");e.errorMessage=r.validation,r.getRecord(e.urlID).success(function(o){e.formscope=o.data}).error(function(e){u.error(e.error),c.go("categories.organizations.list")}),e.add_data=function(o){m.validate(o).success(function(){e.isSubmitted=!0,e.formscope._method="PUT",r.updateRecord(e.urlID,e.formscope).success(function(o){
u.success(o.success),c.go("categories.organizations.list"),e.isSubmitted=!1}).error(function(o){u.error(o.error),e.isSubmitted=!1})}).error(function(){e.isSubmitted=!1})}}e.$inject=["$scope","fileReader","$filter","$uibModal","$rootScope","$compile","OrganizationsFactory","$timeout","$stateParams","$state","$injector","Notification"],angular.module("BlurAdmin.pages.categories.organizations").controller("EditOrganizationsCtrl",e)}(),function(){"use strict";function e(e,o,t,a,i,n,r,s,l,c,d,u){e.dtInstance={},e.reloadData=function(){e.dtInstance.rerender()},e.createdRow=function(o,t,a){r(angular.element(o).contents())(e)},e.deleteRecord=function(e){c.deleteRecord(e).success(function(e){u.success(e.success),o.reload()}).error(function(e){u.error(e.error)})},e.actionRoles=function(e,o,t){return"<a ng-if=\"havePermission('organizations','update');\" ui-sref='categories.organizations.edit({ id: "+t.id+" })'><i class='fa fa-edit'></i></a> <a ng-if=\"havePermission('organizations','delete');\" ng-confirm-click='Are you sure to delete this organization type?' confirmed-click='deleteRecord( "+t.id+" )'><i class='fa fa-trash'></i></a>"},e.statusAction=function(e,o,t){return"0"==e.status?'<small class="label label-danger">Inactive</small>':'<small class="label label-success">Active</small>'},e.indexNumber=function(e,o,t,a){var i=Number(a.row)+Number(1),n=a.settings._iDisplayStart+i;return"<span>"+n+"</span>"},e.dtOptions=s.newOptions().withDataProp("data").withOption("ajax",function(o,t,a){c.showDataTable(o).success(function(o){o.error?e.reloadData():t(o)}).error(function(o){o&&e.reloadData()})}).withOption("processing",!0).withOption("serverSide",!0).withPaginationType("simple_numbers").withOption("order",[1,"asc"]).withDOM("lftip").withOption("searchDelay",500).withOption("createdRow",e.createdRow),e.dtColumns=[l.newColumn("id").withTitle("No").withOption("searchable",!1).renderWith(e.indexNumber).withClass("table-index"),l.newColumn("name").withTitle("Name").withOption("searchable",!0),l.newColumn(null).withTitle("Status").withOption("searchable",!1).notSortable().renderWith(e.statusAction),l.newColumn(null).withTitle("Action").withOption("searchable",!1).notSortable().renderWith(e.actionRoles)]}e.$inject=["$scope","$state","fileReader","$filter","$uibModal","$rootScope","$compile","DTOptionsBuilder","DTColumnBuilder","OrganizationsFactory","$timeout","Notification"],angular.module("BlurAdmin.pages.categories.organizations").controller("ListOrganizationsCtrl",e)}(),function(){"use strict";function e(e,o,t,a,i,n,r,s,l,c,d,u){e.formscope={status:1},e.pageName="Add Tour Type",e.btnName="Add",e.isSubmitted=!1,e.statusData=[{value:0,text:"Inactive"},{value:1,text:"Active"}];var m=d.get("$validation");e.errorMessage=r.validation,e.add_data=function(o){m.validate(o).success(function(){e.isSubmitted=!0,r.addRecord(e.formscope).success(function(o){u.success(o.success),c.go("categories.tourtypes.list"),e.isSubmitted=!1}).error(function(o){u.error(o.error),e.isSubmitted=!1})}).error(function(){e.isSubmitted=!1})}}e.$inject=["$scope","fileReader","$filter","$uibModal","$rootScope","$compile","TourtypesFactory","$timeout","$stateParams","$state","$injector","Notification"],angular.module("BlurAdmin.pages.categories.tourtypes").controller("AddTourtypesCtrl",e)}(),function(){"use strict";function e(e,o,t,a,i,n,r,s,l,c,d,u){e.pageName="Edit Tour Type",e.btnName="Update",e.isSubmitted=!1,e.urlID=l.id,e.statusData=[{value:0,text:"Inactive"},{value:1,text:"Active"}];var m=d.get("$validation");e.errorMessage=r.validation,r.getRecord(e.urlID).success(function(o){e.formscope=o.data}).error(function(e){u.error(e.error),c.go("categories.tourtypes.list")}),e.add_data=function(o){m.validate(o).success(function(){e.isSubmitted=!0,e.formscope._method="PUT",r.updateRecord(e.urlID,e.formscope).success(function(o){u.success(o.success),c.go("categories.tourtypes.list"),e.isSubmitted=!1}).error(function(o){u.error(o.error),e.isSubmitted=!1})}).error(function(){e.isSubmitted=!1})}}e.$inject=["$scope","fileReader","$filter","$uibModal","$rootScope","$compile","TourtypesFactory","$timeout","$stateParams","$state","$injector","Notification"],angular.module("BlurAdmin.pages.categories.tourtypes").controller("EditTourtypesCtrl",e)}(),function(){"use strict";function e(e,o,t,a,i,n,r,s,l,c,d,u){e.dtInstance={},e.reloadData=function(){e.dtInstance.rerender()},e.createdRow=function(o,t,a){r(angular.element(o).contents())(e)},e.deleteRecord=function(e){c.deleteRecord(e).success(function(e){u.success(e.success),o.reload()}).error(function(e){u.error(e.error)})},e.actionRoles=function(e,o,t){return"<a ng-if=\"havePermission('tourtypes','update');\" ui-sref='categories.tourtypes.edit({ id: "+t.id+" })'><i class='fa fa-edit'></i></a> <a ng-if=\"havePermission('tourtypes','delete');\" ng-confirm-click='Are you sure to delete this tour type?' confirmed-click='deleteRecord( "+t.id+" )'><i class='fa fa-trash'></i></a>"},e.statusAction=function(e,o,t){return"0"==e.status?'<small class="label label-danger">Inactive</small>':'<small class="label label-success">Active</small>'},e.indexNumber=function(e,o,t,a){var i=Number(a.row)+Number(1),n=a.settings._iDisplayStart+i;return"<span>"+n+"</span>"},e.taksAction=function(e,o,t,a){if(0==e.defaulttask.length)var i="Add";else var i="View";return"<a ui-sref='categories.tourtypes.view({ id: "+t.id+" })'>"+i+"</a>"},e.dtOptions=s.newOptions().withDataProp("data").withOption("ajax",function(o,t,a){c.showDataTable(o).success(function(o){o.error?e.reloadData():t(o)}).error(function(o){o&&e.reloadData()})}).withOption("processing",!0).withOption("serverSide",!0).withPaginationType("simple_numbers").withOption("order",[1,"asc"]).withDOM("lftip").withOption("searchDelay",500).withOption("createdRow",e.createdRow),e.dtColumns=[l.newColumn("id").withTitle("No").withOption("searchable",!1).renderWith(e.indexNumber).withClass("table-index"),l.newColumn("name").withTitle("Name").withOption("searchable",!0),l.newColumn(null).withTitle("Default Task").withOption("searchable",!0).renderWith(e.taksAction),l.newColumn(null).withTitle("Status").withOption("searchable",!1).notSortable().renderWith(e.statusAction),l.newColumn(null).withTitle("Action").withOption("searchable",!1).notSortable().renderWith(e.actionRoles)]}e.$inject=["$scope","$state","fileReader","$filter","$uibModal","$rootScope","$compile","DTOptionsBuilder","DTColumnBuilder","TourtypesFactory","$timeout","Notification"],angular.module("BlurAdmin.pages.categories.tourtypes").controller("ListTourtypesCtrl",e)}(),function(){"use strict";function e(e,o,t,a,i,n,r,s,l,c,d,u,m){e.pageName="View",e.btnName="Add Task",e.isSubmitted=!1,e.urlID=c.id,e.user={status:null},e.statuses=[{value:2,text:"Inactive"},{value:1,text:"Active"}],e.showStatus=function(o){var a=[];return o.status&&(a=t("filter")(e.statuses,{value:o.status})),a.length?a[0].text:"Not set"},s.viewRecord(e.urlID).success(function(o){e.tourtype=o.data}).error(function(e){m.error(e.error),d.go("categories.tourtypes.list")}),e.addTask=function(){e.inserted={id:null,task:"",status:null},e.tourtype.defaulttask.push(e.inserted)},e.cancelRow=function(o){e.showTable=!1,e.tourtype.defaulttask.splice(o,1),e.showTable=!0},u.get("$validation"),e.errorMessage=r.validation,e.checkTask=function(o){return""==o?e.errorMessage.task.required:o.length<=2?e.errorMessage.task.minlength:o.length>=200?e.errorMessage.task.maxlength:void 0},e.removeTask=function(o,t){r.deleteRecord(o).success(function(o){m.success(o.success),e.showTable=!1,e.tourtype.defaulttask.splice(t,1),e.showTable=!0}).error(function(e){m.error(e.error)})},e.checkStatus=function(o){if(console.log("Checking status : ",o),null==o)return e.errorMessage.status.required},e.add_data=function(o,t,a){o.tourtype_id=e.tourtype.id,a?(o._method="PUT",r.updateRecord(a,o).success(function(a){e.tourtype.defaulttask[t].status=o.status,m.success(a.success)}).error(function(e){m.error(e.error)})):r.addRecord(o).success(function(a){e.tourtype.defaulttask[t]=a.data,e.tourtype.defaulttask[t].status=o.status,m.success(a.success)}).error(function(e){m.error(e.error)})}}e.$inject=["$scope","fileReader","$filter","$uibModal","$rootScope","$compile","DefaulttasksFactory","TourtypesFactory","$timeout","$stateParams","$state","$injector","Notification"],angular.module("BlurAdmin.pages.categories.tourtypes").controller("ViewTourtypesCtrl",e)}(),function(){"use strict";function e(e,o,t,a,i,n,r,s,l,c,d,u){e.formscope={status:1},e.pageName="Add Transport type",e.btnName="Add",e.isSubmitted=!1,e.statusData=[{value:0,text:"Inactive"},{value:1,text:"Active"}];var m=d.get("$validation");e.errorMessage=r.validation,e.add_data=function(o){m.validate(o).success(function(){e.isSubmitted=!0,r.addRecord(e.formscope).success(function(o){u.success(o.success),c.go("categories.transports.list"),e.isSubmitted=!1}).error(function(o){u.error(o.error),e.isSubmitted=!1})}).error(function(){e.isSubmitted=!1})}}e.$inject=["$scope","fileReader","$filter","$uibModal","$rootScope","$compile","TransportsFactory","$timeout","$stateParams","$state","$injector","Notification"],angular.module("BlurAdmin.pages.categories.transports").controller("AddTransportsCtrl",e)}(),function(){"use strict";function e(e,o,t,a,i,n,r,s,l,c,d,u){e.pageName="Edit Transport type",e.btnName="Update",e.isSubmitted=!1,e.urlID=l.id,e.statusData=[{value:0,text:"Inactive"},{value:1,text:"Active"}];var m=d.get("$validation");e.errorMessage=r.validation,r.getRecord(e.urlID).success(function(o){e.formscope=o.data}).error(function(e){u.error(e.error),c.go("categories.transports.list")}),e.add_data=function(o){m.validate(o).success(function(){e.isSubmitted=!0,e.formscope._method="PUT",r.updateRecord(e.urlID,e.formscope).success(function(o){u.success(o.success),c.go("categories.transports.list"),e.isSubmitted=!1}).error(function(o){u.error(o.error),e.isSubmitted=!1})}).error(function(){e.isSubmitted=!1})}}e.$inject=["$scope","fileReader","$filter","$uibModal","$rootScope","$compile","TransportsFactory","$timeout","$stateParams","$state","$injector","Notification"],angular.module("BlurAdmin.pages.categories.transports").controller("EditTransportsCtrl",e)}(),function(){"use strict";function e(e,o,t,a,i,n,r,s,l,c,d,u){e.dtInstance={},e.reloadData=function(){e.dtInstance.rerender()},e.createdRow=function(o,t,a){r(angular.element(o).contents())(e)},e.deleteRecord=function(e){c.deleteRecord(e).success(function(e){u.success(e.success),o.reload()}).error(function(e){u.error(e.error)})},e.actionRoles=function(e,o,t){return"<a ng-if=\"havePermission('transports','update');\" ui-sref='categories.transports.edit({ id: "+t.id+" })'><i class='fa fa-edit'></i></a> <a ng-if=\"havePermission('transports','delete');\" ng-confirm-click='Are you sure to delete this transports type?' confirmed-click='deleteRecord( "+t.id+" )'><i class='fa fa-trash'></i></a>"},e.statusAction=function(e,o,t){return"0"==e.status?'<small class="label label-danger">Inactive</small>':'<small class="label label-success">Active</small>'},e.indexNumber=function(e,o,t,a){var i=Number(a.row)+Number(1),n=a.settings._iDisplayStart+i;return"<span>"+n+"</span>"},e.dtOptions=s.newOptions().withDataProp("data").withOption("ajax",function(o,t,a){c.showDataTable(o).success(function(o){o.error?e.reloadData():t(o)}).error(function(o){o&&e.reloadData()})}).withOption("processing",!0).withOption("serverSide",!0).withPaginationType("simple_numbers").withOption("order",[1,"asc"]).withDOM("lftip").withOption("searchDelay",500).withOption("createdRow",e.createdRow),e.dtColumns=[l.newColumn("id").withTitle("No").withOption("searchable",!1).renderWith(e.indexNumber).withClass("table-index"),l.newColumn("name").withTitle("Name").withOption("searchable",!0),l.newColumn(null).withTitle("Status").withOption("searchable",!1).notSortable().renderWith(e.statusAction),l.newColumn(null).withTitle("Action").withOption("searchable",!1).notSortable().renderWith(e.actionRoles)]}e.$inject=["$scope","$state","fileReader","$filter","$uibModal","$rootScope","$compile","DTOptionsBuilder","DTColumnBuilder","TransportsFactory","$timeout","Notification"],angular.module("BlurAdmin.pages.categories.transports").controller("ListTransportsCtrl",e)}(),function(){"use strict";function e(e,o,t,a,i,n,r,s,l,c,d,u){e.formscope={status:1},e.pageName="Add Visitor Type",e.btnName="Add",e.isSubmitted=!1,e.statusData=[{value:0,text:"Inactive"},{value:1,text:"Active"}];var m=d.get("$validation");e.errorMessage=r.validation,e.add_data=function(o){m.validate(o).success(function(){e.isSubmitted=!0,r.addRecord(e.formscope).success(function(o){u.success(o.success),c.go("categories.visitors.list"),e.isSubmitted=!1}).error(function(o){u.error(o.error),e.isSubmitted=!1})}).error(function(){e.isSubmitted=!1})}}e.$inject=["$scope","fileReader","$filter","$uibModal","$rootScope","$compile","VisitorsFactory","$timeout","$stateParams","$state","$injector","Notification"],angular.module("BlurAdmin.pages.categories.visitors").controller("AddVisitorsCtrl",e)}(),function(){"use strict";function e(e,o,t,a,i,n,r,s,l,c,d,u){e.pageName="Edit Visitor Type",e.btnName="Update",e.isSubmitted=!1,e.urlID=l.id,e.statusData=[{value:0,text:"Inactive"},{value:1,text:"Active"}];var m=d.get("$validation");e.errorMessage=r.validation,r.getRecord(e.urlID).success(function(o){e.formscope=o.data}).error(function(e){u.error(e.error),c.go("categories.visitors.list")}),e.add_data=function(o){m.validate(o).success(function(){e.isSubmitted=!0,e.formscope._method="PUT",r.updateRecord(e.urlID,e.formscope).success(function(o){u.success(o.success),c.go("categories.visitors.list"),e.isSubmitted=!1}).error(function(o){u.error(o.error),e.isSubmitted=!1})}).error(function(){e.isSubmitted=!1})}}e.$inject=["$scope","fileReader","$filter","$uibModal","$rootScope","$compile","VisitorsFactory","$timeout","$stateParams","$state","$injector","Notification"],angular.module("BlurAdmin.pages.categories.visitors").controller("EditVisitorsCtrl",e)}(),function(){"use strict";function e(e,o,t,a,i,n,r,s,l,c,d,u){e.dtInstance={},e.reloadData=function(){e.dtInstance.rerender()},e.createdRow=function(o,t,a){r(angular.element(o).contents())(e)},e.deleteRecord=function(e){c.deleteRecord(e).success(function(e){u.success(e.success),o.reload()}).error(function(e){u.error(e.error)})},e.actionRoles=function(e,o,t){return"<a ng-if=\"havePermission('visitors','update');\" ui-sref='categories.visitors.edit({ id: "+t.id+" })'><i class='fa fa-edit'></i></a> <a ng-if=\"havePermission('visitors','delete');\" ng-confirm-click='Are you sure to delete this visitor type?' confirmed-click='deleteRecord( "+t.id+" )'><i class='fa fa-trash'></i></a>"},e.statusAction=function(e,o,t){return"0"==e.status?'<small class="label label-danger">Inactive</small>':'<small class="label label-success">Active</small>'},e.indexNumber=function(e,o,t,a){var i=Number(a.row)+Number(1),n=a.settings._iDisplayStart+i;return"<span>"+n+"</span>"},e.dtOptions=s.newOptions().withDataProp("data").withOption("ajax",function(o,t,a){c.showDataTable(o).success(function(o){o.error?e.reloadData():t(o)}).error(function(o){o&&e.reloadData()})}).withOption("processing",!0).withOption("serverSide",!0).withPaginationType("simple_numbers").withOption("order",[1,"asc"]).withDOM("lftip").withOption("searchDelay",500).withOption("createdRow",e.createdRow),e.dtColumns=[l.newColumn("id").withTitle("No").withOption("searchable",!1).renderWith(e.indexNumber).withClass("table-index"),l.newColumn("name").withTitle("Name").withOption("searchable",!0),l.newColumn(null).withTitle("Status").withOption("searchable",!1).notSortable().renderWith(e.statusAction),l.newColumn(null).withTitle("Action").withOption("searchable",!1).notSortable().renderWith(e.actionRoles)]}e.$inject=["$scope","$state","fileReader","$filter","$uibModal","$rootScope","$compile","DTOptionsBuilder","DTColumnBuilder","VisitorsFactory","$timeout","Notification"],angular.module("BlurAdmin.pages.categories.visitors").controller("ListVisitorsCtrl",e)}(),function(){"use strict";function e(e,o,t,a,i,n,r,s){var l=e.colors.dashboard,c=[];s.getCalenderRecord().success(function(e){$.each(e.data,function(o,t){var a={title:e.data[o].name,id:e.data[o].id,start:e.data[o].start_date,end:e.data[o].start_date,color:l.blueStone};c.push(a)})}).error(function(e){}),o(function(){$("#calendar").fullCalendar({header:{left:"today , prev,next",center:"title",right:"month, agendaWeek, agendaDay"},defaultDate:new Date,selectable:!0,selectHelper:!0,select:function(e,o){var a=t.havePermission("tours","create");if(a&&confirm("Are you sure want to add a tour?")){var i=moment(e._d).format("DDMMYYYYHHmmss");n.go("tours.add",{date:i})}},timeFormat:"h(:mm)a",editable:!0,eventLimit:!0,events:c,eventClick:function(e){e.id&&n.go("tours.viewdetails",{id:e.id})}})},1500)}e.$inject=["baConfig","$timeout","$rootScope","$filter","$stateParams","$state","UsersFactory","DashboardsFactory"],angular.module("BlurAdmin.pages.dashboard").controller("DashboardCalendarCtrl",e)}(),function(){"use strict";function e(){return{restrict:"E",controller:"DashboardCalendarCtrl",templateUrl:"app/pages/dashboard/dashboardCalendar/dashboardCalendar.html"}}angular.module("BlurAdmin.pages.dashboard").directive("dashboardCalendar",e)}(),function(){"use strict";function e(e,o){return angular.extend({},e,{template:function(t,a){var i='<div  class="panel '+(o.theme.blur?"panel-blur":"")+" full-invisible "+(a.baPanelClass||"");return i+='" zoom-in '+(o.theme.blur?"ba-panel-blur":"")+">",i+=e.template(t,a),i+="</div>"}})}e.$inject=["baPanel","baConfig"],angular.module("BlurAdmin.theme").directive("baPanel",e)}(),function(){"use strict";function e(){return{restrict:"A",transclude:!0,template:function(e,o){var t='<div class="panel-body" ng-transclude></div>';if(o.baPanelTitle){var a='<div class="panel-heading clearfix"><h3 class="panel-title">'+o.baPanelTitle+"</h3></div>";t=a+t}return t}}}angular.module("BlurAdmin.theme").factory("baPanel",e)}(),function(){"use strict";function e(e,o,t){var a;return e.bodyBgLoad().then(function(){a=e.getBodyBgImageSizes()}),o.addEventListener("resize",function(){a=e.getBodyBgImageSizes()}),{restrict:"A",link:function(i,n){function r(){a&&n.css({backgroundSize:Math.round(a.width)+"px "+Math.round(a.height)+"px",backgroundPosition:Math.floor(a.positionX)+"px "+Math.floor(a.positionY)+"px"})}t.$isMobile||(e.bodyBgLoad().then(function(){setTimeout(r)}),o.addEventListener("resize",r),i.$on("$destroy",function(){o.removeEventListener("resize",r)}))}}}e.$inject=["baPanelBlurHelper","$window","$rootScope"],angular.module("BlurAdmin.theme").directive("baPanelBlur",e)}(),function(){"use strict";function e(e){var o=e.defer(),t=getComputedStyle(document.body,":before"),a=new Image;a.src=t.backgroundImage.replace(/url\((['"])?(.*?)\1\)/gi,"$2"),a.onerror=function(){o.reject()},a.onload=function(){o.resolve()},this.bodyBgLoad=function(){return o.promise},this.getBodyBgImageSizes=function(){var e=document.documentElement.clientWidth,o=document.documentElement.clientHeight;if(!(e<=640)){var t,i,n=a.height/a.width,r=o/e;return r>n?(t=o,i=o/n):(i=e,t=e*n),{width:i,height:t,positionX:(e-i)/2,positionY:(o-t)/2}}}}e.$inject=["$q"],angular.module("BlurAdmin.theme").service("baPanelBlurHelper",e)}(),function(){"use strict";function e(e){return angular.extend({},e,{link:function(e,o,t){o.addClass("panel panel-white"),t.baPanelClass&&o.addClass(t.baPanelClass)}})}e.$inject=["baPanel"],angular.module("BlurAdmin.theme").directive("baPanelSelf",e)}(),function(){"use strict";function e(e,o){e.menuItems=o.getMenuItems(),e.defaultSidebarState=e.menuItems[0].stateRef,e.hoverItem=function(o){e.showHoverElem=!0,e.hoverElemHeight=o.currentTarget.clientHeight;var t=66;e.hoverElemTop=o.currentTarget.getBoundingClientRect().top-t},e.$on("$stateChangeSuccess",function(){o.canSidebarBeHidden()&&o.setMenuCollapsed(!0)})}e.$inject=["$scope","baSidebarService"],angular.module("BlurAdmin.theme.components").controller("BaSidebarCtrl",e)}(),function(){"use strict";function e(e,o,t,a){var i=$(window);return{restrict:"E",templateUrl:"app/theme/components/baSidebar/ba-sidebar.html",controller:"BaSidebarCtrl",link:function(a,n){function r(a){t.isDescendant(n[0],a.target)||a.originalEvent.$sidebarEventProcessed||o.isMenuCollapsed()||!o.canSidebarBeHidden()||(a.originalEvent.$sidebarEventProcessed=!0,e(function(){o.setMenuCollapsed(!0)},10))}function s(){var e=o.shouldMenuBeCollapsed(),t=l();e==o.isMenuCollapsed()&&a.menuHeight==t||a.$apply(function(){a.menuHeight=t,o.setMenuCollapsed(e)})}function l(){return n[0].childNodes[0].clientHeight-84}a.menuHeight=n[0].childNodes[0].clientHeight-84,i.on("click",r),i.on("resize",s),a.$on("$destroy",function(){i.off("click",r),i.off("resize",s)})}}}e.$inject=["$timeout","baSidebarService","baUtil","layoutSizes"],angular.module("BlurAdmin.theme.components").directive("baSidebar",e)}(),function(){"use strict";function e(){var e=[];this.addStaticItem=function(){e.push.apply(e,arguments)},this.$get=["$state","layoutSizes","$rootScope",function(o,t,a){function i(){function i(){return o.get().filter(function(e){return e.sidebarMeta}).map(function(e){var o=e.sidebarMeta;return e.data&&!a.havePermission(e.data.mainmodule,e.data.childmodule)?{}:{name:e.name,title:e.title,level:(e.name.match(/\./g)||[]).length,order:o.order,icon:o.icon,stateRef:e.name}}).sort(function(e,o){return 100*(e.level-o.level)+e.order-o.order})}function n(){return window.innerWidth<=t.resWidthCollapseSidebar}function r(){return window.innerWidth<=t.resWidthHideSidebar}var s=n();this.getMenuItems=function(){var o=i(),t=o.filter(function(e){return 0==e.level});return t.forEach(function(e){var t=o.filter(function(o){return 1==o.level&&0===o.name.indexOf(e.name)});e.subMenu=t.length?t:null}),t.concat(e)},this.shouldMenuBeCollapsed=n,this.canSidebarBeHidden=r,this.setMenuCollapsed=function(e){s=e},this.isMenuCollapsed=function(){return s},this.toggleMenuCollapsed=function(){s=!s},this.getAllStateRefsRecursive=function(e){function o(e){e.subMenu&&e.subMenu.forEach(function(e){e.stateRef&&t.push(e.stateRef),o(e)})}var t=[];return o(e),t}}return new i}],this.$get.$inject=["$state","layoutSizes","$rootScope"]}angular.module("BlurAdmin.theme.components").provider("baSidebarService",e)}(),function(){"use strict";function e(e){return{restrict:"A",link:function(o,t){t.on("click",function(t){t.originalEvent.$sidebarEventProcessed=!0,o.$apply(function(){e.toggleMenuCollapsed()})})}}}function o(e){return{restrict:"A",link:function(o,t){t.on("click",function(t){t.originalEvent.$sidebarEventProcessed=!0,e.isMenuCollapsed()||o.$apply(function(){e.setMenuCollapsed(!0)})})}}}function t(){return{restrict:"A",controller:"BaSidebarTogglingItemCtrl"}}function a(e,o,t,a,i){function n(e){return e&&l.some(function(o){return 0==e.name.indexOf(o)})}var r=this,s=r.$$menuItem=e.$eval(t.baSidebarTogglingItem);if(s&&s.subMenu&&s.subMenu.length){r.$$expandSubmenu=function(){console.warn("$$expandMenu should be overwritten by baUiSrefTogglingSubmenu")},r.$$collapseSubmenu=function(){console.warn("$$collapseSubmenu should be overwritten by baUiSrefTogglingSubmenu")};var l=i.getAllStateRefsRecursive(s);r.$expand=function(){r.$$expandSubmenu(),o.addClass("ba-sidebar-item-expanded")},r.$collapse=function(){r.$$collapseSubmenu(),o.removeClass("ba-sidebar-item-expanded")},r.$toggle=function(){o.hasClass("ba-sidebar-item-expanded")?r.$collapse():r.$expand()},n(a.current)&&o.addClass("ba-sidebar-item-expanded"),e.$on("$stateChangeStart",function(e,t){!n(t)&&o.hasClass("ba-sidebar-item-expanded")&&(r.$collapse(),o.removeClass("ba-sidebar-item-expanded"))}),e.$on("$stateChangeSuccess",function(e,t){n(t)&&!o.hasClass("ba-sidebar-item-expanded")&&(r.$expand(),o.addClass("ba-sidebar-item-expanded"))})}}function i(e){return{restrict:"A",require:"^baSidebarTogglingItem",link:function(e,o,t,a){a.$$expandSubmenu=function(){o.slideDown()},a.$$collapseSubmenu=function(){o.slideUp()}}}}function n(e){return{restrict:"A",require:"^baSidebarTogglingItem",link:function(o,t,a,i){t.on("click",function(){e.isMenuCollapsed()?(o.$apply(function(){e.setMenuCollapsed(!1)}),i.$expand()):i.$toggle()})}}}e.$inject=["baSidebarService"],o.$inject=["baSidebarService"],a.$inject=["$scope","$element","$attrs","$state","baSidebarService"],i.$inject=["$state"],n.$inject=["baSidebarService"],angular.module("BlurAdmin.theme.components").directive("baSidebarToggleMenu",e).directive("baSidebarCollapseMenu",o).directive("baSidebarTogglingItem",t).controller("BaSidebarTogglingItemCtrl",a).directive("baUiSrefTogglingSubmenu",i).directive("baUiSrefToggler",n)}(),function(){"use strict";function e(){return{restrict:"E",transclude:!0,templateUrl:"app/theme/components/baWizard/baWizard.html",controllerAs:"$baWizardController",controller:"baWizardCtrl"}}angular.module("BlurAdmin.theme.components").directive("baWizard",e)}(),function(){"use strict";function e(e){function o(){t.progress=(t.tabNum+1)/t.tabs.length*100}var t=this;t.tabs=[],t.tabNum=0,t.progress=0,t.addTab=function(e){e.setPrev(t.tabs[t.tabs.length-1]),t.tabs.push(e),t.selectTab(0)},e.$watch(angular.bind(t,function(){return t.tabNum}),o),t.selectTab=function(e){t.tabs[t.tabNum].submit(),t.tabs[e].isAvailiable()&&(t.tabNum=e,t.tabs.forEach(function(e,o){o==t.tabNum?e.select(!0):e.select(!1)}))},t.isFirstTab=function(){return 0==t.tabNum},t.isLastTab=function(){return t.tabNum==t.tabs.length-1},t.nextTab=function(){t.selectTab(t.tabNum+1)},t.previousTab=function(){t.selectTab(t.tabNum-1)}}e.$inject=["$scope"],angular.module("BlurAdmin.theme.components").controller("baWizardCtrl",e)}(),function(){"use strict";function e(){return{restrict:"E",transclude:!0,require:"^baWizard",scope:{form:"="},templateUrl:"app/theme/components/baWizard/baWizardStep.html",link:function(e,o,t,a){function i(o){o?e.selected=!0:e.selected=!1}function n(){e.form&&e.form.$setSubmitted(!0)}function r(){return!e.form||e.form.$valid}function s(){return!c.prevTab||c.prevTab.isComplete()}function l(e){c.prevTab=e}e.selected=!0;var c={title:t.title,select:i,submit:n,isComplete:r,isAvailiable:s,prevTab:void 0,setPrev:l};a.addTab(c)}}}angular.module("BlurAdmin.theme.components").directive("baWizardStep",e)}(),function(){"use strict";function e(){return{restrict:"E",templateUrl:"app/theme/components/backTop/backTop.html",controller:function(){$("#backTop").backTop({position:200,speed:100})}}}angular.module("BlurAdmin.theme.components").directive("backTop",e)}(),function(){"use strict";function e(e,o){return{restrict:"E",templateUrl:"app/theme/components/contentTop/contentTop.html",link:function(e){e.$watch(function(){e.activePageTitle=o.current.title})}}}e.$inject=["$location","$state"],angular.module("BlurAdmin.theme.components").directive("contentTop",e)}(),function(){"use strict";function e(e,o){e.users={0:{name:"Vlad"},1:{name:"Kostya"},2:{name:"Andrey"},3:{name:"Nasta"}},e.notifications=[],e.messages=[],e.getMessage=function(t){var a=t.template;return(t.userId||0===t.userId)&&(a=a.replace("&name","<strong>"+e.users[t.userId].name+"</strong>")),o.trustAsHtml(a)}}e.$inject=["$scope","$sce"],angular.module("BlurAdmin.theme.components").controller("MsgCenterCtrl",e)}(),function(){"use strict";function e(){return{restrict:"E",templateUrl:"app/theme/components/msgCenter/msgCenter.html",controller:"MsgCenterCtrl"}}angular.module("BlurAdmin.theme.components").directive("msgCenter",e)}(),function(){"use strict";function e(){return{restrict:"E",templateUrl:"app/theme/components/pageTop/pageTop.html"}}angular.module("BlurAdmin.theme.components").directive("pageTop",e)}(),function(){"use strict";function e(e){return{restrict:"E",templateUrl:"app/theme/components/progressBarRound/progressBarRound.html",link:function(o,t,a){function i(){var a=t.find("#loader")[0];a.setAttribute("stroke-dasharray",180*e.getProgress()*Math.PI/100+", 20000"),o.progress=e.getProgress()}o.baProgressDialog=e,o.$watch(function(){return e.getProgress()},i)}}}e.$inject=["baProgressModal"],angular.module("BlurAdmin.theme.components").directive("progressBarRound",e)}(),function(){"use strict";function e(){return{restrict:"EA",scope:{ngModel:"="},templateUrl:"app/theme/components/widgets/widgets.html",replace:!0}}angular.module("BlurAdmin.theme.components").directive("widgets",e)}(),function(){"use strict";function e(e){return function(o){return e.images.root+o}}e.$inject=["layoutPaths"],angular.module("BlurAdmin.theme").filter("appImage",e)}(),function(){"use strict";function e(e){return function(o){return e.images.root+"theme/icon/kameleon/"+o+".svg"}}e.$inject=["layoutPaths"],angular.module("BlurAdmin.theme").filter("kameleonImg",e)}(),function(){"use strict";function e(e){return function(o,t){return t=t||"png",e.images.profile+o+"."+t}}e.$inject=["layoutPaths"],angular.module("BlurAdmin.theme").filter("profilePicture",e)}(),function(){"use strict";function e(){return function(e){return e?String(e).replace(/<[^>]+>/gm,""):""}}angular.module("BlurAdmin.theme").filter("plainText",e)}(),function(){"use strict";function e(){return{templateUrl:"app/theme/inputs/baSwitcher/baSwitcher.html",scope:{switcherStyle:"@",switcherValue:"="}}}angular.module("BlurAdmin.theme.inputs").directive("baSwitcher",e)}(),!function(e){e.fn.backTop=function(o){var t=this,a=e.extend({position:400,speed:500,color:"white"},o),i=a.position,n=a.speed,r=a.color;t.addClass("white"==r?"white":"red"==r?"red":"green"==r?"green":"black"),t.css({right:40,bottom:40,position:"fixed"}),e(document).scroll(function(){var o=e(window).scrollTop();o>=i?t.fadeIn(n):t.fadeOut(n)}),t.click(function(){e("html, body").animate({scrollTop:0},{duration:1200})})}}(jQuery),angular.module("BlurAdmin").run(["$templateCache",function(e){e.put("app/pages/ApiManagements/add.html",'<div class="row"><div class="col-md-6"><div ba-panel="" ba-panel-title="{{pageName}}" ba-panel-class="with-scroll"><form ng-submit="add_data(add_form)" role="form" name="add_form"><div class="form-group"><label>Company Name <code>*</code></label> <input type="text" ng-model="formscope.name" name="name" class="form-control" placeholder="Please enter company name" required-error-message="{{errorMessage.name.required}}" focus-me="" minlength-error-message="{{errorMessage.name.minlength}}" maxlength-error-message="{{errorMessage.name.maxlength}}" validator="required, minlength=2, maxlength=50" chars="slug" maxlength="50"></div><div class="form-group"><label>API Key <code>*</code></label><div class="input-group"><input type="text" ng-model="formscope.api_key" name="api_key" class="form-control" placeholder="Please enter api key" required-error-message="{{errorMessage.api_key.required}}" minlength-error-message="{{errorMessage.api_key.minlength}}" maxlength-error-message="{{errorMessage.api_key.maxlength}}" readonly="" validator="required, minlength=16, maxlength=16" valid-method="blur"> <span class="input-group-btn"><button class="btn btn-primary" ng-click="changeKey()" type="button">Reset</button></span></div></div><div class="form-group"><label>IP Address <code>*</code></label> <input type="text" ng-model="formscope.ipaddress" name="ipaddress" class="form-control" placeholder="Please enter ip address" required-error-message="{{errorMessage.ipaddress.required}}" validator="required, ipaddress"></div><div class="form-group" ng-if="state.current.name == \'ApiManagements.edit\'"><label>Slug</label><div class="input-group"><span>{{formscope.slug}}</span></div></div><div class="form-group"><label>Tour Manager</label><select chosen="" ng-model="formscope.tour_manager" name="tour_manager" ng-options="type.id as type.name disable when type.isDisabled for type in managerOptions" class="form-control"></select></div><div class="form-group"><label>Status</label><select chosen="" ng-model="formscope.status" name="status" ng-options="company.value as company.text for company in statusOption" class="form-control"></select></div><button type="submit" ng-disabled="isSubmitted" class="btn btn-success" align="center">{{btnName}}</button> <a type="submit" ui-sref="ApiManagements.list" class="btn btn-info" align="center">Cancel</a></form></div></div></div>'),
e.put("app/pages/ApiManagements/view.html",'<div class="widgets"><div class="row"><div class="col-md-12"><div ba-panel="" ba-panel-title="{{ pageName }} Listing"><div class="form-group select-page-size-wrap"><button class="btn btn-primary" ng-if="havePermission(\'api_managements\',\'create\');" ui-sref="ApiManagements.add">Add</button></div><div class="horizontal-scroll"><table datatable="" dt-instance="dtInstance" dt-options="dtOptions" dt-columns="dtColumns" class="row-border hover"></table></div></div></div></div></div>'),e.put("app/pages/contactmanagements/add.html",'<div class="widgets"><div class="row"><div class="col-md-8"><div ba-panel="" ba-panel-title="{{pageName}}" ba-panel-class="with-scroll"><div class="ng-cloak"><form class="form-validation" ng-submit="add_data(add_form)" role="form" name="add_form"><div class="row"><div class="form-group col-lg-4 col-md-12 col-sm-12"><label for="input01">First Name<code>*</code></label> <input type="text" focus-me="" class="form-control" ng-model="formscope.first_name" placeholder="Please enter first name" name="first_name" required-error-message="{{errorMessage.first_name.required}}" minlength-error-message="{{errorMessage.first_name.minlength}}" maxlength-error-message="{{errorMessage.first_name.maxlength}}" validator="required, minlength=2, maxlength=20" valid-method="blur" chars="letters"></div><div class="form-group col-lg-4 col-md-12 col-sm-12"><label for="input01">Middle Name</label> <input type="text" class="form-control" ng-model="formscope.middle_name" placeholder="Please enter first name" name="middle_name"></div><div class="form-group col-lg-4 col-md-12 col-sm-12"><label for="input01">Last Name<code>*</code></label> <input type="text" class="form-control" ng-model="formscope.last_name" placeholder="Please enter Last name" name="last_name" required-error-message="{{errorMessage.last_name.required}}" minlength-error-message="{{errorMessage.last_name.minlength}}" maxlength-error-message="{{errorMessage.last_name.maxlength}}" validator="required, minlength=2, maxlength=20" valid-method="blur" chars="letters"></div></div><div class="row"><div class="form-group col-lg-6 col-md-12 col-sm-12"><label for="input01">Email<code>*</code></label> <input type="email" class="form-control" ng-model="formscope.email" placeholder="Please enter email" name="email" required-error-message="{{errorMessage.email.required}}" email-error-message="{{errorMessage.email.invalidEmail}}" minlength-error-message="{{errorMessage.email.minlength}}" maxlength-error-message="{{errorMessage.email.maxlength}}" validator="required, email, minlength=2, maxlength=100" valid-method="blur"></div><div class="form-group col-lg-6 col-md-12 col-sm-12"><label for="textarea01">Visitor Type<code>*</code></label><select chosen="" ng-model="formscope.visitor_type" name="visitor_type" ng-options="company.id as company.name for company in VisitorOption" class="form-control" required-error-message="{{errorMessage.visitor_type.required}}" validator="required" valid-method="watch, blur" validation-group="visitor_type_error_message"></select><span id="visitor_type_error_message"></span></div></div><div class="row"><div class="form-group col-lg-6 col-md-12 col-sm-12"><label for="textarea01">Organization</label> <input type="text" class="form-control" ng-model="formscope.organization" placeholder="Please enter your organization name" chars="text" name="organization"></div><div class="form-group col-lg-6 col-md-12 col-sm-12"><label for="textarea01">Organization Type</label><select chosen="" ng-model="formscope.organization_id" name="organization_id" ng-options="company.id as company.name for company in OrganizationOption" class="form-control"></select></div></div><div class="row"><div class="form-group col-lg-6 col-md-12 col-sm-12"><label for="input04">Mobile<code>*</code></label><div class="row"><div class="col-sm-3" style="padding-right: 0px;"><select ng-model="formscope.country_code" name="country_code" class="form-control" id=""><option data-countrycode="GB" value="44" selected="">UK (+44)</option><option data-countrycode="US" value="1">USA (+1)</option><optgroup label="Other countries"><option data-countrycode="DZ" value="213">Algeria (+213)</option><option data-countrycode="AD" value="376">Andorra (+376)</option><option data-countrycode="AO" value="244">Angola (+244)</option><option data-countrycode="AI" value="1264">Anguilla (+1264)</option><option data-countrycode="AG" value="1268">Antigua &amp; Barbuda (+1268)</option><option data-countrycode="AR" value="54">Argentina (+54)</option><option data-countrycode="AM" value="374">Armenia (+374)</option><option data-countrycode="AW" value="297">Aruba (+297)</option><option data-countrycode="AU" value="61">Australia (+61)</option><option data-countrycode="AT" value="43">Austria (+43)</option><option data-countrycode="AZ" value="994">Azerbaijan (+994)</option><option data-countrycode="BS" value="1242">Bahamas (+1242)</option><option data-countrycode="BH" value="973">Bahrain (+973)</option><option data-countrycode="BD" value="880">Bangladesh (+880)</option><option data-countrycode="BB" value="1246">Barbados (+1246)</option><option data-countrycode="BY" value="375">Belarus (+375)</option><option data-countrycode="BE" value="32">Belgium (+32)</option><option data-countrycode="BZ" value="501">Belize (+501)</option><option data-countrycode="BJ" value="229">Benin (+229)</option><option data-countrycode="BM" value="1441">Bermuda (+1441)</option><option data-countrycode="BT" value="975">Bhutan (+975)</option><option data-countrycode="BO" value="591">Bolivia (+591)</option><option data-countrycode="BA" value="387">Bosnia Herzegovina (+387)</option><option data-countrycode="BW" value="267">Botswana (+267)</option><option data-countrycode="BR" value="55">Brazil (+55)</option><option data-countrycode="BN" value="673">Brunei (+673)</option><option data-countrycode="BG" value="359">Bulgaria (+359)</option><option data-countrycode="BF" value="226">Burkina Faso (+226)</option><option data-countrycode="BI" value="257">Burundi (+257)</option><option data-countrycode="KH" value="855">Cambodia (+855)</option><option data-countrycode="CM" value="237">Cameroon (+237)</option><option data-countrycode="CA" value="1">Canada (+1)</option><option data-countrycode="CV" value="238">Cape Verde Islands (+238)</option><option data-countrycode="KY" value="1345">Cayman Islands (+1345)</option><option data-countrycode="CF" value="236">Central African Republic (+236)</option><option data-countrycode="CL" value="56">Chile (+56)</option><option data-countrycode="CN" value="86">China (+86)</option><option data-countrycode="CO" value="57">Colombia (+57)</option><option data-countrycode="KM" value="269">Comoros (+269)</option><option data-countrycode="CG" value="242">Congo (+242)</option><option data-countrycode="CK" value="682">Cook Islands (+682)</option><option data-countrycode="CR" value="506">Costa Rica (+506)</option><option data-countrycode="HR" value="385">Croatia (+385)</option><option data-countrycode="CU" value="53">Cuba (+53)</option><option data-countrycode="CY" value="90392">Cyprus North (+90392)</option><option data-countrycode="CY" value="357">Cyprus South (+357)</option><option data-countrycode="CZ" value="42">Czech Republic (+42)</option><option data-countrycode="DK" value="45">Denmark (+45)</option><option data-countrycode="DJ" value="253">Djibouti (+253)</option><option data-countrycode="DM" value="1809">Dominica (+1809)</option><option data-countrycode="DO" value="1809">Dominican Republic (+1809)</option><option data-countrycode="EC" value="593">Ecuador (+593)</option><option data-countrycode="EG" value="20">Egypt (+20)</option><option data-countrycode="SV" value="503">El Salvador (+503)</option><option data-countrycode="GQ" value="240">Equatorial Guinea (+240)</option><option data-countrycode="ER" value="291">Eritrea (+291)</option><option data-countrycode="EE" value="372">Estonia (+372)</option><option data-countrycode="ET" value="251">Ethiopia (+251)</option><option data-countrycode="FK" value="500">Falkland Islands (+500)</option><option data-countrycode="FO" value="298">Faroe Islands (+298)</option><option data-countrycode="FJ" value="679">Fiji (+679)</option><option data-countrycode="FI" value="358">Finland (+358)</option><option data-countrycode="FR" value="33">France (+33)</option><option data-countrycode="GF" value="594">French Guiana (+594)</option><option data-countrycode="PF" value="689">French Polynesia (+689)</option><option data-countrycode="GA" value="241">Gabon (+241)</option><option data-countrycode="GM" value="220">Gambia (+220)</option><option data-countrycode="GE" value="7880">Georgia (+7880)</option><option data-countrycode="DE" value="49">Germany (+49)</option><option data-countrycode="GH" value="233">Ghana (+233)</option><option data-countrycode="GI" value="350">Gibraltar (+350)</option><option data-countrycode="GR" value="30">Greece (+30)</option><option data-countrycode="GL" value="299">Greenland (+299)</option><option data-countrycode="GD" value="1473">Grenada (+1473)</option><option data-countrycode="GP" value="590">Guadeloupe (+590)</option><option data-countrycode="GU" value="671">Guam (+671)</option><option data-countrycode="GT" value="502">Guatemala (+502)</option><option data-countrycode="GN" value="224">Guinea (+224)</option><option data-countrycode="GW" value="245">Guinea - Bissau (+245)</option><option data-countrycode="GY" value="592">Guyana (+592)</option><option data-countrycode="HT" value="509">Haiti (+509)</option><option data-countrycode="HN" value="504">Honduras (+504)</option><option data-countrycode="HK" value="852">Hong Kong (+852)</option><option data-countrycode="HU" value="36">Hungary (+36)</option><option data-countrycode="IS" value="354">Iceland (+354)</option><option data-countrycode="IN" value="91">India (+91)</option><option data-countrycode="ID" value="62">Indonesia (+62)</option><option data-countrycode="IR" value="98">Iran (+98)</option><option data-countrycode="IQ" value="964">Iraq (+964)</option><option data-countrycode="IE" value="353">Ireland (+353)</option><option data-countrycode="IL" value="972">Israel (+972)</option><option data-countrycode="IT" value="39">Italy (+39)</option><option data-countrycode="JM" value="1876">Jamaica (+1876)</option><option data-countrycode="JP" value="81">Japan (+81)</option><option data-countrycode="JO" value="962">Jordan (+962)</option><option data-countrycode="KZ" value="7">Kazakhstan (+7)</option><option data-countrycode="KE" value="254">Kenya (+254)</option><option data-countrycode="KI" value="686">Kiribati (+686)</option><option data-countrycode="KP" value="850">Korea North (+850)</option><option data-countrycode="KR" value="82">Korea South (+82)</option><option data-countrycode="KW" value="965">Kuwait (+965)</option><option data-countrycode="KG" value="996">Kyrgyzstan (+996)</option><option data-countrycode="LA" value="856">Laos (+856)</option><option data-countrycode="LV" value="371">Latvia (+371)</option><option data-countrycode="LB" value="961">Lebanon (+961)</option><option data-countrycode="LS" value="266">Lesotho (+266)</option><option data-countrycode="LR" value="231">Liberia (+231)</option><option data-countrycode="LY" value="218">Libya (+218)</option><option data-countrycode="LI" value="417">Liechtenstein (+417)</option><option data-countrycode="LT" value="370">Lithuania (+370)</option><option data-countrycode="LU" value="352">Luxembourg (+352)</option><option data-countrycode="MO" value="853">Macao (+853)</option><option data-countrycode="MK" value="389">Macedonia (+389)</option><option data-countrycode="MG" value="261">Madagascar (+261)</option><option data-countrycode="MW" value="265">Malawi (+265)</option><option data-countrycode="MY" value="60">Malaysia (+60)</option><option data-countrycode="MV" value="960">Maldives (+960)</option><option data-countrycode="ML" value="223">Mali (+223)</option><option data-countrycode="MT" value="356">Malta (+356)</option><option data-countrycode="MH" value="692">Marshall Islands (+692)</option><option data-countrycode="MQ" value="596">Martinique (+596)</option><option data-countrycode="MR" value="222">Mauritania (+222)</option><option data-countrycode="YT" value="269">Mayotte (+269)</option><option data-countrycode="MX" value="52">Mexico (+52)</option><option data-countrycode="FM" value="691">Micronesia (+691)</option><option data-countrycode="MD" value="373">Moldova (+373)</option><option data-countrycode="MC" value="377">Monaco (+377)</option><option data-countrycode="MN" value="976">Mongolia (+976)</option><option data-countrycode="MS" value="1664">Montserrat (+1664)</option><option data-countrycode="MA" value="212">Morocco (+212)</option><option data-countrycode="MZ" value="258">Mozambique (+258)</option><option data-countrycode="MN" value="95">Myanmar (+95)</option><option data-countrycode="NA" value="264">Namibia (+264)</option><option data-countrycode="NR" value="674">Nauru (+674)</option><option data-countrycode="NP" value="977">Nepal (+977)</option><option data-countrycode="NL" value="31">Netherlands (+31)</option><option data-countrycode="NC" value="687">New Caledonia (+687)</option><option data-countrycode="NZ" value="64">New Zealand (+64)</option><option data-countrycode="NI" value="505">Nicaragua (+505)</option><option data-countrycode="NE" value="227">Niger (+227)</option><option data-countrycode="NG" value="234">Nigeria (+234)</option><option data-countrycode="NU" value="683">Niue (+683)</option><option data-countrycode="NF" value="672">Norfolk Islands (+672)</option><option data-countrycode="NP" value="670">Northern Marianas (+670)</option><option data-countrycode="NO" value="47">Norway (+47)</option><option data-countrycode="OM" value="968">Oman (+968)</option><option data-countrycode="PW" value="680">Palau (+680)</option><option data-countrycode="PA" value="507">Panama (+507)</option><option data-countrycode="PG" value="675">Papua New Guinea (+675)</option><option data-countrycode="PY" value="595">Paraguay (+595)</option><option data-countrycode="PE" value="51">Peru (+51)</option><option data-countrycode="PH" value="63">Philippines (+63)</option><option data-countrycode="PL" value="48">Poland (+48)</option><option data-countrycode="PT" value="351">Portugal (+351)</option><option data-countrycode="PR" value="1787">Puerto Rico (+1787)</option><option data-countrycode="QA" value="974">Qatar (+974)</option><option data-countrycode="RE" value="262">Reunion (+262)</option><option data-countrycode="RO" value="40">Romania (+40)</option><option data-countrycode="RU" value="7">Russia (+7)</option><option data-countrycode="RW" value="250">Rwanda (+250)</option><option data-countrycode="SM" value="378">San Marino (+378)</option><option data-countrycode="ST" value="239">Sao Tome &amp; Principe (+239)</option><option data-countrycode="SA" value="966">Saudi Arabia (+966)</option><option data-countrycode="SN" value="221">Senegal (+221)</option><option data-countrycode="CS" value="381">Serbia (+381)</option><option data-countrycode="SC" value="248">Seychelles (+248)</option><option data-countrycode="SL" value="232">Sierra Leone (+232)</option><option data-countrycode="SG" value="65">Singapore (+65)</option><option data-countrycode="SK" value="421">Slovak Republic (+421)</option><option data-countrycode="SI" value="386">Slovenia (+386)</option><option data-countrycode="SB" value="677">Solomon Islands (+677)</option><option data-countrycode="SO" value="252">Somalia (+252)</option><option data-countrycode="ZA" value="27">South Africa (+27)</option><option data-countrycode="ES" value="34">Spain (+34)</option><option data-countrycode="LK" value="94">Sri Lanka (+94)</option><option data-countrycode="SH" value="290">St. Helena (+290)</option><option data-countrycode="KN" value="1869">St. Kitts (+1869)</option><option data-countrycode="SC" value="1758">St. Lucia (+1758)</option><option data-countrycode="SD" value="249">Sudan (+249)</option><option data-countrycode="SR" value="597">Suriname (+597)</option><option data-countrycode="SZ" value="268">Swaziland (+268)</option><option data-countrycode="SE" value="46">Sweden (+46)</option><option data-countrycode="CH" value="41">Switzerland (+41)</option><option data-countrycode="SI" value="963">Syria (+963)</option><option data-countrycode="TW" value="886">Taiwan (+886)</option><option data-countrycode="TJ" value="7">Tajikstan (+7)</option><option data-countrycode="TH" value="66">Thailand (+66)</option><option data-countrycode="TG" value="228">Togo (+228)</option><option data-countrycode="TO" value="676">Tonga (+676)</option><option data-countrycode="TT" value="1868">Trinidad &amp; Tobago (+1868)</option><option data-countrycode="TN" value="216">Tunisia (+216)</option><option data-countrycode="TR" value="90">Turkey (+90)</option><option data-countrycode="TM" value="7">Turkmenistan (+7)</option><option data-countrycode="TM" value="993">Turkmenistan (+993)</option><option data-countrycode="TC" value="1649">Turks &amp; Caicos Islands (+1649)</option><option data-countrycode="TV" value="688">Tuvalu (+688)</option><option data-countrycode="UG" value="256">Uganda (+256)</option><option data-countrycode="UA" value="380">Ukraine (+380)</option><option data-countrycode="AE" value="971">United Arab Emirates (+971)</option><option data-countrycode="UY" value="598">Uruguay (+598)</option><option data-countrycode="UZ" value="7">Uzbekistan (+7)</option><option data-countrycode="VU" value="678">Vanuatu (+678)</option><option data-countrycode="VA" value="379">Vatican City (+379)</option><option data-countrycode="VE" value="58">Venezuela (+58)</option><option data-countrycode="VN" value="84">Vietnam (+84)</option><option data-countrycode="VG" value="84">Virgin Islands - British (+1284)</option><option data-countrycode="VI" value="84">Virgin Islands - US (+1340)</option><option data-countrycode="WF" value="681">Wallis &amp; Futuna (+681)</option><option data-countrycode="YE" value="969">Yemen (North)(+969)</option><option data-countrycode="YE" value="967">Yemen (South)(+967)</option><option data-countrycode="ZM" value="260">Zambia (+260)</option><option data-countrycode="ZW" value="263">Zimbabwe (+263)</option></optgroup></select></div><div class="col-sm-9" style="padding-left: 0px;"><input type="text" class="form-control" ng-model="formscope.mobile" placeholder="Please enter your mobile number" phone-input="" name="mobile" required-error-message="{{errorMessage.mobile.required}}" maxlength-error-message="{{errorMessage.mobile.maxlength}}" minlength-error-message="{{errorMessage.mobile.minlength}}" validator="required, maxlength=15, minlength=10" valid-method="blur" chars="numbers"></div></div></div><div class="form-group col-lg-6 col-md-12 col-sm-12"><label for="input04">Alternate Phone Number</label><div class="row"><div class="col-sm-3" style="padding-right: 0px;"><select ng-model="formscope.phone_number_country_code" name="phone_number_country_code" class="form-control" id=""><option data-countrycode="GB" value="44" selected="">UK (+44)</option><option data-countrycode="US" value="1">USA (+1)</option><optgroup label="Other countries"><option data-countrycode="DZ" value="213">Algeria (+213)</option><option data-countrycode="AD" value="376">Andorra (+376)</option><option data-countrycode="AO" value="244">Angola (+244)</option><option data-countrycode="AI" value="1264">Anguilla (+1264)</option><option data-countrycode="AG" value="1268">Antigua &amp; Barbuda (+1268)</option><option data-countrycode="AR" value="54">Argentina (+54)</option><option data-countrycode="AM" value="374">Armenia (+374)</option><option data-countrycode="AW" value="297">Aruba (+297)</option><option data-countrycode="AU" value="61">Australia (+61)</option><option data-countrycode="AT" value="43">Austria (+43)</option><option data-countrycode="AZ" value="994">Azerbaijan (+994)</option><option data-countrycode="BS" value="1242">Bahamas (+1242)</option><option data-countrycode="BH" value="973">Bahrain (+973)</option><option data-countrycode="BD" value="880">Bangladesh (+880)</option><option data-countrycode="BB" value="1246">Barbados (+1246)</option><option data-countrycode="BY" value="375">Belarus (+375)</option><option data-countrycode="BE" value="32">Belgium (+32)</option><option data-countrycode="BZ" value="501">Belize (+501)</option><option data-countrycode="BJ" value="229">Benin (+229)</option><option data-countrycode="BM" value="1441">Bermuda (+1441)</option><option data-countrycode="BT" value="975">Bhutan (+975)</option><option data-countrycode="BO" value="591">Bolivia (+591)</option><option data-countrycode="BA" value="387">Bosnia Herzegovina (+387)</option><option data-countrycode="BW" value="267">Botswana (+267)</option><option data-countrycode="BR" value="55">Brazil (+55)</option><option data-countrycode="BN" value="673">Brunei (+673)</option><option data-countrycode="BG" value="359">Bulgaria (+359)</option><option data-countrycode="BF" value="226">Burkina Faso (+226)</option><option data-countrycode="BI" value="257">Burundi (+257)</option><option data-countrycode="KH" value="855">Cambodia (+855)</option><option data-countrycode="CM" value="237">Cameroon (+237)</option><option data-countrycode="CA" value="1">Canada (+1)</option><option data-countrycode="CV" value="238">Cape Verde Islands (+238)</option><option data-countrycode="KY" value="1345">Cayman Islands (+1345)</option><option data-countrycode="CF" value="236">Central African Republic (+236)</option><option data-countrycode="CL" value="56">Chile (+56)</option><option data-countrycode="CN" value="86">China (+86)</option><option data-countrycode="CO" value="57">Colombia (+57)</option><option data-countrycode="KM" value="269">Comoros (+269)</option><option data-countrycode="CG" value="242">Congo (+242)</option><option data-countrycode="CK" value="682">Cook Islands (+682)</option><option data-countrycode="CR" value="506">Costa Rica (+506)</option><option data-countrycode="HR" value="385">Croatia (+385)</option><option data-countrycode="CU" value="53">Cuba (+53)</option><option data-countrycode="CY" value="90392">Cyprus North (+90392)</option><option data-countrycode="CY" value="357">Cyprus South (+357)</option><option data-countrycode="CZ" value="42">Czech Republic (+42)</option><option data-countrycode="DK" value="45">Denmark (+45)</option><option data-countrycode="DJ" value="253">Djibouti (+253)</option><option data-countrycode="DM" value="1809">Dominica (+1809)</option><option data-countrycode="DO" value="1809">Dominican Republic (+1809)</option><option data-countrycode="EC" value="593">Ecuador (+593)</option><option data-countrycode="EG" value="20">Egypt (+20)</option><option data-countrycode="SV" value="503">El Salvador (+503)</option><option data-countrycode="GQ" value="240">Equatorial Guinea (+240)</option><option data-countrycode="ER" value="291">Eritrea (+291)</option><option data-countrycode="EE" value="372">Estonia (+372)</option><option data-countrycode="ET" value="251">Ethiopia (+251)</option><option data-countrycode="FK" value="500">Falkland Islands (+500)</option><option data-countrycode="FO" value="298">Faroe Islands (+298)</option><option data-countrycode="FJ" value="679">Fiji (+679)</option><option data-countrycode="FI" value="358">Finland (+358)</option><option data-countrycode="FR" value="33">France (+33)</option><option data-countrycode="GF" value="594">French Guiana (+594)</option><option data-countrycode="PF" value="689">French Polynesia (+689)</option><option data-countrycode="GA" value="241">Gabon (+241)</option><option data-countrycode="GM" value="220">Gambia (+220)</option><option data-countrycode="GE" value="7880">Georgia (+7880)</option><option data-countrycode="DE" value="49">Germany (+49)</option><option data-countrycode="GH" value="233">Ghana (+233)</option><option data-countrycode="GI" value="350">Gibraltar (+350)</option><option data-countrycode="GR" value="30">Greece (+30)</option><option data-countrycode="GL" value="299">Greenland (+299)</option><option data-countrycode="GD" value="1473">Grenada (+1473)</option><option data-countrycode="GP" value="590">Guadeloupe (+590)</option><option data-countrycode="GU" value="671">Guam (+671)</option><option data-countrycode="GT" value="502">Guatemala (+502)</option><option data-countrycode="GN" value="224">Guinea (+224)</option><option data-countrycode="GW" value="245">Guinea - Bissau (+245)</option><option data-countrycode="GY" value="592">Guyana (+592)</option><option data-countrycode="HT" value="509">Haiti (+509)</option><option data-countrycode="HN" value="504">Honduras (+504)</option><option data-countrycode="HK" value="852">Hong Kong (+852)</option><option data-countrycode="HU" value="36">Hungary (+36)</option><option data-countrycode="IS" value="354">Iceland (+354)</option><option data-countrycode="IN" value="91">India (+91)</option><option data-countrycode="ID" value="62">Indonesia (+62)</option><option data-countrycode="IR" value="98">Iran (+98)</option><option data-countrycode="IQ" value="964">Iraq (+964)</option><option data-countrycode="IE" value="353">Ireland (+353)</option><option data-countrycode="IL" value="972">Israel (+972)</option><option data-countrycode="IT" value="39">Italy (+39)</option><option data-countrycode="JM" value="1876">Jamaica (+1876)</option><option data-countrycode="JP" value="81">Japan (+81)</option><option data-countrycode="JO" value="962">Jordan (+962)</option><option data-countrycode="KZ" value="7">Kazakhstan (+7)</option><option data-countrycode="KE" value="254">Kenya (+254)</option><option data-countrycode="KI" value="686">Kiribati (+686)</option><option data-countrycode="KP" value="850">Korea North (+850)</option><option data-countrycode="KR" value="82">Korea South (+82)</option><option data-countrycode="KW" value="965">Kuwait (+965)</option><option data-countrycode="KG" value="996">Kyrgyzstan (+996)</option><option data-countrycode="LA" value="856">Laos (+856)</option><option data-countrycode="LV" value="371">Latvia (+371)</option><option data-countrycode="LB" value="961">Lebanon (+961)</option><option data-countrycode="LS" value="266">Lesotho (+266)</option><option data-countrycode="LR" value="231">Liberia (+231)</option><option data-countrycode="LY" value="218">Libya (+218)</option><option data-countrycode="LI" value="417">Liechtenstein (+417)</option><option data-countrycode="LT" value="370">Lithuania (+370)</option><option data-countrycode="LU" value="352">Luxembourg (+352)</option><option data-countrycode="MO" value="853">Macao (+853)</option><option data-countrycode="MK" value="389">Macedonia (+389)</option><option data-countrycode="MG" value="261">Madagascar (+261)</option><option data-countrycode="MW" value="265">Malawi (+265)</option><option data-countrycode="MY" value="60">Malaysia (+60)</option><option data-countrycode="MV" value="960">Maldives (+960)</option><option data-countrycode="ML" value="223">Mali (+223)</option><option data-countrycode="MT" value="356">Malta (+356)</option><option data-countrycode="MH" value="692">Marshall Islands (+692)</option><option data-countrycode="MQ" value="596">Martinique (+596)</option><option data-countrycode="MR" value="222">Mauritania (+222)</option><option data-countrycode="YT" value="269">Mayotte (+269)</option><option data-countrycode="MX" value="52">Mexico (+52)</option><option data-countrycode="FM" value="691">Micronesia (+691)</option><option data-countrycode="MD" value="373">Moldova (+373)</option><option data-countrycode="MC" value="377">Monaco (+377)</option><option data-countrycode="MN" value="976">Mongolia (+976)</option><option data-countrycode="MS" value="1664">Montserrat (+1664)</option><option data-countrycode="MA" value="212">Morocco (+212)</option><option data-countrycode="MZ" value="258">Mozambique (+258)</option><option data-countrycode="MN" value="95">Myanmar (+95)</option><option data-countrycode="NA" value="264">Namibia (+264)</option><option data-countrycode="NR" value="674">Nauru (+674)</option><option data-countrycode="NP" value="977">Nepal (+977)</option><option data-countrycode="NL" value="31">Netherlands (+31)</option><option data-countrycode="NC" value="687">New Caledonia (+687)</option><option data-countrycode="NZ" value="64">New Zealand (+64)</option><option data-countrycode="NI" value="505">Nicaragua (+505)</option><option data-countrycode="NE" value="227">Niger (+227)</option><option data-countrycode="NG" value="234">Nigeria (+234)</option><option data-countrycode="NU" value="683">Niue (+683)</option><option data-countrycode="NF" value="672">Norfolk Islands (+672)</option><option data-countrycode="NP" value="670">Northern Marianas (+670)</option><option data-countrycode="NO" value="47">Norway (+47)</option><option data-countrycode="OM" value="968">Oman (+968)</option><option data-countrycode="PW" value="680">Palau (+680)</option><option data-countrycode="PA" value="507">Panama (+507)</option><option data-countrycode="PG" value="675">Papua New Guinea (+675)</option><option data-countrycode="PY" value="595">Paraguay (+595)</option><option data-countrycode="PE" value="51">Peru (+51)</option><option data-countrycode="PH" value="63">Philippines (+63)</option><option data-countrycode="PL" value="48">Poland (+48)</option><option data-countrycode="PT" value="351">Portugal (+351)</option><option data-countrycode="PR" value="1787">Puerto Rico (+1787)</option><option data-countrycode="QA" value="974">Qatar (+974)</option><option data-countrycode="RE" value="262">Reunion (+262)</option><option data-countrycode="RO" value="40">Romania (+40)</option><option data-countrycode="RU" value="7">Russia (+7)</option><option data-countrycode="RW" value="250">Rwanda (+250)</option><option data-countrycode="SM" value="378">San Marino (+378)</option><option data-countrycode="ST" value="239">Sao Tome &amp; Principe (+239)</option><option data-countrycode="SA" value="966">Saudi Arabia (+966)</option><option data-countrycode="SN" value="221">Senegal (+221)</option><option data-countrycode="CS" value="381">Serbia (+381)</option><option data-countrycode="SC" value="248">Seychelles (+248)</option><option data-countrycode="SL" value="232">Sierra Leone (+232)</option><option data-countrycode="SG" value="65">Singapore (+65)</option><option data-countrycode="SK" value="421">Slovak Republic (+421)</option><option data-countrycode="SI" value="386">Slovenia (+386)</option><option data-countrycode="SB" value="677">Solomon Islands (+677)</option><option data-countrycode="SO" value="252">Somalia (+252)</option><option data-countrycode="ZA" value="27">South Africa (+27)</option><option data-countrycode="ES" value="34">Spain (+34)</option><option data-countrycode="LK" value="94">Sri Lanka (+94)</option><option data-countrycode="SH" value="290">St. Helena (+290)</option><option data-countrycode="KN" value="1869">St. Kitts (+1869)</option><option data-countrycode="SC" value="1758">St. Lucia (+1758)</option><option data-countrycode="SD" value="249">Sudan (+249)</option><option data-countrycode="SR" value="597">Suriname (+597)</option><option data-countrycode="SZ" value="268">Swaziland (+268)</option><option data-countrycode="SE" value="46">Sweden (+46)</option><option data-countrycode="CH" value="41">Switzerland (+41)</option><option data-countrycode="SI" value="963">Syria (+963)</option><option data-countrycode="TW" value="886">Taiwan (+886)</option><option data-countrycode="TJ" value="7">Tajikstan (+7)</option><option data-countrycode="TH" value="66">Thailand (+66)</option><option data-countrycode="TG" value="228">Togo (+228)</option><option data-countrycode="TO" value="676">Tonga (+676)</option><option data-countrycode="TT" value="1868">Trinidad &amp; Tobago (+1868)</option><option data-countrycode="TN" value="216">Tunisia (+216)</option><option data-countrycode="TR" value="90">Turkey (+90)</option><option data-countrycode="TM" value="7">Turkmenistan (+7)</option><option data-countrycode="TM" value="993">Turkmenistan (+993)</option><option data-countrycode="TC" value="1649">Turks &amp; Caicos Islands (+1649)</option><option data-countrycode="TV" value="688">Tuvalu (+688)</option><option data-countrycode="UG" value="256">Uganda (+256)</option><option data-countrycode="UA" value="380">Ukraine (+380)</option><option data-countrycode="AE" value="971">United Arab Emirates (+971)</option><option data-countrycode="UY" value="598">Uruguay (+598)</option><option data-countrycode="UZ" value="7">Uzbekistan (+7)</option><option data-countrycode="VU" value="678">Vanuatu (+678)</option><option data-countrycode="VA" value="379">Vatican City (+379)</option><option data-countrycode="VE" value="58">Venezuela (+58)</option><option data-countrycode="VN" value="84">Vietnam (+84)</option><option data-countrycode="VG" value="84">Virgin Islands - British (+1284)</option><option data-countrycode="VI" value="84">Virgin Islands - US (+1340)</option><option data-countrycode="WF" value="681">Wallis &amp; Futuna (+681)</option><option data-countrycode="YE" value="969">Yemen (North)(+969)</option><option data-countrycode="YE" value="967">Yemen (South)(+967)</option><option data-countrycode="ZM" value="260">Zambia (+260)</option><option data-countrycode="ZW" value="263">Zimbabwe (+263)</option></optgroup></select></div><div class="col-sm-9" style="padding-left: 0px;"><input type="text" class="form-control" ng-model="formscope.phone_number" placeholder="Please enter your alternate phone number" phone-input="" name="phone_number" chars="numbers"></div></div></div></div><div class="row"><div class="form-group col-lg-6 col-md-12 col-sm-12"><label>Street 1</label> <input type="text" class="form-control" ng-model="formscope.address" placeholder="Please enter Street 1" name="address" chars="text"></div><div class="form-group col-lg-6 col-md-12 col-sm-12"><label>Street 2</label> <input type="text" class="form-control" ng-model="formscope.address1" placeholder="Please enter Street 2" name="address1" chars="text"></div></div><div class="row"><div class="form-group col-lg-6 col-md-12 col-sm-12"><label>Country</label><select chosen="" ng-model="formscope.country_id" name="country_id" ng-options="country.id as country.country_name for country in countries" class="form-control"></select></div><div class="form-group col-lg-6 col-md-12 col-sm-12"><label>State</label> <input type="text" class="form-control" ng-model="formscope.state" placeholder="Please enter state name" name="state" chars="text"></div></div><div class="row"><div class="form-group col-lg-6 col-md-12 col-sm-12"><label>City</label> <input type="text" class="form-control" ng-model="formscope.city" placeholder="Please enter city name" name="city" chars="text"></div><div class="form-group col-lg-6 col-md-12 col-sm-12"><label>Zip Code</label> <input type="text" placeholder="Please enter zip code" class="form-control" name="zip_code" ng-model="formscope.zip_code" chars="numbers"></div></div><div class="row"><div class="form-group col-lg-6 col-md-12 col-sm-12"><label for="textarea01">Gender</label><select chosen="" ng-model="formscope.gender" name="gender" ng-options="company.value as company.label for company in genderOption" class="form-control"></select></div><div class="form-group col-lg-6 col-md-12 col-sm-12"><label>Status<code>*</code></label><select chosen="" ng-model="formscope.status" name="status" ng-options="company.value as company.text for company in statusOption" class="form-control" required-error-message="{{errorMessage.status.required}}" validator="required" valid-method="blur" validation-group="status_error_message"></select><span id="status_error_message"></span></div></div><div class="row"><div class="form-group col-sm-12"><label>Note</label> <textarea placeholder="Please enter a text message" class="form-control" name="visitor_notes" ng-model="formscope.visitor_notes" chars="text"></textarea></div></div><div class="row"><div class="form-group col-md-12"><button type="submit" ng-disabled="isSubmitted" class="btn btn-success" align="center">{{btnName}}</button> <a type="submit" ui-sref="contactmanagements.list" class="btn btn-info" align="center">Cancel</a></div></div></form></div></div></div></div></div>'),
e.put("app/pages/contactmanagements/view.html",'<div class="widgets"><div class="row"><div class="col-md-12"><div ba-panel="" ba-panel-title="{{ activePageTitle }} Listing"><div class="form-group select-page-size-wrap"><button class="btn btn-primary" ng-if="havePermission(\'contactmanagements\',\'create\');" ui-sref="contactmanagements.add">Add</button></div><div class="horizontal-scroll"><table datatable="" dt-instance="dtInstance" dt-options="dtOptions" dt-columns="dtColumns" class="row-border hover"></table></div></div></div></div></div>'),e.put("app/pages/contactmanagements/viewdetails.html",'<div class="widgets"><div class="viewTourMain"><div class="message"><div class="row"><div class="col-md-12"><div ba-panel="" ba-panel-class=""><button ui-sref="contactmanagements.list" type="button" class="back-button btn btn-default btn-with-icon pull-right"><i class="ion-chevron-left"></i>Back</button><div class="person-info"></div><div class="col-md-12"><div class="row"><div class="form-group col-lg-6 col-md-12 col-sm-12"><h3 class="with-line">General Information</h3><div class="form-group row clearfix"><label class="col-sm-3 col-xs-6">Name:</label><div class="col-sm-9 col-xs-6">{{formscope.name || \'-\'}}</div></div><div class="form-group row clearfix"><label class="col-sm-3 col-xs-6">Gender:</label><div class="col-sm-9 col-xs-6">{{ showStatus(formscope)}}</div></div><div class="form-group row clearfix"><label class="col-sm-3 col-xs-6">Visitor:</label><div class="col-sm-9 col-xs-6">{{formscope.visitor.name || \'-\'}}</div></div><div class="form-group row clearfix"><label class="col-sm-3 col-xs-6">Organization:</label><div class="col-sm-9 col-xs-6">{{ formscope.organization || \'-\'}}</div></div><div class="form-group row clearfix"><label class="col-sm-3 col-xs-6">Organization Type:</label><div class="col-sm-9 col-xs-6">{{ organizationType(formscope)}}</div></div></div><div class="form-group col-lg-6 col-md-12 col-sm-12"><h3 class="with-line">Contact Information</h3><div class="form-group row clearfix"><label class="col-sm-3 col-xs-6">Email:</label><div class="col-sm-9 col-xs-6">{{formscope.email || \'-\'}}</div></div><div class="form-group row clearfix"><label class="col-sm-3 col-xs-6">Mobile:</label><div class="col-sm-9 col-xs-6">{{formscope.mobile || \'-\'}}</div></div><div class="form-group row clearfix"><label class="col-sm-3 col-xs-6">Phone Number:</label><div class="col-sm-9 col-xs-6">{{formscope.phone_number || \'-\'}}</div></div><div class="form-group row clearfix"><label class="col-sm-3 col-xs-6">Note:</label><div class="col-sm-9 col-xs-6">{{formscope.visitor_notes || \'-\'}}</div></div></div></div><div class="row"><div class="form-group col-lg-6 col-md-12 col-sm-12"><h3 class="with-line">Address Information</h3><div class="form-group row clearfix"><label class="col-sm-3 col-xs-6">Street 1:</label><div class="col-sm-9 col-xs-6">{{formscope.address || \'-\'}}</div></div><div class="form-group row clearfix"><label class="col-sm-3 col-xs-6">Street 2:</label><div class="col-sm-9 col-xs-6">{{formscope.address1 || \'-\'}}</div></div><div class="form-group row clearfix"><label class="col-sm-3 col-xs-6">City:</label><div class="col-sm-9 col-xs-6">{{formscope.city || \'-\'}}</div></div><div class="form-group row clearfix"><label class="col-sm-3 col-xs-6">State:</label><div class="col-sm-9 col-xs-6">{{formscope.state || \'-\'}}</div></div><div class="form-group row clearfix"><label class="col-sm-3 col-xs-6">Country:</label><div class="col-sm-9 col-xs-6">{{formscope.country.country_name || \'-\'}}</div></div><div class="form-group row clearfix"><label class="col-sm-3 col-xs-6">Zip Code:</label><div class="col-sm-9 col-xs-6">{{formscope.zip_code || \'-\'}}</div></div></div><div class="form-group col-lg-6 col-md-12 col-sm-12"><h3 class="with-line">Professional Information</h3><div class="form-group row clearfix"><label class="col-sm-3 col-xs-6">Join Date:</label><div class="col-sm-9 col-xs-6">{{formscope.created_at | amDateFormat:\'(dddd) DD, MMMM YYYY\'}}</div></div><div class="form-group row clearfix"><label class="col-sm-3 col-xs-6">Status:</label><div class="col-sm-9 col-xs-6">{{ (formscope.status == 1) ? \'Active\' : \'Inactive\' }}</div></div></div></div></div></div></div></div></div></div></div>'),e.put("app/pages/dashboard/dashboard.html",'<div class="row"><div class="col-xs-12 col-sm-12" ba-panel="" ba-panel-class="popular-app medium-panel"><div class="popular-app-cost row"><div class="col-xs-9">Total Tours</div><div class="col-xs-3 text-right popular-app-info-font-color"><a type="submit" ui-sref="tours.list" title="View Tour list" align="center">{{totalTour}}</a></div></div><div class="popular-app-info row"><div class="form-group col-xs-6 col-sm-4 col-md-3 col-lg-2 text-center" ng-repeat="(key, value) in tourFilterData"><div class="info-label">{{ key.replace("_", " ").replace("_", " "); }}</div><div ng-if="$index != 5" class="popular-app-info-font-color"><a href="#/tours/list?id={{$index+1}}">{{ value }}</a></div><div ng-if="$index == 5" class="popular-app-info-font-color">{{ value }}</div></div></div></div></div><div class="row"><div class="col-md-12"><div ba-panel="" ba-panel-title="Upcoming tours"><div class="form-group select-page-size-wrap"><button class="btn btn-primary" ng-if="havePermission(\'tours\',\'create\');" ui-sref="tours.add">Add Tour</button></div><div class="horizontal-scroll"><table datatable="" dt-instance="$parent.dtInstance" dt-options="dtOptions" dt-columns="dtColumns" class="row-border hover"></table></div></div></div></div><div class="row"><div class="col-xs-12" ba-panel="" ba-panel-title="Tour Schedule" ba-panel-class="xmedium-panel feed-comply-panel with-scroll calendar-panel"><dashboard-calendar></dashboard-calendar></div></div><div class="row pie-charts" ng-if="charts.length"><div class="pie-chart-item-container" ng-repeat="chart in charts"><div ba-panel=""><div class="pie-chart-item"><div class="ion-ios-people chart" data-pack="ios" data-tags="stalker, person, users, head, human" style="display: inline-block;font-size: 75px;"></div><div class="description"><div>{{ chart.role_name }}</div><div class="description-stats">{{ chart.count }}</div></div></div></div></div></div>'),e.put("app/pages/defaulttasks/add.html",'<div class="widgets"><div class="row"><div class="col-md-6"><div ba-panel="" ba-panel-title="Add Users" ba-panel-class="with-scroll"><div class="ng-cloak" ng-controller="UsersCtrl as selectpickerVm"><form class="form-validation" ng-submit="add_data(add_form)" role="form" name="add_form"><div class="form-group col-md-12"><div class="form-group col-md-6"><label for="input01">First Name<code>*</code></label> <input type="text" class="form-control" ng-model="formscope.first_name" placeholder="Please enter first name" name="first_name" required-error-message="{{errorMessage.first_name.required}}" minlength-error-message="{{errorMessage.first_name.minlength}}" maxlength-error-message="{{errorMessage.first_name.maxlength}}" validator="required, minlength=2, maxlength=20" valid-method="blur" chars="letters"></div><div class="form-group col-md-6"><label for="input01">Last Name<code>*</code></label> <input type="text" class="form-control" ng-model="formscope.last_name" placeholder="Please enter Last name" name="last_name" required-error-message="{{errorMessage.last_name.required}}" minlength-error-message="{{errorMessage.last_name.minlength}}" maxlength-error-message="{{errorMessage.last_name.maxlength}}" validator="required, minlength=2, maxlength=20" valid-method="blur" chars="letters"></div></div><div class="form-group col-md-12"><div class="form-group col-md-12"><label for="input01">Email<code>*</code></label> <input type="email" class="form-control" ng-model="formscope.email" placeholder="Please enter email" name="email" required-error-message="{{errorMessage.email.required}}" email-error-message="{{errorMessage.email.invalidEmail}}" minlength-error-message="{{errorMessage.email.minlength}}" maxlength-error-message="{{errorMessage.email.maxlength}}" validator="required, email, minlength=2, maxlength=100" valid-method="blur"></div></div><div class="form-group col-md-12"><div class="form-group col-md-6"><label for="textarea01">Organization Type<code>*</code></label><select ng-model="formscope.organization_id" name="organization_id" ng-options="company.id as company.name for company in OrganizationOption" class="form-control" required-error-message="{{errorMessage.organization_id.required}}" validator="required" valid-method="blur"></select></div><div class="form-group col-md-6"><label for="textarea01">Visitor Type<code>*</code></label><select ng-model="formscope.visitor_type" name="visitor_type" ng-options="company.id as company.name for company in VisitorOption" class="form-control" required-error-message="{{errorMessage.visitor_type.required}}" validator="required" valid-method="blur"></select></div></div><div class="form-group col-md-12"><div class="form-group col-md-6"><label for="input04">Phone Number<code>*</code></label> <input type="text" class="form-control" ng-model="formscope.phone_number" placeholder="Please enter your phone number" phone-input="" name="phone_number" required-error-message="{{errorMessage.phone_number.required}}" maxlength-error-message="{{errorMessage.phone_number.maxlength}}" minlength-error-message="{{errorMessage.phone_number.minlength}}" validator="required, maxlength=15, minlength=10" valid-method="blur" chars="numbers"></div><div class="form-group col-md-6"><label for="input04">Mobile<code>*</code></label> <input type="text" class="form-control" ng-model="formscope.mobile" placeholder="Please enter your mobile number" phone-input="" name="mobile" required-error-message="{{errorMessage.mobile.required}}" maxlength-error-message="{{errorMessage.mobile.maxlength}}" minlength-error-message="{{errorMessage.mobile.minlength}}" validator="required, maxlength=15, minlength=10" valid-method="blur" chars="numbers"></div></div><div class="form-group col-md-12"><div class="form-group col-md-12"><label for="textarea01">Address<code>*</code></label> <textarea placeholder="Please enter address" class="form-control" ng-model="formscope.address" name="address" required-error-message="{{errorMessage.address.required}}" validator="required" valid-method="blur"></textarea></div></div><div class="form-group col-md-12"><div class="form-group col-md-6"><label for="textarea01">Gender<code>*</code></label><select ng-model="formscope.gender" name="gender" ng-options="company.value as company.label for company in genderOption" class="form-control" required-error-message="{{errorMessage.gender.required}}" validator="required" valid-method="blur"></select></div><div class="form-group col-md-6"><label>Status<code>*</code></label><select ng-model="formscope.status" name="status" ng-options="company.value as company.text for company in statusOption" class="form-control" required-error-message="{{errorMessage.status.required}}" validator="required" valid-method="blur"></select></div></div><div class="form-group col-md-12"><button type="submit" ng-disabled="isSubmitted" class="btn btn-success" align="center">{{btnName}}</button> <a type="submit" ui-sref="defaulttasks.list" class="btn btn-info" align="center">Cancel</a></div></form></div></div></div></div></div>'),e.put("app/pages/defaulttasks/view.html",'<div class="widgets"><div class="row"><div class="col-md-12"><div ba-panel="" ba-panel-title="{{ activePageTitle }} Listing"><div class="form-group select-page-size-wrap"><button class="btn btn-primary" ng-if="havePermission(\'defaulttasks\',\'create\');" ui-sref="defaulttasks.add">Add</button></div><div class="horizontal-scroll"><table datatable="" dt-instance="dtInstance" dt-options="dtOptions" dt-columns="dtColumns" class="row-border hover"></table></div></div></div></div></div>'),e.put("app/pages/forgotpassword/reset.html",'<h1>Reset your password</h1><form class="form-horizontal" ng-submit="resetSubmit(add_form)" role="form" name="add_form"><div class="form-group"><label for="inputEmail3" class="col-sm-4 control-label">Email</label><div class="col-sm-8"><input placeholder="Please enter email" type="text" class="form-control" name="email" id="inputEmail3" required-error-message="{{errorMessage.email.required}}" minlength-error-message="{{errorMessage.email.minlength}}" maxlength-error-message="{{errorMessage.email.maxlength}}" email-error-message="{{errorMessage.email.invalidEmail}}" validator="required, minlength=2, maxlength=100, email" valid-method="blur" ng-model="formscope.email"></div></div><div class="form-group"><label for="inputEmail3" class="col-sm-4 control-label">Password</label><div class="col-sm-8"><input type="password" class="form-control" ng-model="formscope.password" placeholder="Please enter password" disallow-spaces="" name="password" required-error-message="{{errorMessage.password.required}}" maxlength-error-message="{{errorMessage.password.maxlength}}" minlength-error-message="{{errorMessage.password.minlength}}" validator="required, maxlength=20, minlength=6" valid-method="blur"></div></div><div class="form-group"><label for="inputEmail3" class="col-sm-4 control-label">Confirm Password</label><div class="col-sm-8"><input type="password" class="form-control" ng-model="formscope.confirm_password" placeholder="Please enter confirm password" required-error-message="{{errorMessage.confirm_password.required}}" validator="required, confirmPassword" valid-method="blur" name="confirm_password"></div></div><div class="form-group"><div class="col-sm-offset-2 col-sm-10"><button type="submit" class="btn btn-default btn-auth" ng-disabled="isSubmitted"><i class="fa fa-spinner fa-spin" aria-hidden="true" ng-show="loginProgress"></i> Change</button></div></div></form>'),e.put("app/pages/forgotpassword/view.html",'<h1>Forgot password</h1><span class="auth-link">Please enter your email so we can send you a link to reset your password</span><form class="form-horizontal" ng-submit="forgotSubmit(add_form)" role="form" name="add_form"><div class="form-group"><label for="inputEmail3" class="col-sm-2 control-label">Email</label><div class="col-sm-10"><input placeholder="Please enter email" type="text" class="form-control" name="email" id="inputEmail3" required-error-message="{{errorMessage.email.required}}" focus-me="" minlength-error-message="{{errorMessage.email.minlength}}" maxlength-error-message="{{errorMessage.email.maxlength}}" email-error-message="{{errorMessage.email.invalidEmail}}" validator="required, minlength=2, maxlength=100, email" valid-method="blur" ng-model="formscope.email"></div></div><div class="form-group"><div class="col-sm-offset-2 col-sm-10"><button type="submit" class="btn btn-default btn-auth" ng-disabled="isSubmitted"><i class="fa fa-spinner fa-spin" aria-hidden="true" ng-show="loginProgress"></i> Submit</button> <a ui-sref="login" class="forgot-pass">Login?</a></div></div></form>'),e.put("app/pages/login/login.html",'<h1><img src="{{logoImage}}"></h1><form class="form-horizontal" method="post" name="loginForm" ng-submit="loginSubmit(loginForm.$valid)" novalidate=""><div class="form-group"><label for="inputEmail3" class="col-sm-2 control-label">Email</label><div class="col-sm-10"><input type="email" focus-me="" class="form-control" id="inputEmail3" placeholder="Email" ng-model="admin.email"> <span style="color:red" ng-show="loginForm.email.$error.required">Please enter email. <span ng-show="loginForm.email.$error.email">Please enter valid email address.</span></span></div></div><div class="form-group"><label for="inputPassword3" class="col-sm-2 control-label">Password</label><div class="col-sm-10"><input type="password" class="form-control" id="inputPassword3" placeholder="Password" ng-model="admin.password"> <span style="color:red" ng-show="loginForm.password.$dirty && loginForm.password.$invalid"><span ng-show="loginForm.password.$error.required">Please enter password.</span></span></div></div><div class="form-group"><div class="col-sm-offset-2 col-sm-10"><button type="submit" class="btn btn-default btn-auth" ng-disabled="loginProgress"><i class="fa fa-spinner fa-spin" aria-hidden="true" ng-show="loginProgress"></i> Sign in</button><a ui-sref="forgotpassword" class="forgot-pass">Forgot password?</a></div></div></form>'),e.put("app/pages/notifications/view.html",'<div class="widgets" ng-hide="state.includes(\'roles.edit\')"><div class="row"><div class="col-md-12"><div ba-panel="" ba-panel-title="{{ activePageTitle }} Listing"><div class="form-group select-page-size-wrap"></div><div class="horizontal-scroll"><table datatable="" dt-instance="dtInstance" dt-options="dtOptions" dt-columns="dtColumns" class="row-border hover"></table></div><div></div></div></div></div></div><ui-view></ui-view>'),e.put("app/pages/tours/acknowledge.html",'<div class="message-container" style="border-left: none; width: 100%; background-color: #fff !important;"><div class="message more-text-widget" ng-if="formscope.link_expired == 1 && isSubmitted == !1"><p style="color: #e85656; font-size: 20px;">{{formscope.errorMessage}}</p></div><div class="message" ng-if="formscope.link_expired == 2 && isSubmitted == !1"><div class="row" style="padding-right: 1%;"><div class="message-details more-text-widget" ng-if="formscope.status == 1"><p style="color: #209e91; font-size: 18px;">You have acknowledge the tour Successfully!</p></div><div class="message-details more-text-widget" ng-if="formscope.status == 2"><p style="color: #e85656; font-size: 18px;">You have rejected the tour!!!</p></div></div><div class="message-details"><span class="subject">Tour Contact Person Information</span></div><div class="line"></div><div class="person-info row"><div class="col-lg-4 col-md-12 no-padding"><div class="name"><h2 class="name-h">{{contactManagerDetails.visitor.name || \'-\'}}</h2><div><span class="mail-tag tag label label-success">{{showVisitorOption(contactManagerDetails.visitor) || \'-\'}}</span> <span class="mail-tag tag label label-info">{{showGenderOption(contactManagerDetails.visitor) || \'-\'}}</span></div></div></div><div class="col-lg-4 col-md-6 col-xs-12 no-padding"><div class="contact-info phone-email"><div><i class="ion-iphone"></i> <span class="phone">{{contactManagerDetails.visitor.mobile | tel}}</span></div><div ng-if="contactManagerDetails.visitor.phone_number"><i class="ion-iphone"></i> <span class="phone">{{contactManagerDetails.visitor.phone_number | tel}}</span></div><div><i class="ion-email"></i> <span class="email">{{contactManagerDetails.visitor.email || \'-\'}}</span></div></div></div><div class="col-lg-4 col-md-6 col-xs-12 no-padding"><div class="contact-info position-address"><div><span class="position">{{showOrganizationTypeOption(contactManagerDetails.visitor) || \'-\'}}</span></div><div><i class="ion-location"></i> <span class="address">{{contactManagerDetails.fullAddress || \'-\'}}</span></div></div></div></div><div class="message-details"><span class="subject">Tour Information</span></div><div class="line"></div><div class="message-body"><div class="col-md-12"><div class="col-lg-6 col-md-12"><div class="panel panel-default"><div class="panel-heading">General Information</div><div class="panel-body"><div class="form-group col-md-12"><label class="col-sm-3 control-label">Name:</label><div class="col-sm-9">{{formscope.name || \'-\'}}</div></div><div class="form-group col-md-12"><label class="col-sm-3 control-label">Organization:</label><div class="col-sm-9">{{formscope.organization || \'-\'}}</div></div><div class="form-group col-md-12"><label class="col-sm-3 control-label">Tour Date:</label><div class="col-sm-9">{{formscope.start_date | amDateFormat:\'(dddd) DD, MMMM YYYY\'}}</div></div><div class="form-group col-md-12"><label class="col-sm-3 control-label">Transport Type:</label><div class="col-sm-9">{{formscope.tour_transport.name || \'-\'}}</div></div><div class="form-group col-md-12"><label class="col-sm-3 control-label">Person:</label><div class="col-sm-9"><p><span>Children:</span> {{formscope.children}}</p><p><span>Adults:</span> {{formscope.adults}}</p><p><span>Senior:</span> {{formscope.senior}}</p></div></div><div class="form-group col-md-12"><label class="col-sm-3 control-label">Special Request:</label><div class="col-sm-9">{{formscope.special_request || \'-\'}}</div></div></div></div></div><div class="col-lg-6 col-md-12"><div class="panel panel-default"><div class="panel-heading">Tour Task</div><div class="panel-body"><div class="form-group col-md-12"><label class="col-sm-3 control-label">Tour Type:</label><div class="col-sm-9">{{formscope.tour_tapes.name}}</div></div><div class="form-group col-md-12"><label class="col-sm-3 control-label">Task:</label><div class="col-sm-9 pull-right" ng-repeat="task in formscope.tasks"><p class="m-b-xs">{{task.task}}</p><div class="line"></div></div></div></div></div></div></div></div><div class="message-details"><span class="subject">Visitors Information</span></div><div class="line"></div><div class="message-body"><div class="col-md-12"><div ba-panel="" ba-panel-title="Visitors" ba-panel-class="with-scroll" ng-if="visitors.length"><div class="horizontal-scroll"><table datatable="ng" dt-instance="visitorInstance" dt-options="visitorOptions" dt-column-defs="visitorColumnDefs" class="row-border hover"><thead><tr class="sortable"><th>Name</th><th>Email</th><th>Mobile</th><th>Organization type</th><th>Type</th><th>Organization</th></tr></thead><tbody><tr ng-repeat="visitor in visitors"><td>{{visitor.name}}</td><td><a class="email-link" ng-href="mailto:{{visitor.email}}">{{visitor.email}}</a></td><td>{{visitor.mobile}}</td><td>{{showOrganizationTypeOption(visitor)}}</td><td>{{showVisitorOption(visitor)}}</td><td>{{visitor.organization}}</td></tr></tbody></table></div></div></div></div><div ng-if="formscope.meals" class="message-details"><span class="subject">Meals Information</span></div><div ng-if="formscope.meals" class="line"></div><div class="message-body"><div class="col-md-12"><div ng-if="formscope.meals"><div class="col-md-4" ng-repeat="meal in mealsType"><div class="panel panel-default bootstrap-panel xsmall-panel"><div class="panel-heading">{{showMealsTypeOption(meal)}}</div><div class="panel-body"><p><label>Specific item:</label> {{meal.specific_item}}</p><p><label>Catering manager:</label> {{showCateringManager(meal)}}</p><p><label>People:</label> {{meal.people}}</p><p><label>Meal Service:</label> {{showMealServiceTypeOption(meal)}}</p><p><label>Meal Location:</label> {{showMealServiceLocationsOption(meal)}}</p></div></div></div></div></div></div><div class="message-details" ng-if="formscope.status == 0"><span class="subject">Action</span></div><div class="line" ng-if="formscope.status == 0"></div><div class="message-body" ng-if="formscope.status == 0"><div class="col-md-12"><div class="form-group col-md-6"><label>Comment</label> <textarea placeholder="Please enter comment" class="form-control" ng-model="formscope.comment" name="request" chars="text"></textarea></div><div class="form-group col-md-12"><a type="submit" ng-disabled="isSubmitted" ng-click="approveRejectTour(1)" class="btn btn-success" align="center">Acknowledge</a> <a type="submit" ng-disabled="isSubmitted" ng-click="approveRejectTour(3)" class="btn btn-danger" align="center">Reject</a></div></div></div></div><div class="thank-you-container" ng-if="isSubmitted == 1"><div class="thank-you-text">Thank You</div></div></div>'),e.put("app/pages/tours/add.html",'<div class="widgets"><div class="row"><div class="col-md-12"><div ba-panel="" ba-panel-title="{{pageName}}" ba-panel-class="with-scroll"><div class="ng-cloak form-group col-md-12"><form class="form-validation" editable-form="" role="form" name="add_form"><div class="row"><h3 class="with-line">Tour Information</h3><div class="form-group col-lg-4 col-md-12 col-sm-12"><label>Tour Name<code>*</code></label> <input type="text" focus-me="" class="form-control" ng-model="formscope.name" placeholder="Please enter name" name="tour_name" required-error-message="{{errorMessage.name.required}}" minlength-error-message="{{errorMessage.name.minlength}}" maxlength-error-message="{{errorMessage.name.maxlength}}" validator="required, minlength=2, maxlength=50" valid-method="blur" chars="company-name"></div><div class="form-group col-lg-4 col-md-12 col-sm-12"><label for="input01">Tour Date<code>*</code></label><div class="" moment-picker="formscope.start_date" max-view="hour" start-view="month" min-date="minDateMoment" format="YYYY-MM-DD HH:mm"><input class="form-control" readonly="" name="start_date" required-error-message="{{errorMessage.start_date.required}}" validator="required" valid-method="blur" placeholder="Please select the tour date" ng-model="formscope.start_date" ng-model-options="{ updateOn: \'blur\' }"></div></div><div class="form-group col-lg-4 col-md-12 col-sm-12"><label>Transport Type</label><select chosen="" ng-model="formscope.transport_id" name="transport_id" ng-options="type.id as type.name for type in TransportOption" class="form-control" valid-method="watch, blur" validation-group="transport_id_error_message"></select></div></div><div class="row"><div class="form-group col-lg-4 col-md-12 col-sm-12"><label for="input01">No. of Adults<code ng-if="!formscope.senior || formscope.senior < 1">*</code></label> <input type="text" class="form-control" ng-model="formscope.adults" placeholder="Please enter adults count" name="adults" required-error-message="{{errorMessage.adults.required}}" maxlength-error-message="{{errorMessage.adults.maxlength}}" validator="maxlength=5" valid-method="blur" chars="numbers"></div><div class="form-group col-lg-4 col-md-12 col-sm-12"><label for="input01">No. of Senior(Above 65+)<code ng-if="!formscope.adults || formscope.adults < 1">*</code></label> <input type="text" class="form-control" ng-model="formscope.senior" placeholder="Please enter senior count" name="senior" required-error-message="{{errorMessage.senior.required}}" maxlength-error-message="{{errorMessage.senior.maxlength}}" validator="maxlength=5" valid-method="blur" chars="numbers"></div><div class="form-group col-lg-4 col-md-12 col-sm-12"><label for="input01">No. of Children (Below 18)</label> <input type="text" class="form-control" ng-model="formscope.children" placeholder="Please enter children count" name="children" chars="numbers"></div></div><div class="row"><div class="form-group col-lg-4 col-md-12 col-sm-12"><label>Organization<code>*</code></label><angucomplete-alt id="mainOrganization" placeholder="Please enter organization name" pause="100" initial-value="formscope.organization" selected-object="residentSelected" local-data="organizationOption" search-fields="organization" title-field="organization" minlength="1" input-class="form-control" match-class="highlight" field-required="true" auto-match="true" override-suggestions="true" ng-model="formscope.organization" name="organization" required-error-message="{{errorMessage.organization.required}}" minlength-error-message="{{errorMessage.organization.minlength}}" maxlength-error-message="{{errorMessage.organization.maxlength}}" validator="required, minlength=2, maxlength=50" valid-method="watch, blur" chars="text"></angucomplete-alt></div><div class="form-group col-lg-4 col-md-12 col-sm-12"><label>Special Request</label> <textarea placeholder="Please enter special request" class="form-control" ng-model="formscope.special_request" name="special_request"></textarea></div></div><div class="row" ng-if="state.current.name == \'tours.edit\'" ng-show="edittourtype"><h3 class="with-line">Tour type</h3><div class="form-group col-lg-4 col-md-12 col-sm-12"><label>Tour Type<code>*</code></label><select chosen="" ng-model="formscope.tourtype_id" name="tourtype_id" ng-options="type.id as type.name for type in TourTypeOption" class="form-control" required-error-message="{{errorMessage.tourtype_id.required}}" validator="required" valid-method="watch, blur" validation-group="tourtype_id_error_message"></select><span id="tourtype_id_error_message"></span></div></div><div class="row" ng-if="state.current.name == \'tours.add\'"><h3 class="with-line">Tour type and task Information <a type="submit" ng-if="addTaskBtn" ng-click="showModal()" class="pull-right btn btn-success" align="Add Task">Add Task</a></h3><div class="form-group col-lg-4 col-md-12 col-sm-12"><label>Tour Type<code>*</code></label><select chosen="" ng-model="formscope.tourtype_id" name="tourtype_id" ng-options="type.id as type.name for type in TourTypeOption" class="form-control" required-error-message="{{errorMessage.tourtype_id.required}}" validator="required" valid-method="watch, blur" validation-group="tourtype_id_error_message"></select><span id="tourtype_id_error_message"></span></div><div class="form-group col-md-12 col-sm-12"><label class="col-md-12 col-sm-12" ng-if="addTaskBtn">Task List</label><div class="social-profiles row clearfix"><div class="col-lg-4 col-md-12 col-sm-12" ng-repeat="item in activeTaskList"><a class="sn-link connected" href=""><span><div class="task-tag">{{ item.task }}</div></span> <em class="ion-ios-close-empty sn-link-close" ng-mousedown="unconnect($index)"></em></a></div></div></div></div><div class="row"><h3 class="with-line"><a type="submit" ng-if="havePermission(\'visitor_in_tour\',\'create\')" ng-click="addVisitor()" class="pull-right btn btn-success" align="Add Visitor">Add</a> Visitors Information</h3><div ba-panel="" ba-panel-title="Visitors" ba-panel-class="with-scroll" ng-if="visitors.length"><div class="horizontal-scroll"><table datatable="ng" dt-instance="visitorInstance" dt-options="visitorOptions" dt-column-defs="visitorColumnDefs" class="row-border hover"><thead><tr class="sortable"><th>No</th><th>Name</th><th>Email</th><th>Mobile</th><th>Organization type</th><th>Type</th><th>Contact manager</th><th style="width: 13%;">Action</th></tr></thead><tbody><tr ng-repeat="visitor in visitors"><td class="table-id">{{$index + 1}}</td><td>{{visitor.name}}</td><td><a class="email-link" ng-href="mailto:{{visitor.email}}">{{visitor.email}}</a></td><td>{{visitor.mobile}}</td><td>{{showOrganizationTypeOption(visitor)}}</td><td>{{showVisitorOption(visitor)}}</td><td><input ng-model="formscope.contact_manager" name="contact_manager" id="inlineRadio1" value="{{visitor.email}}" type="radio"></td><td><a ng-if="havePermission(\'visitor_in_tour\',\'update\')" ng-click="editVisitor(visitor, $index)" class="btn btn-info btn-sm" align="center">Edit</a> <a ng-if="havePermission(\'visitor_in_tour\',\'delete\')" ng-confirm-click="Are you sure to delete this visitor?" confirmed-click="removeVisitor(visitor)" class="btn btn-danger btn-sm" align="center" ng-hide="visitor.email == formscope.contact_manager">Delete</a></td></tr></tbody></table></div></div></div><div class="row"><h3 class="with-line"><a type="submit" ng-click="addReferences()" class="pull-right btn btn-success" align="Add Reference">Add</a> References Information</h3><div ba-panel="" ba-panel-title="References" ba-panel-class="with-scroll" ng-if="references.length"><div class="horizontal-scroll"><table datatable="ng" dt-instance="referenceInstance" dt-options="referenceOptions" dt-column-defs="referenceColumnDefs" class="row-border hover"><thead><tr class="sortable"><th>No</th><th>Name</th><th>Email</th><th>Mobile</th><th>Comments</th><th style="width: 13%;">Action</th></tr></thead><tbody><tr ng-repeat="reference in references"><td class="table-id">{{$index + 1}}</td><td>{{reference.name}}</td><td><a class="email-link" ng-href="mailto:{{reference.email}}">{{reference.email}}</a></td><td>{{reference.mobile}}</td><td>{{reference.comment}}</td><td><a ng-click="editReference(reference, $index)" class="btn btn-info btn-sm" align="center">Edit</a> <a ng-confirm-click="Are you sure to delete this reference?" confirmed-click="removeReference(reference)" class="btn btn-danger btn-sm" align="center">Delete</a></td></tr></tbody></table></div></div></div><div class="row"><h3 class="with-line"><a type="submit" ng-click="addMeetings()" class="pull-right btn btn-success" align="Add Meeting">Add</a> Meetings Information</h3><div ba-panel="" ba-panel-title="Meetings" ba-panel-class="with-scroll" ng-if="meetings.length"><div class="horizontal-scroll"><table datatable="ng" dt-instance="meetingInstance" dt-options="meetingOptions" dt-column-defs="meetingColumnDefs" class="row-border hover"><thead><tr class="sortable"><th>No</th><th>Name</th><th>Email</th><th>Mobile</th><th>Meeting</th><th>Comments</th><th style="width: 13%;">Action</th></tr></thead><tbody><tr ng-repeat="meeting in meetings"><td class="table-id">{{$index + 1}}</td><td>{{meeting.name}}</td><td><a class="email-link" ng-href="mailto:{{meeting.email}}">{{meeting.email}}</a></td><td>{{meeting.mobile}}</td><td>{{meeting.meetingtime_hour + " : " + meeting.meetingtime_min + " " + meeting.meetingtime_format}}</td><td>{{meeting.comment}}</td><td><a ng-click="editMeetings(meeting, $index)" class="btn btn-info btn-sm" align="center">Edit</a> <a ng-confirm-click="Are you sure to delete this meeting?" confirmed-click="removeMeetings(meeting)" class="btn btn-danger btn-sm" align="center">Delete</a></td></tr></tbody></table></div></div></div><div class="row"><h3 class="with-line">Meals Service <a type="submit" ng-click="addMeals()" class="pull-right btn btn-success" align="Add Meal">Add</a></h3><div ng-if="formscope.meals"><div class="col-lg-4 col-md-12 col-sm-12" ng-repeat="meal in mealsType"><div class="panel panel-default bootstrap-panel xsmall-panel"><div class="panel-heading">{{meal.meal_txt}} <a href="" class="pull-right ng-scope" ng-confirm-click="Are you sure to delete this meal?" confirmed--click="removeMeal($index)"><i class="ion-close-round"></i></a> <a href="" class="pull-right" ng-click="editMeals(meal, $index)" style="padding-right: 10px;"><i class="ion-edit"></i></a></div><div class="panel-body"><p><label>Specific item:</label> {{meal.specific_item}}</p><p><span><label>Catering manager:</label> {{meal.catering_manager_txt}}</span></p><p><span><label>People:</label> {{meal.people}}</span></p><p><label>Meal Service:</label> {{meal.mealservice_txt}}</p><p><label>Meal Location:</label> {{meal.meallocation_txt}}</p></div></div></div></div></div><div class="row"><h3 class="with-line">General Information</h3><div class="form-group col-lg-4 col-md-12 col-sm-12"><label>Tour Manager<code>*</code></label><select chosen="" ng-model="formscope.manager" name="manager" ng-options="type.id as type.name disable when type.isDisabled for type in managersOption" class="form-control" required-error-message="{{errorMessage.manager.required}}" validator="required" valid-method="watch, blur" validation-group="manager_error_message"></select><span id="manager_error_message"></span></div><div class="form-group col-lg-4 col-md-12 col-sm-12" ng-if="state.current.name == \'tours.edit\'"><label>Status<code>*</code></label><select chosen="" ng-change="changeStatus(formscope.status);" ng-model="formscope.status" name="status" ng-options="type.value as type.label disable when type.isDisabled for type in tourStatusOption" class="form-control"></select></div><div class="form-group col-lg-4 col-md-12 col-sm-12" ng-if="state.current.name == \'tours.add\'"><label>Preferred Language<code>*</code></label><select chosen="" ng-change="changePreferredLanguage(formscope.language);" ng-model="formscope.language" name="language" ng-options="type.value as type.label disable when type.isDisabled for type in tourLanguageOption" class="form-control"></select></div><div class="form-group col-lg-4 col-md-12 col-sm-12" ng-if="state.current.name == \'tours.edit\'"><label>Preferred Language<code>*</code></label><select chosen="" ng-change="changePreferredLanguage(formscope.language);" ng-model="formscope.language" name="language" ng-options="type.value as type.label disable when type.isDisabled for type in tourLanguageOption" class="form-control"></select></div><div class="form-group col-lg-2 col-md-12 col-sm-12"><label>Momento</label><select chosen="" ng-model="formscope.momento_type" name="momento_type" ng-options="type.id as type.name disable when type.isDisabled for type in tourMomentoOptions" class="form-control"></select></div><div ng-if="formscope.momento_type" class="form-group col-lg-2 col-md-3 col-sm-3"><label>No. of Momentos</label><input type="number" ng-model="formscope.momento_quantity" name="momento_quantity" class="form-control"></div></div><div class="row"><div class="form-group col-xs-12 col-lg-6 col-md-12 col-sm-12"><h3 class="with-line"><a type="submit" ng-if="havePermission(\'document_in_tour\',\'update\')" ng-click="addDocument()" class="pull-right btn btn-success" align="Add Document">Add</a>Documents Information</h3><div class="horizontal-scroll form-group"><table datatable="ng" dt-instance="documentInstance" dt-options="documentOptions" dt-column-defs="dtColumnDefs" class="row-border hover"><thead><tr><th>No</th><th>Title</th><th>Link</th><th>User</th><th>Action</th></tr></thead><tbody><tr ng-repeat="doc in docList"><td>{{$index+1}}</td><td>{{doc.title}}</td><td><a target="_blank" href="{{doc.link}}">View</a></td><td>{{doc.name}}</td><td><a ng-if="havePermission(\'document_in_tour\',\'update\') && loginID == doc.created_by" ng-click="editDocument(doc, $index);"><i class="fa fa-edit"></i></a> <a ng-if="havePermission(\'document_in_tour\',\'delete\') && loginID == doc.created_by" ng-confirm-click="Are you sure to delete this document?" confirmed--click="removeDoc($index)"><i class="fa fa-trash-o"></i></a></td></tr></tbody></table></div></div><div class="form-group col-xs-12 col-lg-6 col-md-12 col-sm-12"><h3 class="with-line"><a type="submit" ng-if="havePermission(\'note_in_tour\',\'update\')" ng-click="addNote()" class="pull-right btn btn-success" align="Add Note">Add</a> Notes</h3><div class="horizontal-scroll"><table datatable="ng" dt-instance="notesInstance" dt-options="notesOptions" dt-column-defs="notesColumnDefs" class="row-border hover"><thead><tr><th>No</th><th>Note</th><th>User</th><th>Action</th></tr></thead><tbody><tr ng-repeat="note in notes"><td>{{$index+1}}</td><td>{{note.note}}</td><td>{{note.name}}</td><td><a ng-if="havePermission(\'note_in_tour\',\'update\') && loginID == note.created_by" ng-click="editNote(note, $index);"><i class="fa fa-edit"></i></a> <a ng-if="havePermission(\'note_in_tour\',\'delete\') && loginID == note.created_by" ng-confirm-click="Are you sure to delete this note?" confirmed--click="removeNotes($index)"><i class="fa fa-trash-o"></i></a></td></tr></tbody></table></div></div></div><div class="row"><button ng-if="state.current.name == \'tours.add\'" ng-click="mailModal(add_form)" ng-disabled="isSubmitted" class="btn btn-success" align="center"><i class="fa fa-spinner fa-spin" aria-hidden="true" ng-show="loginProgress"></i> {{btnName}}</button> <button ng-if="state.current.name == \'tours.edit\'" ng-click="add_data(add_form)" ng-disabled="isSubmitted" class="btn btn-success" align="center"><i class="fa fa-spinner fa-spin" aria-hidden="true" ng-show="loginProgress"></i> {{btnName}}</button> <a type="submit" ui-sref="tours.list" class="btn btn-info" align="center">Cancel</a></div></form></div></div></div></div></div>'),
e.put("app/pages/tours/addvisitor_backup.html",'<div class="modal-content"><div class="modal-header"><button type="button" class="close" ng-click="$dismiss()" aria-label="Close"><em class="ion-ios-close-empty sn-link-close"></em></button><h4 class="modal-title" id="myModalLabel">Add Visitor</h4></div><form ng-submit="add_data(add_form)" role="form" name="add_form"><div class="modal-body"><p>Add visitor information.</p><div class="row"><div class="form-group col-md-6"><label for="input04">Phone Number<code>*</code></label> <input type="text" ng-blur="checkPhoneNumber(formscope.phone_number)" class="form-control" ng-model="formscope.phone_number" placeholder="Please enter your phone number" phone-input="" name="phone_number" required-error-message="{{errorMessage.phone_number.required}}" maxlength-error-message="{{errorMessage.phone_number.maxlength}}" minlength-error-message="{{errorMessage.phone_number.minlength}}" validator="required, maxlength=15, minlength=10" valid-method="blur" chars="numbers"></div><div class="form-group col-md-6"><label for="input04">Mobile<code>*</code></label> <input type="text" class="form-control" ng-model="formscope.mobile" placeholder="Please enter your mobile number" phone-input="" name="mobile" required-error-message="{{errorMessage.mobile.required}}" maxlength-error-message="{{errorMessage.mobile.maxlength}}" minlength-error-message="{{errorMessage.mobile.minlength}}" validator="required, maxlength=15, minlength=10" valid-method="blur" chars="numbers"></div></div><div class="row"><div class="form-group col-md-4"><label for="input01">First Name<code>*</code></label> <input type="text" class="form-control" ng-model="formscope.first_name" placeholder="Please enter first name" name="first_name" required-error-message="{{errorMessage.first_name.required}}" minlength-error-message="{{errorMessage.first_name.minlength}}" maxlength-error-message="{{errorMessage.first_name.maxlength}}" validator="required, minlength=2, maxlength=20" valid-method="blur" chars="letters"></div><div class="form-group col-md-4"><label for="input01">Middle Name</label> <input type="text" class="form-control" ng-model="formscope.middle_name" placeholder="Please enter first name" name="middle_name"></div><div class="form-group col-md-4"><label for="input01">Last Name<code>*</code></label> <input type="text" class="form-control" ng-model="formscope.last_name" placeholder="Please enter Last name" name="last_name" required-error-message="{{errorMessage.last_name.required}}" minlength-error-message="{{errorMessage.last_name.minlength}}" maxlength-error-message="{{errorMessage.last_name.maxlength}}" validator="required, minlength=2, maxlength=20" valid-method="blur" chars="letters"></div></div><div class="row"><div class="form-group col-md-4"><label for="textarea01">Organization Type<code>*</code></label><select ng-model="formscope.organization_id" name="organization_id" ng-options="company.id as company.name for company in OrganizationOption" class="form-control" required-error-message="{{errorMessage.organization_id.required}}" validator="required" valid-method="blur"></select></div><div class="form-group col-md-4"><label for="input01">Organization Name<code>*</code></label><angucomplete-alt id="ex1" placeholder="Please enter organization name" pause="100" initial-value="formscope.organization" selected-object="residentSelected" local-data="organizationNameOption" search-fields="organization" title-field="organization" minlength="1" input-class="form-control" match-class="highlight" field-required="true" auto-match="true" override-suggestions="true"></angucomplete-alt></div><div class="form-group col-md-4"><label for="textarea01">Visitor Type<code>*</code></label><select ng-model="formscope.visitor_type" name="visitor_type" ng-options="company.id as company.name for company in VisitorOption" class="form-control" required-error-message="{{errorMessage.visitor_type.required}}" validator="required" valid-method="blur"></select></div></div><div class="row"><div class="form-group col-md-6"><label for="input01">Email<code>*</code></label> <input type="email" class="form-control" ng-model="formscope.email" placeholder="Please enter email" name="email" required-error-message="{{errorMessage.email.required}}" email-error-message="{{errorMessage.email.invalidEmail}}" minlength-error-message="{{errorMessage.email.minlength}}" maxlength-error-message="{{errorMessage.email.maxlength}}" validator="required, email, minlength=2, maxlength=100" valid-method="blur"></div><div class="form-group col-md-6"><label for="textarea01">Gender</label><select ng-model="formscope.gender" name="gender" ng-options="company.value as company.label for company in genderOption" class="form-control"></select></div></div><div class="row"><div class="form-group col-xs-6"><label>Street 1<code>*</code></label> <input type="text" class="form-control" ng-model="formscope.address" placeholder="Please enter Street 1" name="address" required-error-message="{{errorMessage.address.required}}" minlength-error-message="{{errorMessage.address.minlength}}" maxlength-error-message="{{errorMessage.address.maxlength}}" validator="required, minlength=2, maxlength=100" valid-method="blur" chars="text"></div><div class="form-group col-xs-6"><label>Street 2<code>*</code></label> <input type="text" class="form-control" ng-model="formscope.address1" placeholder="Please enter Street 2" name="address1" required-error-message="{{errorMessage.address1.required}}" minlength-error-message="{{errorMessage.address1.minlength}}" maxlength-error-message="{{errorMessage.address1.maxlength}}" validator="minlength=2, maxlength=100" valid-method="blur" chars="text"></div></div><div class="row"><div class="form-group col-xs-6"><label>Country<code>*</code></label><select ng-model="formscope.country_id" name="country_id" ng-options="country.id as country.country_name for country in countries" class="form-control" required-error-message="{{errorMessage.country_id.required}}" validator="required" valid-method="blur"></select></div><div class="form-group col-xs-6"><label>State<code>*</code></label> <input type="text" class="form-control" ng-model="formscope.state" placeholder="Please enter state name" name="state" required-error-message="{{errorMessage.state.required}}" minlength-error-message="{{errorMessage.state.minlength}}" maxlength-error-message="{{errorMessage.state.maxlength}}" validator="required, minlength=2, maxlength=50" valid-method="blur" chars="text"></div></div><div class="row"><div class="form-group col-xs-6"><label>City<code>*</code></label> <input type="text" class="form-control" ng-model="formscope.city" placeholder="Please enter city name" name="city" required-error-message="{{errorMessage.city.required}}" minlength-error-message="{{errorMessage.city.minlength}}" maxlength-error-message="{{errorMessage.city.maxlength}}" validator="required, minlength=2, maxlength=100" valid-method="blur" chars="text"></div><div class="form-group col-xs-6"><label>Zip Code<code>*</code></label> <input type="text" placeholder="Please enter zip code" class="form-control" name="zip_code" ng-model="formscope.zip_code" required-error-message="{{errorMessage.state.required}}" minlength-error-message="{{errorMessage.state.minlength}}" maxlength-error-message="{{errorMessage.state.maxlength}}" validator="required, minlength=2, maxlength=6" valid-method="blur" chars="numbers"></div></div></div><div class="modal-footer"><button type="submit" ng-disabled="isSubmitted" class="btn btn-success" align="center">{{btnName}}</button></div></form></div>'),e.put("app/pages/tours/approve-task.html",'<div class="col-md-4 ng-scope"><div class="panel panel-default bootstrap-panel"><div class="panel-heading">Please approve your task!</div><div class="panel-body pading1522" style="padding: 15px 22px;"><p class="ng-binding"><label>Task Assigned:</label> {{task.task}}</p><p><span class="ng-binding"><label>Tour Name:</label> {{tour.name}}</span></p><p><span class="ng-binding"><label>Tour Date:</label> {{task.created_at | date}}</span></p><p><span class="ng-binding"><label>Tour Manager:</label> {{tour.tour_manager.name}}</span></p><p><span class="ng-binding"><label>Manager Email:</label> {{tour.tour_manager.email}}</span></p><p><span class="ng-binding"><label>Manager Mobile:</label> {{tour.tour_manager.mobile}}</span></p><p><span class="ng-binding"><label>Task Status:</label> {{task.acknowledge == 0 ? \'Pending\' : task.acknowledge == 1 ? \'Approved\' : \'Rejected\'}}</span></p><p ng-if="task.acknowledge == 0"><a type="submit" ng-disabled="isSubmitted" ng-click="approveRejectTour(1)" class="btn btn-success" align="center">Approve</a> <a type="submit" ng-disabled="isSubmitted" ng-click="approveRejectTour(2)" class="btn btn-danger" align="center">Reject</a></p></div></div></div>'),e.put("app/pages/tours/commentModal.html",'<div class="modal-content"><div class="modal-header"><button type="button" class="close" ng-click="ok(comment)" aria-label="Close"><em class="ion-ios-close-empty sn-link-close"></em></button><h4 class="modal-title" id="myModalLabel">Comment</h4></div><form name="linkForm"><div class="modal-body"><div class="form-group"><textarea placeholder="Please enter comment" class="form-control" ng-model="comment" name="comment" chars="text"></textarea></div><span style="color:red;" ng-if="message">{{ message }}</span></div><div class="modal-footer"><button type="button" class="btn btn-primary" ng-click="ok(comment)">Comment</button> <button type="button" class="btn btn-primary" ng-click="ok(comment)">Cancel</button></div></form></div>'),e.put("app/pages/tours/documentModal.html",'<div class="modal-content"><div class="modal-header"><button type="button" class="close" ng-click="$dismiss()" aria-label="Close"><em class="ion-ios-close-empty sn-link-close"></em></button><h4 class="modal-title" id="myModalLabel">{{titleName}}</h4></div><form ng-submit="add_data(add_form)" role="form" name="add_form"><div class="modal-body"><div class="row col-md-12"><div class="form-group col-md-6"><label>Document Title<code>*</code></label> <input focus-me="" type="text" class="form-control" ng-model="formdocscope.title" placeholder="Document title" name="title" required-error-message="{{errorMessage.title.required}}" minlength-error-message="{{errorMessage.title.minlength}}" maxlength-error-message="{{errorMessage.title.maxlength}}" validator="required, minlength=2, maxlength=50" valid-method="blur"></div><div class="form-group col-md-6"><label>Document Link<code>*</code></label> <input type="text" class="form-control" ng-model="formdocscope.link" placeholder="http://example.com" name="link" required-error-message="{{errorMessage.link.required}}" url-error-message="{{errorMessage.link.error}}" validator="required, link" valid-method="blur"></div></div></div><div class="modal-footer"><button type="submit" ng-disabled="isSubmitted" class="btn btn-success" align="center">{{btnName}}</button></div></form></div>'),e.put("app/pages/tours/feedback.html",'<div class="message-container" style="border-left: none; width: 100%; background-color: #fff !important;"><div class="message more-text-widget text-center" ng-if="formscope.link_expired == 1"><p style="color: #e85656; font-size: 20px;">{{formscope.errorMessage}}</p></div><div class="message" ng-if="displayForm"><div class="message-body text-center" ng-if="filled"><b>{{filledForm}}</b></div><div class="message-body" ng-if="!filled"><form class="form-validation" ng-submit="add_data(add_form)" role="form" name="add_form"><div class="col-md-12"><div class="row"><div class="form-group col-md-6"><label>Rating:</label><jk-rating-stars on-rating="setRating(rating)" rating="firstRate"></jk-rating-stars></div></div><div class="row"><div class="form-group col-md-6"><label>Comments:</label> <textarea placeholder="Please enter feedback" class="form-control" ng-model="formscope.comment" name="comment" required-error-message="{{errorMessage.feedback.required}}" validator="required" valid-method="blur"></textarea></div></div><div class="row"><div class="form-group col-md-12"><button type="submit" ng-disabled="isSubmitted" class="btn btn-success" align="center">{{btnName}}</button></div></div></div></form></div></div></div>'),e.put("app/pages/tours/mailModal.html",'<div class="modal-content" ng-if="displayEditor"><div class="modal-header"><h4 class="modal-title text-center" id="myModalLabel">Acknowledge Tour Mail Confirmation</h4></div><div class="row" style="margin-left: 0px; margin-right: 0px;"><div class="form-group col-xs-8 pull-right"><div class="row"><div class="col-sm-4" style="margin-top: 1rem; text-align: right;padding-right: 0px;"><label>Select Template</label></div><div class="col-sm-8"><select ng-change="filerdatatable()" ng-model="formData.filterData" name="filterData" ng-options="email.id as email.title for email in emailTemplates" class="form-control"></select></div></div></div></div><div class="modal-body"><div><label>Mail Subject</label> <input type="text" placeholder="Please enter mail subject" ng-model="formscope.mailSubject" class="form-control"></div><div style="margin-top: 10px;"><label style="display: block;">Mail Body</label><text-angular placeholder="Please enter mail body" name="mailContent" ng-model="formscope.mailContent" ta-toolbar="[[\'h1\',\'h2\',\'h3\',\'h4\',\'h5\',\'h6\',\'p\'],[\'bold\',\'italics\',\'underline\']]"></text-angular></div></div><div class="modal-footer"><div class="row col-md-12 text-center"><a type="submit" ng-click="sendMail()" class="btn btn-success">Send Mail</a> <a type="submit" ng-click="donotsendMail()" class="btn btn-danger">Do Not Send Mail</a></div></div></div>'),e.put("app/pages/tours/mealModal.html",'<div class="modal-content"><div class="modal-header"><button type="button" class="close" ng-click="$dismiss()" aria-label="Close"><em class="ion-ios-close-empty sn-link-close"></em></button><h4 class="modal-title" id="myModalLabel"><span>{{formTitle}}</span> Meal Service</h4></div><form ng-submit="add_data(add_form)" role="form" name="add_form"><div class="modal-body"><div class="row col-md-12"><div class="form-group col-md-6"><label>Meal Type<code>*</code></label><select chosen="" ng-model="formscope.meal_id" name="meal_id" ng-options="type.id as type.name disable when type.isDisabled for type in mealsTypeOption" class="form-control" required-error-message="{{errorMessage.meal_id.required}}" validator="required" valid-method="watch, blur" validation-group="meal_type_error_message"></select><span id="meal_type_error_message"></span> <input type="hidden" ng-model="formscope.old_meal_id" name="old_meal_id"></div><div class="form-group col-md-6"><label>Comments</label> <input type="text" class="form-control" ng-model="formscope.specific_item" placeholder="Please enter specific item" name="specific_item"></div></div><div class="row col-md-12"><div class="form-group col-md-6"><label>How Many People<code>*</code></label> <input type="text" class="form-control" ng-keyup="checkNumber($event)" ng-model="formscope.people" placeholder="Please enter people count" name="people" required-error-message="{{errorMessage.people.required}}" minlength-error-message="{{errorMessage.people.minlength}}" maxlength-error-message="{{errorMessage.people.maxlength}}" validator="required, minlength=1, maxlength=5" valid-method="blur" chars="numbers"></div><div class="form-group col-md-6"><label>Catering Manager<code>*</code></label><select chosen="" ng-model="formscope.catering_manager" name="catering_manager" ng-options="type.id as type.name disable when type.isDisabled for type in usersOption" class="form-control" required-error-message="{{errorMessage.catering_manager.required}}" validator="required" valid-method="watch, blur" validation-group="catering_manager_error_message"></select><span id="catering_manager_error_message"></span></div></div><div class="row col-md-12"><div class="form-group col-md-6"><label>Meal Service Type<code>*</code></label><select chosen="" ng-model="formscope.meal_service_type_id" name="meal_service_type_id" ng-options="type.id as type.name for type in mealServiceTypeOption" class="form-control" required-error-message="{{errorMessage.meal_service_type_id.required}}" validator="required" valid-method="watch, blur" validation-group="meal_service_type_id_error_message" ng-change="mealServiceTypeChanged(type)"></select><span id="meal_service_type_id_error_message"></span></div><div class="form-group col-md-6"><label>Meal Service Location<code>*</code></label><select chosen="" ng-model="formscope.meal_service_location_id" name="meal_service_location_id" ng-options="type.id as type.name for type in mealServiceLocationsOption" class="form-control" required-error-message="{{errorMessage.meal_service_location_id.required}}" validator="required" valid-method="watch, blur" validation-group="meal_service_location_id_error_message"></select><span id="meal_service_location_id_error_message"></span></div></div><div class="row col-md-12"><div class="form-group col-md-12"><label>Meal Service Description</label> <textarea class="form-control" name="meal_service_type_description" id="meal_service_type_description" cols="30" rows="10" ng-model="mealServiceTypeDescription"></textarea></div></div></div><div class="modal-footer"><button type="submit" ng-disabled="isSubmitted" class="btn btn-success" align="center">{{btnName}}</button></div></form></div>'),e.put("app/pages/tours/meetingModal.html",'<div class="modal-content"><div class="modal-header"><button type="button" class="close" ng-click="$dismiss()" aria-label="Close"><em class="ion-ios-close-empty sn-link-close"></em></button><h4 class="modal-title" id="myModalLabel">{{titleName}}</h4></div><form ng-submit="add_data(add_form)" role="form" name="add_form"><div class="modal-body"><p>{{btnName}} meeting information.</p><div class="row"><div class="form-group col-lg-4 col-md-12 col-sm-12"><label for="input01">First Name<code>*</code></label><div class="angucomplete-holder angucomplete-dropdown-visible" ng-class="{\'angucomplete-dropdown-visible\': showDropdownFirstName}"><input focus-me="" id="FirstName" type="text" class="form-control" ng-model="formscope.first_name" placeholder="Please enter first name" name="first_name" required-error-message="{{errorMessage.first_name.required}}" minlength-error-message="{{errorMessage.first_name.minlength}}" maxlength-error-message="{{errorMessage.first_name.maxlength}}" validator="required, minlength=2, maxlength=20" chars="letters" valid-method="blur" autocomplete="off" ac-outside-click="showDropdownFirstName = false"><div id="FirstName_dropdown" class="angucomplete-dropdown" ng-show="showDropdownFirstName"><div class="angucomplete-searching" ng-show="!searchResult1 || searchResult1.length == 0">{{textNoResults}}</div><div class="angucomplete-row ng-scope" ng-repeat="result in searchResult1" ng-click="selectResult(result)" ng-mouseenter="hoverRow($index)" ng-class="{\'angucomplete-selected-row\': $index == currentIndex}"><div class="angucomplete-title" ng-bind-html="result.name"></div><div ng-if="result.mobile && result.mobile != \'\'" class="angucomplete-description" ng-bind-html="result.mobile"></div></div></div></div></div><div class="form-group col-lg-4 col-md-12 col-sm-12"><label for="input01">Last Name<code>*</code></label><input type="text" class="form-control" ng-model="formscope.last_name" placeholder="Please enter Last name" name="last_name" required-error-message="{{errorMessage.last_name.required}}" minlength-error-message="{{errorMessage.last_name.minlength}}" maxlength-error-message="{{errorMessage.last_name.maxlength}}" validator="required, minlength=2, maxlength=20" valid-method="blur" chars="letters" ac-outside-click="showDropdownLastName = false" autocomplete="off"><div class="angucomplete-dropdown" ng-show="showDropdownLastName"><div class="angucomplete-searching" ng-show="!searchResult1 || searchResult1.length == 0">{{textNoResults}}</div><div class="angucomplete-row" ng-repeat="result in searchResult1" ng-click="selectResult(result)" ng-mouseenter="hoverRow($index)" ng-class="{\'angucomplete-selected-row\': $index == currentIndex}"><div class="angucomplete-title" ng-bind-html="result.name"></div><div ng-if="result.mobile && result.mobile != \'\'" class="angucomplete-description" ng-bind-html="result.mobile"></div></div></div></div><div class="form-group col-lg-4 col-md-12 col-sm-12"><label>Meeting Time<code>*</code></label><div><select name="meetingtime_hour" validator="required" required-error-message="{{errorMessage.meetingtime.required}}" ng-model="formscope.meetingtime_hour" ng-options="hour.value as hour.label disable when hour.isDisabled for hour in meetingtime_hour" valid-method="watch, blur" validation-group="manager_error_message_meeting_hour"><option value="">HH</option></select><select name="meetingtime_min" class="" ng-model="formscope.meetingtime_min" ng-options="min.value as min.label disable when min.isDisabled for min in meetingtime_min" validator="required" required-error-message="{{errorMessage.meetingtime.required}}" valid-method="watch, blur" validation-group="manager_error_message_meeting_min"><option value="">MM</option></select><select name="meetingtime_format" class="" ng-model="formscope.meetingtime_format" ng-options="format.value as format.label disable when format.isDisabled for format in meetingtime_format" validator="required" required-error-message="{{errorMessage.meetingtime.required}}" valid-method="watch, blur" validation-group="manager_error_message_meeting_format"></select></div><div style="color: red;" ng-if="add_form.meetingtime_min.$error.meetingtime_min || add_form.meetingtime_hour.$error.meetingtime_hour || add_form.meetingtime_format.$error.meetingtime_format">Please select meeting time</div></div></div><div class="row"><div class="form-group col-lg-6 col-md-12 col-sm-12"><label for="input01">Email<code>*</code></label><input type="email" class="form-control" ng-model="formscope.email" placeholder="Please enter email" name="email" required-error-message="{{errorMessage.email.required}}" email-error-message="{{errorMessage.email.invalidEmail}}" minlength-error-message="{{errorMessage.email.minlength}}" maxlength-error-message="{{errorMessage.email.maxlength}}" validator="required, email, minlength=2, maxlength=100" valid-method="blur" ac-outside-click="showDropdownEmail = false" autocomplete="off"><div class="angucomplete-dropdown" ng-show="showDropdownEmail"><div class="angucomplete-searching" ng-show="!searchResult1 || searchResult1.length == 0">{{textNoResults}}</div><div class="angucomplete-row" ng-repeat="result in searchResult1" ng-click="selectResult(result)" ng-mouseenter="hoverRow($index)" ng-class="{\'angucomplete-selected-row\': $index == currentIndex}"><div class="angucomplete-title" ng-bind-html="result.name"></div><div ng-if="result.mobile && result.mobile != \'\'" class="angucomplete-description" ng-bind-html="result.mobile"></div></div></div></div><div class="form-group col-lg-6 col-md-12 col-sm-12"><label for="input04">Mobile<code>*</code></label><div class="row"><div class="col-sm-3" style="padding-right: 0px;"><select ng-model="formscope.mobile_country_code" name="mobile_country_code" class="form-control" id=""><option data-countrycode="GB" value="44" selected="">UK (+44)</option><option data-countrycode="US" value="1">USA (+1)</option><optgroup label="Other countries"><option data-countrycode="DZ" value="213">Algeria (+213)</option><option data-countrycode="AD" value="376">Andorra (+376)</option><option data-countrycode="AO" value="244">Angola (+244)</option><option data-countrycode="AI" value="1264">Anguilla (+1264)</option><option data-countrycode="AG" value="1268">Antigua &amp; Barbuda (+1268)</option><option data-countrycode="AR" value="54">Argentina (+54)</option><option data-countrycode="AM" value="374">Armenia (+374)</option><option data-countrycode="AW" value="297">Aruba (+297)</option><option data-countrycode="AU" value="61">Australia (+61)</option><option data-countrycode="AT" value="43">Austria (+43)</option><option data-countrycode="AZ" value="994">Azerbaijan (+994)</option><option data-countrycode="BS" value="1242">Bahamas (+1242)</option><option data-countrycode="BH" value="973">Bahrain (+973)</option><option data-countrycode="BD" value="880">Bangladesh (+880)</option><option data-countrycode="BB" value="1246">Barbados (+1246)</option><option data-countrycode="BY" value="375">Belarus (+375)</option><option data-countrycode="BE" value="32">Belgium (+32)</option><option data-countrycode="BZ" value="501">Belize (+501)</option><option data-countrycode="BJ" value="229">Benin (+229)</option><option data-countrycode="BM" value="1441">Bermuda (+1441)</option><option data-countrycode="BT" value="975">Bhutan (+975)</option><option data-countrycode="BO" value="591">Bolivia (+591)</option><option data-countrycode="BA" value="387">Bosnia Herzegovina (+387)</option><option data-countrycode="BW" value="267">Botswana (+267)</option><option data-countrycode="BR" value="55">Brazil (+55)</option><option data-countrycode="BN" value="673">Brunei (+673)</option><option data-countrycode="BG" value="359">Bulgaria (+359)</option><option data-countrycode="BF" value="226">Burkina Faso (+226)</option><option data-countrycode="BI" value="257">Burundi (+257)</option><option data-countrycode="KH" value="855">Cambodia (+855)</option><option data-countrycode="CM" value="237">Cameroon (+237)</option><option data-countrycode="CA" value="1">Canada (+1)</option><option data-countrycode="CV" value="238">Cape Verde Islands (+238)</option><option data-countrycode="KY" value="1345">Cayman Islands (+1345)</option><option data-countrycode="CF" value="236">Central African Republic (+236)</option><option data-countrycode="CL" value="56">Chile (+56)</option><option data-countrycode="CN" value="86">China (+86)</option><option data-countrycode="CO" value="57">Colombia (+57)</option><option data-countrycode="KM" value="269">Comoros (+269)</option><option data-countrycode="CG" value="242">Congo (+242)</option><option data-countrycode="CK" value="682">Cook Islands (+682)</option><option data-countrycode="CR" value="506">Costa Rica (+506)</option><option data-countrycode="HR" value="385">Croatia (+385)</option><option data-countrycode="CU" value="53">Cuba (+53)</option><option data-countrycode="CY" value="90392">Cyprus North (+90392)</option><option data-countrycode="CY" value="357">Cyprus South (+357)</option><option data-countrycode="CZ" value="42">Czech Republic (+42)</option><option data-countrycode="DK" value="45">Denmark (+45)</option><option data-countrycode="DJ" value="253">Djibouti (+253)</option><option data-countrycode="DM" value="1809">Dominica (+1809)</option><option data-countrycode="DO" value="1809">Dominican Republic (+1809)</option><option data-countrycode="EC" value="593">Ecuador (+593)</option><option data-countrycode="EG" value="20">Egypt (+20)</option><option data-countrycode="SV" value="503">El Salvador (+503)</option><option data-countrycode="GQ" value="240">Equatorial Guinea (+240)</option><option data-countrycode="ER" value="291">Eritrea (+291)</option><option data-countrycode="EE" value="372">Estonia (+372)</option><option data-countrycode="ET" value="251">Ethiopia (+251)</option><option data-countrycode="FK" value="500">Falkland Islands (+500)</option><option data-countrycode="FO" value="298">Faroe Islands (+298)</option><option data-countrycode="FJ" value="679">Fiji (+679)</option><option data-countrycode="FI" value="358">Finland (+358)</option><option data-countrycode="FR" value="33">France (+33)</option><option data-countrycode="GF" value="594">French Guiana (+594)</option><option data-countrycode="PF" value="689">French Polynesia (+689)</option><option data-countrycode="GA" value="241">Gabon (+241)</option><option data-countrycode="GM" value="220">Gambia (+220)</option><option data-countrycode="GE" value="7880">Georgia (+7880)</option><option data-countrycode="DE" value="49">Germany (+49)</option><option data-countrycode="GH" value="233">Ghana (+233)</option><option data-countrycode="GI" value="350">Gibraltar (+350)</option><option data-countrycode="GR" value="30">Greece (+30)</option><option data-countrycode="GL" value="299">Greenland (+299)</option><option data-countrycode="GD" value="1473">Grenada (+1473)</option><option data-countrycode="GP" value="590">Guadeloupe (+590)</option><option data-countrycode="GU" value="671">Guam (+671)</option><option data-countrycode="GT" value="502">Guatemala (+502)</option><option data-countrycode="GN" value="224">Guinea (+224)</option><option data-countrycode="GW" value="245">Guinea - Bissau (+245)</option><option data-countrycode="GY" value="592">Guyana (+592)</option><option data-countrycode="HT" value="509">Haiti (+509)</option><option data-countrycode="HN" value="504">Honduras (+504)</option><option data-countrycode="HK" value="852">Hong Kong (+852)</option><option data-countrycode="HU" value="36">Hungary (+36)</option><option data-countrycode="IS" value="354">Iceland (+354)</option><option data-countrycode="IN" value="91">India (+91)</option><option data-countrycode="ID" value="62">Indonesia (+62)</option><option data-countrycode="IR" value="98">Iran (+98)</option><option data-countrycode="IQ" value="964">Iraq (+964)</option><option data-countrycode="IE" value="353">Ireland (+353)</option><option data-countrycode="IL" value="972">Israel (+972)</option><option data-countrycode="IT" value="39">Italy (+39)</option><option data-countrycode="JM" value="1876">Jamaica (+1876)</option><option data-countrycode="JP" value="81">Japan (+81)</option><option data-countrycode="JO" value="962">Jordan (+962)</option><option data-countrycode="KZ" value="7">Kazakhstan (+7)</option><option data-countrycode="KE" value="254">Kenya (+254)</option><option data-countrycode="KI" value="686">Kiribati (+686)</option><option data-countrycode="KP" value="850">Korea North (+850)</option><option data-countrycode="KR" value="82">Korea South (+82)</option><option data-countrycode="KW" value="965">Kuwait (+965)</option><option data-countrycode="KG" value="996">Kyrgyzstan (+996)</option><option data-countrycode="LA" value="856">Laos (+856)</option><option data-countrycode="LV" value="371">Latvia (+371)</option><option data-countrycode="LB" value="961">Lebanon (+961)</option><option data-countrycode="LS" value="266">Lesotho (+266)</option><option data-countrycode="LR" value="231">Liberia (+231)</option><option data-countrycode="LY" value="218">Libya (+218)</option><option data-countrycode="LI" value="417">Liechtenstein (+417)</option><option data-countrycode="LT" value="370">Lithuania (+370)</option><option data-countrycode="LU" value="352">Luxembourg (+352)</option><option data-countrycode="MO" value="853">Macao (+853)</option><option data-countrycode="MK" value="389">Macedonia (+389)</option><option data-countrycode="MG" value="261">Madagascar (+261)</option><option data-countrycode="MW" value="265">Malawi (+265)</option><option data-countrycode="MY" value="60">Malaysia (+60)</option><option data-countrycode="MV" value="960">Maldives (+960)</option><option data-countrycode="ML" value="223">Mali (+223)</option><option data-countrycode="MT" value="356">Malta (+356)</option><option data-countrycode="MH" value="692">Marshall Islands (+692)</option><option data-countrycode="MQ" value="596">Martinique (+596)</option><option data-countrycode="MR" value="222">Mauritania (+222)</option><option data-countrycode="YT" value="269">Mayotte (+269)</option><option data-countrycode="MX" value="52">Mexico (+52)</option><option data-countrycode="FM" value="691">Micronesia (+691)</option><option data-countrycode="MD" value="373">Moldova (+373)</option><option data-countrycode="MC" value="377">Monaco (+377)</option><option data-countrycode="MN" value="976">Mongolia (+976)</option><option data-countrycode="MS" value="1664">Montserrat (+1664)</option><option data-countrycode="MA" value="212">Morocco (+212)</option><option data-countrycode="MZ" value="258">Mozambique (+258)</option><option data-countrycode="MN" value="95">Myanmar (+95)</option><option data-countrycode="NA" value="264">Namibia (+264)</option><option data-countrycode="NR" value="674">Nauru (+674)</option><option data-countrycode="NP" value="977">Nepal (+977)</option><option data-countrycode="NL" value="31">Netherlands (+31)</option><option data-countrycode="NC" value="687">New Caledonia (+687)</option><option data-countrycode="NZ" value="64">New Zealand (+64)</option><option data-countrycode="NI" value="505">Nicaragua (+505)</option><option data-countrycode="NE" value="227">Niger (+227)</option><option data-countrycode="NG" value="234">Nigeria (+234)</option><option data-countrycode="NU" value="683">Niue (+683)</option><option data-countrycode="NF" value="672">Norfolk Islands (+672)</option><option data-countrycode="NP" value="670">Northern Marianas (+670)</option><option data-countrycode="NO" value="47">Norway (+47)</option><option data-countrycode="OM" value="968">Oman (+968)</option><option data-countrycode="PW" value="680">Palau (+680)</option><option data-countrycode="PA" value="507">Panama (+507)</option><option data-countrycode="PG" value="675">Papua New Guinea (+675)</option><option data-countrycode="PY" value="595">Paraguay (+595)</option><option data-countrycode="PE" value="51">Peru (+51)</option><option data-countrycode="PH" value="63">Philippines (+63)</option><option data-countrycode="PL" value="48">Poland (+48)</option><option data-countrycode="PT" value="351">Portugal (+351)</option><option data-countrycode="PR" value="1787">Puerto Rico (+1787)</option><option data-countrycode="QA" value="974">Qatar (+974)</option><option data-countrycode="RE" value="262">Reunion (+262)</option><option data-countrycode="RO" value="40">Romania (+40)</option><option data-countrycode="RU" value="7">Russia (+7)</option><option data-countrycode="RW" value="250">Rwanda (+250)</option><option data-countrycode="SM" value="378">San Marino (+378)</option><option data-countrycode="ST" value="239">Sao Tome &amp; Principe (+239)</option><option data-countrycode="SA" value="966">Saudi Arabia (+966)</option><option data-countrycode="SN" value="221">Senegal (+221)</option><option data-countrycode="CS" value="381">Serbia (+381)</option><option data-countrycode="SC" value="248">Seychelles (+248)</option><option data-countrycode="SL" value="232">Sierra Leone (+232)</option><option data-countrycode="SG" value="65">Singapore (+65)</option><option data-countrycode="SK" value="421">Slovak Republic (+421)</option><option data-countrycode="SI" value="386">Slovenia (+386)</option><option data-countrycode="SB" value="677">Solomon Islands (+677)</option><option data-countrycode="SO" value="252">Somalia (+252)</option><option data-countrycode="ZA" value="27">South Africa (+27)</option><option data-countrycode="ES" value="34">Spain (+34)</option><option data-countrycode="LK" value="94">Sri Lanka (+94)</option><option data-countrycode="SH" value="290">St. Helena (+290)</option><option data-countrycode="KN" value="1869">St. Kitts (+1869)</option><option data-countrycode="SC" value="1758">St. Lucia (+1758)</option><option data-countrycode="SD" value="249">Sudan (+249)</option><option data-countrycode="SR" value="597">Suriname (+597)</option><option data-countrycode="SZ" value="268">Swaziland (+268)</option><option data-countrycode="SE" value="46">Sweden (+46)</option><option data-countrycode="CH" value="41">Switzerland (+41)</option><option data-countrycode="SI" value="963">Syria (+963)</option><option data-countrycode="TW" value="886">Taiwan (+886)</option><option data-countrycode="TJ" value="7">Tajikstan (+7)</option><option data-countrycode="TH" value="66">Thailand (+66)</option><option data-countrycode="TG" value="228">Togo (+228)</option><option data-countrycode="TO" value="676">Tonga (+676)</option><option data-countrycode="TT" value="1868">Trinidad &amp; Tobago (+1868)</option><option data-countrycode="TN" value="216">Tunisia (+216)</option><option data-countrycode="TR" value="90">Turkey (+90)</option><option data-countrycode="TM" value="7">Turkmenistan (+7)</option><option data-countrycode="TM" value="993">Turkmenistan (+993)</option><option data-countrycode="TC" value="1649">Turks &amp; Caicos Islands (+1649)</option><option data-countrycode="TV" value="688">Tuvalu (+688)</option><option data-countrycode="UG" value="256">Uganda (+256)</option><option data-countrycode="UA" value="380">Ukraine (+380)</option><option data-countrycode="AE" value="971">United Arab Emirates (+971)</option><option data-countrycode="UY" value="598">Uruguay (+598)</option><option data-countrycode="UZ" value="7">Uzbekistan (+7)</option><option data-countrycode="VU" value="678">Vanuatu (+678)</option><option data-countrycode="VA" value="379">Vatican City (+379)</option><option data-countrycode="VE" value="58">Venezuela (+58)</option><option data-countrycode="VN" value="84">Vietnam (+84)</option><option data-countrycode="VG" value="84">Virgin Islands - British (+1284)</option><option data-countrycode="VI" value="84">Virgin Islands - US (+1340)</option><option data-countrycode="WF" value="681">Wallis &amp; Futuna (+681)</option><option data-countrycode="YE" value="969">Yemen (North)(+969)</option><option data-countrycode="YE" value="967">Yemen (South)(+967)</option><option data-countrycode="ZM" value="260">Zambia (+260)</option><option data-countrycode="ZW" value="263">Zimbabwe (+263)</option></optgroup></select></div><div class="col-sm-9" style="padding-left: 0px;"><input type="text" class="form-control" ng-model="formscope.mobile" placeholder="Please enter your mobile number" phone-input="" name="mobile" required-error-message="{{errorMessage.mobile.required}}" maxlength-error-message="{{errorMessage.mobile.maxlength}}" minlength-error-message="{{errorMessage.mobile.minlength}}" validator="required, maxlength=15, minlength=6" valid-method="blur" chars="numbers" autocomplete="off" ac-outside-click="showDropdownMobile = false"></div></div><div class="angucomplete-dropdown" ng-show="showDropdownMobile"><div class="angucomplete-searching" ng-show="!searchResult1 || searchResult1.length == 0">{{textNoResults}}</div><div class="angucomplete-row" ng-repeat="result in searchResult1" ng-click="selectResult(result)" ng-mouseenter="hoverRow($index)" ng-class="{\'angucomplete-selected-row\': $index == currentIndex}"><div class="angucomplete-title" ng-bind-html="result.name"></div><div ng-if="result.mobile && result.mobile != \'\'" class="angucomplete-description" ng-bind-html="result.mobile"></div></div></div></div></div><div class="row"><div class="form-group col-sm-12"><div><textarea id="comment" type="text" class="form-control" ng-model="formscope.comment" placeholder="Please enter a comment" name="comment" chars="letters" valid-method="blur"></textarea></div></div></div></div><div class="modal-footer"><button type="submit" ng-disabled="isSubmitted" class="btn btn-success" align="center">{{btnName}}</button></div></form></div>'),
e.put("app/pages/tours/noteModal.html",'<div class="modal-content"><div class="modal-header"><button type="button" class="close" ng-click="$dismiss()" aria-label="Close"><em class="ion-ios-close-empty sn-link-close"></em></button><h4 class="modal-title" id="myModalLabel">{{titleName}}</h4></div><form ng-submit="add_data(add_form)" role="form" name="add_form"><div class="modal-body"><div class="row col-md-12"><div class="form-group"><label>Note<code>*</code></label><textarea focus-me="" placeholder="Note..." class="form-control" ng-model="formnotescope.note" name="note" required-error-message="{{errorMessage.note.required}}" minlength-error-message="{{errorMessage.note.minlength}}" validator="required, minlength=2" valid-method="blur">\n                    </textarea></div></div></div><div class="modal-footer"><button type="submit" ng-disabled="isSubmitted" class="btn btn-success" align="center">{{btnName}}</button></div></form></div>'),e.put("app/pages/tours/referenceModal.html",'<div class="modal-content"><div class="modal-header"><button type="button" class="close" ng-click="$dismiss()" aria-label="Close"><em class="ion-ios-close-empty sn-link-close"></em></button><h4 class="modal-title" id="myModalLabel">{{titleName}}</h4></div><form ng-submit="add_data(add_form)" role="form" name="add_form"><div class="modal-body"><p>{{btnName}} reference information.</p><div class="row"><div class="form-group col-lg-4 col-md-12 col-sm-12"><label for="input01">First Name<code>*</code></label><div class="angucomplete-holder angucomplete-dropdown-visible" ng-class="{\'angucomplete-dropdown-visible\': showDropdownFirstName}"><input focus-me="" id="FirstName" type="text" class="form-control" ng-model="formscope.first_name" placeholder="Please enter first name" name="first_name" required-error-message="{{errorMessage.first_name.required}}" minlength-error-message="{{errorMessage.first_name.minlength}}" maxlength-error-message="{{errorMessage.first_name.maxlength}}" validator="required, minlength=2, maxlength=20" chars="letters" valid-method="blur" autocomplete="off" ac-outside-click="showDropdownFirstName = false"><div id="FirstName_dropdown" class="angucomplete-dropdown" ng-show="showDropdownFirstName"><div class="angucomplete-searching" ng-show="!searchResult1 || searchResult1.length == 0">{{textNoResults}}</div><div class="angucomplete-row ng-scope" ng-repeat="result in searchResult1" ng-click="selectResult(result)" ng-mouseenter="hoverRow($index)" ng-class="{\'angucomplete-selected-row\': $index == currentIndex}"><div class="angucomplete-title" ng-bind-html="result.name"></div><div ng-if="result.mobile && result.mobile != \'\'" class="angucomplete-description" ng-bind-html="result.mobile"></div></div></div></div></div><div class="form-group col-lg-4 col-md-12 col-sm-12"><label for="input01">Last Name<code>*</code></label><input type="text" class="form-control" ng-model="formscope.last_name" placeholder="Please enter Last name" name="last_name" required-error-message="{{errorMessage.last_name.required}}" minlength-error-message="{{errorMessage.last_name.minlength}}" maxlength-error-message="{{errorMessage.last_name.maxlength}}" validator="required, minlength=2, maxlength=20" valid-method="blur" chars="letters" ac-outside-click="showDropdownLastName = false" autocomplete="off"><div class="angucomplete-dropdown" ng-show="showDropdownLastName"><div class="angucomplete-searching" ng-show="!searchResult1 || searchResult1.length == 0">{{textNoResults}}</div><div class="angucomplete-row" ng-repeat="result in searchResult1" ng-click="selectResult(result)" ng-mouseenter="hoverRow($index)" ng-class="{\'angucomplete-selected-row\': $index == currentIndex}"><div class="angucomplete-title" ng-bind-html="result.name"></div><div ng-if="result.mobile && result.mobile != \'\'" class="angucomplete-description" ng-bind-html="result.mobile"></div></div></div></div></div><div class="row"><div class="form-group col-lg-6 col-md-12 col-sm-12"><label for="input01">Email<code>*</code></label><input type="email" class="form-control" ng-model="formscope.email" placeholder="Please enter email" name="email" required-error-message="{{errorMessage.email.required}}" email-error-message="{{errorMessage.email.invalidEmail}}" minlength-error-message="{{errorMessage.email.minlength}}" maxlength-error-message="{{errorMessage.email.maxlength}}" validator="required, email, minlength=2, maxlength=100" valid-method="blur" ac-outside-click="showDropdownEmail = false" autocomplete="off"><div class="angucomplete-dropdown" ng-show="showDropdownEmail"><div class="angucomplete-searching" ng-show="!searchResult1 || searchResult1.length == 0">{{textNoResults}}</div><div class="angucomplete-row" ng-repeat="result in searchResult1" ng-click="selectResult(result)" ng-mouseenter="hoverRow($index)" ng-class="{\'angucomplete-selected-row\': $index == currentIndex}"><div class="angucomplete-title" ng-bind-html="result.name"></div><div ng-if="result.mobile && result.mobile != \'\'" class="angucomplete-description" ng-bind-html="result.mobile"></div></div></div></div><div class="form-group col-lg-6 col-md-12 col-sm-12"><label for="input04">Mobile<code>*</code></label><div class="row"><div class="col-sm-3" style="padding-right: 0px;"><select ng-model="formscope.mobile_country_code" name="mobile_country_code" class="form-control" id=""><option data-countrycode="GB" value="44" selected="">UK (+44)</option><option data-countrycode="US" value="1">USA (+1)</option><optgroup label="Other countries"><option data-countrycode="DZ" value="213">Algeria (+213)</option><option data-countrycode="AD" value="376">Andorra (+376)</option><option data-countrycode="AO" value="244">Angola (+244)</option><option data-countrycode="AI" value="1264">Anguilla (+1264)</option><option data-countrycode="AG" value="1268">Antigua &amp; Barbuda (+1268)</option><option data-countrycode="AR" value="54">Argentina (+54)</option><option data-countrycode="AM" value="374">Armenia (+374)</option><option data-countrycode="AW" value="297">Aruba (+297)</option><option data-countrycode="AU" value="61">Australia (+61)</option><option data-countrycode="AT" value="43">Austria (+43)</option><option data-countrycode="AZ" value="994">Azerbaijan (+994)</option><option data-countrycode="BS" value="1242">Bahamas (+1242)</option><option data-countrycode="BH" value="973">Bahrain (+973)</option><option data-countrycode="BD" value="880">Bangladesh (+880)</option><option data-countrycode="BB" value="1246">Barbados (+1246)</option><option data-countrycode="BY" value="375">Belarus (+375)</option><option data-countrycode="BE" value="32">Belgium (+32)</option><option data-countrycode="BZ" value="501">Belize (+501)</option><option data-countrycode="BJ" value="229">Benin (+229)</option><option data-countrycode="BM" value="1441">Bermuda (+1441)</option><option data-countrycode="BT" value="975">Bhutan (+975)</option><option data-countrycode="BO" value="591">Bolivia (+591)</option><option data-countrycode="BA" value="387">Bosnia Herzegovina (+387)</option><option data-countrycode="BW" value="267">Botswana (+267)</option><option data-countrycode="BR" value="55">Brazil (+55)</option><option data-countrycode="BN" value="673">Brunei (+673)</option><option data-countrycode="BG" value="359">Bulgaria (+359)</option><option data-countrycode="BF" value="226">Burkina Faso (+226)</option><option data-countrycode="BI" value="257">Burundi (+257)</option><option data-countrycode="KH" value="855">Cambodia (+855)</option><option data-countrycode="CM" value="237">Cameroon (+237)</option><option data-countrycode="CA" value="1">Canada (+1)</option><option data-countrycode="CV" value="238">Cape Verde Islands (+238)</option><option data-countrycode="KY" value="1345">Cayman Islands (+1345)</option><option data-countrycode="CF" value="236">Central African Republic (+236)</option><option data-countrycode="CL" value="56">Chile (+56)</option><option data-countrycode="CN" value="86">China (+86)</option><option data-countrycode="CO" value="57">Colombia (+57)</option><option data-countrycode="KM" value="269">Comoros (+269)</option><option data-countrycode="CG" value="242">Congo (+242)</option><option data-countrycode="CK" value="682">Cook Islands (+682)</option><option data-countrycode="CR" value="506">Costa Rica (+506)</option><option data-countrycode="HR" value="385">Croatia (+385)</option><option data-countrycode="CU" value="53">Cuba (+53)</option><option data-countrycode="CY" value="90392">Cyprus North (+90392)</option><option data-countrycode="CY" value="357">Cyprus South (+357)</option><option data-countrycode="CZ" value="42">Czech Republic (+42)</option><option data-countrycode="DK" value="45">Denmark (+45)</option><option data-countrycode="DJ" value="253">Djibouti (+253)</option><option data-countrycode="DM" value="1809">Dominica (+1809)</option><option data-countrycode="DO" value="1809">Dominican Republic (+1809)</option><option data-countrycode="EC" value="593">Ecuador (+593)</option><option data-countrycode="EG" value="20">Egypt (+20)</option><option data-countrycode="SV" value="503">El Salvador (+503)</option><option data-countrycode="GQ" value="240">Equatorial Guinea (+240)</option><option data-countrycode="ER" value="291">Eritrea (+291)</option><option data-countrycode="EE" value="372">Estonia (+372)</option><option data-countrycode="ET" value="251">Ethiopia (+251)</option><option data-countrycode="FK" value="500">Falkland Islands (+500)</option><option data-countrycode="FO" value="298">Faroe Islands (+298)</option><option data-countrycode="FJ" value="679">Fiji (+679)</option><option data-countrycode="FI" value="358">Finland (+358)</option><option data-countrycode="FR" value="33">France (+33)</option><option data-countrycode="GF" value="594">French Guiana (+594)</option><option data-countrycode="PF" value="689">French Polynesia (+689)</option><option data-countrycode="GA" value="241">Gabon (+241)</option><option data-countrycode="GM" value="220">Gambia (+220)</option><option data-countrycode="GE" value="7880">Georgia (+7880)</option><option data-countrycode="DE" value="49">Germany (+49)</option><option data-countrycode="GH" value="233">Ghana (+233)</option><option data-countrycode="GI" value="350">Gibraltar (+350)</option><option data-countrycode="GR" value="30">Greece (+30)</option><option data-countrycode="GL" value="299">Greenland (+299)</option><option data-countrycode="GD" value="1473">Grenada (+1473)</option><option data-countrycode="GP" value="590">Guadeloupe (+590)</option><option data-countrycode="GU" value="671">Guam (+671)</option><option data-countrycode="GT" value="502">Guatemala (+502)</option><option data-countrycode="GN" value="224">Guinea (+224)</option><option data-countrycode="GW" value="245">Guinea - Bissau (+245)</option><option data-countrycode="GY" value="592">Guyana (+592)</option><option data-countrycode="HT" value="509">Haiti (+509)</option><option data-countrycode="HN" value="504">Honduras (+504)</option><option data-countrycode="HK" value="852">Hong Kong (+852)</option><option data-countrycode="HU" value="36">Hungary (+36)</option><option data-countrycode="IS" value="354">Iceland (+354)</option><option data-countrycode="IN" value="91">India (+91)</option><option data-countrycode="ID" value="62">Indonesia (+62)</option><option data-countrycode="IR" value="98">Iran (+98)</option><option data-countrycode="IQ" value="964">Iraq (+964)</option><option data-countrycode="IE" value="353">Ireland (+353)</option><option data-countrycode="IL" value="972">Israel (+972)</option><option data-countrycode="IT" value="39">Italy (+39)</option><option data-countrycode="JM" value="1876">Jamaica (+1876)</option><option data-countrycode="JP" value="81">Japan (+81)</option><option data-countrycode="JO" value="962">Jordan (+962)</option><option data-countrycode="KZ" value="7">Kazakhstan (+7)</option><option data-countrycode="KE" value="254">Kenya (+254)</option><option data-countrycode="KI" value="686">Kiribati (+686)</option><option data-countrycode="KP" value="850">Korea North (+850)</option><option data-countrycode="KR" value="82">Korea South (+82)</option><option data-countrycode="KW" value="965">Kuwait (+965)</option><option data-countrycode="KG" value="996">Kyrgyzstan (+996)</option><option data-countrycode="LA" value="856">Laos (+856)</option><option data-countrycode="LV" value="371">Latvia (+371)</option><option data-countrycode="LB" value="961">Lebanon (+961)</option><option data-countrycode="LS" value="266">Lesotho (+266)</option><option data-countrycode="LR" value="231">Liberia (+231)</option><option data-countrycode="LY" value="218">Libya (+218)</option><option data-countrycode="LI" value="417">Liechtenstein (+417)</option><option data-countrycode="LT" value="370">Lithuania (+370)</option><option data-countrycode="LU" value="352">Luxembourg (+352)</option><option data-countrycode="MO" value="853">Macao (+853)</option><option data-countrycode="MK" value="389">Macedonia (+389)</option><option data-countrycode="MG" value="261">Madagascar (+261)</option><option data-countrycode="MW" value="265">Malawi (+265)</option><option data-countrycode="MY" value="60">Malaysia (+60)</option><option data-countrycode="MV" value="960">Maldives (+960)</option><option data-countrycode="ML" value="223">Mali (+223)</option><option data-countrycode="MT" value="356">Malta (+356)</option><option data-countrycode="MH" value="692">Marshall Islands (+692)</option><option data-countrycode="MQ" value="596">Martinique (+596)</option><option data-countrycode="MR" value="222">Mauritania (+222)</option><option data-countrycode="YT" value="269">Mayotte (+269)</option><option data-countrycode="MX" value="52">Mexico (+52)</option><option data-countrycode="FM" value="691">Micronesia (+691)</option><option data-countrycode="MD" value="373">Moldova (+373)</option><option data-countrycode="MC" value="377">Monaco (+377)</option><option data-countrycode="MN" value="976">Mongolia (+976)</option><option data-countrycode="MS" value="1664">Montserrat (+1664)</option><option data-countrycode="MA" value="212">Morocco (+212)</option><option data-countrycode="MZ" value="258">Mozambique (+258)</option><option data-countrycode="MN" value="95">Myanmar (+95)</option><option data-countrycode="NA" value="264">Namibia (+264)</option><option data-countrycode="NR" value="674">Nauru (+674)</option><option data-countrycode="NP" value="977">Nepal (+977)</option><option data-countrycode="NL" value="31">Netherlands (+31)</option><option data-countrycode="NC" value="687">New Caledonia (+687)</option><option data-countrycode="NZ" value="64">New Zealand (+64)</option><option data-countrycode="NI" value="505">Nicaragua (+505)</option><option data-countrycode="NE" value="227">Niger (+227)</option><option data-countrycode="NG" value="234">Nigeria (+234)</option><option data-countrycode="NU" value="683">Niue (+683)</option><option data-countrycode="NF" value="672">Norfolk Islands (+672)</option><option data-countrycode="NP" value="670">Northern Marianas (+670)</option><option data-countrycode="NO" value="47">Norway (+47)</option><option data-countrycode="OM" value="968">Oman (+968)</option><option data-countrycode="PW" value="680">Palau (+680)</option><option data-countrycode="PA" value="507">Panama (+507)</option><option data-countrycode="PG" value="675">Papua New Guinea (+675)</option><option data-countrycode="PY" value="595">Paraguay (+595)</option><option data-countrycode="PE" value="51">Peru (+51)</option><option data-countrycode="PH" value="63">Philippines (+63)</option><option data-countrycode="PL" value="48">Poland (+48)</option><option data-countrycode="PT" value="351">Portugal (+351)</option><option data-countrycode="PR" value="1787">Puerto Rico (+1787)</option><option data-countrycode="QA" value="974">Qatar (+974)</option><option data-countrycode="RE" value="262">Reunion (+262)</option><option data-countrycode="RO" value="40">Romania (+40)</option><option data-countrycode="RU" value="7">Russia (+7)</option><option data-countrycode="RW" value="250">Rwanda (+250)</option><option data-countrycode="SM" value="378">San Marino (+378)</option><option data-countrycode="ST" value="239">Sao Tome &amp; Principe (+239)</option><option data-countrycode="SA" value="966">Saudi Arabia (+966)</option><option data-countrycode="SN" value="221">Senegal (+221)</option><option data-countrycode="CS" value="381">Serbia (+381)</option><option data-countrycode="SC" value="248">Seychelles (+248)</option><option data-countrycode="SL" value="232">Sierra Leone (+232)</option><option data-countrycode="SG" value="65">Singapore (+65)</option><option data-countrycode="SK" value="421">Slovak Republic (+421)</option><option data-countrycode="SI" value="386">Slovenia (+386)</option><option data-countrycode="SB" value="677">Solomon Islands (+677)</option><option data-countrycode="SO" value="252">Somalia (+252)</option><option data-countrycode="ZA" value="27">South Africa (+27)</option><option data-countrycode="ES" value="34">Spain (+34)</option><option data-countrycode="LK" value="94">Sri Lanka (+94)</option><option data-countrycode="SH" value="290">St. Helena (+290)</option><option data-countrycode="KN" value="1869">St. Kitts (+1869)</option><option data-countrycode="SC" value="1758">St. Lucia (+1758)</option><option data-countrycode="SD" value="249">Sudan (+249)</option><option data-countrycode="SR" value="597">Suriname (+597)</option><option data-countrycode="SZ" value="268">Swaziland (+268)</option><option data-countrycode="SE" value="46">Sweden (+46)</option><option data-countrycode="CH" value="41">Switzerland (+41)</option><option data-countrycode="SI" value="963">Syria (+963)</option><option data-countrycode="TW" value="886">Taiwan (+886)</option><option data-countrycode="TJ" value="7">Tajikstan (+7)</option><option data-countrycode="TH" value="66">Thailand (+66)</option><option data-countrycode="TG" value="228">Togo (+228)</option><option data-countrycode="TO" value="676">Tonga (+676)</option><option data-countrycode="TT" value="1868">Trinidad &amp; Tobago (+1868)</option><option data-countrycode="TN" value="216">Tunisia (+216)</option><option data-countrycode="TR" value="90">Turkey (+90)</option><option data-countrycode="TM" value="7">Turkmenistan (+7)</option><option data-countrycode="TM" value="993">Turkmenistan (+993)</option><option data-countrycode="TC" value="1649">Turks &amp; Caicos Islands (+1649)</option><option data-countrycode="TV" value="688">Tuvalu (+688)</option><option data-countrycode="UG" value="256">Uganda (+256)</option><option data-countrycode="UA" value="380">Ukraine (+380)</option><option data-countrycode="AE" value="971">United Arab Emirates (+971)</option><option data-countrycode="UY" value="598">Uruguay (+598)</option><option data-countrycode="UZ" value="7">Uzbekistan (+7)</option><option data-countrycode="VU" value="678">Vanuatu (+678)</option><option data-countrycode="VA" value="379">Vatican City (+379)</option><option data-countrycode="VE" value="58">Venezuela (+58)</option><option data-countrycode="VN" value="84">Vietnam (+84)</option><option data-countrycode="VG" value="84">Virgin Islands - British (+1284)</option><option data-countrycode="VI" value="84">Virgin Islands - US (+1340)</option><option data-countrycode="WF" value="681">Wallis &amp; Futuna (+681)</option><option data-countrycode="YE" value="969">Yemen (North)(+969)</option><option data-countrycode="YE" value="967">Yemen (South)(+967)</option><option data-countrycode="ZM" value="260">Zambia (+260)</option><option data-countrycode="ZW" value="263">Zimbabwe (+263)</option></optgroup></select></div><div class="col-sm-9" style="padding-left: 0px;"><input type="text" class="form-control" ng-model="formscope.mobile" placeholder="Please enter your mobile number" name="mobile" phone-input="" required-error-message="{{errorMessage.mobile.required}}" maxlength-error-message="{{errorMessage.mobile.maxlength}}" minlength-error-message="{{errorMessage.mobile.minlength}}" validator="required, maxlength=15, minlength=6" valid-method="blur" chars="numbers" autocomplete="off" ac-outside-click="showDropdownMobile = false"></div></div><div class="angucomplete-dropdown" ng-show="showDropdownMobile"><div class="angucomplete-searching" ng-show="!searchResult1 || searchResult1.length == 0">{{textNoResults}}</div><div class="angucomplete-row" ng-repeat="result in searchResult1" ng-click="selectResult(result)" ng-mouseenter="hoverRow($index)" ng-class="{\'angucomplete-selected-row\': $index == currentIndex}"><div class="angucomplete-title" ng-bind-html="result.name"></div><div ng-if="result.mobile && result.mobile != \'\'" class="angucomplete-description" ng-bind-html="result.mobile"></div></div></div></div></div><div class="row"><div class="form-group col-sm-12"><div><textarea id="comment" type="text" class="form-control" ng-model="formscope.comment" placeholder="Please enter a comment" name="comment" chars="letters" valid-method="blur"></textarea></div></div></div><div class="modal-footer"><button type="submit" ng-disabled="isSubmitted" class="btn btn-success" align="center">{{btnName}}</button></div></div></form></div>'),e.put("app/pages/tours/taskModal.html",'<div class="modal-content"><div class="modal-header"><button type="button" class="close" ng-click="$dismiss()" aria-label="Close"><em class="ion-ios-close-empty sn-link-close"></em></button><h4 class="modal-title" id="myModalLabel">Add Task</h4></div><form name="linkForm"><div class="modal-body"><div class="form-group"><input type="text" focus-me="" class="form-control" placeholder="Please add task" chars="text" maxlength="50" ng-model="task"></div><span style="color:red;" ng-if="message">{{message}}</span></div><div class="modal-footer"><button type="button" class="btn btn-primary" ng-click="ok(task)">Add Task</button></div></form></div>'),e.put("app/pages/tours/view.html",'<div class="widgets"><div class="row"><div class="col-md-12"><div ba-panel="" ba-panel-title="{{ activePageTitle}} Listing"><div class="form-group"><div class="form-group col-xs-12 col-sm-4 col-lg-2 pull-right"><select ng-change="filerdatatable()" ng-model="formData.filterData" name="filterData" ng-options="company.value as company.label for company in searchData" class="form-control"></select></div><button class="btn btn-primary" ng-if="havePermission(\'tours\',\'create\');" ui-sref="tours.add">Add Tour</button></div><div class="horizontal-scroll col-lg-12"><table datatable="" dt-instance="$parent.dtInstance" dt-options="dtOptions" dt-columns="dtColumns" class="row-border hover"></table></div></div></div></div></div>'),e.put("app/pages/tours/viewdetails (copy).html",'<div class="message-container viewTourMain"><div class="message"><div class="row paddingright1"><button ui-sref="tours.list" type="button" class="back-button btn btn-default btn-with-icon pull-right px-2"><i class="ion-chevron-left"></i>Back</button></div><div class="message-details"><span class="subject">Tour Contact Person Information</span></div><div class="line"></div><div class="person-info row"><div class="col-lg-4 col-md-12 no-padding"><div class="name"><h2 class="name-h">{{contactManagerDetails.visitor.name}}</h2><div><span class="mail-tag tag label label-success">{{contactManagerDetails.visitor.visitor_txt}}</span> <span class="mail-tag tag label label-info">{{contactManagerDetails.visitor.gender_txt}}</span></div></div></div><div class="col-lg-4 col-md-6 col-xs-12 no-padding"><div class="contact-info phone-email"><div><i class="ion-iphone"></i> <span class="phone">{{contactManagerDetails.visitor.phone_number | tel}}</span></div><div><i class="ion-iphone"></i> <span class="phone">{{contactManagerDetails.visitor.mobile | tel}}</span></div><div><i class="ion-email"></i> <span class="email">{{contactManagerDetails.visitor.email}}</span></div></div></div><div class="col-lg-4 col-md-6 col-xs-12 no-padding"><div class="contact-info position-address"><div><span class="position">{{contactManagerDetails.visitor.organization_txt}}</span></div><div><i class="ion-location"></i> <span class="address">{{contactManagerDetails.visitor.address}}</span></div></div></div></div><div class="message-details"><span class="subject">Tour Information</span></div><div class="line"></div><div class="message-body"><div class="col-md-12"><div class="col-lg-6 col-md-12"><div class="panel panel-default"><div class="panel-heading">General Information</div><div class="panel-body"><div class="form-group col-md-12"><label class="col-sm-3 control-label">Name:</label><div class="col-sm-9">{{formscope.name}}</div></div><div class="form-group col-md-12"><label class="col-sm-3 control-label">Organization:</label><div class="col-sm-9">{{formscope.organization}}</div></div><div class="form-group col-md-12"><label class="col-sm-3 control-label">Arrival Date:</label><div class="col-sm-9">{{formscope.start_date | amDateFormat:\'(dddd) DD, MMMM YYYY\'}}</div></div><div class="form-group col-md-12"><label class="col-sm-3 control-label">Transport Type:</label><div class="col-sm-9">{{formscope.tour_transport.name}}</div></div><div class="form-group col-md-12"><label class="col-sm-3 control-label">Location:</label><div class="col-sm-9">{{formscope.tour_location.name}}</div></div><div class="form-group col-md-12"><label class="col-sm-3 control-label">Person:</label><div class="col-sm-9"><p><span>Children:</span> {{formscope.children}}</p><p><span>Adults:</span> {{formscope.adults}}</p><p><span>Senior:</span> {{formscope.senior}}</p></div></div><div class="form-group col-md-12"><label class="col-sm-3 control-label">Special Request:</label><div class="col-sm-9">{{formscope.special_request}}</div></div></div></div></div><div class="col-lg-6 col-md-12"><div class="panel panel-default"><div class="panel-heading">Tour Task</div><div class="panel-body"><div class="form-group col-md-12"><label class="col-sm-3 control-label">Tour Type:</label><div class="col-sm-9">{{formscope.tour_tapes.name}}</div></div><div class="form-group col-md-12"><label class="col-sm-3 control-label">Task:</label><div class="col-sm-9" ng-repeat="task in formscope.tasks"><p>{{task.task}}</p><div class="line"></div></div></div></div></div></div></div></div><div class="message-details"><span class="subject">Visitors Information</span></div><div class="line"></div><div class="message-body"><div class="col-md-12"><div class="col-md-4" ng-repeat="visitor in visitors"><div class="panel panel-default bootstrap-panel"><div class="panel-heading">{{visitor.name}} ({{visitor.gender_txt}})</div><div class="panel-body"><p><label>Email:</label> {{visitor.email}}</p><p><label>Contact Number:</label> {{visitor.phone_number}}, {{visitor.mobile}}</p><p><label>Organization Type:</label> {{visitor.organization_txt}}</p><p><label>Visitor Type:</label> {{visitor.visitor_txt}}</p><p><label>Address:</label> {{visitor.address}}</p></div></div></div></div></div><div class="message-details"><span class="subject">Meals Information</span></div><div class="line"></div><div class="message-body"><div class="col-md-12"><div ng-if="formscope.meals"><div class="col-md-4" ng-repeat="meal in mealsType"><div class="panel panel-default bootstrap-panel xsmall-panel"><div class="panel-heading">{{meal.meal_txt}}</div><div class="panel-body"><p><label>Specific item:</label> {{meal.specific_item}}</p><p><span><label>Catering manager:</label> {{meal.catering_manager_txt}}</span> <span class="pull-right"><label>People:</label> {{meal.people}}</span></p><p><label>Meal Service:</label> {{meal.mealservice_txt}}</p><p><label>Meal Location:</label> {{meal.meallocation_txt}}</p></div></div></div></div></div></div></div></div>'),e.put("app/pages/tours/viewdetails.html",'<div class="widgets"><div class="viewTourMain"><div class="message"><div class="row"><div class="col-md-12"><h3 class="with-line"><a ng-show="editTourBtn" class="btn btn-primary ng-scope pull-right" style="margin-left: 10px;" ng-if="havePermission(\'tours\',\'update\');" ui-sref="tours.edit({ id: formscope.id })">Edit</a> <button ui-sref="tours.list" type="button" class="back-button btn btn-default btn-with-icon pull-right"><i class="ion-chevron-left"></i>Back</button> {{pageName}}</h3><div ba-panel="" ba-panel-class="with-scroll horizontal-tabs tabs-panel medium-panel" style="height: auto !important;"><uib-tabset active="$tabSetStatus.activeTab"><uib-tab heading="Tour Information"><div class="form-group col-md-6"><h3 class="with-line">Contact Person Information</h3><div class="form-group row clearfix"><label class="col-xs-12 col-sm-3">Name:</label><div class="col-xs-12 col-sm-9">{{contactManagerDetails.visitor.name}}</div></div><div class="form-group row clearfix"><label class="col-xs-12 col-sm-3">Email:</label><div class="col-xs-12 col-sm-9">{{contactManagerDetails.visitor.email}}</div></div><div class="form-group row clearfix"><label class="col-xs-12 col-sm-3">Mobile:</label><div class="col-xs-12 col-sm-9">{{contactManagerDetails.visitor.mobile | tel}}</div></div><div class="form-group row clearfix"><label class="col-xs-12 col-sm-3">Organization:</label><div class="col-xs-12 col-sm-9">{{contactManagerDetails.visitor.organization}}</div></div></div><div class="form-group col-md-6"><h3 class="with-line">Tour Manager Information</h3><div ng-if="formscope.manager"><div class="form-group row clearfix"><label class="col-xs-12 col-sm-3">Name:</label><div class="col-xs-12 col-sm-9">{{formscope.tour_manager.name}}</div></div><div class="form-group row clearfix"><label class="col-xs-12 col-sm-3">Email:</label><div class="col-xs-12 col-sm-9">{{formscope.tour_manager.email}}</div></div><div class="form-group row clearfix"><label class="col-xs-12 col-sm-3">Phone:</label><div class="col-xs-12 col-sm-9">{{formscope.tour_manager.phone_number | tel}}</div></div></div></div><div class="form-group col-md-12"><h3 class="with-line">Tour Information</h3><div class="form-group col-md-6"><div class="form-group row clearfix"><label class="col-xs-12 col-sm-3">Name:</label><div class="col-xs-12 col-sm-9">{{formscope.name}}</div></div><div class="form-group row clearfix"><label class="col-xs-12 col-sm-3">Organization:</label><div class="col-xs-12 col-sm-9">{{formscope.organization}}</div></div><div class="form-group row clearfix"><label class="col-xs-12 col-sm-3">Tour Date:</label><div class="col-xs-12 col-sm-9">{{formscope.start_date | amDateFormat:\'h:mm A (dddd) DD, MMMM YYYY \'}}</div></div><div class="form-group row clearfix"><label class="col-xs-12 col-sm-3">Transport Type:</label><div class="col-xs-12 col-sm-9">{{formscope.tour_transport.name}}</div></div><div class="form-group row clearfix"><label class="col-xs-12 col-sm-3">Affiliate:</label><div class="col-xs-12 col-sm-9">{{formscope.tour_affiliate.name}}</div></div><div class="form-group row clearfix"><label class="col-xs-12 col-sm-3">Tour Type:</label><div class="col-xs-12 col-sm-9">{{formscope.tour_tapes.name || \'-\'}}</div></div></div><div class="form-group col-md-6"><div class="form-group row clearfix"><label class="col-xs-12 col-sm-3">Visitor Category:</label><div class="col-xs-12 col-sm-9">{{visitorcategory}}</div></div><div class="form-group row clearfix"><label class="col-xs-12 col-sm-3">Special Request:</label><div class="col-xs-12 col-sm-9">{{formscope.special_request}}</div></div><div class="form-group row clearfix"><label class="col-xs-12 col-sm-3">Person:</label><div class="col-xs-12 col-sm-92 col-sm-3"><p><span>Children:</span> {{formscope.children}}</p></div><div class="col-xs-12 col-sm-3"><p><span>Adults:</span> {{formscope.adults}}</p></div><div class="col-xs-12 col-sm-3"><p><span>Senior:</span> {{formscope.senior}}</p></div></div><div class="form-group row clearfix"><label class="col-xs-12 col-sm-3">Total Guests:</label><div class="col-xs-12 col-sm-9">{{formscope.total_guest}}</div></div></div></div><div class="row"><div class="form-group col-md-12"><div class="form-group col-xs-12 col-lg-6 col-md-12 col-sm-12"><h3 class="with-line"><a type="submit" ng-if="tourCompleted && havePermission(\'document_in_tour\',\'create\')" ng-click="addDocument()" class="pull-right btn btn-success" align="Add Document">Add</a> Documents Information</h3><div class="horizontal-scroll"><table datatable="ng" dt-instance="documentInstance" dt-options="documentOptions" dt-column-defs="dtColumnDefs" class="row-border hover"><thead><tr><th>No</th><th>Title</th><th>Link</th><th>User</th><th>Action</th></tr></thead><tbody><tr ng-repeat="doc in docList"><td>{{$index+1}}</td><td>{{doc.title}}</td><td><a target="_blank" href="{{doc.link}}">View</a></td><td>{{doc.name}}</td><td><a ng-if="havePermission(\'document_in_tour\',\'update\') && tourCompleted && loginID == doc.created_by" ng-click="editDocument(doc, $index);"><i class="fa fa-edit"></i></a> <a ng-if="havePermission(\'document_in_tour\',\'delete\') && tourCompleted && loginID == doc.created_by" ng-confirm-click="Are you sure to delete this document?" confirmed--click="removeDoc($index)"><i class="fa fa-trash-o"></i></a></td></tr></tbody></table></div></div><div class="form-group col-xs-12 col-lg-6 col-md-12 col-sm-12"><h3 class="with-line"><a type="submit" ng-if="tourCompleted && havePermission(\'note_in_tour\',\'create\')" ng-click="addNote()" class="pull-right btn btn-success" align="Add Note">Add</a> Notes</h3><div class="horizontal-scroll"><table datatable="ng" dt-instance="notesInstance" dt-options="notesOptions" dt-column-defs="notesColumnDefs" class="row-border hover"><thead><tr><th>No</th><th>Note</th><th>User</th><th>Action</th></tr></thead><tbody><tr ng-repeat="note in notes"><td>{{$index+1}}</td><td>{{note.note}}</td><td>{{note.name}}</td><td><a ng-if="havePermission(\'note_in_tour\',\'update\') && tourCompleted && loginID == note.created_by" ng-click="editNote(note, $index);"><i class="fa fa-edit"></i></a> <a ng-if="havePermission(\'note_in_tour\',\'delete\') && tourCompleted && loginID == note.created_by" ng-confirm-click="Are you sure to delete this note?" confirmed--click="removeNotes($index)"><i class="fa fa-trash-o"></i></a></td></tr></tbody></table></div></div></div></div><div class="row"><div class="form-group col-md-12"><div class="form-group col-md-4" ng-if="havePermission(\'tours\',\'updatestatus\');"><h3 class="with-line">Tour Status</h3><select chosen="" ng-change="changeStatus(formscope.status);" ng-model="formscope.status" name="status" ng-options="type.emailtype as type.title disable when type.isDisabled for type in tourStatusOption" class="form-control"></select></div><div class="form-group col-md-4" ng-if="formscope.momento_type"><h3 class="with-line">Tour Momento</h3><div><p>Momento: {{getMomentoLabel(formscope.momento_type)}}</p><p>No. of Momentos: {{formscope.momento_quantity}}</p></div></div><div class="form-group col-md-12"><div ba-panel="" ba-panel-title="Activity" ba-panel-class="with-scroll"><div class="horizontal-scroll" style="padding: 15px"><table datatable="ng" dt-instance="historyInstance" dt-options="historyOptions" dt-column-defs="historyColumnDefs" class="row-border hover"><thead><tr class="sortable"><th>Activity</th><th>Date Time</th></tr></thead><tbody><tr ng-repeat="visitor in activity"><td>{{visitor.activity}}</td><td>{{visitor.created_at | amUtc | amLocal | amDateFormat:\'DD-MM-YYYY h:mm A\'}}</td></tr></tbody></table></div></div></div></div></div></uib-tab><uib-tab heading="Tour Task"><div class="form-group col-md-12"><button ng-show="tourCompleted" ng-if="havePermission(\'tourtasks\',\'create\');" class="btn btn-primary" ng-click="addTask()">Add Task</button></div><div class="form-group col-md-12"><div class="horizontal-scroll"><table class="table table-bordered table-hover table-condensed" ng-if="showTable === true"><tr><td>Task</td><td>Assign User</td><td>Status</td><td>Actions</td></tr><tr ng-repeat="user in formscope.tasks" class="editable-row"><td><span editable-text="user.task" e-chars="alpha-numeric" e-name="task" e-form="rowform" e-required="" onbeforesave="checkTask($data)">{{ user.task || \'empty\' }}</span></td><td class="select-td"><span editable-select="user.user_id" e-name="user_id" e-form="rowform" e-selectpicker="" e-ng-options="s.id as s.name disable when s.isDisabled for s in volunteersOption" onbeforesave="checkStatus($data)">{{ showUsers(user) }}</span></td><td class="select-td"><span editable-select="user.acknowledge" e-name="acknowledge" e-form="rowform" e-selectpicker="" e-ng-options="s.value as s.label disable when s.isDisabled for s in statusOption">{{ showStatus(user) }}</span></td><td><form onbeforesave="add_data($data, user.id, $index)" role="form" editable-form="" name="rowform" ng-show="rowform.$visible" class="form-buttons form-inline" shown="inserted == user"><button type="submit" ng-disabled="rowform.$waiting" class="btn btn-primary editable-table-button btn-xs">Save</button> <button ng-if="user.id == null" type="button" ng-disabled="rowform.$waiting" ng-click="cancelRow($index)" class="btn btn-default editable-table-button btn-xs">Cancel</button> <button ng-if="user.id != null" type="button" ng-disabled="rowform.$waiting" ng-click="rowform.$cancel()" class="btn btn-default editable-table-button btn-xs">Cancel</button></form><div class="buttons" ng-show="!rowform.$visible"><button ng-if="tourCompleted && havePermission(\'tourtasks\',\'update\');" class="btn btn-primary editable-table-button btn-xs" ng-click="rowform.$show()">Edit</button> <button ng-if="tourCompleted && havePermission(\'tourtasks\',\'delete\');" class="btn btn-danger editable-table-button btn-xs" ng-confirm-click="Are you sure to delete this task?" confirmed-click="removeUser($index, user.id)">Delete</button><div ng-if="user.acknowledge == 0 && userID == user.user_id"><button ng-if="tourCompleted && havePermission(\'tourtasks\',\'accept\')" class="btn btn-primary editable-table-button btn-xs" ng-click="actionTask(user.id, 1, $index)">Accept</button> <button ng-if="tourCompleted && havePermission(\'tourtasks\',\'reject\')" class="btn btn-danger editable-table-button btn-xs" ng-confirm-click="Are you sure to reject this task?" confirmed-click="actionTask(user.id, 2, $index)">Reject</button></div></div></td></tr></table></div></div></uib-tab><uib-tab heading="Visitors Information"><div ba-panel="" ba-panel-title="Visitors" ba-panel-class="with-scroll" ng-if="visitors.length"><div class="horizontal-scroll" style="padding: 15px"><table datatable="ng" dt-instance="visitorInstance" dt-options="visitorOptions" dt-column-defs="visitorColumnDefs" class="row-border hover"><thead><tr class="sortable"><th>Name</th><th>Email</th><th>Mobile</th><th>Organization type</th><th>Type</th><th>Organization</th><th>Momento</th><th>Note</th></tr></thead><tbody><tr ng-repeat="visitor in visitors"><td>{{visitor.name}}</td><td><a class="email-link" ng-href="mailto:{{visitor.email}}">{{visitor.email}}</a></td><td>{{visitor.mobile}}</td><td>{{showOrganizationTypeOption(visitor)}}</td><td>{{showVisitorOption(visitor)}}</td><td>{{visitor.organization}}</td><td>{{visitor.momentos_name || \'-\'}}</td><td>{{visitor.visitor_notes || \'-\'}}</td></tr></tbody></table></div></div></uib-tab><uib-tab heading="Reference Information"><div ba-panel="" ba-panel-title="References" ba-panel-class="with-scroll" ng-if="references.length"><div class="horizontal-scroll" style="padding: 15px"><table datatable="ng" dt-instance="referenceInstance" dt-options="referenceOptions" dt-column-defs="referenceColumnDefs" class="row-border hover"><thead><tr class="sortable"><th>Name</th><th>Email</th><th>Mobile</th><th>Comments</th></tr></thead><tbody><tr ng-repeat="reference in references"><td>{{reference.name}}</td><td><a class="email-link" ng-href="mailto:{{reference.email}}">{{reference.email}}</a></td><td>{{reference.mobile}}</td><td>{{reference.comment}}</td></tr></tbody></table></div></div></uib-tab><uib-tab heading="Meetings Information"><div ba-panel="" ba-panel-title="Meetings" ba-panel-class="with-scroll" ng-if="meetings.length"><div class="horizontal-scroll" style="padding: 15px"><table datatable="ng" dt-instance="meetingInstance" dt-options="meetingOptions" dt-column-defs="meetingColumnDefs" class="row-border hover"><thead><tr class="sortable"><th>Name</th><th>Email</th><th>Mobile</th><th>Meeting</th><th>Comments</th></tr></thead><tbody><tr ng-repeat="meeting in meetings"><td>{{meeting.name}}</td><td><a class="email-link" ng-href="mailto:{{meeting.email}}">{{meeting.email}}</a></td><td>{{meeting.mobile}}</td><td>{{meeting.meetingtime_hour + " : " + meeting.meetingtime_min + " " + meeting.meetingtime_format}}</td><td>{{meeting.comment}}</td></tr></tbody></table></div></div></uib-tab><uib-tab heading="Meals Information" ng-if="formscope.meals"><div class="col-md-4" ng-repeat="meal in mealsType"><div class="panel panel-default bootstrap-panel"><div class="panel-heading">{{showMealsTypeOption(meal)}}</div><div class="panel-body pading1522" style="padding: 15px 22px;"><p><label>Specific item:</label> {{meal.specific_item}}</p><p><span><label>Catering manager:</label> {{showCateringManager(meal)}}</span></p><p><span><label>People:</label> {{meal.people}}</span></p><p><label>Meal Service:</label> {{showMealServiceTypeOption(meal)}}</p><p><label>Meal Location:</label> {{showMealServiceLocationsOption(meal)}}</p></div></div></div></uib-tab><uib-tab heading="Tour Feedback"><div class="col-md-4"><div class="panel panel-default bootstrap-panel"><div class="panel-heading">Feedback</div><div class="panel-body pading1522" style="padding: 15px 22px;"><p><label>Ratings:</label> {{tourFeedback.rating}}</p><p><span><label>Comment:</label> {{tourFeedback.comment}}</span></p></div></div></div></uib-tab></uib-tabset></div></div></div></div></div></div>'),
e.put("app/pages/tours/visitorModal (copy).html",'<div class="modal-content"><div class="modal-header"><button type="button" class="close" ng-click="$dismiss()" aria-label="Close"><em class="ion-ios-close-empty sn-link-close"></em></button><h4 class="modal-title" id="myModalLabel">Add Visitor</h4></div><form ng-submit="add_data(add_form)" role="form" name="add_form"><div class="modal-body"><p>Add visitor information.</p>{{formscope.first_name}}<div class="row"><div class="form-group col-lg-4 col-md-12 col-sm-12"><label for="input01">First Name<code>*</code></label><input type="text" class="form-control" ng-model="formscope.first_name" placeholder="Please enter first name" name="first_name" required-error-message="{{errorMessage.first_name.required}}" minlength-error-message="{{errorMessage.first_name.minlength}}" maxlength-error-message="{{errorMessage.first_name.maxlength}}" validator="required, minlength=2, maxlength=20" valid-method="blur" chars="letters" ng-blur="checkPhoneNumber(\'first_name\', formscope.first_name)"></div><div class="form-group col-lg-4 col-md-12 col-sm-12"><label for="input01">Middle Name</label> <input type="text" class="form-control" ng-model="formscope.middle_name" placeholder="Please enter first name" name="middle_name"></div><div class="form-group col-lg-4 col-md-12 col-sm-12"><label for="input01">Last Name<code>*</code></label><input type="text" class="form-control" ng-model="formscope.last_name" placeholder="Please enter Last name" name="last_name" required-error-message="{{errorMessage.last_name.required}}" minlength-error-message="{{errorMessage.last_name.minlength}}" maxlength-error-message="{{errorMessage.last_name.maxlength}}" validator="required, minlength=2, maxlength=20" valid-method="blur" chars="letters" ng-blur="checkPhoneNumber(\'last_name\', formscope.last_name)"></div></div><div class="row"><div class="form-group col-lg-6 col-md-12 col-sm-12"><label for="input01">Email<code>*</code></label><input type="email" class="form-control" ng-model="formscope.email" placeholder="Please enter email" name="email" ng-blur="checkPhoneNumber(\'email\', formscope.email)" required-error-message="{{errorMessage.email.required}}" email-error-message="{{errorMessage.email.invalidEmail}}" minlength-error-message="{{errorMessage.email.minlength}}" maxlength-error-message="{{errorMessage.email.maxlength}}" validator="required, email, minlength=2, maxlength=100" valid-method="blur"></div><div class="form-group col-lg-6 col-md-12 col-sm-12"><label for="input04">Mobile<code>*</code></label> <input type="text" class="form-control" ng-blur="checkPhoneNumber(\'mobile\', formscope.mobile)" ng-model="formscope.mobile" placeholder="Please enter your mobile number" phone-input="" name="mobile" required-error-message="{{errorMessage.mobile.required}}" maxlength-error-message="{{errorMessage.mobile.maxlength}}" minlength-error-message="{{errorMessage.mobile.minlength}}" validator="required, maxlength=15, minlength=10" valid-method="blur" chars="numbers"></div></div><div class="row"><div class="form-group col-lg-6 col-md-12 col-sm-12"><label for="input04">Alternate Phone Number</label> <input type="text" class="form-control" ng-model="formscope.phone_number" placeholder="Please enter your alternate phone number" phone-input="" name="phone_number" chars="numbers"></div><div class="form-group col-lg-6 col-md-12 col-sm-12"><label for="input04">Gender</label><select chosen="" ng-model="formscope.gender" name="gender" ng-options="company.value as company.label for company in genderOption" class="form-control"></select></div></div><div class="row"><div class="form-group col-lg-4 col-md-12 col-sm-12"><label for="textarea01">Visitor Type<code>*</code></label><select chosen="" ng-model="formscope.visitor_type" name="visitor_type" ng-options="company.id as company.name for company in VisitorOption" class="form-control" required-error-message="{{errorMessage.visitor_type.required}}" validator="required" valid-method="blur" validation-group="visitor_type_error_message"></select><span id="visitor_type_error_message"></span></div><div class="form-group col-lg-4 col-md-12 col-sm-12"><label for="textarea01">Organization Type</label><select chosen="" ng-model="formscope.organization_id" name="organization_id" ng-options="company.id as company.name for company in OrganizationOption" class="form-control"></select></div><div class="form-group col-lg-4 col-md-12 col-sm-12"><label for="input01">Organization Name</label><angucomplete-alt id="ex1" placeholder="Please enter organization name" pause="100" initial-value="formscope.organization" selected-object="residentSelected" local-data="organizationNameOption" search-fields="organization" title-field="organization" minlength="1" input-class="form-control" match-class="highlight" auto-match="true" override-suggestions="true"></angucomplete-alt></div></div><div class="row"><div class="form-group col-lg-6 col-md-12 col-sm-12"><label>Street 1</label> <input type="text" class="form-control" ng-model="formscope.address" placeholder="Please enter Street 1" name="address" chars="text"></div><div class="form-group col-lg-6 col-md-12 col-sm-12"><label>Street 2</label> <input type="text" class="form-control" ng-model="formscope.address1" placeholder="Please enter Street 2" name="address1" chars="text"></div></div><div class="row"><div class="form-group col-lg-6 col-md-12 col-sm-12"><label>Country</label><select chosen="" ng-model="formscope.country_id" name="country_id" ng-options="country.id as country.country_name for country in countries" class="form-control"></select></div><div class="form-group col-lg-6 col-md-12 col-sm-12"><label>State</label> <input type="text" class="form-control" ng-model="formscope.state" placeholder="Please enter state name" name="state" chars="text"></div></div><div class="row"><div class="form-group col-lg-6 col-md-12 col-sm-12"><label>City</label> <input type="text" class="form-control" ng-model="formscope.city" placeholder="Please enter city name" name="city" chars="text"></div><div class="form-group col-lg-6 col-md-12 col-sm-12"><label>Zip Code</label> <input type="text" placeholder="Please enter zip code" class="form-control" name="zip_code" ng-model="formscope.zip_code" chars="numbers"></div></div></div><div class="modal-footer"><button type="submit" ng-disabled="isSubmitted" class="btn btn-success" align="center">{{btnName}}</button></div></form></div>'),e.put("app/pages/tours/visitorModal.html",'<div class="modal-content"><div class="modal-header"><button type="button" class="close" ng-click="$dismiss()" aria-label="Close"><em class="ion-ios-close-empty sn-link-close"></em></button><h4 class="modal-title" id="myModalLabel">{{titleName}}</h4></div><form ng-submit="add_data(add_form)" role="form" name="add_form"><div class="modal-body"><p>{{btnName}} visitor information.</p><div class="row"><div class="form-group col-lg-4 col-md-12 col-sm-12"><label for="input01">First Name<code>*</code></label><div class="angucomplete-holder angucomplete-dropdown-visible" ng-class="{\'angucomplete-dropdown-visible\': showDropdownFirstName}"><input focus-me="" id="FirstName" type="text" class="form-control" ng-model="formscope.first_name" placeholder="Please enter first name" name="first_name" required-error-message="{{errorMessage.first_name.required}}" minlength-error-message="{{errorMessage.first_name.minlength}}" maxlength-error-message="{{errorMessage.first_name.maxlength}}" validator="required, minlength=2, maxlength=20" chars="letters" valid-method="blur" ng-keyup="checkPhoneNumber(formscope.first_name, \'first_name\', $event)" autocomplete="off" ac-outside-click="showDropdownFirstName = false"><div id="FirstName_dropdown" class="angucomplete-dropdown" ng-show="showDropdownFirstName"><div class="angucomplete-searching" ng-show="!searchResult1 || searchResult1.length == 0">{{textNoResults}}</div><div class="angucomplete-row ng-scope" ng-repeat="result in searchResult1" ng-click="selectResult(result)" ng-mouseenter="hoverRow($index)" ng-class="{\'angucomplete-selected-row\': $index == currentIndex}"><div class="angucomplete-title" ng-bind-html="result.name"></div><div ng-if="result.mobile && result.mobile != \'\'" class="angucomplete-description" ng-bind-html="result.mobile"></div></div></div></div></div><div class="form-group col-lg-4 col-md-12 col-sm-12"><label for="input01">Middle Name</label> <input type="text" class="form-control" ng-model="formscope.middle_name" placeholder="Please enter middle name" name="middle_name"></div><div class="form-group col-lg-4 col-md-12 col-sm-12"><label for="input01">Last Name<code>*</code></label><input type="text" class="form-control" ng-model="formscope.last_name" placeholder="Please enter Last name" name="last_name" required-error-message="{{errorMessage.last_name.required}}" minlength-error-message="{{errorMessage.last_name.minlength}}" maxlength-error-message="{{errorMessage.last_name.maxlength}}" validator="required, minlength=2, maxlength=20" valid-method="blur" chars="letters" ac-outside-click="showDropdownLastName = false" ng-keyup="checkPhoneNumber(formscope.last_name, \'last_name\', $event)" autocomplete="off"><div class="angucomplete-dropdown" ng-show="showDropdownLastName"><div class="angucomplete-searching" ng-show="!searchResult1 || searchResult1.length == 0">{{textNoResults}}</div><div class="angucomplete-row" ng-repeat="result in searchResult1" ng-click="selectResult(result)" ng-mouseenter="hoverRow($index)" ng-class="{\'angucomplete-selected-row\': $index == currentIndex}"><div class="angucomplete-title" ng-bind-html="result.name"></div><div ng-if="result.mobile && result.mobile != \'\'" class="angucomplete-description" ng-bind-html="result.mobile"></div></div></div></div></div><div class="row"><div class="form-group col-lg-6 col-md-12 col-sm-12"><label for="input01">Email<code>*</code></label><input type="email" class="form-control" ng-model="formscope.email" placeholder="Please enter email" name="email" required-error-message="{{errorMessage.email.required}}" email-error-message="{{errorMessage.email.invalidEmail}}" minlength-error-message="{{errorMessage.email.minlength}}" maxlength-error-message="{{errorMessage.email.maxlength}}" validator="required, email, minlength=2, maxlength=100" valid-method="blur" ac-outside-click="showDropdownEmail = false" ng-keyup="checkPhoneNumber(formscope.email, \'email\', $event)" autocomplete="off"><div class="angucomplete-dropdown" ng-show="showDropdownEmail"><div class="angucomplete-searching" ng-show="!searchResult1 || searchResult1.length == 0">{{textNoResults}}</div><div class="angucomplete-row" ng-repeat="result in searchResult1" ng-click="selectResult(result)" ng-mouseenter="hoverRow($index)" ng-class="{\'angucomplete-selected-row\': $index == currentIndex}"><div class="angucomplete-title" ng-bind-html="result.name"></div><div ng-if="result.mobile && result.mobile != \'\'" class="angucomplete-description" ng-bind-html="result.mobile"></div></div></div></div><div class="form-group col-lg-6 col-md-12 col-sm-12"><label for="input04">Mobile<code>*</code></label><div class="row"><div class="col-sm-3" style="padding-right: 0px;"><select ng-model="formscope.country_code" name="country_code" class="form-control" id=""><option data-countrycode="GB" value="44" selected="">UK (+44)</option><option data-countrycode="US" value="1">USA (+1)</option><optgroup label="Other countries"><option data-countrycode="DZ" value="213">Algeria (+213)</option><option data-countrycode="AD" value="376">Andorra (+376)</option><option data-countrycode="AO" value="244">Angola (+244)</option><option data-countrycode="AI" value="1264">Anguilla (+1264)</option><option data-countrycode="AG" value="1268">Antigua &amp; Barbuda (+1268)</option><option data-countrycode="AR" value="54">Argentina (+54)</option><option data-countrycode="AM" value="374">Armenia (+374)</option><option data-countrycode="AW" value="297">Aruba (+297)</option><option data-countrycode="AU" value="61">Australia (+61)</option><option data-countrycode="AT" value="43">Austria (+43)</option><option data-countrycode="AZ" value="994">Azerbaijan (+994)</option><option data-countrycode="BS" value="1242">Bahamas (+1242)</option><option data-countrycode="BH" value="973">Bahrain (+973)</option><option data-countrycode="BD" value="880">Bangladesh (+880)</option><option data-countrycode="BB" value="1246">Barbados (+1246)</option><option data-countrycode="BY" value="375">Belarus (+375)</option><option data-countrycode="BE" value="32">Belgium (+32)</option><option data-countrycode="BZ" value="501">Belize (+501)</option><option data-countrycode="BJ" value="229">Benin (+229)</option><option data-countrycode="BM" value="1441">Bermuda (+1441)</option><option data-countrycode="BT" value="975">Bhutan (+975)</option><option data-countrycode="BO" value="591">Bolivia (+591)</option><option data-countrycode="BA" value="387">Bosnia Herzegovina (+387)</option><option data-countrycode="BW" value="267">Botswana (+267)</option><option data-countrycode="BR" value="55">Brazil (+55)</option><option data-countrycode="BN" value="673">Brunei (+673)</option><option data-countrycode="BG" value="359">Bulgaria (+359)</option><option data-countrycode="BF" value="226">Burkina Faso (+226)</option><option data-countrycode="BI" value="257">Burundi (+257)</option><option data-countrycode="KH" value="855">Cambodia (+855)</option><option data-countrycode="CM" value="237">Cameroon (+237)</option><option data-countrycode="CA" value="1">Canada (+1)</option><option data-countrycode="CV" value="238">Cape Verde Islands (+238)</option><option data-countrycode="KY" value="1345">Cayman Islands (+1345)</option><option data-countrycode="CF" value="236">Central African Republic (+236)</option><option data-countrycode="CL" value="56">Chile (+56)</option><option data-countrycode="CN" value="86">China (+86)</option><option data-countrycode="CO" value="57">Colombia (+57)</option><option data-countrycode="KM" value="269">Comoros (+269)</option><option data-countrycode="CG" value="242">Congo (+242)</option><option data-countrycode="CK" value="682">Cook Islands (+682)</option><option data-countrycode="CR" value="506">Costa Rica (+506)</option><option data-countrycode="HR" value="385">Croatia (+385)</option><option data-countrycode="CU" value="53">Cuba (+53)</option><option data-countrycode="CY" value="90392">Cyprus North (+90392)</option><option data-countrycode="CY" value="357">Cyprus South (+357)</option><option data-countrycode="CZ" value="42">Czech Republic (+42)</option><option data-countrycode="DK" value="45">Denmark (+45)</option><option data-countrycode="DJ" value="253">Djibouti (+253)</option><option data-countrycode="DM" value="1809">Dominica (+1809)</option><option data-countrycode="DO" value="1809">Dominican Republic (+1809)</option><option data-countrycode="EC" value="593">Ecuador (+593)</option><option data-countrycode="EG" value="20">Egypt (+20)</option><option data-countrycode="SV" value="503">El Salvador (+503)</option><option data-countrycode="GQ" value="240">Equatorial Guinea (+240)</option><option data-countrycode="ER" value="291">Eritrea (+291)</option><option data-countrycode="EE" value="372">Estonia (+372)</option><option data-countrycode="ET" value="251">Ethiopia (+251)</option><option data-countrycode="FK" value="500">Falkland Islands (+500)</option><option data-countrycode="FO" value="298">Faroe Islands (+298)</option><option data-countrycode="FJ" value="679">Fiji (+679)</option><option data-countrycode="FI" value="358">Finland (+358)</option><option data-countrycode="FR" value="33">France (+33)</option><option data-countrycode="GF" value="594">French Guiana (+594)</option><option data-countrycode="PF" value="689">French Polynesia (+689)</option><option data-countrycode="GA" value="241">Gabon (+241)</option><option data-countrycode="GM" value="220">Gambia (+220)</option><option data-countrycode="GE" value="7880">Georgia (+7880)</option><option data-countrycode="DE" value="49">Germany (+49)</option><option data-countrycode="GH" value="233">Ghana (+233)</option><option data-countrycode="GI" value="350">Gibraltar (+350)</option><option data-countrycode="GR" value="30">Greece (+30)</option><option data-countrycode="GL" value="299">Greenland (+299)</option><option data-countrycode="GD" value="1473">Grenada (+1473)</option><option data-countrycode="GP" value="590">Guadeloupe (+590)</option><option data-countrycode="GU" value="671">Guam (+671)</option><option data-countrycode="GT" value="502">Guatemala (+502)</option><option data-countrycode="GN" value="224">Guinea (+224)</option><option data-countrycode="GW" value="245">Guinea - Bissau (+245)</option><option data-countrycode="GY" value="592">Guyana (+592)</option><option data-countrycode="HT" value="509">Haiti (+509)</option><option data-countrycode="HN" value="504">Honduras (+504)</option><option data-countrycode="HK" value="852">Hong Kong (+852)</option><option data-countrycode="HU" value="36">Hungary (+36)</option><option data-countrycode="IS" value="354">Iceland (+354)</option><option data-countrycode="IN" value="91">India (+91)</option><option data-countrycode="ID" value="62">Indonesia (+62)</option><option data-countrycode="IR" value="98">Iran (+98)</option><option data-countrycode="IQ" value="964">Iraq (+964)</option><option data-countrycode="IE" value="353">Ireland (+353)</option><option data-countrycode="IL" value="972">Israel (+972)</option><option data-countrycode="IT" value="39">Italy (+39)</option><option data-countrycode="JM" value="1876">Jamaica (+1876)</option><option data-countrycode="JP" value="81">Japan (+81)</option><option data-countrycode="JO" value="962">Jordan (+962)</option><option data-countrycode="KZ" value="7">Kazakhstan (+7)</option><option data-countrycode="KE" value="254">Kenya (+254)</option><option data-countrycode="KI" value="686">Kiribati (+686)</option><option data-countrycode="KP" value="850">Korea North (+850)</option><option data-countrycode="KR" value="82">Korea South (+82)</option><option data-countrycode="KW" value="965">Kuwait (+965)</option><option data-countrycode="KG" value="996">Kyrgyzstan (+996)</option><option data-countrycode="LA" value="856">Laos (+856)</option><option data-countrycode="LV" value="371">Latvia (+371)</option><option data-countrycode="LB" value="961">Lebanon (+961)</option><option data-countrycode="LS" value="266">Lesotho (+266)</option><option data-countrycode="LR" value="231">Liberia (+231)</option><option data-countrycode="LY" value="218">Libya (+218)</option><option data-countrycode="LI" value="417">Liechtenstein (+417)</option><option data-countrycode="LT" value="370">Lithuania (+370)</option><option data-countrycode="LU" value="352">Luxembourg (+352)</option><option data-countrycode="MO" value="853">Macao (+853)</option><option data-countrycode="MK" value="389">Macedonia (+389)</option><option data-countrycode="MG" value="261">Madagascar (+261)</option><option data-countrycode="MW" value="265">Malawi (+265)</option><option data-countrycode="MY" value="60">Malaysia (+60)</option><option data-countrycode="MV" value="960">Maldives (+960)</option><option data-countrycode="ML" value="223">Mali (+223)</option><option data-countrycode="MT" value="356">Malta (+356)</option><option data-countrycode="MH" value="692">Marshall Islands (+692)</option><option data-countrycode="MQ" value="596">Martinique (+596)</option><option data-countrycode="MR" value="222">Mauritania (+222)</option><option data-countrycode="YT" value="269">Mayotte (+269)</option><option data-countrycode="MX" value="52">Mexico (+52)</option><option data-countrycode="FM" value="691">Micronesia (+691)</option><option data-countrycode="MD" value="373">Moldova (+373)</option><option data-countrycode="MC" value="377">Monaco (+377)</option><option data-countrycode="MN" value="976">Mongolia (+976)</option><option data-countrycode="MS" value="1664">Montserrat (+1664)</option><option data-countrycode="MA" value="212">Morocco (+212)</option><option data-countrycode="MZ" value="258">Mozambique (+258)</option><option data-countrycode="MN" value="95">Myanmar (+95)</option><option data-countrycode="NA" value="264">Namibia (+264)</option><option data-countrycode="NR" value="674">Nauru (+674)</option><option data-countrycode="NP" value="977">Nepal (+977)</option><option data-countrycode="NL" value="31">Netherlands (+31)</option><option data-countrycode="NC" value="687">New Caledonia (+687)</option><option data-countrycode="NZ" value="64">New Zealand (+64)</option><option data-countrycode="NI" value="505">Nicaragua (+505)</option><option data-countrycode="NE" value="227">Niger (+227)</option><option data-countrycode="NG" value="234">Nigeria (+234)</option><option data-countrycode="NU" value="683">Niue (+683)</option><option data-countrycode="NF" value="672">Norfolk Islands (+672)</option><option data-countrycode="NP" value="670">Northern Marianas (+670)</option><option data-countrycode="NO" value="47">Norway (+47)</option><option data-countrycode="OM" value="968">Oman (+968)</option><option data-countrycode="PW" value="680">Palau (+680)</option><option data-countrycode="PA" value="507">Panama (+507)</option><option data-countrycode="PG" value="675">Papua New Guinea (+675)</option><option data-countrycode="PY" value="595">Paraguay (+595)</option><option data-countrycode="PE" value="51">Peru (+51)</option><option data-countrycode="PH" value="63">Philippines (+63)</option><option data-countrycode="PL" value="48">Poland (+48)</option><option data-countrycode="PT" value="351">Portugal (+351)</option><option data-countrycode="PR" value="1787">Puerto Rico (+1787)</option><option data-countrycode="QA" value="974">Qatar (+974)</option><option data-countrycode="RE" value="262">Reunion (+262)</option><option data-countrycode="RO" value="40">Romania (+40)</option><option data-countrycode="RU" value="7">Russia (+7)</option><option data-countrycode="RW" value="250">Rwanda (+250)</option><option data-countrycode="SM" value="378">San Marino (+378)</option><option data-countrycode="ST" value="239">Sao Tome &amp; Principe (+239)</option><option data-countrycode="SA" value="966">Saudi Arabia (+966)</option><option data-countrycode="SN" value="221">Senegal (+221)</option><option data-countrycode="CS" value="381">Serbia (+381)</option><option data-countrycode="SC" value="248">Seychelles (+248)</option><option data-countrycode="SL" value="232">Sierra Leone (+232)</option><option data-countrycode="SG" value="65">Singapore (+65)</option><option data-countrycode="SK" value="421">Slovak Republic (+421)</option><option data-countrycode="SI" value="386">Slovenia (+386)</option><option data-countrycode="SB" value="677">Solomon Islands (+677)</option><option data-countrycode="SO" value="252">Somalia (+252)</option><option data-countrycode="ZA" value="27">South Africa (+27)</option><option data-countrycode="ES" value="34">Spain (+34)</option><option data-countrycode="LK" value="94">Sri Lanka (+94)</option><option data-countrycode="SH" value="290">St. Helena (+290)</option><option data-countrycode="KN" value="1869">St. Kitts (+1869)</option><option data-countrycode="SC" value="1758">St. Lucia (+1758)</option><option data-countrycode="SD" value="249">Sudan (+249)</option><option data-countrycode="SR" value="597">Suriname (+597)</option><option data-countrycode="SZ" value="268">Swaziland (+268)</option><option data-countrycode="SE" value="46">Sweden (+46)</option><option data-countrycode="CH" value="41">Switzerland (+41)</option><option data-countrycode="SI" value="963">Syria (+963)</option><option data-countrycode="TW" value="886">Taiwan (+886)</option><option data-countrycode="TJ" value="7">Tajikstan (+7)</option><option data-countrycode="TH" value="66">Thailand (+66)</option><option data-countrycode="TG" value="228">Togo (+228)</option><option data-countrycode="TO" value="676">Tonga (+676)</option><option data-countrycode="TT" value="1868">Trinidad &amp; Tobago (+1868)</option><option data-countrycode="TN" value="216">Tunisia (+216)</option><option data-countrycode="TR" value="90">Turkey (+90)</option><option data-countrycode="TM" value="7">Turkmenistan (+7)</option><option data-countrycode="TM" value="993">Turkmenistan (+993)</option><option data-countrycode="TC" value="1649">Turks &amp; Caicos Islands (+1649)</option><option data-countrycode="TV" value="688">Tuvalu (+688)</option><option data-countrycode="UG" value="256">Uganda (+256)</option><option data-countrycode="UA" value="380">Ukraine (+380)</option><option data-countrycode="AE" value="971">United Arab Emirates (+971)</option><option data-countrycode="UY" value="598">Uruguay (+598)</option><option data-countrycode="UZ" value="7">Uzbekistan (+7)</option><option data-countrycode="VU" value="678">Vanuatu (+678)</option><option data-countrycode="VA" value="379">Vatican City (+379)</option><option data-countrycode="VE" value="58">Venezuela (+58)</option><option data-countrycode="VN" value="84">Vietnam (+84)</option><option data-countrycode="VG" value="84">Virgin Islands - British (+1284)</option><option data-countrycode="VI" value="84">Virgin Islands - US (+1340)</option><option data-countrycode="WF" value="681">Wallis &amp; Futuna (+681)</option><option data-countrycode="YE" value="969">Yemen (North)(+969)</option><option data-countrycode="YE" value="967">Yemen (South)(+967)</option><option data-countrycode="ZM" value="260">Zambia (+260)</option><option data-countrycode="ZW" value="263">Zimbabwe (+263)</option></optgroup></select></div><div class="col-sm-9" style="padding-left: 0px;"><input type="text" class="form-control" ng-blur="checkPhoneNumber(formscope.mobile)" ng-model="formscope.mobile" placeholder="Please enter your mobile number" name="mobile" required-error-message="{{errorMessage.mobile.required}}" maxlength-error-message="{{errorMessage.mobile.maxlength}}" minlength-error-message="{{errorMessage.mobile.minlength}}" validator="required, maxlength=15, minlength=6" valid-method="blur" ng-keyup="checkPhoneNumber(formscope.mobile, \'mobile\', $event)" autocomplete="off" ac-outside-click="showDropdownMobile = false"></div></div><div class="angucomplete-dropdown" ng-show="showDropdownMobile"><div class="angucomplete-searching" ng-show="!searchResult1 || searchResult1.length == 0">{{textNoResults}}</div><div class="angucomplete-row" ng-repeat="result in searchResult1" ng-click="selectResult(result)" ng-mouseenter="hoverRow($index)" ng-class="{\'angucomplete-selected-row\': $index == currentIndex}"><div class="angucomplete-title" ng-bind-html="result.name"></div><div ng-if="result.mobile && result.mobile != \'\'" class="angucomplete-description" ng-bind-html="result.mobile"></div></div></div></div></div><div class="row"><div class="form-group col-lg-6 col-md-12 col-sm-12"><label for="input04">Alternate Phone Number</label><div class="row"><div class="col-sm-3" style="padding-right: 0px;"><select ng-model="formscope.phone_number_country_code" name="phone_number_country_code" class="form-control" id=""><option data-countrycode="GB" value="44">UK (+44)</option><option data-countrycode="US" value="1">USA (+1)</option><optgroup label="Other countries"><option data-countrycode="DZ" value="213">Algeria (+213)</option><option data-countrycode="AD" value="376">Andorra (+376)</option><option data-countrycode="AO" value="244">Angola (+244)</option><option data-countrycode="AI" value="1264">Anguilla (+1264)</option><option data-countrycode="AG" value="1268">Antigua &amp; Barbuda (+1268)</option><option data-countrycode="AR" value="54">Argentina (+54)</option><option data-countrycode="AM" value="374">Armenia (+374)</option><option data-countrycode="AW" value="297">Aruba (+297)</option><option data-countrycode="AU" value="61">Australia (+61)</option><option data-countrycode="AT" value="43">Austria (+43)</option><option data-countrycode="AZ" value="994">Azerbaijan (+994)</option><option data-countrycode="BS" value="1242">Bahamas (+1242)</option><option data-countrycode="BH" value="973">Bahrain (+973)</option><option data-countrycode="BD" value="880">Bangladesh (+880)</option><option data-countrycode="BB" value="1246">Barbados (+1246)</option><option data-countrycode="BY" value="375">Belarus (+375)</option><option data-countrycode="BE" value="32">Belgium (+32)</option><option data-countrycode="BZ" value="501">Belize (+501)</option><option data-countrycode="BJ" value="229">Benin (+229)</option><option data-countrycode="BM" value="1441">Bermuda (+1441)</option><option data-countrycode="BT" value="975">Bhutan (+975)</option><option data-countrycode="BO" value="591">Bolivia (+591)</option><option data-countrycode="BA" value="387">Bosnia Herzegovina (+387)</option><option data-countrycode="BW" value="267">Botswana (+267)</option><option data-countrycode="BR" value="55">Brazil (+55)</option><option data-countrycode="BN" value="673">Brunei (+673)</option><option data-countrycode="BG" value="359">Bulgaria (+359)</option><option data-countrycode="BF" value="226">Burkina Faso (+226)</option><option data-countrycode="BI" value="257">Burundi (+257)</option><option data-countrycode="KH" value="855">Cambodia (+855)</option><option data-countrycode="CM" value="237">Cameroon (+237)</option><option data-countrycode="CA" value="1">Canada (+1)</option><option data-countrycode="CV" value="238">Cape Verde Islands (+238)</option><option data-countrycode="KY" value="1345">Cayman Islands (+1345)</option><option data-countrycode="CF" value="236">Central African Republic (+236)</option><option data-countrycode="CL" value="56">Chile (+56)</option><option data-countrycode="CN" value="86">China (+86)</option><option data-countrycode="CO" value="57">Colombia (+57)</option><option data-countrycode="KM" value="269">Comoros (+269)</option><option data-countrycode="CG" value="242">Congo (+242)</option><option data-countrycode="CK" value="682">Cook Islands (+682)</option><option data-countrycode="CR" value="506">Costa Rica (+506)</option><option data-countrycode="HR" value="385">Croatia (+385)</option><option data-countrycode="CU" value="53">Cuba (+53)</option><option data-countrycode="CY" value="90392">Cyprus North (+90392)</option><option data-countrycode="CY" value="357">Cyprus South (+357)</option><option data-countrycode="CZ" value="42">Czech Republic (+42)</option><option data-countrycode="DK" value="45">Denmark (+45)</option><option data-countrycode="DJ" value="253">Djibouti (+253)</option><option data-countrycode="DM" value="1809">Dominica (+1809)</option><option data-countrycode="DO" value="1809">Dominican Republic (+1809)</option><option data-countrycode="EC" value="593">Ecuador (+593)</option><option data-countrycode="EG" value="20">Egypt (+20)</option><option data-countrycode="SV" value="503">El Salvador (+503)</option><option data-countrycode="GQ" value="240">Equatorial Guinea (+240)</option><option data-countrycode="ER" value="291">Eritrea (+291)</option><option data-countrycode="EE" value="372">Estonia (+372)</option><option data-countrycode="ET" value="251">Ethiopia (+251)</option><option data-countrycode="FK" value="500">Falkland Islands (+500)</option><option data-countrycode="FO" value="298">Faroe Islands (+298)</option><option data-countrycode="FJ" value="679">Fiji (+679)</option><option data-countrycode="FI" value="358">Finland (+358)</option><option data-countrycode="FR" value="33">France (+33)</option><option data-countrycode="GF" value="594">French Guiana (+594)</option><option data-countrycode="PF" value="689">French Polynesia (+689)</option><option data-countrycode="GA" value="241">Gabon (+241)</option><option data-countrycode="GM" value="220">Gambia (+220)</option><option data-countrycode="GE" value="7880">Georgia (+7880)</option><option data-countrycode="DE" value="49">Germany (+49)</option><option data-countrycode="GH" value="233">Ghana (+233)</option><option data-countrycode="GI" value="350">Gibraltar (+350)</option><option data-countrycode="GR" value="30">Greece (+30)</option><option data-countrycode="GL" value="299">Greenland (+299)</option><option data-countrycode="GD" value="1473">Grenada (+1473)</option><option data-countrycode="GP" value="590">Guadeloupe (+590)</option><option data-countrycode="GU" value="671">Guam (+671)</option><option data-countrycode="GT" value="502">Guatemala (+502)</option><option data-countrycode="GN" value="224">Guinea (+224)</option><option data-countrycode="GW" value="245">Guinea - Bissau (+245)</option><option data-countrycode="GY" value="592">Guyana (+592)</option><option data-countrycode="HT" value="509">Haiti (+509)</option><option data-countrycode="HN" value="504">Honduras (+504)</option><option data-countrycode="HK" value="852">Hong Kong (+852)</option><option data-countrycode="HU" value="36">Hungary (+36)</option><option data-countrycode="IS" value="354">Iceland (+354)</option><option data-countrycode="IN" value="91">India (+91)</option><option data-countrycode="ID" value="62">Indonesia (+62)</option><option data-countrycode="IR" value="98">Iran (+98)</option><option data-countrycode="IQ" value="964">Iraq (+964)</option><option data-countrycode="IE" value="353">Ireland (+353)</option><option data-countrycode="IL" value="972">Israel (+972)</option><option data-countrycode="IT" value="39">Italy (+39)</option><option data-countrycode="JM" value="1876">Jamaica (+1876)</option><option data-countrycode="JP" value="81">Japan (+81)</option><option data-countrycode="JO" value="962">Jordan (+962)</option><option data-countrycode="KZ" value="7">Kazakhstan (+7)</option><option data-countrycode="KE" value="254">Kenya (+254)</option><option data-countrycode="KI" value="686">Kiribati (+686)</option><option data-countrycode="KP" value="850">Korea North (+850)</option><option data-countrycode="KR" value="82">Korea South (+82)</option><option data-countrycode="KW" value="965">Kuwait (+965)</option><option data-countrycode="KG" value="996">Kyrgyzstan (+996)</option><option data-countrycode="LA" value="856">Laos (+856)</option><option data-countrycode="LV" value="371">Latvia (+371)</option><option data-countrycode="LB" value="961">Lebanon (+961)</option><option data-countrycode="LS" value="266">Lesotho (+266)</option><option data-countrycode="LR" value="231">Liberia (+231)</option><option data-countrycode="LY" value="218">Libya (+218)</option><option data-countrycode="LI" value="417">Liechtenstein (+417)</option><option data-countrycode="LT" value="370">Lithuania (+370)</option><option data-countrycode="LU" value="352">Luxembourg (+352)</option><option data-countrycode="MO" value="853">Macao (+853)</option><option data-countrycode="MK" value="389">Macedonia (+389)</option><option data-countrycode="MG" value="261">Madagascar (+261)</option><option data-countrycode="MW" value="265">Malawi (+265)</option><option data-countrycode="MY" value="60">Malaysia (+60)</option><option data-countrycode="MV" value="960">Maldives (+960)</option><option data-countrycode="ML" value="223">Mali (+223)</option><option data-countrycode="MT" value="356">Malta (+356)</option><option data-countrycode="MH" value="692">Marshall Islands (+692)</option><option data-countrycode="MQ" value="596">Martinique (+596)</option><option data-countrycode="MR" value="222">Mauritania (+222)</option><option data-countrycode="YT" value="269">Mayotte (+269)</option><option data-countrycode="MX" value="52">Mexico (+52)</option><option data-countrycode="FM" value="691">Micronesia (+691)</option><option data-countrycode="MD" value="373">Moldova (+373)</option><option data-countrycode="MC" value="377">Monaco (+377)</option><option data-countrycode="MN" value="976">Mongolia (+976)</option><option data-countrycode="MS" value="1664">Montserrat (+1664)</option><option data-countrycode="MA" value="212">Morocco (+212)</option><option data-countrycode="MZ" value="258">Mozambique (+258)</option><option data-countrycode="MN" value="95">Myanmar (+95)</option><option data-countrycode="NA" value="264">Namibia (+264)</option><option data-countrycode="NR" value="674">Nauru (+674)</option><option data-countrycode="NP" value="977">Nepal (+977)</option><option data-countrycode="NL" value="31">Netherlands (+31)</option><option data-countrycode="NC" value="687">New Caledonia (+687)</option><option data-countrycode="NZ" value="64">New Zealand (+64)</option><option data-countrycode="NI" value="505">Nicaragua (+505)</option><option data-countrycode="NE" value="227">Niger (+227)</option><option data-countrycode="NG" value="234">Nigeria (+234)</option><option data-countrycode="NU" value="683">Niue (+683)</option><option data-countrycode="NF" value="672">Norfolk Islands (+672)</option><option data-countrycode="NP" value="670">Northern Marianas (+670)</option><option data-countrycode="NO" value="47">Norway (+47)</option><option data-countrycode="OM" value="968">Oman (+968)</option><option data-countrycode="PW" value="680">Palau (+680)</option><option data-countrycode="PA" value="507">Panama (+507)</option><option data-countrycode="PG" value="675">Papua New Guinea (+675)</option><option data-countrycode="PY" value="595">Paraguay (+595)</option><option data-countrycode="PE" value="51">Peru (+51)</option><option data-countrycode="PH" value="63">Philippines (+63)</option><option data-countrycode="PL" value="48">Poland (+48)</option><option data-countrycode="PT" value="351">Portugal (+351)</option><option data-countrycode="PR" value="1787">Puerto Rico (+1787)</option><option data-countrycode="QA" value="974">Qatar (+974)</option><option data-countrycode="RE" value="262">Reunion (+262)</option><option data-countrycode="RO" value="40">Romania (+40)</option><option data-countrycode="RU" value="7">Russia (+7)</option><option data-countrycode="RW" value="250">Rwanda (+250)</option><option data-countrycode="SM" value="378">San Marino (+378)</option><option data-countrycode="ST" value="239">Sao Tome &amp; Principe (+239)</option><option data-countrycode="SA" value="966">Saudi Arabia (+966)</option><option data-countrycode="SN" value="221">Senegal (+221)</option><option data-countrycode="CS" value="381">Serbia (+381)</option><option data-countrycode="SC" value="248">Seychelles (+248)</option><option data-countrycode="SL" value="232">Sierra Leone (+232)</option><option data-countrycode="SG" value="65">Singapore (+65)</option><option data-countrycode="SK" value="421">Slovak Republic (+421)</option><option data-countrycode="SI" value="386">Slovenia (+386)</option><option data-countrycode="SB" value="677">Solomon Islands (+677)</option><option data-countrycode="SO" value="252">Somalia (+252)</option><option data-countrycode="ZA" value="27">South Africa (+27)</option><option data-countrycode="ES" value="34">Spain (+34)</option><option data-countrycode="LK" value="94">Sri Lanka (+94)</option><option data-countrycode="SH" value="290">St. Helena (+290)</option><option data-countrycode="KN" value="1869">St. Kitts (+1869)</option><option data-countrycode="SC" value="1758">St. Lucia (+1758)</option><option data-countrycode="SD" value="249">Sudan (+249)</option><option data-countrycode="SR" value="597">Suriname (+597)</option><option data-countrycode="SZ" value="268">Swaziland (+268)</option><option data-countrycode="SE" value="46">Sweden (+46)</option><option data-countrycode="CH" value="41">Switzerland (+41)</option><option data-countrycode="SI" value="963">Syria (+963)</option><option data-countrycode="TW" value="886">Taiwan (+886)</option><option data-countrycode="TJ" value="7">Tajikstan (+7)</option><option data-countrycode="TH" value="66">Thailand (+66)</option><option data-countrycode="TG" value="228">Togo (+228)</option><option data-countrycode="TO" value="676">Tonga (+676)</option><option data-countrycode="TT" value="1868">Trinidad &amp; Tobago (+1868)</option><option data-countrycode="TN" value="216">Tunisia (+216)</option><option data-countrycode="TR" value="90">Turkey (+90)</option><option data-countrycode="TM" value="7">Turkmenistan (+7)</option><option data-countrycode="TM" value="993">Turkmenistan (+993)</option><option data-countrycode="TC" value="1649">Turks &amp; Caicos Islands (+1649)</option><option data-countrycode="TV" value="688">Tuvalu (+688)</option><option data-countrycode="UG" value="256">Uganda (+256)</option><option data-countrycode="UA" value="380">Ukraine (+380)</option><option data-countrycode="AE" value="971">United Arab Emirates (+971)</option><option data-countrycode="UY" value="598">Uruguay (+598)</option><option data-countrycode="UZ" value="7">Uzbekistan (+7)</option><option data-countrycode="VU" value="678">Vanuatu (+678)</option><option data-countrycode="VA" value="379">Vatican City (+379)</option><option data-countrycode="VE" value="58">Venezuela (+58)</option><option data-countrycode="VN" value="84">Vietnam (+84)</option><option data-countrycode="VG" value="84">Virgin Islands - British (+1284)</option><option data-countrycode="VI" value="84">Virgin Islands - US (+1340)</option><option data-countrycode="WF" value="681">Wallis &amp; Futuna (+681)</option><option data-countrycode="YE" value="969">Yemen (North)(+969)</option><option data-countrycode="YE" value="967">Yemen (South)(+967)</option><option data-countrycode="ZM" value="260">Zambia (+260)</option><option data-countrycode="ZW" value="263">Zimbabwe (+263)</option></optgroup></select></div><div class="col-sm-9" style="padding-left: 0px;"><input type="text" class="form-control" ng-model="formscope.phone_number" placeholder="Please enter your alternate phone number" name="phone_number"></div></div></div><div class="form-group col-lg-6 col-md-12 col-sm-12"><label for="input04">Gender</label><select chosen="" ng-model="formscope.gender" name="gender" ng-options="company.value as company.label for company in genderOption" class="form-control"></select></div></div><div class="row"><div class="form-group col-lg-4 col-md-12 col-sm-12"><label>Affiliate</label><select chosen="" ng-model="formscope.affiliate" name="affiliate" ng-options="affiliate.id as affiliate.name for affiliate in AffiliateOption" class="form-control" required-error-message="{{errorMessage.affiliate.required}}" valid-method="watch, blur" validation-group="affiliate_error_message"></select><span id="affiliate_error_message"></span></div></div><div class="row"><div class="form-group col-lg-4 col-md-12 col-sm-12"><label for="textarea01">Visitor Type<code>*</code></label><select chosen="" ng-model="formscope.visitor_type" name="visitor_type" ng-options="company.id as company.name for company in VisitorOption" class="form-control" required-error-message="{{errorMessage.visitor_type.required}}" validator="required" valid-method="watch, blur" validation-group="visitor_type_error_message"></select><span id="visitor_type_error_message"></span></div><div class="form-group col-lg-4 col-md-12 col-sm-12"><label for="textarea01">Organization Type</label><select chosen="" ng-model="formscope.organization_id" name="organization_id" ng-options="company.id as company.name for company in OrganizationOption" class="form-control"></select></div><div class="form-group col-lg-4 col-md-12 col-sm-12"><label for="input01">Organization Name</label><angucomplete-alt id="organization" placeholder="Please enter organization name" pause="100" initial-value="formscope.organization" selected-object="residentSelected" local-data="organizationNameOption" ng-model="formscope.organization" search-fields="organization" title-field="organization" minlength="1" input-class="form-control" match-class="highlight" override-suggestions="true"></angucomplete-alt></div></div><div class="row"><div class="form-group col-lg-6 col-md-12 col-sm-12"><label>Street 1</label> <input type="text" class="form-control" ng-model="formscope.address" placeholder="Please enter Street 1" name="address" chars="text"></div><div class="form-group col-lg-6 col-md-12 col-sm-12"><label>Street 2</label> <input type="text" class="form-control" ng-model="formscope.address1" placeholder="Please enter Street 2" name="address1" chars="text"></div></div><div class="row"><div class="form-group col-lg-6 col-md-12 col-sm-12"><label>Country</label><select chosen="" ng-model="formscope.country_id" name="country_id" ng-options="country.id as country.country_name for country in countries" class="form-control"></select></div><div class="form-group col-lg-6 col-md-12 col-sm-12"><label>State</label> <input type="text" class="form-control" ng-model="formscope.state" placeholder="Please enter state name" name="state" chars="text"></div></div><div class="row"><div class="form-group col-lg-6 col-md-12 col-sm-12"><label>City</label> <input type="text" class="form-control" ng-model="formscope.city" placeholder="Please enter city name" name="city" chars="text"></div><div class="form-group col-lg-6 col-md-12 col-sm-12"><label>Zip Code</label> <input type="text" placeholder="Please enter zip code" class="form-control" name="zip_code" ng-model="formscope.zip_code" chars="text"></div></div><div class="row"><div class="form-group col-sm-12"><label>Note</label> <textarea placeholder="Please enter a text message" class="form-control" name="visitor_notes" ng-model="formscope.visitor_notes" chars="text"></textarea></div></div><div class="row" ng-if="addMomento === true"><div class="form-group col-lg-6 col-md-12 col-sm-12"><label>Momentos</label><select chosen="" ng-model="formscope.momentos" name="momentos" ng-options="momento.id as momento.name for momento in MomentosOption" class="form-control"></select></div></div></div><div class="modal-footer"><button type="submit" ng-disabled="isSubmitted" class="btn btn-success" align="center">{{btnName}}</button></div></form></div>'),
e.put("app/pages/profile/profile.html",'<div ba-panel="" ba-panel-class="profile-page"><div class="panel-content"><div class="progress-info">Your profile is 70% Complete</div><div class="progress"><div class="progress-bar progress-bar-primary progress-bar-striped active" role="progressbar" aria-valuenow="70" aria-valuemin="0" aria-valuemax="100" style="width: 70%"></div></div><h3 class="with-line">General Information</h3><div class="row"><div class="col-md-6"><div class="form-group row clearfix"><label for="inputFirstName" class="col-sm-3 control-label">Picture</label><div class="col-sm-9"><div class="userpic"><div class="userpic-wrapper"><img ng-src="{{ picture }}" ng-click="uploadPicture()"></div><i class="ion-ios-close-outline" ng-click="removePicture()" ng-if="!noPicture"></i> <a href="" class="change-userpic" ng-click="uploadPicture()">Change Profile Picture</a> <input type="file" ng-show="false" id="uploadFile" ng-file-select="onFileSelect($files)"></div></div></div></div><div class="col-md-6"></div></div><div class="row"><div class="col-md-6"><div class="form-group row clearfix"><label for="inputFirstName" class="col-sm-3 control-label">First Name</label><div class="col-sm-9"><input type="text" class="form-control" id="inputFirstName" placeholder="" value="Anastasiya"></div></div><div class="form-group row clearfix"><label for="inputLastName" class="col-sm-3 control-label">Last Name</label><div class="col-sm-9"><input type="text" class="form-control" id="inputLastName" placeholder="" value=""></div></div></div><div class="col-md-6"><div class="form-group row clearfix"><label class="col-sm-3 control-label">Department</label><div class="col-sm-9"><select class="form-control" selectpicker=""><option>Web Development</option><option>System Development</option><option>Sales</option><option>Human Resources</option></select></div></div><div class="form-group row clearfix"><label for="inputOccupation" class="col-sm-3 control-label">Occupation</label><div class="col-sm-9"><input type="text" class="form-control" id="inputOccupation" placeholder="" value="Front End Web Developer"></div></div></div></div><h3 class="with-line">Change Password</h3><div class="row"><div class="col-md-6"><div class="form-group row clearfix"><label for="inputPassword" class="col-sm-3 control-label">Password</label><div class="col-sm-9"><input type="password" class="form-control" id="inputPassword" placeholder="" value="12345678"></div></div></div><div class="col-md-6"><div class="form-group row clearfix"><label for="inputConfirmPassword" class="col-sm-3 control-label">Confirm Password</label><div class="col-sm-9"><input type="password" class="form-control" id="inputConfirmPassword" placeholder=""></div></div></div></div><h3 class="with-line">Contact Information</h3><div class="row"><div class="col-md-6"><div class="form-group row clearfix"><label for="inputEmail3" class="col-sm-3 control-label">Email</label><div class="col-sm-9"><input type="email" class="form-control" id="inputEmail3" placeholder="" value="contact@akveo.com"></div></div><div class="form-group row clearfix"><label for="inputPhone" class="col-sm-3 control-label">Phone</label><div class="col-sm-9"><input type="text" class="form-control" id="inputPhone" placeholder="" value="+1 (23) 456 7890"></div></div></div><div class="col-md-6"><div class="form-group row clearfix"><label class="col-sm-3 control-label">Office Location</label><div class="col-sm-9"><select class="form-control" title="Standard Select" selectpicker=""><option>San Francisco</option><option>London</option><option>Minsk</option><option>Tokio</option></select></div></div><div class="form-group row clearfix"><label for="inputRoom" class="col-sm-3 control-label">Room</label><div class="col-sm-9"><input type="text" class="form-control" id="inputRoom" placeholder="" value="303"></div></div></div></div><h3 class="with-line">Social Profiles</h3><div class="social-profiles row clearfix"><div class="col-md-3 col-sm-4" ng-repeat="item in socialProfiles"><a class="sn-link" href="" ng-click="showModal(item)" ng-if="!item.href"><i class="socicon {{ item.icon }}"></i> <span>{{ item.name }}</span></a> <a class="sn-link connected" href="{{ item.href }}" target="_blank" ng-if="item.href"><i class="socicon {{ item.icon }}"></i> <span>{{ item.name }}</span> <em class="ion-ios-close-empty sn-link-close" ng-mousedown="unconnect(item)"></em></a></div></div><h3 class="with-line">Send Email Notifications</h3><div class="notification row clearfix"><div class="col-sm-6"><div class="form-group row clearfix"><label class="col-xs-8">When I receive a message</label><div class="col-xs-4"><switch color="primary" ng-model="switches[0]"></switch></div></div><div class="form-group row clearfix"><label class="col-xs-8">When Someone sends me an invitation</label><div class="col-xs-4"><switch color="primary" ng-model="switches[1]"></switch></div></div><div class="form-group row clearfix"><label class="col-xs-8">When profile information changes</label><div class="col-xs-4"><switch color="primary" ng-model="switches[2]"></switch></div></div></div><div class="col-sm-6"><div class="form-group row clearfix"><label class="col-xs-8">When anyone logs into your account from a new device or browser</label><div class="col-xs-4"><switch color="primary" ng-model="switches[3]"></switch></div></div><div class="form-group row clearfix"><label class="col-xs-8">Weekly Reports</label><div class="col-xs-4"><switch color="primary" ng-model="switches[4]"></switch></div></div><div class="form-group row clearfix"><label class="col-xs-8">Daily Reports</label><div class="col-xs-4"><switch color="primary" ng-model="switches[5]"></switch></div></div></div></div><button type="button" class="btn btn-primary btn-with-icon save-profile"><i class="ion-android-checkmark-circle"></i>Update Profile</button></div></div>'),e.put("app/pages/profile/profileModal.html",'<div class="modal-content"><div class="modal-header"><button type="button" class="close" ng-click="$dismiss()" aria-label="Close"><em class="ion-ios-close-empty sn-link-close"></em></button><h4 class="modal-title" id="myModalLabel">Add Account</h4></div><form name="linkForm"><div class="modal-body"><p>Paste a link to your profile into the box below</p><div class="form-group"><input type="text" class="form-control" placeholder="Link to Profile" ng-model="link"></div></div><div class="modal-footer"><button type="button" class="btn btn-primary" ng-click="ok(link)">Save changes</button></div></form></div>'),e.put("app/pages/roles/add.html",'<div class="widgets"><div class="row"><div class="col-md-6"><div ba-panel="" ba-panel-title="{{pageName}} Role" ba-panel-class="with-scroll"><form class="form-validation" ng-submit="submitRole(role_form)" role="form" name="role_form"><div class="form-group"><label>Role Name<code>*</code></label> <input focus-me="" chars="letters" placeholder="Please enter role name" type="text" class="form-control" name="role_name" required-error-message="{{roleMessage.name.required}}" minlength-error-message="{{roleMessage.name.minlength}}" maxlength-error-message="{{roleMessage.name.maxlength}}" validator="required, minlength=2, maxlength=20" valid-method="blur submit" ng-model="role.name"></div><div class="form-group"><label>Role Description<code>*</code></label> <input placeholder="Please enter role description" type="text" class="form-control" name="role_description" required-error-message="{{roleMessage.description.required}}" minlength-error-message="{{roleMessage.description.minlength}}" maxlength-error-message="{{roleMessage.description.maxlength}}" validator="required, minlength=2, maxlength=100" valid-method="blur submit" ng-model="role.description"></div><div class="form-group"><label>Permissions</label> <input type="text" class="form-control" ng-model="myQuery" placeholder="Search permissions"><div ivh-treeview="role.permissions" ivh-treeview-expand-to-depth="1" ivh-treeview-filter="myQuery"></div></div><button type="submit" class="btn btn-info" ng-disabled="isSubmitted" align="center">{{action}}</button> <a type="submit" ui-sref="roles.list" class="btn btn-info" align="center">Cancel</a></form></div></div></div></div>'),e.put("app/pages/roles/login.html",'<main class="auth-main"><div class="auth-block"><h1>Sign in to Tour Management</h1><form class="form-horizontal"><div class="form-group"><label for="inputEmail3" class="col-sm-2 control-label">Email</label><div class="col-sm-10"><input type="email" class="form-control" id="inputEmail3" placeholder="Email"></div></div><div class="form-group"><label for="inputPassword3" class="col-sm-2 control-label">Password</label><div class="col-sm-10"><input type="password" class="form-control" id="inputPassword3" placeholder="Password"></div></div><div class="form-group"><div class="col-sm-offset-2 col-sm-10"><button type="submit" class="btn btn-default btn-auth">Sign in</button> <a href="" class="forgot-pass">Forgot password?</a></div></div></form></div></main>'),e.put("app/pages/roles/view.html",'<div class="widgets" ng-hide="state.includes(\'roles.edit\') || state.includes(\'roles.add\')"><div class="row"><div class="col-md-12"><div ba-panel="" ba-panel-title="{{ activePageTitle }} Listing"><div class="form-group select-page-size-wrap"><button class="btn btn-primary" ng-if="havePermission(\'roles\',\'create\');" ui-sref="roles.add">Add</button></div><div class="horizontal-scroll"><table datatable="" dt-instance="dtInstance" dt-options="dtOptions" dt-columns="dtColumns" class="row-border hover"></table></div><div></div></div></div></div></div>'),e.put("app/pages/settings/view.html",'<div class="widgets"><div class="row"><div class="col-md-6"><div ba-panel="" ba-panel-title="Edit Settings" ba-panel-class="with-scroll"><form class="form-validation" ng-submit="updateSetting(add_form)" role="form" name="add_form"><div class="form-group"><label>Admin Email<code>*</code></label> <input placeholder="Please enter admin email" type="text" class="form-control" name="admin_email" required-error-message="{{errorMessage.admin_email.required}}" focus-me="" minlength-error-message="{{errorMessage.admin_email.minlength}}" maxlength-error-message="{{errorMessage.admin_email.maxlength}}" email-error-message="{{errorMessage.admin_email.invalidEmail}}" validator="required, minlength=2, maxlength=100, email" valid-method="blur" ng-model="formscope.admin_email"></div><div class="form-group"><label>Confirm link expired Time(Hours)<code>*</code></label> <input placeholder="Please enter hours" type="text" class="form-control" name="confirm_link_expired" required-error-message="{{errorMessage.confirm_link_expired.required}}" minlength-error-message="{{errorMessage.confirm_link_expired.minlength}}" maxlength-error-message="{{errorMessage.confirm_link_expired.maxlength}}" validator="required, minlength=1, maxlength=3" chars="numbers" valid-method="blur" ng-model="formscope.confirm_link_expired"></div><button type="submit" class="btn btn-info" ng-disabled="isSubmitted" align="center">{{action}}</button></form></div></div></div></div>'),e.put("app/pages/useravailabilities/view.html",'<div class="widgets"><div class="row"><div class="col-md-12"><div ba-panel="" ba-panel-title="{{ activePageTitle }} Listing"><div class="horizontal-scroll"><table datatable="" dt-instance="dtInstance" dt-options="dtOptions" dt-columns="dtColumns" class="row-border hover"></table></div></div></div></div></div>'),e.put("app/pages/users/add.html",'<div class="widgets"><div class="row"><div class="col-md-12"><div ba-panel="" ba-panel-title="{{pageName}}" ba-panel-class="with-scroll"><div class="ng-cloak"><form class="form-validation" role="form" name="add_form"><div class="row"><div class="form-group col-lg-6 col-md-12 col-sm-12"><label for="input01">Email<code>*</code></label> <input focus-me="" type="email" class="form-control" ng-model="formscope.email" placeholder="Please enter email" name="email" ng-if="state.current.name == \'users.add\'" required-error-message="{{errorMessage.email.required}}" email-error-message="{{errorMessage.email.invalidEmail}}" minlength-error-message="{{errorMessage.email.minlength}}" maxlength-error-message="{{errorMessage.email.maxlength}}" validator="required, email, minlength=2, maxlength=100" valid-method="blur"> <span ng-if="state.current.name == \'users.edit\'">{{formscope.email}}</span></div><div class="form-group col-lg-6 col-md-12 col-sm-12"><label>User Type<code>*</code></label><select chosen="" ng-model="formscope.user_type" name="user_type" ng-options="company.id as company.name for company in userTypeOption" class="form-control" validation-group="user_type_error_message" required-error-message="{{errorMessage.user_type.required}}" validator="required" valid-method="watch, blur"></select><span id="user_type_error_message"></span></div></div><div class="row"><div class="form-group col-lg-4 col-md-12 col-sm-12"><label for="input01">First Name</label> <input type="text" class="form-control" ng-model="formscope.first_name" placeholder="Please enter first name" name="first_name" chars="letters"></div><div class="form-group col-lg-4 col-md-12 col-sm-12"><label for="input01">Middle Name</label> <input type="text" class="form-control" ng-model="formscope.middle_name" placeholder="Please enter middle name" name="middle_name" chars="letters"></div><div class="form-group col-lg-4 col-md-12 col-sm-12"><label for="input01">Last Name</label> <input type="text" class="form-control" ng-model="formscope.last_name" placeholder="Please enter Last name" name="last_name" chars="letters"></div></div><div class="row"><div class="form-group col-lg-6 col-md-12 col-sm-12"><label>Date of Birth(YYYY-MM-DD)</label> <input my-date="" type="text" class="form-control" ng-model="formscope.dob" placeholder="Please select the birth date" name="dob"></div><div class="form-group col-lg-6 col-md-12 col-sm-12"><label for="textarea01">Gender</label><select chosen="" ng-model="formscope.gender" name="gender" ng-options="company.value as company.label for company in genderOption" class="form-control"></select></div></div><div class="row"><div class="form-group col-lg-6 col-md-12 col-sm-12"><label for="input04">Phone Number</label> <input type="text" class="form-control" ng-model="formscope.phone_number" placeholder="Please enter your phone number" phone-input="" name="phone_number"></div><div class="form-group col-lg-6 col-md-12 col-sm-12"><label for="input04">Mobile Number</label> <input type="text" class="form-control" ng-model="formscope.mobile" placeholder="Please enter your mobile number" phone-input="" name="mobile"></div></div><div class="row"><div class="form-group col-lg-6 col-md-12 col-sm-12"><label>Street 1</label> <input type="text" class="form-control" ng-model="formscope.address" placeholder="Please enter Street 1" name="address"></div><div class="form-group col-lg-6 col-md-12 col-sm-12"><label>Street 2</label> <input type="text" class="form-control" ng-model="formscope.address1" placeholder="Please enter Street 2" name="address1"></div></div><div class="row"><div class="form-group col-lg-6 col-md-12 col-sm-12"><label>Country</label><select chosen="" ng-model="formscope.country_id" name="country_id" ng-options="country.id as country.country_name for country in countries" class="form-control"></select></div><div class="form-group col-lg-6 col-md-12 col-sm-12"><label>State</label> <input type="text" class="form-control" ng-model="formscope.state" placeholder="Please enter state name" name="state"></div></div><div class="row"><div class="form-group col-lg-6 col-md-12 col-sm-12"><label>City</label> <input type="text" class="form-control" ng-model="formscope.city" placeholder="Please enter city name" name="city"></div><div class="form-group col-lg-6 col-md-12 col-sm-12"><label>Zip Code</label> <input type="text" placeholder="Please enter zip code" class="form-control" name="zip_code" ng-model="formscope.zip_code"></div></div><div class="row"><div class="form-group col-lg-6 col-md-12 col-sm-12"><label for="textarea01">Status<code>*</code></label><select chosen="" ng-model="formscope.status" name="status" ng-options="status.value as status.label for status in statusOption" required-error-message="{{errorMessage.status.required}}" validator="required" valid-method="watch, blur" class="form-control" validation-group="status_error_message"></select><span id="status_error_message"></span></div><div class="form-group col-lg-6"><label>Profile Picture</label> <input ng-if="state.current.name == \'users.add\'" type="file" ng-model="formscope.profile_pic" ngf-accept="\'image/*\'" name="profile_pic" ngf-select="" ngf-max-size="2MB" ngf-validate="{size: {min: 1, max: \'2MB\'}, pattern: \'image/*\'}"> <input ng-if="state.current.name == \'users.edit\'" type="file" ng-model="formscope.profile_pic" ngf-accept="\'image/*\'" name="profile_pic" ngf-select="" ngf-max-size="2MB" ngf-validate="{size: {min: 1, max: \'2MB\'}, pattern: \'image/*\'}"> <label class="control-label has-error ng-scope colorred" ng-if="add_form.profile_pic.$error.required && add_form.profile_pic.$error.pattern != true && (add_form.profile_pic.$touched || Submitted)">{{errorMessage.image.required}}</label> <label class="control-label has-error ng-scope colorred" ng-if="add_form.profile_pic.$error.pattern">{{errorMessage.image.pdfFile}}</label> <label class="control-label has-error ng-scope colorred" ng-if="add_form.profile_pic.$error.maxSize">{{errorMessage.image.maxSize}}</label></div></div><div class="row"><div class="form-group col-lg-6"><button ng-if="state.current.name == \'users.edit\'" ng-click="add_data(add_form)" ng-disabled="isSubmitted" class="btn btn-success" align="center"><i class="fa fa-spinner fa-spin" aria-hidden="true" ng-show="loginProgress"></i> {{btnName}}</button> <button ng-if="state.current.name == \'users.add\'" ng-click="mailModal(add_form)" ng-disabled="isSubmitted" class="btn btn-success" align="center"><i class="fa fa-spinner fa-spin" aria-hidden="true" ng-show="loginProgress"></i> {{btnName}}</button> <a type="submit" ui-sref="users.list" class="btn btn-info" align="center">Cancel</a></div></div></form></div></div></div></div></div>'),e.put("app/pages/users/changePassword.html",'<div class="modal-content"><div class="modal-header"><button type="button" class="close" ng-click="$dismiss()" aria-label="Close"><em class="ion-ios-close-empty sn-link-close"></em></button><h4 class="modal-title" id="myModalLabel">{{titleName}}</h4></div><form ng-submit="change_password(add_form)" role="form" name="add_form"><div class="modal-body"><div class="row"><div class="form-group col-lg-12"><label for="input04">New Password</label> <input type="password" class="form-control" ng-model="changepassformscope.new_password" placeholder="Please enter password" name="new_password" required-error-message="{{errorMessage.new_password.required}}" minlength-error-message="{{errorMessage.new_password.minlength}}" maxlength-error-message="{{errorMessage.new_password.maxlength}}" validator="required, minlength=6, maxlength=16" valid-method="blur"></div></div><div class="row"><div class="form-group col-lg-12"><label for="input04">Confirm Password</label> <input type="password" class="form-control" ng-model="changepassformscope.confirm_password" placeholder="Please enter confirm password" name="confirm_password" required-error-message="{{errorMessage.confirm_password.required}}" validator="required, confirmPassword" valid-method="blur"></div></div></div><div class="modal-footer"><button type="submit" ng-disabled="isSubmitted" class="btn btn-success" align="center">{{btnName}}</button></div></form></div>'),e.put("app/pages/users/editprofile.html",'<div ba-panel="" ba-panel-class="profile-page"><div class="panel-content"><form class="form-validation" ng-submit="add_data(add_form)" role="form" name="add_form"><h3 class="with-line">General Information</h3><div class="row"><div class="col-md-6"><div class="form-group row clearfix"><label for="inputFirstName" class="col-sm-3 control-label">Picture</label><div class="col-sm-9"><div class="userpic"><div class="userpic-wrapper"><img ng-src="{{ imageUrl}}" ng-click="uploadPicture()"></div><input type="file" id="uploadFile" ng-show="false" ng-model="formscope.profile_pic" ngf-accept="\'image/*\'" name="profile_pic" ngf-select="" ngf-max-size="2MB" ngf-validate="{size: {min: 1, max: \'2MB\'}, pattern: \'image/*\'}"></div><label class="control-label has-error ng-scope colorred" ng-if="add_form.profile_pic.$error.required && add_form.profile_pic.$error.pattern != true && (add_form.profile_pic.$touched || Submitted)">{{errorMessage.image.required}}</label> <label class="control-label has-error ng-scope colorred" ng-if="add_form.profile_pic.$error.pattern">{{errorMessage.image.pdfFile}}</label> <label class="control-label has-error ng-scope colorred" ng-if="add_form.profile_pic.$error.maxSize">{{errorMessage.image.maxSize}}</label></div></div></div><div class="col-md-6"></div></div><div class="row"><div class="col-md-6"><div class="form-group row clearfix"><label for="inputFirstName" class="col-sm-3 control-label">First Name<code>*</code></label><div class="col-sm-9"><input type="text" class="form-control" ng-model="formscope.first_name" placeholder="Please enter first name" name="first_name" chars="letters" required-error-message="{{errorMessage.first_name.required}}" minlength-error-message="{{errorMessage.first_name.minlength}}" maxlength-error-message="{{errorMessage.first_name.maxlength}}" validator="required, minlength=2, maxlength=100" valid-method="blur"></div></div><div class="form-group row clearfix"><label for="inputFirstName" class="col-sm-3 control-label">Middle Name</label><div class="col-sm-9"><input type="text" class="form-control" ng-model="formscope.middle_name" placeholder="Please enter middle name" name="middle_name" chars="letters"></div></div><div class="form-group row clearfix"><label for="inputLastName" class="col-sm-3 control-label">Last Name<code>*</code></label><div class="col-sm-9"><input type="text" class="form-control" ng-model="formscope.last_name" placeholder="Please enter Last name" name="last_name" chars="letters" required-error-message="{{errorMessage.last_name.required}}" minlength-error-message="{{errorMessage.last_name.minlength}}" maxlength-error-message="{{errorMessage.last_name.maxlength}}" validator="required, minlength=2, maxlength=100" valid-method="blur"></div></div></div><div class="col-md-6"><div class="form-group row clearfix"><label class="col-sm-3 control-label">Gender<code>*</code></label><div class="col-sm-9"><select chosen="" ng-model="formscope.gender" name="gender" ng-options="company.value as company.label for company in genderOption" class="form-control" required-error-message="{{errorMessage.gender.required}}" validator="required" valid-method="blur" validation-group="gender_error_message"></select><span id="gender_error_message"></span></div></div><div class="form-group row clearfix"><label for="inputOccupation" class="col-sm-3 control-label">Date of Birth (YYYY-MM-DD)<code>*</code></label><div class="col-sm-9"><input my-date="" type="text" class="form-control" ng-model="formscope.dob" placeholder="Please select the birth date" name="dob" required-error-message="{{errorMessage.dob.required}}" validator="required" valid-method="blur"></div></div></div></div><h3 class="with-line">Contact Information</h3><div class="row"><div class="col-md-6"><div class="form-group row clearfix"><label for="inputRoom" class="col-sm-3 control-label">Mobile<code>*</code></label><div class="col-sm-9"><input type="text" class="form-control" ng-model="formscope.mobile" placeholder="Please enter your mobile number" phone-input="" name="mobile" required-error-message="{{errorMessage.mobile.required}}" minlength-error-message="{{errorMessage.mobile.minlength}}" maxlength-error-message="{{errorMessage.mobile.maxlength}}" validator="required, minlength=2, maxlength=20" valid-method="blur"></div></div><div class="form-group row clearfix"><label for="inputEmail3" class="col-sm-3 control-label">Email</label><div class="col-sm-9"><span>{{formscope.email}}</span></div></div></div><div class="col-md-6"><div class="form-group row clearfix"><label for="inputPhone" class="col-sm-3 control-label">Phone Number</label><div class="col-sm-9"><input type="text" class="form-control" ng-model="formscope.phone_number" placeholder="Please enter your phone number" phone-input="" name="phone_number"></div></div></div></div><h3 class="with-line">Address Information</h3><div class="row"><div class="col-md-6"><div class="form-group row clearfix"><label for="inputEmail3" class="col-sm-3 control-label">Street 1<code>*</code></label><div class="col-sm-9"><input type="text" class="form-control" ng-model="formscope.address" placeholder="Please enter Street 1" name="address" chars="text" required-error-message="{{errorMessage.address.required}}" minlength-error-message="{{errorMessage.address.minlength}}" maxlength-error-message="{{errorMessage.address.maxlength}}" validator="required, minlength=2, maxlength=200" valid-method="blur"></div></div><div class="form-group row clearfix"><label for="inputEmail3" class="col-sm-3 control-label">Street 2</label><div class="col-sm-9"><input type="text" class="form-control" ng-model="formscope.address1" placeholder="Please enter Street 2" name="address1" chars="text"></div></div><div class="form-group row clearfix"><label for="inputPhone" class="col-sm-3 control-label">Country<code>*</code></label><div class="col-sm-9"><select chosen="" ng-model="formscope.country_id" name="country_id" ng-options="country.id as country.country_name for country in countries" class="form-control" required-error-message="{{errorMessage.country_id.required}}" validator="required" valid-method="blur" validation-group="country_error_message"></select><span id="country_error_message"></span></div></div></div><div class="col-md-6"><div class="form-group row clearfix"><label for="inputPhone" class="col-sm-3 control-label">State<code>*</code></label><div class="col-sm-9"><input type="text" class="form-control" ng-model="formscope.state" placeholder="Please enter state name" name="state" chars="text" required-error-message="{{errorMessage.state.required}}" minlength-error-message="{{errorMessage.state.minlength}}" maxlength-error-message="{{errorMessage.state.maxlength}}" validator="required, minlength=2, maxlength=100" valid-method="blur"></div></div><div class="form-group row clearfix"><label for="inputPhone" class="col-sm-3 control-label">City<code>*</code></label><div class="col-sm-9"><input type="text" class="form-control" ng-model="formscope.city" placeholder="Please enter city name" name="city" chars="text" required-error-message="{{errorMessage.city.required}}" minlength-error-message="{{errorMessage.city.minlength}}" maxlength-error-message="{{errorMessage.city.maxlength}}" validator="required, minlength=2, maxlength=100" valid-method="blur"></div></div><div class="form-group row clearfix"><label for="inputPhone" class="col-sm-3 control-label">Zip Code<code>*</code></label><div class="col-sm-9"><input type="text" placeholder="Please enter zip code" class="form-control" name="zip_code" ng-model="formscope.zip_code" chars="numbers" required-error-message="{{errorMessage.zip_code.required}}" minlength-error-message="{{errorMessage.zip_code.minlength}}" maxlength-error-message="{{errorMessage.zip_code.maxlength}}" validator="required, minlength=2, maxlength=6" valid-method="blur"></div></div></div></div><div class="row"><div class="col-md-12"><div class="form-group row clearfix"><button type="submit" ng-disabled="isSubmitted" class="btn btn-primary btn-with-icon save-profile" align="center">{{btnName}}</button></div></div></div></form><h3 class="with-line">Change Password</h3><form class="form-validation" ng-submit="change_password(password_form)" role="form" name="password_form"><div class="row"><div class="col-md-6"><div class="form-group row clearfix"><label for="inputPassword" class="col-sm-4 control-label">Current Password<code>*</code></label><div class="col-sm-8"><input type="password" placeholder="Please enter current password" class="form-control" ng-model="changepassformscope.password" name="password" required-error-message="{{errorMessage.password.required}}" minlength-error-message="{{errorMessage.password.minlength}}" maxlength-error-message="{{errorMessage.password.maxlength}}" validator="required, minlength=6, maxlength=16" valid-method="blur"></div></div></div><div class="col-md-6"><div class="form-group row clearfix"><label for="inputPassword" class="col-sm-4 control-label">New Password<code>*</code></label><div class="col-sm-8"><input type="password" placeholder="Please enter new password" class="form-control" ng-model="changepassformscope.new_password" name="new_password" required-error-message="{{errorMessage.new_password.required}}" minlength-error-message="{{errorMessage.new_password.minlength}}" maxlength-error-message="{{errorMessage.new_password.maxlength}}" validator="required, minlength=6, maxlength=16" valid-method="blur"></div></div></div></div><div class="row"><div class="col-md-6"><div class="form-group row clearfix"><label for="inputConfirmPassword" class="col-sm-4 control-label">Confirm Password<code>*</code></label><div class="col-sm-8"><input type="password" class="form-control" id="inputConfirmPassword" placeholder="Please enter confirm password" ng-model="changepassformscope.confirm_password" name="confirm_password" required-error-message="{{errorMessage.confirm_password.required}}" validator="required, confirmPassword" valid-method="blur"></div></div></div><div class="col-md-12"><div class="form-group row clearfix"><button type="submit" ng-disabled="isSubmitted" class="btn btn-primary btn-with-icon save-profile" align="center">Change</button></div></div></div></form>\'<h3 class="with-line" ng-if="havePermission(\'availabilities\',\'update\');">Change Availability Status</h3><form ng-if="havePermission(\'availabilities\',\'update\');" class="form-validation" ng-submit="change_availability(availability_form)" role="form" name="availability_form"><div class="row"><div class="col-md-6 form-group"><label>Availability<code>*</code></label><div class="input-demo radio-demo row"><div class="col-md-3"><label class="radio-inline custom-radio nowrap"><input type="radio" ng-model="formscopestatus.status" name="type" id="inlineRadio1" value="1"> <span>Unavailable</span></label></div><div class="col-md-2"><label class="radio-inline custom-radio nowrap"><input type="radio" ng-model="formscopestatus.status" name="type" id="inlineRadio2" value="2"> <span>Available</span></label></div></div></div></div><div class="form-group row"><div class="col-sm-2"><label class="text-capitalize">Monday</label>&nbsp;&nbsp;</div><div class="col-xs-4 col-sm-3"><label class="checkbox-inline custom-checkbox nowrap">\' <input type="checkbox" name="monday_full_day" ng-model="formscopestatus.monday_full_day"> <span>Full Day</span></label></div><div class="col-xs-4 col-sm-3"><select name="monday_sta_hour" ng-disabled="formscopestatus.monday_full_day" ng-model="formscopestatus.monday_start.hour" ng-options="hour.value as hour.label disable when hour.isDisabled for hour in time_hour"><option value="">HH</option></select><select name="monday_sta_min" ng-disabled="formscopestatus.monday_full_day" ng-model="formscopestatus.monday_start.min" ng-options="min.value as min.label disable when min.isDisabled for min in time_min"><option value="">MM</option></select><select name="monday_sta_sec" ng-disabled="formscopestatus.monday_full_day" ng-model="formscopestatus.monday_start.am_pm" ng-options="sec.value as sec.label disable when sec.isDisabled for sec in am_pm"></select></div><div class="col-xs-4 col-sm-3">\'<select name="monday_sto_hour" ng-disabled="formscopestatus.monday_full_day" ng-model="formscopestatus.monday_stop.hour" ng-options="hour.value as hour.label disable when hour.isDisabled for hour in time_hour"><option value="">HH</option></select><select name="monday_sto_min" ng-disabled="formscopestatus.monday_full_day" ng-model="formscopestatus.monday_stop.min" ng-options="min.value as min.label disable when min.isDisabled for min in time_min"><option value="">MM</option></select><select name="monday_sto_sec" ng-disabled="formscopestatus.monday_full_day" ng-model="formscopestatus.monday_stop.am_pm" ng-options="sec.value as sec.label disable when sec.isDisabled for sec in am_pm"></select></div></div><div class="form-group row"><div class="col-sm-2"><label class="text-capitalize">Tuesday</label>&nbsp;&nbsp;</div><div class="col-xs-4 col-sm-3"><label class="checkbox-inline custom-checkbox nowrap"><input type="checkbox" name="tuesday_full_day" ng-model="formscopestatus.tuesday_full_day"> <span>Full Day</span></label></div><div class="col-xs-4 col-sm-3"><select name="tuesday_sta_hour" ng-disabled="formscopestatus.tuesday_full_day" ng-model="formscopestatus.tuesday_start.hour" ng-options="hour.value as hour.label disable when hour.isDisabled for hour in time_hour"><option value="">HH</option></select><select name="tuesday_sta_min" ng-disabled="formscopestatus.tuesday_full_day" ng-model="formscopestatus.tuesday_start.min" ng-options="min.value as min.label disable when min.isDisabled for min in time_min"><option value="">MM</option></select><select name="tuesday_sta_sec" ng-disabled="formscopestatus.tuesday_full_day" ng-model="formscopestatus.tuesday_start.am_pm" ng-options="sec.value as sec.label disable when sec.isDisabled for sec in am_pm"></select></div><div class="col-xs-4 col-sm-3"><select name="tuesday_sto_hour" ng-disabled="formscopestatus.tuesday_full_day" ng-model="formscopestatus.tuesday_stop.hour" ng-options="hour.value as hour.label disable when hour.isDisabled for hour in time_hour"><option value="">HH</option></select><select name="tuesday_sto_min" ng-disabled="formscopestatus.tuesday_full_day" ng-model="formscopestatus.tuesday_stop.min" ng-options="min.value as min.label disable when min.isDisabled for min in time_min"><option value="">MM</option></select><select name="tuesday_sto_sec" ng-disabled="formscopestatus.tuesday_full_day" ng-model="formscopestatus.tuesday_stop.am_pm" ng-options="sec.value as sec.label disable when sec.isDisabled for sec in am_pm"></select></div></div><div class="form-group row"><div class="col-sm-2"><label class="text-capitalize">Wednesday</label>&nbsp;&nbsp;</div><div class="col-xs-4 col-sm-3"><label class="checkbox-inline custom-checkbox nowrap"><input type="checkbox" name="wednesday_full_day" ng-model="formscopestatus.wednesday_full_day"> <span>Full Day</span></label></div><div class="col-xs-4 col-sm-3"><select name="wednesday_sta_hour" ng-disabled="formscopestatus.wednesday_full_day" ng-model="formscopestatus.wednesday_start.hour" ng-options="hour.value as hour.label disable when hour.isDisabled for hour in time_hour"><option value="">HH</option></select><select name="wednesday_sta_min" ng-disabled="formscopestatus.wednesday_full_day" ng-model="formscopestatus.wednesday_start.min" ng-options="min.value as min.label disable when min.isDisabled for min in time_min"><option value="">MM</option></select><select name="wednesday_sta_sec" ng-disabled="formscopestatus.wednesday_full_day" ng-model="formscopestatus.wednesday_start.am_pm" ng-options="sec.value as sec.label disable when sec.isDisabled for sec in am_pm"></select></div><div class="col-xs-4 col-sm-3"><select name="wednesday_sto_hour" ng-disabled="formscopestatus.wednesday_full_day" ng-model="formscopestatus.wednesday_stop.hour" ng-options="hour.value as hour.label disable when hour.isDisabled for hour in time_hour"><option value="">HH</option></select><select name="wednesday_sto_min" ng-disabled="formscopestatus.wednesday_full_day" ng-model="formscopestatus.wednesday_stop.min" ng-options="min.value as min.label disable when min.isDisabled for min in time_min"><option value="">MM</option></select><select name="wednesday_sto_sec" ng-disabled="formscopestatus.wednesday_full_day" ng-model="formscopestatus.wednesday_stop.am_pm" ng-options="sec.value as sec.label disable when sec.isDisabled for sec in am_pm"></select></div></div><div class="form-group row"><div class="col-sm-2"><label class="text-capitalize">Thursday</label>&nbsp;&nbsp;</div><div class="col-xs-4 col-sm-3"><label class="checkbox-inline custom-checkbox nowrap"><input type="checkbox" name="thursday_full_day" ng-model="formscopestatus.thursday_full_day"> <span>Full Day</span></label></div><div class="col-xs-4 col-sm-3"><select name="thursday_sta_hour" ng-disabled="formscopestatus.thursday_full_day" ng-model="formscopestatus.thursday_start.hour" ng-options="hour.value as hour.label disable when hour.isDisabled for hour in time_hour"><option value="">HH</option></select><select name="thursday_sta_min" ng-disabled="formscopestatus.thursday_full_day" ng-model="formscopestatus.thursday_start.min" ng-options="min.value as min.label disable when min.isDisabled for min in time_min"><option value="">MM</option></select><select name="thursday_sta_sec" ng-disabled="formscopestatus.thursday_full_day" ng-model="formscopestatus.thursday_start.am_pm" ng-options="sec.value as sec.label disable when sec.isDisabled for sec in am_pm"></select></div><div class="col-xs-4 col-sm-3"><select name="thursday_sto_hour" ng-disabled="formscopestatus.thursday_full_day" ng-model="formscopestatus.thursday_stop.hour" ng-options="hour.value as hour.label disable when hour.isDisabled for hour in time_hour"><option value="">HH</option></select><select name="thursday_sto_min" ng-disabled="formscopestatus.thursday_full_day" ng-model="formscopestatus.thursday_stop.min" ng-options="min.value as min.label disable when min.isDisabled for min in time_min"><option value="">MM</option></select><select name="thursday_sto_sec" ng-disabled="formscopestatus.thursday_full_day" ng-model="formscopestatus.thursday_stop.am_pm" ng-options="sec.value as sec.label disable when sec.isDisabled for sec in am_pm"></select></div></div><div class="form-group row"><div class="col-sm-2"><label class="text-capitalize">Friday</label>&nbsp;&nbsp;</div><div class="col-xs-4 col-sm-3"><label class="checkbox-inline custom-checkbox nowrap"><input type="checkbox" name="friday_full_day" ng-model="formscopestatus.friday_full_day"> <span>Full Day</span></label></div><div class="col-xs-4 col-sm-3"><select name="friday_sta_hour" ng-disabled="formscopestatus.friday_full_day" ng-model="formscopestatus.friday_start.hour" ng-options="hour.value as hour.label disable when hour.isDisabled for hour in time_hour"><option value="">HH</option></select><select name="friday_sta_min" ng-disabled="formscopestatus.friday_full_day" ng-model="formscopestatus.friday_start.min" ng-options="min.value as min.label disable when min.isDisabled for min in time_min"><option value="">MM</option></select><select name="friday_sta_sec" ng-disabled="formscopestatus.friday_full_day" ng-model="formscopestatus.friday_start.am_pm" ng-options="sec.value as sec.label disable when sec.isDisabled for sec in am_pm"></select></div><div class="col-xs-4 col-sm-3"><select name="friday_sto_hour" ng-disabled="formscopestatus.friday_full_day" ng-model="formscopestatus.friday_stop.hour" ng-options="hour.value as hour.label disable when hour.isDisabled for hour in time_hour"><option value="">HH</option></select><select name="friday_sto_min" ng-disabled="formscopestatus.friday_full_day" ng-model="formscopestatus.friday_stop.min" ng-options="min.value as min.label disable when min.isDisabled for min in time_min"><option value="">MM</option></select><select name="friday_sto_sec" ng-disabled="formscopestatus.friday_full_day" ng-model="formscopestatus.friday_stop.am_pm" ng-options="sec.value as sec.label disable when sec.isDisabled for sec in am_pm"></select></div></div><div class="form-group row"><div class="col-sm-2"><label class="text-capitalize">Saturday</label>&nbsp;&nbsp;</div><div class="col-xs-4 col-sm-3"><label class="checkbox-inline custom-checkbox nowrap"><input type="checkbox" name="saturday_full_day" ng-model="formscopestatus.saturday_full_day"> <span>Full Day</span></label></div><div class="col-xs-4 col-sm-3"><select name="saturday_sta_hour" ng-disabled="formscopestatus.saturday_full_day" ng-model="formscopestatus.saturday_start.hour" ng-options="hour.value as hour.label disable when hour.isDisabled for hour in time_hour"><option value="">HH</option></select><select name="saturday_sta_min" ng-disabled="formscopestatus.saturday_full_day" ng-model="formscopestatus.saturday_start.min" ng-options="min.value as min.label disable when min.isDisabled for min in time_min"><option value="">MM</option></select><select name="saturday_sta_sec" ng-disabled="formscopestatus.saturday_full_day" ng-model="formscopestatus.saturday_start.am_pm" ng-options="sec.value as sec.label disable when sec.isDisabled for sec in am_pm"></select></div><div class="col-xs-4 col-sm-3"><select name="saturday_sto_hour" ng-disabled="formscopestatus.saturday_full_day" ng-model="formscopestatus.saturday_stop.hour" ng-options="hour.value as hour.label disable when hour.isDisabled for hour in time_hour"><option value="">HH</option></select><select name="saturday_sto_min" ng-disabled="formscopestatus.saturday_full_day" ng-model="formscopestatus.saturday_stop.min" ng-options="min.value as min.label disable when min.isDisabled for min in time_min"><option value="">MM</option></select><select name="saturday_sto_sec" ng-disabled="formscopestatus.saturday_full_day" ng-model="formscopestatus.saturday_stop.am_pm" ng-options="sec.value as sec.label disable when sec.isDisabled for sec in am_pm"></select></div></div><div class="form-group row"><div class="col-sm-2"><label class="text-capitalize">Sunday</label>&nbsp;&nbsp;</div><div class="col-xs-4 col-sm-3"><label class="checkbox-inline custom-checkbox nowrap"><input type="checkbox" name="sunday_full_day" ng-model="formscopestatus.sunday_full_day"> <span>Full Day</span></label></div><div class="col-xs-4 col-sm-3"><select name="sunday_sta_hour" ng-disabled="formscopestatus.sunday_full_day" ng-model="formscopestatus.sunday_start.hour" ng-options="hour.value as hour.label disable when hour.isDisabled for hour in time_hour"><option value="">HH</option></select><select name="sunday_sta_min" ng-disabled="formscopestatus.sunday_full_day" ng-model="formscopestatus.sunday_start.min" ng-options="min.value as min.label disable when min.isDisabled for min in time_min"><option value="">MM</option></select><select name="sunday_sta_sec" ng-disabled="formscopestatus.sunday_full_day" ng-model="formscopestatus.sunday_start.am_pm" ng-options="sec.value as sec.label disable when sec.isDisabled for sec in am_pm"></select></div><div class="col-xs-4 col-sm-3"><select name="sunday_sto_hour" ng-disabled="formscopestatus.sunday_full_day" ng-model="formscopestatus.sunday_stop.hour" ng-options="hour.value as hour.label disable when hour.isDisabled for hour in time_hour"><option value="">HH</option></select><select name="sunday_sto_min" ng-disabled="formscopestatus.sunday_full_day" ng-model="formscopestatus.sunday_stop.min" ng-options="min.value as min.label disable when min.isDisabled for min in time_min"><option value="">MM</option></select><select name="sunday_sto_sec" ng-disabled="formscopestatus.sunday_full_day" ng-model="formscopestatus.sunday_stop.am_pm" ng-options="sec.value as sec.label disable when sec.isDisabled for sec in am_pm"></select></div></div><div class="row"><div class="col-md-6 form-group"><label>Comment</label> <textarea class="form-control" placeholder="Please enter comment" ng-model="formscopestatus.comment" name="comment"></textarea></div></div><div class="row"><div class="col-md-12"><div class="form-group row clearfix"><button type="submit" ng-disabled="isSubmitted" class="btn btn-primary btn-with-icon save-profile" align="center">Change</button></div></div></div></form></div></div>'),
e.put("app/pages/users/login.html",'<main class="auth-main"><div class="auth-block"><h1>Sign in to Tour Management</h1><form class="form-horizontal"><div class="form-group"><label for="inputEmail3" class="col-sm-2 control-label">Email</label><div class="col-sm-10"><input type="email" class="form-control" id="inputEmail3" placeholder="Email"></div></div><div class="form-group"><label for="inputPassword3" class="col-sm-2 control-label">Password</label><div class="col-sm-10"><input type="password" class="form-control" id="inputPassword3" placeholder="Password"></div></div><div class="form-group"><div class="col-sm-offset-2 col-sm-10"><button type="submit" class="btn btn-default btn-auth">Sign in</button> <a href="" class="forgot-pass">Forgot password?</a></div></div></form></div></main>'),e.put("app/pages/users/mailModal.html",'<div class="modal-content" ng-if="displayEditor"><div class="modal-header"><h4 class="modal-title text-center" id="myModalLabel">Mail Confirmation</h4></div><div class="modal-body"><div><label>Mail Subject</label> <input type="text" placeholder="Please enter mail subject" ng-model="formscope.mailSubject" class="form-control"></div><div style="margin-top: 10px;"><label style="display: block;">Mail Body</label><text-angular placeholder="Please enter mail body" ng-model="formscope.mailContent" ta-toolbar="[[\'h1\',\'h2\',\'h3\',\'h4\',\'h5\',\'h6\',\'p\'],[\'bold\',\'italics\',\'underline\']]"></text-angular></div></div><div class="modal-footer"><div class="row col-md-12 text-center"><a type="submit" ng-click="sendMail()" class="btn btn-success">Send Mail</a> <a type="submit" ng-click="donotsendMail()" class="btn btn-danger">Do Not Send Mail</a></div></div></div>'),e.put("app/pages/users/view.html",'<div class="widgets"><div class="row"><div class="col-md-12"><div ba-panel="" ba-panel-title="{{ activePageTitle }} Listing"><div class="form-group select-page-size-wrap"><button class="btn btn-primary" ng-if="havePermission(\'users\',\'create\');" ui-sref="users.add">Add</button></div><div class="horizontal-scroll"><table datatable="" dt-instance="dtInstance" dt-options="dtOptions" dt-columns="dtColumns" class="row-border hover"></table></div></div></div></div></div>'),e.put("app/pages/users/viewdetails (copy).html",'<div ba-panel="" ba-panel-class="profile-page"><div class="panel-content"><div class="progress-info"><b>{{formscope.roles.name}}</b> User</div><h3 class="with-line">General Information</h3><div class="row"><div class="col-md-6"><div class="form-group row clearfix"><label for="inputFirstName" class="col-sm-3 control-label">Picture</label><div class="col-sm-9"><div class="userpic"><div class="userpic-wrapper"><img ng-src="{{ imageUrl }}"></div></div></div></div></div><div class="col-md-6"></div></div><div class="row"><div class="col-md-6"><div class="form-group row clearfix"><label for="inputFirstName" class="col-sm-3 control-label">First Name</label><div class="col-sm-9"><input type="text" class="form-control" id="inputFirstName" disabled="" value="{{formscope.first_name}}"></div></div><div class="form-group row clearfix"><label for="inputLastName" class="col-sm-3 control-label">Last Name</label><div class="col-sm-9"><input type="text" class="form-control" id="inputLastName" disabled="" value="{{formscope.last_name}}"></div></div></div><div class="col-md-6"><div class="form-group row clearfix"><label class="col-sm-3 control-label">Gender</label><div class="col-sm-9"><select ng-model="formscope.gender" name="gender" disabled="" ng-options="company.value as company.label for company in genderOption" class="form-control"></select></div></div><div class="form-group row clearfix"><label for="inputOccupation" class="col-sm-3 control-label">Birth Date</label><div class="col-sm-9"><div class="" disable="true" ng-disabled="true" moment-picker="formscope.dob" min-date="minDateMoment" format="DD-MMMM-YYYY"><input class="form-control" readonly="" name="dob" ng-model="formscope.dob"></div></div></div></div></div><h3 class="with-line">Contact Information</h3><div class="row"><div class="col-md-6"><div class="form-group row clearfix"><label for="inputEmail3" class="col-sm-3 control-label">Email</label><div class="col-sm-9"><input type="email" class="form-control" id="inputEmail3" disabled="" value="{{formscope.email}}"></div></div><div class="form-group row clearfix"><label for="inputRoom" class="col-sm-3 control-label">Address</label><div class="col-sm-9"><textarea placeholder="Please enter address" disabled="" class="form-control" ng-model="formscope.address" name="address"></textarea></div></div></div><div class="col-md-6"><div class="form-group row clearfix"><label for="inputPhone" class="col-sm-3 control-label">Phone</label><div class="col-sm-9"><input type="text" class="form-control" ng-model="formscope.phone_number" id="inputPhone" phone-input="" disabled="" value="{{formscope.phone_number}}"></div></div><div class="form-group row clearfix"><label for="inputPhone" class="col-sm-3 control-label">Mobile</label><div class="col-sm-9"><input type="text" class="form-control" ng-model="formscope.mobile" disabled="" phone-input="" name="mobile" value="{{formscope.mobile}}"></div></div></div></div></div></div>'),e.put("app/pages/users/viewdetails.html",'<div class="widgets"><div class="viewTourMain"><div class="message"><div class="row"><div class="col-md-12"><div ba-panel="" ba-panel-class=""><div class="person-info"><button ui-sref="users.list" type="button" class="back-button btn btn-default btn-with-icon pull-right"><i class="ion-chevron-left"></i>Back</button> <img ng-src="{{ imageUrl }}" class="human-picture" style="margin-top: -3%;"></div><div class="row"><div class="form-group col-lg-6 col-md-12 col-sm-12"><h3 class="with-line">General Information</h3><div class="form-group row clearfix"><label class="col-xs-3">Name:</label><div class="col-xs-9">{{formscope.name || \'-\'}}</div></div><div class="form-group row clearfix"><label class="col-xs-3">Gender:</label><div class="col-xs-9">{{showGender(formscope.gender) || \'-\'}}</div></div><div class="form-group row clearfix"><label class="col-xs-3">Birth Date:</label><div class="col-xs-9">{{formscope.dob | amDateFormat:\'DD, MMMM YYYY\' || \'-\'}}</div></div></div><div class="form-group col-lg-6 col-md-12 col-sm-12"><h3 class="with-line">Contact Information</h3><div class="form-group row clearfix"><label class="col-xs-3">Email:</label><div class="col-xs-9">{{formscope.email || \'-\'}}</div></div><div class="form-group row clearfix"><label class="col-xs-3">Mobile:</label><div class="col-xs-9">{{formscope.mobile || \'-\'}}</div></div><div class="form-group row clearfix"><label class="col-xs-3">Phone Number:</label><div class="col-xs-9">{{formscope.phone_number || \'-\'}}</div></div></div></div><div class="row"><div class="form-group col-lg-6 col-md-12 col-sm-12"><h3 class="with-line">Address Information</h3><div class="form-group row clearfix"><label class="col-xs-3">Street 1:</label><div class="col-xs-9">{{formscope.address || \'-\'}}</div></div><div class="form-group row clearfix"><label class="col-xs-3">Street 2:</label><div class="col-xs-9">{{formscope.address1 || \'-\'}}</div></div><div class="form-group row clearfix"><label class="col-xs-3">City:</label><div class="col-xs-9">{{formscope.city || \'-\'}}</div></div><div class="form-group row clearfix"><label class="col-xs-3">State:</label><div class="col-xs-9">{{formscope.state || \'-\'}}</div></div><div class="form-group row clearfix"><label class="col-xs-3">Country:</label><div class="col-xs-9">{{formscope.country.country_name || \'-\'}}</div></div><div class="form-group row clearfix"><label class="col-xs-3">Zip Code:</label><div class="col-xs-9">{{formscope.zip_code || \'-\'}}</div></div></div><div class="form-group col-lg-6 col-md-12 col-sm-12"><h3 class="with-line">Professional Information</h3><div class="form-group row clearfix"><label class="col-xs-3">User Type:</label><div class="col-xs-9">{{formscope.role_name || \'-\'}}</div></div><div class="form-group row clearfix"><label class="col-xs-3">Join Date:</label><div class="col-xs-9">{{formscope.created_at | amDateFormat:\'DD, MMMM YYYY\' || \'-\'}}</div></div></div></div></div></div></div></div></div></div>'),e.put("app/common/templates/control_sidebar.html",'<ul class="nav nav-tabs nav-justified control-sidebar-tabs"><li><a href="#control-sidebar-home-tab" data-toggle="tab"><i class="fa fa-home"></i></a></li><li><a href="#control-sidebar-settings-tab" data-toggle="tab"><i class="fa fa-gears"></i></a></li></ul><div class="tab-content"><div class="tab-pane" id="control-sidebar-home-tab"><h3 class="control-sidebar-heading">Recent Activity</h3><ul class="control-sidebar-menu"><li><a href="javascript::;"><i class="menu-icon fa fa-birthday-cake bg-red"></i><div class="menu-info"><h4 class="control-sidebar-subheading">Langdon\'s Birthday</h4><p>Will be 23 on April 24th</p></div></a></li><li><a href="javascript::;"><i class="menu-icon fa fa-user bg-yellow"></i><div class="menu-info"><h4 class="control-sidebar-subheading">Frodo Updated His Profile</h4><p>New phone +1(800)555-1234</p></div></a></li><li><a href="javascript::;"><i class="menu-icon fa fa-envelope-o bg-light-blue"></i><div class="menu-info"><h4 class="control-sidebar-subheading">Nora Joined Mailing List</h4><p>nora@example.com</p></div></a></li><li><a href="javascript::;"><i class="menu-icon fa fa-file-code-o bg-green"></i><div class="menu-info"><h4 class="control-sidebar-subheading">Cron Job 254 Executed</h4><p>Execution time 5 seconds</p></div></a></li></ul><h3 class="control-sidebar-heading">Tasks Progress</h3><ul class="control-sidebar-menu"><li><a href="javascript::;"><h4 class="control-sidebar-subheading">Custom Template Design <span class="label label-danger pull-right">70%</span></h4><div class="progress progress-xxs"><div class="progress-bar progress-bar-danger" style="width: 70%"></div></div></a></li><li><a href="javascript::;"><h4 class="control-sidebar-subheading">Update Resume <span class="label label-success pull-right">95%</span></h4><div class="progress progress-xxs"><div class="progress-bar progress-bar-success" style="width: 95%"></div></div></a></li><li><a href="javascript::;"><h4 class="control-sidebar-subheading">Laravel Integration <span class="label label-warning pull-right">50%</span></h4><div class="progress progress-xxs"><div class="progress-bar progress-bar-warning" style="width: 50%"></div></div></a></li><li><a href="javascript::;"><h4 class="control-sidebar-subheading">Back End Framework <span class="label label-primary pull-right">68%</span></h4><div class="progress progress-xxs"><div class="progress-bar progress-bar-primary" style="width: 68%"></div></div></a></li></ul></div><div class="tab-pane" id="control-sidebar-settings-tab"><form method="post"><h3 class="control-sidebar-heading">General Settings</h3><div class="form-group"><label class="control-sidebar-subheading">Report panel usage <input type="checkbox" class="pull-right" checked=""></label><p>Some information about this general settings option</p></div><div class="form-group"><label class="control-sidebar-subheading">Allow mail redirect <input type="checkbox" class="pull-right" checked=""></label><p>Other sets of options are available</p></div><div class="form-group"><label class="control-sidebar-subheading">Expose author name in posts <input type="checkbox" class="pull-right" checked=""></label><p>Allow the user to show his name in blog posts</p></div><h3 class="control-sidebar-heading">Chat Settings</h3><div class="form-group"><label class="control-sidebar-subheading">Show me as online <input type="checkbox" class="pull-right" checked=""></label></div><div class="form-group"><label class="control-sidebar-subheading">Turn off notifications <input type="checkbox" class="pull-right"></label></div><div class="form-group"><label class="control-sidebar-subheading">Delete chat history <a href="javascript::;" class="text-red pull-right"><i class="fa fa-trash-o"></i></a></label></div></form></div></div>'),e.put("app/common/templates/fotter.html",'<strong>Copyright &copy; 2016-2017 <a ui-sref="learningtutorial">{{appName}}</a>.</strong> All rights reserved.'),e.put("app/common/templates/header.html",'<div ng-controller="HeaderCtrl"><div ng-if="auth_user"><cc-auto-refresh-fn refresh-fn="refreshList()" refresh-interval="refreshOpts.interval" refresh-model="list" refresh-paused="refreshOpts.paused" refresh-busy="refreshBusy" refresh-on-refreshed="setLastRefreshed(eventArgs)"></cc-auto-refresh-fn></div><a ui-sref="dashboard" class="logo"><span class="logo-mini"></span><span class="logo-lg"><b><img src="images/TranZLanta_LOGO.png" alt="Tranzlanta"></b></span></a><nav class="navbar navbar-static-top" role="navigation"><a class="logo1"><span ng-if="company.company_name" class="logo-lg"><b ng-bind="company.company_name"></b></span></a><div class="navbar-custom-menu"><ul class="nav navbar-nav"><li class="dropdown messages-menu" ng-if="state.current.name != \'track-transaction\'"><a href="#" ng-click="getRecentMessage()" class="dropdown-toggle" data-toggle="dropdown" ng-disabled="refreshBusy" title="Track Transaction"><i class="fa fa-eye"></i></a><div class="dropdown-menu"><div class="box-body"><div class="row"><form ng-submit="submitTransaction(track_transaction)" role="form" name="track_transaction"><div class="col-xs-12"><div class="form-group"><label>Select user type<code>*</code></label><select chosen="" inherit-select-classes="true" ng-model="transaction.user_type" validator="required" valid-method="blur" name="user_type" validation-group="user_type_error_message" required-error-message="{{transactionMessage.user_type.required}}" ng-options="type.value as type.text for type in userType" class="form-control" ng-change="checkManualValidation(track_transaction,\'user_type\')"></select><span id="user_type_error_message"></span></div></div><div class="col-xs-12"><div class="form-group"><label>Transaction number<code>*</code></label> <input placeholder="Please enter transaction number" type="text" class="form-control" name="number" required-error-message="{{transactionMessage.number.required}}" validator="required" valid-method="blur" ng-model="transaction.number" chars="text"></div></div><div class="col-xs-12"><div class="form-group"><label>Sender phone number<code>*</code></label> <input placeholder="Please enter sender phone number" type="text" class="form-control" name="phone_number" phone-input="" required-error-message="{{transactionMessage.sender_phone_number.required}}" maxlength-error-message="{{transactionMessage.sender_phone_number.maxlength}}" validator="required, maxlength=15" valid-method="blur" ng-model="transaction.phone_number"></div></div><div class="col-xs-12"><button type="submit" class="btn btn-info" ng-disabled="isSubmitted" align="center">Track Transaction</button> <a type="submit" ng-click="transaction={user_type: null};resetTransactionForm(track_transaction)" class="dropdown-toggle btn btn-info" data-toggle="dropdown" align="center">Cancel</a></div></form></div></div></div></li><li class="dropdown messages-menu"><a href="#" ng-click="getRecentMessage()" class="dropdown-toggle" data-toggle="dropdown" ng-disabled="refreshBusy"><i class="fa fa-envelope-o"></i> <span class="label label-success" ng-if="notifications.message > 0">{{notifications.message}}</span></a><ul class="dropdown-menu"><li class="header text-center"><span ng-if="notifications.message > 0">You have new {{notifications.message}} new messages</span> <span ng-if="notifications.message == 0">You don\'t have any new message</span></li><li><ul class="menu"><li ng-repeat="sender in message_list"><a href="#"><div class="pull-left"><img src="assets/img/user2-160x160.jpg" class="img-circle" alt="User Image"></div><h4>{{ sender.message_broadcast.user.name }} <small><i class="fa fa-clock-o"></i><span am-time-ago="sender.message_broadcast.created_at | amUtc | amLocal"></span></small></h4><p>{{ sender.message_broadcast.message | cut : true:30 }}</p></a></li></ul></li><li class="footer" ng-if="message_list.length"><a href="javascript:void(0);" ui-sref="message-broadcast-view">See All Messages</a></li></ul></li><li class="dropdown notifications-menu"><a href="#" ng-click="getRecentNotification()" class="dropdown-toggle" data-toggle="dropdown" ng-disabled="refreshBusy"><i class="fa fa-bell-o"></i> <span class="label label-warning" ng-if="notifications.notification > 0">{{notifications.notification}}</span></a><ul class="dropdown-menu"><li class="header text-center"><span ng-if="notifications.notification > 0">have {{notifications.notification}} new notifications</span> <span ng-if="notifications.notification == 0">You don\'t have any new notification</span></li><li><ul class="menu"><li ng-repeat="notification in notification_list"><a ui-sref="{{notification.replace_message.url}}"><p style="margin: 0 0 0px;">{{notification.replace_message.message | cut : true:40 }}</p><small style="float: right; font-size: 70%;"><i class="fa fa-clock-o" style="margin-right: 2px;"></i> <span am-time-ago="notification.created_at | amUtc | amLocal"></span></small></a></li></ul></li><li class="footer" ng-if="notification_list.length"><a ui-sref="notifications" href="#">View all notifications</a></li></ul></li><li class="dropdown user user-menu"><a href="" class="dropdown-toggle" data-toggle="dropdown"><img src="assets/img/user2-160x160.jpg" class="user-image" alt="User Image"> <span class="hidden-xs">{{auth_user.name}}</span></a><ul class="dropdown-menu"><li class="user-header"><img src="assets/img/user2-160x160.jpg" class="img-circle" alt="User Image"><p>{{auth_user.name}} - <span ng-repeat="(key, value) in role">{{value | capitalize}}</span> <small>Member since - {{auth_user.created_at | amUtc | amLocal | amDateFormat:\'MMMM, YYYY\'}}</small></p></li><li class="user-footer"><div class="pull-left"><a ui-sref="me" class="btn btn-default btn-flat">Settings</a></div><div class="pull-right"><a class="btn btn-default btn-flat" ng-click="logout()" ng-disabled="logoutInProgress" ng-bind="logoutInProgress ? \'Signing out...\' : \'Sign Out\'">Sign out</a></div></li></ul></li><li class=""><a ng-click="toggleModal()"><i class="fa fa-question"></i></a></li></ul></div></nav></div>'),e.put("app/common/templates/sidebar.html","<section class=\"sidebar\"><ul class=\"sidebar-menu\"><li class=\"treeview\" ui-sref-active=\"active\" ng-if=\"havePermission('dashboard', 'view');\"><a ui-sref=\"dashboard\"><i class=\"fa fa-dashboard\"></i> <span>Dashboard</span></a></li><li class=\"treeview\" ng-if=\"havePermission('roles', 'view');\" ng-class=\"{active: ('roles' | includedByState) || ('add-roles' | includedByState) || ('edit-roles' | includedByState)}\"><a ui-sref=\"roles\"><i class=\"fa fa-tasks\"></i> <span>Roles</span></a></li><li class=\"treeview\" ng-class=\"{active: ('company' | includedByState) || ('add-company' | includedByState) || ('edit-company' | includedByState) || ('users' | includedByState) || ('add-users' | includedByState) || ('edit-users' | includedByState) || ('agents' | includedByState) || ('add-agents' | includedByState) || ('edit-agents' | includedByState) || ('payee-agents' | includedByState) || ('add-payee-agents' | includedByState) || ('edit-payee-agents' | includedByState) || ('web-users' | includedByState) || ('add-web-users' | includedByState) || ('edit-web-users' | includedByState)}\" ng-if=\"(havePermission('admin', 'view')) || (havePermission('supersubadmin', 'view')) || (havePermission('agent', 'view')) || (havePermission('payeeagent', 'view')) || (havePermission('webuser', 'view'))\"><a href=\"#\"><i class=\"fa fa-users\"></i><span>Users</span> <i class=\"fa fa-angle-left pull-right\"></i></a><ul class=\"treeview-menu\"><li ng-if=\"havePermission('admin', 'view');\" ng-class=\"{active: ('company' | includedByState) || ('add-company' | includedByState) || ('edit-company' | includedByState)}\"><a ui-sref=\"company\"><i class=\"fa fa-building\"></i> <span>Companies</span></a></li><li ng-if=\"havePermission('supersubadmin', 'view');\" ng-class=\"{active: ('users' | includedByState) || ('add-users' | includedByState) || ('edit-users' | includedByState)}\"><a ui-sref=\"users\"><i class=\"fa fa-user-secret\"></i> <span>Super Sub Admin</span></a></li><li ng-class=\"{active: ('agents' | includedByState) || ('add-agents' | includedByState) || ('edit-agents' | includedByState)}\" ng-if=\"havePermission('agent', 'view');\"><a ui-sref=\"agents\"><i class=\"fa fa-users\"></i> <span>Agents</span></a></li><li ng-class=\"{active: ('payee-agents' | includedByState) || ('add-payee-agents' | includedByState) || ('edit-payee-agents' | includedByState)}\" ng-if=\"havePermission('payeeagent', 'view');\"><a ui-sref=\"payee-agents\"><i class=\"fa fa-user\"></i> <span>Payee Agents</span></a></li><li ng-class=\"{active: ('web-users' | includedByState) || ('add-web-users' | includedByState) || ('edit-web-users' | includedByState)}\" ng-if=\"havePermission('webuser', 'view');\"><a ui-sref=\"web-users\"><i class=\"fa fa-user-plus\"></i> <span>Web Users</span></a></li></ul></li><li class=\"treeview\" ng-if=\"(havePermission('banks', 'view')) || (havePermission('branch', 'view'))\" ng-class=\"{active: ('banks' | includedByState) || ('add-banks' | includedByState) || ('edit-banks' | includedByState) || ('bankbranchs' | includedByState) || ('add-bankbranchs' | includedByState) || ('edit-bankbranchs' | includedByState) }\"><a href=\"#\"><i class=\"fa fa-user\"></i><span>Bank</span> <i class=\"fa fa-angle-left pull-right\"></i></a><ul class=\"treeview-menu\"><li ng-class=\"{active: ('banks' | includedByState) || ('add-banks' | includedByState) || ('edit-banks' | includedByState)}\" ng-if=\"havePermission('banks', 'view');\"><a ui-sref=\"banks\"><i class=\"fa fa-circle-o\"></i> <span>Bank</span></a></li><li ng-class=\"{active: ('bankbranchs' | includedByState) || ('add-bankbranchs' | includedByState) || ('edit-bankbranchs' | includedByState)}\" ng-if=\"havePermission('branch', 'view');\"><a ui-sref=\"bankbranchs\"><i class=\"fa fa-circle-o\"></i> <span>Bank Branches</span></a></li></ul></li><li class=\"treeview\" ng-class=\"{active: ('message-broadcast' | includedByState)}\" ng-if=\"havePermission('messagebroadcast', 'view');\"><a ui-sref=\"message-broadcast\"><i class=\"fa fa-edit\"></i><span>Message Broadcast</span></a></li><li class=\"treeview\" ng-class=\"{active: ('transaction' | includedByState) || ('add-transaction' | includedByState) || ('edit-transaction' | includedByState)}\" ng-if=\"havePermission('transaction', 'view');\"><a ui-sref=\"transaction\"><i class=\"fa fa-transgender\"></i> <span>Transaction</span></a></li><li class=\"treeview\" ng-class=\"{active: ('cheque' | includedByState) || ('view-cheque' | includedByState)}\" ng-if=\"havePermission('cheque', 'view');\"><a ui-sref=\"cheque\"><i class=\"fa fa-clone\"></i> <span>Cheque</span></a></li><li class=\"treeview\" ng-class=\"{active: ('report' | includedByState) || ('cheque-report' | includedByState)}\" ng-if=\"havePermission('transaction', 'view');\"><a href=\"#\"><i class=\"fa fa-book\"></i><span>Report</span> <i class=\"fa fa-angle-left pull-right\"></i></a><ul class=\"treeview-menu\"><li ng-class=\"{active: ('report' | includedByState)}\" ng-if=\"havePermission('transaction', 'view');\"><a ui-sref=\"report\"><i class=\"fa fa-circle-o\"></i> <span>Transaction Report</span></a></li><li ng-class=\"{active: ('cheque-report' | includedByState)}\" ng-if=\"havePermission('transaction', 'view');\"><a ui-sref=\"cheque-report\"><i class=\"fa fa-circle-o\"></i> <span>Cheque Report</span></a></li></ul></li><li class=\"treeview\" ng-class=\"{active: ('sales' | includedByState)}\" ng-if=\"havePermission('transaction', 'view');\"><a ui-sref=\"sales\"><i class=\"fa fa-file\"></i> <span>Sales</span></a></li><li class=\"treeview\" ng-class=\"{active: ('commission' | includedByState)}\" ng-if=\"havePermission('transaction', 'view');\"><a ui-sref=\"commission\"><i class=\"fa fa-money\"></i> <span>Commission</span></a></li><li class=\"treeview\" ng-class=\"{active: ('service-location' | includedByState) || ('add-service-location' | includedByState) || ('edit-service-location' | includedByState)}\" ng-if=\"havePermission('servicelocation', 'view') || hasRole('admin');\"><a ui-sref=\"service-location\"><i class=\"fa fa-location-arrow\"></i> <span>Service Location</span></a></li><li class=\"treeview\" ng-if=\"havePermission('servicelocation', 'search');\" ng-class=\"{active: ('search-service' | includedByState)}\"><a ui-sref=\"search-service\"><i class=\"fa fa-search\"></i> <span>Search Service Availability</span></a></li><li class=\"treeview\" ng-class=\"{active: ('feedbacks' | includedByState) || ('add-feedbacks' | includedByState) || ('edit-feedbacks' | includedByState) || ('details-feedbacks' | includedByState)}\" ng-if=\"havePermission('feedbacks', 'view');\"><a ui-sref=\"feedbacks\"><i class=\"fa fa-transgender\"></i> <span>Feedback</span></a></li><li class=\"treeview\" ng-if=\"havePermission('banks', 'view');\" ng-class=\"{active: ('ofac_search' | includedByState)}\"><a ui-sref=\"ofac_search\"><i class=\"fa fa-search\"></i> <span>OFAC Search</span></a></li><li class=\"treeview\" ng-if=\"havePermission('transactionlimitrequest', 'view');\" ng-class=\"{active: ('transaction-limit-request' | includedByState)}\"><a ui-sref=\"transaction-limit-request\"><i class=\"fa fa-search\"></i> <span>Transaction Limit Request</span></a></li><li class=\"treeview\" ng-if=\"(havePermission('aboutus', 'view')) || (havePermission('termsandconditions', 'view'))\" ng-class=\"{active: ('aboutus' | includedByState) || ('edit-aboutus' | includedByState) || ('terms-conditions' | includedByState) || ('edit-terms-conditions' | includedByState) || ('contactus' | includedByState) || ('add-contactus' | includedByState) || ('policy' | includedByState) || ('offers' | includedByState) || ('add-offers' | includedByState) || ('edit-offers' | includedByState)}\"><a href=\"#\"><i class=\"fa fa-info\"></i><span>System Information</span> <i class=\"fa fa-angle-left pull-right\"></i></a><ul class=\"treeview-menu\"><li ng-class=\"{active: ('aboutus' | includedByState) || ('edit-aboutus' | includedByState)}\" ng-if=\"havePermission('aboutus', 'view');\"><a ui-sref=\"aboutus\"><i class=\"fa fa-circle-o\"></i>About Us</a></li><li ng-class=\"{active: ('terms-conditions' | includedByState) || ('edit-terms-conditions' | includedByState)}\" ng-if=\"havePermission('termsandconditions', 'view');\"><a ui-sref=\"terms-conditions\"><i class=\"fa fa-circle-o\"></i>Terms & Conditions</a></li><li ng-class=\"{active: ('contactus' | includedByState) }\" ng-if=\"(havePermission('contactus', 'view') || havePermission('contactus', 'create'));\"><a ui-sref=\"contactus\" ng-if=\"hasRole('admin')\"><i class=\"fa fa-circle-o\"></i> <span>Contact Us</span></a> <a ui-sref=\"add-contactus\" ng-class=\"{ active : ('add-contactus' | includedByState)}\" ng-if=\"!hasRole('admin')\"><i class=\"fa fa-circle-o\"></i> <span>Contact Us</span></a></li><li ng-class=\"{active: ('policy' | includedByState) }\" ng-if=\"havePermission('privacyandpolicy', 'view');\"><a ui-sref=\"policy\"><i class=\"fa fa-circle-o\"></i> <span>Privacy Policy</span></a></li><li class=\"treeview\" ng-if=\"havePermission('offerandpromotion', 'view');\" ng-class=\"{active: ('offers' | includedByState) || ('add-offers' | includedByState) || ('edit-offers' | includedByState)}\"><a ui-sref=\"offers\"><i class=\"fa fa-circle-o\"></i> <span>Offers and Promotion</span></a></li></ul></li><li class=\"treeview\" ng-if=\"havePermission('notifications', 'view');\" ng-class=\"{active: ('notifications' | includedByState)}\"><a ui-sref=\"notifications\"><i class=\"fa fa-search\"></i> <span>Notifications</span></a></li><li class=\"treeview\" ng-if=\"havePermission('currencyconvertorrate', 'view');\" ng-class=\"{active: ('currency' | includedByState)}\"><a ui-sref=\"currency\"><i class=\"fa fa-search\"></i> <span>Currency Convert</span></a></li><li class=\"treeview\" ng-class=\"{active: ('beneficiaries-users' | includedByState) || ('sender-users' | includedByState)}\"><a href=\"#\"><i class=\"fa fa-user\"></i><span>Transaction Users</span> <i class=\"fa fa-angle-left pull-right\"></i></a><ul class=\"treeview-menu\"><li ng-class=\"{active: ('beneficiaries-users' | includedByState)}\"><a ui-sref=\"beneficiaries-users\"><i class=\"fa fa-users\"></i> <span>Beneficiary</span></a></li><li ng-class=\"{active: ('sender-users' | includedByState)}\"><a ui-sref=\"sender-users\"><i class=\"fa fa-users\"></i> <span>Sender Users</span></a></li></ul></li></ul></section>"),e.put("app/pages/categories/affiliations/add.html",'<div class="row"><div class="col-md-6"><div ba-panel="" ba-panel-title="{{pageName}}" ba-panel-class="with-scroll"><form ng-submit="add_data(add_form)" role="form" name="add_form"><div class="form-group"><label>Name<code>*</code></label> <input type="text" ng-model="formscope.name" name="name" class="form-control" placeholder="Please enter momento name" required-error-message="{{errorMessage.name.required}}" focus-me="" minlength-error-message="{{errorMessage.name.minlength}}" maxlength-error-message="{{errorMessage.name.maxlength}}" validator="required, minlength=2, maxlength=50" valid-method="blur" chars="letters"></div><div class="form-group"><label>Description</label> <textarea class="form-control" placeholder="Please enter description" ng-model="formscope.description" name="description" maxlength-error-message="{{errorMessage.description.maxlength}}" validator="maxlength=500" valid-method="blur" chars="alpha-numeric"></textarea></div><div class="form-group"><label>Status</label><select chosen="" ng-model="formscope.status" name="status" ng-options="company.value as company.text for company in statusData" class="form-control"></select></div><button type="submit" ng-disabled="isSubmitted" class="btn btn-success" align="center">{{btnName}}</button> <a type="submit" ui-sref="categories.momentos.list" class="btn btn-info" align="center">Cancel</a></form></div></div></div>'),e.put("app/pages/categories/affiliations/view.html",'<div class="widgets"><div class="row"><div class="col-md-12"><div ba-panel="" ba-panel-title="{{ activePageTitle }} Listing"><div class="form-group select-page-size-wrap"><button class="btn btn-primary" ng-if="havePermission(\'momentos\',\'create\');" ui-sref="categories.momentos.add">Add</button></div><div class="horizontal-scroll"><table datatable="" dt-instance="dtInstance" dt-options="dtOptions" dt-columns="dtColumns" class="row-border hover"></table></div></div></div></div></div>'),e.put("app/pages/categories/emailtemplates/add.html",'<div class="row"><div class="col-md-6"><div ba-panel="" ba-panel-title="{{pageName}}" ba-panel-class="with-scroll"><form ng-submit="add_data(add_form)" role="form" name="add_form"><div class="form-group"><label>Email Subject<code>*</code></label> <input type="text" ng-model="formscope.title" name="title" class="form-control" placeholder="Please enter email templates name" required-error-message="{{errorMessage.title.required}}" focus-me="" minlength-error-message="{{errorMessage.title.minlength}}" maxlength-error-message="{{errorMessage.title.maxlength}}" validator="required, minlength=2, maxlength=50" valid-method="blur" chars="letters"></div><div class="form-group"><label>Email Action</label><select chosen="" ng-model="formscope.emailtype" name="emailtype" ng-options="email.value as email.text for email in emailtypeOption" class="form-control" ng-change="checkManualValidation()" required-error-message="{{errorMessage.emailType.required}}" validator="required" valid-method="watch,blur" validation-group="status_error_message"></select><span id="status_error_message"></span></div><div class="mail-checkbox" style="margin-bottom: 15px;"><label class="checkbox-inline custom-checkbox nowrap"><input type="checkbox" ng-model="formscope.is_default" ng-disabled="isDisabled"> <span>Mark as default</span></label></div><div class="form-group"><label>Message</label> <textarea class="form-control" placeholder="Please enter templates code here" ng-model="formscope.html_code" name="html_code" validator="required" valid-method="blur" chars="text"></textarea></div><div class="form-group"><label>Status</label><select chosen="" ng-model="formscope.status" name="status" ng-options="email.value as email.text for email in statusData" class="form-control"></select></div><button type="submit" ng-disabled="isSubmitted" class="btn btn-success" align="center">{{btnName}}</button> <a type="submit" ui-sref="categories.emailtemplates.list" class="btn btn-info" align="center">Cancel</a></form></div></div></div>'),
e.put("app/pages/categories/emailtemplates/view.html",'<div class="widgets"><div class="row"><div class="col-md-12"><div ba-panel="" ba-panel-title="{{ activePageTitle}} Listing"><div class="form-group select-page-size-wrap"><button class="btn btn-primary" ng-if="havePermission(\'emailtemplates\',\'create\');" ui-sref="categories.emailtemplates.add">Add</button></div><div class="horizontal-scroll"><table datatable="" dt-instance="dtInstance" dt-options="dtOptions" dt-columns="dtColumns" class="row-border hover"></table></div></div></div></div></div>'),e.put("app/pages/categories/locations/add.html",'<div class="row"><div class="col-md-6"><div ba-panel="" ba-panel-title="{{pageName}}" ba-panel-class="with-scroll"><form ng-submit="add_data(add_form)" role="form" name="add_form"><div class="form-group"><label>Name<code>*</code></label> <input type="text" ng-model="formscope.name" name="name" class="form-control" placeholder="Please enter info session name" focus-me="" required-error-message="{{errorMessage.name.required}}" minlength-error-message="{{errorMessage.name.minlength}}" maxlength-error-message="{{errorMessage.name.maxlength}}" validator="required, minlength=2, maxlength=50" valid-method="watch" chars="letters"></div><div class="form-group"><label>Description</label> <textarea class="form-control" placeholder="Please enter description" ng-model="formscope.description" name="description" maxlength-error-message="{{errorMessage.description.maxlength}}" validator="maxlength=500" valid-method="blur" chars="alpha-numeric"></textarea></div><div class="form-group"><label>Status</label><select chosen="" ng-model="formscope.status" name="status" ng-options="company.value as company.text for company in statusData" class="form-control"></select></div><button type="submit" ng-disabled="isSubmitted" class="btn btn-success" align="center">{{btnName}}</button> <a type="submit" ui-sref="categories.locations.list" class="btn btn-info" align="center">Cancel</a></form></div></div></div>'),e.put("app/pages/categories/locations/view.html",'<div class="widgets"><div class="row"><div class="col-md-12"><div ba-panel="" ba-panel-title="{{ activePageTitle }} Listing"><div class="form-group select-page-size-wrap"><button class="btn btn-primary" ng-if="havePermission(\'locations\',\'create\');" ui-sref="categories.locations.add">Add</button></div><div class="horizontal-scroll"><table datatable="" dt-instance="dtInstance" dt-options="dtOptions" dt-columns="dtColumns" class="row-border hover"></table></div></div></div></div></div>'),e.put("app/pages/categories/mealcategories/add.html",'<div class="row"><div class="col-md-6"><div ba-panel="" ba-panel-title="{{pageName}}" ba-panel-class="with-scroll"><form ng-submit="add_data(add_form)" role="form" name="add_form"><div class="form-group"><label>Name<code>*</code></label> <input type="text" ng-model="formscope.name" name="name" class="form-control" placeholder="Please enter meal category name" required-error-message="{{errorMessage.name.required}}" minlength-error-message="{{errorMessage.name.minlength}}" maxlength-error-message="{{errorMessage.name.maxlength}}" focus-me="" validator="required, minlength=2, maxlength=50" valid-method="blur" chars="letters"></div><div class="form-group"><label>Description</label> <textarea class="form-control" placeholder="Please enter description" ng-model="formscope.description" name="description" maxlength-error-message="{{errorMessage.description.maxlength}}" validator="maxlength=500" valid-method="blur" chars="alpha-numeric"></textarea></div><div class="form-group"><label>Status</label><select chosen="" ng-model="formscope.status" name="status" ng-options="status.value as status.text for status in statusData" class="form-control"></select></div><button type="submit" ng-disabled="isSubmitted" class="btn btn-success" align="center">{{btnName}}</button> <a type="submit" ui-sref="mealsvalue.mealcategories.list" class="btn btn-info" align="center">Cancel</a></form></div></div></div>'),e.put("app/pages/categories/mealcategories/view.html",'<div class="widgets"><div class="row"><div class="col-md-12"><div ba-panel="" ba-panel-title="Meal Categories Listing"><div class="form-group select-page-size-wrap"><button class="btn btn-primary" ng-if="havePermission(\'mealcategories\',\'create\');" ui-sref="mealsvalue.mealcategories.add">Add</button></div><div class="horizontal-scroll"><table datatable="" dt-instance="dtInstance" dt-options="dtOptions" dt-columns="dtColumns" class="row-border hover"></table></div></div></div></div></div>'),e.put("app/pages/categories/meals/add.html",'<div class="row"><div class="col-md-6"><div ba-panel="" ba-panel-title="{{pageName}}" ba-panel-class="with-scroll"><form ng-submit="add_data(add_form)" role="form" name="add_form"><div class="form-group"><label>Name<code>*</code></label> <input type="text" ng-model="formscope.name" name="name" class="form-control" placeholder="Please enter meals name" focus-me="" required-error-message="{{errorMessage.name.required}}" minlength-error-message="{{errorMessage.name.minlength}}" maxlength-error-message="{{errorMessage.name.maxlength}}" validator="required, minlength=2, maxlength=50" valid-method="blur" chars="letters"></div><div class="form-group"><label>Description</label> <textarea class="form-control" placeholder="Please enter description" ng-model="formscope.description" name="description" maxlength-error-message="{{errorMessage.description.maxlength}}" validator="maxlength=500" valid-method="blur" chars="alpha-numeric"></textarea></div><div class="form-group"><label>Status</label><select chosen="" ng-model="formscope.status" name="status" ng-options="company.value as company.text for company in statusData" class="form-control"></select></div><button type="submit" ng-disabled="isSubmitted" class="btn btn-success" align="center">{{btnName}}</button> <a type="submit" ui-sref="mealsvalue.meals.list" class="btn btn-info" align="center">Cancel</a></form></div></div></div>'),e.put("app/pages/categories/meals/view.html",'<div class="widgets"><div class="row"><div class="col-md-12"><div ba-panel="" ba-panel-title="{{ activePageTitle }} Listing"><div class="form-group select-page-size-wrap"><button class="btn btn-primary" ng-if="havePermission(\'meals\',\'create\');" ui-sref="mealsvalue.meals.add">Add</button></div><div class="horizontal-scroll"><table datatable="" dt-instance="dtInstance" dt-options="dtOptions" dt-columns="dtColumns" class="row-border hover"></table></div></div></div></div></div>'),e.put("app/pages/categories/mealservicelocations/add.html",'<div class="row"><div class="col-md-6"><div ba-panel="" ba-panel-title="{{pageName}}" ba-panel-class="with-scroll"><form ng-submit="add_data(add_form)" role="form" name="add_form"><div class="form-group"><label>Name<code>*</code></label> <input type="text" ng-model="formscope.name" name="name" class="form-control" placeholder="Please enter service location" required-error-message="{{errorMessage.name.required}}" focus-me="" minlength-error-message="{{errorMessage.name.minlength}}" maxlength-error-message="{{errorMessage.name.maxlength}}" validator="required, minlength=2, maxlength=50" valid-method="blur" chars="letters"></div><div class="form-group"><label>Description</label> <textarea class="form-control" placeholder="Please enter description" ng-model="formscope.description" name="description" maxlength-error-message="{{errorMessage.description.maxlength}}" validator="maxlength=500" valid-method="blur" chars="alpha-numeric"></textarea></div><div class="form-group"><label>Status</label><select chosen="" ng-model="formscope.status" name="status" ng-options="status.value as status.text for status in statusData" class="form-control"></select></div><button type="submit" ng-disabled="isSubmitted" class="btn btn-success" align="center">{{btnName}}</button> <a type="submit" ui-sref="mealsvalue.mealservicelocations.list" class="btn btn-info" align="center">Cancel</a></form></div></div></div>'),e.put("app/pages/categories/mealservicelocations/view.html",'<div class="widgets"><div class="row"><div class="col-md-12"><div ba-panel="" ba-panel-title="Meal Service Locations Listing"><div class="form-group select-page-size-wrap"><button class="btn btn-primary" ng-if="havePermission(\'mealservicelocations\',\'create\');" ui-sref="mealsvalue.mealservicelocations.add">Add</button></div><div class="horizontal-scroll"><table datatable="" dt-instance="dtInstance" dt-options="dtOptions" dt-columns="dtColumns" class="row-border hover"></table></div></div></div></div></div>'),e.put("app/pages/categories/mealservicetypes/add.html",'<div class="row"><div class="col-md-6"><div ba-panel="" ba-panel-title="{{pageName}}" ba-panel-class="with-scroll"><form ng-submit="add_data(add_form)" role="form" name="add_form"><div class="form-group"><label>Name<code>*</code></label> <input type="text" ng-model="formscope.name" name="name" class="form-control" placeholder="Please enter service type" required-error-message="{{errorMessage.name.required}}" focus-me="" minlength-error-message="{{errorMessage.name.minlength}}" maxlength-error-message="{{errorMessage.name.maxlength}}" validator="required, minlength=2, maxlength=50" valid-method="blur" chars="letters"></div><div class="form-group"><label>Description</label> <textarea class="form-control" placeholder="Please enter description" ng-model="formscope.description" name="description" maxlength-error-message="{{errorMessage.description.maxlength}}" validator="maxlength=500" valid-method="blur" chars="alpha-numeric"></textarea></div><div class="form-group"><label>Type<code>*</code></label><div class="input-demo radio-demo row"><div class="col-md-2"><label class="radio-inline custom-radio nowrap"><input type="radio" ng-model="formscope.type" name="type" id="inlineRadio1" value="1"> <span>Free</span></label></div><div class="col-md-2"><label class="radio-inline custom-radio nowrap"><input type="radio" ng-model="formscope.type" name="type" id="inlineRadio2" value="2"> <span>Paid</span></label></div></div></div><div class="form-group" ng-if="formscope.type == \'2\'"><label>Cost (Per Person)<code>*</code></label> <input type="text" ng-model="formscope.cost" name="cost" class="form-control" placeholder="Please enter cost" chars="only-numbers" required-error-message="{{errorMessage.cost.required}}" minlength-error-message="{{errorMessage.cost.minlength}}" maxlength-error-message="{{errorMessage.cost.maxlength}}" validator="required, minlength=1, maxlength=5" valid-method="blur"></div><div class="form-group"><label>Status</label><select chosen="" ng-model="formscope.status" name="status" ng-options="status.value as status.text for status in statusData" class="form-control"></select></div><button type="submit" ng-disabled="isSubmitted" class="btn btn-success" align="center">{{btnName}}</button> <a type="submit" ui-sref="mealsvalue.mealservicetypes.list" class="btn btn-info" align="center">Cancel</a></form></div></div></div>'),e.put("app/pages/categories/mealservicetypes/view.html",'<div class="widgets"><div class="row"><div class="col-md-12"><div ba-panel="" ba-panel-title="Meal Service Types Listing"><div class="form-group select-page-size-wrap"><button class="btn btn-primary" ng-if="havePermission(\'mealservicetypes\',\'create\');" ui-sref="mealsvalue.mealservicetypes.add">Add</button></div><div class="horizontal-scroll"><table datatable="" dt-instance="dtInstance" dt-options="dtOptions" dt-columns="dtColumns" class="row-border hover"></table></div></div></div></div></div>'),e.put("app/pages/categories/momentos/add.html",'<div class="row"><div class="col-md-6"><div ba-panel="" ba-panel-title="{{pageName}}" ba-panel-class="with-scroll"><form ng-submit="add_data(add_form)" role="form" name="add_form"><div class="form-group"><label>Name<code>*</code></label> <input type="text" ng-model="formscope.name" name="name" class="form-control" placeholder="Please enter momento name" required-error-message="{{errorMessage.name.required}}" focus-me="" minlength-error-message="{{errorMessage.name.minlength}}" maxlength-error-message="{{errorMessage.name.maxlength}}" validator="required, minlength=2, maxlength=50" valid-method="blur" chars="letters"></div><div class="form-group"><label>Description</label> <textarea class="form-control" placeholder="Please enter description" ng-model="formscope.description" name="description" maxlength-error-message="{{errorMessage.description.maxlength}}" validator="maxlength=500" valid-method="blur" chars="alpha-numeric"></textarea></div><div class="form-group"><label>Status</label><select chosen="" ng-model="formscope.status" name="status" ng-options="company.value as company.text for company in statusData" class="form-control"></select></div><button type="submit" ng-disabled="isSubmitted" class="btn btn-success" align="center">{{btnName}}</button> <a type="submit" ui-sref="categories.momentos.list" class="btn btn-info" align="center">Cancel</a></form></div></div></div>'),e.put("app/pages/categories/momentos/view.html",'<div class="widgets"><div class="row"><div class="col-md-12"><div ba-panel="" ba-panel-title="{{ activePageTitle }} Listing"><div class="form-group select-page-size-wrap"><button class="btn btn-primary" ng-if="havePermission(\'momentos\',\'create\');" ui-sref="categories.momentos.add">Add</button></div><div class="horizontal-scroll"><table datatable="" dt-instance="dtInstance" dt-options="dtOptions" dt-columns="dtColumns" class="row-border hover"></table></div></div></div></div></div>'),e.put("app/pages/categories/organizations/add.html",'<div class="row"><div class="col-md-6"><div ba-panel="" ba-panel-title="{{pageName}}" ba-panel-class="with-scroll"><form ng-submit="add_data(add_form)" role="form" name="add_form"><div class="form-group"><label>Name<code>*</code></label> <input type="text" ng-model="formscope.name" name="name" class="form-control" placeholder="Please enter organization type" required-error-message="{{errorMessage.name.required}}" focus-me="" minlength-error-message="{{errorMessage.name.minlength}}" maxlength-error-message="{{errorMessage.name.maxlength}}" validator="required, minlength=2, maxlength=50" valid-method="blur" chars="letters"></div><div class="form-group"><label>Description</label> <textarea class="form-control" placeholder="Please enter description" ng-model="formscope.description" name="description" maxlength-error-message="{{errorMessage.description.maxlength}}" validator="maxlength=500" valid-method="blur" chars="alpha-numeric"></textarea></div><div class="form-group"><label>Status</label><select chosen="" ng-model="formscope.status" name="status" ng-options="company.value as company.text for company in statusData" class="form-control"></select></div><button type="submit" ng-disabled="isSubmitted" class="btn btn-success" align="center">{{btnName}}</button> <a type="submit" ui-sref="categories.organizations.list" class="btn btn-info" align="center">Cancel</a></form></div></div></div>'),e.put("app/pages/categories/organizations/view.html",'<div class="widgets"><div class="row"><div class="col-md-12"><div ba-panel="" ba-panel-title="{{ activePageTitle }} Listing"><div class="form-group select-page-size-wrap"><button class="btn btn-primary" ng-if="havePermission(\'organizations\',\'create\');" ui-sref="categories.organizations.add">Add</button></div><div class="horizontal-scroll"><table datatable="" dt-instance="dtInstance" dt-options="dtOptions" dt-columns="dtColumns" class="row-border hover"></table></div></div></div></div></div>'),e.put("app/pages/categories/tourtypes/add.html",'<div class="row"><div class="col-md-6"><div ba-panel="" ba-panel-title="{{pageName}}" ba-panel-class="with-scroll"><form ng-submit="add_data(add_form)" role="form" name="add_form"><div class="form-group"><label>Name<code>*</code></label> <input type="text" ng-model="formscope.name" name="name" class="form-control" placeholder="Please enter tour type" required-error-message="{{errorMessage.name.required}}" focus-me="" minlength-error-message="{{errorMessage.name.minlength}}" maxlength-error-message="{{errorMessage.name.maxlength}}" validator="required, minlength=2, maxlength=50" valid-method="blur" chars="letters"></div><div class="form-group"><label>Status</label><select chosen="" ng-model="formscope.status" name="status" ng-options="company.value as company.text for company in statusData" class="form-control"></select></div><button type="submit" ng-disabled="isSubmitted" class="btn btn-success" align="center">{{btnName}}</button> <a type="submit" ui-sref="categories.tourtypes.list" class="btn btn-info" align="center">Cancel</a></form></div></div></div>'),e.put("app/pages/categories/tourtypes/taskdetails.html",'<div class="widgets"><div class="row"><div class="col-md-12"><div ba-panel="" ba-panel-title="Tour Type: {{tourtype.name}}" ba-panel-class="with-scroll"><div class="add-row-editable-table"><button ng-if="havePermission(\'tourtypes\',\'create\');" class="btn btn-primary" ng-click="addTask()">{{btnName}}</button> <button ui-sref="categories.tourtypes.list" type="button" class="back-button btn btn-default btn-with-icon pull-right"><i class="ion-chevron-left"></i>Tour type</button></div><table class="table table-bordered table-hover table-condensed"><tr><td></td><td>Name</td><td>Status</td><td>Actions</td></tr><tr ng-repeat="user in tourtype.defaulttask" class="editable-row"><td>{{$index+1}}</td><td><span editable-text="user.task" e-chars="alpha-numeric" e-name="task" e-form="rowform" e-required="" onbeforesave="checkTask($data)">{{ user.task || \'empty\' }}</span></td><td class="select-td"><span editable-select="user.status" e-name="status" e-form="rowform" e-selectpicker="" e-ng-options="s.value as s.text for s in statuses" onbeforesave="checkStatus($data)">{{ showStatus(user) }}</span></td><td><form onbeforesave="add_data($data, $index, user.id)" role="form" editable-form="" name="rowform" ng-show="rowform.$visible" class="form-buttons form-inline" shown="inserted == user"><button type="submit" ng-disabled="rowform.$waiting" class="btn btn-primary editable-table-button btn-xs">Save</button><button ng-if="user.id == null" type="button" ng-disabled="rowform.$waiting" ng-click="cancelRow($index)" class="btn btn-default editable-table-button btn-xs">Cancel</button> <button ng-if="user.id != null" type="button" ng-disabled="rowform.$waiting" ng-click="rowform.$cancel()" class="btn btn-default editable-table-button btn-xs">Cancel</button></form><div class="buttons" ng-show="!rowform.$visible"><button class="btn btn-primary editable-table-button btn-xs" ng-click="rowform.$show()">Edit</button> <button class="btn btn-danger editable-table-button btn-xs" ng-confirm-click="Are you sure to delete this task?" confirmed-click="removeTask(user.id, $index)">Delete</button></div></td></tr></table></div></div></div></div>'),e.put("app/pages/categories/tourtypes/view.html",'<div class="widgets"><div class="row"><div class="col-md-12"><div ba-panel="" ba-panel-title="{{ activePageTitle }} Listing"><div class="form-group select-page-size-wrap"><button class="btn btn-primary" ng-if="havePermission(\'tourtypes\',\'create\');" ui-sref="categories.tourtypes.add">Add</button></div><div class="horizontal-scroll"><table datatable="" dt-instance="dtInstance" dt-options="dtOptions" dt-columns="dtColumns" class="row-border hover"></table></div></div></div></div></div>'),e.put("app/pages/categories/transports/add.html",'<div class="row"><div class="col-md-6"><div ba-panel="" ba-panel-title="{{pageName}}" ba-panel-class="with-scroll"><form ng-submit="add_data(add_form)" role="form" name="add_form"><div class="form-group"><label>Name<code>*</code></label> <input type="text" ng-model="formscope.name" name="name" class="form-control" placeholder="Please enter transport name" required-error-message="{{errorMessage.name.required}}" focus-me="" minlength-error-message="{{errorMessage.name.minlength}}" maxlength-error-message="{{errorMessage.name.maxlength}}" validator="required, minlength=2, maxlength=50" valid-method="blur" chars="letters"></div><div class="form-group"><label>Description</label> <textarea class="form-control" placeholder="Please enter description" ng-model="formscope.description" name="description" maxlength-error-message="{{errorMessage.description.maxlength}}" validator="maxlength=500" valid-method="blur" chars="alpha-numeric"></textarea></div><div class="form-group"><label>Status</label><select chosen="" ng-model="formscope.status" name="status" ng-options="company.value as company.text for company in statusData" class="form-control"></select></div><button type="submit" ng-disabled="isSubmitted" class="btn btn-success" align="center">{{btnName}}</button> <a type="submit" ui-sref="categories.transports.list" class="btn btn-info" align="center">Cancel</a></form></div></div></div>'),e.put("app/pages/categories/transports/view.html",'<div class="widgets"><div class="row"><div class="col-md-12"><div ba-panel="" ba-panel-title="{{ activePageTitle }} Listing"><div class="form-group select-page-size-wrap"><button class="btn btn-primary" ng-if="havePermission(\'transports\',\'create\');" ui-sref="categories.transports.add">Add</button></div><div class="horizontal-scroll"><table datatable="" dt-instance="dtInstance" dt-options="dtOptions" dt-columns="dtColumns" class="row-border hover"></table></div></div></div></div></div>'),e.put("app/pages/categories/visitors/add.html",'<div class="row"><div class="col-md-6"><div ba-panel="" ba-panel-title="{{pageName}}" ba-panel-class="with-scroll"><form ng-submit="add_data(add_form)" role="form" name="add_form"><div class="form-group"><label>Name<code>*</code></label> <input type="text" ng-model="formscope.name" name="name" class="form-control" placeholder="Please enter visitor type" required-error-message="{{errorMessage.name.required}}" focus-me="" minlength-error-message="{{errorMessage.name.minlength}}" maxlength-error-message="{{errorMessage.name.maxlength}}" validator="required, minlength=2, maxlength=50" valid-method="blur" chars="letters"></div><div class="form-group"><label>Description</label> <textarea class="form-control" placeholder="Please enter description" ng-model="formscope.description" name="description" maxlength-error-message="{{errorMessage.description.maxlength}}" validator="maxlength=500" valid-method="blur" chars="alpha-numeric"></textarea></div><div class="form-group"><label>Status</label><select chosen="" ng-model="formscope.status" name="status" ng-options="company.value as company.text for company in statusData" class="form-control"></select></div><button type="submit" ng-disabled="isSubmitted" class="btn btn-success" align="center">{{btnName}}</button> <a type="submit" ui-sref="categories.visitors.list" class="btn btn-info" align="center">Cancel</a></form></div></div></div>'),e.put("app/pages/categories/visitors/view.html",'<div class="widgets"><div class="row"><div class="col-md-12"><div ba-panel="" ba-panel-title="{{ activePageTitle }} Listing"><div class="form-group select-page-size-wrap"><button class="btn btn-primary" ng-if="havePermission(\'visitors\',\'create\');" ui-sref="categories.visitors.add">Add</button></div><div class="horizontal-scroll"><table datatable="" dt-instance="dtInstance" dt-options="dtOptions" dt-columns="dtColumns" class="row-border hover"></table></div></div></div></div></div>'),e.put("app/pages/dashboard/dashboardCalendar/dashboardCalendar.html",'<div id="calendar" class="blurCalendar"></div>'),e.put("app/pages/roles/modal/showPermissions.html",'<div class="box"><div class="box-body"><div ng-if="role.permissions.length > 0"><input type="text" class="form-control" ng-model="myQuery" placeholder="Search permissions"><div ivh-treeview="role.permissions" ivh-treeview-expand-to-depth="1" ivh-treeview-use-checkboxes="false" ivh-treeview-filter="myQuery"></div></div><div ng-if="role.permissions.length == 0">No any permissions</div></div></div>'),e.put("app/pages/users/widgets/form.html",'<div class="ng-cloak" ng-controller="UsersCtrl as selectpickerVm"><form><div class="form-group col-md-6"><label for="input01">First Name</label> <input type="text" class="form-control" id="input01" placeholder="Please enter first name"></div><div class="form-group col-md-6"><label for="input01">Last Name</label> <input type="text" class="form-control" id="input01" placeholder="Please enter Last name"></div><div class="form-group col-md-12"><label for="input01">Email</label> <input type="text" class="form-control" id="input01" placeholder="Please enter email"></div><div class="form-group col-md-12"><label for="input02">Password</label> <input type="password" class="form-control" id="input02" placeholder="Please enter password"></div><div class="form-group col-md-12"><label for="input02">Confirm Password</label> <input type="password" class="form-control" id="input02" placeholder="Please enter confirm password"></div><div class="form-group col-md-12"><label for="input04">Phone Number</label> <input type="text" class="form-control" id="input04" placeholder="Please enter your phone number"></div><div class="form-group col-md-12"><label for="textarea01">Address</label> <textarea placeholder="Please enter address" class="form-control" id="textarea01"></textarea></div><div class="form-group col-md-12"><label for="textarea01">Gender</label><ui-select ng-model="selectpickerVm.gender.selected" class="btn-group bootstrap-select form-control" ng-disabled="false" append-to-body="true" search-enabled="false"><ui-select-match placeholder="Please select gender"><span>{{$select.selected.label}}</span></ui-select-match><ui-select-choices repeat="standardItem in genderOption"><span ng-bind-html="standardItem.label"></span></ui-select-choices></ui-select></div><div class="form-group col-md-12"><label for="textarea01">User Type</label><ui-select ng-model="selectpickerVm.user_type.selected" class="btn-group bootstrap-select form-control" ng-disabled="false" append-to-body="true" search-enabled="false"><ui-select-match placeholder="Please select type"><span>{{$select.selected.label}}</span></ui-select-match><ui-select-choices repeat="standardItem in userTypeOption"><span ng-bind-html="standardItem.label"></span></ui-select-choices></ui-select></div></form></div>'),e.put("app/theme/components/baSidebar/ba-sidebar.html",'<aside class="al-sidebar" ng-swipe-right="$baSidebarService.setMenuCollapsed(false)" ng-swipe-left="$baSidebarService.setMenuCollapsed(true)" ng-mouseleave="hoverElemTop=selectElemTop"><ul class="al-sidebar-list" slimscroll="{height: \'{{menuHeight}}px\'}" slimscroll-watch="menuHeight"><li ng-repeat="item in ::menuItems" class="al-sidebar-list-item" ng-class="::{\'with-sub-menu\': item.subMenu}" ui-sref-active="selected" ba-sidebar-toggling-item="item"><a ng-mouseenter="hoverItem($event, item)" ui-state="item.stateRef || \'\'" ng-href="{{::(item.fixedHref ? item.fixedHref: \'\')}}" ng-if="::!item.subMenu" class="al-sidebar-list-link"><i class="{{ ::item.icon }}"></i><span>{{ ::item.title }}</span></a> <a ng-mouseenter="hoverItem($event, item)" ng-if="::item.subMenu" class="al-sidebar-list-link" ba-ui-sref-toggler=""><i class="{{ ::item.icon }}"></i><span>{{ ::item.title }}</span> <b class="fa fa-angle-down" ui-sref-active="fa-angle-up" ng-if="::item.subMenu"></b></a><ul ng-if="::item.subMenu" class="al-sidebar-sublist" ng-class="{\'slide-right\': item.slideRight}" ba-ui-sref-toggling-submenu=""><li ng-repeat="subitem in ::item.subMenu" ng-class="::{\'with-sub-menu\': subitem.subMenu}" ui-sref-active="selected" ba-sidebar-toggling-item="subitem" class="ba-sidebar-sublist-item"><a ng-mouseenter="hoverItem($event, item)" ng-if="::subitem.subMenu" ba-ui-sref-toggler="" class="al-sidebar-list-link subitem-submenu-link"><span>{{ ::subitem.title }}</span> <b class="fa" ng-class="{\'fa-angle-up\': subitem.expanded, \'fa-angle-down\': !subitem.expanded}" ng-if="::subitem.subMenu"></b></a><ul ng-if="::subitem.subMenu" class="al-sidebar-sublist subitem-submenu-list" ng-class="{expanded: subitem.expanded, \'slide-right\': subitem.slideRight}" ba-ui-sref-toggling-submenu=""><li ng-mouseenter="hoverItem($event, item)" ng-repeat="subSubitem in ::subitem.subMenu" ui-sref-active="selected"><a ng-mouseenter="hoverItem($event, item)" href="" ng-if="::subSubitem.disabled" class="al-sidebar-list-link">{{ ::subSubitem.title }}</a> <a ng-mouseenter="hoverItem($event, item)" ui-state="subSubitem.stateRef || \'\'" ng-if="::!subSubitem.disabled" ng-href="{{::(subSubitem.fixedHref ? subSubitem.fixedHref: \'\')}}">{{::subSubitem.title }}</a></li></ul><a ng-mouseenter="hoverItem($event, item)" href="" ng-if="::(!subitem.subMenu && subitem.disabled)" class="al-sidebar-list-link">{{ ::subitem.title }}</a> <a ng-mouseenter="hoverItem($event, item)" target="{{::(subitem.blank ? \'_blank\' : \'_self\')}}" ng-if="::(!subitem.subMenu && !subitem.disabled)" ui-state="subitem.stateRef || \'\'" ng-href="{{::(subitem.fixedHref ? subitem.fixedHref: \'\')}}">{{ ::subitem.title}}</a></li></ul></li></ul><div class="sidebar-hover-elem" ng-style="{top: hoverElemTop + \'px\', height: hoverElemHeight + \'px\'}" ng-class="{\'show-hover-elem\': showHoverElem }"></div></aside>'),e.put("app/theme/components/baWizard/baWizard.html",'<div class="ba-wizard"><div class="ba-wizard-navigation-container"><div ng-repeat="t in $baWizardController.tabs" class="ba-wizard-navigation {{$baWizardController.tabNum == $index ? \'active\' : \'\'}}" ng-click="$baWizardController.selectTab($index)">{{t.title}}</div></div><div class="progress ba-wizard-progress"><div class="progress-bar progress-bar-danger active" role="progressbar" aria-valuemin="0" aria-valuemax="100" ng-style="{width: $baWizardController.progress + \'%\'}"></div></div><div class="steps" ng-transclude=""></div><nav><ul class="pager ba-wizard-pager"><li class="previous"><button ng-disabled="$baWizardController.isFirstTab()" ng-click="$baWizardController.previousTab()" type="button" class="btn btn-primary"><span aria-hidden="true">&larr;</span> previous</button></li><li class="next"><button ng-disabled="$baWizardController.isLastTab()" ng-click="$baWizardController.nextTab()" type="button" class="btn btn-primary">next <span aria-hidden="true">&rarr;</span></button></li></ul></nav></div>'),e.put("app/theme/components/baWizard/baWizardStep.html",'<section ng-show="selected" class="step" ng-transclude=""></section>'),e.put("app/theme/components/backTop/backTop.html",'<i class="fa fa-angle-up back-top" id="backTop" title="Back to Top"></i>'),e.put("app/theme/components/contentTop/contentTop.html",'<div class="content-top clearfix"><h1 class="al-title">{{ activePageTitle }}</h1><ul class="breadcrumb al-breadcrumb"><li><a href="#/dashboard">Home</a></li><li>{{ activePageTitle }}</li></ul></div>'),e.put("app/theme/components/msgCenter/msgCenter.html",'<div ng-if="auth_user"><cc-auto-refresh-fn refresh-fn="refreshList()" refresh-interval="refreshOpts.interval" refresh-model="list" refresh-paused="refreshOpts.paused" refresh-busy="refreshBusy" refresh-on-refreshed="setLastRefreshed(eventArgs)"></cc-auto-refresh-fn></div><ul class="al-msg-center clearfix"><li uib-dropdown=""><a href="" uib-dropdown-toggle=""><i class="fa fa-bell-o"></i> <span ng-if="notification_old_count != 0">{{notification_old_count}}</span><div class="notification-ring"></div></a><div uib-dropdown-menu="" class="top-dropdown-menu"><i class="dropdown-arr"></i><div class="header clearfix"><strong>Notifications</strong> <a ng-click="markReadTopNotification()" ng-if="notification_old_count != 0" href="">Mark All as Read</a></div><div class="msg-list"><a href="" class="clearfix cursorDefault" ng-repeat="msg in notification_old_data"><div class="img-area"><img ng-if="msg.user.image != \'\'" ng-class="{\'photo-msg-item\' : !msg.user.image}" ng-src="{{imagePath}}{{msg.user.id}}/{{msg.user.image}}"> <img ng-if="msg.user.image == \'\'" ng-class="{\'photo-msg-item\' : !msg.user.image}" ng-src="{{::( msg.user.image || dummyImage )}}"></div><div class="msg-area"><div>{{msg.message}}</div><span am-time-ago="msg.created_at | amUtc | amLocal"></span></div></a></div><a ui-sref="notifications">See all notifications</a></div></li></ul>'),
e.put("app/theme/components/pageTop/pageTop.html",'<div class="page-top clearfix" scroll-position="scrolled" max-height="50" ng-class="{\'scrolled\': scrolled}"><a href="#/dashboard" class="al-logo clearfix col-lg-1"><img src="{{logoImage}}"></a> <a href="" class="collapse-menu-link ion-navicon" ba-sidebar-toggle-menu=""></a><div class="user-profile clearfix"><div class="al-user-profile" uib-dropdown=""><a uib-dropdown-toggle="" class="profile-toggle-link"><img ng-src="{{profilePicture}}"></a><ul class="top-dropdown-menu profile-dropdown" uib-dropdown-menu=""><li><i class="dropdown-arr"></i></li><li><a ui-sref="users.edit-profile"><i class="fa fa-user"></i>Profile</a></li><li><a href="" class="signout" ng-click="logout()" ng-disabled="logoutInProgress"><i class="fa fa-power-off"></i>Sign out</a></li></ul></div><msg-center></msg-center></div></div>'),e.put("app/theme/components/progressBarRound/progressBarRound.html",'<svg class="center-block progress-bar-round" width="200" height="200"><circle cx="100" cy="100" r="90" fill="none" stroke="#F8F8FF" stroke-width="8"></circle><circle cx="100" cy="100" r="90" fill="none" id="loader" class="" stroke="#209e91" stroke-width="8" stroke-dasharray="0,20000" transform="rotate(-90,100,100)" stroke-linecap="round"></circle><text text-anchor="middle" class="loading" x="100" y="90">Loading...</text><text class="percentage" text-anchor="middle" x="100" y="130">{{progress}}%</text></svg>'),e.put("app/theme/components/widgets/widgets.html",'<div class="widgets"><div ng-repeat="widgetBlock in ngModel" ng-class="{\'row\': widgetBlock.widgets.length > 1}"><div ng-repeat="widgetCol in widgetBlock.widgets" ng-class="{\'col-md-6\': widgetBlock.widgets.length === 2}" ng-model="widgetCol" class="widgets-block"><div ba-panel="" ba-panel-title="{{::widget.title}}" ng-repeat="widget in widgetCol" ba-panel-class="with-scroll {{widget.panelClass}}"><div ng-include="widget.url"></div></div></div></div></div>'),e.put("app/theme/inputs/baSwitcher/baSwitcher.html",'<label class="switcher-container"><input type="checkbox" ng-model="switcherValue"><div class="switcher" ng-class="::switcherStyle"><div class="handle-container"><span class="handle handle-on">ON</span> <span class="handle"></span> <span class="handle handle-off">OFF</span></div></div></label>')}]);