"use strict";var app=angular.module("app",["ui.router","ui.bootstrap","ngSanitize","templatescache","ngAnimate"]);angular.module("app").run(["$rootScope","$state","$stateParams",function(a,e,t){a.$state=e,a.$stateParams=t}]).config(["$stateProvider","$urlRouterProvider",function(a,e){e.otherwise("/tabview/iPhone"),a.state("tabview",{controller:"TabController",url:"/tabview",templateUrl:"templates/tabview.html"}).state("tabview.iPhone",{controller:"CarouselController",url:"/iPhone",templateUrl:"templates/guideview.html",data:{imgDir:"../img/iPhone/",count:7}}).state("tabview.android",{controller:"CarouselController",url:"/android",templateUrl:"templates/guideview.html",data:{imgDir:"../img/android/",count:9}})}]),angular.module("templatescache",[]).run(["$templateCache",function(a){a.put("templates/guideview.html",'<div>\r\n    <div uib-carousel active="active" interval="myInterval" no-wrap="noWrapSlides">\r\n        <div uib-slide ng-repeat="slide in slides track by slide.id" index="slide.id">\r\n            <img ng-src="{{slide.image}}" style="margin:auto;">\r\n            <div class="carousel-caption">\r\n            </div>\r\n        </div>\r\n    </div>\r\n</div>'),a.put("templates/pageTab.html",'<!--<div id="tabPage">\r\n    <div class="tabP">\r\n        <div id="tag">\r\n            <span  class="navdown" ui-sref=".page-1"><a href="" class="a1">IOS</a></span>\r\n            <span  ui-sref=".page-2"><a href="" class="a2">Android</a></span>\r\n        </div>\r\n    </div>\r\n    <div id="tabContent">\r\n        <div ui-view=""></div>\r\n    </div>\r\n</div>-->'),a.put("templates/tabview.html",'<div id="tabPage">\r\n    <div class="tabP">\r\n        <div id="tag">\r\n            <span ng-class="{true: \'navdown\', false: \'\'}[isActive]" ui-sref=".iPhone"><a href="" class="a1">IOS</a></span>\r\n            <span ng-class="{true: \'\', false: \'navdown\'}[isActive]" ui-sref=".android"><a href="" class="a2">Android</a></span>\r\n        </div>\r\n    </div>\r\n    <div id="tabContent">\r\n        <div ui-view></div>\r\n    </div>\r\n</div>')}]),angular.module("app").controller("CarouselController",["$scope","$state",function(a,e){a.myInterval=5e3,a.noWrapSlides=!1,a.active=0,a.slides=[];var t=0;a.addSlide=function(){var i=a.slides.length+1;a.slides.push({image:e.current.data.imgDir+i+".jpg",id:t++})};for(var i=1;i<e.current.data.count+1;i++)a.addSlide()}]),angular.module("app").controller("TabController",["$scope","$state",function(a,e){a.isActive="tabview.iPhone"==e.$current.name,a.$on("$stateChangeStart",function(e,t,i,r,n,l){a.isActive="tabview.iPhone"==t.name})}]);