{"version":3,"sources":["../js/controllers/main/publicPageScripts.js"],"names":["SUGApp","controller","s","section","showcategory","category","$scope","$location","urlTab","path","split","pop","tabs","pta-and-pto-groups","teachers-and-room-parents","school-districts-and-administrators","subgroup","showsubgroup"],"mappings":"AAEIA,OAAOC,WAAW,qBAAsB,CAAC,SAAU,SAAUC,GACzDA,EAAEC,QAAU,MACZD,EAAEE,aAAe,SAAWC,GAC5BH,EAAEC,QAAUE,CACZ,CACJ,EAAE,EAKFL,OAAOC,WAAW,qBAAsB,CAAC,SAAS,YAAa,SAAUK,EAAOC,GAE5E,IAAIC,EAASD,EAAUE,KAAK,EAAEC,MAAM,GAAG,EAAEC,IAAI,EAEzCC,EAAO,CACPC,qBAAsB,QACtBC,4BAA6B,SAC7BC,sCAAuC,OAC3C,EAGAT,EAAOU,SADWJ,EAAKJ,IAAyB,QAGhDF,EAAOW,aAAe,SAAWD,GACjCV,EAAOU,SAAWA,CAClB,CACJ,EAAE","file":"publicpagescripts.min.js","sourcesContent":["// 08/2018 Kyle Reworked to make applicable to multiple pages (Videos, Printables, etc.)\r\n(function(){\r\n SUGApp.controller('categoryController', ['$scope', function (s) {\r\n s.section = 'all';\r\n s.showcategory = function ( category ) {\r\n s.section = category;\r\n };\r\n }]);\r\n})();\r\n\r\n// Landing Pages Controller\r\n(function(){\r\n SUGApp.controller('subgroupController', ['$scope','$location', function ($scope,$location) {\r\n // Extract the path value from the url\r\n var urlTab = $location.path().split('/').pop();\r\n // Object to track the path values and their corresponding tabs\r\n var tabs = {\r\n 'pta-and-pto-groups': 'first',\r\n 'teachers-and-room-parents': 'second',\r\n 'school-districts-and-administrators': 'third'\r\n };\r\n // Set the default selected tab based the the path value from the url, if a valid one is present, otherwise, pre-select the first tab.\r\n var tabSelected = tabs[urlTab] ? tabs[urlTab] : 'first';\r\n $scope.subgroup = tabSelected; // Can be 'first', 'second', or 'third'\r\n\r\n $scope.showsubgroup = function ( subgroup ) {\r\n $scope.subgroup = subgroup;\r\n };\r\n }]);\r\n})();\r\n"]}