text: angular.module("templates",[]).run(["$templateCache",function(e){e.put("directives/foodEntry.html",'<div class="food-entry__container" ng-mouseleave="showMiddleStep = false; showQuantity = false"><div class="food-entry__frontside flex" ng-click="clicked()" ng-hide="showMiddleStep || showQuantity"><div class="food-entry__info"><span class="food-entry__name">{{name | lowercase}}</span> <span class="food-entry__note">{{note | lowercase}}</span></div><span class="food-entry__quantity flex flex-center" ng-show="quantity">{{quantity}}</span></div><div class="food-entry__middlestep flex flex-center" ng-show="showMiddleStep"><div class="food-entry__btn flex1" ng-click="onnote(); showMiddleStep = false">NOTA</div><div class="food-entry__btn food-entry__btn--qty flex1" ng-click="showQuantity = true; showMiddleStep = false">QTA</div></div><div class="food-entry__backside flex flex-center" ng-show="showQuantity"><span class="glyphicon glyphicon-minus" ng-click="onminus()"></span> <span class="food-entry__quantity flex flex-center">{{quantity}}</span> <span class="glyphicon glyphicon-plus" ng-click="onplus()"></span></div></div>'),e.put("directives/rmtModal.html",'<div class="rmt-modal"><div class="rmt-modal-dialog"><div class="rmt-modal-content"><div class="rmt-modal-header"><button class="close"><span>&times;</span></button><h4 class="rmt-modal-title">{{rmtModalTitle}}</h4></div><div class="rmt-modal-body"><ng-transclude></ng-transclude></div><div class="rmt-modal-footer"><button class="rmt-button" ng-click="rmtModalOnclose()">Close</button></div></div></div></div>'),e.put("food-or-drinks.html",'<h1><span class="glyphicon glyphicon-user"></span>Menu</h1><ul class="list-group" ng-controller="FoodOrDrinksCtrl"><li ng-click="selectMenu(\'drinksMenu\')" class="list-group-item flex flex-align-center">{{\'Bevande\' | lowercase}}</li><li ng-click="selectMenu(\'foodMenu\')" class="list-group-item flex flex-align-center">{{\'Cibo\' | lowercase}}</li></ul>'),e.put("food.html",'<h1><span class="glyphicon glyphicon-user"></span>Menu</h1><div ng-controller="FoodCtrl"><ul class="list-group"><li ng-repeat="food in foodList | orderBy: \'name\'" class="list-group-item"><food-entry ng-click="showModal( food )" name="food.name" quantity="appstate.order.getQuantity(food)" onplus="orderFood(food)" onminus="reduceFood(food)"></food-entry></li></ul><rmt-modal ng-show="modal.visible && quickNotes.length" rmt-modal-title="\'Aggiunto \' + modal.data.food.name" rmt-modal-onclose="hideModal()">Seleziona note rapide: {{modal.data.notes}}<ul class="flex list-reset"><li ng-repeat="quickNote in quickNotes" ng-class="{\'selected\': quickNote.selected}" class="flex1 rmt-button rmt-button--spaced" ng-click="quickNote.selected = !quickNote.selected">{{quickNote.text}}</li></ul></rmt-modal></div>'),e.put("new-order.html",'<div ng-controller="NewOrderCtrl"><h1 class="flex flex-align-center"><span class="glyphicon glyphicon-home"></span> <span class="flex1">Nuovo ordine</span><span class="glyphicon glyphicon-ok" ng-click="confirmTables(neworder)"></span></h1><ul class="nav nav-tabs"><li ng-repeat="room in rooms" ng-class="{active: neworder.room == room}" ng-click="neworder.room = room"><a href="#">{{room.name}}</a></li></ul><ul class="list-group"><li ng-repeat="table in tables" ng-click="neworder.selectTable(table)" ng-class="{\'selected\': neworder.isSelected(table)}" class="list-group-item flex flex-align-center">Tavolo {{table.id}} <span ng-show="{{table.busy}}" class="badge flex-child-right">Occupato</span></li></ul></div>'),e.put("order.html",'<div class="flex flex-vertical stretch" ng-controller="OrderCtrl"><h1 class="flex flex-align-center"><span class="glyphicon glyphicon-list"></span> <span class="flex1">Ordine corrente</span><span class="glyphicon glyphicon-trash" ng-click="removing = true" ng-hide="removing == true"></span> <span class="glyphicon glyphicon-ok" ng-click="removing = false" ng-show="removing == true"></span></h1><ul ng-hide="note.visible" class="list-group flex1"><li ng-repeat="item in orderContent | orderBy:\'menuType\':true" class="list-group-item"><food-entry name="item.food.name" quantity="item.quantity" note="item.note" onnote="showNote(item)" onplus="orderFood(item)" onminus="reduceFood(item)"></food-entry><div ng-show="removing == true" class="food-remove flex flex-center" ng-click="removeFood(item)">X</div></li></ul><ul ng-show="note.visible" class="list-group flex1"><li class="list-group-item"><food-entry name="note.item.food.name" quantity="note.item.quantity" note="item.note" onplus="orderFood(item)" onminus="reduceFood(item)"></food-entry><div class="save-note flex flex-center" ng-click="note.visible = false; saveNote(note)">Salva</div></li><div class="note-container flex flex-center flex-vertical"><span class="note__label">Prendi una nota:</span> <textarea ng-value="note.text" ng-model="note.text"></textarea></div></ul><div class="flex"><button class="rmt-button flex1" ng-hide="note.visible" ng-click="sendToKitchen(appstate.order); sentToKitchen = true;">Invia</button><vr style="width: 1px"></vr><button class="rmt-button flex1" ng-hide="note.visible" ng-click="sendInvoice(appstate.order); sentInvoice = true;">Conto</button></div><rmt-modal ng-show="sentToKitchen" rmt-modal-title="\'Comanda inviata!\'" rmt-modal-onclose="appstate.setView(\'table-selection\')">Inviato in cucina e al bar.</rmt-modal><rmt-modal ng-show="sentInvoice" rmt-modal-title="\'Conto inviato!\'" rmt-modal-onclose="appstate.setView(\'table-selection\')">Inviato alla cassa.<ul><li ng-repeat="item in orderContent">{{item.quantity + \'x\'}}, {{item.food.name}}, {{multiply(item.food.price, item.quantity) + \'€\'}}</li></ul><p>Totale: {{total + \'€\'}}</p></rmt-modal></div>'),e.put("sections.html",'<h1><span class="glyphicon glyphicon-user"></span>Menu</h1><ul class="list-group" ng-controller="SectionsCtrl"><li ng-repeat="section in sections | orderBy: section" ng-click="selectSection(section)" class="list-group-item flex flex-align-center">{{section | lowercase}}</li></ul>'),e.put("table-selection.html",'<h1><span class="glyphicon glyphicon-home"></span>Home: ordini attivi</h1><div ng-controller="TablesCtrl"><ul class="nav nav-tabs"><li ng-repeat="room in rooms" ng-class="{active: appstate.room == room}" ng-click="selectRoom(room)"><a href="#">{{room.name}}</a></li></ul><ul class="list-group"><li ng-repeat="table in tables | filter:{busy: true}" ng-click="selectTable(table)" class="list-group-item flex flex-align-center">Tavolo {{table.id}}</li></ul><div ng-hide="activeOrdersCount()" class="tables-placeholder flex flex-center">Clicca sul \'+\' per creare un nuovo ordine!</div></div>')}]);