text: !function(){"use strict";function e(e,t,n,a){e.state("app.issues",{"abstract":!0,url:"/issues"}).state("app.issues.boards",{url:"/boards",views:{"content@app":{templateUrl:"app/main/issues/views/boards/boards-view.html",controller:"BoardsViewController as vm"}}}).state("app.issues.boards.board",{url:":id/:uri",views:{"content@app":{templateUrl:"app/main/issues/issues.html",controller:"ScrumboardController as vm"},"issuesContent@app.issues.boards.board":{templateUrl:"app/main/issues/views/board/board-view.html",controller:"BoardViewController as vm"}},resolve:{BoardData:["$stateParams","BoardService",function(e,t){return{}}]}}).state("app.issues.boards.addBoard",{url:"/add",views:{"content@app":{templateUrl:"app/main/issues/issues.html",controller:"ScrumboardController as vm"},"issuesContent@app.issues.boards.addBoard":{templateUrl:"app/main/issues/views/board/board-view.html",controller:"BoardViewController as vm"}},resolve:{BoardData:["$stateParams","BoardService",function(e,t){return t.addNewBoard()}]}}),t.addPart("app/main/issues"),a.saveItem("fuse",{title:"ApilaCare",group:!0,weight:1}),a.saveItem("fuse.issues",{title:"Issues",icon:"icon-trello",state:"app.issues.boards.board",badge:{content:0,color:"#F44336"},weight:1})}e.$inject=["$stateProvider","$translatePartialLoaderProvider","msApiProvider","msNavigationServiceProvider"],angular.module("app.issues",[]).config(e)}(),function(){"use strict";function e(e,t,n){function a(){}function i(n,a){var i=t.confirm({title:"Remove Member",parent:e.find("#issues"),textContent:"Are you sure want to remove member?",ariaLabel:"remove member",targetEvent:n,clickOutsideToClose:!0,escapeToClose:!0,ok:"Remove",cancel:"Cancel"});t.show(i).then(function(){var e=o.board.members;e.splice(e.indexOf(e.getById(a)),1),angular.forEach(o.board.cards,function(e){e.idMembers&&e.idMembers.indexOf(a)>-1&&e.idMembers.splice(e.idMembers.indexOf(a),1)})},function(){})}var o=this;o.board=n.data,o.newMemberSearchInput="",o.addNewMember=a,o.removeMember=i}e.$inject=["$document","$mdDialog","BoardService"],angular.module("app.issues").controller("MembersMenuController",e)}(),function(){"use strict";function e(e,t,n,a,i,o){function s(){r.board.labels.push({id:i.guidGenerator(),name:r.newLabelName,color:r.newLabelColor}),r.newLabelName=""}function l(t,a){var i=n.confirm({title:"Remove Label",parent:e.find("#issues"),textContent:"Are you sure want to remove label?",ariaLabel:"remove label",targetEvent:t,clickOutsideToClose:!0,escapeToClose:!0,ok:"Remove",cancel:"Cancel"});n.show(i).then(function(){var e=r.board.labels;e.splice(e.indexOf(e.getById(a)),1),angular.forEach(r.board.cards,function(e){e.idLabels&&e.idLabels.indexOf(a)>-1&&e.idLabels.splice(e.idLabels.indexOf(a),1)})},function(){})}var r=this;r.board=o.data,r.palettes=t,r.rgba=a.rgba,r.hue=500,r.newLabelColor="red",r.newLabelName="",r.addNewLabel=s,r.removeLabel=l}e.$inject=["$document","$mdColorPalette","$mdDialog","fuseGenerator","msUtils","BoardService"],angular.module("app.issues").controller("LabelsMenuController",e)}(),function(){"use strict";function e(e,t){var n=this;n.board=t.data,n.palettes=e}e.$inject=["$mdColorPalette","BoardService"],angular.module("app.issues").controller("ColorMenuController",e)}(),function(){"use strict";function e(e){e.state("app.ui_theme-colors",{url:"/ui/theme-colors",views:{"content@app":{templateUrl:"app/main/ui/theme-colors/theme-colors.html",controller:"ThemeColorsController as vm"}},bodyClass:"theme-colors"})}e.$inject=["$stateProvider"],angular.module("app.ui.theme-colors",[]).config(e)}(),function(){"use strict";function e(e,t,n,a,i){function o(){a.putObject("customTheme",l.theme),a.put("selectedTheme","custom"),i.location.reload()}function s(){t.hide()}var l=this;l.palettes=e.getRegisteredPalettes(),l.themes=e.getRegisteredThemes(),delete l.palettes.grey[1e3],l.rgba=n.rgba,l.setTheme=o,l.closeDialog=s,l.themes.custom?l.theme=l.themes.custom.colors:l.theme=angular.copy(l.themes["default"].colors)}e.$inject=["fuseTheming","$mdDialog","fuseGenerator","$cookies","$window"],angular.module("app.ui.theme-colors").controller("CustomThemeDialogController",e)}(),function(){"use strict";function e(e){e.state("app.ui_page-layouts_simple_tabbed",{url:"/ui/page-layouts/simple/tabbed",views:{"content@app":{templateUrl:"app/main/ui/page-layouts/simple/tabbed/tabbed.html",controller:"SimpleTabbedController as vm"}}})}e.$inject=["$stateProvider"],angular.module("app.ui.page-layouts.simple.tabbed",[]).config(e)}(),function(){"use strict";function e(){}angular.module("app.ui.page-layouts.simple.tabbed").controller("SimpleTabbedController",e)}(),function(){"use strict";function e(e){e.state("app.ui_page-layouts_simple_right-sidenav-ii",{url:"/ui/page-layouts/simple/right-sidenav-ii",views:{"content@app":{templateUrl:"app/main/ui/page-layouts/simple/right-sidenav-ii/right-sidenav-ii.html",controller:"SimpleRightSidenavIIController as vm"}}})}e.$inject=["$stateProvider"],angular.module("app.ui.page-layouts.simple.right-sidenav-ii",[]).config(e)}(),function(){"use strict";function e(e){function t(t){e(t).toggle()}var n=this;n.toggleSidenav=t}e.$inject=["$mdSidenav"],angular.module("app.ui.page-layouts.simple.right-sidenav-ii").controller("SimpleRightSidenavIIController",e)}(),function(){"use strict";function e(e){e.state("app.ui_page-layouts_simple_right-sidenav",{url:"/ui/page-layouts/simple/right-sidenav",views:{"content@app":{templateUrl:"app/main/ui/page-layouts/simple/right-sidenav/right-sidenav.html",controller:"SimpleRightSidenavController as vm"}}})}e.$inject=["$stateProvider"],angular.module("app.ui.page-layouts.simple.right-sidenav",[]).config(e)}(),function(){"use strict";function e(e){function t(t){e(t).toggle()}var n=this;n.toggleSidenav=t}e.$inject=["$mdSidenav"],angular.module("app.ui.page-layouts.simple.right-sidenav").controller("SimpleRightSidenavController",e)}(),function(){"use strict";function e(e){e.state("app.ui_page-layouts_simple_left-sidenav-ii",{url:"/ui/page-layouts/simple/left-sidenav-ii",views:{"content@app":{templateUrl:"app/main/ui/page-layouts/simple/left-sidenav-ii/left-sidenav-ii.html",controller:"SimpleLeftSidenavIIController as vm"}}})}e.$inject=["$stateProvider"],angular.module("app.ui.page-layouts.simple.left-sidenav-ii",[]).config(e)}(),function(){"use strict";function e(e){function t(t){e(t).toggle()}var n=this;n.toggleSidenav=t}e.$inject=["$mdSidenav"],angular.module("app.ui.page-layouts.simple.left-sidenav-ii").controller("SimpleLeftSidenavIIController",e)}(),function(){"use strict";function e(e){e.state("app.ui_page-layouts_simple_left-sidenav",{url:"/ui/page-layouts/simple/left-sidenav",views:{"content@app":{templateUrl:"app/main/ui/page-layouts/simple/left-sidenav/left-sidenav.html",controller:"SimpleLeftSidenavController as vm"}}})}e.$inject=["$stateProvider"],angular.module("app.ui.page-layouts.simple.left-sidenav",[]).config(e)}(),function(){"use strict";function e(e){function t(t){e(t).toggle()}var n=this;n.toggleSidenav=t}e.$inject=["$mdSidenav"],angular.module("app.ui.page-layouts.simple.left-sidenav").controller("SimpleLeftSidenavController",e)}(),function(){"use strict";function e(e){e.state("app.ui_page-layouts_simple_fullwidth",{url:"/ui/page-layouts/simple/fullwidth",views:{"content@app":{templateUrl:"app/main/ui/page-layouts/simple/fullwidth/fullwidth.html",controller:"SimpleFullwidthController as vm"}}})}e.$inject=["$stateProvider"],angular.module("app.ui.page-layouts.simple.fullwidth",[]).config(e)}(),function(){"use strict";function e(){}angular.module("app.ui.page-layouts.simple.fullwidth").controller("SimpleFullwidthController",e)}(),function(){"use strict";function e(e){e.state("app.ui_page-layouts_carded_right-sidenav-ii",{url:"/ui/page-layouts/carded/right-sidenav-ii",views:{"content@app":{templateUrl:"app/main/ui/page-layouts/carded/right-sidenav-ii/right-sidenav-ii.html",controller:"CardedRightSidenavIIController as vm"}}})}e.$inject=["$stateProvider"],angular.module("app.ui.page-layouts.carded.right-sidenav-ii",[]).config(e)}(),function(){"use strict";function e(e){function t(t){e(t).toggle()}var n=this;n.toggleSidenav=t}e.$inject=["$mdSidenav"],angular.module("app.ui.page-layouts.carded.right-sidenav-ii").controller("CardedRightSidenavIIController",e)}(),function(){"use strict";function e(e){e.state("app.ui_page-layouts_carded_right-sidenav",{url:"/ui/page-layouts/carded/right-sidenav",views:{"content@app":{templateUrl:"app/main/ui/page-layouts/carded/right-sidenav/right-sidenav.html",controller:"CardedRightSidenavController as vm"}}})}e.$inject=["$stateProvider"],angular.module("app.ui.page-layouts.carded.right-sidenav",[]).config(e)}(),function(){"use strict";function e(e){function t(t){e(t).toggle()}var n=this;n.toggleSidenav=t}e.$inject=["$mdSidenav"],angular.module("app.ui.page-layouts.carded.right-sidenav").controller("CardedRightSidenavController",e)}(),function(){"use strict";function e(e){e.state("app.ui_page-layouts_carded_left-sidenav-ii",{url:"/ui/page-layouts/carded/left-sidenav-ii",views:{"content@app":{templateUrl:"app/main/ui/page-layouts/carded/left-sidenav-ii/left-sidenav-ii.html",controller:"CardedLeftSidenavIIController as vm"}}})}e.$inject=["$stateProvider"],angular.module("app.ui.page-layouts.carded.left-sidenav-ii",[]).config(e)}(),function(){"use strict";function e(e){function t(t){e(t).toggle()}var n=this;n.toggleSidenav=t}e.$inject=["$mdSidenav"],angular.module("app.ui.page-layouts.carded.left-sidenav-ii").controller("CardedLeftSidenavIIController",e)}(),function(){"use strict";function e(e){e.state("app.ui_page-layouts_carded_left-sidenav",{url:"/ui/page-layouts/carded/left-sidenav",views:{"content@app":{templateUrl:"app/main/ui/page-layouts/carded/left-sidenav/left-sidenav.html",controller:"CardedLeftSidenavController as vm"}}})}e.$inject=["$stateProvider"],angular.module("app.ui.page-layouts.carded.left-sidenav",[]).config(e)}(),function(){"use strict";function e(e){function t(t){e(t).toggle()}var n=this;n.toggleSidenav=t}e.$inject=["$mdSidenav"],angular.module("app.ui.page-layouts.carded.left-sidenav").controller("CardedLeftSidenavController",e)}(),function(){"use strict";function e(e){e.state("app.ui_page-layouts_carded_fullwidth-ii",{url:"/ui/page-layouts/carded/fullwidth-ii",views:{"content@app":{templateUrl:"app/main/ui/page-layouts/carded/fullwidth-ii/fullwidth-ii.html",controller:"CardedFullwidthIIController as vm"}}})}e.$inject=["$stateProvider"],angular.module("app.ui.page-layouts.carded.fullwidth-ii",[]).config(e)}(),function(){"use strict";function e(){}angular.module("app.ui.page-layouts.carded.fullwidth-ii").controller("CardedFullwidthIIController",e)}(),function(){"use strict";function e(e){e.state("app.ui_page-layouts_carded_fullwidth",{url:"/ui/page-layouts/carded/fullwidth",views:{"content@app":{templateUrl:"app/main/ui/page-layouts/carded/fullwidth/fullwidth.html",controller:"CardedFullwidthController as vm"}}})}e.$inject=["$stateProvider"],angular.module("app.ui.page-layouts.carded.fullwidth",[]).config(e)}(),function(){"use strict";function e(){}angular.module("app.ui.page-layouts.carded.fullwidth").controller("CardedFullwidthController",e)}(),function(){"use strict";function e(e,t){function n(e,n,a,i){return _.forEach(e,function(e,s){e.infoFormated=" changed "+e.field+" from "+e.old+" to "+e["new"],e.userName=n.name,e.ipAddress=i,e.userImage=n.userImage||t.getUserImage(),"name"===e.field&&(e.field="title"),"members"===e.field&&(""===e.old?e.infoFormated="added "+e["new"]+" as a Member":e.infoFormated="removed "+e.old+" as a Member"),"attachments"===e.field&&(""===e.old?(e.infoFormated=" added a ."+e["new"]+" Attachment",e.tooltip=e["new"]):(e.infoFormated=" removed a ."+e.old+" Attachment",e.tooltip=e.old)),"labels"===e.field&&(""===e.old?e.infoFormated="added the "+e["new"]+" label":e.infoFormated="removed the "+e.old+" label"),"checklists"===e.field&&(""===e.old?e.infoFormated=" created the "+e["new"]+" Checklist":e.infoFormated=" removed the "+e.old+" Checklist"),"checkitem"===e.field&&(""===e.old?(e.firstPart=" added a ",e.checklist="Checklist",e.secondPart="item to "+e["new"],e.differentLayout=!0):e.infoFormated=" removed a Checklist item in "+e.old),"checklist_name"===e.field&&(e.infoFormated=" changed a checklist title - ",e.oldTip="old",e.newTip="new"),"checkitem_remove"===e.field&&(e.firstPart=" removed a ",e.checklist="Checklist",e.secondPart=" item in "+e.old,e.differentLayout=!0),"checkitem_change"===e.field&&(e.infoFormated=" changed a checklist item - ",e.oldTip="old",e.newTip="new"),"checkitem_checked"===e.field&&(e.firstPart=" completed a ",e.checklist="Checklist",e.secondPart=" item in "+e["new"],e.differentLayout=!0),"checkitem_unchecked"===e.field&&(e.firstPart=" uncompleted a ",e.checklist="Checklist",e.secondPart=" item in "+e["new"],e.differentLayout=!0),"comments"===e.field&&""===e.old&&(e.infoFormated=" created a Comment ",e.tooltip=e["new"],e.multiline=!0),"due"===e.field&&(""===e.old?(e.infoFormated=" set a Due Date ",e.tooltip=moment(+e["new"]).format("MMMM Do YYYY")):(e.infoFormated=" removed a Due Date ",e.tooltip=moment(+e.old).format("MMMM Do YYYY"))),"status"===e.field&&(e.infoFormated=" changed the issue status to "+e["new"]),"downloaded"===e.field&&(e.infoFormated="downloaded a "+e["new"]+" Attachment"),"plan-create"===e.field&&(e.infoFormated=" created a Plan",e.tooltip=e["new"],e.multiline=!0),"plan-todo"===e.field&&(e.infoFormated=" crated a Plan and added it to their To-Do",e.tooltip=e["new"],e.multiline=!0),("description"===e.field||"comment"===e.field||"plan"===e.field)&&(e.twoToltips=!0),("description"===e.field||"title"===e.field||"resolutionTimeframe"===e.field||"comment"===e.field||"responsibleParty"===e.field||"plan"===e.field)&&(e.infoFormated=" changed the "+_.startCase(e.field)+" - ",e.oldTip="old",e.newTip="new"),"export"===e.field&&(e.infoFormated=" downloaded "+e["new"]),e.timeDiff=o(a)}),e}function a(e,t){s=t,l=e}function i(n,a,i,o,r){var d={updateBy:t.currentUser().id,updateDate:new Date,updateField:[{field:a,"new":i,old:o,checktooltip:n}]};d&&e.addUpdateInfo(l,d).success(function(e){d.updateBy={name:t.currentUser().name,userImage:t.getUserImage()},s.push(d),r&&r(!0)}).error(function(e){console.log(e),r&&r(!1)})}function o(e){var t=moment(e),n=moment(),a=moment.duration(n.diff(t));return a.asSeconds()<60?Math.floor(a.asSeconds())+" seconds ago":a.asMinutes()<60?Math.floor(a.asMinutes())+" minutes ago":a.asHours()<24?Math.floor(a.asHours())+" hours ago":a.asDays()<31?Math.floor(a.asDays())+" days ago":a.asMonths()<12?Math.floor(a.asMonths())+" months ago":Math.floor(a.asYears())+" years ago"}var s="",l="";return{formatUpdateArray:n,addUpdateInfo:i,setData:a,timeDiff:o}}e.$inject=["apilaData","authentication"],angular.module("app.issues").service("UpdateInfoService",e)}(),function(){"use strict";function e(e){function t(t,n){var a=e.simple().textContent(o[t]).action("UNDO").highlightAction(!0).highlightClass("md-accent").position("top right").hideDelay(1e4);e.show(a).then(function(e){"ok"==e&&n()})}function n(e,t){i[t]=e}function a(e){return i[e]}var i={},o={checklist:"Do you want to undo checklist deletion?",checkitem:"Do you want to undo checkitem deletion?",attachment:"Do you want to undo attachment deletion?"};return{showActionToast:t,setItem:n,getItem:a}}e.$inject=["$mdToast"],angular.module("app.issues").service("UndoService",e)}(),function(){"use strict";function e(e,t,n,a){function i(e){r=e}function o(e){return e?r.members.filter(s(e)):[]}function s(e){var t=angular.lowercase(e);return function(e){return angular.lowercase(e.name).indexOf(t)>=0}}function l(e){return r.memberSearchText&&""!==r.memberSearchText?angular.lowercase(e.name).indexOf(angular.lowercase(r.memberSearchText))>=0:!0}var r=null;return{setViewModel:i,memberQuerySearch:o,filterMember:l}}e.$inject=["apilaData","msUtils","authentication","UpdateInfoService"],angular.module("app.issues").service("MembersService",e)}(),function(){"use strict";function e(e,t,n,a,i,o){function s(e){p=e}function l(){var t={id:n.guidGenerator(),name:p.newLabelName,color:p.newLabelColor,author:i.currentUser().name};e.createLabel(g,t).success(function(e){e.id=e._id,p.board.labels.push(e),p.newLabelName=""}).error(function(e){a.debug(e)})}function r(n){e.deleteLabel(g,n.name).success(function(e){angular.forEach(p.board.cards,function(e){e.idLabels&&e.idLabels.indexOf(p.editLabelId)>-1&&e.idLabels.splice(e.idLabels.indexOf(p.editLabelId),1)}),t.location.reload()}).error(function(e){a.debug(e)}),p.newLabelName=""}function d(e){p.labelTabIndex=2,p.editLabel=e,p.editLabel.newName=e.name}function c(e){return e?p.labels.filter(u(e)):[]}function m(e){return p.labelSearchText&&""!==p.labelSearchText?angular.lowercase(e.name).indexOf(angular.lowercase(p.labelSearchText))>=0:!0}function u(e){var t=angular.lowercase(e);return function(e){return angular.lowercase(e.name).indexOf(t)>=0}}var p=null,g=i.currentUser().communityId;return{addNewLabel:l,removeLabel:r,editLabel:d,labelQuerySearch:c,filterLabel:m,setViewModel:s}}e.$inject=["apilaData","$window","msUtils","$log","authentication","UpdateInfoService"],angular.module("app.issues").service("LabelsService",e)}(),function(){"use strict";function e(e,t,n,a,i){var o=function(o,s,l){var r=e.getApiUrl()+"/api/issues/"+l._id+"/attachments/new",d=o.name.split(".").pop();d||(d=o.name),o&&(o.upload=t.upload({url:r,data:{file:o},headers:{Authorization:"Bearer "+n.getToken()}}),o.upload.then(function(e){a(function(){o.result=e.data,l.attachments.push(e.data),i.addUpdateInfo("","attachments",d,"")})},function(e){},function(e){o.progress=Math.min(100,parseInt(100*e.loaded/e.total))}))};return{uploadFiles:o}}e.$inject=["apilaData","Upload","authentication","$timeout","UpdateInfoService"],angular.module("app.issues").service("FileUploadService",e)}(),function(){"use strict";function e(e,t,n,a,i,o,s){function l(e){h=e}function r(n,a,o){var s=n.checkItems,l=0,r=0,d=0;a&&(angular.forEach(s,function(e){e.checked&&l++}),n.checkItemsChecked=l,angular.forEach(h.card.checklists,function(e){d+=e.checkItems.length,r+=e.checkItemsChecked}),h.card.checkItems=d,h.card.checkItemsChecked=r,e.updateCheckList(h.card._id,n._id,n).success(function(e){"add"!==o&&(a.checked?i.addUpdateInfo(a.name,"checkitem_checked",n.checklistName,""):i.addUpdateInfo(a.name,"checkitem_unchecked",n.checklistName,""))}).error(function(e){t.debug(e)}))}function d(n,a){var o=_.find(a,{_id:n._id});e.updateCheckList(h.card._id,n._id,n).success(function(e){i.addUpdateInfo("","checklist_name",n.checklistName,o.checklistName)}).error(function(e){t.debug(e)})}function c(){var t=s.getItem("checkitem");if(t){var n=_.findIndex(h.card.checklists,{_id:t._id});h.card.checklists[n]=t,e.updateCheckList(h.card._id,t._id,t).success(function(e){})}}function m(n,a){if(n&&""!==n){var o={name:n,checked:!1};a.checkItems.push(o),e.updateCheckList(h.card._id,a._id,a).success(function(e){i.addUpdateInfo(o.name,"checkitem",a.checklistName,""),r(a,o,"add"),n="",h.oldData.checklists=e}).error(function(){t.debug("Error while updateing checklist")})}}function u(n){e.deleteCheckList(h.card._id,n._id).success(function(e){h.card.checklists.splice(h.card.checklists.indexOf(n),1),i.addUpdateInfo("","checklists","",n.checklistName),angular.forEach(h.card.checklists,function(e){r(e)}),s.setItem(n,"checklist"),s.showActionToast("checklist",function(){p("restore")})}).error(function(e){t.debug("Error while removing checklist")})}function p(o){var l={id:n.guidGenerator(),name:h.newCheckListTitle,checklistName:h.newCheckListTitle,checkItemsChecked:0,checkItems:[],author:a.currentUser().id};h.newCheckListTitle="","restore"===o&&(l=s.getItem("checklist")),e.addCheckList(h.card._id,l).success(function(e){h.card.checklists.push(e),"restore"!==o&&i.addUpdateInfo("","checklists",l.name,""),h.newCheckListTitle="Checklist"}).error(function(e){t.debug(e)})}function g(n,a){var o=n.checkItems[a].name,l=angular.copy(n);n.checkItems.splice(a,1),e.updateCheckList(h.card._id,n._id,n).success(function(e){i.addUpdateInfo(o,"checkitem_remove","",n.checklistName),s.setItem(l,"checkitem"),s.showActionToast("checkitem",function(){c()})}).error(function(){t.debug("Error while updateing checklist")})}function v(t,n,a){t.checkItems[n]=a;var o=_.find(h.oldData.checklists,{_id:t._id}),s="";o&&(s=o.checkItems[n].name),i.addUpdateInfo("","checkitem_change",t.checkItems[n].name,s,function(n){n&&e.updateCheckList(h.card._id,t._id,t)})}var h=null;return{setViewModel:l,updateCheckedCount:r,updateCheckListName:d,addCheckItem:m,removeChecklist:u,createCheckList:p,removeCheckItem:g,updateCheckItem:v}}e.$inject=["apilaData","$log","msUtils","authentication","UpdateInfoService","$mdToast","UndoService"],angular.module("app.issues").service("ChecklistsService",e)}(),function(){"use strict";function e(e,t){var n=this;n.imgUrl=t,n.cancel=function(){e.hide()}}e.$inject=["$mdDialog","imgUrl"],angular.module("app.issues").controller("ImageViewController",e)}(),function(){"use strict";function e(e){e.state("app.ui_page-layouts_blank",{url:"/ui/page-layouts/blank",views:{"content@app":{templateUrl:"app/main/ui/page-layouts/blank/blank.html",controller:"BlankController as vm"}}})}e.$inject=["$stateProvider"],angular.module("app.ui.page-layouts.blank",[]).config(e)}(),function(){"use strict";function e(){}angular.module("app.ui.page-layouts.blank").controller("BlankController",e)}(),function(){"use strict";function e(e,t,n,a){e.state("app.to-do",{url:"/to-do",views:{"content@app":{templateUrl:"app/main/todo/todo.html",controller:"TodoController as vm"}},resolve:{Tasks:["msApi",function(e){return{}}],Tags:["msApi",function(e){return{}}]},bodyClass:"todo"}),t.addPart("app/main/todo"),n.register("todo.tasks",["app/data/todo/tasks.json"]),n.register("todo.tags",["app/data/todo/tags.json"]),a.saveItem("fuse.to-do",{title:"To-Do",icon:"icon-checkbox-marked",state:"app.to-do",badge:{content:0,color:"#FF6F00"},weight:1})}e.$inject=["$stateProvider","$translatePartialLoaderProvider","msApiProvider","msNavigationServiceProvider"],angular.module("app.todo",["ng-sortable","textAngular"]).config(e)}(),function(){"use strict";function e(e,t,n,a,i,o,s,l,r,d,c){function m(){C.form.communityId=l.currentUser().community._id,r.addTask(C.todoid,C.form).success(function(e){v(e,"created"),C.tasks.push(e),w()}).error(function(e){t.debug(e)})}function u(){r.updateTask(C.todoid,C.task._id,C.form).success(function(e){v(e,"updated");for(var t=0;t<C.tasks.length;++t)if(C.tasks[t]._id===C.task._id){C.tasks[t].text=C.form.text,C.tasks[t].occurrence=C.form.occurrence;break}w()}).error(function(e){t.debug(e)})}function p(){C.form.activeMonths=_.map(C.form.activeMonths,function(e){return C.form.everyMonth})}function g(){C.form.activeWeeks=_.map(C.form.activeWeeks,function(e){return C.form.everyWeek})}function v(e,t){b(e)?r.activeTasksCount(C.todoid).then(function(e){s.saveItem("fuse.to-do",{badge:{content:e.data,color:"#FF6F00"}})}):h("The task is "+t+" but it's not currently active")}function h(e){o.show(o.simple().textContent(e).position("top right").hideDelay(3e3))}function f(e,t){C.form.selectedWeekDay=e.toString()+t.toString(),C.selectedWeekDayText=S[e]+" "+C.dayMap[t]}function b(e){var t=moment(),n=t.hour(),a=t.isoWeekday(),i=y(t),o=t.month(),s=!1;return 0===e.occurrence?s=n>=e.hourStart&&n<=e.hourEnd:1===e.occurrence?s=e.activeDays[a-1]:2===e.occurrence?s=e.activeWeeks[i-1]:3===e.occurrence&&(s=e.activeMonths[o]),void 0===s&&(s=!1),s}function y(e){return e.week()-moment(e).startOf("month").week()+1}function x(){e.hide(!0)}function w(){e.hide(!1)}function k(e){return e?moment(e).toDate():void 0}var C=this;C.title="Edit Task",C.task=angular.copy(n),C.newTask=!1,C.tasks=a,C.canSubmit=!1;var S=c.weekMap;if(C.dayMap=c.dayMap,C.todoid=l.currentUser().todoid,C.task){if(C.newTask=!1,C.form=C.task,C.form.startTime=k(C.form.startTime),C.form.endTime=k(C.form.endTime),C.form.weekStartTime=k(C.form.weekStartTime),C.form.weekEndTime=k(C.form.weekEndTime),C.task.selectedWeekDay){var A=C.task.selectedWeekDay.toString().split("");C.selectedWeekDayText=S[A[0]]+" "+C.dayMap[A[1]]}}else{C.title="New Task",C.newTask=!0,C.form={text:"",occurrence:1,activeDays:[],activeMonths:[!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1],activeWeeks:[!1,!1,!1,!1,!1],hourStart:0,hourEnd:23};for(var N=0;5>N;++N)C.form.activeDays[N]=!0}C.addNewTask=m,C.updateTask=u,C.closeDialog=w,C.cancelDialog=x,C.selectEveryMonth=p,C.selectEveryWeek=g,C.selectWeekDay=f,setTimeout(function(){C.slider={options:{floor:0,ceil:23,noSwitching:!0,showTicks:!0,translate:function(e){return d.convertToPm(e)}}}},350)}e.$inject=["$mdDialog","$log","Task","Tasks","event","$mdToast","msNavigationService","authentication","apilaData","ToDoUtilsService","ToDoService"],angular.module("app.todo").controller("TaskDialogController",e)}(),function(){"use strict";angular.module("app.todo").component("historyList",{templateUrl:"app/main/todo/components/historyList/historyList.html",controller:function(){var e=this;e.dateFormat="MMM dd, yyyy",0===e.task.occurrence&&(e.dateFormat="MMM dd, yyyy 'at' h:mma")},bindings:{list:"<",task:"<",listName:"@name"}})}(),function(){"use strict";function e(e,t,n,a){e.state("app.residents",{url:"/residents",views:{"content@app":{templateUrl:"app/main/residents/residents.html",controller:"ResidentController as vm"}},reloadOnSearch:!1,bodyClass:"residents"}),t.addPart("app/main/residents"),a.saveItem("fuse",{title:"ApilaCare",group:!0,weight:1}),a.saveItem("fuse.residents",{title:"Residents",icon:"icon-account-multiple",state:"app.residents",weight:1})}e.$inject=["$stateProvider","$translatePartialLoaderProvider","msApiProvider","msNavigationServiceProvider"],angular.module("app.residents",[]).config(e)}(),function(){"use strict";function e(e,t,n,a,i,o,s,l,r,d,c,m,u){function p(t){e.hide(t)}function g(){M.form.modifiedBy=m.currentUser().id,M.form.modifiedDate=new Date,A(),k(),N();var e=u.checkChangedFields(M.copyResident,M.form);M.form.movedFrom||(M.form.movedFrom={}),M.form.locationInfo.geometry&&(M.form.movedFrom.name=M.form.locationInfo.formatted_address,M.form.movedFrom.latitude=M.form.locationInfo.geometry.location.lat(),M.form.movedFrom.longitude=M.form.locationInfo.geometry.location.lng()),e.length>0&&(M.form.updateField=e)}function v(e){i.requiredFields(M.form,M.error,E)||(M.form.room||"administrative"!==e||(M.form.room=M.searchText),g(),M.form.newfoodAllergies=M.foodAllergies,M.form.newmedicationAllergies=M.medicationAllergies,M.form.newfoodLikes=M.foodLikes,M.form.newfoodDislikes=M.foodDislikes,M.form.updateInfo=r.updateInfo,w(),c.updateResident(r._id,M.form).success(function(e){r.updateInfo=e.updateInfo,r.carePoints=e.carePoints,$(),F(),console.log(r),p(r)}).error(function(e){s.debug(e)}))}function h(e,t,n,a){var i={operation:a,list:e,type:t,selectedItem:n,updateBy:m.currentUser().id};c.updateListItem(M.copyResident._id,i).success(function(e){r=e,s.debug(r)}).error(function(e){s.debug(e)})}function f(){M.form.contact.submitBy=m.currentUser().id,c.addContact(r._id,M.form.contact).success(function(e){r.residentContacts=e,p()}).error(function(e){s.debug(e)})}function b(e,t){var i=c.getApiUrl()+"/api/residents/"+r._id+"/upload";e&&(M.fileName=e.name,e.upload=n.upload({url:i,data:{file:e},headers:{Authorization:"Bearer "+m.getToken()}}),e.upload.then(function(t){a(function(){e.result=t.data,M.fileUploaded=!0})}))}function y(e){if(null===e)return M.roomList;var t=e.toLowerCase(),n=M.roomList.filter(function(e){return e?e.toLowerCase().indexOf(t)>-1:void 0});return n}function x(){c.deleteResident(r._id).success(function(){M.closeDialog("deleted")}).error(function(e){console.log(e)})}function w(){_.map(M.form.updateInfo,function(e){return e.updateBy&&(e.updateBy=e.updateBy._id),e})}function k(){M.form.newShoppingStatus=[];for(var e=0;e<M.shopping.length;++e)1==M.shopping[e].active&&M.form.newShoppingStatus.push(M.shopping[e].title)}function C(e){if(e)for(var t=0;t<M.painManagedBy.length;++t){var n=_.find(M.painManagedBy,function(n){return n.title==e[t]?n:void 0});void 0!=n&&(n.active=!0)}}function S(e){if(e)for(var t=0;t<M.shopping.length;++t){var n=_.find(M.shopping,function(n){return n.title==e[t]?n:void 0});void 0!=n&&(n.active=!0)}}function A(){M.form.newpsychosocialStatus=[];for(var e=0;e<M.status.length;++e)M.status[e].active===!0&&M.form.newpsychosocialStatus.push(M.status[e].title)}function N(){M.form.newPainManagedBy=[];for(var e=0;e<M.painManagedBy.length;++e)M.painManagedBy[e].active===!0&&M.form.newPainManagedBy.push(M.painManagedBy[e].title)}function D(e){if(e)for(var t=0;t<M.status.length;++t){var n=_.find(M.status,function(n){return n.title==e[t]?n:void 0});void 0!=n&&(n.active=!0)}}function T(e){var t=e.split("/").pop();return unescape(t)}function R(e,t){return void 0==t?!1:""!=t?(e.push(t),!0):void 0}function I(e){for(var t=[],n=0;n<e.length;++n)t.push({active:!1,title:e[n]});return t}var M=this;M.form=r,M.form.firstName=d.firstName,M.form.contact={},M.selctedTab="",M.form.communicatedWithResident=!1,M.form.communicatedWithPrimaryContact=!1,M.form.communicatedWithTrustedPerson=!1,M.category=l,M.replaceNumberValue=o.replaceNumberValue;var P=m.currentUser().community,O=m.currentUser().id;P.boss._id===O&&(M.isBoss=!0);var E=["firstName","lastName","buildingStatus"];M.status=I(["Alert","Friendly","Disoriented","Withdrawn","Lonely","Happy","Confused","Uncooperative","At times angry","Sad","Emotional outbursts","Feel like a burden"]),M.isNumber=function(e){return""===e||void 0===e?!0:!isNaN(parseFloat(e))&&isFinite(e)},M.shopping=I(["Family","Self","Friend"]),M.painManagedBy=I(["Medication","Hot pack","Cold pack","Positioning","Topicals"]),D(r.psychosocialStatus),S(r.shopping),C(r.painManagedBy),M.foodAllergies=r.foodAllergies,M.medicationAllergies=r.medicationAllergies,M.foodLikes=r.foodLikes,M.foodDislikes=r.foodDislikes,M.bathingDays=r.bathingDays,M.copyResident=angular.copy(r),M.seperators=[t.KEY_CODE.ENTER,t.KEY_CODE.COMMA],M.autocompleteOptions={componentRestrictions:{country:"us"}},M.error={},M.hasPrimaryContact=void 0!==_.find(r.residentContacts,{primaryContact:!0}),M.hasTrustedPerson=void 0!==_.find(r.residentContacts,{trustedPerson:!0}),M.community=m.currentUser().community,M.roomList=_.flatten(_.map(M.community.roomStyle,"rooms")),M.form.birthDate=M.form.birthDate?new Date(r.birthDate):void 0,M.form.admissionDate=M.form.admissionDate?new Date(r.admissionDate):void 0,M.form.movedFrom&&(M.form.locationInfo=M.form.movedFrom.name),M.closeDialog=p,M.updateResident=v,M.updateChip=h,M.uploadFiles=b,M.addContact=f,M.getMatches=y,M.deleteResident=x,M.formatFileName=T;var F=function(){M.form.newrespiration="",M.form.newvitalsPain="",M.form.newpulse="",M.form.newweight="",M.form.newoxygenSaturation="",M.form.newbloodPressureDiastolic="",M.form.newbloodPressureSystolic="",M.form.newtemperature="",M.form.newinternationalNormalizedRatio="",M.form.newmedicationAllergies="",M.form.newfoodAllergies="",M.form.newfoodLikes="",M.form.newfoodDislikes=""},$=function(){R(M.form.respiration,M.form.newrespiration),R(M.form.vitalsPain,M.form.newvitalsPain),R(M.form.pulse,M.form.newpulse),R(M.form.weight,M.form.newweight),R(M.form.oxygenSaturation,M.form.newoxygenSaturation),R(M.form.bloodPressureDiastolic,M.form.newbloodPressureDiastolic),R(M.form.bloodPressureSystolic,M.form.newbloodPressureSystolic),R(M.form.temperature,M.form.newtemperature),R(M.form.internationalNormalizedRatio,M.form.newinternationalNormalizedRatio),M.form.foodAllergies=M.form.newfoodAllergies,M.form.medicationAllergies=M.form.newmedicationAllergies,M.form.psychosocialStatus=M.form.newpsychosocialStatus,M.form.shopping=M.form.newShoppingStatus,M.form.painManagedBy=M.form.newPainManagedBy,M.form.foodLikes=M.form.newfoodLikes,M.form.foodDislikes=M.form.newfoodDislikes}}e.$inject=["$mdDialog","$mdConstant","Upload","$timeout","errorCheck","SliderMapping","$log","category","currResident","residentDisplay","apilaData","authentication","ResidentUpdateInfoService"],angular.module("app.residents").controller("UpdateController",e);
  }(),function(){"use strict";function e(e,t,n,a,i,o){function s(){e.hide()}function l(){d.form.community=d.community,o.requiredFields(d.form,d.error,c)||(r(),n.addResident(d.form).success(function(t){d.residentList.push(t),e.hide()}).error(function(e){t.debug(e)}))}function r(){d.form.movedFrom={},d.form.locationInfo&&(d.form.movedFrom.name=d.form.locationInfo.formatted_address,d.form.movedFrom.latitude=d.form.locationInfo.geometry.location.lat(),d.form.movedFrom.longitude=d.form.locationInfo.geometry.location.lng())}var d=this;d.closeDialog=s,d.addResident=l,d.residentList=a,d.form={},d.form.room="",d.form.movedFrom="Denver, CO, USA",d.error={};var c=["firstName","lastName","buildingStatus"],m=i.currentUser().id;d.autocompleteOptions={componentRestrictions:{country:"us"}},n.userCommunity(m).success(function(e){d.community=e})}e.$inject=["$mdDialog","$log","apilaData","resList","authentication","errorCheck"],angular.module("app.residents").controller("ComposeDialogController",e)}(),function(){"use strict";function e(e){var t=this;t.boardList=e.list.data}e.$inject=["BoardService"],angular.module("app.issues").controller("BoardsViewController",e)}(),function(){"use strict";function e(e,t,n,a,i,o,s,l,r,d,c,m,u,p,g,v){function h(e,t,n){var a=moment(t).add(1,n);return moment().isAfter(a)?(e.flag=!0,!0):void 0}function f(e){p.listIssueByUsername(P,F,e).success(function(e){var t=_.filter(e,function(e){return e.responsibleParty._id===O?!0:void 0});k(t,M.board.lists[0]),y(M.myCommunity._id)}).error(function(e){a.debug("Error while loading list of issues for: "+P)})}function b(){p.usersInCommunity(M.myCommunity._id).success(function(e){angular.forEach(e,function(e,t){w(e)})}).error(function(e){a.debug(e)})}function y(e){p.issuesList(F,e).success(function(e){angular.forEach(e,function(e,t){var n=A(e._id.name);n.name!==P&&(M.board.lists.push(n),angular.forEach(e.issues,function(e,t){var a=x(e);a&&n.idCards.push(a.id)}))}),b()}).error(function(e){a.debug("Error while loading list of issues for: "+P)}),i(function(){t.$broadcast("is_loading",!1)},400)}function x(e){e.id=s.guidGenerator(),e.name=e.title;var t=!1;return e.idMembers&&_.find(e.idMembers,{_id:O})&&(t=!0),e.confidential&&!t?null:(M.board.cards.push(e),e)}function w(e){if(void 0!==D(e.name)){var t=void 0!==_.find(M.board.lists,{name:e.name});if(t===!1){var n=A(e.name);n.name!==P&&M.board.lists.push(n)}}}function k(e,t){angular.forEach(e,function(e,n){e.id=e._id,e.name=e.title,M.board.cards.push(e),t.idCards.push(e.id)})}function C(e){var t=0,n=0;return M.board.cards.getById(e).checklists.forEach(function(e){t+=e.checkItemsChecked,n+=e.checkItems.length}),{checkedItems:t,checkItemsLength:n}}function S(e){p.openIssuesCount(O,e).success(function(e){g.saveItem("fuse.issues",{badge:{content:e,color:"#F44336"}})}).error(function(e){})}function A(e){var t={id:s.guidGenerator(),name:e,idCards:[]};return t}function N(){M.myCommunity.creator.name===M.username?M.userRole="creator":M.myCommunity.boss.name===M.username?M.userRole="boss":-1!==M.myCommunity.directors.indexOf(M.username)?M.userRole="directors":-1!==M.myCommunity.minions.indexOf(M.username)&&(M.userRole="minions")}function D(e){var t=_.find(M.myCommunity.communityMembers,function(t){return t.name===e});return t}function T(){var e=angular.element("#board"),t=e.height();e.find(".list-wrapper").each(function(e,n){var a=angular.element(n),i=a.find(".list-header").height(),o=a.find(".list-footer").height(),s=t-i-o;a.find(".list-content").css({"max-height":s})})}function R(e){var t=M.board.cards.getById(e);try{if(angular.lowercase(t.name).indexOf(angular.lowercase(M.cardFilters.name))<0)throw!1;angular.forEach(M.cardFilters.labels,function(e){if(!s.exists(e,t.idLabels))throw!1}),angular.forEach(M.cardFilters.members,function(e){if(!s.exists(e,t.idMembers))throw!1})}catch(n){return n}return!0}function I(e){return moment()>moment(e,"x")}var M=this;t.$broadcast("is_loading",!0),M.currentView="board",M.board=d.data.data,M.board.lists=[],M.board.cards=[];var P=u.currentUser().name,O=u.currentUser().id,E=null;M.openCardDialog=function(e,t){m.openCardDialog(e,t,function(e){console.log("Closed dialog")})},M.cardFilter=R,M.isOverdue=I,M.getChecklistData=C,M.getImageUrl=function(e){var t=M.board.cards.getById(e),n=t.attachments[t.attachments.length-1];return n?n.url:" "},M.flagIssue=function(e){var t="";switch(t=e.updateInfo.length>0?e.updateInfo[e.updateInfo.length-1].updateDate:e.submitDate,e.resolutionTimeframe){case"Hours":return h(e,t,"hours");case"Days":return h(e,t,"days");case"Weeks":return h(e,t,"weeks");case"Months":return h(e,t,"months")}},M.board.lists.push({id:s.guidGenerator(),name:P,idCards:[]});var F="";"open-issues"===l.uri||""===l.uri?F="Open":"shelved-issues"===l.uri?F="Shelved":"closed-issues"===l.uri&&(F="Closed"),p.userCommunity(O).success(function(e){M.myCommunity=e,f(M.myCommunity._id),S(M.myCommunity._id),M.board.labels=M.myCommunity.labels,N(),E=angular.copy(M.board.lists);var t=["title","responsibleParty","resolutionTimeframe","submitBy","description","status"];r.setData(M.board.cards,t),r.subscribe(v,function(){M.board.cards=r.getResult()})}),M.boardList=d.list.data,M.cardFilters=c,M.card={},M.cardOptions={},M.sortableListOptions={axis:"x",delay:75,distance:7,items:"> .list-wrapper",handle:".list-header",placeholder:"list-wrapper list-sortable-placeholder",tolerance:"pointer",start:function(e,t){var n=t.item[0].children[0].clientWidth,a=t.item[0].children[0].clientHeight;t.placeholder.css({"min-width":n+"px",width:n+"px",height:a+"px"})}},M.sortableCardOptions={appendTo:"body",connectWith:".list-cards",delay:75,distance:7,forceHelperSize:!0,forcePlaceholderSize:!0,handle:s.isMobile()?".list-card-sort-handle":!1,helper:function(e,t){return t.clone().addClass("list-card-sort-helper")},placeholder:"list-card card-sortable-placeholder",tolerance:"pointer",scroll:!0,sort:function(e,t){var n=t.placeholder.closest(".list-content"),a=t.placeholder.closest("#board");if(n){var i=n[0].clientHeight,o=n[0].scrollHeight;if(i!==o){var s=t.position.top,l=s+t.item.height(),r=n.offset().top,d=r+i;r+25>s&&n.scrollTop(n.scrollTop()-25),l>d-25&&n.scrollTop(n.scrollTop()+25)}}if(a){var c=a[0].clientWidth,m=a[0].scrollWidth;if(c!==m){var u=t.position.left,p=u+t.item.width(),g=a.offset().left,v=g+c;g+25>u&&a.scrollLeft(a.scrollLeft()-25),p>v&&a.scrollLeft(a.scrollLeft()+25)}}}},function(){i(function(){angular.element("html").hasClass("explorer")&&(T(),n.onresize=function(){T()})},0)}()}e.$inject=["$document","$rootScope","$window","$log","$timeout","$mdDialog","msUtils","$stateParams","SearchService","BoardService","CardFilters","DialogService","authentication","apilaData","msNavigationService","$scope"],angular.module("app.issues").controller("BoardViewController",e)}(),function(){"use strict";function e(e,t){var n=this;n.board=t.data,n.palettes=e,n.selectedMenu="Settings"}e.$inject=["$mdColorPalette","BoardService"],angular.module("app.issues").controller("SettingsSidenavController",e)}(),function(){"use strict";function e(e,t,n){var a=this;a.board=t.data,a.cardFilters=n,a.labels=a.board.labels,a.members=a.board.members,a.selectedMenu="Settings",a.exists=e.exists,a.toggleInArray=e.toggleInArray,a.clearFilters=n.clear,a.filteringIsOn=n.isOn}e.$inject=["msUtils","BoardService","CardFilters"],angular.module("app.issues").controller("FiltersSidenavController",e)}(),function(){"use strict";function e(e,t,n,a,i,o,s){function l(){if(""!==r.newCardName){var n=s.guidGenerator();r.cards.push({id:n,name:r.newCardName,description:"",idAttachmentCover:"",idMembers:[],idLabels:[],attachments:[],subscribed:!1,checklists:[],checkItems:0,checkItemsChecked:0,comments:[],activities:[],due:null}),r.list.idCards.push(n),t(function(){e.scrollListContentBottom()}),r.newCardName=""}}var r=this;r.newCardName="",r.listId=e.msListId,r.board=a.data.data,r.cards=r.board.cards,r.list=r.board.lists.getById(r.listId),r.addNewCard=l,r.addIssue=function(e){n.debug(r.list.name),i.show({controller:"CreateIssueController",controllerAs:"vm",locals:{board:r.board,name:r.list.name},templateUrl:"app/main/issues/dialogs/createIssue/createIssue.html",parent:angular.element(o.body),targetEvent:e,clickOutsideToClose:!0})}}function t(e,t,n){return{restrict:"E",controller:"msSbAddCardController as vm",templateUrl:"app/main/issues/directives/ms-sb-add-card/ms-sb-add-card.html",scope:{msListId:"="},link:function(a,i){function o(){a.$evalAsync(function(){a.formActive=!a.formActive,a.formActive?(n(function(){r.find("input").focus(),s()}),e.on("click",c)):(PerfectScrollbar.update(d[0]),e.off("click",c)),n(function(){angular.element("html").hasClass("explorer")&&angular.element(t).trigger("resize")})})}function s(){d[0].scrollTop=d[0].scrollHeight}a.formActive=!1,a.toggleForm=o,a.scrollListContentBottom=s;var l=i.find(".ms-sb-add-card-button"),r=i.find(".ms-sb-add-card-form"),d=i.parent().prev().find(".list-cards");l.on("click",o);var c=function(e){var t=r.has(e.target).length>0,n=r[0]===e.target,a=t||n;a||o()}}}}e.$inject=["$scope","$timeout","$log","BoardService","$mdDialog","$document","msUtils"],t.$inject=["$document","$window","$timeout"],angular.module("app.issues").controller("msSbAddCardController",e).directive("msSbAddCard",t)}(),function(){"use strict";function e(e,t,n,a){function i(){for(var e="",n=0;n<t.comments.length;++n)e+=" "+t.comments[n].commentText;return e+=" "+t.description,angular.forEach(t.checklists,function(t,n){angular.forEach(t.checkItems,function(t,n){e+=" "+t.name})}),e.split(" ")}function o(){e.hide()}var s=this;s.closeDialog=o,a(function(){n.drawWordCloud(i())},100)}e.$inject=["$mdDialog","issue","wordCloud","$timeout"],angular.module("app.issues").controller("WordCloudController",e)}(),function(){"use strict";function e(e,t,n,a,i,o,s,l){function r(){e.hide()}function d(e){if(null!==e){var t=e.toLowerCase(),n=g.residentList.filter(function(e){return null!=e.display?e.display.toLowerCase().indexOf(t)>-1:void 0});return n}}function c(){var e=!1;return o.requiredFields(g.form,g.error,v)&&(e=!0),g.selectedItem?g.error.selectedItem=!1:(g.error.selectedItem=!0,e=!0),e}function m(){c()||(g.form.responsibleParty=g.selectedItem.value,g.form.community=g.myCommunity,n.addIssue(g.form).success(function(e){e.id=e._id,e.name=e.title,p(e),u(),r()}).error(function(e){t.debug("Error while adding issue")}))}function u(){n.openIssuesCount(g.userid,g.myCommunity._id).success(function(e){l.saveItem("fuse.issues",{badge:{content:e,color:"#F44336"}})}).error(function(e){t.debug(e)})}function p(e){void 0===a.data&&(a.data=a),a.data.cards.push(e);var t=_.find(a.data.lists,{name:e.responsibleParty.name});t.idCards.push(e.id)}var g=this;s.currentUser().name;g.userid=s.currentUser().id,g.residentList=[],g.selectedUser={},g.form={},g.error={};var v=["title","resolutionTimeframe","description"];g.closeDialog=r,g.addIssue=m,g.getMatches=d,n.userCommunity(g.userid).success(function(e){g.myCommunity=e,n.usersInCommunity(g.myCommunity._id).success(function(e){g.residentList=e.map(function(e){return e.name===i&&(g.selectedItem={value:e._id,display:e.name}),{value:e._id,display:e.name}})}).error(function(e){t.debug("Error retriving the list of residents")})})}e.$inject=["$mdDialog","$log","apilaData","board","name","errorCheck","authentication","msNavigationService"],angular.module("app.issues").controller("CreateIssueController",e)}(),function(){"use strict";function e(e,t,n,a,i,o,s,l,r,d,c,m,u,p,g,v,h,f,b,y,x,w,k){function C(e){if(null!==e){var t=e.toLowerCase(),n=ne.residentList.filter(function(e){return null!=e.display?e.display.toLowerCase().indexOf(t)>-1:void 0});return n}}function S(){var e=o.getItem("attachment");console.log(e),console.log(ne.card.attachments.indexOf(e)),ne.card.attachments.push(e),v.restoreAttachment(ne.card._id,e).success(function(e){})}function A(e){ne.card.idAttachmentCover===e.id&&(ne.card.idAttachmentCover="");var t=e.name.split(".").pop();t||(t=e.name),v.deleteAttachment(ne.card._id,e._id,ne.card).success(function(n){ne.card.attachments.splice(ne.card.attachments.indexOf(e),1),x.addUpdateInfo("","attachments","",t),o.setItem(e,"attachment"),o.showActionToast("attachment",function(){S()})}).error(function(e){b.debug(e)})}function N(e){if(e){var t=_.find(ne.board.labels,{_id:e});Q(t.name)?(ne.removeLabelFromCard(t.name),x.addUpdateInfo("","labels","",t.name)):v.addLabelToCard(ne.card._id,t).success(function(e){ne.card.labels.push(t),x.addUpdateInfo("","labels",t.name,"")}).error(function(e){b.debug(e)})}}function D(e,t){v.removeLabelFromCard(ne.card._id,e).success(function(n){if(!t){var a=_.findIndex(ne.card.labels,{name:e});null!=a&&ne.card.labels.splice(a,1)}}).error(function(e){b.debug(e)})}function T(e,t){var n=ne.existsMembers(e,t);ne.toggleMember(e,t),n?x.addUpdateInfo("","members","",e.name,function(e){e&&M()}):x.addUpdateInfo("","members",e.name,"",function(e){e&&M()})}function R(e){null!==e&&(ne.card.addedMember=e,ne.card.idMembers.push(e),x.addUpdateInfo("","members",e.name,"",function(e){e&&M()}))}function I(e){var t=ne.card._id,n={commentText:e,author:h.currentUser().id};x.addUpdateInfo("","comments",n.commentText,""),v.addIssueCommentById(t,n).success(function(t){var n=J(e,t.createdOn);n._id=t._id,ne.card.comments.push(n)}).error(function(e){b.debug("Error while adding comment")})}function M(e){ne.card.title=ne.card.name;var t=ie.responsibleParty._id?ie.responsibleParty._id:ie.responsibleParty;t!==ne.card.responsibleParty&&(ne.card.oldResponsibleParty=t);var n=angular.copy(ne.card);z(n.comments),z(n.finalPlan),z(n.checklists),n.submitBy=n.submitBy._id,v.updateIssue(ne.card._id,n).success(function(t){ne.card.addedMember="",ne.card.updateField="",O(e)}).error(function(e){b.debug(e)})}function P(){ne.card.due="";var e=ne.card.currdue;isNaN(ne.card.currdue)&&(e=moment(ne.card.currdue).toDate().getTime()),x.addUpdateInfo("","due","",e,function(e){e&&M()}),ne.card.currdue=""}function O(e){if("responsibleParty"!==e){var t=ie[e],n=ne.card[e];t!==n&&x.addUpdateInfo("",e,n,t)}}function E(e){var t=ie.responsibleParty._id?ie.responsibleParty._id:ie.responsibleParty;if(ne.selectedItem&&ne.selectedItem.value!==t){ne.card.responsibleParty=ne.selectedItem.value,x.addUpdateInfo("","responsibleParty",ne.selectedItem.display,ie.responsibleParty.name);var n=_.find(ne.board.lists,{name:ne.selectedItem.display}),a=_.find(ne.board.lists,{name:ne.oldSelectedItem.display});a.idCards=_.without(a.idCards,ne.card.id);var i=_.find(ne.card.idMembers,{_id:ne.oldSelectedItem.value});(i||!ne.card.confidential)&&n.idCards.push(ne.card.id),ne.updateIssue(e),W()}}function F(e){ne.card.deletedMember=e,x.addUpdateInfo("","members","",e,function(e){ne.card.deletedMember=!0,M()})}function $(e){v.updateIssueLabel(ne.communityId,e.name,e).success(function(e){i.location.reload()}).error(function(e){b.debug(e)})}function L(){v.issuePopulateOne(ne.card._id).success(function(e){ne.card.checklists=e.checklists,ne.card.responsibleParty=ne.responsibleParty,l.exportPdf(ne.card),x.addUpdateInfo("","export",ne.card.title,"")})}function B(e){if(ne.userRole){if("boss"===ne.userRole)return!1;if("directors"===ne.userRole)return!1;if("minions"===ne.userRole||"creator"===ne.userRole)return ne.card.responsibleParty._id&&ne.userid===ne.card.responsibleParty._id?"status"===e||"responsibleParty"===e?!0:!1:!0}return!0}function U(){if("Closed"===ne.card.status&&ne.card.finalPlan.length<=0)return ne.card.status=ie.status,void te("You must write at least one final plan item before closing");"Shelved"===ne.card.status&&(ne.card.shelvedDate=new Date),ne.updateIssue();var e=j();e.idCards.splice(e.idCards.indexOf(ne.card.id),1),ne.board.cards.splice(ne.board.cards.indexOf(ne.card),1)}function H(e){t.show({controllerAs:"vm",controller:"ImageViewController",preserveScope:!0,autoWrap:!0,skipHide:!0,templateUrl:"app/main/issues/dialogs/card/image-view/imageView.html",resolve:{imgUrl:function(){return e}}})}function W(){t.hide()}function j(){for(var e,t=0,n=ne.board.lists.length;n>t;t++)if(ne.board.lists[t].idCards.indexOf(ne.card.id)>-1){e=ne.board.lists[t];break}return e}function q(n){var a=t.confirm({title:"Remove Card",parent:e.find("#issues"),textContent:"Are you sure want to remove card?",ariaLabel:"remove card",targetEvent:n,clickOutsideToClose:!0,escapeToClose:!0,ok:"Remove",cancel:"Cancel"});t.show(a).then(function(){var e=j();v.deleteIssue(ne.card._id).success(function(t){e.idCards.splice(e.idCards.indexOf(ne.card.id),1),ne.board.cards.splice(ne.board.cards.indexOf(ne.card),1),Z()}).error(function(e){b.debug(e)})},function(){})}function Y(){t.show({controllerAs:"vm",controller:"WordCloudController",preserveScope:!0,autoWrap:!0,skipHide:!0,templateUrl:"app/main/issues/dialogs/wordCloud/wordCloud.html",locals:{issue:ne.card}})}function z(e){e.forEach(function(e){e.author&&e.author._id&&(e.author=e.author._id)})}function X(e){var t=e.split(".").pop();t&&x.addUpdateInfo("","downloaded",t,"")}function G(){var e={text:ne.newFinalPlanText,checklist:ne.finalPlanChecklist,author:oe,todoid:h.currentUser().todoid,issueName:ne.card.name};v.addFinalPlan(ne.card._id,e).success(function(e){ne.finalPlanChecklist?x.addUpdateInfo("","plan-todo",ne.newFinalPlanText,""):x.addUpdateInfo("","plan-create",ne.newFinalPlanText,""),e.author={_id:ne.userid,name:ne.username,userImage:h.getUserImage()},ne.card.finalPlan.push(e),ne.newFinalPlanText="",ne.finalPlanChecklist&&te("Created a new task in the todo section")}).error(function(e){b.debug(e)})}function V(e){var t=angular.copy(e),n=_.find(ne.card.finalPlan,{createdOn:e.createdOn});n&&(t.author=e.author._id,v.updateFinalPlan(ne.card._id,e._id,e).success(function(t){x.addUpdateInfo("","plan",e.text,n.text)}).error(function(e){b.debug(e)}))}function K(e){var t=angular.copy(e),n=_.find(ne.card.comments,{createdOn:e.createdOn});n&&(t.author=e.author._id,v.issueCommentsUpdate(ne.card._id,t).success(function(t){x.addUpdateInfo("","comment",e.commentText,n.commentText)}).error(function(e){b.debug(e)}))}function J(e,t){var n={idMember:"",commentText:e,author:{_id:h.currentUser().id,name:h.currentUser().name,userImage:h.getUserImage()},createdOn:t};return n}function Q(e){var t=_.find(ne.card.labels,{name:e});return t?!0:!1}function Z(){v.openIssuesCount(oe,ne.myCommunity._id).success(function(e){f.saveItem("fuse.issues",{badge:{content:e,color:"#F44336"}})}).error(function(e){b.debug(e)})}function ee(){ne.myCommunity.creator.name===ne.username?ne.userRole="creator":void 0!==_.find(ne.myCommunity.directors,{name:ne.username})?ne.userRole="directors":void 0!==_.find(ne.myCommunity.minions,{name:ne.username})&&(ne.userRole="minions"),ne.myCommunity.boss.name===ne.username&&(ne.userRole="boss")}function te(e){c.show(c.simple().textContent(e).position("top right").hideDelay(3e3))}var ne=this;r.setViewModel(ne),d.setViewModel(ne),w.setViewModel(ne),ne.board=p.data.data,ne.card=ne.board.cards.getById(g),ne.card.currdue=ne.card.due,ne.newLabelColor="red",ne.UpdateInfoService=x,ne.Utils=k,ne.issueTimeAgo=moment(ne.card.submitDate).fromNow(),ne.labels=ne.board.labels;var ae=angular.copy(ne.card.due),ie=angular.copy(ne.card);ne.oldData=ie,ne.newCheckListTitle="Checklist",ne.username=h.currentUser().name;var oe=h.currentUser().id;ne.userid=oe,ne.communityId=h.currentUser().communityId,ne.now=new Date,ne.palettes=n.getRegisteredPalettes(),delete ne.palettes["fuse-pale-blue"],delete ne.palettes["fuse-blue"],ne.rgba=m.rgba,ne.toggleInArray=u.toggleInArray,ne.exists=u.exists,ne.existsMembers=function(e,t){return _.find(t,{_id:e._id})?!0:!1},ne.toggleMember=function(e,t){var n=_.find(t,{_id:e._id})?!0:!1;n?t.splice(t.indexOf(e),1):t.push(e)},ne.removeAttachment=A,ne.labelQuerySearch=r.labelQuerySearch,ne.filterLabel=r.filterLabel,ne.addNewLabel=r.addNewLabel,ne.removeLabel=r.removeLabel,ne.removeLabelFromCard=D,ne.editLabel=r.editLabel,ne.addLabelToCard=N,ne.isLabelInCard=Q,ne.memberQuerySearch=w.memberQuerySearch,ne.filterMember=w.filterMember,ne.addMembers=T,ne.updateCheckedCount=d.updateCheckedCount,ne.addCheckItem=d.addCheckItem,ne.updateCheckListName=d.updateCheckListName,ne.removeChecklist=d.removeChecklist,ne.createCheckList=d.createCheckList,ne.removeCheckItem=d.removeCheckItem,ne.updateCheckItem=d.updateCheckItem,ne.addNewComment=I,ne.updateComment=K,ne.updateIssue=M,ne.updatePlan=V,ne.editPermissions=B,ne.removeDueDate=P,ne.memberUpdate=F,ne.updateLabel=$,ne.addMemberAutoComplete=R,ne.changeConfidential=function(e){console.log("Change confidential"),ne.card.confidential=e,v.updateConfidential(ne.card._id,{confidential:e}).success(function(e){console.log(e)}).error(function(e){b.debug(e)})},ne.wordCloud=Y,ne.closeDialog=W,ne.getCardList=j,ne.removeCard=q,ne.openImage=H,ne.changeStatus=U,ne.exportIssue=L,ne.addFinalPlan=G,ne.downloadedInfo=X,ne.formatUpdateArray=x.formatUpdateArray,ne.getMatches=C,ne.changeResponsibleParty=E,ne.uploadFiles=function(e,t,n){y.uploadFiles(e,t,n)},v.usersInCommunity(ne.communityId).success(function(e){ne.residentList=e.map(function(e){return e.name===name&&(ne.selectedItem={value:e._id,display:e.name}),{value:e._id,display:e.name}})}).error(function(e){b.debug("Error retriving the list of residents")}),v.issueCommentsList(ne.card._id).success(function(e){ne.card.comments=e}).error(function(e){b.debug(e)}),v.issueUpdateInfo(ne.card._id).success(function(e){ne.card.updateInfo=e,x.setData(ne.card._id,ne.card.updateInfo)}).error(function(e){b.debug(e)}),v.userCommunity(oe).success(function(e){ne.myCommunity=e,ee(),v.usersInCommunity(e._id).success(function(e){ne.members=e}).error(function(e){b.debug(e)})}),a.$watch("vm.card.currdue",function(){ae!==ne.card.currdue&&ne.card.currdue&&(ne.card.due=ne.card.currdue,x.addUpdateInfo("","due",ne.card.currdue,"",function(e){e&&ne.updateIssue()}))}),v.issuePopulateOne(ne.card._id).success(function(e){ne.card.finalPlan=e.finalPlan,console.log(e),ne.card.checklists=e.checklists,ne.responsibleParty=e.responsibleParty,r.setViewModel(ne),ne.submitBy=e.submitBy,ne.createdIssue=e.submitBy.name+" created "+ne.card.title,ne.selectedItem={value:e.responsibleParty._id,display:e.responsibleParty.name},ne.oldSelectedItem=angular.copy(ne.selectedItem),console.log(ne.card)})}e.$inject=["$document","$mdDialog","fuseTheming","$scope","$window","UndoService","$timeout","exportIssueDetail","LabelsService","ChecklistsService","$mdToast","fuseGenerator","msUtils","BoardService","cardId","apilaData","authentication","msNavigationService","$log","FileUploadService","UpdateInfoService","MembersService","Utils"],angular.module("app.issues").controller("IssueCardDialogController",e)}(),function(){"use strict";function e(e,t,n){e.state("app.dashboard",{url:"/dashboard",views:{"content@app":{templateUrl:"app/main/dashboard/dashboard-project.html",controller:"DashboardProjectController as vm"}},bodyClass:"dashboard-project"}),n.saveItem("fuse.dashboard",{title:"Dashboard",icon:"icon-tile-four",state:"app.dashboard",weight:0})}e.$inject=["$stateProvider","msApiProvider","msNavigationServiceProvider"],angular.module("app.dashboard",[]).config(e)}(),function(){"use strict";function e(e,t,n,a,i){function o(){Stripe.card.createToken(r.cardInfo,function(e,a){console.log(a),200!==e?l(a.error.message):t.updateCustomer(r.userid,a).success(function(e){s()}).error(function(e){n.debug(e)})})}function s(){e.hide()}function l(e){i.show(i.simple().textContent(e).position("top right").hideDelay(3e3))}var r=this;r.userid=a.currentUser().id,r.closeDialog=s,r.updateCustomer=o}e.$inject=["$mdDialog","apilaData","$log","authentication","$mdToast"],angular.module("app.dashboard").controller("UpdateBillingController",e)}(),function(){"use strict";function e(e,t,n){function a(t){e.hide(t)}function i(){n.areaUnit=o.form.areaUnit?"Feet":"Meters",n.weightUnit=o.form.weightUnit?"Pounds":"Kilograms",n.tempUnit=o.form.tempUnit?"Fahrenheith":"Celsius",t.updateUnits(n._id,n).success(function(e){a()}).error(function(e){console.log(e)})}var o=this;o.closeDialog=a,o.updateUnits=i,o.form={},o.form.areaUnit="Feet"===n.areaUnit?!0:!1,o.form.tempUnit="Fahrenheith"===n.tempUnit?!0:!1,o.form.weightUnit="Pounds"===n.weightUnit?!0:!1,console.log(o.form)}e.$inject=["$mdDialog","apilaData","community"],angular.module("app.dashboard").controller("UnitSelectController",e)}(),function(){"use strict";function e(e,t,n,a,i,o,s){function l(){i.createRoomStyle(p,u.form).success(function(e){t.push(e),m(t)}).error(function(e){a.debug(e)})}function r(){i.updateRoomStyle(p,u.form).success(function(e){m(e)}).error(function(e){a.debug(e)})}function d(){}function c(){i.deleteRoomStyle(p,u.form._id).success(function(n){_.remove(t,{_id:n}),e.hide()}).error(function(e){a.debug(e)})}function m(t){e.hide(t)}var u=this,p=s.currentUser().community._id;u.form={rooms:[]},n&&(u.form=n,u.isUpdate=!0),u.seperators=[o.KEY_CODE.ENTER,o.KEY_CODE.COMMA],u.closeDialog=m,u.createRoom=l,u.updateRoom=r,u.convertUnit=d,u.deleteRoom=c}e.$inject=["$mdDialog","roomStyles","room","$log","apilaData","$mdConstant","authentication"],angular.module("app.dashboard").controller("RoomStyleController",e)}(),function(){"use strict";function e(e,t,n,a){function i(){var e={};e.password=l.form.password,e.recoveryid=l.recoveryInfo.recoveryid,e.type=l.recoveryInfo.type,n.verifyPassword(e,l.recoveryInfo.bossId).success(function(e){o(),s("Your password has been verified")}).error(function(e){s("Your password doesn't match!")})}function o(){e.hide()}function s(e){a.show(a.simple().textContent(e).position("top right").hideDelay(2e3))}var l=this;l.recoveryInfo=t,l.closeDialog=o,l.verifyPassword=i}e.$inject=["$mdDialog","recoveryInfo","apilaData","$mdToast"],angular.module("app.dashboard").controller("RecoverController",e)}(),function(){"use strict";function e(e,t,n,a,i){function o(){e.hide()}var s=this;s.userName=a,s.userId=i;var l=n.currentUser().communityId;s.closeDialog=o,t.listUserLogs(l,s.userId).success(function(e){console.log(e),s.ipLogs=e}).error(function(e){console.log(e)})}e.$inject=["$mdDialog","apilaData","authentication","name","userId"],angular.module("app.dashboard").controller("LogsController",e)}(),function(){"use strict";function e(e,t,n,a,i){function o(){if(null!==d.selectedItem){d.communityId=d.selectedItem.value;var e={pendingMember:d.username};t.addPendingMember(e,d.communityId).success(function(e){d.searchText="",r("Invite Request Sent to "+d.selectedItem.display),l()}).error(function(e){a.debug(e),e.exists&&r("You have already sent a request to this community"),l()})}}function s(e){if(null===e)return d.communityList;var t=e.toLowerCase(),n=d.communityList.filter(function(e){return e.display?e.display.toLowerCase().indexOf(t)>-1:void 0});return n}function l(){e.hide()}function r(e){n.show(n.simple().textContent(e).position("top right").hideDelay(3e3))}var d=this;d.username=i.currentUser().name,d.searchText="",d.closeDialog=l,d.sendRequest=o,d.getMatches=s,t.communityList().success(function(e){d.communityList=e.map(function(e){return{value:e._id,display:e.name}})}).error(function(e){a.debug("Error retriving the list of residents")})}e.$inject=["$mdDialog","apilaData","$mdToast","$log","authentication"],angular.module("app.dashboard").controller("JoinCommunityController",e)}(),function(){"use strict";function e(e,t,n,a,i,o,s){function l(){return g.form.communityMembers=[],g.form.pendingMembers=[],g.form.username=g.username,g.form.name?(g.gettingCreated=!0,void Stripe.card.createToken(g.cardInfo,function(e,t){200!==e?u(t.error):c(t)})):void(g.nameError="Community name must be specified")}function r(){g.gettingCreated=!0,Stripe.card.createToken(g.cardInfo,function(e,t){200!==e?u(t.error):m(t)})}function d(){e.hide()}function c(e){t.saveCreditCard(g.userid,e).success(function(e){t.addCommunity(g.form).success(function(e){d(),p("Community has been created!"),o.location.reload()}).error(function(e){a.debug(e)})}).error(function(e){a.debug(e)})}function m(e){t.saveCreditCard(g.userid,e).success(function(e){t.restoreCommunity(g.userid,g.canceledCommunity._id).success(function(e){d(),p("Community has been restored!"),o.location.reload()}).error(function(e){a.debug(e)})}).error(function(e){a.debug(e)})}function u(e){"card[number]"===e.param?g.cardNumberError="Invalid credit card number":"card[exp_month]"===e.param?g.expMonthError="Invalid Expiration Month entered please select between 01 - 12":"card[exp_year]"===e.param&&(g.expYearError="Invalid Expiration Year entered")}function p(e){i.show(i.simple().textContent(e).position("top right").hideDelay(3e3))}var g=this;g.form={},g.hasCanceledCommunity=!1,g.username=n.currentUser().name,g.userid=n.currentUser().id,g.restoreCommunity=!1,g.gettingCreated=!1,g.closeDialog=d,g.addCommunity=l,g.recoverCommunity=r,t.hasCanceledCommunity(g.userid).success(function(e){g.canceledCommunity=e,g.hasCanceledCommunity=!0}).error(function(e){a.debug(e)})}e.$inject=["$mdDialog","apilaData","authentication","$log","$mdToast","$window","activeEmail"],angular.module("app.dashboard").controller("CreateCommunityController",e)}(),function(){"use strict";function e(e,t,n,a,i,o){function s(){t.updateContactAndRoomInfo(u.community._id,u.community).success(function(e){d()}).error(function(e){a.debug(e)}),c()}function l(e){if(u.contactInfo.rooms=u.community.rooms,"floors"===e){var t=u.community.numFloors-u.floors.length;0===u.floors.length?u.floors=m(u.community.numFloors,0):t>0?u.floors=u.floors.concat(m(t,u.floors.length)):0>t&&u.floors.splice(t),0===u.community.numFloors&&(u.floors=[])}u.contactInfo.floors=u.floors}function r(e){if(null===e)return u.roomList;var t=_.sortBy(u.roomList,function(e){return+e.replace(/\D/g,"")}),n=e.toLowerCase(),a=t.filter(function(e){return e?e.toLowerCase().indexOf(n)>-1:void 0});return a}function d(){t.updateFloor(u.community._id,u.floors).success(function(e){a.debug(e)}).error(function(e){a.debug(e)})}function c(){e.hide()}function m(e,t){var n=_.range(e),a=_.map(n,function(e){return{floorNumber:e+t,startRoom:null,endRoom:null}});return a}var u=this;u.community=o,u.contactInfo={},u.roomList=_.flatten(_.map(u.community.roomStyle,"rooms")),u.floors=o.floors,l("floors"),u.closeDialog=c,u.save=s,u.getMatches=r,u.updateContactAndRoomInfo=l,u.updateFloors=d}e.$inject=["$mdDialog","apilaData","$mdToast","$log","authentication","community"],angular.module("app.dashboard").controller("BuildingSetupController",e)}(),function(){"use strict";function e(e,t,n){e.state("app.calendar",{url:"/calendar",views:{"content@app":{templateUrl:"app/main/calendar/calendar.html",controller:"AppoitmentsController as vm"}},bodyClass:"calendar"}),t.addPart("app/main/calendar"),n.saveItem("fuse.calendar",{title:"Calendar",icon:"icon-calendar-today",state:"app.calendar",weight:1})}e.$inject=["$stateProvider","$translatePartialLoaderProvider","msNavigationServiceProvider"],angular.module("app.calendar",["ui.calendar"]).config(e)}(),function(){"use strict";function e(e,t,n,a,i,o,s,l,r,d,c,m){function u(e){if(!e)return A.residentList;var t=e.toLowerCase(),n=A.residentList.filter(function(e){return null!=e.display?e.display.toLowerCase().indexOf(t)>-1:void 0});return n}function p(){k()&&A.selectedItem&&v()}function g(){A.dialogTitle="add"===A.dialogData.type?"Add Appointment":"Edit Appointment",A.dialogData.calendarEvent?(A.calendarEvent=angular.copy(A.dialogData.calendarEvent),A.calendarEvent.reason=A.calendarEvent.reason,A.isCancel=A.calendarEvent.cancel,A.date=new Date(A.calendarEvent.start),A.transportation=A.calendarEvent.transportation,moment.isMoment(A.calendarEvent.date)&&(A.calendarEvent.date=A.calendarEvent.date.toDate())):(moment.isMoment(A.dialogData.date)&&(A.dialogData.date=A.dialogData.date.toDate()),A.calendarEvent={start:A.dialogData.start,end:A.dialogData.end},void 0!==t.start._d&&(A.date=S(t.start._d),a.debug(A.date)))}function v(){if(!w()){A.calendarEvent.transportation=A.transportation,A.calendarEvent.residentId=A.selectedItem.value,A.calendarEvent.date=A.date,A.calendarEvent.cancel=A.isCancel;var t=new Date(A.calendarEvent.date);if(A.dayTimeSwitch===!1||"PM"===A.dayTimeSwitch?t.setUTCHours(parseInt(A.calendarEvent.hours)+12):t.setUTCHours(parseInt(A.calendarEvent.hours)),
  t.setMinutes(A.calendarEvent.minutes),x(),A.calendarEvent.time=t,A.isDisabled=!0,A.dialogData.calendarEvent){A.calendarEvent.appointmentDate=A.date,A.calendarEvent.appointmentDate.setHours(0,0,0,0),A.calendarEvent.timezone=A.date.getTimezoneOffset()/60,A.calendarEvent.modifiedBy=l.currentUser().id,A.calendarEvent.modifiedDate=new Date;var n=h(A.dialogData.calendarEvent,A.calendarEvent);n.length>0&&(A.calendarEvent.updateField=n);var i=[];void 0!=A.calendarEvent.source&&(i=A.calendarEvent.source.events,A.calendarEvent.source.events.length=0),A.calendarEvent.date=A.calendarEvent.time,o.updateAppointment(A.calendarEvent.appointId,A.calendarEvent).success(function(t){var n=A.dialogData.calendarEvent._id;A.calendarEvent=t,A.calendarEvent.source=i,A.calendarEvent.residentGoing=t.residentGoing,A.calendarEvent.appointId=t._id,A.calendarEvent.title=t.reason,A.calendarEvent.calId=n,A.calendarEvent.currentUser=t.residentGoing;var a={type:A.dialogData.type,calendarEvent:A.calendarEvent};e.hide(a)}).error(function(t){e.hide(),a.debug("Something went wrong while updating the appointments")})}else A.calendarEvent.date=A.calendarEvent.time,A.calendarEvent.community=A.community,A.calendarEvent.appointmentDate=A.date,A.calendarEvent.appointmentDate.setHours(0,0,0,0),A.calendarEvent.timezone=A.date.getTimezoneOffset()/60,o.addAppointment(A.calendarEvent).success(function(t){console.log("Appointment added!"),A.calendarEvent=t,A.calendarEvent.appointId=t._id,A.calendarEvent.title=t.reason;var n={type:A.dialogData.type,calendarEvent:A.calendarEvent};console.log(n),e.hide(n)}).error(function(t){t.error_list&&(C("Appointment is created but there was an error showing it"),r.location.reload()),e.hide(),a.debug(t)})}}function h(e,t){for(var n=new Date(e.date),a=t.date,i=[],o=["reason","locationName","locationDoctor","transportation"],s=0;s<o.length;++s)e[o[s]]!==t[o[s]]&&i.push({field:o[s],old:e[o[s]],"new":t[o[s]]});return n.getTime()!==a.getTime()&&i.push({field:"time",old:n,"new":a}),i}function f(){o.addAppointmentCommentById(A.calendarEvent.appointId,A.formData).success(function(e){e.author={_id:N,name:l.currentUser().name},A.calendarEvent.appointmentComment.push(e),A.dialogData.calendarEvent.appointmentComment.push(e),A.formData.commentText=""}).error(function(e){a.debug("Error while adding comments")})}function b(){o.residentById(A.calendarEvent.residentGoing._id).success(function(e){var t=A.calendarEvent.residentGoing.firstName+" to "+(A.calendarEvent.locationName.name||A.calendarEvent.locationName);A.calendarEvent.residentGoing=e,A.calendarEvent.appointmentDate=A.date,A.calendarEvent.appointmentDate.setHours(0,0,0,0),A.calendarEvent.tempUnit="Celsius"===A.community.tempUnit?"C":"F",A.calendarEvent.weightUnit="Pounds"===A.community.weightUnit?"lbs":"kg";var n={calendar:A.calendarEvent,community:A.community};m.exportPdf(t,n)})}function y(){e.cancel()}function x(){var e=A.currentTime.getHours(),t=A.currentTime.getMinutes(),n=!0;e>=12&&(e-=12,n=!1),A.calendarEvent.hours=e,A.calendarEvent.minutes=t,A.calendarEvent.isAm=n}function w(){var e=!1;return s.requiredFields(A.calendarEvent,A.error,D)&&(e=!0),A.date?A.error.date=!1:(A.error.date=!0,e=!0),A.currentTime?A.error.currentTime=!1:(A.error.currentTime=!0,e=!0),A.selectedItem?A.error.selectedItem=!1:(A.error.selectedItem=!0,e=!0),e}function k(){return A.dialogData.calendarEvent?!0:!1}function C(e){d.show(d.simple().textContent(e).position("top right").hideDelay(2e3))}function S(e){return new Date(e.getTime()+60*e.getTimezoneOffset()*1e3)}var A=this;A.dialogData=t,A.isDisabled=!1,A.Utils=c,A.residentList=n;var N=l.currentUser().id,D=["reason","locationName"];A.error={},A.saveEvent=v,A.closeDialog=y,A.updateIssue=p,A.exportAppointment=b,A.inUpdate=k,A.submitComment=f,A.getMatches=u,g();l.currentUser().community._id;if(A.community=l.currentUser().community,A.dayTimeSwitch="AM",A.showCancel=!1,A.autocompleteOptions={componentRestrictions:{country:"us"},types:["establishment"]},k()||(A.transportation="We are transporting",A.showCancel=!0,A.currentTime=new Date),A.selectedUser={},A.dialogData.calendarEvent){A.dayTimeSwitch=A.calendarEvent.isAm,A.currentTime=new Date,A.calendarEvent.isAm?A.currentTime.setHours(A.calendarEvent.hours):A.currentTime.setHours(A.calendarEvent.hours+12),A.currentTime.setMinutes(A.calendarEvent.minutes),0==A.dayTimeSwitch?A.dayTimeSwitch="PM":A.dayTimeSwitch="AM";var T=A.calendarEvent.currentUser.aliasName||A.calendarEvent.currentUser.firstName,R=T+" "+A.calendarEvent.currentUser.lastName;A.selectedItem={value:A.calendarEvent.currentUser._id,display:R},A.selectedUser=A.calendarEvent.currentUser,A.currDay=moment().isoWeekday()}}e.$inject=["$mdDialog","dialogData","residentList","$log","$location","apilaData","errorCheck","authentication","$window","$mdToast","Utils","exportAppointDetail"],angular.module("app.calendar").controller("EventFormDialogController",e)}(),function(){"use strict";function e(e,t){function n(e){var n=[],a={};_.forEach(t,function(t){if(!angular.isString(t.locationName)){var i=t.locationName.geometry,o=t.locationName.formatted_address;i&&e(t)&&(a[o]?a[o].value++:(a[o]={value:1},a[o].center={latitude:i.location.lat,longitude:i.location.lng}),n.push({id:t._id,coords:{latitude:i.location.lat,longitude:i.location.lng}}))}});var i={value:-1};for(var o in a)a.hasOwnProperty(o)&&i.value<a[o].value&&(i=a[o]);return l.locationsMap.center=i.center||l.locationsMap.center,l.locationsMap.zoom=10,n}function a(e){var t=moment(e.appointmentDate),n=moment(),a=moment(),i=moment(),o=n.isoWeekday();return a=moment(n).subtract(o,"day"),i=moment(a).add(6,"day"),t.isBetween(a,i)}function i(e){return e.appointmentDate?moment(e.appointmentDate).isSame(moment(),"day"):void 0}function o(e){if(e.appointmentDate){var t=moment(e.appointmentDate);return t.isSame(moment().add(1,"days"),"day")}}function s(){e.cancel()}var l=this;l.closeDialog=s,l.locationsMap={center:{latitude:33.2148412,longitude:-97.13306829999999},zoom:4},l.tomorrowLocations=n(o),l.todayLocations=n(i),l.currentWeekLocations=n(a),l.switchTabs=function(e){"Today"===e?l.todayLocations=n(i):"Tomorrow"===e?l.tomorrowLocations=n(o):"This-Week"===e&&(l.currentWeekLocations=n(a))}}e.$inject=["$mdDialog","appointments"],angular.module("app.calendar").controller("AppointmentMapController",e)}(),function(){"use strict";function e(e,t){e.addPart("app/quick-panel")}e.$inject=["$translatePartialLoaderProvider","msApiProvider"],angular.module("app.quick-panel",["app.todo"]).config(e)}(),function(){"use strict";function e(e,t,n,a){function i(e){l.chatActive=!l.chatActive,l.chatActive&&(l.replyMessage="",l.chat.contact=e,s(0))}function o(){if(""!==l.replyMessage){var t={userSend:n.currentUser().id,message:l.replyMessage,community:n.currentUser().community._id,timeSent:new Date};e.emit("chat-msg",t),t.userSend={_id:n.currentUser().id,name:n.currentUser().name,userImage:n.getUserImage()},l.chat.community.messages.push(t),l.replyMessage="",s(400)}}function s(e){var n=angular.element("#chat-dialog");t(function(){n.animate({scrollTop:n[0].scrollHeight},e)},0)}var l=this;l.chat={},l.chatActive=!1,l.replyMessage="",l.timeDiff=a.timeDiff,l.chat.community={messages:[]},l.toggleChat=i,l.reply=o,e.on("connect",function(){e.emit("get-community-msgs",n.currentUser().community._id),e.on("community-msg",function(e){console.log("Community msg received")}),e.on("chat-newmsg",function(e){l.chat.community.messages.push(e)}),e.on("community-msgs",function(e){l.chat.community.messages=e})})}e.$inject=["socket","$timeout","authentication","Utils"],angular.module("app.quick-panel").controller("ChatTabController",e)}(),function(){"use strict";function e(){var e=this;e.timeAgo=function(e){return moment(e).fromNow()},e.activity.userId.userImage||(e.activity.userId.userImage="assets/images/avatars/userDefaultProfile.png")}angular.module("app.quick-panel").component("activityBox",{templateUrl:"app/quick-panel/components/activityBox/activityBox.html",bindings:{activity:"<"},controller:e}),angular.module("app.quick-panel").controller("activityBoxController",e)}(),function(){"use strict";function e(e){e.state("app.ui_typography",{url:"/ui/typography",views:{"content@app":{templateUrl:"app/main/ui/typography/typography.html",controller:"TypographyController as vm"}},bodyClass:"typography"})}e.$inject=["$stateProvider"],angular.module("app.ui.typography",[]).config(e)}(),function(){"use strict";function e(){}angular.module("app.ui.typography").controller("TypographyController",e)}(),function(){"use strict";function e(e,t,n){function a(e){t.show({controller:"CustomThemeDialogController",controllerAs:"vm",templateUrl:"app/main/ui/theme-colors/dialogs/custom-theme/custom-theme-dialog.html",parent:angular.element(n.body),targetEvent:e,clickOutsideToClose:!0})}var i=this;i.themes=e.themes,i.createTheme=a}e.$inject=["fuseTheming","$mdDialog","$document"],angular.module("app.ui.theme-colors").controller("ThemeColorsController",e)}(),function(){"use strict";function e(e){e.state("app.ui_material-colors",{url:"/ui/material-colors",views:{"content@app":{templateUrl:"app/main/ui/material-colors/material-colors.html",controller:"MaterialColorsController as vm"}}})}e.$inject=["$stateProvider"],angular.module("app.ui.material-colors",[]).config(e)}(),function(){"use strict";function e(e){var t=this;t.palettes=e}e.$inject=["$mdColorPalette"],angular.module("app.ui.material-colors").controller("MaterialColorsController",e)}(),function(){"use strict";function e(e,t){e.state("app.ui_icons",{url:"/ui/icons",views:{"content@app":{templateUrl:"app/main/ui/icons/icons.html",controller:"IconsController as vm"}},resolve:{Icons:["msApi",function(e){return e.resolve("icons@get")}]},bodyClass:"icons"}),t.register("icons",["assets/icons/selection.json"])}e.$inject=["$stateProvider","msApiProvider"],angular.module("app.ui.icons",[]).config(e)}(),function(){"use strict";function e(e){var t=this;t.icons=e.icons}e.$inject=["Icons"],angular.module("app.ui.icons").controller("IconsController",e)}(),function(){"use strict";function e(e){e.state("app.ui_forms",{url:"/ui/forms",views:{"content@app":{templateUrl:"app/main/ui/forms/forms.html",controller:"FormsController as vm"}},bodyClass:"forms"})}e.$inject=["$stateProvider"],angular.module("app.ui.forms",[]).config(e)}(),function(){"use strict";function e(e){function t(t){e.show({controller:["$scope","$mdDialog","formWizardData",function(e,t,n){e.formWizardData=n,e.closeDialog=function(){t.hide()}}],template:'<md-dialog>  <md-dialog-content><h1>You have sent the form with the following data</h1><div><pre>{{formWizardData | json}}</pre></div></md-dialog-content>  <md-dialog-actions>    <md-button ng-click="closeDialog()" class="md-primary">      Close    </md-button>  </md-dialog-actions></md-dialog>',parent:angular.element("body"),targetEvent:t,locals:{formWizardData:a.stepper},clickOutsideToClose:!0}),a.stepper={step1:{},step2:{},step3:{}}}function n(t){e.show({controller:["$scope","$mdDialog","formWizardData",function(e,t,n){e.formWizardData=n,e.closeDialog=function(){t.hide()}}],template:'<md-dialog>  <md-dialog-content><h1>You have sent the form with the following data</h1><div><pre>{{formWizardData | json}}</pre></div></md-dialog-content>  <md-dialog-actions>    <md-button ng-click="closeDialog()" class="md-primary">      Close    </md-button>  </md-dialog-actions></md-dialog>',parent:angular.element("body"),targetEvent:t,locals:{formWizardData:a.formWizard},clickOutsideToClose:!0}),a.formWizard={}}var a=this;a.stepper={step1:{},step2:{},step3:{}},a.basicForm={},a.formWizard={},a.states="AL AK AZ AR CA CO CT DE FL GA HI ID IL IN IA KS KY LA ME MD MA MI MN MS MO MT NE NV NH NJ NM NY NC ND OH OK OR PA RI SC SD TN TX UT VT VA WA WV WI WY".split(" ").map(function(e){return{abbrev:e}}),a.sendForm=n,a.submitStepper=t}e.$inject=["$mdDialog"],angular.module("app.ui.forms").controller("FormsController",e)}(),function(){"use strict";function e(e,t){function n(e){var t="";return t=12>e?e+" am":e-12+" pm",t=0===e?"12 am":t,t=12===e?"12 pm":t}return{convertToPm:n,HOURLY:0,DAILY:1,WEEKLY:2,MONTHLY:3}}e.$inject=["apilaData","authentication"],angular.module("app.todo").service("ToDoUtilsService",e)}(),function(){"use strict";function e(){function e(e,n){var a=t[e];return a&&a[n]?a[n]:void 0}var t={frequencyOfBathing:{0:"None",1:"Once a week",2:"Twice a week",3:"Every other day",4:"Every day"},assessmentInterval:{0:"Weekly",1:"Monthly",2:"Quarterly",3:"Yearly",4:"None"},bowelContinent:{0:"Always",1:"Sometimes",2:"Never"},constipated:{0:"Always",1:"Sometimes",2:"Never"},bladderContinent:{0:"Always",1:"Sometimes",2:"Never"},dribbles:{0:"Always",1:"Sometimes",2:"Never"},overallNutrition:{0:"Not eating",1:"Poor",2:"Good",3:"Over eating"},teethCare:{0:"Great",1:"Good",2:"Decent",3:"Lacking",4:"None"},comprehension:{0:"Slow",1:"Moderate",2:"Quick"},dementia:{0:"None",1:"Mild",2:"Moderate",3:"Severe"},generalActivityParticipation:{0:"Never",1:"Sometimes",2:"Good",3:"Amazing"},diningRoomParticipation:{0:"Never",1:"Sometimes",2:"Good",3:"Amazing"},busRideParticipation:{0:"Never",1:"Sometimes",2:"Good",3:"Amazing"},fitnessClassParticipation:{0:"Never",1:"Sometimes",2:"Good",3:"Amazing"},bingoParticipation:{0:"Never",1:"Sometimes",2:"Good",3:"Amazing"},communityParticipation:{0:"Never",1:"Sometimes",2:"Good",3:"Amazing"}};return{replaceNumberValue:e}}angular.module("app.residents").service("SliderMapping",e)}(),function(){"use strict";function e(){function e(e,n){var a="",i={};for(var o in e)if(e.hasOwnProperty(o)){var s={key:o,type:""};if("_id"===s.key||"$$hashKey"===s.key||"community"===s.key||"submitBy"===s.key||"submitDate"===s.key)continue;if("birthDate"===s.key){i[a.length]=s,a+=moment(e[s.key]).format("YYYY MM DD")+"\n";continue}if(1==e[s.key]){s.type="boolean",i[a.length]=s,a+=s.key+"\n";continue}if(_.includes(t,s.key)){i[a.length]=s,a+=e[s.key].join(" ");continue}if(angular.isObject(e[s.key]))continue;e[s.key]&&(i[a.length]=s,a+=e[s.key]+"\n")}return{searchString:a,fieldsTypes:i}}var t=["foodAllergies","medicationAllergies","otherAllergies","foodLikes","foodDislikes","outsideAgencyFile","psychosocialStatus","shopping","painManagedBy"];return{transformResidentForSearch:e}}angular.module("app.residents").service("SearchResident",e)}(),function(){"use strict";function e(e,t,n,a){function i(e,t){var a=["foodAllergies","medicationAllergies","otherAllergies","foodLikes","foodDislikes","outsideAgencyFile","psychosocialStatus","shopping","painManagedBy"],i=[];return _.forEach(e,function(e,s){e.updateField&&_.forEach(e.updateField,function(s){var l={text:"",diffTime:"",username:""},r=s.field,d=n.replaceNumberValue(r,s.old)||s.old,c=n.replaceNumberValue(r,s["new"])||s["new"];l.username=e.updateBy||{},l.username.userImage||(l.username.userImage="assets/images/avatars/userDefaultProfile.png"),("admissionDate"===r||"birthDate"===r)&&(d=moment(d).format("MMMM Do YYYY"),c=moment(c).format("MMMM Do YYYY")),l.text=" has updated "+_.startCase(r)+" from "+d+" to "+c,d||(l.text=" has updated "+_.startCase(r)+" to "+c),_.includes(a,r)&&("shopping"===r&&console.log(s),""!=c?l.text=" has added "+c+" to "+_.startCase(r):l.text=" has removed "+d+" from "+_.startCase(r)),"create-contact"===r&&(l.text=" has created a new contact "+c),l.diffTime+=" "+o(e.updateDate),l.communicatedWith="",e.communicatedWith.length>0&&(l.communicatedWith="Communicated with ");var m=_.find(t.residentContacts,{primaryContact:!0}),u=_.find(t.residentContacts,{trustedPerson:!0});_.forEach(e.communicatedWith,function(e){"resident"===e&&(l.communicatedWith+="Resident,"),"primary"===e&&m&&(l.communicatedWith+=" Primary contact "+m.firstName+" "+m.lastName+","),"trusted"===e&&u&&(l.communicatedWith+=" Trusted person "+u.firstName+" "+u.lastName+",")}),l.communicatedWith=l.communicatedWith.slice(0,-1),i.push(l)})}),i}function o(e){var t=moment(e),n=moment(),a=moment.duration(n.diff(t));return a.asSeconds()<60?Math.floor(a.asSeconds())+" seconds ago":a.asMinutes()<60?Math.floor(a.asMinutes())+" minutes ago":a.asHours()<24?Math.floor(a.asHours())+" hours ago":a.asDays()<31?Math.floor(a.asDays())+" days ago":a.asMonths()<12?Math.floor(a.asMonths())+" months ago":Math.floor(a.asYears())+" years ago"}function s(e,t){for(var n=[],i=["firstName","aliasName","lastName","middleName","maidenName","sex","room","veteran","socialSecurityNumber","maritalStatus","buildingStatus","admittedFrom","administrativeNotes","assessmentInterval","fullCode","primaryDoctor","pharmacy","longTermCareInsurance","receiveingLongTermCareInsurance","appointmentCoordination","typeOfBathing","timeOfBathing","frequencyOfBathing","acceptanceOfBathing","dislikesBathingDescribe","bathingNotes","bowelContinent","constipated","laxative","bladderContinent","dribbles","catheter","toiletingDevice","catheterDescribe","colostomy","urostomy","incontinentApparelAssist","toiletTransfer","toiletingAssist","toiletingReminder","continentNotes","religion","education","occupation","lifeNotes","contribution","supportGroup","outsideAgency","easilyUnderstood","englishFirstLanguage","otherLanguage","heatingPad","microwave","extensionCord","accessorySafetyAssessment","transfers","fallRisk","fallRiskDescribe","bedReposition","bedRepositionExplain","bedRepositionOutsideAgency","twoPersonLift","mobilityNotes","hairAssist","barber","shaveAssist","hairNotes","fingerNailsAssist","toeNailsAssist","makeupAssist","jewelryAssist","lotionAssist","layoutCloths","shoesAssist","topAssist","bottomAssist","buttonAssist","zipperAssist","dressingNotes","compressionStockingsAssist","brace","braceAssist","braceDescribe","bedAssist","bedAssistDescribe","overallNutrition","poorNutritionIntervention","poorNutritionDescribe","diabetic","diabeticType","bloodSugarMonitoring","bedtimeSnack","adaptiveEquipment","specialDiet","typeOfDiet","fingerFoods","feedAssist","foodInRoom","drinkInRoom","nutritionNotes","hasPain","painLocation","painDescription","maxPainTime","painIncreasedBy","painLength","painNotes","skinCondition","hasWound","hasWoundDescribe","skinBreakdown","skinNotes","woundAmount","wearsHearingAid","helpWithHearingAid","helpWithHearingAidDescribe","urinaryTractInfectionRisk","upperRespiratoryInfectionRisk","methicillinResistantStaphylococcusAureusRisk","vancomycinResistantEnterococcusRisk","shinglesRisk","pneumoniaRisk","hearingAbility","hearingAssist","leftEar","rightEar","leftEye","rightEye","visionNotes","visionDevice","visionAssist","visionAbility","hearingNotes","dentistName","upperTeeth","lowerTeeth","teethCare","teethCareDescribe","teethCondition","teethAssist","teethNotes","oxygen","oxygenType","oxygenFlow","medsAtBedside","medications","swallowAssist","chemotherapy","dialysis","marijuana","physicalNotes","dementia","sunDowner","sunDownerExplain","wanderer","anxiety","antipsychoticMeds","sexualActiveDescribe","otherHabits","volunteer","psychosocialStatusDescribe","psychosocialResponsiveness","mood","comprehension","smokes","smokesDescribe","alcohol","alcoholDescribes","sexualActive","generalActivityParticipation","diningRoomParticipation","busRideParticipation","fitnessClassParticipation","bingoParticipation","communityParticipation","drivesCar","licensePlateNumber","spareKeyLocation","drivingNeeds","timeInRoom","preferedActivites","useFitnessEquipmentIndependently","highMaintenance","highMaintenanceDescribe","familyInvolvement","psychosocialNotes","usualBedtime","usualArisingTime","nap","napDescribe","assistanceToBed","sleepsThroughNight","sleepDisturbance","canCallForAssistance","sleepNotes"],o=["newbloodPressureSystolic","newbloodPressureDiastolic","newoxygenSaturation","newpulse","newweight","newvitalsPain","newrespiration","newtemperature","newinternationalNormalizedRatio"],s=0;s<o.length;++s)if(e[o[s]]!==t[o[s]]){var r=t[o[s]];r.data&&(r=t[o[s]].data),r&&(a.debug("updated"),n.push({field:o[s],"new":r}))}for(s=0;s<i.length;++s)e[i[s]]!==t[i[s]]&&n.push({field:i[s],old:e[i[s]],"new":t[i[s]]});var d=["admissionDate","birthDate"];for(s=0;s<d.length;++s)new Date(e[d[s]]).toDateString()!==new Date(t[d[s]]).toDateString()&&n.push({field:d[s],old:e[d[s]],"new":t[d[s]]});var c=[{f:"personalHabits",s:"smokes"},{f:"personalHabits",s:"alcohol"},{f:"personalHabits",s:"other"},{f:"hearing",s:"rightEar"},{f:"hearing",s:"leftEar"},{f:"vision",s:"rightEye"},{f:"vision",s:"leftEye"},{f:"teeth",s:"upperTeeth"},{f:"teeth",s:"lowerTeeth"},{f:"insideApartment",s:"useOfAssistiveDevice"},{f:"insideApartment",s:"assitanceWithDevice"},{f:"insideApartment",s:"specialAmbulationNeeds"},{f:"outsideApartment",s:"useOfAssistiveDevice"},{f:"outsideApartment",s:"assitanceWithDevice"},{f:"outsideApartment",s:"specialAmbulationNeeds"}];for(s=0;s<c.length;++s){var m=l(e,c[s].f+"."+c[s].s),r=l(t,c[s].f+"."+c[s].s);void 0!==r&&m!==r&&n.push({field:c[s].f+" "+[c[s].s],old:m,"new":r})}t.locationInfo||(t.locationInfo={}),t.locationInfo.formatted_address&&e.movedFrom&&e.movedFrom.name!==t.locationInfo.formatted_address&&n.push({field:"movedFrom",old:e.movedFrom.name,"new":t.locationInfo.formatted_address});var u=[];for(t.newShoppingStatus.length>t.shopping.length?(u=_.difference(t.newShoppingStatus,t.shopping),n.push({field:"shopping",old:"","new":u.toString()})):t.newShoppingStatus.length<t.shopping.length&&(u=_.difference(t.shopping,t.newShoppingStatus),n.push({field:"shopping",old:u.toString(),"new":""})),t.newPainManagedBy.length>t.painManagedBy.length?(u=_.difference(t.newPainManagedBy,t.painManagedBy),n.push({field:"painManagedBy",old:"","new":u.toString()})):t.newPainManagedBy.length<t.painManagedBy.length&&(u=_.difference(t.painManagedBy,t.newPainManagedBy),n.push({field:"painManagedBy",old:u.toString(),"new":""})),t.newpsychosocialStatus.length>t.psychosocialStatus.length?(u=_.difference(t.newpsychosocialStatus,t.psychosocialStatus),n.push({field:"psychosocialStatus",old:"","new":u.toString()})):t.newpsychosocialStatus.length<t.psychosocialStatus.length&&(u=_.difference(t.psychosocialStatus,t.newpsychosocialStatus),n.push({field:"psychosocialStatus",old:u.toString(),"new":""})),s=0;s<e.residentContacts.length;++s){var p=e.residentContacts[s];for(var g in p)"physicalAddress"===g?e.residentContacts[s][g].formatted_address!==t.residentContacts[s][g].formatted_address&&n.push({field:g+"InContacts",old:e.residentContacts[s][g].formatted_address,"new":t.residentContacts[s][g].formatted_address}):e.residentContacts[s][g]!==t.residentContacts[s][g]&&(a.debug(g+" changed!!!"),n.push({field:g+"InContacts",old:e.residentContacts[s][g],"new":t.residentContacts[s][g]}))}return n}var l=(t.currentUser().name,function(e,t){t=t.replace(/\[(\w+)\]/g,".$1"),t=t.replace(/^\./,"");for(var n=t.split("."),a=0,i=n.length;i>a;++a){var o=n[a];if(!(o in e))return;e=e[o]}return e});return{formatUpdateArray:i,checkChangedFields:s}}e.$inject=["apilaData","authentication","SliderMapping","$log"],angular.module("app.residents").service("ResidentUpdateInfoService",e)}(),function(){angular.module("app.residents").directive("scrolly",function(){return{restrict:"A",link:function(e,t,n){var a=t[0];console.log("loading directive"),t.bind("scroll",function(){a.scrollTop+a.offsetHeight+10>a.scrollHeight&&e.$apply(n.scrolly)})}}})}(),function(){"use strict";function e(){function e(){n.name="",n.labels=[],n.members=[]}function t(){return""===n.name&&0===n.labels.length&&0===n.members.length?!1:!0}var n={name:"",labels:[],members:[],clear:e,isOn:t};return n}angular.module("app.issues").factory("CardFilters",e)}(),function(){"use strict";function e(e,t){function n(n,a,i){e.show({templateUrl:"app/main/issues/dialogs/card/html/card-dialog.html",controller:"IssueCardDialogController",controllerAs:"vm",parent:t.find("#issues"),targetEvent:n,clickOutsideToClose:!0,escapeToClose:!0,locals:{cardId:a}}).then(i)}var a={openCardDialog:n};return a}e.$inject=["$mdDialog","$document"],angular.module("app.issues").factory("DialogService",e)}(),function(){"use strict";function e(e,t,n){var a={data:{}};return a.list={data:[{name:"Open Issues",uri:"open-issues",id:"32gfhaf2"},{name:"Shelved Issues",uri:"shelved-issues",id:"27cfcbe1"},{name:"Closed Issues",uri:"closed-issues",id:"fg56cbe1"}]},a.name="",a.data={data:{id:"27cfcbe1",name:"ACME Backend Application",uri:"acme-backend-application",settings:{color:"blue-grey",subscribed:!1,cardCoverImages:!0},lists:[],cards:[],members:[],labels:[]}},a}e.$inject=["$q","msApi","apilaData"],angular.module("app.issues").factory("BoardService",e)}(),function(){"use strict";function e(e,t,n){e.state("app.errors_error-500",{url:"/errors/error-500",views:{"main@":{templateUrl:"app/core/layouts/content-only.html",controller:"MainController as vm"},"content@app.errors_error-500":{templateUrl:"app/main/errors/500/error-500.html",controller:"Error500Controller as vm"}}}),t.addPart("app/main/errors/500")}e.$inject=["$stateProvider","$translatePartialLoaderProvider","msNavigationServiceProvider"],angular.module("app.error-500",[]).config(e)}(),function(){"use strict";function e(){}angular.module("app.error-500").controller("Error500Controller",e)}(),function(){"use strict";function e(e,t,n){e.state("app.errors_error-404",{url:"/errors/error-404",views:{"main@":{templateUrl:"app/core/layouts/content-only.html",controller:"MainController as vm"},"content@app.errors_error-404":{templateUrl:"app/main/errors/404/error-404.html",controller:"Error404Controller as vm"}}}),t.addPart("app/main/errors/404")}e.$inject=["$stateProvider","$translatePartialLoaderProvider","msNavigationServiceProvider"],angular.module("app.error-404",[]).config(e)}(),function(){"use strict";function e(){}angular.module("app.error-404").controller("Error404Controller",e)}(),function(){"use strict";function e(e,t){function n(t){var n="https://api.apixu.com/v1/forecast.json?key="+s+"&q="+t+"&days=4";return e.get(n)}function a(e){return e=e||"",e=e.toLowerCase(),-1!==e.indexOf("cloud")?"icon-weather-cloudy":-1!==e.indexOf("clear")?"icon-weather-sunny":-1!==e.indexOf("snow")?"icon-weather-snowy":-1!==e.indexOf("rain")?"icon-weather-rainy":void 0}function i(e){return moment.unix(parseInt(e)).format("dddd")}function o(){return l}var s="ed6ec2b3aefd4f6fa5a124152171201",l="";return{getWeather:n,getTempUnit:o,getDay:i,mapIcon:a}}e.$inject=["$http","$log"],angular.module("app.dashboard").service("WeatherService",e)}(),function(){"use strict";function e(e,t){function n(){e.averageAge(o).success(function(e){t.debug("averageAge: "+e),s=e}).error(function(e){t.debug(e)})}function a(){e.averageStayTime(o).success(function(e){l=e}).error(function(e){t.debug(e)})}function i(e,t,n){o=e,s=t,l=n}var o="",s=0,l=0;return{getAverageAge:n,getAverageStayTime:a,setData:i}}e.$inject=["apilaData","$log"],angular.module("app.dashboard").service("StatsService",e)}(),function(){"use strict";function e(e,t,n){function a(t,a){c.splice(0,1);var i={};i.member=a[3];var o=a.concat([!1,!1,!0,!1,"Minion",""]);e.acceptMember(i,u).success(function(e){a.splice(a.length-1,1),m.push(o)}).error(function(e){n.debug(e)})}function i(t,a){var i={member:a};e.declineMember(i,u).success(function(e){c.splice(t,1)}).error(function(e){n.debug(e)})}function o(a,i){var o=d(i);t.show(o).then(function(){e.removeMember(u,a).success(function(e){r(a)}).error(function(e){n.debug(e)})})}function s(t,a){var i=t,o={type:a};e.addRole(u,i,o).success(function(e){n.debug("Role added "+e)}).error(function(e){n.debug("Couldn't add a role")})}function l(e,t,n){c=e,m=t,u=n}function r(e){for(var t=0;t<m.length;++t)if(m[t][3]===e)return void m.splice(t,1)}function d(e){var n=t.confirm().title("Are you sure you want to remove the user "+e).ariaLabel("Lucky day").ok("Yes").cancel("Cancel");return n}var c=null,m=null,u=null;return{acceptMember:a,declineMember:i,removeMember:o,addRole:s,setData:l}}e.$inject=["apilaData","$mdDialog","$log"],angular.module("app.dashboard").service("MemberService",e)}(),function(){"use strict";function e(e,t,n,a,i){function o(e){t.show({controller:"UpdateBillingController",controllerAs:"vm",templateUrl:"app/main/dashboard/dialogs/update_billing/update_billing.html",parent:angular.element(n.body),targetEvent:e,clickOutsideToClose:!0})}function s(n,o){var s=t.confirm().title("Are you sure you want to cancel your subscription?").textContent("Cancelling means your community will get shut down and other community members would not be able to use it").ariaLabel("Lucky day").ok("Yes").cancel("No");t.show(s).then(function(){e.cancelSubscription(n).success(function(e){o=!0,a.location.reload()}).error(function(e){i.debug(e)})})}return{updateBillingModal:o,cancelSubscription:s}}e.$inject=["apilaData","$mdDialog","$document","$window","$log"],angular.module("app.dashboard").service("BillingService",e)}(),function(){"use strict";function e(e,t,n){e.state("app.pages_auth_verify",{url:"/auth/verify/{token}",views:{"main@":{templateUrl:"app/core/layouts/content-only.html",controller:"MainController as vm"},"content@app.pages_auth_verify":{templateUrl:"app/main/auth/verify/verify.html",controller:"VerifyController as vm"}},bodyClass:"verify"}),t.addPart("app/main/auth/verify")}e.$inject=["$stateProvider","$translatePartialLoaderProvider","msNavigationServiceProvider"],angular.module("app.pages.auth.verify",[]).config(e)}(),function(){"use strict";function e(e,t){var n=this;n.verifiedEmail=!1;var a=t.token;e.verifyEmail(a).success(function(e){n.verifiedEmail=e.status}).error(function(e){n.verifiedEmail=!1})}e.$inject=["apilaData","$stateParams"],angular.module("app.pages.auth.verify").controller("VerifyController",e)}(),function(){"use strict";function e(e,t,n){e.state("app.pages_auth_reset-password",{url:"/auth/reset-password/:token",views:{"main@":{templateUrl:"app/core/layouts/content-only.html",controller:"MainController as vm"},"content@app.pages_auth_reset-password":{templateUrl:"app/main/auth/reset-password/reset-password.html",controller:"ResetPasswordController as vm"}},bodyClass:"reset-password"}),t.addPart("app/main/auth/reset-password")}e.$inject=["$stateProvider","$translatePartialLoaderProvider","msNavigationServiceProvider"],angular.module("app.pages.auth.reset-password",[]).config(e)}(),function(){"use strict";function e(e,t,n,a){var i=this;i.resetPassword=function(){e.resetPassword(n.token,i.form).success(function(e){t.go("app.pages_auth_login")}).error(function(e){a.show(a.simple().textContent("Failed reseting password").position("top right").hideDelay(2e3))})}}e.$inject=["apilaData","$state","$stateParams","$mdToast"],angular.module("app.pages.auth.reset-password").controller("ResetPasswordController",e)}(),function(){"use strict";function e(e,t,n){e.state("app.pages_auth_register",{url:"/auth/register",views:{"main@":{templateUrl:"app/core/layouts/content-only.html",controller:"MainController as vm"},"content@app.pages_auth_register":{templateUrl:"app/main/auth/register/register.html",controller:"RegisterController as vm"}},bodyClass:"register"}),t.addPart("app/main/auth/register")}e.$inject=["$stateProvider","$translatePartialLoaderProvider","msNavigationServiceProvider"],angular.module("app.pages.auth.register",[]).config(e)}(),function(){"use strict";function e(e,t,n,a){function i(){l.credentials.name=l.form.username,l.credentials.email=l.form.email,l.credentials.password=l.form.password,l.doRegister()}function o(){return l.notSamePass="",l.userExists="",l.emailExists="",l.form.passwordConfirm!==l.form.password?void(l.notSamePass="The passwords don't match"):void t.register(l.credentials).error(function(e){e.errmsg?(-1!==e.errmsg.indexOf("name_1")&&(l.userExists="This username already exists"),-1!==e.errmsg.indexOf("email")&&(l.emailExists="This email already exists"),-1!==e.errmsg.indexOf("failed_send")&&s("Unable to send verification email. Please contact the administrators.")):s("Error while registring contact administrator")}).then(function(){n.debug("success register: "+t.currentUser().name),e.path("/auth/login")})}function s(e){a.show(a.simple().textContent(e).position("top right").hideDelay(2e3))}var l=this;l.disabled=!1,l.credentials={name:"",email:"",password:""},l.register=i,
  l.doRegister=o}e.$inject=["$location","authentication","$log","$mdToast"],angular.module("app.pages.auth.register").controller("RegisterController",e)}(),function(){"use strict";function e(e,t,n){e.state("app.not-auth",{url:"/not-auth",views:{"main@":{templateUrl:"app/core/layouts/content-only.html",controller:"MainController as vm"},"content@app.not-auth":{templateUrl:"app/main/auth/not-auth/not-auth.html",controller:"NotAuthController as vm"}},bodyClass:"not-auth"}),t.addPart("app/main/auth/not-auth")}e.$inject=["$stateProvider","$translatePartialLoaderProvider","msNavigationServiceProvider"],angular.module("app.not-auth",[]).config(e)}(),function(){"use strict";function e(){}angular.module("app.not-auth").controller("NotAuthController",e)}(),function(){"use strict";function e(e,t,n){e.state("app.pages_auth_login",{url:"/auth/login",views:{"main@":{templateUrl:"app/core/layouts/content-only.html",controller:"MainController as vm"},"content@app.pages_auth_login":{templateUrl:"app/main/auth/login/login.html",controller:"LoginController as vm"}},bodyClass:"login"}),t.addPart("app/main/auth/login")}e.$inject=["$stateProvider","$translatePartialLoaderProvider","msNavigationServiceProvider"],angular.module("app.pages.auth.login",[]).config(e)}(),function(){"use strict";function e(e,t,n){var a=this;a.login=function(){a.doLogin()},a.doLogin=function(){e.login(a.form).error(function(e){a.usernameError="",a.passwordError="","Incorrect username."===e.message?(a.usernameError="Incorrect Email",a.passwordError=""):(a.passwordError="Incorrect Password for this Email",a.usernameError="")}).then(function(){a.usernameError="",a.passwordError="",t.path("/dashboard")})}}e.$inject=["authentication","$location","$state"],angular.module("app.pages.auth.login").controller("LoginController",e)}(),function(){"use strict";function e(e,t,n){e.state("app.pages_auth_lock",{url:"/pages/auth/lock",views:{"main@":{templateUrl:"app/core/layouts/content-only.html",controller:"MainController as vm"},"content@app.pages_auth_lock":{templateUrl:"app/main/pages/auth/lock/lock.html",controller:"LockController as vm"}},bodyClass:"lock"}),t.addPart("app/main/pages/auth/lock"),n.saveItem("pages.auth.lock",{title:"Lock Screen",state:"app.pages_auth_lock",weight:7})}e.$inject=["$stateProvider","$translatePartialLoaderProvider","msNavigationServiceProvider"],angular.module("app.pages.auth.lock",[]).config(e)}(),function(){"use strict";function e(){var e=this;e.form={username:"Jane Doe"}}angular.module("app.pages.auth.lock").controller("LockController",e)}(),function(){"use strict";function e(e,t,n){e.state("app.pages_auth_forgot-password",{url:"/auth/forgot-password",views:{"main@":{templateUrl:"app/core/layouts/content-only.html",controller:"MainController as vm"},"content@app.pages_auth_forgot-password":{templateUrl:"app/main/auth/forgot-password/forgot-password.html",controller:"ForgotPasswordController as vm"}},bodyClass:"forgot-password"}),t.addPart("app/main/auth/forgot-password")}e.$inject=["$stateProvider","$translatePartialLoaderProvider","msNavigationServiceProvider"],angular.module("app.pages.auth.forgot-password",[]).config(e)}(),function(){"use strict";function e(e,t,n,a){function i(e,n){t.show(t.simple().textContent(e).position("top right").hideDelay(n))}var o=this;o.sendMail=function(){o.form.email&&e.forgotPassword(o.form.email).success(function(e){i("Email with password reset has been sent to you",2e3),o.form.email="",a(function(){n.go("app.pages_auth_login")},1500)}).error(function(e){i("Email not found",2e3)})}}e.$inject=["apilaData","$mdToast","$state","$timeout"],angular.module("app.pages.auth.forgot-password").controller("ForgotPasswordController",e)}(),function(){"use strict";angular.module("app.core",["ngAnimate","ngAria","ngCookies","ngMessages","ngResource","ngSanitize","ngMaterial","angular-chartist","chart.js","datatables","gridshore.c3js.chart","nvd3","pascalprecht.translate","timer","ui.router","uiGmapgoogle-maps","textAngular","ui.sortable","ng-sortable","xeditable","moment-picker","ngFileUpload","duScroll","mdPickers","google.places","stripe","credit-cards","ngIdle","angular-tour","rzModule","btford.socket-io","input-ssn"])}(),function(){"use strict";function e(e,t){function n(){a()&&(i.flipped=!i.flipped,t.toggleClass("flipped",i.flipped))}function a(){return angular.isDefined(e.flippable)&&e.flippable===!0}var i=this;i.flipped=!1,i.flip=n}function t(){return{restrict:"E",scope:{flippable:"=?"},controller:"MsWidgetController",transclude:!0,compile:function(e){return e.addClass("ms-widget"),function(e,t,n,a,i){i(function(e){t.empty(),t.append(e)})}}}}function n(){return{restrict:"E",require:"^msWidget",transclude:!0,compile:function(e){return e.addClass("ms-widget-front"),function(e,t,n,a,i){i(function(e){t.empty(),t.append(e)}),e.flipWidget=a.flip}}}}function a(){return{restrict:"E",require:"^msWidget",transclude:!0,compile:function(e){return e.addClass("ms-widget-back"),function(e,t,n,a,i){i(function(e){t.empty(),t.append(e)}),e.flipWidget=a.flip}}}}e.$inject=["$scope","$element"],angular.module("app.core").controller("MsWidgetController",e).directive("msWidget",t).directive("msWidgetFront",n).directive("msWidgetBack",a)}(),function(){"use strict";function e(){function e(e){n.scrollEl=e}function t(){return n.scrollEl}var n=this;n.scrollEl=void 0,n.setScrollEl=e,n.getScrollEl=t}function t(){return{scope:{msTimeline:"=?",loadMore:"&?msTimelineLoadMore"},controller:"MsTimelineController",compile:function(e){return e.addClass("ms-timeline"),function(e,t,n,a){function i(){d.scrollTop()+d.height()+c>l.position().top&&(l.addClass("show"),s(),e.loadMore().then(function(){l.removeClass("show"),o()},function(){l.remove()}))}function o(){d.on("scroll",i)}function s(){d.off("scroll",i)}var l=angular.element('<div class="ms-timeline-loader md-accent-bg md-whiteframe-4dp"><span class="spinner animate-rotate"></span></div>');t.append(l);var r={scrollEl:"#content"};r=angular.extend(r,e.msTimeline,{});var d=angular.element(r.scrollEl);a.setScrollEl(d);var c=144;o(),e.$on("$destroy",function(){s()})}}}}function n(e,t){return{scope:!0,require:"^msTimeline",compile:function(n){return n.addClass("ms-timeline-item").addClass("hidden"),function(n,a,i,o){function s(){a.find("ms-card")?n.$on("msCard::cardTemplateLoaded",function(t,n){var a=angular.element(n[0]);l(a).then(function(){e(function(){c=!0})})}):l(a).then(function(){e(function(){c=!0})}),u.on("scroll",r),r()}function l(e){var n=t.defer(),a=e.find("img");return a.length>0?a.on("load",function(){n.resolve("Image is loaded")}):n.resolve("No images"),n.promise}function r(){u.scrollTop()+u.height()>a.position().top+d&&(e(function(){m=!0}),u.off("scroll",r))}var d=72,c=!1,m=!1,u=o.getScrollEl();s();var p=n.$watch(function(){return c&&m},function(e,t){angular.equals(e,t)||e&&(a.removeClass("hidden").addClass("animate"),p())},!0)}}}}n.$inject=["$timeout","$q"],angular.module("app.core").controller("MsTimelineController",e).directive("msTimeline",t).directive("msTimelineItem",n)}(),function(){"use strict";function e(e){function t(e){k.orientation=e||"horizontal"}function n(e){k.mainForm=e}function a(e,t,n){var a={element:e,scope:t,form:n,stepNumber:t.step||k.steps.length+1,stepTitle:t.stepTitle,stepTitleTranslate:t.stepTitleTranslate};return k.steps.push(a),k.steps.sort(function(e,t){return e.stepNumber-t.stepNumber}),a}function i(){k.setCurrentStep(k.currentStepNumber)}function o(){e(function(){for(var e=0;e<k.steps.length;e++)k.steps[e].form.$setPristine(),k.steps[e].form.$setUntouched();k.mainForm.$setPristine(),k.mainForm.$setUntouched(),c()})}function s(e){if(x(e))if(k.currentStepNumber=e,"horizontal"===k.orientation){for(var t=0;t<k.steps.length;t++)k.steps[t].element.hide();k.steps[k.currentStepNumber-1].element.show()}else if("vertical"===k.orientation){for(var n=0;n<k.steps.length;n++)k.steps[n].element.find(".ms-stepper-step-content").hide();k.steps[k.currentStepNumber-1].element.find(".ms-stepper-step-content").show()}}function l(e){f(e)||k.setCurrentStep(e)}function r(){for(var e=k.currentStepNumber-1,t=e;t>=1;t--)if(!f(t)){e=t;break}k.setCurrentStep(e)}function d(){for(var e=k.currentStepNumber+1,t=e;t<=k.steps.length;t++)if(!f(t)){e=t;break}k.setCurrentStep(e)}function c(){k.setCurrentStep(1)}function m(){k.setCurrentStep(k.steps.length)}function u(){return 1===k.currentStepNumber}function p(){return k.currentStepNumber===k.steps.length}function g(e){return x(e)?k.currentStepNumber===e:null}function v(e){if(!x(e))return null;for(var t=!1,n=1;e>n;n++)if(!y(n)){t=!0;break}return t}function h(e){return x(e)?k.steps[e-1].scope.optionalStep:null}function f(e){return x(e)?!!k.steps[e-1].scope.hideStep:null}function b(e){return!f(e.stepNumber)}function y(e){return x(e)?h(e)?!0:k.steps[e-1].form.$valid:null}function x(e){return!(angular.isUndefined(e)||1>e||e>k.steps.length)}function w(){return k.mainForm.$valid}var k=this;k.mainForm=void 0,k.orientation="horizontal",k.steps=[],k.currentStep=void 0,k.currentStepNumber=1,k.setOrientation=t,k.registerMainForm=n,k.registerStep=a,k.setupSteps=i,k.resetForm=o,k.setCurrentStep=s,k.gotoStep=l,k.gotoPreviousStep=r,k.gotoNextStep=d,k.gotoFirstStep=c,k.gotoLastStep=m,k.isFirstStep=u,k.isLastStep=p,k.isStepCurrent=g,k.isStepDisabled=v,k.isStepOptional=h,k.isStepHidden=f,k.filterHiddenStep=b,k.isStepValid=y,k.isStepNumberValid=x,k.isFormValid=w}function t(){return{restrict:"A",scope:{},require:["form","msHorizontalStepper"],priority:1001,controller:"MsStepperController as MsStepper",bindToController:{model:"=ngModel"},transclude:!0,templateUrl:"app/core/directives/ms-stepper/templates/horizontal/horizontal.html",compile:function(e){return e.addClass("ms-stepper"),function(e,t,n,a){var i=a[0],o=a[1];o.setOrientation("horizontal"),o.registerMainForm(i),o.setupSteps()}}}}function n(){return{restrict:"E",require:["form","^msHorizontalStepper"],priority:1e3,scope:{step:"=?",stepTitle:"=?",stepTitleTranslate:"=?",optionalStep:"=?",hideStep:"=?"},compile:function(e){return e.addClass("ms-stepper-step"),function(e,t,n,a){var i=a[0],o=a[1];e.optionalStep=angular.isDefined(n.optionalStep),o.registerStep(t,e,i),t.hide()}}}}function a(e){return{restrict:"A",scope:{},require:["form","msVerticalStepper"],priority:1001,controller:"MsStepperController as MsStepper",bindToController:{model:"=ngModel"},transclude:!0,templateUrl:"app/core/directives/ms-stepper/templates/vertical/vertical.html",compile:function(t){return t.addClass("ms-stepper"),function(t,n,a,i){var o=i[0],s=i[1];e(function(){s.setOrientation("vertical"),s.registerMainForm(o),s.setupSteps()})}}}}function i(){return{restrict:"E",require:["form","^msVerticalStepper"],priority:1e3,scope:{step:"=?",stepTitle:"=?",stepTitleTranslate:"=?",optionalStep:"=?",hideStep:"=?"},transclude:!0,templateUrl:"app/core/directives/ms-stepper/templates/vertical/step/vertical-step.html",compile:function(e){return e.addClass("ms-stepper-step"),function(e,t,n,a){var i=a[0],o=a[1];e.optionalStep=angular.isDefined(n.optionalStep),e.stepInfo=o.registerStep(t,e,i),e.MsStepper=o,t.find(".ms-stepper-step-content").hide()}}}}e.$inject=["$timeout"],a.$inject=["$timeout"],angular.module("app.core").controller("MsStepperController",e).directive("msHorizontalStepper",t).directive("msHorizontalStepperStep",n).directive("msVerticalStepper",a).directive("msVerticalStepperStep",i)}(),function(){"use strict";function e(e){return{restrict:"E",link:function(t,n){var a=t.$on("msSplashScreen::remove",function(){e.leave(n).then(function(){a(),t=n=null})})}}}e.$inject=["$animate"],angular.module("app.core").directive("msSplashScreen",e)}(),function(){"use strict";function e(){return{restrict:"A",require:"^mdSidenav",link:function(e,t,n,a){e.$watch(function(){return a.isOpen()&&!a.isLockedOpen()},function(e){angular.isUndefined(e)||(t.parent().toggleClass("full-height",e),angular.element("html").toggleClass("sidenav-open",e))})}}}angular.module("app.core").directive("msSidenavHelper",e)}(),function(){"use strict";function e(e,t,n,a,i,o){function s(){y.loadShortcuts().then(function(e){y.shortcuts=e,y.shortcuts.length>0&&(y.results=e)}),e.$watch("MsShortcuts.query",function(e,t){angular.isUndefined(e)||angular.equals(e,t)||(y.resultsLoading=!0,y.populateResults().then(function(e){y.results=e},function(){y.results=[]})["finally"](function(){y.resultsLoading=!1}))})}function l(){for(var e=[],t=o.getFlatNavigation(),n=i.defer(),s=0;s<t.length;s++)t[s].uisref&&e.push(t[s]);if(y.query){e=e.filter(function(e){return angular.lowercase(e.title).search(angular.lowercase(y.query))>-1?!0:void 0});for(var l=0;l<e.length;l++){e[l].hasShortcut=!1;for(var r=0;r<y.shortcuts.length;r++)if(y.shortcuts[r]._id===e[l]._id){e[l].hasShortcut=!0;break}}}else y.shortcuts.length>0&&(e=y.shortcuts);return y.selectedResultIndex=0,a(function(){n.resolve(e)},250),n.promise}function r(){var e=i.defer(),n=angular.fromJson(t.get("FUSE.shortcuts"));return angular.isUndefined(n)&&(n=[{title:"Sample",icon:"icon-tile-four",state:"app.sample",weight:1,children:[],_id:"sample",_path:"apps.sample",uisref:"app.sample",hasShortcut:!0}],t.put("FUSE.shortcuts",angular.toJson(n))),e.resolve(n),e.promise}function d(){var e=i.defer();return t.put("FUSE.shortcuts",angular.toJson(y.shortcuts)),a(function(){e.resolve({success:!0})},250),e.promise}function c(e){e.hasShortcut=!0,y.shortcuts.push(e),y.saveShortcuts()}function m(e){e.hasShortcut=!1;for(var t=0;t<y.shortcuts.length;t++)y.shortcuts[t]._id===e._id&&(y.shortcuts.splice(t,1),y.query||(0===y.shortcuts.length?y.results=null:t>=y.shortcuts.length&&(y.selectedResultIndex=y.shortcuts.length-1)));y.saveShortcuts()}function u(e){e.hasShortcut?y.removeShortcut(e):y.addShortcut(e)}function p(e){e.preventDefault()}function g(e){var t=e.keyCode,n=[38,40];switch(n.indexOf(t)>-1&&e.preventDefault(),t){case 13:y.handleResultClick(y.results[y.selectedResultIndex]);break;case 38:y.selectedResultIndex-1>=0&&(y.selectedResultIndex--,y.ensureSelectedResultIsVisible());break;case 40:y.selectedResultIndex+1<y.results.length&&(y.selectedResultIndex++,y.ensureSelectedResultIsVisible())}}function v(e){y.ignoreMouseEvents||(y.selectedResultIndex=e)}function h(){y.ignoreMouseEvents=!0,a.cancel(y.mouseEventIgnoreTimeout),y.mouseEventIgnoreTimeout=a(function(){y.ignoreMouseEvents=!1},250)}function f(){var e=n.find("#ms-shortcut-add-menu").find(".results"),t=angular.element(e.find(".result")[y.selectedResultIndex]);if(e&&t){var a=t.position().top-8,i=t.position().top+t.outerHeight()+8;y.temporarilyIgnoreMouseEvents(),e.scrollTop()>a&&e.scrollTop(a),i>e.height()+e.scrollTop()&&e.scrollTop(i-e.height())}}function b(){y.mobileBarActive=!y.mobileBarActive}var y=this;y.query="",y.queryOptions={debounce:300},y.resultsLoading=!1,y.selectedResultIndex=0,y.ignoreMouseEvents=!1,y.mobileBarActive=!1,y.results=null,y.shortcuts=[],y.sortableOptions={ghostClass:"ghost",forceFallback:!0,fallbackClass:"dragging",onSort:function(){y.saveShortcuts()}},y.populateResults=l,y.loadShortcuts=r,y.saveShortcuts=d,y.addShortcut=c,y.removeShortcut=m,y.handleResultClick=u,y.absorbEvent=p,y.handleKeydown=g,y.handleMouseenter=v,y.temporarilyIgnoreMouseEvents=h,y.ensureSelectedResultIsVisible=f,y.toggleMobileBar=b,s()}function t(){return{restrict:"E",scope:{},require:"msShortcuts",controller:"MsShortcutsController as MsShortcuts",bindToController:{},templateUrl:"app/core/directives/ms-shortcuts/ms-shortcuts.html",compile:function(e){return e.addClass("ms-shortcuts"),function(e,t){}}}}e.$inject=["$scope","$cookies","$document","$timeout","$q","msNavigationService"],angular.module("app.core").controller("MsShortcutsController",e).directive("msShortcuts",t)}(),function(){"use strict";function e(e,t,n){function a(e){if(!u.collapsed){var t=angular.isArray(e),n=null===e;(t||n)&&(u.selectedResultIndex=0,u.results=e)}}function i(){u.collapsed=!1,e.expand(),u.onExpand&&angular.isFunction(u.onExpand)&&u.onExpand()}function o(){u.query="",u.populateResults(null),u.collapsed=!0,e.collapse(),u.onCollapse&&angular.isFunction(u.onCollapse)&&u.onCollapse()}function s(e){e.preventDefault()}function l(t){var n=t.keyCode;if(13===n){if(u.collapsed)return;var a=e.$parent.$eval(u.onSearch,{query:u.query}),i=angular.isArray(a),o=a&&!!a.then;i&&u.populateResults(a),o&&(u.resultsLoading=!0,a.then(function(e){u.populateResults(e)},function(){u.populateResults([])})["finally"](function(){u.resultsLoading=!1}))}}function r(e){u.ignoreMouseEvents||(u.selectedResultIndex=e)}function d(){u.ignoreMouseEvents=!0,n.cancel(u.mouseEventIgnoreTimeout),u.mouseEventIgnoreTimeout=n(function(){u.ignoreMouseEvents=!1},250)}function c(e){u.onResultClick&&u.onResultClick({item:e}),u.collapse()}function m(){var e=t.find(".ms-search-bar-results"),n=angular.element(e.find(".result")[u.selectedResultIndex]);if(e&&n){var a=n.position().top-8,i=n.position().top+n.outerHeight()+8;u.temporarilyIgnoreMouseEvents(),e.scrollTop()>a&&e.scrollTop(a),i>e.height()+e.scrollTop()&&e.scrollTop(i-e.height())}}var u=this;u.collapsed=!0,u.query="",u.queryOptions={debounce:u.debounce||0},u.resultsLoading=!1,u.results=null,u.selectedResultIndex=0,u.ignoreMouseEvents=!1,u.populateResults=a,u.expand=i,u.collapse=o,u.absorbEvent=s,u.handleKeydown=l,u.handleMouseenter=r,u.temporarilyIgnoreMouseEvents=d,u.handleResultClick=c,u.ensureSelectedResultIsVisible=m}function t(e){return{restrict:"E",scope:{},require:"msSearchBar",controller:"MsSearchBarController as MsSearchBar",bindToController:{debounce:"=?",onSearch:"@",onResultClick:"&?",onExpand:"&?",onCollapse:"&?"},templateUrl:"app/core/directives/ms-search-bar/ms-search-bar.html",compile:function(t){return t.addClass("ms-search-bar"),function(t,n){function a(){s=n.find("#ms-search-bar-input")}function i(){n.addClass("expanded"),l.addClass("ms-search-bar-expanded"),s.focus()}function o(){n.removeClass("expanded"),l.removeClass("ms-search-bar-expanded")}var s,l=e.find("body");t.collapse=o,t.expand=i,a()}}}}e.$inject=["$scope","$element","$timeout"],t.$inject=["$document"],angular.module("app.core").controller("MsSearchBarController",e).directive("msSearchBar",t)}(),function(){"use strict";function e(){function e(e){t=angular.extend({},t,e)}var t={wheelSpeed:1,wheelPropagation:!1,swipePropagation:!0,minScrollbarLength:null,maxScrollbarLength:null,useBothWheelAxes:!1,useKeyboard:!0,suppressScrollX:!1,suppressScrollY:!1,scrollXMarginOffset:0,scrollYMarginOffset:0,stopPropagationOnClick:!0};this.config=e,this.$get=function(){function e(){return t}var n={getConfig:e};return n}}function t(e,t,n,a){return{restrict:"AE",compile:function(i){return a.getConfig("disableCustomScrollbars")||a.getConfig("disableCustomScrollbarsOnMobile")&&n.isMobile()?void 0:(i.addClass("ms-scroll"),function(n,a,i){function o(){PerfectScrollbar.update(a[0])}var s={};i.msScroll&&(s=n.$eval(i.msScroll)),s=angular.extend({},t.getConfig(),s),e(function(){PerfectScrollbar.initialize(a[0],s)},0),a.on("mouseenter",o),n.$watch(function(){return a.prop("scrollHeight")},function(e,t){angular.isUndefined(e)||angular.equals(e,t)||o()}),n.$watch(function(){return a.prop("scrollWidth")},function(e,t){angular.isUndefined(e)||angular.equals(e,t)||o()}),n.$on("$destroy",function(){a.off("mouseenter"),PerfectScrollbar.destroy(a[0])})})}}}t.$inject=["$timeout","msScrollConfig","msUtils","fuseConfig"],angular.module("app.core").provider("msScrollConfig",e).directive("msScroll",t)}(),function(){"use strict";function e(){return{restrict:"A",link:function(e,t){var n=angular.element('<div class="ms-responsive-table-wrapper"></div>');t.after(n),n.append(t)}}}angular.module("app.core").directive("msResponsiveTable",e)}(),function(){"use strict";function e(){return{restrict:"A",scope:{msRandomClass:"="},link:function(e,t){var n=e.msRandomClass[Math.floor(Math.random()*e.msRandomClass.length)];t.addClass(n)}}}angular.module("app.core").directive("msRandomClass",e)}(),function(){"use strict";function e(){function e(e,t){if(!angular.isString(e))return void s.error("path must be a string (eg. `dashboard.project`)");for(var n=e.split("."),i=n[n.length-1],l=a(n),r=!1,d=0;d<l.length;d++)if(l[d]._id===i){r=l[d];break}r?(angular.extend(r,t),r.uisref=o(r)):(t.children=[],(angular.isUndefined(t.weight)||!angular.isNumber(t.weight))&&(t.weight=1),t._id=i,t._path=e,t.uisref=o(t),l.push(t))}function t(e){if(!angular.isString(e))return void s.error("path must be a string (eg. `dashboard.project`)");for(var t=l,n=e.split("."),a=0;a<n.length;a++)for(var i=n[a],o=0;o<t.length;o++)if(t[o]._id===i){if(t[o]._path===e)return t.splice(o,1),!0;t=t[o].children;break}return!1}function n(e){e||(e=l,e.sort(i));for(var t=0;t<e.length;t++){var a=e[t].children;a.length>1&&a.sort(i),a.length>0&&n(a)}}function a(e){var t=l;if(1===e.length)return t;e.pop();for(var n=0;n<e.length;n++){for(var a=e[n],i=!0,o=0;o<t.length;o++)if(t[o]._id===a){t=t[o].children,i=!1;break}if(i){var s={_id:a,_path:e.join("."),title:a,weight:1,children:[]};t.push(s),t=s.children}}return t}function i(e,t){return parseInt(e.weight)-parseInt(t.weight)}function o(e){var t="";return angular.isDefined(e.state)&&(t=e.state,angular.isDefined(e.stateParams)&&angular.isObject(e.stateParams)&&(t=t+"("+angular.toJson(e.stateParams)+")")),t}var s=angular.injector(["ng"]).get("$log"),l=[],r=this;r.saveItem=e,r.deleteItem=t,r.sortByWeight=n,this.$get=function(){function a(){l=[],f&&(f.vm.navigation=l)}function i(e,t){h={node:e,scope:t}}function o(){return h}function s(e){if(e){for(var t=0;t<l.length;t++)if(l[t]._id===e)return[l[t]];return null}return l}function r(e){var t=s(e);return v(t)}function d(e){f=e}function c(e){b=e}function m(){return b}function u(e){y=e}function p(){return y}function g(){f.toggleFolded()}function v(e){for(var t=[],n=0;n<e.length;n++){var a=angular.copy(e[n]);a.children=[],t.push(a),e[n].children.length>0&&(t=t.concat(v(e[n].children)))}return t}var h=null,f=null,b=null,y=null,x={saveItem:e,deleteItem:t,sort:n,clearNavigation:a,setActiveItem:i,getActiveItem:o,getNavigation:s,getFlatNavigation:r,setNavigationScope:d,setFolded:c,getFolded:m,setFoldedOpen:u,getFoldedOpen:p,toggleFolded:g};return x}}function t(e,t){function n(){t.sort()}function a(){angular.element("body").toggleClass("ms-navigation-horizontal-mobile-menu-active")}var i=this;e.root?i.navigation=t.getNavigation(e.root):i.navigation=t.getNavigation(),i.toggleHorizontalMobileMenu=a,n()}function n(e,t,n,a){return{restrict:"E",scope:{folded:"=",root:"@"},controller:"MsNavigationController as vm",templateUrl:"app/core/directives/ms-navigation/templates/vertical.html",transclude:!0,compile:function(i){return i.addClass("ms-navigation"),function(i,o){function s(){null===a.getFolded()&&a.setFolded(i.folded),a.getFolded()&&(t(function(){e.$broadcast("msNavigation::collapse")}),p.addClass("ms-navigation-folded"),r())}function l(t){if(a.setFolded(t),t)e.$broadcast("msNavigation::collapse"),p.addClass("ms-navigation-folded"),r();else{var n=a.getActiveItem();n&&n.scope.$emit("msNavigation::stateMatched"),p.removeClass("ms-navigation-folded ms-navigation-folded-open"),c()}}function r(){o.parent().append(g),t(function(){g.on("mouseenter touchstart",m)})}function d(){p.find("#main").append(v),v.on("mouseenter touchstart",u)}function c(){v.remove()}function m(e){e&&e.preventDefault(),a.setFoldedOpen(!0);var t=a.getActiveItem();t&&t.scope.$emit("msNavigation::stateMatched"),p.addClass("ms-navigation-folded-open"),g.remove(),d()}function u(t){t&&t.preventDefault(),a.setFoldedOpen(!1),e.$broadcast("msNavigation::collapse"),p.removeClass("ms-navigation-folded-open"),v.remove(),r()}var p=angular.element("body"),g=angular.element('<div id="ms-navigation-fold-expander"></div>'),v=angular.element('<div id="ms-navigation-fold-collapser"></div>'),h=n("navigation");a.setNavigationScope(i),s(),i.$watch(function(){return h.isLockedOpen()},function(t,n){if(!angular.isUndefined(t)&&!angular.equals(t,n)){var i=a.getFolded();if(i)if(t)e.$broadcast("msNavigation::collapse");else{var o=a.getActiveItem();o&&o.scope.$emit("msNavigation::stateMatched")}}}),i.$watch("folded",function(e,t){angular.isUndefined(e)||angular.equals(e,t)||l(e)}),i.toggleFolded=function(){var e=a.getFolded();l(!e)},i.$on("$stateChangeStart",function(){h.close()}),i.$on("$destroy",function(){v.off("mouseenter touchstart"),g.off("mouseenter touchstart")})}}}}function a(e,t,n,a,i,o){function s(){if(u.hasChildren=u.node.children.length>0,u.group=!(!angular.isDefined(u.node.group)||u.node.group!==!0),!u.hasChildren||u.group?u.collapsable=!1:u.collapsable=!(!angular.isUndefined(u.node.collapsable)&&"boolean"==typeof u.node.collapsable&&u.node.collapsable!==!0),u.collapsable?u.collapsed=!(!angular.isUndefined(u.node.collapsed)&&"boolean"==typeof u.node.collapsed&&u.node.collapsed!==!0):u.collapsed=!1,u.node.state===i.current.name||i.includes(u.node.state)){if(angular.isDefined(u.node.stateParams)&&angular.isDefined(i.params)&&!angular.equals(u.node.stateParams,i.params))return;e.$emit("msNavigation::stateMatched"),o.setActiveItem(u.node,e)}e.$on("msNavigation::stateMatched",function(){u.collapsable&&u.collapsed&&e.$evalAsync(function(){u.collapsed=!1})}),e.$on("msNavigation::collapse",function(e,t){if(!u.collapsed&&u.collapsable)if(angular.isUndefined(t))u.collapse();else{var n=t.split("."),a=[],i=o.getActiveItem();if(i&&(a=i.node._path.split(".")),n.indexOf(u.node._id)>-1)return;if(a.indexOf(u.node._id)>-1)return;u.collapse()}}),e.$on("$stateChangeSuccess",function(){if(u.node.state===i.current.name){if(angular.isDefined(u.node.stateParams)&&angular.isDefined(i.params)&&!angular.equals(u.node.stateParams,i.params))return;o.setActiveItem(u.node,e),n.$broadcast("msNavigation::collapse",u.node._path)}if(i.includes(u.node.state)){if(angular.isDefined(u.node.stateParams)&&angular.isDefined(i.params)&&!angular.equals(u.node.stateParams,i.params))return;e.$emit("msNavigation::stateMatched")}})}function l(){u.collapsed?u.expand():u.collapse()}function r(){var t=u.element.children("ul"),n=t[0].offsetHeight;e.$evalAsync(function(){u.collapsed=!0,u.element.addClass("collapsing"),a.animate(t,{display:"block",height:n+"px"},{height:"0px"},u.animateHeightClass).then(function(){t.css({display:"",height:""}),u.element.removeClass("collapsing")}),e.$broadcast("msNavigation::collapse")})}function d(){var t=u.element.children("ul");t.css({position:"absolute",visibility:"hidden",display:"block",height:"auto"});var i=t[0].offsetHeight;t.css({position:"",visibility:"",display:"",height:""}),e.$evalAsync(function(){u.collapsed=!1,u.element.addClass("expanding"),a.animate(t,{display:"block",height:"0px"},{height:i+"px"},u.animateHeightClass).then(function(){t.css({height:""}),u.element.removeClass("expanding")}),n.$broadcast("msNavigation::collapse",u.node._path)})}function c(){return u.node["class"]}function m(){return angular.isDefined(u.node.hidden)&&angular.isFunction(u.node.hidden)?u.node.hidden():!1}var u=this;u.element=t,u.node=e.node,u.hasChildren=void 0,u.collapsed=void 0,u.collapsable=void 0,u.group=void 0,u.animateHeightClass="animate-height",u.toggleCollapsed=l,u.collapse=r,u.expand=d,u.getClass=c,u.isHidden=m,s()}function i(){return{restrict:"A",bindToController:{node:"=msNavigationNode"},controller:"MsNavigationNodeController as vm",compile:function(e){return e.addClass("ms-navigation-node"),function(e,t,n,a){t.addClass(a.getClass()),a.group&&t.addClass("group")}}}}function o(){return{restrict:"A",require:"^msNavigationNode",compile:function(e){return e.addClass("ms-navigation-item"),function(e,t,n,a){a.collapsable&&t.on("click",a.toggleCollapsed),e.$on("$destroy",function(){t.off("click")})}}}}function s(e){return{restrict:"E",scope:{root:"@"},controller:"MsNavigationController as vm",templateUrl:"app/core/directives/ms-navigation/templates/horizontal.html",transclude:!0,compile:function(t){return t.addClass("ms-navigation-horizontal"),function(t){e.setNavigationScope(t)}}}}function l(e,t,n,a,i){function o(){if(l.isActive=!1,l.hasChildren=l.node.children.length>0,l.group=!(!angular.isDefined(l.node.group)||l.node.group!==!0),l.node.state===a.current.name||a.includes(l.node.state)){if(angular.isDefined(l.node.stateParams)&&angular.isDefined(a.params)&&!angular.equals(l.node.stateParams,a.params))return;e.$emit("msNavigation::stateMatched"),i.setActiveItem(l.node,e)}e.$on("msNavigation::stateMatched",function(){l.hasChildren&&e.$evalAsync(function(){l.isActive=!0})}),e.$on("msNavigation::clearActive",function(){if(l.hasChildren){var t=[],n=i.getActiveItem();n&&(t=n.node._path.split(".")),t.indexOf(l.node._id)>-1?e.$evalAsync(function(){l.isActive=!0}):e.$evalAsync(function(){l.isActive=!1})}}),e.$on("$stateChangeSuccess",function(){if(l.node.state===a.current.name||a.includes(l.node.state)){if(angular.isDefined(l.node.stateParams)&&angular.isDefined(a.params)&&!angular.equals(l.node.stateParams,a.params))return;i.setActiveItem(l.node,e),n.$broadcast("msNavigation::clearActive")}})}function s(){return l.node["class"]}var l=this;l.element=t,l.node=e.node,l.hasChildren=void 0,l.group=void 0,l.getClass=s,o()}function r(){return{restrict:"A",bindToController:{node:"=msNavigationHorizontalNode"},controller:"MsNavigationHorizontalNodeController as vm",compile:function(e){return e.addClass("ms-navigation-horizontal-node"),function(e,t,n,a){t.addClass(a.getClass()),a.group&&t.addClass("group")}}}}function d(e){return{restrict:"A",require:"^msNavigationHorizontalNode",compile:function(t){return t.addClass("ms-navigation-horizontal-item"),function(t,n,a,i){function o(){i.hasChildren&&!e("gt-md")&&n.toggleClass("expanded")}n.on("click",o),t.$on("$destroy",function(){n.off("click")})}}}}t.$inject=["$scope","msNavigationService"],n.$inject=["$rootScope","$timeout","$mdSidenav","msNavigationService"],a.$inject=["$scope","$element","$rootScope","$animate","$state","msNavigationService"],s.$inject=["msNavigationService"],l.$inject=["$scope","$element","$rootScope","$state","msNavigationService"],d.$inject=["$mdMedia"],angular.module("app.core").provider("msNavigationService",e).controller("MsNavigationController",t).directive("msNavigation",n).controller("MsNavigationNodeController",a).directive("msNavigationNode",i).directive("msNavigationItem",o).directive("msNavigationHorizontal",s).controller("MsNavigationHorizontalNodeController",l).directive("msNavigationHorizontalNode",r).directive("msNavigationHorizontalItem",d)}(),function(){"use strict";function e(){function e(e,t){o={scope:e,element:t}}function t(){return o.scope.isNavFoldedOpen()}function n(){o.scope.toggleFold()}function a(){o.scope.openFolded()}function i(){o.scope.closeFolded()}var o={},s={setFoldable:e,isNavFoldedOpen:t,toggleFold:n,openFolded:a,closeFolded:i};return s}function t(e,t,n){return{restrict:"A",link:function(a,i,o){function s(){return p}function l(){u=!u,u?r():m()}function r(){g.addClass("ms-nav-folded"),t.$broadcast("msNav::forceCollapse"),i.scrollTop(0),f.append(v),v.on("mouseenter touchstart",function(e){d(e),p=!0})}function d(e){angular.isDefined(e)&&e.preventDefault(),g.addClass("ms-nav-folded-open"),t.$broadcast("msNav::expandMatchingToggles"),f.find(v).remove(),f.parent().append(h),h.on("mouseenter touchstart",function(e){c(e),p=!1})}function c(e){angular.isDefined(e)&&e.preventDefault(),t.$broadcast("msNav::forceCollapse"),i.scrollTop(0),g.removeClass("ms-nav-folded-open"),f.parent().find(h).remove(),f.append(v),v.on("mouseenter touchstart",function(e){d(e),p=!0})}function m(){g.removeClass("ms-nav-folded ms-nav-folded-open"),t.$broadcast("msNav::expandMatchingToggles"),i.off("mouseenter mouseleave")}var u="true"===o.msNavIsFolded,p=!1,g=angular.element(e[0].body),v=angular.element('<div id="ms-nav-fold-open-overlay"></div>'),h=angular.element('<div id="ms-nav-fold-close-overlay"></div>'),f=i.parent();n.setFoldable(a,i,u),u?r():m(),a.toggleFold=l,a.openFolded=d,a.closeFolded=c,a.isNavFoldedOpen=s,a.$on("$destroy",function(){v.off("mouseenter touchstart"),h.off("mouseenter touchstart"),i.off("mouseenter mouseleave")})}}}function n(){function e(){
  return r}function t(){r=!0}function n(){r=!1}function a(e,t){d.push({element:e,scope:t})}function i(){return c}function o(e,t){c.push({element:e,scope:t})}function s(){c=[]}var l=this,r=!1,d=[],c=[];l.isDisabled=e,l.enable=n,l.disable=t,l.setToggleItem=a,l.getLockedItems=i,l.setLockedItem=o,l.clearLockedItems=s}function a(e,t,n){return{restrict:"E",scope:{},controller:"MsNavController",compile:function(a){return a.addClass("ms-nav"),function(a){e.$broadcast("msNav::expandMatchingToggles");var i=e.$on("$stateChangeSuccess",function(){e.$broadcast("msNav::expandMatchingToggles"),t.when("navigation").then(function(e){e.close(),n.isNavFoldedOpen()&&n.closeFolded()})});a.$on("$destroy",function(){i()})}}}}function i(){return{restrict:"A",compile:function(e){return e.addClass("ms-nav-title"),function(){}}}}function o(){return{restrict:"AE",compile:function(e){return e.addClass("ms-nav-button"),function(){}}}}function s(e,t,n,a){return{restrict:"A",require:"^msNav",scope:!0,compile:function(i,o){return i.addClass("ms-nav-toggle"),angular.isUndefined(o.collapsed)&&(o.collapsed=!0),i.attr("collapsed",o.collapsed),function(i,o,s,l){function r(){l.isDisabled()||(l.disable(),d()?(l.clearLockedItems(),i.$emit("msNav::pushToLockedList"),e.$broadcast("msNav::collapse"),m().then(function(){l.enable()})):i.$broadcast("msNav::forceCollapse"))}function d(){return"true"===o.attr("collapsed")}function c(){return!d()}function m(){var e=t.defer();if(c())return e.reject({error:!0}),e.promise;o.attr("collapsed",!1);var a=angular.element(o.find("ms-nav-toggle-items")[0]);a.css({position:"absolute",visibility:"hidden",display:"block",height:"auto"});var s=a[0].offsetHeight;return a.css({position:"",visibility:"",display:"",height:""}),i.$evalAsync(function(){n.animate(a,{display:"block",height:"0px"},{height:s+"px"},p.expandAnimation).then(function(){a.addClass(p.expanded),a.css({height:""}),e.resolve({success:!0})})}),e.promise}function u(){var e=t.defer();if(d())return e.reject({error:!0}),e.promise;o.attr("collapsed",!0);var a=angular.element(o.find("ms-nav-toggle-items")[0]),s=a[0].offsetHeight;return i.$evalAsync(function(){n.animate(a,{height:s+"px"},{height:"0px"},p.collapseAnimation).then(function(){a.removeClass(p.expanded),a.css({display:"",height:""}),e.resolve({success:!0})})}),e.promise}var p={expanded:"expanded",expandAnimation:"expand-animation",collapseAnimation:"collapse-animation"},g=o.find("a"),v=[],h=/\(.*\)/g;angular.forEach(g,function(e){var t=angular.element(e).attr("ui-sref");angular.isUndefined(t)||(t=t.replace(h,""),v.push(t))}),l.setToggleItem(o,i),o.children(".ms-nav-button").on("click",r),i.$on("$destroy",function(){o.children(".ms-nav-button").off("click")}),i.$on("msNav::collapse",function(){var e=l.getLockedItems(),t=!1;angular.forEach(e,function(e){angular.equals(e.scope,i)&&(t=!0)}),t||u().then(function(){l.enable()})}),i.$on("msNav::forceCollapse",function(){u().then(function(){l.enable()})}),i.$on("msNav::expandMatchingToggles",function(){var e=a.current.name,t=!1;angular.forEach(v,function(n){e===n&&(t=!0)}),t?m():u()}),i.$on("msNav::pushToLockedList",function(){l.setLockedItem(o,i)})}}}}t.$inject=["$document","$rootScope","msNavFoldService"],a.$inject=["$rootScope","$mdComponentRegistry","msNavFoldService"],s.$inject=["$rootScope","$q","$animate","$state"],angular.module("app.core").factory("msNavFoldService",e).directive("msNavIsFolded",t).controller("MsNavController",n).directive("msNav",a).directive("msNavTitle",i).directive("msNavButton",o).directive("msNavToggle",s)}(),function(){"use strict";function e(e,t,n,a){function i(e,t){c.selectedPalette=e,c.selectedHues=t}function o(e,t){r(e,t),d(),n.hide()}function s(){c.selectedColor={palette:"",hue:"","class":""},i(!1,!1),d()}function l(){if(!c.modelCtrl.$viewValue||""===c.modelCtrl.$viewValue)return void s();var e,t;if("class"===c.msModelType){var n=c.modelCtrl.$viewValue.split("-");n.length>=5?(e=n[1]+"-"+n[2],t=n[3]):(e=n[1],t=n[2])}else"obj"===c.msModelType&&(e=c.modelCtrl.$viewValue.palette,t=c.modelCtrl.$viewValue.hue||500);r(e,t)}function r(t,n){c.selectedColor={palette:t,hue:n,"class":"md-"+t+"-"+n+"-bg",bgColorValue:a.rgba(c.palettes[t][n].value),fgColorValue:a.rgba(c.palettes[t][n].contrast)},"obj"!==c.msModelType||angular.equals(c.selectedColor,c.modelCtrl.$viewValue)||d(),i(t,c.palettes[t]),e.$selectedColor=c.selectedColor}function d(){"class"===c.msModelType?c.modelCtrl.$setViewValue(c.selectedColor["class"]):"obj"===c.msModelType&&c.modelCtrl.$setViewValue(c.selectedColor)}var c=this;c.palettes=t,c.selectedPalette=!1,c.selectedHues=!1,e.$selectedColor={},c.activateHueSelection=i,c.selectColor=o,c.removeColor=s,e.$watch("ngModel",l)}function t(){return{require:["msMaterialColorPicker","ngModel"],restrict:"E",scope:{ngModel:"=",msModelType:"@?"},controller:"msMaterialColorPickerController as vm",transclude:!0,templateUrl:"app/core/directives/ms-material-color-picker/ms-material-color-picker.html",link:function(e,t,n,a,i){var o=a[0];o.modelCtrl=a[1],o.msModelType=e.msModelType||"class",i(e,function(e){e=e.filter(function(e,t){return 1===t.nodeType?!0:!1}),e.length&&t.find("ms-color-picker-button").replaceWith(e)})}}}e.$inject=["$scope","$mdColorPalette","$mdMenu","fuseGenerator"],angular.module("app.core").controller("msMaterialColorPickerController",e).directive("msMaterialColorPicker",t)}(),function(){"use strict";function e(e,t,n,a){function i(){d.options=d.options?angular.extend(c,d.options):c,s()}function o(e,n){if("undefined"!=typeof imagesLoaded){var a=t.imagesLoaded(e);a.on("done",function(){n()})}else n()}function s(){e.$watch(function(){return d.container.width()},function(e,t){e!==t&&l()})}function l(){function t(){d.containerPos=d.container[0].getBoundingClientRect(),r(),e.$broadcast("msMasonry:relayoutStarted"),d.items=d.container.find("ms-masonry-item");for(var t=Array.apply(null,new Array(d.columnCount)).map(function(){return 0}),n=0;n<d.items.length;n++){var a,i,o,s,l=d.items[n];l=angular.element(l),l.scope()&&l.scope().$broadcast("msMasonryItem:startReLayout"),l.css({width:d.columnWidth}),d.options.respectItemOrder?(o=n%d.columnCount,s=t[o]):(s=Math.min.apply(Math,t),o=t.indexOf(s)),t[o]=s+l[0].getBoundingClientRect().height,a=Math.round(o*d.columnWidth),i=s,l.css({transform:"translate3d("+a+"px,"+i+"px,0px)"}),l.addClass("placed"),l.scope()&&l.scope().$broadcast("msMasonryItem:finishReLayout")}}m&&a.cancel(m),m=a(function(){t(),e.$broadcast("msMasonry:relayoutFinished")},d.options.reLayoutDebounce)}function r(){d.columnCount=d.options.columnCount,n("gt-md")?d.columnCount=d.options.columnCount:n("md")?d.columnCount=d.columnCount>d.options.responsive.md?d.options.responsive.md:d.columnCount:n("sm")?d.columnCount=d.columnCount>d.options.responsive.sm?d.options.responsive.sm:d.columnCount:d.columnCount=d.options.responsive.xs,d.columnWidth=d.containerPos.width/d.columnCount}var d=this,c={columnCount:5,respectItemOrder:!1,reLayoutDebounce:400,responsive:{md:3,sm:2,xs:1}},m=!0;d.options=null,d.container=[],d.containerPos="",d.columnWidth="",d.items=[],d.reLayout=l,d.initialize=i,d.waitImagesLoaded=o,e.$on("msMasonry:relayout",function(){l()})}function t(e){function t(t,n){return{pre:function(e,a,i,o){o.options=angular.fromJson(n.options||"{}"),o.container=t},post:function(t,n,a,i){e(function(){i.initialize()})}}}return{restrict:"AEC",controller:"msMasonryController",compile:t}}function n(){function e(e,t,n,a){a.waitImagesLoaded(t,function(){a.reLayout()}),e.$on("msMasonryItem:finishReLayout",function(){e.$watch(function(){return t.height()},function(e,t){e!==t&&a.reLayout()})}),t.on("$destroy",function(){a.reLayout()})}return{restrict:"AEC",require:"^msMasonry",priority:1,link:e}}e.$inject=["$scope","$window","$mdMedia","$timeout"],t.$inject=["$timeout"],angular.module("app.core").controller("msMasonryController",e).directive("msMasonry",t).directive("msMasonryItem",n)}(),function(){"use strict";function e(e){return{restrict:"E",scope:{},transclude:!0,templateUrl:"app/core/directives/ms-info-bar/ms-info-bar.html",link:function(t,n){function a(){i.removeClass(o),n.remove(),t.$destroy()}var i=e.find("body"),o="ms-info-bar-active";i.addClass(o),t.removeInfoBar=a}}}e.$inject=["$document"],angular.module("app.core").directive("msInfoBar",e)}(),function(){"use strict";function e(){function e(e){u.forms.push(e)}function t(){s()||u.selectedIndex--}function n(){l()||u.selectedIndex++}function a(){u.selectedIndex=0}function i(){u.selectedIndex=o()-1}function o(){return u.forms.length}function s(){return 0===u.selectedIndex}function l(){return u.selectedIndex===o()-1}function r(){return angular.isDefined(u.forms[u.selectedIndex])&&u.forms[u.selectedIndex].$invalid}function d(){return u.selectedIndex>0&&angular.isDefined(u.forms[u.selectedIndex-1])&&u.forms[u.selectedIndex-1].$invalid}function c(){for(var e=0;e<u.forms.length;e++)if(u.forms[e].$invalid)return!0;return!1}function m(){u.selectedIndex=0;for(var e=0;e<u.forms.length;e++)u.forms[e].$setPristine(),u.forms[e].$setUntouched()}var u=this;u.forms=[],u.selectedIndex=0,u.registerForm=e,u.previousStep=t,u.nextStep=n,u.firstStep=a,u.lastStep=i,u.totalSteps=o,u.isFirstStep=s,u.isLastStep=l,u.currentStepInvalid=r,u.previousStepInvalid=d,u.formsIncomplete=c,u.resetForm=m}function t(){return{restrict:"E",scope:!0,controller:"MsFormWizardController as msWizard",compile:function(e){return e.addClass("ms-form-wizard"),function(){}}}}function n(){return{restrict:"A",require:["form","^msFormWizard"],compile:function(e){return e.addClass("ms-form-wizard-form"),function(e,t,n,a){var i=a[0],o=a[1];o.registerForm(i)}}}}angular.module("app.core").controller("MsFormWizardController",e).directive("msFormWizard",t).directive("msFormWizardForm",n)}(),function(){"use strict";function e(){function e(e){n=angular.extend({},n,e)}var t=this,n={formatter:function(e){return e?""===e?e:new Date(e):""},parser:function(e){return e?moment(e).add(moment(e).utcOffset(),"m").toDate():""}};t.config=e,t.$get=function(){return n}}function t(e){return{require:"ngModel",priority:1,link:function(t,n,a,i){i.$formatters.push(e.formatter),i.$parsers.push(e.parser)}}}t.$inject=["msDatepickerFixConfig"],angular.module("app.core").provider("msDatepickerFixConfig",e).directive("msDatepickerFix",t)}(),function(){"use strict";function e(){return{restrict:"E",scope:{templatePath:"=template",card:"=ngModel",vm:"=viewModel"},template:'<div class="ms-card-content-wrapper" ng-include="templatePath" onload="cardTemplateLoaded()"></div>',compile:function(e){return e.addClass("ms-card"),function(e,t){function n(){e.$emit("msCard::cardTemplateLoaded",t)}e.cardTemplateLoaded=n}}}}angular.module("app.core").directive("msCard",e)}(),function(){function e(e,t){function n(t){var n=new jsPDF("p","pt");n.setFont("courier"),n.setFontType("normal"),n.setFontSize(12),n.setLineWidth(1);var a=20;a=e.drawHeader(n,t,a),o=10,a+=30,n.setFontSize(14),n.text("To-Dos for "+t.username,o,a),n.setFontSize(12),a+=30;var s=a;t.tasks.forEach(function(e,t){s=i(n,e,a,s)}),n.save("todo.pdf")}function a(e,t){var n=0,a=e.splitTextToSize(t.text,560);return a.length>=2&&(n+=11.6*a.length),n+=50}function i(e,n,i,s){i=s+30,i+a(e,n)>e.internal.pageSize.height&&(i=20,e.addPage());var l=e.splitTextToSize(n.text,560);e.text(l,o,i),l.length>=2&&(i+=11.6*l.length);var r=t.occurrenceMap[n.occurrence.toString()]+" | ",d="";switch(n.occurrence){case 0:r+=t.convertToPm(n.hourStart)+" - "+t.convertToPm(n.hourEnd);break;case 1:r+=t.showActiveDays(n),n.startTime&&n.endTime&&(d=moment(n.startTime).format("hh A")+" - "+moment(n.endTime).format("hh A"));break;case 2:r+=t.showActiveWeeks(n),n.selectedWeekDay&&n.weekStartTime&&n.weekEndTime&&(d=n.selectedWeekDay+" | "+moment(n.weekStartTime).format("hh A")+" - "+moment(n.weekEndTime).format("hh A"));break;case 3:if(r+=t.showActiveMonths(n),n.daysInMonth)d=n.daysInMonth+"th of the Month";else if(n.selectedWeekDay){var c=n.selectedWeekDay.toString().split("");d=t.weekMap[c[0]]+" "+t.dayMap[c[1]]}}i+=12,e.text(r,o,i),d&&(i+=12,e.text(d,o,i)),i+=12,e.text("Completed "+n.completed.length+" times",o,i),i+=12;var m="";return n.notCompleted.length>0&&(m=" most recently on (",m+=_.takeRight(n.notCompleted,3).map(function(e){return moment(e.updateOn).format("MMMM d YYYY")}).toString(),m+=")"),e.text("Not Completed "+n.notCompleted.length+" times"+m,o,i),i}var o=20;return{exportPdf:n}}angular.module("app.core").service("exportToDo",e),e.$inject=["header","ToDoService"]}(),function(){function e(e){function t(e,t,n,a){var i=a.startY+t*a.fullSpaceOffset+n*a.halfSpaceOffset;return i>e.internal.pageSize.height&&(e.addPage(),a.fullSpaceOffset=0,a.halfSpaceOffset=0),i}function n(n){var a=new jsPDF("p","pt"),i=new Date(n.birthDate),o=new Date(n.admissionDate),s=Date.now(),l=e("date"),r=(l(i,"MMMM d, yyyy"),l(o,"MMMM d, yyyy"),l(s,"MMM d, yyyy"));a.setFont("courier"),a.setFontType("normal"),a.setFontSize(12),a.setLineWidth(1);var d=594/82,c=215,m=120,u=24,p=16,g={startX:15,startY:24,fullSpaceOffset:0,halfSpaceOffset:0},v=t.bind(this,a,u,p),h=v(g),f=g.startX;a.text("Exported on",f,h),g.halfSpaceOffset++,h=v(g),a.text(r.toString(),f,h),a.rect(110,10,100,100),a.text("place holder",120,50),a.text("for logo",120,62),f=c,g.halfSpaceOffset=0,h=v(g),n.community.name?a.text(n.community.name,f,h):a.text("Testing Community",f,h),g.fullSpaceOffset++,f=c,h=v(g),a.text("Phone: ",f,h),f=c+m,n.community.phone?a.text(n.community.phone,f,h):a.text("Enter a Phone Number",f,h),g.halfSpaceOffset++,f=c,h=v(g),a.text("Fax: ",f,h),f=c+m,n.community.fax?a.text(n.community.fax,f,h):a.text("Enter a Fax Number",f,h),g.halfSpaceOffset++,f=c,h=v(g),a.text("Address: ",f,h),f=c+m,n.community.address?a.text(n.community.address,f,h):a.text("Enter an Address",f,h),g.halfSpaceOffset++,f=c,h=v(g),a.text("Website: ",f,h),f=c+m,n.community.website?a.text(n.community.website,f,h):a.text("Enter a Website",f,h),a.addPage(),a.setFontSize(12),a.text(" 0         1         2         3         4         5         6         7         8         9         10",0,180),a.text("012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890",0,200),a.text("550",550,220),a.text("560",560,240),a.text("570",570,260),a.text("580",580,280),a.text("590",590,300),a.text("591",591,320),a.text("592",592,340),a.text("593",593,360),a.text("594",594,380),a.text(" 0         1         2         3          4        5         6         7         8",0,380),a.text("012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789",0,400),a.text("600",600,420),a.text("601",601,440),a.text("602",602,460),a.text("603",603,480),a.text("604",604,500),a.text("605",605,520),a.text("606",606,540),a.text("607",607,560),a.text("608",608,580),a.text("609",609,600),a.text("610",610,620),a.text("800",10,800),a.text("810",10,810),a.text("820",10,820),a.text("830",10,830),a.text("840",10,840),a.text("841",30,841),a.text("842",50,842),a.text("843",70,843),a.text("844",90,844),a.text("845",110,845),a.text("846",130,846),a.text("847",150,847),a.text("848",170,848),a.text("849",190,849),a.addPage();var b;a.rect(10,10,574,108),b="Temperature",a.text(b,582-b.length*d,20),a.rect(10,128,574,108),b="Blood Pressure",a.text(b,582-b.length*d,138),a.rect(10,246,574,108),b="Oxygen",a.text(b,582-b.length*d,256),a.rect(10,364,574,108),b="Pulse",a.text(b,582-b.length*d,374),a.rect(10,482,574,108),b="Pain",a.text(b,582-b.length*d,492),a.rect(10,600,574,108),b="Respiration",a.text(b,582-b.length*d,610),a.rect(10,718,574,108),b="Weight",a.text(b,582-b.length*d,728),a.save(n.firstName+" "+n.lastName+" Face Sheet.pdf")}return{exportPdf:n}}angular.module("app.core").service("exportFaceSheet",e),e.$inject=["$filter"]}(),function(){function e(e){function t(e,t){for(var n=0;n<e.length;++n)if(-1!==e[n].rooms.indexOf(t.toString()))return e[n].name;return""}function n(e){var t={};return e.forEach(function(e){("Dead"!==e.building||"Moved Out"!==e.building)&&(t[e.room]||(t[e.room]=[]),e.aliasName?t[e.room].push(e.aliasName+" "+e.lastName):t[e.room].push(e.firstName+" "+e.lastName))}),t}function a(e,t,n){var a=_.sortBy(e,function(e){return+e.replace(/\D/g,"")}),i=[],o=!1;if(parseInt(t)>parseInt(n)){var s=n;n=t,t=s}return a.forEach(function(e){(e===t||parseInt(e)>parseInt(t))&&(o=!0),parseInt(e)>parseInt(n)&&(o=!1),o&&i.push(e),e===n&&(o=!1)}),i}function i(e,t){var n="",a=t,i=a.match(/\b(\w)/g);return i&&(n=i.join("").toUpperCase()),n}function o(o,s,l){var r=new jsPDF("p","pt"),d=e("date"),c=Date.now(),m=d(c,"MMM d, yyyy");r.setFont("courier"),r.setFontType("normal"),r.setFontSize(12),r.setLineWidth(1),r.setDrawColor(33,33,33),s=_.sortBy(s,["room"]);var u=n(o),p=215,g=24,v=14,h=150,f=42,b=0,y=_.flatten(_.map(l.roomStyle,"rooms"));r.text("Exported on",10,g),r.text(m+" ",10,g+16),r.rect(110,10,100,100),r.text("place holder",120,50),r.text("for logo",120,62),l.phone&&(r.text("Phone",p,g),r.text(l.phone,275,g)),l.fax&&(r.text("Fax",p,2*g),r.text(l.fax,275,2*g)),l.address&&(r.text("Address",p,3*g),r.text(l.address,275,3*g)),l.website&&(r.text("Website",p,4*g),r.text(l.website,275,4*g));var x=f*b,w=780-(h+x),k=36,C=Math.floor(w/(k+6)),S=f*b,A=0,N=0,D=0,T=!1,R=1,I=0;r.setLineWidth(1),r.setDrawColor(0,0,0),l.floors&&angular.forEach(l.floors,function(e){var n=a(y,e.startRoom,e.endRoom)||[];if(S=f*b,g=24,h=150,N>=3){h=50;var o=I;if(console.log(I),I>C){I-=C,S=I*(k+6),R=2;var s=Math.floor(I/20);R=s>0?R+s:R}I=o,A=N-3,console.log(e),r.setPage(R)}else R=1,r.setPage(R);n.length>I&&3>N&&(I=n.length),r.text("Floor "+(D+1),v+190*A,h+S);for(var d=0,c=0;c<n.length;++c){var m=v+190*A,p=h+S+10+40*d;p+k>780&&(T?(R>1&&r.addPage(),R++,r.setPage(R)):r.addPage(),d=0,S=0,g=0,h=0,p=h+S+10+90*d,T=!0);var x=t(l.roomStyle,parseInt(n[c])),w=i(l,x),M=u[n[c]];if(r.text(w,m+150,p+23),r.text(n[c],m+150,p+11),M&&0!==M.length)for(var P=0;P<M.length;++P)r.text(M[P].slice(0,20),m+2,p-1+12*(P+1));r.setDrawColor(189,189,189),r.rect(m,p,180,k),d++}A++,N++,D++}),r.save("ResidentCensus.pdf")}return{exportPdf:o}}angular.module("app.core").service("exportResidentCensus",e),e.$inject=["$filter"]}(),function(){function e(e,t,n,a){function i(e,t,n,a,i){var o=0,l=!1;t.forEach(function(t){e.text(n,a+o,t),o+=12,a+o>780&&(e.addPage(),l=!0,i.fullSpaceOffset=0,i.halfSpaceOffset=0,i.startY=24,a=24,o=0)}),i.startY=a+o+5;var r=s(e,24,16,i);if(r!==i.startY){var d=r-i.startY;i.startY-=d}}function o(e){return e||0===e}function s(e,t,n,a,i){var o=a.startY+t*a.fullSpaceOffset+n*a.halfSpaceOffset;return o>e.internal.pageSize.height&&(e.addPage(),a.fullSpaceOffset=0,a.halfSpaceOffset=0,a.startY=24,o=a.startY+t*a.fullSpaceOffset+n*a.halfSpaceOffset),o}function l(t){function l(e,t,n,a){a=a||e,e?("half"===n?R.halfSpaceOffset++:R.fullSpaceOffset++,E=C,O=P(R),m.text(t,E,O),E=C+A,m.text(a,E,O)):e=""}function d(e,t,n){e?(E=R.startX,x=m.splitTextToSize(e,N),O=P(R,x.length),n?m.text(t,E,O):m.text(t,R.startX+A-t.length*k,O),E=R.startX+A,i(m,x,E,O,R)):e=""}function c(e,t){e===!0&&(E=S,O=P(R)+M,m.text(t,E,O),R.columnTwoOffset++,M=R.columnTwoOffset*T)}var m=new jsPDF("p","pt","letter"),u=t.firstName+" "+t.lastName+" Care Plan.pdf",p=new Date(t.birthDate),g=new Date(t.admissionDate),v=Date.now(),h=e("date"),f=h(p,"MMMM d, yyyy"),b=h(g,"MMMM d, yyyy"),y=h(v,"MMM d, yyyy");void 0===t.insideApartment&&(t.insideApartment={}),void 0===t.outApartment&&(t.outApartment={}),m.setFont("courier"),m.setFontType("normal"),m.setFontSize(12),m.setLineWidth(1);var x,w,k=594/82,C=215,S=300,A=120,N=460,D=24,T=16,R={startX:15,startY:24,fullSpaceOffset:0,halfSpaceOffset:0,columnOneOffset:0,columnTwoOffset:0},I=R.columnOneOffset*T,M=R.columnTwoOffset*T,P=s.bind(this,m,D,T),O=P(R),E=R.startX;if(m.text("Exported on",E,O),R.halfSpaceOffset++,O=P(R),m.text(y.toString(),E,O),m.rect(110,10,100,100),m.text("place holder",120,50),m.text("for logo",120,62),m.rect(10,120,200,280),m.text("place holder",60,250),m.text("for resident picture",60,262),E=C,R.halfSpaceOffset=0,O=P(R),t.community.name?m.text(t.community.name,E,O):m.text("Test Community",E,O),R.fullSpaceOffset++,E=C,O=P(R),m.text("Phone: ",E,O),E=C+A,t.community.phone?m.text(t.community.phone,E,O):m.text("Enter a Phone Number",E,O),R.halfSpaceOffset++,E=C,O=P(R),m.text("Fax: ",E,O),E=C+A,t.community.fax?m.text(t.community.fax,E,O):m.text("Enter a Fax Number",E,O),R.halfSpaceOffset++,E=C,O=P(R),m.text("Address: ",E,O),E=C+A,t.community.address?m.text(t.community.address,E,O):m.text("Enter an Address",E,O),R.halfSpaceOffset++,E=C,O=P(R),m.text("Website: ",E,O),E=C+A,t.community.website?m.text(t.community.website,E,O):m.text("Enter a Website",E,O),E=C,m.setFontType("bold"),R.fullSpaceOffset++,R.halfSpaceOffset++,O=P(R),m.text(t.firstName,E,O),E+=t.firstName.length*k,t.aliasName?(m.text(' "'+t.aliasName+'" ',E,O),E+=(t.aliasName.length+3)*k):t.aliasName="",t.middleName?(m.text(" "+t.middleName,E,O),E+=(t.middleName.length+1)*k):t.middleName="",m.text(" "+t.lastName,E,O),m.setFontType("normal"),l(t.maidenName,"Maiden Name: ","half"),t.movedFrom&&l(t.movedFrom.name,"From: ","half"),l(t.birthDate,"Date of Birth: ","half",f),l(t.admissionDate,"Admission Date: ","half",b),l(t.sex,"Sex: ","half"),l(t.maritalStatus,"Marital Status: ","half"),t.veteran===!0&&(R.halfSpaceOffset++,E=C,O=P(R),m.text("Veteran",E,O)),l(t.primaryDoctor,"Primary Doctor: ","full"),l(t.pharmacy,"Pharmacy: ","half"),l(t.buildingStatus,"Building Status: ","half"),l(t.admittedFrom,"Admitted From: ","half"),t.longTermCareInsurance===!0&&t.receiveingLongTermCareInsurance===!0?(E=C,R.halfSpaceOffset++,O=P(R),m.text("Receiving Long Term Care Insurance",E,O)):t.longTermCareInsurance===!0&&t.receiveingLongTermCareInsurance===!1&&(E=C,R.halfSpaceOffset++,O=P(R),m.text("Has but not receiving Long Term Care Insurance",E,O)),m.setFontType("bold"),m.setTextColor(139,0,0),R.halfSpaceOffset++,E=C,O=P(R),t.fullCode===!0?m.text("Full Code",E,O):m.text("No Code",E,O),m.setTextColor(0,0,0),m.setFontType("normal"),R.halfSpaceOffset=0,R.fullSpaceOffset=0,R.startY=420,d(t.administrativeNotes,"Notes:",!0),O=P(R),w="Life",m.setFillColor(33,150,243),r(594,10,297+w.length/2*k+28,m,O),r(297-w.length/2*k-6,10,20,m,O),m.setFontType("bold"),m.roundedRect(297-w.length/2*k-20,O,w.length*k+40,18,7,7,"F"),R.fullSpaceOffset++,R.halfSpaceOffset+=.5,m.text(w,297-w.length/2*k,O+12),m.setFontType("normal"),d(t.religion,"Religion: "),d(t.education,"Education: "),d(t.occupation,"Occupation: "),d(t.contribution,"Contribution: "),0!==t.shopping.length?(E=R.startX,O=P(R)+I,m.text("Shopping Person:",R.startX+A-"Shopping Person: ".length*k,O),E=R.startX+A,m.text(t.shopping,E,O),R.columnOneOffset+=t.shopping.length,I=R.columnOneOffset*T):t.shopping="",t.outsideAgency?(E=R.startX,O=P(R)+I,m.text("Outside Agency:",R.startX+A-"Outside Agency: ".length*k,O),E=R.startX+A,m.text(t.outsideAgency,E,O),R.columnOneOffset++,I=R.columnOneOffset*T):t.outsideAgency="",t.easilyUnderstood===!0&&t.englishFirstLanguage===!0?(E=R.startX,O=P(R)+I,m.text("Is easily understood",E,O),R.columnOneOffset++):t.easilyUnderstood===!0&&t.englishFirstLanguage===!1?(E=R.startX,O=P(R)+I,m.text("Is easily understood but English",E,O),m.text("is not their first language.",E,O+12),R.columnOneOffset+=1.75):t.easilyUnderstood===!1&&t.englishFirstLanguage===!0?(E=R.startX,O=P(R)+I,m.text("Is not easily understood",E,O),R.columnOneOffset++):t.easilyUnderstood===!1&&t.englishFirstLanguage===!1&&(E=R.startX,O=P(R)+I,m.text("Is not easily understood and English",E,O),m.text("is not their first language.",E,O+12),R.columnOneOffset+=1.75),c(t.supportGroup,"Has a Support Group"),c(t.heatingPad,"Has a Heating Pad"),c(t.microwave,"Has a Microwave"),c(t.extensionCord,"Uses Extension Cords"),(t.extensionCord===!0||t.microwave===!0||t.heatingPad===!0)&&(E=S,O=P(R)+M,m.text("These devices have been assessed",E,O),m.text("for safety.",E,O+12),R.columnTwoOffset+=1.75,M=R.columnTwoOffset*T),R.columnOneOffset>=R.columnTwoOffset?R.halfSpaceOffset+=R.columnOneOffset:R.columnOneOffset<R.columnTwoOffset&&(R.halfSpaceOffset+=R.columnTwoOffset),t.otherLanguage?(E=R.startX,O=P(R),m.text("Other Languages:",R.startX+A-"Other Languages: ".length*k,O),E=R.startX+A,m.text(t.otherLanguage,E,O),R.halfSpaceOffset++):t.otherLanguage="",d(t.lifeNotes,"Notes: "),O=P(R),w="Allergies",m.setFillColor(33,150,243),r(594,10,297+w.length/2*k+28,m,O),r(297-w.length/2*k-6,10,20,m,O),m.setFontType("bold"),m.roundedRect(297-w.length/2*k-20,O,w.length*k+40,18,7,7,"F"),R.fullSpaceOffset++,R.halfSpaceOffset+=.5,m.text(w,297-w.length/2*k,O+12),m.setFontType("normal"),0!==t.foodAllergies.length){E=R.startX,O=P(R),m.text("Food Allergies:",R.startX+A-"Food Allergies: ".length*k,O),E=R.startX+A;var F=m.splitTextToSize(t.foodAllergies.join(", "),N);m.text(F,E,O),R.halfSpaceOffset+=F.length}else t.foodAllergies="";if(0!==t.medicationAllergies.length){E=R.startX,O=P(R),m.text("Med Allergies:",R.startX+A-"Med Allergies: ".length*k,O),E=R.startX+A;var $=m.splitTextToSize(t.medicationAllergies.join(", "),N);m.text($,E,O),R.halfSpaceOffset+=$.length}else t.medicationAllergies="";if(0!==t.otherAllergies.length){E=R.startX,O=P(R),m.text("Other Allergies:",R.startX+A-"Other Allergies: ".length*k,O),E=R.startX+A;var L=m.splitTextToSize(t.otherAllergies.join(", "),N);m.text(L,E,O),R.halfSpaceOffset+=L.length}else t.otherAllergies="";if(d(t.allergyNotes,"Notes: "),O=P(R),w="Assistance",m.setFillColor(33,150,243),r(594,10,297+w.length/2*k+28,m,O),r(297-w.length/2*k-6,10,20,m,O),m.roundedRect(297-w.length/2*k-20,O,w.length*k+40,18,7,7,"F"),R.fullSpaceOffset++,R.halfSpaceOffset+=.5,m.setFontType("bold"),m.text(w,297-w.length/2*k,O+12),m.setFontType("normal"),t.hairAssist===!0&&(E=R.startX,O=P(R),m.text("Needs Assistance with Hair",E,O),R.halfSpaceOffset++),t.barber===!0&&(E=R.startX,O=P(R),m.text("Has a Barber",E,O),R.halfSpaceOffset++),t.shaveAssist?(E=R.startX,O=P(R),m.text("Shave Assist:",R.startX+A-"Shave Assist: ".length*k,O),E=R.startX+A,m.text(t.shaveAssist,E,O),R.halfSpaceOffset++):t.shaveAssist="",d(t.hairNotes,"Hair Notes: "),O=P(R),w="Mobility",m.setFillColor(33,150,243),r(594,10,297+w.length/2*k+28,m,O),r(297-w.length/2*k-6,10,20,m,O),m.roundedRect(297-w.length/2*k-20,O,w.length*k+40,18,7,7,"F"),R.fullSpaceOffset++,R.halfSpaceOffset+=.5,m.setFontType("bold"),m.text(w,297-w.length/2*k,O+12),m.setFontType("normal"),E=R.startX,O=P(R),m.setFontType("bold"),m.text("Inside their Apartment",E+120,O),R.halfSpaceOffset++,m.setFontType("normal"),t.insideApartment.useOfAssistiveDevice?(E=R.startX,O=P(R),m.text("Assistive Device:",R.startX+A-"Assistive Device: ".length*k,O),E=R.startX+A,m.text(t.insideApartment.useOfAssistiveDevice,E,O),R.halfSpaceOffset++):t.insideApartment.useOfAssistiveDevice="",t.insideApartment&&d(t.insideApartment.assitanceWithDevice,"Device Notes: "),t.insideApartment&&d(t.insideApartment.specialAmbulationNeeds,"Special Needs: "),t.insideApartment&&d(t.insideApartment.mobilitySafetyAssessment,"Assessment: "),E=R.startX,O=P(R),m.setFontType("bold"),m.text("Outside their Apartment",E+120,O),R.halfSpaceOffset++,m.setFontType("normal"),t.outsideApartment&&t.outsideApartment.useOfAssistiveDevice?(E=R.startX,O=P(R),m.text("Assistive Device:",R.startX+A-"Assistive Device: ".length*k,O),E=R.startX+A,m.text(t.outsideApartment.useOfAssistiveDevice,E,O),R.halfSpaceOffset++):t.outsideApartment&&(t.outsideApartment.useOfAssistiveDevice=""),t.outsideApartment&&t.outsideApartment.assitanceWithDevice?(E=R.startX,O=P(R),m.text("Assistance with Device:",R.startX+A-"Assistance with Device: ".length*k,O),E=R.startX+A,m.text(t.outsideApartment.assitanceWithDevice,E,O),R.halfSpaceOffset++):t.outsideApartment&&(t.outsideApartment.assitanceWithDevice=""),t.outsideApartment&&d(t.insideApartment.assitanceWithDevice,"Device Notes: "),t.outsideApartment&&d(t.insideApartment.specialAmbulationNeeds,"Special Needs: "),t.transfers?(E=R.startX,O=P(R),m.text("Transfers:",R.startX+A-"Transfers: ".length*k,O),E=R.startX+A,m.text(t.transfers,E,O),R.halfSpaceOffset++):t.transfers="",t.transfersDescribe&&d(t.transfersDescribe,"Transfer Notes: "),t.fallRisk===!0&&(E=R.startX,O=P(R),m.text("Fall Risk",E,O),R.halfSpaceOffset++),t.fallRiskDescribe?(E=R.startX,O=P(R),m.text("Fall Risk Reason:",R.startX+A-"Fall Risk Reason: ".length*k,O),E=R.startX+A,m.text(t.fallRiskDescribe,E,O),R.halfSpaceOffset++):t.fallRiskDescribe="",t.bedReposition===!0&&(E=R.startX,O=P(R),m.text("Bed Reposition",E,O),R.halfSpaceOffset++),t.bedRepositionExplain&&d(t.bedRepositionExplain,"Bed Reposition Notes: "),t.bedRepositionOutsideAgency&&d(t.bedRepositionOutsideAgency,"Outside Agency: "),t.twoPersonLift===!0&&(E=R.startX,O=P(R),m.text("Two Person Lift",E,O),R.halfSpaceOffset++),t.mobilityNotes&&d(t.mobilityNotes,"Notes: "),O=P(R),w="Sleep",m.setFillColor(33,150,243),r(594,10,297+w.length/2*k+28,m,O),r(297-w.length/2*k-6,10,20,m,O),m.roundedRect(297-w.length/2*k-20,O,w.length*k+40,18,7,7,"F"),R.fullSpaceOffset++,R.halfSpaceOffset+=.5,m.setFontType("bold"),m.text(w,297-w.length/2*k,O+12),m.setFontType("normal"),t.usualArisingTime&&d(t.usualArisingTime,"Arising Time: "),t.usualBedtime&&d(t.usualBedtime,"Bedtime: "),t.nap===!0&&(E=R.startX,O=P(R),m.text("Takes Naps",E,O),R.halfSpaceOffset++),t.napDescribe&&d(t.napDescribe,"Nap Notes: "),t.assistanceToBed?(E=R.startX,O=P(R),m.text("Assistance to Bed:",R.startX+A-"Assistance to Bed: ".length*k,O),E=R.startX+A,m.text(t.assistanceToBed,E,O),R.halfSpaceOffset++):t.assistanceToBed="",t.sleepsThroughNight===!0&&(E=R.startX,O=P(R),m.text("Sleeps Through Night",E,O),R.halfSpaceOffset++),t.canCallForAssistance===!0&&(E=R.startX,O=P(R),m.text("Can Call for Assistance",E,O),R.halfSpaceOffset++),t.sleepNotes&&d(t.sleepNotes,"Notes: "),O=P(R),w="Nutrition",m.setFillColor(33,150,243),r(594,10,297+w.length/2*k+28,m,O),r(297-w.length/2*k-6,10,20,m,O),m.roundedRect(297-w.length/2*k-20,O,w.length*k+40,18,7,7,"F"),R.fullSpaceOffset++,R.halfSpaceOffset+=.5,m.setFontType("bold"),m.text(w,297-w.length/2*k,O+12),m.setFontType("normal"),o(t.overallNutrition)){E=R.startX,O=P(R),m.text("Overall Nutrition:",R.startX+A-"Overall Nutrition: ".length*k,O),E=R.startX+A;var B=a.replaceNumberValue("overallNutrition",t.overallNutrition);m.text(B,E,O),R.halfSpaceOffset++}else t.overallNutrition="";if(t.poorNutritionDescribe&&0==t.overallNutrition||1==t.overallNutrition?(E=R.startX,O=P(R),m.text("Nutrition Fix:",R.startX+A-"Nutrition Fix: ".length*k,O),E=R.startX+A,m.text(t.poorNutritionDescribe,E,O),R.halfSpaceOffset++):t.poorNutritionDescribe="",t.diabetic===!0&&t.diabetic?(E=R.startX,O=P(R),m.text("Diabetic Type:",R.startX+A-"Diabetic Type: ".length*k,O),E=R.startX+A,m.text(t.diabeticType,E,O),R.halfSpaceOffset++):t.diabetic="",t.diabetic===!0&&t.bloodSugarMonitoring&&(E=R.startX,O=P(R),m.text("Monitoring Blood Sugar",E,O),R.halfSpaceOffset++),t.bedtimeSnack===!0&&(E=R.startX,O=P(R),m.text("Has Bedtime Snack",E,O),R.halfSpaceOffset++),t.adaptiveEquipment?(E=R.startX,O=P(R),m.text("Eating Device:",R.startX+A-"Eating Device: ".length*k,O),E=R.startX+A,m.text(t.adaptiveEquipment,E,O),R.halfSpaceOffset++):t.adaptiveEquipment="",t.specialDiet?(E=R.startX,O=P(R),m.text("Special Diet:",R.startX+A-"Special Diet: ".length*k,O),E=R.startX+A,m.text(t.specialDiet,E,O),R.halfSpaceOffset++):t.specialDiet="",0!==t.foodLikes.length){E=R.startX,O=P(R),m.text("Food Likes:",R.startX+A-"Food Likes: ".length*k,O),E=R.startX+A;var _=m.splitTextToSize(t.foodLikes.join(", "),N);m.text(_,E,O),R.halfSpaceOffset+=_.length}else t.foodLikes="";if(0!==t.foodDislikes.length){E=R.startX,O=P(R),m.text("Food Dislikes:",R.startX+A-"Food Dislikes: ".length*k,O),E=R.startX+A;var U=m.splitTextToSize(t.foodDislikes.join(", "),N);m.text(U,E,O),R.halfSpaceOffset+=U.length}else t.foodDislikes="";if(t.fingerFoods===!0&&(E=R.startX,O=P(R),m.text("Finger Foods",E,O),R.halfSpaceOffset++),t.feedAssist?(E=R.startX,O=P(R),m.text("Feeding Assist:",R.startX+A-"Feeding Assist: ".length*k,O),E=R.startX+A,m.text(t.feedAssist,E,O),R.halfSpaceOffset++):t.feedAssist="",t.foodInRoom===!0&&(E=R.startX,O=P(R),
  m.text("Food in Room",E,O),R.halfSpaceOffset++),t.drinkInRoom===!0&&(E=R.startX,O=P(R),m.text("Drink in Room",E,O),R.halfSpaceOffset++),t.nutritionNotes&&d(t.nutritionNotes,"Notes: "),O=P(R),w="Physical Condition",m.setFillColor(33,150,243),r(594,10,297+w.length/2*k+28,m,O),r(297-w.length/2*k-6,10,20,m,O),m.roundedRect(297-w.length/2*k-20,O,w.length*k+40,18,7,7,"F"),R.fullSpaceOffset++,R.halfSpaceOffset+=.5,m.setFontType("bold"),m.text(w,297-w.length/2*k,O+12),m.setFontType("normal"),E=R.startX,O=P(R),m.setFontType("bold"),m.text("Skin",E+120,O),R.halfSpaceOffset++,m.setFontType("normal"),t.skinCondition?(E=R.startX,O=P(R),m.text("Skin Condition:",R.startX+A-"Skin Condition: ".length*k,O),E=R.startX+A,m.text(t.skinCondition,E,O),R.halfSpaceOffset++):t.skinCondition="",t.hasWound===!0&&0!==t.woundAmount?(E=R.startX,O=P(R),m.text("Wound Amount:",R.startX+A-"Wound Amount: ".length*k,O),E=R.startX+A,m.text(t.woundAmount.toString(),E,O),R.halfSpaceOffset++):t.woundAmount="",t.hasWound===!0&&0!==t.woundAmount&&t.hasWoundDescribe&&d(t.hasWoundDescribe,"Wound Notes: "),t.skinBreakdown===!0&&(E=R.startX,O=P(R),m.text("At risk for skin breakdown",E,O),R.halfSpaceOffset++),t.hearingNotes&&d(t.hearingNotes,"Hearing Notes: "),E=R.startX,O=P(R),m.setFontType("bold"),m.text("Infection",E+120,O),R.halfSpaceOffset++,m.setFontType("normal"),t.urinaryTractInfectionRisk===!0&&(E=R.startX,O=P(R),m.text("UTI Risk",E,O),R.halfSpaceOffset++),t.upperRespiratoryInfectionRisk===!0&&(E=R.startX,O=P(R),m.text("URI Risk",E,O),R.halfSpaceOffset++),t.methicillinResistantStaphylococcusAureusRisk===!0&&(E=R.startX,O=P(R),m.text("MRSA Risk",E,O),R.halfSpaceOffset++),t.vancomycinResistantEnterococcusRisk===!0&&(E=R.startX,O=P(R),m.text("VRE Risk",E,O),R.halfSpaceOffset++),t.shinglesRisk===!0&&(E=R.startX,O=P(R),m.text("Shingles Risk",E,O),R.halfSpaceOffset++),t.pneumoniaRisk===!0&&(E=R.startX,O=P(R),m.text("Pneumonia Risk",E,O),R.halfSpaceOffset++),t.pneumoniaRisk===!1&&t.shinglesRisk===!1&&t.vancomycinResistantEnterococcusRisk===!1&&t.methicillinResistantStaphylococcusAureusRisk===!1&&t.upperRespiratoryInfectionRisk===!1&&t.urinaryTractInfectionRisk===!1&&(E=R.startX,O=P(R),m.text("Not at risk for an Infection",E,O),R.halfSpaceOffset++),E=R.startX,O=P(R),m.setFontType("bold"),m.text("Hearing",E+120,O),R.halfSpaceOffset++,m.setFontType("normal"),t.rightEar?(E=R.startX,O=P(R),m.text("Right Ear:",R.startX+A-"Right Ear: ".length*k,O),E=R.startX+A,m.text(t.rightEar,E,O),R.halfSpaceOffset++):t.rightEar="",t.leftEar?(E=R.startX,O=P(R),m.text("Left Ear:",R.startX+A-"Left Ear: ".length*k,O),E=R.startX+A,m.text(t.leftEar,E,O),R.halfSpaceOffset++):t.leftEar="",t.hearingAbility?(E=R.startX,O=P(R),m.text("Hearing Ability:",R.startX+A-"Hearing Ability: ".length*k,O),E=R.startX+A,m.text(t.hearingAbility.toString(),E,O),R.halfSpaceOffset++):t.hearingAbility="",t.wearsHearingAid===!0&&(E=R.startX,O=P(R),m.text("Wears Hearing Aid(s)",E,O),R.halfSpaceOffset++),t.wearsHearingAid===!0&&t.helpWithHearingAidDescribe&&d(t.helpWithHearingAidDescribe,"Hearing Aid Notes: "),t.hearingNotes&&d(t.hearingNotes,"Hearing Notes: "),E=R.startX,O=P(R),m.setFontType("bold"),m.text("Vision",E+120,O),R.halfSpaceOffset++,m.setFontType("normal"),t.visionDevice?(E=R.startX,O=P(R),m.text("Vision Device:",R.startX+A-"Vision Device: ".length*k,O),E=R.startX+A,m.text(t.visionDevice.toString(),E,O),R.halfSpaceOffset++):t.visionDevice="",t.rightEye?(E=R.startX,O=P(R),m.text("Right Eye:",R.startX+A-"Right Eye: ".length*k,O),E=R.startX+A,m.text(t.rightEye.toString(),E,O),R.halfSpaceOffset++):t.rightEye="",t.leftEye?(E=R.startX,O=P(R),m.text("Left Eye:",R.startX+A-"Left Eye: ".length*k,O),E=R.startX+A,m.text(t.leftEye.toString(),E,O),R.halfSpaceOffset++):t.leftEye="",t.visionAbility?(E=R.startX,O=P(R),m.text("Vision (1-10):",R.startX+A-"Vision (1-10): ".length*k,O),E=R.startX+A,m.text(t.visionAbility.toString(),E,O),R.halfSpaceOffset++):t.visionAbility="",t.visionAssist?(E=R.startX,O=P(R),m.text("Vision Assist:",R.startX+A-"Vision Assist: ".length*k,O),E=R.startX+A,m.text(t.visionAssist.toString(),E,O),R.halfSpaceOffset++):t.visionAssist="",t.visionNotes&&d(t.visionNotes,"Vision Notes: "),E=R.startX,O=P(R),m.setFontType("bold"),m.text("Teeth",E+120,O),R.halfSpaceOffset++,m.setFontType("normal"),t.dentistName&&d(t.dentistName,"Dentist: "),o(t.teethCare)){E=R.startX,O=P(R),m.text("Teeth Care:",R.startX+A-"Teeth Care: ".length*k,O),E=R.startX+A;var H=a.replaceNumberValue("teethCare",t.teethCare);m.text(H,E,O),R.halfSpaceOffset++}else t.teethCare="";if(t.teethCareDescribe&&d(t.teethCareDescribe,"Teeth Care Notes: "),t.upperTeeth?(E=R.startX,O=P(R),m.text("Upper Teeth:",R.startX+A-"Upper Teeth: ".length*k,O),E=R.startX+A,m.text(t.upperTeeth.toString(),E,O),R.halfSpaceOffset++):t.upperTeeth="",t.lowerTeeth?(E=R.startX,O=P(R),m.text("Lower Teeth:",R.startX+A-"Lower Teeth: ".length*k,O),E=R.startX+A,m.text(t.lowerTeeth.toString(),E,O),R.halfSpaceOffset++):t.lowerTeeth="",t.teethAssist?(E=R.startX,O=P(R),m.text("Teeth Assist:",R.startX+A-"Teeth Assist: ".length*k,O),E=R.startX+A,m.text(t.teethAssist.toString(),E,O),R.halfSpaceOffset++):t.teethAssist="",t.teethNotes&&d(t.teethNotes,"Teeth Notes: "),E=R.startX,O=P(R),m.setFontType("bold"),m.text("Oxygen",E+120,O),R.halfSpaceOffset++,m.setFontType("normal"),t.oxygenType&&1==t.oxygen?(E=R.startX,O=P(R),m.text("Oxygen Type:",R.startX+A-"Oxygen Type: ".length*k,O),E=R.startX+A,m.text(t.oxygenType.toString(),E,O),R.halfSpaceOffset++):t.oxygenType="",t.oxygenFlow&&1==t.oxygen?(E=R.startX,O=P(R),m.text("Oxygen Flow:",R.startX+A-"Oxygen Flow: ".length*k,O),E=R.startX+A,m.text(t.oxygenFlow.toString(),E,O),R.halfSpaceOffset++):t.oxygenFlow="",E=R.startX,O=P(R),m.setFontType("bold"),m.text("Medication",E+120,O),R.halfSpaceOffset++,m.setFontType("normal"),t.medsAtBedside===!0&&(E=R.startX,O=P(R),m.text("Meds at Bedside",E,O),R.halfSpaceOffset++),t.medications?(E=R.startX,O=P(R),m.text("Medication:",R.startX+A-"Medication: ".length*k,O),E=R.startX+A,m.text(t.medications.toString(),E,O),R.halfSpaceOffset++):t.medications="",t.swallowAssist===!0&&(E=R.startX,O=P(R),m.text("Assist with Swallowing",E,O),R.halfSpaceOffset++),t.chemotherapy===!0&&(E=R.startX,O=P(R),m.text("Chemotherapy",E,O),R.halfSpaceOffset++),t.dialysis===!0&&(E=R.startX,O=P(R),m.text("Dialysis",E,O),R.halfSpaceOffset++),t.marijuana===!0&&(E=R.startX,O=P(R),m.text("Marijuana",E,O),R.halfSpaceOffset++),O=P(R),w="Psychosocial",m.setFillColor(33,150,243),r(594,10,297+w.length/2*k+28,m,O),r(297-w.length/2*k-6,10,20,m,O),m.roundedRect(297-w.length/2*k-20,O,w.length*k+40,18,7,7,"F"),R.fullSpaceOffset++,R.halfSpaceOffset+=.5,m.setFontType("bold"),m.text(w,297-w.length/2*k,O+12),m.setFontType("normal"),E=R.startX,O=P(R),m.setFontType("bold"),m.text("Mental State",E+120,O),R.halfSpaceOffset++,m.setFontType("normal"),0!==t.psychosocialStatus.length){E=R.startX,O=P(R),m.text("Status:",R.startX+A-"Status: ".length*k,O),E=R.startX+A;var W=m.splitTextToSize(t.psychosocialStatus.join(", "),N);m.text(W,E,O),R.halfSpaceOffset+=W.length}else t.psychosocialStatus="";if(t.psychosocialStatusDescribe&&d(t.psychosocialStatusDescribe,"Status Notes: "),o(t.comprehension)){E=R.startX,O=P(R),m.text("Comprehension:",R.startX+A-"Comprehension: ".length*k,O),E=R.startX+A;var j=a.replaceNumberValue("comprehension",t.comprehension);m.text(j,E,O),R.halfSpaceOffset++}else t.comprehension="";if(o(t.dementia)){E=R.startX,O=P(R),m.text("Dementia:",R.startX+A-"Dementia: ".length*k,O);var q=a.replaceNumberValue("dementia",t.dementia);E=R.startX+A,m.text(q,E,O),R.halfSpaceOffset++}else t.dementia="";if(t.sunDowner===!0&&(E=R.startX,O=P(R),m.text("Sundowner",E,O),R.halfSpaceOffset++),t.sunDowner===!0&&t.sunDownerExplain&&d(t.sunDownerExplain,"Sundowner Notes: "),t.wanderer===!0&&(E=R.startX,O=P(R),m.text("Leaves without Intention",E,O),R.halfSpaceOffset++),t.highMaintenance?(E=R.startX,O=P(R),m.text("High Maintenance:",R.startX+A-"High Maintenance: ".length*k,O),E=R.startX+A,m.text(t.highMaintenance.toString(),E,O),R.halfSpaceOffset++):t.highMaintenance="",t.highMaintenanceDescribe&&d(t.highMaintenanceDescribe,"High Maint. Notes: "),t.anxiety===!0&&(E=R.startX,O=P(R),m.text("Has Anxiety",E,O),R.halfSpaceOffset++),t.antipsychoticMeds===!0&&(E=R.startX,O=P(R),m.text("Antipsychotic Meds",E,O),R.halfSpaceOffset++),E=R.startX,O=P(R),m.setFontType("bold"),m.text("Habits",E+120,O),R.halfSpaceOffset++,m.setFontType("normal"),t.smokes===!0&&(E=R.startX,O=P(R),m.text("Smokes",E,O),R.halfSpaceOffset++),t.smokes===!0&&t.smokesDescribe&&d(t.smokesDescribe,"Smoking Notes: "),t.alcohol===!0&&(E=R.startX,O=P(R),m.text("Drinks Alcohol",E,O),R.halfSpaceOffset++),t.alcohol===!0&&t.alcoholInRoom===!0&&(E=R.startX,O=P(R),m.text("Has Alcohol in Room",E,O),R.halfSpaceOffset++),t.alcohol===!0&&t.alcoholDescribes&&d(t.alcoholDescribes,"Alcohol Notes: "),t.sexualActive===!0&&(E=R.startX,O=P(R),m.text("Sexual Active",E,O),R.halfSpaceOffset++),t.sexualActive===!0&&t.sexualActiveDescribe&&d(t.sexualActiveDescribe,"Sexual Active Notes: "),t.otherHabits&&d(t.sexualActiveDescribe,"Other Habits: "),E=R.startX,O=P(R),m.setFontType("bold"),m.text("Participation",E+120,O),R.halfSpaceOffset++,m.setFontType("normal"),o(t.generalActivityParticipation)){E=R.startX,O=P(R),m.text("Participation:",R.startX+A-"Participation: ".length*k,O),E=R.startX+A;var Y=a.replaceNumberValue("generalActivityParticipation",t.generalActivityParticipation);m.text(Y,E,O),R.halfSpaceOffset++}else t.generalActivityParticipation="";if(o(t.diningRoomParticipation)){E=R.startX,O=P(R),m.text("Dining Part.:",R.startX+A-"Dining Part.: ".length*k,O),E=R.startX+A;var z=a.replaceNumberValue("diningRoomParticipation",t.diningRoomParticipation);m.text(z,E,O),R.halfSpaceOffset++}else t.diningRoomParticipation="";if(o(t.busRideParticipation)){E=R.startX,O=P(R),m.text("Bus Ride Part.:",R.startX+A-"Bus Ride Part.: ".length*k,O),E=R.startX+A;var X=a.replaceNumberValue("busRideParticipation",t.busRideParticipation);m.text(X,E,O),R.halfSpaceOffset++}else t.busRideParticipation="";if(o(t.fitnessClassParticipation)){E=R.startX,O=P(R),m.text("Fitness Part.:",R.startX+A-"Fitness Part.: ".length*k,O),E=R.startX+A;var G=a.replaceNumberValue("fitnessClassParticipation",t.fitnessClassParticipation);m.text(G,E,O),R.halfSpaceOffset++}else t.fitnessClassParticipation="";if(o(t.bingoParticipation)){E=R.startX,O=P(R),m.text("Bingo Part.:",R.startX+A-"Bingo Part.: ".length*k,O),E=R.startX+A;var V=a.replaceNumberValue("bingoParticipation",t.bingoParticipation);m.text(V,E,O),R.halfSpaceOffset++}else t.bingoParticipation="";if(o(t.communityParticipation)){E=R.startX,O=P(R),m.text("Community Part.:",R.startX+A-"Community Part.: ".length*k,O),E=R.startX+A;var K=a.replaceNumberValue("communityParticipation",t.communityParticipation);m.text(K,E,O),R.halfSpaceOffset++}else t.communityParticipation="";if(t.timeInRoom?(E=R.startX,O=P(R),m.text("Time in Room:",R.startX+A-"Time in Room: ".length*k,O),E=R.startX+A,m.text(t.timeInRoom,E,O),R.halfSpaceOffset++):t.timeInRoom="",t.volunteer===!0&&(E=R.startX,O=P(R),m.text("Volunteers",E,O),R.halfSpaceOffset++),t.preferedActivites&&d(t.preferedActivites,"Prefered Activites: "),E=R.startX,O=P(R),m.setFontType("bold"),m.text("Car",E+120,O),R.halfSpaceOffset++,m.setFontType("normal"),t.drivesCar===!0&&t.licensePlateNumber?(E=R.startX,O=P(R),m.text("Plate Number:",R.startX+A-"Plate Number: ".length*k,O),E=R.startX+A,m.text(t.licensePlateNumber.toString(),E,O),R.halfSpaceOffset++):t.licensePlateNumber="",t.drivesCar===!0&&t.spareKeyLocation?(E=R.startX,O=P(R),m.text("Spare Keys:",R.startX+A-"Spare Keys: ".length*k,O),E=R.startX+A,m.text(t.spareKeyLocation,E,O),R.halfSpaceOffset++):t.spareKeyLocation="",t.drivesCar===!0&&t.drivingNeeds&&d(t.drivingNeeds,"Driving Needs: "),E=R.startX,O=P(R),m.setFontType("bold"),m.text("Miscellaneous",E+120,O),R.halfSpaceOffset++,m.setFontType("normal"),t.useFitnessEquipmentIndependently===!0&&(E=R.startX,O=P(R),m.text("Ind. Fitness User",E,O),R.halfSpaceOffset++),t.familyInvolvement?(E=R.startX,O=P(R),m.text("Family Involvement:",R.startX+A-"Family Involvement: ".length*k,O),E=R.startX+A,m.text(t.familyInvolvement,E,O),R.halfSpaceOffset++):t.familyInvolvement="",t.psychosocialNotes&&d(t.psychosocialNotes,"Psychosocial Notes: "),O=P(R),w="Pain",m.setFillColor(33,150,243),r(594,10,297+w.length/2*k+28,m,O),r(297-w.length/2*k-6,10,20,m,O),m.roundedRect(297-w.length/2*k-20,O,w.length*k+40,18,7,7,"F"),R.fullSpaceOffset++,R.halfSpaceOffset+=.5,m.setFontType("bold"),m.text(w,297-w.length/2*k,O+12),m.setFontType("normal"),t.hasPain===!0&&(E=R.startX,O=P(R),m.text("Has Pain",E,O),R.halfSpaceOffset++),t.painSeverity?(E=R.startX,O=P(R),m.text("Pain Severity:",R.startX+A-"Pain Severity: ".length*k,O),E=R.startX+A,m.text(t.painSeverity.toString(),E,O),R.halfSpaceOffset++):t.painSeverity="",t.painLocation&&d(t.painLocation,"Pain Location: "),t.painDescription&&d(t.painDescription,"Pain Description: "),t.maxPainTime&&d(t.maxPainTime,"Max Pain Time: "),t.painIncreasedBy&&d(t.painIncreasedBy,"Pain Increased By: "),t.painManagedBy?(E=R.startX,O=P(R),m.text("Pain Managed By:",R.startX+A-"Pain Managed By: ".length*k,O),E=R.startX+A,m.text(t.painManagedBy.toString(),E,O),R.halfSpaceOffset++):t.painManagedBy="",t.painLength?(E=R.startX,O=P(R),m.text("Pain Length:",R.startX+A-"Pain Length: ".length*k,O),E=R.startX+A,m.text(t.painLength.toString(),E,O),R.halfSpaceOffset++):t.painLength="",t.painNotes&&d(t.painNotes,"Pain Notes: "),O=P(R),w="Bathing",m.setFillColor(33,150,243),r(594,10,297+w.length/2*k+28,m,O),r(297-w.length/2*k-6,10,20,m,O),m.roundedRect(297-w.length/2*k-20,O,w.length*k+40,18,7,7,"F"),R.fullSpaceOffset++,R.halfSpaceOffset+=.5,m.setFontType("bold"),m.text(w,297-w.length/2*k,O+12),m.setFontType("normal"),t.typeOfBathing?(E=R.startX,O=P(R),m.text("Type of Bathing:",R.startX+A-"Type of Bathing: ".length*k,O),E=R.startX+A,m.text(t.typeOfBathing.toString(),E,O),R.halfSpaceOffset++):t.typeOfBathing="",t.timeOfBathing?(E=R.startX,O=P(R),m.text("Time of Bathing:",R.startX+A-"Time of Bathing: ".length*k,O),E=R.startX+A,m.text(t.timeOfBathing.toString(),E,O),R.halfSpaceOffset++):t.timeOfBathing="",o(t.frequencyOfBathing)){E=R.startX,O=P(R),m.text("Frequency of Bath:",R.startX+A-"Frequency of Bath: ".length*k,O),E=R.startX+A;var J=a.replaceNumberValue("frequencyOfBathing",t.frequencyOfBathing);m.text(J,E,O),R.halfSpaceOffset++}else t.frequencyOfBathing="";if(t.frequencyOfBathing>0){E=R.startX,O=P(R),m.text("Bathing Days:",R.startX+A-"Bathing Days: ".length*k,O),E=R.startX+A;var Q=m.splitTextToSize(t.bathingDays.join(", "),N);m.text(Q,E,O),R.halfSpaceOffset+=Q.length}else t.bathingDays="";t.acceptanceOfBathing?(E=R.startX,O=P(R),m.text("Acceptance of Bath:",R.startX+A-"Acceptance of Bath: ".length*k,O),E=R.startX+A,m.text(t.acceptanceOfBathing.toString(),E,O),R.halfSpaceOffset++):t.acceptanceOfBathing="",("Dislikes"===t.acceptanceOfBathing||"Refuses"===t.acceptanceOfBathing)&&d(t.dislikesBathingDescribe,"Bathing Difficulty Notes: "),t.bathingAssist?(E=R.startX,O=P(R),m.text("Bathing Assist:",R.startX+A-"Bathing Assist: ".length*k,O),E=R.startX+A,m.text(t.bathingAssist.toString(),E,O),R.halfSpaceOffset++):t.bathingAssist="",t.bathingNotes&&d(t.bathingNotes,"Bathing Notes: "),m.addPage(),m.line(305,0,305,800),m.line(0,201,610,201),m.line(0,397,610,397),m.line(0,593,610,593),m.setFontType("bold"),m.setTextColor(255,0,0),m.text("Diastolic",610-"Diastolic".length*k,614),m.setTextColor(0,0,0),n.drawGraph(m,t.temperature,"Temperature",6,10,t.tempUnit),n.drawGraph(m,t.oxygenSaturation,"Oxygen Saturation",6,206,"%"),n.drawGraph(m,t.pulse,"Pulse",6,402,"BPM"),n.drawGraph(m,t.vitalsPain,"Pain",6,598," "),n.drawGraph(m,t.respiration,"Respiration",314,10,"BPM"),n.drawGraph(m,t.weight,"Weight",314,206,t.weightUnit),n.drawGraph(m,t.internationalNormalizedRatio,"INR",314,402," "),n.drawGraph(m,t.bloodPressureDiastolic,"Blood Pressure",314,598,"mmHg"),m.save(u)}function r(e,t,n,a,i){var o=[],s=10;o=e>n?_.range(n-s,e+s,s):_.range(e-s,n+s,s),o.forEach(function(e){a.ellipse(e,t+i,2,2,"F")})}return{exportPdf:l}}angular.module("app.core").service("exportCarePlan",e),e.$inject=["$filter","imageData","graphs","SliderMapping"]}(),function(){function e(e,t){function n(t){var n=Date.now(),a=e("date"),i=a(n,"MMM d, yyyy"),o=new jsPDF("p","pt");o.setFont("courier"),o.setFontType("normal"),o.setFontSize(12),o.setLineWidth(1);var s=24,l=24,r=594/82,d=24,c=16,m=5,u=215,p=394,g=300,v=200,h=400,f=15,b=24,y=580,x=10,w=10,k=575,C=8;o.text("Exported on",f,b),o.text(i.toString(),f,b+c),o.rect(110,10,100,100),o.text("place holder",120,50),o.text("for logo",120,62),o.text("Phone",u,b+0*l),o.text("(719) 587-3514",275,b+0*l),o.text("Fax",u,b+1*l),o.text("(719) 589-3614",275,b+1*l),o.text("Address",u,b+2*l),o.text("3407 Carroll St Alamosa CO, 81101",275,b+2*l),o.text("Website",u,b+3*l),o.text("AlamosaBridge.com",275,b+3*l),o.rect(10,120,200,280),o.text("place holder",60,250),o.text("for resident picture",60,262),o.text("First Name",u,b+5*s),o.line(u+"First Name".length*r,b+5*s,y,b+5*s),o.text("Preferred Name",u,b+6*s),o.line(u+"Preferred Name".length*r,b+6*s,y,b+6*s),o.text("Middle Name",u,b+7*s),o.line(u+"Middle Name".length*r,b+7*s,y,b+7*s),o.text("Last Name",u,b+8*s),o.line(u+"Last Name".length*r,b+8*s,y,b+8*s),o.text("Maiden Name",u,b+9*s),o.line(u+"Maiden Name".length*r,b+9*s,y,b+9*s),o.text("Moved From (Town)",u,b+10*s),o.line(u+"Moved From (Town)".length*r,b+10*s,y,b+10*s),o.text("Primary Doctor",u,b+11*s),o.line(u+"Primary Doctor".length*r,b+11*s,y,b+11*s),o.text("Pharmacy",u,b+12*s),o.line(u+"Pharmacy".length*r,b+12*s,y,b+12*s),o.text("Date of Birth",u,b+13*s),o.line(u+"Date of Birth".length*r,b+13*s,p-2,b+13*s),o.text("Admission Date",p,b+13*s),o.line(p+"Admission Date".length*r,b+13*s,y,b+13*s),o.text("Floor",u,b+14*s),o.line(u+"Floor".length*r,b+14*s,p-2,b+14*s),o.text("Room",p,b+14*s),o.line(p+"Room".length*r,b+14*s,y,b+14*s),o.text("Full Code",u,b+15*s),o.text("Yes",u+5,b+15*s+c),o.text("No",u+m+"Yes".length*r+1*d,b+15*s+c),o.text("Sex",p,b+15*s),o.text("Male",p+m,b+15*s+c),o.text("Female",p+m+"Male".length*r+1*d,b+15*s+c),o.text("Other",p+m+"Female".length*r+"Male".length*r+2*d,b+15*s+c),o.text("Assessment Interval",f,b+16*s+1*c),o.text("None",f+m,b+16*s+2*c),o.text("Weekly",f+m+"None".length*r+1*d,b+16*s+2*c),o.text("Monthly",f+m+"None".length*r+"Weekly".length*r+2*d,b+16*s+2*c),o.text("Quarterly",f+m+"None".length*r+"Weekly".length*r+"Monthly".length*r+3*d,b+16*s+2*c),o.text("Yearly",f+m+"None".length*r+"Weekly".length*r+"Monthly".length*r+"Quarterly".length*r+4*d,b+16*s+2*c),o.text("Marital Status",f,b+17*s+2*c),o.text("Single",f+m,b+17*s+3*c),o.text("Divorced",f+m+"Single".length*r+1*d,b+17*s+3*c),o.text("Widowed",f+m+"Single".length*r+"Divorced".length*r+2*d,b+17*s+3*c),o.text("Married",f+m+"Single".length*r+"Divorced".length*r+"Widowed".length*r+3*d,b+17*s+3*c),o.text("Single Never Married",f+m+"Single".length*r+"Divorced".length*r+"Widowed".length*r+"Married".length*r+4*d,b+17*s+3*c),o.text("Long Term Care Insurance",f,b+18*s+3*c),o.text("Yes",f+m,b+18*s+4*c),o.text("No",f+m+"Yes".length*r+1*d,b+18*s+4*c),o.text("Receiving Long Term Care Insurance",g,b+18*s+3*c),o.text("Yes",g+m,b+18*s+4*c),o.text("No",g+m+"Yes".length*r+1*d,b+18*s+4*c),o.text("Appointment Coordination",f,b+19*s+4*c),o.text("Self",f+m,b+19*s+5*c),o.text("Assist",f+m+"Self".length*r+1*d,b+19*s+5*c),o.text("Family",f+m+"Self".length*r+"Assist".length*r+2*d,b+19*s+5*c),o.text("Veteran",g,b+19*s+4*c),o.text("Yes",g+m,b+19*s+5*c),o.text("No",g+m+"Yes".length*r+1*d,b+19*s+5*c),o.text("Handles Finances",f,b+20*s+5*c),o.line(f+"Handles Finances".length*r,b+20*s+5*c,y,b+20*s+5*c),o.text("Notes",f,b+21*s+5*c),o.line(f+"Notes".length*r,b+21*s+5*c,y,b+21*s+5*c),o.line(f,b+22*s+5*c,y,b+22*s+5*c),o.addPage(),C=0,o.text("Life",f,b+0*s),C+=1*s,o.text("Religion",f,b+1*s),o.line(f+"Religion".length*r,b+1*s+0*c,y,b+1*s+0*c),o.line(f,b+2*s+0*c,y,b+2*s+0*c),o.line(f,b+3*s+0*c,y,b+3*s+0*c),C+=3*s,o.text("Education",f,b+4*s),o.line(f+"Education".length*r,b+4*s+0*c,y,b+4*s+0*c),o.line(f,b+5*s+0*c,y,b+5*s+0*c),o.line(f,b+6*s+0*c,y,b+6*s+0*c),C+=3*s,o.text("Occupation",f,b+7*s),o.line(f+"Occupation".length*r,b+7*s+0*c,y,b+7*s+0*c),o.line(f,b+8*s+0*c,y,b+8*s+0*c),o.line(f,b+9*s+0*c,y,b+9*s+0*c),C+=3*s,o.text("Outside Agency",f,b+10*s),o.line(f+"Outside Agency".length*r,b+10*s+0*c,y,b+10*s+0*c),C+=1*s,o.text("Speech",f,b+11*s),C+=1*s,o.text("Easily Understood",f,b+12*s+0*c),o.text("Yes",f+m,b+12*s+1*c),o.text("No",f+m+"Yes".length*r+1*d,b+12*s+1*c),o.text("English as Primary Language",g,b+12*s+0*c),o.text("Yes",g+m,b+12*s+1*c),o.text("No",g+m+"Yes".length*r+1*d,b+12*s+1*c),C+=1*s+1*c,o.text("Other Languages",f,b+13*s+1*c),o.line(f+"Other Languages".length*r,b+13*s+1*c,y,b+13*s+1*c),C+=1*s+0*c,o.text("Items",f,b+14*s+1*c),C+=1*s+0*c,o.text("Heating Pad",f,b+15*s+1*c),o.text("Yes",f+m,b+15*s+2*c),o.text("No",f+m+"Yes".length*r+1*d,b+15*s+2*c),o.text("Microwave",v,b+15*s+1*c),o.text("Yes",v+m,b+15*s+2*c),o.text("No",v+m+"Yes".length*r+1*d,b+15*s+2*c),o.text("Extension Cord",h,b+15*s+1*c),o.text("Yes",h+m,b+15*s+2*c),o.text("No",h+m+"Yes".length*r+1*d,b+15*s+2*c),C+=1*s+1*c,o.text("Notes",f,b+16*s+2*c),o.line(f+"Notes".length*r,b+16*s+0*c+2*c,y,b+16*s+0*c+2*c),o.line(f,b+17*s+2*c,y,b+17*s+2*c),o.line(f,b+18*s+2*c,y,b+18*s+2*c),C+=3*s+1*c,o.rect(x,w,k,C),C=0,o.text("Allergies",f,b+20*s+2*c),C+=1*s+0*c,o.text("Medication Allergies",f,b+21*s+2*c),o.line(f,b+22*s+2*c,180,b+22*s+2*c),o.line(f,b+23*s+2*c,180,b+23*s+2*c),o.line(f,b+24*s+2*c,180,b+24*s+2*c),o.line(f,b+25*s+2*c,180,b+25*s+2*c),o.line(f,b+26*s+2*c,180,b+26*s+2*c),o.line(f,b+27*s+2*c,180,b+27*s+2*c),o.text("Food Allergies",v,b+21*s+2*c),o.line(v,b+22*s+2*c,380,b+22*s+2*c),o.line(v,b+23*s+2*c,380,b+23*s+2*c),o.line(v,b+24*s+2*c,380,b+24*s+2*c),o.line(v,b+25*s+2*c,380,b+25*s+2*c),o.line(v,b+26*s+2*c,380,b+26*s+2*c),o.line(v,b+27*s+2*c,380,b+27*s+2*c),o.text("Other Allergies",h,b+21*s+2*c),o.line(h,b+22*s+2*c,580,b+22*s+2*c),o.line(h,b+23*s+2*c,580,b+23*s+2*c),o.line(h,b+24*s+2*c,580,b+24*s+2*c),o.line(h,b+25*s+2*c,580,b+25*s+2*c),o.line(h,b+26*s+2*c,580,b+26*s+2*c),o.line(h,b+27*s+2*c,580,b+27*s+2*c),C+=7*s+0*c,o.text("Notes",f,b+28*s+2*c),o.line(f+"Notes".length*r,b+28*s+0*c+2*c,y,b+28*s+0*c+2*c),o.line(f,b+29*s+2*c,y,b+29*s+2*c),o.line(f,b+30*s+2*c,y,b+30*s+2*c),C+=3*s+1*c,o.rect(x,b+20*s+1*c,k,C),o.addPage(),C=0,o.text("Assistance",f,b),C+=1*s,o.text("Assist with Hair",f,b+1*s),o.text("Yes",f+m,b+1*s+1*c),o.text("No",f+m+"Yes".length*r+1*d,b+1*s+1*c),o.text("Has Barber",v,b+1*s+0*c),o.text("Yes",v+m,b+1*s+1*c),o.text("No",v+m+"Yes".length*r+1*d,b+1*s+1*c),o.text("Assist with Shaving",h,b+1*s+0*c),o.text("Yes",h+m,b+1*s+1*c),o.text("No",h+m+"Yes".length*r+1*d,b+1*s+1*c),C+=1*s+1*c,o.text("Assist with Finger Nails",f,b+2*s+1*c),o.text("Yes",f+m,b+2*s+2*c),o.text("No",f+m+"Yes".length*r+1*d,b+2*s+2*c),o.text("Assist with Toe Nails",h,b+2*s+1*c),o.text("Yes",h+m,b+2*s+2*c),o.text("No",h+m+"Yes".length*r+1*d,b+2*s+2*c),C+=1*s+1*c,o.text("Assist with Makeup",f,b+3*s+2*c),o.text("Yes",f+m,b+3*s+3*c),o.text("No",f+m+"Yes".length*r+1*d,b+3*s+3*c),o.text("Assist with Jewelry",v,b+3*s+2*c),o.text("Yes",v+m,b+3*s+3*c),o.text("No",v+m+"Yes".length*r+1*d,b+3*s+3*c),o.text("Assist with Lotion",h,b+3*s+2*c),o.text("Yes",h+m,b+3*s+3*c),o.text("No",h+m+"Yes".length*r+1*d,b+3*s+3*c),C+=1*s+1*c,o.text("Layout Cloths",f,b+4*s+3*c),o.text("Yes",f+m,b+4*s+4*c),o.text("No",f+m+"Yes".length*r+1*d,b+4*s+4*c),o.text("Assist with Shoes",v,b+4*s+3*c),o.text("Yes",v+m,b+4*s+4*c),o.text("No",v+m+"Yes".length*r+1*d,b+4*s+4*c),o.text("Assist with Top",h,b+4*s+3*c),o.text("Yes",h+m,b+4*s+4*c),o.text("No",h+m+"Yes".length*r+1*d,b+4*s+4*c),C+=1*s+1*c,o.text("Assist with Buttons",f,b+5*s+4*c),o.text("Yes",f+m,b+5*s+5*c),o.text("No",f+m+"Yes".length*r+1*d,b+5*s+5*c),o.text("Assist with Zippers",v,b+5*s+4*c),o.text("Yes",v+m,b+5*s+5*c),o.text("No",v+m+"Yes".length*r+1*d,b+5*s+5*c),o.text("Assist with Bottom",h,b+5*s+4*c),o.text("Yes",h+m,b+5*s+5*c),o.text("No",h+m+"Yes".length*r+1*d,b+5*s+5*c),C+=1*s+1*c,o.text("Notes",f,b+6*s+5*c),o.line(f+"Notes".length*r,b+6*s+5*c,y,b+6*s+5*c),o.line(f,b+7*s+5*c,y,b+7*s+5*c),C+=2*s+1*c,o.rect(x,w,k,C),C=0,o.text("Mobility",f,b+9*s+5*c),C+=1*s+0*c,o.text("Inside Apartment",f,b+10*s+5*c),C+=1*s+0*c,o.text("Use of Assistive Device",f,b+11*s+5*c),o.text("Walker",f+m,b+11*s+6*c),o.text("Cane",f+m+"Walker".length*r+1*d,b+11*s+6*c),o.text("Wheelchair",f+m+"Walker".length*r+"Cane".length*r+2*d,b+11*s+6*c),o.text("Electric Wheelchair",f+m+"Walker".length*r+"Cane".length*r+"Wheelchair".length*r+3*d,b+11*s+6*c),o.text("No Device",f+m+"Walker".length*r+"Cane".length*r+"Wheelchair".length*r+"Electric Wheelchair".length*r+4*d,b+11*s+6*c),o.text("Other",f+m+"Walker".length*r+"Cane".length*r+"Wheelchair".length*r+"Electric Wheelchair".length*r+"No Device".length*r+5*d,b+11*s+6*c),C+=1*s+1*c,o.text("Assistance with Device",f,b+12*s+6*c),o.line(f+"Assistance with Device".length*r,b+12*s+6*c,y,b+12*s+6*c),o.line(f,b+13*s+6*c,y,b+13*s+6*c),C+=2*s+0*c,o.text("Special Ambulation Needs",f,b+14*s+6*c),o.line(f+"Special Ambulation Needs".length*r,b+14*s+6*c,y,b+14*s+6*c),o.line(f,b+15*s+6*c,y,b+15*s+6*c),C+=2*s+0*c,o.text("Mobility Equipment",f,b+16*s+6*c),o.text("Transfer Pole",f+m,b+16*s+7*c),o.text("Side Rails",f+m+"Transfer Pole".length*r+1*d,b+16*s+7*c),o.text("Pivot Transfer",f+m+"Transfer Pole".length*r+"Side Rails".length*r+2*d,b+16*s+7*c),o.text("Lift Recliner",f+m+"Transfer Pole".length*r+"Side Rails".length*r+"Lift Recliner".length*r+3*d,b+16*s+7*c),o.text("Transfer Lift",f+m+"Transfer Pole".length*r+"Side Rails".length*r+"Lift Recliner".length*r+"Transfer Lift".length*r+4*d,b+16*s+7*c),C+=1*s+1*c,o.text("Outside Apartment",f,b+17*s+7*c),C+=1*s+0*c,o.text("Use of Assistive Device",f,b+18*s+7*c),o.text("Walker",f+m,b+18*s+8*c),o.text("Cane",f+m+"Walker".length*r+1*d,b+18*s+8*c),o.text("Wheelchair",f+m+"Walker".length*r+"Cane".length*r+2*d,b+18*s+8*c),o.text("Electric Wheelchair",f+m+"Walker".length*r+"Cane".length*r+"Wheelchair".length*r+3*d,b+18*s+8*c),o.text("No Device",f+m+"Walker".length*r+"Cane".length*r+"Wheelchair".length*r+"Electric Wheelchair".length*r+4*d,b+18*s+8*c),o.text("Other",f+m+"Walker".length*r+"Cane".length*r+"Wheelchair".length*r+"Electric Wheelchair".length*r+"No Device".length*r+5*d,b+18*s+8*c),C+=1*s+1*c,o.text("Assistance with Device",f,b+19*s+8*c),o.line(f+"Assistance with Device".length*r,b+19*s+8*c,y,b+19*s+8*c),o.line(f,b+20*s+8*c,y,b+20*s+8*c),C+=2*s+0*c,o.text("Special Ambulation Needs",f,b+21*s+8*c),o.line(f+"Special Ambulation Needs".length*r,b+21*s+8*c,y,b+21*s+8*c),o.line(f,b+22*s+8*c,y,b+22*s+8*c),C+=2*s+0*c,o.text("Transfers",f,b+23*s+8*c),o.text("Independent",f+m,b+23*s+9*c),o.text("Standby",f+m+"Independent".length*r+1*d,b+23*s+9*c),o.text("Full Assist",f+m+"Independent".length*r+"Standby".length*r+2*d,b+23*s+9*c),o.text("Transfer Pole",f+m+"Independent".length*r+"Standby".length*r+"Full Assist".length*r+3*d,b+23*s+9*c),o.text("Gait Belt",f+m+"Independent".length*r+"Standby".length*r+"Full Assist".length*r+"Transfer Pole".length*r+4*d,b+23*s+9*c),C+=1*s+1*c,o.text("Transfers Description",f,b+24*s+9*c),o.line(f+"Transfers Description".length*r,b+24*s+9*c,y,b+24*s+9*c),o.line(f,b+25*s+9*c,y,b+25*s+9*c),C+=2*s+0*c,o.text("Fall Risk",f,b+26*s+9*c),o.text("Yes",f+m,b+26*s+10*c),o.text("No",f+m+"Yes".length*r+1*d,b+26*s+10*c),o.text("Fall Risk Description",v,b+26*s+9*c),o.line(v+"Fall Risk Description".length*r,b+26*s+9*c,y,b+26*s+9*c),o.line(v,b+27*s+9*c,y,b+27*s+9*c),C+=2*s+0*c,C+=20,o.rect(x,b+9*s+4*c,k,C),o.addPage(),C=0,o.text("Bed Repositioning",f,b+0*s+0*c),o.text("Yes",f+m,b+0*s+1*c),o.text("No",f+m+"Yes".length*r+1*d,b+0*s+1*c),o.text("Two Person Lift",h,b+0*s+0*c),o.text("Yes",h+m,b+0*s+1*c),o.text("No",h+m+"Yes".length*r+1*d,b+0*s+1*c),C+=1*s+1*c,o.text("Bed Reposition Description",f,b+1*s+1*c),o.line(f+"Bed Reposition Description".length*r,b+1*s+1*c,y,b+1*s+1*c),o.line(f,b+2*s+1*c,y,b+2*s+1*c),C+=2*s+0*c,o.text("Bed Reposition Outside Agency",f,b+3*s+1*c),o.line(f+"Bed Reposition Outside Agency".length*r,b+3*s+1*c,y,b+3*s+1*c),o.line(f,b+4*s+1*c,y,b+4*s+1*c),C+=2*s+0*c,o.text("Notes",f,b+5*s+1*c),o.line(f+"Notes".length*r,b+5*s+1*c,y,b+5*s+1*c),o.line(f,b+6*s+1*c,y,b+6*s+1*c),C+=2*s+1*c,o.rect(x,w-10,k,C+10),C=0,o.text("Sleep",f,b+7*s+3*c),C+=1*s+0*c,o.text("Usual Bedtime",f,b+8*s+3*c),o.line(f+"Usual Bedtime".length*r,b+8*s+3*c,y,b+8*s+3*c),C+=1*s+0*c,o.text("Usual Arising Time",f,b+9*s+3*c),o.line(f+"Usual Arising Time".length*r,b+9*s+3*c,y,b+9*s+3*c),C+=1*s+0*c,o.text("Naps",f,b+10*s+3*c),o.text("Yes",f+m,b+10*s+4*c),o.text("No",f+m+"Yes".length*r+1*d,b+10*s+4*c),o.text("Nap Description",v,b+10*s+3*c),o.line(v+"Nap Description".length*r,b+10*s+3*c,y,b+10*s+3*c),o.line(v,b+11*s+3*c,y,b+11*s+3*c),C+=2*s+0*c,o.text("Assistance to Bed",f,b+12*s+3*c),o.text("Medication",f+m,b+12*s+4*c),o.text("Positioning",f+m+"Medication".length*r+1*d,b+12*s+4*c),o.text("Pillows",f+m+"Medication".length*r+"Positioning".length*r+2*d,b+12*s+4*c),o.text("Drink",f+m+"Medication".length*r+"Positioning".length*r+"Pillows".length*r+3*d,b+12*s+4*c),o.text("Alcohol",f+m+"Medication".length*r+"Positioning".length*r+"Pillows".length*r+"Drink".length*r+4*d,b+12*s+4*c),o.text("Hot Tea",f+m+"Medication".length*r+"Positioning".length*r+"Pillows".length*r+"Drink".length*r+"Alcohol".length*r+5*d,b+12*s+4*c),o.text("Warm Milk",f+m,b+12*s+5*c),o.text("Other",f+m+"Warm Milk".length*r+1*d,b+12*s+5*c),o.text("None",f+m+"Warm Milk".length*r+"Other".length*r+2*d,b+12*s+5*c),C+=1*s+2*c,o.text("Sleeps through the Night",f,b+13*s+5*c),o.text("Yes",f+m,b+13*s+6*c),o.text("No",f+m+"Yes".length*r+1*d,b+13*s+6*c),o.text("Can Call for Assistance",h,b+13*s+5*c),o.text("Yes",h+m,b+13*s+6*c),o.text("No",h+m+"Yes".length*r+1*d,b+13*s+6*c),C+=1*s+1*c,o.text("Notes",f,b+14*s+6*c),o.line(f+"Notes".length*r,b+14*s+6*c,y,b+14*s+6*c),o.line(f,b+15*s+6*c,y,b+15*s+6*c),C+=2*s+1*c,o.rect(x,b+7*s+2*c,k,C),C=0,o.text("Nutrition",f,b+17*s+6*c),C+=1*s+0*c,o.text("Overall Nutrition",f,b+18*s+6*c),o.text("Good",f+m,b+18*s+7*c),o.text("Poor",f+m+"Good".length*r+1*d,b+18*s+7*c),o.text("Poor Nutrition Description",v,b+18*s+6*c),o.line(v+"Poor Nutrition Description".length*r,b+18*s+6*c,y,b+18*s+6*c),o.line(v,b+19*s+6*c,y,b+19*s+6*c),C+=2*s+0*c,o.text("Diabetic",f,b+20*s+6*c),o.text("Yes",f+m,b+20*s+7*c),o.text("No",f+m+"Yes".length*r+1*d,b+20*s+7*c),o.text("Blood Sugar Monitoring",v,b+20*s+6*c),o.text("Yes",v+m,b+20*s+7*c),o.text("No",v+m+"Yes".length*r+1*d,b+20*s+7*c),o.text("Bedtime Snack",h,b+20*s+6*c),o.text("Yes",h+m,b+20*s+7*c),o.text("No",h+m+"Yes".length*r+1*d,b+20*s+7*c),C+=1*s+1*c,o.text("Diabetic Type",f,b+21*s+7*c),o.text("Diet Controlled",f+m,b+21*s+8*c),o.text("Medication Controlled",f+m+"Diet Controlled".length*r+1*d,b+21*s+8*c),o.text("Insulin Controlled",f+m+"Diet Controlled".length*r+"Medication Controlled".length*r+2*d,b+21*s+8*c),C+=1*s+1*c,o.text("Adaptive Equipment",f,b+22*s+8*c),o.text("Plate Guard",f+m,b+22*s+9*c),o.text("Built Up Silverware",f+m+"Plate Guard".length*r+1*d,b+22*s+9*c),o.text("Special Cups",f+m+"Plate Guard".length*r+"Built Up Silverware".length*r+2*d,b+22*s+9*c),o.text("None",f+m+"Plate Guard".length*r+"Built Up Silverware".length*r+"Special Cups".length*r+3*d,b+22*s+9*c),C+=1*s+1*c,o.text("Type of Diet",f,b+23*s+9*c),o.text("BRAT",f+m,b+23*s+10*c),o.text("Gluten Free",f+m+"BRAT".length*r+1*d,b+23*s+10*c),o.text("Full Vegan",f+m+"BRAT".length*r+"Gluten Free".length*r+2*d,b+23*s+10*c),o.text("Partial Vegan",f+m+"BRAT".length*r+"Gluten Free".length*r+"Full Vegan".length*r+3*d,b+23*s+10*c),o.text("Lactose Free",f+m+"BRAT".length*r+"Gluten Free".length*r+"Full Vegan".length*r+"Partial Vegan".length*r+4*d,b+23*s+10*c),o.text("Other",f+m,b+23*s+11*c),o.text("Regular",f+m+"Other".length*r+1*d,b+23*s+11*c),C+=1*s+2*c,o.text("Special Diet",f,b+24*s+11*c),o.text("Pureed",f+m,b+24*s+12*c),o.text("Ground",f+m+"Pureed".length*r+1*d,b+24*s+12*c),
  o.text("Soft",f+m+"Pureed".length*r+"Ground".length*r+2*d,b+24*s+12*c),o.text("Regular",f+m+"Pureed".length*r+"Ground".length*r+"Soft".length*r+3*d,b+24*s+12*c),C+=1*s+1*c,o.text("Finger Foods",f,b+25*s+12*c),o.text("Yes",f+m,b+25*s+13*c),o.text("No",f+m+"Yes".length*r+1*d,b+25*s+13*c),o.text("Food in Room",v,b+25*s+12*c),o.text("Yes",v+m,b+25*s+13*c),o.text("No",v+m+"Yes".length*r+1*d,b+25*s+13*c),o.text("Drink in Room",h,b+25*s+12*c),o.text("Yes",h+m,b+25*s+13*c),o.text("No",h+m+"Yes".length*r+1*d,b+25*s+13*c),C+=1*s+1*c,o.rect(x,b+17*s+5*c,k,C+10),o.addPage(),C=0,o.text("Food Assistance",f,b+0*s+0*c),o.text("Independent",f+m,b+0*s+1*c),o.text("Reminder",f+m+"Independent".length*r+1*d,b+0*s+1*c),o.text("Partial Assistance",f+m+"Independent".length*r+"Reminder".length*r+2*d,b+0*s+1*c),o.text("Full Assistance",f+m+"Independent".length*r+"Reminder".length*r+"Partial Assistance".length*r+3*d,b+0*s+1*c),C+=1*s+1*c,o.text("Notes",f,b+1*s+1*c),o.line(f+"Notes".length*r,b+1*s+1*c,y,b+1*s+1*c),o.line(f,b+2*s+1*c,y,b+2*s+1*c),C+=2*s+1*c,o.rect(x,w-10,k,C+10),C=0,o.text("Physical Condition",f,b+3*s+3*c),o.text("Skin",f,b+4*s+3*c),C+=2*s+0*c,o.text("Skin Condition",f,b+5*s+3*c),o.text("Average",f+m,b+5*s+4*c),o.text("Tears Easily",f+m+"Average".length*r+1*d,b+5*s+4*c),o.text("At Risk for Skin Breakdown",h-20,b+5*s+3*c),o.text("Yes",h-20+m,b+5*s+4*c),o.text("No",h-20+m+"Yes".length*r+1*d,b+5*s+4*c),C+=1*s+1*c,o.text("Has a Wound",f,b+6*s+4*c),o.text("Yes",f+m,b+6*s+5*c),o.text("No",f+m+"Yes".length*r+1*d,b+6*s+5*c),o.text("Wound Amount",v,b+6*s+4*c),o.line(v+"Wound Amount".length*r,b+6*s+4*c,y,b+6*s+4*c),C+=1*s+1*c,o.text("Wound Description",f,b+7*s+5*c),o.line(f+"Wound Description".length*r,b+7*s+5*c,y,b+7*s+5*c),o.line(f,b+8*s+5*c,y,b+8*s+5*c),C+=2*s+0*c,o.text("Infection",f,b+9*s+5*c),C+=1*s+0*c,o.text("UTI Risk",f,b+10*s+5*c),o.text("Yes",f+m,b+10*s+6*c),o.text("No",f+m+"Yes".length*r+1*d,b+10*s+6*c),o.text("URI Risk",v,b+10*s+5*c),o.text("Yes",v+m,b+10*s+6*c),o.text("No",v+m+"Yes".length*r+1*d,b+10*s+6*c),o.text("MRSA Risk",h,b+10*s+5*c),o.text("Yes",h+m,b+10*s+6*c),o.text("No",h+m+"Yes".length*r+1*d,b+10*s+6*c),C+=1*s+1*c,o.text("VRE Risk",f,b+11*s+6*c),o.text("Yes",f+m,b+11*s+7*c),o.text("No",f+m+"Yes".length*r+1*d,b+11*s+7*c),o.text("Shingles Risk",v,b+11*s+6*c),o.text("Yes",v+m,b+11*s+7*c),o.text("No",v+m+"Yes".length*r+1*d,b+11*s+7*c),o.text("Pneumonia Risk",h,b+11*s+6*c),o.text("Yes",h+m,b+11*s+7*c),o.text("No",h+m+"Yes".length*r+1*d,b+11*s+7*c),C+=1*s+1*c,o.text("Hearing",f,b+12*s+7*c),C+=1*s+0*c,o.text("Left Ear",f,b+13*s+7*c),o.text("Adequate",f+m,b+13*s+8*c),o.text("Adequate with Aid",f+m+"Adequate".length*r+1*d,b+13*s+8*c),o.text("Poor",f+m+"Adequate".length*r+"Adequate with Aid".length*r+2*d,b+13*s+8*c),o.text("None",f+m+"Adequate".length*r+"Adequate with Aid".length*r+"Poor".length*r+3*d,b+13*s+8*c),C+=1*s+1*c,o.text("Right Ear",f,b+14*s+8*c),o.text("Adequate",f+m,b+14*s+9*c),o.text("Adequate with Aid",f+m+"Adequate".length*r+1*d,b+14*s+9*c),o.text("Poor",f+m+"Adequate".length*r+"Adequate with Aid".length*r+2*d,b+14*s+9*c),o.text("None",f+m+"Adequate".length*r+"Adequate with Aid".length*r+"Poor".length*r+3*d,b+14*s+9*c),C+=1*s+1*c,o.text("Hearing Ability",f,b+15*s+9*c),o.text("None",f+m,b+15*s+10*c),o.line(f+40+m,b+13+15*s+9*c,f+230+m,b+13+15*s+9*c),o.setFillColor(255,255,255),o.circle(f+45+m,b+13+15*s+9*c,5,"FD"),o.circle(f+65+m,b+13+15*s+9*c,5,"FD"),o.circle(f+85+m,b+13+15*s+9*c,5,"FD"),o.circle(f+105+m,b+13+15*s+9*c,5,"FD"),o.circle(f+125+m,b+13+15*s+9*c,5,"FD"),o.circle(f+145+m,b+13+15*s+9*c,5,"FD"),o.circle(f+165+m,b+13+15*s+9*c,5,"FD"),o.circle(f+185+m,b+13+15*s+9*c,5,"FD"),o.circle(f+205+m,b+13+15*s+9*c,5,"FD"),o.circle(f+225+m,b+13+15*s+9*c,5,"FD"),o.text("Perfect",f+241+m,b+15*s+10*c),C+=1*s+1*c,o.text("Wears Hearing Aid",f,b+16*s+10*c),o.text("Yes",f+m,b+16*s+11*c),o.text("No",f+m+"Yes".length*r+1*d,b+16*s+11*c),o.text("Help with Hearing Aid",h,b+16*s+10*c),o.text("Yes",h+m,b+16*s+11*c),o.text("No",h+m+"Yes".length*r+1*d,b+16*s+11*c),C+=1*s+1*c,o.text("Hearing Notes",f,b+17*s+11*c),o.line(f+"Hearing Notes".length*r,b+17*s+11*c,y,b+17*s+11*c),o.line(f,b+18*s+11*c,y,b+18*s+11*c),C+=2*s+0*c,o.text("Vision",f,b+19*s+11*c),C+=1*s+0*c,o.text("Vision Device",f,b+20*s+11*c),o.text("Glasses",f+m,b+20*s+12*c),o.text("Contacts",f+m+"Glasses".length*r+1*d,b+20*s+12*c),o.text("None",f+m+"Glasses".length*r+"Contacts".length*r+2*d,b+20*s+12*c),o.text("Vision Assist",h,b+20*s+11*c),o.text("Full",h+m,b+20*s+12*c),o.text("Reminder",h+m+"Full".length*r+1*d,b+20*s+12*c),o.text("None",h+m+"Full".length*r+"Reminder".length*r+2*d,b+20*s+12*c),C+=1*s+1*c,o.text("Left Eye",f,b+21*s+12*c),o.text("Adequate",f+m,b+21*s+13*c),o.text("Adequate with Aid",f+m+"Adequate".length*r+1*d,b+21*s+13*c),o.text("Poor",f+m+"Adequate".length*r+"Adequate with Aid".length*r+2*d,b+21*s+13*c),o.text("None",f+m+"Adequate".length*r+"Adequate with Aid".length*r+"Poor".length*r+3*d,b+21*s+13*c),C+=1*s+1*c,o.text("Right Eye",f,b+22*s+13*c),o.text("Adequate",f+m,b+22*s+14*c),o.text("Adequate with Aid",f+m+"Adequate".length*r+1*d,b+22*s+14*c),o.text("Poor",f+m+"Adequate".length*r+"Adequate with Aid".length*r+2*d,b+22*s+14*c),o.text("None",f+m+"Adequate".length*r+"Adequate with Aid".length*r+"Poor".length*r+3*d,b+22*s+14*c),C+=1*s+1*c,o.text("Vision Ability",f,b+23*s+14*c),o.text("None",f+m,b+23*s+15*c),o.line(f+40+m,b+13+23*s+14*c,f+230+m,b+13+23*s+14*c),o.setFillColor(255,255,255),o.circle(f+45+m,b+13+23*s+14*c,5,"FD"),o.circle(f+65+m,b+13+23*s+14*c,5,"FD"),o.circle(f+85+m,b+13+23*s+14*c,5,"FD"),o.circle(f+105+m,b+13+23*s+14*c,5,"FD"),o.circle(f+125+m,b+13+23*s+14*c,5,"FD"),o.circle(f+145+m,b+13+23*s+14*c,5,"FD"),o.circle(f+165+m,b+13+23*s+14*c,5,"FD"),o.circle(f+185+m,b+13+23*s+14*c,5,"FD"),o.circle(f+205+m,b+13+23*s+14*c,5,"FD"),o.circle(f+225+m,b+13+23*s+14*c,5,"FD"),o.text("Perfect",f+241+m,b+23*s+15*c),C+=1*s+1*c,o.rect(x,b+3*s+2*c,k,C+20),o.addPage(),C=0,o.text("Vision Notes",f,b+0*s+0*c),o.line(f+"Vision Notes".length*r,b+0*s+0*c,y,b+0*s+0*c),o.line(f,b+1*s+0*c,y,b+1*s+0*c),C+=2*s+0*c,o.text("Teeth",f,b+2*s+0*c),C+=1*s+0*c,o.text("Dentist",f,b+3*s+0*c),o.line(f+"Dentist".length*r,b+3*s+0*c,y,b+3*s+0*c),C+=1*s+0*c,o.text("Teeth Care",f,b+4*s+0*c),o.text("Great",f+m,b+4*s+1*c),o.text("Good",f+m+"Great".length*r+1*d,b+4*s+1*c),o.text("Decent",f+m+"Great".length*r+"Good".length*r+2*d,b+4*s+1*c),o.text("Lacking",f+m+"Great".length*r+"Good".length*r+"Decent".length*r+3*d,b+4*s+1*c),o.text("None",f+m+"Great".length*r+"Good".length*r+"Decent".length*r+"Lacking".length*r+4*d,b+4*s+1*c),C+=1*s+1*c,o.text("Teeth Care Description",f,b+5*s+1*c),o.line(f+"Teeth Care Description".length*r,b+5*s+1*c,y,b+5*s+1*c),o.line(f,b+6*s+1*c,y,b+6*s+1*c),C+=2*s+0*c,o.text("Teeth Assistance",f,b+7*s+1*c),o.text("Full",f+m,b+7*s+2*c),o.text("Reminder",f+m+"Full".length*r+1*d,b+7*s+2*c),o.text("Independent",f+m+"Full".length*r+"Reminder".length*r+2*d,b+7*s+2*c),C+=1*s+1*c,o.text("Upper Teeth",f,b+8*s+2*c),o.text("Own",f+m,b+8*s+3*c),o.text("Denture",f+m+"Own".length*r+1*d,b+8*s+3*c),o.text("Partial",f+m+"Own".length*r+"Denture".length*r+2*d,b+8*s+3*c),o.text("Lower Teeth",h,b+8*s+2*c),o.text("Own",h+m,b+8*s+3*c),o.text("Denture",h+m+"Own".length*r+1*d,b+8*s+3*c),o.text("Partial",h+m+"Own".length*r+"Denture".length*r+2*d,b+8*s+3*c),C+=1*s+1*c,o.text("Teeth Condition",f,b+9*s+3*c),o.text("None",f+m,b+9*s+4*c),o.line(f+40+m,b+13+9*s+3*c,f+230+m,b+13+9*s+3*c),o.setFillColor(255,255,255),o.circle(f+45+m,b+13+9*s+3*c,5,"FD"),o.circle(f+65+m,b+13+9*s+3*c,5,"FD"),o.circle(f+85+m,b+13+9*s+3*c,5,"FD"),o.circle(f+105+m,b+13+9*s+3*c,5,"FD"),o.circle(f+125+m,b+13+9*s+3*c,5,"FD"),o.circle(f+145+m,b+13+9*s+3*c,5,"FD"),o.circle(f+165+m,b+13+9*s+3*c,5,"FD"),o.circle(f+185+m,b+13+9*s+3*c,5,"FD"),o.circle(f+205+m,b+13+9*s+3*c,5,"FD"),o.circle(f+225+m,b+13+9*s+3*c,5,"FD"),o.text("Perfect",f+241+m,b+9*s+4*c),C+=1*s+1*c,o.text("Teeth Notes",f,b+10*s+4*c),o.line(f+"Teeth Notes".length*r,b+10*s+4*c,y,b+10*s+4*c),o.line(f,b+11*s+4*c,y,b+11*s+4*c),C+=2*s+0*c,o.text("Medication",f,b+12*s+4*c),C+=1*s+0*c,o.text("Oxygen",f,b+13*s+4*c),o.text("Yes",f+m,b+13*s+5*c),o.text("No",f+m+"Yes".length*r+1*d,b+13*s+5*c),o.text("Oxygen Type",v,b+13*s+4*c),o.text("Liquid",v+m,b+13*s+5*c),o.text("Concentrate",v+m+"Liquid".length*r+1*d,b+13*s+5*c),o.text("Oxygen Flow",h,b+13*s+4*c),o.text("Continuous",h+m,b+13*s+5*c),o.text("Helios",h+m+"Continuous".length*r+1*d,b+13*s+5*c),C+=1*s+1*c,o.text("Medication",f,b+14*s+5*c),o.text("Yes",f+m,b+14*s+6*c),o.text("No",f+m+"Yes".length*r+1*d,b+14*s+6*c),o.text("Self Meds",v,b+14*s+5*c),o.text("Yes",v+m,b+14*s+6*c),o.text("No",v+m+"Yes".length*r+1*d,b+14*s+6*c),o.text("Med at Bedside",h,b+14*s+5*c),o.text("Yes",h+m,b+14*s+6*c),o.text("No",h+m+"Yes".length*r+1*d,b+14*s+6*c),C+=1*s+1*c,o.text("Chemotherapy",f,b+15*s+6*c),o.text("Yes",f+m,b+15*s+7*c),o.text("No",f+m+"Yes".length*r+1*d,b+15*s+7*c),o.text("Swallow Assist",v,b+15*s+6*c),o.text("Yes",v+m,b+15*s+7*c),o.text("No",v+m+"Yes".length*r+1*d,b+15*s+7*c),o.text("Dialysis",h,b+15*s+6*c),o.text("Yes",h+m,b+15*s+7*c),o.text("No",h+m+"Yes".length*r+1*d,b+15*s+7*c),C+=1*s+1*c,o.text("Marijuana",f,b+16*s+7*c),o.text("Yes",f+m,b+16*s+8*c),o.text("No",f+m+"Yes".length*r+1*d,b+16*s+8*c),C+=1*s+1*c,o.text("Medication Notes",f,b+17*s+8*c),o.line(f+"Medication Notes".length*r,b+17*s+8*c,y,b+17*s+8*c),o.line(f,b+18*s+8*c,y,b+18*s+8*c),C+=2*s+1*c,o.rect(x,w-10,k,C+10),C=0,o.text("Psychosocial",f,b+19*s+10*c),C+=1*s+0*c,o.text("Psychosocial Status",f,b+20*s+10*c),o.text("Alert",f+m,b+20*s+11*c),o.text("Friendly",f+m+"Alert".length*r+1*d,b+20*s+11*c),o.text("Disoriented",f+m+"Alert".length*r+"Friendly".length*r+2*d,b+20*s+11*c),o.text("Withdrawn",f+m+"Alert".length*r+"Friendly".length*r+"Disoriented".length*r+3*d,b+20*s+11*c),o.text("Talkative",f+m+"Alert".length*r+"Friendly".length*r+"Disoriented".length*r+"Withdrawn".length*r+4*d,b+20*s+11*c),o.text("Lonely",f+m+"Alert".length*r+"Friendly".length*r+"Disoriented".length*r+"Withdrawn".length*r+"Talkative".length*r+5*d,b+20*s+11*c),o.text("Happy",f+m+"Alert".length*r+"Friendly".length*r+"Disoriented".length*r+"Withdrawn".length*r+"Talkative".length*r+"Lonely".length*r+6*d,b+20*s+11*c),o.text("Confused",f+m,b+20*s+12*c),o.text("Uncooperative",f+m+"Confused".length*r+1*d,b+20*s+12*c),o.text("At Times Angry",f+m+"Confused".length*r+"Uncooperative".length*r+2*d,b+20*s+12*c),o.text("Sad",f+m+"Confused".length*r+"Uncooperative".length*r+"At Times Angry".length*r+3*d,b+20*s+12*c),o.text("Emotional Outbursts",f+m+"Confused".length*r+"Uncooperative".length*r+"At Times Angry".length*r+"Sad".length*r+4*d,b+20*s+12*c),o.text("Feel Like a Burden",f+m,b+20*s+13*c),C+=1*s+3*c,o.text("Psychosocial Description",f,b+21*s+13*c),o.line(f+"Psychosocial Description".length*r,b+21*s+13*c,y,b+21*s+13*c),o.line(f,b+22*s+13*c,y,b+22*s+13*c),C+=2*s+0*c,o.text("Sundowner",f,b+23*s+13*c),o.text("Yes",f+m,b+23*s+14*c),o.text("No",f+m+"No".length*r+1*d,b+23*s+14*c),o.text("Sundowner Description",v,b+23*s+13*c),o.line(v+"Sundowner Description".length*r,b+23*s+13*c,y,b+23*s+13*c),o.line(v,b+24*s+13*c,y,b+24*s+13*c),C+=2*s+0*c,o.rect(x,b+19*s+9*c,k,C+30),o.addPage(),C=0,o.text("Comprehension",f,b+0*s+0*c),o.text("Slow",f+m,b+0*s+1*c),o.text("Moderate",f+m+"Slow".length*r+1*d,b+0*s+1*c),o.text("Quick",f+m+"Slow".length*r+"Moderate".length*r+2*d,b+0*s+1*c),o.text("Dementia",g,b+0*s+0*c),o.text("None",g+m,b+0*s+1*c),o.text("Mild",g+m+"None".length*r+1*d,b+0*s+1*c),o.text("Moderate",g+m+"None".length*r+"Mild".length*r+2*d,b+0*s+1*c),o.text("Severe",g+m+"None".length*r+"Mild".length*r+"Moderate".length*r+3*d,b+0*s+1*c),C+=1*s+1*c,o.text("Leaves without Intention",f,b+1*s+1*c),o.text("Yes",f+m,b+1*s+2*c),o.text("No",f+m+"Yes".length*r+1*d,b+1*s+2*c),C+=1*s+1*c,o.text("High Maintenance",f,b+2*s+2*c),o.text("Easy",f+m,b+2*s+3*c),o.line(f+40+m,b+13+2*s+2*c,f+230+m,b+13+2*s+2*c),o.setFillColor(255,255,255),o.circle(f+45+m,b+13+2*s+2*c,5,"FD"),o.circle(f+65+m,b+13+2*s+2*c,5,"FD"),o.circle(f+85+m,b+13+2*s+2*c,5,"FD"),o.circle(f+105+m,b+13+2*s+2*c,5,"FD"),o.circle(f+125+m,b+13+2*s+2*c,5,"FD"),o.circle(f+145+m,b+13+2*s+2*c,5,"FD"),o.circle(f+165+m,b+13+2*s+2*c,5,"FD"),o.circle(f+185+m,b+13+2*s+2*c,5,"FD"),o.circle(f+205+m,b+13+2*s+2*c,5,"FD"),o.circle(f+225+m,b+13+2*s+2*c,5,"FD"),o.text("Difficult",f+241+m,b+2*s+3*c),C+=1*s+1*c,o.text("High Maintenance Description",f,b+3*s+3*c),o.line(f+"High Maintenance Description".length*r,b+3*s+3*c,y,b+3*s+3*c),o.line(f,b+4*s+3*c,y,b+4*s+3*c),C+=2*s+0*c,o.text("Anxiety",f,b+5*s+3*c),o.text("Yes",f+m,b+5*s+4*c),o.text("No",f+m+"Yes".length*r+1*d,b+5*s+4*c),o.text("Antipsychotic Medication",g,b+5*s+3*c),o.text("Yes",g+m,b+5*s+4*c),o.text("No",g+m+"Yes".length*r+1*d,b+5*s+4*c),C+=1*s+1*c,o.text("Smokes",f,b+6*s+4*c),o.text("Yes",f+m,b+6*s+5*c),o.text("No",f+m+"Yes".length*r+1*d,b+6*s+5*c),o.text("Smoke Description",v,b+6*s+4*c),o.line(v+"Smoke Description".length*r,b+6*s+4*c,y,b+6*s+4*c),o.line(v,b+7*s+4*c,y,b+7*s+4*c),C+=2*s+0*c,o.text("Sexually Active",f,b+8*s+4*c),o.text("Yes",f+m,b+8*s+5*c),o.text("No",f+m+"Yes".length*r+1*d,b+8*s+5*c),o.text("Sexually Active Description",v,b+8*s+4*c),o.line(v+"Sexually Active Description".length*r,b+8*s+4*c,y,b+8*s+4*c),o.line(v,b+9*s+4*c,y,b+9*s+4*c),C+=2*s+0*c,o.text("Alcohol",f,b+10*s+4*c),o.text("Yes",f+m,b+10*s+5*c),o.text("No",f+m+"Yes".length*r+1*d,b+10*s+5*c),o.text("Alcohol Description",v,b+10*s+4*c),o.line(v+"Alcohol Description".length*r,b+10*s+4*c,y,b+10*s+4*c),o.line(v,b+11*s+4*c,y,b+11*s+4*c),C+=2*s+0*c,o.text("Alcohol in Room",f,b+12*s+4*c),o.text("Yes",f+m,b+12*s+5*c),o.text("No",f+m+"Yes".length*r+1*d,b+12*s+5*c),C+=1*s+1*c,o.text("Other Habits",f,b+13*s+5*c),o.line(f+"Other Habits".length*r,b+13*s+5*c,y,b+13*s+5*c),o.line(f,b+14*s+5*c,y,b+14*s+5*c),C+=2*s+0*c,o.text("Participation",f,b+15*s+5*c),C+=1*s+0*c,o.text("General Activity Participation",f,b+16*s+5*c),o.text("Never",f+m,b+16*s+6*c),o.text("Sometimes",f+m+"Never".length*r+1*d,b+16*s+6*c),o.text("Good",f+m+"Never".length*r+"Sometimes".length*r+2*d,b+16*s+6*c),o.text("Amazing",f+m+"Never".length*r+"Sometimes".length*r+"Good".length*r+3*d,b+16*s+6*c),o.text("Dining Room Participation",g,b+16*s+5*c),o.text("Never",g+m,b+16*s+6*c),o.text("Sometimes",g+m+"Never".length*r+1*d,b+16*s+6*c),o.text("Good",g+m+"Never".length*r+"Sometimes".length*r+2*d,b+16*s+6*c),o.text("Amazing",g+m+"Never".length*r+"Sometimes".length*r+"Good".length*r+3*d,b+16*s+6*c),C+=1*s+1*c,o.text("Bus Ride Participation",f,b+17*s+6*c),o.text("Never",f+m,b+17*s+7*c),o.text("Sometimes",f+m+"Never".length*r+1*d,b+17*s+7*c),o.text("Good",f+m+"Never".length*r+"Sometimes".length*r+2*d,b+17*s+7*c),o.text("Amazing",f+m+"Never".length*r+"Sometimes".length*r+"Good".length*r+3*d,b+17*s+7*c),o.text("Fitness Participation",g,b+17*s+6*c),o.text("Never",g+m,b+17*s+7*c),o.text("Sometimes",g+m+"Never".length*r+1*d,b+17*s+7*c),o.text("Good",g+m+"Never".length*r+"Sometimes".length*r+2*d,b+17*s+7*c),o.text("Amazing",g+m+"Never".length*r+"Sometimes".length*r+"Good".length*r+3*d,b+17*s+7*c),C+=1*s+1*c,o.text("Bingo Participation",f,b+18*s+7*c),o.text("Never",f+m,b+18*s+8*c),o.text("Sometimes",f+m+"Never".length*r+1*d,b+18*s+8*c),o.text("Good",f+m+"Never".length*r+"Sometimes".length*r+2*d,b+18*s+8*c),o.text("Amazing",f+m+"Never".length*r+"Sometimes".length*r+"Good".length*r+3*d,b+18*s+8*c),o.text("Community Participation",g,b+18*s+7*c),o.text("Never",g+m,b+18*s+8*c),o.text("Sometimes",g+m+"Never".length*r+1*d,b+18*s+8*c),o.text("Good",g+m+"Never".length*r+"Sometimes".length*r+2*d,b+18*s+8*c),o.text("Amazing",g+m+"Never".length*r+"Sometimes".length*r+"Good".length*r+3*d,b+18*s+8*c),C+=1*s+1*c,o.text("Time in Room",f,b+19*s+8*c),o.text("Reading",f+m,b+19*s+9*c),o.text("TV",f+m+"Reading".length*r+1*d,b+19*s+9*c),o.text("Game",f+m+"Reading".length*r+"TV".length*r+2*d,b+19*s+9*c),o.text("Hobby",f+m+"Reading".length*r+"TV".length*r+"Game".length*r+3*d,b+19*s+9*c),o.text("Computer",f+m+"Reading".length*r+"TV".length*r+"Game".length*r+"Hobby".length*r+4*d,b+19*s+9*c),o.text("Radio",f+m+"Reading".length*r+"TV".length*r+"Game".length*r+"Hobby".length*r+"Computer".length*r+5*d,b+19*s+9*c),o.text("Audio Books",f+m+"Reading".length*r+"TV".length*r+"Game".length*r+"Hobby".length*r+"Computer".length*r+"Radio".length*r+6*d,b+19*s+9*c),C+=1*s+1*c,o.text("Volunteer",f,b+20*s+9*c),o.text("Yes",f+m,b+20*s+10*c),o.text("No",f+m+"Yes".length*r+1*d,b+20*s+10*c),o.text("Uses Fitness Equipment Independently",g,b+20*s+9*c),o.text("Yes",g+m,b+20*s+10*c),o.text("No",g+m+"Yes".length*r+1*d,b+20*s+10*c),C+=1*s+1*c,o.text("Prefered Activites",f,b+21*s+10*c),o.line(f+"Prefered Activites".length*r,b+21*s+10*c,y,b+21*s+10*c),o.line(f,b+22*s+10*c,y,b+22*s+10*c),C+=2*s+0*c,o.text("Drives a Car",f,b+23*s+10*c),o.text("Yes",f+m,b+23*s+11*c),o.text("No",f+m+"Yes".length*r+1*d,b+23*s+11*c),o.text("License Plate Number",v,b+23*s+10*c),o.line(v+"License Plate Number".length*r,b+23*s+10*c,y,b+23*s+10*c),o.line(v,b+24*s+10*c,y,b+24*s+10*c),C+=2*s+0*c,o.text("Spare Key Location",f,b+25*s+10*c),o.line(f+"Spare Key Location".length*r,b+25*s+10*c,y,b+25*s+10*c),o.line(f,b+26*s+10*c,y,b+26*s+10*c),C+=2*s+0*c,o.rect(x,w,k,C+30),o.addPage(),C=0,o.text("Family Involvement",f,b+0*s+0*c),o.text("None",f+m,b+0*s+1*c),o.text("Some",f+m+"None".length*r+1*d,b+0*s+1*c),o.text("Frequent",f+m+"None".length*r+"Some".length*r+2*d,b+0*s+1*c),C+=1*s+1*c,o.text("Notes",f,b+1*s+1*c),o.line(f+"Notes".length*r,b+1*s+1*c,y,b+1*s+1*c),o.line(f,b+2*s+1*c,y,b+2*s+1*c),C+=2*s+1*c,o.rect(x,w-30,k,C+30),C=0,o.text("Pain",f,b+3*s+3*c),C+=1*s+0*c,o.text("Has Pain",f,b+4*s+3*c),o.text("Yes",f+m,b+4*s+4*c),o.text("No",f+m+"Yes".length*r+1*d,b+4*s+4*c),o.text("Pain Severity",v,b+4*s+3*c),o.text("None",v+m,b+4*s+4*c),o.line(v+40+m,b+13+4*s+3*c,v+230+m,b+13+4*s+3*c),o.setFillColor(255,255,255),o.circle(v+45+m,b+13+4*s+3*c,5,"FD"),o.circle(v+65+m,b+13+4*s+3*c,5,"FD"),o.circle(v+85+m,b+13+4*s+3*c,5,"FD"),o.circle(v+105+m,b+13+4*s+3*c,5,"FD"),o.circle(v+125+m,b+13+4*s+3*c,5,"FD"),o.circle(v+145+m,b+13+4*s+3*c,5,"FD"),o.circle(v+165+m,b+13+4*s+3*c,5,"FD"),o.circle(v+185+m,b+13+4*s+3*c,5,"FD"),o.circle(v+205+m,b+13+4*s+3*c,5,"FD"),o.circle(v+225+m,b+13+4*s+3*c,5,"FD"),o.text("Extreme",v+241+m,b+4*s+4*c),C+=1*s+1*c,o.text("Pain Location",f,b+5*s+4*c),o.line(f+"Pain Location".length*r,b+5*s+4*c,y,b+5*s+4*c),C+=1*s+0*c,o.text("Pain Description",f,b+6*s+4*c),o.line(f+"Pain Description".length*r,b+6*s+4*c,y,b+6*s+4*c),o.line(f,b+7*s+4*c,y,b+7*s+4*c),C+=2*s+0*c,o.text("Max Pain Time of Day",f,b+8*s+4*c),o.line(f+"Max Pain Time of Day".length*r,b+8*s+4*c,y,b+8*s+4*c),C+=1*s+0*c,o.text("Pain Increased By",f,b+9*s+4*c),o.line(f+"Pain Increased By".length*r,b+9*s+4*c,y,b+9*s+4*c),C+=1*s+0*c,o.text("Pain Decreased By",f,b+10*s+4*c),o.line(f+"Pain Decreased By".length*r,b+10*s+4*c,y,b+10*s+4*c),C+=1*s+0*c,o.text("Pain Managed By",f,b+11*s+4*c),o.text("Medication",f+m,b+11*s+5*c),o.text("Hot Pack",f+m+"Medication".length*r+1*d,b+11*s+5*c),o.text("Cold Pack",f+m+"Medication".length*r+"Hot Pack".length*r+2*d,b+11*s+5*c),o.text("Positioning",f+m+"Medication".length*r+"Hot Pack".length*r+"Cold Pack".length*r+3*d,b+11*s+5*c),o.text("Topicals",f+m+"Medication".length*r+"Hot Pack".length*r+"Cold Pack".length*r+"Positioning".length*r+4*d,b+11*s+5*c),C+=1*s+1*c,o.text("Pain Length",f,b+12*s+5*c),o.text("New Onset",f+m,b+12*s+6*c),o.text("Chronic",f+m+"New Onset".length*r+1*d,b+12*s+6*c),C+=1*s+1*c,o.text("Notes",f,b+13*s+6*c),o.line(f+"Notes".length*r,b+13*s+6*c,y,b+13*s+6*c),o.line(f,b+14*s+6*c,y,b+14*s+6*c),C+=2*s+1*c,o.rect(x,b+3*s+2*c,k,C),C=0,o.text("Bathing",f,b+15*s+8*c),C+=1*s+0*c,o.text("Type of Bathing",f,b+16*s+8*c),o.text("Shower",f+m,b+16*s+9*c),o.text("Bathtub",f+m+"Shower".length*r+1*d,b+16*s+9*c),o.text("Spit Bath",f+m+"Shower".length*r+"Bathtub".length*r+2*d,b+16*s+9*c),C+=1*s+1*c,o.text("Time of Bathing",f,b+17*s+9*c),o.text("Morning",f+m,b+17*s+10*c),o.text("Evening",f+m+"Morning".length*r+1*d,b+17*s+10*c),o.text("Before Breakfast",f+m+"Morning".length*r+"Evening".length*r+2*d,b+17*s+10*c),o.text("After Breakfast",f+m+"Morning".length*r+"Evening".length*r+"Before Breakfast".length*r+3*d,b+17*s+10*c),o.text("Before Supper",f+m+"Morning".length*r+"Evening".length*r+"Before Breakfast".length*r+"After Breakfast".length*r+4*d,b+17*s+10*c),o.text("After Supper",f+m,b+18*s+10*c),C+=1*s+2*c,o.text("Frequency of Bathing",f,b+19*s+10*c),o.text("None",f+m,b+19*s+11*c),o.text("Once a Week",f+m+"None".length*r+1*d,b+19*s+11*c),o.text("Twice a Week",f+m+"None".length*r+"Once a Week".length*r+2*d,b+19*s+11*c),o.text("Every Other Day",f+m+"None".length*r+"Once a Week".length*r+"Twice a Week".length*r+3*d,b+19*s+11*c),o.text("Every Day",f+m+"None".length*r+"Once a Week".length*r+"Twice a Week".length*r+"Every Other Day".length*r+4*d,b+19*s+11*c),C+=1*s+1*c,o.text("Bathing Days",f,b+20*s+11*c),o.line(f+"Bathing Days".length*r,b+20*s+11*c,y,b+20*s+11*c),o.line(f,b+21*s+11*c,y,b+21*s+11*c),C+=2*s+0*c,o.text("Acceptance of Bathing",f,b+22*s+11*c),o.text("Likes",f+m,b+22*s+12*c),o.text("Dislikes",f+m+"Likes".length*r+1*d,b+22*s+12*c),o.text("Refuses",f+m+"Likes".length*r+"Dislikes".length*r+2*d,b+22*s+12*c),o.text("Indifferent",f+m+"Likes".length*r+"Dislikes".length*r+"Refuses".length*r+3*d,b+22*s+12*c),C+=1*s+1*c,o.text("Dislikes/Refuses Bathing Description",f,b+23*s+12*c),o.line(f+"Dislikes/Refuses Bathing Description".length*r,b+23*s+12*c,y,b+23*s+12*c),o.line(f,b+24*s+12*c,y,b+24*s+12*c),C+=2*s+0*c,o.rect(x,b+15*s+7*c,k,C+50),o.addPage(),C=0,o.text("Bathing Assist",f,b+0*s+0*c),o.text("Full Assistance",f+m,b+0*s+1*c),o.text("Partial Assistance",f+m+"Full Assistance".length*r+1*d,b+0*s+1*c),o.text("Standby",f+m+"Full Assistance".length*r+"Partial Assistance".length*r+2*d,b+0*s+1*c),o.text("Reminder",f+m+"Full Assistance".length*r+"Partial Assistance".length*r+"Standby".length*r+3*d,b+0*s+1*c),C+=1*s+1*c,o.text("Bathing Notes",f,b+1*s+1*c),o.line(f+"Bathing Notes".length*r,b+1*s+1*c,y,b+1*s+1*c),o.line(f,b+2*s+1*c,y,b+2*s+1*c),C+=2*s+1*c,o.rect(x,w-20,k,C+20),o.save("Blank Careplan.pdf")}return{exportPdf:n}}angular.module("app.core").service("exportBlankCarePlan",e),e.$inject=["$filter","imageData"]}(),function(){function e(e,t,n){function a(t){var a=new jsPDF("p","pt","letter"),o="Issue "+t.title+".pdf",s=0,l=e("date"),r=l(t.submitDate,"MMM d, yyyy"),d=null,c=610/84;n.debug(t),t.due&&(d=l(moment(parseInt(t.currdue)).toDate(),"MMM d, yyyy")),a.setFontSize(20),a.setTextColor(33,33,33),a.setFont("courier"),a.setFontType("normal"),a.setLineWidth(1),a.text(40,40+s,t.title),a.setFontSize(12),a.text(40,60+s,"Created by "+t.submitBy.name+" on "+r),s+=12,a.text(40,72+s,"Status:"),a.text(170,72+s,t.status),a.text(40,84+s,"Timeframe:"),a.text(170,84+s,t.resolutionTimeframe),a.text(40,96+s,"Responsibe Party:"),a.text(170,96+s,t.responsibleParty.name),t.due&&(a.text(40,108+s,"Due Date:"),a.text(170,108+s,d),s+=12),a.setFillColor(33,150,243),a.roundedRect(188,112+s,224,18,7,7,"F"),i(590,121,420,a,s),i(180,121,30,a,s),a.setFontType("bold"),a.text(260,124+s,"Description"),a.setFontType("normal");var m=580,u=a.splitTextToSize(t.description,m);a.text(20,142+s,u),s=14*u.length||s,a.setFillColor(33,150,243),a.roundedRect(188,148+s,224,18,7,7,"F"),i(590,157,420,a,s),i(180,157,30,a,s),a.setFontType("bold"),a.text(268,160+s,"Checklists"),a.setFontType("normal"),t.checklists?t.checklists.forEach(function(e){console.log(e);var n=e.author?e.author.name:t.submitBy.name;a.text(20,178+s,e.checklistName+" created by "+n+" on "+l(e.createdOn,"MMM d, yyyy")),s+=12,e.checkItems.forEach(function(e){e.checked?(a.rect(20,170+s,10,10,"F"),a.setDrawColor(255,255,255),a.line(21,175+s,24,178+s),a.line(24,178+s,28,171+s),a.setDrawColor(0),a.line(34,176+s,34+e.name.length*c,176+s),a.text(34,178+s,e.name),s+=12):(a.rect(20,170+s,10,10),a.text(34,178+s,e.name),s+=12)}),s+=12}):(a.text(20,178+s,"No Checklists Created"),s+=12),a.setFillColor(33,150,243),a.roundedRect(188,184+s,224,18,7,7,"F"),i(590,193,400,a,s),i(180,193,30,a,s),a.setFontType("bold"),a.text(278,196+s,"Comments"),a.setFontType("normal");for(var p=78,g=0,v=0;v<t.comments.length;++v){var h=t.comments[v];if(n.debug(h),a.text(20,226+s+36*v+g,h.author.name+" on "+l(h.createdOn,"h:mm a MMM d, yyyy")),h.commentText.length>p){for(var f=Math.floor(h.commentText.length/p),b=0;f>b;++b){var y="";0===b&&(y=""),a.text(20,238+s+36*v+12*b+g,y+h.commentText.substr(b*p,p))}g=12*f,s+=12*f}else a.text(20,238+s+36*v+g,h.commentText)}a.save(o)}function i(e,t,n,a,i){var o=[],s=10;o=e>n?_.range(n-s,e+s,s):_.range(e-s,n+s,s),o.forEach(function(e){a.ellipse(e,t+i,2,2,"F")})}return{exportPdf:a}}angular.module("app.core").service("exportIssueDetail",e),e.$inject=["$filter","imageData","$log"]}(),function(){"use strict";function e(){function e(e,t,n){var a=20,i=100;e.text("Exported on",a,n),n+=20,e.text(moment().format("d MMM YYYY"),a,n),e.rect(110,10,100,100),a=120,e.text("place holder",a,50),e.text("for logo",a,62),a=220,n-=15;var o=t.community.name?t.community.name:"Test Community";e.text(o,a,n),n+=20,e.text("Phone: ",a,n);var s=t.community.phone?t.community.phone:"Enter a Phone Number";e.text(s,a+i,n),n+=20,e.text("Fax: ",a,n);var l=t.community.fax?t.community.fax:"Enter a Fax Number";e.text(l,a+i,n),n+=20,e.text("Address: ",a,n);var r=t.community.address?t.community.address:"Enter an Address";e.text(r,a+i,n),n+=20,e.text("Website: ",a,n);var d=t.community.website?t.community.website:"Enter a Website";return e.text(d,a+i,n),n}return{drawHeader:e}}angular.module("app.core").service("header",e)}(),function(){"use strict";function e(){function e(e,t,n,a,o,s){var l=610/84;if(t&&t.length>0){var r=166,d=290,c=_.max(_.map(t,"data")),m=_.min(_.map(t,"data"));if(!c)return;var u=moment(t[t.length-1].date).utc(),p=moment(t[0].date).utc(),g=(r-10)/(c-m),v=d/(u-p);for(i=0;i<t.length;i++)e.setFillColor(255,0,0),e.setDrawColor(255,0,0),e.circle(a+(moment(t[i].date).utc()-p)*v,r+o-(t[i].data-m)*g,3,"F"),i!==t.length-1&&e.line(a+(moment(t[i].date).utc()-p)*v,o+r-(t[i].data-m)*g,a+(moment(t[i+1].date).utc()-p)*v,o+r-(t[i+1].data-m)*g);var h;h=n,e.setFontType("bold"),e.text(h,a+296-h.length*l,o+6),e.setFontType("normal"),e.text(c.toString()+" "+s,a+4,o+6),e.text(((c-m)/2+m).toString()+" "+s,a+4,o+97),e.text(m.toString()+" "+s,a+4,o+188);var f=(u-p)/2+p;e.text(moment(f).format("MMM D"),a+128,o+178),e.text(moment(f).format("YYYY"),a+128,o+188),e.text(u.format("MMM D"),a+254,o+178),e.text(u.format("YYYY"),a+254,o+188)}e.setFillColor(0,0,0),e.setDrawColor(0,0,0)}return{drawGraph:e}}angular.module("app.core").service("graphs",e)}(),function(){function e(){function e(e,t,n){var a=new jsPDF("p","pt");a.autoTable(e,t,{addPageContent:function(e){a.text("Appointments for "+n,170,30)}}),a.save(n+"-Appointments.pdf")}return{exportPdf:e}}angular.module("app.core").service("exportAppointments",e)}(),function(){function e(e,t,n){function a(e,a){var s=new jsPDF("p","pt","letter");s.setFont("courier"),s.setFontType("normal"),s.setFontSize(12),s.setLineWidth(1);var d=20,c=610/84;d=n.drawHeader(s,a,d),d=o(s,a,d);var m=0,u=0,p=15,g=7,v=s.internal.pageSize.height-310,h=i(s,a.calendar.appointmentComment,p);s.setFontSize(12),h>v&&(s.setFontSize(11),p=12.5,g=6,h=i(s,a.calendar.appointmentComment,p),h>v&&s.setFontSize(10)),a.calendar.appointmentComment.forEach(function(e,t){m=l(s,e,m,p,g,u)}),s.setFontSize(12),u>0&&s.text(u.toString()+"  additional comments",40,290),s.text("Notes",10,384),s.line("Notes".length*c+10,384,600,384),s.line(10,408,600,408),s.line(10,432,600,432),s.line(10,456,600,456),s.line(10,480,600,480),s.line(10,504,600,504),s.line(10,528,600,528),s.line(10,552,600,552),s.text("RX",10,600),s.line("RX".length*c+10,600,600,600),s.line(10,624,600,624),s.line(10,648,600,648),s.line(10,672,600,672),s.line(10,696,600,696),s.line(10,720,600,720),s.text("Physician",10,768),s.text("Signature",10,780),s.line("Signature".length*c+10,780,400,780),s.text("Date",410,780),s.line("Date".length*c+410,780,600,780),s.addPage(),s.setFont("courier"),s.setFontType("normal"),s.setFontSize(12),s.setLineWidth(1),s.line(305,0,305,800),s.line(0,201,610,201),s.line(0,397,610,397),s.line(0,593,610,593),s.setFontType("bold"),s.setTextColor(255,0,0),s.text("Diastolic",610-"Diastolic".length*c,614),s.setTextColor(0,0,0),t.drawGraph(s,a.calendar.residentGoing.temperature,"Temperature",6,10,a.tempUnit),t.drawGraph(s,a.calendar.residentGoing.oxygenSaturation,"Oxygen Saturation",6,206,"%"),t.drawGraph(s,a.calendar.residentGoing.pulse,"Pulse",6,402,"BPM"),t.drawGraph(s,a.calendar.residentGoing.vitalsPain,"Pain",6,598," "),t.drawGraph(s,a.calendar.residentGoing.respiration,"Respiration",314,10,"BPM"),t.drawGraph(s,a.calendar.residentGoing.weight,"Weight",314,206,a.weightUnit),t.drawGraph(s,a.calendar.residentGoing.internationalNormalizedRatio,"INR",314,402," "),t.drawGraph(s,a.calendar.residentGoing.bloodPressureDiastolic,"Blood Pressure",314,598,"mmHg"),s.save(e),r=20}function i(e,t,n){var a=0;return t.forEach(function(t,i){var o=e.splitTextToSize(t.commentText,420);a+=o.length*n}),a}function o(e,t,n){var a=594/98,i=594/70,o=moment().isoWeekday()-1,l=t.calendar.currentUser.aliasName||t.calendar.currentUser.firstName,r=l+" "+t.calendar.currentUser.lastName;n+=24;var d=t.calendar.locationName.name||t.calendar.locationName,c="Appointment for "+r+" to "+d,m="Appointment for "+r+" to ",u=(m.length+1)*i;if(e.setFontSize(14),e.text(c,10,n),t.calendar.locationName.name){d=t.calendar.locationName.name;var p=t.calendar.locationName.formatted_phone_number||"Phone Number: ",g=t.calendar.locationName.formatted_address||"Address";g=s(g);var v="Working hours";t.calendar.locationName.opening_hours&&t.calendar.locationName.opening_hours.weekday_text&&(v=t.calendar.locationName.opening_hours.weekday_text[o]),e.setFontSize(10),e.text(g,u,n+14),e.text(p,u,n+38),e.text(v,u,n+50)}e.setFontSize(10),n+=14,e.text("Reason:",90-"Reason:".length*a,n),e.text(t.calendar.reason,94,n),n+=12,e.text("Doctor:",90-"Doctor:".length*a,n),e.text(t.calendar.locationDoctor,94,n),n+=12;var h=t.calendar.isAm?"am":"pm",f=moment(t.calendar.appointmentDate).format("Do MMMM YYYY");return e.text("Time:",90-"Time:".length*a,n),e.text(t.calendar.hours+":"+t.calendar.minutes+" "+h+", "+f,94,n),n+=12,e.text("Transporting:",90-"Transporting:".length*a,n),e.text(t.calendar.transportation,94,n),e.setFontSize(12),n}function s(e){var t=e.split(",");return t.length>=2&&(e=[t[0]],t.shift(),e.push(t.toString())),e}function l(e,t,n,a,i,o){var s=e.splitTextToSize(t.commentText,420),l=n+s.length*a+310;if(l<e.internal.pageSize.height){var r=t.author.name+" on "+moment(t.createdOn).format("DD MMM")+": ",d=r.length*i;return e.text(r,40,310+n),e.text(s,45+d,310+n),n+=s.length*a}o++}var r=20;return{exportPdf:a}}angular.module("app.core").service("exportAppointDetail",e),e.$inject=["imageData","graphs","header"]}(),function(){function e(e,t){function n(){return{changeUsername:o,usersInCommunity:s,userCommunity:l,forgotPassword:r,resetPassword:d,verifyEmail:c,getUser:m,saveCreditCard:u,getCustomer:p,cancelSubscription:g,updateCustomer:v}}function a(e){h=e}function i(){return{headers:{Authorization:"Bearer "+t.getToken()}}}var o=function(t,n){return e.put(h+"/api/users/change/"+t,n,i())},s=function(t){return e.get(h+"/api/users/list/"+t,i())},l=function(t){return e.get(h+"/api/users/community/"+t,i())},r=function(t){return e.post(h+"/api/users/forgotpassowrd/"+t)},d=function(t,n){return e.post(h+"/api/users/reset/"+t,n)},c=function(t){return e.post(h+"/api/users/verify/"+t)},m=function(t){return e.get(h+"/api/users/getuser/"+t,i())},u=function(t,n){return e.post(h+"/api/users/"+t+"/savecard",n,i())},p=function(t){return e.get(h+"/api/users/"+t+"/customer",i())},g=function(t){return e["delete"](h+"/api/users/"+t+"/subscription",i())},v=function(t,n){return e.put(h+"/api/users/"+t+"/update",n,i())},h="";return{setApiUrl:a,getUsersRoutes:n}}angular.module("app.core").service("UsersApi",e),e.$inject=["$http","authentication"]}(),function(){function e(e,t){function n(){
  return{listTasks:o,activeTasksCount:s,addTask:l,updateTask:r,deleteTask:d}}function a(e){c=e}function i(){return{headers:{Authorization:"Bearer "+t.getToken()}}}var o=function(t){return e.get(c+"/api/todos/"+t,i())},s=function(t){return e.get(c+"/api/todos/"+t+"/activecount",i())},l=function(t,n){return e.post(c+"/api/todos/"+t,n,i())},r=function(t,n,a){return e.put(c+"/api/todos/"+t+"/task/"+n,a,i())},d=function(t,n){return e["delete"](c+"/api/todos/"+t+"/task/"+n,i())},c="";return{setApiUrl:a,getTodosRoutes:n}}angular.module("app.core").service("TodosApi",e),e.$inject=["$http","authentication"]}(),function(){function e(e,t){function n(){return{residentsList:o,residentsFullList:s,addResident:l,residentById:r,updateResident:d,residentCount:c,averageAge:m,averageStayTime:u,getLocations:p,updateListItem:g,addContact:v,deleteResident:h}}function a(e){f=e}function i(){return{headers:{Authorization:"Bearer "+t.getToken()}}}var o=function(t){return e.get(f+"/api/residents/list/"+t,i())},s=function(t){return e.get(f+"/api/residents/full-list/"+t,i())},l=function(t){return e.post(f+"/api/residents/new",t,i())},r=function(t){return e.get(f+"/api/residents/"+t,i())},d=function(t,n){return e.put(f+"/api/residents/update/"+t,n,i())},c=function(t){return e.get(f+"/api/residents/count/"+t,i())},m=function(t){return e.get(f+"/api/residents/average_age/"+t,i())},u=function(t){return e.get(f+"/api/residents/average_stay/"+t,i())},p=function(t){return e.get(f+"/api/residents/"+t+"/locations",i())},g=function(t,n){return e.put(f+"/api/residents/"+t+"/listitem",n,i())},v=function(t,n){return e.post(f+"/api/residents/"+t+"/contact",n,i())},h=function(t){return e["delete"](f+"/api/residents/"+t,i())},f="";return{setApiUrl:a,getResidentsRoutes:n}}angular.module("app.core").service("ResidentsApi",e),e.$inject=["$http","authentication"]}(),function(){function e(e,t){function n(){return{issuesList:o,issueById:s,addIssue:r,addIssueCommentById:v,updateIssue:d,listIssueByUsername:l,addLabelToCard:m,createLabel:c,deleteLabel:p,removeLabelFromCard:u,updateIssueLabel:g,addCheckList:b,updateCheckList:y,issueCommentsUpdate:f,deleteCheckList:x,addFinalPlan:k,deleteAttachment:w,openIssuesCount:C,deleteIssue:S,issuesCount:A,issueCommentsList:h,dueIssuesList:N,issueUpdateInfo:D,addUpdateInfo:T,updateFinalPlan:R,createIssueRecovery:M,verifyPassword:P,issuePopulateOne:I,restoreAttachment:O,updateConfidential:E}}function a(e){F=e}function i(){return{headers:{Authorization:"Bearer "+t.getToken()}}}var o=function(t,n){return e.get(F+"/api/issues/list/"+t+"/id/"+n,i())},s=function(t){return e.get(F+"/api/issues/"+t,i())},l=function(t,n,a){return e.get(F+"/api/issues/"+t+"/s/"+n+"/id/"+a,i())},r=function(t){return e.post(F+"/api/issues/new",t,i())},d=function(t,n){return e.put(F+"/api/issues/"+t,n,i())},c=function(t,n){return e.post(F+"/api/issues/labels/"+t,n,i())},m=function(t,n){return e.post(F+"/api/issues/"+t+"/labels/"+n._id,n,i())},u=function(t,n){return e["delete"](F+"/api/issues/"+t+"/labels/"+n,i())},p=function(t,n){return e["delete"](F+"/api/community/"+t+"/labels/"+n,i())},g=function(t,n,a){return e.put(F+"/api/issues/"+t+"/labels/"+n,a,i())},v=function(t,n){return e.post(F+"/api/issues/"+t+"/comments/new",n,i())},h=function(t){return e.get(F+"/api/issues/"+t+"/comments/",i())},f=function(t,n){return e.put(F+"/api/issues/"+t+"/comments/update",n,i())},b=function(t,n){return e.post(F+"/api/issues/"+t+"/checklists/new",n,i())},y=function(t,n,a){return e.put(F+"/api/issues/"+t+"/checklists/"+n,a,i())},x=function(t,n){return e["delete"](F+"/api/issues/"+t+"/checklists/"+n,i())},w=function(t,n,a){return e["delete"](F+"/api/issues/"+t+"/attachments/"+n,i())},k=function(t,n){return e.put(F+"/api/issues/"+t+"/finalplan",n,i())},C=function(t,n){return e.get(F+"/api/issues/count/"+t+"/id/"+n,i())},S=function(t){return e["delete"](F+"/api/issues/"+t,i())},A=function(t){return e.get(F+"/api/issues/issuescount/"+t,i())},N=function(t){return e.get(F+"/api/issues/due/"+t,i())},D=function(t){return e.get(F+"/api/issues/"+t+"/updateinfo",i())},T=function(t,n){return e.put(F+"/api/issues/"+t+"/updateinfo",n,i())},R=function(t,n,a){return e.put(F+"/api/issues/"+t+"/plan/"+n,a,i())},I=function(t){return e.get(F+"/api/issues/"+t+"/populate",i())},M=function(t,n){return e.post(F+"/api/issues/recovery/"+n,t,i())},P=function(t,n){return e.post(F+"/api/issues/recovery/verify/"+n,t,i())},O=function(t,n){return e.put(F+"/api/issues/"+t+"/attachments/restore",n,i())},E=function(t,n){return e.put(F+"/api/issues/"+t+"/confidential",n,i())},F="";return{setApiUrl:a,getIssueRoutes:n}}angular.module("app.core").service("IssuesApi",e),e.$inject=["$http","authentication"]}(),function(){function e(e,t){function n(){return{addCommunity:o,communityList:s,acceptMember:l,addPendingMember:r,declineMember:d,addRole:c,updateFloor:m,addFloor:u,removeMember:p,deleteRoomStyle:g,hasCanceledCommunity:v,restoreCommunity:h,updateContactAndRoomInfo:f,createRoomStyle:b,updateRoomStyle:y,updateUnits:x}}function a(e){w=e}function i(){return{headers:{Authorization:"Bearer "+t.getToken()}}}var o=function(t){return e.post(w+"/api/communities/new",t)},s=function(t){return e.get(w+"/api/communities/",i())},l=function(t,n){return e.put(w+"/api/communities/accept/"+n,t,i())},r=function(t,n){return e.put(w+"/api/communities/pending/"+n,t,i())},d=function(t,n){return e.put(w+"/api/communities/decline/"+n,t,i())},c=function(t,n,a){return e.post(w+"/api/communities/"+t+"/role/"+n,a,i())},l=function(t,n){return e.put(w+"/api/communities/accept/"+n,t,i())},m=function(t,n){return e.put(w+"/api/communities/"+t+"/floor",n,i())},u=function(t,n){return e.post(w+"/api/communities/"+t+"/floor",n,i())},p=function(t,n){return e["delete"](w+"/api/communities/"+t+"/user/"+n,i())},g=function(t,n){return e["delete"](w+"/api/communities/"+t+"/roomstyle/"+n,i())},v=function(t){return e.get(w+"/api/communities/canceled/"+t,i())},h=function(t,n){return e.post(w+"/api/communities/"+n+"/restore/"+t,{},i())},f=function(t,n){return e.put(w+"/api/communities/"+t+"/contactinfo",n,i())},b=function(t,n){return e.post(w+"/api/communities/"+t+"/roomstyle",n,i())},y=function(t,n){return e.put(w+"/api/communities/"+t+"/roomstyle/"+n._id,n,i())},x=function(t,n){return e.put(w+"/api/communities/"+t+"/units",n,i())},w="";return{setApiUrl:a,getCommunitiesRoutes:n}}angular.module("app.core").service("CommunitiesApi",e),e.$inject=["$http","authentication"]}(),function(){function e(e,t){function n(){return{appointmentsList:o,appointmentById:l,addAppointment:r,updateAppointment:d,addAppointmentCommentById:c,appointmentsListByMonth:s,appointmentsToday:m}}function a(e){u=e}function i(){return{headers:{Authorization:"Bearer "+t.getToken()}}}var o=function(t,n){return e.get(u+"/api/appointments/"+t+"/month/"+n,i())},s=function(t){return e.get(u+"/api/appointments/"+t,i())},l=function(t){return e.get(u+"/api/appointments/"+t,i())},r=function(t){return e.post(u+"/api/appointments/new",t,i())},d=function(t,n){return e.put(u+"/api/appointments/update/"+t,n,i())},c=function(t,n){return e.post(u+"/api/appointments/"+t+"/comments/",n,i())},m=function(t){return e.get(u+"/api/appointments/today/"+t,i())},u="";return{setApiUrl:a,getAppointmentsRoutes:n}}angular.module("app.core").service("AppointmentsApi",e),e.$inject=["$http","authentication"]}(),function(){"use strict";function e(e,t,n){function a(){t.location.reload()}function i(){e.hide()}var o=this;o.communityName=n,o.cancelDialog=i,o.refreshPage=a}e.$inject=["$mdDialog","$window","communityName"],angular.module("app.quick-panel").controller("MemberAcceptedController",e)}(),function(){"use strict";function e(e,t,n,a,i,o,s,l,r,d,c){function m(){r.listTasks(I.todoid).success(function(e){I.tasks=e,I.completed=[],I.notCompleted=[],I.currTasks=[],b(e),i.$broadcast("is_loading",!1)}).error(function(e){n.debug(e)})}function u(n,a){t.show({controller:"TaskDialogController",controllerAs:"vm",templateUrl:"app/main/todo/dialogs/task/task-dialog.html",parent:angular.element(e.body),targetEvent:n,clickOutsideToClose:!0,locals:{Task:a,Tasks:I.tasks,event:n}}).then(function(e){e||m()})}function p(e,t){t.stopPropagation(),e.state="complete",_.remove(I.currTasks,{_id:e._id}),I.completed.push(e),y(e)}function g(e){"completed"===e?(I.currTasks=I.completed,I.selectedCategory="completed"):"notcompleted"===e?(I.currTasks=I.notCompleted,I.selectedCategory="notcompleted"):"tasks"===e?(m(),I.selectedCategory="tasks"):"all-tasks"===e&&(I.selectedCategory="all-tasks",I.currTasks=I.allTasks)}function v(e){r.deleteTask(I.todoid,e._id).success(function(e){m()}).error(function(e){n.debug(e)})}function h(e,t){e.stopPropagation(),t.showHistory=!t.showHistory}function f(){var e={tasks:I.allTasks,community:l.currentUser().community,username:l.currentUser().name};o.exportPdf(e)}function b(e){I.allTasks=e,"all-tasks"===I.selectedCategory?I.currTasks=e:angular.forEach(I.tasks,function(e){"current"===e.state&&I.currTasks.push(e)}),angular.forEach(I.tasks,function(e){e.completed.length>0&&I.completed.push(e),e.notCompleted.length>0&&I.notCompleted.push(e)})}function y(e){r.updateTask(I.todoid,e._id,e).success(function(t){for(var n=0;n<I.tasks.length;++n)if(I.tasks[n]._id===e._id){I.tasks[n].completed.length!==t.completed.length&&x("completed",t);break}}).error(function(e){n.debug(e)})}function x(e,t){for(var n=!1,a=0;a<I[e].length;++a)if(I[e][a]._id===t._id){I[e][a][e].push({updatedOn:moment().toDate()}),n=!0;break}n||I[e].push(t)}function w(e){a(e).toggle()}function k(){angular.forEach(I.tasks,function(e){e.startDate&&(e.startDate=new Date(e.startDate),e.startDateTimestamp=e.startDate.getTime()),e.dueDate&&(e.dueDate=new Date(e.dueDate),e.dueDateTimestamp=e.dueDate.getTime())})}function C(e){e.preventDefault(),e.stopPropagation()}function S(e){I.taskFilters[e]=!I.taskFilters[e],D()}function A(e){""===I.taskFilters[e]?I.taskFilters[e]=!0:I.taskFilters[e]="",D()}function N(){I.showAllTasks=!0,I.taskFilters=angular.copy(I.taskFiltersDefaults)}function D(){I.showAllTasks=!!angular.equals(I.taskFiltersDefaults,I.taskFilters)}function T(e){return I.taskFilters.startDate===!0?e.startDate===new Date:!0}function R(e){return I.taskFilters.dueDate===!0?!(null===e.dueDate||0===e.dueDate.length):!0}var I=this;i.$broadcast("is_loading",!0),I.tasks=[],I.allTasks=[],I.completed=[],I.notCompleted=[],I.currTasks=[];I.selectedCategory="tasks",I.todoid=l.currentUser().todoid,I.selectedFilter={filter:"Start Date",dueDate:"Next 3 days"},I.taskFilters={search:"",completed:"",deleted:!1,important:"",starred:"",startDate:"",dueDate:""},I.taskFiltersDefaults=angular.copy(I.taskFilters),I.showAllTasks=!0,I.taskOrder="",I.taskOrderDescending=!1,I.sortableOptions={handle:".handle",forceFallback:!0,ghostClass:"todo-item-placeholder",fallbackClass:"todo-item-ghost",fallbackOnBody:!0,sort:!0},I.msScrollOptions={suppressScrollX:!0},I.preventDefault=C,I.openTaskDialog=u,I.completeTask=p,I.toggleSidenav=w,I.toggleFilter=S,I.toggleFilterWithEmpty=A,I.filterByStartDate=T,I.filterByDueDate=R,I.resetFilters=N,I.setCurrentTasks=g,I.deleteTask=v,I.showActiveDays=s.showActiveDays,I.showActiveMonths=s.showActiveMonths,I.showActiveWeeks=s.showActiveWeeks,I.toggleHistory=h,I.startExport=f,k(),m()}e.$inject=["$document","$mdDialog","$log","$mdSidenav","$rootScope","exportToDo","ToDoService","authentication","apilaData","ToDoUtilsService","msNavigationService"],angular.module("app.todo").controller("TodoController",e)}(),function(){"use strict";function e(e,t,n,a,i,o,s,l,r,d,c,m,u,p,g,v,h,f,b,y,x){function w(e,t){for(var n=e;n>=0;--n)if("\n"===t.searchString[n])return n+1;return e}function k(e){var t=angular.copy(e),n=t.toLowerCase().replace(/ /g,"");return"carepoints"===n||"age"===n?!0:!1}function C(e){return $.allResidents.filter(function(t){var n=t.buildingStatus;return t.fieldType=n,-1!==e.indexOf(n)?!0:!1})}function S(e){p.residentsFullList(e).success(function(e){$.allResidents=e,$.residentList=e.slice(0,100),$.originalList=angular.copy($.residentList),i.$broadcast("is_loading",!1)}).error(function(e){r.debug("Error Retrieving the List of Residents")})}function A(e){e&&(console.log(e),p.residentById(e._id).success(function(e){e.submitName=e.submitBy.name,e.submitBy=e.submitBy._id,$.selectedResident=e;var t=_.filter($.selectedResident.residentContacts,function(t){return t._id===e.handlesFinances?!0:void 0});t.length>0?$.handlesFinances=t[0].firstName+" "+t[0].lastName:$.handlesFinances="",$.shownContact=e.residentContacts[0],F($.selectedResident),$.updateInfoList=x.formatUpdateArray($.selectedResident.updateInfo,$.selectedResident),$.selectedResident.movedFrom&&($.latitude=$.selectedResident.movedFrom.latitude,$.longitude=$.selectedResident.movedFrom.longitude),$.movedFromMap={center:{latitude:$.latitude,longitude:$.longitude},zoom:8,marker:{id:0,coords:{latitude:$.latitude,longitude:$.longitude}}},n(function(){angular.isDefined($.responsiveReadPane)&&$.responsiveReadPane&&($.activeMailPaneIndex=1),$.scrollPos=$.scrollEl.scrollTop(),$.scrollEl.scrollTop(0)})}))}function N(){return null===$.selectedResident?(u.show(u.simple().textContent("Please Select a Resident to Export").position("top right").hideDelay(2e3)),!1):!0}function D(){if(N()){var e={};for(var t in $.selectedResident)$.selectedResident.hasOwnProperty(t)&&(e[t]=$.selectedResident[t]);e.communityName=$.community.name,e.community=$.community,e.tempUnit="Celsius"===$.community.tempUnit?"C":"F",e.weightUnit="Pounds"===$.community.weightUnit?"lbs":"kg",v.exportPdf(e)}}function T(){p.residentsFullList($.community._id).success(function(e){var t=_.filter(e,["buildingStatus","In Building"]);0===t.length?u.show(u.simple().textContent("There aren't any In Building Residents").position("top right").hideDelay(2e3)):h.exportPdf(e,t,$.community)})}function R(){if(N()){var e=$.selectedResident;e.community=$.community,f.exportPdf(e)}}function I(){b.exportPdf($.selectedResident)}function M(e,n){var a=$.selectedCategory;e&&p.residentById(e._id).success(function(n){if(n.submitName=n.submitBy.name,n.submitBy=n.submitBy._id,$.selectedResident=n,A(e),"Updates"===$.selectedCategory)return void u.show(u.simple().textContent("Updates category is not available to update").position("top right").hideDelay(2e3));var i="app/main/residents/dialogs/update/update-"+a.replace(/\s+/g,"")+".html";o.show({controller:"UpdateController",controllerAs:"vm",locals:{currResident:$.selectedResident,residentDisplay:e,category:a},templateUrl:i,parent:angular.element(t.body),targetEvent:e,clickOutsideToClose:!0}).then(function(t){if(t){if(t._id){var n=_.findIndex($.residentList,{_id:t._id});$.residentList[n]=t,n=_.findIndex($.allResidents,{_id:t._id}),$.allResidents[n]=t,n=_.findIndex($.originalList,{_id:t._id}),$.originalList[n]=t}if("deleted"===t)return $.selectedResident=null,_.remove($.residentList,{_id:e._id}),_.remove($.allResidents,{_id:e._id}),_.remove($.originalList,{_id:e._id}),void u.show(u.simple().textContent("You removed "+e.firstName+" "+e.lastName).position("top right").hideDelay(2e3));e.firstName=t.firstName,e.lastName=t.lastName,e.aliasName=t.aliasName,p.residentById(e._id).success(function(e){e.submitName=e.submitBy.name,e.submitBy=e.submitBy._id,$.selectedResident=e,$.updateInfoList=x.formatUpdateArray($.selectedResident.updateInfo,$.selectedResident)})}})})}function P(e){o.show({controller:"ComposeDialogController",controllerAs:"vm",locals:{resList:$.residentList},templateUrl:"app/main/residents/dialogs/compose/compose-dialog.html",parent:angular.element(t.body),targetEvent:e,clickOutsideToClose:!0})}function O(e){o.show({controller:"ComposeDialogController",controllerAs:"vm",locals:{selectedResident:$.selectedResident},templateUrl:"app/main/residents/dialogs/compose/compose-dialog.html",parent:angular.element(t.body),targetEvent:e,clickOutsideToClose:!0})}function E(e,t){var n=_.map(e,"data"),a=_.map(e,function(e){return moment(e.date).format("MMM Do YY")}),i={labels:a,series:[t],data:[n]};return i}function F(e){$.vitalsCharts=[];var t=_.map(e.bloodPressureDiastolic,"data"),n=_.map(e.bloodPressureDiastolic,function(e){return moment(e.date).format("MMM Do YY")}),a=_.map(e.bloodPressureSystolic,"data");$.bloodPresureChart={labels:n,series:["Blood Pressure Diastolic","Blood Pressure Systolic"],data:[t,a]},$.vitalsCharts.push(E(e.temperature,"Temperature")),$.vitalsCharts.push($.bloodPresureChart),$.vitalsCharts.push(E(e.bloodPressureDiastolic,"Blood Pressure Diastolic")),$.vitalsCharts.push(E(e.oxygenSaturation,"Oxygen Saturation")),$.vitalsCharts.push(E(e.pulse,"Pulse")),$.vitalsCharts.push(E(e.vitalsPain,"Vitals Pain")),$.vitalsCharts.push(E(e.respiration,"Respiration")),$.vitalsCharts.push(E(e.weight,"Weight")),$.vitalsCharts.push(E(e.internationalNormalizedRatio,"INR"))}var $=this;i.$broadcast("is_loading",!0),$.checked=[],$.updateInfoList=[],$.colors=["blue-bg","blue-grey-bg","orange-bg","pink-bg","purple-bg"],$.selectedAccount="creapond",$.selectedResident=null,$.responsiveReadPane=void 0,$.activeMailPaneIndex=0,$.dynamicHeight=!1,$.selectedCategory="Administrative";var L="Age",B="Care Points";$.latitude=-1,$.longitude=-1,$.spinner=a;$.numericSearch=!1,$.toggleNumeric=!0;var U=13;$.scrollPos=0,$.scrollEl=angular.element("#content"),$.selectedMailShowDetails=!1,$.userid=g.currentUser().id,$.categoryList=["Administrative","Allergy","Assistance","Bathing","Incontinent","Life","Mobility","Nutrition","Pain","Physical Condition","Psychosocial","Sleep","Vitals","Contacts","Updates"],$.replaceNumberValue=l.replaceNumberValue,$.selectResident=A,$.updateResident=M,$.exportCarePlan=D,$.exportCensus=T,$.exportResidentFaceSheet=R,$.exportBlankPlan=I,$.replyDialog=O,$.composeDialog=P,$.switchCategory=function(e){$.selectedCategory=e},$.displayName=function(e){return e.aliasName?e.firstName+' "'+e.aliasName+'" '+e.lastName:e.firstName+" "+e.lastName};var H=100;$.showMore=function(){if(!($.residentList.length<100||$.residentList.length===$.allResidents.length)&&$.residentList.length<=H){var e=$.allResidents.length-H;e=100>e?e:100,$.residentList=$.residentList.concat($.allResidents.slice(H,H+e)),H+=e}},$.clearSearch=function(){""===$.search&&($.residentList=$.originalList)},$.applyBooleanFilter=function(){$.toggleBoolean=!$.toggleBoolean,$.residentList=$.allResidents.filter(function(e){return e[$.searchedField]===$.toggleBoolean})},$.applyNumericFilter=function(e){if(e.keyCode===U){var t=$.numericFilter.toString();if(""===t)return;$.residentList=$.allResidents.filter(function(e){var n=0;if($.fieldType===L?(n=moment().diff(e.birthDate,"years"),e.fieldType="Age: "+n):$.fieldType===B&&(n=e.carePoints,e.fieldType=B),$.toggleNumeric){if(n>=t)return!0}else if(t>=n)return!0;return!1})}},$.searchResidents=function(e){if(""===$.search&&($.residentList.map(function(e){e.fieldType=""}),$.residentList=$.originalList,$.numericSearch=!1,$.booleanSearch=!1,$.numericFilter=""),e.keyCode===U&&(console.log($.booleanSearch,$.numericSearch),$.booleanSearch=!1,$.numericSearch=!1,$.search.length>0)){if(k($.search)){$.numericSearch=!0;var t=-1!==$.search.indexOf("age")?!0:!1;return void $.residentList.map(function(e){if(t){var n=moment().diff(e.birthDate,"years");e.fieldType="Age: "+n,$.fieldType=L}else e.fieldType=B,$.fieldType=B})}var n=$.allResidents.filter(function(e){var t=((e.firstName+e.aliasName+e.lastName).toLowerCase(),c.transformResidentForSearch(e,$.search)),n=t.searchString.toLowerCase().indexOf($.search.toLowerCase());if(-1!==n){var a=t.fieldsTypes[n.toString()];if(!a){var i=w(n,t);a=t.fieldsTypes[i]}"boolean"===a.type&&($.booleanSearch=!0,$.toggleBoolean=!0,$.numericSearch=!1,$.searchedField=a.key),e.fieldType=_.startCase(a.key)}return-1!==n});$.residentList=n}},$.filterByStatus=function(e){if("all"===e)$.residentList=$.originalList;else if("active"===e){var t=["In Building","Rehab","Hospital","Out of Building"];$.residentList=C(t)}else{var t=["Dead","Moved Out"];$.residentList=C(t)}},p.userCommunity($.userid).success(function(e){$.community=e,S($.community._id)}),e.$watch(function(){return s("gt-md")},function(e){$.responsiveReadPane=!e}),e.$watch(function(){return s("xs")},function(e){$.dynamicHeight=e})}e.$inject=["$scope","$document","$timeout","SpinnerService","$rootScope","$mdDialog","$mdMedia","SliderMapping","$log","$stateParams","SearchResident","$mdSidenav","$mdToast","apilaData","authentication","exportCarePlan","exportResidentCensus","exportFaceSheet","exportBlankCarePlan","uiGmapGoogleMapApi","ResidentUpdateInfoService"],angular.module("app.residents").controller("ResidentController",e)}(),function(){"use strict";function e(e,t,n,a){e.state("app.profile",{url:"/profile",views:{"content@app":{templateUrl:"app/main/profile/profile.html",controller:"ProfileController as vm"}},bodyClass:"profile"}),t.addPart("app/main/profile")}e.$inject=["$stateProvider","$translatePartialLoaderProvider","msApiProvider","msNavigationServiceProvider"],angular.module("app.profile",[]).config(e)}(),function(){"use strict";function e(e,t,n,a,i,o,s,l,r){function d(){if(null!==p.selectedItem){i.show(i.simple().textContent("Invite Request Sent to "+p.selectedItem.display).position("top right").hideDelay(3e3)),p.communityId=p.selectedItem.value;var e={};e.pendingMember=p.username,t.addPendingMember(e,p.communityId).success(function(e){p.searchText=""}).error(function(e){})}}function c(){t.changeUsername(p.userid,p.form).success(function(t){n.debug(t),p.userExists="",e.changeUsername(p.form.username),r.location.reload()}).error(function(e){n.debug(e),p.userExists=e.message})}function m(e){p.activeEmail?s.show({controller:"CreateCommunityController",controllerAs:"vm",templateUrl:"app/main/dashboard/dialogs/create/createCommunity.html",parent:angular.element(l.body),targetEvent:e,locals:{activeEmail:p.activeEmail},clickOutsideToClose:!0}):i.show(i.simple().textContent("Please verify your email before creating a community").position("top right").hideDelay(2e3))}function u(n,s){var l=t.getApiUrl()+"/api/users/"+p.userid+"/upload";n&&(n.upload=a.upload({url:l,data:{file:n},headers:{Authorization:"Bearer "+e.getToken()}}),n.upload.then(function(t){o(function(){n.result=t.data,e.setUserImage(t.data),p.userImage=t.data,i.show(i.simple().textContent("User profile image updated!").position("top right").hideDelay(1e3))})}))}var p=this;p.searchText="",p.username=e.currentUser().name,p.userid=e.currentUser().id,p.hasCommunity=!1,p.sendRequest=d,p.uploadFiles=u,p.openCommunityModal=m,p.changeUsername=c,p.residentList=[],p.selectedCommunity={},p.formatedRegister="",p.userImage=e.getUserImage(),t.getUser(p.userid).success(function(e){p.currUser=e,p.activeEmail=e.active,p.formatedRegister=moment(p.currUser.registeredOn).format("LL")}).error(function(e){n.debug(e)}),t.communityList().success(function(e){p.residentList=e.map(function(e){return{value:e._id,display:e.name}})}).error(function(e){n.debug("Error retriving the list of residents")}),p.getMatches=function(e){if(null===e)return p.residentList;var t=(e.toLowerCase(),p.residentList.filter(function(t){return null!=t.display?t.display.toLowerCase().indexOf(e)>-1:void 0}));return t},t.userCommunity(p.userid).success(function(e){p.myCommunity=e,p.hasCommunity=!0}).error(function(e){})}e.$inject=["authentication","apilaData","$log","Upload","$mdToast","$timeout","$mdDialog","$document","$window"],angular.module("app.profile").controller("ProfileController",e)}(),function(){"use strict";function e(e,t,n,a,i,o,s){function l(e){a.show({controller:"CreateIssueController",controllerAs:"vm",locals:{board:c.board,name:null},templateUrl:"app/main/issues/dialogs/createIssue/createIssue.html",parent:angular.element(i.body),targetEvent:e,clickOutsideToClose:!0})}function r(){c.boardList.getById(c.board.id)&&(c.boardList.getById(c.board.id).name=c.board.name,c.boardList.getById(c.board.id).uri=c.board.uri=encodeURIComponent(c.board.name).replace(/%20/g,"-").toLowerCase())}function d(t){e(t).toggle()}var c=this;c.currentView="board",c.board=t.data,c.boardList=t.list.data,c.boardSelectorVisible=!1,""===o.uri?c.boardName="Open issues":c.boardName=o.uri,c.toggleSidenav=d,c.updateBoardUri=r,c.addIssue=l,c.clearFilters=n.clear,c.filteringIsOn=n.isOn,Array.prototype.getById=function(e){return this.filter(function(t){return t.id===e})[0]}}e.$inject=["$mdSidenav","BoardService","CardFilters","$mdDialog","$document","$stateParams","authentication"],angular.module("app.issues").controller("ScrumboardController",e)}(),function(){"use strict";function e(e,t,n,a){e.state("app.information",{url:"/information",views:{"content@app":{templateUrl:"app/main/information/information.html",controller:"InformationController as vm"}},bodyClass:"information"}),a.saveItem("fuse",{title:"ApilaCare",group:!0,weight:1}),a.saveItem("fuse.information",{title:"Information",icon:"icon-book-open",state:"app.information",weight:2})}e.$inject=["$stateProvider","$translatePartialLoaderProvider","msApiProvider","msNavigationServiceProvider"],angular.module("app.information",[]).config(e)}(),function(){function e(){function e(e){t.selectedItem=e}var t=this;t.menuItems=["Dashboard","Calendar","Issues","Residents","To-Do","Security"],t.selectedItem=t.menuItems[0],t.switchItem=e}angular.module("app.information").controller("InformationController",e)}(),function(){"use strict";function e(e,t,n){e.state("app.homepage",{url:"/",views:{"main@":{templateUrl:"app/core/layouts/content-only.html",controller:"MainController as vm"},"content@app.homepage":{templateUrl:"app/main/homepage/homepage.html",controller:"HomepageController as vm"}}}),t.addPart("app/main/homepage")}e.$inject=["$stateProvider","$translatePartialLoaderProvider","msNavigationServiceProvider"],angular.module("app.homepage",[]).config(e)}(),function(){"use strict";function e(e,t){function n(n){e.show({controller:"CreateCommunityController",controllerAs:"vm",templateUrl:"app/main/homepage/dialogs/createCommunity.html",parent:angular.element(t.body),targetEvent:n,clickOutsideToClose:!0})}var a=this;a.openCommunityModal=n}e.$inject=["$mdDialog","$document"],angular.module("app.homepage").controller("HomepageController",e)}(),function(){"use strict";function e(e,t,n,a,i,o,s,l,r,d,c,m,u,p,g,v){function h(e){c.getLocations(e).success(function(e){for(var t=[],n=0;n<e.length;++n)e[n].movedFrom&&t.push({id:n,coords:{latitude:e[n].movedFrom.latitude,longitude:e[n].movedFrom.longitude}});L.locationsMap={center:{latitude:33.2148412,longitude:-97.13306829999999},zoom:4,markers:t}}).error(function(e){s.debug(e)})}function f(){O(L.myCommunity._id),E(L.myCommunity._id),L.myCommunity.creator.name===L.username&&(L.isCreator=!0,L.userRole="creator",L.bothRoles++),L.myCommunity.boss.name===L.username&&(L.userRole="boss",L.bothRoles++),""==L.userRole&&(void 0!==_.find(L.myCommunity.directors,{name:L.username})?L.userRole="directors":void 0!==_.find(L.myCommunity.minions,{name:L.username})&&(L.userRole="minions"));var e=_.find(L.communityMembers,{name:L.username});e&&(L.currUserId=e._id),b(L.myCommunity._id),L.communityMemberTable=_.map(L.communityMembers,function(e){var t=!1,n=!1,a=!1,i=!1,o="",l="";L.myCommunity.creator.name===e.name&&(i=!0,o="Creator"),L.myCommunity.boss.name===e.name&&(t=!0,o="Boss"),void 0!==_.find(L.myCommunity.directors,{name:e.name})&&(n=!0,o="Director"),void 0!==_.find(L.myCommunity.minions,{name:e.name})&&(a=!0,o="Minion"),e.recovery&&(L.chosenUser=e.recovery,e.recovery===L.currUserId&&(s.debug("You are selected for recovery"),l=!0));var r=void 0!==e.userImage?e.userImage:"https://s3-us-west-2.amazonaws.com/apilatest2/logo.png";return[r,e.name,e.email,e._id,t,n,a,i,o,l]}),L.pendingMemberTable=_.map(L.myCommunity.pendingMembers,function(e){void 0!==e.userImage?e.userImage:"https://s3-us-west-2.amazonaws.com/apilatest2/logo.png";return[e.userImage,e.name,e.email,e._id]}),P(),L.title="Welcome to "+L.myCommunity.name+" Community",console.log(L.title)}function b(e){c.appointmentsToday(e).success(function(e){L.appointmentsToday=e}).error(function(e){s.debug("Error loading appointments today count")}),c.residentCount(e).success(function(e){L.residentCount=e}).error(function(e){s.debug("Error loading resident count")}),c.issuesCount(e).success(function(e){L.issuesCount=e}).error(function(e){})}function y(e){L.activeEmail?r.show({controller:"CreateCommunityController",controllerAs:"vm",templateUrl:"app/main/dashboard/dialogs/create/createCommunity.html",parent:angular.element(d.body),targetEvent:e,locals:{activeEmail:L.activeEmail},clickOutsideToClose:!0}):i.show(i.simple().textContent("Please verify your email before creating a community").position("top right").hideDelay(2e3))}function x(e){c.listLogs(e).success(function(e){}).error(function(e){s.debug(e)})}function w(e){L.activeEmail?r.show({controller:"JoinCommunityController",controllerAs:"vm",templateUrl:"app/main/dashboard/dialogs/join_community/join_community.html",parent:angular.element(d.body),targetEvent:e,clickOutsideToClose:!0}):i.show(i.simple().textContent("Please verify your email before joining a community").position("top right").hideDelay(2e3))}function k(){l.getWeather(L.communityTown).then(function(e){L.tempUnit=l.getTempUnit(),L.weatherData=e.data})["catch"](function(e){s.error(e)})}function C(){k()}function S(e){"town"===e&&(L.communityTown=L.contactInfo.town,k()),c.updateContactAndRoomInfo(L.community._id,L.contactInfo).success(function(e){}).error(function(e){s.debug(e)})}function A(e,t){r.show({controller:"LogsController",controllerAs:"vm",templateUrl:"app/main/dashboard/dialogs/logs/logs.html",parent:angular.element(d.body),locals:{name:t,userId:e},clickOutsideToClose:!0})}function N(){r.show({controller:"UnitSelectController",controllerAs:"vm",templateUrl:"app/main/dashboard/dialogs/unit_select/unit_select.html",parent:angular.element(d.body),locals:{community:L.myCommunity},clickOutsideToClose:!0})}function D(e,t,n){L.recoveryInfo.userToRecoverId=e,L.recoveryInfo.userToRecoverName=t,L.recoveryInfo.type=n,"randomuser"===n?(L.recoveryInfo.bossId=L.currUserId,T()):M(function(e){T(),L.recoveryInfo.randomUsersName=e.chosenMemberName,L.recoveryInfo.recoveryid=e.recoveryid,L.recoveryInfo.bossId=L.currUserId})}function T(){r.show({controller:"RecoverController",controllerAs:"vm",templateUrl:"app/main/dashboard/dialogs/recover/recover.html",parent:angular.element(d.body),locals:{recoveryInfo:L.recoveryInfo},clickOutsideToClose:!0})}function R(e){r.show({controller:"RoomStyleController",controllerAs:"vm",templateUrl:"app/main/dashboard/dialogs/room_style/room_style.html",parent:angular.element(d.body),locals:{roomStyles:L.myCommunity.roomStyle,room:e},clickOutsideToClose:!0}).then(function(e){L.community.roomStyle=e,L.roomList=_.flatten(_.map(L.community.roomStyle,"rooms"))})}function I(){c.userCommunity(L.userid).success(function(e){L.myCommunity=e,r.show({controller:"BuildingSetupController",controllerAs:"vm",templateUrl:"app/main/dashboard/dialogs/building_setup/building_setup.html",parent:angular.element(d.body),locals:{community:L.myCommunity},clickOutsideToClose:!0})})}function M(e){var t={};t.boss=L.currUserId,t.recoveredMember=L.recoveryInfo.userToRecoverId,c.createIssueRecovery(t,L.myCommunity._id).success(function(t){e(t)}).error(function(e){s.debug(e),i.show(i.simple().textContent(e.message).position("top right").hideDelay(2e3))})}function P(){L.communityMemberWidget={title:"Community Members",dtOptions:{dom:'<"top"f>rt<"bottom"<"left"<"length"l>><"right"<"info"i><"pagination"p>>>',pagingType:"simple",autoWidth:!1,responsive:!0,order:[1,"asc"],columnDefs:[{width:"40",orderable:!1,targets:[0]}]}}}function O(e){c.averageAge(e).success(function(e){L.averageAge=e,s.debug("Average age: "+e)}).error(function(e){s.debug(e)})}function E(e){c.averageStayTime(e).success(function(e){L.averageStayTime=Math.floor(e)}).error(function(e){s.debug(e)})}function F(e){L.selectedProject=e}function $(e){n(e).toggle()}var L=this;L.isOpen=!1,L.recoveryInfo={},L.contactInfo={},L.currUserId=null,L.bothRoles=0,L.chosenUser="",L.username=m.currentUser().name,L.userid=m.currentUser().id,
  L.community=m.currentUser().community,L.roomList=_.flatten(_.map(L.community.roomStyle,"rooms")),L.getDay=l.getDay,L.mapIcon=l.mapIcon,L.appointmentsToday=0,L.residentCount=0,L.issuesCount=0,L.isCreator=!1,L.userRole="",L.averageAge=0,L.averageStayTime=0,L.checkbox=!0,L.hasCommunity=!1,L.selectedProject={name:"Create a new community"},L.myComunity=null,L.pendingMemberTable=[],L.communityMemberTable=[],L.currentStep=0,a.setData([],[]),L.acceptMember=g.acceptMember,L.declineMember=g.declineMember,L.addRole=g.addRole,L.removeMember=g.removeMember,L.openRecoverModal=D,L.openJoinModal=w,L.openCommunityModal=y,L.openLogsModal=A,L.openUnitModal=N,L.updateBillingModal=v.updateBillingModal,L.selectProject=F,L.roomDialog=R,L.buildingDialog=I,L.updateContactAndRoomInfo=S,L.refreshWeather=C,L.listLogs=x,L.cancelSubscription=function(){v.cancelSubscription(L.userid,L.subscriptionCanceled)},p.watch(),c.userCommunity(L.userid).success(function(e){L.myCommunity=e,L.contactInfo=L.myCommunity,L.communityTown=L.myCommunity.town||"Denver",k(),L.hasCommunity=!0,L.isTestCommunity=L.myCommunity.testCommunity,L.communityMembers=L.myCommunity.communityMembers,console.log("num of members "+L.communityMembers.length),h(L.myCommunity._id),L.floors=L.myCommunity.floors,f(),x(L.myCommunity._id),g.setData(L.pendingMemberTable,L.communityMemberTable,L.myCommunity._id)}).error(function(e){}),function(){c.getCustomer(L.userid).success(function(e){e.status&&(L.customerData=e,L.customerData.customer.subscriptions.data.length>0?(L.subscriptionCanceled=!1,L.quantity=L.customerData.customer.subscriptions.data[0].quantity,console.log(5*L.quantity+"$"),L.billingDate=moment(1e3*L.customerData.customer.subscriptions.data[0].current_period_end).format("MMMM Do YYYY"),L.trialEndDate=moment(1e3*L.customerData.customer.subscriptions.data[0].trial_end).format("MMMM Do YYYY")):L.subscriptionCanceled=!0)}).error(function(e){null!==e.customer&&s.debug(e)})}(),c.getUser(L.userid).success(function(e){L.activeEmail=e.active}).error(function(e){s.debug(e)}),L.nowWidget={now:{second:"",minute:"",hour:"",day:"",month:"",year:""},ticker:function(){var e=moment();L.nowWidget.now={second:e.format("ss"),minute:e.format("mm"),hour:e.format("HH"),day:e.format("D"),weekDay:e.format("dddd"),month:e.format("MMMM"),year:e.format("YYYY")}}},L.toggleSidenav=$,L.nowWidget.ticker();var B=t(L.nowWidget.ticker,1e3);e.$on("$destroy",function(){t.cancel(B)})}e.$inject=["$scope","$interval","$mdSidenav","SearchService","$mdToast","msNavigationService","$log","WeatherService","$mdDialog","$document","apilaData","authentication","$window","Idle","MemberService","BillingService"],angular.module("app.dashboard").controller("DashboardProjectController",e)}(),function(){"use strict";function e(e,t,n,a,i,o,s,l,r,d,c){function m(){var e=["Resident","Date","Reason","Location","Doctor","Transportation"],t=k.calendar.getDate().format("MMMM"),n=_.sortBy(k.events[0],function(e){return e.start}),a=_.map(_.filter(n,function(e){return moment(e.start).format("MM")===k.calendar.getDate().format("MM")&&e.cancel===!1}),function(e){var t=[],n="";return null!=e.residentGoing&&(n=e.residentGoing.firstName+" "+e.residentGoing.lastName),t.push(n),t.push(moment(e.start).format("MM/DD hh:mm A")),t.push(e.reason),t.push(e.locationName.name||e.locationName),t.push(e.locationDoctor),t.push(e.transportation),t});c.exportPdf(e,a,t)}function u(){k.calendarView.calendar.next();var e=k.calendar.getDate().format("YYYY M");S[e]||(o.$broadcast("is_loading",!0),R(k.community._id,e),S[e]=!0)}function p(){k.calendarView.calendar.prev();var e=k.calendar.getDate().format("YYYY M");S[e]||(o.$broadcast("is_loading",!0),R(k.community._id,e),S[e]=!0)}function g(e,t,n){w("add",!1,e,t,n)}function v(e){var t=(new Date).getUTCDate(),n=new Date;w("add",!1,t,n,e)}function h(e){console.log(e),w("edit",e,!1,!1,event)}function f(e){return y(e,"add")}function b(e){return y(e,"update")}function y(e,t){var n=e.hours;e.isAm||(e.hours+=12),12===e.hours&&e.isAm&&(e.hours=0),24===e.hours&&(e.hours=12);var a=new Date(e.appointmentDate);a.setHours(e.hours),a.setMinutes(e.minutes);var i=e.residentGoing,o=i.aliasName?i.aliasName:i.firstName,s=o+" "+i.lastName+" to "+(e.locationName.name||e.locationName),l={title:s,start:a,end:null,transportation:e.transportation,reason:e.reason,isAm:e.isAm,minutes:e.minutes,hours:n,timezone:e.timezone,locationDoctor:e.locationDoctor,locationName:e.locationName,date:e.time,currentUser:i,appointId:e._id,cancel:e.cancel,appointmentComment:e.appointmentComment,residentGoing:i,stick:!0};return"add"===t&&(l.id=e._id,l._id=e._id),e.cancel===!0&&(l.color="#f24438"),l}function x(){e.show({controller:"AppointmentMapController",controllerAs:"vm",templateUrl:"app/main/calendar/dialogs/appointment-map/appointment-map.html",parent:angular.element(t.body),clickOutsideToClose:!0,locals:{appointments:A}})}function w(n,a,i,o,s){var l={type:n,calendarEvent:a,start:i,end:o};e.show({controller:"EventFormDialogController",controllerAs:"vm",templateUrl:"app/main/calendar/dialogs/event-form/event-form-dialog.html",parent:angular.element(t.body),targetEvent:s,clickOutsideToClose:!0,locals:{dialogData:l,residentList:k.residentList}}).then(function(e){if("add"===e.type)k.events[0].push(f(e.calendarEvent));else for(var t=0;t<k.events[0].length;t++)if(k.events[0][t].appointId===e.calendarEvent.appointId){k.events[0][t]=b(e.calendarEvent);break}})}var k=this;o.$broadcast("is_loading",!0);var C=new Date;C.getDate(),C.getMonth(),C.getFullYear();k.events=[[]];var S={},A=null,N=["title","transportation","locationDoctor","reason","locationName","cancel","appointmentDate"],D=(s.currentUser().name,s.currentUser().id),T=s.currentUser().communityId;k.addEvent=v,k.next=u,k.prev=p,k.exportAppointments=m,k.openAppointmentMapDialog=x,n.residentsList(T).success(function(e){k.birthdayResidents=e,k.residentList=e.map(function(e){var t=e.aliasName?e.aliasName:e.firstName;return{value:e._id,display:t+" "+e.lastName}})}).error(function(e){i.debug(e)}),n.userCommunity(D).success(function(e){k.community=e,R(k.community._id,moment().format("YYYY M")),S[moment().format("YYYY M")]=!0});var R=function(e,t){n.appointmentsList(e,t).success(function(n){if(0===n.length)return void I(e,t);A=n,console.log(A);var a=[];angular.forEach(n,function(e,t){var n=f(e);a.push(n)}),k.events[0]=k.events[0].concat(a),I(e,t)}).error(function(e){i.debug(e)})};d.subscribe(r,function(){console.log(k.events,d.getResult()),k.events[0]=[]});var I=function(e,t){n.dueIssuesList(e).success(function(n){angular.forEach(n,function(e,n){var a=t.split(" ");if(e.due&&a&&moment(e.due).format("M")===a[1]){var i=new Date(e.due),o={title:e.title,start:i,end:null,stick:!0,color:"#228B22"};k.events[0].push(o)}}),P(e,t)}).error(function(e){i.debug(e)})},M=function(e,t,n){angular.forEach(e,function(e){var t=moment().year(),a=n.split(" ");if(e.birthDate&&a&&"Dead"!==e.buildingStatus&&"Moved Out"!==e.buildingStatus&&moment(e.birthDate).format("M")===a[1]){var i=moment(e.birthDate).year(t),o=e.aliasName?e.aliasName:e.firstName,s={title:o+" "+e.lastName+"'s Birthday",start:i,end:null,stick:!0,color:"#9C27B0"};k.events[0].push(s)}}),d.setData(k.events[0],N)},P=function(e,t){k.birthdayResidents?M(k.birthdayResidents,e,t):n.residentsList(e).success(function(n){M(n,e,t)}).error(function(e){i.debug(response)}),o.$broadcast("is_loading",!1)};k.calendarUiConfig={calendar:{editable:!0,eventLimit:!1,header:"",handleWindowResize:!1,aspectRatio:1,dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],viewRender:function(e){k.calendarView=e,k.calendar=k.calendarView.calendar,k.currentMonthShort=k.calendar.getDate().format("MMM")},columnFormat:{month:"ddd",week:"ddd D",day:"ddd M"},eventClick:h,selectable:!0,selectHelper:!0,select:g}}}e.$inject=["$mdDialog","$document","apilaData","msNavigationService","$log","$rootScope","authentication","$state","$scope","SearchService","exportAppointments"],angular.module("app.calendar").controller("AppoitmentsController",e)}(),function(){"use strict";angular.module("fuse",["app.core","app.navigation","app.toolbar","app.quick-panel","app.calendar","app.residents","app.issues","app.pages.auth.login","app.pages.auth.register","app.pages.auth.forgot-password","app.pages.auth.reset-password","app.pages.auth.verify","app.homepage","app.error-404","app.error-500","app.not-auth","app.profile","app.dashboard","app.information","app.todo"])}(),function(){"use strict";function e(e,t,n,a,i){a.$on("IdleTimeout",function(){i.isLoggedIn()&&(i.logout(),t.location.reload(),e.hide())}),a.$on("IdleEnd",function(){e.hide()})}e.$inject=["$mdDialog","$window","Idle","$scope","authentication"],angular.module("fuse").controller("IdleController",e)}(),function(){"use strict";function e(e,t,n){function a(){return n.PALETTES}function i(){return n.THEMES}function o(n){return angular.isUndefined(l.themes.list[n])?angular.isUndefined(l.themes.list["default"])?void t.error('You must have at least one theme named "default"'):(t.warn('The theme "'+n+'" does not exist! Falling back to the "default" theme.'),l.themes.active.name="default",l.themes.active.theme=l.themes.list["default"],void e.put("selectedTheme",l.themes.active.name)):(l.themes.active.name=n,l.themes.active.theme=l.themes.list[n],void e.put("selectedTheme",n))}function s(e){l.themes.list=e}var l={getRegisteredPalettes:a,getRegisteredThemes:i,setActiveTheme:o,setThemesList:s,themes:{list:{},active:{name:"",theme:{}}}};return l}e.$inject=["$cookies","$log","$mdTheming"],angular.module("app.core").service("fuseTheming",e)}(),function(){"use strict";function e(){function e(e){a=e}function t(e){i=e}var n;angular.injector(["ngCookies"]).invoke(["$cookies",function(e){n=e}]);var a,i,o=angular.injector(["ng"]).get("$log");this.setRegisteredPalettes=e,this.setRegisteredThemes=t,this.$get=function(){function e(){return a}function t(){return i}function s(e){return angular.isUndefined(r.themes.list[e])?angular.isUndefined(r.themes.list["default"])?void o.error('You must have at least one theme named "default"'):(o.warn('The theme "'+e+'" does not exist! Falling back to the "default" theme.'),r.themes.active.name="default",r.themes.active.theme=r.themes.list["default"],void n.put("selectedTheme",r.themes.active.name)):(r.themes.active.name=e,r.themes.active.theme=r.themes.list[e],void n.put("selectedTheme",e))}function l(e){r.themes.list=e}var r={getRegisteredPalettes:e,getRegisteredThemes:t,setActiveTheme:s,setThemesList:l,themes:{list:{},active:{name:"",theme:{}}}};return r}}angular.module("app.core").provider("fuseTheming",e)}(),function(){"use strict";function e(e,t,n,a){var i;angular.injector(["ngCookies"]).invoke(["$cookies",function(e){i=e}]);var o=i.getObject("customTheme");o&&(n.custom=o),e.alwaysWatchTheme(!0),angular.forEach(t,function(t){e.definePalette(t.name,t.options)}),angular.forEach(n,function(t,n){e.theme(n).primaryPalette(t.primary.name,t.primary.hues).accentPalette(t.accent.name,t.accent.hues).warnPalette(t.warn.name,t.warn.hues).backgroundPalette(t.background.name,t.background.hues)}),a.setRegisteredPalettes(e._PALETTES),a.setRegisteredThemes(e._THEMES)}e.$inject=["$mdThemingProvider","fusePalettes","fuseThemes","fuseThemingProvider"],angular.module("app.core").config(e)}(),function(){"use strict";var e={"default":{primary:{name:"fuse-pale-blue",hues:{"default":"700","hue-1":"500","hue-2":"600","hue-3":"400"}},accent:{name:"light-blue",hues:{"default":"600","hue-1":"400","hue-2":"700","hue-3":"A100"}},warn:{name:"red"},background:{name:"grey",hues:{"default":"A100","hue-1":"100","hue-2":"50","hue-3":"300"}}},pink:{primary:{name:"blue-grey",hues:{"default":"800","hue-1":"600","hue-2":"400","hue-3":"A100"}},accent:{name:"pink",hues:{"default":"400","hue-1":"300","hue-2":"600","hue-3":"A100"}},warn:{name:"blue"},background:{name:"grey",hues:{"default":"A100","hue-1":"100","hue-2":"50","hue-3":"300"}}},teal:{primary:{name:"fuse-blue",hues:{"default":"900","hue-1":"600","hue-2":"500","hue-3":"A100"}},accent:{name:"teal",hues:{"default":"500","hue-1":"400","hue-2":"600","hue-3":"A100"}},warn:{name:"deep-orange"},background:{name:"grey",hues:{"default":"A100","hue-1":"100","hue-2":"50","hue-3":"300"}}}};angular.module("app.core").constant("fuseThemes",e)}(),function(){"use strict";var e=[{name:"fuse-blue",options:{50:"#ebf1fa",100:"#c2d4ef",200:"#9ab8e5",300:"#78a0dc",400:"#5688d3",500:"#3470ca",600:"#2e62b1",700:"#275498",800:"#21467e",900:"#1a3865",A100:"#c2d4ef",A200:"#9ab8e5",A400:"#5688d3",A700:"#275498",contrastDefaultColor:"light",contrastDarkColors:"50 100 200 A100",contrastStrongLightColors:"300 400"}},{name:"fuse-pale-blue",options:{50:"#ececee",100:"#c5c6cb",200:"#9ea1a9",300:"#7d818c",400:"#5c616f",500:"#3c4252",600:"#353a48",700:"#2d323e",800:"#262933",900:"#1e2129",A100:"#c5c6cb",A200:"#9ea1a9",A400:"#5c616f",A700:"#2d323e",contrastDefaultColor:"light",contrastDarkColors:"50 100 200 A100",contrastStrongLightColors:"300 400"}}];angular.module("app.core").constant("fusePalettes",e)}(),function(){"use strict";function e(e,t,n){function a(){var e=angular.copy(n.getRegisteredThemes()),t=angular.copy(n.getRegisteredPalettes());angular.forEach(e,function(e){d[e.name]={},angular.forEach(e.colors,function(n,a){d[e.name][a]={name:n.name,levels:{"default":{color:s(t[n.name][n.hues["default"]].value),contrast1:s(t[n.name][n.hues["default"]].contrast,1),contrast2:s(t[n.name][n.hues["default"]].contrast,2),contrast3:s(t[n.name][n.hues["default"]].contrast,3),contrast4:s(t[n.name][n.hues["default"]].contrast,4)},hue1:{color:s(t[n.name][n.hues["hue-1"]].value),contrast1:s(t[n.name][n.hues["hue-1"]].contrast,1),contrast2:s(t[n.name][n.hues["hue-1"]].contrast,2),contrast3:s(t[n.name][n.hues["hue-1"]].contrast,3),contrast4:s(t[n.name][n.hues["hue-1"]].contrast,4)},hue2:{color:s(t[n.name][n.hues["hue-2"]].value),contrast1:s(t[n.name][n.hues["hue-2"]].contrast,1),contrast2:s(t[n.name][n.hues["hue-2"]].contrast,2),contrast3:s(t[n.name][n.hues["hue-2"]].contrast,3),contrast4:s(t[n.name][n.hues["hue-2"]].contrast,4)},hue3:{color:s(t[n.name][n.hues["hue-3"]].value),contrast1:s(t[n.name][n.hues["hue-3"]].contrast,1),contrast2:s(t[n.name][n.hues["hue-3"]].contrast,2),contrast3:s(t[n.name][n.hues["hue-3"]].contrast,3),contrast4:s(t[n.name][n.hues["hue-3"]].contrast,4)}}}})}),i(d);var a={};angular.forEach(d,function(e,t){a={},a["@themeName"]=t,angular.forEach(e,function(e,t){angular.forEach(e.levels,function(e,n){angular.forEach(e,function(e,i){a["@"+t+r(n)+r(i)]=e})})}),o(a)})}function i(t){var a=angular.copy(t);angular.forEach(a,function(e){angular.forEach(e,function(t,n){e[n]=t.levels,e[n].color=t.levels["default"].color,e[n].contrast1=t.levels["default"].contrast1,e[n].contrast2=t.levels["default"].contrast2,e[n].contrast3=t.levels["default"].contrast3,e[n].contrast4=t.levels["default"].contrast4,delete e[n]["default"]})}),n.setThemesList(a);var i=e.get("selectedTheme");i?n.setActiveTheme(i):n.setActiveTheme("default")}function o(e){var t='/* Content hack because they wont fix */\n/* https://github.com/angular/material/pull/8067 */\n[md-theme="@themeName"] md-content.md-hue-1,\nmd-content.md-@themeName-theme.md-hue-1 {\n    color: @backgroundHue1Contrast1;\n    background-color: @backgroundHue1Color;\n}\n\n[md-theme="@themeName"] md-content.md-hue-2,\nmd-content.md-@themeName-theme.md-hue-2 {\n    color: @backgroundHue2Contrast1;\n    background-color: @backgroundHue2Color;\n}\n\n[md-theme="@themeName"] md-content.md-hue-3,\n md-content.md-@themeName-theme.md-hue-3 {\n    color: @backgroundHue3Contrast1;\n    background-color: @backgroundHue3Color;\n}\n\n/* Text Colors */\n[md-theme="@themeName"] a {\n    color: @accentDefaultColor;\n}\n\n[md-theme="@themeName"] .secondary-text,\n[md-theme="@themeName"] .icon {\n    color: @backgroundDefaultContrast2;\n}\n\n[md-theme="@themeName"] .hint-text,\n[md-theme="@themeName"] .disabled-text {\n    color: @backgroundDefaultContrast3;\n}\n\n[md-theme="@themeName"] .fade-text,\n[md-theme="@themeName"] .divider {\n    color: @backgroundDefaultContrast4;\n}\n\n/* Primary */\n[md-theme="@themeName"] .md-primary-bg {\n    background-color: @primaryDefaultColor;\n    color: @primaryDefaultContrast1;\n}\n\n[md-theme="@themeName"] .md-primary-bg .secondary-text,\n[md-theme="@themeName"] .md-primary-bg .icon {\n    color: @primaryDefaultContrast2;\n}\n\n[md-theme="@themeName"] .md-primary-bg .hint-text,\n[md-theme="@themeName"] .md-primary-bg .disabled-text {\n    color: @primaryDefaultContrast3;\n}\n\n[md-theme="@themeName"] .md-primary-bg .fade-text,\n[md-theme="@themeName"] .md-primary-bg .divider {\n    color: @primaryDefaultContrast4;\n}\n\n/* Primary, Hue-1 */\n[md-theme="@themeName"] .md-primary-bg.md-hue-1 {\n    background-color: @primaryHue1Color;\n    color: @primaryHue1Contrast1;\n}\n\n[md-theme="@themeName"] .md-primary-bg.md-hue-1 .secondary-text,\n[md-theme="@themeName"] .md-primary-bg.md-hue-1 .icon {\n    color: @primaryHue1Contrast2;\n}\n\n[md-theme="@themeName"] .md-primary-bg.md-hue-1 .hint-text,\n[md-theme="@themeName"] .md-primary-bg.md-hue-1 .disabled-text {\n    color: @primaryHue1Contrast3;\n}\n\n[md-theme="@themeName"] .md-primary-bg.md-hue-1 .fade-text,\n[md-theme="@themeName"] .md-primary-bg.md-hue-1 .divider {\n    color: @primaryHue1Contrast4;\n}\n\n/* Primary, Hue-2 */\n[md-theme="@themeName"] .md-primary-bg.md-hue-2 {\n    background-color: @primaryHue2Color;\n    color: @primaryHue2Contrast1;\n}\n\n[md-theme="@themeName"] .md-primary-bg.md-hue-2 .secondary-text,\n[md-theme="@themeName"] .md-primary-bg.md-hue-2 .icon {\n    color: @primaryHue2Contrast2;\n}\n\n[md-theme="@themeName"] .md-primary-bg.md-hue-2 .hint-text,\n[md-theme="@themeName"] .md-primary-bg.md-hue-2 .disabled-text {\n    color: @primaryHue2Contrast3;\n}\n\n[md-theme="@themeName"] .md-primary-bg.md-hue-2 .fade-text,\n[md-theme="@themeName"] .md-primary-bg.md-hue-2 .divider {\n    color: @primaryHue2Contrast4;\n}\n\n/* Primary, Hue-3 */\n[md-theme="@themeName"] .md-primary-bg.md-hue-3 {\n    background-color: @primaryHue3Color;\n    color: @primaryHue3Contrast1;\n}\n\n[md-theme="@themeName"] .md-primary-bg.md-hue-3 .secondary-text,\n[md-theme="@themeName"] .md-primary-bg.md-hue-3 .icon {\n    color: @primaryHue3Contrast1;\n}\n\n[md-theme="@themeName"] .md-primary-bg.md-hue-3 .hint-text,\n[md-theme="@themeName"] .md-primary-bg.md-hue-3 .disabled-text {\n    color: @primaryHue3Contrast3;\n}\n\n[md-theme="@themeName"] .md-primary-bg.md-hue-3 .fade-text,\n[md-theme="@themeName"] .md-primary-bg.md-hue-3 .divider {\n    color: @primaryHue3Contrast4;\n}\n\n/* Primary foreground */\n[md-theme="@themeName"] .md-primary-fg {\n    color: @primaryDefaultColor !important;\n}\n\n/* Primary foreground, Hue-1 */\n[md-theme="@themeName"] .md-primary-fg.md-hue-1 {\n    color: @primaryHue1Color !important;\n}\n\n/* Primary foreground, Hue-2 */\n[md-theme="@themeName"] .md-primary-fg.md-hue-2 {\n    color: @primaryHue2Color !important;\n}\n\n/* Primary foreground, Hue-3 */\n[md-theme="@themeName"] .md-primary-fg.md-hue-3 {\n    color: @primaryHue3Color !important;\n}\n\n/* Accent */\n[md-theme="@themeName"] .md-accent-bg {\n    background-color: @accentDefaultColor;\n    color: @accentDefaultContrast1;\n}\n\n[md-theme="@themeName"] .md-accent-bg .secondary-text,\n[md-theme="@themeName"] .md-accent-bg .icon {\n    color: @accentDefaultContrast2;\n}\n\n[md-theme="@themeName"] .md-accent-bg .hint-text,\n[md-theme="@themeName"] .md-accent-bg .disabled-text {\n    color: @accentDefaultContrast3;\n}\n\n[md-theme="@themeName"] .md-accent-bg .fade-text,\n[md-theme="@themeName"] .md-accent-bg .divider {\n    color: @accentDefaultContrast4;\n}\n\n/* Accent, Hue-1 */\n[md-theme="@themeName"] .md-accent-bg.md-hue-1 {\n    background-color: @accentHue1Color;\n    color: @accentHue1Contrast1;\n}\n\n[md-theme="@themeName"] .md-accent-bg.md-hue-1 .secondary-text,\n[md-theme="@themeName"] .md-accent-bg.md-hue-1 .icon {\n    color: @accentHue1Contrast2;\n}\n\n[md-theme="@themeName"] .md-accent-bg.md-hue-1 .hint-text,\n[md-theme="@themeName"] .md-accent-bg.md-hue-1 .disabled-text {\n    color: @accentHue1Contrast3;\n}\n\n[md-theme="@themeName"] .md-accent-bg.md-hue-1 .fade-text,\n[md-theme="@themeName"] .md-accent-bg.md-hue-1 .divider {\n    color: @accentHue1Contrast4;\n}\n\n/* Accent, Hue-2 */\n[md-theme="@themeName"] .md-accent-bg.md-hue-2 {\n    background-color: @accentHue2Color;\n    color: @accentHue2Contrast1;\n}\n\n[md-theme="@themeName"] .md-accent-bg.md-hue-2 .secondary-text,\n[md-theme="@themeName"] .md-accent-bg.md-hue-2 .icon {\n    color: @accentHue2Contrast2;\n}\n\n[md-theme="@themeName"] .md-accent-bg.md-hue-2 .hint-text,\n[md-theme="@themeName"] .md-accent-bg.md-hue-2 .disabled-text {\n    color: @accentHue2Contrast3;\n}\n\n[md-theme="@themeName"] .md-accent-bg.md-hue-2 .fade-text,\n[md-theme="@themeName"] .md-accent-bg.md-hue-2 .divider {\n    color: @accentHue2Contrast4;\n}\n\n/* Accent, Hue-3 */\n[md-theme="@themeName"] .md-accent-bg.md-hue-3 {\n    background-color: @accentHue3Color;\n    color: @accentHue3Contrast1;\n}\n\n[md-theme="@themeName"] .md-accent-bg.md-hue-3 .secondary-text,\n[md-theme="@themeName"] .md-accent-bg.md-hue-3 .icon {\n    color: @accentHue3Contrast1;\n}\n\n[md-theme="@themeName"] .md-accent-bg.md-hue-3 .hint-text,\n[md-theme="@themeName"] .md-accent-bg.md-hue-3 .disabled-text {\n    color: @accentHue3Contrast3;\n}\n\n[md-theme="@themeName"] .md-accent-bg.md-hue-3 .fade-text,\n[md-theme="@themeName"] .md-accent-bg.md-hue-3 .divider {\n    color: @accentHue3Contrast4;\n}\n\n/* Accent foreground */\n[md-theme="@themeName"] .md-accent-fg {\n    color: @accentDefaultColor !important;\n}\n\n/* Accent foreground, Hue-1 */\n[md-theme="@themeName"] .md-accent-fg.md-hue-1 {\n    color: @accentHue1Color !important;\n}\n\n/* Accent foreground, Hue-2 */\n[md-theme="@themeName"] .md-accent-fg.md-hue-2 {\n    color: @accentHue2Color !important;\n}\n\n/* Accent foreground, Hue-3 */\n[md-theme="@themeName"] .md-accent-fg.md-hue-3 {\n    color: @accentHue3Color !important;\n}\n\n/* Warn */\n[md-theme="@themeName"] .md-warn-bg {\n    background-color: @warnDefaultColor;\n    color: @warnDefaultContrast1;\n}\n\n[md-theme="@themeName"] .md-warn-bg .secondary-text,\n[md-theme="@themeName"] .md-warn-bg .icon {\n    color: @warnDefaultContrast2;\n}\n\n[md-theme="@themeName"] .md-warn-bg .hint-text,\n[md-theme="@themeName"] .md-warn-bg .disabled-text {\n    color: @warnDefaultContrast3;\n}\n\n[md-theme="@themeName"] .md-warn-bg .fade-text,\n[md-theme="@themeName"] .md-warn-bg .divider {\n    color: @warnDefaultContrast4;\n}\n\n/* Warn, Hue-1 */\n[md-theme="@themeName"] .md-warn-bg.md-hue-1 {\n    background-color: @warnHue1Color;\n    color: @warnHue1Contrast1;\n}\n\n[md-theme="@themeName"] .md-warn-bg.md-hue-1 .secondary-text,\n[md-theme="@themeName"] .md-warn-bg.md-hue-1 .icon {\n    color: @warnHue1Contrast2;\n}\n\n[md-theme="@themeName"] .md-warn-bg.md-hue-1 .hint-text,\n[md-theme="@themeName"] .md-warn-bg.md-hue-1 .disabled-text {\n    color: @warnHue1Contrast3;\n}\n\n[md-theme="@themeName"] .md-warn-bg.md-hue-1 .fade-text,\n[md-theme="@themeName"] .md-warn-bg.md-hue-1 .divider {\n    color: @warnHue1Contrast4;\n}\n\n/* Warn, Hue-2 */\n[md-theme="@themeName"] .md-warn-bg.md-hue-2 {\n    background-color: @warnHue2Color;\n    color: @warnHue2Contrast1;\n}\n\n[md-theme="@themeName"] .md-warn-bg.md-hue-2 .secondary-text,\n[md-theme="@themeName"] .md-warn-bg.md-hue-2 .icon {\n    color: @warnHue2Contrast2;\n}\n\n[md-theme="@themeName"] .md-warn-bg.md-hue-2 .hint-text,\n[md-theme="@themeName"] .md-warn-bg.md-hue-2 .disabled-text {\n    color: @warnHue2Contrast3;\n}\n\n[md-theme="@themeName"] .md-warn-bg.md-hue-2 .fade-text,\n[md-theme="@themeName"] .md-warn-bg.md-hue-2 .divider {\n    color: @warnHue2Contrast4;\n}\n\n/* Warn, Hue-3 */\n[md-theme="@themeName"] .md-warn-bg.md-hue-3 {\n    background-color: @warnHue3Color;\n    color: @warnHue3Contrast1;\n}\n\n[md-theme="@themeName"] .md-warn-bg.md-hue-3 .secondary-text,\n[md-theme="@themeName"] .md-warn-bg.md-hue-3 .icon {\n    color: @warnHue3Contrast1;\n}\n\n[md-theme="@themeName"] .md-warn-bg.md-hue-3 .hint-text,\n[md-theme="@themeName"] .md-warn-bg.md-hue-3 .disabled-text {\n    color: @warnHue3Contrast3;\n}\n\n[md-theme="@themeName"] .md-warn-bg.md-hue-3 .fade-text,\n[md-theme="@themeName"] .md-warn-bg.md-hue-3 .divider {\n    color: @warnHue3Contrast4;\n}\n\n/* Warn foreground */\n[md-theme="@themeName"] .md-warn-fg {\n    color: @warnDefaultColor !important;\n}\n\n/* Warn foreground, Hue-1 */\n[md-theme="@themeName"] .md-warn-fg.md-hue-1 {\n    color: @warnHue1Color !important;\n}\n\n/* Warn foreground, Hue-2 */\n[md-theme="@themeName"] .md-warn-fg.md-hue-2 {\n    color: @warnHue2Color !important;\n}\n\n/* Warn foreground, Hue-3 */\n[md-theme="@themeName"] .md-warn-fg.md-hue-3 {\n    color: @warnHue3Color !important;\n}\n\n/* Background */\n[md-theme="@themeName"] .md-background-bg {\n    background-color: @backgroundDefaultColor;\n    color: @backgroundDefaultContrast1;\n}\n\n[md-theme="@themeName"] .md-background-bg .secondary-text,\n[md-theme="@themeName"] .md-background-bg .icon {\n    color: @backgroundDefaultContrast2;\n}\n\n[md-theme="@themeName"] .md-background-bg .hint-text,\n[md-theme="@themeName"] .md-background-bg .disabled-text {\n    color: @backgroundDefaultContrast3;\n}\n\n[md-theme="@themeName"] .md-background-bg .fade-text,\n[md-theme="@themeName"] .md-background-bg .divider {\n    color: @backgroundDefaultContrast4;\n}\n\n/* Background, Hue-1 */\n[md-theme="@themeName"] .md-background-bg.md-hue-1 {\n    background-color: @backgroundHue1Color;\n    color: @backgroundHue1Contrast1;\n}\n\n[md-theme="@themeName"] .md-background-bg.md-hue-1 .secondary-text,\n[md-theme="@themeName"] .md-background-bg.md-hue-1 .icon {\n    color: @backgroundHue1Contrast2;\n}\n\n[md-theme="@themeName"] .md-background-bg.md-hue-1 .hint-text,\n[md-theme="@themeName"] .md-background-bg.md-hue-1 .disabled-text {\n    color: @backgroundHue1Contrast3;\n}\n\n[md-theme="@themeName"] .md-background-bg.md-hue-1 .fade-text,\n[md-theme="@themeName"] .md-background-bg.md-hue-1 .divider {\n    color: @backgroundHue1Contrast4;\n}\n\n/* Background, Hue-2 */\n[md-theme="@themeName"] .md-background-bg.md-hue-2 {\n    background-color: @backgroundHue2Color;\n    color: @backgroundHue2Contrast1;\n}\n\n[md-theme="@themeName"] .md-background-bg.md-hue-2 .secondary-text,\n[md-theme="@themeName"] .md-background-bg.md-hue-2 .icon {\n    color: @backgroundHue2Contrast2;\n}\n\n[md-theme="@themeName"] .md-background-bg.md-hue-2 .hint-text,\n[md-theme="@themeName"] .md-background-bg.md-hue-2 .disabled-text {\n    color: @backgroundHue2Contrast3;\n}\n\n[md-theme="@themeName"] .md-background-bg.md-hue-2 .fade-text,\n[md-theme="@themeName"] .md-background-bg.md-hue-2 .divider {\n    color: @backgroundHue2Contrast4;\n}\n\n/* Background, Hue-3 */\n[md-theme="@themeName"] .md-background-bg.md-hue-3 {\n    background-color: @backgroundHue3Color;\n    color: @backgroundHue3Contrast1;\n}\n\n[md-theme="@themeName"] .md-background-bg.md-hue-3 .secondary-text,\n[md-theme="@themeName"] .md-background-bg.md-hue-3 .icon {\n    color: @backgroundHue3Contrast1;\n}\n\n[md-theme="@themeName"] .md-background-bg.md-hue-3 .hint-text,\n[md-theme="@themeName"] .md-background-bg.md-hue-3 .disabled-text {\n    color: @backgroundHue3Contrast3;\n}\n\n[md-theme="@themeName"] .md-background-bg.md-hue-3 .fade-text,\n[md-theme="@themeName"] .md-background-bg.md-hue-3 .divider {\n    color: @backgroundHue3Contrast4;\n}\n\n/* Background foreground */\n[md-theme="@themeName"] .md-background-fg {\n    color: @backgroundDefaultColor !important;\n}\n\n/* Background foreground, Hue-1 */\n[md-theme="@themeName"] .md-background-fg.md-hue-1 {\n    color: @backgroundHue1Color !important;\n}\n\n/* Background foreground, Hue-2 */\n[md-theme="@themeName"] .md-background-fg.md-hue-2 {\n    color: @backgroundHue2Color !important;\n}\n\n/* Background foreground, Hue-3 */\n[md-theme="@themeName"] .md-background-fg.md-hue-3 {\n    color: @backgroundHue3Color !important;\n}',n=new RegExp(Object.keys(e).join("|"),"gi"),a=t.replace(n,function(t){return e[t]}),i=angular.element("head"),o=angular.element('<style type="text/css"></style>');o.html(a),i.append(o)}function s(e,n){var a=n||!1;return 4===e.length&&255===e[0]&&255===e[1]&&255===e[2]&&e.splice(3,4),a&&(e=l(e,a)),3===e.length?"rgb("+e.join(",")+")":4===e.length?"rgba("+e.join(",")+")":void t.error("Invalid number of arguments supplied in the color array: "+e.length+"\nThe array must have 3 or 4 colors.")}function l(e,t){var n={white:{1:"1",2:"0.7",3:"0.3",4:"0.12"},black:{1:"0.87",2:"0.54",3:"0.26",4:"0.12"}};return 255===e[0]&&255===e[1]&&255===e[2]?e[3]=n.white[t]:0===e[0]&&0===e[1]&&0===e[2]&&(e[3]=n.black[t]),e}function r(e){return e.charAt(0).toUpperCase()+e.slice(1)}var d={},c={generate:a,rgba:s};return c}e.$inject=["$cookies","$log","fuseTheming"],angular.module("app.core").factory("fuseGenerator",e)}(),function(){"use strict";function e(e,t,n){function a(){var e=n.getRegisteredThemes(),t=n.getRegisteredPalettes();angular.forEach(e,function(e){d[e.name]={},angular.forEach(e.colors,function(n,a){d[e.name][a]={name:n.name,levels:{"default":{color:s(t[n.name][n.hues["default"]].value),contrast1:s(t[n.name][n.hues["default"]].contrast,1),contrast2:s(t[n.name][n.hues["default"]].contrast,2),contrast3:s(t[n.name][n.hues["default"]].contrast,3),contrast4:s(t[n.name][n.hues["default"]].contrast,4)},hue1:{color:s(t[n.name][n.hues["hue-1"]].value),contrast1:s(t[n.name][n.hues["hue-1"]].contrast,1),contrast2:s(t[n.name][n.hues["hue-1"]].contrast,2),contrast3:s(t[n.name][n.hues["hue-1"]].contrast,3),contrast4:s(t[n.name][n.hues["hue-1"]].contrast,4)},hue2:{color:s(t[n.name][n.hues["hue-2"]].value),contrast1:s(t[n.name][n.hues["hue-2"]].contrast,1),contrast2:s(t[n.name][n.hues["hue-2"]].contrast,2),contrast3:s(t[n.name][n.hues["hue-2"]].contrast,3),contrast4:s(t[n.name][n.hues["hue-2"]].contrast,4)},hue3:{color:s(t[n.name][n.hues["hue-3"]].value),contrast1:s(t[n.name][n.hues["hue-3"]].contrast,1),contrast2:s(t[n.name][n.hues["hue-3"]].contrast,2),contrast3:s(t[n.name][n.hues["hue-3"]].contrast,3),contrast4:s(t[n.name][n.hues["hue-3"]].contrast,4)}}}})}),i(d);var a={};angular.forEach(d,function(e,t){a={},a["@themeName"]=t,angular.forEach(e,function(e,t){angular.forEach(e.levels,function(e,n){angular.forEach(e,function(e,i){a["@"+t+r(n)+r(i)]=e})})}),o(a)})}function i(t){var a=angular.copy(t);angular.forEach(a,function(e){angular.forEach(e,function(t,n){e[n]=t.levels,e[n].color=t.levels["default"].color,e[n].contrast1=t.levels["default"].contrast1,e[n].contrast2=t.levels["default"].contrast2,e[n].contrast3=t.levels["default"].contrast3,e[n].contrast4=t.levels["default"].contrast4,delete e[n]["default"]})}),n.setThemesList(a);var i=e.get("selectedTheme");i?n.setActiveTheme(i):n.setActiveTheme("default")}function o(e){var t='[md-theme="@themeName"] a {\n    color: @accentDefaultColor;\n}\n\n[md-theme="@themeName"] .secondary-text,\n[md-theme="@themeName"] .icon {\n    color: @backgroundDefaultContrast2;\n}\n\n[md-theme="@themeName"] .hint-text,\n[md-theme="@themeName"] .disabled-text {\n    color: @backgroundDefaultContrast3;\n}\n\n[md-theme="@themeName"] .fade-text,\n[md-theme="@themeName"] .divider {\n    color: @backgroundDefaultContrast4;\n}\n\n/* Primary */\n[md-theme="@themeName"] .md-primary-bg {\n    background-color: @primaryDefaultColor;\n    color: @primaryDefaultContrast1;\n}\n\n[md-theme="@themeName"] .md-primary-bg .secondary-text,\n[md-theme="@themeName"] .md-primary-bg .icon {\n    color: @primaryDefaultContrast2;\n}\n\n[md-theme="@themeName"] .md-primary-bg .hint-text,\n[md-theme="@themeName"] .md-primary-bg .disabled-text {\n    color: @primaryDefaultContrast3;\n}\n\n[md-theme="@themeName"] .md-primary-bg .fade-text,\n[md-theme="@themeName"] .md-primary-bg .divider {\n    color: @primaryDefaultContrast4;\n}\n\n/* Primary, Hue-1 */\n[md-theme="@themeName"] .md-primary-bg.md-hue-1 {\n    background-color: @primaryHue1Color;\n    color: @primaryHue1Contrast1;\n}\n\n[md-theme="@themeName"] .md-primary-bg.md-hue-1 .secondary-text,\n[md-theme="@themeName"] .md-primary-bg.md-hue-1 .icon {\n    color: @primaryHue1Contrast2;\n}\n\n[md-theme="@themeName"] .md-primary-bg.md-hue-1 .hint-text,\n[md-theme="@themeName"] .md-primary-bg.md-hue-1 .disabled-text {\n    color: @primaryHue1Contrast3;\n}\n\n[md-theme="@themeName"] .md-primary-bg.md-hue-1 .fade-text,\n[md-theme="@themeName"] .md-primary-bg.md-hue-1 .divider {\n    color: @primaryHue1Contrast4;\n}\n\n/* Primary, Hue-2 */\n[md-theme="@themeName"] .md-primary-bg.md-hue-2 {\n    background-color: @primaryHue2Color;\n    color: @primaryHue2Contrast1;\n}\n\n[md-theme="@themeName"] .md-primary-bg.md-hue-2 .secondary-text,\n[md-theme="@themeName"] .md-primary-bg.md-hue-2 .icon {\n    color: @primaryHue2Contrast2;\n}\n\n[md-theme="@themeName"] .md-primary-bg.md-hue-2 .hint-text,\n[md-theme="@themeName"] .md-primary-bg.md-hue-2 .disabled-text {\n    color: @primaryHue2Contrast3;\n}\n\n[md-theme="@themeName"] .md-primary-bg.md-hue-2 .fade-text,\n[md-theme="@themeName"] .md-primary-bg.md-hue-2 .divider {\n    color: @primaryHue2Contrast4;\n}\n\n/* Primary, Hue-3 */\n[md-theme="@themeName"] .md-primary-bg.md-hue-3 {\n    background-color: @primaryHue3Color;\n    color: @primaryHue3Contrast1;\n}\n\n[md-theme="@themeName"] .md-primary-bg.md-hue-3 .secondary-text,\n[md-theme="@themeName"] .md-primary-bg.md-hue-3 .icon {\n    color: @primaryHue3Contrast1;\n}\n\n[md-theme="@themeName"] .md-primary-bg.md-hue-3 .hint-text,\n[md-theme="@themeName"] .md-primary-bg.md-hue-3 .disabled-text {\n    color: @primaryHue3Contrast3;\n}\n\n[md-theme="@themeName"] .md-primary-bg.md-hue-3 .fade-text,\n[md-theme="@themeName"] .md-primary-bg.md-hue-3 .divider {\n    color: @primaryHue3Contrast4;\n}\n\n/* Primary foreground */\n[md-theme="@themeName"] .md-primary-fg {\n    color: @primaryDefaultColor !important;\n}\n\n/* Primary foreground, Hue-1 */\n[md-theme="@themeName"] .md-primary-fg.md-hue-1 {\n    color: @primaryHue1Color !important;\n}\n\n/* Primary foreground, Hue-2 */\n[md-theme="@themeName"] .md-primary-fg.md-hue-2 {\n    color: @primaryHue2Color !important;\n}\n\n/* Primary foreground, Hue-3 */\n[md-theme="@themeName"] .md-primary-fg.md-hue-3 {\n    color: @primaryHue3Color !important;\n}\n\n\n/* Accent */\n[md-theme="@themeName"] .md-accent-bg {\n    background-color: @accentDefaultColor;\n    color: @accentDefaultContrast1;\n}\n\n[md-theme="@themeName"] .md-accent-bg .secondary-text,\n[md-theme="@themeName"] .md-accent-bg .icon {\n    color: @accentDefaultContrast2;\n}\n\n[md-theme="@themeName"] .md-accent-bg .hint-text,\n[md-theme="@themeName"] .md-accent-bg .disabled-text {\n    color: @accentDefaultContrast3;\n}\n\n[md-theme="@themeName"] .md-accent-bg .fade-text,\n[md-theme="@themeName"] .md-accent-bg .divider {\n    color: @accentDefaultContrast4;\n}\n\n/* Accent, Hue-1 */\n[md-theme="@themeName"] .md-accent-bg.md-hue-1 {\n    background-color: @accentHue1Color;\n    color: @accentHue1Contrast1;\n}\n\n[md-theme="@themeName"] .md-accent-bg.md-hue-1 .secondary-text,\n[md-theme="@themeName"] .md-accent-bg.md-hue-1 .icon {\n    color: @accentHue1Contrast2;\n}\n\n[md-theme="@themeName"] .md-accent-bg.md-hue-1 .hint-text,\n[md-theme="@themeName"] .md-accent-bg.md-hue-1 .disabled-text {\n    color: @accentHue1Contrast3;\n}\n\n[md-theme="@themeName"] .md-accent-bg.md-hue-1 .fade-text,\n[md-theme="@themeName"] .md-accent-bg.md-hue-1 .divider {\n    color: @accentHue1Contrast4;\n}\n\n/* Accent, Hue-2 */\n[md-theme="@themeName"] .md-accent-bg.md-hue-2 {\n    background-color: @accentHue2Color;\n    color: @accentHue2Contrast1;\n}\n\n[md-theme="@themeName"] .md-accent-bg.md-hue-2 .secondary-text,\n[md-theme="@themeName"] .md-accent-bg.md-hue-2 .icon {\n    color: @accentHue2Contrast2;\n}\n\n[md-theme="@themeName"] .md-accent-bg.md-hue-2 .hint-text,\n[md-theme="@themeName"] .md-accent-bg.md-hue-2 .disabled-text {\n    color: @accentHue2Contrast3;\n}\n\n[md-theme="@themeName"] .md-accent-bg.md-hue-2 .fade-text,\n[md-theme="@themeName"] .md-accent-bg.md-hue-2 .divider {\n    color: @accentHue2Contrast4;\n}\n\n/* Accent, Hue-3 */\n[md-theme="@themeName"] .md-accent-bg.md-hue-3 {\n    background-color: @accentHue3Color;\n    color: @accentHue3Contrast1;\n}\n\n[md-theme="@themeName"] .md-accent-bg.md-hue-3 .secondary-text,\n[md-theme="@themeName"] .md-accent-bg.md-hue-3 .icon {\n    color: @accentHue3Contrast1;\n}\n\n[md-theme="@themeName"] .md-accent-bg.md-hue-3 .hint-text,\n[md-theme="@themeName"] .md-accent-bg.md-hue-3 .disabled-text {\n    color: @accentHue3Contrast3;\n}\n\n[md-theme="@themeName"] .md-accent-bg.md-hue-3 .fade-text,\n[md-theme="@themeName"] .md-accent-bg.md-hue-3 .divider {\n    color: @accentHue3Contrast4;\n}\n\n/* Accent foreground */\n[md-theme="@themeName"] .md-accent-fg {\n    color: @accentDefaultColor !important;\n}\n\n/* Accent foreground, Hue-1 */\n[md-theme="@themeName"] .md-accent-fg.md-hue-1 {\n    color: @accentHue1Color !important;\n}\n\n/* Accent foreground, Hue-2 */\n[md-theme="@themeName"] .md-accent-fg.md-hue-2 {\n    color: @accentHue2Color !important;\n}\n\n/* Accent foreground, Hue-3 */\n[md-theme="@themeName"] .md-accent-fg.md-hue-3 {\n    color: @accentHue3Color !important;\n}\n\n\n/* Warn */\n[md-theme="@themeName"] .md-warn-bg {\n    background-color: @warnDefaultColor;\n    color: @warnDefaultContrast1;\n}\n\n[md-theme="@themeName"] .md-warn-bg .secondary-text,\n[md-theme="@themeName"] .md-warn-bg .icon {\n    color: @warnDefaultContrast2;\n}\n\n[md-theme="@themeName"] .md-warn-bg .hint-text,\n[md-theme="@themeName"] .md-warn-bg .disabled-text {\n    color: @warnDefaultContrast3;\n}\n\n[md-theme="@themeName"] .md-warn-bg .fade-text,\n[md-theme="@themeName"] .md-warn-bg .divider {\n    color: @warnDefaultContrast4;\n}\n\n/* Warn, Hue-1 */\n[md-theme="@themeName"] .md-warn-bg.md-hue-1 {\n    background-color: @warnHue1Color;\n    color: @warnHue1Contrast1;\n}\n\n[md-theme="@themeName"] .md-warn-bg.md-hue-1 .secondary-text,\n[md-theme="@themeName"] .md-warn-bg.md-hue-1 .icon {\n    color: @warnHue1Contrast2;\n}\n\n[md-theme="@themeName"] .md-warn-bg.md-hue-1 .hint-text,\n[md-theme="@themeName"] .md-warn-bg.md-hue-1 .disabled-text {\n    color: @warnHue1Contrast3;\n}\n\n[md-theme="@themeName"] .md-warn-bg.md-hue-1 .fade-text,\n[md-theme="@themeName"] .md-warn-bg.md-hue-1 .divider {\n    color: @warnHue1Contrast4;\n}\n\n/* Warn, Hue-2 */\n[md-theme="@themeName"] .md-warn-bg.md-hue-2 {\n    background-color: @warnHue2Color;\n    color: @warnHue2Contrast1;\n}\n\n[md-theme="@themeName"] .md-warn-bg.md-hue-2 .secondary-text,\n[md-theme="@themeName"] .md-warn-bg.md-hue-2 .icon {\n    color: @warnHue2Contrast2;\n}\n\n[md-theme="@themeName"] .md-warn-bg.md-hue-2 .hint-text,\n[md-theme="@themeName"] .md-warn-bg.md-hue-2 .disabled-text {\n    color: @warnHue2Contrast3;\n}\n\n[md-theme="@themeName"] .md-warn-bg.md-hue-2 .fade-text,\n[md-theme="@themeName"] .md-warn-bg.md-hue-2 .divider {\n    color: @warnHue2Contrast4;\n}\n\n/* Warn, Hue-3 */\n[md-theme="@themeName"] .md-warn-bg.md-hue-3 {\n    background-color: @warnHue3Color;\n    color: @warnHue3Contrast1;\n}\n\n[md-theme="@themeName"] .md-warn-bg.md-hue-3 .secondary-text,\n[md-theme="@themeName"] .md-warn-bg.md-hue-3 .icon {\n    color: @warnHue3Contrast1;\n}\n\n[md-theme="@themeName"] .md-warn-bg.md-hue-3 .hint-text,\n[md-theme="@themeName"] .md-warn-bg.md-hue-3 .disabled-text {\n    color: @warnHue3Contrast3;\n}\n\n[md-theme="@themeName"] .md-warn-bg.md-hue-3 .fade-text,\n[md-theme="@themeName"] .md-warn-bg.md-hue-3 .divider {\n    color: @warnHue3Contrast4;\n}\n\n/* Warn foreground */\n[md-theme="@themeName"] .md-warn-fg {\n    color: @warnDefaultColor !important;\n}\n\n/* Warn foreground, Hue-1 */\n[md-theme="@themeName"] .md-warn-fg.md-hue-1 {\n    color: @warnHue1Color !important;\n}\n\n/* Warn foreground, Hue-2 */\n[md-theme="@themeName"] .md-warn-fg.md-hue-2 {\n    color: @warnHue2Color !important;\n}\n\n/* Warn foreground, Hue-3 */\n[md-theme="@themeName"] .md-warn-fg.md-hue-3 {\n    color: @warnHue3Color !important;\n}\n\n/* Background */\n[md-theme="@themeName"] .md-background-bg {\n    background-color: @backgroundDefaultColor;\n    color: @backgroundDefaultContrast1;\n}\n\n[md-theme="@themeName"] .md-background-bg .secondary-text,\n[md-theme="@themeName"] .md-background-bg .icon {\n    color: @backgroundDefaultContrast2;\n}\n\n[md-theme="@themeName"] .md-background-bg .hint-text,\n[md-theme="@themeName"] .md-background-bg .disabled-text {\n    color: @backgroundDefaultContrast3;\n}\n\n[md-theme="@themeName"] .md-background-bg .fade-text,\n[md-theme="@themeName"] .md-background-bg .divider {\n    color: @backgroundDefaultContrast4;\n}\n\n/* Background, Hue-1 */\n[md-theme="@themeName"] .md-background-bg.md-hue-1 {\n    background-color: @backgroundHue1Color;\n    color: @backgroundHue1Contrast1;\n}\n\n[md-theme="@themeName"] .md-background-bg.md-hue-1 .secondary-text,\n[md-theme="@themeName"] .md-background-bg.md-hue-1 .icon {\n    color: @backgroundHue1Contrast2;\n}\n\n[md-theme="@themeName"] .md-background-bg.md-hue-1 .hint-text,\n[md-theme="@themeName"] .md-background-bg.md-hue-1 .disabled-text {\n    color: @backgroundHue1Contrast3;\n}\n\n[md-theme="@themeName"] .md-background-bg.md-hue-1 .fade-text,\n[md-theme="@themeName"] .md-background-bg.md-hue-1 .divider {\n    color: @backgroundHue1Contrast4;\n}\n\n/* Background, Hue-2 */\n[md-theme="@themeName"] .md-background-bg.md-hue-2 {\n    background-color: @backgroundHue2Color;\n    color: @backgroundHue2Contrast1;\n}\n\n[md-theme="@themeName"] .md-background-bg.md-hue-2 .secondary-text,\n[md-theme="@themeName"] .md-background-bg.md-hue-2 .icon {\n    color: @backgroundHue2Contrast2;\n}\n\n[md-theme="@themeName"] .md-background-bg.md-hue-2 .hint-text,\n[md-theme="@themeName"] .md-background-bg.md-hue-2 .disabled-text {\n    color: @backgroundHue2Contrast3;\n}\n\n[md-theme="@themeName"] .md-background-bg.md-hue-2 .fade-text,\n[md-theme="@themeName"] .md-background-bg.md-hue-2 .divider {\n    color: @backgroundHue2Contrast4;\n}\n\n/* Background, Hue-3 */\n[md-theme="@themeName"] .md-background-bg.md-hue-3 {\n    background-color: @backgroundHue3Color;\n    color: @backgroundHue3Contrast1;\n}\n\n[md-theme="@themeName"] .md-background-bg.md-hue-3 .secondary-text,\n[md-theme="@themeName"] .md-background-bg.md-hue-3 .icon {\n    color: @backgroundHue3Contrast1;\n}\n\n[md-theme="@themeName"] .md-background-bg.md-hue-3 .hint-text,\n[md-theme="@themeName"] .md-background-bg.md-hue-3 .disabled-text {\n    color: @backgroundHue3Contrast3;\n}\n\n[md-theme="@themeName"] .md-background-bg.md-hue-3 .fade-text,\n[md-theme="@themeName"] .md-background-bg.md-hue-3 .divider {\n    color: @backgroundHue3Contrast4;\n}\n\n/* Background foreground */\n[md-theme="@themeName"] .md-background-fg {\n    color: @backgroundDefaultColor !important;\n}\n\n/* Background foreground, Hue-1 */\n[md-theme="@themeName"] .md-background-fg.md-hue-1 {\n    color: @backgroundHue1Color !important;\n}\n\n/* Background foreground, Hue-2 */\n[md-theme="@themeName"] .md-background-fg.md-hue-2 {\n    color: @backgroundHue2Color !important;\n}\n\n/* Background foreground, Hue-3 */\n[md-theme="@themeName"] .md-background-fg.md-hue-3 {\n    color: @backgroundHue3Color !important;\n}',n=new RegExp(Object.keys(e).join("|"),"gi"),a=t.replace(n,function(t){
  return e[t]}),i=angular.element("head"),o=angular.element('<style type="text/css"></style>');o.html(a),i.append(o)}function s(e,n){var a=n||!1;return 4===e.length&&255===e[0]&&255===e[1]&&255===e[2]&&e.splice(3,4),a&&(e=l(e,a)),3===e.length?"rgb("+e.join(",")+")":4===e.length?"rgba("+e.join(",")+")":void t.error("Invalid number of arguments supplied in the color array: "+e.length+"\nThe array must have 3 or 4 colors.")}function l(e,t){var n={white:{1:"1",2:"0.7",3:"0.3",4:"0.12"},black:{1:"0.87",2:"0.54",3:"0.26",4:"0.12"}};return 255===e[0]&&255===e[1]&&255===e[2]?e[3]=n.white[t]:0===e[0]&&0===e[1]&&0===e[2]&&(e[3]=n.black[t]),e}function r(e){return e.charAt(0).toUpperCase()+e.slice(1)}var d={},c={generate:a,rgba:s};return c}e.$inject=["$cookies","$log","fuseTheming"],angular.module("app.core").factory("fuseGenerator",e)}(),function(){"use strict";function e(e,t){function n(e){t.setActiveTheme(e)}function a(){var e=angular.element("body");e.toggleClass("boxed","boxed"===o.layoutMode)}function i(){e.put("layoutStyle",o.layoutStyle),location.reload()}var o=this;o.themes=t.themes,o.layoutMode="wide",o.layoutStyle=e.get("layoutStyle")||"verticalNavigation",o.setActiveTheme=n,o.updateLayoutMode=a,o.updateLayoutStyle=i}function t(){return{restrict:"E",scope:{panelOpen:"=?"},controller:"MsThemeOptionsController as vm",templateUrl:"app/core/theme-options/theme-options.html",compile:function(e){return e.addClass("ms-theme-options"),function(e,t){function n(){e.panelOpen?i():a()}function a(){e.panelOpen=!0,t.addClass("open"),o.append(s),s.on("click touch",i)}function i(){e.panelOpen=!1,t.removeClass("open"),s.off("click touch",i),s.remove()}var o=angular.element("body"),s=angular.element('<div class="ms-theme-options-backdrop"></div>');e.panelOpen=e.panelOpen||!1,e.toggleOptionsPanel=n}}}}e.$inject=["$cookies","fuseTheming"],angular.module("app.core").controller("MsThemeOptionsController",e).directive("msThemeOptions",t)}(),function(){"use strict";function e(e){function t(e,t){return t.indexOf(e)>-1}function n(){function t(e){for(var t=0;t<e.length;t++){var n=e[t].string,a=e[t].prop;if(o=e[t].versionSearch||e[t].identity,n){if(-1!==n.indexOf(e[t].subString))return e[t].identity}else if(a)return e[t].identity}}function n(e){var t=e.indexOf(o);if(-1!==t)return parseInt(e.substring(t+o.length+1))}if(l)return l;var a=[{string:e.navigator.userAgent,subString:"Edge",versionSearch:"Edge",identity:"Edge"},{string:e.navigator.userAgent,subString:"Chrome",identity:"Chrome"},{string:e.navigator.userAgent,subString:"OmniWeb",versionSearch:"OmniWeb/",identity:"OmniWeb"},{string:e.navigator.vendor,subString:"Apple",versionSearch:"Version",identity:"Safari"},{prop:e.opera,identity:"Opera"},{string:e.navigator.vendor,subString:"iCab",identity:"iCab"},{string:e.navigator.vendor,subString:"KDE",identity:"Konqueror"},{string:e.navigator.userAgent,subString:"Firefox",identity:"Firefox"},{string:e.navigator.vendor,subString:"Camino",identity:"Camino"},{string:e.navigator.userAgent,subString:"Netscape",identity:"Netscape"},{string:e.navigator.userAgent,subString:"MSIE",identity:"Explorer",versionSearch:"MSIE"},{string:e.navigator.userAgent,subString:"Trident/7",identity:"Explorer",versionSearch:"rv"},{string:e.navigator.userAgent,subString:"Gecko",identity:"Mozilla",versionSearch:"rv"},{string:e.navigator.userAgent,subString:"Mozilla",identity:"Netscape",versionSearch:"Mozilla"}],i=[{string:e.navigator.platform,subString:"Win",identity:"Windows"},{string:e.navigator.platform,subString:"Mac",identity:"Mac"},{string:e.navigator.platform,subString:"Linux",identity:"Linux"},{string:e.navigator.platform,subString:"iPhone",identity:"iPhone"},{string:e.navigator.platform,subString:"iPod",identity:"iPod"},{string:e.navigator.platform,subString:"iPad",identity:"iPad"},{string:e.navigator.platform,subString:"Android",identity:"Android"}],o="",s=t(a)||"unknown-browser",r=n(e.navigator.userAgent)||n(e.navigator.appVersion)||"unknown-version",d=t(i)||"unknown-os";return s=s.toLowerCase(),r=s+"-"+r,d=d.toLowerCase(),l={browser:s,version:r,os:d}}function a(){var e=function(){return(65536*(1+Math.random())||0).toString(16).substring(1)};return e()+e()+e()+e()+e()+e()}function i(){return s.mobile()}function o(e,t){-1===t.indexOf(e)?t.push(e):t.splice(t.indexOf(e),1)}var s=new MobileDetect(e.navigator.userAgent),l=null,r={exists:t,detectBrowser:n,guidGenerator:a,isMobile:i,toggleInArray:o};return r}e.$inject=["$window"],angular.module("app.core").factory("msUtils",e)}(),function(){"use strict";function e(){function e(e){s=e}function t(){return s}function n(){return l}function a(e,t){return angular.isString(e)?angular.isArray(t)?void(l[e]={url:s+(t[0]||""),paramDefaults:t[1]||[],actions:t[2]||[],options:t[3]||{}}):void o.error('"resource" must be an array and it must follow $resource definition'):void o.error('"path" must be a string (eg. `dashboard.project`)')}var i=this,o=angular.injector(["ng"]).get("$log"),s="",l=[];i.setBaseUrl=e,i.getBaseUrl=t,i.getApiObject=n,i.register=a,this.$get=["$q","$log","$resource",function(n,i,o){function s(e,t){var a=e.split("@"),s=a[0],r=a[1],d=t||{};if(!s||!r)return i.error("msApi.resolve requires correct action parameter (resourceName@methodName)"),!1;var c=n.defer(),m=l[s];if(m){var u=o(m.url,m.paramDefaults,m.actions,m.options);u[r](d,function(e){c.resolve(e)},function(e){c.reject(e)})}else i.error('Resource "'+s+'" is not defined in the api service!'),c.reject('Resource "'+s+'" is not defined in the api service!');return c.promise}function r(e,t,a,s){var r=e.split("@"),d=r[0],c=r[1],m=t||{};if(!d||!c)return i.error("msApi.resolve requires correct action parameter (resourceName@methodName)"),!1;var u=n.defer(),p=l[d];if(p){var g=o(p.url,p.paramDefaults,p.actions,p.options);g[c](m,function(e){u.resolve(e),angular.isDefined(a)&&angular.isFunction(a)&&a(e)},function(e){u.reject(e),angular.isDefined(s)&&angular.isFunction(s)&&s(e)})}else i.error('Resource "'+d+'" is not defined in the api service!'),u.reject('Resource "'+d+'" is not defined in the api service!');return u.promise}var d={setBaseUrl:e,getBaseUrl:t,register:a,resolve:s,request:r};return d}]}angular.module("app.core").provider("msApi",e)}(),function(){"use strict";function e(e,t,n){function a(n,a){var o=n.split("@"),s=o[0],l=o[1],r=a||{};if(!s||!l)return t.error("apiResolver.resolve requires correct action parameter (ResourceName@methodName)"),!1;var d=e.defer(),c=i(s);return c?c[l](r,function(e){d.resolve(e)},function(e){d.reject(e)}):(t.error('Resource "'+s+'" is not defined in the api service!'),d.reject('Resource "'+s+'" is not defined in the api service!')),d.promise}function i(e){for(var a=e.split("."),i=n,o=0;o<a.length;o++){if(angular.isUndefined(i[a[o]])){t.error('Resource part "'+a[o]+'" is not defined!'),i=!1;break}i=i[a[o]]}return i?i:!1}var o={resolve:a};return o}e.$inject=["$q","$log","api"],angular.module("app.core").factory("apiResolver",e)}(),function(){"use strict";function e(){return function(e,t){if(0===e.length||0===t.length)return e;var n=[];return e.forEach(function(e){var a=t.every(function(t){var n=!1;return e.tags.forEach(function(e){return e.name===t.name?void(n=!0):void 0}),n});a&&n.push(e)}),n}}function t(){return function(e,t){if(0!==e.length&&0!==t.length){if(e.length<t.length)return[];var n=[],a=t.every(function(t){var n=!1;return e.forEach(function(e){return e.name===t.name?void(n=!0):void 0}),n});return a&&n.push(e),n}}}angular.module("app.core").filter("filterByTags",e).filter("filterSingleByTags",t)}(),function(){"use strict";function e(){return function(e,t,n){if(0===e.length||!n||0===n.length)return e;for(var a=[],i=0;i<e.length;i++){for(var o=e[i],s=!1,l=0;l<n.length;l++){var r=n[l];if(o[t].indexOf(r)>-1){s=!0;break}}s&&a.push(o)}return a}}angular.module("app.core").filter("filterByPropIds",e)}(),function(){"use strict";function e(){return function(e,t){if(0===e.length||!t)return e;if(0===t.length)return[];for(var n=[],a=0;a<e.length;a++){for(var i=e[a],o=!1,s=0;s<t.length;s++){var l=t[s];if(i.id===l){o=!0;break}}o&&n.push(i)}return n}}angular.module("app.core").filter("filterByIds",e)}(),function(){"use strict";function e(e){return function(t){return e.trustAsHtml(t)}}function t(){return function(e){return String(e).replace(/<[^>]+>/gm,"")}}function n(){return function(e){return e?e.replace(/ /g,""):""}}function a(){return function(e){return e?"directive"===e.type?e.name.replace(/([A-Z])/g,function(e){return"-"+e.toLowerCase()}):e.label||e.name:void 0}}e.$inject=["$sce"],angular.module("app.core").filter("toTrusted",e).filter("htmlToPlaintext",t).filter("nospace",n).filter("humanizeDoc",a)}(),function(){"use strict";function e(){return function(e){var t=Date.now()-new Date(e);return 36e5>t?moment(e).fromNow():864e5>t?moment(e).format("HH:mm"):6048e5>t?moment(e).format("dddd"):moment(e).calendar()}}angular.module("app.core").filter("altDate",e)}(),function(){"use strict";function e(e,t,n){return{restrict:"E",compile:function(a,i){var o;return i.code||(o=a.html(),a.empty()),function(a,i,s){function l(e,t){var n=t.find("code"),a=e.split("\n");a=a.filter(function(e){return e.trim().length});var i=a[0].match(/^\s*/)[0],o=new RegExp("^"+i);a=a.map(function(e){return e.replace(o,"").replace(/\s+$/,"")});var l=hljs.highlight(s.language||s.lang,a.join("\n"),!0);l.value=l.value.replace(/=<span class="hljs-value">""<\/span>/gi,"").replace("<head>","").replace("<head/>",""),n.append(l.value).addClass("highlight")}s.code&&(o=a.$eval(s.code));var r=a.$eval(s.shouldInterpolate);t.when(o).then(function(t){if(t){r&&(t=n(t)(a));var o=angular.element('<pre><code class="highlight" ng-non-bindable></code></pre>');i.append(o),e(function(){l(t,o)},34,!1)}})}}}}e.$inject=["$timeout","$q","$interpolate"],angular.module("app.core").directive("hljs",e)}(),function(){"use strict";function e(){function e(e){t=angular.extend({},t,e)}var t={disableCustomScrollbars:!1,disableMdInkRippleOnMobile:!0,disableCustomScrollbarsOnMobile:!0};this.config=e,this.$get=function(){function e(e){return angular.isUndefined(t[e])?!1:t[e]}function n(e,n){t[e]=n}var a={getConfig:e,setConfig:n};return a}}angular.module("app.core").provider("fuseConfig",e)}(),function(){function e(){function e(e){return e.reduce(function(e,t){return e[t]=(+e[t]||0)+1,e},{})}function t(t){function a(e){d3.select("#wordcloud").append("svg").attr("width",700).attr("height",300).append("g").attr("transform","translate(250,150)").selectAll("text").data(e).enter().append("text").style("font-size",function(e){return e.size+"px"}).style("font-family","Impact").style("fill",function(e,t){return r(t)}).attr("text-anchor","middle").attr("transform",function(e){return"translate("+[e.x,e.y]+")rotate("+e.rotate+")"}).text(function(e){return e.text})}var i=e(t),o=[];for(var s in i)i.hasOwnProperty(s)&&o.push({text:s,count:i[s]});var l=o.filter(function(e){return n(e.text)?void 0:e}),r=d3.scale.category20();d3.layout.cloud().size([400,400]).words(l.map(function(e){return{text:e.text,size:12+2*e.count}})).rotate(function(){return 0*~~(2*Math.random())}).font("Impact").fontSize(function(e){return e.size}).on("end",a).start()}function n(e){stopWordsArray=a.split(",");for(var t=0;t<stopWordsArray.length;++t)if(e===stopWordsArray[t])return!0;return!1}var a="a,able,about,above,abst,accordance,according,accordingly,across,act,actually,added,adj, affected,affecting,affects,after,afterwards,again,against,ah,all,almost,alone,along,already,also,although, always,am,among,amongst,an,and,announce,another,any,anybody,anyhow,anymore,anyone,anything,anyway,anyways, anywhere,apparently,approximately,are,aren,arent,arise,around,as,aside,ask,asking,at,auth,available,away,awfully, b,back,be,became,because,become,becomes,becoming,been,before,beforehand,begin,beginning,beginnings,begins,behind, being,believe,below,beside,besides,between,beyond,biol,both,brief,briefly,but,by,c,ca,came,can,cannot,can't,cause,causes, certain,certainly,co,com,come,comes,contain,containing,contains,could,couldnt,d,date,did,didn't,different,do,does,doesn't, doing,done,don't,down,downwards,due,during,e,each,ed,edu,effect,eg,eight,eighty,either,else,elsewhere,end,ending,enough, especially,et,et-al,etc,even,ever,every,everybody,everyone,everything,everywhere,ex,except,f,far,few,ff,fifth,first,five,fix, followed,following,follows,for,former,formerly,forth,found,four,from,further,furthermore,g,gave,get,gets,getting,give,given,gives, giving,go,goes,gone,got,gotten,h,had,happens,hardly,has,hasn't,have,haven't,having,he,hed,hence,her,here,hereafter,hereby,herein, heres,hereupon,hers,herself,hes,hi,hid,him,himself,his,hither,home,how,howbeit,however,hundred,i,id,ie,if,i'll,im,immediate, immediately,importance,important,in,inc,indeed,index,information,instead,into,invention,inward,is,isn't,it,itd,it'll,its,itself, i've,j,just,k,keep,keeps,kept,kg,km,know,known,knows,l,largely,last,lately,later,latter,latterly,least,less,lest,let,lets,like, liked,likely,line,little,'ll,look,looking,looks,ltd,m,made,mainly,make,makes,many,may,maybe,me,mean,means,meantime,meanwhile, merely,mg,might,million,miss,ml,more,moreover,most,mostly,mr,mrs,much,mug,must,my,myself,n,na,name,namely,nay,nd,near,nearly, necessarily,necessary,need,needs,neither,never,nevertheless,new,next,nine,ninety,no,nobody,non,none,nonetheless,noone,nor, normally,nos,not,noted,nothing,now,nowhere,o,obtain,obtained,obviously,of,off,often,oh,ok,okay,old,omitted,on,once,one,ones, only,onto,or,ord,other,others,otherwise,ought,our,ours,ourselves,out,outside,over,overall,owing,own,p,page,pages,part, particular,particularly,past,per,perhaps,placed,please,plus,poorly,possible,possibly,potentially,pp,predominantly,present, previously,primarily,probably,promptly,proud,provides,put,q,que,quickly,quite,qv,r,ran,rather,rd,re,readily,really,recent, recently,ref,refs,regarding,regardless,regards,related,relatively,research,respectively,resulted,resulting,results,right,run,s, said,same,saw,say,saying,says,sec,section,see,seeing,seem,seemed,seeming,seems,seen,self,selves,sent,seven,several,shall,she,shed, she'll,shes,should,shouldn't,show,showed,shown,showns,shows,significant,significantly,similar,similarly,since,six,slightly,so, some,somebody,somehow,someone,somethan,something,sometime,sometimes,somewhat,somewhere,soon,sorry,specifically,specified,specify, specifying,still,stop,strongly,sub,substantially,successfully,such,sufficiently,suggest,sup,sure,t,take,taken,taking,tell,tends, th,than,thank,thanks,thanx,that,that'll,thats,that've,the,their,theirs,them,themselves,then,thence,there,thereafter,thereby, thered,therefore,therein,there'll,thereof,therere,theres,thereto,thereupon,there've,these,they,theyd,they'll,theyre,they've, think,this,those,thou,though,thoughh,thousand,throug,through,throughout,thru,thus,til,tip,to,together,too,took,toward,towards, tried,tries,truly,try,trying,ts,twice,two,u,un,under,unfortunately,unless,unlike,unlikely,until,unto,up,upon,ups,us,use,used, useful,usefully,usefulness,uses,using,usually,v,value,various,'ve,very,via,viz,vol,vols,vs,w,want,wants,was,wasn't,way,we,wed, welcome,we'll,went,were,weren't,we've,what,whatever,what'll,whats,when,whence,whenever,where,whereafter,whereas,whereby,wherein, wheres,whereupon,wherever,whether,which,while,whim,whither,who,whod,whoever,whole,who'll,whom,whomever,whos,whose,why,widely, willing,wish,with,within,without,won't,words,world,would,wouldn't,www,x,y,yes,yet,you,youd,you'll,your,youre,yours,yourself, yourselves,you've,z,zero";return{drawWordCloud:t}}angular.module("app.core").service("wordCloud",e)}(),function(){"use strict";function e(){function e(e){var t=moment(e),n=moment(),a=moment.duration(n.diff(t));return a.asSeconds()<60?Math.floor(a.asSeconds())+" seconds ago":a.asMinutes()<60?Math.floor(a.asMinutes())+" minutes ago":a.asHours()<24?Math.floor(a.asHours())+" hours ago":a.asDays()<30.4?Math.floor(a.asDays())+" days ago":a.asMonths()<12?Math.floor(a.asMonths())+" months ago":Math.floor(a.asYears())+" years ago"}return{timeDiff:e}}angular.module("app.core").service("Utils",e),e.$inject=[]}(),function(){function e(){function e(e){var t="";return t=12>e?e+" am":e-12+" pm",t=0===e?"12 am":t,t=12===e?"12 pm":t}function t(e){var t="",n="",a=e.activeDays,i=0,o=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"];if(t+=" (",a[0]===!0&&a[1]===!0&&a[2]===!0&&a[3]===!0&&a[4]===!0&&!a[5]&&!a[6])return t+" Mon - Fri ) ";for(var s=0;s<a.length;++s)a[s]===!0&&(t+=" "+o[s]+",",i++);return 7===i?e.occurrence===utils.HOURLY?n+"( All week )":"( All week )":(","===t[t.length-1]&&(t=t.slice(0,-1)),t+" ) ")}function n(e){var t="( ",n=e.activeWeeks,a=["First","Second","Third","Fourth","Last"];if(e.everyWeek===!0)return"( Every Week )";for(var o=0;o<n.length;++o)n[o]===!0&&(t+=" "+a[o]+",");return t=i(t),t+=" Week of Each Month",t+" )"}function a(e){for(var t="(",n=e.activeMonths,a=0,o=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sept","Oct","Nov","Dec"],s=0;s<n.length;++s)n[s]===!0&&(t+=" "+o[s]+",",a++);return 12===a?"( Every Month )":(t=i(t),t+" )")}function i(e){return","===e[e.length-1]?e.slice(0,-1):e}var o={1:"First",2:"Second",3:"Third",4:"Fourth",5:"Last"},s={1:"Monday",2:"Tuesday",3:"Wednesday",4:"Thursday",5:"Friday",6:"Saturday",7:"Sunday"},l={0:"Hourly",1:"Daily",2:"Weekly",3:"Monthly"};return{convertToPm:e,removeLastComma:i,showActiveMonths:a,showActiveWeeks:n,showActiveDays:t,weekMap:o,dayMap:s,occurrenceMap:l}}angular.module("app.core").service("ToDoService",e)}(),function(){function e(){}angular.module("app.core").service("stripe",e),e.$inject=[]}(),function(){"use strict";function e(e,t,n){function a(e){i=e}var i=!1;return{setLoading:a}}angular.module("app.core").service("SpinnerService",e),e.$inject=["msNavigationService","$q","$rootScope"]}(),function(){function e(e){return e({ioSocket:io.connect("")})}angular.module("app.core").service("socket",e),e.$inject=["socketFactory"]}(),function(){function e(e,t,n){function a(e,t){m=e,p=t}function i(){return g}function o(){return u}function s(e,t){var a=n.$on("notifying-service-event",t);e.$on("$destroy",a)}function l(e){g=[];var a=t.defer();if(void 0!==p&&p!==[])return e?u=m.filter(function(t){console.log(t.title,angular.lowercase(t.title.toString()).search(angular.lowercase(e)));for(var n=0;n<p.length;++n)if(void 0!==t[p[n]]&&-1!==angular.lowercase(t[p[n]].toString()).indexOf(angular.lowercase(e)))return!0;return void 0!==t.residentGoing&&-1!==angular.lowercase(t.residentGoing.firstName+t.residentGoing.lastname).indexOf(angular.lowercase(e))?!0:!1}):""===e&&(u=r()),n.$emit("notifying-service-event"),a.resolve(u),a.promise}function r(){for(var e=[],t=0;t<m.length;++t)void 0===m[t].color&&e.push(m[t]);return e}function d(){u=r(),n.$emit("notifying-service-event")}function c(e){console.log(e)}var m=[],u=[],p=[],g=[];return{setData:a,getResult:o,getUnfiltered:i,search:l,subscribe:s,searchResultClick:c,collapseSearch:d}}angular.module("app.core").service("SearchService",e),e.$inject=["msNavigationService","$q","$rootScope"]}(),function(){function e(e){function t(e,t,n){return e.substring(0,t)+n+e.substring(t+1)}function n(e){return t(a[e],a[e].length-1,"")}var a={},i=["transperent_logo","apila_logo","apila_form"];return e.get("https://s3-us-west-2.amazonaws.com/apilatest2/"+i[0]).success(function(e){a[i[0]]=e}),e.get("https://s3-us-west-2.amazonaws.com/apilatest2/"+i[1]).success(function(e){a[i[1]]=e}),e.get("https://s3-us-west-2.amazonaws.com/apilatest2/"+i[2]).success(function(e){a[i[2]]=e}),{getImage:n}}e.$inject=["$http"],angular.module("app.core").service("imageData",e)}(),function(){function e(){function e(e,t,n){return t[e]?(n[e]=!1,!1):(n[e]=!0,!0)}function t(t,n,a){n||(n={});for(var i=!1,o=0;o<a.length;++o)e(a[o],t,n)&&(i=!0);return i}return{requiredFields:t}}angular.module("app.core").service("errorCheck",e),e.$inject=[]}(),function(){function e(e,t,n){function a(t){e.get(i+"/api/users/community/"+t,{headers:{Authorization:"Bearer "+r()}}).success(function(e){o=e}).error(function(e){n.debug(e)})}var i="",o={},s="assets/images/avatars/userDefaultProfile.png",l=function(e){t.sessionStorage["apila-token"]=e;var n=JSON.parse(t.atob(e.split(".")[1])).name;t.sessionStorage["apila-username"]=t.btoa(n)},r=function(){return t.sessionStorage["apila-token"]},d=function(){var e=r();if(e){var n=JSON.parse(t.atob(e.split(".")[1]));return n.exp>Date.now()/1e3}return!1},c=function(){if(d()){var e=r(),n=JSON.parse(t.atob(e.split(".")[1])),i=t.sessionStorage["apila-username"],s=t.atob(i);return a(n._id),{email:n.email,name:s,id:n._id,community:o,communityId:n.community,todoid:n.todoid}}},m=function(e){t.sessionStorage["apila-username"]=t.btoa(e)},u=function(){return""===s?"assets/images/avatars/userDefaultProfile.png":s},p=function(e){s=e},g=function(t){return e.post(i+"/api/register",t).success(function(e){l(e.token)})},v=function(t){return e.post(i+"/api/login",t).success(function(e){l(e.token)})},h=function(){t.sessionStorage.removeItem("apila-token"),t.sessionStorage.removeItem("apila-username")};return d()&&e.get(i+"/api/users/"+c().id+"/image").success(function(e){s=e}).error(function(e){n.debug("Unable to load user image")}),{currentUser:c,saveToken:l,getToken:r,isLoggedIn:d,register:g,login:v,logout:h,getUserImage:u,setUserImage:p,changeUsername:m,getCommunity:a}}angular.module("app.core").service("authentication",e),e.$inject=["$http","$window","$log"]}(),function(){function e(e,t,n,a,i,o,s,l){function r(){return{headers:{Authorization:"Bearer "+t.getToken()}}}var d="";n.setApiUrl(d);var c=n.getIssueRoutes();i.setApiUrl(d);var m=i.getResidentsRoutes();a.setApiUrl(d);var u=a.getCommunitiesRoutes();o.setApiUrl(d);var p=o.getAppointmentsRoutes();s.setApiUrl(d);var g=s.getUsersRoutes();l.setApiUrl(d);var v=l.getTodosRoutes(),h=function(){return d},f=function(t,n){return e.post(d+"/api/activity/"+t,n,r())},b=function(t){return e.get(d+"/api/logs/"+t,r())},y=function(t,n){return e.get(d+"/api/user_logs/"+t+"/user/"+n,r())};return _.extend({getApiUrl:h,listLogs:b,listUserLogs:y,createToDoActivity:f},c,u,m,p,g,v)}angular.module("app.core").service("apilaData",e),e.$inject=["$http","authentication","IssuesApi","CommunitiesApi","ResidentsApi","AppointmentsApi","UsersApi","TodosApi"]}(),function(){function e(){return function(e){var t=e.replace(/\n/g,"<br/>");return t}}angular.module("app.core").filter("addHtmlLineBreaks",e)}(),function(){function e(e,t){return function(n){return n.then(function(e){return e},function(n){return 500===n.status&&t.url("/errors/error-500"),e.reject(n)})}}e.$inject=["$q","$location"],angular.module("fuse").factory("errorInterceptor",e)}(),function(){"use strict";function e(e){e.addPart("app/toolbar")}e.$inject=["$translatePartialLoaderProvider"],angular.module("app.toolbar",[]).config(e)}(),function(){"use strict";function e(e,t,n,a,i,o,s,l,r,d,c,m,u,p,g){function v(){A.userStatus=A.userStatusOptions[0],A.selectedLanguage=A.languages[n.preferredLanguage()]}function h(){d.go("app.profile")}function f(e){t(e).toggle()}function b(e){A.userStatus=e}function y(){o.debug("Logout"),c.logout(),s.disconnect(),l.location.reload()}function x(e){return g.search(e)}function w(e){g.searchResultClick(e)}function k(){g.collapseSearch()}function C(e){if(A.selectedLanguage=e,"en"!==e.code){var t="Fuse supports translations through angular-translate module, but currently we do not have any translations other than English language. If you want to help us, send us a message through ThemeForest profile page.";return void i.show({template:'<md-toast id="language-message" layout="column" layout-align="center start"><div class="md-toast-content">'+t+"</div></md-toast>",hideDelay:7e3,position:"top right",parent:"#content"})}n.use(e.code)}function S(){A.bodyEl.toggleClass("ms-navigation-horizontal-mobile-menu-active")}var A=this;e.global={search:""},A.finishedLoading=!0,e.$on("is_loading",function(e,t){console.log(t),A.finishedLoading=!t}),A.spinner=a,A.userImage=c.getUserImage(),A.username=c.currentUser().name,A.bodyEl=angular.element("body"),A.userStatusOptions=[{title:"Online",icon:"icon-checkbox-marked-circle",color:"#4CAF50"},{title:"Away",icon:"icon-clock",color:"#FFC107"},{title:"Do not Disturb",icon:"icon-minus-circle",color:"#F44336"},{title:"Invisible",icon:"icon-checkbox-blank-circle-outline",color:"#BDBDBD"},{title:"Offline",icon:"icon-checkbox-blank-circle-outline",color:"#616161"}],A.languages={en:{title:"English",translation:"TOOLBAR.ENGLISH",code:"en",flag:"us"},es:{title:"Spanish",translation:"TOOLBAR.SPANISH",code:"es",flag:"es"},tr:{title:"Turkish",translation:"TOOLBAR.TURKISH",code:"tr",flag:"tr"}},A.toggleSidenav=f,A.logout=y,A.changeLanguage=C,A.setUserStatus=b,A.toggleHorizontalMobileMenu=S,A.openProfile=h,A.search=x,A.searchResultClick=w,A.onCollapse=k,v(),g.setData(m.getFlatNavigation())}e.$inject=["$rootScope","$mdSidenav","$translate","SpinnerService","$mdToast","$log","socket","$window","$location","$state","authentication","msNavigationService","$q","$timeout","SearchService"],angular.module("app.toolbar").controller("ToolbarController",e)}(),function(){"use strict";function e(e,t,n,a,i,o,s,l,r){function d(e){r.saveItem("fuse.issues",{badge:{content:e,color:"#F44336"}})}function c(e){o.show({controller:"MemberAcceptedController",controllerAs:"vm",templateUrl:"app/quick-panel/dialogs/member-accepted.html",parent:angular.element(s.body),locals:{communityName:e},clickOutsideToClose:!0})}function m(e){switch(e){case"resident-create":return{"background-color":"#C8E6C9"};case"issue-create":return{"background-color":"#BBDEFB"};case"appointment-create":return{"background-color":"#FFCDD2"};case"community-join":return{"background-color":"#FOF4C3"};case"task-create":return{"background-color":"#FFE0B2"};default:return{"background-color":"white"}}}var u=this;u.date=new Date,u.settings={notify:!0,cloud:!1,retro:!0},u.activities=[];var p=a.currentUser().todoid,g=(a.currentUser().community,{name:a.currentUser().name,userImage:a.getUserImage()},a.currentUser().communityId,[]),v=0;l.activeTasksCount(p).then(function(e){r.saveItem("fuse.to-do",{badge:{content:e.data,color:"#FF6F00"}})}),setInterval(function(){l.activeTasksCount(p).then(function(e){r.saveItem("fuse.to-do",{badge:{content:e.data,color:"#FF6F00"}})})},3e5),l.openIssuesCount(a.currentUser().id,a.currentUser().communityId).success(function(e){v=e,d(e)}),u.getColor=m,l.listTasks(p).success(function(e){g=e}),t.on("connect",function(){var e=a.currentUser().community,i=a.currentUser().id;t.emit("authenticate",{token:a.getToken()}).on("authenticated",function(){t.emit("join-community",{community:e,userid:i}),t.emit("get-activities",e,i),t.on("recent-activities",function(e){u.activities=e,console.log("Activities loaded")}),t.on("issue-count-update",function(e){console.log("In issue update count "+v),"increment"===e?d(++v):"decrement"===e&&d(--v)}),t.on("add-activity",function(e){var t=_.find(u.activities,{_id:e._id});console.log("Activity Added!"),t||u.activities.push(e)}),t.on("member-accepted",function(e){n.debug(e),a.currentUser().id===e.id&&(n.debug("Open accept dialog"),c(e.communityName))})})})}e.$inject=["msApi","socket","$log","authentication","$window","$mdDialog","$document","apilaData","msNavigationService"],angular.module("app.quick-panel").controller("QuickPanelController",e)}(),function(){"use strict";function e(){}angular.module("app.navigation",[]).config(e)}(),function(){"use strict";function e(e){function t(){n.folded=!n.folded}var n=this;n.bodyEl=angular.element("body"),n.folded=!1,n.msScrollOptions={suppressScrollX:!0},n.toggleMsNavigationFolded=t,e.$on("$stateChangeSuccess",function(){n.bodyEl.removeClass("ms-navigation-horizontal-mobile-menu-active")})}e.$inject=["$scope"],angular.module("app.navigation").controller("NavigationController",e)}(),function(){"use strict";function e(e,t){e.$on("$viewContentAnimationEnded",function(n){n.targetScope.$id===e.$id&&t.$broadcast("msSplashScreen::remove")})}e.$inject=["$scope","$rootScope"],angular.module("fuse").controller("MainController",e)}(),function(){"use strict";function e(e,t,n,a,i){if(t.generate(),n.getConfig("disableMdInkRippleOnMobile")&&e.isMobile()){var o=angular.element("body");o.attr("md-no-ink",!0)}e.isMobile()&&angular.element("html").addClass("is-mobile"),a.theme="default",i["default"].cancelTpl='<button type="submit" style="background-color: #F44336; border-radius: 4px;color: white;padding:6px;" ng-if="checklist" ng-click="vm.removeCheckItem(checklist, $index)">Remove</button>',i["default"].submitTpl='<button type="submit" style="background-color: #0091ea; border-radius: 4px;color: white;padding:6px;">Save</button>';var s=e.detectBrowser();if(s){var l=s.browser+" "+s.version+" "+s.os;angular.element("html").addClass(l)}}e.$inject=["msUtils","fuseGenerator","fuseConfig","editableOptions","editableThemes"],angular.module("app.core").run(e)}(),function(){"use strict";function e(e,t,n,a,i,o,s,l){t.debugEnabled(!0),i.useLoader("$translatePartialLoader",{urlTemplate:"{part}/i18n/{lang}.json"}),i.preferredLanguage("en"),i.useSanitizeValueStrategy("sanitize"),o.decorator("taOptions",["$delegate",function(e){return e.toolbar=[["bold","italics","underline","ul","ol","quote"]],e.classes={focussed:"focussed",toolbar:"ta-toolbar",toolbarGroup:"ta-group",toolbarButton:"md-button",toolbarButtonActive:"active",disabled:"",textEditor:"form-control",htmlEditor:"form-control"},e}]),o.decorator("taTools",["$delegate",function(e){return e.quote.iconclass="icon-format-quote",e.bold.iconclass="icon-format-bold",e.italics.iconclass="icon-format-italic",e.underline.iconclass="icon-format-underline",e.strikeThrough.iconclass="icon-format-strikethrough",e.ul.iconclass="icon-format-list-bulleted",e.ol.iconclass="icon-format-list-numbers",e.redo.iconclass="icon-redo",e.undo.iconclass="icon-undo",e.clear.iconclass="icon-close-circle-outline",e.justifyLeft.iconclass="icon-format-align-left",e.justifyCenter.iconclass="icon-format-align-center",e.justifyRight.iconclass="icon-format-align-right",e.justifyFull.iconclass="icon-format-align-justify",e.indent.iconclass="icon-format-indent-increase",e.outdent.iconclass="icon-format-indent-decrease",e.html.iconclass="icon-code-tags",e.insertImage.iconclass="icon-file-image-box",e.insertLink.iconclass="icon-link",e.insertVideo.iconclass="icon-filmstrip",e}]),e.config({tabindex:!1}),s.config({disableCustomScrollbars:!1,disableCustomScrollbarsOnMobile:!0,disableMdInkRippleOnMobile:!0}),n.config({wheelPropagation:!0})}e.$inject=["$ariaProvider","$logProvider","msScrollConfigProvider","uiGmapGoogleMapApiProvider","$translateProvider","$provide","fuseConfigProvider","stripeProvider"],angular.module("app.core").config(e)}(),function(){"use strict";function e(e,t,n,a){var i=e.$on("$stateChangeStart",function(){e.loadingProgress=!0}),o=e.$on("$stateChangeSuccess",function(){t(function(){e.loadingProgress=!1})});e.state=n,e.$on("$destroy",function(){i(),o()})}e.$inject=["$rootScope","$timeout","$state","Idle"],angular.module("fuse").run(e)}(),function(){"use strict";function e(e,t,n){var a=["app.residents","app.calendar","app.issues.boards.board","app.to-do"];e.$on("$stateChangeStart",function(e,i,o){"app.homepage"===i.name&&n.isLoggedIn()&&t.path("/dashboard"),n.isLoggedIn()||("app.dashboard"===i.name&&t.path("/auth/login"),_.includes(a,i.name)===!0&&t.path("/not-auth"))})}function t(e,t,n,a){n.html5Mode(!0),t.otherwise("/errors/error-404");var i;angular.injector(["ngCookies"]).invoke(["$cookies",function(e){i=e}]);var o=i.get("layoutStyle")||"verticalNavigation",s={verticalNavigation:{main:"app/core/layouts/vertical-navigation.html",toolbar:"app/toolbar/layouts/vertical-navigation/toolbar.html",navigation:"app/navigation/layouts/vertical-navigation/navigation.html"},horizontalNavigation:{main:"app/core/layouts/horizontal-navigation.html",toolbar:"app/toolbar/layouts/horizontal-navigation/toolbar.html",navigation:"app/navigation/layouts/horizontal-navigation/navigation.html"},contentOnly:{main:"app/core/layouts/content-only.html",toolbar:"",navigation:""
  },contentWithToolbar:{main:"app/core/layouts/content-with-toolbar.html",toolbar:"app/toolbar/layouts/content-with-toolbar/toolbar.html",navigation:""}};e.state("app",{"abstract":!0,views:{"main@":{templateUrl:s[o].main,controller:"MainController as vm"},"toolbar@app":{templateUrl:s[o].toolbar,controller:"ToolbarController as vm"},"navigation@app":{templateUrl:s[o].navigation,controller:"NavigationController as vm"},"quickPanel@app":{templateUrl:"app/quick-panel/quick-panel.html",controller:"QuickPanelController as vm"}}}),a.interceptors.push("errorInterceptor")}t.$inject=["$stateProvider","$urlRouterProvider","$locationProvider","$httpProvider"],e.$inject=["$rootScope","$location","authentication"],angular.module("fuse").config(t).run(e)}(),function(){"use strict";function e(e,t,n,a,i,o,s,l,r){var d=this;d.themes=e.themes,i.isLoggedIn()&&t.watch(),n.$on("IdleStart",function(){i.isLoggedIn()&&a.show({controller:"IdleController",controllerAs:"vm",templateUrl:"app/dialogs/idle/idle-dialog.html",clickOutsideToClose:!1})})}e.$inject=["fuseTheming","Idle","$scope","$mdDialog","authentication","apilaData","$state","$window","msNavigationService"],angular.module("fuse").controller("IndexController",e)}(),function(){"use strict";angular.module("fuse")}(),function(){"use strict";function e(e,t){var n=3600,a=300;Stripe.setPublishableKey("pk_test_PDxs7SyxPARytJkKUeS6NOS8"),t.idle(3*n),t.timeout(a),e.interval(5)}e.$inject=["KeepaliveProvider","IdleProvider"],angular.module("fuse").config(e)}(),function(){"use strict";function e(e,t){var n={};return n.getTestCall=e("http://localhost:3300/api/testCall/"),n.baseUrl="app/data/",n}e.$inject=["$resource","$log"],angular.module("fuse").factory("api",e)}(),function(){"use strict";function e(e){e.saveItem("ui",{title:"USER INTERFACE",group:!0,weight:3}),e.saveItem("ui.forms",{title:"Forms",icon:"icon-window-restore",state:"app.ui_forms"}),e.saveItem("ui.icons",{title:"Icons",icon:"icon-file-image-box",state:"app.ui_icons"}),e.saveItem("ui.typography",{title:"Typography",icon:"icon-format-size",state:"app.ui_typography"}),e.saveItem("ui.theme-colors",{title:"Theme Colors",icon:"icon-palette-advanced",state:"app.ui_theme-colors"}),e.saveItem("ui.material-colors",{title:"Material Colors",icon:"icon-palette",state:"app.ui_material-colors"}),e.saveItem("ui.page-layouts",{title:"Page Layouts",icon:"icon-view-quilt"}),e.saveItem("ui.page-layouts.carded",{title:"Carded"}),e.saveItem("ui.page-layouts.carded.fullwidth",{title:"Full Width (I)",state:"app.ui_page-layouts_carded_fullwidth"}),e.saveItem("ui.page-layouts.carded.fullwidth-ii",{title:"Full Width (II)",state:"app.ui_page-layouts_carded_fullwidth-ii"}),e.saveItem("ui.page-layouts.carded.left-sidenav",{title:"Left Sidenav (I)",state:"app.ui_page-layouts_carded_left-sidenav"}),e.saveItem("ui.page-layouts.carded.left-sidenav-ii",{title:"Left Sidenav (II)",state:"app.ui_page-layouts_carded_left-sidenav-ii"}),e.saveItem("ui.page-layouts.carded.right-sidenav",{title:"Right Sidenav (I)",state:"app.ui_page-layouts_carded_right-sidenav"}),e.saveItem("ui.page-layouts.carded.right-sidenav-ii",{title:"Right Sidenav (II)",state:"app.ui_page-layouts_carded_right-sidenav-ii"}),e.saveItem("ui.page-layouts.simple",{title:"Simple"}),e.saveItem("ui.page-layouts.simple.fullwidth",{title:"Full Width (I)",state:"app.ui_page-layouts_simple_fullwidth"}),e.saveItem("ui.page-layouts.simple.left-sidenav",{title:"Left Sidenav (I)",state:"app.ui_page-layouts_simple_left-sidenav"}),e.saveItem("ui.page-layouts.simple.left-sidenav-ii",{title:"Left Sidenav (II)",state:"app.ui_page-layouts_simple_left-sidenav-ii"}),e.saveItem("ui.page-layouts.simple.right-sidenav",{title:"Right Sidenav (I)",state:"app.ui_page-layouts_simple_right-sidenav"}),e.saveItem("ui.page-layouts.simple.right-sidenav-ii",{title:"Right Sidenav (II)",state:"app.ui_page-layouts_simple_right-sidenav-ii"}),e.saveItem("ui.page-layouts.simple.tabbed",{title:"Tabbed",state:"app.ui_page-layouts_simple_tabbed"}),e.saveItem("ui.page-layouts.blank",{title:"Blank",state:"app.ui_page-layouts_blank"})}e.$inject=["msNavigationServiceProvider"],angular.module("app.ui",["app.ui.forms","app.ui.icons","app.ui.material-colors","app.ui.page-layouts.blank","app.ui.page-layouts.carded.fullwidth","app.ui.page-layouts.carded.fullwidth-ii","app.ui.page-layouts.carded.left-sidenav","app.ui.page-layouts.carded.left-sidenav-ii","app.ui.page-layouts.carded.right-sidenav","app.ui.page-layouts.carded.right-sidenav-ii","app.ui.page-layouts.simple.fullwidth","app.ui.page-layouts.simple.left-sidenav","app.ui.page-layouts.simple.left-sidenav-ii","app.ui.page-layouts.simple.right-sidenav","app.ui.page-layouts.simple.right-sidenav-ii","app.ui.page-layouts.simple.tabbed","app.ui.theme-colors","app.ui.typography"]).config(e)}(),angular.module("fuse").run(["$templateCache",function(e){e.put("app/quick-panel/quick-panel.html",'<md-content><md-tabs md-no-pagination md-swipe-content md-stretch-tabs="always"><md-tab><md-tab-label \ntranslate="QUICKPANEL.ACTIVITY">ACTIVITY</md-tab-label><md-tab-body><md-content class="activity-tab scrollable" \nms-scroll ng-include="\'app/quick-panel/tabs/activity/activity-tab.html\'"></md-content></md-tab-body></md-tab><md-tab>\n<md-tab-label translate="QUICKPANEL.CHAT">CHAT</md-tab-label><md-tab-body><md-content class="chat-tab scrollable" \nms-scroll ng-include="\'app/quick-panel/tabs/chat/chat-tab.html\'" ng-controller="ChatTabController as vm"></md-content>\n</md-tab-body></md-tab></md-tabs></md-content>'),e.put("app/core/layouts/content-only.html",'<div id="layout-content-only" class="template-layout" layout="column" flex><md-content id="content" \nclass="animate-slide-up md-background md-hue-1" ui-view="content" flex></md-content></div>'),e.put("app/core/layouts/content-with-toolbar.html",'<div id="layout-content-with-toolbar" class="template-layout" layout="column" flex><md-toolbar id="toolbar" \nclass="md-menu-toolbar md-whiteframe-1dp" ui-view="toolbar"></md-toolbar><md-content id="content" \nclass="animate-slide-up md-background md-hue-1" ui-view="content" flex></md-content><md-sidenav id="quick-panel" \nclass="md-sidenav-right md-whiteframe-4dp" md-component-id="quick-panel" ms-scroll ui-view="quickPanel"></md-sidenav>\n</div>'),e.put("app/core/layouts/horizontal-navigation.html",'<div id="layout-horizontal-navigation" class="template-layout" layout="column" flex><md-toolbar id="toolbar" \nclass="md-menu-toolbar" ui-view="toolbar"></md-toolbar><div id="horizontal-navigation" class="md-whiteframe-1dp" \nui-view="navigation"></div><div id="content-container" flex layout="column"><md-content id="content" \nclass="animate-slide-up md-background md-hue-1" ms-scroll ui-view="content" flex></md-content></div><md-sidenav \nid="quick-panel" class="md-sidenav-right md-whiteframe-4dp" md-component-id="quick-panel" ms-scroll \nui-view="quickPanel"></md-sidenav></div>'),e.put("app/core/layouts/vertical-navigation-fullwidth-toolbar-2.html",'<div id="layout-vertical-navigation-fullwidth-toolbar-2" class="template-layout" layout="column" flex><md-toolbar \nid="toolbar" class="md-menu-toolbar md-whiteframe-1dp md-accent" ui-view="toolbar"></md-toolbar><div \nid="main-container" layout="row" flex><md-sidenav id="vertical-navigation" class="md-primary-bg" \nmd-is-locked-open="$mdMedia(\'gt-sm\')" md-component-id="navigation" ms-scroll ui-view="navigation"></md-sidenav><div \nid="content-container" flex layout="column"><md-content id="content" class="animate-slide-up md-background md-hue-1" \nms-scroll ui-view="content" flex></md-content></div><md-sidenav id="quick-panel" \nclass="md-sidenav-right md-whiteframe-4dp" md-component-id="quick-panel" ms-scroll ui-view="quickPanel"></md-sidenav>\n</div></div>'),e.put("app/core/layouts/vertical-navigation-fullwidth-toolbar.html",'<div id="layout-vertical-navigation-fullwidth-toolbar" class="template-layout" layout="column" flex><md-toolbar \nid="toolbar" class="md-menu-toolbar md-whiteframe-1dp md-accent" ui-view="toolbar"></md-toolbar><div \nid="main-container" layout="row" flex><md-sidenav id="vertical-navigation" class="md-primary-bg" \nmd-is-locked-open="$mdMedia(\'gt-sm\')" md-component-id="navigation" ms-scroll ui-view="navigation"></md-sidenav><div \nid="content-container" flex layout="column"><md-content id="content" class="animate-slide-up md-background md-hue-1" \nms-scroll ui-view="content" flex></md-content></div><md-sidenav id="quick-panel" \nclass="md-sidenav-right md-whiteframe-4dp" md-component-id="quick-panel" ms-scroll ui-view="quickPanel"></md-sidenav>\n</div></div>'),e.put("app/core/layouts/vertical-navigation.html",'<div id="layout-vertical-navigation" class="template-layout" layout="row" flex><md-sidenav id="vertical-navigation" \nclass="md-primary-bg" md-is-locked-open="$mdMedia(\'gt-sm\')" md-component-id="navigation" ms-scroll \nui-view="navigation"></md-sidenav><div id="content-container" flex layout="column"><md-toolbar id="toolbar" \nclass="md-menu-toolbar md-whiteframe-1dp" ui-view="toolbar"></md-toolbar><md-content id="content" \nclass="animate-slide-up md-background md-hue-1" ms-scroll ui-view="content" flex></md-content></div><md-sidenav \nid="quick-panel" class="md-sidenav-right md-whiteframe-4dp" md-component-id="quick-panel" ms-scroll \nui-view="quickPanel"></md-sidenav></div>'),e.put("app/core/theme-options/theme-options.html",""),e.put("app/dialogs/idle/idle-dialog.html",'<md-dialog class="compose-dialog" aria-label="Update"><form class="md-inline-form"><md-toolbar \nclass="md-accent md-hue-2"><div class="md-toolbar-tools" layout="row" layout-align="space-between center"><span \nclass="title">Idle</span></div></md-toolbar><md-dialog-content ms-scroll><h2>Where did you go?</h2><md-divider>\n</md-divider><p>You have been inactive for 3 hours so for safety reasons you\'ll be logged out</p><div \nidle-countdown="countdown" ng-init="countdown=300" class="modal-body"><p>\nYou\'ll be logged out in {{countdown}} second(s).</p></div></md-dialog-content><md-dialog-actions layout="row" \nlayout-align="space-between center"><div layout="row" layout-align="start center"></div></md-dialog-actions></form>\n</md-dialog>'),e.put("app/main/calendar/calendar.html",'<div id="calendar" class="page-layout simple fullwidth" layout="column"><div class="header" \nng-class="vm.currentMonthShort"><div class="header-content" layout="column" layout-align="space-between"><div \nclass="header-top" layout="row" layout-align="space-between center" layout-xs="column"><div class="logo" layout="row" \nlayout-align="start center"><span class="logo-icon"><md-icon md-font-icon="icon-calendar-today"></md-icon></span><span \nclass="logo-text">Calendar</span></div><div class="toolbar" layout="row" layout-align="start center"><md-button \nclass="md-icon-button" ng-click="vm.openAppointmentMapDialog()" aria-label="Appointment Map" translate \ntranslate-attr-aria-label="CALENDAR.APPOINTMENT_MAP"><md-icon md-font-icon="icon-map-marker-radius"></md-icon>\n<md-tooltip><span translate="CALENDAR.APPOINTMENT_MAP">Appointment Map</span></md-tooltip></md-button><md-button \nclass="md-icon-button" ng-click="vm.calendar.today()" aria-label="Today" translate \ntranslate-attr-aria-label="CALENDAR.TODAY"><md-icon md-font-icon="icon-calendar-today"></md-icon><md-tooltip><span \ntranslate="CALENDAR.TODAY">Today</span></md-tooltip></md-button><md-button class="md-icon-button" \nng-click="vm.calendar.changeView(\'agendaDay\')" aria-label="Day" translate translate-attr-aria-label="CALENDAR.DAY">\n<md-icon md-font-icon="icon-view-day"></md-icon><md-tooltip><span translate="CALENDAR.DAY">Day</span></md-tooltip>\n</md-button><md-button class="md-icon-button" ng-click="vm.calendar.changeView(\'agendaWeek\')" aria-label="Week" \ntranslate translate-attr-aria-label="CALENDAR.WEEK"><md-icon md-font-icon="icon-view-week"></md-icon><md-tooltip><span \ntranslate="CALENDAR.WEEK">Week</span></md-tooltip></md-button><md-button class="md-icon-button" \nng-click="vm.calendar.changeView(\'month\')" aria-label="Month" translate translate-attr-aria-label="CALENDAR.MONTH">\n<md-icon md-font-icon="icon-view-module"></md-icon><md-tooltip><span translate="CALENDAR.MONTH">Month</span>\n</md-tooltip></md-button><md-button class="md-icon-button" ng-click="vm.exportAppointments()"><md-icon \nmd-font-icon="icon-export"></md-icon><md-tooltip><span>Export appointments</span></md-tooltip></md-button></div></div>\n<div class="header-bottom" layout="row" layout-align="center center"><md-button class="md-icon-button arrow" \nng-click="vm.prev()" aria-label="Previous" translate translate-attr-aria-label="CALENDAR.PREVIOUS"><md-icon \nmd-font-icon="icon-chevron-left"></md-icon></md-button><div class="title">{{vm.calendarView.title}}</div><md-button \nclass="md-icon-button arrow" ng-click="vm.next()" aria-label="Next" translate \ntranslate-attr-aria-label="CALENDAR.NEXT"><md-icon md-font-icon="icon-chevron-right"></md-icon></md-button></div></div>\n<md-button class="add-event-button md-fab md-warn" ng-click="vm.addEvent($event)" aria-label="Add event" translate \ntranslate-attr-aria-label="CALENDAR.ADD_EVENT"><md-icon md-font-icon="icon-plus"></md-icon></md-button></div><div \nclass="content"><div id="calendarView" ui-calendar="vm.calendarUiConfig.calendar" ng-model="vm.events" calendar="main">\n</div></div></div>'),e.put("app/main/dashboard/dashboard-project.html",'<div id="dashboard-project" class="page-layout simple right-sidenav" layout="row"><div class="center" flex ms-scroll>\n<div class="header md-accent-bg" layout="column" layout-align="space-between"><div layout="row" \nlayout-align="space-between"><div id="tip1"><span class="md-display-1 font-weight-300">{{vm.title}}</span></div><div \nclass="toolbar"><md-button class="md-icon-button sidenav-toggle" ng-click="vm.toggleSidenav(\'sidenav\')" hide-gt-md \naria-label="Toggle sidenav"><md-icon md-font-icon="icon-menu" class="icon"></md-icon></md-button></div></div><div \nlayout="row"><md-button ng-if="vm.isTestCommunity" ng-click="vm.openCommunityModal()" id="join-community" \nclass="selected-project">{{vm.selectedProject.name}}</md-button><md-button ng-if="vm.isTestCommunity" \nng-click="vm.openJoinModal()" id="join-modal" class="selected-project">Join a Community</md-button><md-button \nng-if="!vm.hasCommunity" ng-click="vm.openCommunityModal()" id="join-community" class="selected-project">\n{{vm.selectedProject.name}}</md-button><md-button ng-if="!vm.hasCommunity" ng-click="vm.openJoinModal()" \nid="join-modal" class="selected-project">Join a Community</md-button></div></div><div class="content"><md-tabs \nmd-dynamic-height><md-tab label="Dashboard"><div class="widget-group" layout="row" flex="100" layout-wrap><ms-widget \nflippable="true" class="hand-cursor" ui-sref="app.calendar" layout="column" flex="100" flex-gt-xs="50" flex-gt-md="25">\n<ms-widget-front class="white-bg"><div class="ph-8 pv-16 h-55" layout="row" layout-align="space-between center"><div \nclass="h3" id="tip2">Today</div></div><div class="pt-8 pb-32" layout="column" layout-align="center center"><div \nclass="light-blue-fg font-size-72 line-height-72">{{ vm.appointmentsToday }}</div><div \nclass="h3 secondary-text font-weight-500">APPOINTMENTS</div></div></ms-widget-front></ms-widget><ms-widget \nflippable="true" class="hand-cursor" ui-sref="app.residents" layout="column" flex="100" flex-gt-xs="50" \nflex-gt-md="25"><ms-widget-front class="white-bg"><div class="pl-16 pr-8 pv-16 h-55" layout="row" \nlayout-align="space-between center"><div class="h3">In building</div></div><div class="pt-8 pb-32" layout="column" \nlayout-align="center center"><div class="red-fg font-size-72 line-height-72">{{vm.residentCount}}</div><div \nclass="h3 secondary-text font-weight-500">RESIDENTS</div></div></ms-widget-front></ms-widget><ms-widget \nflippable="true" class="hand-cursor" ui-sref="app.issues.boards.board" layout="column" flex="100" flex-gt-xs="50" \nflex-gt-md="25"><ms-widget-front class="white-bg"><div class="pl-16 pr-8 pv-16 h-55" layout="row" \nlayout-align="space-between center"><div class="h3">Issue count</div></div><div class="pt-8 pb-32" layout="column" \nlayout-align="center center"><div class="orange-fg font-size-72 line-height-72">{{vm.issuesCount}}</div><div \nclass="h3 secondary-text font-weight-500">OPEN ISSUES</div></div></ms-widget-front></ms-widget></div><div \nclass="widget-group" layout="row" flex="100" layout-wrap><ms-widget layout="row" flex="100"><ms-widget-front \nclass="white-bg"><div class="p-24 mb-8 border-bottom" layout="row" layout-align="space-between center"><div class="h2">\nResident Statistics</div></div><table class="row-border hover"><thead><tr><th>Average age</th><th>Average time stayed\n</th></tr></thead><tbody><tr><td>{{ vm.averageAge | number:0 }} years</td><td>{{ vm.averageStayTime | number:0}} days\n</td></tr></tbody></table></ms-widget-front></ms-widget></div><div class="widget-group" layout="row" flex="100" \nlayout-wrap><ms-widget layout="row" flex="100"><ms-widget-front class="white-bg"><div class="p-24 mb-8 border-bottom" \nlayout="row" layout-align="space-between center"><div class="h2">Map of residents</div></div><ui-gmap-google-map \ncenter="vm.locationsMap.center" zoom="vm.locationsMap.zoom"><ui-gmap-marker ng-repeat="m in vm.locationsMap.markers" \ncoords="m.coords" idkey="m.id"></ui-gmap-marker></ui-gmap-google-map></ms-widget-front></ms-widget></div></md-tab>\n<md-tab label="Community Members"><div ng-switch on="vm.userRole"><div ng-switch-when="creator"><div \nclass="widget-group" layout="row" flex="100" layout-wrap ng-include="\'app/main/dashboard/tables/creator_table.html\'">\n</div></div><div ng-switch-when="boss"><div class="widget-group" layout="row" flex="100" layout-wrap \nng-include="\'app/main/dashboard/tables/boss_table.html\'"></div></div><div ng-switch-when="directors"><div \nclass="widget-group" layout="row" flex="100" layout-wrap ng-include="\'app/main/dashboard/tables/directors_table.html\'">\n</div></div><div ng-switch-when="minions"><div class="widget-group" layout="row" flex="100" layout-wrap \nng-include="\'app/main/dashboard/tables/minions_table.html\'"></div></div></div></md-tab><md-tab label="Pending Members">\n<div class="widget-group" layout="row" flex="100" layout-wrap><ms-widget layout="row" flex="100"><ms-widget-front \nclass="white-bg"><div class="p-24 mb-8 border-bottom" layout="row" layout-align="space-between center"><div class="h2">\nPending Members</div><div class="text-boxed red-bg white-fg m-0">{{vm.pendingMemberTable.length}} members</div></div>\n<table class="row-border hover" datatable="ng"><thead><tr><th class="secondary-text"><div class="table-header"><span \nclass="column-title"></span></div></th><th class="secondary-text"><div class="table-header"><span class="column-title">\nName</span></div></th><th class="secondary-text"><div class="table-header"><span class="column-title">Email</span>\n</div></th><th></th><th></th></tr></thead><tbody><tr ng-repeat="row in vm.pendingMemberTable"><td><img class="avatar" \nng-src="{{row[0] }}"></td><td><span>{{ row[1]}}</span></td><td><span>{{ row[2]}}</span></td><td><md-button \nng-disabled="vm.userRole === \'minions\'" class="md-raised md-primary" ng-click="vm.acceptMember($index, row)">Accept\n</md-button></td><td><md-button ng-disabled="vm.userRole === \'minions\'" class="md-raised md-warn" \nng-click="vm.declineMember($index, row[3])">Decline</md-button></td></tr></tbody></table></ms-widget-front></ms-widget>\n</div></md-tab><md-tab label="Community Settings"><div class="widget-group" layout="row" flex="100" layout-wrap>\n<ms-widget layout="row" flex="100"><ms-widget-front class="white-bg"><div class="p-24 mb-8 border-bottom" layout="row" \nlayout-align="space-between center"><div class="h2">Billing informaton</div><button ng-click="vm.updateBillingModal()" \nng-if="vm.customerData.status && !vm.subscriptionCanceled" class="text-boxed red-bg white-fg m-0">Update</button></div>\n<div class="content" ng-if="vm.customerData.status && !vm.subscriptionCanceled"><div class="info-line"><h2>\nCredit card number: **** **** **** {{ vm.customerData.customer.sources.data[0].last4}}</h2><h2>\nCredit card holer: {{ vm.customerData.customer.description}}</h2><span \nng-if="vm.customerData.customer.subscriptions.data[0].status === \'trialing\'"><h2>You are in the trail period</h2><h2>\nTrial ends at : {{ vm.trialEndDate }}</h2></span><span \nng-if="vm.customerData.customer.subscriptions.data[0].status === \'active\'"><h2>\nWith {{ vm.quantity }} users, {{ vm.quantity * 5 }}$ will be charged on {{ vm.billingDate }}</h2></span></div>\n<md-input-container class="md-block"><md-button ng-click="vm.cancelSubscription()" class="md-raised md-primary">\nCancel subscription</md-button></md-input-container></div><div class="content" ng-if="!vm.customerData.status"><h4>\nYou haven\'t got any billing information.</h4></div><div class="content" ng-if="vm.subscriptionCanceled"><h2>\nYou have cancelled your subscription</h2></div></ms-widget-front></ms-widget><ms-widget layout="row" flex="100">\n<ms-widget-front class="white-bg"><div class="p-24 mb-8 border-bottom" layout="row" \nlayout-align="space-between center"><div class="h2">Contact Information</div></div><div class="content" \nlayout="column"><div layout="row" layout-align="space-around center"><md-input-container class="md-block" flex><label>\nAddress</label><input ng-model="vm.contactInfo.address" type="text" ng-blur="vm.updateContactAndRoomInfo()">\n</md-input-container><md-input-container class="md-block" flex flex-offset="5"><label>Phone Number</label><input \nng-model="vm.contactInfo.phone" type="text" ng-blur="vm.updateContactAndRoomInfo()"></md-input-container></div><div \nlayout="row" layout-align="space-around center"><md-input-container class="md-block" flex><label>Website</label><input \nng-model="vm.contactInfo.website" type="text" ng-blur="vm.updateContactAndRoomInfo()"></md-input-container>\n<md-input-container class="md-block" flex flex-offset="5"><label>Fax</label><input ng-model="vm.contactInfo.fax" \ntype="text" ng-blur="vm.updateContactAndRoomInfo()"></md-input-container></div><div layout="row" \nlayout-align="space-around center"><md-input-container class="md-block" flex><label>Town</label><input \nng-model="vm.contactInfo.town" type="text" ng-blur="vm.updateContactAndRoomInfo(\'town\')"></md-input-container></div>\n</div></ms-widget-front></ms-widget><ms-widget layout="row" flex="100"><ms-widget-front class="white-bg"><div \nclass="p-24 mb-8 border-bottom" layout="row" layout-align="space-between center"><div class="h2">Room setup</div></div>\n<div class="content" layout="row" layout-align="space-between start"><div layout="column" \nlayout-align="space-around start"><md-input-container class="md-block" flex><md-button ng-click="vm.roomDialog()" \nclass="md-raised md-primary" aria-label="Create Room Style">Create Room Style</md-button></md-input-container>\n<md-input-container class="md-block" flex><md-button ng-click="vm.buildingDialog()" class="md-raised md-primary" \naria-label="Building Setup">Building Setup</md-button></md-input-container></div><div layout="column" \nlayout-align="space-around start"><md-subheader class="md-no-sticky">List of Room Styles</md-subheader><md-list \nclass="md-whiteframe-1dp"><md-list-item ng-repeat="roomStyle in vm.myCommunity.roomStyle"><div><span \nclass="room-style-name md-list-item-text">{{ roomStyle.name }}</span></div><div><button \nng-click="vm.roomDialog(roomStyle)" class="text-boxed md-raised m-0 room-style-update md-secondary">Update</button>\n</div></md-list-item></md-list></div><div layout="column" layout-align="space-around center"></div></div>\n</ms-widget-front></ms-widget><ms-widget layout="row" flex="100"><ms-widget-front class="white-bg"><div \nclass="p-24 mb-8 border-bottom" layout="row" layout-align="space-between center"><div class="h2">Units</div><button \nng-click="vm.openUnitModal()" class="text-boxed red-bg white-fg m-0">Update</button></div><div class="content"><div \nclass="info-line"><h2>Length/Area: {{ vm.myCommunity.areaUnit }}</h2><h2>Weight: {{ vm.myCommunity.weightUnit }}</h2>\n<h2>Temperature: {{ vm.myCommunity.tempUnit }}</h2></div></div></ms-widget-front></ms-widget></div></md-tab></md-tabs>\n</div></div><md-sidenav class="sidenav md-sidenav-right" md-is-locked-open="$mdMedia(\'gt-md\')" \nmd-component-id="sidenav" ms-scroll ms-sidenav-helper><div class="widget-group"><ms-widget flippable="false" \nclass="sidenav-widget"><ms-widget-front><div class="pl-16 pr-8 pv-16" layout="row" layout-align="space-between center">\n<div class="h3">\n{{vm.nowWidget.now.weekDay}}, {{vm.nowWidget.now.hour}}:{{vm.nowWidget.now.minute}}:{{vm.nowWidget.now.second}}</div>\n<md-menu><md-button class="md-icon-button" ng-click="$mdOpenMenu()" md-menu-origin md-menu-align-target \naria-label="Options"><md-icon md-font-icon="icon-dots-vertical" class="icon"></md-icon></md-button><md-menu-content \nwidth="3"><md-menu-item><md-button ng-click="vm.refreshWeather()"><md-icon md-font-icon="icon-refresh" class="icon">\n</md-icon>Refresh</md-button></md-menu-item><md-menu-item><md-button ng-click="vm.nowWidget.dummyFunction()"><md-icon \nmd-font-icon="icon-cog" class="icon"></md-icon>Settings</md-button></md-menu-item></md-menu-content></md-menu></div>\n<div class="p-16 pb-24" layout="column" layout-align="center center"><div class="h1 secondary-text"><span>\n{{vm.nowWidget.now.month}}</span></div><div class="font-size-72 line-height-88 secondary-text font-weight-400">\n{{vm.nowWidget.now.day}}</div><div class="h1 secondary-text"><span>{{vm.nowWidget.now.year}}</span></div></div>\n<md-divider></md-divider></ms-widget-front></ms-widget><ms-widget flippable="false" class="sidenav-widget">\n<ms-widget-front><div class="pl-16 pr-8 pv-16" layout="row" layout-align="space-between center"><div class="h4">\n<md-icon md-font-icon="icon-map-marker" class="icon mr-8"></md-icon>{{vm.communityTown}}</div><md-menu><md-button \nclass="md-icon-button" ng-click="$mdOpenMenu()" md-menu-origin md-menu-align-target aria-label="Options"><md-icon \nmd-font-icon="icon-dots-vertical" class="icon"></md-icon></md-button><md-menu-content width="3"><md-menu-item>\n<md-button ng-click="vm.nowWidget.dummyFunction()"><md-icon md-font-icon="icon-refresh" class="icon"></md-icon>Refresh\n</md-button></md-menu-item></md-menu-content></md-menu></div><div class="p-16 pb-32" layout="column" \nlayout-align="center center"><div layout="row" layout-align="center center"><md-icon \nmd-font-icon="{{ vm.mapIcon(vm.weatherData.current.condition.text) }}" class="icon s40 mr-16"><md-tooltip>\n{{ vm.currentWeather.weather[0].description }}</md-tooltip></md-icon><span \nclass="md-display-2 font-weight-300 secondary-text">{{vm.weatherData.current.temp_f}} </span><span \nclass="font-size-48 font-weight-300 hint-text text-super ml-8">&deg;</span> <span \nclass="md-display-2 font-weight-300 hint-text">F</span></div></div><div class="grey-300-bg p-16" layout="row" \nlayout-align="space-between center"><div layout="row" layout-align="start center"><md-icon \nmd-font-icon="icon-weather-windy" class="icon mr-8 s20"></md-icon><span>{{vm.weatherData.current.wind_mph}}</span>\n<md-tooltip>Wind Speed</md-tooltip><span class="secondary-text ml-5">M/H</span></div><div layout="row" \nlayout-align="start center"><md-icon md-font-icon="icon-compass-outline" class="icon mr-8 s20"></md-icon><span>\n{{vm.weatherData.current.wind_dir}}</span><md-tooltip>Wind Direction</md-tooltip></div></div><div class="pv-16"><div \nclass="pv-16 ph-24" layout="row" layout-align="space-between center"><span class="h4">\n{{ vm.getDay(vm.weatherData.forecast.forecastday[1].date_epoch) }}</span><div layout="row" layout-align="start center">\n<md-icon class="mr-16" md-font-icon="{{ vm.mapIcon(vm.weatherData.forecast.forecastday[1].day.condition.text) }}" \nclass="icon"></md-icon><span class="h2">{{vm.weatherData.forecast.forecastday[1].day.avgtemp_f}}</span> <span \nclass="h2 font-weight-300 secondary-text text-super">&deg;</span> <span class="h2 font-weight-300 secondary-text">F\n</span></div></div><div class="pv-16 ph-24" layout="row" layout-align="space-between center"><span class="h4">\n{{ vm.getDay(vm.weatherData.forecast.forecastday[2].date_epoch) }}</span><div layout="row" layout-align="start center">\n<md-icon class="mr-16" md-font-icon="{{ vm.mapIcon(vm.weatherData.forecast.forecastday[2].day.condition.text) }}" \nclass="icon"></md-icon><span class="h2">{{vm.weatherData.forecast.forecastday[2].day.avgtemp_f}}</span> <span \nclass="h2 font-weight-300 secondary-text text-super">&deg;</span> <span class="h2 font-weight-300 secondary-text">F\n</span></div></div><div class="pv-16 ph-24" layout="row" layout-align="space-between center"><span class="h4">\n{{ vm.getDay(vm.weatherData.forecast.forecastday[3].date_epoch) }}</span><div layout="row" layout-align="start center">\n<md-icon class="mr-16" md-font-icon="{{ vm.mapIcon(vm.weatherData.forecast.forecastday[2].day.condition.text) }}" \nclass="icon"></md-icon><span class="h2">{{ vm.weatherData.forecast.forecastday[2].day.avgtemp_f }}</span> <span \nclass="h2 font-weight-300 secondary-text text-super">&deg;</span> <span class="h2 font-weight-300 secondary-text">F\n</span></div></div></div><md-divider></md-divider></ms-widget-front></ms-widget></div></md-sidenav></div>'),e.put("app/main/homepage/homepage.html",'<div id="maintenance" class="flex-scrollable" layout="column" ms-scroll><div id="maintenance-form-wrapper" \nlayout="column" layout-align="center center"><div id="maintenance-form" class="md-whiteframe-8dp"><div \nclass="logo md-accent-bg"><span>A</span></div><div class="title">The best healthcare information system in the world!\n</div><div class="subtitle">To start using the site please<br><a ui-sref="app.pages_auth_login">Login </a>/ <a \nui-sref="app.pages_auth_register">Register</a></div></div></div></div>'),e.put("app/main/information/information.html",'<div class="page-layout carded left-sidenav" layout="row"><div class="top-bg md-accent-bg"></div><md-sidenav \nclass="sidenav" md-is-locked-open="$mdMedia(\'gt-md\')" md-component-id="sidenav" ms-scroll ms-sidenav-helper><div \nclass="header"><p></p></div><md-content class="content" flex ms-scroll><div \nng-include="\'app/main/information/sidenav.html\'"></div></md-content></md-sidenav><div class="center" layout="column" \nflex><div class="header" layout="row"><div><span class="h2 white-fg">Information about Apila</span></div></div><div \nclass="content-card" layout="column" flex><div class="toolbar" layout="row" layout-align="start center"><md-button \nclass="md-icon-button sidenav-toggle" ng-click="vm.toggleSidenav(\'sidenav\')" hide-gt-md \naria-label="Toggle left sidenav"><md-icon md-font-icon="icon-menu" class="icon"></md-icon></md-button></div><md-content\n class="content" flex ms-scroll><div ng-switch on="vm.selectedItem"><div ng-switch-when="Dashboard"><div \nng-include="\'app/main/information/information-content/dashboard.html\'"></div></div><div ng-switch-when="Calendar"><div \nng-include="\'app/main/information/information-content/calendar.html\'"></div></div><div ng-switch-when="Issues"><div \nng-include="\'app/main/information/information-content/issues.html\'"></div></div><div ng-switch-when="Residents"><div \nng-include="\'app/main/information/information-content/residents.html\'"></div></div><div ng-switch-when="To-Do"><div \nng-include="\'app/main/information/information-content/todos.html\'"></div></div><div ng-switch-when="Security"><div \nng-include="\'app/main/information/information-content/security.html\'"></div></div></div></md-content></div></div></div>'),e.put("app/main/information/sidenav.html",'<div class="demo-sidenav"><md-list><md-list-item ng-repeat="item in vm.menuItems"><md-button \nng-click="vm.switchItem(item)" ng-class="vm.selectedItem == item ? \'md-raised md-primary\' : \'md-primary\'" class="item">\n<span class="title" flex>{{ item }}</span></md-button><md-divider></md-divider></md-list-item></md-list></div>'),
  e.put("app/main/issues/issues.html",'<div id="scrumboard" class="page-layout simple fullwidth" layout="column"><div class="header md-accent-bg" \nng-class="\'md-\'+vm.board.settings.color+\'-bg\'" layout="column"><div class="header-content" layout="row" \nlayout-align="space-between" layout-wrap flex><div layout="row" layout-align="center center" flex-order="1" \nflex-order-xs="2"><md-button class="md-accent md-raised md-hue-2 header-boards-button" \nng-class="\'md-\'+vm.board.settings.color+\'-700-bg\'" ng-click="vm.boardSelectorVisible = !vm.boardSelectorVisible" \naria-label="boards button" translate translate-attr-aria-label="SB.BOARDS_BUTTON"><md-icon md-font-icon="icon-trello" \nclass="icon"></md-icon><span>{{vm.boardName}}</span></md-button></div><div class="header-board-name" layout="row" \nlayout-align="center center" flex-order="2" flex-order-xs="1" flex-xs="100"><i ng-if="vm.board.settings.subscribed" \nclass="board-subscribe s16 icon-eye"></i> <span editable-text="vm.board.name" onaftersave="vm.updateBoardUri()">\n{{vm.board.name}}</span></div><div class="toolbar" layout="row" layout-align="space-between center" flex-order="3">\n</div></div></div><div ng-show="vm.boardSelectorVisible" id="board-selector" \nclass="md-accent-bg animate-slide-down board-list md-whiteframe-3dp" ng-class="\'md-\'+vm.board.settings.color+\'-bg\'" \nlayout="row" layout-align="start center"><div class="board-list-item" ng-repeat="board in vm.boardList" \nui-sref="app.issues.boards.board({id:board.id, uri:board.uri})" layout="column" layout-align="space-between center">\n<div class="board-icon"><i class="icon-trello s64"></i></div><div flex class="board-name">{{board.name}}</div><div \nclass="board-options"><i class="icon-dots-horizontal"></i></div><div ng-if="board.id === vm.board.id" \nclass="selected-icon green-bg"><i class="icon-check s24"></i></div></div></div><md-backdrop \nclass="board-selector-backdrop md-dialog-backdrop md-opaque" ng-show="vm.boardSelectorVisible" \nng-click="vm.boardSelectorVisible = false" aria-hidden="true"></md-backdrop><md-content class="content" flex \nlayout="column" ui-view="issuesContent"></md-content><md-sidenav class="settings-sidenav md-sidenav-right" \nmd-component-id="settings-sidenav" ng-include="\'app/main/issues/sidenavs/settings/settings-sidenav.html\'" \nng-controller="SettingsSidenavController as vm" ms-sidenav-helper></md-sidenav><md-sidenav \nclass="filters-sidenav md-sidenav-right" md-component-id="filters-sidenav" \nng-include="\'app/main/issues/sidenavs/filters/filters-sidenav.html\'" ng-controller="FiltersSidenavController as vm" \nms-sidenav-helper></md-sidenav></div>'),e.put("app/main/profile/profile.html",'<div id="profile" class="page-layout simple tabbed"><div class="header md-accent-bg" layout="column" \nlayout-align="center center" layout-gt-sm="row" layout-align-gt-sm="space-between end"><div class="user-info" \nlayout="column" layout-align="center center" layout-gt-sm="row" layout-align-gt-sm="start center"><img \nclass="profile-image avatar huge" ng-src="{{ vm.userImage }}"><div class="name">{{ vm.username }}</div></div><div \nclass="actions" layout="row" layout-align="end center"><md-button class="md-raised md-accent" aria-label="Follow" \ntranslate="PROFILE.FOLLOW" translate-attr-aria-label="PROFILE.FOLLOW">Follow</md-button><md-button \nclass="md-raised md-primary" translate="PROFILE.SEND_MESSAGE" translate-attr-aria-label="PROFILE.SEND_MESSAGE">\nSend Message</md-button></div></div><div class="content" flex><md-tabs md-dynamic-height><md-tab><md-tab-label><span>\nProfile</span></md-tab-label><md-tab-body><md-content class="timeline-tab" \nng-include="\'app/main/profile/tabs/profileTab/profileTab.html\'"></md-content></md-tab-body></md-tab><md-tab>\n<md-tab-label><span>Community</span></md-tab-label><md-tab-body><md-content class="about-tab" \nng-include="\'app/main/profile/tabs/community/community.html\'"></md-content></md-tab-body></md-tab><md-tab>\n<md-tab-label><span>Settings</span></md-tab-label><md-tab-body><md-content class="about-tab" \nng-include="\'app/main/profile/tabs/settings/settings.html\'"></md-content></md-tab-body></md-tab></md-tabs></div></div>'),e.put("app/main/residents/residents.html",'<div id="mail" class="page-layout carded left-sidenav" layout="row"><div class="top-bg md-accent-bg"></div><md-sidenav \nclass="sidenav" md-is-locked-open="$mdMedia(\'gt-md\')" md-component-id="main-sidenav" \nng-include="\'app/main/residents/sidenavs/main/main-sidenav.html\'" ms-scroll ms-sidenav-helper></md-sidenav><div \nclass="center" layout="column" flex><div class="header" layout="row" layout-align="start center"><div \nclass="search-wrapper md-whiteframe-4dp" layout="row" layout-align="start center" flex><div class="search" flex \nlayout="row" layout-align="start center"><md-icon md-font-icon="icon-magnify" class="icon s24"></md-icon><input flex \nng-model="vm.search" ng-keyup="vm.searchResidents($event)" ng-change="vm.clearSearch()" type="text" \nplaceholder="Press enter to search for residents"></div></div></div><div class="content-card" layout="column" flex><div\n class="toolbar" layout="row" layout-align="space-between center" ng-if="vm.activeMailPaneIndex === 0"><div \nlayout="row" layout-align="start center"><md-menu class="settings-menu"><md-button class="md-icon-button" \nng-click="$mdOpenMenu($event)"><md-tooltip>Users Building Status</md-tooltip><md-icon \nmd-font-icon="icon-account-multiple"></md-icon></md-button><md-menu-content width="3"><md-menu-item><md-button \nng-click="vm.filterByStatus(\'all\')"><span>All</span></md-button></md-menu-item><md-menu-item><md-button \nng-click="vm.filterByStatus(\'active\')"><span>Active</span></md-button></md-menu-item><md-menu-item><md-button \nng-click="vm.filterByStatus(\'inactive\')"><span>Inactive</span></md-button></md-menu-item></md-menu-content></md-menu>\n<div ng-if="vm.numericSearch"><md-button \nng-click="vm.toggleNumeric = !vm.toggleNumeric; vm.applyNumericFilter({keyCode: 13});" class="md-icon-button" \nng-click="$mdOpenMenu($event)"><md-icon ng-if="vm.toggleNumeric" md-font-icon="icon-plus"></md-icon><md-icon \nng-if="!vm.toggleNumeric" md-font-icon="icon-minus"></md-icon><md-tooltip ng-if="vm.toggleNumeric">Bigger then\n</md-tooltip><md-tooltip ng-if="!vm.toggleNumeric">Less then</md-tooltip></md-button><input class="filter-input" \nplaceholder="0" ng-model="vm.numericFilter" ng-keyup="vm.applyNumericFilter($event)" type="text" required=""></div><div\n ng-if="vm.booleanSearch"><md-button ng-click="vm.applyBooleanFilter()" class="md-icon-button"><md-icon \nng-if="vm.toggleBoolean" md-font-icon="icon-plus"></md-icon><md-icon ng-if="!vm.toggleBoolean" \nmd-font-icon="icon-minus"></md-icon><md-tooltip ng-if="vm.toggleBoolean">Has {{ vm.searchedField }}</md-tooltip>\n<md-tooltip ng-if="!vm.toggleBoolean">Doesnt have {{ vm.searchedField }}</md-tooltip></md-button></div></div><div \nlayout="row" layout-align="start center" translate-attr-aria-label="MAIL.REFRESH"><md-button class="md-icon-button" \nng-click="vm.exportCensus()"><md-tooltip>Census</md-tooltip><md-icon md-font-icon="icon-format-list-numbers"></md-icon>\n</md-button><md-button class="md-icon-button" ng-click="vm.exportBlankPlan()"><md-tooltip>Blank Care Plan</md-tooltip>\n<md-icon md-font-icon="icon-document"></md-icon></md-button><md-menu class="settings-menu"><md-button \nclass="md-icon-button" ng-click="$mdOpenMenu($event)"><md-tooltip>Exports</md-tooltip><md-icon \nmd-font-icon="icon-export"></md-icon></md-button><md-menu-content width="3"><md-menu-item><md-button \nng-click="vm.exportCarePlan()"><span>Care Plan</span></md-button></md-menu-item><md-menu-item><md-button \nng-click="vm.exportResidentFaceSheet()"><span>Face Sheet</span></md-button></md-menu-item></md-menu-content></md-menu>\n</div></div><div class="content-wrapper" layout="row" flex><md-tabs md-selected="vm.activeMailPaneIndex" \nclass="mail-tabs" md-dynamic-height="{{vm.dynamicHeight}}" flex><md-tab><md-tab-label>Residents</md-tab-label>\n<md-tab-body><div scrolly="vm.showMore()" class="content mail-list-pane" \nng-include="\'app/main/residents/views/list/list-view.html\'" ms-scroll></div></md-tab-body></md-tab><md-tab>\n<md-tab-label>Details Pane</md-tab-label><md-tab-body><div ng-switch on="vm.selectedCategory"><div \nng-switch-when="Administrative"><div class="content mail-read-pane" \nng-include="\'app/main/residents/views/details/administartive.html\'" ms-scroll></div></div><div \nng-switch-when="Allergy"><div class="content mail-read-pane" \nng-include="\'app/main/residents/views/details/allergy.html\'" ms-scroll></div></div><div ng-switch-when="Assistance">\n<div class="content mail-read-pane" ng-include="\'app/main/residents/views/details/assistance.html\'" ms-scroll></div>\n</div><div ng-switch-when="Bathing"><div class="content mail-read-pane" \nng-include="\'app/main/residents/views/details/bathing.html\'" ms-scroll></div></div><div ng-switch-when="Incontinent">\n<div class="content mail-read-pane" ng-include="\'app/main/residents/views/details/incontinent.html\'" ms-scroll></div>\n</div><div ng-switch-when="Life"><div class="content mail-read-pane" \nng-include="\'app/main/residents/views/details/life.html\'" ms-scroll></div></div><div ng-switch-when="Mobility"><div \nclass="content mail-read-pane" ng-include="\'app/main/residents/views/details/mobility.html\'" ms-scroll></div></div><div\n ng-switch-when="Nutrition"><div class="content mail-read-pane" \nng-include="\'app/main/residents/views/details/nutrition.html\'" ms-scroll></div></div><div ng-switch-when="Pain"><div \nclass="content mail-read-pane" ng-include="\'app/main/residents/views/details/pain.html\'" ms-scroll></div></div><div \nng-switch-when="Physical Condition"><div class="content mail-read-pane" \nng-include="\'app/main/residents/views/details/physicalcondition.html\'" ms-scroll></div></div><div \nng-switch-when="Psychosocial"><div class="content mail-read-pane" \nng-include="\'app/main/residents/views/details/psychosocial.html\'" ms-scroll></div></div><div ng-switch-when="Sleep">\n<div class="content mail-read-pane" ng-include="\'app/main/residents/views/details/sleep.html\'" ms-scroll></div></div>\n<div ng-switch-when="Vitals"><div class="content mail-read-pane" \nng-include="\'app/main/residents/views/details/vitals.html\'" ms-scroll></div></div><div ng-switch-when="Contacts"><div \nclass="content mail-read-pane" ng-include="\'app/main/residents/views/details/contacts.html\'" ms-scroll></div></div><div\n ng-switch-when="Updates"><div class="content mail-read-pane" \nng-include="\'app/main/residents/views/details/updates.html\'" ms-scroll></div></div></div></md-tab-body></md-tab>\n</md-tabs></div></div></div></div>'),e.put("app/main/todo/todo.html",'<div id="todo" class="page-layout carded left-sidenav" layout="row"><div class="top-bg md-accent-bg"></div><md-sidenav \nclass="sidenav" md-is-locked-open="$mdMedia(\'gt-md\')" md-component-id="main-sidenav" \nng-include="\'app/main/todo/sidenavs/main/main-sidenav.html\'" ms-scroll ms-sidenav-helper></md-sidenav><div \nclass="center" layout="column" flex><div class="header" layout="row" layout-align="start center"><div \nclass="search-wrapper md-whiteframe-4dp" flex layout="row" layout-align="start center"><md-button \nclass="md-icon-button sidenav-toggle" ng-click="vm.toggleSidenav(\'main-sidenav\')" hide-gt-md \naria-label="Toggle sidenav" translate translate-attr-aria-label="TODO.TOGGLE_SIDENAV"><md-icon \nmd-font-icon="icon-menu" class="icon"></md-icon></md-button><div class="search" flex layout="row" \nlayout-align="start center"><md-icon md-font-icon="icon-magnify" class="icon s24"></md-icon><input flex \nng-model="vm.taskFilters.search" type="text" placeholder="Search for a task" translate \ntranslate-attr-placeholder="TODO.SEARCH"></div></div></div><div class="content-card" layout="column" flex><div \nclass="toolbar" layout="row" layout-align="space-between center"><md-select class="simplified" \nng-model="vm.selectedFilter.dueDate" placeholder="Due Date"><md-option value="Next 3 days" \ntranslate="TODO.NEXT_3_DAYS">Next 3 days</md-option><md-option value="Next 7 days" translate="TODO.NEXT_7_DAYS">\nNext 7 days</md-option><md-option value="Next 2 weeks" translate="TODO.NEXT_2_WEEKS">Next 2 weeks</md-option><md-option\n value="Next month" translate="TODO.NEXT_MONTH">Next month</md-option></md-select><div layout="row" \nlayout-align="start center"><md-select class="simplified" ng-model="vm.taskOrder" placeholder="Order" \nng-change="vm.taskOrderDescending = vm.taskOrder === \'\' ? false : vm.taskOrderDescending"><md-option \nvalue="startDateTimestamp" translate="TODO.START_DATE">Start Date</md-option><md-option value="dueDateTimestamp" \ntranslate="TODO.DUE_DATE">Due Date</md-option><md-option ng-value="\'\'" translate="TODO.MANUAL">Manual</md-option>\n<md-option value="title" translate="TODO.TITLE">Title</md-option></md-select><md-button class="md-icon-button" \nng-click="vm.startExport()" aria-label="Export To Do" translate translate-attr-aria-label="TODO.EXPORT_TODO"><md-icon \nmd-font-icon="icon-export"></md-icon><md-tooltip>Export To Dos</md-tooltip></md-button></div></div><div \nclass="content" layout="row" flex><md-content class="todo-list-pane" flex \nng-include="\'app/main/todo/views/list/list-view.html\'" ms-scroll="vm.msScrollOptions"></md-content></div></div></div>\n</div>'),e.put("app/quick-panel/dialogs/member-accepted.html",'<md-dialog class="compose-dialog" aria-label="Update"><form class="md-inline-form"><md-toolbar \nclass="md-accent md-hue-2"><div class="md-toolbar-tools" layout="row" layout-align="space-between center"><span \nclass="title">Accepted!</span><md-button class="md-icon-button" ng-click="vm.cancelDialog()" aria-label="Close dialog">\n<md-icon md-font-icon="icon-close"></md-icon></md-button></div></md-toolbar><md-dialog-content ms-scroll><h2>\nYou have been accepted to community {{ vm.communityName }}.</h2></md-dialog-content><md-dialog-actions layout="row" \nlayout-align="space-between center"><md-button ng-click="vm.cancelDialog()" class="send-button md-accent md-raised" \naria-label="Next Login">Next Login</md-button><md-button ng-click="vm.refreshPage()" \nclass="send-button md-accent md-raised" aria-label="Go Now">Go Now</md-button></md-dialog-actions></form></md-dialog>'),e.put("app/core/directives/ms-info-bar/ms-info-bar.html",'<div id="ms-info-bar" layout="row" layout-align="start center" flex><div id="ms-info-bar-message" ng-transclude flex>\n</div><md-button id="ms-info-bar-close" class="md-icon-button" aria-label="Close" ng-click="removeInfoBar()"><md-icon \nmd-font-icon="icon-close s24"></md-icon></md-button></div>'),e.put("app/core/directives/ms-material-color-picker/ms-material-color-picker.html",'<md-menu md-position-mode="target-right target"><div ng-click="$mdOpenMenu($event)"><ms-color-picker-button><md-button \naria-label="Row Color" md-menu-origin ng-click="$mdOpenMenu($event)" ng-class="vm.selectedColor.class"><span \nng-show="vm.selectedColor.palette">{{vm.selectedColor.palette}} {{vm.selectedColor.hue}} </span><span \nng-show="!vm.selectedColor.palette">Select Color</span></md-button></ms-color-picker-button></div><md-menu-content \nclass="ms-material-color-picker-menu-content" layout-column><header \nng-class="vm.selectedColor.class || \'md-accent-bg\'" class="md-whiteframe-4dp" layout="row" \nlayout-align="space-between center"><md-button md-prevent-menu-close ng-click="vm.activateHueSelection(false,false)" \nclass="md-icon-button" ng-class="{\'hidden\':!vm.selectedPalette}" aria-label="Palette"><md-icon \nmd-font-icon="icon-arrow-left" class="s20"></md-icon></md-button><span ng-if="vm.selectedColor.palette">\n{{vm.selectedColor.palette}} {{vm.selectedColor.hue}} </span><span ng-if="!vm.selectedColor.palette">Select Color\n</span><md-button class="remove-color-button md-icon-button" ng-click="vm.removeColor()" aria-label="Remove Color">\n<md-icon md-font-icon="icon-delete" class="s20"></md-icon></md-button></header><div class="colors" ms-scroll><div \nng-show="!vm.selectedPalette" layout="row" layout-wrap><div class="color" ng-class="\'md-\'+palette+\'-500-bg\'" \nng-repeat="(palette, hues) in vm.palettes" ng-click="vm.activateHueSelection(palette,hues)" layout="row" \nlayout-align="start end" md-prevent-menu-close md-ink-ripple><span class="label">{{palette}}</span></div></div><div \nng-show="vm.selectedPalette" layout="row" layout-wrap><div class="color" \nng-class="\'md-\'+vm.selectedPalette+\'-\'+hue+\'-bg\'" ng-repeat="(hue, values) in vm.selectedHues" \nng-click="vm.selectColor(vm.selectedPalette,hue)" layout="row" layout-align="start end" md-ink-ripple><span \nclass="label">{{hue}} </span><i ng-if="vm.selectedPalette == vm.selectedColor.palette && hue == vm.selectedColor.hue" \nclass="s16 icon-check"></i></div></div></div></md-menu-content></md-menu>'),e.put("app/core/directives/ms-search-bar/ms-search-bar.html",'<div flex layout="row" layout-align="start center"><label for="ms-search-bar-input"><md-button \nclass="ms-search-bar-expander md-icon-button" aria-label="Expand Search Bar" ng-click="MsSearchBar.expand()" \nng-if="!MsSearchBar.resultsLoading || MsSearchBar.collapsed"><md-icon md-font-icon="icon-magnify" class="icon s24">\n</md-icon></md-button><div class="ms-search-bar-loader" layout="row" layout-align="center center" \nng-if="MsSearchBar.resultsLoading && !MsSearchBar.collapsed"><md-progress-circular class="md-accent" md-diameter="48" \nmd-mode="indeterminate"></md-progress-circular></div></label><input id="ms-search-bar-input" type="text" \nplaceholder="Search" flex ng-model="MsSearchBar.query" ng-model-options="MsSearchBar.queryOptions" \nng-blur="MsSearchBar.collapse()" ng-keydown="MsSearchBar.handleKeydown($event)"><md-button \nclass="ms-search-bar-collapser md-icon-button" ng-click="MsSearchBar.collapse()" aria-label="Collapse Search Bar">\n<md-icon md-font-icon="icon-close" class="icon s24"></md-icon></md-button></div>'),e.put("app/core/directives/ms-shortcuts/ms-shortcuts.html",'<div class="shortcuts-container" layout="row" layout-align="space-between center" flex \nng-class="{\'mobile-bar-active\': MsShortcuts.mobileBarActive}"><div class="flex-noshrink" layout="row" \nlayout-align="start center" flex><div class="shortcuts hide show-gt-xs" layout="row" layout-align="start center" \nms-scroll ng-if="MsShortcuts.shortcuts.length > 0" ng-sortable="MsShortcuts.sortableOptions"><div \nng-repeat="shortcut in MsShortcuts.shortcuts" layout="row" layout-align="center center"><md-button \nclass="md-icon-button shortcut" aria-label="{{shortcut.title}}" ui-sref="{{shortcut.uisref}}"><md-icon \nng-if="shortcut.icon" md-font-icon="{{shortcut.icon}}" class="icon s24"></md-icon><div ng-if="!shortcut.icon" \nclass="first-letter">{{shortcut.title.charAt(0)}}</div><md-tooltip md-direction="bottom">{{shortcut.title}}\n</md-tooltip></md-button></div></div><md-menu md-offset="8 56" class="shortcut-menu hide show-gt-xs"><md-button \nclass="md-icon-button add-shortcut-button" aria-label="Add shortcut" ng-click="$mdOpenMenu($event)"><md-icon \nmd-menu-origin md-font-icon="icon-star" class="icon amber-600-fg s24"></md-icon><md-tooltip md-direction="bottom">\nClick to add/remove shortcut</md-tooltip></md-button><md-menu-content><div id="ms-shortcut-add-menu"><div \nclass="shortcut-search" layout="row" layout-align="start center"><div class="search-icon" layout="row" \nlayout-align="center center" ng-if="!MsShortcuts.resultsLoading"><md-icon md-menu-align-target \nmd-font-icon="icon-magnify" class="icon s24"></md-icon></div><div class="shortcut-loader" layout="row" \nlayout-align="center center" ng-if="MsShortcuts.resultsLoading"><md-progress-circular class="md-accent" \nmd-diameter="20" md-mode="indeterminate"></md-progress-circular></div><input type="text" placeholder="Search" flex \nng-model="MsShortcuts.query" ng-model-options="MsShortcuts.queryOptions" \nng-keydown="MsShortcuts.handleKeydown($event)"></div><div class="results" ng-if="MsShortcuts.results" ms-scroll><div \nclass="no-results" ng-if="MsShortcuts.results.length === 0">No Results!</div><div class="result" \nng-repeat="result in MsShortcuts.results" ng-click="MsShortcuts.handleResultClick(result)" \nng-mouseenter="MsShortcuts.handleMouseenter($index)" ng-mousedown="MsShortcuts.absorbEvent($event)" \nng-class="{\'selected\': $index == MsShortcuts.selectedResultIndex}" md-prevent-menu-close="md-prevent-menu-close" \nmd-ink-ripple><div layout="row" layout-align="start space-between"><div layout="row" layout-align="start center" flex>\n<div class="icon icon-container" layout="row" layout-align="center center"><i ng-if="result.icon" \nclass="{{result.icon}}"></i><div ng-if="!result.icon" class="square md-accent-bg"></div></div><div><div class="title">\n{{result.title}}</div></div></div><md-icon md-font-icon="icon-pin" class="icon s18" \nng-class="{\'fade-text\': !result.hasShortcut}"></md-icon></div></div></div></div></md-menu-content></md-menu></div>\n<md-button class="md-icon-button toggle-mobile-menu hide-gt-xs" aria-label="Add shortcut" \nng-click="MsShortcuts.toggleMobileBar()"><md-icon md-menu-origin md-font-icon="icon-star" \nclass="icon amber-600-fg s24" ng-hide="MsShortcuts.mobileBarActive"></md-icon><md-icon md-menu-origin \nmd-font-icon="icon-close" class="icon s24" ng-hide="!MsShortcuts.mobileBarActive"></md-icon></md-button></div>'),e.put("app/main/auth/forgot-password/forgot-password.html",'<div id="forgot-password" class="flex-scrollable" layout="column" ms-scroll><div id="forgot-password-form-wrapper" \nlayout="column" layout-align="center center"><div id="forgot-password-form" class="md-whiteframe-8dp"><div \nclass="logo md-accent-bg"><span>F</span></div><div class="title" translate="FORGOTPASSWORD.TITLE">Recover your password\n</div><form name="forgotPasswordForm" novalidate><md-input-container class="md-block" md-no-float><input type="email" \nname="email" ng-model="vm.form.email" placeholder="Email address" translate \ntranslate-attr-placeholder="FORGOTPASSWORD.EMAIL_ADRESS" ng-pattern="/^.+@.+\\..+$/" required><div \nng-messages="forgotPasswordForm.email.$error" role="alert" multiple="multiple"><div ng-message="pattern"><span \ntranslate="FORGOTPASSWORD.ERRORS.EMAIL_MUST_VALID">Email must be a valid e-mail address</span></div></div>\n</md-input-container><md-button ng-click="vm.sendMail()" type="submit" class="md-raised md-accent submit-button" \naria-label="RESET MY PASSWORD" ng-disabled="forgotPasswordForm.$invalid || forgotPasswordForm.$pristine" \ntranslate="FORGOTPASSWORD.SEND_RESET_LINK" translate-attr-aria-label="FORGOTPASSWORD.SEND_RESET_LINK">SEND RESET LINK\n</md-button></form><div class="login" layout="row" layout-align="center center"><a class="link" \nui-sref="app.pages_auth_login" translate="FORGOTPASSWORD.GO_BACK">Go back to login</a></div></div></div></div>'),e.put("app/main/auth/lock/lock.html",'<div id="lock" class="flex-scrollable" layout="column" ms-scroll><div id="lock-form-wrapper" layout="column" \nlayout-align="center center"><div id="lock-form" class="md-whiteframe-8dp"><div layout="row" \nlayout-align="start center" layout-sm="column" layout-align-sm="center center"><div class="avatar-container"><img \nclass="avatar big" src="assets/images/avatars/katherine.jpg"><md-icon md-font-icon="icon-lock" \nclass="md-warn-fg s36 md-hue-2"></md-icon></div><div flex layout="column" layout-align="start" \nlayout-align-sm="center center"><div class="title" translate="LOCK.TITLE">Your session is locked</div><div \nclass="subtitle" translate="LOCK.SUBTITLE">Due to inactivity, your session is locked. Enter your password to continue.\n</div></div></div><form name="lockForm" novalidate><md-input-container class="md-block" md-no-float><input \nng-model="vm.form.username" placeholder="Username" translate translate-attr-placeholder="LOCK.USERNAME" \ndisabled="disabled"></md-input-container><md-input-container class="md-block" md-no-float><input type="password" \nname="password" ng-model="vm.form.password" placeholder="Password" translate \ntranslate-attr-placeholder="LOCK.PASSWORD" required><div ng-messages="lockForm.password.$error" role="alert"><div \nng-message="required"><span translate="LOCK.ERRORS.PASSWORD_REQUIRED">Password field is required</span></div></div>\n</md-input-container><md-button type="submit" class="md-raised md-accent submit-button" aria-label="UNLOCK" \nng-disabled="lockForm.$invalid || lockForm.$pristine" translate="LOCK.UNLOCK" translate-attr-aria-label="LOCK.UNLOCK">\nUNLOCK</md-button></form><div class="message"><a ui-sref="app.pages_auth_login" class="md-accent-color"><span \ntranslate="LOCK.ARE_YOU_NOT">Are you not</span><span> Jane Doe?</span></a></div></div></div></div>'),e.put("app/main/auth/login/login.html",'<div id="login" class="flex-scrollable" layout="column" ms-scroll><div id="login-form-wrapper" layout="column" \nlayout-align="center center"><div id="login-form" class="md-whiteframe-8dp"><div class="logo md-accent-bg"><span>A\n</span></div><div class="title" translate="LOGIN.TITLE">Log in to your Account</div><form name="loginForm" novalidate>\n<md-input-container class="md-block" md-no-float><input type="email" name="email" ng-model="vm.form.email" \nplaceholder="Email" translate translate-attr-placeholder="LOGIN.EMAIL" ng-pattern="/^.+@.+\\..+$/" required><div \nng-messages>{{ vm.usernameError }}</div><div ng-messages="loginForm.email.$error" role="alert" multiple="multiple"><div\n ng-message="required"><span translate="LOGIN.ERRORS.EMAIL_REQUIRED">Email field is required</span></div><div \nng-message="pattern"><span translate="LOGIN.ERRORS.EMAIL_MUST_VALID">Email must be a valid e-mail address</span></div>\n</div></md-input-container><md-input-container class="md-block" md-no-float><input type="password" name="password" \nng-model="vm.form.password" placeholder="Password" translate translate-attr-placeholder="LOGIN.PASSWORD" required><div \nng-messages>{{ vm.passwordError }}</div><div ng-messages="loginForm.password.$error" role="alert"><div \nng-message="required"><span translate="LOGIN.ERRORS.PASSWORD_REQUIRED">Password field is required</span></div></div>\n</md-input-container><div class="remember-forgot-password" layout="row" layout-xs="column" \nlayout-align="space-between center"><a ui-sref="app.pages_auth_forgot-password" \nclass="forgot-password md-accent-color">Forgot Password?</a></div><md-button ng-click="vm.login()" type="submit" \nclass="md-raised md-accent submit-button" aria-label="LOG IN" ng-disabled="loginForm.$invalid || loginForm.$pristine" \ntranslate="LOGIN.LOG_IN" translate-attr-aria-label="LOGIN.LOG_IN">LOG IN</md-button></form><div class="register" \nlayout="row" layout-sm="column" layout-align="center center"><span class="text" translate="LOGIN.DONT_HAVE_ACCOUNT">\nDon\'t have an account?</span> <a class="link" ui-sref="app.pages_auth_register" translate="LOGIN.CREATE_ACCOUNT">\nCreate an account</a></div></div></div></div>'),e.put("app/main/auth/not-auth/not-auth.html",'<div id="maintenance" class="flex-scrollable" layout="column" ms-scroll><div id="maintenance-form-wrapper" \nlayout="column" layout-align="center center"><div id="maintenance-form" class="md-whiteframe-8dp"><div \nclass="logo md-accent-bg"><span>A</span></div><div class="title">You need to sign in to view this page</div><div \nclass="subtitle">To start using the site please<br><a ui-sref="app.pages_auth_login">Login </a>/ <a \nui-sref="app.pages_auth_register">Register</a></div></div></div></div>'),e.put("app/main/auth/register/register.html",'<div id="register" class="flex-scrollable" layout="column" ms-scroll><div id="register-form-wrapper" layout="column" \nlayout-align="center center"><div id="register-form" class="md-whiteframe-8dp"><div class="logo md-accent-bg"><span>A\n</span></div><div class="title" translate="REGISTER.TITLE">Create an account</div><form name="registerForm" novalidate>\n<md-input-container class="md-block" md-no-float><label>Username</label><input name="username" \nng-model="vm.form.username" required><div ng-messages="registerForm.username.$error" role="alert"><div ng-messages>\n{{ vm.userExists }}</div><div ng-message="required"><span translate="REGISTER.ERRORS.USERNAME_REQUIRED">\nUsername is required</span></div></div></md-input-container><md-input-container class="md-block" md-no-float><label>\nEmail</label><input type="email" name="email" ng-model="vm.form.email" translate ng-pattern="/^.+@.+\\..+$/" required>\n<div ng-messages="registerForm.email.$error" role="alert" multiple="multiple"><div ng-message="required"><span \ntranslate="REGISTER.ERRORS.EMAIL_REQUIRED">Email field is required</span></div><div ng-messages>{{ vm.emailExists }}\n</div><div ng-message="pattern"><span translate="REGISTER.ERRORS.EMAIL_MUST_VALID">Email must be a valid e-mail address\n</span></div></div></md-input-container><md-input-container class="md-block" md-no-float><label>Password</label><input \ntype="password" name="password" ng-model="vm.form.password" minlength="6" translate required><div \nng-messages="registerForm.password.$error" role="alert"><div ng-message="required"><span \ntranslate="REGISTER.ERRORS.PASSWORD_REQUIRED">Password field is required</span></div><div ng-message="minlength"><span>\nThe password should be at least 6 charactes long</span></div></div></md-input-container><md-input-container \nclass="md-block" md-no-float><label>Password (Confirm)</label><input type="password" name="passwordConfirm" \nng-model="vm.form.passwordConfirm" translate required><div ng-messages="registerForm.passwordConfirm.$error" \nrole="alert"><div ng-messages>{{ vm.notSamePass }}</div><div ng-message="required"><span \ntranslate="REGISTER.ERRORS.PASSWORD_CONFIRM_REQUIRED">Password (Confirm) field is required</span></div></div>\n</md-input-container><div class="g-recaptcha" data-sitekey="6LfJ7AsUAAAAAPiH8fYcvrKcZhxCGJuvxLueXtNp"></div><div \nclass="terms" layout="row" layout-align="center center"><md-checkbox name="terms" ng-model="data.cb1" \naria-label="I read and accept" required></md-checkbox><div layout="row" layout-sm="column" layout-align="start center">\n<span translate="REGISTER.READ_ACCEPT">I read and accept</span> <a href="#" class="md-accent-color" \ntranslate="REGISTER.TERMS_COND">terms and conditions</a></div></div><md-button type="submit" ng-click="vm.register()" \nclass="md-raised md-accent submit-button" aria-label="CREATE MY ACCOUNT" \nng-disabled="registerForm.$invalid || registerForm.$pristine || vm.disabled" translate="REGISTER.CREATE_ACCOUNT" \ntranslate-attr-aria-label="REGISTER.CREATE_ACCOUNT">CREATE MY ACCOUNT</md-button></form><div class="login" \nlayout="row" layout-xs="column" layout-align="center center"><span class="text" translate="REGISTER.ALREADY_HAVE">\nAlready have an account?</span> <a class="link" ui-sref="app.pages_auth_login" translate="REGISTER.LOGIN">Log in</a>\n</div></div></div></div>'),e.put("app/main/auth/reset-password/reset-password.html",'<div id="reset-password" class="flex-scrollable" layout="column" ms-scroll><div id="reset-password-form-wrapper" \nlayout="column" layout-align="center center"><div id="reset-password-form" class="md-whiteframe-8dp"><div \nclass="logo md-accent-bg"><span>A</span></div><div class="title" translate="RESETPASSWORD.TITLE">Reset your password\n</div><form name="resetPasswordForm" novalidate><md-input-container class="md-block" md-no-float><input \ntype="password" name="password" ng-model="vm.form.password" placeholder="Password" translate \ntranslate-attr-placeholder="RESETPASSWORD.PASSWORD" required><div ng-messages="registerForm.password.$error" \nrole="alert"><div ng-message="required"><span translate="RESETPASSWORD.ERRORS.PASSWORD_REQUIRED">\nPassword field is required</span></div></div></md-input-container><md-input-container class="md-block" md-no-float>\n<input type="password" name="passwordConfirm" ng-model="vm.form.passwordConfirm" placeholder="Password (Confirm)" \ntranslate translate-attr-placeholder="RESETPASSWORD.PASSWORD_CONFIRM" required><div \nng-messages="resetPasswordForm.passwordConfirm.$error" role="alert"><div ng-message="required"><span \ntranslate="RESETPASSWORD.ERRORS.PASSWORD_CONFIRM_REQUIRED">Password (Confirm) field is required</span></div></div>\n</md-input-container><md-button type="submit" ng-click="vm.resetPassword()" class="md-raised md-accent submit-button" \naria-label="UPDATE MY PASSWORD" ng-disabled="resetPasswordForm.$invalid || resetPasswordForm.$pristine" \ntranslate="RESETPASSWORD.UPDATE_PASSWORD" translate-attr-aria-label="RESETPASSWORD.UPDATE_PASSWORD">RESET MY PASSWORD\n</md-button></form></div></div></div>'),
  e.put("app/main/auth/verify/verify.html",'<div id="maintenance" class="flex-scrollable" layout="column" ms-scroll><div id="maintenance-form-wrapper" \nlayout="column" layout-align="center center"><div id="maintenance-form" class="md-whiteframe-8dp"><div \nclass="logo md-accent-bg"><span>A</span></div><span ng-if="vm.verifiedEmail"><div class="title">\nThank you for confirming your email address</div><div class="subtitle">\nYou can start using the site and create new communities<br><a ui-sref="app.pages_auth_login">Login</a></div></span>\n<span ng-if="!vm.verifiedEmail"><div class="title">Invalid confirmation token</div><div class="subtitle">\nPlease check if you have entered the correct link<br></div></span></div></div></div>'),e.put("app/main/dashboard/tables/boss_table.html",'<ms-widget layout="row" flex="100" ng-cloak=""><ms-widget-front class="white-bg"><div class="p-24 mb-8 border-bottom" \nlayout="row" layout-align="space-between center"><div class="h2">Community Members</div><div \nclass="text-boxed red-bg white-fg m-0">{{vm.communityMemberTable.length}} members</div></div><table \nclass="row-border hover" datatable="ng" dt-options="vm.communityMemberWidget.dtOptions"><thead><tr><th \nclass="secondary-text"><div class="table-header"><span class="column-title"></span></div></th><th \nclass="secondary-text"><div class="table-header"><span class="column-title">Name</span></div></th><th \nclass="secondary-text"><div class="table-header"><span class="column-title">Email</span></div></th><th \nclass="secondary-text"><div class="table-header"><span class="column-title">Director</span></div></th><th \nclass="secondary-text"><div class="table-header"><span class="column-title">Minion</span></div></th><th \nclass="secondary-text" ng-if="vm.bothRoles == 2"><div class="table-header"><span class="column-title">Boss</span></div>\n</th><th class="secondary-text"><div class="table-header"><span class="column-title">Fab</span></div></th><th \nclass="secondary-text"><div class="table-header"><span class="column-title"></span></div></th></tr></thead><tbody>\n<md-radio-group ng-model="data.group1"><tr ng-repeat="row in  vm.communityMemberTable track by $index"><td><img \nclass="avatar" ng-src="{{row[0] }}"></td><td><span>{{ row[1]}}</span></td><td><span>{{ row[2]}}</span></td><td><span \nng-if="row[1] !== vm.username"><input type="radio" ng-value="true" name="group {{ $index}}" ng-model="row[5]" \nng-change="vm.addRole(row[3], \'directors\')" value="Director"> Director<br></span></td><td><span \nng-if="row[1] !== vm.username"><input type="radio" ng-value="true" name="group {{ $index}}" ng-model="row[6]" \nng-change="vm.addRole(row[3], \'minions\')" value="Minion"> Minion<br></span></td><td ng-if="vm.bothRoles == 2"><input \ntype="radio" name="creator" ng-value="true" ng-model="row[4]" ng-change="vm.addRole(row[3], \'boss\')"> Boss<br></td><td>\n<md-fab-speed-dial md-direction="up" md-open="false" class="md-scale"><md-fab-trigger><md-button aria-label="menu" \nclass="md-fab md-warn"><md-icon md-font-icon="icon-menu"></md-icon></md-button></md-fab-trigger><md-fab-actions \nstyle="position: absolute; bottom: 60px"><md-button aria-label="Logs" ng-click="vm.openLogsModal(row[3], row[1])" \nclass="md-fab md-raised md-mini"><md-icon md-font-icon="icon-account-network" aria-label="Logs"></md-icon><md-tooltip \nmd-direction="left">Ip Logs<md-tooltip></md-tooltip></md-tooltip></md-button><md-button aria-label="Recover" \nng-if="row[1] !== vm.username" ng-click="vm.openRecoverModal(row[3], row[1], \'boss\')" class="md-fab md-raised md-mini">\n<md-icon md-font-icon="icon-account-key" aria-label="Recover"></md-icon><md-tooltip md-direction="left">Recover\n<md-tooltip></md-tooltip></md-tooltip></md-button><md-button aria-label="Remove" ng-if="row[1] !== vm.username" \nng-click="vm.removeMember(row[3], row[1])" class="md-fab md-raised md-mini"><md-icon \nmd-font-icon="icon-account-remove" aria-label="Remove"></md-icon><md-tooltip md-direction="left">Remove<md-tooltip>\n</md-tooltip></md-tooltip></md-button></md-fab-actions></md-fab-speed-dial></td><td><span \nng-if="vm.chosenUser == row[3]"><md-icon md-menu-origin md-font-icon="icon-account-key"></md-icon></span></td></tr>\n</md-radio-group></tbody></table></ms-widget-front></ms-widget>'),e.put("app/main/dashboard/tables/creator_table.html",'<ms-widget layout="row" flex="100"><ms-widget-front class="white-bg"><div class="p-24 mb-8 border-bottom" layout="row" \nlayout-align="space-between center"><div class="h2">Community Members</div><div class="text-boxed red-bg white-fg m-0">\n{{vm.communityMemberTable.length}} members</div></div><table class="row-border hover" datatable="ng" \ndt-options="vm.communityMemberWidget.dtOptions"><thead><tr><th class="secondary-text"><div class="table-header"><span \nclass="column-title"></span></div></th><th class="secondary-text"><div class="table-header"><span class="column-title">\nName</span></div></th><th class="secondary-text"><div class="table-header"><span class="column-title">Email</span>\n</div></th><th class="secondary-text"><div class="table-header"><span class="column-title">Role</span></div></th><th \nclass="secondary-text"><div class="table-header"><span class="column-title">Boss</span></div></th><th \nclass="secondary-text"><div class="table-header"><span class="column-title">Recover</span></div></th></tr></thead>\n<tbody><md-radio-group ng-model="data.group1"><tr ng-repeat="row in vm.communityMemberTable"><td><img class="avatar" \nng-src="{{row[0] }}"></td><td><span>{{ row[1]}}</span></td><td><span>{{ row[2]}}</span></td><td><span>{{ row[8] }}\n</span></td><td><input type="radio" name="creator" ng-value="true" ng-model="row[4]" \nng-change="vm.addRole(row[3], \'boss\')"> Boss<br></td><td><md-button ng-if="row[9]" \nng-click="vm.openRecoverModal(row[3], row[1], \'randomuser\')" class="md-raised md-primary">Recover</md-button></td></tr>\n</md-radio-group></tbody></table></ms-widget-front></ms-widget>'),e.put("app/main/dashboard/tables/directors_table.html",'<ms-widget layout="row" flex="100"><ms-widget-front class="white-bg"><div class="p-24 mb-8 border-bottom" layout="row" \nlayout-align="space-between center"><div class="h2">Community Members</div><div class="text-boxed red-bg white-fg m-0">\n{{vm.communityMemberTable.length}} members</div></div><table class="row-border hover" datatable="ng" \ndt-options="vm.communityMemberWidget.dtOptions"><thead><tr><th class="secondary-text"><div class="table-header"><span \nclass="column-title"></span></div></th><th class="secondary-text"><div class="table-header"><span class="column-title">\nName</span></div></th><th class="secondary-text"><div class="table-header"><span class="column-title">Email</span>\n</div></th><th class="secondary-text"><div class="table-header"><span class="column-title">Role</span></div></th><th \nclass="secondary-text"><div class="table-header"><span class="column-title">Recover</span></div></th><th \nclass="secondary-text"><div class="table-header"><span class="column-title">Remove</span></div></th></tr></thead>\n<tbody><md-radio-group ng-model="data.group1"><tr ng-repeat="row in vm.communityMemberTable track by $index"><td><img \nclass="avatar" ng-src="{{row[0] }}"></td><td><span>{{ row[1]}}</span></td><td><span>{{ row[2]}}</span></td><td><span>\n{{ row[8] }}</span></td><td><md-button ng-if="row[9]" ng-click="vm.openRecoverModal(row[3], row[1], \'randomuser\')" \nclass="md-raised md-primary">Recover</md-button></td><td><md-button ng-if="row[1] !== vm.username" class="md-raised" \nng-click="vm.removeMember(row[3], row[1])">Remove</md-button></td></tr></md-radio-group></tbody></table>\n</ms-widget-front></ms-widget>'),e.put("app/main/dashboard/tables/minions_table.html",'<ms-widget layout="row" flex="100"><ms-widget-front class="white-bg"><div class="p-24 mb-8 border-bottom" layout="row" \nlayout-align="space-between center"><div class="h2">Community Members</div><div class="text-boxed red-bg white-fg m-0">\n{{vm.communityMemberTable.length}} members</div></div><table class="row-border hover" datatable="ng" \ndt-options="vm.communityMemberWidget.dtOptions"><thead><tr><th class="secondary-text"><div class="table-header"><span \nclass="column-title"></span></div></th><th class="secondary-text"><div class="table-header"><span class="column-title">\nName</span></div></th><th class="secondary-text"><div class="table-header"><span class="column-title">Email</span>\n</div></th><th class="secondary-text"><div class="table-header"><span class="column-title">Role</span></div></th></tr>\n</thead><tbody><md-radio-group ng-model="data.group1"><tr ng-repeat="row in vm.communityMemberTable"><td><img \nclass="avatar" ng-src="{{row[0] }}"></td><td><span>{{ row[1]}}</span></td><td><span>{{ row[2]}}</span></td><td><span>\n{{ row[8] }}</span></td><td ng-if="row[9]"><md-button ng-click="vm.openRecoverModal(row[3], row[1], \'randomuser\')" \nclass="md-raised md-primary">Recover</md-button></td></tr></md-radio-group></tbody></table></ms-widget-front>\n</ms-widget>'),e.put("app/main/errors/404/error-404.html",'<div id="error-404" layout="column" layout-align="center center"><div class="content" layout="column" \nlayout-align="center center"><div class="error-code" translate="ERROR404.CODE">404</div><div class="message" \ntranslate="ERROR404.MESSAGE">Sorry but we couldn’t find the page you are looking for</div><div \nclass="search md-whiteframe-1dp" layout="row" layout-align="start center"><md-icon md-font-icon="icon-magnify" \nclass="icon s24"></md-icon><input ng-model="vm.search" type="text" placeholder="Search for anything" translate \ntranslate-attr-placeholder="ERROR404.SEARCH" flex></div><a class="back-link md-accent-color" href="/" \ntranslate="ERROR404.GO_BACK">Go back to dashboard</a></div></div>'),e.put("app/main/errors/500/error-500.html",'<div id="error-500" layout="column" layout-align="center center"><div class="content" layout="column" \nlayout-align="center center"><div class="error-code" translate="ERROR500.CODE">500</div><div class="message" \ntranslate="ERROR500.MESSAGE">Well, you broke the internet!</div><div class="sub-message" \ntranslate="ERROR500.SUBMESSAGE">Just kidding, looks like we have an internal issue, please try again in couple minutes\n</div><a class="report-link md-accent-color" href="/" translate="ERROR500.REPORT">Report this problem</a></div></div>'),e.put("app/main/information/information-content/calendar.html",'<div class="demo-content"><p>\nThe Calandar section is for displaying items in terms of time. The main item it tracks is appointments for residents.\n</p><br><h2>Creating an Appointment</h2><p>\nClick on the day of the desired appointment and a window will pop up. Fill out atleast the following fields:<ul><li>\nReason</li><li>Resident</li><li>Location</li><li>Date</li><li>Time</li><li>Transportation</li></ul>\nThen click the save button at the bottom of the window.</p><br><h2>Updating an Appointment</h2><p>\nClick on the appointment that needs to be updated. The window with all the appointments infomation will pop up. Edit any field and click save.\n</p><br><h2>Canceling an Appointment</h2><p>\nClick on the appointment that needs to be canceled. The window with all the appointments infomation will pop up. Click a checkbox at the bottom to cancel an appointment. This will cause the appointment to appear in red on the calendar.\n</p></div>'),e.put("app/main/information/information-content/dashboard.html",'<div class="demo-content"><p>The Dashboard is a summary and control point of the community.</p><br><h2>Dashboard Tab\n</h2><p>\nThe summary of the community with initially three displays of todays appointments, number of residents in the building, and number of open issues.\n<br>Then a table of statistics based on residents in the community that cover the following:<ul><lh>\nThen a table of statistics based on residents in the community that cover the following:</lh><li>Average Age</li><li>\nAverage Time Stayed</li></ul><br>Lastly a map showing where all the residents in the community have moved from</p><br>\n<h2>Community Members Tab</h2><p>Displays the users that are part of the community. Do all the following from this tab:\n<ul><li>Remove members from the community</li><li>Change access levels</li><li>Recover confidential issues</li></ul>\n</p><br><h2>Pending Members Tab</h2><p>Access users that are requesting to join your community.</p><br><h2>\nCommunity Settings Tab</h2><p>Change settings about the community that would include:<ul><li>Billing information</li>\n</ul></p></div>'),e.put("app/main/information/information-content/issues.html",'<div class="demo-content"><p>Enter infomation that needs to be tracked and resolved.</p><h2>Status</h2><p>\nIssues can be open, closed, or shelved. This will move an issue between the respective boards.</p><br><h2>Labels</h2>\n<p>\nCreate a label when an issue is created to help with organization of issues. Select a title and a color for the label.\n</p></div>'),e.put("app/main/information/information-content/residents.html",'<div class="demo-content"><p>\nHave the ability to enter a large amount of information about a resident so it call all be exported and tracked throughout the rest of Apila.\n</p><h2>Creating a Resident</h2><p>Click on the "Add Resident" button in the top left<ul><li>First Name</li><li>\nLast Name</li><li>Date of Birth</li><li>Sex</li><li>Building Status</li></ul>\nThen click the save button at the bottom of the window.</p><br><h2>Updating a Resident</h2><p>\nSelect the catagory that needs to be updated in the menu of categories to the left. Then click the update button on a resident that needs to be updated.\n</p></div>'),e.put("app/main/information/information-content/security.html",'<div class="demo-content"><p>Security of User and Resident information is critical to Apila.</p><h2>Authentication</h2>\n<p>Apila thinks about user authentication the same way a Bank would think about it.<ul><li>100% HTTPS</li><li>\nPasswords stored with hash and salt encryption</li><li>Destroy user session after inactivity</li><li>\nDestroy user session after close of tab and browser</li><li>Destroy user session on password resets</li></ul></p><br>\n<h2>Data</h2><p></p><br><h2>Security Headers</h2><p></p><br><h2>Sanitization</h2><p></p><br><h2>Operations</h2><p></p>\n<br><h2>People</h2><p></p></div>'),e.put("app/main/information/information-content/todos.html",""),e.put("app/main/ui/forms/forms.html",'<div id="forms" class="page-layout simple fullwidth doc-page" layout="column"><div class="header md-accent-bg" \nlayout="row" layout-align="space-between"><div layout="column" layout-align="space-between"><div class="breadcrumb" \nlayout="row" layout-align="start center"><md-icon md-font-icon="icon-home" class="s16"></md-icon><md-icon \nmd-font-icon="icon-chevron-right" class="s16 separator"></md-icon><span class="parent">USER INTERFACE</span></div><div \nclass="title">Forms</div></div></div><div class="content" layout="column"><div class="md-title">Stepper</div><div \nclass="pb-16"><b>ms-stepper</b>\n is a custom made form wizard directive. It follows Google\'s Material Design specifications and we recommend you to use it. If for some reason, it\'s not suitable for your project, you can always use the Form Wizard that we put together using md-tabs and forms.\n</div><form name="stepper" ms-stepper ng-submit="vm.submitStepper()" ng-model="vm.stepper" novalidate><ms-stepper-step \nng-form="step1" step="1" step-title="\'Personal Information\'"><div \nng-include="\'app/main/ui/forms/stepper-steps/step-1.html\'"></div></ms-stepper-step><ms-stepper-step ng-form="step2" \nstep="2" step-title="\'Address\'" optional-step><div ng-include="\'app/main/ui/forms/stepper-steps/step-2.html\'"></div>\n</ms-stepper-step><ms-stepper-step ng-form="step3" step="3" step-title="\'Payment Method\'"><div \nng-include="\'app/main/ui/forms/stepper-steps/step-3.html\'"></div></ms-stepper-step></form><div class="md-title mt-32">\nForm Wizard</div><div class="pb-16">\nForm wizard is a combination of md-tabs and forms that we have created for you. You can have as many steps as you want.\n</div><div layout="row"><ms-form-wizard flex><md-tabs md-dynamic-height md-selected="msWizard.selectedIndex" \nmd-center-tabs="true"><md-tab><md-tab-label><span class="ms-form-wizard-step-label"><span \nclass="ms-form-wizard-step-number md-accent-bg" ng-if="wizardStep1.$invalid">1</span> <span \nclass="ms-form-wizard-step-number md-accent-bg" ng-if="wizardStep1.$valid"><i class="icon-check s16"></i> </span><span \nclass="ms-form-wizard-step-text">Personal Information</span></span></md-tab-label><md-tab-body><form \nname="wizardStep1" class="md-inline-form" ms-form-wizard-form novalidate><div layout="column" layout-gt-xs="row" flex>\n<md-input-container flex="100" flex-gt-xs="50"><input type="text" name="firstname" ng-model="vm.formWizard.firstname" \nplaceholder="Firstname" required><div ng-messages="wizardStep1.firstname.$error" role="alert"><div \nng-message="required"><span>Firstname field is required.</span></div></div></md-input-container><md-input-container \nflex="100" flex-gt-xs="50"><input type="text" name="lastname" ng-model="vm.formWizard.lastname" placeholder="Lastname" \nrequired><div ng-messages="wizardStep1.lastname.$error" role="alert"><div ng-message="required"><span>\nLastname field is required.</span></div></div></md-input-container></div><md-input-container class="md-block"><input \ntype="email" name="email" ng-model="vm.formWizard.email" placeholder="Email" ng-pattern="/^.+@.+\\..+$/" required><div \nng-messages="wizardStep1.email.$error" role="alert" multiple="multiple"><div ng-message="required"><span>\nEmail field is required</span></div><div ng-message="pattern"><span>Email must be a valid e-mail address</span></div>\n</div></md-input-container><div layout="column" layout-gt-sm="row" flex><md-input-container flex="100" flex-gt-xs="50">\n<input type="password" name="password" ng-model="vm.formWizard.password" placeholder="Password" required><div \nng-messages="wizardStep1.password.$error" role="alert"><div ng-message="required"><span>Password field is required.\n</span></div></div></md-input-container><md-input-container flex="100" flex-gt-xs="50"><input type="password" \nname="passwordConfirm" ng-model="vm.formWizard.passwordConfirm" placeholder="Password (Confirm)" required><div \nng-messages="wizardStep1.passwordConfirm.$error" role="alert"><div ng-message="required"><span>\nPassword (Confirm) field is required.</span></div></div></md-input-container></div></form></md-tab-body></md-tab>\n<md-tab ng-disabled="wizardStep1.$invalid"><md-tab-label><span class="ms-form-wizard-step-label"><span \nclass="ms-form-wizard-step-number md-accent-bg" ng-if="wizardStep2.$invalid">2</span> <span \nclass="ms-form-wizard-step-number md-accent-bg" ng-if="wizardStep2.$valid"><i class="icon-check s16"></i> </span><span \nclass="ms-form-wizard-step-text">Address</span></span></md-tab-label><md-tab-body><form name="wizardStep2" \nms-form-wizard-form novalidate><div layout="column" layout-gt-xs="row"><md-input-container flex><label>City</label>\n<input type="text" name="city" ng-model="vm.formWizard.city"></md-input-container><md-input-container flex><label>State\n</label><md-select ng-model="vm.formWizard.state"><md-option ng-repeat="state in vm.states" value="{{state.abbrev}}">\n{{state.abbrev}}</md-option></md-select></md-input-container><md-input-container flex><label>Postal Code</label><input \nname="postalcode" ng-model="vm.formWizard.postalCode" placeholder="12345" required ng-pattern="/^[0-9]{5}$/" \nmd-maxlength="5"><div ng-messages="wizardStep2.postalcode.$error" role="alert" multiple="multiple"><div \nng-message="required"><span>You must supply a postal code.</span></div><div ng-message="pattern"><span>\nThat doesn\'t look like a valid postal code.</span></div><div ng-message="md-maxlength"><span>\nPostal code can\'t be longer than 5 characters.</span></div></div></md-input-container></div><md-input-container \nclass="md-block"><label>Address</label><textarea ng-model="vm.formWizard.address" columns="1" md-maxlength="150" \nrows="5" required></textarea><div ng-messages="wizardStep2.address.$error" role="alert" multiple="multiple"><div \nng-message="required"><span>Address field is required.</span></div><div ng-message="md-maxlength"><span>\nAddress can\'t be longer than 150 characters.</span></div></div></md-input-container></form></md-tab-body></md-tab>\n<md-tab ng-disabled="wizardStep1.$invalid || wizardStep2.$invalid"><md-tab-label><span \nclass="ms-form-wizard-step-label"><span class="ms-form-wizard-step-number md-accent-bg" ng-if="wizardStep3.$invalid">3\n</span> <span class="ms-form-wizard-step-number md-accent-bg" ng-if="wizardStep3.$valid"><i class="icon-check s16"></i>\n </span><span class="ms-form-wizard-step-text">Payment Method</span></span></md-tab-label><md-tab-body><form \nname="wizardStep3" ms-form-wizard-form novalidate><md-input-container class="md-block"><input type="text" \nname="cardholder" ng-model="vm.formWizard.cardholder" placeholder="Card Holder" required><div \nng-messages="wizardStep3.cardholder.$error" role="alert"><div ng-message="required"><span>\nCard holder field is required.</span></div></div></md-input-container><div layout="column" layout-gt-xs="row">\n<md-input-container flex="100" flex-gt-xs="33"><input type="text" name="cardnumber" \nng-model="vm.formWizard.cardnumber" placeholder="Card Number" required><div \nng-messages="wizardStep3.cardnumber.$error" role="alert"><div ng-message="required"><span>\nCard number field is required.</span></div></div></md-input-container><md-input-container flex="100" flex-gt-xs="33">\n<input type="text" name="CC2" ng-model="vm.formWizard.cc2" placeholder="CC2" md-maxlength="3" required><div \nng-messages="wizardStep3.cc2.$error" role="alert" multipl><div ng-message="required"><span>CC2 field is required.\n</span></div><div ng-message="md-maxlength"><span>CC2 can\'t be longer than 3 characters.</span></div></div>\n</md-input-container><md-input-container flex="100" flex-gt-xs="33"><input type="text" name="expirationDate" \nng-model="vm.formWizard.expirationDate" placeholder="Expiration Date" required><div \nng-messages="wizardStep3.expirationDate.$error" role="alert"><div ng-message="required"><span>\nExpiration date field is required.</span></div></div></md-input-container></div></form></md-tab-body></md-tab>\n</md-tabs><div class="navigation" flex layout="row" layout-align="center center"><md-button \nclass="md-raised md-accent" ng-click="msWizard.previousStep()" ng-disabled="msWizard.isFirstStep()">Previous\n</md-button><div class="steps"><span ng-repeat="form in msWizard.forms" \nng-class="{\'selected md-accent-bg\':msWizard.selectedIndex === $index}"></span></div><md-button \nclass="md-raised md-accent" ng-click="msWizard.nextStep()" ng-hide="msWizard.isLastStep()" \nng-disabled="msWizard.currentStepInvalid()">Next</md-button><md-button class="md-raised md-warn" \nng-click="vm.sendForm(); msWizard.resetForm();" ng-show="msWizard.isLastStep()" \nng-disabled="msWizard.formsIncomplete()">Send</md-button></div></ms-form-wizard></div><div class="md-title mt-32">\nBasic form with validation</div><div class="pb-16">\nWith this form example, Submit button will only be activated if all the required fields are filled and if there is no error on the form.\n</div><div layout="row"><div class="form-wrapper md-whiteframe-1dp" flex="60"><form name="basicForm" \nclass="md-inline-form" novalidate><div class="form-title">Optional form title</div><div layout="column" \nlayout-gt-sm="row"><md-input-container flex><input type="text" name="firstname" ng-model="vm.basicForm.firstname" \nplaceholder="Firstname" required><div ng-messages="basicForm.firstname.$error" role="alert"><div ng-message="required">\n<span>Firstname field is required.</span></div></div></md-input-container><md-input-container flex><input type="text" \nname="lastname" ng-model="vm.basicForm.lastname" placeholder="Lastname" required><div \nng-messages="basicForm.lastname.$error" role="alert"><div ng-message="required"><span>Lastname field is required.\n</span></div></div></md-input-container></div><div layout="column" layout-gt-xs="row"><md-input-container flex><label>\nCity</label><input type="text" name="city" ng-model="vm.basicForm.city"></md-input-container><md-input-container flex>\n<label>State</label><md-select ng-model="vm.basicForm.state"><md-option ng-repeat="state in vm.states" \nvalue="{{state.abbrev}}">{{state.abbrev}}</md-option></md-select></md-input-container><md-input-container flex><label>\nPostal Code</label><input name="postalcode" ng-model="vm.basicForm.postalCode" placeholder="12345" required \nng-pattern="/^[0-9]{5}$/" md-maxlength="5"><div ng-messages="basicForm.postalcode.$error" role="alert" \nmultiple="multiple"><div ng-message="required"><span>You must supply a postal code.</span></div><div \nng-message="pattern"><span>That doesn\'t look like a valid postal code.</span></div><div ng-message="md-maxlength">\n<span>Postal code can\'t be longer than 5 characters.</span></div></div></md-input-container></div><md-input-container \nclass="md-block"><label>Biography</label><textarea ng-model="vm.basicForm.biography" columns="1" md-maxlength="150" \nrows="5"></textarea></md-input-container><md-button type="submit" class="md-raised md-accent" aria-label="Submit" \nng-disabled="basicForm.$invalid || basicForm.$pristine">Submit</md-button></form></div><div \nclass="form-wrapper form-data-wrapper md-whiteframe-1dp" flex="40"><div class="form-title">Form ng-model data</div><div\n class="json-data-wrapper"><pre>{{vm.basicForm | json}}</pre></div></div></div></div></div>'),e.put("app/main/ui/icons/icons.html",'<div id="icons" class="page-layout simple fullwidth doc-page" layout="column"><div class="header md-accent-bg" \nlayout="row" layout-align="space-between"><div layout="column" layout-align="center start"><div class="breadcrumb" \nlayout="row" layout-align="start center"><md-icon md-font-icon="icon-home" class="s16"></md-icon><md-icon \nmd-font-icon="icon-chevron-right" class="s16 separator"></md-icon><span class="parent">USER INTERFACE</span></div><div \nclass="title">Icons</div></div><div layout="row" layout-align="start center"><md-button \nclass="md-raised reference-button" href="https://materialdesignicons.com/" target="_blank"><md-icon \nmd-font-icon="icon-link"></md-icon><span>Reference</span></md-button></div></div><div class="content" layout="column">\n<div id="icons-list" class="card md-whiteframe-1dp" layout="row" layout-wrap><div class="item" \nng-repeat="icon in ::vm.icons track by icon.properties.id" layout-align="start center"><i \nclass="icon icon-{{::icon.properties.name}} s40"></i><div class="name secondary-text text-center">\nicon-{{::icon.properties.name}}</div></div></div></div></div>'),e.put("app/main/ui/material-colors/material-colors.html",'<div id="material-colors" class="page-layout simple tabbed doc-page" layout="column"><div class="header md-accent-bg" \nlayout="row" layout-align="space-between"><div layout="column" layout-align="center start"><div class="breadcrumb" \nlayout="row" layout-align="start center"><md-icon md-font-icon="icon-home" class="s16"></md-icon><md-icon \nmd-font-icon="icon-chevron-right" class="s16 separator"></md-icon><span class="parent">USER INTERFACE</span></div><div \nclass="title">Material Colors</div></div><div layout="row" layout-align="start center"><md-button \nclass="md-raised reference-button" href="https://www.google.com/design/spec/style/color.html#color-color-palette" \ntarget="_blank"><md-icon md-font-icon="icon-link"></md-icon><span>Reference</span></md-button></div></div><div \nclass="content"><md-tabs class="color-tabs" md-dynamic-height md-swipe-content><md-tab \nng-repeat="(paletteName, palette) in vm.palettes" \nmd-on-select="vm.selected = paletteName; vm.selectedPalette = palette"><md-tab-label><span class="text-capitalize">\n{{paletteName}}</span></md-tab-label></md-tab></md-tabs><md-content class="color-tab"><div class="h3 pb-16">\nFuse has classes for every single color from <a \nhref="https://www.google.com/design/spec/style/color.html#color-color-palette" target="_blank">\nMaterial Design Color Palette</a>\n for your convenient. You can use them with pretty much every element except Angular Material directives.</div><div \nclass="color-header colored-bg" ng-class="\'md-\'+vm.selected+\'-bg\'" layout="row" layout-align="start start" layout-wrap \nlayout-padding><div flex="100"><h3 class="text-capitalize">{{vm.selected}}</h3></div><div layout="row" \nlayout-align="space-between center" flex="100"><div>500</div><div>\nrgb({{vm.selectedPalette[\'500\'].value[0]}},{{vm.selectedPalette[\'500\'].value[1]}},{{vm.selectedPalette[\'500\'].value[2]}})\n</div></div></div><div class="color" layout="row" layout-wrap layout-align="center center"><div class="colored-bg" \nng-repeat="(hue, hueValue) in vm.selectedPalette" flex="100" layout="row" layout-sm="column" layout-padding \nng-class="vm.selected+\'-\'+hue+\'-bg\'"><div flex>{{hue}}</div><div class="colored-bg" \nng-class="\'md-\'+vm.selected+\'-\'+hue+\'-bg\'" flex>.{{\'md-\'+vm.selected+\'-\'+hue+\'-bg\'}}</div><div flex>\n.{{vm.selected+\'-\'+hue+\'-bg\'}}</div><div class="fg-box white-bg md-whiteframe-2dp" \nng-class="vm.selected+\'-\'+hue+\'-fg\'">.{{vm.selected+\'-\'+hue+\'-fg\'}}</div></div></div></md-content></div></div>'),e.put("app/main/ui/theme-colors/theme-colors.html",'<div id="theme-colors" class="page-layout simple tabbed doc-page" layout="column"><div class="header md-accent-bg" \nlayout="row" layout-align="space-between"><div layout="column" layout-align="center start"><div class="breadcrumb" \nlayout="row" layout-align="start center"><md-icon md-font-icon="icon-home" class="s16"></md-icon><md-icon \nmd-font-icon="icon-chevron-right" class="s16 separator"></md-icon><span class="parent">USER INTERFACE</span></div><div \nclass="title">Theme Colors</div></div><div layout="row" layout-align="start center"><md-button \nclass="md-raised md-warn reference-button" ng-click="vm.createTheme($event);"><md-icon md-font-icon="icon-palette">\n</md-icon><span>Create Your Own Theme!</span></md-button></div></div><div class="content"><md-tabs class="color-tabs" \nmd-dynamic-height md-swipe-content md-stretch-tabs="always"><md-tab label="Primary Color"><md-content \nclass="color-tab" ng-include="\'app/main/ui/theme-colors/tabs/primary/primary.html\'"></md-content></md-tab><md-tab \nlabel="Accent Color"><md-content class="color-tab" ng-include="\'app/main/ui/theme-colors/tabs/accent/accent.html\'">\n</md-content></md-tab><md-tab label="Warn Color"><md-content class="color-tab" \nng-include="\'app/main/ui/theme-colors/tabs/warn/warn.html\'"></md-content></md-tab><md-tab label="Background Color">\n<md-content class="color-tab" ng-include="\'app/main/ui/theme-colors/tabs/background/background.html\'"></md-content>\n</md-tab></md-tabs></div></div>'),e.put("app/navigation/layouts/horizontal-navigation/navigation.html",'<div layout="row" layout-align="start center"><ms-navigation-horizontal></ms-navigation-horizontal></div>'),e.put("app/navigation/layouts/vertical-navigation/navigation.html",'<md-toolbar class="navigation-header md-whiteframe-1dp" layout="row" layout-align="space-between center"><div \nclass="logo" layout="row" layout-align="start center"><span class="logo-image">A</span> <span class="logo-text">APILA\n</span></div><md-icon class="fold-toggle s18" md-font-icon="icon-backburger" hide show-gt-sm \nng-click="vm.toggleMsNavigationFolded()"></md-icon></md-toolbar><ms-navigation class="scrollable" folded="vm.folded" \nms-scroll="vm.msScrollOptions"></ms-navigation>'),e.put("app/quick-panel/components/activityBox/activityBox.html",'<img ng-src="{{$ctrl.activity.userId.userImage}}" class="md-avatar" alt="{{$ctrl.activity.userId.name}}"><div \nclass="md-list-item-text" layout="row"><span><b>{{$ctrl.activity.userId.name}}</b> <span class="time-ago">\n{{ $ctrl.timeAgo($ctrl.activity.createdOn) }}</span> {{$ctrl.activity.text}}</span></div>'),
  e.put("app/quick-panel/tabs/activity/activity-tab.html",'<md-list class="friends"><md-subheader class="md-no-sticky"><span translate="QUICKPANEL.ACTIVITIES">Activities</span>\n</md-subheader><md-list-item ng-style="vm.getColor(activity.type)" aria-label="activity-box" \nclass="md-3-line activity-item" ng-repeat="activity in vm.activities | orderBy:\'-createdOn\' track by $index">\n<activity-box activity="activity"></activity-box></md-list-item></md-list>'),e.put("app/quick-panel/tabs/chat/chat-tab.html",'<div class="main animate-slide-left" ng-hide="vm.chatActive"><md-list class="recent"><md-subheader \nclass="md-no-sticky"><span translate="QUICKPANEL.COMMUNITY">Community</span></md-subheader><md-list-item \nclass="contact md-3-line" ng-click="vm.toggleChat(contact)"><img ng-src="assets/images/avatars/community_final.png" \nclass="md-avatar" alt="Community"><div class="status online"></div><div class="md-accent-bg unread-message-count">4\n</div><div class="md-list-item-text"><h3>Community chat</h3><p class="last-message">Talk to everyone in the community\n</p></div></md-list-item></md-list><md-divider></md-divider><md-list class="all"><md-subheader class="md-no-sticky">\n<span translate="QUICKPANEL.START_NEW_CHAT">Start New Chat</span></md-subheader><md-list-item class="contact" \nng-repeat="contact in vm.contacts.all" ng-click="vm.toggleChat(contact)"><img ng-src="{{contact.avatar}}" \nclass="md-avatar" alt="{{contact.name}}"><div class="status {{contact.status}}"></div><div class="md-list-item-text">\n<h3>{{contact.name}}</h3></div></md-list-item></md-list><md-divider></md-divider></div><div \nclass="chat animate-slide-right" ng-show="vm.chatActive" layout="column"><md-toolbar class="md-accent"><div \nclass="md-toolbar-tools" layout="row" layout-align="space-between center"><div layout="row" \nlayout-align="start center"><md-button class="md-icon-button" ng-click="vm.toggleChat()" aria-label="Back" translate \ntranslate-attr-aria-label="QUICKPANEL.BACK"><md-icon md-font-icon="icon-keyboard-backspace"></md-icon></md-button><h4>\n<span>Community</span></h4></div><div layout="row" layout-align="end center"><md-button class="md-icon-button" \naria-label="More" translate translate-attr-aria-label="QUICKPANEL.MORE"><md-icon md-font-icon="icon-dots-vertical">\n</md-icon></md-button></div></div></md-toolbar><md-content flex layout-paddings ms-scroll id="chat-dialog"><div \nlayout="row" ng-repeat="msg in vm.chat.community.messages" class="md-padding message-row" ng-class="msg.userSend"><img \nng-if="msg.userSend ===\'contact\'" ng-src="{{vm.chat.contact.avatar}}" class="avatar" alt="{{vm.chat.contact.name}}"> \n<img class="avatar" ng-src="{{ msg.userSend.userImage }}"><div class="bubble" flex><div class="message">\n{{ msg.message }}</div><div class="time secondary-text">{{ vm.timeDiff(msg.timeSent) }}</div></div></div></md-content>\n<form ng-submit="vm.reply()" layout="row" class="reply" layout-align="start center"><textarea \nng-keyup="$event.keyCode == 13 ? vm.reply() : null" flex ng-model="vm.replyMessage" \nplaceholder="Type and hit enter to send message" translate translate-attr-placeholder="QUICKPANEL.REPLY_PLACEHOLDER">\n</textarea><md-button class="md-fab" type="submit" aria-label="Send message" translate \ntranslate-attr-aria-label="QUICKPANEL.SEND_MESSAGE"><md-icon md-font-icon="icon-send"></md-icon></md-button></form>\n</div>'),e.put("app/toolbar/layouts/content-with-toolbar/toolbar.html",'<div layout="row" layout-align="space-between center"><div layout="row" layout-align="start center"><div class="logo" \nlayout="row" layout-align="start center"><span class="logo-image">F</span> <span class="logo-text">FUSE</span></div>\n<md-progress-circular id="toolbar-progress" ng-if="true" class="md-accent" md-mode="indeterminate" md-diameter="64">\n</md-progress-circular></div><div layout="row" layout-align="start center"><div class="toolbar-separator"></div>\n<ms-search-bar></ms-search-bar><div class="toolbar-separator"></div><md-menu-bar id="user-menu"><md-menu \nmd-position-mode="left bottom"><md-button class="user-button" ng-click="$mdOpenMenu()" aria-label="User settings" \ntranslate translate-attr-aria-label="TOOLBAR.USER_SETTINGS"><div layout="row" layout-align="space-between center"><div \nclass="avatar-wrapper"><img md-menu-align-target class="avatar" src="assets/images/avatars/profile.jpg"><md-icon \nmd-font-icon ng-class="vm.userStatus.icon" ng-style="{\'color\': vm.userStatus.color }" class="icon status s16">\n</md-icon></div><span class="username" hide-xs>{{ vm.userame }}</span><md-icon md-font-icon="icon-chevron-down" \nclass="icon s16" hide-xs></md-icon></div></md-button><md-menu-content width="3"><md-menu-item class="md-indent" \nui-sref="app.pages_profile"><md-icon md-font-icon="icon-account" class="icon"></md-icon><md-button>My Profile\n</md-button></md-menu-item><md-menu-item class="md-indent" ui-sref="app.mail"><md-icon md-font-icon="icon-email" \nclass="icon"></md-icon><md-button>Inbox</md-button></md-menu-item><md-menu-item class="md-indent"><md-icon \nmd-font-icon ng-class="vm.userStatus.icon" ng-style="{\'color\': vm.userStatus.color }" class="icon"></md-icon><md-menu \nid="user-status-menu"><md-button ng-click="$mdOpenMenu()" class="status" ng-class="vm.userStatus.class">\n{{vm.userStatus.title}}</md-button><md-menu-content width="2"><md-menu-item class="status md-indent" \nng-class="{\'selected\': status === vm.userStatus}" ng-repeat="status in vm.userStatusOptions"><md-icon \nmd-font-icon="{{status.icon}}" ng-style="{\'color\': status.color }" class="icon"></md-icon><md-button \nng-click="vm.setUserStatus(status)">{{status.title}}</md-button></md-menu-item></md-menu-content></md-menu>\n</md-menu-item><md-menu-divider></md-menu-divider><md-menu-item class="md-indent"><md-icon md-font-icon="icon-logout" \nclass="icon"></md-icon><md-button ng-click="vm.logout()">Logout</md-button></md-menu-item></md-menu-content></md-menu>\n</md-menu-bar><div class="toolbar-separator"></div><md-menu id="language-menu" md-offset="0 72" \nmd-position-mode="target-right target"><md-button class="language-button" ng-click="$mdOpenMenu()" \naria-label="Language" md-menu-origin md-menu-align-target><div layout="row" layout-align="center center"><img \nclass="flag" ng-src="assets/images/flags/{{vm.selectedLanguage.flag}}.png"> <span class="iso">\n{{vm.selectedLanguage.code}}</span></div></md-button><md-menu-content width="3" id="language-menu-content">\n<md-menu-item ng-repeat="(iso, lang) in vm.languages"><md-button ng-click="vm.changeLanguage(lang)" \naria-label="{{lang.title}}" translate translate-attr-aria-label="{{lang.title}}"><span layout="row" \nlayout-align="start center"><img class="flag" ng-src="assets/images/flags/{{lang.flag}}.png"> <span \ntranslate="{{lang.translation}}">{{lang.title}}</span></span></md-button></md-menu-item></md-menu-content></md-menu>\n<div class="toolbar-separator"></div><md-button id="quick-panel-toggle" class="md-icon-button" \nng-click="vm.toggleSidenav(\'quick-panel\')" aria-label="Toggle quick panel" translate \ntranslate-attr-aria-label="TOOLBAR.TOGGLE_QUICK_PANEL"><md-icon md-font-icon="icon-format-list-bulleted" class="icon">\n</md-icon></md-button></div></div>'),e.put("app/toolbar/layouts/horizontal-navigation/toolbar.html",'<div layout="row" layout-align="space-between center"><div layout="row" layout-align="start center"><div \nclass="navigation-toggle" hide-gt-sm><md-button class="md-icon-button" ng-click="vm.toggleHorizontalMobileMenu()" \naria-label="Toggle Mobile Navigation"><md-icon md-font-icon="icon-menu"></md-icon></md-button></div><div class="logo" \nlayout="row" layout-align="start center"><span class="logo-image">F</span> <span class="logo-text">FUSE</span></div>\n<md-progress-circular id="toolbar-progress" ng-if="vm.finishedLoading" class="md-accent" md-mode="indeterminate" \nmd-diameter="64"></md-progress-circular></div><div layout="row" layout-align="start center"><ms-search-bar>\n</ms-search-bar><md-menu-bar id="user-menu"><md-menu md-position-mode="left bottom"><md-button class="user-button" \nng-click="$mdOpenMenu()" aria-label="User settings" translate translate-attr-aria-label="TOOLBAR.USER_SETTINGS"><div \nlayout="row" layout-align="space-between center"><div class="avatar-wrapper"><img md-menu-align-target class="avatar" \nsrc="assets/images/avatars/profile.jpg"><md-icon md-font-icon ng-class="vm.userStatus.icon" \nng-style="{\'color\': vm.userStatus.color }" class="icon status s16"></md-icon></div><span class="username" hide-xs>\n{{ vm.username }}</span><md-icon md-font-icon="icon-chevron-down" class="icon s16" hide-xs></md-icon></div></md-button>\n<md-menu-content width="3"><md-menu-item class="md-indent" ui-sref="app.pages_profile"><md-icon \nmd-font-icon="icon-account" class="icon"></md-icon><md-button>My Profile</md-button></md-menu-item><md-menu-item \nclass="md-indent" ui-sref="app.mail"><md-icon md-font-icon="icon-email" class="icon"></md-icon><md-button>Inbox\n</md-button></md-menu-item><md-menu-item class="md-indent"><md-icon md-font-icon ng-class="vm.userStatus.icon" \nng-style="{\'color\': vm.userStatus.color }" class="icon"></md-icon><md-menu id="user-status-menu"><md-button \nng-click="$mdOpenMenu()" class="status" ng-class="vm.userStatus.class">{{vm.userStatus.title}}</md-button>\n<md-menu-content width="2"><md-menu-item class="status md-indent" ng-class="{\'selected\': status === vm.userStatus}" \nng-repeat="status in vm.userStatusOptions"><md-icon md-font-icon="{{status.icon}}" ng-style="{\'color\': status.color }" \nclass="icon"></md-icon><md-button ng-click="vm.setUserStatus(status)">{{status.title}}</md-button></md-menu-item>\n</md-menu-content></md-menu></md-menu-item><md-menu-divider></md-menu-divider><md-menu-item class="md-indent"><md-icon \nmd-font-icon="icon-logout" class="icon"></md-icon><md-button ng-click="vm.logout()">Logout</md-button></md-menu-item>\n</md-menu-content></md-menu></md-menu-bar><md-menu id="language-menu" md-offset="0 72" \nmd-position-mode="target-right target"><md-button class="language-button" ng-click="$mdOpenMenu()" \naria-label="Language" md-menu-origin md-menu-align-target><div layout="row" layout-align="center center"><img \nclass="flag" ng-src="assets/images/flags/{{vm.selectedLanguage.flag}}.png"> <span class="iso">\n{{vm.selectedLanguage.code}}</span></div></md-button><md-menu-content width="3" id="language-menu-content">\n<md-menu-item ng-repeat="(iso, lang) in vm.languages"><md-button ng-click="vm.changeLanguage(lang)" \naria-label="{{lang.title}}" translate translate-attr-aria-label="{{lang.title}}"><span layout="row" \nlayout-align="start center"><img class="flag" ng-src="assets/images/flags/{{lang.flag}}.png"> <span \ntranslate="{{lang.translation}}">{{lang.title}}</span></span></md-button></md-menu-item></md-menu-content></md-menu>\n<md-button id="quick-panel-toggle" class="md-icon-button" ng-click="vm.toggleSidenav(\'quick-panel\')" \naria-label="Toggle quick panel" translate translate-attr-aria-label="TOOLBAR.TOGGLE_QUICK_PANEL"><md-icon \nmd-font-icon="icon-format-list-bulleted" class="icon"></md-icon></md-button></div></div>'),e.put("app/toolbar/layouts/vertical-navigation/toolbar.html",'<div layout="row" layout-align="start center"><div layout="row" layout-align="start center" flex><md-button \nid="navigation-toggle" class="md-icon-button" ng-click="vm.toggleSidenav(\'navigation\')" hide-gt-sm \naria-label="Toggle navigation" translate translate-attr-aria-label="TOOLBAR.TOGGLE_NAVIGATION"><md-icon \nmd-font-icon="icon-menu" class="icon"></md-icon></md-button><ms-shortcuts></ms-shortcuts><div \nclass="toolbar-separator"></div><md-progress-circular id="toolbar-progress" ng-if="!vm.finishedLoading" \nclass="md-accent" md-mode="indeterminate"></md-progress-circular></div><div layout="row" layout-align="start center">\n<md-menu-bar id="user-menu"><md-menu md-position-mode="left bottom"><md-button class="user-button" \nng-click="$mdOpenMenu()" aria-label="User settings" translate translate-attr-aria-label="TOOLBAR.USER_SETTINGS"><div \nlayout="row" layout-align="space-between center"><div class="avatar-wrapper"><img md-menu-align-target class="avatar" \nng-src="{{ vm.userImage }}"><md-icon md-font-icon ng-class="vm.userStatus.icon" \nng-style="{\'color\': vm.userStatus.color }" class="icon status s16"></md-icon></div><span class="username" hide-xs>\n{{vm.username}}</span><md-icon md-font-icon="icon-chevron-down" class="icon s16" hide-xs></md-icon></div></md-button>\n<md-menu-content width="3"><md-menu-item class="md-indent"><md-icon md-font-icon="icon-account" class="icon"></md-icon>\n<md-button ng-click="vm.openProfile()">My Profile</md-button></md-menu-item><md-menu-item class="md-indent"><md-icon \nmd-font-icon ng-class="vm.userStatus.icon" ng-style="{\'color\': vm.userStatus.color }" class="icon"></md-icon><md-menu \nid="user-status-menu"><md-button ng-click="$mdOpenMenu()" class="status" ng-class="vm.userStatus.class">\n{{vm.userStatus.title}}</md-button><md-menu-content width="2"><md-menu-item class="status md-indent" \nng-class="{\'selected\': status === vm.userStatus}" ng-repeat="status in vm.userStatusOptions"><md-icon \nmd-font-icon="{{status.icon}}" ng-style="{\'color\': status.color }" class="icon"></md-icon><md-button \nng-click="vm.setUserStatus(status)">{{status.title}}</md-button></md-menu-item></md-menu-content></md-menu>\n</md-menu-item><md-menu-divider></md-menu-divider><md-menu-item class="md-indent"><md-icon md-font-icon="icon-logout" \nclass="icon"></md-icon><md-button id="logout" ng-click="vm.logout()">Logout</md-button></md-menu-item>\n</md-menu-content></md-menu></md-menu-bar><div class="toolbar-separator"></div><ms-search-bar \non-search="vm.search(query)" on-result-click="vm.searchResultClick(item)" on-collapse="vm.onCollapse()" debounce="300">\n</ms-search-bar><div class="toolbar-separator"></div><md-menu id="language-menu" md-offset="0 72" \nmd-position-mode="target-right target"><md-button class="language-button" ng-click="$mdOpenMenu()" \naria-label="Language" md-menu-origin md-menu-align-target><div layout="row" layout-align="center center"><img \nclass="flag" ng-src="assets/images/flags/{{vm.selectedLanguage.flag}}.png"> <span class="iso">\n{{vm.selectedLanguage.code}}</span></div></md-button><md-menu-content width="3" id="language-menu-content">\n<md-menu-item ng-repeat="(iso, lang) in vm.languages"><md-button ng-click="vm.changeLanguage(lang)" \naria-label="{{lang.title}}" translate translate-attr-aria-label="{{lang.title}}"><span layout="row" \nlayout-align="start center"><img class="flag" ng-src="assets/images/flags/{{lang.flag}}.png"> <span \ntranslate="{{lang.translation}}">{{lang.title}}</span></span></md-button></md-menu-item></md-menu-content></md-menu>\n<div class="toolbar-separator"></div><md-button id="quick-panel-toggle" class="md-icon-button" \nng-click="vm.toggleSidenav(\'quick-panel\')" aria-label="Toggle quick panel" translate \ntranslate-attr-aria-label="TOOLBAR.TOGGLE_QUICK_PANEL"><md-icon md-font-icon="icon-format-list-bulleted" class="icon">\n</md-icon></md-button></div></div>'),e.put("app/main/ui/typography/typography.html",'<div id="typography" class="page-layout simple fullwidth doc-page" layout="column"><div class="header md-accent-bg" \nlayout="column" layout-align="center start"><div class="breadcrumb" layout="row" layout-align="start center"><md-icon \nmd-font-icon="icon-home" class="s16"></md-icon><md-icon md-font-icon="icon-chevron-right" class="s16 separator">\n</md-icon><span class="parent">USER INTERFACE</span></div><div class="title">Typography</div></div><div \nclass="content"><div class="md-title">Material design headings</div><div class="card md-whiteframe-4dp" \nlayout="column"><div layout="column" layout-gt-md="row"><div class="preview" layout="column" layout-align="center" \nflex><div class="md-caption secondary-text">112px</div><span class="md-display-4">Display 4</span></div><hljs \nlang="html" class="source-code" layout="column" layout-align="center" flex><span class="md-display-4">Display 4</span>\n</hljs></div><div layout="column" layout-gt-md="row"><div class="preview" layout="column" layout-align="center" flex>\n<div class="md-caption secondary-text">56px</div><span class="md-display-3">Display 3</span></div><hljs lang="html" \nclass="source-code" layout="column" layout-align="center" flex><span class="md-display-3">Display 3</span></hljs></div>\n<div layout="column" layout-gt-md="row"><div class="preview" layout="column" layout-align="center" flex><div \nclass="md-caption secondary-text">45px</div><span class="md-display-2">Display 2</span></div><hljs lang="html" \nclass="source-code" layout="column" layout-align="center" flex><span class="md-display-2">Display 2</span></hljs></div>\n<div layout="column" layout-gt-md="row"><div class="preview" layout="column" layout-align="center" flex><div \nclass="md-caption secondary-text">34px</div><span class="md-display-1">Display 1</span></div><hljs lang="html" \nclass="source-code" layout="column" layout-align="center" flex><span class="md-display-1">Display 1</span></hljs></div>\n<div layout="column" layout-gt-md="row"><div class="preview" layout="column" layout-align="center" flex><div \nclass="md-caption secondary-text">24px</div><span class="md-headline">Headline</span></div><hljs lang="html" \nclass="source-code" layout="column" layout-align="center" flex><span class="md-headline">Headline</span></hljs></div>\n<div layout="column" layout-gt-md="row"><div class="preview" layout="column" layout-align="center" flex><div \nclass="md-caption secondary-text">20px</div><span class="md-title">Title</span></div><hljs lang="html" \nclass="source-code" layout="column" layout-align="center" flex><span class="md-title">Title</span></hljs></div><div \nlayout="column" layout-gt-md="row"><div class="preview" layout="column" layout-align="center" flex><div \nclass="md-caption secondary-text">16px</div><span class="md-subhead">Subhead</span></div><hljs lang="html" \nclass="source-code" layout="column" layout-align="center" flex><span class="md-subhead">Subhead</span></hljs></div>\n</div><div class="md-title">Headings</div><div class="card md-whiteframe-4dp" layout="column"><div layout="column" \nlayout-gt-md="row"><div class="preview" layout="column" layout-align="center" flex><div \nclass="md-caption secondary-text">24px</div><h1>Heading 1</h1></div><hljs lang="html" class="source-code" \nlayout="column" layout-align="center" flex><h1>Heading 1</h1><div class="h1">Heading 1</div></hljs></div><div \nlayout="column" layout-gt-md="row"><div class="preview" layout="column" layout-align="center" flex><div \nclass="md-caption secondary-text">20px</div><h2>Heading 2</h2></div><hljs lang="html" class="source-code" \nlayout="column" layout-align="center" flex><h2>Heading 2</h2><div class="h2">Heading 2</div></hljs></div><div \nlayout="column" layout-gt-md="row"><div class="preview" layout="column" layout-align="center" flex><div \nclass="md-caption secondary-text">16px</div><h3>Heading 3</h3></div><hljs lang="html" class="source-code" \nlayout="column" layout-align="center" flex><h3>Heading 3</h3><div class="h3">Heading 3</div></hljs></div><div \nlayout="column" layout-gt-md="row"><div class="preview" layout="column" layout-align="center" flex><div \nclass="md-caption secondary-text">14px</div><h4>Heading 4</h4></div><hljs lang="html" class="source-code" \nlayout="column" layout-align="center" flex><h4>Heading 4</h4><div class="h4">Heading 4</div></hljs></div><div \nlayout="column" layout-gt-md="row"><div class="preview" layout="column" layout-align="center" flex><div \nclass="md-caption secondary-text">13px</div><h5>Heading 5</h5></div><hljs lang="html" class="source-code" \nlayout="column" layout-align="center" flex><h5>Heading 5</h5><div class="h5">Heading 5</div></hljs></div><div \nlayout="column" layout-gt-md="row"><div class="preview" layout="column" layout-align="center" flex><div \nclass="md-caption secondary-text">12px</div><h6>Heading 6</h6></div><hljs lang="html" class="source-code" \nlayout="column" layout-align="center" flex><h6>Heading 6</h6><div class="h6">Heading 6</div></hljs></div></div><div \nclass="md-title">Inline text elements</div><div class="card md-whiteframe-4dp" layout="column"><div layout="column" \nlayout-gt-md="row"><div class="preview" layout="column" layout-align="center" flex><span>This is a <mark>marked</mark>\n text.</span></div><hljs lang="html" class="source-code" layout="column" layout-align="center" flex ms-scroll>\nThis is a <mark>marked</mark> text.</hljs></div><div layout="column" layout-gt-md="row"><div class="preview" \nlayout="column" layout-align="center" flex><span><del>This is a deleted text.</del></span></div><hljs lang="html" \nclass="source-code" layout="column" layout-align="center" flex ms-scroll><del>This is a deleted text.</del></hljs>\n</div><div layout="column" layout-gt-md="row"><div class="preview" layout="column" layout-align="center" flex><span><s>\nThis is a strike-through text.</s></span></div><hljs lang="html" class="source-code" layout="column" \nlayout-align="center" flex ms-scroll><s>This is a strike-through text.</s></hljs></div><div layout="column" \nlayout-gt-md="row"><div class="preview" layout="column" layout-align="center" flex><span><u>This is an underlined text.\n</u></span></div><hljs lang="html" class="source-code" layout="column" layout-align="center" flex ms-scroll><u>\nThis is an underlined text.</u></hljs></div><div layout="column" layout-gt-md="row"><div class="preview" \nlayout="column" layout-align="center" flex><span><small>This is a small text.</small></span></div><hljs lang="html" \nclass="source-code" layout="column" layout-align="center" flex ms-scroll><small>This is a small text.</small></hljs>\n</div><div layout="column" layout-gt-md="row"><div class="preview" layout="column" layout-align="center" flex><span>\n<strong>This is a strong text.</strong></span></div><hljs lang="html" class="source-code" layout="column" \nlayout-align="center" flex ms-scrollx><strong>This is a strong text.</strong></hljs></div><div layout="column" \nlayout-gt-md="row"><div class="preview" layout="column" layout-align="center" flex><span><em>This is an italic text.\n</em></span></div><hljs lang="html" class="source-code" layout="column" layout-align="center" flex ms-scroll><em>\nThis is an italic text.</em></hljs></div><div layout="column" layout-gt-md="row"><div class="preview" layout="column" \nlayout-align="center" flex><span>This is a <span class="text-super">super</span> text.</span></div><hljs lang="html" \nclass="source-code" layout="column" layout-align="center" flex ms-scroll>This is a <span class="text-super">super\n</span> text.</hljs></div><div layout="column" layout-gt-md="row"><div class="preview" layout="column" \nlayout-align="center" flex><span>This is a <span class="text-sub">sub</span> text.</span></div><hljs lang="html" \nclass="source-code" layout="column" layout-align="center" flex ms-scroll>This is a <span class="text-sub">sub</span>\n text.</hljs></div><div layout="column" layout-gt-md="row"><div class="preview" layout="column" layout-align="center" \nflex><span>This is a <span class="text-capitalize">capitalized</span> text.</span></div><hljs lang="html" \nclass="source-code" layout="column" layout-align="center" flex ms-scroll>This is a <span class="text-capitalized">\ncapitalized</span> text.</hljs></div><div layout="column" layout-gt-md="row"><div class="preview" layout="column" \nlayout-align="center" flex><span>This is an <span class="text-uppercase">uppercase</span> text.</span></div><hljs \nlang="html" class="source-code" layout="column" layout-align="center" flex ms-scroll>This is an <span \nclass="text-uppercase">uppercase</span> text.</hljs></div><div layout="column" layout-gt-md="row"><div class="preview" \nlayout="column" layout-align="center" flex><span>This is a <span class="text-lowercase">LOWERCASE</span> text.</span>\n</div><hljs lang="html" class="source-code" layout="column" layout-align="center" flex ms-scroll>This is a <span \nclass="text-lowercase">LOWERCASE</span> text.</hljs></div></div><div class="md-title">Abbrevations</div><div \nclass="card md-whiteframe-4dp" layout="column"><div layout="column" layout-gt-md="row"><div class="preview" \nlayout="column" layout-align="center" flex><span><abbr title="Angular JS">Angular JS</abbr></span></div><hljs \nlang="html" class="source-code" layout="column" layout-align="center" flex ms-scroll><abbr title="Angular JS">\nAngular JS</abbr></hljs></div><div layout="column" layout-gt-md="row"><div class="preview" layout="column" \nlayout-align="center" flex><span><abbr title="Cascaded Style Sheet">CSS</abbr></span></div><hljs lang="html" \nclass="source-code" layout="column" layout-align="center" flex ms-scroll><abbr title="Cascaded Style Sheet">CSS</abbr>\n</hljs></div></div><div class="md-title">Blockquotes</div><div class="card md-whiteframe-4dp" layout="column"><div \nlayout="column" layout-gt-md="row"><div class="preview" layout="column" layout-align="center" flex><blockquote><p>\nThe bedding was hardly able to cover it and seemed ready to slide off any moment.</p></blockquote></div><hljs \nlang="html" class="source-code" layout="column" layout-align="center" flex ms-scroll><blockquote><p>\nThe bedding was hardly able to cover it and seemed ready to slide off any moment.</p></blockquote></hljs></div><div \nlayout="column" layout-gt-md="row"><div class="preview" layout="column" layout-align="center" flex><blockquote><p>\nThe bedding was hardly able to cover it and seemed ready to slide off any moment.</p><footer>John Doe</footer>\n</blockquote></div><hljs lang="html" class="source-code" layout="column" layout-align="center" flex ms-scroll>\n<blockquote><p>The bedding was hardly able to cover it and seemed ready to slide off any moment.</p><footer>John Doe\n</footer></blockquote></hljs></div><div layout="column" layout-gt-md="row"><div class="preview" layout="column" \nlayout-align="center" flex><blockquote class="reverse"><p>\nThe bedding was hardly able to cover it and seemed ready to slide off any moment.</p><footer>John Doe</footer>\n</blockquote></div><hljs lang="html" class="source-code" layout="column" layout-align="center" flex ms-scroll>\n<blockquote class="reverse"><p>The bedding was hardly able to cover it and seemed ready to slide off any moment.</p>\n<footer>John Doe</footer></blockquote></hljs></div></div><div class="md-title">Lists</div><div \nclass="card md-whiteframe-4dp" layout="column"><div layout="column" layout-gt-md="row"><div class="preview" \nlayout="column" layout-align="center" flex><ul><li>Unordered list item</li><li>Unordered list item</li><li>\nUnordered list item</li><li>Unordered list item</li></ul></div><hljs lang="html" class="source-code" layout="column" \nlayout-align="center" flex ms-scroll><ul><li>Unordered list item</li><li>Unordered list item</li><li>\nUnordered list item</li><li>Unordered list item</li></ul></hljs></div><div layout="column" layout-gt-md="row"><div \nclass="preview" layout="column" layout-align="center" flex><ol><li>Ordered list item</li><li>Ordered list item</li><li>\nOrdered list item</li><li>Ordered list item</li></ol></div><hljs lang="html" class="source-code" layout="column" \nlayout-align="center" flex ms-scroll><ol><li>Ordered list item</li><li>Ordered list item</li><li>Ordered list item</li>\n<li>Ordered list item</li></ol></hljs></div></div><div class="md-title">Definition lists</div><div \nclass="card md-whiteframe-4dp" layout="column"><div layout="column" layout-gt-md="row"><div class="preview" \nlayout="column" layout-align="center" flex><dl><dt>Definition term</dt><dd>This is the definition description</dd><dt>\nAnother definition term</dt><dd>This is also another definition description</dd></dl></div><hljs lang="html" \nclass="source-code" layout="column" layout-align="center" flex ms-scroll><dl><dt>Definition term</dt><dd>\nThis is the definition description</dd><dt>Another definition term</dt><dd>This is also another definition description\n</dd></dl></hljs></div></div><div class="md-title">Other helpers</div><div class="card md-whiteframe-4dp" \nlayout="column"><div layout="column" layout-gt-md="row"><div class="preview" layout="column" layout-align="center" \nflex><div class="text-left">Left aligned text</div></div><hljs lang="html" class="source-code" layout="column" \nlayout-align="center" flex ms-scroll><div class="text-left">Left aligned text</div></hljs></div><div layout="column" \nlayout-gt-md="row"><div class="preview" layout="column" layout-align="center" flex><div class="text-center">\nCenter aligned text</div></div><hljs lang="html" class="source-code" layout="column" layout-align="center" flex \nms-scroll><div class="text-center">Center aligned text</div></hljs></div><div layout="column" layout-gt-md="row"><div \nclass="preview" layout="column" layout-align="center" flex><div class="text-right">Right aligned text</div></div><hljs \nlang="html" class="source-code" layout="column" layout-align="center" flex ms-scroll><div class="text-right">\nRight aligned text</div></hljs></div><div layout="column" layout-gt-md="row"><div class="preview" layout="column" \nlayout-align="center" flex><p><span class="text-boxed">Boxed text</span></p></div><hljs lang="html" \nclass="source-code" layout="column" layout-align="center" flex ms-scroll><p><span class="text-boxed">Boxed text</span>\n</p></hljs></div><div layout="column" layout-gt-md="row"><div class="preview" layout="column" layout-align="center" \nflex><p><span class="text-strike">Strike-through text</span></p></div><hljs lang="html" class="source-code" \nlayout="column" layout-align="center" flex ms-scroll><p><span class="text-strike">Strike-through text</span></p></hljs>\n</div><div layout="column" layout-gt-md="row"><div class="preview" layout="column" layout-align="center" flex><div \nclass="text-italic">Italic text</div><div class="text-semibold">Semi-bold text</div><div class="text-bold">Bold text\n</div></div><hljs lang="html" class="source-code" layout="column" layout-align="center" flex ms-scroll><div \nclass="text-italic">Italic text</div><div class="text-semibold">Semi-bold text</div><div class="text-bold">Bold text\n</div></hljs></div><div layout="column" layout-gt-md="row"><div class="preview" layout="column" layout-align="center" \nflex><span class="text-truncate">\nThis is a truncated text. It will be truncated if it\'s too long. Vivamus convallis dui porta massa fermentum dictum. Aenean mollis molestie felis, ut interdum ex vehicula a.\n</span></div><hljs lang="html" class="source-code" layout="column" layout-align="center" flex ms-scroll><span \nclass="text-truncate">\nThis is a truncated text. It will be truncated if it\'s too long. Vivamus convallis dui porta massa fermentum dictum. Aenean mollis molestie felis, ut interdum ex vehicula a.\n</span></hljs></div><div layout="column" layout-gt-md="row"><div class="preview" layout="column" layout-align="center" \nflex><div class="md-caption mb-16">Font weight helpers from 100 to 900</div><span class="font-weight-100">\nfont-weight: 100</span> <span>...</span> <span class="font-weight-900">font-weight: 900</span></div><hljs lang="html" \nclass="source-code" layout="column" layout-align="center" flex ms-scroll><span class="font-weight-100">font-weight: 100\n</span> ... <span class="font-weight-900">font-weight: 900</span></hljs></div></div></div></div>'),e.put("app/core/directives/ms-navigation/templates/horizontal.html",'<div class="navigation-toggle" hide-gt-sm><md-button class="md-icon-button" ng-click="vm.toggleHorizontalMobileMenu()" \naria-label="Toggle Mobile Navigation"><md-icon md-font-icon="icon-menu"></md-icon></md-button></div><ul \nclass="horizontal"><li ng-repeat="node in vm.navigation" ms-navigation-horizontal-node="node" \nng-class="{\'has-children\': vm.hasChildren}" ng-include="\'navigation-horizontal-nested.html\'"></li></ul><script \ntype="text/ng-template" id="navigation-horizontal-nested.html">\n<div ms-navigation-horizontal-item layout="row" ng-if="!vm.isHidden()">\n\n        <div class="ms-navigation-horizontal-button" ng-if="!node.uisref && node.title"\n             ng-class="{\'active md-accent-bg md-accent-fg\': vm.isActive}">\n            <i class="icon s18 {{node.icon}}" ng-if="node.icon"></i>\n            <span class="title" translate="{{node.translate}}" flex>{{node.title}}</span>\n            <span class="badge white-fg" style="background: {{node.badge.color}}" ng-if="node.badge">{{node.badge.content}}</span>\n            <i class="icon-chevron-right s18 arrow" ng-if="vm.hasChildren"></i>\n        </div>\n\n        <a class="ms-navigation-horizontal-button" ui-sref="{{node.uisref}}" ui-sref-active="active md-accent-bg"\n           ng-class="{\'active md-accent-bg md-accent-fg\': vm.isActive}"\n           ng-if="node.uisref && node.title">\n            <i class="icon s18 {{node.icon}}" ng-if="node.icon"></i>\n            <span class="title" translate="{{node.translate}}" flex>{{node.title}}</span>\n            <span class="badge white-fg" style="background: {{node.badge.color}}" ng-if="node.badge">{{node.badge.content}}</span>\n            <i class="icon-chevron-right s18 arrow" ng-if="vm.hasChildren"></i>\n        </a>\n\n    </div>\n\n    <ul ng-if="vm.hasChildren && !vm.isHidden()">\n        <li ng-repeat="node in node.children" ms-navigation-horizontal-node="node"\n            ng-class="{\'has-children\': vm.hasChildren}"\n            ng-include="\'navigation-horizontal-nested.html\'"></li>\n    </ul>\n</script>'),
  e.put("app/core/directives/ms-navigation/templates/vertical.html",'<ul><li ng-repeat="node in vm.navigation" ms-navigation-node="node" \nng-class="{\'collapsed\': vm.collapsed, \'has-children\': vm.hasChildren}" ng-include="\'navigation-nested.html\'"></li></ul>\n<script type="text/ng-template" id="navigation-nested.html">\n<div ms-navigation-item layout="row" ng-if="!vm.isHidden()">\n\n        <div class="ms-navigation-button" ng-if="!node.uisref && node.title">\n            <i class="icon s16 {{node.icon}}" ng-if="node.icon"></i>\n            <span class="title" translate="{{node.translate}}" flex>{{node.title}}</span>\n            <span class="badge white-fg" ng-style="{\'background\': node.badge.color}" ng-if="node.badge">{{node.badge.content}}</span>\n            <i class="icon-chevron-right s16 arrow" ng-if="vm.collapsable && vm.hasChildren"></i>\n        </div>\n\n        <a class="ms-navigation-button" ui-sref="{{node.uisref}}" ui-sref-active="active md-accent-bg"\n           ng-if="node.uisref && node.title">\n            <i class="icon s16 {{node.icon}}" ng-if="node.icon"></i>\n            <span class="title" translate="{{node.translate}}" flex>{{node.title}}</span>\n            <span class="badge white-fg" ng-style="{\'background\': node.badge.color}" ng-if="node.badge">{{node.badge.content}}</span>\n            <i class="icon-chevron-right s16 arrow" ng-if="vm.collapsable && vm.hasChildren"></i>\n        </a>\n\n    </div>\n\n    <ul ng-if="vm.hasChildren && !vm.isHidden()">\n        <li ng-repeat="node in node.children" ms-navigation-node="node"\n            ng-class="{\'collapsed\': vm.collapsed, \'has-children\': vm.hasChildren}"\n            ng-include="\'navigation-nested.html\'"></li>\n    </ul>\n</script>'),e.put("app/main/calendar/dialogs/appointment-map/appointment-map.html",'<md-dialog class="event-form-dialog" aria-label="New Message"><form name="eventForm" class="md-inline-form" novalidate>\n<md-toolbar class="md-accent md-hue-2"><div class="md-toolbar-tools" layout="row" layout-align="space-between center">\n<span class="title">Appointments Map</span><md-button class="md-icon-button" ng-click="vm.closeDialog()" \naria-label="Close dialog" translate translate-attr-aria-label="CALENDAR.CLOSE_DIALOG"><md-icon \nmd-font-icon="icon-close"></md-icon></md-button></div></md-toolbar><md-dialog-content><md-tabs \nstyle="min-height: 400px"><md-tab label="Today" md-on-select="vm.switchTabs(\'Today\')"><ui-gmap-google-map \ncenter="vm.locationsMap.center" zoom="vm.locationsMap.zoom"><ui-gmap-marker ng-repeat="m in vm.todayLocations" \ncoords="m.coords" idkey="m.id"></ui-gmap-marker></ui-gmap-google-map></md-tab><md-tab label="Tomorrow" \nmd-on-select="vm.switchTabs(\'Tomorrow\')"><ui-gmap-google-map center="vm.locationsMap.center" \nzoom="vm.locationsMap.zoom"><ui-gmap-marker ng-repeat="m in vm.tomorrowLocations" coords="m.coords" idkey="m.id">\n</ui-gmap-marker></ui-gmap-google-map></md-tab><md-tab label="Week" md-on-select="vm.switchTabs(\'This-Week\')">\n<ui-gmap-google-map center="vm.locationsMap.center" zoom="vm.locationsMap.zoom"><ui-gmap-marker \nng-repeat="m in vm.currentWeekLocations" coords="m.coords" idkey="m.id"></ui-gmap-marker></ui-gmap-google-map></md-tab>\n</md-tabs></md-dialog-content><md-dialog-actions layout="row" layout-align="space-between center"><md-button \nng-disabled="vm.isDisabled" ng-click="vm.saveEvent()" class="save-button md-accent md-raised" aria-label="SAVE" \nng-disabled="eventForm.$invalid || eventForm.$pristine" translate="CALENDAR.SAVE" \ntranslate-attr-aria-label="CALENDAR.SAVE">SAVE</md-button></md-dialog-actions></form></md-dialog>'),e.put("app/main/calendar/dialogs/event-form/event-form-dialog.html",'<md-dialog class="event-form-dialog" aria-label="New Message"><form name="eventForm" class="md-inline-form" novalidate>\n<md-toolbar class="md-accent md-hue-2"><div class="md-toolbar-tools" layout="row" layout-align="space-between center">\n<md-button ng-disabled="vm.dialogData.type === \'add\'" class="md-icon-button" ng-click="vm.exportAppointment()" \naria-label="Options" translate translate-attr-aria-label="SB.OPTIONS"><md-icon md-menu-origin \nmd-font-icon="icon-export"></md-icon></md-button><md-button class="md-icon-button" ng-click="vm.closeDialog()" \naria-label="Close dialog" translate translate-attr-aria-label="CALENDAR.CLOSE_DIALOG"><md-icon \nmd-font-icon="icon-close"></md-icon></md-button></div></md-toolbar><md-dialog-content ms-scroll><md-input-container \nclass="md-block"><label translate="CALENDAR.REASON">Reason</label><input name="reason" \nng-model="vm.calendarEvent.reason" ng-blur="vm.updateIssue()" required=""><div ng-messages=""><div \nng-if="vm.error.reason">Reason is required</div></div></md-input-container><div class="md-block"><md-autocomplete \nmd-selected-item="vm.selectedItem" required="" md-search-text="searchText" md-floating-label="Resident" \nmd-items="item in vm.getMatches(searchText)" md-item-text="item.display" md-selected-item-change="vm.updateIssue()" \nmd-min-length="0"><md-item-template><span md-highlight-text="searchText">{{item.display}}</span></md-item-template>\n<md-not-found>No Resident found.</md-not-found><div ng-messages=""><div ng-if="vm.error.selectedItem">\nResident is required</div></div></md-autocomplete></div><div ng-if="vm.error.selectedItem" \nstyle="color:red; padding-top:5px">Resident is required</div><md-input-container class="md-block"><label \ntranslate="CALENDAR.LOCATION">Location</label><input class="form-control" g-places-autocomplete \noptions="vm.autocompleteOptions" ng-model="vm.calendarEvent.locationName" required=""><div ng-messages=""><div \nng-if="vm.error.locationName">Location is required</div></div></md-input-container><md-card><md-input-container \nclass="md-block" ng-if="vm.calendarEvent.locationName.name"><label translate="CALENDAR.LOCATION_NAME">Location Name\n</label><input disabled="disabled" class="form-control" ng-model="vm.calendarEvent.locationName.name">\n</md-input-container><md-input-container class="md-block" ng-if="vm.calendarEvent.locationName.formatted_phone_number">\n<label translate="CALENDAR.PHONE_NUMBER">Phone number</label><input disabled="disabled" class="form-control" \nng-model="vm.calendarEvent.locationName.formatted_phone_number"></md-input-container><md-input-container \nclass="md-block" ng-if="vm.calendarEvent.locationName.opening_hours.weekday_text"><label \ntranslate="CALENDAR.WORKING_HOURS">Working hours</label><input disabled="disabled" class="form-control" \nng-model="vm.calendarEvent.locationName.opening_hours.weekday_text[vm.currDay-1]"></md-input-container></md-card>\n<md-input-container class="md-block"><label translate="CALENDAR.DOCTOR">Doctor</label><input name="doctor" \nng-model="vm.calendarEvent.locationDoctor" ng-blur="vm.updateIssue()"></md-input-container><div layout="row" \nclass="date-row"><div><md-datepicker ng-model="vm.date" md-placeholder="Appointment Date" ng-blur="vm.updateIssue()" \nrequired=""></md-datepicker><div ng-messages=""><div ng-if="vm.error.date" style="color: red">Date is required</div>\n</div></div><div><mdp-time-picker ng-model="vm.currentTime" ng-change="vm.updateIssue()" required=""><div \nng-messages=""><div ng-if="vm.error.currentTime">Time is required</div></div></mdp-time-picker></div></div><div \nlayout="row" layout-align="space-between center"><md-input-container class="md-block flex-66"><label \ntranslate="CALENDAR.TRANSPORTATION">Transporation</label><input name="transportation" \nplaceholder="We are transporting" ng-blur="vm.updateIssue()" ng-model="vm.transportation"></md-input-container></div>\n<div ng-if="vm.inUpdate()"><md-input-container class="md-block textarea-container"><label>Comment</label><textarea \nng-model="vm.formData.commentText"></textarea><md-button ng-click="vm.submitComment()" aria-label="Add Comment">\n<md-icon md-font-icon="icon-comment"></md-icon><md-tooltip><span>Submit</span></md-tooltip></md-button>\n</md-input-container><div class="comment" layout="row" \nng-repeat="comment in vm.calendarEvent.appointmentComment.slice().reverse()"><img \nng-if="comment.author.userImage !== undefined" class="comment-member-avatar" ng-src="{{comment.author.userImage}}"> \n<img ng-if="comment.author.userImage === undefined" class="comment-member-avatar" \nng-src="https://s3-us-west-2.amazonaws.com/apilatest2/logo.png"><div layout="column"><div class="comment-member-name">\n{{comment.author.name}} <span class="comment-time secondary-text">{{vm.Utils.timeDiff(comment.createdOn)}}</span> <span\n class="comment-time secondary-text comment-date">{{ comment.createdOn | date:\'h:mm a MMM dd, yyyy\'}}</span></div><div \nclass="comment-bubble" onaftersave="vm.updateComment(comment)" e-rows="7" e-cols="50">{{comment.commentText}}</div>\n</div></div></div></md-dialog-content><md-dialog-actions layout="row" layout-align="space-between center"><md-button \nng-disabled="vm.isDisabled" ng-click="vm.saveEvent()" class="save-button md-accent md-raised" aria-label="SAVE" \nng-disabled="eventForm.$invalid || eventForm.$pristine" translate="CALENDAR.SAVE" \ntranslate-attr-aria-label="CALENDAR.SAVE">SAVE</md-button><md-checkbox ng-model="vm.isCancel" ng-hide="vm.showCancel" \nng-change="vm.updateIssue()" aria-label="Cancel Appointment">Cancel Appointment</md-checkbox></md-dialog-actions>\n</form></md-dialog>'),e.put("app/main/dashboard/dialogs/building_setup/building_setup.html",'<md-dialog class="compose-dialog" aria-label="Update"><form class="md-inline-form"><md-toolbar \nclass="md-accent md-hue-2"><div class="md-toolbar-tools" layout="row" layout-align="space-between center"><span \nclass="title">Join Community</span><md-button class="md-icon-button" ng-click="vm.closeDialog()" \naria-label="Close dialog"><md-icon md-font-icon="icon-close"></md-icon></md-button></div></md-toolbar>\n<md-dialog-content ms-scroll><md-input-container class="md-block"><label>Rooms</label><input \nng-model="vm.community.rooms" type="number"></md-input-container><md-input-container class="md-block"><label>Floors\n</label><input ng-model="vm.community.numFloors" type="number" ng-blur="vm.updateContactAndRoomInfo(\'floors\')">\n</md-input-container><div ng-repeat="room in vm.floors"><label><u><b>{{ room.floorNumber + 1 }}. </b>Floor</u></label>\n<div layout="row" layout-align="space-between start"><div class="md-block"><md-autocomplete md-input-id="select-room" \nmd-selected-item="room.startRoom" md-search-text="room.startRoom" md-items="item in vm.getMatches(room.startRoom)" \nmd-item-text="item" md-min-length="0" placeholder="Choose start room"><md-item-template><span \nmd-highlight-text="room.startRoom">{{item}}</span></md-item-template><md-not-found>No room found</md-not-found>\n</md-autocomplete></div><div class="md-block"><md-autocomplete md-input-id="select-room" \nmd-selected-item="room.endRoom" md-search-text="room.endRoom" md-items="item in vm.getMatches(room.endRoom)" \nmd-item-text="item" md-min-length="0" placeholder="Choose end room"><md-item-template><span \nmd-highlight-text="room.endRoom">{{item}}</span></md-item-template><md-not-found>No room found</md-not-found>\n</md-autocomplete></div></div></div></md-dialog-content><md-dialog-actions layout="row" \nlayout-align="space-between center"><div layout="row" layout-align="start center"><md-button ng-click="vm.save()" \nid="send-request" class="send-button md-accent md-raised" aria-label="Save">Save</md-button></div></md-dialog-actions>\n</form></md-dialog>'),e.put("app/main/dashboard/dialogs/create/createCommunity.html",'<md-dialog class="compose-dialog" aria-label="Update"><form class="md-inline-form"><md-toolbar \nclass="md-accent md-hue-2"><div class="md-toolbar-tools" layout="row" layout-align="space-between center"><span \nclass="title">Add Community</span><md-button class="md-icon-button" ng-click="vm.closeDialog()" \naria-label="Close dialog"><md-icon md-font-icon="icon-close"></md-icon></md-button></div></md-toolbar>\n<md-dialog-content ms-scroll><h2>Please enter your credit card info to subscribe</h2><md-divider></md-divider><p \nng-if="!vm.hasCanceledCommunity">\nBy entering your credit card you are subscribing to our service, you will be billed monthly at $5 per user within your community.\n</p><p ng-if="vm.hasCanceledCommunity">Hi back again! You have a closed community <u>{{ vm.canceledCommunity.name }}\n</u> you can reopen again by checking the option below</p><md-input-container class="md-block" \nng-if="vm.hasCanceledCommunity"><md-checkbox ng-model="vm.restoreCommunity" aria-label="Restore">\nRestore {{ vm.canceledCommunity.name }} community</md-checkbox></md-input-container><md-input-container \nclass="md-block" ng-hide="vm.restoreCommunity"><label>Community Name</label><input ng-model="vm.form.name" type="text" \nrequired><div ng-messages>{{ vm.nameError }}</div></md-input-container><md-input-container class="md-block"><label>\nCard number</label><input ng-model="vm.cardInfo.number" cc-number cc-format cc-type="cardType" maxlength="20"><div \nng-messages>{{ vm.cardNumberError }}</div></md-input-container><md-input-container class="md-block"><label>\nExpiration (Months format MM)</label><input ng-model="vm.cardInfo.exp_month" cc-exp-month maxlength="2" type="text">\n<div ng-messages>{{ vm.expMonthError }}</div></md-input-container><md-input-container class="md-block"><label>\nExpiration (Years format YY)</label><input ng-model="vm.cardInfo.exp_year" cc-exp-year maxlength="2" type="text"><div \nng-messages>{{ vm.expYearError }}</div></md-input-container><md-input-container class="md-block"><label>CVC</label>\n<input ng-model="vm.cardInfo.cvc" cc-cvc type="number" maxlength="4"></md-input-container></md-dialog-content>\n<md-dialog-actions layout="row" layout-align="space-between center"><div layout="row" layout-align="start center">\n<md-button ng-disabled="vm.gettingCreated" ng-click="vm.addCommunity()" id="add-community" \nng-if="!vm.restoreCommunity" class="send-button md-accent md-raised" aria-label="Add">ADD COMMUNITY</md-button>\n<md-button ng-disabled="vm.gettingCreated" ng-click="vm.recoverCommunity()" ng-if="vm.restoreCommunity" \nclass="send-button md-accent md-raised" aria-label="Add">RESTORE COMMUNITY</md-button></div></md-dialog-actions></form>\n</md-dialog>'),e.put("app/main/dashboard/dialogs/join_community/join_community.html",'<md-dialog class="compose-dialog" aria-label="Update"><form class="md-inline-form"><md-toolbar \nclass="md-accent md-hue-2"><div class="md-toolbar-tools" layout="row" layout-align="space-between center"><span \nclass="title">Join Community</span><md-button class="md-icon-button" ng-click="vm.closeDialog()" \naria-label="Close dialog"><md-icon md-font-icon="icon-close"></md-icon></md-button></div></md-toolbar>\n<md-dialog-content ms-scroll><md-autocomplete md-input-id="select-community" md-selected-item="vm.selectedItem" \nmd-search-text="vm.searchText" md-items="item in vm.getMatches(vm.searchText)" md-item-text="item.display" \nmd-min-length="0" placeholder="Choose a community"><md-item-template><span md-highlight-text="vm.searchText">\n{{item.display}}</span></md-item-template><md-not-found>No community found.</md-not-found></md-autocomplete>\n</md-dialog-content><md-dialog-actions layout="row" layout-align="space-between center"><div layout="row" \nlayout-align="start center"><md-button ng-click="vm.sendRequest()" id="send-request" \nclass="send-button md-accent md-raised" aria-label="Add">Send request</md-button></div></md-dialog-actions></form>\n</md-dialog>'),e.put("app/main/dashboard/dialogs/logs/logs.html",'<md-dialog class="compose-dialog" aria-label="Update"><form class="md-inline-form"><md-toolbar \nclass="md-accent md-hue-2"><div class="md-toolbar-tools" layout="row" layout-align="space-between center"><span \nclass="title">{{ vm.userName }} login time and locations</span><md-button class="md-icon-button" \nng-click="vm.closeDialog()" aria-label="Close dialog"><md-icon md-font-icon="icon-close"></md-icon></md-button></div>\n</md-toolbar><md-dialog-content ms-scroll><md-list><md-list-item ng-repeat="entry in vm.ipLogs | orderBy: \'-loggedOn\'">\n<p><b>{{ vm.userName }}</b> logged in from <b>{{ entry.ipAddress }}</b> on {{ entry.loggedOn | date:\'medium\'}}</p>\n</md-list-item></md-list></md-dialog-content><md-dialog-actions layout="row" layout-align="space-between center">\n</md-dialog-actions></form></md-dialog>'),e.put("app/main/dashboard/dialogs/recover/recover.html",'<md-dialog class="compose-dialog" aria-label="Update"><form class="md-inline-form"><md-toolbar \nclass="md-accent md-hue-2"><div class="md-toolbar-tools" layout="row" layout-align="space-between center"><span \nclass="title">Recover password</span><md-button class="md-icon-button" ng-click="vm.closeDialog()" \naria-label="Close dialog"><md-icon md-font-icon="icon-close"></md-icon></md-button></div></md-toolbar>\n<md-dialog-content ms-scroll><dl ng-if="vm.recoveryInfo.type === \'boss\'"><dt>\nYou have started the recovery process for {{ vm.recoveryInfo.userToRecoverName }}</dt><dd>\nYou need to enter your password and the member <u>{{ vm.recoveryInfo.randomUsersName }} </u>\nwill enter their password. After both passwords are entered and correct you will be able to see {{ vm.recoveryInfo.userToRecoverName }} confidential issues\n</dd><dt></dt></dl><dl ng-if="vm.recoveryInfo.type === \'randomuser\'"><dt>\nYou have been randomly choosen for the recovery process for {{ vm.recoveryInfo.userToRecoverName }}</dt><dd \nng-if="vm.recoveryInfo.type === \'randomuser\'">\nYou need to enter your password so that the users confidential issues can be unlocked.</dd><dt></dt></dl>\n<md-input-container class="md-block"><label>Your password</label><input ng-model="vm.form.password" type="password">\n</md-input-container></md-dialog-content><md-dialog-actions layout="row" layout-align="space-between center"><div \nlayout="row" layout-align="start center"><md-button ng-click="vm.verifyPassword()" \nclass="send-button md-accent md-raised" aria-label="Add">SUBMIT PASSWORD</md-button></div></md-dialog-actions></form>\n</md-dialog>'),e.put("app/main/dashboard/dialogs/room_style/room_style.html",'<md-dialog class="compose-dialog" aria-label="Update"><form class="md-inline-form"><md-toolbar \nclass="md-accent md-hue-2"><div class="md-toolbar-tools" layout="row" layout-align="center center"><span class="title" \nng-if="!vm.isUpdate">Create Room Type</span> <span class="title" ng-if="vm.isUpdate">Update <b>{{ vm.form.name }}</b> \n</span><span flex></span><md-button class="md-icon-button" ng-click="vm.deleteRoom()" aria-label="Delete Room Style">\n<md-icon md-font-icon="icon-delete"></md-icon></md-button><md-button class="md-icon-button" \nng-click="vm.closeDialog()" aria-label="Close dialog"><md-icon md-font-icon="icon-close"></md-icon></md-button></div>\n</md-toolbar><md-dialog-content ms-scroll><md-input-container class="md-block"><label>Name</label><input \nng-model="vm.form.name" type="text"></md-input-container><md-input-container class="md-block"><label>Area</label><input\n ng-model="vm.form.area" type="number"></md-input-container><md-input-container class="md-block"><label>Rooms</label>\n<md-chips md-separator-keys="vm.seperators" ng-model="vm.form.rooms" md-on-add="" md-on-remove="" md-removable="true" \nreadonly="false" placeholder="Add rooms"></md-chips></md-input-container></md-dialog-content><md-dialog-actions \nlayout="row" layout-align="space-between center"><div layout="row" layout-align="start center"><md-button \nng-click="vm.createRoom()" ng-if="!vm.isUpdate" id="send-request" class="send-button md-accent md-raised" \naria-label="Add">Create Room</md-button><md-button ng-click="vm.updateRoom()" ng-if="vm.isUpdate" id="send-request" \nclass="send-button md-accent md-raised" aria-label="Add">Update Room</md-button></div></md-dialog-actions></form>\n</md-dialog>'),e.put("app/main/dashboard/dialogs/unit_select/unit_select.html",'<md-dialog class="compose-dialog" aria-label="Update"><form class="md-inline-form"><md-toolbar \nclass="md-accent md-hue-2"><div class="md-toolbar-tools" layout="row" layout-align="space-between center"><span \nclass="title">Unit select</span><md-button class="md-icon-button" ng-click="vm.closeDialog()" \naria-label="Close dialog"><md-icon md-font-icon="icon-close"></md-icon></md-button></div></md-toolbar>\n<md-dialog-content ms-scroll><md-input-container class="md-block"><label>Length/Area</label><md-switch \nng-model="vm.form.areaUnit"><span ng-if="vm.form.areaUnit">Feet</span> <span ng-if="!vm.form.areaUnit">Meters</span>\n</md-switch></md-input-container><md-input-container class="md-block"><label>Weight</label><md-switch \nng-model="vm.form.weightUnit"><span ng-if="vm.form.weightUnit">Pounds</span> <span ng-if="!vm.form.weightUnit">\nKilograms</span></md-switch></md-input-container><md-input-container class="md-block"><label>Temperature</label>\n<md-switch ng-model="vm.form.tempUnit"><span ng-if="vm.form.tempUnit">Fahrenheith</span> <span \nng-if="!vm.form.tempUnit">Celsius</span></md-switch></md-input-container></md-dialog-content><md-dialog-actions \nlayout="row" layout-align="space-between center"><div layout="row" layout-align="start center"><md-button \nng-click="vm.updateUnits()" id="send-request" class="send-button md-accent md-raised" aria-label="Update">Update\n</md-button></div></md-dialog-actions></form></md-dialog>'),e.put("app/main/dashboard/dialogs/update_billing/update_billing.html",'<md-dialog class="compose-dialog" aria-label="Update"><form class="md-inline-form"><md-toolbar \nclass="md-accent md-hue-2"><div class="md-toolbar-tools" layout="row" layout-align="space-between center"><span \nclass="title">Change Credit card</span><md-button class="md-icon-button" ng-click="vm.closeDialog()" \naria-label="Close dialog"><md-icon md-font-icon="icon-close"></md-icon></md-button></div></md-toolbar>\n<md-dialog-content ms-scroll><h2>\nEntering the new credit card will replace the old one and all the payment will be transfered to the new card</h2>\n<md-input-container class="md-block"><label>Card number</label><input ng-model="vm.cardInfo.number" cc-number \ncc-format cc-type="cardType" maxlength="20" type="text"></md-input-container><md-input-container class="md-block">\n<label>Expiration (Months format MM)</label><input ng-model="vm.cardInfo.exp_month" cc-exp-month maxlength="2" \ntype="text"></md-input-container><md-input-container class="md-block"><label>Expiration (Years format YY)</label><input\n ng-model="vm.cardInfo.exp_year" cc-exp-year maxlength="2" type="text"></md-input-container><md-input-container \nclass="md-block"><label>CVC</label><input ng-model="vm.cardInfo.cvc" type="number" cc-cvc maxlength="4" \nmd-minlength="3" md-minlength="3"><div ng-messages="vm.cardInfo.cvc.$error" role="alert"><div ng-message="required">\n<span>Firstname field is required.</span></div></div></md-input-container></md-dialog-content><md-dialog-actions \nlayout="row" layout-align="space-between center"><div layout="row" layout-align="start center"><md-button \nng-click="vm.updateCustomer()" class="send-button md-accent md-raised" aria-label="Add">NEW CREDIT CARD</md-button>\n</div></md-dialog-actions></form></md-dialog>'),e.put("app/main/issues/dialogs/createIssue/createIssue.html",'<md-dialog class="compose-dialog" aria-label="Update"><form class="md-inline-form"><md-toolbar \nclass="md-accent md-hue-2"><div class="md-toolbar-tools" layout="row" layout-align="space-between center"><span \nclass="title">Add Issue</span><md-button class="md-icon-button" ng-click="vm.closeDialog()" aria-label="Close dialog">\n<md-icon md-font-icon="icon-close"></md-icon></md-button></div></md-toolbar><md-dialog-content ms-scroll>\n<md-input-container class="md-block"><label>Title</label><input ng-model="vm.form.title" type="text" required=""><div \nng-messages=""><div ng-if="vm.error.title">Title is required</div></div></md-input-container><md-autocomplete \nmd-selected-item="vm.selectedItem" md-search-text="searchText" md-items="item in vm.getMatches(searchText)" \nmd-item-text="item.display" md-min-length="0" md-floating-label="Responsible Party"><md-item-template><span \nmd-highlight-text="searchText">{{item.display}}</span></md-item-template><md-not-found>No Users found.</md-not-found>\n</md-autocomplete><div ng-if="vm.error.selectedItem" style="color: red; padding-top: 5px">Resident is required</div>\n<md-input-container class="md-block"><md-select ng-model="vm.form.resolutionTimeframe" placeholder="Time Frame" \nrequired=""><md-option value="Hours">Hours</md-option><md-option value="Days">Days</md-option><md-option value="Weeks">\nWeeks</md-option><md-option value="Months">Months</md-option></md-select><div ng-messages=""><div \nng-if="vm.error.resolutionTimeframe">Resolution Timeframe is required</div></div></md-input-container>\n<md-input-container class="md-block"><label>Description</label><textarea ng-model="vm.form.description" type="text" \nrequired=""></textarea><div ng-messages=""><div ng-if="vm.error.description">Description is required</div></div>\n</md-input-container><md-input-container class="md-block"><md-checkbox ng-model="vm.form.confidential" \nng-disabled="vm.userid !== vm.selectedItem.value" aria-label="Confidential">Confidential</md-checkbox>\n</md-input-container></md-dialog-content><md-dialog-actions layout="row" layout-align="space-between center"><div \nlayout="row" layout-align="start center"><md-button ng-click="vm.addIssue()" class="send-button md-accent md-raised" \naria-label="Add">ADD ISSUE</md-button></div></md-dialog-actions></form></md-dialog>'),e.put("app/main/issues/dialogs/wordCloud/wordCloud.html",'<md-dialog class="compose-dialog" aria-label="Update"><form class="md-inline-form"><md-toolbar \nclass="md-accent md-hue-2"><div class="md-toolbar-tools" layout="row" layout-align="space-between center"><span \nclass="title">Word cloud</span><md-button class="md-icon-button" ng-click="vm.closeDialog()" aria-label="Close dialog">\n<md-icon md-font-icon="icon-close"></md-icon></md-button></div></md-toolbar><md-dialog-content ms-scroll>\n<md-input-container class="md-block" id="wordcloud" ng-style="width: 400px; height: 400;"></md-input-container>\n</md-dialog-content></form></md-dialog>'),e.put("app/main/issues/directives/ms-sb-add-card/ms-sb-add-card.html",'<div class="ms-sb-add-card-button" layout="row" layout-align="start center" ng-click="vm.addIssue()"><div><i \nclass="icon-plus s20"></i></div><span>Add Issue</span></div>'),e.put("app/main/issues/sidenavs/filters/filters-sidenav.html",'<md-toolbar class="md-accent" ng-class="\'md-\'+vm.board.settings.color+\'-bg\'"><div class="md-toolbar-tools"><span flex \nclass="menu-title" translate="SB.FILTER_CARDS">Filter Cards</span><md-button ng-if="vm.filteringIsOn()" \nng-click="vm.clearFilters()" class="md-icon-button" aria-label="clear filters"><md-icon \nmd-font-icon="icon-filter-remove"></md-icon><md-tooltip><span translate="SB.CLEAR_FILTER">Clear Filters</span>\n</md-tooltip></md-button></div></md-toolbar><md-content class="" ms-scroll><md-list><md-subheader class="md-no-sticky" \ntranslate="SB.FILTER_BY_CARD_NAME">Filter by Card Name</md-subheader><md-list-item><input flex \nplaceholder="Type Card Name" type="text" ng-model="vm.cardFilters.name" translate \ntranslate-attr-placeholder="SB.TYPE_CARD_NAME"></md-list-item><md-divider></md-divider><md-subheader \nclass="md-no-sticky" translate="SB.FILTER_BY_LABELS">Filter by Labels</md-subheader><md-list-item class="label" \nng-repeat="label in vm.labels" ng-click="vm.toggleInArray(label.id, vm.cardFilters.labels)"><md-icon \nmd-font-icon="icon-label" ng-class="label.color+\'-fg\'" class="label-icon"></md-icon><p>{{label.name}}</p><i \nclass="icon-check s16" ng-if="vm.exists(label.id, vm.cardFilters.labels)"></i></md-list-item><md-divider></md-divider>\n<md-subheader class="md-no-sticky" translate="SB.FILTER_BY_MEMBERS">Filter by Members</md-subheader><md-list-item \nclass="member" ng-repeat="member in vm.members" ng-click="vm.toggleInArray(member.id, vm.cardFilters.members)" \naria-label="Toggle Member"><img alt="{{ member.name }}" ng-src="{{ member.avatar }}" class="md-avatar"><p \nclass="member-name">{{ member.name }}</p><i class="icon-check s16" \nng-if="vm.exists(member.id, vm.cardFilters.members)"></i></md-list-item></md-list></md-content>'),e.put("app/main/issues/sidenavs/settings/settings-sidenav.html",'<md-toolbar class="md-accent" ng-class="\'md-\'+vm.board.settings.color+\'-bg\'"><div class="md-toolbar-tools"><md-button \nng-hide="vm.selectedMenu === \'Settings\'" class="md-icon-button" ng-click="vm.selectedMenu = \'Settings\'" \naria-label="back" translate translate-attr-aria-label="SB.BACK"><md-icon md-font-icon="icon-arrow-left"></md-icon>\n</md-button><span flex class="menu-title">{{vm.selectedMenu}}</span></div></md-toolbar><md-content \nng-show="vm.selectedMenu === \'Settings\'" class="animate-slide-right settings" ms-scroll ms-sidenav-helper><md-list>\n<md-list-item class="item" ng-click="vm.selectedMenu = \'Board Color\'"><md-icon md-font-icon="icon-format-color-fill" \nclass="s18"></md-icon><p class="title" translate="SB.BOARD_COLOR">Board Color</p></md-list-item><md-list-item \nclass="item" ng-click="vm.board.settings.cardCoverImages = !vm.board.settings.cardCoverImages"><md-icon \nmd-font-icon="icon-image-area" class="s18"></md-icon><p flex class="title" translate="SB.CARD_COVER_IMAGES">\nCard Cover Images</p><md-icon ng-show="vm.board.settings.cardCoverImages" md-font-icon="icon-check" class="s18">\n</md-icon></md-list-item><md-list-item class="item" \nng-click="vm.board.settings.subscribed = !vm.board.settings.subscribed"><md-icon md-font-icon="icon-eye" class="s18">\n</md-icon><p flex class="title" translate="SB.SUBSCRIBE">Subscribe</p><md-icon ng-show="vm.board.settings.subscribed" \nmd-font-icon="icon-check" class="s18"></md-icon></md-list-item><md-list-item class="item"><md-icon \nmd-font-icon="icon-content-copy" class="s18"></md-icon><p class="title" translate="SB.COPY_BOARD">Copy Board</p>\n</md-list-item><md-list-item class="item"><md-icon md-font-icon="icon-delete" class="s18"></md-icon><p class="title" \ntranslate="SB.DELETE_BOARD">Delete Board</p></md-list-item><md-divider></md-divider><md-list-item class="item" \nng-click="vm.selectedMenu = \'Labels\'" aria-label="inbox"><md-icon md-font-icon="icon-label" class="s18"></md-icon><p \nclass="title" translate="SB.LABELS">Labels</p></md-list-item><md-list-item class="item" \nng-click="vm.selectedMenu = \'Members\'" aria-label="inbox"><md-icon md-font-icon="icon-account-multiple" class="s18">\n</md-icon><p class="title" translate="SB.MEMBERS">Members</p></md-list-item></md-list></md-content><md-content \nng-show="vm.selectedMenu === \'Board Color\'" class="animate-slide-left board-color-selection"><div layout="column" \nlayout-fill ng-include="\'app/main/issues/sidenavs/settings/menus/color/color-menu.html\'" \nng-controller="ColorMenuController as vm"></div></md-content><md-content ng-show="vm.selectedMenu === \'Labels\'" \nclass="animate-slide-left labels"><div layout="column" layout-fill \nng-include="\'app/main/issues/sidenavs/settings/menus/labels/labels-menu.html\'" \nng-controller="LabelsMenuController as vm"></div></md-content><md-content ng-show="vm.selectedMenu === \'Members\'" \nclass="animate-slide-left members"><div layout="column" layout-fill \nng-include="\'app/main/issues/sidenavs/settings/menus/members/members-menu.html\'" \nng-controller="MembersMenuController as vm"></div></md-content>'),e.put("app/main/issues/views/board/board-view.html",'<div id="board" ng-class="vm.board.settings.color+\'-100-bg\'" ng-model="vm.board.lists" layout="row"><div \nclass="list-wrapper" ng-repeat="list in vm.board.lists track by list.id"><div class="list md-whiteframe-1dp" \nlayout="column"><div ng-if="vm.board.settings.cardCoverImages && vm.board.cards.getById(cardId).idAttachmentCover" \nclass="list-card-cover"><img \nng-src="{{vm.board.cards.getById(cardId).attachments.getById(vm.board.cards.getById(cardId).idAttachmentCover).url}}">\n</div><div class="list-header" layout="row" layout-align="space-between center"><div class="list-header-name"><span>\n{{list.name}}</span></div></div><div class="list-content" layout="column"><div class="list-cards" \nng-model="list.idCards" ms-scroll><div ng-if="cardId" class="list-card md-whiteframe-2dp" \nng-repeat="cardId in list.idCards | filter: vm.cardFilter track by $index" \nng-click="vm.openCardDialog($event, cardId)"><div class="list-card-cover"><img ng-src="{{ vm.getImageUrl(cardId); }}">\n</div><div class="list-card-details"><div class="list-card-sort-handle"><md-icon md-font-icon="icon-cursor-move" \nclass="icon s16"></md-icon></div><div class="list-card-labels" layout="row" layout-wrap><span class="list-card-label" \nng-class="\'md-\'+labelId.color+\'-bg\'" ng-repeat="labelId in vm.board.cards.getById(cardId).labels"><md-tooltip>\n{{labelId.name}}</md-tooltip></span></div><div class="list-card-name">{{vm.board.cards.getById(cardId).name}}</div><div\n ng-if="vm.board.cards.getById(cardId).submitDate || vm.board.cards.getById(cardId).resolutionTimeframe" \nclass="list-card-badges" layout="row" layout-align="start center"><span class="badge due-date" \nng-if="vm.board.cards.getById(cardId).due" layout="row" layout-align="start center"><i class="icon-clock s16"></i> \n<span>{{vm.board.cards.getById(cardId).due | date:\'mediumDate\'}}</span> </span><span \nng-if="vm.board.cards.getById(cardId).resolutionTimeframe" class="badge check-items" \nng-class="{\'completed\': vm.board.cards.getById(cardId).resolutionTimeframeChecked === vm.board.cards.getById(cardId).resolutionTimeframe}" \nlayout="row" layout-align="start center"><i ng-if="vm.board.cards.getById(cardId).resolutionTimeframe === \'Hours\'" \nng-class="\'icon-clock-fast s16\'"></i> <i ng-if="vm.board.cards.getById(cardId).resolutionTimeframe === \'Days\'" \nng-class="\'icon-view-day s16\'"></i> <i ng-if="vm.board.cards.getById(cardId).resolutionTimeframe === \'Weeks\'" \nng-class="\'icon-view-week s16\'"></i> <i ng-if="vm.board.cards.getById(cardId).resolutionTimeframe === \'Months\'" \nng-class="\'icon-view-module s16\'"></i> <span>{{ vm.board.cards.getById(cardId).resolutionTimeframe }}</span>\n<md-tooltip><span ng-if="vm.board.cards.getById(cardId).flag">\nThe issue hasn\'t been updated in more than a {{ vm.board.cards.getById(cardId).resolutionTimeframe.toLowerCase().slice(0, -1); }}\n</span></md-tooltip></span><span ng-if="vm.board.cards.getById(cardId).checklists.length > 0" \nclass="badge check-items" \nng-class="{\'completed\': vm.board.cards.getById(cardId).checkItemsChecked === vm.board.cards.getById(cardId).checkItems}" \nlayout="row" layout-align="start center"><i class="icon-checkbox-marked-circle s16"></i> <span>\n{{vm.getChecklistData(cardId).checkedItems}}</span> <span>/</span> <span>\n{{vm.getChecklistData(cardId).checkItemsLength}}</span></span></div><div \nng-if="vm.board.cards.getById(cardId).idMembers.length > 0" class="list-card-members" layout="row"><div \nclass="list-card-member" ng-repeat="member in vm.board.cards.getById(cardId).idMembers"><img \nclass="list-card-member-avatar" ng-src="{{member.userImage || \'assets/images/avatars/userDefaultProfile.png\'}}">\n<md-tooltip><div class="name">{{ member.name }}</div></md-tooltip></div></div></div><div class="list-card-footer" \nlayout="row" layout-align="space-between center"><div layout="row" layout-align="start center"><md-icon \nng-if="vm.board.cards.getById(cardId).confidential" md-menu-origin md-font-icon="icon-lock"><md-tooltip>Confidential\n</md-tooltip></md-icon><md-icon ng-if="vm.flagIssue(vm.board.cards.getById(cardId))" md-menu-origin \nmd-font-icon="icon-alert"><md-tooltip>\nThe issue hasn\'t been updated in more than a {{ vm.board.cards.getById(cardId).resolutionTimeframe.toLowerCase().slice(0, -1); }}\n</md-tooltip></md-icon></div><div layout="row" layout-align="end center"><span class="list-card-footer-item" \nlayout="row" layout-align="start center"><i class="icon-gavel s18"></i> <span class="value">\n{{ vm.board.cards.getById(cardId).finalPlan.length}}</span><md-tooltip>Plans</md-tooltip></span><span \nclass="list-card-footer-item" ng-if="vm.board.cards.getById(cardId).attachments" layout="row" \nlayout-align="start center"><i class="icon-attachment s18"></i> <span class="value">\n{{vm.board.cards.getById(cardId).attachments.length}}</span><md-tooltip>Attachments</md-tooltip></span><span \nclass="list-card-footer-item" ng-if="vm.board.cards.getById(cardId).comments" layout="row" layout-align="start center">\n<i class="icon-comment s18"></i> <span class="value">{{vm.board.cards.getById(cardId).comments.length}}</span>\n<md-tooltip>Comments</md-tooltip></span></div></div></div></div></div><div class="list-footer"><ms-sb-add-card \nms-list-id="list.id"></ms-sb-add-card></div></div></div></div>'),
  e.put("app/main/issues/views/boards/boards-view.html",'<div id="boards" class="md-accent-bg" layout="column" flex><div id="board-selector" layout="column" \nlayout-align="start center" flex><h1 translate="SB.SCRUMBOARD_APP">Issues App</h1><div class="board-list" layout="row" \nlayout-align="center center" layout-wrap><div class="board-list-item" ng-repeat="board in vm.boardList" \nui-sref="app.issues.boards.board({id:board.id, uri:board.uri})" layout="column" layout-align="center center"><md-icon \nmd-font-icon="icon-trello" class="icon s64"></md-icon><div class="board-name">{{board.name}}</div></div><div \nclass="board-list-item add-new-board" layout="column" layout-align="center center" \nui-sref="app.issues.boards.addBoard"><md-icon md-font-icon="icon-plus-circle" class="icon s64"></md-icon><div \nclass="board-name" translate="SB.ADD_NEW_BOARD">Add new board</div></div></div></div></div>'),e.put("app/main/profile/tabs/community/community.html",'<div layout="row" layout-wrap><div class="about" layout="column" flex="100" flex-gt-sm="100" flex-gt-md="100"><div \nclass="profile-box info-box general md-whiteframe-1dp" layout="column"><header class="md-accent-bg"><div class="title" \ntranslate="PROFILE.JOIN_COMMUNITY">Join a Community</div></header><div class="content"><div class="about" \nlayout="column" flex="100" flex-gt-sm="50" flex-gt-md="65"><md-autocomplete md-selected-item="vm.selectedItem" \nmd-search-text="vm.searchText" md-items="item in vm.getMatches(vm.searchText)" md-item-text="item.display" \nmd-min-length="0" placeholder="Choose a community"><md-item-template><span md-highlight-text="vm.searchText">\n{{item.display}}</span></md-item-template><md-not-found>No community found.</md-not-found></md-autocomplete></div>\n<md-button class="md-raised md-primary" ng-click="vm.sendRequest()">Send request</md-button></div></div><div \nclass="profile-box info-box contact md-whiteframe-1dp" layout="column"><header class="md-accent-bg"><div class="title" \ntranslate="PROFILE.CREATE_COMMUNITY">Create a Community</div></header><div class="content"><md-input-container \nclass="md-block" ng-if="vm.hasCommunity"><md-button ng-click="vm.openCommunityModal()" class="md-raised md-primary">\nCreate a New Community</md-button></md-input-container></div></div></div></div>'),e.put("app/main/profile/tabs/profileTab/profileTab.html",'<div layout="row" layout-wrap><div class="about" layout="column" flex="100" flex-gt-sm="50" flex-gt-md="65"><div \nclass="profile-box info-box general md-whiteframe-1dp" layout="column"><header class="md-accent-bg"><div class="title" \ntranslate="PROFILE.GENERAL_INFORMATION">Information</div></header><div class="content"><div class="info-line"><div \nclass="title">Registerd On</div><div class="info">Member since {{vm.formatedRegister}}</div></div><md-input-container \nclass="md-block" ng-if="vm.hasCommunity"><h4>New community</h4><md-button ng-click="vm.openCommunityModal()" \nclass="md-raised md-primary">Create a New Community</md-button></md-input-container></div></div></div><div \nclass="about-sidebar" layout="column" flex="100" flex-gt-sm="50" flex-gt-md="35"></div></div>'),e.put("app/main/profile/tabs/settings/settings.html",'<div layout="row" layout-wrap><div class="about" layout="column" flex="100" flex-gt-sm="50" flex-gt-md="65"><div \nclass="profile-box info-box general md-whiteframe-1dp" layout="column"><header class="md-accent-bg"><div class="title">\nUser settings</div></header><div class="content"><md-input-container class="md-block"><h4>New Username</h4><input \nng-model="vm.form.username" type="text"><div ng-messages>{{ vm.userExists }}</div><md-button \nng-click="vm.changeUsername()">Save</md-button></md-input-container><md-input-container class="md-block"><h4>\nProfile image</h4><md-button type="file" ngf-select="vm.uploadFiles($file, $invalidFiles)" \nclass="add-attachment-button" aria-label="add attachment" accept="image/*" ngf-max-height="1000" ngf-max-size="3MB">\n<div layout="row" layout-align="start center"><i class="icon-plus s20"></i> <span>Upload profile image</span></div>\n</md-button></md-input-container><md-input-container class="md-block" ng-if="vm.hasCommunity"><h4>New community</h4>\n<md-button ng-click="vm.openCommunityModal()" class="md-raised md-primary">Create a New Community</md-button>\n</md-input-container></div></div></div></div>'),e.put("app/main/residents/dialogs/compose/compose-dialog.html",'<md-dialog class="compose-dialog" aria-label="Update" id="update"><form class="md-inline-form"><md-toolbar \nclass="md-accent md-hue-2"><div class="md-toolbar-tools" layout="row" layout-align="space-between center"><span \nclass="title">Add Resident</span><md-button class="md-icon-button" ng-click="vm.closeDialog()" \naria-label="Close dialog"><md-icon md-font-icon="icon-close"></md-icon></md-button></div></md-toolbar>\n<md-dialog-content ms-scroll><form name="projectForm"><md-input-container class="md-block"><label>First Name</label>\n<input ng-model="vm.form.firstName" type="text" required=""><div ng-messages=""><div ng-if="vm.error.firstName">\nFirst Name is required</div></div></md-input-container><md-input-container class="md-block"><label>Prefered Name\n</label><input ng-model="vm.form.aliasName" type="text"></md-input-container><md-input-container class="md-block">\n<label>Middle Name</label><input ng-model="vm.form.middleName" type="text"></md-input-container><md-input-container \nclass="md-block"><label>Last Name</label><input ng-model="vm.form.lastName" type="text" required=""><div \nng-messages=""><div ng-if="vm.error.lastName">Last Name is required</div></div></md-input-container><div layout="row" \nlayout-align="space-around start"><md-input-container class="md-block"><h4>Admission Date</h4><md-datepicker \nng-model="vm.form.admissionDate" md-placeholder="Admission Date"></md-datepicker></md-input-container>\n<md-input-container class="md-block"><h4>Date of Birth</h4><md-datepicker ng-model="vm.form.birthDate" \nmd-placeholder="Birth Date"></md-datepicker></md-input-container></div><div layout="row" \nlayout-align="space-around end"><md-input-container><label>Sex</label><md-select ng-model="vm.form.sex"><md-option \nvalue="Male">Male</md-option><md-option value="Female">Female</md-option><md-option value="Other">Other</md-option>\n</md-select></md-input-container><md-input-container><label>Building Status</label><md-select \nng-model="vm.form.buildingStatus" required=""><md-option value="In Building">In Building</md-option><md-option \nvalue="Out of Building">Out of Building</md-option><md-option value="Hospital">Hospital</md-option><md-option \nvalue="Rehab">Rehab</md-option></md-select><div ng-messages=""><div ng-if="vm.error.buildingStatus">\nBuilding Status is required</div></div></md-input-container><md-input-container><label>Admitted From</label><md-select \nng-model="vm.form.admittedFrom"><md-option value="Home">Home</md-option><md-option value="Hospital">Hospital\n</md-option><md-option value="Rehab">Rehab</md-option><md-option value="Other">Other</md-option></md-select>\n</md-input-container></div><md-input-container class="md-block" ng-if="vm.form.sex == \'Female\'"><label>Maiden Name\n</label><input ng-model="vm.form.maidenName" type="text"></md-input-container><md-input-container class="md-block">\n<label>Moved from</label><input type="text" g-places-autocomplete options="vm.autocompleteOptions" \nng-model="vm.form.locationInfo"></md-input-container><md-input-container flex class="md-block textarea-container">\n<label>Notes</label><textarea ng-model="vm.form.administrativeNotes"></textarea></md-input-container></form>\n</md-dialog-content><md-dialog-actions layout="row" layout-align="space-between center"><div layout="row" \nlayout-align="start center"><md-button ng-click="vm.addResident()" id="add-resident-btn" \nclass="send-button md-accent md-raised" aria-label="Add">ADD</md-button></div></md-dialog-actions></form></md-dialog>'),e.put("app/main/residents/dialogs/update/footer.html",'<md-input-container><span class="communicated-with-title">Communicated With</span><md-checkbox \nng-model="vm.form.communicatedWithResident" aria-label="Communicated With Resident"><b class="resident-checkbox-title">\nResident</b></md-checkbox></md-input-container><md-input-container ng-if="vm.hasPrimaryContact"><md-checkbox \nng-model="vm.form.communicatedWithPrimaryContact" aria-label="Communicated With Primary Contact"><b \nclass="primary-contact-checkbox">Primary Contact</b></md-checkbox></md-input-container><md-input-container \nng-if="vm.hasTrustedPerson"><md-checkbox ng-model="vm.form.communicatedWithTrustedPerson" \naria-label="Communicated With Trusted Person"><b class="trusted-checkbox-title">Trusted Person</b></md-checkbox>\n</md-input-container>'),e.put("app/main/residents/dialogs/update/header.html",'<md-toolbar class="md-accent md-hue-2"><div class="md-toolbar-tools" layout="row" layout-align="space-between center">\n<span class="title">\n{{ (vm.form.aliasName) ? vm.form.aliasName : vm.form.firstName}} {{vm.form.lastName}} - {{ vm.category }}</span><div>\n<md-button class="md-icon-button" ng-click="vm.deleteResident()" aria-label="Close dialog"><md-icon \nmd-font-icon="icon-delete"></md-icon></md-button><md-button class="md-icon-button" ng-click="vm.closeDialog()" \naria-label="Close dialog"><md-icon md-font-icon="icon-close"></md-icon></md-button></div></div></md-toolbar>'),e.put("app/main/residents/dialogs/update/update-Administrative.html",'<md-dialog class="compose-dialog" aria-label="Update" id="update"><form class="md-inline-form"><div \nng-include="\'app/main/residents/dialogs/update/header.html\'"></div><md-dialog-content ms-scroll><md-input-container \nclass="md-block"><label>First Name</label><input ng-model="vm.form.firstName" type="text" required=""><div \nng-messages=""><div ng-if="vm.error.firstName">First Name is required</div></div></md-input-container>\n<md-input-container class="md-block"><label>Prefered Name</label><input ng-model="vm.form.aliasName" type="text">\n</md-input-container><md-input-container class="md-block"><label>Middle Name</label><input \nng-model="vm.form.middleName" type="text"></md-input-container><md-input-container class="md-block"><label>Last Name\n</label><input ng-model="vm.form.lastName" type="text" required=""><div ng-messages=""><div ng-if="vm.error.lastName">\nLast Name is required</div></div></md-input-container><div class="md-block"><md-autocomplete md-input-id="select-room" \nmd-selected-item="vm.form.room" md-search-text="vm.searchText" md-items="item in vm.getMatches(vm.searchText)" \nmd-floating-label="Room" md-item-text="item" md-min-length="0"><md-item-template><span \nmd-highlight-text="vm.searchText">{{item}}</span></md-item-template><md-not-found>No room found</md-not-found>\n</md-autocomplete></div><md-input-container class="md-block"><md-checkbox ng-model="vm.form.veteran" \naria-label="Veteran">Veteran</md-checkbox></md-input-container><md-input-container class="md-block"><label>\nSocial Security Number</label><input ng-model="vm.form.socialSecurityNumber" ssn></md-input-container>\n<md-input-container class="md-block"><label>Marital Status</label><md-select ng-model="vm.form.maritalStatus">\n<md-option value="Single">Single</md-option><md-option value="Divorced">Divorced</md-option><md-option value="Widowed">\nWidowed</md-option><md-option value="Married">Married</md-option><md-option value="Single Never Married">\nSingle Never Married</md-option></md-select></md-input-container><div layout="row" layout-align="space-around start">\n<md-input-container class="md-block"><h4>Date of Birth</h4><md-datepicker ng-model="vm.form.birthDate" \nmd-placeholder="Birth Date"></md-datepicker></md-input-container><md-input-container class="md-block"><h4>\nAdmission Date</h4><md-datepicker ng-model="vm.form.admissionDate" md-placeholder="Admission Date"></md-datepicker>\n</md-input-container></div><br><md-input-container class="md-block"><label>Handles Finances</label><md-select \nng-model="vm.form.handlesFinances"><md-option ng-repeat="contact in vm.form.residentContacts" ng-value="contact._id">\n{{ contact.firstName }}</md-option></md-select></md-input-container><div layout="row" layout-align="space-around end">\n<md-input-container><label>Sex</label><md-select ng-model="vm.form.sex"><md-option value="Male">Male</md-option>\n<md-option value="Female">Female</md-option><md-option value="Other">Other</md-option></md-select></md-input-container>\n<md-input-container class="md-block" ng-if="vm.form.sex == \'Female\'"><label>Maiden Name</label><input \nng-model="vm.form.maidenName" type="text"></md-input-container><md-input-container><label>Building Status</label>\n<md-select ng-model="vm.form.buildingStatus" required=""><md-option value="In Building">In Building</md-option>\n<md-option value="Out of Building">Out of Building</md-option><md-option value="Hospital">Hospital</md-option>\n<md-option value="Rehab">Rehab</md-option><md-option value="Dead">Dead</md-option><md-option value="Moved Out">\nMoved Out</md-option></md-select><div ng-messages=""><div ng-if="vm.error.buildingStatus">Building Status is required\n</div></div></md-input-container><md-input-container><label>Admitted From</label><md-select \nng-model="vm.form.admittedFrom"><md-option value="Home">Home</md-option><md-option value="Hospital">Hospital\n</md-option><md-option value="Rehab">Rehab</md-option><md-option value="Other">Other</md-option></md-select>\n</md-input-container><md-input-container ng-if="vm.form.buildingStatus == \'Moved Out\'"><label>Moved Out To</label>\n<md-select ng-model="vm.form.movedOutTo"><md-option value="Nursing Home">Nursing Home</md-option><md-option \nvalue="Another Assited Living">Another Assited Living</md-option><md-option value="Home">Home</md-option><md-option \nvalue="Other">Other</md-option></md-select></md-input-container></div><md-input-container class="md-block" \nng-if="vm.form.buildingStatus == \'Moved Out\'"><label>Reason of Move Out</label><input \nng-model="vm.form.movedOutDescribe" type="text"></md-input-container><md-input-container class="md-block"><label>\nMoved from</label><input type="text" g-places-autocomplete options="vm.autocompleteOptions" \nng-model="vm.form.locationInfo"></md-input-container><div class="md-block"><label><span>\nAssessment Interval : {{ vm.replaceNumberValue(\'assessmentInterval\', vm.form.assessmentInterval)}}</span></label>\n<md-slider flex min="0" max="4" ng-model="vm.form.assessmentInterval" aria-label="blue"></md-slider></div>\n<md-input-container class="md-block"><md-checkbox ng-model="vm.form.fullCode" aria-label="Full Code">Full Code\n</md-checkbox></md-input-container><md-input-container class="md-block"><label>Primary Doctor</label><input \nng-model="vm.form.primaryDoctor" type="text"></md-input-container><md-input-container class="md-block"><label>Pharmacy\n</label><input ng-model="vm.form.pharmacy" type="text"></md-input-container><md-input-container class="md-block">\n<md-checkbox ng-model="vm.form.longTermCareInsurance" aria-label="Long Term Care Insurance">Long Term Care Insurance\n</md-checkbox></md-input-container><md-input-container class="md-block" ng-if="vm.form.longTermCareInsurance == true">\n<md-checkbox ng-model="vm.form.receiveingLongTermCareInsurance" aria-label="Receiveing Long Term Care Insurance">\nReceiveing Long Term Care Insurance</md-checkbox></md-input-container><md-input-container><label>\nAppointment Coordination</label><md-select ng-model="vm.form.appointmentCoordination"><md-option value="Self">Self\n</md-option><md-option value="Needs assistance">Needs assistance</md-option><md-option value="Family">Family\n</md-option></md-select></md-input-container><md-input-container flex class="md-block textarea-container"><label>Notes\n</label><textarea ng-model="vm.form.administrativeNotes"></textarea></md-input-container></md-dialog-content>\n<md-dialog-actions layout="row" layout-align="space-between center"><div layout="row" layout-align="start start">\n<md-button ng-click="vm.updateResident(\'administrative\')" class="send-button md-accent md-raised" aria-label="Update">\nUPDATE</md-button></div><div ng-include="\'app/main/residents/dialogs/update/footer.html\'"></div></md-dialog-actions>\n</form></md-dialog>'),e.put("app/main/residents/dialogs/update/update-Allergy.html",'<md-dialog class="compose-dialog" aria-label="Update"><form class="md-inline-form"><div \nng-include="\'app/main/residents/dialogs/update/header.html\'"></div><md-dialog-content ms-scroll><label>Food allergies\n</label><md-chips md-separator-keys="vm.seperators" ng-model="vm.foodAllergies" \nmd-on-add="vm.updateChip(vm.foodAllergies,\'foodAllergies\', $chip, \'add\')" \nmd-on-remove="vm.updateChip(vm.foodAllergies,\'foodAllergies\', $chip, \'remove\')" md-removable="true" readonly="false" \nplaceholder="Add new food"></md-chips><br><label>Medication Allergies</label><md-chips \nmd-separator-keys="vm.seperators" ng-model="vm.medicationAllergies" \nmd-on-add="vm.updateChip(vm.medicationAllergies, \'medicationAllergies\', $chip, \'add\')" \nmd-on-remove="vm.updateChip(vm.medicationAllergies, \'medicationAllergies\', $chip, \'remove\')" md-removable="true" \nreadonly="false" placeholder="Add new medication"></md-chips><br><label>Other Allergies</label><md-chips \nmd-separator-keys="vm.seperators" ng-model="vm.form.otherAllergies" \nmd-on-add="vm.updateChip(vm.otherAllergies,\'otherAllergies\', $chip, \'add\')" \nmd-on-remove="vm.updateChip(vm.otherAllergies,\'otherAllergies\', $chip, \'remove\')" md-removable="true" readonly="false" \nplaceholder="Add other allergies"></md-chips><md-input-container flex class="md-block textarea-container"><label>Notes\n</label><textarea ng-model="vm.form.allergyNotes"></textarea></md-input-container></md-dialog-content>\n<md-dialog-actions layout="row" layout-align="space-between center"><div layout="row" layout-align="start start">\n<md-button ng-click="vm.updateResident()" class="send-button md-accent md-raised" aria-label="Add">UPDATE</md-button>\n</div><div ng-include="\'app/main/residents/dialogs/update/footer.html\'"></div></md-dialog-actions></form></md-dialog>'),e.put("app/main/residents/dialogs/update/update-Assistance.html",'<md-dialog class="compose-dialog" aria-label="Update"><form class="md-inline-form"><div \nng-include="\'app/main/residents/dialogs/update/header.html\'"></div><md-dialog-content ms-scroll><md-input-container \nclass="md-block"><md-checkbox ng-model="vm.form.hairAssist" aria-label="Hair Assist">Hair Assist</md-checkbox>\n</md-input-container><md-input-container class="md-block"><md-checkbox ng-model="vm.form.barber" aria-label="Barber">\nBarber</md-checkbox></md-input-container><md-input-container><label>Shave Assist</label><md-select \nng-model="vm.form.shaveAssist"><md-option value="Independent">Independent</md-option><md-option value="Reminder">\nReminder</md-option><md-option value="Full">Full</md-option></md-select></md-input-container><md-input-container \nclass="md-block"><label>Hair Notes</label><textarea ng-model="vm.form.hairNotes"></textarea></md-input-container>\n<md-input-container><label>Finger Nails Assist</label><md-select ng-model="vm.form.fingerNailsAssist"><md-option \nvalue="Independent">Independent</md-option><md-option value="Full">Full</md-option></md-select></md-input-container>\n<md-input-container><label>Toe Nails Assist</label><md-select ng-model="vm.form.toeNailsAssist"><md-option \nvalue="Independent">Independent</md-option><md-option value="Full">Full</md-option></md-select></md-input-container>\n<md-input-container><label>Makeup Assist</label><md-select ng-model="vm.form.makeupAssist"><md-option \nvalue="Independent">Independent</md-option><md-option value="Standby">Standby</md-option><md-option value="Partial">\nPartial</md-option><md-option value="Full">Full</md-option></md-select></md-input-container><md-input-container><label>\nJewelry Assist</label><md-select ng-model="vm.form.jewelryAssist"><md-option value="Independent">Independent\n</md-option><md-option value="Standby">Standby</md-option><md-option value="Partial">Partial</md-option><md-option \nvalue="Full">Full</md-option></md-select></md-input-container><md-input-container><label>Lotion Assist</label>\n<md-select ng-model="vm.form.lotionAssist"><md-option value="Independent">Independent</md-option><md-option \nvalue="Partial">Partial</md-option><md-option value="Full">Full</md-option><md-option value="Reminder">Reminder\n</md-option></md-select></md-input-container><md-input-container class="md-block"><md-checkbox \nng-model="vm.form.dressingAssist" aria-label="dressingAssist">Dressing Assist</md-checkbox></md-input-container><div \nlayout="row" layout-align="space-around center" ng-if="vm.form.dressingAssist"><md-input-container class="md-block">\n<md-checkbox ng-model="vm.form.layoutCloths" aria-label="layoutCloths">Layout Cloths</md-checkbox></md-input-container>\n<md-input-container class="md-block"><md-checkbox ng-model="vm.form.shoesAssist" aria-label="Shoes Assist">Shoes Assist\n</md-checkbox></md-input-container><md-input-container class="md-block"><md-checkbox ng-model="vm.form.topAssist" \naria-label="Top Assist">Top Assist</md-checkbox></md-input-container></div><div layout="row" \nlayout-align="space-around center" ng-if="vm.form.dressingAssist"><md-input-container class="md-block"><md-checkbox \nng-model="vm.form.bottomAssist" aria-label="Bottom Assist">Bottom Assist</md-checkbox></md-input-container>\n<md-input-container class="md-block"><md-checkbox ng-model="vm.form.buttonAssist" aria-label="Button Assist">\nButton Assist</md-checkbox></md-input-container><md-input-container class="md-block"><md-checkbox \nng-model="vm.form.zipperAssist" aria-label="Zipper Assist">Zipper Assist</md-checkbox></md-input-container></div>\n<md-input-container class="md-block"><label>Dressing Notes</label><textarea ng-model="vm.form.dressingNotes">\n</textarea></md-input-container><md-input-container class="md-block"><md-checkbox \nng-model="vm.form.compressionStockingsAssist" aria-label="Compression Stockings Assist">Compression Stockings Assist\n</md-checkbox></md-input-container><md-input-container class="md-block"><md-checkbox ng-model="vm.form.brace" \naria-label="Brace">Brace</md-checkbox></md-input-container><md-input-container class="md-block" \nng-if="vm.form.brace == true"><md-checkbox ng-model="vm.form.braceAssist" aria-label="Brace Assist">Brace Assist\n</md-checkbox></md-input-container><md-input-container class="md-block" ng-if="vm.form.brace == true"><label>\nBrace Describe</label><input ng-model="vm.form.braceDescribe" type="text"></md-input-container><md-input-container \nclass="md-block"><label>Bed Assist</label><input ng-model="vm.form.bedAssist" type="text"></md-input-container>\n<md-input-container class="md-block"><label>Bed Assist Describe</label><input ng-model="vm.form.bedAssistDescribe" \ntype="text"></md-input-container></md-dialog-content><md-dialog-actions layout="row" \nlayout-align="space-between center"><div layout="row" layout-align="start start"><md-button \nng-click="vm.updateResident()" class="send-button md-accent md-raised" aria-label="Add">UPDATE</md-button></div><div \nng-include="\'app/main/residents/dialogs/update/footer.html\'"></div></md-dialog-actions></form></md-dialog>'),e.put("app/main/residents/dialogs/update/update-Bathing.html",'<md-dialog class="compose-dialog" aria-label="Update"><form class="md-inline-form"><div \nng-include="\'app/main/residents/dialogs/update/header.html\'"></div><md-dialog-content ms-scroll><div layout="row" \nlayout-align="space-around center"><md-input-container><label>Type of Bathing</label><md-select \nng-model="vm.form.typeOfBathing"><md-option value="Shower">Shower</md-option><md-option value="Bathtub">Bathtub\n</md-option><md-option value="Spit Bath">Spit Bath</md-option></md-select></md-input-container><md-input-container>\n<label>Time of Bathing</label><md-select ng-model="vm.form.timeOfBathing"><md-option value="Morning">Morning\n</md-option><md-option value="Evening">Evening</md-option><md-option value="Before Breakfast">Before Breakfast\n</md-option><md-option value="After Breakfast">After Breakfast</md-option><md-option value="Before Supper">\nBefore Supper</md-option><md-option value="After Supper">After Supper</md-option></md-select></md-input-container>\n<md-input-container><label>Acceptance of Bathing</label><md-select ng-model="vm.form.acceptanceOfBathing"><md-option \nvalue="Likes">Likes</md-option><md-option value="Dislikes">Dislikes</md-option><md-option value="Refuses">Refuses\n</md-option><md-option value="Indifferent">Indifferent</md-option></md-select></md-input-container></div><div \nclass="md-block"><label><span>\nFrequency of Bathing : {{ vm.replaceNumberValue(\'frequencyOfBathing\', vm.form.frequencyOfBathing)}}</span></label>\n<md-slider flex min="0" max="4" ng-model="vm.form.frequencyOfBathing" aria-label="blue"></md-slider></div><span \nng-if="vm.form.frequencyOfBathing == 1 || vm.form.frequencyOfBathing == 2 || vm.form.frequencyOfBathing == 3"><label>\nBathing Days</label><md-chips md-separator-keys="vm.seperators" ng-model="vm.bathingDays" \nmd-on-add="vm.updateChip(vm.bathingDays,\'bathingDays\', $chip, \'add\')" \nmd-on-remove="vm.updateChip(vm.bathingDays,\'bathingDays\', $chip, \'remove\')" md-removable="true" readonly="false" \nplaceholder="Add new day"></md-chips></span><br><md-input-container class="md-block" \nng-if="vm.form.acceptanceOfBathing == \'Dislikes\'"><label>Why Dislikes Bathing</label><textarea \nng-model="vm.form.dislikesBathingDescribe" rows="5"></textarea></md-input-container><md-input-container><label>\nBathing Assist</label><md-select ng-model="vm.form.bathingAssist"><md-option value="Full Assistance">Full Assistance\n</md-option><md-option value="Standby">Standby</md-option><md-option value="Independent">Independent</md-option>\n<md-option value="Partial Assistance">Partial Assistance</md-option></md-select></md-input-container>\n<md-input-container flex class="md-block textarea-container"><label>Notes</label><textarea \nng-model="vm.form.bathingNotes"></textarea></md-input-container></md-dialog-content><md-dialog-actions layout="row" \nlayout-align="space-between center"><div layout="row" layout-align="start start"><md-button \nng-click="vm.updateResident()" class="send-button md-accent md-raised" aria-label="Add">UPDATE</md-button></div><div \nng-include="\'app/main/residents/dialogs/update/footer.html\'"></div></md-dialog-actions></form></md-dialog>'),e.put("app/main/residents/dialogs/update/update-Contacts.html",'<md-dialog class="compose-dialog" aria-label="Update"><form class="md-inline-form"><div \nng-include="\'app/main/residents/dialogs/update/header.html\'"></div><md-tabs md-selected="vm.selectedTab" \nstyle="min-height: 400px"><md-tab label="new"><md-dialog-content><md-input-container class="md-block"><label>First Name\n</label><input ng-model="vm.form.contact.firstName" type="text" required=""></md-input-container><md-input-container \nclass="md-block"><label>Last Name</label><input ng-model="vm.form.contact.lastName" type="text"></md-input-container>\n<md-input-container class="md-block"><label>Primary Phone Number</label><input \nng-model="vm.form.contact.primaryPhoneNumber" type="text"></md-input-container><md-input-container class="md-block">\n<label>Secondary Phone Number</label><input ng-model="vm.form.contact.secondaryPhoneNumber" type="text">\n</md-input-container><md-input-container class="md-block"><label>Email</label><input ng-model="vm.form.contact.email" \ntype="text"></md-input-container><md-input-container class="md-block"><label>Physical Address</label><input \nclass="form-control" g-places-autocomplete ng-model="vm.form.contact.physicalAddress"></md-input-container>\n<md-input-container class="md-block"><md-checkbox ng-model="vm.form.contact.primaryContact" \naria-label="Primary Contact">Primary Contact</md-checkbox></md-input-container><md-input-container class="md-block">\n<md-checkbox ng-model="vm.form.contact.trustedPerson" aria-label="Trusted Person">Trusted Person</md-checkbox>\n</md-input-container><md-input-container class="md-block"><md-checkbox \nng-model="vm.form.contact.medicalPowerOfAttorney" aria-label="Medical Power Of Attorney">Medical Power Of Attorney\n</md-checkbox></md-input-container><md-input-container class="md-block"><md-checkbox \nng-model="vm.form.contact.financialPowerOfAttorney" aria-label="Financial Power Of Attorney">\nFinancial Power Of Attorney</md-checkbox></md-input-container><md-input-container class="md-block"><md-checkbox \nng-model="vm.form.contact.conservator" aria-label="Conservator">Conservator</md-checkbox></md-input-container>\n<md-input-container class="md-block"><md-checkbox ng-model="vm.form.contact.guardian" aria-label="Guardian">Guardian\n</md-checkbox></md-input-container><md-input-container class="md-block"><label>Relation</label><input \nng-model="vm.form.contact.relation" type="text" required=""></md-input-container><md-input-container class="md-block">\n<label>Notes</label><input ng-model="vm.form.contact.contactNotes" type="text"></md-input-container>\n</md-dialog-content></md-tab><md-tab ng-repeat="tab in vm.form.residentContacts" label="{{tab.firstName}}">\n<md-dialog-content><md-input-container class="md-block"><label>First Name</label><input ng-model="tab.firstName" \ntype="text" required=""></md-input-container><md-input-container class="md-block"><label>Last Name</label><input \nng-model="tab.lastName" type="text"></md-input-container><md-input-container class="md-block"><label>\nPrimary Phone Number</label><input ng-model="tab.primaryPhoneNumber" type="text"></md-input-container>\n<md-input-container class="md-block"><label>Secondary Phone Number</label><input ng-model="tab.secondaryPhoneNumber" \ntype="text"></md-input-container><md-input-container class="md-block"><label>Email</label><input ng-model="tab.email" \ntype="text"></md-input-container><md-input-container class="md-block"><label>Physical Address</label><input \nclass="form-control" g-places-autocomplete ng-model="tab.physicalAddress"></md-input-container><md-input-container \nclass="md-block"><md-checkbox ng-model="tab.primaryContact" aria-label="Primary Contact">Primary Contact</md-checkbox>\n</md-input-container><md-input-container class="md-block"><md-checkbox ng-model="tab.trustedPerson" \naria-label="Trusted Person">Trusted Person</md-checkbox></md-input-container><md-input-container class="md-block">\n<md-checkbox ng-model="tab.medicalPowerOfAttorney" aria-label="Medical Power Of Attorney">Medical Power Of Attorney\n</md-checkbox></md-input-container><md-input-container class="md-block"><md-checkbox \nng-model="tab.financialPowerOfAttorney" aria-label="Financial Power Of Attorney">Financial Power Of Attorney\n</md-checkbox></md-input-container><md-input-container class="md-block"><md-checkbox ng-model="tab.conservator" \naria-label="Conservator">Conservator</md-checkbox></md-input-container><md-input-container class="md-block">\n<md-checkbox ng-model="tab.guardian" aria-label="Guardian">Guardian</md-checkbox></md-input-container>\n<md-input-container class="md-block"><label>Relation</label><input ng-model="tab.relation" type="text" required="">\n</md-input-container><md-input-container class="md-block"><label>Notes</label><input ng-model="tab.contactNotes" \ntype="text"></md-input-container></md-dialog-content></md-tab></md-tabs><md-dialog-actions layout="row" \nlayout-align="space-between center"><div layout="row" layout-align="start start"><md-button \nng-if="vm.selectedTab == 0" ng-click="vm.addContact()" class="send-button md-accent md-raised" aria-label="Add">ADD\n</md-button><md-button ng-if="vm.selectedTab != 0" ng-click="vm.updateResident()" \nclass="send-button md-accent md-raised" aria-label="Update">UPDATE</md-button></div><div \nng-include="\'app/main/residents/dialogs/update/footer.html\'"></div></md-dialog-actions></form></md-dialog>'),
  e.put("app/main/residents/dialogs/update/update-Incontinent.html",'<md-dialog class="compose-dialog" aria-label="Update"><form class="md-inline-form"><div \nng-include="\'app/main/residents/dialogs/update/header.html\'"></div><md-dialog-content ms-scroll><md-input-container \nclass="md-block"><md-checkbox ng-model="vm.form.continentIndependent" aria-label="">Incontinent Independent\n</md-checkbox></md-input-container><md-input-container class="md-block"><md-checkbox ng-model="vm.form.colostomy" \naria-label="">Colostomy</md-checkbox></md-input-container><md-input-container class="md-block"><label>Laxative</label>\n<input ng-model="vm.form.laxative" type="text"></md-input-container><div layout="row" \nlayout-align="space-around center"><div class="md-block"><label><span>\nBowel Incontinent: {{vm.replaceNumberValue(\'bowelContinent\', vm.form.bowelContinent)}}</span></label><md-slider flex \nmin="0" max="2" ng-model="vm.form.bowelContinent" aria-label="blue"></md-slider></div><div class="md-block"><label>\n<span>Constipated : {{vm.replaceNumberValue(\'constipated\', vm.form.constipated)}}</span></label><md-slider flex \nmin="0" max="2" ng-model="vm.form.constipated" aria-label="blue"></md-slider></div></div><br><div layout="row" \nlayout-align="space-around center"><div class="md-block"><label><span>\nBladder Incontinent : {{vm.replaceNumberValue(\'bladderContinent\', vm.form.bladderContinent)}}</span></label><md-slider \nflex min="0" max="2" ng-model="vm.form.bladderContinent" aria-label="blue"></md-slider></div><div class="md-block">\n<label><span>Dribbles : {{vm.replaceNumberValue(\'dribbles\', vm.form.dribbles)}}</span></label><md-slider flex min="0" \nmax="2" ng-model="vm.form.dribbles" aria-label="blue"></md-slider></div><md-input-container><label>Toileting Device\n</label><md-select ng-model="vm.form.toiletingDevice"><md-option value="Urnal">Urnal</md-option><md-option \nvalue="Seat Riser">Seat Riser</md-option><md-option value="Bedside Commode">Bedside Commode</md-option><md-option \nvalue="Bars around Toilet">Bars around Toilet</md-option><md-option value="None">None</md-option></md-select>\n</md-input-container></div><md-input-container class="md-block"><md-checkbox ng-model="vm.form.urostomy" \naria-label="Urostomy">Urostomy</md-checkbox></md-input-container><md-input-container class="md-block"><md-checkbox \nng-model="vm.form.incontinentApparel" aria-label="Incontinent Apparel">Incontinent Apparel</md-checkbox>\n</md-input-container><md-input-container ng-if="vm.form.incontinentApparel == true"><label>Incontinent Apparel Assist\n</label><md-select ng-model="vm.form.incontinentApparelAssist"><md-option value="Independent">Independent</md-option>\n<md-option value="Full">Full</md-option></md-select></md-input-container><md-input-container><label>Toilet Transfer\n</label><md-select ng-model="vm.form.toiletTransfer"><md-option value="Independent">Independent</md-option><md-option \nvalue="Standby">Standby</md-option><md-option value="Partial assitance">Partial assitance</md-option><md-option \nvalue="Full assistance">Full assistance</md-option></md-select></md-input-container><md-input-container><label>\nToileting Assist</label><md-select ng-model="vm.form.toiletingAssist"><md-option value="Independent">Independent\n</md-option><md-option value="Reminder">Reminder</md-option><md-option value="Partial assitance">Partial assitance\n</md-option><md-option value="Full assistance">Full assistance</md-option></md-select></md-input-container>\n<md-input-container class="md-block"><md-checkbox ng-model="vm.form.toiletingReminder" aria-label="Toileting Reminder">\nToileting Reminder</md-checkbox></md-input-container><md-input-container class="md-block"><md-checkbox \nng-model="vm.form.catheter" ng-hide="vm.showCancel" aria-label="">Catheter</md-checkbox></md-input-container>\n<md-input-container class="md-block" ng-if="vm.form.catheter"><label>Describe Catheter</label><textarea \nng-model="vm.form.catheterDescribe" rows="5"></textarea></md-input-container><md-input-container flex \nclass="md-block textarea-container"><label>Notes</label><textarea ng-model="vm.form.continentNotes"></textarea>\n</md-input-container></md-dialog-content><md-dialog-actions layout="row" layout-align="space-between center"><div \nlayout="row" layout-align="start start"><md-button ng-click="vm.updateResident()" \nclass="send-button md-accent md-raised" aria-label="Add">UPDATE</md-button></div><div \nng-include="\'app/main/residents/dialogs/update/footer.html\'"></div></md-dialog-actions></form></md-dialog>'),e.put("app/main/residents/dialogs/update/update-Life.html",'<md-dialog class="compose-dialog" aria-label="Update"><form class="md-inline-form"><div \nng-include="\'app/main/residents/dialogs/update/header.html\'"></div><md-dialog-content ms-scroll><md-input-container \nclass="md-block"><label>Religion</label><textarea ng-model="vm.form.religion" rows="3" md-select-on-focus="">\n</textarea></md-input-container><md-input-container class="md-block"><label>Education</label><textarea \nng-model="vm.form.education" rows="3" md-select-on-focus=""></textarea></md-input-container><md-input-container \nclass="md-block"><label>Occupation</label><textarea ng-model="vm.form.occupation" rows="3" md-select-on-focus="">\n</textarea></md-input-container><md-input-container class="md-block"><label>Contribution</label><textarea \nng-model="vm.form.contribution" rows="3" md-select-on-focus=""></textarea></md-input-container><div layout="column" \nlayout-align="start start"><h4>Shopping (check all that apply)</h4><md-checkbox ng-model="vm.shopping[0].active">\n{{ vm.shopping[0].title}}</md-checkbox><md-checkbox ng-model="vm.shopping[1].active">{{ vm.shopping[1].title}}\n</md-checkbox><md-checkbox ng-model="vm.shopping[2].active">{{ vm.shopping[2].title}}</md-checkbox></div>\n<md-input-container class="md-block"><md-checkbox ng-model="vm.form.supportGroup" aria-label="Support Group">\nSupport Group</md-checkbox></md-input-container><md-input-container><label>Outside Agency</label><md-select \nng-model="vm.form.outsideAgency"><md-option value="Hospice">Hospice</md-option><md-option value="Home Health">\nHome Health</md-option><md-option value="Home Care">Home Care</md-option><md-option value="Social Worker">Social Worker\n</md-option><md-option value="Private Duty">Private Duty</md-option><md-option value="Other">Other</md-option>\n</md-select></md-input-container><md-input-container class="md-block"><h4>Outside Agency</h4><md-button type="file" \nngf-select="vm.uploadFiles($file, $invalidFiles)" class="add-attachment-button" aria-label="add attachment" accept="*" \nngf-max-height="1000" ngf-max-size="3MB"><div layout="row" layout-align="start center"><i class="icon-plus s20"></i> \n<span>Assessment</span></div></md-button><h4 ng-if="vm.fileUploaded ">The file {{ vm.fileName }} has been uploaded!\n</h4></md-input-container><label>Uploaded files:</label><md-list><md-list-item \nng-repeat="file in vm.form.outsideAgencyFile track by $index"><p>{{ ::vm.formatFileName(file) }}</p></md-list-item>\n</md-list><md-input-container class="md-block"><md-checkbox ng-model="vm.form.easilyUnderstood" \naria-label="Easily Understood">Easily Understood</md-checkbox></md-input-container><md-input-container \nclass="md-block"><md-checkbox ng-model="vm.form.englishFirstLanguage" aria-label="English First Language">\nEnglish First Language</md-checkbox></md-input-container><md-input-container class="md-block"><label>Other Language\n</label><input ng-model="vm.form.otherLanguage" type="text"></md-input-container><md-input-container class="md-block">\n<md-checkbox ng-model="vm.form.heatingPad" aria-label="Heating Pad">Heating Pad</md-checkbox></md-input-container>\n<md-input-container class="md-block"><md-checkbox ng-model="vm.form.microwave" aria-label="Microwave">Microwave\n</md-checkbox></md-input-container><md-input-container class="md-block"><md-checkbox ng-model="vm.form.extensionCord" \naria-label="Extension Cord">Extension Cord</md-checkbox></md-input-container><md-input-container class="md-block">\n<label>Accessory Safety Assessment</label><input ng-model="vm.form.accessorySafetyAssessment" type="text">\n</md-input-container><md-input-container flex class="md-block textarea-container"><label>Notes</label><textarea \nng-model="vm.form.lifeNotes"></textarea></md-input-container></md-dialog-content><md-dialog-actions layout="row" \nlayout-align="space-between center"><div layout="row" layout-align="start start"><md-button \nng-click="vm.updateResident()" class="send-button md-accent md-raised" aria-label="Add">UPDATE</md-button></div><div \nng-include="\'app/main/residents/dialogs/update/footer.html\'"></div></md-dialog-actions></form></md-dialog>'),e.put("app/main/residents/dialogs/update/update-Mobility.html",'<md-dialog class="compose-dialog" aria-label="Update"><form class="md-inline-form"><div \nng-include="\'app/main/residents/dialogs/update/header.html\'"></div><md-dialog-content ms-scroll><h4>Inside Apartment\n</h4><md-input-container><label>Use of Assistive Device</label><md-select \nng-model="vm.form.insideApartment.useOfAssistiveDevice"><md-option value="No Device">No Device</md-option><md-option \nvalue="Walker">Walker</md-option><md-option value="Cane">Cane</md-option><md-option value="Wheelchair">Wheelchair\n</md-option><md-option value="Electric Wheelchair">Electric Wheelchair</md-option></md-select></md-input-container>\n<md-input-container class="md-block" ng-if="vm.form.insideApartment.useOfAssistiveDevice != \'No Device\'"><label>\nDevice Notes</label><textarea ng-model="vm.form.insideApartment.assitanceWithDevice"></textarea></md-input-container>\n<md-input-container class="md-block"><label>Special Ambulation Needs</label><textarea \nng-model="vm.form.insideApartment.specialAmbulationNeeds"></textarea></md-input-container><md-input-container \nclass="md-block"><md-checkbox ng-model="vm.form.insideApartment.transferPole" aria-label="Transfer Pole">Transfer Pole\n</md-checkbox></md-input-container><md-input-container class="md-block"><md-checkbox \nng-model="vm.form.insideApartment.liftReclinerChair" aria-label="Lift Recliner Chair">Lift Recliner Chair</md-checkbox>\n</md-input-container><md-input-container class="md-block"><md-checkbox ng-model="vm.form.insideApartment.transferLift" \naria-label="Transfer Lift">Transfer Lift</md-checkbox></md-input-container><md-input-container class="md-block">\n<md-checkbox ng-model="vm.form.insideApartment.sideRails" aria-label="Side Rails">Side Rails</md-checkbox>\n</md-input-container><md-input-container class="md-block"><label>Mobility Safety Assessment</label><input \nng-model="vm.form.insideApartment.mobilitySafetyAssessment" type="text"></md-input-container><h4>Outside Apartment</h4>\n<md-input-container><label>Use of Assistive Device</label><md-select \nng-model="vm.form.outsideApartment.useOfAssistiveDevice"><md-option value="No Device">No Device</md-option><md-option \nvalue="Walker">Walker</md-option><md-option value="Cane">Cane</md-option><md-option value="Wheelchair">Wheelchair\n</md-option><md-option value="Electric Wheelchair">Electric Wheelchair</md-option></md-select></md-input-container>\n<md-input-container class="md-block" ng-if="vm.form.outsideApartment.useOfAssistiveDevice != \'No Device\'"><label>\nAssitance with Device</label><textarea ng-model="vm.form.outsideApartment.assitanceWithDevice"></textarea>\n</md-input-container><md-input-container class="md-block"><label>Special Ambulation Needs</label><textarea \nng-model="vm.form.outsideApartment.specialAmbulationNeeds"></textarea></md-input-container><md-input-container><label>\nTransfers</label><md-select ng-model="vm.form.transfers"><md-option value="Standby">Standby</md-option><md-option \nvalue="Independent">Independent</md-option><md-option value="Full Assist">Full Assist</md-option><md-option \nvalue="Transfer Pole">Transfer Pole</md-option><md-option value="Gait Belt">Gait Belt</md-option></md-select>\n</md-input-container><md-input-container class="md-block" ng-if="vm.form.transfersDescribe != \'Independent\'"><label>\nTransfer Description</label><textarea ng-model="vm.form.transfersDescribe"></textarea></md-input-container>\n<md-input-container class="md-block"><md-checkbox ng-model="vm.form.fallRisk" aria-label="">Fall Risk</md-checkbox>\n</md-input-container><md-input-container ng-if="vm.form.fallRisk == true"><label>Fall Risk Desribe</label><md-select \nng-model="vm.form.fallRiskDescribe"><md-option value="Physical Limitations">Physical Limitations</md-option><md-option \nvalue="Medication Challenges">Medication Challenges</md-option><md-option value="Cognition">Cognition</md-option>\n<md-option value="Choice">Choice</md-option><md-option value="Other">Other</md-option></md-select></md-input-container>\n<md-input-container class="md-block"><md-checkbox ng-model="vm.form.bedReposition" aria-label="">Bed Reposition\n</md-checkbox></md-input-container><md-input-container class="md-block" ng-if="vm.form.bedReposition == true"><label>\nBed Reposition Explain</label><textarea ng-model="vm.form.bedRepositionExplain"></textarea></md-input-container>\n<md-input-container class="md-block" ng-if="vm.form.bedReposition == true"><label>Bed Reposition Outside Agency</label>\n<textarea ng-model="vm.form.bedRepositionOutsideAgency"></textarea></md-input-container><md-input-container \nclass="md-block"><md-checkbox ng-model="vm.form.twoPersonLift" aria-label="">Two Person Lift</md-checkbox>\n</md-input-container><md-input-container flex class="md-block textarea-container"><label>Notes</label><textarea \nng-model="vm.form.mobilityNotes"></textarea></md-input-container></md-dialog-content><md-dialog-actions layout="row" \nlayout-align="space-between center"><div layout="row" layout-align="start start"><md-button \nng-click="vm.updateResident()" class="send-button md-accent md-raised" aria-label="Add">UPDATE</md-button></div><div \nng-include="\'app/main/residents/dialogs/update/footer.html\'"></div></md-dialog-actions></form></md-dialog>'),e.put("app/main/residents/dialogs/update/update-Nutrition.html",'<md-dialog class="compose-dialog" aria-label="Update"><form class="md-inline-form"><div \nng-include="\'app/main/residents/dialogs/update/header.html\'"></div><md-dialog-content ms-scroll><div class="md-block">\n<label><span>Overall Nutrition : {{vm.replaceNumberValue(\'overallNutrition\', vm.form.overallNutrition)}}</span></label>\n<md-slider flex min="0" max="3" ng-model="vm.form.overallNutrition" aria-label="blue"></md-slider></div>\n<md-input-container ng-if="vm.form.overallNutrition == 1 || vm.form.overallNutrition == 0"><label>\nPoor Nutrition Describtion</label><md-select ng-model="vm.form.poorNutritionDescribe"><md-option value="Shake">Shake\n</md-option><md-option value="Bedtime Snack">Bedtime Snack</md-option><md-option value="Resident\'s Choice">\nResident\'s Choice</md-option></md-select></md-input-container><md-input-container class="md-block"><md-checkbox \nng-model="vm.form.diabetic" ng-hide="vm.showCancel" aria-label="Diabetic">Diabetic</md-checkbox></md-input-container>\n<md-input-container ng-if="vm.form.diabetic"><label>Diabetic Type</label><md-select ng-model="vm.form.diabeticType">\n<md-option value="Diet Controlled">Diet Controlled</md-option><md-option value="Medication Controlled">\nMedication Controlled</md-option><md-option value="Insulin Controlled">Insulin Controlled</md-option></md-select>\n</md-input-container><md-input-container class="md-block" ng-if="vm.form.diabetic"><md-checkbox \nng-model="vm.form.bloodSugarMonitoring" aria-label="Diabetic">Blood Sugar Monitoring</md-checkbox></md-input-container>\n<md-input-container class="md-block"><md-checkbox ng-model="vm.form.bedtimeSnack" aria-label="Bedtime Snack">\nBedtime Snack</md-checkbox></md-input-container><md-input-container><label>Adaptive Equipment</label><md-select \nng-model="vm.form.adaptiveEquipment"><md-option value="Plate Guard">Plate Guard</md-option><md-option \nvalue="Builtup Silverware">Builtup Silverware</md-option><md-option value="Special Cups">Special Cups</md-option>\n<md-option value="None">None</md-option></md-select></md-input-container><md-input-container><label>Type of Diet\n</label><md-select ng-model="vm.form.typeOfDiet"><md-option value="BRAT">BRAT</md-option><md-option \nvalue="Gluten free">Gluten free</md-option><md-option value="Full vegan">Full vegan</md-option><md-option \nvalue="Partial vegan">Partial vegan</md-option><md-option value="Lactose free">Lactose free</md-option><md-option \nvalue="Other">Other</md-option><md-option value="Regular">Regular</md-option></md-select></md-input-container>\n<md-input-container><label>Special Diet</label><md-select ng-model="vm.form.specialDiet"><md-option value="Pureed">\nPureed</md-option><md-option value="Ground">Ground</md-option><md-option value="Regular">Regular</md-option><md-option \nvalue="Soft">Soft</md-option><md-option value="Cut Up">Cut Up</md-option></md-select></md-input-container><br><label>\nFood Likes</label><md-chips ng-model="vm.foodLikes" md-separator-keys="vm.seperators" readonly="false" \nmd-on-add="vm.updateChip(vm.foodLikes, \'foodLikes\', $chip, \'add\')" \nmd-on-remove="vm.updateChip(vm.foodLikes, \'foodLikes\', $chip, \'remove\')" md-removable="true" \nplaceholder="Add new food"></md-chips><br><label>Food Dislikes</label><md-chips ng-model="vm.foodDislikes" \nmd-separator-keys="vm.seperators" readonly="false" \nmd-on-add="vm.updateChip(vm.foodDislikes, \'foodDislikes\', $chip, \'add\')" \nmd-on-remove="vm.updateChip(vm.foodDislikes, \'foodDislikes\', $chip, \'remove\')" md-removable="true" \nplaceholder="Add new food"></md-chips><md-input-container class="md-block"><md-checkbox ng-model="vm.form.fingerFoods" \nng-hide="vm.showCancel" aria-label="Needs Food In Small Peices">Finger Foods</md-checkbox></md-input-container>\n<md-input-container><label>Feed Assist</label><md-select ng-model="vm.form.feedAssist"><md-option value="Independent">\nIndependent</md-option><md-option value="Reminder">Reminder</md-option><md-option value="Partial assistance">\nPartial assistance</md-option><md-option value="Full assistance">Full assistance</md-option></md-select>\n</md-input-container><md-input-container class="md-block"><md-checkbox ng-model="vm.form.foodInRoom" \naria-label="Food In Room">Food In Room</md-checkbox></md-input-container><md-input-container class="md-block">\n<md-checkbox ng-model="vm.form.drinkInRoom" aria-label="Drink In Room">Drink In Room</md-checkbox></md-input-container>\n<md-input-container flex class="md-block textarea-container"><label>Notes</label><textarea \nng-model="vm.form.nutritionNotes"></textarea></md-input-container></md-dialog-content><md-dialog-actions layout="row" \nlayout-align="space-between center"><div layout="row" layout-align="start start"><md-button \nng-click="vm.updateResident()" class="send-button md-accent md-raised" aria-label="Add">UPDATE</md-button></div><div \nng-include="\'app/main/residents/dialogs/update/footer.html\'"></div></md-dialog-actions></form></md-dialog>'),e.put("app/main/residents/dialogs/update/update-Pain.html",'<md-dialog class="compose-dialog" aria-label="Update"><form class="md-inline-form"><div \nng-include="\'app/main/residents/dialogs/update/header.html\'"></div><md-dialog-content ms-scroll><md-input-container \nclass="md-block"><md-checkbox ng-model="vm.form.hasPain" ng-hide="vm.showCancel" aria-label="Has Pain">Has Pain\n</md-checkbox></md-input-container><md-input-container class="md-block" ng-if="vm.form.hasPain"><label>Pain Location\n</label><textarea ng-model="vm.form.painLocation"></textarea></md-input-container><md-input-container class="md-block" \nng-if="vm.form.hasPain"><label>Pain Description</label><textarea ng-model="vm.form.painDescription"></textarea>\n</md-input-container><div class="md-block" ng-if="vm.form.hasPain"><label>Pain Severity: {{ vm.form.painSeverity }}\n</label><md-slider flex min="0" max="10" ng-model="vm.form.painSeverity" aria-label="blue"></md-slider></div>\n<md-input-container class="md-block" ng-if="vm.form.hasPain"><label>Time of Max Pain</label><textarea \nng-model="vm.form.maxPainTime"></textarea></md-input-container><md-input-container class="md-block" \nng-if="vm.form.hasPain"><label>Pain Increased By</label><textarea ng-model="vm.form.maxPainTime"></textarea>\n</md-input-container><md-input-container ng-if="vm.form.hasPain"><h4>Manage Pain By (check all that apply)</h4>\n<md-checkbox ng-repeat="cure in vm.painManagedBy" ng-model="cure.active">{{ cure.title}}</md-checkbox>\n</md-input-container><div layout="row" layout-align="space-around center"><md-input-container ng-if="vm.form.hasPain">\n<label>How Long Endured Pain</label><md-select ng-model="vm.form.painLength"><md-option value="New Onset">New Onset\n</md-option><md-option value="Chronic">Chronic</md-option></md-select></md-input-container></div><md-input-container \nflex class="md-block textarea-container"><label>Notes</label><textarea ng-model="vm.form.painNotes"></textarea>\n</md-input-container></md-dialog-content><md-dialog-actions layout="row" layout-align="space-between center"><div \nlayout="row" layout-align="start start"><md-button ng-click="vm.updateResident()" \nclass="send-button md-accent md-raised" aria-label="Add">UPDATE</md-button></div><div \nng-include="\'app/main/residents/dialogs/update/footer.html\'"></div></md-dialog-actions></form></md-dialog>'),e.put("app/main/residents/dialogs/update/update-PhysicalCondition.html",'<md-dialog class="compose-dialog" aria-label="Update"><form class="md-inline-form"><div \nng-include="\'app/main/residents/dialogs/update/header.html\'"></div><md-tabs style="min-height: 400px"><md-tab \nlabel="Skin"><md-dialog-content ms-scroll><md-input-container><label>Skin Condition</label><md-select \nng-model="vm.form.skinCondition"><md-option value="Average">Average</md-option><md-option value="Tears easily">\nTears easily</md-option></md-select></md-input-container><md-input-container class="md-block"><md-checkbox \nng-model="vm.form.hasWound" ng-hide="vm.showCancel">Has Wound</md-checkbox></md-input-container><md-input-container \nclass="md-block" ng-if="vm.form.hasWound"><label>Wound Notes</label><textarea ng-model="vm.form.hasWoundDescribe">\n</textarea></md-input-container><md-input-container class="md-block" ng-if="vm.form.hasWound"><label>Wound Amount\n</label><input ng-model="vm.form.woundAmount" type="number"></md-input-container><md-input-container class="md-block">\n<md-checkbox ng-model="vm.form.skinBreakdown">Skin Breakdown</md-checkbox></md-input-container><md-input-container \nflex class="md-block textarea-container"><label>Skin Notes</label><textarea ng-model="vm.form.skinNotes"></textarea>\n</md-input-container></md-dialog-content></md-tab><md-tab label="Ears"><md-dialog-content ms-scroll><div layout="row" \nlayout-align="space-around center"><md-input-container><label>Left Ear</label><md-select ng-model="vm.form.leftEar">\n<md-option value="Adequate">Adequate</md-option><md-option value="Adequate with Aid">Adequate with Aid</md-option>\n<md-option value="Poor">Poor</md-option><md-option value="None">None</md-option></md-select></md-input-container>\n<md-input-container><label>Right Ear</label><md-select ng-model="vm.form.rightEar"><md-option value="Adequate">Adequate\n</md-option><md-option value="Adequate with Aid">Adequate with Aid</md-option><md-option value="Poor">Poor</md-option>\n<md-option value="None">None</md-option></md-select></md-input-container><md-input-container><label>Hearing Assist\n</label><md-select ng-model="vm.form.hearingAssist"><md-option value="Full">Full</md-option><md-option \nvalue="Independent">Independent</md-option><md-option value="Reminder">Reminder</md-option></md-select>\n</md-input-container></div><div class="md-block"><label>Hearing Ability: {{ vm.form.hearingAbility }}</label><md-slider\n flex min="0" max="10" ng-model="vm.form.hearingAbility" aria-label="blue"></md-slider></div><md-input-container \nclass="md-block"><md-checkbox ng-model="vm.form.wearsHearingAid" ng-hide="vm.showCancel">Wears Hearing Aid\n</md-checkbox></md-input-container><md-input-container class="md-block" ng-if="vm.form.wearsHearingAid"><md-checkbox \nng-model="vm.form.helpWithHearingAid" ng-hide="vm.showCancel">Help with Hearing Aid</md-checkbox></md-input-container>\n<md-input-container class="md-block" ng-if="vm.form.helpWithHearingAid"><label>Help With Hearing Aid Notes</label>\n<textarea ng-model="vm.form.helpWithHearingAidDescribe"></textarea></md-input-container><md-input-container \nclass="md-block"><label>Hearing Notes</label><textarea ng-model="vm.form.hearingNotes"></textarea></md-input-container>\n</md-dialog-content></md-tab><md-tab label="Eyes"><md-dialog-content ms-scroll><div layout="row" \nlayout-align="space-around center"><md-input-container><label>Vision Device</label><md-select \nng-model="vm.form.visionDevice"><md-option value="Glasses">Glasses</md-option><md-option value="Contacts">Contacts\n</md-option><md-option value="None">None</md-option></md-select></md-input-container><md-input-container><label>\nLeft Eye</label><md-select ng-model="vm.form.leftEye"><md-option value="Adequate">Adequate</md-option><md-option \nvalue="Adequate with Aid">Adequate with Aid</md-option><md-option value="Poor">Poor</md-option><md-option value="None">\nNone</md-option></md-select></md-input-container><md-input-container><label>Right Eye</label><md-select \nng-model="vm.form.rightEye"><md-option value="Adequate">Adequate</md-option><md-option value="Adequate with Aid">\nAdequate with Aid</md-option><md-option value="Poor">Poor</md-option><md-option value="None">None</md-option>\n</md-select></md-input-container></div><div class="md-block"><label>Vision Ability: {{ vm.form.visionAbility }}</label>\n<md-slider flex min="0" max="10" ng-model="vm.form.visionAbility" aria-label="blue"></md-slider></div>\n<md-input-container><label>Vision Assist</label><md-select ng-model="vm.form.visionAssist"><md-option value="Full">Full\n</md-option><md-option value="Independent">Independent</md-option><md-option value="Reminder">Reminder</md-option>\n<md-option value="None">None</md-option></md-select></md-input-container><md-input-container class="md-block"><label>\nVision Notes</label><textarea ng-model="vm.form.visionNotes"></textarea></md-input-container></md-dialog-content>\n</md-tab><md-tab label="Teeth"><md-dialog-content ms-scroll><md-input-container class="md-block"><label>Dentist\'s Name\n</label><input ng-model="vm.form.dentistName" type="text"></md-input-container><div class="md-block"><label>\nTeeth Condition: {{ vm.form.teethCondition }}</label><md-slider flex min="0" max="10" \nng-model="vm.form.teethCondition" aria-label="blue"></md-slider></div><div class="md-block"><label><span>\nTeeth Care: {{vm.replaceNumberValue(\'teethCare\', vm.form.teethCare)}}</span></label><md-slider flex min="0" max="4" \nng-model="vm.form.teethCare" aria-label="blue"></md-slider></div><md-input-container \nng-if="vm.form.teethCare === 3 || vm.form.teethCare === 4" class="md-block"><label>Teeth Care Notes</label><textarea \nng-model="vm.form.teethCareDescribe"></textarea></md-input-container><div layout="row" \nlayout-align="space-around center"><md-input-container><label>Teeth Assist</label><md-select \nng-model="vm.form.teethAssist"><md-option value="Full">Full</md-option><md-option value="Independent">Independent\n</md-option><md-option value="Reminder">Reminder</md-option></md-select></md-input-container><md-input-container>\n<label>Upper Teeth</label><md-select ng-model="vm.form.upperTeeth"><md-option value="Has Own">Has Own</md-option>\n<md-option value="Has Dentures">Has Dentures</md-option><md-option value="Has Partia">Has Partial</md-option><md-option\n value="No Teeth">No Teeth</md-option></md-select></md-input-container><md-input-container><label>Lower Teeth</label>\n<md-select ng-model="vm.form.lowerTeeth"><md-option value="Has Own">Has Own</md-option><md-option value="Has Dentures">\nHas Dentures</md-option><md-option value="Has Partia">Has Partial</md-option><md-option value="No Teeth">No Teeth\n</md-option></md-select></md-input-container></div><md-input-container flex class="md-block textarea-container"><label>\nTeeth Notes</label><textarea ng-model="vm.form.teethNotes"></textarea></md-input-container></md-dialog-content>\n</md-tab><md-tab label="Oxygen"><md-dialog-content ms-scroll><div layout="row" layout-align="space-around center">\n<md-input-container class="md-block"><md-checkbox ng-model="vm.form.oxygen" aria-label="Oxygen">Oxygen</md-checkbox>\n</md-input-container><md-input-container ng-if="vm.form.oxygen == true"><label>Oxygen Type</label><md-select \nng-model="vm.form.oxygenType"><md-option value="Liquid">Liquid</md-option><md-option value="Concentrate">Concentrate\n</md-option><md-option value="Concentrate">Canister</md-option></md-select></md-input-container><md-input-container \nng-if="vm.form.oxygen == true"><label>Oxygen Flow</label><md-select ng-model="vm.form.oxygenFlow"><md-option \nvalue="Continuous Flow">Continuous Flow</md-option><md-option value="Helios">Helios</md-option></md-select>\n</md-input-container></div></md-dialog-content></md-tab><md-tab label="Infection"><md-dialog-content ms-scroll>\n<md-input-container class="md-block"><md-checkbox ng-model="vm.form.urinaryTractInfectionRisk" \naria-label="Urinary Tract Infection Risk">Urinary Tract Infection Risk</md-checkbox></md-input-container>\n<md-input-container class="md-block"><md-checkbox ng-model="vm.form.upperRespiratoryInfectionRisk" \naria-label="Upper Respiratory Infection Risk">Upper Respiratory Infection Risk</md-checkbox></md-input-container>\n<md-input-container class="md-block"><md-checkbox ng-model="vm.form.methicillinResistantStaphylococcusAureusRisk" \naria-label="Methicillin Resistant Staphylococcus Aureus Risk">Methicillin Resistant Staphylococcus Aureus Risk\n</md-checkbox></md-input-container><md-input-container class="md-block"><md-checkbox \nng-model="vm.form.vancomycinResistantEnterococcusRisk" aria-label="Vancomycin Resistant Enterococcus Risk">\nVancomycin Resistant Enterococcus Risk</md-checkbox></md-input-container><md-input-container class="md-block">\n<md-checkbox ng-model="vm.form.shinglesRisk" aria-label="Shingles Risk">Shingles Risk</md-checkbox>\n</md-input-container><md-input-container class="md-block"><md-checkbox ng-model="vm.form.pneumoniaRisk" \naria-label="Pneumonia Risk">Pneumonia Risk</md-checkbox></md-input-container><md-input-container flex \nclass="md-block textarea-container"><label>Notes</label><textarea ng-model="vm.form.physicalNotes"></textarea>\n</md-input-container></md-dialog-content></md-tab><md-tab label="Medications"><md-dialog-content ms-scroll>\n<md-input-container><label>Medications</label><md-select ng-model="vm.form.medications"><md-option \nvalue="Care Giver Provides">Care Giver Provides</md-option><md-option value="Self Meds">Self Meds</md-option><md-option\n value="No Meds">No Meds</md-option></md-select></md-input-container><div layout="row" layout-align="space-around end">\n</div><div layout="row" layout-align="space-around center"><md-input-container class="md-block"><md-checkbox \nng-model="vm.form.medsAtBedside" aria-label="Meds At Bedside">Meds At Bedside</md-checkbox></md-input-container>\n<md-input-container class="md-block"><md-checkbox ng-model="vm.form.swallowAssist" aria-label="Swallow Assist">\nSwallow Assist</md-checkbox></md-input-container><md-input-container class="md-block"><md-checkbox \nng-model="vm.form.chemotherapy" aria-label="Chemotherapy">Chemotherapy</md-checkbox></md-input-container>\n<md-input-container class="md-block"><md-checkbox ng-model="vm.form.dialysis" aria-label="Dialysis">Dialysis\n</md-checkbox></md-input-container><md-input-container class="md-block"><md-checkbox ng-model="vm.form.marijuana" \naria-label="Marijuana">Marijuana</md-checkbox></md-input-container></div></md-dialog-content></md-tab></md-tabs>\n<md-dialog-actions layout="row" layout-align="space-between center"><div layout="row" layout-align="start start">\n<md-button ng-click="vm.updateResident()" class="send-button md-accent md-raised" aria-label="Add">UPDATE</md-button>\n</div><div ng-include="\'app/main/residents/dialogs/update/footer.html\'"></div></md-dialog-actions></form></md-dialog>'),
  e.put("app/main/residents/dialogs/update/update-Psychosocial.html",'<md-dialog class="compose-dialog" aria-label="Update"><form class="md-inline-form"><div \nng-include="\'app/main/residents/dialogs/update/header.html\'"></div><md-dialog-content ms-scroll><div layout="column" \nlayout-align="start start"><h4>Psychosocial Status (check all that apply)</h4><md-checkbox \nng-repeat="status in vm.status" ng-model="status.active">{{ status.title}}</md-checkbox></div><md-input-container \nclass="md-block"><label>Psychosocial Status Notes</label><textarea ng-model="vm.form.psychosocialStatusDescribe">\n</textarea></md-input-container><div class="md-block"><label><span>\nComprehension : {{vm.replaceNumberValue(\'comprehension\', vm.form.comprehension)}}</span></label><md-slider flex \nmin="0" max="2" ng-model="vm.form.comprehension" aria-label="blue"></md-slider></div><md-input-container \nclass="md-block"><md-checkbox ng-model="vm.form.sunDowner">Sundowner</md-checkbox></md-input-container>\n<md-input-container class="md-block" ng-if="vm.form.sunDowner == true"><label>Sundowner Notes</label><textarea \nng-model="vm.form.sunDownerExplain"></textarea></md-input-container><md-input-container class="md-block"><md-checkbox \nng-model="vm.form.wanderer">Wanderer</md-checkbox></md-input-container><md-input-container class="md-block">\n<md-checkbox ng-model="vm.form.anxiety">Anxiety</md-checkbox></md-input-container><md-input-container class="md-block" \nng-if="vm.form.anxiety == true"><md-checkbox ng-model="vm.form.antipsychoticMeds">Antipsychotic Meds</md-checkbox>\n</md-input-container><md-input-container class="md-block"><md-checkbox ng-model="vm.form.smokes" \nng-hide="vm.showCancel" aria-label="Smokes">Smokes</md-checkbox></md-input-container><md-input-container \nclass="md-block" ng-if="vm.form.smokes"><label>Smoking Notes</label><textarea ng-model="vm.form.smokesDescribe">\n</textarea></md-input-container><md-input-container class="md-block"><md-checkbox ng-model="vm.form.alcohol" \nng-hide="vm.showCancel">Alcohol</md-checkbox></md-input-container><md-input-container class="md-block" \nng-if="vm.form.alcohol"><md-checkbox ng-model="vm.form.alcoholInRoom" ng-hide="vm.showCancel">Alcohol in Room\n</md-checkbox></md-input-container><md-input-container class="md-block" ng-if="vm.form.alcohol"><label>Alcohol Notes\n</label><textarea ng-model="vm.form.alcoholDescribes"></textarea></md-input-container><md-input-container \nclass="md-block"><md-checkbox ng-model="vm.form.sexualActive" ng-hide="vm.showCancel" aria-label="Smokes">Sexual Active\n</md-checkbox></md-input-container><md-input-container class="md-block" ng-if="vm.form.sexualActive"><label>\nSexual Activity Notes</label><textarea ng-model="vm.form.sexualActiveDescribe"></textarea></md-input-container>\n<md-input-container class="md-block"><label>Other Habits</label><textarea ng-model="vm.form.otherHabits"></textarea>\n</md-input-container><div class="md-block"><label><span>\nGeneral Activity Participation : {{vm.replaceNumberValue(\'generalActivityParticipation\', vm.form.generalActivityParticipation)}}\n</span></label><md-slider flex min="0" max="3" ng-model="vm.form.generalActivityParticipation" aria-label="blue">\n</md-slider></div><div class="md-block"><label><span>\nDining Room Participation : {{vm.replaceNumberValue(\'diningRoomParticipation\', vm.form.diningRoomParticipation)}}\n</span></label><md-slider flex min="0" max="3" ng-model="vm.form.diningRoomParticipation" aria-label="blue">\n</md-slider></div><div class="md-block"><label><span>\nBus Ride Participation : {{vm.replaceNumberValue(\'busRideParticipation\', vm.form.busRideParticipation)}}</span></label>\n<md-slider flex min="0" max="3" ng-model="vm.form.busRideParticipation" aria-label="blue"></md-slider></div><div \nclass="md-block"><label><span>\nFitness Class Participation : {{vm.replaceNumberValue(\'fitnessClassParticipation\', vm.form.fitnessClassParticipation)}}\n</span></label><md-slider flex min="0" max="3" ng-model="vm.form.fitnessClassParticipation" aria-label="blue">\n</md-slider></div><div class="md-block"><label><span>\nBingo Participation : {{vm.replaceNumberValue(\'bingoParticipation\', vm.form.bingoParticipation)}}</span></label>\n<md-slider flex min="0" max="3" ng-model="vm.form.bingoParticipation" aria-label="blue"></md-slider></div><div \nclass="md-block"><label><span>\nCommunity Participation : {{vm.replaceNumberValue(\'communityParticipation\', vm.form.communityParticipation)}}</span>\n</label><md-slider flex min="0" max="3" ng-model="vm.form.communityParticipation" aria-label="blue"></md-slider></div>\n<md-input-container class="md-block"><label>Time in Room</label><md-select ng-model="vm.form.timeInRoom"><md-option \nvalue="Reading Books">Reading Books</md-option><md-option value="TV">TV</md-option><md-option value="Games">Games\n</md-option><md-option value="Hobby">Hobby</md-option><md-option value="Computer">Computer</md-option><md-option \nvalue="Radio">Radio</md-option><md-option value="Other">Other</md-option></md-select></md-input-container>\n<md-input-container class="md-block"><md-checkbox ng-model="vm.form.volunteer" aria-label="Volunteer">Volunteer\n</md-checkbox></md-input-container><md-input-container class="md-block"><md-checkbox ng-model="vm.form.drivesCar" \nng-hide="vm.showCancel" aria-label="Smokes">Has Car</md-checkbox></md-input-container><md-input-container \nclass="md-block" ng-if="vm.form.drivesCar"><label>License Plate Number</label><input \nng-model="vm.form.licensePlateNumber" type="number"></md-input-container><md-input-container class="md-block" \nng-if="vm.form.drivesCar"><label>Spare Key Location</label><input ng-model="vm.form.spareKeyLocation" type="text">\n</md-input-container><md-input-container class="md-block" ng-if="vm.form.drivesCar"><label>Driving Needs</label><input \nng-model="vm.form.drivingNeeds" type="text"></md-input-container><md-input-container><label>Preferred Activites</label>\n<input ng-model="vm.form.preferedActivites" type="text"></md-input-container><md-input-container class="md-block">\n<md-checkbox ng-model="vm.form.useFitnessEquipmentIndependently" aria-label="Smokes">\nUses Fitness Equipment Independently</md-checkbox></md-input-container><md-input-container class="md-block"><label>\nHigh Maintenance: {{ vm.form.highMaintenance }}</label><md-slider flex min="0" max="100" \nng-model="vm.form.highMaintenance" aria-label="blue"></md-slider></md-input-container><md-input-container><label>\nHigh Maintenance Describe</label><input ng-model="vm.form.highMaintenanceDescribe" type="text"></md-input-container>\n<md-input-container><label>Family Involvement</label><md-select ng-model="vm.form.familyInvolvement"><md-option>None\n</md-option><md-option>Some</md-option><md-option>Frequent</md-option></md-select></md-input-container>\n<md-input-container flex class="md-block textarea-container"><label>Notes</label><textarea \nng-model="vm.form.psychosocialNotes"></textarea></md-input-container><div class="md-block"><label><span>\nDementia : {{vm.replaceNumberValue(\'dementia\', vm.form.dementia)}}</span></label><md-slider flex min="0" max="3" \nng-model="vm.form.dementia" aria-label="blue"></md-slider></div></md-dialog-content><md-dialog-actions layout="row" \nlayout-align="space-between center"><div layout="row" layout-align="start start"><md-button \nng-click="vm.updateResident()" class="send-button md-accent md-raised" aria-label="Add">UPDATE</md-button></div><div \nng-include="\'app/main/residents/dialogs/update/footer.html\'"></div></md-dialog-actions></form></md-dialog>'),e.put("app/main/residents/dialogs/update/update-Sleep.html",'<md-dialog class="compose-dialog" aria-label="Update"><form class="md-inline-form"><div \nng-include="\'app/main/residents/dialogs/update/header.html\'"></div><md-dialog-content ms-scroll><div layout="row" \nlayout-align="space-around center"><md-input-container><label>Usual Arising Time</label><input \nng-model="vm.form.usualArisingTime" type="text"></md-input-container><md-input-container><label>Usual Bedtime</label>\n<input ng-model="vm.form.usualBedtime" type="text"></md-input-container></div><md-input-container class="md-block">\n<md-checkbox ng-model="vm.form.nap" ng-hide="vm.showCancel" aria-label="Nap">Nap</md-checkbox></md-input-container>\n<md-input-container class="md-block" ng-if="vm.form.nap"><label>Nap Notes</label><textarea \nng-model="vm.form.napDescribe"></textarea></md-input-container><md-input-container><label>Assistance to Bed</label>\n<md-select ng-model="vm.form.assistanceToBed"><md-option value="Medication">Medication</md-option><md-option \nvalue="Positioning">Positioning</md-option><md-option value="Pillows">Pillows</md-option><md-option value="Drink">Drink\n</md-option><md-option value="Alcohol">Alcohol</md-option><md-option value="Hot Tea">Hot Tea</md-option><md-option \nvalue="Warm Milk">Warm Milk</md-option><md-option value="Other">Other</md-option></md-select></md-input-container>\n<md-input-container class="md-block"><md-checkbox ng-model="vm.form.sleepsThroughNight" ng-hide="vm.showCancel" \naria-label="Sleeps Through Night">Cannot Sleep Through Night</md-checkbox></md-input-container><md-input-container \nclass="md-block" ng-if="vm.form.sleepsThroughNight"><md-checkbox ng-model="vm.form.canCallForAssistance" \naria-label="Sleeps Through Night">Can Call for Assistance</md-checkbox></md-input-container><md-input-container flex \nclass="md-block textarea-container"><label>Notes</label><textarea ng-model="vm.form.sleepNotes"></textarea>\n</md-input-container></md-dialog-content><md-dialog-actions layout="row" layout-align="space-between center"><div \nlayout="row" layout-align="start start"><md-button ng-click="vm.updateResident()" \nclass="send-button md-accent md-raised" aria-label="Add">UPDATE</md-button></div><div \nng-include="\'app/main/residents/dialogs/update/footer.html\'"></div></md-dialog-actions></form></md-dialog>'),e.put("app/main/residents/dialogs/update/update-Vitals.html",'<md-dialog class="compose-dialog" aria-label="Update"><form class="md-inline-form"><div \nng-include="\'app/main/residents/dialogs/update/header.html\'"></div><md-dialog-content ms-scroll><md-input-container \nclass="md-block"><label>Temperature (In {{ vm.community.tempUnit }})</label><input \nng-model="vm.form.newtemperature.data" type="number"><div ng-messages=""><div \nng-if="!vm.isNumber(vm.form.newtemperature.data)">Must be a Number</div></div></md-input-container><md-input-container \nclass="md-block"><label>Blood Pressure Systolic</label><input ng-model="vm.form.newbloodPressureSystolic.data" \ntype="number"><div ng-messages=""><div ng-if="!vm.isNumber(vm.form.newbloodPressureSystolic.data)">Must be a Number\n</div></div></md-input-container><md-input-container class="md-block"><label>Blood Pressure Diastolic</label><input \nng-model="vm.form.newbloodPressureDiastolic.data" type="number"><div ng-messages=""><div \nng-if="!vm.isNumber(vm.form.newbloodPressureDiastolic.data)">Must be a Number</div></div></md-input-container>\n<md-input-container class="md-block"><label>Oxygen Saturation</label><input \nng-model="vm.form.newoxygenSaturation.data" type="number"><div ng-messages=""><div \nng-if="!vm.isNumber(vm.form.newoxygenSaturation.data)">Must be a Number</div></div></md-input-container>\n<md-input-container class="md-block"><label>Pulse</label><input ng-model="vm.form.newpulse.data" type="number"><div \nng-messages=""><div ng-if="!vm.isNumber(vm.form.newpulse.data)">Must be a Number</div></div></md-input-container>\n<md-input-container class="md-block"><label>Vitals Pain</label><input ng-model="vm.form.newvitalsPain.data" \ntype="number"><div ng-messages=""><div ng-if="!vm.isNumber(vm.form.newvitalsPain.data)">Must be a Number</div></div>\n</md-input-container><md-input-container class="md-block"><label>Respiration</label><input \nng-model="vm.form.newrespiration.data" type="number"><div ng-messages=""><div \nng-if="!vm.isNumber(vm.form.newrespiration.data)">Must be a Number</div></div></md-input-container><md-input-container \nclass="md-block"><label>Weight (In {{ vm.community.weightUnit }})</label><input ng-model="vm.form.newweight.data" \ntype="number"><div ng-messages=""><div ng-if="!vm.isNumber(vm.form.newweight.data)">Must be a Number</div></div>\n</md-input-container><md-input-container class="md-block"><md-checkbox ng-model="vm.form.tracksINR" \nng-hide="vm.showCancel">Tracks INR</md-checkbox></md-input-container><div layout="row" \nlayout-align="space-around center"><md-input-container ng-if="vm.form.tracksINR"><label>How Often</label><md-select \nng-model="vm.form.howOftenINR"><md-option value="Daily">Daily</md-option><md-option value="Weekly">Weekly</md-option>\n<md-option value="Monthly">Monthly</md-option><md-option value="Yearly">Yearly</md-option></md-select>\n</md-input-container><md-input-container ng-if="vm.form.tracksINR"><label>By Whom</label><md-select \nng-model="vm.form.byWhomINR"><md-option value="Self">Self</md-option><md-option value="Clinic">Clinic</md-option>\n<md-option value="Outside Agency">Outside Agency</md-option></md-select></md-input-container></div><md-input-container \nclass="md-block" ng-if="vm.form.tracksINR"><label>INR Value</label><input \nng-model="vm.form.newinternationalNormalizedRatio.data" type="number"><div ng-messages=""><div \nng-if="!vm.isNumber(vm.form.newinternationalNormalizedRatio.data)">Must be a Number</div></div></md-input-container>\n</md-dialog-content><md-dialog-actions layout="row" layout-align="space-between center"><div layout="row" \nlayout-align="start start"><md-button ng-click="vm.updateResident()" class="send-button md-accent md-raised" \naria-label="Add">UPDATE</md-button></div></md-dialog-actions></form></md-dialog>'),e.put("app/main/residents/sidenavs/main/main-sidenav.html",'<div class="header" layout="column" layout-align="space-between start"><div class="logo" layout="row" \nlayout-align="start center"><span class="logo-icon"><md-icon md-font-icon="icon-home" class="icon"></md-icon></span>\n<span class="logo-text">Residents</span></div><div class="logo" layout="row" layout-align="space-between center"><span \nclass="logo-icon"><md-icon md-font-icon="icon-account-plus" class="icon"></md-icon></span><md-button class="md-raised" \naria-label="compose" id="add-resident" ng-click="vm.composeDialog($event)">Add Resident</md-button></div></div>\n<md-content ms-scroll class="content" flex><div class="navigation-simple" layout="column"><md-button \nng-click="vm.switchCategory(category)" \nng-class="vm.selectedCategory == category ? \'md-raised md-primary\' : \'md-primary\'" class="item" aria-label="inbox" \nng-repeat="category in vm.categoryList"><div layout="row" layout-align="start center"><md-icon \nmd-font-icon="icon-inbox" class="s16"></md-icon><span class="title" flex>{{ category }}</span></div></md-button></div>\n</md-content>'),e.put("app/main/residents/views/details/administartive.html",'<div ng-if="vm.selectedResident === null"><h3>Select a resident to view details</h3></div><div \nng-if="vm.selectedResident !== null"><div class="mail-header"><div class="subject" flex>{{vm.selectedCategory}}</div>\n</div><div class="mail-content"><div class="info" layout="row" layout-align="space-between start"><div layout="column" \nlayout-align="start start"><h4>First Name: {{ vm.selectedResident.firstName }}</h4><h4>\nPrefered Name: {{ vm.selectedResident.aliasName }}</h4><h4>Middle Name: {{ vm.selectedResident.middleName }}</h4><h4>\nMaiden Name: {{ vm.selectedResident.maidenName }}</h4><h4>Last Name: {{ vm.selectedResident.lastName }}</h4><h4>\nRoom Number: {{ vm.selectedResident.room }}</h4><h4>Veteran: {{ vm.selectedResident.veteran }}</h4><h4>\nSocial Security Number: {{ vm.selectedResident.socialSecurityNumber }}</h4><h4>\nMarital Status: {{ vm.selectedResident.maritalStatus }}</h4><h4>\nDate of Birth: {{ vm.selectedResident.birthDate | date }}</h4><h4>\nAdmission Date: {{ vm.selectedResident.admissionDate | date }}</h4><h4>Sex: {{ vm.selectedResident.sex }}</h4><h4>\nBuilding Status: {{ vm.selectedResident.buildingStatus }}</h4><h4>Care Points: {{ vm.selectedResident.carePoints }}\n</h4><h4>Handles Finances: {{ vm.handlesFinances }}</h4><h4>\nAssessment Interval : {{vm.replaceNumberValue(\'assessmentInterval\', vm.selectedResident.assessmentInterval)}}</h4><h4>\nMoved from: {{ vm.selectedResident.movedFrom.name }}</h4><h4>Admitted From: {{ vm.selectedResident.admittedFrom }}</h4>\n<h4>Full Code: {{vm.selectedResident.fullCode}}</h4><h4>Primary Doctor: {{vm.selectedResident.primaryDoctor}}</h4><h4>\nPharmacy: {{vm.selectedResident.pharmacy}}</h4><h4>\nLong Term Care Insurance: {{vm.selectedResident.longTermCareInsurance}}</h4><h4>\nReceiveing Long Term Care Insurance: {{vm.selectedResident.receiveingLongTermCareInsurance}}</h4><h4>\nAppointment Coordination: {{vm.selectedResident.appointmentCoordination}}</h4><h4>\nCommunicated With Resident: {{vm.selectedResident.communicatedWithResident}}</h4><h4>\nCommunicated With Primary Contact: {{vm.selectedResident.communicatedWithPrimaryContact}}</h4><h4>\nCommunicated With Trusted Person: {{vm.selectedResident.communicatedWithTrustedPerson}}</h4><h4>\nNotes: {{ vm.selectedResident.administrativeNotes }}</h4><ui-gmap-google-map ng-if="vm.latitude !== -1" \ncenter="vm.movedFromMap.center" zoom="vm.movedFromMap.zoom"><ui-gmap-marker coords="vm.movedFromMap.marker.coords" \nidkey="vm.movedFromMap.marker.id"></ui-gmap-marker></ui-gmap-google-map></div></div></div></div>'),e.put("app/main/residents/views/details/allergy.html",'<div ng-if="vm.selectedResident === null"><h3>Select a resident to view details</h3></div><div \nng-if="vm.selectedResident !== null"><div class="mail-header"><div class="subject" flex>{{vm.selectedCategory}}</div>\n</div><div class="mail-content"><div class="info" layout="row" layout-align="space-between start"><div layout="column" \nlayout-align="start start"><h4>Food Allergies:<md-chips ng-model="vm.selectedResident.foodAllergies" readonly="true">\n</md-chips></h4><h4>Medication Allergies:<md-chips ng-model="vm.selectedResident.medicationAllergies" readonly="true">\n</md-chips></h4><h4>Other Allergies:<md-chips ng-model="vm.selectedResident.otherAllergies" readonly="true"></md-chips>\n</h4><h4>Notes: {{ vm.selectedResident.allergyNotes }}</h4></div></div></div></div>'),e.put("app/main/residents/views/details/assistance.html",'<div ng-if="vm.selectedResident === null"><h3>Select a resident to view details</h3></div><div \nng-if="vm.selectedResident !== null"><div class="mail-header"><div class="subject" flex>{{vm.selectedCategory}}</div>\n</div><div class="mail-content"><div class="info" layout="row" layout-align="space-between start"><div layout="column" \nlayout-align="start start"><h4>Hair Assist: {{vm.selectedResident.hairAssist}}</h4><h4>\nBarber: {{vm.selectedResident.barber}}</h4><h4>Shave Assist: {{vm.selectedResident.shaveAssist}}</h4><h4>\nHair Notes: {{vm.selectedResident.hairNotes}}</h4><h4>Finger Nails Assist: {{vm.selectedResident.fingerNailsAssist}}\n</h4><h4>Toe Nails Assist: {{vm.selectedResident.toeNailsAssist}}</h4><h4>\nMakeup Assist: {{vm.selectedResident.makeupAssist}}</h4><h4>Jewelry Assist: {{vm.selectedResident.jewelryAssist}}</h4>\n<h4>Lotion Assist: {{vm.selectedResident.lotionAssist}}</h4><h4>Layout Cloths: {{vm.selectedResident.layoutCloths}}\n</h4><h4>Shoes Assist: {{vm.selectedResident.shoesAssist}}</h4><h4>Top Assist: {{vm.selectedResident.topAssist}}</h4>\n<h4>Bottom Assist: {{vm.selectedResident.bottomAssist}}</h4><h4>Button Assist: {{vm.selectedResident.buttonAssist}}\n</h4><h4>Zipper Assist: {{vm.selectedResident.zipperAssist}}</h4><h4>\nDressing Notes: {{vm.selectedResident.dressingNotes}}</h4><h4>\nCompression Stockings Assist: {{vm.selectedResident.compressionStockingsAssist}}</h4><h4>\nBrace: {{vm.selectedResident.brace}}</h4><h4>Brace Assist: {{vm.selectedResident.braceAssist}}</h4><h4>\nBrace Describe: {{vm.selectedResident.braceDescribe}}</h4><h4>Bed Assist: {{vm.selectedResident.bedAssist}}</h4><h4>\nBed Assist Describe: {{ vm.selectedResident.bedAssistDescribe }}</h4></div></div></div></div>'),e.put("app/main/residents/views/details/bathing.html",'<div ng-if="vm.selectedResident === null"><h3>Select a resident to view details</h3></div><div \nng-if="vm.selectedResident !== null"><div class="mail-header"><div class="subject" flex>{{vm.selectedCategory}}</div>\n</div><div class="mail-content"><div class="info" layout="row" layout-align="space-between start"><div layout="column" \nlayout-align="start start"><h4>Type of Bathing: {{ vm.selectedResident.typeOfBathing }}</h4><h4>\nTime of Bathing: {{ vm.selectedResident.timeOfBathing }}</h4><h4>\nFrequency of Bathing : {{vm.replaceNumberValue(\'frequencyOfBathing\', vm.selectedResident.frequencyOfBathing)}}</h4><h4>\nAcceptance of Bathing: {{ vm.selectedResident.acceptanceOfBathing }}</h4><h4>Bathing Days:<md-chips \nng-model="vm.selectedResident.bathingDays" readonly="true"></md-chips></h4><h4 \nng-if="vm.selectedResident.acceptanceOfBathing == \'Dislikes\'">\nWhy Dislikes Bathing: {{ vm.selectedResident.dislikesBathingDescribe }}</h4><h4>\nBathing Assist: {{vm.selectedResident.bathingAssist}}</h4><h4>Notes: {{ vm.selectedResident.bathingNotes }}</h4></div>\n</div></div></div>'),e.put("app/main/residents/views/details/contacts.html",'<div ng-if="vm.selectedResident === null"><h3>Select a resident to view details</h3></div><div \nng-if="vm.selectedResident !== null"><div class="mail-header"><div class="subject" flex>{{vm.selectedCategory}}</div>\n</div><div class="mail-content"><div class="info" layout="row" layout-align="space-between start"><div layout="column" \nlayout-align="start start"><section layout="row" layout-sm="column" layout-align="center center" \nstyle="background-color:#039BE5" layout-wrap><md-button ng-repeat="contact in vm.selectedResident.residentContacts" \nng-click="vm.shownContact = contact" \nng-class="vm.shownContact.firstName == contact.firstName ? \'md-raised md-primary\' : \'md-primary\'">{{contact.firstName}}\n</md-button></section><h4>First name : {{ vm.shownContact.firstName }}</h4><h4>\nLast name : {{ vm.shownContact.lastName }}</h4><h4>Primary phone number : {{ vm.shownContact.primaryPhoneNumber }}</h4>\n<h4>Secondary phone number : {{ vm.shownContact.secondaryPhoneNumber }}</h4><h4>Email : {{ vm.shownContact.email }}\n</h4><h4>Primary Contact : {{ vm.shownContact.primaryContact }}</h4><h4>\nTrusted Person : {{ vm.shownContact.trustedPerson }}</h4><h4>\nMedical Power Of Attorney : {{ vm.shownContact.medicalPowerOfAttorney }}</h4><h4>\nFinancial Power Of Attorney : {{ vm.shownContact.financialPowerOfAttorney }}</h4><h4>\nConservator : {{ vm.shownContact.conservator }}</h4><h4>Guardian : {{ vm.shownContact.guardian }}</h4><h4>\nPhysical Address : {{ vm.shownContact.physicalAddress.name || vm.shownContact.physicalAddress}}</h4><h4>\nRelation : {{ vm.shownContact.relation }}</h4><h4>Contact Notes : {{ vm.shownContact.contactNotes }}</h4></div></div>\n</div></div>'),e.put("app/main/residents/views/details/incontinent.html",'<div ng-if="vm.selectedResident === null"><h3>Select a resident to view details</h3></div><div \nng-if="vm.selectedResident !== null"><div class="mail-header"><div class="subject" flex>{{vm.selectedCategory}}</div>\n</div><div class="mail-content"><div class="info" layout="row" layout-align="space-between start"><div layout="column" \nlayout-align="start start"><h4>Continent Independent : {{ vm.selectedResident.continentIndependent}}</h4><h4>\nColostomy : {{ vm.selectedResident.colostomy}}</h4><h4>\nBowel Continent : {{vm.replaceNumberValue(\'bowelContinent\', vm.selectedResident.bowelContinent)}}</h4><h4>\nConstipated : {{vm.replaceNumberValue(\'constipated\', vm.selectedResident.constipated)}}</h4><h4>\nLaxative: {{vm.selectedResident.laxative}}</h4><h4>\nBladder Continent : {{vm.replaceNumberValue(\'bladderContinent\', vm.selectedResident.bladderContinent)}}</h4><h4>\nDribbles : {{vm.replaceNumberValue(\'dribbles\', vm.selectedResident.dribbles)}}</h4><h4>\nUrostomy: {{vm.selectedResident.urostomy}}</h4><h4>Catheter : {{ vm.selectedResident.catheter }}</h4><h4 \nng-if="vm.selectedResident.catheter">Describe Catheter : {{ vm.selectedResident.catheterDescribe }}</h4><h4>\nToileting Device : {{ vm.selectedResident.toiletingDevice }}</h4><h4>\nIncontinent Apparel: {{vm.selectedResident.incontinentApparel}}</h4><h4>\nIncontinent Apparel Assist: {{vm.selectedResident.incontinentApparelAssist}}</h4><h4>\nToilet Transfer: {{vm.selectedResident.toiletTransfer}}</h4><h4>\nToileting Assist: {{vm.selectedResident.toiletingAssist}}</h4><h4>\nToileting Reminder: {{vm.selectedResident.toiletingReminder}}</h4><h4>Notes: {{ vm.selectedResident.continentNotes }}\n</h4></div></div></div></div>'),e.put("app/main/residents/views/details/life.html",'<div ng-if="vm.selectedResident === null"><h3>Select a resident to view details</h3></div><div \nng-if="vm.selectedResident !== null"><div class="mail-header"><div class="subject" flex>{{vm.selectedCategory}}</div>\n</div><div class="mail-content"><div class="info" layout="row" layout-align="space-between start"><div layout="column" \nlayout-align="start start"><h4>Religion: {{ vm.selectedResident.religion }}</h4><h4>\nEducation: {{ vm.selectedResident.education }}</h4><h4>Occupation: {{ vm.selectedResident.occupation }}</h4><h4>\nContribution: {{ vm.selectedResident.contribution }}</h4><h4>Shopping: <span \nng-repeat="shop in vm.selectedResident.shopping">{{ shop }} <span ng-if="!$last">,</span></span></h4><h4>\nSupport Group: {{vm.selectedResident.supportGroup}}</h4><h4>Outside Agency: {{vm.selectedResident.outsideAgency}}</h4>\n<h4>Easily Understood: {{vm.selectedResident.easilyUnderstood}}</h4><h4>\nEnglish First Language: {{vm.selectedResident.englishFirstLanguage}}</h4><h4>\nOther Language: {{vm.selectedResident.otherLanguage}}</h4><h4>Heating Pad: {{vm.selectedResident.heatingPad}}</h4><h4>\nMicrowave: {{vm.selectedResident.microwave}}</h4><h4>Extension Cord: {{vm.selectedResident.extensionCord}}</h4><h4>\nAccessory Safety Assessment: {{vm.selectedResident.accessorySafetyAssessment}}</h4><h4>\nNotes: {{ vm.selectedResident.lifeNotes }}</h4></div></div></div></div>'),e.put("app/main/residents/views/details/mobility.html",'<div ng-if="vm.selectedResident === null"><h3>Select a resident to view details</h3></div><div \nng-if="vm.selectedResident !== null"><div class="mail-header"><div class="subject" flex>{{vm.selectedCategory}}</div>\n</div><div class="mail-content"><div class="info" layout="row" layout-align="space-between start"><div layout="column" \nlayout-align="start start"><h4>Use of Assistive Device: {{ vm.selectedResident.insideApartment.useOfAssistiveDevice }}\n</h4><h4>Assitance with Device: {{ vm.selectedResident.insideApartment.assitanceWithDevice }}</h4><h4>\nSpecial Ambulation Needs: {{ vm.selectedResident.insideApartment.specialAmbulationNeeds }}</h4><h4>\nTransfer Pole: {{vm.selectedResident.insideApartment.transferPole}}</h4><h4>\nLift Recliner Chair: {{vm.selectedResident.insideApartment.liftReclinerChair}}</h4><h4>\nTransfer Lift: {{vm.selectedResident.insideApartment.transferLift}}</h4><h4>\nSide Rails: {{vm.selectedResident.insideApartment.sideRails}}</h4><h4>\nMobility Safety Assessment: {{vm.selectedResident.insideApartment.mobilitySafetyAssessment}}</h4><h4>\nUse of Assistive Device: {{ vm.selectedResident.outsideApartment.useOfAssistiveDevice }}</h4><h4>\nAssitance with Device: {{ vm.selectedResident.outsideApartment.assitanceWithDevice }}</h4><h4>\nSpecial Ambulation Needs: {{ vm.selectedResident.outsideApartment.specialAmbulationNeeds}}</h4><h4>\nTransfers: {{ vm.selectedResident.transfers }}</h4><h4>Fall Risk: {{ vm.selectedResident.fallRisk }}</h4><h4 \nng-if="vm.selectedResident.fallRisk">Fall Risk Description : {{ vm.selectedResident.fallRiskDescribe }}</h4><h4>\nBed Reposition : {{ vm.selectedResident.bedReposition }}</h4><h4>\nBed Reposition Explain: {{vm.selectedResident.bedRepositionExplain}}</h4><h4>\nBed Reposition Outside Agency: {{vm.selectedResident.bedRepositionOutsideAgency}}</h4><h4>\nTwo Person Lift: {{vm.selectedResident.twoPersonLift}}</h4><h4>Notes: {{ vm.selectedResident.mobilityNotes }}</h4>\n</div></div></div></div>'),e.put("app/main/residents/views/details/nutrition.html",'<div ng-if="vm.selectedResident === null"><h3>Select a resident to view details</h3></div><div \nng-if="vm.selectedResident !== null"><div class="mail-header"><div class="subject" flex>{{vm.selectedCategory}}</div>\n</div><div class="mail-content"><div class="info" layout="row" layout-align="space-between start"><div layout="column" \nlayout-align="start start"><h4>\nOverall Nutrition : {{vm.replaceNumberValue(\'overallNutrition\', vm.selectedResident.overallNutrition)}}</h4><h4>\nPoor Nutrition Describtion: {{ vm.selectedResident.poorNutritionDescribe }}</h4><h4>\nDiabetic: {{ vm.selectedResident.diabetic }}</h4><h4>Diabetic Type: {{ vm.selectedResident.diabeticType }}</h4><h4>\nBlood Sugar Monitoring: {{ vm.selectedResident.bloodSugarMonitoring }}</h4><h4>\nBedtime Snack: {{ vm.selectedResident.bedtimeSnack }}</h4><h4>\nAdaptive Equipment: {{ vm.selectedResident.adaptiveEquipment }}</h4><h4>\nNeeds Food in Small Peices: {{ vm.selectedResident.needsFoodInSmallPeices }}</h4><h4>\nType of Diet: {{ vm.selectedResident.typeOfDiet }}</h4><h4>Special Diet: {{ vm.selectedResident.specialDiet }}</h4><h4>\nFinger Foods: {{ vm.selectedResident.fingerFoods }}</h4><h4>Food Likes:<md-chips \nng-model="vm.selectedResident.foodLikes" readonly="true"></md-chips></h4><h4>Food Dislikes :<md-chips \nng-model="vm.selectedResident.foodDislikes" readonly="true"></md-chips></h4><h4>\nFeed Assist: {{vm.selectedResident.feedAssist}}</h4><h4>Food In Room: {{vm.selectedResident.foodInRoom}}</h4><h4>\nDrink In Room: {{vm.selectedResident.drinkInRoom}}</h4><h4>Notes: {{ vm.selectedResident.nutritionNotes }}</h4></div>\n</div></div></div>'),e.put("app/main/residents/views/details/pain.html",'<div ng-if="vm.selectedResident === null"><h3>Select a resident to view details</h3></div><div \nng-if="vm.selectedResident !== null"><div class="mail-header"><div class="subject" flex>{{vm.selectedCategory}}</div>\n</div><div class="mail-content"><div class="info" layout="row" layout-align="space-between start"><div layout="column" \nlayout-align="start start"><h4>Pain Location: {{ vm.selectedResident.painLocation }}</h4><h4>\nPain Description: {{ vm.selectedResident.painDescription }}</h4><h4>\nPain Severity: {{ vm.selectedResident.painSeverity }}</h4><h4>Time of Max Pain: {{ vm.selectedResident.maxPainTime }}\n</h4><h4>Pain Increased By: {{ vm.selectedResident.painIncreasedBy }}</h4><h4>Pain Managed By: <span \nng-repeat="cure in vm.selectedResident.painManagedBy">{{ cure}} <span ng-if="!$last">,</span></span></h4><h4>\nHow Long Endured Pain: {{ vm.selectedResident.painLength }}</h4><h4>Notes: {{ vm.selectedResident.painNotes }}</h4>\n</div></div></div></div>'),e.put("app/main/residents/views/details/physicalcondition.html",'<div ng-if="vm.selectedResident === null"><h3>Select a resident to view details</h3></div><div \nng-if="vm.selectedResident !== null"><div class="mail-header"><div class="subject" flex>{{vm.selectedCategory}}</div>\n</div><div class="mail-content"><div class="info" layout="row" layout-align="space-between start"><div layout="column" \nlayout-align="start start"><h4>Skin Condition: {{ vm.selectedResident.skinCondition }}</h4><h4>\nHas wound: {{ vm.selectedResident.hasWound }}</h4><h4 ng-if="vm.selectedResident.hasWound">\nWound Description: {{ vm.selectedResident.hasWoundDescribe }}</h4><h4 ng-if="vm.selectedResident.hasWound">\nWound Amount: {{ vm.selectedResident.woundAmount }}</h4><h4>Skin Breakdown: {{vm.selectedResident.skinBreakdown}}</h4>\n<h4>Skin Notes: {{vm.selectedResident.skinNotes}}</h4><h4>Hearing Assist : {{vm.selectedResident.hearingAssist}}</h4>\n<h4>Wears Hearing Aid: {{ vm.selectedResident.wearsHearingAid }}</h4><h4 ng-if="vm.selectedResident.wearsHearingAid">\nHelp with Hearing Aid: {{ vm.selectedResident.helpWithHearingAid }}</h4><h4 \nng-if="vm.selectedResident.wearsHearingAid">\nHelp With Hearing Aid Description: {{ vm.selectedResident.helpWithHearingAidDescribe }}</h4><h4>\nHearing in Right Ear: {{ vm.selectedResident.rightEar }}</h4><h4>Hearing in Left Ear: {{ vm.selectedResident.leftEar }}\n</h4><h4>Hearing Ability: {{ vm.selectedResident.hearingAbility }}</h4><h4>\nHearing Notes: {{ vm.selectedResident.hearingNotes }}</h4><h4>Vision Device: {{vm.selectedResident.visionDevice}}</h4>\n<h4>Vision in Right Eye: {{ vm.selectedResident.rightEye }}</h4><h4>\nVision in Left Eye: {{ vm.selectedResident.leftEye }}</h4><h4>Vision Ability: {{ vm.selectedResident.visionAbility }}\n</h4><h4>Vision Assist: {{ vm.selectedResident.visionAssist }}</h4><h4>\nVision Notes: {{ vm.selectedResident.visionNotes }}</h4><h4>Teeth Assist: {{vm.selectedResident.teethAssist}}</h4><h4>\nDentist\'s Name: {{ vm.selectedResident.dentistName }}</h4><h4>\nTeeth Care: {{ vm.replaceNumberValue(\'teethCare\', vm.selectedResident.teethCare) }}</h4><h4>\nTeeth Care Describe: {{ vm.selectedResident.teethCareDescribe }}</h4><h4>\nUpper Teeth Status: {{ vm.selectedResident.upperTeeth }}</h4><h4>\nLower Teeth Status: {{ vm.selectedResident.lowerTeeth }}</h4><h4>\nTeeth Condition: {{ vm.selectedResident.teethCondition }}</h4><h4>Teeth Notes: {{ vm.selectedResident.teethNotes }}\n</h4><h4>Oxygen: {{ vm.selectedResident.oxygen }}</h4><h4>Oxygen Type: {{ vm.selectedResident.oxygenType }}</h4><h4>\nOxygen Flow: {{ vm.selectedResident.oxygenFlow }}</h4><h4>\nUrinary Tract Infection Risk: {{vm.selectedResident.urinaryTractInfectionRisk}}</h4><h4>\nUpper Respiratory Infection Risk: {{vm.selectedResident.upperRespiratoryInfectionRisk}}</h4><h4>\nMethicillin Resistant Staphylococcus Aureus Risk: {{vm.selectedResident.methicillinResistantStaphylococcusAureusRisk}}\n</h4><h4>Vancomycin Resistant Enterococcus Risk: {{vm.selectedResident.vancomycinResistantEnterococcusRisk}}</h4><h4>\nShingles Risk: {{vm.selectedResident.shinglesRisk}}</h4><h4>Pneumonia Risk: {{vm.selectedResident.pneumoniaRisk}}</h4>\n<h4>Medications: {{ vm.selectedResident.medications }}</h4><h4>Meds At Bedside: {{vm.selectedResident.medsAtBedside}}\n</h4><h4>Swallow Assist: {{vm.selectedResident.swallowAssist}}</h4><h4>\nChemotherapy: {{vm.selectedResident.chemotherapy}}</h4><h4>Dialysis: {{vm.selectedResident.dialysis}}</h4><h4>\nMarijuana: {{vm.selectedResident.marijuana}}</h4><h4>Notes: {{ vm.selectedResident.physicalNotes }}</h4></div></div>\n</div></div>'),
  e.put("app/main/residents/views/details/psychosocial.html",'<div ng-if="vm.selectedResident === null"><h3>Select a resident to view details</h3></div><div \nng-if="vm.selectedResident !== null"><div class="mail-header"><div class="subject" flex>{{vm.selectedCategory}}</div>\n</div><div class="mail-content"><div class="info" layout="row" layout-align="space-between start"><div layout="column" \nlayout-align="start start"><h4>Psychosocial Status: <span \nng-repeat="psychosocialStatus in vm.selectedResident.psychosocialStatus">{{ psychosocialStatus }} <span ng-if="!$last">\n,</span></span></h4><h4>Describe the Psychosocial Status: {{ vm.selectedResident.psychosocialStatusDescribe}}</h4><h4>\nComprehension : {{vm.replaceNumberValue(\'comprehension\', vm.selectedResident.comprehension)}}</h4><h4>\nSmokes: {{ vm.selectedResident.smokes }}</h4><h4 ng-if="vm.selectedResident.smokes">\nSmoke Description: {{ vm.selectedResident.smokesDescribe }}</h4><h4>Alcohol: {{ vm.selectedResident.alcohol }}</h4><h4 \nng-if="vm.selectedResident.alcohol">Alcohol Description: {{ vm.selectedResident.alcoholDescribes }}</h4><h4 \nng-if="vm.selectedResident.alcohol">Alcohol In Room: {{ vm.selectedResident.alcoholInRoom }}</h4><h4>\nSexual Active: {{ vm.selectedResident.sexualActive }}</h4><h4 ng-if="vm.selectedResident.sexualActive">\nSexual Description: {{ vm.selectedResident.sexualActiveDescribe }}</h4><h4>\nOther Habits: {{ vm.selectedResident.otherHabits }}</h4><h4>\nGeneral Activity Participation : {{vm.replaceNumberValue(\'generalActivityParticipation\', vm.selectedResident.generalActivityParticipation)}}\n</h4><h4>\nDining Room Participation : {{vm.replaceNumberValue(\'diningRoomParticipation\', vm.selectedResident.diningRoomParticipation)}}\n</h4><h4>\nBus Ride Participation : {{vm.replaceNumberValue(\'busRideParticipation\', vm.selectedResident.busRideParticipation)}}\n</h4><h4>\nFitness Class Participation : {{vm.replaceNumberValue(\'fitnessClassParticipation\', vm.selectedResident.fitnessClassParticipation)}}\n</h4><h4>Bingo Participation : {{vm.replaceNumberValue(\'bingoParticipation\', vm.selectedResident.bingoParticipation)}}\n</h4><h4>\nCommunity Participation : {{vm.replaceNumberValue(\'communityParticipation\', vm.selectedResident.communityParticipation)}}\n</h4><h4>Has Car: {{ vm.selectedResident.drivesCar }}</h4><h4 ng-if="vm.selectedResident.drivesCar">\nLicense Plate Number: {{ vm.selectedResident.licensePlateNumber }}</h4><h4 ng-if="vm.selectedResident.drivesCar">\nSpare Key Location: {{ vm.selectedResident.spareKeyLocation }}</h4><h4 ng-if="vm.selectedResident.drivesCar">\nDriving Needs: {{ vm.selectedResident.drivingNeeds }}</h4><h4>Time In Room: {{ vm.selectedResident.timeInRoom }}</h4>\n<h4>Volunteer: {{ vm.selectedResident.volunteer }}</h4><h4>\nPrefered Activites: {{ vm.selectedResident.preferedActivites }}</h4><h4>\nUse Fitness Equipment Independently: {{ vm.selectedResident.useFitnessEquipmentIndependently }}</h4><h4>\nHigh Maintenance: {{ vm.selectedResident.highMaintenance }}</h4><h4>\nHigh Maintenance Describe: {{ vm.selectedResident.highMaintenanceDescribe }}</h4><h4>\nFamily Involvement: {{ vm.selectedResident.familyInvolvement }}</h4><h4>\nDementia : {{vm.replaceNumberValue(\'dementia\', vm.selectedResident.dementia)}}</h4><h4>\nSun Downer Explain: {{vm.selectedResident.sunDownerExplain}}</h4><h4>Wanderer: {{vm.selectedResident.wanderer}}</h4>\n<h4>Antipsychotic Meds: {{vm.selectedResident.antipsychoticMeds}}</h4><h4>\nNotes: {{ vm.selectedResident.psychosocialNotes }}</h4></div></div></div></div>'),e.put("app/main/residents/views/details/sleep.html",'<div ng-if="vm.selectedResident === null"><h3>Select a resident to view details</h3></div><div \nng-if="vm.selectedResident !== null"><div class="mail-header"><div class="subject" flex>{{vm.selectedCategory}}</div>\n</div><div class="mail-content"><div class="info" layout="row" layout-align="space-between start"><div layout="column" \nlayout-align="start start"><h4>Usual Bedtime: {{ vm.selectedResident.usualBedtime }}</h4><h4>\nUsual Arising Time: {{ vm.selectedResident.usualArisingTime }}</h4><h4>Nap: {{ vm.selectedResident.nap }}</h4><h4 \nng-if="vm.selectedResident.nap">Nap Notes: {{ vm.selectedResident.napDescribe }}</h4><h4>\nAssistance to Bed: {{ vm.selectedResident.assistanceToBed }}</h4><h4>\nCannot Sleep Through Night: {{ vm.selectedResident.sleepsThroughNight }}</h4><h4>\nCan Call for Assistance: {{ vm.selectedResident.canCallForAssistance }}</h4><h4>\nNotes: {{ vm.selectedResident.sleepNotes }}</h4></div></div></div></div>'),e.put("app/main/residents/views/details/updates.html",'<div ng-if="vm.selectedResident === null"><h3>Select a resident to view details</h3></div><div \nng-if="vm.selectedResident !== null"><div class="mail-header"><div class="subject" flex>{{vm.selectedCategory}}</div>\n</div><div class="mail-content"><span>Resident added by: <b>{{ vm.selectedResident.submitName }}</b></span><div \nclass="info" layout="row" layout-align="space-between start"><md-list><md-list-item class="md-3-line" \nng-repeat="updateField in vm.updateInfoList.slice().reverse() track by $index"><div class="md-list-item-text"><img \nclass="activity-member-avatar" ng-src="{{updateField.username.userImage}}"> <span class="activity-member-name">\n{{updateField.username.name}}</span> <span>{{updateField.text}}</span> <span class="activity-time secondary-text">\n{{updateField.diffTime}}</span><div class="activity-communicated-with">{{updateField.communicatedWith}}</div></div>\n<md-divider ng-if="!$last"></md-divider></md-list-item></md-list></div></div></div>'),e.put("app/main/residents/views/details/vitals.html",'<div ng-if="vm.selectedResident === null"><h3>Select a resident to view details</h3></div><div \nng-if="vm.selectedResident !== null"><div class="mail-header"><div class="subject" flex>{{vm.selectedCategory}}</div>\n</div><div class="mail-content"><div class="info" layout="row" layout-align="space-between start"><div layout="column" \nlayout-align="start start"><h4>Temperature: <span ng-repeat="temperature in vm.selectedResident.temperature">\n{{ temperature.data }} <span ng-if="!$last">,</span></span></h4><div class="card md-whiteframe-4dp"><canvas \nid="temperaturecanvas" class="chart chart-line" chart-data="vm.vitalsCharts[0].data" \nchart-labels="vm.vitalsCharts[0].labels" chart-legend="true" chart-series="vm.vitalsCharts[0].series"></canvas></div>\n<div class="double-title-vitals">Blood Pressure Systolic: <span \nng-repeat="bloodPressureSystolic in vm.selectedResident.bloodPressureSystolic">{{ bloodPressureSystolic.data }} <span \nng-if="!$last">,</span></span></div><div class="double-title-vitals">Blood Pressure Diastolic: <span \nng-repeat="bloodPressureDiastolic in vm.selectedResident.bloodPressureDiastolic">{{ bloodPressureDiastolic.data }} \n<span ng-if="!$last">,</span></span></div><div class="card md-whiteframe-4dp"><canvas id="bloodPressureCanvas" \nclass="chart chart-line" chart-data="vm.vitalsCharts[1].data" chart-labels="vm.vitalsCharts[1].labels" \nchart-legend="true" chart-series="vm.vitalsCharts[1].series"></canvas></div><h4>Oxygen Saturation: <span \nng-repeat="oxygenSaturation in vm.selectedResident.oxygenSaturation">{{ oxygenSaturation.data }} <span ng-if="!$last">,\n</span></span></h4><div class="card md-whiteframe-4dp"><canvas id="oxygenSaturationCanvas" class="chart chart-line" \nchart-data="vm.vitalsCharts[3].data" chart-labels="vm.vitalsCharts[3].labels" chart-legend="true" \nchart-series="vm.vitalsCharts[3].series"></canvas></div><h4>Pulse: <span \nng-repeat="pulse in vm.selectedResident.pulse">{{ pulse.data }} <span ng-if="!$last">,</span></span></h4><div \nclass="card md-whiteframe-4dp"><canvas id="plusCanvas" class="chart chart-line" chart-data="vm.vitalsCharts[4].data" \nchart-labels="vm.vitalsCharts[4].labels" chart-legend="true" chart-series="vm.vitalsCharts[4].series"></canvas></div>\n<h4>Pain: <span ng-repeat="vitalsPain in vm.selectedResident.vitalsPain">{{ vitalsPain.data }} <span ng-if="!$last">,\n</span></span></h4><div class="card md-whiteframe-4dp"><canvas id="vitalsPainCanvas" class="chart chart-line" \nchart-data="vm.vitalsCharts[5].data" chart-labels="vm.vitalsCharts[5].labels" chart-legend="true" \nchart-series="vm.vitalsCharts[5].series"></canvas></div><h4>Respiration: <span \nng-repeat="resp in vm.selectedResident.respiration">{{ resp.data }} <span ng-if="!$last">,</span></span></h4><div \nclass="card md-whiteframe-4dp"><canvas id="respirationCanvas" class="chart chart-line" \nchart-data="vm.vitalsCharts[6].data" chart-labels="vm.vitalsCharts[6].labels" chart-legend="true" \nchart-series="vm.vitalsCharts[6].series"></canvas></div><h4>Weight: <span ng-repeat="w in vm.selectedResident.weight">\n{{ w.data }} <span ng-if="!$last">,</span></span></h4><div class="card md-whiteframe-4dp"><canvas id="weightCanvas" \nclass="chart chart-line" chart-data="vm.vitalsCharts[7].data" chart-labels="vm.vitalsCharts[7].labels" \nchart-legend="true" chart-series="vm.vitalsCharts[7].series"></canvas></div><h4>INR: <span \nng-repeat="w in vm.selectedResident.internationalNormalizedRatio">{{ w.data }} <span ng-if="!$last">,</span></span>\n</h4><div class="card md-whiteframe-4dp"><canvas id="weightCanvas" class="chart chart-line" \nchart-data="vm.vitalsCharts[8].data" chart-labels="vm.vitalsCharts[8].labels" chart-legend="true" \nchart-series="vm.vitalsCharts[8].series"></canvas></div></div></div></div></div>'),e.put("app/main/residents/views/list/list-view.html",'<div class="mail-list-item" ng-repeat="resident in vm.residentList" md-ink-ripple \nng-click="vm.selectResident(resident)" ng-class="{ \'selected\': vm.selectedResident._id === resident._id}"><div \nlayout="row" layout-align="start center"><div class="info" flex layout="column"><div class="name" layout="row" \nlayout-align="start center"><img class="avatar" ng-if="resident.from.avatar" alt="{{resident.firstName}}" \nng-src="{{resident.firstName}}"><div class="avatar" ng-if="!resident.from.avatar" ms-random-class="vm.colors">\n{{resident.firstName}}</div><span class="text-truncate">{{vm.displayName(resident)}}</span></div></div><div \nng-if="resident.fieldType" class="md-item-text md-whiteframe-z1 field-type"><b>{{resident.fieldType}}</b></div><div \nclass="md-item-text md-whiteframe-z1 care-points"><b>{{resident.carePoints}}</b><md-tooltip>Care Points</md-tooltip>\n</div><div layout="column" layout-align="space-between end"><md-button class="md-accent md-raised" \nng-click="vm.updateResident(resident, \'button\')">Update</md-button></div></div></div>'),e.put("app/main/todo/components/historyList/historyList.html",'<div ng-repeat="t in $ctrl.list" flex><span ng-if="$ctrl.task.occurrence === 0">\n{{ $ctrl.listName }} on: {{t.updatedOn | date:"MMM dd, yyyy \'at\' h:mma"}} </span><span \nng-if="$ctrl.task.occurrence !== 0">{{ $ctrl.listName }} on: {{t.updatedOn | date:"MMM dd, yyyy "}}</span></div>'),e.put("app/main/todo/dialogs/task/task-dialog.html",'<md-dialog class="task-dialog" aria-label="New Task"><form name="taskForm" class="md-inline-form" novalidate>\n<md-toolbar class="md-accent md-hue-2"><div class="md-toolbar-tools" layout="row" layout-align="space-between center">\n<span class="title">{{vm.title}}</span><md-button class="md-icon-button" ng-click="vm.cancelDialog()"><md-icon \nmd-font-icon="icon-close" aria-label="Close dialog"></md-icon></md-button></div></md-toolbar><md-dialog-content \nms-scroll><div layout="column"><div layout="row" flex="70" style="height: 100%" layout-fill \nlayout-align="space-around"><div class="md-block"><label ng-switch on="vm.form.occurrence"><span ng-switch-when="0">\nOccurrence : Hourly</span> <span ng-switch-when="1">Occurrence : Daily</span> <span ng-switch-when="2">\nOccurrence : Weekly</span> <span ng-switch-when="3">Occurrence : Monthly</span> <span ng-switch-default>Occurrence :\n</span></label><md-slider flex min="0" max="3" ng-model="vm.form.occurrence" aria-label="blue" md-vertical></md-slider>\n</div><div layout="column" layout-align="start"><div layout="row" layout-align="start" \nng-if="vm.form.occurrence == 0 || vm.form.occurrence == 1"><md-checkbox ng-model="vm.form.activeDays[0]" class="days">\nMon</md-checkbox><md-checkbox ng-model="vm.form.activeDays[1]" class="days">Tue</md-checkbox><md-checkbox \nng-model="vm.form.activeDays[2]" class="days">Wed</md-checkbox><md-checkbox ng-model="vm.form.activeDays[3]" \nclass="days">Thu</md-checkbox><md-checkbox ng-model="vm.form.activeDays[4]" class="days">Fri</md-checkbox><md-checkbox \nng-model="vm.form.activeDays[5]" class="days">Sat</md-checkbox><md-checkbox ng-model="vm.form.activeDays[6]" \nclass="days">Sun</md-checkbox></div><rzslider ng-if="vm.form.occurrence == 0" rz-slider-model="vm.form.hourStart" \nrz-slider-high="vm.form.hourEnd" rz-slider-options="vm.slider.options"></rzslider><div \nng-if="vm.form.occurrence === 1" class="available-interval-container"><label>Available interval</label><div \nlayout="row" layout-align="start"><span class="interval-label">Start:</span><mdp-time-picker \nng-model="vm.form.startTime" ng-change="vm.updateIssue()" required=""></mdp-time-picker><span class="interval-label">\nEnd:</span><mdp-time-picker ng-model="vm.form.endTime" ng-change="vm.updateIssue()" required=""></mdp-time-picker>\n</div></div></div><div layout="column"><div layout="row" ng-if="vm.form.occurrence === 2"><md-switch \nng-model="vm.form.everyWeek" aria-label="Every Week" ng-change="vm.selectEveryWeek()" ng-if="vm.form.occurrence == 2">\nEvery Week</md-switch></div><div layout="row" ng-if="vm.form.occurrence === 2"><md-checkbox \nng-model="vm.form.activeWeeks[0]" aria-label="First Week of each Month" ng-disabled="vm.form.everyWeek"><span>\nFirst Week</span></md-checkbox><md-checkbox ng-model="vm.form.activeWeeks[1]" aria-label="Second Week of each Month" \nng-disabled="vm.form.everyWeek">Second Week</md-checkbox><md-checkbox ng-model="vm.form.activeWeeks[2]" \naria-label="Third Week of each Month" ng-disabled="vm.form.everyWeek">Third Week</md-checkbox><md-checkbox \nng-model="vm.form.activeWeeks[3]" aria-label="Fourth Week of each Month" ng-disabled="vm.form.everyWeek">Fourth Week\n</md-checkbox><md-checkbox ng-model="vm.form.activeWeeks[4]" aria-label="Checkbox 1" ng-disabled="vm.form.everyWeek">\nLast Week</md-checkbox></div><div layout="row" ng-if="vm.form.occurrence === 2"><md-input-container \nclass="md-block select-day"><label>Select day</label><md-select ng-model="vm.form.selectDay"><md-option value="Monday">\nMonday</md-option><md-option value="Tuesday">Tuesday</md-option><md-option value="Wednesday">Wednesday</md-option>\n<md-option value="Thursday">Thursday</md-option><md-option value="Friday">Friday</md-option><md-option \nvalue="Saturday">Saturday</md-option><md-option value="Sunday">Sunday</md-option></md-select></md-input-container><div \nclass="available-interval-container"><div layout="row" layout-align="start"><span class="interval-label">Start:</span>\n<mdp-time-picker ng-model="vm.form.weekStartTime" ng-change="vm.updateIssue()" required=""></mdp-time-picker><span \nclass="interval-label">End:</span><mdp-time-picker ng-model="vm.form.weekEndTime" ng-change="vm.updateIssue()" \nrequired=""></mdp-time-picker></div></div></div></div><div layout="column" ng-if="vm.form.occurrence === 3" flex><div \nlayout="row" layout-align="space-around center" ng-if="vm.form.occurrence == 3"><md-switch \nng-model="vm.form.everyMonth" aria-label="Every Month" ng-change="vm.selectEveryMonth()">Every Month</md-switch></div>\n<div layout="row" layout-align="space-around center"><md-checkbox ng-model="vm.form.activeMonths[0]" \nng-disabled="vm.form.everyMonth" aria-label="Jan">Jan</md-checkbox><md-checkbox ng-model="  vm.form.activeMonths[1]" \nng-disabled="vm.form.everyMonth" aria-label="Feb">Feb</md-checkbox><md-checkbox ng-model="  vm.form.activeMonths[2]" \nng-disabled="vm.form.everyMonth" aria-label="Mar">Mar</md-checkbox><md-checkbox ng-model="  vm.form.activeMonths[3]" \nng-disabled="vm.form.everyMonth" aria-label="Apr">Apr</md-checkbox><md-checkbox ng-model="  vm.form.activeMonths[4]" \nng-disabled="vm.form.everyMonth" aria-label="May">May</md-checkbox><md-checkbox ng-model="  vm.form.activeMonths[5]" \nng-disabled="vm.form.everyMonth" aria-label="Jun">Jun</md-checkbox></div><div layout="row" \nlayout-align="space-around center"><md-checkbox ng-model="  vm.form.activeMonths[6]" ng-disabled="vm.form.everyMonth" \naria-label="Jul">Jul</md-checkbox><md-checkbox ng-model="  vm.form.activeMonths[7]" ng-disabled="vm.form.everyMonth" \naria-label="Aug">Aug</md-checkbox><md-checkbox ng-model="  vm.form.activeMonths[8]" ng-disabled="vm.form.everyMonth" \naria-label="Sept">Sept</md-checkbox><md-checkbox ng-model="  vm.form.activeMonths[9]" ng-disabled="vm.form.everyMonth" \naria-label="Oct">Oct</md-checkbox><md-checkbox ng-model="  vm.form.activeMonths[10]" ng-disabled="vm.form.everyMonth" \naria-label="Nov">Nov</md-checkbox><md-checkbox ng-model="  vm.form.activeMonths[11]" ng-disabled="vm.form.everyMonth" \naria-label="Dec">Dec</md-checkbox></div><label ng-if="vm.form.occurrence === 3">Day of Month: {{ vm.form.daysInMonth }}\n</label><md-slider ng-if="vm.form.occurrence === 3" flex min="1" max="31" ng-model="vm.form.daysInMonth" \naria-label="blue"></md-slider><div layout="column" layout-align="center center" class="week-picker"><div \nclass="week-picker-title">Days of Week: {{ vm.selectedWeekDayText }}</div><div layout="row"><span class="week-label">\nFirst week:</span><div ng-repeat="i in [7,1,2,3,4,5,6]"><div class="day-box" \nng-class="{\'day-box-selected\': vm.form.selectedWeekDay == (\'1\'+i)}" ng-click="vm.selectWeekDay(1, i)">\n{{ vm.dayMap[i][0] }}<md-tooltip>{{ vm.dayMap[i] }}</md-tooltip></div></div></div><div layout="row"><span \nclass="week-label">Second week:</span><div ng-repeat="i in [7,1,2,3,4,5,6]"><div class="day-box" \nng-class="{\'day-box-selected\': vm.form.selectedWeekDay == (\'2\'+i)}" ng-click="vm.selectWeekDay(2, i)">\n{{ vm.dayMap[i][0] }}<md-tooltip>{{ vm.dayMap[i] }}</md-tooltip></div></div></div><div layout="row"><span \nclass="week-label">Third week:</span><div ng-repeat="i in [7,1,2,3,4,5,6]"><div class="day-box" \nng-class="{\'day-box-selected\': vm.form.selectedWeekDay == (\'3\'+i)}" ng-click="vm.selectWeekDay(3, i)">\n{{ vm.dayMap[i][0] }}<md-tooltip>{{ vm.dayMap[i] }}</md-tooltip></div></div></div><div layout="row"><span \nclass="week-label">Fourth week:</span><div ng-repeat="i in [7,1,2,3,4,5,6]"><div class="day-box" \nng-class="{\'day-box-selected\': vm.form.selectedWeekDay == (\'4\'+i)}" ng-click="vm.selectWeekDay(4, i)">\n{{ vm.dayMap[i][0] }}<md-tooltip>{{ vm.dayMap[i] }}</md-tooltip></div></div></div><div layout="row"><span \nclass="week-label">Last week:</span><div ng-repeat="i in [7,1,2,3,4,5,6]"><div class="day-box" \nng-class="{\'day-box-selected\': vm.form.selectedWeekDay == (\'5\'+i)}" ng-click="vm.selectWeekDay(5, i)">\n{{ vm.dayMap[i][0] }}<md-tooltip>{{ vm.dayMap[i] }}</md-tooltip></div></div></div></div></div></div><br><br>\n<md-input-container class="md-block" flex="30"><label translate="TODO.DESCRIPTION">Task description</label><textarea \nname="description" ng-model="vm.form.text" require md-select-on-focus>\n                </textarea><div ng-messages>\n{{ vm.descriptionError }}</div></md-input-container></div></md-dialog-content><md-dialog-actions layout="row" \nlayout-align="space-between center"><div layout="row" layout-align="start center"><md-button type="submit" \nng-if="vm.newTask" ng-click="vm.addNewTask()" class="send-button md-accent md-raised" \nng-disabled="vm.form.text.length == 0" aria-label="Add Task" translate="TODO.ADD_TASK" \ntranslate-attr-aria-label="TODO.ADD_TASK">ADD TASK</md-button><md-button type="submit" ng-if="!vm.newTask" \nng-click="vm.updateTask()" class="send-button md-accent md-raised" ng-disabled="vm.form.text.length == 0" \naria-label="Add Task" translate="TODO.UPDATE_TASK" translate-attr-aria-label="TODO.UPDATE_TASK">ADD TASK</md-button>\n</div></md-dialog-actions></form></md-dialog>'),e.put("app/main/todo/sidenavs/main/main-sidenav.html",'<div class="header" layout="column" layout-align="space-between"><div class="logo" layout="row" \nlayout-align="start center"><span class="logo-icon"><md-icon md-font-icon="icon-checkbox-marked" class="s24"></md-icon>\n</span><span class="logo-text" translate="TODO.TO_DO">To-Do</span></div></div><md-content class="content" flex \nms-scroll><div class="add-task-button"><md-button class="md-accent md-raised" ng-click="vm.openTaskDialog($event)" \naria-label="ADD TASK" translate="TODO.ADD_TASK" translate-attr-aria-label="TODO.ADD_TASK">ADD TASK</md-button></div>\n<div class="navigation-simple" layout="column"><md-button class="item" aria-label="All Tasks" translate \ntranslate-attr-aria-label="TODO.ALL_TASK" ng-class="{\'selected\':vm.selectedCategory == \'all-tasks\'}" \nng-click="vm.setCurrentTasks(\'all-tasks\')"><div layout="row" layout-align="start center"><md-icon \nmd-font-icon="icon-view-headline" class="s16"></md-icon><span class="title" translate="TODO.ALL_TASKS">All Tasks</span>\n</div></md-button><md-button class="item" aria-label="Ongoing Tasks" translate \ntranslate-attr-aria-label="TODO.ONGOING_TASK" ng-class="{\'selected\':vm.selectedCategory == \'tasks\'}" \nng-click="vm.setCurrentTasks(\'tasks\')"><div layout="row" layout-align="start center"><md-icon \nmd-font-icon="icon-view-headline" class="s16"></md-icon><span class="title" translate="TODO.ONGOING_TASKS">\nOngoing Tasks</span></div></md-button><div class="item subheader" translate="TODO.FILTERS">Filters</div><md-button \nclass="item" aria-label="Completed" translate translate-attr-aria-label="TODO.COMPLETED" \nng-click="vm.setCurrentTasks(\'completed\')" ng-class="{\'selected\':vm.selectedCategory == \'completed\'}"><md-icon \nclass="md-accent-bg unread-message-count">{{ vm.completed.length }}</md-icon><span translate="TODO.COMPLETED">Completed\n</span></md-button><md-button class="item" aria-label="Not Completed" translate \ntranslate-attr-aria-label="TODO.NOTCOMPLETED" ng-click="vm.setCurrentTasks(\'notcompleted\')" \nng-class="{\'selected\':vm.selectedCategory == \'notcompleted\'}"><md-icon class="md-accent-bg unread-message-count" \nstyle="background-color: orange">{{ vm.notCompleted.length }}</md-icon><span translate="TODO.NOTCOMPLETED">\nNot Completed</span></md-button></div></md-content>'),e.put("app/main/todo/views/list/list-view.html",'<div class="todo-items" ng-sortable="vm.sortableOptions" ng-model="vm.tasks" \nng-class="{\'sortable\': vm.taskOrder === \'\'}"><div class="todo-item" md-ink-ripple layout="row" \nlayout-align="start center" ng-click="vm.openTaskDialog($event, task)" \nng-repeat="task in vm.currTasks | orderBy:vm.taskOrder:vm.taskOrderDescending | filter:global.search | filter:vm.taskFilters.search | filter:vm.filterByStartDate | filter:vm.filterByDueDate track by $index" \nng-class="{\'starred\': task.starred, \'selected\': task.selected, \'completed\': task.completed}"><div class="handle" \nng-click="vm.preventDefault($event)"><md-icon md-font-icon="icon-drag-vertical" class="icon"></md-icon></div><md-button\n ng-if="vm.selectedCategory === \'tasks\' || vm.selectedCategory === \'all-tasks\'" \nclass="add-event-button md-fab md-accent md-mini" ng-click="vm.completeTask(task, $event)" \nng-disabled="task.state === \'inactive\' || task.state === \'complete\'" aria-label="Task Done"><md-icon \nmd-font-icon="icon-check"></md-icon><md-tooltip>Mark task as done</md-tooltip></md-button><div layout="row" \nlayout-align="start center" flex><div class="info" flex><div class="text">{{task.text}}</div><div class="tags" \nlayout="row" layout-align="start center" layout-wrap><div class="tag" layout="row" layout-align="start center"><div \nclass="tag-label" ng-switch on="task.occurrence"><span ng-switch-when="0">Hourly {{ vm.showActiveDays(task) }} </span>\n<span ng-switch-when="1">Daily {{ vm.showActiveDays(task) }} </span><span ng-switch-when="2">\nWeekly {{ vm.showActiveWeeks(task) }} </span><span ng-switch-when="3">Monthly {{ vm.showActiveMonths(task) }}</span>\n</div></div><div class="tag" layout="row" style="background-color: #FFA500" layout-align="start center" \nng-if="task.issueName">Part of {{ task.issueName }} issue</div></div></div><md-virtual-repeat-container \nng-if="vm.selectedCategory == \'notcompleted\' && task.showHistory" id="vertical-container"><history-list task="task" \nlist="task.notCompleted" name="Not Completed"></history-list></md-virtual-repeat-container><md-virtual-repeat-container\n ng-if="vm.selectedCategory == \'completed\' && task.showHistory" id="vertical-container"><history-list task="task" \nlist="task.completed" name="Completed"></history-list></md-virtual-repeat-container><md-button \nng-if="vm.selectedCategory === \'completed\' || vm.selectedCategory === \'notcompleted\'" class="md-fab md-accent md-mini" \nng-click="vm.toggleHistory($event, task)"><md-icon md-font-icon="icon-chevron-double-up" ng-if="task.showHistory">\n</md-icon><md-icon md-font-icon="icon-chevron-double-down" ng-if="!task.showHistory"></md-icon><md-tooltip \nng-if="vm.selectedCategory === \'notcompleted\'">{{ task.notCompleted.length }}</md-tooltip><md-tooltip \nng-if="vm.selectedCategory === \'completed\'">{{ task.completed.length }}</md-tooltip></md-button><div class="buttons" \nlayout="row" layout-align="start center"><md-menu \nng-if="vm.selectedCategory == \'tasks\' || vm.selectedCategory == \'all-tasks\'"><md-button class="md-icon-button" \naria-label="More" translate translate-attr-aria-label="TODO.MORE"><md-icon md-font-icon="icon-dots-vertical" \nng-click="$mdOpenMenu($event)"></md-icon></md-button><md-menu-content width="3"><md-menu-item><md-button \nng-click="vm.deleteTask(task)" aria-label="Remove task" translate-attr-aria-label="TODO.REMOVE_TASK"><md-icon \nng-class="grey-fg" md-font-icon="icon-delete" class="s18"></md-icon><span translate="TODO.REMOVE_TASK">Remove task\n</span></md-button></md-menu-item></md-menu-content></md-menu></div></div></div></div>'),e.put("app/main/ui/forms/stepper-steps/step-1.html",'<div class="md-inline-form"><div layout="column" layout-gt-xs="row" flex><md-input-container flex="100" \nflex-gt-xs="50"><input type="text" name="firstname" ng-model="vm.stepper.step1.firstname" placeholder="Firstname" \nrequired><div ng-messages="step1.firstname.$error" ng-show="step1.firstname.$touched" role="alert"><div \nng-message="required"><span>Firstname field is required.</span></div></div></md-input-container><md-input-container \nflex="100" flex-gt-xs="50"><input type="text" name="lastname" ng-model="vm.stepper.step1.lastname" \nplaceholder="Lastname" required><div ng-messages="step1.lastname.$error" ng-show="step1.lastname.$touched" \nrole="alert"><div ng-message="required"><span>Lastname field is required.</span></div></div></md-input-container></div>\n</div>'),e.put("app/main/ui/forms/stepper-steps/step-2.html",'<div class="md-inline-form"><div layout="column" layout-gt-xs="row" flex><md-input-container flex="100"><label>Address\n</label><textarea ng-model="vm.stepper.step2.address" columns="1" md-maxlength="150" rows="5"></textarea><div \nng-messages="step2.address.$error" ng-show="step2.address.$touched" role="alert"></div></md-input-container></div>\n</div>'),e.put("app/main/ui/forms/stepper-steps/step-3.html",'<div class="md-inline-form"><md-input-container class="md-block"><input type="text" name="cardholder" \nng-model="vm.stepper.step3.cardholder" placeholder="Card Holder" required><div ng-messages="step3.cardholder.$error" \nrole="alert"><div ng-message="required"><span>Card holder field is required.</span></div></div></md-input-container>\n<div layout="column" layout-gt-xs="row"><md-input-container flex="100" flex-gt-xs="33"><input type="text" \nname="cardnumber" ng-model="vm.stepper.step3.cardnumber" placeholder="Card Number" required><div \nng-messages="step3.cardnumber.$error" role="alert"><div ng-message="required"><span>Card number field is required.\n</span></div></div></md-input-container><md-input-container flex="100" flex-gt-xs="33"><input type="text" name="CC2" \nng-model="vm.stepper.step3.cc2" placeholder="CC2" md-maxlength="3" required><div ng-messages="step3.cc2.$error" \nrole="alert" multipl><div ng-message="required"><span>CC2 field is required.</span></div><div \nng-message="md-maxlength"><span>CC2 can\'t be longer than 3 characters.</span></div></div></md-input-container>\n<md-input-container flex="100" flex-gt-xs="33"><input type="text" name="expirationDate" \nng-model="vm.stepper.step3.expirationDate" placeholder="Expiration Date" required><div \nng-messages="step3.expirationDate.$error" role="alert"><div ng-message="required"><span>\nExpiration date field is required.</span></div></div></md-input-container></div></div>'),e.put("app/main/ui/page-layouts/blank/blank.html",'<div class="page-layout blank" layout="row"><h2>Blank page</h2></div>'),e.put("app/main/ui/page-layouts/demo/demo-content.html",'<div class="demo-content"><img src="assets/images/etc/early-sunrise.jpg" class="md-card-image" alt="sunrise"><h1>\nEarly Sunrise</h1><h4 class="secondary-text">Demo Content</h4><p>\nOne morning, when Gregor Samsa woke from troubled dreams, he found himself transformed in his bed into a horrible vermin. He lay on his armour-like back, and if he lifted his head a little he could see his brown belly, slightly domed and divided by arches into stiff sections.\n</p><blockquote><p>\nThe bedding was hardly able to cover it and seemed ready to slide off any moment. His many legs, pitifully thin compared with the size of the rest of him, waved about helplessly as he looked. "What\'s happened to me? " he thought. It wasn\'t a dream.\n</p><footer>John Doe</footer></blockquote><p>\nHis room, a proper human room although a little too small, lay peacefully between its four familiar walls. A collection of textile samples lay spread out on the table - Samsa was a travelling salesman - and above it there hung a picture that he had recently cut out of an illustrated magazine and housed in a nice, gilded frame.\n</p><p>\nIt showed a lady fitted out with a fur hat and fur boa who sat upright, raising a heavy fur muff that covered the whole of her lower arm towards the viewer. Gregor then turned to look out the window at the dull weather. Drops of rain could be heard hitting the pane, which made him feel quite sad.\n</p><p>\n"How about if I sleep a little bit longer and forget all this nonsense", he thought, but that was something he was unable to do because he was used to sleeping on his right, and in his present state couldn\'t get into that position. However hard he threw himself onto his right, he always rolled back to where he was.\n</p><p>\nHe must have tried it a hundred times, shut his eyes so that he wouldn\'t have to look at the floundering legs, and only stopped when he began to feel a mild, dull pain there that he had never felt before. "Oh, God", he thought, "what a strenuous career it is that I\'ve chosen!\n</p><p>\nTravelling day in and day out. Doing business like this takes much more effort than doing your own business at home, and on top of that there\'s the curse of travelling, worries about making train connections, bad and irregular food, contact with different people all the time so that you can never get to know anyone or become friendly with them.\n</p><p>\n"He felt a slight itch up on his belly; pushed himself slowly up on his back towards the headboard so that he could lift his head better; found where the itch was, and saw that it was covered with lots of little white spots which he didn\'t know what to make of; and when he tried to feel the place with one of his legs he drew it quickly back because as soon as he touched it he was overcome by a cold shudder. He slid back into his former position.\n</p><p>\n"Getting up early all the time", he thought, "it makes you stupid. You\'ve got to get enough sleep. Other travelling salesmen live a life of luxury. For instance, whenever I go back to the guest house during the morning to copy out the contract, these gentlemen are always still sitting there eating their breakfasts. I ought to just try that with my boss; I\'d get kicked out on the spot. But who knows, maybe that would be the best thing for me...\n</p></div>'),
  e.put("app/main/ui/page-layouts/demo/demo-sidenav.html",'<div class="demo-sidenav"><md-list><md-subheader class="md-no-sticky">Sidenav Demo</md-subheader><md-list-item><p>\nSidenav Item 1</p></md-list-item><md-divider></md-divider><md-list-item><p>Sidenav Item 2</p></md-list-item>\n<md-divider></md-divider><md-list-item><p>Sidenav Item 3</p></md-list-item><md-divider></md-divider><md-list-item><p>\nSidenav Item 4</p></md-list-item><md-divider></md-divider><md-list-item><p>Sidenav Item 5</p></md-list-item>\n<md-divider></md-divider><md-list-item><p>Sidenav Item 6</p></md-list-item><md-divider></md-divider><md-list-item><p>\nSidenav Item 7</p></md-list-item><md-divider></md-divider><md-list-item><p>Sidenav Item 8</p></md-list-item>\n<md-divider></md-divider><md-list-item><p>Sidenav Item 9</p></md-list-item><md-divider></md-divider><md-list-item><p>\nSidenav Item 10</p></md-list-item><md-divider></md-divider><md-list-item><p>Sidenav Item 11</p></md-list-item>\n<md-divider></md-divider><md-list-item><p>Sidenav Item 12</p></md-list-item><md-divider></md-divider><md-list-item><p>\nSidenav Item 13</p></md-list-item><md-divider></md-divider><md-list-item><p>Sidenav Item 14</p></md-list-item>\n<md-divider></md-divider><md-list-item><p>Sidenav Item 15</p></md-list-item><md-divider></md-divider><md-list-item><p>\nSidenav Item 16</p></md-list-item></md-list></div>'),e.put("app/core/directives/ms-card/templates/template-1/template-1.html",'<div class="template-1"><div class="media"><img class="image" ng-src="{{card.media.image.src}}" \nalt="{{card.media.image.alt}}" ng-show="card.media.image"></div><div class="content pv-24 ph-16"><div class="title h1" \nng-if="card.title">{{card.title}}</div><div class="subtitle secondary-text" ng-if="card.subtitle">{{card.subtitle}}\n</div><div class="text pt-16" ng-if="card.text">{{card.text}}</div></div></div>'),e.put("app/core/directives/ms-card/templates/template-10/template-10.html",'<div class="template-10 p-16"><div class="pb-16" layout="row" layout-align="space-between center"><div class="info">\n<div class="title secondary-text" ng-if="card.title">{{card.title}}</div><div class="subtitle h2" \nng-if="card.subtitle">{{card.subtitle}}</div></div><div class="media ml-16"><img class="image" \nng-src="{{card.media.image.src}}" alt="{{card.media.image.alt}}" ng-show="card.media.image"></div></div><div \nclass="text">{{card.text}}</div></div>'),e.put("app/core/directives/ms-card/templates/template-2/template-2.html",'<div class="template-2"><div class="header p-16" layout="row" layout-align="start center"><div ng-if="card.avatar"><img\n class="avatar mr-16" ng-src="{{card.avatar.src}}" alt="{{card.avatar.alt}}"></div><div class="info"><div \nclass="title" ng-if="card.title">{{card.title}}</div><div class="subtitle secondary-text" ng-if="card.subtitle">\n{{card.subtitle}}</div></div></div><div class="media"><img class="image" ng-src="{{card.media.image.src}}" \nalt="{{card.media.image.alt}}" ng-show="card.media.image"></div><div class="text p-16" ng-if="card.text">{{card.text}}\n</div></div>'),e.put("app/core/directives/ms-card/templates/template-3/template-3.html",'<div class="template-3 p-16 teal-bg white-fg" layout="row" layout-align="space-between"><div layout="column" \nlayout-align="space-between"><div class="info"><div class="title h1" ng-if="card.title">{{card.title}}</div><div \nclass="subtitle h3 secondary-text" ng-if="card.subtitle">{{card.subtitle}}</div></div><div class="cta"><md-button \nclass="m-0">{{card.cta}}</md-button></div></div><div class="media pl-16"><img class="image" \nng-src="{{card.media.image.src}}" alt="{{card.media.image.alt}}" ng-show="card.media.image"></div></div>'),e.put("app/core/directives/ms-card/templates/template-4/template-4.html",'<div class="template-4"><div class="info white-fg ph-16 pv-24"><div class="title h1" ng-if="card.title">{{card.title}}\n</div><div class="text" ng-if="card.text">{{card.text}}</div></div><div class="media"><img class="image" \nng-src="{{card.media.image.src}}" alt="{{card.media.image.alt}}" ng-show="card.media.image"></div></div>'),e.put("app/core/directives/ms-card/templates/template-5/template-5.html",'<div class="template-5 p-16" layout="row" layout-align="space-between start"><div class="info"><div \nclass="title secondary-text" ng-if="card.title">{{card.title}}</div><div class="event h2" ng-if="card.event">\n{{card.event}}</div></div><div class="media ml-16"><img class="image" ng-src="{{card.media.image.src}}" \nalt="{{card.media.image.alt}}" ng-show="card.media.image"></div></div>'),e.put("app/core/directives/ms-card/templates/template-6/template-6.html",'<div class="template-6"><div class="content pv-24 ph-16"><div class="subtitle secondary-text" ng-if="card.subtitle">\n{{card.subtitle}}</div><div class="title h2" ng-if="card.title">{{card.title}}</div><div class="text pt-8" \nng-if="card.text">{{card.text}}</div></div></div>'),e.put("app/core/directives/ms-card/templates/template-7/template-7.html",'<div class="template-7" layout="row" layout-align="space-between"><div class="info" layout="column" \nlayout-align="space-between" layout-fill flex><div class="p-16"><div class="title h1" ng-if="card.title">{{card.title}}\n</div><div class="subtitle h4 secondary-text" ng-if="card.subtitle">{{card.subtitle}}</div><div class="text h4 pt-8" \nng-if="card.text">{{card.text}}</div></div><div><md-divider></md-divider><div class="p-8" layout="row"><md-icon \nmd-font-icon="icon-star-outline" class="mh-5"></md-icon><md-icon md-font-icon="icon-star-outline" class="mh-5">\n</md-icon><md-icon md-font-icon="icon-star-outline" class="mh-5"></md-icon><md-icon md-font-icon="icon-star-outline" \nclass="mh-5"></md-icon><md-icon md-font-icon="icon-star-outline" class="mh-5"></md-icon></div></div></div><div \nclass="media"><img class="image" ng-src="{{card.media.image.src}}" alt="{{card.media.image.alt}}" \nng-show="card.media.image"></div></div>'),e.put("app/core/directives/ms-card/templates/template-8/template-8.html",'<div class="template-8"><div class="media"><img class="image" ng-src="{{card.media.image.src}}" \nalt="{{card.media.image.alt}}" ng-show="card.media.image"></div><div class="content pv-24 ph-16"><div class="title h1" \nng-if="card.title">{{card.title}}</div><div class="subtitle secondary-text" ng-if="card.subtitle">{{card.subtitle}}\n</div><div class="buttons pt-16"><md-button class="m-0">{{card.button1}}</md-button><md-button class="m-0 md-accent">\n{{card.button2}}</md-button></div><div class="text pt-16" ng-if="card.text">{{card.text}}</div></div></div>'),e.put("app/core/directives/ms-card/templates/template-9/template-9.html",'<div class="template-9"><div class="header p-16" layout="row" layout-align="start center"><div ng-if="card.avatar"><img\n class="avatar mr-16" ng-src="{{card.avatar.src}}" alt="{{card.avatar.alt}}"></div><div class="info"><div \nclass="title" ng-if="card.title">{{card.title}}</div><div class="subtitle secondary-text" ng-if="card.subtitle">\n{{card.subtitle}}</div></div></div><div class="text ph-16 pb-16" ng-if="card.text">{{card.text}}</div><div \nclass="media"><img class="image" ng-src="{{card.media.image.src}}" alt="{{card.media.image.alt}}" \nng-show="card.media.image"></div><div class="buttons m-8"><md-button class="md-icon-button mr-16" \naria-label="Favorite"><md-icon md-font-icon="icon-heart-outline" class="s24"></md-icon></md-button><md-button \nclass="md-icon-button" aria-label="Share"><md-icon md-font-icon="icon-share" class="s24"></md-icon></md-button></div>\n</div>'),e.put("app/core/directives/ms-stepper/templates/horizontal/horizontal.html",'<div class="ms-stepper-horizontal"><div class="ms-stepper-navigation-wrapper"><div class="ms-stepper-navigation" \nlayout="row" layout-align="center center"><md-button class="ms-stepper-navigation-item" \nng-class="{\'current\': MsStepper.isStepCurrent(step.stepNumber), \'valid\': MsStepper.isStepValid(step.stepNumber), \'disabled\': MsStepper.isStepDisabled(step.stepNumber), \'optional\': MsStepper.isStepOptional(step.stepNumber)}" \nng-click="MsStepper.gotoStep(step.stepNumber)" ng-disabled="MsStepper.isStepDisabled(step.stepNumber)" \nng-repeat="step in MsStepper.steps | filter:MsStepper.filterHiddenStep" layout="row" layout-align="start center"><div \nclass="step md-accent-bg" layout="row" layout-align="center center"><span \nng-if="!MsStepper.isStepValid(step.stepNumber) || MsStepper.isStepOptional(step.stepNumber)">{{$index + 1}} </span>\n<span ng-if="MsStepper.isStepValid(step.stepNumber) && !MsStepper.isStepOptional(step.stepNumber)"><i \nclass="icon icon-check s18"></i></span></div><div layout="column" layout-align="start start"><div class="title" \ntranslate="{{step.stepTitleTranslate}}">{{step.stepTitle}}</div><div class="subtitle" \nng-if="MsStepper.isStepOptional(step.stepNumber)">Optional</div></div></md-button></div></div><div \nclass="ms-stepper-steps" ng-transclude></div><div class="ms-stepper-controls" layout="row" \nlayout-align="center center"><md-button class="md-accent md-raised" ng-disabled="MsStepper.isFirstStep()" \nng-click="MsStepper.gotoPreviousStep()">Back</md-button><div class="ms-stepper-dots"><span \nng-repeat="step in MsStepper.steps" ng-hide="MsStepper.isStepHidden(step.stepNumber)" \nng-class="{\'selected md-accent-bg\':MsStepper.currentStepNumber === $index + 1}"></span></div><md-button \nclass="md-accent md-raised" ng-if="!MsStepper.isLastStep()" \nng-disabled="!MsStepper.isStepValid(MsStepper.currentStepNumber)" ng-click="MsStepper.gotoNextStep()">Next</md-button>\n<md-button type="submit" class="md-accent md-raised" ng-click="MsStepper.resetForm()" ng-if="MsStepper.isLastStep()" \nng-disabled="!MsStepper.isFormValid()">Submit</md-button></div></div>'),e.put("app/core/directives/ms-stepper/templates/vertical/vertical.html",'<div class="ms-stepper-vertical"><div class="ms-stepper-vertical-line"></div><div class="ms-stepper-steps" \nng-transclude></div></div>'),e.put("app/main/issues/dialogs/card/html/card-dialog.html",'<md-dialog class="card-dialog" aria-label="Card Dialog" ng-cloak><md-toolbar \nng-include="\'app/main/issues/dialogs/card/html/header.html\'" class="md-accent" \nng-class="\'md-\'+vm.board.settings.color+\'-bg\'"></md-toolbar><div class="issue-content" ms-scroll style="height: 100%">\n<md-tabs class="issue-tabs" style="min-height: 530px; height: 100%; overflow: hidden"><md-tab label="Main">\n<md-dialog-content style="overflow: hidden" ng-include="\'app/main/issues/dialogs/card/html/main.html\'" ms-scroll>\n</md-dialog-content></md-tab><md-tab label="Comments"><md-dialog-content \nng-include="\'app/main/issues/dialogs/card/html/comments.html\'" ms-scroll></md-dialog-content></md-tab><md-tab \nlabel="Plans"><md-dialog-content ng-include="\'app/main/issues/dialogs/card/html/plans.html\'" ms-scroll>\n</md-dialog-content></md-tab><md-tab label="Updates"><md-dialog-content \nng-include="\'app/main/issues/dialogs/card/html/updates.html\'" ms-scroll></md-dialog-content></md-tab></md-tabs></div>\n</md-dialog>'),e.put("app/main/issues/dialogs/card/html/comments.html",'<div class="sections"><div class="section"><div class="comments"><div class="section-header" layout="row" \nlayout-align="start center"><i class="icon-comment s18"></i> <span class="section-title">Comments</span></div><div \nclass="section-content"><form name="cardCommentForm" \nng-submit="vm.addNewComment(vm.newCommentText); vm.newCommentText =\'\'" class="comment new-comment" layout="column" \nlayout-align="start" no-validate><md-input-container flex md-no-float><textarea wrap="hard" cols="30" \nplaceholder="Write a comment.." ng-model="vm.newCommentText" required translate \ntranslate-attr-placeholder="SB.WRITE_A_COMMENT">\n          </textarea></md-input-container><div layout="row" \nlayout-align="end center"><md-button type="submit" class="md-raised md-accent" aria-label="Add"><span \ntranslate="SB.ADD">Add</span></md-button></div></form><div class="comment" layout="row" \nng-repeat="comment in vm.card.comments.slice().reverse()"><img ng-if="comment.author.userImage !== undefined" \nclass="comment-member-avatar" ng-src="{{comment.author.userImage}}"> <img \nng-if="comment.author.userImage === undefined" class="comment-member-avatar" \nng-src="https://s3-us-west-2.amazonaws.com/apilatest2/logo.png"><div layout="column"><div class="comment-member-name">\n{{comment.author.name}} <span class="comment-time secondary-text">{{vm.Utils.timeDiff(comment.createdOn)}}</span> <span\n class="comment-time secondary-text comment-date">{{ comment.createdOn | date:\'h:mm a MMM dd, yyyy\'}}</span></div><div \nclass="comment-bubble" wrap="hard" ng-if="comment.author._id === vm.userid" onaftersave="vm.updateComment(comment)" \neditable-textarea="comment.commentText" ng-trim="false" e-rows="7" e-cols="50">{{ comment.commentText }}</div><div \nclass="comment-bubble" wrap="hard" ng-if="comment.author._id !== vm.userid" ng-trim="false" e-rows="7" e-cols="50">\n{{ comment.commentText }}</div></div></div></div></div></div></div>'),e.put("app/main/issues/dialogs/card/html/header.html",'<div class="md-toolbar-tools"><div class="due-date"><div ng-if="!vm.card.currdue" moment-picker="vm.card.currdue" \nformat="x" min-view="year" max-view="month" start-view="month"><md-button class="md-icon-button" \nng-disabled="vm.editPermissions(\'\')" aria-label="Due date" translate translate-attr-aria-label="SB.DUE_DATE" \nng-click="$mdOpenMenu($event)"><md-tooltip>Due Date</md-tooltip><md-icon md-font-icon="icon-calendar"></md-icon>\n</md-button></div></div><md-menu md-offset="0 48" class="members"><md-button class="md-icon-button" \nng-disabled="vm.editPermissions(\'\')" aria-label="Members" ng-click="$mdOpenMenu($event)"><md-tooltip>Members\n</md-tooltip><md-icon md-menu-origin md-font-icon="icon-account-multiple"></md-icon></md-button><md-menu-content \nclass="members-menu-content" width="4" ms-scroll><md-menu-item><md-input-container class="no-errors-spacer" \nmd-no-float><input placeholder="Search members..." autocomplete="off" type="text" ng-model="vm.memberSearchText" \ntranslate translate-attr-placeholder="SB.SEARCH_MEMBERS"></md-input-container></md-menu-item><md-menu-item \nclass="member" ng-repeat="member in vm.members  | filter: vm.filterMember"><md-button \nng-click="vm.addMembers(member, vm.card.idMembers)" md-prevent-menu-close aria-label="toggle member" translate \ntranslate-attr-aria-label="SB.TOGGLE_MEMBER"><div layout="row" layout-align="space-between center"><div layout="row" \nlayout-align="start center"><img class="avatar" alt="{{member.name}}" \nng-src="{{member.userImage || \'assets/images/avatars/userDefaultProfile.png\'}}"><p class="member-name">\n{{ member.name }}</p></div><i class="icon-check s16" ng-if="vm.existsMembers(member, vm.card.idMembers)"></i></div>\n</md-button></md-menu-item></md-menu-content></md-menu><md-menu md-offset="0 48px" class="options"><md-button \nclass="md-icon-button" ng-disabled="vm.editPermissions(\'\')" ng-click="$mdOpenMenu($event)" aria-label="Attachment" \ntranslate translate-attr-aria-label="SB.ATTACHMENT"><md-tooltip>Attachments</md-tooltip><md-icon \nmd-font-icon="icon-attachment"></md-icon></md-button><md-menu-content class="options-menu-content" width="4">\n<md-menu-item><md-button type="file" ngf-select="vm.uploadFiles($file, $invalidFiles, vm.card)" ngf-max-size="5MB">\n<md-icon md-font-icon="icon-attachment" md-menu-align-target></md-icon><span>Add attachment</span></md-button>\n</md-menu-item></md-menu-content></md-menu><md-menu md-offset="0 48px" class="checklist"><md-button \nclass="md-icon-button" ng-disabled="vm.editPermissions(\'\')" ng-click="$mdOpenMenu($event)" aria-label="checklist" \ntranslate translate-attr-aria-label="SB.CHECKLIST"><md-tooltip>Checklists</md-tooltip><md-icon md-menu-origin \nmd-font-icon="icon-checkbox-marked"></md-icon></md-button><md-menu-content class="checklist-menu-content" width="4">\n<form ng-submit="vm.createCheckList()" layout="column" layout-align="start end"><md-input-container \nclass="no-errors-spacer" md-no-float><input placeholder="Checklist Title" autocomplete="off" type="text" \nng-model="vm.newCheckListTitle" translate translate-attr-placeholder="SB.CHECKLIST_TITLE"></md-input-container>\n<md-button type="submit" class="md-raised md-accent" aria-label="Add Checklist" translate \ntranslate-attr-aria-label="SB.ADD_CHECKLIST"><span translate="SB.ADD_CHECKLIST">Add Checklist</span></md-button></form>\n</md-menu-content></md-menu><md-menu md-offset="0 48" class="labels"><md-button class="md-icon-button" \nng-disabled="vm.editPermissions(\'\')" aria-label="Label" translate translate-attr-aria-label="SB.LABEL" \nng-click="vm.labelTabIndex = 0;$mdOpenMenu($event)"><md-tooltip>Labels</md-tooltip><md-icon md-menu-origin \nmd-font-icon="icon-label-outline"></md-icon></md-button><md-menu-content class="labels-menu-content" width="4" \nms-scroll><md-tabs md-selected="vm.labelTabIndex" md-dynamic-height><md-tab><md-tab-body><md-menu-item>\n<md-input-container class="no-errors-spacer" md-no-float><input placeholder="Search labels..." type="text" \nng-model="vm.labelSearchText" autocomplete="off" translate-attr-palceholder="SB.SEARCH_LABELS"></md-input-container>\n</md-menu-item><md-menu-item class="label" ng-repeat="label in vm.board.labels | filter: vm.filterLabel"><md-button \nclass="label-toggle-button" md-prevent-menu-close ng-class="\'md-\'+label.color+\'-bg\'" \nng-click="vm.addLabelToCard(label._id)" aria-label="Toggle Label" translate \ntranslate-attr-aria-label="SB.TOGGLE_LABEL"><div layout="row" layout-align="space-between center"><span>{{label.name}}\n</span> <i ng-if="vm.isLabelInCard(label.name)" class="icon-check s16"></i></div></md-button><md-button \nclass="md-icon-button label-edit-button" md-prevent-menu-close ng-click="vm.editLabel(label)" aria-label="Edit Label" \ntranslate translate-attr-aria-label="SB.EDIT_LABEL"><md-icon md-font-icon="icon-pencil" class="s16"></md-icon>\n</md-button></md-menu-item><md-menu-divider></md-menu-divider><md-menu-item><md-button class="add-label-button" \nmd-prevent-menu-close ng-click="vm.labelTabIndex = 1"><md-icon md-font-icon="icon-plus-circle-outline"></md-icon><span \ntranslate="SB.ADD_NEW_LABEL">Add new label</span></md-button></md-menu-item></md-tab-body></md-tab><md-tab>\n<md-tab-body><div class="add-label-tab-content"><div class="header" layout="row" layout-align="space-between center">\n<md-button class="md-icon-button" md-prevent-menu-close ng-click="vm.labelTabIndex = 0" aria-label="Back" translate \ntranslate-attr-aria-label="SB.BACK"><i class="icon-arrow-left s20"></i></md-button><span flex \ntranslate="SB.CREATE_LABEL">Create Label</span></div><div class="content" layout="column" layout-align="start stretch">\n<form ng-submit="vm.addNewLabel(); vm.labelTabIndex = 0" layout="column"><md-input-container class="no-errors-spacer" \nmd-no-float><input placeholder="Label Name" type="text" ng-model="vm.newLabelName" translate \ntranslate-attr-placeholder="SB.LABEL_NAME"></md-input-container><div class="label-color-picker" layout="row" \nlayout-wrap><label class="color" ng-repeat="(palette, hues) in vm.palettes" \nng-style="{\'background-color\': vm.rgba(hues[\'500\'].value), \'color\': vm.rgba(hues[\'500\'].contrast, 1)}" layout="column" \nlayout-align="center center"><input class="ng-hide" type="radio" ng-model="vm.newLabelColor" ng-value="palette" \naria-label="{{palette}}"> <i class="icon-check s18" ng-if="vm.newLabelColor === palette"></i></label></div><md-button \ntype="submit" md-prevent-menu-close class="create-button md-accent md-raised" aria-label="Create" translate \ntranslate-attr-aria-label="SB.CREATE"><span translate="SB.CREATE">Create</span></md-button></form></div></div>\n</md-tab-body></md-tab><md-tab><md-tab-body><div class="edit-label-tab-content"><div class="header" layout="row" \nlayout-align="space-between center"><md-button class="md-icon-button" md-prevent-menu-close \nng-click="vm.labelTabIndex = 0" aria-label="back" translate translate-attr-aria-label="SB.BACK"><i \nclass="icon-arrow-left s20"></i></md-button><span flex translate="SB.EDIT_LABEL">Edit Label</span></div><div \nclass="content" layout="column" layout-align="start stretch"><md-input-container class="no-errors-spacer" md-no-float>\n<input placeholder="Label Name" type="text" ng-blur="vm.updateLabel(vm.editLabel)" ng-model="vm.editLabel.newName" \ntranslate translate-attr-placeholder="SB.LABEL_NAME"></md-input-container><div class="label-color-picker" layout="row" \nlayout-wrap><label class="color" ng-repeat="(palette, hues) in vm.palettes" \nng-style="{\'background-color\': vm.rgba(hues[\'500\'].value), \'color\': vm.rgba(hues[\'500\'].contrast, 1)}" layout="column" \nlayout-align="center center"><input class="ng-hide" type="radio" ng-model="vm.editLabel.color" ng-value="palette" \nng-click="vm.updateLabel(vm.editLabel)" aria-label="{{palette}}"> <i ng-if="vm.editLabel.color === palette" \nclass="icon-check s18"></i></label></div><div layout="row" layout-align="end center" flex><md-button \nclass="remove-button md-icon-button" type="submit" md-prevent-menu-close \nng-click="vm.removeLabel(vm.editLabel); vm.labelTabIndex=0" aria-label="remove" translate \ntranslate-attr-aria-label="SB.REMOVE"><md-icon md-font-icon="icon-delete"></md-icon></md-button></div></div></div>\n</md-tab-body></md-tab></md-tabs></md-menu-content></md-menu><md-button class="md-icon-button" \nng-click="vm.exportIssue()" ng-disabled="vm.editPermissions(\'\')" aria-label="Options" translate \ntranslate-attr-aria-label="SB.OPTIONS"><md-tooltip>Export</md-tooltip><md-icon md-menu-origin \nmd-font-icon="icon-export"></md-icon></md-button><md-button class="md-icon-button" ng-click="vm.wordCloud()" \nng-disabled="vm.editPermissions(\'\')" aria-label="WordCloud"><md-tooltip>Word Cloud</md-tooltip><md-icon md-menu-origin \nmd-font-icon="icon-cloud"></md-icon></md-button><md-button class="md-icon-button" \nng-click="vm.changeConfidential(false)" \nng-if="vm.card.confidential === true && vm.card.responsibleParty._id === vm.userid" aria-label="Non Confidential">\n<md-tooltip>Click to make the issue non confidential</md-tooltip><md-icon md-menu-origin md-font-icon="icon-lock">\n</md-icon></md-button><md-button class="md-icon-button" ng-click="vm.changeConfidential(true)" \nng-if="vm.card.confidential !== true && vm.card.responsibleParty._id === vm.userid" aria-label="Confidential">\n<md-tooltip>Click to make the issue confidential</md-tooltip><md-icon md-menu-origin md-font-icon="icon-lock-unlocked">\n</md-icon></md-button><span flex></span><md-button class="md-icon-button" ng-click="vm.closeDialog()" \naria-label="Close Dialog" translate translate-attr-aria-label="SB.CLOSE_DIALOG"><md-icon md-font-icon="icon-close">\n</md-icon></md-button></div>'),e.put("app/main/issues/dialogs/card/html/main.html",'<div ng-if="vm.card.currdue" class="due-date" layout="row" layout-align="space-between center"><div \nclass="section-header" layout="row" layout-align="start center"><i class="icon-attachment s18"></i> <span \nclass="section-title" translate="SB.DUE_DATE">Due Date</span></div><div ng-if="vm.card.currdue" class="due-date" \nlayout="row" layout-align="end center"><div layout="row" layout-align="start center"><i class="s18 icon icon-calendar">\n</i> <span>{{vm.card.currdue | date}}</span></div><div class="remove-due-date" layout="row" \nlayout-align="center center" ng-click="vm.removeDueDate()"><i class="s16 icon icon-close"></i></div></div></div><div \nclass="sections"><div class="section"><md-input-container class="md-block"><label>Title</label><input \nng-disabled="vm.editPermissions(\'title\')" ng-model="vm.card.name" type="text" ng-blur="vm.updateIssue(\'name\')" focus>\n</md-input-container><md-input-container class="md-block"><label translate="SB.DESCRIPTION">Description</label>\n<textarea ng-disabled="vm.editPermissions(\'description\')" ng-model="vm.card.description" \nng-blur="vm.updateIssue(\'description\')" columns="1"></textarea></md-input-container><md-input-container \nclass="md-block"><label>Resolution Time Frame</label><md-select \nng-disabled="vm.editPermissions(\'resolutionTimeframe\')" ng-model="vm.card.resolutionTimeframe" \nng-change="vm.updateIssue(\'resolutionTimeframe\')" placeholder="Time Frame" required><md-option value="Hours">Hours\n</md-option><md-option value="Days">Days</md-option><md-option value="Weeks">Weeks</md-option><md-option \nvalue="Months">Months</md-option></md-select></md-input-container><md-input-container class="md-block"><md-tooltip \nng-if="vm.editPermissions(\'status\')">Not Editable by Minions</md-tooltip><label>Status</label><md-select \nng-disabled="vm.editPermissions(\'status\')" ng-model="vm.card.status" ng-change="vm.changeStatus()" \nplaceholder="Issue Status" required><md-option value="Open">Open</md-option><md-option value="Shelved">Shelved\n</md-option><md-option value="Closed"><span ng-if="vm.card.finalPlan.length <= 0" style="color: lightgrey">\nClosed (must have final plan) </span><span ng-if="vm.card.finalPlan.length > 0">Closed</span></md-option></md-select>\n</md-input-container><div class="md-block"><md-autocomplete required="" \nng-disabled="vm.editPermissions(\'responsibleParty\')" md-selected-item="vm.selectedItem" \nmd-input-name="vm.selectedItem" md-search-text="searchText" md-items="item in vm.getMatches(searchText)" \nmd-item-text="item.display" md-min-length="0" md-floating-label="Responsible Party" \nmd-selected-item-change="vm.changeResponsibleParty(\'responsibleParty\')"><md-item-template><span \nmd-highlight-text="searchText">{{item.display}}</span></md-item-template><md-not-found>No Users Found</md-not-found>\n</md-autocomplete></div><div flex class="labels"><div class="section-header" layout="row" layout-align="start center">\n<i class="icon-label-outline s18"></i> <span class="section-title" translate="SB.LABELS">Labels</span></div><div \nclass="section-content"><md-chips class="label-chips" ng-model="vm.card.labels" md-transform-chip="$chip">\n<md-autocomplete md-selected-item="vm.selectedLabel" md-search-text="vm.searchLabelText" \nmd-items="label in vm.labelQuerySearch(vm.searchLabelText)" md-item-text="label.name" placeholder="Search for a label" \nng-disabled="vm.editPermissions(\'\')" md-selected-item-change="vm.addLabelToCard(label._id)"><span \nmd-highlight-text="vm.searchLabelText">{{label.name}}</span></md-autocomplete><md-chip-template class="label-chip" \nng-class="\'md-\'+$chip.color+\'-bg\'"><span>{{$chip.name}}</span></md-chip-template><button md-chip-remove \nclass="md-primary" ng-disabled="vm.editPermissions(\'\')" ng-click="vm.removeLabelFromCard($chip.name, \'chip\')"><md-icon \nmd-font-icon="icon-close" class="s18"></md-icon></button></md-chips></div></div><div class="section-header" \nlayout="row" layout-align="start center"><i class="icon-account-multiple s18"></i> <span class="section-title" \ntranslate="SB.MEMBERS">Members</span></div><div class="section-content"><md-chips class="member-chips" \nng-model="vm.card.idMembers" md-transform-chip="$chip.id" md-autocomplete-snap md-require-match="true"><md-autocomplete\n md-selected-item="vm.selectedMember" md-search-text="vm.searchText" ng-disabled="vm.editPermissions(\'\')" \nmd-items="member in vm.memberQuerySearch(vm.searchText)" md-item-text="member.name" placeholder="Search for a member" \nmd-selected-item-change="vm.addMemberAutoComplete(vm.selectedMember)"><span md-highlight-text="vm.searchText">\n{{member.name}}</span></md-autocomplete><md-chip-template class="member-chip"><span>{{ $chip.name }}</span>\n</md-chip-template><button md-chip-remove class="md-primary" ng-disabled="vm.editPermissions(\'\')" \nng-click="vm.memberUpdate($chip.name)"><md-icon md-font-icon="icon-close" class="s18"></md-icon></button></md-chips>\n</div><div class="section"><div class="attachments"><div class="section-header" layout="row" \nlayout-align="start center"><i class="icon-attachment s18"></i> <span class="section-title" translate="SB.ATTACHMENTS">\nAttachments</span></div><div class="section-content"><div class="attachment" ng-repeat="item in vm.card.attachments">\n<div layout="row"><img ng-click="vm.openImage(item.url)" class="attachment-preview md-whiteframe-2dp" \nalt="Not an image no preview" ng-src="{{item.url}}"><div class="attachment-content" layout="column"><div layout="row" \nlayout-align="start center"><a class="attachment-name">{{item.name}}</a> <i \nng-if="vm.card.idAttachmentCover === item.id" class="icon-star yellow-700-fg attachment-is-cover s18"></i></div><span \nclass="attachment-time">{{item.time}}</span><md-menu><md-button class="md-raised attachment-actions-button" \nng-click="$mdOpenMenu($event)" aria-label="attachment actions"><span layout="row" layout-align="center center"><span \ntranslate="SB.ACTIONS">Actions</span> <i class="icon-chevron-down s20"></i></span></md-button><md-menu-content>\n<md-menu-item><md-button ng-click="vm.removeAttachment(item)" aria-label="Remove Attachment" translate \ntranslate-attr-aria-label="SB.REMOVE_ATTACHMENT"><span translate="SB.REMOVE_ATTACHMENT">Remove Attachment</span>\n</md-button></md-menu-item><md-menu-item><md-button ng-click="vm.downloadedInfo(item.name);" \naria-label="Download Attachment" ng-href="{{item.url}}" translate translate-attr-aria-label="SB.DOWNLOAD_ATTACHMENT">\n<span class="download-attachment" translate="SB.DOWNLOAD_ATTACHMENT">Download attachment</span></md-button>\n</md-menu-item></md-menu-content></md-menu></div></div></div><md-button type="file" \nngf-select="vm.uploadFiles($file, $invalidFiles, vm.card)" class="add-attachment-button" a ria-label="add attachment" \nng-disabled="vm.editPermissions(\'\')" ngf-max-size="5MB"><div layout="row" layout-align="start center"><span \ntranslate="SB.ADD_AN_ATTACHMENT">Add an attachment</span></div></md-button></div></div></div><div class="section" \nng-repeat="checklist in vm.card.checklists"><div class="checklist"><div class="section-header" layout="row" \nlayout-align="start center"><i class="icon-checkbox-marked s18"></i> <span class="section-title" e-rows="1" \ne-cols="60" ng-if="!vm.editPermissions(\'\')" editable-textarea="checklist.checklistName" \nonaftersave="vm.updateCheckListName(checklist, vm.oldData.checklists)">{{checklist.checklistName}} </span><span \nclass="section-title" e-rows="1" e-cols="60" ng-if="vm.editPermissions(\'\')">{{checklist.checklistName}}</span><md-menu \nmd-position-mode="target-right target" class="options"><md-button class="md-icon-button" \nng-click="$mdOpenMenu($event)" aria-label="options" ng-disabled="vm.editPermissions(\'\')" translate \ntranslate-attr-aria-label="SB.OPTIONS"><md-icon md-menu-origin md-font-icon="icon-dots-vertical"></md-icon></md-button>\n<md-menu-content class="options-menu-content" width="4"><md-menu-item><md-button \nng-click="vm.removeChecklist(checklist)" aria-label="Remove Checklist" ng-disabled="vm.editPermissions(\'\')" translate \ntranslate-attr-aria-label="SB.REMOVE_CHECKLIST"><md-icon md-font-icon="icon-delete"></md-icon><span \ntranslate="SB.REMOVE_CHECKLIST">Remove Checklist</span></md-button></md-menu-item></md-menu-content></md-menu></div>\n<div class="section-content"><div class="checklist-progress" layout="row" layout-align="start center"><span \nclass="checklist-progress-value">{{checklist.checkItemsChecked}} / {{checklist.checkItems.length}}</span>\n<md-progress-linear class="md-accent checklist-progressbar" md-mode="determinate" \nvalue="{{100 * checklist.checkItemsChecked / checklist.checkItems.length}}"></md-progress-linear></div><div \nclass="check-items"><div class="check-item" ng-repeat="checkItem in checklist.checkItems"><md-checkbox \nclass="item-checklist" ng-model="checkItem.checked" ng-disabled="vm.editPermissions(\'\')" \nng-change="vm.updateCheckedCount(checklist, checkItem)" aria-label="{{checkItem.name}}"></md-checkbox><a href="#" \nng-class="checkItem.checked ? \'underline_item\' : \'standard_item\'" editable-textarea="checkItem.name" e-rows="7" \ne-cols="40" ng-if="!vm.editPermissions(\'\')" onaftersave="vm.updateCheckItem(checklist, $index, checkItem)">\n{{checkItem.name}} </a><span ng-class="checkItem.checked ? \'underline_item\' : \'standard_item\'" e-rows="7" e-cols="40" \nng-if="vm.editPermissions(\'\')">{{checkItem.name}}</span></div></div><form name="newCheckItemForm" \nclass="new-check-item-form" ng-submit="vm.addCheckItem(checklist.newCheckItem, checklist);checklist.newCheckItem = \'\'" \nlayout="row" layout-align="start center"><md-input-container class="no-errors-spacer" \nng-disabled="vm.editPermissions(\'\')" flex><label layout="row" layout-align="center"><i class="icon-plus s18"></i> <span\n translate="SB.ADD_AN_ITEM">Add an item</span></label><input type="text" autocomplete="off" \nng-model="checklist.newCheckItem"></md-input-container><md-button type="submit" class="md-raised md-accent" \naria-label="Add" ng-disabled="vm.editPermissions(\'\')" translate translate-attr-aria-label="SB.ADD"><span \ntranslate="SB.ADD">Add</span></md-button></form></div></div></div></div></div>'),
  e.put("app/main/issues/dialogs/card/html/plans.html",'<div class="sections"><div class="section"><div class="comments"><div class="section-header" layout="row" \nlayout-align="start center"><i class="icon-clipboard-check s18"></i> <span class="section-title">Plan</span></div><div \nclass="section-content"><form name="cardCommentForm" ng-submit="vm.addFinalPlan()" class="comment final-plan-new" \nlayout="column" layout-align="start" no-validate><md-input-container flex md-no-float><textarea ms-scroll \nplaceholder="Issue\'s Plan" ng-model="vm.newFinalPlanText" ng-disabled="vm.editPermissions(\'\')" required translate \ntranslate-attr-placeholder="SB.FINAL_PLAN">\n          </textarea></md-input-container><div layout="row" \nlayout-align="end center"><span ng-if="!vm.finalPlanChecklist">Finshed Item </span><span ng-if="vm.finalPlanChecklist">\nAdd to todo</span><md-switch ng-model="vm.finalPlanChecklist" aria-label=""></md-switch><md-button \nng-disabled="vm.editPermissions(\'\')" type="submit" class="md-raised md-accent" aria-label="Add Item"><span \ntranslate="SB.FINAL_PLAN_ADD">Add Item</span></md-button></div></form></div><h3 ng-if="vm.card.finalPlan.length > 0">\nThe plan to solve the issue:</h3><div class="comment" layout="row" \nng-repeat="plan in vm.card.finalPlan.slice().reverse()"><img ng-if="plan.author.userImage !== undefined" \nclass="comment-member-avatar" ng-src="{{plan.author.userImage}}"> <img ng-if="plan.author.userImage === undefined" \nclass="comment-member-avatar" ng-src="https://s3-us-west-2.amazonaws.com/apilatest2/logo.png"><div layout="column"><div\n class="comment-member-name">{{plan.author.name}} <span class="comment-time secondary-text">\n{{vm.Utils.timeDiff(plan.createdOn)}}</span> <span class="comment-time secondary-text comment-date">\n{{ plan.createdOn | date:\'h:mm a MMM dd, yyyy\'}}</span></div><div class="comment-bubble" \nonaftersave="vm.updatePlan(plan)" editable-textarea="plan.text" ng-if="plan.author._id === vm.userid" ng-trim="false" \ne-rows="7" e-cols="50">{{ plan.text }}</div><div class="comment-bubble" ng-trim="false" \nng-if="plan.author._id !== vm.userid" e-rows="7" e-cols="50">{{ plan.text }}</div></div></div></div></div></div>'),e.put("app/main/issues/dialogs/card/html/updates.html",'<div class="sections"><div class="section"><div class="activities"><div class="section-header" layout="row" \nlayout-align="start center"><i class="icon-format-list-bulleted s18"></i> <span class="section-title">Updates</span>\n</div><div class="section-content"><h5>{{ vm.createdIssue }} <span tooltip="{{ vm.card.description }}" class="tooltip">\nDescription, </span><span>Responsible Party,<md-tooltip md-direction="top">{{ vm.card.responsibleParty.name }}\n</md-tooltip></span><span>and Time Frame<md-tooltip md-direction="top">{{ vm.card.resolutionTimeframe }}</md-tooltip>\n</span><span class="activity-time secondary-text">{{ vm.issueTimeAgo }}</span></h5><div class="activity" layout="row" \nlayout-align="start center" ng-repeat="update in vm.card.updateInfo.slice().reverse()"><ul><li \nng-repeat="f in vm.formatUpdateArray(update.updateField, update.updateBy, update.updateDate) track by $index"><img \nclass="activity-member-avatar" ng-src="{{f.userImage}}"> <span class="activity-member-name">{{ f.userName }} </span>\n<span><span tooltip="{{ f.tooltip }}" ng-if="f.multiline" class="tooltip">{{ f.infoFormated }}</span> <span \nng-if="!f.differentLayout && !f.multiline">{{ f.infoFormated }}</span> <span ng-if="f.differentLayout">\n{{ f.firstPart }} <span>{{ f.checklist }}<md-tooltip md-direction="top">{{ f.checktooltip }}</md-tooltip></span>\n{{ f.secondPart }} </span><span ng-if="f.twoToltips" class="tooltip" tooltip="{{ f.old }}">{{ f.oldTip }} </span><span \nng-if="!f.twoToltips">{{ f.oldTip }}<md-tooltip md-direction="top">{{ f.old }}</md-tooltip></span><span \nng-if="f.twoToltips" class="tooltip" tooltip="{{ f.new }}">{{ f.newTip }} </span><span ng-if="!f.twoToltips">\n{{ f.newTip }}<md-tooltip md-direction="top">{{ f.new }}</md-tooltip></span><md-tooltip \nng-if="f.tooltip && !f.multiline" md-direction="top">{{ f.tooltip }}</md-tooltip></span><span \nclass="activity-time secondary-text">{{ f.timeDiff }}</span></li></ul></div></div></div></div></div>'),e.put("app/main/ui/page-layouts/carded/fullwidth/fullwidth.html",'<div class="page-layout carded fullwidth" layout="row"><div class="top-bg md-accent-bg"></div><div class="center" \nlayout="column" flex><div class="header"><span class="h2 white-fg">Fullwidth with independent scroll</span></div><div \nclass="content-card" layout="column" flex><div class="toolbar" layout="row" layout-align="start center"><span>\nContent toolbar</span></div><md-content class="content" flex ms-scroll><div \nng-include="\'app/main/ui/page-layouts/demo/demo-content.html\'"></div></md-content></div></div></div>'),e.put("app/main/ui/page-layouts/carded/left-sidenav/left-sidenav.html",'<div class="page-layout carded left-sidenav" layout="row"><div class="top-bg md-accent-bg"></div><md-sidenav \nclass="sidenav" md-is-locked-open="$mdMedia(\'gt-md\')" md-component-id="sidenav" ms-scroll ms-sidenav-helper><div \nclass="header"><p>Sidenav header</p></div><md-content class="content" flex ms-scroll><div \nng-include="\'app/main/ui/page-layouts/demo/demo-sidenav.html\'"></div></md-content></md-sidenav><div class="center" \nlayout="column" flex><div class="header" layout="row"><div><span class="h2 white-fg">\nLeft sidenav with independent scroll</span></div></div><div class="content-card" layout="column" flex><div \nclass="toolbar" layout="row" layout-align="start center"><md-button class="md-icon-button sidenav-toggle" \nng-click="vm.toggleSidenav(\'sidenav\')" hide-gt-md aria-label="Toggle left sidenav"><md-icon md-font-icon="icon-menu" \nclass="icon"></md-icon></md-button><p>Content toolbar</p></div><md-content class="content" flex ms-scroll><div \nng-include="\'app/main/ui/page-layouts/demo/demo-content.html\'"></div></md-content></div></div></div>'),e.put("app/main/ui/page-layouts/carded/left-sidenav-ii/left-sidenav-ii.html",'<div class="page-layout carded left-sidenav single-scroll" layout="row"><div class="top-bg md-accent-bg"></div>\n<md-sidenav class="sidenav" md-is-locked-open="$mdMedia(\'gt-md\')" md-component-id="sidenav" ms-scroll \nms-sidenav-helper><div class="header"><p>Sidenav header</p></div><md-content class="content" ms-scroll><div \nng-include="\'app/main/ui/page-layouts/demo/demo-sidenav.html\'"></div></md-content></md-sidenav><div class="center" \nflex><div class="header" layout="row"><div><span class="h2 white-fg">Left sidenav with page scroll</span></div></div>\n<div class="content-card"><div class="toolbar" layout="row" layout-align="start center"><md-button \nclass="md-icon-button sidenav-toggle" ng-click="vm.toggleSidenav(\'sidenav\')" hide-gt-md \naria-label="Toggle left sidenav"><md-icon md-font-icon="icon-menu" class="icon"></md-icon></md-button><p>\nContent toolbar</p></div><md-content class="content" ms-scroll><div \nng-include="\'app/main/ui/page-layouts/demo/demo-content.html\'"></div></md-content></div></div></div>'),e.put("app/main/ui/page-layouts/carded/right-sidenav/right-sidenav.html",'<div class="page-layout carded right-sidenav" layout="row"><div class="top-bg md-accent-bg"></div><div class="center" \nlayout="column" flex><div class="header" layout="row"><div><span class="h2 white-fg">\nRight sidenav with independent scroll</span></div></div><div class="content-card" layout="column" flex><div \nclass="toolbar" layout="row" layout-align="space-between center"><p>Content toolbar</p><md-button \nclass="md-icon-button sidenav-toggle" ng-click="vm.toggleSidenav(\'sidenav\')" hide-gt-md aria-label="Toggle right pane">\n<md-icon md-font-icon="icon-menu" class="icon"></md-icon></md-button></div><md-content class="content" flex ms-scroll>\n<div ng-include="\'app/main/ui/page-layouts/demo/demo-content.html\'"></div></md-content></div></div><md-sidenav \nclass="sidenav md-sidenav-right" md-is-locked-open="$mdMedia(\'gt-md\')" md-component-id="sidenav" ms-scroll \nms-sidenav-helper><div class="header"><p>Sidenav header</p></div><md-content class="content" ms-scroll flex><div \nng-include="\'app/main/ui/page-layouts/demo/demo-sidenav.html\'"></div></md-content></md-sidenav></div>'),e.put("app/main/ui/page-layouts/carded/right-sidenav-ii/right-sidenav-ii.html",'<div class="page-layout carded right-sidenav single-scroll" layout="row"><div class="top-bg md-accent-bg"></div><div \nclass="center" flex><div class="header" layout="row"><div><span class="h2 white-fg">Right sidenav with page scroll\n</span></div></div><div class="content-card"><div class="toolbar" layout="row" layout-align="space-between center"><p>\nContent toolbar</p><md-button class="md-icon-button sidenav-toggle" ng-click="vm.toggleSidenav(\'sidenav\')" hide-gt-md \naria-label="Toggle right pane"><md-icon md-font-icon="icon-menu" class="icon"></md-icon></md-button></div><md-content \nclass="content" ms-scroll><div ng-include="\'app/main/ui/page-layouts/demo/demo-content.html\'"></div></md-content></div>\n</div><md-sidenav class="sidenav md-sidenav-right" md-is-locked-open="$mdMedia(\'gt-md\')" md-component-id="sidenav" \nms-scroll ms-sidenav-helper><div class="header"><p>Sidenav header</p></div><md-content class="content" ms-scroll><div \nng-include="\'app/main/ui/page-layouts/demo/demo-sidenav.html\'"></div></md-content></md-sidenav></div>'),e.put("app/main/ui/page-layouts/simple/fullwidth/fullwidth.html",'<div class="page-layout simple fullwidth"><div class="header md-accent-bg"><span class="h2">Fullwidth</span></div><div \nclass="content" md-background-bg><div ng-include="\'app/main/ui/page-layouts/demo/demo-content.html\'"></div></div></div>'),e.put("app/main/ui/page-layouts/simple/left-sidenav/left-sidenav.html",'<div class="page-layout simple left-sidenav" layout="row"><md-sidenav class="sidenav" \nmd-is-locked-open="$mdMedia(\'gt-md\')" md-component-id="sidenav" ms-scroll ms-sidenav-helper><div \nng-include="\'app/main/ui/page-layouts/demo/demo-sidenav.html\'"></div></md-sidenav><div class="center" flex ms-scroll>\n<div class="header md-accent-bg" layout="row"><md-button class="md-icon-button sidenav-toggle" \nng-click="vm.toggleSidenav(\'sidenav\')" hide-gt-md aria-label="Toggle sidenav"><md-icon md-font-icon="icon-menu" \nclass="icon"></md-icon></md-button><div><span class="h2">Left sidenav with independent scroll</span></div></div><div \nclass="content md-background-bg"><div ng-include="\'app/main/ui/page-layouts/demo/demo-content.html\'"></div></div></div>\n</div>'),e.put("app/main/ui/page-layouts/simple/left-sidenav-ii/left-sidenav-ii.html",'<div class="page-layout simple left-sidenav single-scroll" layout="row"><md-sidenav class="sidenav" \nmd-is-locked-open="$mdMedia(\'gt-md\')" md-component-id="sidenav" ms-scroll ms-sidenav-helper><div \nng-include="\'app/main/ui/page-layouts/demo/demo-sidenav.html\'"></div></md-sidenav><div class="center" flex ms-scroll>\n<div class="header md-accent-bg" layout="row"><md-button class="md-icon-button sidenav-toggle" \nng-click="vm.toggleSidenav(\'sidenav\')" hide-gt-md aria-label="Toggle sidenav"><md-icon md-font-icon="icon-menu" \nclass="icon"></md-icon></md-button><div><span class="h2">Left sidenav with page scroll</span></div></div><div \nclass="content md-background-bg"><div ng-include="\'app/main/ui/page-layouts/demo/demo-content.html\'"></div></div></div>\n</div>'),e.put("app/main/ui/page-layouts/simple/right-sidenav/right-sidenav.html",'<div class="page-layout simple right-sidenav" layout="row"><div class="center" flex ms-scroll><div \nclass="header md-accent-bg" layout="row" layout-align="space-between"><div><span class="h2">\nRight sidenav with independent scroll</span></div><md-button class="md-icon-button sidenav-toggle" \nng-click="vm.toggleSidenav(\'sidenav\')" hide-gt-md aria-label="Toggle sidenav"><md-icon md-font-icon="icon-menu" \nclass="icon"></md-icon></md-button></div><div class="content md-background-bg"><div \nng-include="\'app/main/ui/page-layouts/demo/demo-content.html\'"></div></div></div><md-sidenav \nclass="sidenav md-sidenav-right" md-is-locked-open="$mdMedia(\'gt-md\')" md-component-id="sidenav" ms-scroll \nms-sidenav-helper><div ng-include="\'app/main/ui/page-layouts/demo/demo-sidenav.html\'"></div></md-sidenav></div>'),e.put("app/main/ui/page-layouts/simple/right-sidenav-ii/right-sidenav-ii.html",'<div class="page-layout simple right-sidenav single-scroll" layout="row"><div class="center" flex ms-scroll><div \nclass="header md-accent-bg" layout="row" layout-align="space-between"><div><span class="h2">\nRight sidenav with page scroll</span></div><md-button class="md-icon-button sidenav-toggle" \nng-click="vm.toggleSidenav(\'sidenav\')" hide-gt-md aria-label="Toggle sidenav"><md-icon md-font-icon="icon-menu" \nclass="icon"></md-icon></md-button></div><div class="content md-background-bg"><div \nng-include="\'app/main/ui/page-layouts/demo/demo-content.html\'"></div></div></div><md-sidenav \nclass="sidenav md-sidenav-right" md-is-locked-open="$mdMedia(\'gt-md\')" md-component-id="sidenav" ms-scroll \nms-sidenav-helper><div ng-include="\'app/main/ui/page-layouts/demo/demo-sidenav.html\'"></div></md-sidenav></div>'),e.put("app/main/ui/page-layouts/simple/tabbed/tabbed.html",'<div class="page-layout simple tabbed" layout="column"><div class="header md-accent-bg"><span class="h2">Tabbed</span>\n</div><div class="content"><md-tabs md-dynamic-height><md-tab label="Tab 1"><div \nng-include="\'app/main/ui/page-layouts/demo/demo-content.html\'"></div></md-tab><md-tab label="Tab 2"><div \nng-include="\'app/main/ui/page-layouts/demo/demo-content.html\'"></div></md-tab><md-tab label="Tab 3"><div \nng-include="\'app/main/ui/page-layouts/demo/demo-content.html\'"></div></md-tab></md-tabs></div></div>'),e.put("app/main/ui/theme-colors/dialogs/custom-theme/custom-theme-dialog.html",'<md-dialog class="custom-theme-dialog" aria-label="Custom Theme"><md-toolbar><div class="md-toolbar-tools"><h2>\nCustom Theme Generator</h2><span flex></span><md-button class="md-icon-button" ng-click="vm.closeDialog()"><md-icon \nmd-font-icon="icon-close" aria-label="Close dialog"></md-icon></md-button></div></md-toolbar><md-dialog-content><div \nlayout="row" ng-repeat="type in [\'primary\', \'accent\', \'warn\', \'background\']"><h3 class="type">{{type}}</h3>\n<md-input-container><label>Palette</label><md-select ng-model="vm.theme[type].name" \nng-style="{\'background-color\': vm.rgba(vm.palettes[vm.theme[type].name][\'500\'].value), \'color\': vm.rgba(vm.palettes[vm.theme[type].name][\'500\'].contrast, 1)}">\n<md-option ng-value="palette" ng-repeat="(palette, hues) in vm.palettes" \nng-style="{\'background-color\': vm.rgba(hues[\'500\'].value), \'color\': vm.rgba(hues[\'500\'].contrast, 1)}">{{palette}}\n</md-option></md-select></md-input-container><div layout="row" \nng-repeat="hueType in [\'default\', \'hue-1\', \'hue-2\', \'hue-3\']"><md-input-container><label>{{hueType}}</label><md-select \nng-model="vm.theme[type].hues[hueType]" \nng-style="{\'background-color\': vm.rgba(vm.palettes[vm.theme[type].name][vm.theme[type].hues[hueType]].value), \'color\': vm.rgba(vm.palettes[vm.theme[type].name][vm.theme[type].hues[hueType]].contrast, 1)}">\n<md-option ng-value="hue" ng-repeat="(hue, opt) in vm.palettes[vm.theme[type].name]" \nng-style="{\'background-color\': vm.rgba(opt.value), \'color\': vm.rgba(opt.contrast, 1)}">{{hue}}</md-option></md-select>\n</md-input-container></div></div><md-divider></md-divider><div layout="row"><p>\nTo make this theme permanent, copy the below code and add it into the "fuseThemes" object in "core/theming/fuse-themes.constant.js" file. You can also replace the "CUSTOM_THEME_NAME" with your theme name.\n</p></div><div layout="row"><textarea readonly="readonly" class="theme-object">"CUSTOM_THEME_NAME" : {{vm.theme}}\n</textarea></div></md-dialog-content><md-dialog-actions layout="row"><span flex></span><md-button \nclass="md-raised md-accent" ng-click="vm.setTheme()">Set Theme</md-button></md-dialog-actions></md-dialog>'),e.put("app/main/issues/dialogs/card/image-view/imageView.html",'<md-dialog class="confirm"><md-dialog-conent><img ng-click="vm.cancel()" src="{{ vm.imgUrl }}"></md-dialog-conent>\n</md-dialog>'),e.put("app/main/ui/theme-colors/tabs/background/background.html",'<div class="color" layout="row" layout-wrap layout-align="center center"><div class="md-background-bg" flex="100" \nlayout="row" layout-padding><div flex>Default</div><div flex>{{vm.themes.active.theme.background.color}}</div><div \nflex>.md-background-bg</div></div><div class="md-background-bg" flex="100" layout="row" layout-padding><div flex>\nPrimary Text</div><div flex>{{vm.themes.active.theme.background.contrast1}}</div><div flex>.md-background-bg</div>\n</div><div class="md-background-bg" flex="100" class="secondary-text" layout="row" layout-padding><div \nclass="secondary-text" flex>Secondary Text / Icon</div><div class="secondary-text" flex>\n{{vm.themes.active.theme.background.contrast2}}</div><div class="secondary-text" flex>.md-background-bg .secondary-text\n</div></div><div class="md-background-bg" flex="100" class="hint-text" layout="row" layout-padding><div \nclass="hint-text" flex>Hint Text / Disabled Text</div><div class="hint-text" flex>\n{{vm.themes.active.theme.background.contrast3}}</div><div class="hint-text" flex>.md-background-bg .hint-text</div>\n</div><div class="md-background-bg" flex="100" class="divider" layout="row" layout-padding><div class="fade-text" flex>\nFade Text / Divider</div><div class="fade-text" flex>{{vm.themes.active.theme.background.contrast4}}</div><div \nclass="fade-text" flex>.md-background-bg .divider</div></div><div flex="100" class="md-primary-bg md-background-fg" \nlayout="row" layout-padding><div flex>As foreground color</div><div flex>{{vm.themes.active.theme.background.color}}\n</div><div flex>.md-background-fg</div></div></div><div class="color" layout="row" layout-wrap \nlayout-align="center center"><div class="md-background-bg md-hue-1" flex="100" layout="row" layout-padding><div flex>\nHue 1</div><div flex>{{vm.themes.active.theme.background.hue1.color}}</div><div flex>.md-background-bg .md-hue-1</div>\n</div><div class="md-background-bg md-hue-1" flex="100" layout="row" layout-padding><div flex>Primary Text</div><div \nflex>{{vm.themes.active.theme.background.hue1.contrast1}}</div><div flex>.md-background-bg</div></div><div \nclass="md-background-bg md-hue-1" flex="100" class="secondary-text" layout="row" layout-padding><div \nclass="secondary-text" flex>Secondary Text / Icon</div><div class="secondary-text" flex>\n{{vm.themes.active.theme.background.hue1.contrast2}}</div><div class="secondary-text" flex>\n.md-background-bg .md-hue-1 .secondary-text</div></div><div class="md-background-bg md-hue-1" flex="100" \nclass="hint-text" layout="row" layout-padding><div class="hint-text" flex>Hint Text / Disabled Text</div><div \nclass="hint-text" flex>{{vm.themes.active.theme.background.hue1.contrast3}}</div><div class="hint-text" flex>\n.md-background-bg .md-hue-1 .hint-text</div></div><div class="md-background-bg md-hue-1" flex="100" class="divider" \nlayout="row" layout-padding><div class="fade-text" flex>Fade Text / Divider</div><div class="fade-text" flex>\n{{vm.themes.active.theme.background.hue1.contrast4}}</div><div class="fade-text" flex>\n.md-background-bg .md-hue-1 .divider</div></div><div flex="100" class="md-primary-bg" layout="row" layout-padding><div \nflex class="md-background-fg md-hue-1">As foreground color</div><div flex class="md-background-fg md-hue-1">\n{{vm.themes.active.theme.background.hue1.color}}</div><div flex class="md-background-fg md-hue-1">.md-background-fg\n</div></div></div><div class="color" layout="row" layout-wrap layout-align="center center"><div \nclass="md-background-bg md-hue-2" flex="100" layout="row" layout-padding><div flex>Hue 2</div><div flex>\n{{vm.themes.active.theme.background.hue2.color}}</div><div flex>.md-background-bg .md-hue-2</div></div><div \nclass="md-background-bg md-hue-2" flex="100" layout="row" layout-padding><div flex>Primary Text</div><div flex>\n{{vm.themes.active.theme.background.hue2.contrast1}}</div><div flex>.md-background-bg</div></div><div \nclass="md-background-bg md-hue-2" flex="100" class="secondary-text" layout="row" layout-padding><div \nclass="secondary-text" flex>Secondary Text / Icon</div><div class="secondary-text" flex>\n{{vm.themes.active.theme.background.hue2.contrast2}}</div><div class="secondary-text" flex>\n.md-background-bg .md-hue-2 .secondary-text</div></div><div class="md-background-bg md-hue-2" flex="100" \nclass="hint-text" layout="row" layout-padding><div class="hint-text" flex>Hint Text / Disabled Text</div><div \nclass="hint-text" flex>{{vm.themes.active.theme.background.hue2.contrast3}}</div><div class="hint-text" flex>\n.md-background-bg .md-hue-2 .hint-text</div></div><div class="md-background-bg md-hue-2" flex="100" class="divider" \nlayout="row" layout-padding><div class="fade-text" flex>Fade Text / Divider</div><div class="fade-text" flex>\n{{vm.themes.active.theme.background.hue2.contrast4}}</div><div class="fade-text" flex>\n.md-background-bg .md-hue-2 .divider</div></div><div flex="100" class="md-primary-bg" layout="row" layout-padding><div \nflex class="md-background-fg md-hue-2">As foreground color</div><div flex class="md-background-fg md-hue-2">\n{{vm.themes.active.theme.background.hue2.color}}</div><div flex class="md-background-fg md-hue-2">.md-background-fg\n</div></div></div><div class="color" layout="row" layout-wrap layout-align="center center"><div \nclass="md-background-bg md-hue-3" flex="100" layout="row" layout-padding><div flex>Hue 3</div><div flex>\n{{vm.themes.active.theme.background.hue3.color}}</div><div flex>.md-background-bg .md-hue-3</div></div><div \nclass="md-background-bg md-hue-3" flex="100" layout="row" layout-padding><div flex>Primary Text</div><div flex>\n{{vm.themes.active.theme.background.hue3.contrast1}}</div><div flex>.md-background-bg</div></div><div \nclass="md-background-bg md-hue-3" flex="100" class="secondary-text" layout="row" layout-padding><div \nclass="secondary-text" flex>Secondary Text / Icon</div><div class="secondary-text" flex>\n{{vm.themes.active.theme.background.hue3.contrast2}}</div><div class="secondary-text" flex>\n.md-background-bg .md-hue-3 .secondary-text</div></div><div class="md-background-bg md-hue-3" flex="100" \nclass="hint-text" layout="row" layout-padding><div class="hint-text" flex>Hint Text / Disabled Text</div><div \nclass="hint-text" flex>{{vm.themes.active.theme.background.hue3.contrast3}}</div><div class="hint-text" flex>\n.md-background-bg .md-hue-3 .hint-text</div></div><div class="md-background-bg md-hue-3" flex="100" class="divider" \nlayout="row" layout-padding><div class="fade-text" flex>Fade Text / Divider</div><div class="fade-text" flex>\n{{vm.themes.active.theme.background.hue3.contrast4}}</div><div class="fade-text" flex>\n.md-background-bg .md-hue-3 .divider</div></div><div flex="100" class="md-primary-bg" layout="row" layout-padding><div \nflex class="md-background-fg md-hue-3">As foreground color</div><div flex class="md-background-fg md-hue-3">\n{{vm.themes.active.theme.background.hue3.color}}</div><div flex class="md-background-fg md-hue-3">.md-background-fg\n</div></div></div>'),e.put("app/main/ui/theme-colors/tabs/primary/primary.html",'<div class="color" layout="row" layout-wrap layout-align="center center"><div class="md-primary-bg" flex="100" \nlayout="row" layout-padding><div flex>Default</div><div flex>{{vm.themes.active.theme.primary.color}}</div><div flex>\n.md-primary-bg</div></div><div class="md-primary-bg" flex="100" layout="row" layout-padding><div flex>Primary Text\n</div><div flex>{{vm.themes.active.theme.primary.contrast1}}</div><div flex>.md-primary-bg</div></div><div \nclass="md-primary-bg" flex="100" class="secondary-text" layout="row" layout-padding><div class="secondary-text" flex>\nSecondary Text / Icon</div><div class="secondary-text" flex>{{vm.themes.active.theme.primary.contrast2}}</div><div \nclass="secondary-text" flex>.md-primary-bg .secondary-text</div></div><div class="md-primary-bg" flex="100" \nclass="hint-text" layout="row" layout-padding><div class="hint-text" flex>Hint Text / Disabled Text</div><div \nclass="hint-text" flex>{{vm.themes.active.theme.primary.contrast3}}</div><div class="hint-text" flex>\n.md-primary-bg .hint-text</div></div><div class="md-primary-bg" flex="100" class="divider" layout="row" layout-padding>\n<div class="fade-text" flex>Fade Text / Divider</div><div class="fade-text" flex>\n{{vm.themes.active.theme.primary.contrast4}}</div><div class="fade-text" flex>.md-primary-bg .divider</div></div><div \nflex="100" class="md-primary-fg" layout="row" layout-padding><div flex>As foreground color</div><div flex>\n{{vm.themes.active.theme.primary.color}}</div><div flex>.md-primary-fg</div></div></div><div class="color" \nlayout="row" layout-wrap layout-align="center center"><div class="md-primary-bg md-hue-1" flex="100" layout="row" \nlayout-padding><div flex>Hue 1</div><div flex>{{vm.themes.active.theme.primary.hue1.color}}</div><div flex>\n.md-primary-bg .md-hue-1</div></div><div class="md-primary-bg md-hue-1" flex="100" layout="row" layout-padding><div \nflex>Primary Text</div><div flex>{{vm.themes.active.theme.primary.hue1.contrast1}}</div><div flex>.md-primary-bg</div>\n</div><div class="md-primary-bg md-hue-1" flex="100" class="secondary-text" layout="row" layout-padding><div \nclass="secondary-text" flex>Secondary Text / Icon</div><div class="secondary-text" flex>\n{{vm.themes.active.theme.primary.hue1.contrast2}}</div><div class="secondary-text" flex>\n.md-primary-bg .md-hue-1 .secondary-text</div></div><div class="md-primary-bg md-hue-1" flex="100" class="hint-text" \nlayout="row" layout-padding><div class="hint-text" flex>Hint Text / Disabled Text</div><div class="hint-text" flex>\n{{vm.themes.active.theme.primary.hue1.contrast3}}</div><div class="hint-text" flex>.md-primary-bg .md-hue-1 .hint-text\n</div></div><div class="md-primary-bg md-hue-1" flex="100" class="divider" layout="row" layout-padding><div \nclass="fade-text" flex>Fade Text / Divider</div><div class="fade-text" flex>\n{{vm.themes.active.theme.primary.hue1.contrast4}}</div><div class="fade-text" flex>.md-primary-bg .md-hue-1 .divider\n</div></div><div flex="100" class="md-primary-fg md-hue-1" layout="row" layout-padding><div flex>As foreground color\n</div><div flex>{{vm.themes.active.theme.primary.hue1.color}}</div><div flex>.md-primary-fg</div></div></div><div \nclass="color" layout="row" layout-wrap layout-align="center center"><div class="md-primary-bg md-hue-2" flex="100" \nlayout="row" layout-padding><div flex>Hue 2</div><div flex>{{vm.themes.active.theme.primary.hue2.color}}</div><div \nflex>.md-primary-bg .md-hue-2</div></div><div class="md-primary-bg md-hue-2" flex="100" layout="row" layout-padding>\n<div flex>Primary Text</div><div flex>{{vm.themes.active.theme.primary.hue2.contrast1}}</div><div flex>.md-primary-bg\n</div></div><div class="md-primary-bg md-hue-2" flex="100" class="secondary-text" layout="row" layout-padding><div \nclass="secondary-text" flex>Secondary Text / Icon</div><div class="secondary-text" flex>\n{{vm.themes.active.theme.primary.hue2.contrast2}}</div><div class="secondary-text" flex>\n.md-primary-bg .md-hue-2 .secondary-text</div></div><div class="md-primary-bg md-hue-2" flex="100" class="hint-text" \nlayout="row" layout-padding><div class="hint-text" flex>Hint Text / Disabled Text</div><div class="hint-text" flex>\n{{vm.themes.active.theme.primary.hue2.contrast3}}</div><div class="hint-text" flex>.md-primary-bg .md-hue-2 .hint-text\n</div></div><div class="md-primary-bg md-hue-2" flex="100" class="divider" layout="row" layout-padding><div \nclass="fade-text" flex>Fade Text / Divider</div><div class="fade-text" flex>\n{{vm.themes.active.theme.primary.hue2.contrast4}}</div><div class="fade-text" flex>.md-primary-bg .md-hue-2 .divider\n</div></div><div flex="100" class="md-primary-fg md-hue-2" layout="row" layout-padding><div flex>As foreground color\n</div><div flex>{{vm.themes.active.theme.primary.hue2.color}}</div><div flex>.md-primary-fg</div></div></div><div \nclass="color" layout="row" layout-wrap layout-align="center center"><div class="md-primary-bg md-hue-3" flex="100" \nlayout="row" layout-padding><div flex>Hue 3</div><div flex>{{vm.themes.active.theme.primary.hue3.color}}</div><div \nflex>.md-primary-bg .md-hue-3</div></div><div class="md-primary-bg md-hue-3" flex="100" layout="row" layout-padding>\n<div flex>Primary Text</div><div flex>{{vm.themes.active.theme.primary.hue3.contrast1}}</div><div flex>.md-primary-bg\n</div></div><div class="md-primary-bg md-hue-3" flex="100" class="secondary-text" layout="row" layout-padding><div \nclass="secondary-text" flex>Secondary Text / Icon</div><div class="secondary-text" flex>\n{{vm.themes.active.theme.primary.hue3.contrast2}}</div><div class="secondary-text" flex>\n.md-primary-bg .md-hue-3 .secondary-text</div></div><div class="md-primary-bg md-hue-3" flex="100" class="hint-text" \nlayout="row" layout-padding><div class="hint-text" flex>Hint Text / Disabled Text</div><div class="hint-text" flex>\n{{vm.themes.active.theme.primary.hue3.contrast3}}</div><div class="hint-text" flex>.md-primary-bg .md-hue-3 .hint-text\n</div></div><div class="md-primary-bg md-hue-3" flex="100" class="divider" layout="row" layout-padding><div \nclass="fade-text" flex>Fade Text / Divider</div><div class="fade-text" flex>\n{{vm.themes.active.theme.primary.hue3.contrast4}}</div><div class="fade-text" flex>.md-primary-bg .md-hue-3 .divider\n</div></div><div flex="100" class="md-primary-fg md-hue-3" layout="row" layout-padding><div flex>As foreground color\n</div><div flex>{{vm.themes.active.theme.primary.hue3.color}}</div><div flex>.md-primary-fg</div></div></div>'),e.put("app/main/ui/theme-colors/tabs/warn/warn.html",'<div class="color" layout="row" layout-wrap layout-align="center center"><div class="md-warn-bg" flex="100" \nlayout="row" layout-padding><div flex>Default</div><div flex>{{vm.themes.active.theme.warn.color}}</div><div flex>\n.md-warn-bg</div></div><div class="md-warn-bg" flex="100" layout="row" layout-padding><div flex>Primary Text</div><div \nflex>{{vm.themes.active.theme.warn.contrast1}}</div><div flex>.md-warn-bg</div></div><div class="md-warn-bg" \nflex="100" class="secondary-text" layout="row" layout-padding><div class="secondary-text" flex>Secondary Text / Icon\n</div><div class="secondary-text" flex>{{vm.themes.active.theme.warn.contrast2}}</div><div class="secondary-text" flex>\n.md-warn-bg .secondary-text</div></div><div class="md-warn-bg" flex="100" class="hint-text" layout="row" \nlayout-padding><div class="hint-text" flex>Hint Text / Disabled Text</div><div class="hint-text" flex>\n{{vm.themes.active.theme.warn.contrast3}}</div><div class="hint-text" flex>.md-warn-bg .hint-text</div></div><div \nclass="md-warn-bg" flex="100" class="divider" layout="row" layout-padding><div class="fade-text" flex>\nFade Text / Divider</div><div class="fade-text" flex>{{vm.themes.active.theme.warn.contrast4}}</div><div \nclass="fade-text" flex>.md-warn-bg .divider</div></div><div flex="100" class="md-warn-fg" layout="row" layout-padding>\n<div flex>As foreground color</div><div flex>{{vm.themes.active.theme.warn.color}}</div><div flex>.md-warn-fg</div>\n</div></div><div class="color" layout="row" layout-wrap layout-align="center center"><div class="md-warn-bg md-hue-1" \nflex="100" layout="row" layout-padding><div flex>Hue 1</div><div flex>{{vm.themes.active.theme.warn.hue1.color}}</div>\n<div flex>.md-warn-bg .md-hue-1</div></div><div class="md-warn-bg md-hue-1" flex="100" layout="row" layout-padding><div\n flex>Primary Text</div><div flex>{{vm.themes.active.theme.warn.hue1.contrast1}}</div><div flex>.md-warn-bg</div></div>\n<div class="md-warn-bg md-hue-1" flex="100" class="secondary-text" layout="row" layout-padding><div \nclass="secondary-text" flex>Secondary Text / Icon</div><div class="secondary-text" flex>\n{{vm.themes.active.theme.warn.hue1.contrast2}}</div><div class="secondary-text" flex>\n.md-warn-bg .md-hue-1 .secondary-text</div></div><div class="md-warn-bg md-hue-1" flex="100" class="hint-text" \nlayout="row" layout-padding><div class="hint-text" flex>Hint Text / Disabled Text</div><div class="hint-text" flex>\n{{vm.themes.active.theme.warn.hue1.contrast3}}</div><div class="hint-text" flex>.md-warn-bg .md-hue-1 .hint-text</div>\n</div><div class="md-warn-bg md-hue-1" flex="100" class="divider" layout="row" layout-padding><div class="fade-text" \nflex>Fade Text / Divider</div><div class="fade-text" flex>{{vm.themes.active.theme.warn.hue1.contrast4}}</div><div \nclass="fade-text" flex>.md-warn-bg .md-hue-1 .divider</div></div><div flex="100" class="md-warn-fg md-hue-1" \nlayout="row" layout-padding><div flex>As foreground color</div><div flex>{{vm.themes.active.theme.warn.hue1.color}}\n</div><div flex>.md-warn-fg</div></div></div><div class="color" layout="row" layout-wrap layout-align="center center">\n<div class="md-warn-bg md-hue-2" flex="100" layout="row" layout-padding><div flex>Hue 2</div><div flex>\n{{vm.themes.active.theme.warn.hue2.color}}</div><div flex>.md-warn-bg .md-hue-2</div></div><div \nclass="md-warn-bg md-hue-2" flex="100" layout="row" layout-padding><div flex>Primary Text</div><div flex>\n{{vm.themes.active.theme.warn.hue2.contrast1}}</div><div flex>.md-warn-bg</div></div><div class="md-warn-bg md-hue-2" \nflex="100" class="secondary-text" layout="row" layout-padding><div class="secondary-text" flex>Secondary Text / Icon\n</div><div class="secondary-text" flex>{{vm.themes.active.theme.warn.hue2.contrast2}}</div><div class="secondary-text" \nflex>.md-warn-bg .md-hue-2 .secondary-text</div></div><div class="md-warn-bg md-hue-2" flex="100" class="hint-text" \nlayout="row" layout-padding><div class="hint-text" flex>Hint Text / Disabled Text</div><div class="hint-text" flex>\n{{vm.themes.active.theme.warn.hue2.contrast3}}</div><div class="hint-text" flex>.md-warn-bg .md-hue-2 .hint-text</div>\n</div><div class="md-warn-bg md-hue-2" flex="100" class="divider" layout="row" layout-padding><div class="fade-text" \nflex>Fade Text / Divider</div><div class="fade-text" flex>{{vm.themes.active.theme.warn.hue2.contrast4}}</div><div \nclass="fade-text" flex>.md-warn-bg .md-hue-2 .divider</div></div><div flex="100" class="md-warn-fg md-hue-2" \nlayout="row" layout-padding><div flex>As foreground color</div><div flex>{{vm.themes.active.theme.warn.hue2.color}}\n</div><div flex>.md-warn-fg</div></div></div><div class="color" layout="row" layout-wrap layout-align="center center">\n<div class="md-warn-bg md-hue-3" flex="100" layout="row" layout-padding><div flex>Hue 3</div><div flex>\n{{vm.themes.active.theme.warn.hue3.color}}</div><div flex>.md-warn-bg .md-hue-3</div></div><div \nclass="md-warn-bg md-hue-3" flex="100" layout="row" layout-padding><div flex>Primary Text</div><div flex>\n{{vm.themes.active.theme.warn.hue3.contrast1}}</div><div flex>.md-warn-bg</div></div><div class="md-warn-bg md-hue-3" \nflex="100" class="secondary-text" layout="row" layout-padding><div class="secondary-text" flex>Secondary Text / Icon\n</div><div class="secondary-text" flex>{{vm.themes.active.theme.warn.hue3.contrast2}}</div><div class="secondary-text" \nflex>.md-warn-bg .md-hue-3 .secondary-text</div></div><div class="md-warn-bg md-hue-3" flex="100" class="hint-text" \nlayout="row" layout-padding><div class="hint-text" flex>Hint Text / Disabled Text</div><div class="hint-text" flex>\n{{vm.themes.active.theme.warn.hue3.contrast3}}</div><div class="hint-text" flex>.md-warn-bg .md-hue-3 .hint-text</div>\n</div><div class="md-warn-bg md-hue-3" flex="100" class="divider" layout="row" layout-padding><div class="fade-text" \nflex>Fade Text / Divider</div><div class="fade-text" flex>{{vm.themes.active.theme.warn.hue3.contrast4}}</div><div \nclass="fade-text" flex>.md-warn-bg .md-hue-3 .divider</div></div><div flex="100" class="md-warn-fg md-hue-3" \nlayout="row" layout-padding><div flex>As foreground color</div><div flex>{{vm.themes.active.theme.warn.hue3.color}}\n</div><div flex>.md-warn-fg</div></div></div>'),
  e.put("app/core/directives/ms-stepper/templates/vertical/step/vertical-step.html",'<md-button class="ms-stepper-navigation-item" \nng-class="{\'current\': MsStepper.isStepCurrent(stepInfo.stepNumber), \'valid\': MsStepper.isStepValid(stepInfo.stepNumber), \'disabled\': MsStepper.isStepDisabled(stepInfo.stepNumber), \'optional\': MsStepper.isStepOptional(stepInfo.stepNumber)}" \nng-click="MsStepper.gotoStep(stepInfo.stepNumber)" ng-disabled="MsStepper.isStepDisabled(stepInfo.stepNumber)" \nng-hide="MsStepper.isStepHidden(stepInfo.stepNumber)" aria-label="Stepper navigation button" layout="row" \nlayout-align="start center"><div class="step" layout="row" layout-align="center center"><span \nng-if="!MsStepper.isStepValid(stepInfo.stepNumber) || MsStepper.isStepOptional(stepInfo.stepNumber)"><i \nclass="icon icon-checkbox-blank-circle-outline s18 md-accent-fg"></i> </span><span \nng-if="MsStepper.isStepValid(stepInfo.stepNumber) && !MsStepper.isStepOptional(stepInfo.stepNumber)"><i \nclass="icon icon-check-circle s18 md-accent-fg"></i></span></div><div layout="column" layout-align="start start"><div \nclass="title" ng-if="stepInfo.stepTitleTranslate">{{stepInfo.stepTitleTranslate | translate }}</div><div class="title" \nng-if="!stepInfo.stepTitleTranslate">{{stepInfo.stepTitle}}</div><div class="subtitle" \nng-if="MsStepper.isStepOptional(stepInfo.stepNumber)">Optional</div></div></md-button><div \nclass="ms-stepper-step-content" ng-transclude></div><div class="ms-stepper-controls" layout="row" \nlayout-align="start center" ng-show="MsStepper.isStepCurrent(stepInfo.stepNumber)"><md-button \nclass="md-accent md-raised" ng-disabled="MsStepper.isFirstStep()" ng-click="MsStepper.gotoPreviousStep()">Back\n</md-button><md-button class="md-accent md-raised" ng-if="!MsStepper.isLastStep()" \nng-disabled="!MsStepper.isStepValid(MsStepper.currentStepNumber)" ng-click="MsStepper.gotoNextStep()">Next</md-button>\n<md-button type="submit" class="md-accent md-raised" ng-click="MsStepper.resetForm()" ng-if="MsStepper.isLastStep()" \nng-disabled="!MsStepper.isFormValid()">Submit</md-button></div>'),e.put("app/main/ui/page-layouts/carded/fullwidth-ii/fullwidth-ii.html",'<div class="page-layout carded fullwidth single-scroll" layout="row"><div class="top-bg md-accent-bg"></div><div \nclass="center" flex><div class="header"><span class="h2 white-fg">Fullwidth with page scroll</span></div><div \nclass="content-card"><div class="toolbar" layout="row" layout-align="start center"><span>Content toolbar</span></div>\n<md-content class="content" ms-scroll><div ng-include="\'app/main/ui/page-layouts/demo/demo-content.html\'"></div>\n</md-content></div></div></div>'),e.put("app/main/ui/theme-colors/tabs/accent/accent.html",'<div class="color" layout="row" layout-wrap layout-align="center center"><div class="md-accent-bg" flex="100" \nlayout="row" layout-padding><div flex>Default</div><div flex>{{vm.themes.active.theme.accent.color}}</div><div flex>\n.md-accent-bg</div></div><div class="md-accent-bg" flex="100" layout="row" layout-padding><div flex>Primary Text</div>\n<div flex>{{vm.themes.active.theme.accent.contrast1}}</div><div flex>.md-accent-bg</div></div><div \nclass="md-accent-bg" flex="100" class="secondary-text" layout="row" layout-padding><div class="secondary-text" flex>\nSecondary Text / Icon</div><div class="secondary-text" flex>{{vm.themes.active.theme.accent.contrast2}}</div><div \nclass="secondary-text" flex>.md-accent-bg .secondary-text</div></div><div class="md-accent-bg" flex="100" \nclass="hint-text" layout="row" layout-padding><div class="hint-text" flex>Hint Text / Disabled Text</div><div \nclass="hint-text" flex>{{vm.themes.active.theme.accent.contrast3}}</div><div class="hint-text" flex>\n.md-accent-bg .hint-text</div></div><div class="md-accent-bg" flex="100" class="divider" layout="row" layout-padding>\n<div class="fade-text" flex>Fade Text / Divider</div><div class="fade-text" flex>\n{{vm.themes.active.theme.accent.contrast4}}</div><div class="fade-text" flex>.md-accent-bg .divider</div></div><div \nflex="100" class="md-accent-fg" layout="row" layout-padding><div flex>As foreground color</div><div flex>\n{{vm.themes.active.theme.accent.color}}</div><div flex>.md-accent-fg</div></div></div><div class="color" layout="row" \nlayout-wrap layout-align="center center"><div class="md-accent-bg md-hue-1" flex="100" layout="row" layout-padding><div\n flex>Hue 1</div><div flex>{{vm.themes.active.theme.accent.hue1.color}}</div><div flex>.md-accent-bg .md-hue-1</div>\n</div><div class="md-accent-bg md-hue-1" flex="100" layout="row" layout-padding><div flex>Primary Text</div><div flex>\n{{vm.themes.active.theme.accent.hue1.contrast1}}</div><div flex>.md-accent-bg</div></div><div \nclass="md-accent-bg md-hue-1" flex="100" class="secondary-text" layout="row" layout-padding><div \nclass="secondary-text" flex>Secondary Text / Icon</div><div class="secondary-text" flex>\n{{vm.themes.active.theme.accent.hue1.contrast2}}</div><div class="secondary-text" flex>\n.md-accent-bg .md-hue-1 .secondary-text</div></div><div class="md-accent-bg md-hue-1" flex="100" class="hint-text" \nlayout="row" layout-padding><div class="hint-text" flex>Hint Text / Disabled Text</div><div class="hint-text" flex>\n{{vm.themes.active.theme.accent.hue1.contrast3}}</div><div class="hint-text" flex>.md-accent-bg .md-hue-1 .hint-text\n</div></div><div class="md-accent-bg md-hue-1" flex="100" class="divider" layout="row" layout-padding><div \nclass="fade-text" flex>Fade Text / Divider</div><div class="fade-text" flex>\n{{vm.themes.active.theme.accent.hue1.contrast4}}</div><div class="fade-text" flex>.md-accent-bg .md-hue-1 .divider\n</div></div><div flex="100" class="md-accent-fg md-hue-1" layout="row" layout-padding><div flex>As foreground color\n</div><div flex>{{vm.themes.active.theme.accent.hue1.color}}</div><div flex>.md-accent-fg</div></div></div><div \nclass="color" layout="row" layout-wrap layout-align="center center"><div class="md-accent-bg md-hue-2" flex="100" \nlayout="row" layout-padding><div flex>Hue 2</div><div flex>{{vm.themes.active.theme.accent.hue2.color}}</div><div flex>\n.md-accent-bg .md-hue-2</div></div><div class="md-accent-bg md-hue-2" flex="100" layout="row" layout-padding><div flex>\nPrimary Text</div><div flex>{{vm.themes.active.theme.accent.hue2.contrast1}}</div><div flex>.md-accent-bg</div></div>\n<div class="md-accent-bg md-hue-2" flex="100" class="secondary-text" layout="row" layout-padding><div \nclass="secondary-text" flex>Secondary Text / Icon</div><div class="secondary-text" flex>\n{{vm.themes.active.theme.accent.hue2.contrast2}}</div><div class="secondary-text" flex>\n.md-accent-bg .md-hue-2 .secondary-text</div></div><div class="md-accent-bg md-hue-2" flex="100" class="hint-text" \nlayout="row" layout-padding><div class="hint-text" flex>Hint Text / Disabled Text</div><div class="hint-text" flex>\n{{vm.themes.active.theme.accent.hue2.contrast3}}</div><div class="hint-text" flex>.md-accent-bg .md-hue-2 .hint-text\n</div></div><div class="md-accent-bg md-hue-2" flex="100" class="divider" layout="row" layout-padding><div \nclass="fade-text" flex>Fade Text / Divider</div><div class="fade-text" flex>\n{{vm.themes.active.theme.accent.hue2.contrast4}}</div><div class="fade-text" flex>.md-accent-bg .md-hue-2 .divider\n</div></div><div flex="100" class="md-accent-fg md-hue-2" layout="row" layout-padding><div flex>As foreground color\n</div><div flex>{{vm.themes.active.theme.accent.hue2.color}}</div><div flex>.md-accent-fg</div></div></div><div \nclass="color" layout="row" layout-wrap layout-align="center center"><div class="md-accent-bg md-hue-3" flex="100" \nlayout="row" layout-padding><div flex>Hue 3</div><div flex>{{vm.themes.active.theme.accent.hue3.color}}</div><div flex>\n.md-accent-bg .md-hue-3</div></div><div class="md-accent-bg md-hue-3" flex="100" layout="row" layout-padding><div flex>\nPrimary Text</div><div flex>{{vm.themes.active.theme.accent.hue3.contrast1}}</div><div flex>.md-accent-bg</div></div>\n<div class="md-accent-bg md-hue-3" flex="100" class="secondary-text" layout="row" layout-padding><div \nclass="secondary-text" flex>Secondary Text / Icon</div><div class="secondary-text" flex>\n{{vm.themes.active.theme.accent.hue3.contrast2}}</div><div class="secondary-text" flex>\n.md-accent-bg .md-hue-3 .secondary-text</div></div><div class="md-accent-bg md-hue-3" flex="100" class="hint-text" \nlayout="row" layout-padding><div class="hint-text" flex>Hint Text / Disabled Text</div><div class="hint-text" flex>\n{{vm.themes.active.theme.accent.hue3.contrast3}}</div><div class="hint-text" flex>.md-accent-bg .md-hue-3 .hint-text\n</div></div><div class="md-accent-bg md-hue-3" flex="100" class="divider" layout="row" layout-padding><div \nclass="fade-text" flex>Fade Text / Divider</div><div class="fade-text" flex>\n{{vm.themes.active.theme.accent.hue3.contrast4}}</div><div class="fade-text" flex>.md-accent-bg .md-hue-3 .divider\n</div></div><div flex="100" class="md-accent-fg md-hue-3" layout="row" layout-padding><div flex>As foreground color\n</div><div flex>{{vm.themes.active.theme.accent.hue3.color}}</div><div flex>.md-accent-fg</div></div></div>'),e.put("app/main/issues/sidenavs/settings/menus/color/color-menu.html",'<div class="header md-whiteframe-2dp"><md-list><md-list-item class="selected-color"><p class="title" flex>\nSelected Color:</p><div ng-if="!vm.board.settings.color" class="preview md-background-bg md-hue-1"></div><div \nng-if="vm.board.settings.color" class="preview" ng-class="\'md-\'+vm.board.settings.color+\'-bg\'">\n{{vm.board.settings.color}}</div><md-button class="md-icon-button" ng-click="vm.board.settings.color = \'\'" \naria-label="Default Color"><md-icon md-font-icon="icon-close-circle"></md-icon></md-button></md-list-item></md-list>\n</div><div flex class="content" ms-scroll ms-sidenav-helper><md-list><md-list-item class="color" \nng-repeat="(paletteName, palette) in vm.palettes" ng-click="vm.board.settings.color = paletteName" \nng-class="\'md-\'+paletteName+\'-bg\'" aria-label="color select"><p flex>{{paletteName}}</p><i class="icon-check s16" \nng-if="paletteName === vm.board.settings.color"></i></md-list-item></md-list></div>'),e.put("app/main/issues/sidenavs/settings/menus/labels/labels-menu.html",'<md-list><md-subheader class="md-no-sticky">Add New Label</md-subheader><md-list-item class="label"><div layout="row" \nlayout-align="start center"><md-menu md-offset="0 52px"><md-button class="md-icon-button label-color-button" \nng-click="$mdOpenMenu($event)" aria-label="label color"><md-icon md-font-icon="icon-label" \nng-class="vm.newLabelColor+\'-fg\'" class="label-icon"></md-icon></md-button><md-menu-content \nclass="labels-settings-menu-content" width="3"><div class="new-label-color-pick" layout="row" layout-wrap><label \nclass="color" ng-repeat="(palette, hues) in vm.palettes" \nng-style="{\'background-color\': vm.rgba(hues[\'500\'].value), \'color\': vm.rgba(hues[\'500\'].contrast, 1)}" layout="column" \nlayout-align="center center"><input class="ng-hide" type="radio" ng-model="vm.newLabelColor" ng-value="palette" \naria-label="{{palette}}" ng-click="$mdMenu.hide()"> <i class="icon-check s18" ng-if="label.color === palette"></i>\n</label></div></md-menu-content></md-menu><span editable-text="vm.newLabelName" e-form="newLabelForm" \nonaftersave="vm.addNewLabel()"></span><p flex class="title new-label-form-button" ng-click="newLabelForm.$show()" \nng-hide="newLabelForm.$visible">Enter New Label Name</p></div></md-list-item><md-divider></md-divider><md-list-item \nclass="label" ng-repeat="label in vm.board.labels"><div layout="row" layout-align="start center"><md-menu \nmd-offset="0 52px"><md-button class="md-icon-button label-color-button" ng-click="$mdOpenMenu($event)" \naria-label="label color"><md-icon md-font-icon="icon-label" ng-class="label.color+\'-fg\'" class="label-icon"></md-icon>\n</md-button><md-menu-content class="labels-settings-menu-content" width="3"><div class="new-label-color-pick" \nlayout="row" layout-wrap><label class="color" ng-repeat="(palette, hues) in vm.palettes" \nng-style="{\'background-color\': vm.rgba(hues[\'500\'].value), \'color\': vm.rgba(hues[\'500\'].contrast, 1)}" layout="column" \nlayout-align="center center"><input class="ng-hide" type="radio" ng-model="label.color" ng-value="palette" \naria-label="{{palette}}" ng-click="$mdMenu.hide()"> <i class="icon-check s18" ng-if="label.color === palette"></i>\n</label></div></md-menu-content></md-menu><p flex class="title" editable-text="label.name">{{label.name}}</p><md-button\n ng-click="vm.removeLabel($event, label.id);" class="remove-button md-icon-button" aria-label="remove"><md-icon \nmd-font-icon="icon-delete"></md-icon></md-button></div></md-list-item></md-list>'),e.put("app/main/issues/sidenavs/settings/menus/members/members-menu.html",'<md-list><md-subheader class="md-no-sticky">Add New Member</md-subheader><md-list-item class="add-new-member"><form \nng-submit="vm.newMember()" layout="row" layout-align="start center"><input flex placeholder="Type Member Name" \ntype="text" ng-model="vm.newMemberSearchInput"><md-button type="submit" class="md-accent md-raised" \naria-label="Add New Member">Add</md-button></form></md-list-item><md-divider></md-divider><md-list-item class="member" \nng-repeat="member in vm.board.members"><img alt="{{ member.name }}" ng-src="{{ member.avatar }}" class="md-avatar"><p \nclass="member-name">{{ member.name }}</p><md-button ng-click="vm.removeMember($event, member.id);" \nclass="remove-button md-icon-button" aria-label="remove"><md-icon md-font-icon="icon-delete"></md-icon></md-button>\n</md-list-item></md-list>')}]);
  //# sourceMappingURL=../maps/scripts/app-c924c2a26d.js.map
  