{"version":3,"names":[],"mappings":"","sources":["my-pizza/my-pizza-controller.js"],"sourcesContent":["(function() {\r\n 'use strict';\r\n\r\n /**\r\n * @ngdoc object\r\n * @name myPizza.controller:MyPizzaCtrl\r\n *\r\n * @description\r\n *\r\n */\r\n angular\r\n .module('myPizza')\r\n .controller('MyPizzaCtrl', MyPizzaCtrl);\r\n\r\n function MyPizzaCtrl($scope, $rootScope, $timeout, $mdDialog, MyPizza) {\r\n $rootScope.pageTitle = \"הפיצריה שלי\";\r\n\r\n $scope.initGallery = function() {\r\n if ($scope.franchiseGraphics.gallery != undefined) {\r\n // if ($(\".franchise-gallery\").hasClass(\"slick-slider\")) {\r\n // $('.franchise-gallery').slick('unslick');\r\n //}\r\n $timeout(function() {\r\n $(\".franchise-gallery\").slick({\r\n slidesToShow: 1,\r\n slidesToScroll: 1,\r\n arrows: true,\r\n prevArrow: \"#left-arrow\",\r\n nextArrow: \"#right-arrow\",\r\n centerMode: true\r\n });\r\n }, 50);\r\n\r\n }\r\n }\r\n\r\n $scope.contactUsDialog = function() {\r\n $scope.slideUp();\r\n $mdDialog.show({\r\n templateUrl: 'my-pizza/contact-us-dialog.html',\r\n scope: $scope,\r\n preserveScope: true\r\n });\r\n }\r\n\r\n $scope.contactUs = function(text) {\r\n MyPizza.contactUs(text, $scope.getItemFromLocalStorage(\"loginToken\")).then(function(response) {\r\n //TODO\r\n });\r\n }\r\n\r\n $rootScope.$on(\"graphicsReady\", $scope.initGallery)\r\n\r\n $scope.initGallery();\r\n\r\n }\r\n}());\r\n"],"file":"my-pizza-controller.js"}