/**
 * @ngdoc overview
 * @name app.authentication
 * @description < description placeholder >
 */
!function(){"use strict";function e(e){e.google({clientId:"146379198005-916tvuu5tgv19rpink6m0i8gmlgtinbn.apps.googleusercontent.com",scope:"https://www.googleapis.com/auth/analytics.readonly",responseType:"code",url:"/api/auth/google_analytics/",redirectUri:window.location.origin})}function t(e){e.state("login",{url:"/login",bgBackgroundClass:"loginBackground",views:{"@":{templateUrl:"app/authentication/auth.html",controller:"Authentication as vm"}}})}t.$inject=["$stateProvider"],e.$inject=["$authProvider"],angular.module("app.authentication",[]).config(t).config(e)}(),function(){"use strict";angular.module("app.common",[])}(),angular.module("app.core",["ngMessages","ngAnimate","restangular","ui.bootstrap","ui.sortable","ui.router","ngCookies","ngTouch","toastr","smart-table","xeditable","ui.slimscroll","ngJsTree","angular-progress-button-styles","LocalStorageModule","ngFileSaver","angularMoment","ngBootstrap","selectize","uiCropper","angularSpectrumColorpicker","ui.validate","satellizer"]),function(){"use strict";function e(e,t){t.addStaticItem({title:"Dashboard",icon:"ion-ios-pulse-strong",stateRef:"dashboard.main"}),t.addStaticItem({title:"Products",icon:"ion-bag",subMenu:[{title:"Categories",stateRef:"dashboard.productsCategories"},{title:"Products",stateRef:"dashboard.products"},{title:"Product Items",stateRef:"dashboard.productsItems"},{title:"Keywords",stateRef:"dashboard.productKeywords"}]}),t.addStaticItem({title:"Manifest",icon:"ion-android-clipboard",stateRef:"dashboard.manifestDashboard"}),t.addStaticItem({title:"Pricing",icon:"ion-arrow-graph-up-right",stateRef:"dashboard.pricing.dashboard"}),t.addStaticItem({title:"Trade Book",icon:"ion-social-usd",stateRef:"dashboard.tradeBook"}),t.addStaticItem({title:"Internal Trade Book",icon:"ion-social-usd",stateRef:"dashboard.internalTradeBook"}),t.addStaticItem({title:"Local Trade Book",icon:"ion-social-usd",stateRef:"dashboard.localTradeBook"}),t.addStaticItem({title:"Business Partner",icon:"ion-ios-people",stateRef:"dashboard.businessPartner"}),t.addStaticItem({title:"User Management",icon:"ion-android-contacts",stateRef:"dashboard.user.list"}),t.addStaticItem({title:"Accounts",icon:"ion-calculator",stateRef:"dashboard.accounts"}),t.addStaticItem({title:"Website",icon:"ion-ios-monitor",stateRef:"dashboard.website"}),t.addStaticItem({title:"Shipment",icon:"ion-android-boat",stateRef:"dashboard.shipment"}),e.state("dashboard",{url:"/dashboard","abstract":!0,title:"Dashboard",views:{"@":{templateUrl:"app/dashboard/shell/shell.html"}},resolve:{userData:["authentication",function(e){return e.getUserData()}]}}).state("dashboard.main",{url:"/main",title:"Dashboard",pageHeader:{subTitle:"Business",title:"Dashboard",headerAnchor:[]},resolve:{completeReport:["dashboard","loaderModal",function(e,t){return t.open(),e.getCompleteDashboardReport().then(function(e){return e.data})["finally"](function(){t.close()})}]},views:{"content@dashboard":{templateUrl:"app/dashboard/dashboard.html",controller:"Dashboard as vm"}}})}e.$inject=["$stateProvider","baSidebarServiceProvider"],angular.module("app.dashboard",["app.dashboard.website","app.dashboard.user","app.dashboard.products","app.dashboard.businessPartner","app.dashboard.tradeBook","app.dashboard.settings","app.dashboard.modals","app.dashboard.pricing","app.dashboard.manifest"]).config(e)}(),function(){"use strict";function e(e){e.state("landing",{nodashBackground:!0,url:"/landing",views:{"@":{templateUrl:"app/landing/shell/shell.html"},"header@landing":{templateUrl:"app/landing/shell/header.html"}}}).state("landing.home",{url:"/home",nodashBackground:!0,title:"Home",views:{"content@landing":{templateUrl:"app/landing/home/home.html",controller:"homeCtrl as vm"}}})}e.$inject=["$stateProvider"],angular.module("app.landing",[]).config(e)}(),function(){"use strict";function e(e){}e.$inject=["$stateProvider"],angular.module("app.modal",[]).config(e)}(),function(){"use strict";angular.module("app.dashboard.modals",[])}(),function(){"use strict"}(),function(){"use strict";angular.module("app.theme",["toastr","chart.js","angular-chartist","angular.morris-chart","textAngular","app.theme.components"])}(),angular.module("app.widgets",["app.widgets.ui","app.widgets.components","app.widgets.form","app.widgets.tables","app.widgets.charts","app.widgets.maps","app.widgets.profile"]),function(){"use strict";function e(e){e.state("dashboard.businessPartner",{url:"/businessPartner",subNav:!0,subNavTitle:"Business Partner",views:{"content@dashboard":{templateUrl:"app/dashboard/businessPartner/businessPartner.html",controller:"BusinessPartner as vm"}},pageHeader:{subTitle:"Manage",title:"Business"},resolve:{allBusiness:["businessPartner","loaderModal",function(e,t){return t.open(),e.getBusinessPartnerList().then(function(e){return t.close(),e.businessList})}]}})}e.$inject=["$stateProvider"],angular.module("app.dashboard.businessPartner",[]).config(e)}(),function(){"use strict";function e(){$stateProvider.state("dashboard.internalTradeBook",{url:"/tradeBook",subNav:!0,subNavTitle:"Internal Trade Book",pageHeader:{subTitle:"Business",title:"Internal Trade",headerAnchor:[{text:"Add New Internal Trade",state:'dashboard.transaction({id:"new"})'}]},views:{"content@dashboard":{templateUrl:"app/dashboard/tradeBook/tradeBook.html",controller:"TradeBook as vm"}}})}angular.module("app.dashboard.localTradeBook",[]).config(e)}(),function(){"use strict";function e(){$stateProvider.state("dashboard.localTradeBook",{url:"/tradeBook",subNav:!0,subNavTitle:"Trade Book",pageHeader:{subTitle:"Business",title:"Trade Book",headerAnchor:[{text:"Add new Transaction",state:'dashboard.transaction({id:"new"})'}]},views:{"content@dashboard":{templateUrl:"app/dashboard/tradeBook/tradeBook.html",controller:"TradeBook as vm"}}})}angular.module("app.dashboard.localTradeBook",[]).config(e)}(),function(){"use strict";function e(e,t){e.state("dashboard.manifest",{url:"/manifest",title:"Manifest",pageHeader:{subTitle:"Port",title:"Manifest"},views:{"content@dashboard":{controller:"Manifest as vm",templateUrl:"app/dashboard/manifest/manifest.html"}}}).state("dashboard.manifestDashboard",{url:"/manifestReport",title:"Manifest Report",pageHeader:{subTitle:"Manifest",title:"Report"},views:{"content@dashboard":{controller:"ManifestDashboard as vm",templateUrl:"app/dashboard/manifest/manifestDashboard.html"}}})}e.$inject=["$stateProvider","$urlRouterProvider"],angular.module("app.dashboard.manifest",[]).config(e)}(),function(){"use strict";function e(e){e.state("dashboard.pricing",{url:"","abstract":!0,title:"Pricing",views:{"content@dashboard":{template:'<div ui-view="pricing"></div>'}}})}function t(e,t){e.state("dashboard.pricing.dashboard",{url:"/pricing",title:"Pricing Dashboard",views:{"pricing@dashboard.pricing":{templateUrl:"app/dashboard/pricing/pricing.html",controller:"Pricing as vm"}},pageHeader:{subTitle:"Product",title:"Pricing"},resolve:{allProductPriceSummary:["pricing","loaderModal",function(e,t){return t.open(),e.getAllProductPriceSummary().then(function(e){return t.close(),e.data.priceSummary})}]}}).state("dashboard.pricing.market",{url:"/market",title:"Price Market",pageHeader:{subTitle:"Add",title:"Price Market"},views:{"pricing@dashboard.pricing":{templateUrl:"app/dashboard/pricing/priceMarket.html",controller:"PriceMarket as vm"}},resolve:{allMarkets:["pricing","loaderModal",function(e,t){return t.open(),e.getAllPriceMarkets().then(function(e){return t.close(),e.data.pricingMarket})}]}}).state("dashboard.pricing.productItems",{url:"pricing/products",title:"Pricing ",pageHeader:{subTitle:"Add",title:"Product Price"},resolve:{allPriceItems:["pricing","loaderModal","utilities",function(e,t,a){t.open();var i=a.todayDateRange();return e.getAllProductItemPrice(i).then(function(e){return t.close(),e.data.allPrices})}]},views:{"pricing@dashboard.pricing":{templateUrl:"app/dashboard/pricing/productPricing.html",controller:"ProductPricing as vm"}}}),t.when("/pricing","/pricing/market")}e.$inject=["$stateProvider"],t.$inject=["$stateProvider","$urlRouterProvider"],angular.module("app.dashboard.pricing",["app.dashboard.pricing.items"]).config(e),angular.module("app.dashboard.pricing.items",[]).config(t)}(),function(){"use strict";function e(e,t){e.state("dashboard.products",{url:"/products",title:"Products",views:{"content@dashboard":{templateUrl:"app/dashboard/products/products.html",controller:"Products as vm"}},resolve:{allProducts:["product","loaderModal",function(e,t){return t.open(),e.getAllProductList().then(function(e){return t.close(),e.allProducts})}]},pageHeader:{subTitle:"Manage",title:"Products"}}).state("dashboard.productsCategories",{url:"/categories",title:"Products Categories",views:{"content@dashboard":{templateUrl:"app/dashboard/products/productCategories.html",controller:"ProductCategories as vm"}},resolve:{allCategories:["product",function(e){return e.getAllProductCategories().then(function(e){return e.allCategories})}]},pageHeader:{subTitle:"Manage",title:"Product Categories"}}).state("dashboard.productsItems",{url:"/productItems",title:"Product Items",views:{"content@dashboard":{templateUrl:"app/dashboard/products/productItems.html",controller:"ProductItems as vm"}},resolve:{allProductItems:["product",function(e){return e.getAllProductItems().then(function(e){return e.data.productItems})}]},pageHeader:{subTitle:"Manage",title:"Product Items"}}).state("dashboard.productPriceAnalytics",{url:"/productPrice/:productItemId",title:"Product Price Report",views:{"content@dashboard":{templateUrl:"app/dashboard/products/priceAnalytics.html",controller:"ProductPriceAnalytics as vm"}},pageHeader:{subTitle:"Product",title:"Price Report"}}).state("dashboard.productSpecification",{url:"/productSpecification/:categoryId",title:"Product Specification",views:{"content@dashboard":{templateUrl:"app/dashboard/products/productSpecification.html",controller:"ProductSpecification as vm"}},resolve:{specificationData:["product","loaderModal","$stateParams",function(e,t,a){return t.open(),e.getProductCategorySpecification(a.categoryId).then(function(e){return t.close(),e.data})["finally"](function(){t.close()})}]},pageHeader:{subTitle:"Category",title:"Specification"}}).state("dashboard.productKeywords",{url:"/productKeywords",title:"Product Keywords",views:{"content@dashboard":{templateUrl:"app/dashboard/products/productKeyword.html",controller:"ProductKeyword as vm"}},resolve:{allKeywords:["product","apiEndPoints","crud",function(e,t,a){return e.getAllKeywords().then(function(e){return e.data.keywords})}]},pageHeader:{subTitle:"Manage",title:"Product Keywords"}})}e.$inject=["$stateProvider","baSidebarServiceProvider"],angular.module("app.dashboard.products",[]).config(e)}(),function(){"use strict";function e(e,t){e.state("dashboard.settings",{url:"/settings",title:"Settings",pageHeader:{subTitle:"Manage",title:"Settings"},views:{"content@dashboard":{templateUrl:"app/dashboard/settings/settings.html",controller:"settings as vm"}}})}e.$inject=["$stateProvider","$urlRouterProvider"],angular.module("app.dashboard.settings",[]).config(e)}(),function(){"use strict";function e(e){e.state("dashboard.tradeBook",{url:"/tradeBook",subNav:!0,subNavTitle:"Trade Book",pageHeader:{subTitle:"Business",title:"Trade Book",headerAnchor:[{text:"Add new Transaction",state:'dashboard.transaction({id:"new"})'}]},views:{"content@dashboard":{templateUrl:"app/dashboard/tradeBook/tradeBook.html",controller:"TradeBook as vm"}}}).state("dashboard.transaction",{url:"/trade/:id",title:"Trade",pageHeader:{subTitle:"Add New",title:"Transaction",goBack:!0},views:{"content@dashboard":{templateUrl:"app/dashboard/tradeBook/transaction/transaction.html",controller:"Transaction as vm"}}})}e.$inject=["$stateProvider"],angular.module("app.dashboard.tradeBook",[]).config(e)}(),function(){"use strict";function e(e,t){e.state("dashboard.user",{url:"/user","abstract":!0,title:"User Management",views:{"content@dashboard":{template:'<div ui-view="content"></div>'}}}).state("dashboard.user.list",{url:"/all",pageHeader:{subTitle:"Manage",title:"Users"},views:{"content@dashboard.user":{templateUrl:"app/dashboard/user/allUsers.html",controller:"User as vm"}},resolve:{allUsers:["user",function(e){return e.getAllUserProfile().then(function(e){return console.log(e),e.list})}]}}).state("dashboard.user.profile",{url:"/profile/:id",title:"User Profile",views:{"content@dashboard.user":{templateUrl:"app/dashboard/user/profile/profile.html",controller:"ProfilePage as vm"}},resolve:{userProfile:["user","$stateParams",function(e,t){return"new"===t.id?e.getNewUserObj():e.getUserProfile(t.id).then(function(e){return e.user})}]}}),t.when("/user","/user/all")}e.$inject=["$stateProvider","$urlRouterProvider"],angular.module("app.dashboard.user",[]).config(e)}(),function(){"use strict";function e(e){e.state("dashboard.website",{url:"/website",title:"Website Managment",views:{"content@dashboard":{templateUrl:"app/dashboard/website/website.html",controller:"Website as vm"}},pageHeader:{subTitle:"Website",title:"Dashboard"},resolve:{dashboard:["website","loaderModal",function(e,t){return t.open(),e.getWebsiteDashboard().then(function(e){return t.close(),e.dashboardData})}]}}).state("dashboard.websiteBlog",{url:"/research",title:"Website Research",views:{"content@dashboard":{templateUrl:"app/dashboard/website/blog.html",controller:"Blog as vm"}},pageHeader:{subTitle:"Research",title:"Manager"}})}e.$inject=["$stateProvider"],angular.module("app.dashboard.website",[]).config(e)}(),function(){"use strict";angular.module("app.theme.components",[])}(),function(){"use strict";function e(e){e.state("charts",{url:"/charts","abstract":!0,template:"<div ui-view></div>",title:"Charts"})}e.$inject=["$stateProvider"],angular.module("app.widgets.charts",["app.widgets.charts.amCharts","app.widgets.charts.chartJs","app.widgets.charts.chartist","app.widgets.charts.morris"]).config(e)}(),function(){"use strict";function e(e){e.state("components",{url:"/components",template:"<ui-view></ui-view>","abstract":!0,title:"Components"})}e.$inject=["$stateProvider"],angular.module("app.widgets.components",["app.widgets.components.mail","app.widgets.components.timeline","app.widgets.components.tree"]).config(e)}(),function(){"use strict";function e(e){e.state("form",{url:"/form",template:"<ui-view></ui-view>","abstract":!0,title:"Form Elements"}).state("form.inputs",{url:"/inputs",templateUrl:"app/pages/form/inputs/inputs.html",title:"Form Inputs"}).state("form.layouts",{url:"/layouts",templateUrl:"app/pages/form/layouts/layouts.html",title:"Form Layouts"}).state("form.wizard",{url:"/wizard",templateUrl:"app/pages/form/wizard/wizard.html",controller:"WizardCtrl",controllerAs:"vm",title:"Form Wizard"})}e.$inject=["$stateProvider"],angular.module("app.widgets.form",[]).config(e)}(),function(){"use strict";function e(e){e.state("maps",{url:"/maps",templateUrl:"app/pages/maps/maps.html","abstract":!0,title:"Maps"}).state("maps.gmap",{url:"/gmap",templateUrl:"app/pages/maps/google-maps/google-maps.html",controller:"GmapPageCtrl",title:"Google Maps"}).state("maps.leaflet",{url:"/leaflet",templateUrl:"app/pages/maps/leaflet/leaflet.html",controller:"LeafletPageCtrl",title:"Leaflet Maps",sidebarMeta:{order:100}}).state("maps.bubble",{url:"/bubble",templateUrl:"app/pages/maps/map-bubbles/map-bubbles.html",controller:"MapBubblePageCtrl",title:"Bubble Maps",sidebarMeta:{order:200}}).state("maps.line",{url:"/line",templateUrl:"app/pages/maps/map-lines/map-lines.html",controller:"MapLinesPageCtrl",title:"Line Maps",sidebarMeta:{order:300}})}e.$inject=["$stateProvider"],angular.module("app.widgets.maps",[]).config(e)}(),function(){"use strict";function e(e){e.state("profile",{url:"/profile",title:"Profile",templateUrl:"app/pages/profile/profile.html",controller:"ProfilePageCtrl"})}e.$inject=["$stateProvider"],angular.module("app.widgets.profile",[]).config(e)}(),function(){"use strict";function e(e,t){e.state("tables",{url:"/tables",template:"<ui-view></ui-view>","abstract":!0,controller:"TablesPageCtrl",title:"Tables"}).state("tables.basic",{url:"/basic",templateUrl:"app/pages/tables/basic/tables.html",title:"Basic Tables",sidebarMeta:{order:0}}).state("tables.smart",{url:"/smart",templateUrl:"app/pages/tables/smart/tables.html",title:"Smart Tables",sidebarMeta:{order:100}}),t.when("/tables","/tables/basic")}e.$inject=["$stateProvider","$urlRouterProvider"],angular.module("app.widgets.tables",[]).config(e)}(),function(){"use strict";function e(e){e.state("ui",{url:"/ui",template:"<ui-view></ui-view>","abstract":!0,title:"UI Features"})}e.$inject=["$stateProvider"],angular.module("app.widgets.ui",["app.widgets.ui.typography","app.widgets.ui.buttons","app.widgets.ui.icons","app.widgets.ui.modals","app.widgets.ui.grid","app.widgets.ui.alerts","app.widgets.ui.progressBars","app.widgets.ui.notifications","app.widgets.ui.tabs","app.widgets.ui.slider","app.widgets.ui.panels"]).config(e)}(),function(){"use strict";function e(e){e.state("charts.amCharts",{url:"/amCharts",templateUrl:"app/pages/charts/amCharts/charts.html",title:"amCharts",sidebarMeta:{order:0}})}function t(e){var t=e.colors;AmCharts.themes.blur={themeName:"blur",AmChart:{color:t.defaultText,backgroundColor:"#FFFFFF"},AmCoordinateChart:{colors:[t.primary,t.danger,t.warning,t.success,t.info,t.primaryDark,t.warningLight,t.successDark,t.successLight,t.primaryLight,t.warningDark]},AmStockChart:{colors:[t.primary,t.danger,t.warning,t.success,t.info,t.primaryDark,t.warningLight,t.successDark,t.successLight,t.primaryLight,t.warningDark]},AmSlicedChart:{colors:[t.primary,t.danger,t.warning,t.success,t.info,t.primaryDark,t.warningLight,t.successDark,t.successLight,t.primaryLight,t.warningDark],labelTickColor:"#FFFFFF",labelTickAlpha:.3},AmRectangularChart:{zoomOutButtonColor:"#FFFFFF",zoomOutButtonRollOverAlpha:.15,zoomOutButtonImage:"lens.png"},AxisBase:{axisColor:"#FFFFFF",axisAlpha:.3,gridAlpha:.1,gridColor:"#FFFFFF"},ChartScrollbar:{backgroundColor:"#FFFFFF",backgroundAlpha:.12,graphFillAlpha:.5,graphLineAlpha:0,selectedBackgroundColor:"#FFFFFF",selectedBackgroundAlpha:.4,gridAlpha:.15},ChartCursor:{cursorColor:t.primary,color:"#FFFFFF",cursorAlpha:.5},AmLegend:{color:"#FFFFFF"},AmGraph:{lineAlpha:.9},GaugeArrow:{color:"#FFFFFF",alpha:.8,nailAlpha:0,innerRadius:"40%",nailRadius:15,startWidth:15,borderAlpha:.8,nailBorderAlpha:0},GaugeAxis:{tickColor:"#FFFFFF",tickAlpha:1,tickLength:15,minorTickLength:8,axisThickness:3,axisColor:"#FFFFFF",axisAlpha:1,bandAlpha:.8},TrendLine:{lineColor:t.danger,lineAlpha:.8},AreasSettings:{alpha:.8,color:t.info,colorSolid:t.primaryDark,unlistedAreasAlpha:.4,unlistedAreasColor:"#FFFFFF",outlineColor:"#FFFFFF",outlineAlpha:.5,outlineThickness:.5,rollOverColor:t.primary,rollOverOutlineColor:"#FFFFFF",selectedOutlineColor:"#FFFFFF",selectedColor:"#f15135",unlistedAreasOutlineColor:"#FFFFFF",unlistedAreasOutlineAlpha:.5},LinesSettings:{color:"#FFFFFF",alpha:.8},ImagesSettings:{alpha:.8,labelColor:"#FFFFFF",color:"#FFFFFF",labelRollOverColor:t.primaryDark},ZoomControl:{buttonFillAlpha:.8,buttonIconColor:t.defaultText,buttonRollOverColor:t.danger,buttonFillColor:t.primaryDark,buttonBorderColor:t.primaryDark,buttonBorderAlpha:0,buttonCornerRadius:0,gridColor:"#FFFFFF",gridBackgroundColor:"#FFFFFF",buttonIconAlpha:.6,gridAlpha:.6,buttonSize:20},SmallMap:{mapColor:"#000000",rectangleColor:t.danger,backgroundColor:"#FFFFFF",backgroundAlpha:.7,borderThickness:1,borderAlpha:.8},PeriodSelector:{color:"#FFFFFF"},PeriodButton:{color:"#FFFFFF",background:"transparent",opacity:.7,border:"1px solid rgba(0, 0, 0, .3)",MozBorderRadius:"5px",borderRadius:"5px",margin:"1px",outline:"none",boxSizing:"border-box"},PeriodButtonSelected:{color:"#FFFFFF",backgroundColor:"#b9cdf5",border:"1px solid rgba(0, 0, 0, .3)",MozBorderRadius:"5px",borderRadius:"5px",margin:"1px",outline:"none",opacity:1,boxSizing:"border-box"},PeriodInputField:{color:"#FFFFFF",background:"transparent",border:"1px solid rgba(0, 0, 0, .3)",outline:"none"},DataSetSelector:{color:"#FFFFFF",selectedBackgroundColor:"#b9cdf5",rollOverBackgroundColor:"#a8b0e4"},DataSetCompareList:{color:"#FFFFFF",lineHeight:"100%",boxSizing:"initial",webkitBoxSizing:"initial",border:"1px solid rgba(0, 0, 0, .3)"},DataSetSelect:{border:"1px solid rgba(0, 0, 0, .3)",outline:"none"}}}e.$inject=["$stateProvider"],t.$inject=["baConfigProvider"],angular.module("app.widgets.charts.amCharts",[]).config(e).config(t)}(),function(){"use strict";function e(e){e.state("charts.chartJs",{url:"/chartJs",templateUrl:"app/pages/charts/chartJs/chartJs.html",title:"Chart.js",sidebarMeta:{order:200}})}function t(e,t){var a=t.colors;e.setOptions({colours:[a.primary,a.danger,a.warning,a.success,a.info,a["default"],a.primaryDark,a.successDark,a.warningLight,a.successLight,a.primaryLight],responsive:!0,scaleFontColor:a.defaultText,scaleLineColor:a.border,pointLabelFontColor:a.defaultText}),e.setOptions("Line",{datasetFill:!1})}e.$inject=["$stateProvider"],t.$inject=["ChartJsProvider","baConfigProvider"],angular.module("app.widgets.charts.chartJs",[]).config(e).config(t)}(),function(){"use strict";function e(e){e.state("charts.chartist",{url:"/chartist",templateUrl:"app/pages/charts/chartist/chartist.html",title:"Chartist",sidebarMeta:{order:100}})}e.$inject=["$stateProvider"],angular.module("app.widgets.charts.chartist",[]).config(e)}(),function(){"use strict";function e(e){e.state("charts.morris",{url:"/morris",templateUrl:"app/pages/charts/morris/morris.html",title:"Morris",sidebarMeta:{order:300}})}e.$inject=["$stateProvider"],angular.module("app.widgets.charts.morris",[]).config(e).config(["baConfigProvider",function(e){var t=e.colors;Morris.Donut.prototype.defaults.backgroundColor="transparent",Morris.Donut.prototype.defaults.labelColor=t.defaultText,Morris.Grid.prototype.gridDefaults.gridLineColor=t.borderDark,Morris.Grid.prototype.gridDefaults.gridTextColor=t.defaultText}])}(),function(){"use strict";function e(e,t){e.state("components.mail",{url:"/mail","abstract":!0,templateUrl:"app/pages/components/mail/mail.html",controller:"MailTabCtrl",controllerAs:"tabCtrl",title:"Mail",sidebarMeta:{order:0}}).state("components.mail.label",{url:"/:label",templateUrl:"app/pages/components/mail/list/mailList.html",title:"Mail",controller:"MailListCtrl",controllerAs:"listCtrl"}).state("components.mail.detail",{url:"/:label/:id",templateUrl:"app/pages/components/mail/detail/mailDetail.html",title:"Mail",controller:"MailDetailCtrl",controllerAs:"detailCtrl"}),t.when("/components/mail","/components/mail/inbox")}e.$inject=["$stateProvider","$urlRouterProvider"],angular.module("app.widgets.components.mail",[]).config(e)}(),function(){"use strict";function e(e){e.state("components.timeline",{url:"/timeline",templateUrl:"app/pages/components/timeline/timeline.html",title:"Timeline",sidebarMeta:{icon:"ion-ios-pulse",order:100}})}e.$inject=["$stateProvider"],angular.module("app.widgets.components.timeline",[]).config(e)}(),function(){"use strict";function e(e){e.state("components.tree",{url:"/tree",templateUrl:"app/pages/components/tree/tree.html",title:"Tree View",sidebarMeta:{order:200}})}e.$inject=["$stateProvider"],angular.module("app.widgets.components.tree",[]).config(e).config(function(){$.jstree.defaults.core.themes.url=!0,$.jstree.defaults.core.themes.dir="assets/img/theme/vendor/jstree/dist/themes"})}(),function(){"use strict";function e(e){e.state("ui.alerts",{url:"/alerts",templateUrl:"app/pages/ui/alerts/alerts.html",title:"Alerts",sidebarMeta:{order:500}})}e.$inject=["$stateProvider"],angular.module("app.widgets.ui.alerts",[]).config(e)}(),function(){"use strict";function e(e){e.state("ui.buttons",{url:"/buttons",templateUrl:"app/pages/ui/buttons/buttons.html",controller:"ButtonPageCtrl",title:"Buttons",sidebarMeta:{order:100}})}e.$inject=["$stateProvider"],angular.module("app.widgets.ui.buttons",[]).config(e)}(),function(){"use strict";function e(e){e.state("ui.grid",{url:"/grid",templateUrl:"app/pages/ui/grid/grid.html",title:"Grid",sidebarMeta:{order:400}})}e.$inject=["$stateProvider"],angular.module("app.widgets.ui.grid",[]).config(e)}(),function(){"use strict";function e(e){e.state("ui.icons",{url:"/icons",templateUrl:"app/pages/ui/icons/icons.html",controller:"IconsPageCtrl",title:"Icons",sidebarMeta:{order:200}})}e.$inject=["$stateProvider"],angular.module("app.widgets.ui.icons",[]).config(e)}(),function(){"use strict";function e(e){e.state("ui.modals",{url:"/modals",templateUrl:"app/pages/ui/modals/modals.html",controller:"ModalsPageCtrl",title:"Modals",sidebarMeta:{order:300}})}e.$inject=["$stateProvider"],angular.module("app.widgets.ui.modals",[]).config(e)}(),function(){"use strict";function e(e){e.state("ui.notifications",{url:"/notifications",templateUrl:"app/pages/ui/notifications/notifications.html",controller:"NotificationsPageCtrl",title:"Notifications",sidebarMeta:{order:700}})}e.$inject=["$stateProvider"],angular.module("app.widgets.ui.notifications",[]).config(e)}(),function(){"use strict";function e(e){e.state("ui.panels",{url:"/panels",templateUrl:"app/pages/ui/panels/panels.html",controller:"NotificationsPageCtrl",title:"Panels",sidebarMeta:{order:1100}})}e.$inject=["$stateProvider"],angular.module("app.widgets.ui.panels",[]).config(e)}(),function(){"use strict";function e(e){e.state("ui.progressBars",{url:"/progressBars",templateUrl:"app/pages/ui/progressBars/progressBars.html",title:"Progress Bars",sidebarMeta:{order:600}})}e.$inject=["$stateProvider"],angular.module("app.widgets.ui.progressBars",[]).config(e)}(),function(){"use strict";function e(e){e.state("ui.slider",{url:"/slider",templateUrl:"app/pages/ui/slider/slider.html",title:"Sliders",sidebarMeta:{order:1e3}})}e.$inject=["$stateProvider"],angular.module("app.widgets.ui.slider",[]).config(e)}(),function(){"use strict";function e(e){e.state("ui.tabs",{url:"/tabs",templateUrl:"app/pages/ui/tabs/tabs.html",title:"Tabs & Accordions",sidebarMeta:{order:800}})}e.$inject=["$stateProvider"],angular.module("app.widgets.ui.tabs",[]).config(e)}(),function(){"use strict";function e(e){e.state("ui.typography",{url:"/typography",templateUrl:"app/pages/ui/typography/typography.html",title:"Typography",sidebarMeta:{order:0}})}e.$inject=["$stateProvider"],angular.module("app.widgets.ui.typography",[]).config(e)}(),function(){"use strict";function e(e,t){function a(){o.username="",o.password="",o.login=i}function i(t,a,i){t.$valid&&e.login(t,a,i)}var o=this;a()}e.$inject=["authentication","$state"],angular.module("app.authentication").controller("Authentication",e)}(),function(){"use strict";function e(e){function t(){o.completeReport=e,console.log(o.completeReport.usdExchange.sevenDays),o.refreshCurrentDollarRate=i,a()}function a(){}function i(){}var o=this;t()}e.$inject=["completeReport"],angular.module("app.dashboard").controller("Dashboard",e)}(),function(){"use strict";function e(e,t,a,i){function o(e){console.info("This is a test function")}var s=this;s.confirm=!1,s.name=t,s.type=a,s.action=i,s.testFunction=o,s.ok=function(){s.confirm=!0,e.close(s.confirm)},s.cancel=function(){s.confirm=!1,e.close(s.confirm)}}e.$inject=["$modalInstance","name","type","action"],angular.module("app.modal").controller("AlertModal",e)}(),function(){"use strict";function e(e,t,a,i){function o(){r.passwordDetails={newPassword:"",confirmPassword:"",userId:e},r.inputFields=a,r.submitChangePassword=s}function s(e){console.log(e),e.$valid&&i.changePasswordForUser(r.passwordDetails).then(function(e){e.data.success,t.close()})}function n(e){console.info("This is a test function")}var r=this;o(),r.testFunction=n}e.$inject=["userId","$modalInstance","inputFields","setup"],angular.module("app.modal").controller("ChangePasswordModal",e)}(),function(){"use strict";function e(e,t,a,i,o,s,n,r){function l(){p.appFormats=r,p.possibleBPTypes=a,p.buyerContractTypes=i,p.businessPartner={},p.editMode=!1,p.singleConfig=o,p.saveBusinessPartner=c,p.updateBusinessPartner=u,d()}function d(){t.operation?s.getBusinessPartner()?(p.businessPartner.general=s.getBusinessPartner().gen[0],p.editMode=!0):n.go("shell.businessPartner.view",{id:t.id}):p.businessPartner.general={bp_Name:"",bp_website:"",bp_isBuyer:!1,bp_isSupplier:!1,bp_isBroker:!1,bp_isShipper:!1,bp_onDoniContact:!1,bp_credibilityIndex:0,bp_country:"",bp_address:""}}function c(){if(p.businessPartnerForm.$invalid)e.error("Incorrect fields entered","Error");else{var t=p.businessPartner.general;if(console.log(t),!(t.bp_isBroker||t.bp_isShipper||t.bp_isBuyer||t.bp_isSeller))return void e.error("Business partner should have one type","Error");s.addBusinessPartner(p.businessPartner.general,function(e){e.success&&n.go("shell.businessPartner.view",{id:e.data})})}}function u(){if(p.businessPartnerForm.$invalid)e.error("Incorrect fields entered","Error");else{var t=p.businessPartner.general;if(console.log(t),!(t.bp_isBroker||t.bp_isShipper||t.bp_isBuyer||t.bp_isSeller))return void e.error("Business partner should have one type","Error");s.updateBusinessPartner(p.businessPartner.general,function(e){e.success&&n.go("shell.businessPartner.view",{id:p.businessPartner.general.bp_ID})})}}var p=this;l()}e.$inject=["toastr","$stateParams","bpTypes","contractTypes","originConfig","businessPartner","$state","appFormats"],angular.module("app.dashboard.businessPartner").controller("AddBusinessPartner",e)}(),function(){"use strict";function e(e,t,a,i,o,s,n,r,l,d,c,u){function p(){z.showForm=!1,z.selectedBPTypes=[],z.selectedOrigin=[],z.bpToRemove=[],z.searchBusinessPartner="",z.countryConfig={},z.bankCountryConfig={},z.countryOptions={},z.stateConfig={},z.cityConfig={},z.bpTypeConfig={},z.bpTypeOptions={},z.contactTypeConfig={},z.contactTypeOptions={},z.allBusiness=d,z.cancel=q,z.onBpTypesSelectedChanged=N,z.onCountrySelectedChanged=A,z.addBusinessPartner=R,z.editBusinessPartner=j,z.addBusinessContact=T,z.addBusinessBank=D,z.addContactPerson=I,z.addBusinessAddress=P,z.isPrimaryChange=x,z.removeBusinessLocation=$,z.removeBusinessBank=M,z.removeContactPerson=S,z.removeBusinessContact=F,z.removeBusinessBank=M,z.onCountryDropDownChange=C,z.uploadBusinessLogo=B,z.removeBusinessLogo=L,z.getFile=E,z.tableHeadings=[{name:"Name",stSort:"",stPlaceholder:""},{name:"Contact Person",stSort:"bp_Cont_fullName",stPlaceholder:""},{name:"Origin",stSort:"bp_Cont_fullName",stPlaceholder:""},{name:"Type",stSort:"bp_Cont_fullName",stPlaceholder:""},{name:"Last Transaction On",stSort:"bp_Cont_fullName",stPlaceholder:""},{name:"Actions"}],s.prepareByTypesDropDown(z.bpTypeConfig,z.bpTypeOptions),s.prepareContactNumberTypeDropDown(z.contactTypeConfig,z.contactTypeOptions),s.prepareCountryDropDown(z.countryConfig,z.countryOptions,C,1),s.prepareCountryDropDown(z.bankCountryConfig,z.countryOptions,k,1),s.prepareRegionDropDown(z.stateConfig,null,null,y),s.prepareCityDropDown(z.cityConfig,null,null,null,1),z.saveBusiness=v,z.onSaveBusinessCallBack=g,z.onSaveBusinessBank=m,z.saveBusinessLocations=b,z.saveBusinessContactPersons=h,z.saveBusinessContactNumbers=f,z.saveBusinessBanks=w,z.onBpTypesSelectedChanged=N,z.onCountrySelectedChanged=A}function m(e){t.transitionTo(t.current,a,{reload:!0,inherit:!1,notify:!0})}function g(e){z.business.bpId=e.bpId}function v(e,t,a){return t.bpId?o.updateBusinessBasic(e,t):o.addBusinessBasic(e,t)}function b(e){var t=angular.copy(e.locations);if(angular.forEach(t,function(e,t){delete e.stateOptions,delete e.cityOptions}),0===e.locations.length){c.error("Business must have atleast one locations");var a=i.defer();return a.promise}return o.saveBusinessLocations(e.bpId,t)}function h(e){var t=angular.copy(e.contactPersons);return o.saveBusinessContactPersons(e.bpId,t)}function f(e){var t=angular.copy(e.contacts);return o.saveBusinessContacts(e.bpId,t)}function w(e){var t=angular.copy(e.banks);return o.saveBusinessBanks(e.bpId,t)}function y(e){e&&angular.forEach(z.business.locations,function(t,a){t.state===e&&(""===e?t.city=null:s.prepareCityDropDown(null,t.cityOptions,t.country,e))})}function k(e){e&&angular.forEach(z.business.banks,function(t,a){
t.country===e&&(t.cityOptions.list=[],""===e?t.city=null:s.prepareCityDropDown(null,t.cityOptions,e,null))})}function C(e){e?angular.forEach(z.business.locations,function(t,a){t.country===e&&(t.stateOptions.list=[],""===e?t.state=null:(s.prepareRegionDropDown(null,t.stateOptions,e,null),s.prepareCityDropDown(null,t.cityOptions,e,null)))}):location.state=""}function x(e,t,a,i){a?a&&(angular.forEach(e,function(e,t){e[i]=!1}),t[i]=!0):(c.error("One instance must be primary"),t[i]=!0)}function P(e){e.locations.push(o.getNewBusinessAddressObj(e))}function D(e){e.banks.push(o.getNewBusinessBankObj())}function I(e){e.contactPersons.push(o.getNewBusinessContactPersonObj())}function T(e){e.contacts.push(o.getNewBusinessContactObj())}function $(e,t){var a=e.indexOf(t);e.splice(a,1),1==e.length&&(e[0].isPrimary=!0)}function S(e,t){var a=e.indexOf(t);e.splice(a,1),1==e.length&&(e[0].isPrimary=!0)}function F(e,t){var a=e.indexOf(t);e.splice(a,1)}function M(e,t){var a=e.indexOf(t);e.splice(a,1)}function N(e){z.selectedBPTypes=_.map(e,"id"),O()}function A(e){z.selectedOrigin=_.map(e,"code"),O()}function O(){z.businessToRemove=[],angular.forEach(z.allBusiness,function(e,t){var a=_.intersection(z.selectedBPTypes,e.bpTypeId),i=!1;i=i||0==a.length,i=i||z.selectedOrigin.indexOf(e.countryCode)<=-1,i&&z.businessToRemove.push(e.bpId)})}function B(){var e=document.getElementById("uploadBusinessLogo");e.click()}function L(){z.business.logo=null,z.imagesData=null,z.businessLogo=n("businessLogo")(z.business.logo)}function E(t){e.readAsDataUrl(t,l).then(function(e){r.openImageCropper(e,1,[{w:100,h:100},{w:200,h:200}],{width:100,height:100},function(e){z.businessLogo=e.croppedImages[1].dataURI,console.log(e),z.imagesData=e})})}function R(){z.showForm=!0,z.business=o.getNewBusinessObj(),z.businessLogo=n("businessLogo")(z.business.logo)}function j(e){u.open(),o.getBusinessComplete(e.bpId).then(function(e){z.business=angular.copy(e.business),z.showForm=!0,u.close(),console.log(z.business.logo),z.businessLogo=n("businessLogo")(z.business.logo)})}function q(){u.open(),o.getBusinessPartnerList().then(function(e){u.close(),z.showForm=!1,z.allBusiness=e.businessList})}var z=this;p()}e.$inject=["fileReader","$state","$stateParams","$q","businessPartner","dropDownConfig","$filter","deModal","$scope","allBusiness","toastr","loaderModal"],angular.module("app.dashboard.businessPartner").controller("BusinessPartner",e)}(),function(){"use strict";function e(e,t,a,i,o,s,n,r,l,d){function c(){P.currentPage=1,P.itemsPerPage=10,P.appConstants=l,P.addNewManifestItem=x,P.editManifestItem=w,P.saveManifestItem=y,P.onDateRangeChanged=h,P.onBuyersSelectedChanged=g,P.onSellersSelectedChanged=v,P.onProductsSelectedChanged=b,P.deleteManifestItem=k,P.pageChanged=u,P.cancel=C,P.quantityMetricConfig={},P.quantityMetricOptions={},P.productConfig={},P.productOptions={},P.buyerConfig={},P.buyerOptions={},P.sellerConfig={},P.sellerOptions={},P.selectedBuyerID=[],P.selectedSellerID=[],P.selectedProductID=[],P.dateRange=o.lastThirtyDaysDateRange(),n.preparePriceMetricConfig(P.quantityMetricConfig,P.quantityMetricOptions),n.prepareProductDropDown(P.productConfig,P.productOptions),n.prepareBusinessDropDown(P.buyerConfig,P.buyerOptions,"Buyer"),n.prepareBusinessDropDown(P.sellerConfig,P.sellerOptions,"Seller"),P.allManifestItems=[],P.allManifestList=[],P.displayList=[],f(P.dateRange)}function u(){p(P.currentPage,P.allManifestList,P.itemsPerPage)}function p(e,t,a){P.totalItems=t.length,P.currentPage=e;var i=t.slice((e-1)*a,e*a);P.displayList=i}function m(){P.currentPage=1,P.manifestItemsToRemove=[],angular.forEach(P.allManifestItems,function(e,t){var a;a=P.selectedBuyerID.indexOf(e.buyerId)<=-1||P.selectedSellerID.indexOf(e.sellerId)<=-1,a=a||P.selectedProductID.indexOf(e.productId)<=-1,a&&P.manifestItemsToRemove.push(e.id)}),P.allManifestList=a("selectedRows")(P.allManifestItems,P.manifestItemsToRemove,"id"),p(P.currentPage,P.allManifestList,P.itemsPerPage)}function g(e){P.selectedBuyerID=_.map(e,"id"),m()}function v(e){P.selectedSellerID=_.map(e,"id"),m()}function b(e){P.selectedProductID=_.map(e,"id"),m()}function h(e){P.currentPage=1,P.dateRange=e,f(e)}function f(e){i.open(),s.getAllManifestItems(e).then(function(e){P.allManifestItems=e.manifestItems,P.allManifestList=angular.copy(P.allManifestItems),p(P.currentPage,P.allManifestList,P.itemsPerPage),i.close()},function(e){i.close()})}function w(e){P.manifestItem=e,P.showForm=!0}function y(e,t,a){t.$valid?e.id?s.updateManifestItem(e).then(function(t){if(t.success){var a=P.allManifestItems.indexOf(e);P.allManifestItems[a]=t.item,r.success(t.message),P.showForm=!1}else r.error(t.message)}):s.addManifestItem(e).then(function(i){i.success&&(r.success(i.message),a?(P.manifestItem=s.getNewManifestItemObj(e.date),o.resetFormValidation(t)):P.cancel())}):r.error("Please enter required missing fields.")}function k(e){s.deleteManifestItem(e.id).then(function(t){if(t.success){var a=P.allManifestItems.indexOf(e);P.allManifestItems.splice(a,1),r.success(t.message)}else r.error(t.message)})}function C(){P.showForm=!1,e.transitionTo(e.current,t,{reload:!0,inherit:!1,notify:!0})}function x(){P.showForm=!0,P.manifestItem=s.getNewManifestItemObj()}var P=this;c()}e.$inject=["$state","$stateParams","$filter","loaderModal","utilities","manifest","dropDownConfig","toastr","appConstants","$scope"],angular.module("app.dashboard.manifest").controller("Manifest",e)}(),function(){"use strict";function e(e,t,a,i,o,s){function n(){g.graphData=[],g.chartValues=["quantity"],g.selectedBuyerID=[],g.selectedSellerID=[],g.selectedProductID=[],g.dateRange=o.lastThirtyDaysDateRange(),g.transparent=a.theme.blur,g.dashboardColors=a,g.onDateRangeChanged=p,g.goToManifestItems=u,g.onBuyersSelectedChanged=l,g.onSellersSelectedChanged=d,g.onProductsSelectedChanged=c,p(g.dateRange)}function r(){$(".chart").each(function(){var e=$(this);e.easyPieChart({easing:"easeOutBounce",onStep:function(e,t,a){$(this.el).find(".percent").text(Math.round(a))},barColor:e.attr("rel"),trackColor:"rgba(0,0,0,0)",size:84,scaleLength:0,animation:2e3,lineWidth:9,lineCap:"round"})})}function l(e){g.selectedBuyerID=_.map(e,"id"),m(g.dateRange,g.selectedBuyerID,g.selectedSellerID,g.selectedProductID)}function d(e){g.selectedSellerID=_.map(e,"id"),m(g.dateRange,g.selectedBuyerID,g.selectedSellerID,g.selectedProductID)}function c(e){g.selectedProductID=_.map(e,"id"),m(g.dateRange,g.selectedBuyerID,g.selectedSellerID,g.selectedProductID)}function u(){e.go("dashboard.manifest")}function p(e){g.dateRange=e,m(e,g.selectedBuyerID,g.selectedSellerID,g.selectedProductID)}function m(e,a,n,l){s.open(),g.showCharts=!1,i.getManifestDashboardReport(e,a,n,l).then(function(e){g.graphData=o.prepareGraphData(e.graphData),g.sumData=e.sumData,g.showCharts=!0,t(function(){r()},100),s.close()})}var g=this;n()}e.$inject=["$state","$timeout","baConfig","manifest","utilities","loaderModal"],angular.module("app.dashboard.manifest").controller("ManifestDashboard",e)}(),function(){"use strict";function e(e,t,a,i,o,s){function n(){g.isNewPriceMarket="new"===i.id,g.showForm=!1,g.allMarkets=e,g.isInternational=!0,g.currencyConfig={},g.currencyOptions={},g.countryConfig={},g.countryOptions={},g.addPriceMarket=r,g.editPriceMarket=l,t.prepareCountryDropDown(g.countryConfig,g.countryOptions,1),t.prepareCurrencyDropDown(g.currencyConfig,g.currencyOptions),g.onInternationalChange=c,g.addNewPriceMarket=p,g.updatePriceMarket=m,g.cancelPriceMarket=u}function r(){g.showForm=!1,g.priceMarket=a.getNewPriceMarkets(),g.showForm=!0}function l(e){g.showForm=!1,g.priceMarket=e,g.showForm=!0}function d(e,t,a){if(e.success){if(a){var i=e.obj,s=_.find(g.allMarkets,function(e){return e.id==i.id}),n=_.indexOf(g.allMarkets,s);g.allMarkets[n]=i,g.showForm=!1}else g.allMarkets.push(e.obj),g.showForm=!1;o.success(t)}else o.error(e.message)}function c(e,t){e&&(t.country=null)}function u(){g.priceMarket={},g.showForm=!1}function p(e){a.addPriceMarket(e,d)}function m(e){a.updatePriceMarket(e,d)}var g=this;n()}e.$inject=["allMarkets","dropDownConfig","pricing","$stateParams","toastr","$state"],angular.module("app.dashboard.pricing").controller("PriceMarket",e)}(),function(){"use strict";function e(e,t,a,i){function o(){c.allProductPriceSummary=t,c.appConstants=a,c.appFormats=i,c.selectedProductID=[],c.selectedCountry=[],c.addProductPricing=d,c.onProductsSelectedChanged=r,c.onCountrySelectedChanged=l,c.productPriceReport=s}function s(t){e.go("dashboard.productPriceAnalytics",{productItemId:t})}function n(){c.priceSummaryToRemove=[],angular.forEach(c.allProductPriceSummary,function(e,t){var a=!1;a=a||c.selectedProductID.indexOf(e.productId)<=-1,a=a||c.selectedCountry.indexOf(e.productOriginName)<=-1,a&&c.priceSummaryToRemove.push(e.productItemId)})}function r(e){c.selectedProductID=_.map(e,"id"),n()}function l(e){c.selectedCountry=_.map(e,"name"),n()}function d(t){e.go(t)}var c=this;o()}e.$inject=["$state","allProductPriceSummary","appConstants","appFormats"],angular.module("app.dashboard.pricing").controller("Pricing",e)}(),function(){"use strict";function e(e,t,a,i,o,s,n){function r(){D.priceItemsToRemove=[],D.showForm=!1,D.dateRange=s.todayDateRange(),D.appFormats=o,D.allPriceItems=i,D.marketPriceObj=e.getNewMarketPriceObj(),D.currentCurrency="USD",D.currentMetric="FCL",D.productItemConfig={},D.productItemOptions={},D.priceMarketConfig={},D.priceMarketOptions={},D.shipmentMonthConfig={},D.shipmentMonthOptions={},D.priceMetricConfig={},D.priceMetricOptions={},D.selectedPriceMarketID=[],D.selectedCountry=[],D.selectedProductID=[],D.time=new Date,t.prepareShipmentMonthDropDown(D.shipmentMonthConfig,D.shipmentMonthOptions),t.prepareProductItemDropDown(D.productItemConfig,D.productItemOptions),t.preparePriceMarketDropDown(D.priceMarketConfig,D.priceMarketOptions,x),t.preparePriceMetricConfig(D.priceMetricConfig,D.priceMetricOptions),D.openDatePicker=function(){D.dateOpened=!0},D.currentMetric="FCL",D.addMarketPriceItemObj=C,D.addMarketPrice=w,D.editProductItemPrice=c,D.updateMarketPrice=y,D.deleteMarketPrice=k,D.onPriceMarketChange=x,D.removeMarketPriceItemObj=P,D.currentValueChange=f,D.addNewProductItemPrice=b,D.cancel=h,D.toggleDetailDisplay=v,D.onDateRangeChanged=g,D.onProductsSelectedChanged=u,D.onPriceMarketSelectedChanged=m,D.onCountrySelectedChanged=p,D.onPriceDateChange=d}function l(){D.priceItemsToRemove=[],angular.forEach(D.allPriceItems,function(e,t){var a=!1;a=a||D.selectedProductID.indexOf(e.productId)<=-1,a=a||D.selectedPriceMarketID.indexOf(e.priceMarketId)<=-1,a=a||D.selectedCountry.indexOf(e.productOriginName)<=-1,a&&D.priceItemsToRemove.push(e.id)})}function d(){var e=new Date(D.marketPriceObj.priceTime);e=e.toUTCString(),angular.forEach(D.marketPriceObj.priceItems,function(e,t){e.shipmentMonths=[]}),t.prepareShipmentMonthDropDown(D.shipmentMonthConfig,D.shipmentMonthOptions,e)}function c(e){D.showForm=!1,D.marketPriceObj=e,D.shipmentMonthConfig={},D.shipmentMonthOptions={},t.prepareShipmentMonthDropDown(D.shipmentMonthConfig,D.shipmentMonthOptions,e.priceTime),D.showForm=!0}function u(e){D.selectedProductID=_.map(e,"id"),l()}function p(e){D.selectedCountry=_.map(e,"name"),l()}function m(e){D.selectedPriceMarketID=_.map(e,"id"),l()}function g(t){return n.open(),e.getAllProductItemPrice(t).then(function(e){n.close(),D.allPriceItems=e.data.allPrices})}function v(e){e.showDetails=!e.showDetails}function b(){D.showForm=!0}function h(){D.showForm=!1,D.marketPriceObj=e.getNewMarketPriceObj()}function f(e,t,i){i?angular.forEach(e.priceItems,function(e,a){e.currentValue=t===e}):(t.currentValue=!0,a.error("Must have one price item as current market value."))}function w(t,i,o){t.$valid?e.addProductItemPrice(i,function(i){i.success&&(o?(a.success(i.message),D.marketPriceObj=e.getNewMarketPriceObj(),s.resetFormValidation(t)):(a.success(i.message),g(D.dateRange),h()))}):a.error("Please enter missing fields.","Invalid Form")}function y(t,i){t.$valid?e.updateProductItemPrice(i,function(e){if(e.success){var t=_.find(D.allPriceItems,function(t){return t.id==e.obj.id}),i=_.indexOf(D.allPriceItems,t);D.allPriceItems[i]=e.obj,h(),a.success(e.message)}}):a.error("Please enter missing fields.","Invalid Form")}function k(t){n.open(),e.deleteProductItemPrice(t).then(function(e){if(e.success){var i=_.find(D.allPriceItems,function(e){return e.id=t.id}),o=_.indexOf(D.allPriceItems,i);-1!==o&&(D.allPriceItems.splice(o,1),a.success(e.message))}else a.error(e.message);n.close()})}function C(t){t.priceItems.push(e.getNewMarketPriceItemObj())}function x(e){e?(D.marketItem=_.find(D.priceMarketOptions.list,function(t){return t.id==e}),D.currentCurrency=D.marketItem.currency):D.currentCurrency="USD"}function P(e,t){if(1!==e.priceItems.length){var i=_.findIndex(e.priceItems,t);e.priceItems.splice(i,1),1==e.priceItems.length&&(e.priceItems[0].currentValue=!0)}else a.error("Market Price must have atleast one price item.")}var D=this;r()}e.$inject=["pricing","dropDownConfig","toastr","allPriceItems","appFormats","utilities","loaderModal"],angular.module("app.dashboard.pricing").controller("ProductPricing",e)}(),function(){"use strict";function e(e,t,a){function i(){n.productItemId=e.productItemId,console.log(n.productItemId),n.dateRange=t.lastThirtyDaysDateRange(),n.onDateRangeChanged=o,s(n.dateRange,n.productItemId)}function o(e){n.dateRange=e,s(e,n.productItemId)}function s(e,t){a.getPriceReport(e,t)}var n=this;i()}e.$inject=["$stateParams","utilities","product"],angular.module("app.dashboard.products").controller("ProductPriceAnalytics",e)}(),function(){"use strict";function e(e,t,a,i){function o(){u.showform=!0,u.allCategories=e,u.categoryObj=a.getNewProductCategoryObj(),u.addNewCategory=c,u.addCategory=l,u.updateCategory=n,u.editCategory=r,u.cancel=d,u.specification=s}function s(e){t.go("dashboard.productSpecification",{categoryId:e})}function n(e,t){e.$valid?a.updateProductCategory(t,function(e){if(e.success){var t=_.find(u.allCategories,function(t){return t.id==e.obj.id}),a=_.indexOf(u.allCategories,t);u.allCategories[a]=e.obj,d(),i.success(e.message)}else i.error(e.message)}):i.error("Please provide a category name","Invalid form")}function r(e){u.showForm=!1,u.categoryObj=angular.copy(e),u.showForm=!0}function l(e,t){e.$valid?a.addProductCategory(t,function(e){e.success?(u.allCategories.push(e.obj),i.success(e.message),d()):i.error(e.message)}):i.error("Please provide a category name","Invalid form")}function d(){u.categoryObj=a.getNewProductCategoryObj(),u.showForm=!1}function c(){u.categoryObj=a.getNewProductCategoryObj(),u.showForm=!0}var u=this;o()}e.$inject=["allCategories","$state","product","toastr"],angular.module("app.dashboard.products").controller("ProductCategories",e)}(),function(){"use strict";function e(e,t,a,i,o,s){function n(){g.allProductItems=o,g.showForm=!1,g.cancel=d,g.productItem=e.getProductObj(),g.appConstants=i,g.keywordConfig={},g.keywordOptions={},g.originConfig={},g.originOptions={},g.editProductItem=u,g.addNewProductItem=m,g.addProductItem=l,g.updateProductItem=c,g.displayPriceOnWebsite=p,g.specsConfig=[],g.productConfig={},g.productOptions={},a.prepareProductOriginDropDown(g.originConfig,g.originOptions,null),a.prepareKeywordDropDown(g.keywordConfig,g.keywordOptions,null),a.prepareProductDropDown(g.productConfig,g.productOptions,g.originConfig,g.originOptions,g.keywordConfig,g.keywordOptions,r)}function r(e,t,i,o,s,n){s?a.prepareProductOriginDropDown(e,t,s,function(){a.prepareKeywordDropDown(i,o,s,n)}):(g.productItem.origin=null,g.productItem.keywords=null)}function l(t,a){e.addProductItem(a,function(t){t.success&&(g.allProductItems.push(t.obj),g.productItem=e.getProductObj(),g.showForm=!1,s.success("Product item added successfully."))})}function d(){g.productItemObj=e.getProductObj(),g.showForm=!1}function c(t,a){e.updateProductItem(a,function(t){if(t.success){var a=t.obj,i=_.find(g.allProductItems,function(e){return e.id==a.id}),o=_.indexOf(g.allProductItems,i);g.allProductItems[o]=a,g.productItem=e.getProductObj(),g.showForm=!1,s.success("Product item updated successfully.")}})}function u(e){g.showForm=!1,r(g.originConfig,g.originOptions,g.keywordConfig,g.keywordOptions,e.productId,function(){g.productItem=e,g.showForm=!0})}function p(t){e.productItemPriceOnWebsite(t.id,!t.priceOnWebsite).then(function(e){e.success?(t.priceOnWebsite=!t.priceOnWebsite,s.success(e.message)):s.error(e.message)})}function m(){g.showForm=!1,g.productItem=e.getNewProductItem(),g.showForm=!0}var g=this;n()}e.$inject=["product","$state","dropDownConfig","appConstants","allProductItems","toastr"],angular.module("app.dashboard.products").controller("ProductItems",e)}(),function(){"use strict";function e(e,t,a,i,o){function s(){u.allKeywords=e,u.categoryConfig={},u.categoryOptions={},i.prepareProductCategoryDropDown(u.categoryConfig,u.categoryOptions),u.keywordObj=a.getNewKeywordObj(),u.showForm=!1,u.addNewKeyword=n,u.addKeyword=r,u.editKeyword=l,u.updateKeyword=d,u.cancel=c}function n(){u.keywordObj=a.getNewKeywordObj(),u.showForm=!0}function r(e,t){e.$valid?a.addProductKeyword(t,function(e){e.success?(u.allKeywords.push(e.obj),c(),o.success(e.message)):o.error(e.message)}):o.error("Please fill missing fields.","Incomplete form")}function l(e){u.keywordObj=e,u.showForm=!0}function d(e,t){e.$valid?a.updateProductKeyword(t,function(e){if(e.success){var t=e.obj,a=_.find(u.allKeywords,function(e){return e.id==t.id}),i=_.indexOf(u.allKeywords,a);u.allKeywords[i]=t,c(),o.success(e.message)}else o.error(e.message)}):o.error("Please fill missing fields.","Incomplete form")}function c(){u.keywordObj=a.getNewKeywordObj(),u.showForm=!1}var u=this;s()}e.$inject=["allKeywords","$state","product","dropDownConfig","toastr"],angular.module("app.dashboard.products").controller("ProductKeyword",e)}(),function(){"use strict";function e(e,t,a,i){function o(){c.categoryName=i.categoryName,c.specificationData=i,c.addSpecificationItem=d,0===c.specificationData.specs.length&&c.specificationData.specs.push(r()),c.removeSpecItem=l,c.saveSpecs=s,c.cancel=n,c.specsTypes=[{name:"Text",value:"text"},{name:"Percentage",value:"Percentage"}]}function s(e,i){e.$valid?t.saveProductCategorySpecification(i).then(function(e){e.success?(a.success(e.message),n()):a.error(e.message)}):a.error("Please enter missing fields")}function n(){e.go("dashboard.productsCategories")}function r(){return{name:null,type:null}}function l(e,t){if(1!==e.length){var i=_.findIndex(e,t);e.splice(i,1)}else a.error("Category specification must have at least one spec item.")}function d(){c.specificationData.specs.push(r())}var c=this;o()}e.$inject=["$state","product","toastr","specificationData"],angular.module("app.dashboard.products").controller("ProductSpecification",e)}(),function(){"use strict";function e(e,t,a,i,o,s,n,r,l,d,c,u){function p(){D.showForm=!1,D.productObj=t.getProductObj(),D.allProducts=a,D.appConstants=o,D.addStepTitle=["Add New Product","Add Product Origins"],D.updateStepTitle=["Update Product","Update Product Origins"],D.categoryConfig={},D.categoryOptions={},D.countryConfig={},D.countryOptions={},D.cancel=g,D.addNewProduct=v,D.editProduct=b,D.deleteProduct=k,D.uploadProductImage=C,D.removeProductPicture=P,D.getFile=x,D.saveProduct=h,D.onSaveProductCallback=f,D.saveProductOrigin=w,D.onSaveProductOriginCallback=y,D.displayOnWebsite=m,n.prepareProductCategoryDropDown(D.categoryConfig,D.categoryOptions),n.prepareCountryDropDown(D.countryConfig,D.countryOptions)}function m(e){r.open(),t.displayOnWebsite(e.info.id,!e.info.onWebsite).then(function(t){t.success?(d.success(t.message),e.info.onWebsite=!e.info.onWebsite):d.error(t.message),r.close()},function(e){d.error("Some Error occurred"),r.close()})}function g(){c.transitionTo(c.current,u,{reload:!0,inherit:!1,notify:!0})}function v(){D.action="add",D.showForm=!1,D.stepTitle=D.addStepTitle,D.productObj=t.getProductObj(),D.productImage=s("productPicture")(D.productObj.info.image),D.noPicture=null===D.productImage,D.showForm=!0}function b(e){D.action="update",D.showForm=!1,D.stepTitle=D.updateStepTitle,D.productObj=e,D.productImage=s("productPicture")(D.productObj.info.image),D.noPicture=null===D.productImage,D.showForm=!0}function h(e,a){return e.id?t.updateProduct(e,a):t.addProduct(e,a)}function f(e){e.success&&(D.productObj.id=e.id,D.productObj.info.id=e.id)}function w(e){return t.saveProductOrigin(e)}function y(e){c.transitionTo(c.current,u,{reload:!0,inherit:!1,notify:!0})}function k(e,a){t.deleteProduct(a.id).then(function(t){if(t.success){var i=e.indexOf(a);e.splice(i,1),d.success(t.message)}else d.error(t.message)})}function C(){var e=document.getElementById("uploadProductFile");e.click()}function x(e){l.getFile(e,i,1,[{w:800,h:400}],{width:800,height:400},function(e){D.productImage=e.croppedImage,D.imagesData=e})}function P(){D.noPicture=!0,D.productImage=null}var D=this;p()}e.$inject=["fileReader","product","allProducts","$scope","appConstants","$filter","dropDownConfig","loaderModal","deModal","toastr","$state","$stateParams"],angular.module("app.dashboard.products").controller("Products",e)}(),function(){"use strict";function e(e,t,a,i,o,s,n,r,l,d,c,u,p){function m(){C.inputFields=a,C.passwordDetails=s.getChangePasswordObj(),C.changePasswordSubmit=g,C.appFormats=n,C.page=r.CR_UP_BASIC_DROP_DOWN,C.appDropDownList=[],C.title=e.current.title,C.addDropDown=w,C.openDropDownModal=b,C.modalController=h,C.getDropDownList=v,C.saveBusinessSettings=k,C.getBusinessSettings=y,C.appDropDowns=[{title:"Business Partner Type",endPoint:c.dropDown.businessType},{title:"Contract Type",endPoint:c.dropDown.contractType},{title:"Contact Type",endPoint:c.dropDown.contactType},{title:"Designation",endPoint:c.dropDown.designation},{title:"Transaction Status",endPoint:c.dropDown.transactionStatus},{title:"Packaging",endPoint:c.dropDown.packaging},{title:"Commission Type",endPoint:c.dropDown.commissionType}],v(C.appDropDowns[0])}function g(e,a){e.$valid&&t.changePassword(a).then(function(t){t.success?(o.success(t.message),C.passwordDetails=s.getChangePasswordObj(),i.resetFormValidation(e)):(o.error(t.message),C.passwordDetails=s.getChangePasswordObj(),i.resetFormValidation(e))})}function v(e){return C.activedropDown=e,s.dropDown[l.READ](e.endPoint).then(function(t){e.list=t.list})}function b(e,t,a,i,o,s,n){var r={endPoint:function(){return t},title:function(){return e},name:function(){return s},id:function(){return n}};C.dropDownModal=d.openModal(a,i,o,r)}function h(e,t,a,i,o){e.title=t,e.endPoint=a,e.name=i,e.id=o,e.saveDropDown=e.id?f:w}function f(e,t,a){s.dropDown[l.UPDATE](e,t,a).then(function(e){if(e.success){o.success(e.message);var i=_.find(C.activedropDown.list,function(e){return e.id=a});i.name=t,d.dismissModal(C.dropDownModal)}else o.error(e.message),d.dismissModal(C.dropDownModal)})}function w(e,t,a){s.dropDown[l.CREATE](e,t).then(function(e){e.success?(o.success(e.message),C.activedropDown.list.push(e.obj),d.dismissModal()):(o.error(e.message),d.dismissModal())})}function y(){p.open(),u.getBusinessSettings().then(function(e){C.businessSettings=e.business,p.close()})}function k(e,t){e.$valid?(p.open(),u.saveBusinessSettings(t).then(function(e){e.success?(o.success(e.message),p.close()):(o.error(e.message),p.close())})):o.error("Please enter form correctly","Invalid Form")}var C=this;m()}e.$inject=["$state","user","inputFields","utilities","toastr","settings","appFormats","modalTemplates","crud","deModal","apiEndPoints","businessPartner","loaderModal"],angular.module("app.dashboard.settings").controller("settings",e)}(),function(){"use strict";function e(e,t,a,i,o,s){function n(){t.addRecentlyViewItems("Trade Book"),v.searchTransaction="",v.dateRange=o.initialDateRange(),v.appFormats=i,v.dateFilter=[],v.selectedBuyerID=[],v.selectedSellerID=[],v.selectedProductID=[],v.selectedCountries=[],v.selectedTranStatus=[],v.allTransactions=[],v.onDateRangeChanged=l,v.onBuyersSelectedChanged=c,v.onSellersSelectedChanged=u,v.onProductsSelectedChanged=p,v.onCountrySelectedChanged=m,v.onTranStatusSelectedChanged=g,v.filterChanged=d,v.gettradeBookExcel=r,v.transactionTableHeadings=["Date","File No","Buyer","Product","Quantity","Rate","Seller","Origin","Shipment Start","Shipment End","Commission"],v.headingAssociation=["transactionDate","fileNo","buyer","product","quantity","rate","seller","origin","shipment_start","shipment_end","commission"],v.headingclass=["dateColumn","fileId","dropDownCol2","dropDownCol2","","","dropDownCol2","","dateColumn2","dateColumn",""],v.headerAnchor=[{text:"Add new Transaction",state:'shell.tradeBook.Transaction({tran:"new"})'}]}function r(e,t){var i=s("selectedRows")(v.allTransactions,v.tranToRemove,"tr_transactionID");a.getTableInExcelSheet(e,i,v.headingAssociation,"tradeBook")}function l(t){var a=new Date(t.startDate),i=new Date(t.endDate);e.getTransactionListOnDateRange(a,i).then(function(e){e.data.success&&(v.allTransactions=e.data.transactions,d())})}function d(){v.tranToRemove=[],angular.forEach(v.allTransactions,function(e,t){var a=!1;a=v.selectedBuyerID.indexOf(e.tr_bpBuyerID)<=-1,a=a||v.selectedSellerID.indexOf(e.tr_bpSellerID)<=-1,a=a||v.selectedProductID.indexOf(e.tr_productID)<=-1,a=a||v.selectedTranStatus.indexOf(e.status)<=-1,a&&v.tranToRemove.push(e.tr_transactionID)})}function c(e){v.selectedBuyerID=_.map(e,"bp_ID"),d()}function u(e){v.selectedSellerID=_.map(e,"bp_ID"),d()}function p(e){v.selectedProductID=_.map(e,"id"),d()}function m(e){v.selectedCountries=_.map(e,"origin_name"),d()}function g(e){v.selectedTranStatus=_.map(e,"text"),d()}var v=this;n()}e.$inject=["tradeBook","routing","documentExporter","appFormats","utilities","$filter"],angular.module("app.dashboard.tradeBook").controller("TradeBook",e)}(),function(){"use strict";function e(e,t,a){function i(){n.showForm=!1,n.allUsers=e,n.appFormats=t,n.addNewUser=s,n.editUser=o}function o(e){a.go("dashboard.user.profile",{id:e})}function s(){a.go("dashboard.user.profile",{id:"new"})}var n=this;i()}e.$inject=["allUsers","appFormats","$state"],angular.module("app.dashboard.user").controller("User",e)}(),function(){"use strict";function e(e,t,a,i,o,s,n){function r(){y.researchList=[],y.addNewResearch=h,y.uploadResearchImage=d,y.removeResearchImage=u,y.saveResearch=p,y.editResearch=m,y.deleteResearch=b,y.displayResearchOnWeb=v,y.getFile=c,y.loadTags=l,y.researchObj=t.getNewResearchObj(),y.blogImage=i("itemImage")(y.researchObj.image),y.cancel=f,w()}function l(e){return t.getResearchTags(e)}function d(){var e=document.getElementById("uploadResearchFile");e.click()}function c(t){e.getFile(t,o,1.5,[{w:800,h:400}],{width:800,height:400},function(e){y.blogImage=e.croppedImage,y.imagesData=e,y.noPicture=!1})}function u(){y.noPicture=!0,y.researchObj.image=null,y.blogImage=i("itemImage")(y.researchObj.image)}function p(e,i,o,n){return e.$valid?(a.open(),i.isDraft=n,i.id?t.updateResearch(i,o).then(function(t){if(t.success){var o=g(y.researchList,i.id),n=y.researchList.indexOf(o);y.researchList[n]=t.researchObj,s.success(t.message),f(e)}else s.error(t.message);a.close()}):t.addResearch(i,o).then(function(t){t.success?(y.researchList.push(t.researchObj),s.success(t.message),f(e)):s.error(t.message),a.close()})):void s.error("Please enter missing fields")}function m(e){a.open(),t.getCompleteResearch(e).then(function(e){y.researchObj=e.researchObj,y.blogImage=y.researchObj.image,y.noPicture=!1,a.close(),y.showForm=!0})}function g(e,t){return _.find(e,function(e){return e.id==t})}function v(e){a.open(),t.displayResearchOnWebsite(e).then(function(t){if(t.success){var i=g(y.researchList,e),o=y.researchList.indexOf(i);y.researchList[o]=t.researchObj,s.success(t.message)}else s.error(t.message);a.close()})}function b(e){a.open(),t.deleteResearch(e).then(function(t){if(t.success){s.success(t.message);var i=g(y.researchList,e),o=y.researchList.indexOf(i);y.researchList.splice(o,1)}else s.error(t.message);a.close()})}function h(){y.showForm=!0,y.researchObj=t.getNewResearchObj()}function f(e){y.showForm=!1,y.researchObj=t.getNewResearchObj(),n.resetFormValidation(e)}function w(){a.open(),t.getResearchList().then(function(e){y.researchList=e.researchList,a.close()})}var y=this;r()}e.$inject=["deModal","website","loaderModal","$filter","$scope","toastr","utilities"],angular.module("app.dashboard.website").controller("Blog",e)}(),function(){"use strict";function e(e,t,a,i){function o(){r.dashboardData=a,r.trafficChartData=[],r.mapData=[],r.trafficChartValues=["newUsers","visits"],r.goToWebsiteBlogs=s,r.connectGoogleAnalytics=n,r.dashboardData.googleAnalyticsConnected&&(r.mapData=r.dashboardData.data.trafficCountryChartData,r.cardsTotalData=r.dashboardData.data.cardsTotalData,r.trafficChartData=t.prepareGraphData(r.dashboardData.data.trafficChartData))}function s(){e.go("dashboard.websiteBlog")}function n(){i.authenticate("google",function(){e.reload()})}var r=this;o()}e.$inject=["$state","utilities","dashboard","authentication"],angular.module("app.dashboard.website").controller("Website",e)}(),function(){"use strict";function e(){function e(){t.slides=[{image:"http://10pearls.com/wp-content/themes/10pearls-2014/images/slider2016-intro-art.png"},{image:"http://10pearls.com/wp-content/themes/10pearls-2014/images/slider2016-staff-acceleration.jpg"}]}var t=this;e()}angular.module("app.landing").controller("homeCtrl",e)}(),function(){"use strict";function e(e,t,a,i,o,s,n,r){function l(){p.appFormats=e,p.page=i,p.list=t,p.endPoint=a,p.title=n.current.title,p.addDropDown=u,p.openAddDropDownModal=d,p.modalController=c}function d(e,t,a,i,o){var s={endPoint:function(){return t},title:function(){return e}};r.openModal(a,i,o,s)}function c(e,t,a){e.title=t,e.endPoint=a,e.name,e.addDropDown=u}function u(e,t){o.dropDown[s.CREATE](e,t).then(function(e){p.list.push(e.obj)},function(e){})}var p=this;l()}e.$inject=["appFormats","list","endPoint","page","settings","crud","$state","deModal"],angular.module("app.dashboard.settings").controller("appDropDown",e)}(),function(){"use strict";function e(e,t){function a(){i.quantityMetricConfig={},i.quantityMetricOptions={},i.productConfig={},i.productOptions={},i.packagingConfig={},i.packagingOptions={},i.buyerConfig={},i.buyerOptions={},i.sellerConfig={},i.sellerOptions={},i.productItemConfig={},i.productItemOptions={},i.commissionTypeConfig={},i.commissionTypeOptions={},e.prepareCommissionTypeConfig(i.commissionTypeConfig,i.commissionTypeOptions),e.preparePackagingConfig(i.packagingConfig,i.packagingOptions),e.prepareProductItemDropDown(i.productItemConfig,i.productItemOptions),e.preparePriceMetricConfig(i.quantityMetricConfig,i.quantityMetricOptions),e.prepareProductDropDown(i.productConfig,i.productOptions),e.prepareBusinessDropDown(i.buyerConfig,i.buyerOptions,"Buyer"),e.prepareBusinessDropDown(i.sellerConfig,i.sellerOptions,"Seller"),i.transaction=t.getNewTransaction()}console.log("hello");var i=this;a()}e.$inject=["dropDownConfig","tradeBook"],angular.module("app.dashboard.tradeBook").controller("Transaction",e)}(),function(){"use strict";function e(e,t,a,i,o,s,n,r,l,d,c){function u(){f.locationConfig={},f.locationOptions={},f.designationOptions={},f.designationConfig={},f.userProfile=o,f.cancel=p,f.imagesData=null,f.userData=t.getUserData(),f.picture=a("profilePicture")(o.profilePic),f.updateUser=b,f.addUser=v,f.removePicture=m,f.uploadPicture=g,f.getFile=h,n.prepareBusinessLocationsDropDown(f.locationConfig,f.locationOptions),n.prepareDesignationDropDown(f.designationConfig,f.designationOptions)}function p(){try{c.go(c.current.prevState,c.current.prevParam)}catch(e){c.go("dashboard.main")}}function m(){f.noPicture=!0,o.profilePic=null,f.picture=a("profilePicture")(o.profilePic)}function g(){var e=document.getElementById("uploadFile");e.click()}function v(e,t,a){e.$valid?d.addUserProfile(t,a).then(function(e){e.success?f.noPicture||d.addProfilePic(a,e.user_id).then(function(t){r.success(e.message,"Success"),p()}):(r.error(e.message),s.goBackState())}):r.error("Please enter the missing fields","Invalid Form")}function b(e,a,i){e.$valid?d.updateUserProfile(a,i).then(function(e){
e.success?f.noPicture?(r.success(e.message,"Success"),s.goBackState()):d.addProfilePic(i,e.user_id).then(function(a){f.userData.data.id===e.user_id&&t.getUserData(!0),r.success(e.message,"Success"),p()}):r.error(e.message)}):r.error("Please enter the missing fields","Invalid Form")}function h(t){e.readAsDataUrl(t,l).then(function(e){i.openImageCropper(e,1,[{w:200,h:200},{w:100,h:100}],{width:100,height:100},function(e){f.picture=e.croppedImage,f.imagesData=e})})}var f=this;u()}e.$inject=["fileReader","authentication","$filter","deModal","userProfile","utilities","dropDownConfig","toastr","$scope","user","$state"],angular.module("app.dashboard.user").controller("ProfilePage",e)}(),angular.module("app",["textAngularSetup","app.core","app.common","app.theme","app.modal","app.landing","app.authentication","app.dashboard","app.widgets"]),function(){"use strict";function e(e,t,a,i,o,s,n,r,l,d){function c(e,t){d.open(),l.authenticate(e).then(function(e){e.data.success?(s.success(e.message),t()):s.error(e.data.message),d.close()},function(e){s.error("Unable to save your google analytics token")})["finally"](function(){d.close()})}function u(){return p().data.businessId}function p(e){return _.isEmpty(f)||e?b.customGET().then(function(e){return m(e.userData),p()}):f}function m(e){f.data=e}function g(e,t,l){b.post({username:t,password:l}).then(function(e){console.log(e),f.data=e.userData,i.defaults.headers.post["X-CSRFToken"]=o.get("csrftoken"),i.defaults.headers.put["X-CSRFToken"]=o.get("csrftoken"),a.go("dashboard.main")},function(e){"INVALID_CREDENTIALS"===e.data&&e.status===n.NOT_FOUND&&s.error("You username or password seems to be incorrect!","Invalid Credentials"),console.log(e)})["finally"](function(){r.resetFormValidation(e)})}function v(){h.post().then(function(e){e.success&&a.go("login")})}var b=(e.all(t.authentication.basic),e.all(t.login)),h=e.all(t.logout),f={};return{login:g,logout:v,getUserData:p,setUserData:m,getUserBusinessId:u,authenticate:c}}e.$inject=["Restangular","apiEndPoints","$state","$http","$cookies","toastr","httpStatus","utilities","$auth","loaderModal"],angular.module("app.authentication").factory("authentication",e)}(),function(){"use strict";function e(e,t){function a(a,o,s,n){var r={};for(var l in a)r[a[l]]=null;var d=/\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}/,c=[];angular.forEach(o,function(i,o){var n=angular.copy(r);angular.forEach(s,function(o,s){d.test(i[o])&&(i[o]=e("date")(new Date(i[o]),t.Date)),n[a[s]]=i[o]}),c.push(n)}),i(c,!0,n)}function i(e,t,a){var i="object"!=typeof e?JSON.parse(e):e,o="";if(t){var s="";for(var n in i[0])s+=n+",";s=s.slice(0,-1),o+=s+"\r\n"}for(var r=0;r<i.length;r++){var l="";for(var d in i[r]){var c=i[r][d]?i[r][d]:"";l+='"'+c+'",'}l.slice(0,l.length-1),o+=l+"\r\n"}if(""!==o){var u=a+".csv",p=!1;if((-1!==navigator.userAgent.indexOf("MSIE")||navigator.appVersion.indexOf("Trident/")>0)&&(p=!0),p){var m=new Blob([o]);window.navigator.msSaveBlob(m,u)}else{var g="data:text/csv;charset=utf-8,"+encodeURI(o),v=document.createElement("a");v.href=g,v.download=u,document.body.appendChild(v),v.click(),document.body.removeChild(v)}}}return{getTableInExcelSheet:a}}e.$inject=["$filter","appFormats"],angular.module("app.common").factory("documentExporter",e)}(),function(){"use strict";function e(e,t,a,i,o,s,n,r){function l(e,t){a.cloneIntoEmptyObject(e,N()),i.dropDown[s.READ](o.dropDown.packaging,n.DROP_DOWN).then(function(e){return a.cloneIntoEmptyObject(t,e.list)})}function d(e,t){a.cloneIntoEmptyObject(e,N()),i.dropDown[s.READ](o.dropDown.commissionType,n.DROP_DOWN).then(function(e){return a.cloneIntoEmptyObject(t,e.list)})}function c(e,t){return'<div><span class="dropdownLabel">'+e.month+'</span><span class="dropdownCaption"> | '+e.year+"</span></div>"}function u(e,t){a.cloneIntoEmptyObject(e,N()),e.onItemRemove=function(e,a){var i=this,o=_.find(t.list,function(t){return t.id==e});t.list.push(o),i.refreshItems()},i.dropDown[s.READ](o.dropDown.contactType,n.DROP_DOWN).then(function(e){return a.cloneIntoEmptyObject(t,e.list)})}function p(e,t){var a=null===e.contactPerson?"No Primary Contact":e.contactPerson;return'<div><span class="dropdownLabel">'+e.name+'</span><span class="dropdownCaption"> | '+e.country+'</span><span class="dropdownCaption"> | '+a+"</span></div>"}function m(e,t,n){var r={valueField:"id",sortField:"name",searchField:["name","contactPerson","country"],maxItems:1,create:!1,persist:!1,render:{item:p,option:p}};a.cloneIntoEmptyObject(e,r),i.dropDown[s.READ](o.dropDown.business,{type:n}).then(function(e){return a.cloneIntoEmptyObject(t,e.list)})}function g(e,t){a.cloneIntoEmptyObject(e,N(!0,t)),i.dropDown[s.READ](o.dropDown.bpType,n.DROP_DOWN).then(function(e){return a.cloneIntoEmptyObject(t,e.list)})}function v(e,t,n){var r={onItemRemove:function(e,a){var i=this,o=_.find(t.list,function(t){return t.startMonth==e});t.list.push(o),i.refreshItems()},valueField:"startMonth",sortField:"startMonth",searchField:["month","year"],create:!1,persist:!1,render:{item:c,option:c}};return a.cloneIntoEmptyObject(e,r),i.dropDown[s.READ](o.dropDown.shipmentMonth,n).then(function(e){return a.cloneIntoEmptyObject(t,e.list)})}function b(e,t){return'<div><span class="dropdownLabel">'+e.origin+'</span><span class="dropdownCaption"> | '+e.currency+"</span></div>"}function h(e,t,n){var r={onItemRemove:function(e,a){var i=this,o=_.find(t.list,function(t){return t.id==e});t.list.push(o),i.refreshItems()},valueField:"id",sortField:"origin",searchField:["origin","currency"],maxItems:1,create:!1,persist:!1,render:{item:b,option:b}};return n&&(r.onChange=n),a.cloneIntoEmptyObject(e,r),i.dropDown[s.READ](o.dropDown.priceMarket).then(function(e){return a.cloneIntoEmptyObject(t,e.list)})}function f(e,t){var a=""===e.keywords?"No Keywords":e.keywords;return'<div><span class="dropdownLabel">'+e.name+'</span><span class="dropdownCaption"> | '+e.origin+'</span><span class="dropdownCaption" style="max-width: 80px;text-overflow: ellipsis"> | '+a+"</span></div>"}function w(e,t){var n={onItemRemove:function(e,a){var i=this,o=_.find(t.list,function(t){return t.id==e});t.list.push(o),i.refreshItems()},valueField:"id",sortField:"name",searchField:["name","origin","keywords"],maxItems:1,create:!1,persist:!1,render:{item:f,option:f}};return a.cloneIntoEmptyObject(e,n),i.dropDown[s.READ](o.dropDown.productItem).then(function(e){return a.cloneIntoEmptyObject(t,e.list)})}function y(e,t){var a=e.name;return'<div><span class="dropdownLabel">'+a+'</span><span class="dropdownCaption"> | '+e.code+"</span></div>"}function k(e,t){var n={onItemRemove:function(e,a){var i=this,o=_.find(t.list,function(t){return t.code==e});productOptions.list.push(o),i.refreshItems()},valueField:"code",sortField:"name",searchField:["name"],maxItems:1,create:!1,persist:!1,render:{item:y,option:y}};return a.cloneIntoEmptyObject(e,n),i.dropDown[s.READ](o.dropDown.currency).then(function(e){return a.cloneIntoEmptyObject(t,e.list)})}function C(e,t,n,r){var l={};return a.cloneIntoEmptyObject(e,N(!0,t,"id","name")),n?i.dropDown[s.READ](o.dropDown.productKeywords,n).then(function(e){return a.cloneIntoEmptyObject(l,e.list),r&&r(),a.cloneIntoEmptyObject(t,e.list)}):void 0}function x(e,t,n,r,l,d,c){var u={onItemRemove:function(e,a){var i=this,o=_.find(t.list,function(t){return t.id==e});t.list.push(o),i.refreshItems()},valueField:"id",sortField:"name",searchField:["name"],maxItems:1,create:!1,persist:!1,render:{item:P,option:P}};return n&&(u.onChange=function(e){c(n,r,l,d,e)}),a.cloneIntoEmptyObject(e,u),i.dropDown[s.READ](o.dropDown.product).then(function(e){return a.cloneIntoEmptyObject(t,e.list)})}function P(e,t){var a=e.name;return'<div><span class="dropdownLabel">'+a+'</span><span class="dropdownCaption"> | '+e.category+"</span></div>"}function D(e,t,n,r){var l={},d={onItemRemove:function(e){var a=_.find(l.list,function(t){return t.code==e});t.list.push(a);var i=this;i.refreshItems()},maxItems:1,valueField:"code",sortField:"name",searchField:["name"],openOnFocus:!0,closeOnSelect:!0,create:!1,persist:!1,render:{item:$,option:$}};return a.cloneIntoEmptyObject(e,d),n?i.dropDown[s.READ](o.dropDown.productOrigin,n).then(function(e){a.cloneIntoEmptyObject(l,e.list),a.cloneIntoEmptyObject(t,e.list),r&&r()}):void 0}function I(e,t,n,r){e&&(a.cloneIntoEmptyObject(e,N()),r&&(e.onChange=function(e){console.log(e),r(e)})),n&&i.dropDown[s.READ](o.dropDown.region,n).then(function(e){return a.cloneIntoEmptyObject(t,e.list)})}function T(e,t,n,r){e&&a.cloneIntoEmptyObject(e,N()),n&&i.dropDown[s.READ](o.dropDown.city,{countryCode:n,region:r}).then(function(e){return a.cloneIntoEmptyObject(t,e.list)})}function $(e,t){var a=e.name;return'<div><img width="18" src="'+r.STATIC_URL+e.image+'"/><span class="dropdownLabel">&nbsp;&nbsp;&nbsp;'+a+"</span></div>"}function S(e,t,r,l){var d={},c={onItemRemove:function(e){var a=_.find(d.list,function(t){return t.code==e});t.list.push(a);var i=this;i.refreshItems()},valueField:"code",sortField:"name",searchField:["name"],openOnFocus:!0,closeOnSelect:!0,create:!1,persist:!1,render:{item:$,option:$}};l&&(c.maxItems=l),r&&(c.onChange=function(e,t,a,i){r(e)}),a.cloneIntoEmptyObject(e,c),i.dropDown[s.READ](o.dropDown.country,n.DROP_DOWN).then(function(e){return a.cloneIntoEmptyObject(d,e.list),a.cloneIntoEmptyObject(t,e.list)})}function F(){return{options:[],create:!0,sortField:"text",valueField:"text",labelField:"text",maxItems:1}}function M(){return{options:[{text:"Bulk"},{text:"Bagged"}],create:!0,sortField:"text",valueField:"text",labelField:"text",maxItems:1}}function N(e,t,a,i){var o={plugins:{"no-delete":{}},valueField:"id",sortField:"name",searchField:["name"],maxItems:1,create:!1,persist:!1,render:{item:function(e,t){var a=e.name;return'<div><span class="dropdownLabel">'+a+"</span></div>"},option:function(e,t){var a=e.name;return'<div><span class="dropdownLabel">'+a+"</span></div>"}}};return a=a?a:"id",i=i?i:"name",e&&(delete o.maxItems,delete o.plugins,o.onItemRemove=function(e,o){var s=this,n={};n[a]=e,n[i]=o[0].innerText,t&&t.list.push(n),s.refreshItems()}),o}function A(){var e={plugins:{"no-delete":{}},valueField:"id",sortField:"name",searchField:["address","city","state","country"],maxItems:1,create:!1,persist:!1,render:{item:function(e,t){var a=e.address,i=e.city,o=e.country;e.state;return'<div><span class="dropdownLabel">'+a+'</span><span class="dropdownCaption"> | '+i+'</span><span class="dropdownCaption"> | '+o+"</span></div>"},option:function(e,t){var a=e.address,i=e.city,o=e.country;e.state;return'<div class="item"><span class="dropdownLabel">'+a+'</span><span class="dropdownCaption"> | '+i+'</span><span class="dropdownCaption"> | '+o+"</span></div>"}}};return e}function O(e,i){a.cloneIntoEmptyObject(e,A()),t.getBusinessPartnerLocation("drop_down").then(function(e){a.cloneIntoEmptyObject(i,e.locations)})}function B(e,t){return a.cloneIntoEmptyObject(e,N()),i.dropDown[s.READ](o.dropDown.productCategory).then(function(e){return a.cloneIntoEmptyObject(t,e.list)})}function L(e,t){a.cloneIntoEmptyObject(e,N(!1,t)),i.dropDown[s.READ](o.dropDown.priceMetric,n.DROP_DOWN).then(function(e){return a.cloneIntoEmptyObject(t,e.list)})}function E(e,t){a.cloneIntoEmptyObject(e,N()),i.dropDown[s.READ](o.dropDown.designation,n.DROP_DOWN).then(function(e){return a.cloneIntoEmptyObject(t,e.list)})}function R(){return{plugins:{"no-delete":{}},valueField:"text",labelField:"text",options:[{id:1,text:"Fax Numbers"},{id:2,text:"Mobile"},{id:3,text:"Office"},{id:4,text:"Residential"}],sortField:"text",maxItems:1}}return{contactTypeConfig:R,prepareProductItemDropDown:w,prepareBusinessDropDown:m,getPackingConfig:M,getCommissionTypeConfig:F,getBpLocationConfig:A,prepareBusinessLocationsDropDown:O,prepareDesignationDropDown:E,prepareProductCategoryDropDown:B,prepareCountryDropDown:S,prepareKeywordDropDown:C,prepareProductDropDown:x,prepareProductOriginDropDown:D,prepareCurrencyDropDown:k,preparePriceMarketDropDown:h,prepareShipmentMonthDropDown:v,preparePriceMetricConfig:L,prepareRegionDropDown:I,prepareCityDropDown:T,prepareByTypesDropDown:g,prepareContactNumberTypeDropDown:u,preparePackagingConfig:l,prepareCommissionTypeConfig:d}}e.$inject=["authentication","businessPartner","utilities","settings","apiEndPoints","crud","read","appConstants"],angular.module("app.common").factory("dropDownConfig",e)}(),function(){"use strict";Date.prototype.addDays=function(e){var t=new Date(this.valueOf());return t.setDate(t.getDate()+e),t},Date.prototype.removeTime=function(){return moment(this).format("LL")},Date.prototype.addTimeZoneOffset=function(){var e=this.getTimezoneOffset(),t=e/60;return this.setHours(this.getHours()+t),this},String.prototype.capitalizeFirstLetter=function(){return this.charAt(0).toUpperCase()+this.slice(1)}}(),function(){"use strict";var e={CREATE:"CREATE",DELETE:"DELETE",UPDATE:"UPDATE",READ:"READ"},t={STATIC_URL:"http://tramodity.com/static/",HOST:"http://tramodity.com/"},a={OK:200,CREATED:201,ACCEPTED:202,NO_CONTENT:204,BAD_REQUEST:400,UNAUTHORIZED:401,FORBIDDEN:403,NOT_FOUND:404,METHOD_NOT_ALLOWED:405,INTERNAL_SERVER_ERROR:500,BAD_GATEWAY:502,SERVICE_UNAVAILABLE:503},i={ShipmentMonth:"MMMM, yyyy",Date:"MMM dd, yyyy",FullDate:"MMMM D, YYYY",DateAsFilter:'date:"dd-MMM-yyyy"',Time:"MMM dd, yyyy hh:mm a ",DBDate:"yyyy-MM-dd HH:mm:ss"},o={PRODUCTS:"Products",PRODUCT_ITEMS:"Product_Items",PRICE_MARKET:"Price_Market",BP:"Business_Partner",BUYER:"Buyer",SELLER:"Seller",SHIPPER:"Shipper",BROKER:"Broker",TRANSACTION_STATUS:"Transaction_Status",COUNTRY:"Country",ORIGIN:"Origin",CONTRACT_TYPES:"Contract_Types",COMMISSION_TYPES:"Commission_Types",USERS:"Users",BP_TYPES:"business_type"},s={TransactionBasicChanged:"TransactionBasicChanged"},n={ALL:"all",DROP_DOWN:"drop_down"};angular.module("app.common").constant("httpStatus",a).constant("crud",e).constant("appFormats",i).constant("appEvents",s).constant("appTabFilter",o).constant("read",n).constant("appConstants",t)}(),function(){"use strict";function e(e){function t(){$("#body-wrap").addClass("print-preview"),e.print()}return function(){var e=function(){},t=function(){$("#body-wrap").removeClass("print-preview")};if(window.matchMedia){var a=window.matchMedia("print");a.addListener(function(a){a.matches?e():t()})}window.onbeforeprint=e,window.onafterprint=t}(),{print:t}}e.$inject=["$window"],angular.module("app.common").service("printPage",e)}(),function(){"use strict";function e(e,t){function a(){return r}function i(){r.splice(0,r.length),o()}function o(){e.set("recentItems",_.uniqBy(r,"pageTitle"))}function s(){var t=e.get("recentItems");i(),t&&angular.forEach(t,function(e){r.push(e)})}function n(e){r.push({pageTitle:e,pageStateName:t.current.name,pageStateParams:t.params,time:new Date}),o()}var r=[];return s(),{recentItems:r,getRecentlyViewedItems:a,addRecentlyViewItems:n,saveRecentItemsToLocalStorage:o,getRecentItemsFromLocalStorage:s,clearRecentItems:i}}e.$inject=["localStorageService","$state"],angular.module("app.common").factory("routing",e)}(),function(){"use strict";var e={authentication:{basic:"auth",googleAnalytics:"google_analytics"},login:"login",logout:"logout",user:"user",changePassword:"changePassword",bp:{main:"business",list:"list",basic:"basic",bank:"bank",location:"location",contactPerson:"contact_person",contactNumber:"contact_number",product:"product",self:"self"},dashboard:"dashboard",manifest:"manifest",manifestDashboard:"manifest/dashboard",transactionBasic:"transactions/basic",transactionCommission:"transactions/commission",transactionContract:"transactions/contract",transactionDocument:"transactions/document",transactionNote:"transactions/note",transactionSecondary:"transactions/secondary",tabFilters:"tabFilters",pricing:"pricing",pricingSummary:"summary",pricingMarket:"price_market",productItem:"product_item",productItemPriceOnWebsite:"price_on_website",productPriceReport:"price_report",dropDown:{main:"dropDown",bpType:"business_type",productItem:"product_item",businessType:"business_type",contactType:"contact_type",contractType:"contract_type",designation:"designation",productKeywords:"product_keywords",transactionStatus:"transaction_status",productCategory:"product_category",country:"country",region:"region",city:"city",commissionType:"commission_type",packaging:"packaging",product:"product_drop_down",productOrigin:"product_origin",currency:"currency",priceMarket:"price_market",shipmentMonth:"shipment_month",priceMetric:"price_metric",business:"business"},product:"product",productWebsiteStatus:"website_status",productOrigin:"origin",productKeywords:"keywords",productCategory:"category",productCategorySpecification:"category/specification",website:{basic:"website",research:"research",researchTags:"research_tags",homeSlider:"homeSlider",team:"team",dashboard:"dashboard"}};angular.module("app.core").constant("apiEndPoints",e)}(),function(){"use strict";function e(e){return function(t,a){return console.log("hello",t),t?(-1===t.indexOf("Z")&&-1===t.indexOf("+")&&(t+="Z"),e("date")(t,a)):void 0}}function t(){return function(e){return new Date(1970,0,1).setSeconds(e)}}function a(){return function(e,t,a){return t?e.filter(function(e,i,o){return e[a]?0===e[a].toLowerCase().indexOf(t.toLowerCase()):void 0}):e}}function i(){return function(e,t,a){return t?e.filter(function(e,i,o){return e[a]?0===e[a].toLowerCase().indexOf(t.toLowerCase()):void 0}):e}}function o(){return function(e,t){return _.uniqBy(e,t)}}function s(){return function(e,t,a){return t&&0!==t.length?e.filter(function(e,i,o){return e[a]?t.indexOf(e[a])<=-1:void 0}):e}}function n(){return function(e,t){t=parseInt(t);for(var a=0;t>a;a++)e.push(a);return e}}e.$inject=["$filter"],angular.module("app.core").filter("selectFilter",a).filter("selectFilterDropDown",i).filter("selectedRows",s).filter("uniqueByAttribute",o).filter("range",n).filter("secondsToDateTime",t).filter("utcToLocal",e).filter("percentage",["$filter",function(e){return function(t,a){var i=t>1?t:100*t;return e("number")(i,a)+"%"}}])}(),function(){"use strict";function e(e){e.defaults.withCredentials=!0,e.defaults.xsrfCookieName="csrftoken",e.defaults.xsrfHeaderName="X-CSRFToken",e.interceptors.push(["$cookies",function(e){return{request:function(t){return t.headers["X-CSRFToken"]=e.get("csrftoken"),t}}}])}function t(e,t,a,i){function o(e,t,a,i,o,s,n){var r=new Date,l=r.getTimezoneOffset()/60;console.log(e,t,a,i,o,s,n);var d={"Hour-Difference":l};return angular.extend(o,d)}function s(e,t,a){return e}function n(e,o,s){return e.status===t.FORBIDDEN?(i.close(),a.go("login"),!1):!0}e.setErrorInterceptor(n),e.addResponseInterceptor(s),e.addFullRequestInterceptor(o)}e.$inject=["$httpProvider"],t.$inject=["Restangular","httpStatus","$state","loaderModal"],angular.module("app.core").config(e).run(t)}(),function(){"use strict";function e(){Selectize.define("no-delete",function(e){this.deleteSelection=function(){}})}angular.module("app.core").config(["$qProvider","$injector",function(e,t){t.invoke(["$qProvider",function(e){e.errorOnUnhandledRejections(!1)}])}]).run(e)}(),function(){"use strict";function e(e,t,a,i){function o(e,t){return a.dropDown[i.READ](e,t)}e.all(t.dropDown.main);return{getTabFilters:o}}e.$inject=["Restangular","apiEndPoints","settings","crud"],angular.module("app.core").factory("tabFilter",e)}(),function(){"use strict";var e={TextOnly:{pattern:"/^[a-zA-Z .]*$/",errorValidation:{pattern:"Can not contain digits."}},ContactNumber:{pattern:"/^([0-9()/+ -]*)$/",errorValidation:{required:"Contact Number is invalid."}},PrimaryContact:{errorValidation:{required:"Primary Contact Number not provided."}},SecondaryContact:{errorValidation:{required:"Secondary Contact Number not provided."}},Email:{placeholder:"Enter Email",pattern:"/^([w-]+(?:.[w-]+)*)@((?:[w-]+.)*w[w-]{0,66}).([a-z]{2,6}(?:.[a-z]{2})?)$/i",errorValidations:{required:"Email not provided."}},FirstName:{placeholder:"Enter First Name",errorValidations:{required:"First Name not provided."}},LastName:{placeholder:"Enter Last Name",errorValidations:{required:"Last Name not provided."}},Designation:{placeholder:"Enter Designation",errorValidations:{required:"Designation not provided."}},OldPassword:{placeholder:"******",errorValidations:{required:"Old Password not provided."}},NewPassword:{placeholder:"******",minLength:8,maxLength:32,errorValidations:{required:"New Password not provided.",pattern:"Password should be at least 8 characters and must contain letters, a number & a special character.",maxLength:"Password should be less than 32 characters",minLength:"Password should be less than "}},ConfirmPassword:{placeholder:"******",errorValidations:{required:"Re-type given password.",validator:"Passwords do not match."}}};angular.module("app.core").constant("inputFields",e)}(),function(){"use strict";function e(e){e.setBaseUrl("/api"),e.setRequestSuffix("/")}e.$inject=["RestangularProvider"],angular.module("app.core").config(e)}(),function(){"use strict";function e(e){e.otherwise("/login")}function t(e){e.$on("$stateNotFound",function(e,t,a,i){}),e.$on("$stateChangeSuccess",function(t,a,i,o,s){e.pageTitle=a.title||"Doni Enterprises",e.bgBackgroundClass=a.bgBackgroundClass||"",a.pageHeader?(e.headerTitle=a.pageHeader.title,e.headerSubTitle=a.pageHeader.subTitle,e.headerAnchor=a.pageHeader.headerAnchor?a.pageHeader.headerAnchor:[],e.goBack=a.pageHeader.goBack||!1):(e.headerAnchor=[],e.goBack=!1),o.wentTo=a.name,a.params=i,a.wentTo!==o.name&&(a.prevState=o.name,a.prevParam=s)})}e.$inject=["$urlRouterProvider"],t.$inject=["$rootScope"],angular.module("app.core").config(e).run(t)}(),function(){"use strict";function e(e){e.decorator("selectizeDirective",["$delegate","selectizeConfig",function(e,t){function a(e,a,i,o){var s,n=angular.extend({},Selectize.defaults,t,e.config);e.options=e.options||[],e.config=e.config||{};var r=function(e){e?s.disable():s.enable()},l=function(e){return void 0===e||null===e||e.constructor===Array&&!e.length},d=function(){var t=(e.ngRequired()||i.required||n.required)&&!l(e.ngModel);o.$setValidity("required",t)},c=function(e,t){angular.forEach(t,function(t){if(-1===e.indexOf(t)){var a=t[n.valueField];s.removeOption(a,!0)}}),s.addOption(e,!0),u()},u=function(){d(),s.$control.toggleClass("ng-valid",o.$valid),s.$control.toggleClass("ng-invalid",o.$invalid),s.$control.toggleClass("ng-dirty",o.$dirty),s.$control.toggleClass("ng-pristine",o.$pristine),angular.equals(s.items,e.ngModel)||s.setValue(e.ngModel,!0)};n.onChange=function(t){var t=angular.copy(s.items);1==n.maxItems&&(t=t[0]),o.$setViewValue(t),e.config.onChange&&e.config.onChange.apply(this,arguments)},n.onOptionAdd=function(t,a){-1===e.options.indexOf(a)&&(e.options.push(a),e.config.onOptionAdd&&e.config.onOptionAdd.apply(this,arguments))},n.onInitialize=function(){s=a[0].selectize,c(e.options),e.config.onInitialize&&e.config.onInitialize(s),e.$watchCollection("options",c),e.$watch("ngModel",u),e.$watch("ngDisabled",r)},a.selectize(n),a.on("$destroy",function(){s&&(s.destroy(),a=null)})}var i=e[0],o=a;return i.compile=function(){return function(e,t,a){o.apply(this,arguments)}},e}])}e.$inject=["$provide"],angular.module("app.core").config(e)}(),function(){"use strict";function e(e,t,a,i,o,s){function n(e){return _.forEach(e,function(e,t){e.date=new Date(e.date)}),e}function r(){if(e.current.prevState)e.go(e.current.prevState,e.current.prevParam);else try{e.go("^")}catch(t){e.go("dashboard.main")}}function l(e,t){for(var a in e)delete e[a];for(var a in t)e[a]=t[a];return e}function d(e,t){if(t instanceof Array)e.list=t;else for(var a in t)e[a]=t[a];return e}function c(e,t,a,i){var o={};return o[s.CREATE]=e,o[s.UPDATE]=a,o[s.DELETE]=i,o[s.READ]=t,o}function u(){return currentUser}function p(){return(new Date).getTime()}function m(e){return o("date")(e,i.Date)}function g(t){var a=t.name,i=new RegExp(a+".[a-z]+$","i"),o=e.get(),s=_.filter(o,function(e){return i.test(e.name)&&!e["abstract"]});return s}function v(e){var t=g(e);return _.filter(t,function(e){e.hasAccordianDropDown&&(e.children=g(e))}),t}function b(){return this.colors}function h(e,a){t.error(e,a)}function f(){var e={};return e.startDate=a().startOf("day"),e.endDate=a().endOf("day"),e}function w(){var e={};return e.startDate=a().subtract(30,"days").startOf("day"),e.endDate=a().endOf("day"),e}function y(){var e={};return e.startDate=a().subtract(14,"days").startOf("day"),e.endDate=a().endOf("day"),e}function k(){var e={};return e.startDate=a().subtract(30,"days").startOf("day"),e.endDate=a().add(14,"days").endOf("day"),e}function C(e,a){t.success(e,a)}function x(e,t){for(var a=parseInt(new Date(e).getFullYear()),i=parseInt(new Date(t).getFullYear()),o=[];i>=a;)o.push(a),a++;return o}function P(e){return M[e.getMonth()]+", "+e.getFullYear()}function D(e,t){var a=new Date(e),i=new Date(t);a=new Date(a.getFullYear()+"-"+(a.getMonth()+1)+"-"+a.getDate()),i=new Date(i.getFullYear()+"-"+(i.getMonth()+1)+"-"+i.getDate());for(var o=[];i>a;){var s=new Date(a);o.push(s);var n=0===a.getDay()?7:a.getDay()+1;a.setDate(a.getDate()+n)}return o.push(i),o}function I(e,t){return e.getDate()+" "+M[e.getMonth()]+", "+e.getFullYear()+" - "+t.getDate()+" "+M[t.getMonth()]+", "+t.getFullYear()}function T(e,t){var a=new Date(e),i=new Date(t);a=new Date(a.getFullYear()+"-"+(a.getMonth()+1)),i=new Date(i.getFullYear()+"-"+(i.getMonth()+1));var o=[];if(a.toString()===i.toString()){var s=new Date(a);o.push(s),i=new Date(a.setMonth(a.getMonth()+1)),o.push(i)}else{for(;i>=a;){var s=new Date(a);o.push(s),a=new Date(a.setMonth(a.getMonth()+1))}a=new Date(a.setMonth(a.getMonth()+1)),o.push(a)}return o}function $(e,t){var a=new Array,i=new Date(e);for(t=new Date(t);t>=i;)a.push(i),i=i.addDays(1);return a}function S(e){var t=angular.copy(e);return t.startDate=t.startDate._d,t.endDate=t.endDate._d,t}function F(e){for(var t in e.$error)e.$error.hasOwnProperty(t)&&e.$setValidity(t,!0);e.$setPristine(!0)}var M=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],N=["#f47414","#1691AC","#A53860","#4C3B4D","#ADA8B6","#36C4BB","#7EAAAF","#A5C5C9","#B4E6ED","#E88D67","#BAA298","#C1A397","#DD977A","#E5CABE","#424B54","#79ACE0","#B2CEEA","#AEB9C4"];return{chartColors:b,getCurrentUser:u,getTime:p,internalServerError:h,successMessage:C,initialDateRange:y,todayDateRange:f,getDateRangeArray:$,getYearsInDateRange:x,getMonthsInDateRange:T,getWeeksInDateRange:D,getMonthTitle:P,getWeekTitle:I,filterDate:m,lastThirtyDaysDateRange:w,resetFormValidation:F,colors:N,dashboardDateRange:k,getChildStates:g,getStatesForAccordian:v,setupCRUD:c,cloneIntoEmptyObject:d,cloneObjectInToObject:l,convertMomentDateRange:S,goBackState:r,prepareGraphData:n}}e.$inject=["$state","toastr","moment","appFormats","$filter","crud"],angular.module("app.common").factory("utilities",e)}(),function(){"use strict";function e(e,t,a){function i(){return s.customGET("",{})}function o(){}var s=e.all(t.dashboard);return{getCompleteDashboardReport:i,refreshCurrentDollarRate:o}}e.$inject=["Restangular","apiEndPoints","utilities"],angular.module("app.dashboard").factory("dashboard",e)}(),function(){"use strict";function e(e){function t(t){e.open({animation:!0,templateUrl:"src/setup/changePassword/changePassword.template.html",controller:"ChangePasswordModal as vm",size:"md",windowClass:"marginTopPlus150px",resolve:{userId:function(){return t}}})}function a(t,a,i){var o=e.open({animation:!0,templateUrl:"src/modal/alertmodal.template.html",controller:"AlertModal as vm",size:"sm",windowClass:"marginTopPlus150px",resolve:{name:function(){return t},type:function(){return a},action:function(){return i}}});return o.result.then(function(e){return e},function(){$log.info("Modal dismissed at: "+new Date)})}return{alertModal:a,changePassword:t}}e.$inject=["$uibModal"],angular.module("app.modal").factory("modalFactory",e)}(),function(){"use strict";function e(e,t){e.open=function(a,i){t.open({animation:!0,templateUrl:a,size:i,resolve:{items:function(){return e.items}}})}}e.$inject=["$scope","$uibModal"],angular.module("app.widgets.ui.notifications").controller("ModalsPageCtrl",e)}(),function(){"use strict";function e(e){var t={},a=0,i=100,o=!1;return{setProgress:function(e){if(e>i)throw Error("Progress can't be greater than max");a=e},getProgress:function(){return a},open:function(){o||(t=e.open({animation:!0,templateUrl:"app/modals/modalTemplates/loaderModal.html",size:"sm",keyboard:!1,backdrop:"static"}),o=!0)},close:function(){o&&(t.close(),o=!1)}}}e.$inject=["$uibModal"],angular.module("app.dashboard.modals").factory("loaderModal",e)}(),function(){"use strict";var e={CR_UP_BASIC_DROP_DOWN:"app/modals/modalTemplates/basicDropDown.html",IMAGE_CROP_WINDOW:"app/modals/modalTemplates/imageCropper.html"};angular.module("app.dashboard.modals").constant("modalTemplates",e)}(),function(){"use strict";function e(e,t,a){function i(){}function o(e,t,i,o,s,n){a.readAsDataUrl(e,t).then(function(e){console.log("hogaya"),r(e,i,o,s,n)})}function s(e){e.dismiss("cancel")}function n(t,a,i,o){e.open({animation:!0,templateUrl:t,controller:i,size:a,backdrop:"static",resolve:o})}function r(a,i,o,s,n){var r=e.open({animation:!0,templateUrl:t.IMAGE_CROP_WINDOW,controller:["$scope","image","aspectRatio","$uibModalInstance",function(e,t,a,i){e.aspectRatio=a,e.croppedImages=[],e.croppedImage="",e.image=t,e.cropper={w:s.width,h:s.height},e.resultImageSizes=o[0],e.saveImage=function(){console.log(e.croppedImages,e.blob),i.close({croppedImages:e.croppedImages,resultBlob:e.blob,croppedImage:e.croppedImage})}}],size:"lg",backdrop:"static",resolve:{image:function(){return a},aspectRatio:function(){return i}}});r.result.then(function(e){n(e)})}return{openProgressModal:i,openModal:n,dismissModal:s,openImageCropper:r,getFile:o}}e.$inject=["$uibModal","modalTemplates","fileReader"],angular.module("app.dashboard.modals").factory("deModal",e)}(),function(){"use strict";function e(e,t){e.changeTheme({blur:!0}),e.changeColors({"default":"#4e4e55",defaultText:"#e2e2e2"})}e.$inject=["baConfigProvider","colorHelper"],angular.module("app.theme").config(e)}(),function(){"use strict";function e(e){var o={theme:{blur:!1},colors:{"default":t["default"],defaultText:t.defaultText,border:t.border,borderDark:t.borderDark,primary:a.primary,info:a.info,success:a.success,warning:a.warning,danger:a.danger,primaryLight:e.tint(a.primary,30),infoLight:e.tint(a.info,30),successLight:e.tint(a.success,30),warningLight:e.tint(a.warning,30),dangerLight:e.tint(a.danger,30),primaryDark:e.shade(a.primary,15),infoDark:e.shade(a.info,15),successDark:e.shade(a.success,15),warningDark:e.shade(a.warning,15),dangerDark:e.shade(a.danger,15),dashboard:{blueStone:i.blueStone,surfieGreen:i.surfieGreen,silverTree:i.silverTree,gossip:i.gossip,white:i.white}}};return o.changeTheme=function(e){angular.merge(o.theme,e)},o.changeColors=function(e){angular.merge(o.colors,e)},o.$get=function(){return delete o.$get,o},o}e.$inject=["colorHelper"];var t={"default":"#ffffff",defaultText:"#666666",border:"#dddddd",borderDark:"#aaaaaa"},a={primary:"#684D61",info:"#2dacd1",success:"#21b799",warning:"#dfb81c",danger:"#e85656"},i={blueStone:"#005562",surfieGreen:"#0e8174",silverTree:"#6eba8c",gossip:"#b9f2a1",white:"#10c4b5"};angular.module("app.theme").provider("baConfig",e)}(),function(){"use strict";function e(e,t,a){function i(e){return e.toString(16)}function o(e){return parseInt(e,16)}for(var s="#",n=1;7>n;n+=2){var r=o(e.substr(n,2)),l=o(t.substr(n,2)),d=i(Math.floor(l+(r-l)*(a/100)));s+=("0"+d).slice(-2)}return s}var t="assets/img/";angular.module("app.theme").constant("layoutSizes",{resWidthCollapseSidebar:1200,resWidthHideSidebar:500}).constant("layoutPaths",{images:{root:t,profile:t+"app/profile/",amMap:"assets/img/theme/vendor/ammap//dist/ammap/images/",amChart:"assets/img/theme/vendor/amcharts/dist/amcharts/images/"}}).constant("colorHelper",{tint:function(t,a){return e("#ffffff",t,a)},shade:function(t,a){return e("#000000",t,a)}})}(),function(){"use strict";function e(e,t,a,i,o,s,n){var r=[i.loadAmCharts(),e(3e3)],l=n;l.blur&&(l.mobile?r.unshift(i.loadImg(a.images.root+"blur-bg-mobile.jpg")):r.unshift(i.loadImg(a.images.root+"blur-bg.jpg"))),
o.all(r).then(function(){t.$pageFinishedLoading=!0}),e(function(){t.$pageFinishedLoading||(t.$pageFinishedLoading=!0)},7e3),t.$baSidebarService=s}e.$inject=["$timeout","$rootScope","layoutPaths","preloader","$q","baSidebarService","themeLayoutSettings"],angular.module("app.theme").run(e)}(),function(){"use strict";function e(e){var t=/android|webos|iphone|ipad|ipod|blackberry|windows phone/.test(navigator.userAgent.toLowerCase()),a=t?"mobile":"",i=e.theme.blur?"blur-theme":"";return angular.element(document.body).addClass(a).addClass(i),{blur:e.theme.blur,mobile:t}}e.$inject=["baConfig"],angular.module("app.theme").service("themeLayoutSettings",e)}(),function(){"use strict";function e(e,t,a){function i(){return N.customGET(t.bp.self)}function o(e){return N.customPOST(e,t.bp.self)}function s(e,a){return N.customPOST({locations:a,bpId:e},t.bp.location)}function n(e,a){return N.customPOST({contactPersons:a,bpId:e},t.bp.contactPerson)}function r(e,a){return N.customPOST({contacts:a,bpId:e},t.bp.contactNumber)}function l(e,a){return N.customPOST({banks:a,bpId:e},t.bp.bank)}function d(e){return{address:"",city:"",state:"",country:"",isPrimary:0===e.locations.length}}function c(){var e={name:"",website:"",ntn:"",bpType:[],banks:[],locations:[],contacts:[],contactPersons:[]};return e.banks.push(u()),e.locations.push(d(e)),e.contacts.push(p()),e.contactPersons.push(m()),e}function u(){return{accountTitle:"",accountNumber:"",accountCountry:"",accountCity:"",accountAddress:"",bankName:""}}function p(){return{contactNumber:"",contactType:""}}function m(){return{isPrimary:!1,fullName:"",designation:"",email:null,primaryNumber:"",secondaryNumber:""}}function g(e){M=e}function v(){return M}function b(e,t,i,o){a.alertModal(e,"Contact Person "+t+"Contact Person of Business Partner","Delete").then(function(e){e&&N.remove({contact_id:i}).then(o)})}function h(e,t,i,o,s){a.alertModal(e,"Bank Account "+i+" of title "+t+" of Business Partner ","Delete").then(function(e){e&&N.remove({bank_id:o}).then(s)})}function f(e,t,i,o,s){a.alertModal(e,i+" Number "+t+" of Business Partner","Delete").then(function(e){e&&N.remove({cont_num_id:o}).then(s)})}function w(e){return N.customPOST({bankDetails:e})}function y(e){return N.customPUT({bankDetails:e})}function k(e){return N.customPOST({contact:e})}function C(e){return N.customPOST({contactPerson:e})}function x(e){return N.customPUT({contactPerson:e})}function P(e){return N.customPOST({bpProduct:e})}function D(e){return N.customGET(t.bp.basic,{bpId:e})}function I(e,a){var i=new FormData;if(e){var o=new File([e.resultBlob],"logo.png");i.append("logo",o)}return i.append("data",JSON.stringify({name:a.name,website:a.website,ntn:a.ntn,bpType:a.bpType})),N.withHttpConfig({transformRequest:angular.identity}).customPOST(i,t.bp.basic,void 0,{"Content-Type":void 0})}function T(e,a){var i=new FormData;if(e){var o=new File([e.resultBlob],"logo.png");i.append("logo",o)}return i.append("data",JSON.stringify({bpId:a.bpId,name:a.name,website:a.website,ntn:a.ntn,bpType:a.bpType})),N.withHttpConfig({transformRequest:angular.identity}).customPUT(i,t.bp.basic,void 0,{"Content-Type":void 0})}function $(e,i,o){a.alertModal(e,"Business Partner","Delete").then(function(e){e&&N.remove({bp_id:i},t.bp.basic).then(o)})}function S(){return N.customGET(t.bp.list)}function F(e){return N.customGET(t.bp.location,{q:e})}var M={},N=e.all(t.bp.main);return{addBusinessBasic:I,updateBusinessBasic:T,deleteBusiness:$,saveBusinessLocations:s,saveBusinessContactPersons:n,saveBusinessContacts:r,saveBusinessBanks:l,setBusinessPartner:g,addBPContactPerson:C,addNewBankAccount:w,addBusinessPartnerContact:k,addBusinessPartnerProduct:P,editBPContactPerson:x,editBankAccount:y,getBusinessPartner:v,getBusinessPartnerList:S,getBusinessComplete:D,getBusinessPartnerLocation:F,deleteBusinessPartnerContact:b,deleteBusinessPartnerBankDetail:h,deleteBusinessPartnerContactNumber:f,getNewBusinessObj:c,getNewBusinessBankObj:u,getNewBusinessAddressObj:d,getNewBusinessContactObj:p,getNewBusinessContactPersonObj:m,saveBusinessSettings:o,getBusinessSettings:i}}e.$inject=["Restangular","apiEndPoints","modalFactory"],angular.module("app.dashboard.businessPartner").factory("businessPartner",e)}(),function(){"use strict";function e(e,t,a){function i(e){return{date:e?e:new Date,buyerId:null,sellerId:null,productId:null,quantity:null,quantityMetricId:"FCL",containerNo:null,comments:null}}function o(e,t,a,i){var o=angular.copy(e),s=o;return s=angular.extend({selectedBuyer:t.join(),selectedSeller:a.join(),selectedProduct:i.join()},s),c.customPOST(s)}function s(e){return d.customDELETE(e)}function n(e){return d.get("",e)}function r(e){return d.customPUT({manifestItem:e})}function l(e){return d.customPOST({manifestItem:e})}var d=e.all(t.manifest),c=e.all(t.manifestDashboard);return{getNewManifestItemObj:i,addManifestItem:l,updateManifestItem:r,deleteManifestItem:s,getAllManifestItems:n,getManifestDashboardReport:o}}e.$inject=["Restangular","apiEndPoints","utilities"],angular.module("app.dashboard.pricing").factory("manifest",e)}(),function(){"use strict";function e(e,t,a){function i(){return g.customGET(t.pricingSummary)}function o(e){return g.customGET(t.productItem,e)}function s(e,a){g.customPOST(e,t.productItem).then(function(e){a(e)})}function n(e,a){g.customPUT(e,t.productItem).then(function(e){a(e)})}function r(e){return g.customDELETE(t.productItem+"/"+e.id)}function l(e){return{shipmentMonths:null,priceValue:"",currentValue:e?e:!1}}function d(){var e={comments:"",priceMarketId:null,productItemId:null,priceTime:new Date,priceItems:[]};return e.priceItems.push(l(!0)),e}function c(){return g.customGET(t.pricingMarket)}function u(e,a){g.customPOST(e,t.pricingMarket).then(function(e){a(e,"Added Price Market",!1)})}function p(e,a){g.customPUT(e,t.pricingMarket).then(function(e){a(e,"Updated Price Market",!0)})}function m(){return{country:null,currency:null,description:"",isInternational:!0}}var g=e.all(t.pricing);return{getAllPriceMarkets:c,getNewPriceMarkets:m,addPriceMarket:u,updatePriceMarket:p,getNewMarketPriceObj:d,getNewMarketPriceItemObj:l,getAllProductItemPrice:o,addProductItemPrice:s,updateProductItemPrice:n,deleteProductItemPrice:r,getAllProductPriceSummary:i}}e.$inject=["Restangular","apiEndPoints","utilities"],angular.module("app.dashboard.pricing").factory("pricing",e)}(),function(){"use strict";function e(t,a,i){function o(e,t){return M.customPOST({productId:e,status:t},a.productWebsiteStatus)}function s(e,t){var i=angular.copy(e);return i=angular.extend(i,{productItemId:t}),N.customGET(a.productPriceReport,i)}function n(e,t){return M.customPUT(e,a.productKeywords).then(function(e){t(e)})}function r(e,t){return M.customPOST(e,a.productKeywords).then(function(e){t(e)})}function l(){return M.customGET(a.productKeywords)}function d(){return{keyword:"",categoryId:null}}function c(){return M.customGET(a.productCategory)}function u(){return{name:"",description:""}}function p(e,t){return M.customPOST(e,a.productCategory).then(function(e){t(e)})}function m(e){return M.customGET(a.productCategorySpecification,{categoryId:e})}function g(e){return M.customPOST(e,a.productCategorySpecification)}function v(e,t){return M.customPUT(e,a.productCategory).then(function(e){t(e)})}function b(){return M.customGET()}function h(){e.info={},e.growingConditions={},e.growingAreas={}}function f(){return{keywords:[],productId:null,productOrigin:null,specification:{moisture:0,purity:0,foreignMatter:0,brokenSplits:0,damaged:0,greenDamaged:0,weevilied:0,otherColor:0,wrinkled:0}}}function w(e,t){console.log(e),N.customPOST(e).then(function(e){t(e)})}function y(e,t){console.log(e),N.customPUT(e).then(function(e){t(e)})}function k(e,t){return N.customPOST({productItemId:e,priceOnWebsite:t},a.productItemPriceOnWebsite)}function C(){return N.customGET()}function x(e){}function P(e,t){var a=new FormData;if(t){var i=new File([t.resultBlob],e.info.name+".png");a.append("image",i)}return a.append("product",JSON.stringify(e.info)),a}function D(e,t){return M.withHttpConfig({transformRequest:angular.identity}).customPUT(P(e,t),"",void 0,{"Content-Type":void 0})}function I(e,t){return M.withHttpConfig({transformRequest:angular.identity}).customPOST(P(e,t),"",void 0,{"Content-Type":void 0})}function T(e){return M.customPOST({origins:e.origins,product_id:e.id},a.productOrigin)}function $(e){return M.customDELETE(e)}function S(t){e.info=t}function F(){return{info:{},growingConditions:{},growingAreas:{},origins:null}}var M=t.all(a.product),N=t.all(a.productItem);return{getAllProductList:b,getProductObj:F,setProductInfo:S,getAllProductCategories:c,getNewProductCategoryObj:u,addProductCategory:p,updateProductCategory:v,getProductCategorySpecification:m,saveProductCategorySpecification:g,addProduct:I,updateProduct:D,deleteProduct:$,getProduct:x,getNewProductItem:f,addProductItem:w,updateProductItem:y,getAllProductItems:C,getNewKeywordObj:d,addProductKeyword:r,updateProductKeyword:n,getAllKeywords:l,resetProductObj:h,saveProductOrigin:T,getPriceReport:s,displayOnWebsite:o,productItemPriceOnWebsite:k}}e.$inject=["Restangular","apiEndPoints","utilities"],angular.module("app.dashboard.products").factory("product",e)}(),function(){"use strict";function e(e,t,a){function i(){return{confirmPassword:"",oldPassword:"",newPassword:""}}function o(e,t){return l.customPOST({name:t},e)}function s(e,t){return"object"==typeof t?l.customGET(e,t):(t=t?t:"all",l.customGET(e,{q:t}))}function n(e,t){return l}function r(e,t,a){return l.customPUT({name:t,id:a},e)}var l=e.all(t.dropDown.main);return{getChangePasswordObj:i,dropDown:a.setupCRUD(o,s,r,n)}}e.$inject=["Restangular","apiEndPoints","utilities"],angular.module("app.dashboard.settings").factory("settings",e)}(),function(){"use strict";function e(e,t,a,i,o){function s(){return{basic:{date:new Date,quantityMetricId:"FCL",buyerId:null,sellerId:null,productItemId:null,price:null,packaging:null,shipmentEnd:null,shipmentStart:null},commission:{typeId:1,commission:0,differance:0,discount:0,netCommission:0},productSpecification:{moisture:null,purity:null,foreignMatter:null,brokenSplits:null,damaged:null,greenDamaged:null,weevilied:null,otherColor:null,wrinkled:null}}}return{getNewTransaction:s}}e.$inject=["apiEndPoints","$filter","appFormats","FileSaver","Blob"],angular.module("app.dashboard.tradeBook").factory("tradeBook",e)}(),function(){"use strict";function e(e,t,a){function i(e){return p.customPOST(e,t.changePassword)}function o(){return{profilePic:null,username:"",firstName:"",lastName:"",email:"",designationId:null,businessLocationId:null,notify:{newTransaction:!1,shipmentArrival:!1,messages:!1,monthlyReports:!1,weeklyReports:!1,dailyReports:!1}}}function s(e){return p.customGET("",{q:e})}function n(){return p.customGET("",{q:"all"})}function r(e,t){var a=new FormData,i=new File([e.resultBlob],"profile.png");return a.append("profile",i),p.withHttpConfig({transformRequest:angular.identity}).customPOST(a,t+"/profilePic",void 0,{"Content-Type":void 0})}function l(e,t){var a=new FormData;return a.append("file",e),p.customPUT(a,t+"/profilePic",{"Content-Type":void 0})}function d(e){return p.customDELETE({},e+"/profilePic",{"Content-Type":void 0})}function c(e){return p.customPUT({user:e},"")}function u(e){return p.customPOST({user:e})}var p=e.all(t.user);return{getUserProfile:s,getAllUserProfile:n,addUserProfile:u,updateUserProfile:c,addProfilePic:r,updateProfilePic:l,deleteProfilePic:d,getNewUserObj:o,changePassword:i}}e.$inject=["Restangular","apiEndPoints","utilities"],angular.module("app.dashboard.user").factory("user",e)}(),function(){"use strict";function e(e,t,a){function i(){return g.customGET(t.website.dashboard)}function o(){return{title:"",slug:"",tags:[],image:null,height:400,width:400,content:""}}function s(e){return g.customGET(t.website.research,{researchId:e})}function n(e){return g.customGET(t.website.researchTags,{query:e})}function r(){return g.customGET(t.website.research)}function l(){return g.customGET(t.website.research)}function d(e,t){var a=new FormData;if(t){var i=new File([t.resultBlob],e.slug+".png");a.append("image",i)}return a.append("research",JSON.stringify(e)),a}function c(e,a){return g.withHttpConfig({transformRequest:angular.identity}).customPUT(d(e,a),t.website.research,void 0,{"Content-Type":void 0})}function u(e,a){return g.withHttpConfig({transformRequest:angular.identity}).customPOST(d(e,a),t.website.research,void 0,{"Content-Type":void 0})}function p(e){return g.customDELETE(t.website.research+"/"+e)}function m(e){return g.customPOST({researchId:e},t.website.research+"/display")}var g=e.all(t.website.basic);return{getResearchList:r,getResearchObj:l,updateResearch:c,addResearch:u,deleteResearch:p,displayResearchOnWebsite:m,getNewResearchObj:o,getResearchTags:n,getCompleteResearch:s,getWebsiteDashboard:i}}e.$inject=["Restangular","apiEndPoints","utilities"],angular.module("app.dashboard.website").factory("website",e)}(),function(){"use strict";function e(e,t){e.showSuccessMsg=function(){t.success("Your information has been saved successfully!")},e.showInfoMsg=function(){t.info("You've got a new email!","Information")},e.showErrorMsg=function(){t.error("Your information hasn't been saved!","Error")},e.showWarningMsg=function(){t.warning("Your computer is about to explode!","Warning")}}e.$inject=["$scope","toastr"],angular.module("app.widgets.ui.modals").controller("NotificationsCtrl",e)}(),function(){"use strict";function e(e){angular.extend(e,{closeButton:!0,closeHtml:"<button>&times;</button>",timeOut:5e3,autoDismiss:!1,containerId:"toast-container",maxOpened:0,newestOnTop:!0,positionClass:"toast-top-right",preventDuplicates:!1,preventOpenDuplicates:!1,target:"body"})}e.$inject=["toastrConfig"],angular.module("app.theme.components").config(e)}(),function(){"use strict";function e(e){return{link:function(t,a){e(function(){function t(t){e(function(){a.html(t)},30)}var i=a.attr("new-value"),o=parseInt(a.html());if(i>o)for(var s=o;i>=s;s++)t(s);else for(var n=o;n>=i;n--)t(n);e(function(){a.next().find("i").addClass("show-arr")},500)},3500)}}}e.$inject=["$timeout"],angular.module("app.theme").directive("animatedChange",e)}(),function(){"use strict";function e(){return{restrict:"A",link:function(e,t){t.bind("keydown",function(e){var t=e.target;$(t).height(0);var a=$(t)[0].scrollHeight;a=16>a?16:a,$(t).height(a)}),setTimeout(function(){var e=t;$(e).height(0);var a=$(e)[0].scrollHeight;a=16>a?16:a,$(e).height(a)},0)}}}angular.module("app.theme").directive("autoExpand",e)}(),function(){"use strict";function e(e,t){return{link:function(a,i,o){var s=t(o.autoFocus);a.$watch(s,function(t){t===!0&&e(function(){i[0].focus(),i[0].select()})}),i.bind("blur",function(){a.$apply(s.assign(a,!1))})}}}e.$inject=["$timeout","$parse"],angular.module("app.theme").directive("autoFocus",e)}(),function(){"use strict";function e(){return{restrict:"AE",templateUrl:function(e,t){return t.includeWithScope}}}angular.module("app.theme").directive("includeWithScope",e)}(),function(){"use strict";function e(e){return{restrict:"EA",template:"<div></div>",replace:!0,scope:{ngModel:"=",min:"=",max:"=",type:"@",prefix:"@",maxPostfix:"@",prettify:"=",prettifySeparator:"@",grid:"=",gridMargin:"@",postfix:"@",step:"@",hideMinMax:"@",hideFromTo:"@",from:"=",to:"=",disable:"=",onChange:"=",onFinish:"=",values:"=",timeout:"@"},link:function(t,a){a.ionRangeSlider({min:t.min,max:t.max,type:t.type,prefix:t.prefix,maxPostfix:t.maxPostfix,prettify_enabled:t.prettify,prettify_separator:t.prettifySeparator,grid:t.grid,gridMargin:t.gridMargin,postfix:t.postfix,step:t.step,hideMinMax:t.hideMinMax,hideFromTo:t.hideFromTo,from:t.from,to:t.to,disable:t.disable,onChange:function(e){console.log("change",e),t.ngModel=e.from},onFinish:function(e){var t=a.scope();t.$apply(function(){t.ngModel=e.from})},values:t.values}),t.$watch("min",function(t){e(function(){a.data("ionRangeSlider").update({min:t})})},!0),t.$watch("max",function(t){e(function(){a.data("ionRangeSlider").update({max:t})})}),t.$watch("from",function(t){e(function(){a.data("ionRangeSlider").update({from:t})})}),t.$watch("to",function(t){e(function(){a.data("ionRangeSlider").update({to:t})})}),t.$watch("disable",function(t){e(function(){a.data("ionRangeSlider").update({disable:t})})})}}}e.$inject=["$timeout"],angular.module("app.theme").directive("ionSlider",e)}(),function(){"use strict";function e(){return{link:function(e,t){t.bind("change",function(t){e.file=(t.srcElement||t.target).files[0],e.vm.getFile(e.file)})}}}angular.module("app.theme").directive("ngFileSelect",e)}(),function(){"use strict";function e(){return{scope:{scrollPosition:"=",maxHeight:"="},link:function(e){$(window).on("scroll",function(){var t=$(window).scrollTop()>e.maxHeight;t!==e.prevScrollTop&&e.$apply(function(){e.scrollPosition=t}),e.prevScrollTop=t})}}}angular.module("app.theme").directive("scrollPosition",e)}(),function(){"use strict";function e(){return{scope:{trackWidth:"=",minWidth:"="},link:function(e,t){e.trackWidth=$(t).width()<e.minWidth,e.prevTrackWidth=e.trackWidth,$(window).resize(function(){var a=$(t).width()<e.minWidth;a!==e.prevTrackWidth&&e.$apply(function(){e.trackWidth=a}),e.prevTrackWidth=a})}}}angular.module("app.theme").directive("trackWidth",e)}(),function(){"use strict";function e(e,t){return{restrict:"A",link:function(a,i){var o=1e3;t.$pageFinishedLoading&&(o=100),e(function(){i.removeClass("full-invisible"),i.addClass("animated zoomIn")},o)}}}e.$inject=["$timeout","$rootScope"],angular.module("app.theme").directive("zoomIn",e)}(),function(){"use strict";function e(){this.isDescendant=function(e,t){for(var a=t.parentNode;null!=a;){if(a==e)return!0;a=a.parentNode}return!1},this.hexToRGB=function(e,t){var a=parseInt(e.slice(1,3),16),i=parseInt(e.slice(3,5),16),o=parseInt(e.slice(5,7),16);return"rgba("+a+", "+i+", "+o+", "+t+")"}}angular.module("app.theme").service("baUtil",e)}(),function(){"use strict";function e(e){var t=function(e,t,a){return function(){a.$apply(function(){t.resolve(e.result)})}},a=function(e,t,a){return function(){a.$apply(function(){t.reject(e.result)})}},i=function(e,t){return function(e){t.$broadcast("fileProgress",{total:e.total,loaded:e.loaded})}},o=function(e,o){var s=new FileReader;return s.onload=t(s,e,o),s.onerror=a(s,e,o),s.onprogress=i(s,o),s},s=function(t,a){var i=e.defer(),s=o(i,a);return s.readAsDataURL(t),i.promise};return{readAsDataUrl:s}}e.$inject=["$q"],angular.module("app.theme").service("fileReader",e)}(),function(){"use strict";function e(e){return{loadImg:function(t){var a=e.defer(),i=new Image;return i.src=t,i.onload=function(){a.resolve()},a.promise},loadAmCharts:function(){var t=e.defer();return AmCharts.ready(function(){t.resolve()}),t.promise}}}e.$inject=["$q"],angular.module("app.theme").service("preloader",e)}(),function(){"use strict";function e(e){return{start:function(t,a,i){function o(){return t(a,i)}var s=o();angular.element(e).bind("focus",function(){s&&t.cancel(s),s=o()}),angular.element(e).bind("blur",function(){s&&t.cancel(s)})}}}e.$inject=["$window"],angular.module("app.theme").service("stopableInterval",e)}(),function(){"use strict";function e(e){function t(t){t.edit=function(e){t.onEdit({researchId:e})},t.changeWebDisplay=function(e){t.onDisplayWeb({researchId:e})},t["delete"]=function(e){t.onDelete({researchId:e})},t.appFormats=e}return{restrict:"E",templateUrl:"app/widgets/blogCard/blogCard.html",scope:{researchId:"=",imageUrl:"=",canEdit:"=",canDelete:"=",isDraft:"=",displayWeb:"=",onDisplayWeb:"&",onDelete:"&",title:"=",createdOn:"=",comments:"=",reads:"=",userPic:"=",author:"=",onEdit:"&",visitors:"="},link:t}}e.$inject=["appFormats"],angular.module("app.widgets").directive("blogCard",e)}(),function(){"use strict";function e(e){e.feed=[{type:"text-message",author:"Kostya",surname:"Danovsky",header:"Posted new message",text:'Guys, check this out: \nA police officer found a perfect hiding place for watching for speeding motorists. One day, the officer was amazed when everyone was under the speed limit, so he investigated and found the problem. A 10 years old boy was standing on the side of the road with a huge hand painted sign which said "Radar Trap Ahead." A little more investigative work led the officer to the boy\'s accomplice: another boy about 100 yards beyond the radar trap with a sign reading "TIPS" and a bucket at his feet full of change.',time:"Today 11:55 pm",ago:"25 minutes ago",expanded:!1},{type:"video-message",author:"Andrey",surname:"Hrabouski",header:"Added new video",text:'"Vader and Me"',preview:"app/feed/vader-and-me-preview.png",link:"https://www.youtube.com/watch?v=IfcpzBbbamk",time:"Today 9:30 pm",ago:"3 hrs ago",expanded:!1},{type:"image-message",author:"Vlad",surname:"Lugovsky",header:"Added new image",text:'"My little kitten"',preview:"app/feed/my-little-kitten.png",link:"http://api.ning.com/files/DtcI2O2Ry7A7VhVxeiWfGU9WkHcMy4WSTWZ79oxJq*h0iXvVGndfD7CIYy-Ax-UAFCBCdqXI4GCBw3FOLKTTjQc*2cmpdOXJ/1082127884.jpeg",time:"Today 2:20 pm",ago:"10 hrs ago",expanded:!1},{type:"text-message",author:"Nasta",surname:"Linnie",header:"Posted new message",text:"Haha lol",time:"11.11.2015",ago:"2 days ago",expanded:!1},{type:"geo-message",author:"Nick",surname:"Cat",header:"Posted location",text:'"New York, USA"',preview:"app/feed/new-york-location.png",link:"https://www.google.by/maps/place/New+York,+NY,+USA/@40.7201111,-73.9893872,14z",time:"11.11.2015",ago:"2 days ago",expanded:!1},{type:"text-message",author:"Vlad",surname:"Lugovsky",header:"Posted new message",text:"First snake: I hope I'm not poisonous. Second snake: Why? First snake: Because I bit my lip!",time:"12.11.2015",ago:"3 days ago",expanded:!1},{type:"text-message",author:"Andrey",surname:"Hrabouski",header:"Posted new message",text:'How do you smuggle an elephant across the border? Put a slice of bread on each side, and call him "lunch".',time:"14.11.2015",ago:"5 days ago",expanded:!1},{type:"text-message",author:"Nasta",surname:"Linnie",header:"Posted new message",text:"When your hammer is C++, everything begins to look like a thumb.",time:"14.11.2015",ago:"5 days ago",expanded:!1},{type:"text-message",author:"Alexander",surname:"Demeshko",header:"Posted new message",text:'“I mean, they say you die twice. One time when you stop breathing and a second time, a bit later on, when somebody says your name for the last time." ©',time:"15.11.2015",ago:"6 days ago",expanded:!1},{type:"image-message",author:"Nick",surname:"Cat",header:"Posted photo",text:'"Protein Heroes"',preview:"app/feed/genom.png",link:"https://dribbble.com/shots/2504810-Protein-Heroes",time:"16.11.2015",ago:"7 days ago",expanded:!1},{type:"text-message",author:"Kostya",surname:"Danovsky",header:"Posted new message",text:"Why did the CoffeeScript developer keep getting lost? Because he couldn't find his source without a map",time:"18.11.2015",ago:"9 days ago",expanded:!1}],e.expandMessage=function(e){e.expanded=!e.expanded}}e.$inject=["$scope"],angular.module("app.widgets").controller("BlurFeedCtrl",e)}(),function(){"use strict";function e(){return{restrict:"E",controller:"BlurFeedCtrl",templateUrl:"app/widgets/blurFeed/blurFeed.html"}}angular.module("app.widgets").directive("blurFeed",e)}(),function(){"use strict";function e(){}angular.module("app.widgets").service("dashboardCalendar",e)}(),function(){"use strict";function e(e,t){var a={compile:function(a,i){var o=e(i.clickOff);return function(e,a,i){a.bind("click",function(e){e.stopPropagation()}),angular.element(t[0].body).bind("click",function(t){e.$apply(function(){o(e,{$event:t})})})}}};return a}e.$inject=["$parse","$document"],angular.module("app.widgets").directive("clickOff",e)}(),function(){"use strict";function e(e,t,a){function i(i,o,s){function n(e){i.appConstants=a,i.apiEndPoints=t,i.dropDownValues=e.list,angular.forEach(i.dropDownValues,function(e,t){e.selected=!0}),i.selectedValues=angular.copy(i.dropDownValues),i.intialized||i.onSelectedValuesChanged({selectedList:i.selectedValues}),i.isLoading=!1,i.intialized=!1}function r(a){return i.isLoading=!0,i.endPoint===t.dropDown.business?e.getTabFilters(i.endPoint,{type:a}).then(n):e.getTabFilters(i.endPoint).then(n)}function l(e){e?(angular.forEach(i.dropDownValues,function(e,t){e.selected=!0}),i.selectedValues=angular.copy(i.dropDownValues)):(i.selectedValues=[],angular.forEach(i.dropDownValues,function(e,t){e.selected=!1}))}function d(e,t,a){i.selectAll=!1,t?i.selectedValues.push(e):_.remove(i.selectedValues,function(t){return t[a]==e[a]})}i.dropDownValues=[],i.intialized=!0,r(i.title),i.dropDownCallBack=function(e){e.success===!1&&toastr.error(e.message,"Error "+bpType)},i.onSelectAll=l,i.onSingleSelectChange=d,i.selectAll=!0,i.showOptions=!1,i.dropDownValues={},i.textFilter="",i.selectedValues=[],i.invertShowOptions=function(){i.showOptions=!i.showOptions},i.closeFilter=function(){i.showOptions&&(i.showOptions=!1,i.onSelectedValuesChanged({selectedList:i.selectedValues}))}}return{link:i,restrict:"E",templateUrl:"app/widgets/customFilter/customFilter.template.html",scope:{title:"@",endPoint:"@",heading:"@",subheading:"@",onSelectedValuesChanged:"&"},replace:!0}}e.$inject=["tabFilter","apiEndPoints","appConstants"],angular.module("app.widgets").directive("customFilter",e)}(),function(){"use strict";function e(e){var t=e.colors.dashboard,a=$("#calendar").fullCalendar({header:{left:"prev,next today",center:"title",right:"month,agendaWeek,agendaDay"},defaultDate:"2016-03-08",selectable:!0,selectHelper:!0,select:function(e,t){var i,o=prompt("Event Title:");o&&(i={title:o,start:e,end:t},a.fullCalendar("renderEvent",i,!0)),a.fullCalendar("unselect")},editable:!0,eventLimit:!0,events:[{title:"All Day Event",start:"2016-03-01",color:t.silverTree},{title:"Long Event",start:"2016-03-07",end:"2016-03-10",color:t.blueStone},{title:"Dinner",start:"2016-03-14T20:00:00",color:t.surfieGreen},{title:"Birthday Party",start:"2016-04-01T07:00:00",color:t.gossipDark}]})}e.$inject=["baConfig"],angular.module("app.widgets").controller("DashboardCalendarCtrl",e)}(),function(){"use strict";function e(){return{restrict:"E",controller:"DashboardCalendarCtrl",templateUrl:"app/widgets/dashboardCalendar/dashboardCalendar.html"}}angular.module("app.widgets").directive("dashboardCalendar",e)}(),function(){"use strict";function e(e,t){var a=e.colors;AmCharts.makeChart("amChartMap",{type:"map",theme:"blur",zoomControl:{zoomControlEnabled:!1,panControlEnabled:!1},dataProvider:{map:"worldLow",zoomLevel:3.5,zoomLongitude:10,zoomLatitude:52,areas:[{title:"Austria",id:"AT",color:a.primary,customData:"1 244",groupId:"1"},{title:"Ireland",id:"IE",color:a.primary,customData:"1 342",groupId:"1"},{title:"Denmark",id:"DK",color:a.primary,customData:"1 973",groupId:"1"},{title:"Finland",id:"FI",color:a.primary,customData:"1 573",groupId:"1"},{title:"Sweden",id:"SE",color:a.primary,customData:"1 084",groupId:"1"},{title:"Great Britain",id:"GB",color:a.primary,customData:"1 452",groupId:"1"},{title:"Italy",id:"IT",color:a.primary,customData:"1 321",groupId:"1"},{title:"France",id:"FR",color:a.primary,customData:"1 112",groupId:"1"},{title:"Spain",id:"ES",color:a.primary,customData:"1 865",groupId:"1"},{title:"Greece",id:"GR",color:a.primary,customData:"1 453",groupId:"1"},{title:"Germany",id:"DE",color:a.primary,customData:"1 957",groupId:"1"},{title:"Belgium",id:"BE",color:a.primary,customData:"1 011",groupId:"1"},{title:"Luxembourg",id:"LU",color:a.primary,customData:"1 011",groupId:"1"},{title:"Netherlands",id:"NL",color:a.primary,customData:"1 213",groupId:"1"},{title:"Portugal",id:"PT",color:a.primary,customData:"1 291",groupId:"1"},{title:"Lithuania",id:"LT",color:a.successLight,customData:"567",groupId:"2"},{title:"Latvia",id:"LV",color:a.successLight,customData:"589",groupId:"2"},{title:"Czech Republic ",id:"CZ",color:a.successLight,customData:"785",groupId:"2"},{title:"Slovakia",id:"SK",color:a.successLight,customData:"965",groupId:"2"},{title:"Estonia",id:"EE",color:a.successLight,customData:"685",groupId:"2"},{title:"Hungary",id:"HU",color:a.successLight,customData:"854",groupId:"2"},{title:"Cyprus",id:"CY",color:a.successLight,customData:"754",groupId:"2"},{title:"Malta",id:"MT",color:a.successLight,customData:"867",groupId:"2"},{title:"Poland",id:"PL",color:a.successLight,customData:"759",groupId:"2"},{title:"Romania",id:"RO",color:a.success,customData:"302",groupId:"3"},{title:"Bulgaria",id:"BG",color:a.success,customData:"102",groupId:"3"},{title:"Slovenia",id:"SI",color:a.danger,customData:"23",groupId:"4"},{title:"Croatia",id:"HR",color:a.danger,customData:"96",groupId:"4"}]},areasSettings:{rollOverOutlineColor:a.border,rollOverColor:a.primaryDark,alpha:.8,unlistedAreasAlpha:.2,unlistedAreasColor:a.defaultText,balloonText:"[[title]]: [[customData]] users"},legend:{width:"100%",marginRight:27,marginLeft:27,equalWidths:!1,backgroundAlpha:.3,backgroundColor:a.border,borderColor:a.border,borderAlpha:1,top:362,left:0,horizontalGap:10,data:[{title:"over 1 000 users",color:a.primary},{title:"500 - 1 000 users",color:a.successLight},{title:"100 - 500 users",color:a.success},{title:"0 - 100 users",color:a.danger}]},"export":{enabled:!0},creditsPosition:"bottom-right",pathToImages:t.images.amChart})}e.$inject=["baConfig","layoutPaths"],angular.module("app.widgets").controller("DashboardMapCtrl",e)}(),function(){"use strict";function e(){return{restrict:"E",controller:"DashboardMapCtrl",templateUrl:"app/widgets/dashboardMap/dashboardMap.html"}}angular.module("app.widgets").directive("dashboardMap",e)}(),function(){"use strict";function e(e,t,a,i){function o(e,t){return Math.random()*(t-e)+e}function s(){$(".chart").each(function(){var e=$(this);e.easyPieChart({easing:"easeOutBounce",onStep:function(e,t,a){$(this.el).find(".percent").text(Math.round(a))},barColor:e.attr("rel"),trackColor:"rgba(0,0,0,0)",size:84,scaleLength:0,animation:2e3,lineWidth:9,lineCap:"round"})}),$(".refresh-data").on("click",function(){n()})}function n(){$(".pie-charts .chart").each(function(e,t){$(t).data("easyPieChart").update(o(55,90))})}var r=i.hexToRGB(a.colors.defaultText,.2);e.charts=[{color:r,description:"New Visits",stats:"57,820",icon:"person"},{color:r,description:"Purchases",stats:"$ 89,745",icon:"money"},{color:r,description:"Active Users",stats:"178,391",icon:"face"},{color:r,description:"Returned",stats:"32,592",icon:"refresh"}],t(function(){s(),n()},1e3)}e.$inject=["$scope","$timeout","baConfig","baUtil"],angular.module("app.widgets").controller("DashboardPieChartCtrl",e)}(),function(){"use strict";function e(){return{restrict:"E",controller:"DashboardPieChartCtrl",templateUrl:"app/widgets/dashboardPieChart/dashboardPieChart.html"}}angular.module("app.widgets").directive("dashboardPieChart",e)}(),function(){"use strict";function e(e,t){function a(){var e=Math.floor(Math.random()*(o.length-1));return o[e]}e.transparent=t.theme.blur;var i=t.colors.dashboard,o=[];for(var s in i)o.push(i[s]);e.todoList=[{text:"Check me out"},{text:"Lorem ipsum dolor sit amet, possit denique oportere at his, etiam corpora deseruisse te pro"},{text:"Ex has semper alterum, expetenda dignissim"},{text:"Vim an eius ocurreret abhorreant, id nam aeque persius ornatus."},{text:"Simul erroribus ad usu"},{text:"Ei cum solet appareat, ex est graeci mediocritatem"},{text:"Get in touch with akveo team"},{text:"Write email to business cat"},{text:"Have fun with blur admin"},{text:"What do you think?"}],e.todoList.forEach(function(e){e.color=a()}),e.newTodoText="",e.addToDoItem=function(t,i){(i||13===t.which)&&(e.todoList.unshift({text:e.newTodoText,color:a()}),e.newTodoText="")}}e.$inject=["$scope","baConfig"],angular.module("app.widgets").controller("DashboardTodoCtrl",e)}(),function(){"use strict";function e(){return{restrict:"EA",controller:"DashboardTodoCtrl",templateUrl:"app/widgets/dashboardTodo/dashboardTodo.html"}}angular.module("app.widgets").directive("dashboardTodo",e)}(),function(){"use strict";function e(){return{restrict:"E",link:t,templateUrl:"app/widgets/datePickerInput/datePickerInput.html",
replace:!0,scope:{date:"=",name:"@"}}}function t(e,t,a){e.isOpen=!1,e.date||(e.date=new Date),e.open=function(){e.isOpen=!e.isOpen}}angular.module("app.widgets").directive("datePickerInput",e)}(),function(){"use strict";function e(e,t){function a(a,i,o){function s(){a.tabs=t.getStatesForAccordian(e.current),a.tabClicked=n}function n(t,a,i,o){a.hasAccordianDropDown?t.stopPropagation():(a.active=o,i&&(i.active=o),console.log(a.name),e.go(a.name))}s()}return{link:a,restrict:"E",templateUrl:"app/widgets/deAccordian/deAccordian.html",scope:{},replace:!0}}e.$inject=["$state","utilities"],angular.module("app.widgets").directive("deAccordian",e)}(),function(){"use strict";function e(e,t,a){function i(i,o,s){i.apiEndPoints=a,i.appTabFilter=t,i.appFormats=e,i.maxDate=moment(),i.ranges={Today:[moment().startOf("day"),moment().endOf("day").subtract(1,"seconds")],Yesterday:[moment().subtract(1,"days"),moment().subtract(1,"days")],"Last 7 Days":[moment().subtract(7,"days"),moment()],"Last 2 Weeks":[moment().subtract(14,"days").startOf("day"),moment().endOf("day")],"Last 30 Days":[moment().subtract(30,"days"),moment()],"This Month":[moment().startOf("month"),moment()],"Last Month":[moment().subtract(1,"month").startOf("month"),moment().subtract(1,"month").endOf("month")],"This Year":[moment().startOf("year"),moment()],"Last 1 Year":[moment().subtract(1,"year"),moment()]},i.seperator=" to ",i.datePickerChanged=function(e){e.startDate=e.startDate.removeTime(),e.endDate=e.endDate.removeTime(),i.onDateChange({dateRange:e})}}return{link:i,restrict:"E",templateUrl:"app/widgets/filterBar/filterBar.template.html",scope:{test:"=",datePickerNeeded:"=",seller:"=",buyer:"=",product:"=",tranStatus:"=",bpTypes:"=",country:"=",productItems:"=",priceMarket:"=",datePicker:"=",onProductItemSelectedChanged:"&",onPriceMarketSelectedChanged:"&",onBpTypesSelectedChanged:"&",onBuyersSelectedChanged:"&",onSellersSelectedChanged:"&",onProductsSelectedChanged:"&",onCountrySelectedChanged:"&",onTranStatusSelectedChanged:"&",onDateChange:"&"}}}e.$inject=["appFormats","appTabFilter","apiEndPoints"],angular.module("app.widgets").directive("filterBar",e)}(),function(){"use strict";function e(){return{restrict:"E",controller:"LineChartCtrl",templateUrl:"app/widgets/lineChart/lineChart.html",scope:{chartData:"=",chartValues:"=",chartType:"="}}}angular.module("app.widgets").directive("lineChart",e)}(),function(){"use strict";function e(e,t,a,i,o){function s(){var t=[];return angular.forEach(e.chartValues,function(e,a){console.log(e),t.push({id:"g"+a,bullet:"none",useLineColorForBulletBorder:!0,lineColor:d[a],lineThickness:1,negativeLineColor:l.danger,type:r,valueField:e,fillAlphas:1,fillColorsField:"lineColor"})}),AmCharts.makeChart("amchart",{type:"serial",theme:"blur",marginTop:15,marginRight:15,dataProvider:e.chartData,categoryField:"date",categoryAxis:{parseDates:!0,gridAlpha:0,color:l.defaultText,axisColor:l.defaultText},valueAxes:[{minVerticalGap:50,gridAlpha:0,color:l.defaultText,axisColor:l.defaultText}],graphs:t,chartCursor:{categoryBalloonDateFormat:"DD MMM YYYY",categoryBalloonColor:"#684D61",categoryBalloonAlpha:.7,cursorAlpha:0,valueLineEnabled:!0,valueLineBalloonEnabled:!0,valueLineAlpha:.5},dataDateFormat:"DD MMM YYYY","export":{enabled:!0},creditsPosition:"bottom-right",zoomOutButton:{backgroundColor:"#fff",backgroundAlpha:0},zoomOutText:"",pathToImages:a.images.amChart})}function n(){c.zoomToDates(new Date(2013,3),new Date(2014,0))}var r=e.chartType?e.chartType:"column",l=t.colors,d=o.chartColors(),c=(t.theme.blur?"#21b799":l.primary,s());e.$watch("chartData",function(){console.log(e.chartData),c=s()}),c.addListener("rendered",n),n(),c.zoomChart&&c.zoomChart()}e.$inject=["$scope","baConfig","layoutPaths","baUtil","utilities"],angular.module("app.widgets").controller("LineChartCtrl",e)}(),function(){"use strict";function e(e,t,a,i,o){var s=(a.colors,e.chartColors()),n={};n.AD={latitude:42.5,longitude:1.5},n.AE={latitude:24,longitude:54},n.AF={latitude:33,longitude:65},n.AG={latitude:17.05,longitude:-61.8},n.AI={latitude:18.25,longitude:-63.1667},n.AL={latitude:41,longitude:20},n.AM={latitude:40,longitude:45},n.AN={latitude:12.25,longitude:-68.75},n.AO={latitude:-12.5,longitude:18.5},n.AP={latitude:35,longitude:105},n.AQ={latitude:-90,longitude:0},n.AR={latitude:-34,longitude:-64},n.AS={latitude:-14.3333,longitude:-170},n.AT={latitude:47.3333,longitude:13.3333},n.AU={latitude:-27,longitude:133},n.AW={latitude:12.5,longitude:-69.9667},n.AZ={latitude:40.5,longitude:47.5},n.BA={latitude:44,longitude:18},n.BB={latitude:13.1667,longitude:-59.5333},n.BD={latitude:24,longitude:90},n.BE={latitude:50.8333,longitude:4},n.BF={latitude:13,longitude:-2},n.BG={latitude:43,longitude:25},n.BH={latitude:26,longitude:50.55},n.BI={latitude:-3.5,longitude:30},n.BJ={latitude:9.5,longitude:2.25},n.BM={latitude:32.3333,longitude:-64.75},n.BN={latitude:4.5,longitude:114.6667},n.BO={latitude:-17,longitude:-65},n.BR={latitude:-10,longitude:-55},n.BS={latitude:24.25,longitude:-76},n.BT={latitude:27.5,longitude:90.5},n.BV={latitude:-54.4333,longitude:3.4},n.BW={latitude:-22,longitude:24},n.BY={latitude:53,longitude:28},n.BZ={latitude:17.25,longitude:-88.75},n.CA={latitude:54,longitude:-100},n.CC={latitude:-12.5,longitude:96.8333},n.CD={latitude:0,longitude:25},n.CF={latitude:7,longitude:21},n.CG={latitude:-1,longitude:15},n.CH={latitude:47,longitude:8},n.CI={latitude:8,longitude:-5},n.CK={latitude:-21.2333,longitude:-159.7667},n.CL={latitude:-30,longitude:-71},n.CM={latitude:6,longitude:12},n.CN={latitude:35,longitude:105},n.CO={latitude:4,longitude:-72},n.CR={latitude:10,longitude:-84},n.CU={latitude:21.5,longitude:-80},n.CV={latitude:16,longitude:-24},n.CX={latitude:-10.5,longitude:105.6667},n.CY={latitude:35,longitude:33},n.CZ={latitude:49.75,longitude:15.5},n.DE={latitude:51,longitude:9},n.DJ={latitude:11.5,longitude:43},n.DK={latitude:56,longitude:10},n.DM={latitude:15.4167,longitude:-61.3333},n.DO={latitude:19,longitude:-70.6667},n.DZ={latitude:28,longitude:3},n.EC={latitude:-2,longitude:-77.5},n.EE={latitude:59,longitude:26},n.EG={latitude:27,longitude:30},n.EH={latitude:24.5,longitude:-13},n.ER={latitude:15,longitude:39},n.ES={latitude:40,longitude:-4},n.ET={latitude:8,longitude:38},n.EU={latitude:47,longitude:8},n.FI={latitude:62,longitude:26},n.FJ={latitude:-18,longitude:175},n.FK={latitude:-51.75,longitude:-59},n.FM={latitude:6.9167,longitude:158.25},n.FO={latitude:62,longitude:-7},n.FR={latitude:46,longitude:2},n.GA={latitude:-1,longitude:11.75},n.GB={latitude:54,longitude:-2},n.GD={latitude:12.1167,longitude:-61.6667},n.GE={latitude:42,longitude:43.5},n.GF={latitude:4,longitude:-53},n.GH={latitude:8,longitude:-2},n.GI={latitude:36.1833,longitude:-5.3667},n.GL={latitude:72,longitude:-40},n.GM={latitude:13.4667,longitude:-16.5667},n.GN={latitude:11,longitude:-10},n.GP={latitude:16.25,longitude:-61.5833},n.GQ={latitude:2,longitude:10},n.GR={latitude:39,longitude:22},n.GS={latitude:-54.5,longitude:-37},n.GT={latitude:15.5,longitude:-90.25},n.GU={latitude:13.4667,longitude:144.7833},n.GW={latitude:12,longitude:-15},n.GY={latitude:5,longitude:-59},n.HK={latitude:22.25,longitude:114.1667},n.HM={latitude:-53.1,longitude:72.5167},n.HN={latitude:15,longitude:-86.5},n.HR={latitude:45.1667,longitude:15.5},n.HT={latitude:19,longitude:-72.4167},n.HU={latitude:47,longitude:20},n.ID={latitude:-5,longitude:120},n.IE={latitude:53,longitude:-8},n.IL={latitude:31.5,longitude:34.75},n.IN={latitude:20,longitude:77},n.IO={latitude:-6,longitude:71.5},n.IQ={latitude:33,longitude:44},n.IR={latitude:32,longitude:53},n.IS={latitude:65,longitude:-18},n.IT={latitude:42.8333,longitude:12.8333},n.JM={latitude:18.25,longitude:-77.5},n.JO={latitude:31,longitude:36},n.JP={latitude:36,longitude:138},n.KE={latitude:1,longitude:38},n.KG={latitude:41,longitude:75},n.KH={latitude:13,longitude:105},n.KI={latitude:1.4167,longitude:173},n.KM={latitude:-12.1667,longitude:44.25},n.KN={latitude:17.3333,longitude:-62.75},n.KP={latitude:40,longitude:127},n.KR={latitude:37,longitude:127.5},n.KW={latitude:29.3375,longitude:47.6581},n.KY={latitude:19.5,longitude:-80.5},n.KZ={latitude:48,longitude:68},n.LA={latitude:18,longitude:105},n.LB={latitude:33.8333,longitude:35.8333},n.LC={latitude:13.8833,longitude:-61.1333},n.LI={latitude:47.1667,longitude:9.5333},n.LK={latitude:7,longitude:81},n.LR={latitude:6.5,longitude:-9.5},n.LS={latitude:-29.5,longitude:28.5},n.LT={latitude:55,longitude:24},n.LU={latitude:49.75,longitude:6},n.LV={latitude:57,longitude:25},n.LY={latitude:25,longitude:17},n.MA={latitude:32,longitude:-5},n.MC={latitude:43.7333,longitude:7.4},n.MD={latitude:47,longitude:29},n.ME={latitude:42.5,longitude:19.4},n.MG={latitude:-20,longitude:47},n.MH={latitude:9,longitude:168},n.MK={latitude:41.8333,longitude:22},n.ML={latitude:17,longitude:-4},n.MM={latitude:22,longitude:98},n.MN={latitude:46,longitude:105},n.MO={latitude:22.1667,longitude:113.55},n.MP={latitude:15.2,longitude:145.75},n.MQ={latitude:14.6667,longitude:-61},n.MR={latitude:20,longitude:-12},n.MS={latitude:16.75,longitude:-62.2},n.MT={latitude:35.8333,longitude:14.5833},n.MU={latitude:-20.2833,longitude:57.55},n.MV={latitude:3.25,longitude:73},n.MW={latitude:-13.5,longitude:34},n.MX={latitude:23,longitude:-102},n.MY={latitude:2.5,longitude:112.5},n.MZ={latitude:-18.25,longitude:35},n.NA={latitude:-22,longitude:17},n.NC={latitude:-21.5,longitude:165.5},n.NE={latitude:16,longitude:8},n.NF={latitude:-29.0333,longitude:167.95},n.NG={latitude:10,longitude:8},n.NI={latitude:13,longitude:-85},n.NL={latitude:52.5,longitude:5.75},n.NO={latitude:62,longitude:10},n.NP={latitude:28,longitude:84},n.NR={latitude:-.5333,longitude:166.9167},n.NU={latitude:-19.0333,longitude:-169.8667},n.NZ={latitude:-41,longitude:174},n.OM={latitude:21,longitude:57},n.PA={latitude:9,longitude:-80},n.PE={latitude:-10,longitude:-76},n.PF={latitude:-15,longitude:-140},n.PG={latitude:-6,longitude:147},n.PH={latitude:13,longitude:122},n.PK={latitude:30,longitude:70},n.PL={latitude:52,longitude:20},n.PM={latitude:46.8333,longitude:-56.3333},n.PR={latitude:18.25,longitude:-66.5},n.PS={latitude:32,longitude:35.25},n.PT={latitude:39.5,longitude:-8},n.PW={latitude:7.5,longitude:134.5},n.PY={latitude:-23,longitude:-58},n.QA={latitude:25.5,longitude:51.25},n.RE={latitude:-21.1,longitude:55.6},n.RO={latitude:46,longitude:25},n.RS={latitude:44,longitude:21},n.RU={latitude:60,longitude:100},n.RW={latitude:-2,longitude:30},n.SA={latitude:25,longitude:45},n.SB={latitude:-8,longitude:159},n.SC={latitude:-4.5833,longitude:55.6667},n.SD={latitude:15,longitude:30},n.SE={latitude:62,longitude:15},n.SG={latitude:1.3667,longitude:103.8},n.SH={latitude:-15.9333,longitude:-5.7},n.SI={latitude:46,longitude:15},n.SJ={latitude:78,longitude:20},n.SK={latitude:48.6667,longitude:19.5},n.SL={latitude:8.5,longitude:-11.5},n.SM={latitude:43.7667,longitude:12.4167},n.SN={latitude:14,longitude:-14},n.SO={latitude:10,longitude:49},n.SR={latitude:4,longitude:-56},n.ST={latitude:1,longitude:7},n.SV={latitude:13.8333,longitude:-88.9167},n.SY={latitude:35,longitude:38},n.SZ={latitude:-26.5,longitude:31.5},n.TC={latitude:21.75,longitude:-71.5833},n.TD={latitude:15,longitude:19},n.TF={latitude:-43,longitude:67},n.TG={latitude:8,longitude:1.1667},n.TH={latitude:15,longitude:100},n.TJ={latitude:39,longitude:71},n.TK={latitude:-9,longitude:-172},n.TM={latitude:40,longitude:60},n.TN={latitude:34,longitude:9},n.TO={latitude:-20,longitude:-175},n.TR={latitude:39,longitude:35},n.TT={latitude:11,longitude:-61},n.TV={latitude:-8,longitude:178},n.TW={latitude:23.5,longitude:121},n.TZ={latitude:-6,longitude:35},n.UA={latitude:49,longitude:32},n.UG={latitude:1,longitude:32},n.UM={latitude:19.2833,longitude:166.6},n.US={latitude:38,longitude:-97},n.UY={latitude:-33,longitude:-56},n.UZ={latitude:41,longitude:64},n.VA={latitude:41.9,longitude:12.45},n.VC={latitude:13.25,longitude:-61.2},n.VE={latitude:8,longitude:-66},n.VG={latitude:18.5,longitude:-64.5},n.VI={latitude:18.3333,longitude:-64.8333},n.VN={latitude:16,longitude:106},n.VU={latitude:-16,longitude:167},n.WF={latitude:-13.3,longitude:-176.2},n.WS={latitude:-13.5833,longitude:-172.3333},n.YE={latitude:15,longitude:48},n.YT={latitude:-12.8333,longitude:45.1667},n.ZA={latitude:-29,longitude:24},n.ZM={latitude:-15,longitude:30},n.ZW={latitude:-20,longitude:30},angular.forEach(t.mapChartData,function(e,t){e.color=s[t]});for(var r,l=t.mapChartData,d=3,c=70,u=1/0,p=-(1/0),m=0;m<l.length;m++){var g=l[m].value;u>g&&(u=g),g>p&&(p=g)}AmCharts.theme=AmCharts.themes.blur,r=new AmCharts.AmMap,r.areasSettings={unlistedAreasColor:"#000000",unlistedAreasAlpha:.1},r.imagesSettings.balloonText='<span style="font-size:14px;"><b>[[title]]</b>: [[value]]</span>',r.pathToImages=o.images.amMap;for(var v={mapVar:AmCharts.maps.worldLow,images:[]},b=c*c*3*Math.PI,h=d*d*3*Math.PI,m=0;m<l.length;m++){var f=l[m],g=f.value,w=(g-u)/(p-u)*(b-h)+h;h>w&&(w=h);var y=Math.sqrt(w/(2*Math.PI)),k=f.code;v.images.push({type:"circle",width:y,height:y,color:f.color,longitude:n[k].longitude,latitude:n[k].latitude,title:f.name,value:g})}r.dataProvider=v,r["export"]={enabled:!0},i(function(){r.write("map-bubbles")},100)}e.$inject=["utilities","$scope","baConfig","$timeout","layoutPaths"],angular.module("app.widgets").controller("MapBubblePageCtrl",e)}(),function(){"use strict";function e(){return{restrict:"E",controller:"MapBubblePageCtrl",templateUrl:"app/widgets/mapBubbles/mapBubbles.html",scope:{chartData:"=",chartValues:"=",heading:"@",mapChartData:"="}}}angular.module("app.widgets").directive("mapBubbles",e)}(),/*!
 * ngTagsInput v3.1.2
 * http://mbenford.github.io/ngTagsInput
 *
 * Copyright (c) 2013-2017 Michael Benford
 * License: MIT
 *
 * Generated at 2017-03-31 01:12:33 -0300
 */
function(){"use strict";var e={backspace:8,tab:9,enter:13,escape:27,space:32,up:38,down:40,left:37,right:39,"delete":46,comma:188},t=9007199254740991,a=["text","email","url"],i=angular.module("app.widgets");i.directive("tagsInput",["$timeout","$document","$window","$q","tagsInputConfig","tiUtil",function(i,o,s,n,r,l){function d(e,t,a,i){var o,s,r,d,c={};return o=function(t){return l.safeToString(t[e.displayProperty])},s=function(t,a){t[e.displayProperty]=a},r=function(t){var i=o(t),s=i&&i.length>=e.minLength&&i.length<=e.maxLength&&e.allowedTagsPattern.test(i)&&!l.findInObjectArray(c.items,t,e.keyProperty||e.displayProperty);return n.when(s&&a({$tag:t})).then(l.promisifyValue)},d=function(e){return n.when(i({$tag:e})).then(l.promisifyValue)},c.items=[],c.addText=function(e){var t={};return s(t,e),c.add(t)},c.add=function(a){var i=o(a);return e.replaceSpacesWithDashes&&(i=l.replaceSpacesWithDashes(i)),s(a,i),r(a).then(function(){c.items.push(a),t.trigger("tag-added",{$tag:a})})["catch"](function(){i&&t.trigger("invalid-tag",{$tag:a})})},c.remove=function(e){var a=c.items[e];return d(a).then(function(){return c.items.splice(e,1),c.clearSelection(),t.trigger("tag-removed",{$tag:a}),a})},c.select=function(e){0>e?e=c.items.length-1:e>=c.items.length&&(e=0),c.index=e,c.selected=c.items[e]},c.selectPrior=function(){c.select(--c.index)},c.selectNext=function(){c.select(++c.index)},c.removeSelected=function(){return c.remove(c.index)},c.clearSelection=function(){c.selected=null,c.index=-1},c.clearSelection(),c}function c(e){return-1!==a.indexOf(e)}return{restrict:"E",require:"ngModel",scope:{tags:"=ngModel",text:"=?",templateScope:"=?",tagClass:"&",onTagAdding:"&",onTagAdded:"&",onInvalidTag:"&",onTagRemoving:"&",onTagRemoved:"&",onTagClicked:"&"},replace:!1,transclude:!0,templateUrl:"ngTagsInput/tags-input.html",controller:["$scope","$attrs","$element",function(e,a,i){e.events=l.simplePubSub(),r.load("tagsInput",e,a,{template:[String,"ngTagsInput/tag-item.html"],type:[String,"text",c],placeholder:[String,"Add a tag"],tabindex:[Number,null],removeTagSymbol:[String,String.fromCharCode(215)],replaceSpacesWithDashes:[Boolean,!0],minLength:[Number,3],maxLength:[Number,t],addOnEnter:[Boolean,!0],addOnSpace:[Boolean,!1],addOnComma:[Boolean,!0],addOnBlur:[Boolean,!0],addOnPaste:[Boolean,!1],pasteSplitPattern:[RegExp,/,/],allowedTagsPattern:[RegExp,/.+/],enableEditingLastTag:[Boolean,!1],minTags:[Number,0],maxTags:[Number,t],displayProperty:[String,"text"],keyProperty:[String,""],allowLeftoverText:[Boolean,!1],addFromAutocompleteOnly:[Boolean,!1],spellcheck:[Boolean,!0]}),e.tagList=new d(e.options,e.events,l.handleUndefinedResult(e.onTagAdding,!0),l.handleUndefinedResult(e.onTagRemoving,!0)),this.registerAutocomplete=function(){i.find("input");return{addTag:function(t){return e.tagList.add(t)},getTags:function(){return e.tagList.items},getCurrentTagText:function(){return e.newTag.text()},getOptions:function(){return e.options},getTemplateScope:function(){return e.templateScope},on:function(t,a){return e.events.on(t,a,!0),this}}},this.registerTagItem=function(){return{getOptions:function(){return e.options},removeTag:function(t){e.disabled||e.tagList.remove(t)}}}}],link:function(t,a,n,r){var d,c,u=[e.enter,e.comma,e.space,e.backspace,e["delete"],e.left,e.right],p=t.tagList,m=t.events,g=t.options,v=a.find("input"),b=["minTags","maxTags","allowLeftoverText"];d=function(){r.$setValidity("maxTags",p.items.length<=g.maxTags),r.$setValidity("minTags",p.items.length>=g.minTags),r.$setValidity("leftoverText",t.hasFocus||g.allowLeftoverText?!0:!t.newTag.text())},c=function(){i(function(){v[0].focus()})},r.$isEmpty=function(e){return!e||!e.length},t.newTag={text:function(e){return angular.isDefined(e)?(t.text=e,void m.trigger("input-change",e)):t.text||""},invalid:null},t.track=function(e){return e[g.keyProperty||g.displayProperty]},t.getTagClass=function(e,a){var i=e===p.selected;return[t.tagClass({$tag:e,$index:a,$selected:i}),{selected:i}]},t.$watch("tags",function(e){e?(p.items=l.makeObjectArray(e,g.displayProperty),t.tags=p.items):p.items=[]}),t.$watch("tags.length",function(){d(),r.$validate()}),n.$observe("disabled",function(e){t.disabled=e}),t.eventHandlers={input:{keydown:function(e){m.trigger("input-keydown",e)},focus:function(){t.hasFocus||(t.hasFocus=!0,m.trigger("input-focus"))},blur:function(){i(function(){var e=o.prop("activeElement"),i=e===v[0],s=a[0].contains(e);(i||!s)&&(t.hasFocus=!1,m.trigger("input-blur"))})},paste:function(e){e.getTextData=function(){var t=e.clipboardData||e.originalEvent&&e.originalEvent.clipboardData;return t?t.getData("text/plain"):s.clipboardData.getData("Text")},m.trigger("input-paste",e)}},host:{click:function(){t.disabled||c()}},tag:{click:function(e){m.trigger("tag-clicked",{$tag:e})}}},m.on("tag-added",t.onTagAdded).on("invalid-tag",t.onInvalidTag).on("tag-removed",t.onTagRemoved).on("tag-clicked",t.onTagClicked).on("tag-added",function(){t.newTag.text("")}).on("tag-added tag-removed",function(){t.tags=p.items,r.$setDirty(),c()}).on("invalid-tag",function(){t.newTag.invalid=!0}).on("option-change",function(e){-1!==b.indexOf(e.name)&&d()}).on("input-change",function(){p.clearSelection(),t.newTag.invalid=null}).on("input-focus",function(){a.triggerHandler("focus"),r.$setValidity("leftoverText",!0)}).on("input-blur",function(){g.addOnBlur&&!g.addFromAutocompleteOnly&&p.addText(t.newTag.text()),a.triggerHandler("blur"),d()}).on("input-keydown",function(a){var i,o,s,n,r=a.keyCode,d={};l.isModifierOn(a)||-1===u.indexOf(r)||(d[e.enter]=g.addOnEnter,d[e.comma]=g.addOnComma,d[e.space]=g.addOnSpace,i=!g.addFromAutocompleteOnly&&d[r],o=(r===e.backspace||r===e["delete"])&&p.selected,n=r===e.backspace&&0===t.newTag.text().length&&g.enableEditingLastTag,s=(r===e.backspace||r===e.left||r===e.right)&&0===t.newTag.text().length&&!g.enableEditingLastTag,i?p.addText(t.newTag.text()):n?(p.selectPrior(),p.removeSelected().then(function(e){e&&t.newTag.text(e[g.displayProperty])})):o?p.removeSelected():s&&(r===e.left||r===e.backspace?p.selectPrior():r===e.right&&p.selectNext()),(i||s||o||n)&&a.preventDefault())}).on("input-paste",function(e){if(g.addOnPaste){var t=e.getTextData(),a=t.split(g.pasteSplitPattern);a.length>1&&(a.forEach(function(e){p.addText(e)}),e.preventDefault())}})}}}]),i.directive("tiTagItem",["tiUtil",function(e){return{restrict:"E",require:"^tagsInput",template:'<ng-include src="$$template"></ng-include>',scope:{$scope:"=scope",data:"="},link:function(t,a,i,o){var s=o.registerTagItem(),n=s.getOptions();t.$$template=n.template,t.$$removeTagSymbol=n.removeTagSymbol,t.$getDisplayText=function(){return e.safeToString(t.data[n.displayProperty])},t.$removeTag=function(){s.removeTag(t.$index)},t.$watch("$parent.$index",function(e){t.$index=e})}}}]),i.directive("autoComplete",["$document","$timeout","$sce","$q","tagsInputConfig","tiUtil",function(t,a,i,o,s,n){function r(e,t,a){var i,s,r,l={};return r=function(){return t.tagsInput.keyProperty||t.tagsInput.displayProperty},i=function(e,a){return e.filter(function(e){return!n.findInObjectArray(a,e,r(),function(e,a){return t.tagsInput.replaceSpacesWithDashes&&(e=n.replaceSpacesWithDashes(e),a=n.replaceSpacesWithDashes(a)),n.defaultComparer(e,a)})})},l.reset=function(){s=null,l.items=[],l.visible=!1,l.index=-1,l.selected=null,l.query=null},l.show=function(){t.selectFirstMatch?l.select(0):l.selected=null,l.visible=!0},l.load=n.debounce(function(a,d){l.query=a;var c=o.when(e({$query:a}));s=c,c.then(function(e){c===s&&(e=n.makeObjectArray(e.data||e,r()),e=i(e,d),l.items=e.slice(0,t.maxResultsToShow),l.items.length>0?l.show():l.reset())})},t.debounceDelay),l.selectNext=function(){l.select(++l.index)},l.selectPrior=function(){l.select(--l.index)},l.select=function(e){0>e?e=l.items.length-1:e>=l.items.length&&(e=0),l.index=e,l.selected=l.items[e],a.trigger("suggestion-selected",e)},l.reset(),l}function l(e,t){var a=e.find("li").eq(t),i=a.parent(),o=a.prop("offsetTop"),s=a.prop("offsetHeight"),n=i.prop("clientHeight"),r=i.prop("scrollTop");r>o?i.prop("scrollTop",o):o+s>n+r&&i.prop("scrollTop",o+s-n)}return{restrict:"E",require:"^tagsInput",scope:{source:"&",matchClass:"&"},templateUrl:"ngTagsInput/auto-complete.html",controller:["$scope","$element","$attrs",function(e,t,a){e.events=n.simplePubSub(),s.load("autoComplete",e,a,{template:[String,"ngTagsInput/auto-complete-match.html"],debounceDelay:[Number,100],minLength:[Number,3],highlightMatchedText:[Boolean,!0],maxResultsToShow:[Number,10],loadOnDownArrow:[Boolean,!1],loadOnEmpty:[Boolean,!1],loadOnFocus:[Boolean,!1],selectFirstMatch:[Boolean,!0],displayProperty:[String,""]}),e.suggestionList=new r(e.source,e.options,e.events),this.registerAutocompleteMatch=function(){return{getOptions:function(){return e.options},getQuery:function(){return e.suggestionList.query}}}}],link:function(t,a,i,o){var s,r=[e.enter,e.tab,e.escape,e.up,e.down],d=t.suggestionList,c=o.registerAutocomplete(),u=t.options,p=t.events;u.tagsInput=c.getOptions(),s=function(e){return e&&e.length>=u.minLength||!e&&u.loadOnEmpty},t.templateScope=c.getTemplateScope(),t.addSuggestionByIndex=function(e){d.select(e),t.addSuggestion()},t.addSuggestion=function(){var e=!1;return d.selected&&(c.addTag(angular.copy(d.selected)),d.reset(),e=!0),e},t.track=function(e){return e[u.tagsInput.keyProperty||u.tagsInput.displayProperty]},t.getSuggestionClass=function(e,a){var i=e===d.selected;return[t.matchClass({$match:e,$index:a,$selected:i}),{selected:i}]},c.on("tag-added tag-removed invalid-tag input-blur",function(){d.reset()}).on("input-change",function(e){s(e)?d.load(e,c.getTags()):d.reset()}).on("input-focus",function(){var e=c.getCurrentTagText();u.loadOnFocus&&s(e)&&d.load(e,c.getTags())}).on("input-keydown",function(a){var i=a.keyCode,o=!1;if(!n.isModifierOn(a)&&-1!==r.indexOf(i))return d.visible?i===e.down?(d.selectNext(),o=!0):i===e.up?(d.selectPrior(),o=!0):i===e.escape?(d.reset(),o=!0):(i===e.enter||i===e.tab)&&(o=t.addSuggestion()):i===e.down&&t.options.loadOnDownArrow&&(d.load(c.getCurrentTagText(),c.getTags()),o=!0),o?(a.preventDefault(),a.stopImmediatePropagation(),!1):void 0}),p.on("suggestion-selected",function(e){l(a,e)})}}}]),i.directive("tiAutocompleteMatch",["$sce","tiUtil",function(e,t){return{restrict:"E",require:"^autoComplete",template:'<ng-include src="$$template"></ng-include>',scope:{$scope:"=scope",data:"="},link:function(a,i,o,s){var n=s.registerAutocompleteMatch(),r=n.getOptions();a.$$template=r.template,a.$index=a.$parent.$index,a.$highlight=function(a){return r.highlightMatchedText&&(a=t.safeHighlight(a,n.getQuery())),e.trustAsHtml(a)},a.$getDisplayText=function(){return t.safeToString(a.data[r.displayProperty||r.tagsInput.displayProperty])}}}}]),i.directive("tiTranscludeAppend",function(){return function(e,t,a,i,o){o(function(e){t.append(e)})}}),i.directive("tiAutosize",["tagsInputConfig",function(e){return{restrict:"A",require:"ngModel",link:function(t,a,i,o){var s,n,r=e.getTextAutosizeThreshold();s=angular.element('<span class="input"></span>'),s.css("display","none").css("visibility","hidden").css("width","auto").css("white-space","pre"),a.parent().append(s),n=function(e){var t,o=e;return angular.isString(o)&&0===o.length&&(o=i.placeholder),o&&(s.text(o),s.css("display",""),t=s.prop("offsetWidth"),s.css("display","none")),a.css("width",t?t+r+"px":""),e},o.$parsers.unshift(n),o.$formatters.unshift(n),i.$observe("placeholder",function(e){o.$modelValue||n(e)})}}}]),i.directive("tiBindAttrs",function(){return function(e,t,a){e.$watch(a.tiBindAttrs,function(e){angular.forEach(e,function(e,t){a.$set(t,e)})},!0)}}),i.provider("tagsInputConfig",function(){var e={},t={},a=3;this.setDefaults=function(t,a){return e[t]=a,this},this.setActiveInterpolation=function(e,a){return t[e]=a,this},this.setTextAutosizeThreshold=function(e){return a=e,this},this.$get=["$interpolate",function(i){var o={};return o[String]=function(e){return e},o[Number]=function(e){return parseInt(e,10)},o[Boolean]=function(e){return"true"===e.toLowerCase()},o[RegExp]=function(e){return new RegExp(e)},{load:function(a,s,n,r){var l=function(){return!0};s.options={},angular.forEach(r,function(r,d){var c,u,p,m,g,v;c=r[0],u=r[1],p=r[2]||l,m=o[c],g=function(){var t=e[a]&&e[a][d];return angular.isDefined(t)?t:u},v=function(e){s.options[d]=e&&p(e)?m(e):g()},t[a]&&t[a][d]?n.$observe(d,function(e){v(e),s.events.trigger("option-change",{name:d,newValue:e})}):v(n[d]&&i(n[d])(s.$parent))})},getTextAutosizeThreshold:function(){return a}}}]}),i.factory("tiUtil",["$timeout","$q",function(e,t){var a={};return a.debounce=function(t,a){var i;return function(){var o=arguments;e.cancel(i),i=e(function(){t.apply(null,o)},a)}},a.makeObjectArray=function(e,t){if(!angular.isArray(e)||0===e.length||angular.isObject(e[0]))return e;var a=[];return e.forEach(function(e){var i={};i[t]=e,a.push(i)}),a},a.findInObjectArray=function(e,t,i,o){var s=null;return o=o||a.defaultComparer,e.some(function(e){return o(e[i],t[i])?(s=e,!0):void 0}),s},a.defaultComparer=function(e,t){return a.safeToString(e).toLowerCase()===a.safeToString(t).toLowerCase()},a.safeHighlight=function(e,t){function i(e){return e.replace(/([.?*+^$[\]\\(){}|-])/g,"\\$1")}if(e=a.encodeHTML(e),t=a.encodeHTML(t),!t)return e;var o=new RegExp("&[^;]+;|"+i(t),"gi");return e.replace(o,function(e){return e.toLowerCase()===t.toLowerCase()?"<em>"+e+"</em>":e})},a.safeToString=function(e){return angular.isUndefined(e)||null==e?"":e.toString().trim()},a.encodeHTML=function(e){return a.safeToString(e).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")},a.handleUndefinedResult=function(e,t){return function(){var a=e.apply(null,arguments);return angular.isUndefined(a)?t:a}},a.replaceSpacesWithDashes=function(e){return a.safeToString(e).replace(/\s/g,"-")},a.isModifierOn=function(e){return e.shiftKey||e.ctrlKey||e.altKey||e.metaKey},a.promisifyValue=function(e){return e=angular.isUndefined(e)?!0:e,t[e?"when":"reject"]()},a.simplePubSub=function(){var e={};return{on:function(t,a,i){return t.split(" ").forEach(function(t){e[t]||(e[t]=[]);var o=i?[].unshift:[].push;o.call(e[t],a)}),this},trigger:function(t,i){var o=e[t]||[];return o.every(function(e){return a.handleUndefinedResult(e,!0)(i)}),this}}},a}]),i.run(["$templateCache",function(e){e.put("ngTagsInput/tags-input.html",'<div class="host" tabindex="-1" ng-click="eventHandlers.host.click()" ti-transclude-append><div class="tags" ng-class="{focused: hasFocus}"><ul class="tag-list"><li class="tag-item" ng-repeat="tag in tagList.items track by track(tag)" ng-class="getTagClass(tag, $index)" ng-click="eventHandlers.tag.click(tag)"><ti-tag-item scope="templateScope" data="::tag"></ti-tag-item></li></ul><input class="input" autocomplete="off" ng-model="newTag.text" ng-model-options="{getterSetter: true}" ng-keydown="eventHandlers.input.keydown($event)" ng-focus="eventHandlers.input.focus($event)" ng-blur="eventHandlers.input.blur($event)" ng-paste="eventHandlers.input.paste($event)" ng-trim="false" ng-class="{\'invalid-tag\': newTag.invalid}" ng-disabled="disabled" ti-bind-attrs="{type: options.type, placeholder: options.placeholder, tabindex: options.tabindex, spellcheck: options.spellcheck}" ti-autosize></div></div>'),e.put("ngTagsInput/tag-item.html",'<span ng-bind="$getDisplayText()"></span> <a class="remove-button" ng-click="$removeTag()" ng-bind="::$$removeTagSymbol"></a>'),e.put("ngTagsInput/auto-complete.html",'<div class="autocomplete" ng-if="suggestionList.visible"><ul class="suggestion-list"><li class="suggestion-item" ng-repeat="item in suggestionList.items track by track(item)" ng-class="getSuggestionClass(item, $index)" ng-click="addSuggestionByIndex($index)" ng-mouseenter="suggestionList.select($index)"><ti-autocomplete-match scope="templateScope" data="::item"></ti-autocomplete-match></li></ul></div>'),e.put("ngTagsInput/auto-complete-match.html",'<span ng-bind-html="$highlight($getDisplayText())"></span>')}])}(),function(){"use strict";function e(e){return{restrict:"EA",replace:!0,templateUrl:"app/widgets/numberOnlyInput/numberOnlyInput.template.html",scope:{required:"=",inputValue:"=",inputName:"@",inputPlace:"@",noBorder:"=",currency:"="},link:function(e){e.onFocus=function(){e.oldValue=e.inputValue},e.onBlur=function(){""===e.inputValue?e.inputValue=0:/[a-zA-Z!@#$%^&*()_+=\/\\,]/i.test(e.inputValue)&&(e.inputValue=e.oldValue)}}}}e.$inject=["$filter"],angular.module("app.widgets").directive("numberOnlyInput",e)}(),function(){"use strict";function e(e,t,a){function i(e,i,o){function s(){e.rootScope=t}s(),e.goToBack=a.goBackState}return{link:i,restrict:"E",templateUrl:"app/widgets/pageHeader/pageHeader.template.html",scope:{subHeading:"@",heading:"@",buttonList:"=",goBack:"="},replace:!0}}e.$inject=["$state","$rootScope","utilities"],angular.module("app.widgets").directive("pageHeader",e)}(),function(){"use strict";function e(){}angular.module("app.widgets").service("dashboardPieChart",e)}(),function(){"use strict";function e(e,t){e.link="",e.ok=function(){t.close(e.link)}}e.$inject=["$scope","$uibModalInstance"],angular.module("app.widgets.profile").controller("ProfileModalCtrl",e)}(),function(){"use strict";function e(e,t,a,i){e.picture=a("profilePicture")("Nasta"),e.removePicture=function(){e.picture=a("appImage")("theme/no-photo.png"),e.noPicture=!0},e.uploadPicture=function(){var e=document.getElementById("uploadFile");e.click()},e.socialProfiles=[{name:"Facebook",href:"https://www.facebook.com/akveo/",icon:"socicon-facebook"},{name:"Twitter",href:"https://twitter.com/akveo_inc",icon:"socicon-twitter"},{name:"Google",icon:"socicon-google"},{name:"LinkedIn",href:"https://www.linkedin.com/company/akveo",icon:"socicon-linkedin"},{name:"GitHub",href:"https://github.com/akveo",icon:"socicon-github"},{name:"StackOverflow",icon:"socicon-stackoverflow"},{name:"Dribbble",icon:"socicon-dribble"},{name:"Behance",icon:"socicon-behace"}],e.unconnect=function(e){e.href=void 0},e.showModal=function(e){i.open({animation:!1,controller:"ProfileModalCtrl",templateUrl:"app/pages/profile/profileModal.html"}).result.then(function(t){e.href=t})},e.getFile=function(){t.readAsDataUrl(e.file,e).then(function(t){e.picture=t})},e.switches=[!0,!0,!1,!0,!0,!1]}e.$inject=["$scope","fileReader","$filter","$uibModal"],angular.module("app.widgets.profile").controller("ProfilePageCtrl",e)}(),function(){"use strict";function e(e){function t(e,t,a){function i(){o()}function o(){e.chartData[e.chartData.length-1].bullet="round",AmCharts.makeChart("line1",{type:"serial",theme:"light",dataProvider:e.chartData,categoryField:"date",autoMargins:!1,marginLeft:0,marginRight:5,marginTop:0,marginBottom:0,graphs:[{valueField:"rate",bulletField:"bullet",showBalloon:!1,lineColor:"greenyellow",lineThickness:5}],valueAxes:[{gridAlpha:0,axisAlpha:0}],categoryAxis:{gridAlpha:0,axisAlpha:0,startOnAxis:!0}})}i()}return{link:t,restrict:"E",templateUrl:"app/widgets/sparklines/sparkline.template.html",scope:{chartData:"="},replace:!0}}e.$inject=["$rootScope"],angular.module("app.widgets").directive("sparkLine",e)}(),function(){"use strict";function e(e,t,a,i){e.smartTablePageSize=10,e.smartTableData=[{id:1,firstName:"Mark",lastName:"Otto",username:"@mdo",email:"mdo@gmail.com",age:"28"},{id:2,firstName:"Jacob",lastName:"Thornton",username:"@fat",email:"fat@yandex.ru",age:"45"},{id:3,firstName:"Larry",lastName:"Bird",username:"@twitter",email:"twitter@outlook.com",age:"18"},{id:4,firstName:"John",lastName:"Snow",username:"@snow",email:"snow@gmail.com",age:"20"},{id:5,firstName:"Jack",lastName:"Sparrow",username:"@jack",email:"jack@yandex.ru",age:"30"},{id:6,firstName:"Ann",lastName:"Smith",username:"@ann",email:"ann@gmail.com",age:"21"},{id:7,firstName:"Barbara",lastName:"Black",username:"@barbara",email:"barbara@yandex.ru",age:"43"},{id:8,firstName:"Sevan",lastName:"Bagrat",username:"@sevan",email:"sevan@outlook.com",age:"13"},{id:9,firstName:"Ruben",lastName:"Vardan",username:"@ruben",email:"ruben@gmail.com",age:"22"},{id:10,firstName:"Karen",lastName:"Sevan",username:"@karen",email:"karen@yandex.ru",age:"33"},{id:11,firstName:"Mark",lastName:"Otto",username:"@mark",email:"mark@gmail.com",age:"38"},{id:12,firstName:"Jacob",lastName:"Thornton",username:"@jacob",email:"jacob@yandex.ru",age:"48"},{id:13,firstName:"Haik",lastName:"Hakob",username:"@haik",email:"haik@outlook.com",age:"48"},{id:14,firstName:"Garegin",lastName:"Jirair",username:"@garegin",email:"garegin@gmail.com",age:"40"},{id:15,firstName:"Krikor",lastName:"Bedros",username:"@krikor",email:"krikor@yandex.ru",age:"32"},{id:16,firstName:"Francisca",lastName:"Brady",username:"@Gibson",email:"franciscagibson@comtours.com",age:11},{id:17,firstName:"Tillman",lastName:"Figueroa",username:"@Snow",email:"tillmansnow@comtours.com",age:34},{id:18,firstName:"Jimenez",lastName:"Morris",username:"@Bryant",email:"jimenezbryant@comtours.com",age:45},{id:19,firstName:"Sandoval",lastName:"Jacobson",username:"@Mcbride",email:"sandovalmcbride@comtours.com",age:32},{id:20,firstName:"Griffin",lastName:"Torres",username:"@Charles",email:"griffincharles@comtours.com",age:19},{id:21,firstName:"Cora",lastName:"Parker",username:"@Caldwell",email:"coracaldwell@comtours.com",age:27},{id:22,firstName:"Cindy",lastName:"Bond",username:"@Velez",email:"cindyvelez@comtours.com",age:24},{id:23,firstName:"Frieda",lastName:"Tyson",username:"@Craig",email:"friedacraig@comtours.com",age:45},{id:24,firstName:"Cote",lastName:"Holcomb",username:"@Rowe",email:"coterowe@comtours.com",age:20},{id:25,firstName:"Trujillo",lastName:"Mejia",username:"@Valenzuela",email:"trujillovalenzuela@comtours.com",age:16},{id:26,firstName:"Pruitt",lastName:"Shepard",username:"@Sloan",email:"pruittsloan@comtours.com",age:44},{id:27,firstName:"Sutton",lastName:"Ortega",username:"@Black",email:"suttonblack@comtours.com",age:42},{id:28,firstName:"Marion",lastName:"Heath",username:"@Espinoza",email:"marionespinoza@comtours.com",age:47},{id:29,firstName:"Newman",lastName:"Hicks",username:"@Keith",email:"newmankeith@comtours.com",age:15},{id:30,firstName:"Boyle",lastName:"Larson",username:"@Summers",email:"boylesummers@comtours.com",age:32},{id:31,firstName:"Haynes",lastName:"Vinson",username:"@Mckenzie",email:"haynesmckenzie@comtours.com",age:15},{id:32,firstName:"Miller",lastName:"Acosta",username:"@Young",email:"milleryoung@comtours.com",age:55},{id:33,firstName:"Johnston",lastName:"Brown",username:"@Knight",email:"johnstonknight@comtours.com",age:29},{id:34,firstName:"Lena",lastName:"Pitts",username:"@Forbes",email:"lenaforbes@comtours.com",age:25},{id:35,firstName:"Terrie",lastName:"Kennedy",username:"@Branch",email:"terriebranch@comtours.com",age:37},{id:36,firstName:"Louise",lastName:"Aguirre",username:"@Kirby",email:"louisekirby@comtours.com",age:44},{id:37,firstName:"David",lastName:"Patton",username:"@Sanders",email:"davidsanders@comtours.com",age:26},{id:38,firstName:"Holden",lastName:"Barlow",username:"@Mckinney",email:"holdenmckinney@comtours.com",age:11},{id:39,firstName:"Baker",lastName:"Rivera",username:"@Montoya",email:"bakermontoya@comtours.com",age:47},{id:40,firstName:"Belinda",lastName:"Lloyd",username:"@Calderon",email:"belindacalderon@comtours.com",age:21},{id:41,firstName:"Pearson",lastName:"Patrick",username:"@Clements",email:"pearsonclements@comtours.com",age:42},{id:42,firstName:"Alyce",lastName:"Mckee",username:"@Daugherty",email:"alycedaugherty@comtours.com",age:55},{id:43,firstName:"Valencia",lastName:"Spence",username:"@Olsen",email:"valenciaolsen@comtours.com",age:20},{id:44,firstName:"Leach",lastName:"Holcomb",username:"@Humphrey",email:"leachhumphrey@comtours.com",age:28},{id:45,firstName:"Moss",lastName:"Baxter",username:"@Fitzpatrick",email:"mossfitzpatrick@comtours.com",age:51},{id:46,firstName:"Jeanne",lastName:"Cooke",username:"@Ward",email:"jeanneward@comtours.com",age:59},{id:47,firstName:"Wilma",lastName:"Briggs",username:"@Kidd",email:"wilmakidd@comtours.com",age:53},{id:48,firstName:"Beatrice",lastName:"Perry",username:"@Gilbert",email:"beatricegilbert@comtours.com",age:39},{id:49,firstName:"Whitaker",lastName:"Hyde",username:"@Mcdonald",email:"whitakermcdonald@comtours.com",age:35},{id:50,firstName:"Rebekah",lastName:"Duran",username:"@Gross",email:"rebekahgross@comtours.com",age:40},{id:51,firstName:"Earline",lastName:"Mayer",username:"@Woodward",email:"earlinewoodward@comtours.com",age:52},{id:52,firstName:"Moran",lastName:"Baxter",username:"@Johns",email:"moranjohns@comtours.com",age:20},{id:53,firstName:"Nanette",lastName:"Hubbard",username:"@Cooke",email:"nanettecooke@comtours.com",age:55},{id:54,firstName:"Dalton",lastName:"Walker",username:"@Hendricks",email:"daltonhendricks@comtours.com",age:25},{id:55,firstName:"Bennett",lastName:"Blake",username:"@Pena",email:"bennettpena@comtours.com",age:13},{id:56,firstName:"Kellie",lastName:"Horton",username:"@Weiss",email:"kellieweiss@comtours.com",age:48},{id:57,firstName:"Hobbs",lastName:"Talley",username:"@Sanford",email:"hobbssanford@comtours.com",age:28},{id:58,firstName:"Mcguire",lastName:"Donaldson",username:"@Roman",email:"mcguireroman@comtours.com",age:38},{id:59,firstName:"Rodriquez",lastName:"Saunders",username:"@Harper",email:"rodriquezharper@comtours.com",age:20},{id:60,firstName:"Lou",lastName:"Conner",username:"@Sanchez",email:"lousanchez@comtours.com",age:16}],e.editableTableData=e.smartTableData.slice(0,36),e.peopleTableData=[{id:1,firstName:"Mark",lastName:"Otto",username:"@mdo",email:"mdo@gmail.com",age:"28",status:"info"},{id:2,firstName:"Jacob",lastName:"Thornton",username:"@fat",email:"fat@yandex.ru",age:"45",status:"primary"},{id:3,firstName:"Larry",lastName:"Bird",username:"@twitter",email:"twitter@outlook.com",age:"18",status:"success"},{id:4,firstName:"John",lastName:"Snow",username:"@snow",email:"snow@gmail.com",age:"20",status:"danger"},{id:5,firstName:"Jack",lastName:"Sparrow",username:"@jack",email:"jack@yandex.ru",age:"30",status:"warning"}],e.metricsTableData=[{image:"app/browsers/chrome.svg",browser:"Google Chrome",visits:"10,392",isVisitsUp:!0,purchases:"4,214",isPurchasesUp:!0,percent:"45%",isPercentUp:!0},{image:"app/browsers/firefox.svg",browser:"Mozilla Firefox",visits:"7,873",isVisitsUp:!0,purchases:"3,031",isPurchasesUp:!1,percent:"28%",isPercentUp:!0},{image:"app/browsers/ie.svg",browser:"Internet Explorer",visits:"5,890",isVisitsUp:!1,purchases:"2,102",isPurchasesUp:!1,percent:"17%",isPercentUp:!1},{image:"app/browsers/safari.svg",browser:"Safari",visits:"4,001",isVisitsUp:!1,purchases:"1,001",isPurchasesUp:!1,percent:"14%",isPercentUp:!0},{image:"app/browsers/opera.svg",browser:"Opera",visits:"1,833",isVisitsUp:!0,purchases:"83",isPurchasesUp:!0,percent:"5%",isPercentUp:!1}],e.users=[{id:1,name:"Esther Vang",status:4,group:3},{id:2,name:"Leah Freeman",status:3,group:1},{id:3,name:"Mathews Simpson",status:3,group:2},{id:4,name:"Buckley Hopkins",group:4},{id:5,name:"Buckley Schwartz",status:1,group:1},{id:6,name:"Mathews Hopkins",status:4,group:2},{id:7,name:"Leah Vang",status:4,group:1},{id:8,name:"Vang Schwartz",status:4,group:2},{id:9,name:"Hopkin Esther",status:1,group:2},{id:10,name:"Mathews Schwartz",status:1,group:3}],e.statuses=[{value:1,text:"Good"},{value:2,text:"Awesome"},{value:3,text:"Excellent"}],e.groups=[{id:1,text:"user"},{id:2,text:"customer"},{id:3,text:"vip"},{id:4,text:"admin"}],e.showGroup=function(a){if(a.group&&e.groups.length){var i=t("filter")(e.groups,{id:a.group});return i.length?i[0].text:"Not set"}return"Not set"},e.showStatus=function(a){var i=[];return a.status&&(i=t("filter")(e.statuses,{value:a.status})),i.length?i[0].text:"Not set"},e.removeUser=function(t){e.users.splice(t,1)},e.addUser=function(){e.inserted={id:e.users.length+1,name:"",status:null,group:null},e.users.push(e.inserted)},a.theme="bs3",i.bs3.submitTpl='<button type="submit" class="btn btn-primary btn-with-icon"><i class="ion-checkmark-round"></i></button>',i.bs3.cancelTpl='<button type="button" ng-click="$form.$cancel()" class="btn btn-default btn-with-icon"><i class="ion-close-round"></i></button>'}e.$inject=["$scope","$filter","editableOptions","editableThemes"],angular.module("app.widgets.tables").controller("TablesPageCtrl",e)}(),function(){"use strict";function e(e,t,a){e.transparent=t.theme.blur;var i=t.colors.dashboard;e.doughnutData=[{value:2e3,color:i.white,highlight:a.shade(i.white,15),label:"Other",percentage:87,order:1},{value:1500,color:i.blueStone,highlight:a.shade(i.blueStone,15),label:"Search engines",percentage:22,order:4},{value:1e3,color:i.surfieGreen,highlight:a.shade(i.surfieGreen,15),label:"Referral Traffic",percentage:70,order:3},{value:1200,color:i.silverTree,highlight:a.shade(i.silverTree,15),label:"Direct Traffic",percentage:38,order:2},{value:400,color:i.gossip,highlight:a.shade(i.gossip,15),label:"Ad Campaigns",percentage:17,order:0}];var o=document.getElementById("chart-area").getContext("2d");window.myDoughnut=new Chart(o).Doughnut(e.doughnutData,{segmentShowStroke:!1,percentageInnerCutout:64,responsive:!0})}e.$inject=["$scope","baConfig","colorHelper"],angular.module("app.widgets").controller("TrafficChartCtrl",e)}(),function(){"use strict";function e(){return console.log("sex"),{restrict:"E",controller:"TrafficChartCtrl",templateUrl:"app/widgets/trafficChart/trafficChart.html"}}angular.module("app.widgets").directive("trafficChart",e)}(),function(){"use strict";function e(e,t,a,i){function o(){t.jsonp("http://www.geoplugin.net/json.gp?jsoncallback=JSON_CALLBACK").then(function(t){e.geoData=t.data,e.updateWeather()},function(){console.log("GEO FAILED")})}function s(e){AmCharts.makeChart("tempChart",{type:"serial",theme:"blur",handDrawn:!0,categoryField:"time",dataProvider:e,valueAxes:[{axisAlpha:.3,gridAlpha:0}],graphs:[{bullet:"square",fillAlphas:.3,fillColorsField:"lineColor",legendValueText:"[[value]]",lineColorField:"lineColor",title:"Temp",valueField:"temp"}],categoryAxis:{gridAlpha:0,axisAlpha:.3}}).write("tempChart")}function n(t){var a=t.list[0],o={days:[{date:new Date,timeTemp:[],main:a.weather[0].main,description:a.weather[0].description,icon:a.weather[0].icon,temp:a.main.temp}],current:0};t.list.forEach(function(e,a){var i=new Date(e.dt_txt);i.getDate()!==o.days[o.days.length-1].date.getDate()&&o.days.push({date:i,timeTemp:[]});var s=o.days[o.days.length-1];s.timeTemp.push({time:i.getHours(),temp:e.main.temp}),(o.days.length>1&&i.getHours()==c||a==t.list.length-1)&&(s.main=e.weather[0].main,s.description=e.weather[0].description,s.icon=e.weather[0].icon,s.temp=e.main.temp,s.date.setHours(a==t.list.length-1?0:c),s.date.setMinutes(0))}),console.log(o.days[o.current].date),o.days=o.days.slice(0,i.attr("forecast")||5),e.weather=o}var r="http://api.openweathermap.org/data/2.5/forecast",l="GET",d="2de143494c0b295cca9337e1e96b00e0",c=15;e.units="metric",e.weatherIcons={"01d":"ion-ios-sunny-outline","02d":"ion-ios-partlysunny-outline","03d":"ion-ios-cloud-outline","04d":"ion-ios-cloud","09d":"ion-ios-rainy","10d":"ion-ios-rainy-outline","11d":"ion-ios-thunderstorm-outline","13d":"ion-ios-snowy","50d":"ion-ios-cloudy-outline","01n":"ion-ios-cloudy-night-outline","02n":"ion-ios-cloudy-night","03n":"ion-ios-cloud-outline","04n":"ion-ios-cloud","09n":"ion-ios-rainy","10n":"ion-ios-rainy-outline","11n":"ion-ios-thunderstorm","13n":"ion-ios-snowy","50n":"ion-ios-cloudy-outline"},e.weather={},e.switchUnits=function(t){e.units=t,e.updateWeather()},e.switchDay=function(t){e.weather.current=t,s(e.weather.days[e.weather.current].timeTemp)},e.updateWeather=function(){t({method:l,url:r,params:{appid:d,lat:e.geoData.geoplugin_latitude,lon:e.geoData.geoplugin_longitude,units:e.units}}).then(function(t){n(t.data),s(e.weather.days[e.weather.current].timeTemp)},function(){console.log("WEATHER FAILED")})},o()}e.$inject=["$scope","$http","$timeout","$element"],angular.module("app.widgets").controller("WeatherCtrl",e)}(),function(){"use strict";function e(){return{restrict:"EA",controller:"WeatherCtrl",templateUrl:"app/widgets/weather/weather.html"}}angular.module("app.widgets").directive("weather",e);
}(),function(){"use strict";function e(e,t){return angular.extend({},e,{template:function(a,i){var o='<div  class="panel '+(t.theme.blur?"panel-blur":"")+" full-invisible "+(i.baPanelClass||"");return o+='" zoom-in '+(t.theme.blur?"ba-panel-blur":"")+">",o+=e.template(a,i),o+="</div>"}})}e.$inject=["baPanel","baConfig"],angular.module("app.theme").directive("baPanel",e)}(),function(){"use strict";function e(){return{restrict:"A",transclude:!0,template:function(e,t){var a='<div class="panel-body" ng-transclude></div>';if(t.baPanelTitle){var i='<div class="panel-heading clearfix"><h3 class="panel-title">'+t.baPanelTitle+"</h3></div>";a=i+a}return a}}}angular.module("app.theme").factory("baPanel",e)}(),function(){"use strict";function e(e,t,a){var i;return e.bodyBgLoad().then(function(){i=e.getBodyBgImageSizes()}),t.addEventListener("resize",function(){i=e.getBodyBgImageSizes()}),{restrict:"A",link:function(o,s){function n(){i&&s.css({backgroundSize:Math.round(i.width)+"px "+Math.round(i.height)+"px",backgroundPosition:Math.floor(i.positionX)+"px "+Math.floor(i.positionY)+"px"})}a.$isMobile||(e.bodyBgLoad().then(function(){setTimeout(n)}),t.addEventListener("resize",n),o.$on("$destroy",function(){t.removeEventListener("resize",n)}))}}}e.$inject=["baPanelBlurHelper","$window","$rootScope"],angular.module("app.theme").directive("baPanelBlur",e)}(),function(){"use strict";function e(e){var t=e.defer(),a=getComputedStyle(document.body,":before"),i=new Image;i.src=a.backgroundImage.replace(/url\((['"])?(.*?)\1\)/gi,"$2"),i.onerror=function(){t.reject()},i.onload=function(){t.resolve()},this.bodyBgLoad=function(){return t.promise},this.getBodyBgImageSizes=function(){var e=document.documentElement.clientWidth,t=document.documentElement.clientHeight;if(!(640>=e)){var a,o,s=i.height/i.width,n=t/e;return n>s?(a=t,o=t/s):(o=e,a=e*s),{width:o,height:a,positionX:(e-o)/2,positionY:(t-a)/2}}}}e.$inject=["$q"],angular.module("app.theme").service("baPanelBlurHelper",e)}(),function(){"use strict";function e(e){return angular.extend({},e,{link:function(e,t,a){t.addClass("panel panel-white"),a.baPanelClass&&t.addClass(a.baPanelClass)}})}e.$inject=["baPanel"],angular.module("app.theme").directive("baPanelSelf",e)}(),function(){"use strict";function e(e,t){e.menuItems=t.getMenuItems(),e.defaultSidebarState=e.menuItems[0].stateRef,e.hoverItem=function(t){e.showHoverElem=!0,e.hoverElemHeight=t.currentTarget.clientHeight;var a=66;e.hoverElemTop=t.currentTarget.getBoundingClientRect().top-a},e.$on("$stateChangeSuccess",function(){t.canSidebarBeHidden()&&t.setMenuCollapsed(!0)})}e.$inject=["$scope","baSidebarService"],angular.module("app.theme.components").controller("BaSidebarCtrl",e)}(),function(){"use strict";function e(e,t,a,i){var o=$(window);return{restrict:"E",templateUrl:"app/theme/components/baSidebar/ba-sidebar.html",controller:"BaSidebarCtrl",link:function(i,s){function n(i){a.isDescendant(s[0],i.target)||i.originalEvent.$sidebarEventProcessed||t.isMenuCollapsed()||!t.canSidebarBeHidden()||(i.originalEvent.$sidebarEventProcessed=!0,e(function(){t.setMenuCollapsed(!0)},10))}function r(){var e=t.shouldMenuBeCollapsed(),a=l();(e!=t.isMenuCollapsed()||i.menuHeight!=a)&&i.$apply(function(){i.menuHeight=a,t.setMenuCollapsed(e)})}function l(){return s[0].childNodes[0].clientHeight-84}i.menuHeight=s[0].childNodes[0].clientHeight-84,o.on("click",n),o.on("resize",r),i.$on("$destroy",function(){o.off("click",n),o.off("resize",r)})}}}e.$inject=["$timeout","baSidebarService","baUtil","layoutSizes"],angular.module("app.theme.components").directive("baSidebar",e)}(),function(){"use strict";function e(){var e=[];this.addStaticItem=function(){e.push.apply(e,arguments)},this.$get=["$state","layoutSizes",function(t,a){function i(){function i(){return t.get().filter(function(e){return e.sidebarMeta}).map(function(e){var t=e.sidebarMeta;return{name:e.name,title:e.title,level:(e.name.match(/\./g)||[]).length,order:t.order,icon:t.icon,stateRef:e.name}}).sort(function(e,t){return 100*(e.level-t.level)+e.order-t.order})}function o(){return window.innerWidth<=a.resWidthCollapseSidebar}function s(){return window.innerWidth<=a.resWidthHideSidebar}var n=o();this.getMenuItems=function(){var t=i(),a=t.filter(function(e){return 0==e.level});return a.forEach(function(e){var a=t.filter(function(t){return 1==t.level&&0===t.name.indexOf(e.name)});e.subMenu=a.length?a:null}),a.concat(e)},this.shouldMenuBeCollapsed=o,this.canSidebarBeHidden=s,this.setMenuCollapsed=function(e){n=e},this.isMenuCollapsed=function(){return n},this.toggleMenuCollapsed=function(){n=!n},this.getAllStateRefsRecursive=function(e){function t(e){e.subMenu&&e.subMenu.forEach(function(e){e.stateRef&&a.push(e.stateRef),t(e)})}var a=[];return t(e),a}}return new i}],this.$get.$inject=["$state","layoutSizes"]}angular.module("app.theme.components").provider("baSidebarService",e)}(),function(){"use strict";function e(e){return{restrict:"A",link:function(t,a){a.on("click",function(a){a.originalEvent.$sidebarEventProcessed=!0,t.$apply(function(){e.toggleMenuCollapsed()})})}}}function t(e){return{restrict:"A",link:function(t,a){a.on("click",function(a){a.originalEvent.$sidebarEventProcessed=!0,e.isMenuCollapsed()||t.$apply(function(){e.setMenuCollapsed(!0)})})}}}function a(){return{restrict:"A",controller:"BaSidebarTogglingItemCtrl"}}function i(e,t,a,i,o){function s(e){return e&&l.some(function(t){return 0==e.name.indexOf(t)})}var n=this,r=n.$$menuItem=e.$eval(a.baSidebarTogglingItem);if(r&&r.subMenu&&r.subMenu.length){n.$$expandSubmenu=function(){console.warn("$$expandMenu should be overwritten by baUiSrefTogglingSubmenu")},n.$$collapseSubmenu=function(){console.warn("$$collapseSubmenu should be overwritten by baUiSrefTogglingSubmenu")};var l=o.getAllStateRefsRecursive(r);n.$expand=function(){n.$$expandSubmenu(),t.addClass("ba-sidebar-item-expanded")},n.$collapse=function(){n.$$collapseSubmenu(),t.removeClass("ba-sidebar-item-expanded")},n.$toggle=function(){t.hasClass("ba-sidebar-item-expanded")?n.$collapse():n.$expand()},s(i.current)&&t.addClass("ba-sidebar-item-expanded"),e.$on("$stateChangeStart",function(e,a){!s(a)&&t.hasClass("ba-sidebar-item-expanded")&&(n.$collapse(),t.removeClass("ba-sidebar-item-expanded"))}),e.$on("$stateChangeSuccess",function(e,a){s(a)&&!t.hasClass("ba-sidebar-item-expanded")&&(n.$expand(),t.addClass("ba-sidebar-item-expanded"))})}}function o(e){return{restrict:"A",require:"^baSidebarTogglingItem",link:function(e,t,a,i){i.$$expandSubmenu=function(){t.slideDown()},i.$$collapseSubmenu=function(){t.slideUp()}}}}function s(e){return{restrict:"A",require:"^baSidebarTogglingItem",link:function(t,a,i,o){a.on("click",function(){e.isMenuCollapsed()?(t.$apply(function(){e.setMenuCollapsed(!1)}),o.$expand()):o.$toggle()})}}}e.$inject=["baSidebarService"],t.$inject=["baSidebarService"],i.$inject=["$scope","$element","$attrs","$state","baSidebarService"],o.$inject=["$state"],s.$inject=["baSidebarService"],angular.module("app.theme.components").directive("baSidebarToggleMenu",e).directive("baSidebarCollapseMenu",t).directive("baSidebarTogglingItem",a).controller("BaSidebarTogglingItemCtrl",i).directive("baUiSrefTogglingSubmenu",o).directive("baUiSrefToggler",s)}(),function(){"use strict";function e(){return{restrict:"E",transclude:!0,templateUrl:"app/theme/components/baWizard/baWizard.html",controllerAs:"$baWizardController",controller:"baWizardCtrl",scope:{onCancel:"&"}}}angular.module("app.theme.components").directive("baWizard",e)}(),function(){"use strict";function e(e,t){function a(){i.progress=(i.tabNum+1)/i.tabs.length*100}var i=this;i.tabs=[],i.tabNum=0,i.progress=0,i.addTab=function(e){e.setPrev(i.tabs[i.tabs.length-1]),i.tabs.push(e),i.tabNum=0,i.tabs.forEach(function(e,t){0==t?e.select(!0):e.select(!1)})},i.onCancel=function(){e.onCancel({})},e.$watch(angular.bind(i,function(){return i.tabNum}),a),i.selectTab=function(e){i.tabs[i.tabNum].submit().then(function(a){a.success?(i.tabs[i.tabNum].onSubmitCallback&&i.tabs[i.tabNum].onSubmitCallback({response:a}),i.tabs[e].isAvailiable()&&(i.tabNum=e,i.tabs.forEach(function(e,t){t==i.tabNum?e.select(!0):e.select(!1)})),t.success(a.message)):t.error(a.message)})},i.isFirstTab=function(){return 0==i.tabNum},i.isLastTab=function(){return i.tabNum==i.tabs.length-1},i.nextTab=function(){i.selectTab(i.tabNum+1)},i.previousTab=function(){i.selectTab(i.tabNum-1)}}e.$inject=["$scope","toastr"],angular.module("app.theme.components").controller("baWizardCtrl",e)}(),function(){"use strict";function e(e){return{restrict:"E",transclude:!0,require:"^baWizard",scope:{form:"=",submitButtonTitle:"@",skip:"=",onNext:"&",onNextCallback:"&"},templateUrl:"app/theme/components/baWizard/baWizardStep.html",link:function(t,a,i,o){function s(e){e?t.selected=!0:t.selected=!1}function n(){return t.form&&t.form.$setSubmitted(!0),t.form&&t.form.$valid?t.onNext({form:t.form}):void(t.form&&e.error("Please enter missing fields","Invalid Form"))}function r(){return t.form?t.form.$valid:!0}function l(){return c.prevTab?c.prevTab.isComplete():!0}function d(e){c.prevTab=e}t.selected=!0;var c={onSubmitCallback:t.onNextCallback?t.onNextCallback:null,title:i.title,submitButtonTitle:t.submitButtonTitle,select:s,submit:n,isComplete:r,isAvailiable:l,prevTab:void 0,setPrev:d};o.addTab(c)}}}e.$inject=["toastr"],angular.module("app.theme.components").directive("baWizardStep",e)}(),function(){"use strict";function e(){return{restrict:"E",templateUrl:"app/theme/components/backTop/backTop.html",controller:function(){$("#backTop").backTop({position:200,speed:100})}}}angular.module("app.theme.components").directive("backTop",e)}(),function(){"use strict";function e(e,t){return{restrict:"E",templateUrl:"app/theme/components/contentTop/contentTop.html",link:function(e){e.$watch(function(){e.activePageTitle=t.current.title})}}}e.$inject=["$location","$state"],angular.module("app.theme.components").directive("contentTop",e)}(),function(){"use strict";function e(e,t){e.users={0:{name:"Vlad"},1:{name:"Kostya"},2:{name:"Andrey"},3:{name:"Nasta"}},e.notifications=[{userId:0,template:"&name posted a new article.",time:"1 min ago"},{userId:1,template:"&name changed his contact information.",time:"2 hrs ago"},{image:"assets/img/shopping-cart.svg",template:"New orders received.",time:"5 hrs ago"},{userId:2,template:"&name replied to your comment.",time:"1 day ago"},{userId:3,template:"Today is &name's birthday.",time:"2 days ago"},{image:"assets/img/comments.svg",template:"New comments on your post.",time:"3 days ago"},{userId:1,template:"&name invited you to join the event.",time:"1 week ago"}],e.messages=[{userId:3,text:"After you get up and running, you can place Font Awesome icons just about...",time:"1 min ago"},{userId:0,text:"You asked, Font Awesome delivers with 40 shiny new icons in version 4.2.",time:"2 hrs ago"},{userId:1,text:"Want to request new icons? Here's how. Need vectors or want to use on the...",time:"10 hrs ago"},{userId:2,text:"Explore your passions and discover new ones by getting involved. Stretch your...",time:"1 day ago"},{userId:3,text:"Get to know who we are - from the inside out. From our history and culture, to the...",time:"1 day ago"},{userId:1,text:"Need some support to reach your goals? Apply for scholarships across a variety of...",time:"2 days ago"},{userId:0,text:"Wrap the dropdown's trigger and the dropdown menu within .dropdown, or...",time:"1 week ago"}],e.getMessage=function(a){var i=a.template;return(a.userId||0===a.userId)&&(i=i.replace("&name","<strong>"+e.users[a.userId].name+"</strong>")),t.trustAsHtml(i)}}e.$inject=["$scope","$sce"],angular.module("app.theme.components").controller("MsgCenterCtrl",e)}(),function(){"use strict";function e(){return{restrict:"E",templateUrl:"app/theme/components/msgCenter/msgCenter.html",controller:"MsgCenterCtrl"}}angular.module("app.theme.components").directive("msgCenter",e)}(),function(){"use strict";function e(e,t){function a(a,i,o){a.goToSettings=function(){t.go("dashboard.settings.transactionStatus")},a.userData=e.getUserData(),a.logout=function(){e.logout()}}return{restrict:"E",link:a,templateUrl:"app/theme/components/pageTop/pageTop.html"}}e.$inject=["authentication","$state"],angular.module("app.theme.components").directive("pageTop",e)}(),function(){"use strict";function e(e){return{restrict:"E",templateUrl:"app/theme/components/progressBarRound/progressBarRound.html",link:function(t,a,i){function o(){var i=a.find("#loader")[0];i.setAttribute("stroke-dasharray",180*e.getProgress()*Math.PI/100+", 20000"),t.progress=e.getProgress()}t.baProgressDialog=e,t.$watch(function(){return e.getProgress()},o)}}}e.$inject=["baProgressModal"],angular.module("app.theme.components").directive("progressBarRound",e)}(),function(){"use strict";function e(){return{restrict:"EA",scope:{ngModel:"="},templateUrl:"app/theme/components/widgets/widgets.html",replace:!0}}angular.module("app.theme.components").directive("widgets",e)}(),function(){"use strict";function e(e){return function(t){return e.images.root+t}}e.$inject=["layoutPaths"],angular.module("app.theme").filter("appImage",e)}(),function(){"use strict";function e(e){return function(t){return e.images.root+"theme/icon/kameleon/"+t+".svg"}}e.$inject=["layoutPaths"],angular.module("app.theme").filter("kameleonImg",e)}(),function(){"use strict";function e(e){return function(t,a){return t?t:e.images.root+"/theme/no-picture.png"}}function t(e){return function(t,a){return t?t:e.images.root+"/theme/no-photo.png"}}function a(e){return function(t,a){return t?t:e.images.root+"/theme/no-photo.png"}}function i(e){return function(t,a){return t?t:e.images.root+"/theme/no-product.png"}}t.$inject=["layoutPaths"],i.$inject=["layoutPaths"],e.$inject=["layoutPaths"],a.$inject=["layoutPaths"],angular.module("app.theme").filter("profilePicture",t).filter("productPicture",i).filter("itemImage",e).filter("businessLogo",a)}(),function(){"use strict";function e(){return function(e){return e?String(e).replace(/<[^>]+>/gm,""):""}}angular.module("app.theme").filter("plainText",e)}(),function(){"use strict";function e(e){function t(e){for(var t,a,i=e.length;i;t=Math.floor(Math.random()*i),a=e[--i],e[i]=e[t],e[t]=a);return e}e.labels=["Sleeping","Designing","Coding","Cycling"],e.data=[20,40,5,35],e.options={segmentShowStroke:!1},e.polarOptions={scaleShowLabelBackdrop:!1,segmentShowStroke:!1},e.changeData=function(){e.data=t(e.data)}}e.$inject=["$scope"],angular.module("app.widgets.charts.chartJs").controller("chartJs1DCtrl",e)}(),function(){"use strict";function e(e){function t(e){for(var t,a,i=e.length;i;t=Math.floor(Math.random()*i),a=e[--i],e[i]=e[t],e[t]=a);return e}e.labels=["May","June","Jule","August","September","October","November"],e.data=[[65,59,90,81,56,55,40],[28,48,40,19,88,27,45]],e.series=["Product A","Product B"],e.changeData=function(){e.data[0]=t(e.data[0]),e.data[1]=t(e.data[1])}}e.$inject=["$scope"],angular.module("app.widgets.charts.chartJs").controller("chartJs2DCtrl",e)}(),function(){"use strict";function e(e,t,a){e.labels=["April","May","June","Jule","August","September","October","November","December"],e.data=[[1,9,3,4,5,6,7,8,2].map(function(e){return 25*Math.sin(e)+25})],a.start(t,function(){e.data[0].unshift(e.data[0].pop())},300)}e.$inject=["$scope","$interval","stopableInterval"],angular.module("app.widgets.charts.chartJs").controller("chartJsWaveCtrl",e)}(),function(){"use strict";function e(e,t,a){function i(e,t){return[["screen and (min-width: 1550px)",{chartPadding:e,labelOffset:t,labelDirection:"explode",labelInterpolationFnc:function(e){return e}}],["screen and (max-width: 1200px)",{chartPadding:e,labelOffset:t,labelDirection:"explode",labelInterpolationFnc:function(e){return e}}],["screen and (max-width: 600px)",{chartPadding:0,labelOffset:0,labelInterpolationFnc:function(e){return e[0]}}]]}e.simpleLineOptions={color:a.colors.defaultText,fullWidth:!0,height:"300px",chartPadding:{right:40}},e.simpleLineData={labels:["Mon","Tue","Wed","Thu","Fri"],series:[[20,20,12,45,50],[10,45,30,14,12],[34,12,12,40,50],[10,43,25,22,16],[3,6,30,33,43]]},e.areaLineData={labels:[1,2,3,4,5,6,7,8],series:[[5,9,7,8,5,3,5,4]]},e.areaLineOptions={fullWidth:!0,height:"300px",low:0,showArea:!0},e.biLineData={labels:["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],series:[[1,2,3,1,-2,0,1],[-2,-1,-2,-1,-2.5,-1,-2],[0,0,0,1,2,2.5,2],[2.5,2,1,.5,1,.5,-1]]},e.biLineOptions={height:"300px",high:3,low:-3,showArea:!0,showLine:!1,showPoint:!1,fullWidth:!0,axisX:{showGrid:!1}},e.simpleBarData={labels:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],series:[[15,24,43,27,5,10,23,44,68,50,26,8],[13,22,49,22,4,6,24,46,57,48,22,4]]},e.simpleBarOptions={fullWidth:!0,height:"300px"},e.multiBarData={labels:["Quarter 1","Quarter 2","Quarter 3","Quarter 4"],series:[[5,4,3,7],[3,2,9,5],[1,5,8,4],[2,3,4,6],[4,1,2,1]]},e.multiBarOptions={fullWidth:!0,height:"300px",stackBars:!0,axisX:{labelInterpolationFnc:function(e){return e.split(/\s+/).map(function(e){return e[0]}).join("")}},axisY:{offset:20}},e.multiBarResponsive=[["screen and (min-width: 400px)",{reverseData:!0,horizontalBars:!0,axisX:{labelInterpolationFnc:Chartist.noop},axisY:{offset:60}}],["screen and (min-width: 700px)",{stackBars:!1,reverseData:!1,horizontalBars:!1,seriesBarDistance:15}]],e.stackedBarData={labels:["Quarter 1","Quarter 2","Quarter 3","Quarter 4"],series:[[8e5,12e5,14e5,13e5],[2e5,4e5,5e5,3e5],[1e5,2e5,4e5,6e5]]},e.stackedBarOptions={fullWidth:!0,height:"300px",stackBars:!0,axisY:{labelInterpolationFnc:function(e){return e/1e3+"k"}}},e.simplePieData={series:[5,3,4]},e.simplePieOptions={fullWidth:!0,height:"300px",weight:"300px",labelInterpolationFnc:function(e){return Math.round(e/12*100)+"%"}},e.labelsPieData={labels:["Bananas","Apples","Grapes"],series:[20,15,40]},e.labelsPieOptions={fullWidth:!0,height:"300px",weight:"300px",labelDirection:"explode",labelInterpolationFnc:function(e){return e[0]}},e.simpleDonutData={labels:["Bananas","Apples","Grapes"],series:[20,15,40]},e.simpleDonutOptions={fullWidth:!0,donut:!0,height:"300px",weight:"300px",labelDirection:"explode",labelInterpolationFnc:function(e){return e[0]}},e.donutResponsive=i(5,40),e.pieResponsive=i(20,80),t(function(){new Chartist.Line("#line-chart",e.simpleLineData,e.simpleLineOptions),new Chartist.Line("#area-chart",e.areaLineData,e.areaLineOptions),new Chartist.Line("#bi-chart",e.biLineData,e.biLineOptions),new Chartist.Bar("#simple-bar",e.simpleBarData,e.simpleBarOptions),new Chartist.Bar("#multi-bar",e.multiBarData,e.multiBarOptions,e.multiBarResponsive),new Chartist.Bar("#stacked-bar",e.stackedBarData,e.stackedBarOptions),new Chartist.Pie("#simple-pie",e.simplePieData,e.simplePieOptions,e.pieResponsive),new Chartist.Pie("#label-pie",e.labelsPieData,e.labelsPieOptions),new Chartist.Pie("#donut",e.simpleDonutData,e.simpleDonutOptions,e.donutResponsive)})}e.$inject=["$scope","$timeout","baConfig"],angular.module("app.widgets.charts.chartist").controller("chartistCtrl",e)}(),function(){"use strict";function e(e,t,a){var i=a.colors;e.colors=[i.primary,i.warning,i.danger,i.info,i.success,i.primaryDark],e.lineData=[{y:"2006",a:100,b:90},{y:"2007",a:75,b:65},{y:"2008",a:50,b:40},{y:"2009",a:75,b:65},{y:"2010",a:50,b:40},{y:"2011",a:75,b:65},{y:"2012",a:100,b:90}],e.areaData=[{y:"2006",a:100,b:90},{y:"2007",a:75,b:65},{y:"2008",a:50,b:40},{y:"2009",a:75,b:65},{y:"2010",a:50,b:40},{y:"2011",a:75,b:65},{y:"2012",a:100,b:90}],e.barData=[{y:"2006",a:100,b:90},{y:"2007",a:75,b:65},{y:"2008",a:50,b:40},{y:"2009",a:75,b:65},{y:"2010",a:50,b:40},{y:"2011",a:75,b:65},{y:"2012",a:100,b:90}],e.donutData=[{label:"Download Sales",value:12},{label:"In-Store Sales",value:30},{label:"Mail-Order Sales",value:20}],angular.element(t).bind("resize",function(){})}e.$inject=["$scope","$window","baConfig"],angular.module("app.widgets.charts.morris").controller("morrisCtrl",e)}(),function(){"use strict";function e(e,t){var a=this;a.navigationCollapsed=!0,a.showCompose=function(t,a,i){e.open({subject:t,to:a,text:i})},a.tabs=t.getTabs()}e.$inject=["composeModal","mailMessages"],angular.module("app.widgets.components.mail").controller("MailTabCtrl",e)}(),function(){"use strict";function e(e){var t=[{id:"4563faass",name:"Nasta Linnie",subject:"Great text",date:"2015-08-28T07:57:09",body:e.trustAsHtml("<p>Hey John, </p><p>Check out this cool text.</p>"),pic:"img/Nasta.png",email:"petraramsey@mail.com",attachment:"poem.txt",position:"Great Employee",tag:"friend",labels:["inbox"]},{id:"4563fdfvd",name:"Nasta Linnie",subject:"Lores ipsum",date:"2015-11-19T03:30:45",important:!1,body:e.trustAsHtml("<p>Hey John, </p><br><p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Mauris ex mauris, ultrices vel lectus quis, scelerisque hendrerit ipsum. Suspendisse ullamcorper turpis neque, eget dapibus magna placerat ac. Suspendisse rhoncus ligula ac mi tempus varius ut sed lacus. Sed et commodo nulla, et placerat leo. Nam rhoncus vulputate sem non pharetra. Praesent fringilla massa in laoreet convallis. Aliquam lobortis dui a congue facilisis. Aenean dapibus semper semper. Quisque aliquam, nibh dapibus interdum condimentum, ex velit tempor tortor, at vestibulum magna leo quis leo. Morbi pulvinar varius erat ac rutrum. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; In hac habitasse platea dictumst.</p><br><p>Cras rhoncus quam ipsum, vel dignissim nisl egestas sed. Aliquam erat volutpat. Integer eu nisl elit. Donec malesuada diam vitae tellus luctus tincidunt. Donec tempus blandit neque, rutrum egestas ipsum sagittis tempor. Curabitur volutpat ligula enim, nec vehicula purus molestie at. Sed a facilisis enim, nec molestie magna. Donec in augue non est viverra dapibus vel tempus risus. Nam porttitor purus sit amet hendrerit ullamcorper. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos.</p>"),pic:"img/Nasta.png",email:"petraramsey@mail.com",position:"Great Employee",tag:"study",labels:["inbox"]},{id:"4563zxcss",name:"Nasta Linnie",subject:"Lores ipsum",date:"2015-10-19T03:30:45",important:!1,body:e.trustAsHtml("<p>Hey Nasta, </p><p>Lorem ipsum dolor sit amet, consectetur adipiscing elit</p>"),pic:"img/Nasta.png",email:"petraramsey@mail.com",position:"Great Employee",tag:"work",labels:["sent","important"]},{id:"8955sddf",name:"Nick Cat",subject:"New Design",date:"2015-05-05T12:59:45",body:e.trustAsHtml("<p>Hey John, Consectetur adipiscing elit</p><br><p>Cras rhoncus quam ipsum, vel dignissim nisl egestas sed. Aliquam erat volutpat. Integer eu nisl elit. Donec malesuada diam vitae tellus luctus tincidunt. Donec tempus blandit neque, rutrum egestas ipsum sagittis tempor. Curabitur volutpat ligula enim, nec vehicula purus molestie at. Sed a facilisis enim, nec molestie magna. Donec in augue non est viverra dapibus vel tempus risus. Nam porttitor purus sit amet hendrerit ullamcorper. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos.</p>"),pic:"img/Nick.png",email:"barlowshort@mail.com",position:"Graphical designer",attachment:"design.psd",tag:"work",labels:["inbox"]},{id:"8955sdfcc",name:"Nick Cat",subject:"Gift card",date:"2015-07-18T10:19:01",body:e.trustAsHtml("<p>Hey John, </p><br><p>Consectetur adipiscing elit, Lorem ipsum dolor sit amet</p>"),pic:"img/Nick.png",email:"barlowshort@mail.com",position:"Graphical designer",tag:"study",labels:["inbox"]},{id:"8955asewf",name:"Nick Cat",subject:"Some news",date:"2015-09-23T03:04:10",body:e.trustAsHtml("<p>Hey John, </p><br><p>Integer eu nisl elit. Donec malesuada diam vitae tellus luctus tincidunt. Donec tempus blandit neque, rutrum egestas ipsum sagittis tempor. Curabitur volutpat ligula enim, nec vehicula purus molestie at. Sed a facilisis enim, nec molestie magna. Donec in augue non est viverra dapibus vel tempus risus. Nam porttitor purus sit amet hendrerit ullamcorper. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos.</p>"),pic:"img/Nick.png",email:"barlowshort@mail.com",position:"Graphical designer",tag:"work",labels:["inbox","important"]},{id:"2334uudsa",name:"Kostya Danovsky",subject:"Street Art",date:"2015-11-22T10:05:09",body:e.trustAsHtml("<p>Hey John, </p><p>Aliquam eu facilisis eros, quis varius est.</p><p>Consectetur adipiscing elit. Aliquam sodales sem in nibh pellentesque, ac dignissim mi dapibus.</p><p>Lorem ipsum dolor sit amet! Nullam imperdiet justo a ipsum laoreet euismod.</p><br><p>Cras tincidunt fermentum lectus, quis scelerisque lorem volutpat sed.Sed quis orci sed nisl sagittis viverra id at mauris. Nam venenatis mi nibh. Sed fringilla mattis vehic</p>"),pic:"img/Kostya.png",email:"schwart@mail.com",position:"Technical Chef",attachment:"file.doc",tag:"family",labels:["inbox","important"]},{id:"2334aefvv",name:"Kostya Danovsky",subject:"New product",date:"2015-06-22T06:26:10",body:e.trustAsHtml("<p>Hello John, </p><p>Lorem ipsum dolor sit amet!</p><p>Consectetur adipiscing elit. Aliquam sodales sem in nibh pellentesque, ac dignissim mi dapibus.</p><p>Aliquam eu facilisis eros, quis varius est. Nullam imperdiet justo a ipsum laoreet euismod.</p><br><p>Nulla facilisi. Nulla congue, arcu eget blandit lacinia, leo ante ullamcorper lectus, vel pulvinar justo ipsum vitae justo.Cras tincidunt fermentum lectus, quis scelerisque lorem volutpat sed. Sed quis orci sed nisl sagittis viverra id at mauris. Nam venenatis mi nibh. Sed fringilla mattis vehic</p>"),pic:"img/Kostya.png",email:"schwart@mail.com",position:"Technical Chef",tag:"family",labels:["inbox","important"]},{id:"2334cvdss",name:"Kostya Danovsky",subject:"Old product",date:"2015-06-22T06:26:10",body:e.trustAsHtml("<p>Hello John, </p><p>Consectetur adipiscing elit. Aliquam sodales sem in nibh pellentesque, ac dignissim mi dapibus.</p><br><p>Cras tincidunt fermentum lectus, quis scelerisque lorem volutpat sed. Sed quis orci sed nisl sagittis viverra id at mauris. Nam venenatis mi nibh. Sed fringilla mattis vehic</p>"),pic:"img/Kostya.png",email:"schwart@mail.com",position:"Technical Chef",tag:"study",labels:["trash"]},{id:"8223xzxfn",name:"Andrey Hrabouski",subject:"Skype moji",date:"2015-07-16T06:47:53",body:e.trustAsHtml("<p>Hello John, </p><p>Aliquam sodales sem in nibh pellentesque</p><p>Lorem ipsum dolor I find moji in skype sit amet!.</p>"),pic:"img/Andrey.png",email:"lakeishaphillips@mail.com",position:"Mobile Developer",tag:"family",labels:["trash"]},{id:"8223sdffn",name:"Andrey Hrabouski",subject:"My App",date:"2015-06-20T07:05:02",body:e.trustAsHtml("<p>Hey Vlad. </p><p>Lorem ipsum dolor sit amet!</p><p>Consectetur My Falasson App elit. Aliquam sodales sem in nibh pellentesque, ac dignissim mi dapibus.</p>"),pic:"img/Andrey.png",email:"lakeishaphillips@mail.com",position:"Mobile Developer",tag:"family",labels:["spam"]},{id:"9391xdsff",name:"Vlad Lugovsky",subject:"Cool",date:"2015-03-31T11:52:58",body:e.trustAsHtml("<p>Hey Vlad. </p><p>Aliquam sodales sem in nibh pellentesque</p><p>Cras tincidunt fermentum lectus, quis scelerisque lorem volutpat sed.</p>"),pic:"img/Vlad.png",email:"carlsongoodman@mail.com",position:"Fullstack man",tag:"study",labels:["draft"]},{id:"8223xsdaa",name:"Andrey Hrabouski",subject:"Car rent",date:"2015-02-25T10:58:58",body:e.trustAsHtml("<p>Hey Andrey. </p><p>Cras tincidunt fermentum lectus, quis scelerisque lorem volutpat sed. Sed quis orci sed nisl sagittis viverra id at mauris. Nam venenatis mi nibh. Sed fringilla mattis vehic</p>"),pic:"img/Andrey.png",email:"lakeishaphillips@mail.com",position:"Mobile Developer",tag:"family",labels:["draft"]},{id:"9391xdsff",name:"Vlad Lugovsky",subject:"What next",date:"2015-03-31T11:52:58",body:e.trustAsHtml("<p>Hey Vlad. </p><p>Lorem ipsum dolor sit amet!</p><p>Esse esse labore tempor ullamco ullamco. Id veniam laborum c.</p>"),pic:"img/Vlad.png",email:"carlsongoodman@mail.com",position:"Fullstack man",tag:"study",labels:["sent"]}].sort(function(e,t){return e.date>t.date?1:e.date<t.date?-1:void 0}).reverse(),a=[{label:"inbox",name:"Inbox",newMails:7},{label:"sent",name:"Sent Mail"},{label:"important",name:"Important"},{label:"draft",name:"Draft",newMails:2},{label:"spam",name:"Spam"},{label:"trash",name:"Trash"}];return{getTabs:function(){return a},getMessagesByLabel:function(e){return t.filter(function(t){return-1!=t.labels.indexOf(e)})},getMessageById:function(e){return t.filter(function(t){return t.id==e})[0]}}}e.$inject=["$sce"],angular.module("app.widgets.components.mail").service("mailMessages",e)}(),function(){"use strict";function e(){function e(e,t){e.each(function(){$(this).offset().top>$(window).scrollTop()+$(window).height()*t&&$(this).find(".cd-timeline-img, .cd-timeline-content").addClass("is-hidden")})}function t(e,t){e.each(function(){$(this).offset().top<=$(window).scrollTop()+$(window).height()*t&&$(this).find(".cd-timeline-img").hasClass("is-hidden")&&$(this).find(".cd-timeline-img, .cd-timeline-content").removeClass("is-hidden").addClass("bounce-in")})}var a=$(".cd-timeline-block"),i=.8;e(a,i),$(window).on("scroll",function(){window.requestAnimationFrame?window.requestAnimationFrame(function(){t(a,i)}):setTimeout(function(){t(a,i)},100)})}angular.module("app.widgets.components.timeline").controller("TimelineCtrl",e)}(),function(){"use strict";function e(e,t){function a(){return[{id:"n1",parent:"#",type:"folder",text:"Node 1",state:{opened:!0}},{id:"n2",parent:"#",type:"folder",text:"Node 2",state:{opened:!0}},{id:"n3",parent:"#",type:"folder",text:"Node 3",state:{opened:!0}},{id:"n5",parent:"n1",text:"Node 1.1",state:{opened:!0}},{id:"n6",parent:"n1",text:"Node 1.2",state:{opened:!0}},{id:"n7",parent:"n1",text:"Node 1.3",state:{opened:!0}},{id:"n8",parent:"n1",text:"Node 1.4",state:{opened:!0}},{id:"n9",parent:"n2",text:"Node 2.1",state:{opened:!0}},{id:"n10",parent:"n2",text:"Node 2.2 (Custom icon)",icon:"ion-help-buoy",state:{opened:!0}},{id:"n12",parent:"n3",text:"Node 3.1",state:{opened:!0}},{id:"n13",parent:"n3",type:"folder",text:"Node 3.2",state:{opened:!0}},{id:"n14",parent:"n13",text:"Node 3.2.1",state:{opened:!0}},{id:"n15",parent:"n13",text:"Node 3.2.2",state:{opened:!0}},{id:"n16",parent:"n3",text:"Node 3.3",state:{opened:!0}},{id:"n17",parent:"n3",text:"Node 3.4",state:{opened:!0}},{id:"n18",parent:"n3",text:"Node 3.5",state:{opened:!0}},{id:"n19",parent:"n3",text:"Node 3.6",state:{opened:!0}}]}e.ignoreChanges=!1;var i=0;e.ignoreChanges=!1,e.newNode={},e.basicConfig={core:{multiple:!1,check_callback:!0,worker:!0},types:{folder:{icon:"ion-ios-folder"},"default":{icon:"ion-document-text"}},plugins:["types"],version:1},e.dragConfig={core:{check_callback:!0,themes:{responsive:!1}},types:{folder:{icon:"ion-ios-folder"},"default":{icon:"ion-document-text"}},plugins:["dnd","types"]},e.addNewNode=function(){e.ignoreChanges=!0;var t=this.basicTree.jstree(!0).get_selected()[0];t&&e.treeData.push({id:(i++).toString(),parent:t,text:"New node "+i,state:{opened:!0}}),e.basicConfig.version++},e.refresh=function(){e.ignoreChanges=!0,i=0,e.treeData=a(),e.basicConfig.version++},e.expand=function(){e.ignoreChanges=!0,e.treeData.forEach(function(e){e.state.opened=!0}),e.basicConfig.version++},e.collapse=function(){e.ignoreChanges=!0,e.treeData.forEach(function(e){e.state.opened=!1}),e.basicConfig.version++},e.readyCB=function(){t(function(){e.ignoreChanges=!1})},e.applyModelChanges=function(){return!e.ignoreChanges},e.treeData=a(),e.dragData=[{id:"nd1",parent:"#",type:"folder",text:"Node 1",state:{opened:!0}},{id:"nd2",parent:"#",type:"folder",text:"Node 2",state:{opened:!0}},{id:"nd3",parent:"#",type:"folder",text:"Node 3",state:{opened:!0}},{id:"nd4",parent:"#",type:"folder",text:"Node 4",state:{opened:!0}},{id:"nd5",parent:"nd1",text:"Node 1.1",state:{opened:!0}},{id:"nd6",parent:"nd1",text:"Node 1.2",state:{opened:!0}},{id:"nd7",parent:"nd1",text:"Node 1.3",state:{opened:!0}},{id:"nd8",parent:"nd2",text:"Node 2.1",state:{opened:!0}},{id:"nd9",parent:"nd2",text:"Node 2.2",state:{opened:!0}},{
id:"nd10",parent:"nd2",text:"Node 2.3",state:{opened:!0}},{id:"nd11",parent:"nd3",text:"Node 3.1",state:{opened:!0}},{id:"nd12",parent:"nd3",text:"Node 3.2",state:{opened:!0}},{id:"nd13",parent:"nd3",text:"Node 3.3",state:{opened:!0}},{id:"nd14",parent:"nd4",text:"Node 4.1",state:{opened:!0}},{id:"nd15",parent:"nd4",text:"Node 4.2",state:{opened:!0}},{id:"nd16",parent:"nd4",text:"Node 4.3",state:{opened:!0}}]}e.$inject=["$scope","$timeout"],angular.module("app.widgets.components.tree").controller("treeCtrl",e)}(),function(){"use strict";function e(e){var t=this;t.personalInfo={},t.productInfo={},t.shipment={},t.arePersonalInfoPasswordsEqual=function(){return t.personalInfo.confirmPassword&&t.personalInfo.password==t.personalInfo.confirmPassword}}e.$inject=["$scope"],angular.module("app.widgets.form").controller("WizardCtrl",e)}(),function(){"use strict";function e(e){function t(){var e=document.getElementById("google-maps"),t={center:new google.maps.LatLng(44.5403,-78.5463),zoom:8,mapTypeId:google.maps.MapTypeId.ROADMAP};new google.maps.Map(e,t)}e(function(){t()},100)}e.$inject=["$timeout"],angular.module("app.widgets.maps").controller("GmapPageCtrl",e)}(),function(){"use strict";function e(e){function t(){L.Icon.Default.imagePath="assets/img/theme/vendor/leaflet/dist/images";var e=L.map(document.getElementById("leaflet-map")).setView([51.505,-.09],13);L.tileLayer("http://{s}.tile.osm.org/{z}/{x}/{y}.png",{attribution:'&copy; <a href="http://osm.org/copyright">OpenStreetMap</a> contributors'}).addTo(e),L.marker([51.5,-.09]).addTo(e).bindPopup("A pretty CSS3 popup.<br> Easily customizable.").openPopup()}e(function(){t()},100)}e.$inject=["$timeout"],angular.module("app.widgets.maps").controller("LeafletPageCtrl",e)}(),function(){"use strict";function e(e,t,a){var i=e.colors,o={};o.AD={latitude:42.5,longitude:1.5},o.AE={latitude:24,longitude:54},o.AF={latitude:33,longitude:65},o.AG={latitude:17.05,longitude:-61.8},o.AI={latitude:18.25,longitude:-63.1667},o.AL={latitude:41,longitude:20},o.AM={latitude:40,longitude:45},o.AN={latitude:12.25,longitude:-68.75},o.AO={latitude:-12.5,longitude:18.5},o.AP={latitude:35,longitude:105},o.AQ={latitude:-90,longitude:0},o.AR={latitude:-34,longitude:-64},o.AS={latitude:-14.3333,longitude:-170},o.AT={latitude:47.3333,longitude:13.3333},o.AU={latitude:-27,longitude:133},o.AW={latitude:12.5,longitude:-69.9667},o.AZ={latitude:40.5,longitude:47.5},o.BA={latitude:44,longitude:18},o.BB={latitude:13.1667,longitude:-59.5333},o.BD={latitude:24,longitude:90},o.BE={latitude:50.8333,longitude:4},o.BF={latitude:13,longitude:-2},o.BG={latitude:43,longitude:25},o.BH={latitude:26,longitude:50.55},o.BI={latitude:-3.5,longitude:30},o.BJ={latitude:9.5,longitude:2.25},o.BM={latitude:32.3333,longitude:-64.75},o.BN={latitude:4.5,longitude:114.6667},o.BO={latitude:-17,longitude:-65},o.BR={latitude:-10,longitude:-55},o.BS={latitude:24.25,longitude:-76},o.BT={latitude:27.5,longitude:90.5},o.BV={latitude:-54.4333,longitude:3.4},o.BW={latitude:-22,longitude:24},o.BY={latitude:53,longitude:28},o.BZ={latitude:17.25,longitude:-88.75},o.CA={latitude:54,longitude:-100},o.CC={latitude:-12.5,longitude:96.8333},o.CD={latitude:0,longitude:25},o.CF={latitude:7,longitude:21},o.CG={latitude:-1,longitude:15},o.CH={latitude:47,longitude:8},o.CI={latitude:8,longitude:-5},o.CK={latitude:-21.2333,longitude:-159.7667},o.CL={latitude:-30,longitude:-71},o.CM={latitude:6,longitude:12},o.CN={latitude:35,longitude:105},o.CO={latitude:4,longitude:-72},o.CR={latitude:10,longitude:-84},o.CU={latitude:21.5,longitude:-80},o.CV={latitude:16,longitude:-24},o.CX={latitude:-10.5,longitude:105.6667},o.CY={latitude:35,longitude:33},o.CZ={latitude:49.75,longitude:15.5},o.DE={latitude:51,longitude:9},o.DJ={latitude:11.5,longitude:43},o.DK={latitude:56,longitude:10},o.DM={latitude:15.4167,longitude:-61.3333},o.DO={latitude:19,longitude:-70.6667},o.DZ={latitude:28,longitude:3},o.EC={latitude:-2,longitude:-77.5},o.EE={latitude:59,longitude:26},o.EG={latitude:27,longitude:30},o.EH={latitude:24.5,longitude:-13},o.ER={latitude:15,longitude:39},o.ES={latitude:40,longitude:-4},o.ET={latitude:8,longitude:38},o.EU={latitude:47,longitude:8},o.FI={latitude:62,longitude:26},o.FJ={latitude:-18,longitude:175},o.FK={latitude:-51.75,longitude:-59},o.FM={latitude:6.9167,longitude:158.25},o.FO={latitude:62,longitude:-7},o.FR={latitude:46,longitude:2},o.GA={latitude:-1,longitude:11.75},o.GB={latitude:54,longitude:-2},o.GD={latitude:12.1167,longitude:-61.6667},o.GE={latitude:42,longitude:43.5},o.GF={latitude:4,longitude:-53},o.GH={latitude:8,longitude:-2},o.GI={latitude:36.1833,longitude:-5.3667},o.GL={latitude:72,longitude:-40},o.GM={latitude:13.4667,longitude:-16.5667},o.GN={latitude:11,longitude:-10},o.GP={latitude:16.25,longitude:-61.5833},o.GQ={latitude:2,longitude:10},o.GR={latitude:39,longitude:22},o.GS={latitude:-54.5,longitude:-37},o.GT={latitude:15.5,longitude:-90.25},o.GU={latitude:13.4667,longitude:144.7833},o.GW={latitude:12,longitude:-15},o.GY={latitude:5,longitude:-59},o.HK={latitude:22.25,longitude:114.1667},o.HM={latitude:-53.1,longitude:72.5167},o.HN={latitude:15,longitude:-86.5},o.HR={latitude:45.1667,longitude:15.5},o.HT={latitude:19,longitude:-72.4167},o.HU={latitude:47,longitude:20},o.ID={latitude:-5,longitude:120},o.IE={latitude:53,longitude:-8},o.IL={latitude:31.5,longitude:34.75},o.IN={latitude:20,longitude:77},o.IO={latitude:-6,longitude:71.5},o.IQ={latitude:33,longitude:44},o.IR={latitude:32,longitude:53},o.IS={latitude:65,longitude:-18},o.IT={latitude:42.8333,longitude:12.8333},o.JM={latitude:18.25,longitude:-77.5},o.JO={latitude:31,longitude:36},o.JP={latitude:36,longitude:138},o.KE={latitude:1,longitude:38},o.KG={latitude:41,longitude:75},o.KH={latitude:13,longitude:105},o.KI={latitude:1.4167,longitude:173},o.KM={latitude:-12.1667,longitude:44.25},o.KN={latitude:17.3333,longitude:-62.75},o.KP={latitude:40,longitude:127},o.KR={latitude:37,longitude:127.5},o.KW={latitude:29.3375,longitude:47.6581},o.KY={latitude:19.5,longitude:-80.5},o.KZ={latitude:48,longitude:68},o.LA={latitude:18,longitude:105},o.LB={latitude:33.8333,longitude:35.8333},o.LC={latitude:13.8833,longitude:-61.1333},o.LI={latitude:47.1667,longitude:9.5333},o.LK={latitude:7,longitude:81},o.LR={latitude:6.5,longitude:-9.5},o.LS={latitude:-29.5,longitude:28.5},o.LT={latitude:55,longitude:24},o.LU={latitude:49.75,longitude:6},o.LV={latitude:57,longitude:25},o.LY={latitude:25,longitude:17},o.MA={latitude:32,longitude:-5},o.MC={latitude:43.7333,longitude:7.4},o.MD={latitude:47,longitude:29},o.ME={latitude:42.5,longitude:19.4},o.MG={latitude:-20,longitude:47},o.MH={latitude:9,longitude:168},o.MK={latitude:41.8333,longitude:22},o.ML={latitude:17,longitude:-4},o.MM={latitude:22,longitude:98},o.MN={latitude:46,longitude:105},o.MO={latitude:22.1667,longitude:113.55},o.MP={latitude:15.2,longitude:145.75},o.MQ={latitude:14.6667,longitude:-61},o.MR={latitude:20,longitude:-12},o.MS={latitude:16.75,longitude:-62.2},o.MT={latitude:35.8333,longitude:14.5833},o.MU={latitude:-20.2833,longitude:57.55},o.MV={latitude:3.25,longitude:73},o.MW={latitude:-13.5,longitude:34},o.MX={latitude:23,longitude:-102},o.MY={latitude:2.5,longitude:112.5},o.MZ={latitude:-18.25,longitude:35},o.NA={latitude:-22,longitude:17},o.NC={latitude:-21.5,longitude:165.5},o.NE={latitude:16,longitude:8},o.NF={latitude:-29.0333,longitude:167.95},o.NG={latitude:10,longitude:8},o.NI={latitude:13,longitude:-85},o.NL={latitude:52.5,longitude:5.75},o.NO={latitude:62,longitude:10},o.NP={latitude:28,longitude:84},o.NR={latitude:-.5333,longitude:166.9167},o.NU={latitude:-19.0333,longitude:-169.8667},o.NZ={latitude:-41,longitude:174},o.OM={latitude:21,longitude:57},o.PA={latitude:9,longitude:-80},o.PE={latitude:-10,longitude:-76},o.PF={latitude:-15,longitude:-140},o.PG={latitude:-6,longitude:147},o.PH={latitude:13,longitude:122},o.PK={latitude:30,longitude:70},o.PL={latitude:52,longitude:20},o.PM={latitude:46.8333,longitude:-56.3333},o.PR={latitude:18.25,longitude:-66.5},o.PS={latitude:32,longitude:35.25},o.PT={latitude:39.5,longitude:-8},o.PW={latitude:7.5,longitude:134.5},o.PY={latitude:-23,longitude:-58},o.QA={latitude:25.5,longitude:51.25},o.RE={latitude:-21.1,longitude:55.6},o.RO={latitude:46,longitude:25},o.RS={latitude:44,longitude:21},o.RU={latitude:60,longitude:100},o.RW={latitude:-2,longitude:30},o.SA={latitude:25,longitude:45},o.SB={latitude:-8,longitude:159},o.SC={latitude:-4.5833,longitude:55.6667},o.SD={latitude:15,longitude:30},o.SE={latitude:62,longitude:15},o.SG={latitude:1.3667,longitude:103.8},o.SH={latitude:-15.9333,longitude:-5.7},o.SI={latitude:46,longitude:15},o.SJ={latitude:78,longitude:20},o.SK={latitude:48.6667,longitude:19.5},o.SL={latitude:8.5,longitude:-11.5},o.SM={latitude:43.7667,longitude:12.4167},o.SN={latitude:14,longitude:-14},o.SO={latitude:10,longitude:49},o.SR={latitude:4,longitude:-56},o.ST={latitude:1,longitude:7},o.SV={latitude:13.8333,longitude:-88.9167},o.SY={latitude:35,longitude:38},o.SZ={latitude:-26.5,longitude:31.5},o.TC={latitude:21.75,longitude:-71.5833},o.TD={latitude:15,longitude:19},o.TF={latitude:-43,longitude:67},o.TG={latitude:8,longitude:1.1667},o.TH={latitude:15,longitude:100},o.TJ={latitude:39,longitude:71},o.TK={latitude:-9,longitude:-172},o.TM={latitude:40,longitude:60},o.TN={latitude:34,longitude:9},o.TO={latitude:-20,longitude:-175},o.TR={latitude:39,longitude:35},o.TT={latitude:11,longitude:-61},o.TV={latitude:-8,longitude:178},o.TW={latitude:23.5,longitude:121},o.TZ={latitude:-6,longitude:35},o.UA={latitude:49,longitude:32},o.UG={latitude:1,longitude:32},o.UM={latitude:19.2833,longitude:166.6},o.US={latitude:38,longitude:-97},o.UY={latitude:-33,longitude:-56},o.UZ={latitude:41,longitude:64},o.VA={latitude:41.9,longitude:12.45},o.VC={latitude:13.25,longitude:-61.2},o.VE={latitude:8,longitude:-66},o.VG={latitude:18.5,longitude:-64.5},o.VI={latitude:18.3333,longitude:-64.8333},o.VN={latitude:16,longitude:106},o.VU={latitude:-16,longitude:167},o.WF={latitude:-13.3,longitude:-176.2},o.WS={latitude:-13.5833,longitude:-172.3333},o.YE={latitude:15,longitude:48},o.YT={latitude:-12.8333,longitude:45.1667},o.ZA={latitude:-29,longitude:24},o.ZM={latitude:-15,longitude:30},o.ZW={latitude:-20,longitude:30};for(var s,n=[{code:"AF",name:"Afghanistan",value:32358260,color:i.primaryDark},{code:"AL",name:"Albania",value:3215988,color:i.warning},{code:"DZ",name:"Algeria",value:35980193,color:i.danger},{code:"AO",name:"Angola",value:19618432,color:i.danger},{code:"AR",name:"Argentina",value:40764561,color:i.success},{code:"AM",name:"Armenia",value:3100236,color:i.warning},{code:"AU",name:"Australia",value:22605732,color:i.warningDark},{code:"AT",name:"Austria",value:8413429,color:i.warning},{code:"AZ",name:"Azerbaijan",value:9306023,color:i.warning},{code:"BH",name:"Bahrain",value:1323535,color:i.primaryDark},{code:"BD",name:"Bangladesh",value:150493658,color:i.primaryDark},{code:"BY",name:"Belarus",value:9559441,color:i.warning},{code:"BE",name:"Belgium",value:10754056,color:i.warning},{code:"BJ",name:"Benin",value:9099922,color:i.danger},{code:"BT",name:"Bhutan",value:738267,color:i.primaryDark},{code:"BO",name:"Bolivia",value:10088108,color:i.success},{code:"BA",name:"Bosnia and Herzegovina",value:3752228,color:i.warning},{code:"BW",name:"Botswana",value:2030738,color:i.danger},{code:"BR",name:"Brazil",value:196655014,color:i.success},{code:"BN",name:"Brunei",value:405938,color:i.primaryDark},{code:"BG",name:"Bulgaria",value:7446135,color:i.warning},{code:"BF",name:"Burkina Faso",value:16967845,color:i.danger},{code:"BI",name:"Burundi",value:8575172,color:i.danger},{code:"KH",name:"Cambodia",value:14305183,color:i.primaryDark},{code:"CM",name:"Cameroon",value:20030362,color:i.danger},{code:"CA",name:"Canada",value:34349561,color:i.primary},{code:"CV",name:"Cape Verde",value:500585,color:i.danger},{code:"CF",name:"Central African Rep.",value:4486837,color:i.danger},{code:"TD",name:"Chad",value:11525496,color:i.danger},{code:"CL",name:"Chile",value:17269525,color:i.success},{code:"CN",name:"China",value:1347565324,color:i.primaryDark},{code:"CO",name:"Colombia",value:46927125,color:i.success},{code:"KM",name:"Comoros",value:753943,color:i.danger},{code:"CD",name:"Congo, Dem. Rep.",value:67757577,color:i.danger},{code:"CG",name:"Congo, Rep.",value:4139748,color:i.danger},{code:"CR",name:"Costa Rica",value:4726575,color:i.primary},{code:"CI",name:"Cote d'Ivoire",value:20152894,color:i.danger},{code:"HR",name:"Croatia",value:4395560,color:i.warning},{code:"CU",name:"Cuba",value:11253665,color:i.primary},{code:"CY",name:"Cyprus",value:1116564,color:i.warning},{code:"CZ",name:"Czech Rep.",value:10534293,color:i.warning},{code:"DK",name:"Denmark",value:5572594,color:i.warning},{code:"DJ",name:"Djibouti",value:905564,color:i.danger},{code:"DO",name:"Dominican Rep.",value:10056181,color:i.primary},{code:"EC",name:"Ecuador",value:14666055,color:i.success},{code:"EG",name:"Egypt",value:82536770,color:i.danger},{code:"SV",name:"El Salvador",value:6227491,color:i.primary},{code:"GQ",name:"Equatorial Guinea",value:720213,color:i.danger},{code:"ER",name:"Eritrea",value:5415280,color:i.danger},{code:"EE",name:"Estonia",value:1340537,color:i.warning},{code:"ET",name:"Ethiopia",value:84734262,color:i.danger},{code:"FJ",name:"Fiji",value:868406,color:i.warningDark},{code:"FI",name:"Finland",value:5384770,color:i.warning},{code:"FR",name:"France",value:63125894,color:i.warning},{code:"GA",name:"Gabon",value:1534262,color:i.danger},{code:"GM",name:"Gambia",value:1776103,color:i.danger},{code:"GE",name:"Georgia",value:4329026,color:i.warning},{code:"DE",name:"Germany",value:82162512,color:i.warning},{code:"GH",name:"Ghana",value:24965816,color:i.danger},{code:"GR",name:"Greece",value:11390031,color:i.warning},{code:"GT",name:"Guatemala",value:14757316,color:i.primary},{code:"GN",name:"Guinea",value:10221808,color:i.danger},{code:"GW",name:"Guinea-Bissau",value:1547061,color:i.danger},{code:"GY",name:"Guyana",value:756040,color:i.success},{code:"HT",name:"Haiti",value:10123787,color:i.primary},{code:"HN",name:"Honduras",value:7754687,color:i.primary},{code:"HK",name:"Hong Kong, China",value:7122187,color:i.primaryDark},{code:"HU",name:"Hungary",value:9966116,color:i.warning},{code:"IS",name:"Iceland",value:324366,color:i.warning},{code:"IN",name:"India",value:1241491960,color:i.primaryDark},{code:"ID",name:"Indonesia",value:242325638,color:i.primaryDark},{code:"IR",name:"Iran",value:74798599,color:i.primaryDark},{code:"IQ",name:"Iraq",value:32664942,color:i.primaryDark},{code:"IE",name:"Ireland",value:4525802,color:i.warning},{code:"IL",name:"Israel",value:7562194,color:i.primaryDark},{code:"IT",name:"Italy",value:60788694,color:i.warning},{code:"JM",name:"Jamaica",value:2751273,color:i.primary},{code:"JP",name:"Japan",value:126497241,color:i.primaryDark},{code:"JO",name:"Jordan",value:6330169,color:i.primaryDark},{code:"KZ",name:"Kazakhstan",value:16206750,color:i.primaryDark},{code:"KE",name:"Kenya",value:41609728,color:i.danger},{code:"KP",name:"Korea, Dem. Rep.",value:24451285,color:i.primaryDark},{code:"KR",name:"Korea, Rep.",value:48391343,color:i.primaryDark},{code:"KW",name:"Kuwait",value:2818042,color:i.primaryDark},{code:"KG",name:"Kyrgyzstan",value:5392580,color:i.primaryDark},{code:"LA",name:"Laos",value:6288037,color:i.primaryDark},{code:"LV",name:"Latvia",value:2243142,color:i.warning},{code:"LB",name:"Lebanon",value:4259405,color:i.primaryDark},{code:"LS",name:"Lesotho",value:2193843,color:i.danger},{code:"LR",name:"Liberia",value:4128572,color:i.danger},{code:"LY",name:"Libya",value:6422772,color:i.danger},{code:"LT",name:"Lithuania",value:3307481,color:i.warning},{code:"LU",name:"Luxembourg",value:515941,color:i.warning},{code:"MK",name:"Macedonia, FYR",value:2063893,color:i.warning},{code:"MG",name:"Madagascar",value:21315135,color:i.danger},{code:"MW",name:"Malawi",value:15380888,color:i.danger},{code:"MY",name:"Malaysia",value:28859154,color:i.primaryDark},{code:"ML",name:"Mali",value:15839538,color:i.danger},{code:"MR",name:"Mauritania",value:3541540,color:i.danger},{code:"MU",name:"Mauritius",value:1306593,color:i.danger},{code:"MX",name:"Mexico",value:114793341,color:i.primary},{code:"MD",name:"Moldova",value:3544864,color:i.warning},{code:"MN",name:"Mongolia",value:2800114,color:i.primaryDark},{code:"ME",name:"Montenegro",value:632261,color:i.warning},{code:"MA",name:"Morocco",value:32272974,color:i.danger},{code:"MZ",name:"Mozambique",value:23929708,color:i.danger},{code:"MM",name:"Myanmar",value:48336763,color:i.primaryDark},{code:"NA",name:"Namibia",value:2324004,color:i.danger},{code:"NP",name:"Nepal",value:30485798,color:i.primaryDark},{code:"NL",name:"Netherlands",value:16664746,color:i.warning},{code:"NZ",name:"New Zealand",value:4414509,color:i.warningDark},{code:"NI",name:"Nicaragua",value:5869859,color:i.primary},{code:"NE",name:"Niger",value:16068994,color:i.danger},{code:"NG",name:"Nigeria",value:162470737,color:i.danger},{code:"NO",name:"Norway",value:4924848,color:i.warning},{code:"OM",name:"Oman",value:2846145,color:i.primaryDark},{code:"PK",name:"Pakistan",value:176745364,color:i.primaryDark},{code:"PA",name:"Panama",value:3571185,color:i.primary},{code:"PG",name:"Papua New Guinea",value:7013829,color:i.warningDark},{code:"PY",name:"Paraguay",value:6568290,color:i.success},{code:"PE",name:"Peru",value:29399817,color:i.success},{code:"PH",name:"Philippines",value:94852030,color:i.primaryDark},{code:"PL",name:"Poland",value:38298949,color:i.warning},{code:"PT",name:"Portugal",value:10689663,color:i.warning},{code:"PR",name:"Puerto Rico",value:3745526,color:i.primary},{code:"QA",name:"Qatar",value:1870041,color:i.primaryDark},{code:"RO",name:"Romania",value:21436495,color:i.warning},{code:"RU",name:"Russia",value:142835555,color:i.warning},{code:"RW",name:"Rwanda",value:10942950,color:i.danger},{code:"SA",name:"Saudi Arabia",value:28082541,color:i.primaryDark},{code:"SN",name:"Senegal",value:12767556,color:i.danger},{code:"RS",name:"Serbia",value:9853969,color:i.warning},{code:"SL",name:"Sierra Leone",value:5997486,color:i.danger},{code:"SG",name:"Singapore",value:5187933,color:i.primaryDark},{code:"SK",name:"Slovak Republic",value:5471502,color:i.warning},{code:"SI",name:"Slovenia",value:2035012,color:i.warning},{code:"SB",name:"Solomon Islands",value:552267,color:i.warningDark},{code:"SO",name:"Somalia",value:9556873,color:i.danger},{code:"ZA",name:"South Africa",value:50459978,color:i.danger},{code:"ES",name:"Spain",value:46454895,color:i.warning},{code:"LK",name:"Sri Lanka",value:21045394,color:i.primaryDark},{code:"SD",name:"Sudan",value:34735288,color:i.danger},{code:"SR",name:"Suriname",value:529419,color:i.success},{code:"SZ",name:"Swaziland",value:1203330,color:i.danger},{code:"SE",name:"Sweden",value:9440747,color:i.warning},{code:"CH",name:"Switzerland",value:7701690,color:i.warning},{code:"SY",name:"Syria",value:20766037,color:i.primaryDark},{code:"TW",name:"Taiwan",value:23072e3,color:i.primaryDark},{code:"TJ",name:"Tajikistan",value:6976958,color:i.primaryDark},{code:"TZ",name:"Tanzania",value:46218486,color:i.danger},{code:"TH",name:"Thailand",value:69518555,color:i.primaryDark},{code:"TG",name:"Togo",value:6154813,color:i.danger},{code:"TT",name:"Trinidad and Tobago",value:1346350,color:i.primary},{code:"TN",name:"Tunisia",value:10594057,color:i.danger},{code:"TR",name:"Turkey",value:73639596,color:i.warning},{code:"TM",name:"Turkmenistan",value:5105301,color:i.primaryDark},{code:"UG",name:"Uganda",value:34509205,color:i.danger},{code:"UA",name:"Ukraine",value:45190180,color:i.warning},{code:"AE",name:"United Arab Emirates",value:7890924,color:i.primaryDark},{code:"GB",name:"United Kingdom",value:62417431,color:i.warning},{code:"US",name:"United States",value:313085380,color:i.primary},{code:"UY",name:"Uruguay",value:3380008,color:i.success},{code:"UZ",name:"Uzbekistan",value:27760267,color:i.primaryDark},{code:"VE",name:"Venezuela",value:29436891,color:i.success},{code:"PS",name:"West Bank and Gaza",value:4152369,color:i.primaryDark},{code:"VN",name:"Vietnam",value:88791996,color:i.primaryDark},{code:"YE",name:"Yemen, Rep.",value:24799880,color:i.primaryDark},{code:"ZM",name:"Zambia",value:13474959,color:i.danger},{code:"ZW",name:"Zimbabwe",value:12754378,color:i.danger}],r=3,l=70,d=1/0,c=-(1/0),u=0;u<n.length;u++){var p=n[u].value;d>p&&(d=p),p>c&&(c=p)}AmCharts.theme=AmCharts.themes.blur,s=new AmCharts.AmMap,s.addTitle("Population of the World in 2011",14),s.addTitle("source: Gapminder",11),s.areasSettings={unlistedAreasColor:"#000000",unlistedAreasAlpha:.1},s.imagesSettings.balloonText='<span style="font-size:14px;"><b>[[title]]</b>: [[value]]</span>',s.pathToImages=a.images.amMap;for(var m={mapVar:AmCharts.maps.worldLow,images:[]},g=l*l*2*Math.PI,v=r*r*2*Math.PI,u=0;u<n.length;u++){var b=n[u],p=b.value,h=(p-d)/(c-d)*(g-v)+v;v>h&&(h=v);var f=Math.sqrt(h/(2*Math.PI)),w=b.code;m.images.push({type:"circle",width:f,height:f,color:b.color,longitude:o[w].longitude,latitude:o[w].latitude,title:b.name,value:p})}s.dataProvider=m,s["export"]={enabled:!0},t(function(){s.write("map-bubbles")},100)}e.$inject=["baConfig","$timeout","layoutPaths"],angular.module("app.widgets.maps").controller("MapBubblePageCtrl",e)}(),function(){"use strict";function e(e,t,a){var i=e.colors,o="M9,0C4.029,0,0,4.029,0,9s4.029,9,9,9s9-4.029,9-9S13.971,0,9,0z M9,15.93 c-3.83,0-6.93-3.1-6.93-6.93S5.17,2.07,9,2.07s6.93,3.1,6.93,6.93S12.83,15.93,9,15.93 M12.5,9c0,1.933-1.567,3.5-3.5,3.5S5.5,10.933,5.5,9S7.067,5.5,9,5.5 S12.5,7.067,12.5,9z",s="M19.671,8.11l-2.777,2.777l-3.837-0.861c0.362-0.505,0.916-1.683,0.464-2.135c-0.518-0.517-1.979,0.278-2.305,0.604l-0.913,0.913L7.614,8.804l-2.021,2.021l2.232,1.061l-0.082,0.082l1.701,1.701l0.688-0.687l3.164,1.504L9.571,18.21H6.413l-1.137,1.138l3.6,0.948l1.83,1.83l0.947,3.598l1.137-1.137V21.43l3.725-3.725l1.504,3.164l-0.687,0.687l1.702,1.701l0.081-0.081l1.062,2.231l2.02-2.02l-0.604-2.689l0.912-0.912c0.326-0.326,1.121-1.789,0.604-2.306c-0.452-0.452-1.63,0.101-2.135,0.464l-0.861-3.838l2.777-2.777c0.947-0.947,3.599-4.862,2.62-5.839C24.533,4.512,20.618,7.163,19.671,8.11z";t(function(){AmCharts.makeChart("map-lines",{type:"map",theme:"blur",dataProvider:{map:"worldLow",linkToObject:"london",images:[{id:"london",svgPath:o,title:"London",latitude:51.5002,longitude:-.1262,scale:1.5,zoomLevel:2.74,zoomLongitude:-20.1341,zoomLatitude:49.1712,lines:[{latitudes:[51.5002,50.4422],longitudes:[-.1262,30.5367]},{latitudes:[51.5002,46.948],longitudes:[-.1262,7.4481]},{latitudes:[51.5002,59.3328],longitudes:[-.1262,18.0645]},{latitudes:[51.5002,40.4167],longitudes:[-.1262,-3.7033]},{latitudes:[51.5002,46.0514],longitudes:[-.1262,14.506]},{latitudes:[51.5002,48.2116],longitudes:[-.1262,17.1547]},{latitudes:[51.5002,44.8048],longitudes:[-.1262,20.4781]},{latitudes:[51.5002,55.7558],longitudes:[-.1262,37.6176]},{latitudes:[51.5002,38.7072],longitudes:[-.1262,-9.1355]},{latitudes:[51.5002,54.6896],longitudes:[-.1262,25.2799]},{latitudes:[51.5002,64.1353],longitudes:[-.1262,-21.8952]},{latitudes:[51.5002,40.43],longitudes:[-.1262,-74]}],images:[{label:"Flights from London",svgPath:s,left:100,top:45,labelShiftY:5,labelShiftX:5,color:i.defaultText,labelColor:i.defaultText,labelRollOverColor:i.defaultText,labelFontSize:20},{label:"show flights from Vilnius",left:106,top:70,labelColor:i.defaultText,labelRollOverColor:i.defaultText,labelFontSize:11,linkToObject:"vilnius"}]},{id:"vilnius",svgPath:o,title:"Vilnius",latitude:54.6896,longitude:25.2799,scale:1.5,zoomLevel:4.92,zoomLongitude:15.4492,zoomLatitude:50.2631,lines:[{latitudes:[54.6896,50.8371],longitudes:[25.2799,4.3676]},{latitudes:[54.6896,59.9138],longitudes:[25.2799,10.7387]},{latitudes:[54.6896,40.4167],longitudes:[25.2799,-3.7033]},{latitudes:[54.6896,50.0878],longitudes:[25.2799,14.4205]},{latitudes:[54.6896,48.2116],longitudes:[25.2799,17.1547]},{latitudes:[54.6896,44.8048],longitudes:[25.2799,20.4781]},{latitudes:[54.6896,55.7558],longitudes:[25.2799,37.6176]},{latitudes:[54.6896,37.9792],longitudes:[25.2799,23.7166]},{latitudes:[54.6896,54.6896],longitudes:[25.2799,25.2799]},{latitudes:[54.6896,51.5002],longitudes:[25.2799,-.1262]},{latitudes:[54.6896,53.3441],longitudes:[25.2799,-6.2675]}],images:[{label:"Flights from Vilnius",svgPath:s,left:100,top:45,labelShiftY:5,labelShiftX:5,color:i.defaultText,labelColor:i.defaultText,labelRollOverColor:i.defaultText,labelFontSize:20},{label:"show flights from London",left:106,top:70,labelColor:i.defaultText,labelRollOverColor:i.defaultText,labelFontSize:11,linkToObject:"london"}]},{svgPath:o,title:"Brussels",latitude:50.8371,longitude:4.3676},{svgPath:o,title:"Prague",latitude:50.0878,longitude:14.4205},{svgPath:o,title:"Athens",latitude:37.9792,longitude:23.7166},{svgPath:o,title:"Reykjavik",latitude:64.1353,longitude:-21.8952},{svgPath:o,title:"Dublin",latitude:53.3441,longitude:-6.2675},{svgPath:o,title:"Oslo",latitude:59.9138,longitude:10.7387},{svgPath:o,title:"Lisbon",latitude:38.7072,longitude:-9.1355},{svgPath:o,title:"Moscow",latitude:55.7558,longitude:37.6176},{svgPath:o,title:"Belgrade",latitude:44.8048,longitude:20.4781},{svgPath:o,title:"Bratislava",latitude:48.2116,longitude:17.1547},{svgPath:o,title:"Ljubljana",latitude:46.0514,longitude:14.506},{svgPath:o,title:"Madrid",latitude:40.4167,longitude:-3.7033},{svgPath:o,title:"Stockholm",latitude:59.3328,longitude:18.0645},{svgPath:o,title:"Bern",latitude:46.948,longitude:7.4481},{svgPath:o,title:"Kiev",latitude:50.4422,longitude:30.5367},{svgPath:o,title:"Paris",latitude:48.8567,longitude:2.351},{svgPath:o,title:"New York",latitude:40.43,longitude:-74}]},areasSettings:{unlistedAreasColor:i.info},imagesSettings:{color:i.warningLight,selectedColor:i.warning},linesSettings:{color:i.warningLight,alpha:.8},backgroundZoomsToTop:!0,linesAboveImages:!0,"export":{enabled:!0},pathToImages:a.images.amMap})},100)}e.$inject=["baConfig","$timeout","layoutPaths"],angular.module("app.widgets.maps").controller("MapLinesPageCtrl",e)}(),function(){"use strict";function e(e,t){e.progressFunction=function(){return t(function(){},3e3)}}e.$inject=["$scope","$timeout"],angular.module("app.widgets.ui.buttons").controller("ButtonPageCtrl",e)}(),function(){"use strict";function e(e){e.icons={kameleonIcons:[{name:"Beach",img:"Beach"},{name:"Bus",img:"Bus"},{name:"Cheese",img:"Cheese"},{name:"Desert",img:"Desert"},{name:"Images",img:"Images"},{name:"Magician",img:"Magician"},{name:"Makeup",img:"Makeup"},{name:"Programming",img:"Programming"},{name:"Shop",img:"Shop"},{name:"Surfer",img:"Surfer"},{name:"Phone Booth",img:"Phone-Booth"},{name:"Ninja",img:"Ninja"},{name:"Apartment",img:"Apartment"},{name:"Batman",img:"Batman"},{name:"Medal",img:"Medal-2"},{name:"Money",img:"Money-Increase"},{name:"Street View",img:"Street-View"},{name:"Student",img:"Student-3"},{name:"Bell",img:"Bell"},{name:"Woman",img:"Boss-5"},{name:"Euro",img:"Euro-Coin"},{name:"Chessboard",img:"Chessboard"},{name:"Burglar",img:"Burglar"},{name:"Dna",img:"Dna"},{name:"Clipboard Plan",img:"Clipboard-Plan"},{name:"Boss",img:"Boss-3"},{name:"Key",img:"Key"},{name:"Surgeon",img:"Surgeon"},{name:"Hacker",img:"Hacker"},{name:"Santa",img:"Santa"}],kameleonRoundedIcons:[{color:"success",img:"Apartment",name:"Apartment"},{color:"warning",img:"Bus",name:"Bus"},{color:"primary",img:"Checklist",name:"Checklist"},{color:"warning",img:"Desert",name:"Desert"},{color:"danger",img:"Laptop-Signal",name:"Laptop Signal"},{color:"info",img:"Love-Letter",name:"Love Letter"},{color:"success",img:"Makeup",name:"Makeup"},{color:"primary",img:"Santa",name:"Santa"},{color:"success",img:"Surfer",name:"Surfer"},{color:"info",img:"Vector",name:"Vector"},{color:"warning",img:"Money-Increase",name:"Money Increase"},{color:"info",img:"Alien",name:"Alien"},{color:"danger",img:"Online-Shopping",name:"Online Shopping"},{color:"warning",img:"Euro-Coin",name:"Euro"},{color:"info",img:"Boss-3",name:"Boss"}],ionicons:["ion-ionic","ion-arrow-right-b","ion-arrow-down-b","ion-arrow-left-b","ion-arrow-up-c","ion-arrow-right-c","ion-arrow-down-c","ion-arrow-left-c","ion-arrow-return-right","ion-arrow-return-left","ion-arrow-swap","ion-arrow-shrink","ion-arrow-expand","ion-arrow-move","ion-arrow-resize","ion-chevron-up","ion-chevron-right","ion-chevron-down","ion-chevron-left","ion-navicon-round","ion-navicon","ion-drag","ion-log-in","ion-log-out","ion-checkmark-round","ion-checkmark","ion-checkmark-circled","ion-close-round","ion-plus-round","ion-minus-round","ion-information","ion-help","ion-backspace-outline","ion-help-buoy","ion-asterisk","ion-alert","ion-alert-circled","ion-refresh","ion-loop","ion-shuffle","ion-home","ion-search","ion-flag","ion-star","ion-heart","ion-heart-broken","ion-gear-a","ion-gear-b","ion-toggle-filled","ion-toggle","ion-settings","ion-wrench","ion-hammer","ion-edit","ion-trash-a","ion-trash-b","ion-document","ion-document-text","ion-clipboard","ion-scissors","ion-funnel","ion-bookmark","ion-email","ion-email-unread","ion-folder","ion-filing","ion-archive","ion-reply","ion-reply-all","ion-forward"],fontAwesomeIcons:["fa fa-adjust","fa fa-anchor","fa fa-archive","fa fa-area-chart","fa fa-arrows","fa fa-arrows-h","fa fa-arrows-v","fa fa-asterisk","fa fa-at","fa fa-automobile","fa fa-ban","fa fa-bank","fa fa-bar-chart","fa fa-bar-chart-o","fa fa-barcode","fa fa-bars","fa fa-bed","fa fa-beer","fa fa-bell","fa fa-bell-o","fa fa-bell-slash","fa fa-bell-slash-o","fa fa-bicycle","fa fa-binoculars","fa fa-birthday-cake","fa fa-bolt","fa fa-bomb","fa fa-book","fa fa-bookmark","fa fa-bookmark-o","fa fa-briefcase","fa fa-bug","fa fa-building","fa fa-building-o","fa fa-bullhorn"],socicon:["a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","1","2","3","4","5","6","7","8","9","10",",",";",":","+","@","=","-","^","?","$","*","&","(","#",".","_","]",")","'",'"',"}","{"]}}e.$inject=["$scope"],angular.module("app.widgets.ui.icons").controller("IconsPageCtrl",e)}(),function(){"use strict";function e(e,t){e.open=function(a,i){t.open({animation:!0,templateUrl:a,size:i,resolve:{items:function(){return e.items}}})}}e.$inject=["$scope","$uibModal"],angular.module("app.widgets.ui.notifications").controller("ModalsPageCtrl",e)}(),function(){"use strict";function e(e,t,a){var i=angular.copy(a);e.types=["success","error","info","warning"],e.quotes=[{title:"Come to Freenode",message:"We rock at <em>#angularjs</em>",options:{allowHtml:!0}},{title:"Looking for bootstrap?",message:"Try ui-bootstrap out!"},{title:"Wants a better router?",message:"We have you covered with ui-router"},{title:"Angular 2",message:"Is gonna rock the world"},{title:null,message:"Titles are not always needed"},{title:null,message:"Toastr rock!"},{title:"What about nice html?",message:"<strong>Sure you <em>can!</em></strong>",options:{allowHtml:!0}},{title:"Ionic is <em>cool</em>",message:"Best mobile framework ever",options:{allowHtml:!0}}];var o=[];e.options={autoDismiss:!1,positionClass:"toast-top-right",type:"info",timeOut:"5000",extendedTimeOut:"2000",allowHtml:!1,closeButton:!1,tapToDismiss:!0,progressBar:!1,newestOnTop:!0,maxOpened:0,preventDuplicates:!1,preventOpenDuplicates:!1,title:"Some title here",msg:"Type your message here"},e.clearLastToast=function(){var e=o.pop();t.clear(e)},e.clearToasts=function(){t.clear()},e.openRandomToast=function(){var a=Math.floor(Math.random()*e.types.length),i=Math.floor(Math.random()*e.quotes.length),s=e.types[a],n=e.quotes[i];o.push(t[s](n.message,n.title,n.options)),e.optionsStr="toastr."+s+"('"+n.message+"', '"+n.title+"', "+JSON.stringify(n.options||{},null,2)+")"},e.openToast=function(){angular.extend(a,e.options),o.push(t[e.options.type](e.options.msg,e.options.title));var i={};for(var s in e.options)"msg"!=s&&"title"!=s&&(i[s]=e.options[s]);e.optionsStr="toastr."+e.options.type+"('"+e.options.msg+"', '"+e.options.title+"', "+JSON.stringify(i,null,2)+")";
},e.$on("$destroy",function(){angular.extend(a,i)})}e.$inject=["$scope","toastr","toastrConfig"],angular.module("app.widgets.ui.notifications").controller("NotificationsPageCtrl",e)}(),!function(e){e.fn.backTop=function(t){var a=this,i=e.extend({position:400,speed:500,color:"white"},t),o=i.position,s=i.speed,n=i.color;a.addClass("white"==n?"white":"red"==n?"red":"green"==n?"green":"black"),a.css({right:40,bottom:40,position:"fixed"}),e(document).scroll(function(){var t=e(window).scrollTop();t>=o?a.fadeIn(s):a.fadeOut(s)}),a.click(function(){e("html, body").animate({scrollTop:0},{duration:1200})})}}(jQuery),function(){"use strict";function e(e,t,a,i){function o(){r.zoomToDates(new Date(2012,0,3),new Date(2012,0,11))}var s=t.colors,n=a[0].getAttribute("id"),r=AmCharts.makeChart(n,{type:"serial",theme:"blur",color:s.defaultText,dataProvider:[{lineColor:s.info,date:"2012-01-01",duration:408},{date:"2012-01-02",duration:482},{date:"2012-01-03",duration:562},{date:"2012-01-04",duration:379},{lineColor:s.warning,date:"2012-01-05",duration:501},{date:"2012-01-06",duration:443},{date:"2012-01-07",duration:405},{date:"2012-01-08",duration:309,lineColor:s.danger},{date:"2012-01-09",duration:287},{date:"2012-01-10",duration:485},{date:"2012-01-11",duration:890},{date:"2012-01-12",duration:810}],balloon:{cornerRadius:6,horizontalPadding:15,verticalPadding:10},valueAxes:[{duration:"mm",durationUnits:{hh:"h ",mm:"min"},gridAlpha:.5,gridColor:s.border}],graphs:[{bullet:"square",bulletBorderAlpha:1,bulletBorderThickness:1,fillAlphas:.5,fillColorsField:"lineColor",legendValueText:"[[value]]",lineColorField:"lineColor",title:"duration",valueField:"duration"}],chartCursor:{categoryBalloonDateFormat:"YYYY MMM DD",cursorAlpha:0,fullWidth:!0},dataDateFormat:"YYYY-MM-DD",categoryField:"date",categoryAxis:{dateFormats:[{period:"DD",format:"DD"},{period:"WW",format:"MMM DD"},{period:"MM",format:"MMM"},{period:"YYYY",format:"YYYY"}],parseDates:!0,autoGridCount:!1,gridCount:50,gridAlpha:.5,gridColor:s.border},"export":{enabled:!0},pathToImages:i.images.amChart});r.addListener("dataUpdated",o)}e.$inject=["$scope","baConfig","$element","layoutPaths"],angular.module("app.widgets.charts.amCharts").controller("AreaChartCtrl",e)}(),function(){"use strict";function e(e,t,a,i){var o=t.colors,s=a[0].getAttribute("id");AmCharts.makeChart(s,{type:"serial",theme:"blur",color:o.defaultText,dataProvider:[{country:"USA",visits:3025,color:o.primary},{country:"China",visits:1882,color:o.danger},{country:"Japan",visits:1809,color:o.info},{country:"Germany",visits:1322,color:o.success},{country:"UK",visits:1122,color:o.warning},{country:"France",visits:1114,color:o.primaryLight}],valueAxes:[{axisAlpha:0,position:"left",title:"Visitors from country",gridAlpha:.5,gridColor:o.border}],startDuration:1,graphs:[{balloonText:"<b>[[category]]: [[value]]</b>",fillColorsField:"color",fillAlphas:.7,lineAlpha:.2,type:"column",valueField:"visits"}],chartCursor:{categoryBalloonEnabled:!1,cursorAlpha:0,zoomable:!1},categoryField:"country",categoryAxis:{gridPosition:"start",labelRotation:45,gridAlpha:.5,gridColor:o.border},"export":{enabled:!0},creditsPosition:"top-right",pathToImages:i.images.amChart})}e.$inject=["$scope","baConfig","$element","layoutPaths"],angular.module("app.widgets.charts.amCharts").controller("BarChartCtrl",e)}(),function(){"use strict";function e(e,t,a){var i=t.colors,o=e[0].getAttribute("id");AmCharts.makeChart(o,{type:"serial",theme:"none",color:i.defaultText,dataDateFormat:"YYYY-MM-DD",precision:2,valueAxes:[{color:i.defaultText,axisColor:i.defaultText,gridColor:i.defaultText,id:"v1",title:"Sales",position:"left",autoGridCount:!1,labelFunction:function(e){return"$"+Math.round(e)+"M"}},{color:i.defaultText,axisColor:i.defaultText,gridColor:i.defaultText,id:"v2",title:"Market Days",gridAlpha:0,position:"right",autoGridCount:!1}],graphs:[{id:"g3",color:i.defaultText,valueAxis:"v1",lineColor:i.primaryLight,fillColors:i.primaryLight,fillAlphas:.8,lineAlpha:.8,type:"column",title:"Actual Sales",valueField:"sales2",clustered:!1,columnWidth:.5,lineColorField:i.defaultText,legendValueText:"$[[value]]M",balloonText:"[[title]]<br/><b style='font-size: 130%'>$[[value]]M</b>"},{id:"g4",valueAxis:"v1",color:i.defaultText,lineColor:i.primary,fillColors:i.primary,fillAlphas:.9,lineAlpha:.9,type:"column",title:"Target Sales",valueField:"sales1",clustered:!1,columnWidth:.3,legendValueText:"$[[value]]M",balloonText:"[[title]]<br/><b style='font-size: 130%'>$[[value]]M</b>"},{id:"g1",valueAxis:"v2",bullet:"round",bulletBorderAlpha:1,bulletColor:i.defaultText,color:i.defaultText,bulletSize:5,hideBulletsCount:50,lineThickness:2,lineColor:i.danger,type:"smoothedLine",title:"Market Days",useLineColorForBulletBorder:!0,valueField:"market1",balloonText:"[[title]]<br/><b style='font-size: 130%'>[[value]]</b>"},{id:"g2",valueAxis:"v2",color:i.defaultText,bullet:"round",bulletBorderAlpha:1,bulletColor:i.defaultText,bulletSize:5,hideBulletsCount:50,lineThickness:2,lineColor:i.warning,type:"smoothedLine",dashLength:5,title:"Market Days ALL",useLineColorForBulletBorder:!0,valueField:"market2",balloonText:"[[title]]<br/><b style='font-size: 130%'>[[value]]</b>"}],chartScrollbar:{graph:"g1",oppositeAxis:!1,offset:30,gridAlpha:0,color:i.defaultText,scrollbarHeight:50,backgroundAlpha:0,selectedBackgroundAlpha:.05,selectedBackgroundColor:i.defaultText,graphFillAlpha:0,autoGridCount:!0,selectedGraphFillAlpha:0,graphLineAlpha:.2,selectedGraphLineColor:i.defaultText,selectedGraphLineAlpha:1},chartCursor:{pan:!0,cursorColor:i.danger,valueLineEnabled:!0,valueLineBalloonEnabled:!0,cursorAlpha:0,valueLineAlpha:.2},categoryField:"date",categoryAxis:{axisColor:i.defaultText,color:i.defaultText,gridColor:i.defaultText,parseDates:!0,dashLength:1,minorGridEnabled:!0},legend:{useGraphSettings:!0,position:"top",color:i.defaultText},balloon:{borderThickness:1,shadowAlpha:0},"export":{enabled:!0},dataProvider:[{date:"2013-01-16",market1:71,market2:75,sales1:5,sales2:8},{date:"2013-01-17",market1:74,market2:78,sales1:4,sales2:6},{date:"2013-01-18",market1:78,market2:88,sales1:5,sales2:2},{date:"2013-01-19",market1:85,market2:89,sales1:8,sales2:9},{date:"2013-01-20",market1:82,market2:89,sales1:9,sales2:6},{date:"2013-01-21",market1:83,market2:85,sales1:3,sales2:5},{date:"2013-01-22",market1:88,market2:92,sales1:5,sales2:7},{date:"2013-01-23",market1:85,market2:90,sales1:7,sales2:6},{date:"2013-01-24",market1:85,market2:91,sales1:9,sales2:5},{date:"2013-01-25",market1:80,market2:84,sales1:5,sales2:8},{date:"2013-01-26",market1:87,market2:92,sales1:4,sales2:8},{date:"2013-01-27",market1:84,market2:87,sales1:3,sales2:4},{date:"2013-01-28",market1:83,market2:88,sales1:5,sales2:7},{date:"2013-01-29",market1:84,market2:87,sales1:5,sales2:8},{date:"2013-01-30",market1:81,market2:85,sales1:4,sales2:7}],pathToImages:a.images.amChart})}e.$inject=["$element","baConfig","layoutPaths"],angular.module("app.widgets.charts.amCharts").controller("combinedChartCtrl",e)}(),function(){"use strict";function e(e,t,a,i){var o=i.colors,s=t[0].getAttribute("id");AmCharts.makeChart(s,{type:"funnel",theme:"blur",color:o.defaultText,labelTickColor:o.borderDark,dataProvider:[{title:"Website visits",value:300},{title:"Downloads",value:123},{title:"Requested prices",value:98},{title:"Contaced",value:72},{title:"Purchased",value:35},{title:"Asked for support",value:25},{title:"Purchased more",value:18}],titleField:"title",marginRight:160,marginLeft:15,labelPosition:"right",funnelAlpha:.9,valueField:"value",startX:0,alpha:.8,neckWidth:"0%",startAlpha:0,outlineThickness:1,neckHeight:"0%",balloonText:"[[title]]:<b>[[value]]</b>","export":{enabled:!0},creditsPosition:"bottom-left",pathToImages:a})}e.$inject=["$scope","$element","layoutPaths","baConfig"],angular.module("app.widgets.charts.amCharts").controller("FunnelChartCtrl",e)}(),function(){"use strict";function e(e){var t=e[0].getAttribute("id");AmCharts.makeChart(t,{type:"gantt",theme:"light",marginRight:70,period:"hh",dataDateFormat:"YYYY-MM-DD",balloonDateFormat:"JJ:NN",columnWidth:.5,valueAxis:{type:"date",minimum:7,maximum:31},brightnessStep:10,graph:{fillAlphas:1,balloonText:"<b>[[task]]</b>: [[open]] [[value]]"},rotate:!0,categoryField:"category",segmentsField:"segments",colorField:"color",startDate:"2015-01-01",startField:"start",endField:"end",durationField:"duration",dataProvider:[{category:"John",segments:[{start:7,duration:2,color:"#46615e",task:"Task #1"},{duration:2,color:"#727d6f",task:"Task #2"},{duration:2,color:"#8dc49f",task:"Task #3"}]},{category:"Smith",segments:[{start:10,duration:2,color:"#727d6f",task:"Task #2"},{duration:1,color:"#8dc49f",task:"Task #3"},{duration:4,color:"#46615e",task:"Task #1"}]},{category:"Ben",segments:[{start:12,duration:2,color:"#727d6f",task:"Task #2"},{start:16,duration:2,color:"#FFE4C4",task:"Task #4"}]},{category:"Mike",segments:[{start:9,duration:6,color:"#46615e",task:"Task #1"},{duration:4,color:"#727d6f",task:"Task #2"}]},{category:"Lenny",segments:[{start:8,duration:1,color:"#8dc49f",task:"Task #3"},{duration:4,color:"#46615e",task:"Task #1"}]},{category:"Scott",segments:[{start:15,duration:3,color:"#727d6f",task:"Task #2"}]},{category:"Julia",segments:[{start:9,duration:2,color:"#46615e",task:"Task #1"},{duration:1,color:"#727d6f",task:"Task #2"},{duration:8,color:"#8dc49f",task:"Task #3"}]},{category:"Bob",segments:[{start:9,duration:8,color:"#727d6f",task:"Task #2"},{duration:7,color:"#8dc49f",task:"Task #3"}]},{category:"Kendra",segments:[{start:11,duration:8,color:"#727d6f",task:"Task #2"},{start:16,duration:2,color:"#FFE4C4",task:"Task #4"}]},{category:"Tom",segments:[{start:9,duration:4,color:"#46615e",task:"Task #1"},{duration:3,color:"#727d6f",task:"Task #2"},{duration:5,color:"#8dc49f",task:"Task #3"}]},{category:"Kyle",segments:[{start:6,duration:3,color:"#727d6f",task:"Task #2"}]},{category:"Anita",segments:[{start:12,duration:2,color:"#727d6f",task:"Task #2"},{start:16,duration:2,color:"#FFE4C4",task:"Task #4"}]},{category:"Jack",segments:[{start:8,duration:10,color:"#46615e",task:"Task #1"},{duration:2,color:"#727d6f",task:"Task #2"}]},{category:"Kim",segments:[{start:12,duration:2,color:"#727d6f",task:"Task #2"},{duration:3,color:"#8dc49f",task:"Task #3"}]},{category:"Aaron",segments:[{start:18,duration:2,color:"#727d6f",task:"Task #2"},{duration:2,color:"#FFE4C4",task:"Task #4"}]},{category:"Alan",segments:[{start:17,duration:2,color:"#46615e",task:"Task #1"},{duration:2,color:"#727d6f",task:"Task #2"},{duration:2,color:"#8dc49f",task:"Task #3"}]},{category:"Ruth",segments:[{start:13,duration:2,color:"#727d6f",task:"Task #2"},{duration:1,color:"#8dc49f",task:"Task #3"},{duration:4,color:"#46615e",task:"Task #1"}]},{category:"Simon",segments:[{start:10,duration:3,color:"#727d6f",task:"Task #2"},{start:17,duration:4,color:"#FFE4C4",task:"Task #4"}]}],valueScrollbar:{autoGridCount:!0},chartCursor:{cursorColor:"#55bb76",valueBalloonsEnabled:!1,cursorAlpha:0,valueLineAlpha:.5,valueLineBalloonEnabled:!0,valueLineEnabled:!0,zoomable:!1,valueZoomable:!0},"export":{enabled:!0}})}e.$inject=["$element"],angular.module("app.widgets.charts.amCharts").controller("ganttChartCtrl",e)}(),function(){"use strict";function e(e,t,a,i){function o(){r.zoomToIndexes(Math.round(.4*r.dataProvider.length),Math.round(.55*r.dataProvider.length))}var s=t.colors,n=a[0].getAttribute("id"),r=AmCharts.makeChart(n,{type:"serial",theme:"blur",color:s.defaultText,marginTop:0,marginRight:15,dataProvider:[{year:"1990",value:-.17},{year:"1991",value:-.254},{year:"1992",value:.019},{year:"1993",value:-.063},{year:"1994",value:.005},{year:"1995",value:.077},{year:"1996",value:.12},{year:"1997",value:.011},{year:"1998",value:.177},{year:"1999",value:-.021},{year:"2000",value:-.037},{year:"2001",value:.03},{year:"2002",value:.179},{year:"2003",value:.2},{year:"2004",value:.18},{year:"2005",value:.21}],valueAxes:[{axisAlpha:0,position:"left",gridAlpha:.5,gridColor:s.border}],graphs:[{id:"g1",balloonText:"[[value]]",bullet:"round",bulletSize:8,lineColor:s.danger,lineThickness:1,negativeLineColor:s.warning,type:"smoothedLine",valueField:"value"}],chartScrollbar:{graph:"g1",gridAlpha:0,color:s.defaultText,scrollbarHeight:55,backgroundAlpha:0,selectedBackgroundAlpha:.05,selectedBackgroundColor:s.defaultText,graphFillAlpha:0,autoGridCount:!0,selectedGraphFillAlpha:0,graphLineAlpha:.2,selectedGraphLineColor:s.defaultText,selectedGraphLineAlpha:1},chartCursor:{categoryBalloonDateFormat:"YYYY",cursorAlpha:0,valueLineEnabled:!0,valueLineBalloonEnabled:!0,valueLineAlpha:.5,fullWidth:!0},dataDateFormat:"YYYY",categoryField:"year",categoryAxis:{minPeriod:"YYYY",parseDates:!0,minorGridAlpha:.1,minorGridEnabled:!0,gridAlpha:.5,gridColor:s.border},"export":{enabled:!0},creditsPosition:"bottom-right",pathToImages:i.images.amChart});r.addListener("rendered",o),r.zoomChart&&r.zoomChart()}e.$inject=["$scope","baConfig","$element","layoutPaths"],angular.module("app.widgets.charts.amCharts").controller("LineChartCtrl",e)}(),function(){"use strict";function e(e,t,a){function i(){r.legend.addListener("rollOverItem",o)}function o(e){var t=e.dataItem.wedge.node;t.parentNode.appendChild(t)}var s=a.colors,n=e[0].getAttribute("id"),r=AmCharts.makeChart(n,{type:"pie",startDuration:0,theme:"blur",addClassNames:!0,color:s.defaultText,labelTickColor:s.borderDark,legend:{position:"right",marginRight:100,autoMargins:!1},innerRadius:"40%",defs:{filter:[{id:"shadow",width:"200%",height:"200%",feOffset:{result:"offOut","in":"SourceAlpha",dx:0,dy:0},feGaussianBlur:{result:"blurOut","in":"offOut",stdDeviation:5},feBlend:{"in":"SourceGraphic",in2:"blurOut",mode:"normal"}}]},dataProvider:[{country:"Lithuania",litres:501.9},{country:"Czech Republic",litres:301.9},{country:"Ireland",litres:201.1},{country:"Germany",litres:165.8},{country:"Australia",litres:139.9},{country:"Austria",litres:128.3},{country:"UK",litres:99},{country:"Belgium",litres:60}],valueField:"litres",titleField:"country","export":{enabled:!0},creditsPosition:"bottom-left",autoMargins:!1,marginTop:10,alpha:.8,marginBottom:0,marginLeft:0,marginRight:0,pullOutRadius:0,pathToImages:t.images.amChart,responsive:{enabled:!0,rules:[{maxWidth:900,overrides:{legend:{enabled:!1}}},{maxWidth:200,overrides:{valueAxes:{labelsEnabled:!1},marginTop:30,marginBottom:30,marginLeft:30,marginRight:30}}]}});r.addListener("init",i),r.addListener("rollOverSlice",function(e){o(e)})}e.$inject=["$element","layoutPaths","baConfig"],angular.module("app.widgets.charts.amCharts").controller("PieChartCtrl",e)}(),function(){"use strict";function e(e,t,a){var i=this;i.subject=e,i.to=t,i.text=a}e.$inject=["subject","to","text"],angular.module("app.widgets.components.mail").controller("composeBoxCtrl",e)}(),function(){"use strict";function e(e){this.open=function(t){return e.open({animation:!1,templateUrl:"app/pages/components/mail/composeBox/compose.html",controller:"composeBoxCtrl",controllerAs:"boxCtrl",size:"compose",resolve:{subject:function(){return t.subject},to:function(){return t.to},text:function(){return t.text}}})}}e.$inject=["$uibModal"],angular.module("app.widgets.components.mail").service("composeModal",e)}(),function(){"use strict";function e(e,t){var a=this;a.mail=t.getMessageById(e.id),a.label=e.label}e.$inject=["$stateParams","mailMessages"],angular.module("app.widgets.components.mail").controller("MailDetailCtrl",e)}(),function(){"use strict";function e(e,t){var a=this;a.messages=t.getMessagesByLabel(e.label),a.label=e.label}e.$inject=["$stateParams","mailMessages"],angular.module("app.widgets.components.mail").controller("MailListCtrl",e)}(),function(){"use strict";function e(e,t){e.showSuccessMsg=function(){t.success("Your information has been saved successfully!")},e.showInfoMsg=function(){t.info("You've got a new email!","Information")},e.showErrorMsg=function(){t.error("Your information hasn't been saved!","Error")},e.showWarningMsg=function(){t.warning("Your computer is about to explode!","Warning")}}e.$inject=["$scope","toastr"],angular.module("app.widgets.ui.modals").controller("NotificationsCtrl",e)}(),function(){"use strict";function e(){var e=this;e.standardSelectItems=[{label:"Option 1",value:1},{label:"Option 2",value:2},{label:"Option 3",value:3},{label:"Option 4",value:4}],e.selectWithSearchItems=[{label:"Hot Dog, Fries and a Soda",value:1},{label:"Burger, Shake and a Smile",value:2},{label:"Sugar, Spice and all things nice",value:3},{label:"Baby Back Ribs",value:4}],e.groupedSelectItems=[{label:"Group 1 - Option 1",value:1,group:"Group 1"},{label:"Group 2 - Option 2",value:2,group:"Group 2"},{label:"Group 1 - Option 3",value:3,group:"Group 1"},{label:"Group 2 - Option 4",value:4,group:"Group 2"}]}angular.module("app.widgets.form").controller("SelectpickerPanelCtrl",e)}(),function(){"use strict";function e(){return{restrict:"A",require:"?ngOptions",priority:1500,link:{pre:function(e,t,a){t.append('<option data-hidden="true" disabled value="">'+(a.title||"Select something")+"</option>")},post:function(e,t,a){function i(){t.selectpicker("refresh")}a.ngModel&&e.$watch(a.ngModel,i),a.ngDisabled&&e.$watch(a.ngDisabled,i),t.selectpicker({dropupAuto:!1,hideDisabled:!0})}}}}angular.module("app.widgets.form").directive("selectpicker",e)}(),function(){"use strict";function e(){var e=this;e.switcherValues={primary:!0,warning:!0,danger:!0,info:!0,success:!0}}angular.module("app.widgets.form").controller("SwitchPanelCtrl",e)}(),function(){"use strict";function e(e){return{restrict:"EA",replace:!0,scope:{ngModel:"="},template:function(e,t){return'<div class="switch-container '+(t.color||"")+'"><input type="checkbox" ng-model="ngModel"></div>'},link:function(t,a,i){e(function(){var e=$(a).find("input");e.bootstrapSwitch({size:"small",onColor:i.color}),e.on("switchChange.bootstrapSwitch",function(e,a){t.ngModel=a,t.$apply()})})}}}e.$inject=["$timeout"],angular.module("app.widgets.form").directive("switch",e)}(),angular.module("app").run(["$templateCache",function(e){e.put("app/authentication/auth.html",'<main class="auth-main"><div class="auth-block"><div class="auth-header"><img src="../../assets/img/favicon-32x32.png"><h2>Sign in to Doni & Company</h2></div><form class="form-horizontal" name="vm.signIn" novalidate=""><div class="form-group"><label for="inputEmail3" class="col-sm-2 control-label">Username</label><div class="col-sm-10"><input type="text" ng-model="vm.username" name="username" class="form-control" required="" id="inputEmail3" placeholder="Username"><ng-messages for="vm.signIn.username.$error" ng-if="(vm.signIn.$submitted && vm.signIn.username.$invalid) || (vm.signIn.username.$dirty && vm.signIn.username.$invalid)"><div ng-message="required" class="errorValidation">Please enter your username.</div></ng-messages></div></div><div class="form-group"><label for="inputPassword3" class="col-sm-2 control-label">Password</label><div class="col-sm-10"><input type="password" ng-model="vm.password" class="form-control" required="" name="password" id="inputPassword3" placeholder="Password"><ng-messages for="vm.signIn.password.$error" ng-if="(vm.signIn.$submitted && vm.signIn.password.$invalid) || (vm.signIn.password.$invalid && vm.signIn.password.$dirty)"><div ng-message="required" class="errorValidation">Please enter your password.</div></ng-messages></div></div><div class="form-group"><div class="col-sm-offset-2 col-sm-10"><button type="submit" class="btn btn-primary btn-auth" ng-click="vm.login(vm.signIn, vm.username, vm.password)">Sign in</button> <a href="" class="forgot-pass">Forgot password?</a></div></div></form></div></main>'),e.put("app/dashboard/dashboard.html",'<div class="row"><div ba-panel="" class="col-lg-4 col-xs-12 currency-exchange-card"><div class="sparkLine"><spark-line chart-data="vm.completeReport.usdExchange.sevenDays"></spark-line></div><div class="details"><div class="heading">USD Exchange Rate</div><div class="card-refresh"><i class="fa fa-refresh" aria-hidden="true"></i></div><div class="value"><div class="currency" ng-bind="vm.completeReport.usdExchange.outCurrency"></div><div class="rate" ng-bind="vm.completeReport.usdExchange.currentValue | number: 2"></div><div class="change"><i class="fa" ng-class="{\'fa-caret-up\': vm.completeReport.usdExchange.change>0, \'fa-caret-down\': vm.completeReport.usdExchange.change<0}"></i><div class="change-rate" ng-bind="(vm.completeReport.usdExchange.change | number: 2)+ \' %\'"></div></div><div class="last-update" ng-bind="vm.completeReport.usdExchange.lastUpdate | date: vm.appFormat.date"></div></div></div></div><div ba-panel="" class="col-lg-2 col-xs-12 single-number-card" ba-panel-title="Last 24 Hours Price Updates"><div class="panel-content row"><div class="single-number col-xs-12" ng-bind="vm.completeReport.priceUpdate.count"></div><div class="last-update-time col-xs-12">Last Updated: {{vm.completeReport.priceUpdate.lastUpdate | date: vm.appFormat.DBDate}}</div></div></div><div ba-panel="" class="col-lg-6 col-xs-12 manifest-item-updates" ba-panel-title="Last 24 Hours Manifest Updates"><div class="panel-content row"><div class="col-lg-3 col-xs-12 row"><div class="single-number" ng-bind="vm.completeReport.manifestUpdate.count"></div></div><div class="col-lg-9 col-xs-12 row"><div class="heading col-lg-12">Top Three Data Entry</div><div class="col-lg-12 col-xs-12"><div class="col-xs-12 col-lg-4 contributor-card" ng-repeat="contrib in vm.completeReport.manifestUpdate.topThreeContributors"><div class="col-xs-6 number" ng-bind="contrib.updates"></div><div class="col-xs-6 username" ng-bind="contrib.username"></div><div class="col-xs-12 last-update-time">Last Updated: {{contrib.lastUpdate | date: vm.appFormat.DBDate}}</div></div></div></div></div></div></div>'),e.put("app/modal/alertmodal.template.html",'<div class="modal-header"><h3 class="modal-title">{{vm.action}}</h3></div><div class="modal-body"><div>Are you sure you want to {{vm.action.toLowerCase()}} {{vm.type.toLowerCase()}} <b>{{vm.name}}</b>?</div></div><div class="modal-footer"><button class="btn btn-default submitBtn" type="button" ng-click="vm.ok()">{{vm.action}}</button> <button class="btn btn-default" type="button" ng-click="vm.cancel()">Cancel</button></div>'),e.put("app/modals/modals.html",'<div class="widgets"><div class="row"><div class="col-md-12" ba-panel="" ba-panel-title="Modals" ba-panel-class="with-scroll"><div class="modal-buttons clearfix"><button type="button" class="btn btn-primary" data-toggle="modal" ng-click="open(\'app/pages/ui/modals/modalTemplates/basicModal.html\', \'md\')">Default modal</button> <button type="button" class="btn btn-success" data-toggle="modal" ng-click="open(\'app/pages/ui/modals/modalTemplates/largeModal.html\', \'lg\')">Large modal</button> <button type="button" class="btn btn-warning" data-toggle="modal" ng-click="open(\'app/pages/ui/modals/modalTemplates/smallModal.html\', \'sm\')">Small modal</button></div></div></div><div class="row"><div class="col-md-6" ba-panel="" ba-panel-title="Message Modals" ba-panel-class="with-scroll"><div class="modal-buttons same-width clearfix"><button type="button" class="btn btn-success" data-toggle="modal" ng-click="open(\'app/pages/ui/modals/modalTemplates/successModal.html\')">Success Message</button> <button type="button" class="btn btn-info" data-toggle="modal" ng-click="open(\'app/pages/ui/modals/modalTemplates/infoModal.html\')">Info Message</button> <button type="button" class="btn btn-warning" data-toggle="modal" ng-click="open(\'app/pages/ui/modals/modalTemplates/warningModal.html\')">Warning Message</button> <button type="button" class="btn btn-danger" data-toggle="modal" ng-click="open(\'app/pages/ui/modals/modalTemplates/dangerModal.html\')">Danger Message</button></div></div><div class="col-md-6" ba-panel="" ba-panel-title="Notifications" ba-panel-class="with-scroll"><div ng-include="\'app/pages/ui/modals/notifications/notifications.html\'"></div></div></div></div>'),e.put("app/dashboard/businessPartner/businessPartner.html",'<div class="row"><div class="col-md-6 marginBottom10px"><button class="btn btn-primary" data-toggle="modal" ng-click="vm.addBusinessPartner()">Add New Business</button></div></div><br><div ng-if="vm.showForm" class="widgets"><div class="row"><div class="col-md-12"><div ba-panel="" ba-panel-title="" ba-panel-class="with-scroll"><ba-wizard on-cancel="vm.cancel()"><ba-wizard-step title="Basic Information" form="vm.basicInfoForm" on-next="vm.saveBusiness(vm.imagesData, vm.business, form)" on-next-callback="vm.onSaveBusinessCallBack(response)" submit-button-title="Save Business"><div class="product-wizard"><div class="row"><div class="col-md-12" include-with-scope="app/dashboard/businessPartner/template/basicInfo.html"></div></div></div></ba-wizard-step><ba-wizard-step title="Locations" form="vm.locationInfoForm" on-next="vm.saveBusinessLocations(vm.business)" submit-button-title="Save Locations"><div class="product-wizard"><div class="row"><div class="col-md-12" include-with-scope="app/dashboard/businessPartner/template/location.html"></div></div></div></ba-wizard-step><ba-wizard-step title="Contact Persons" form="vm.contactPersonInfoForm" on-next="vm.saveBusinessContactPersons(vm.business)" submit-button-title="Save Contact Persons"><div class="product-wizard"><div class="row"><div class="col-md-12" include-with-scope="app/dashboard/businessPartner/template/contactPerson.html"></div></div></div></ba-wizard-step><ba-wizard-step title="Contact Numbers" form="vm.contactInfoForm" on-next="vm.saveBusinessContactNumbers(vm.business)" submit-button-title="Save Contacts"><div class="product-wizard"><div class="row"><div class="col-md-12" include-with-scope="app/dashboard/businessPartner/template/contactInfo.html"></div></div></div></ba-wizard-step><ba-wizard-step title="Bank Information" form="vm.bankInfoForm" on-next="vm.saveBusinessBanks(vm.business)" on-next-callback="vm.onSaveBusinessBank(response)" "="" submit-button-title="Save Banks and Exit"><div class="product-wizard"><div class="row"><div class="col-md-12" include-with-scope="app/dashboard/businessPartner/template/bankInfo.html"></div></div></div></ba-wizard-step></ba-wizard></div></div></div></div><filter-bar ng-show="!vm.showForm" bp-types="true" country="true" on-bp-types-selected-changed="vm.onBpTypesSelectedChanged(selectedList)" on-country-selected-changed="vm.onCountrySelectedChanged(selectedList)"></filter-bar><div class="row" ng-show="!vm.showForm"><div class="col-md-12"><div ba-panel="" ba-panel-class="with-scroll"><div class="horizontal-scroll"><table class="table" st-table="smartTableData"><thead><tr class="sortable table-header"><th><span class="count">{{vm.allBusiness.length}}</span></th><th st-sort="{{heading.stSort}}" ng-repeat="heading in vm.tableHeadings" ng-bind="heading.name"></th></tr></thead><tbody><tr ng-repeat="business in vm.allBusiness | selectedRows:vm.businessToRemove:\'bpId\'"><td></td><td class="titled" ng-bind="business.name"></td><td ng-if="business.contactPerson">{{business.contactPerson}}</td><td ng-if="!business.contactPerson">No Primary Contact</td><td ng-bind="business.country"></td><td ng-bind="business.bpTypeStr"></td><td ng-if="row.tr_transactionID"><a ui-sref="shell.tradeBook.Transaction({tran:row.tr_transactionID})">{{row.tr_date | date:vm.vm.appFormats.Date}}</a></td><td ng-if="!row.tr_transactionID">No Transaction Done</td><td><div class="buttons"><button class="btn btn-success editable-table-button btn-xs" ng-click="removeUser($index)">Report</button> <button class="btn btn-primary editable-table-button btn-xs" ng-click="vm.editBusinessPartner(business)">Edit</button></div></td></tr></tbody><tfoot><tr><td colspan="6" class="text-center"><div st-pagination="" st-items-by-page="smartTablePageSize" st-displayed-pages="5"></div></td></tr></tfoot></table></div></div></div></div>'),e.put("app/dashboard/manifest/manifest.html",'<div class="row"><div class="col-md-6 marginBottom10px"><button class="btn btn-primary" data-toggle="modal" ng-click="vm.addNewManifestItem()">Add New Manifest Item</button></div><div class="col-md-12"><div ba-panel="" ba-panel-class="profile-page" ng-if="vm.showForm"><div class="panel-content" include-with-scope="app/dashboard/manifest/template/itemForm.html"></div></div><filter-bar ng-show="!vm.showForm" date-picker-needed="true" product="true" buyer="true" seller="true" date-picker="vm.dateRange" on-date-change="vm.onDateRangeChanged(dateRange)" on-buyers-selected-changed="vm.onBuyersSelectedChanged(selectedList)" on-sellers-selected-changed="vm.onSellersSelectedChanged(selectedList)" on-products-selected-changed="vm.onProductsSelectedChanged(selectedList)"></filter-bar><div ba-panel="" ba-panel-class="with-scroll min-height-500px" ng-show="!vm.showForm"><div class="horizontal-scroll"><table class="table table-striped" st-table="smartTableData"><thead><tr class="sortable table-header" ng-if="vm.allManifestList.length!==0"><th><span class="count">{{vm.allManifestList.length}}</span></th><th>Date</th><th>Buyer</th><th>Seller</th><th>Product</th><th>Metric</th><th>Quantity</th><th>Actions</th></tr><tr class="table-header" ng-if="vm.allManifestList.length===0"><th>No Manifest Items have been added for selected filters</th></tr></thead><tbody ng-repeat="row in vm.displayList"><tr><td colspan="2" ng-bind="row.date | date:vm.appFormats.DBDate"></td><td class="business"><div class="name" ng-bind="row.buyerName"></div><div class="contact">{{row.buyerPrimaryContact ? row.buyerPrimaryContact : \'No Primary Contact\'}}</div><div class="country"><img ng-if="row.buyerCountryFlag" width="15" src="{{vm.appConstants.STATIC_URL + row.buyerCountryFlag}}"> {{row.buyerCountry ? row.buyerCountry : \'No Origin\' }}</div></td><td class="business"><div class="name" ng-bind="row.sellerName"></div><div class="contact">{{row.sellerPrimaryContact ? row.sellerPrimaryContact : \'No Primary Contact\'}}</div><div class="country"><img ng-if="row.sellerCountryFlag" width="15" src="{{vm.appConstants.STATIC_URL + row.sellerCountryFlag}}"> {{row.sellerCountry ? row.sellerCountry : \'No Origin\' }}</div></td><td ng-bind="row.productName"></td><td ng-bind="row.quantityMetric"></td><td ng-bind="row.quantity"></td><td><div class="buttons"><button class="btn btn-primary editable-table-button btn-xs" ng-click="vm.editManifestItem(row)">Edit</button> <button class="btn btn-danger editable-table-button btn-xs" ng-if="row.deleteable" ng-click="vm.deleteManifestItem(row)">Delete</button></div></td></tr></tbody></table></div><ul ng-show="vm.totalItems > 0" uib-pagination="" ng-change="vm.pageChanged()" total-items="vm.totalItems" ng-model="vm.currentPage" max-size="vm.itemsPerPage" class="pagination-sm push-left" boundary-link-numbers="true" rotate="false"></ul></div></div></div>'),e.put("app/dashboard/manifest/manifestDashboard.html",'<div class="row"><div class="col-md-6 marginBottom10px"><button class="btn btn-primary" data-toggle="modal" ng-click="vm.goToManifestItems()">Manifest Items</button></div></div><div class="row"><div class="col-lg-12"><filter-bar ng-show="!vm.showForm" date-picker-needed="true" product="true" buyer="true" seller="true" date-picker="vm.dateRange" on-date-change="vm.onDateRangeChanged(dateRange)" on-buyers-selected-changed="vm.onBuyersSelectedChanged(selectedList)" on-sellers-selected-changed="vm.onSellersSelectedChanged(selectedList)" on-products-selected-changed="vm.onProductsSelectedChanged(selectedList)"></filter-bar></div></div><div class="col-xlg-12 col-lg-12 col-md-12 col-sm-12 col-xs-12" ba-panel=""><div class="row"><div class="row pie-charts" ng-if="vm.showCharts"><div class="pie-chart-item-container"><div ba-panel=""><div class="pie-chart-item"><div class="chart" rel="{{ ::vm.dashboardColors.colors.success }}" data-percent="{{vm.sumData.sumPercentage}}"><span class="percent"></span></div><div class="description"><div>Total Containers</div><div class="description-stats">{{::vm.sumData.filteredSum}}<span class="metric">FCL</span></div></div></div></div></div></div><div class="col-xlg-12 col-lg-12 col-md-12 col-sm-7 col-xs-12" ba-panel="" ba-panel-title="Container FCL" ba-panel-class="medium-panel"><line-chart chart-data="vm.graphData" chart-values="vm.chartValues"></line-chart></div></div></div>'),
e.put("app/dashboard/pricing/priceMarket.html",'<div class="row"><div class="col-md-6 marginBottom10px"><button class="btn btn-primary" data-toggle="modal" ng-click="vm.addPriceMarket()">Add New Price Market</button></div></div><div ba-panel="" ba-panel-class="profile-page" ng-if="vm.showForm"><div class="panel-content"><form><h3 class="with-line"></h3><div class="row"><div class="col-md-6"><div class="form-group row clearfix"><label for="productItem" class="col-sm-2 control-label">Country</label><div class="col-sm-6"><selectize ng-disabled="vm.priceMarket.isInternational" id="productItem" config="vm.countryConfig" options="vm.countryOptions.list" ng-model="vm.priceMarket.country"></selectize></div><label class="col-sm-2">International</label><div class="col-sm-2"><switch color="primary" ng-model="vm.priceMarket.isInternational"></switch></div></div></div><div class="col-md-6"><div class="form-group row clearfix"><label for="priceMarketCurrency" class="col-sm-3 control-label">Currency</label><div class="col-sm-9"><selectize ng-required="true" id="priceMarketCurrency" config="vm.currencyConfig" options="vm.currencyOptions.list" ng-model="vm.priceMarket.currency"></selectize></div></div></div></div><div class="row"><div class="col-md-12"><div class="form-group row clearfix"><label for="marketDescription" class="col-sm-3 control-label">Description</label><div class="col-sm-12"><textarea placeholder="Market Description" ng-model="vm.priceMarket.description" class="form-control" id="marketDescription"></textarea></div></div></div></div><button type="button" ng-if="!vm.priceMarket.id" ng-click="vm.addNewPriceMarket(vm.priceMarket)" class="btn btn-primary btn-with-icon save-profile"><i class="ion-android-checkmark-circle"></i>Add Pricing</button> <button type="button" ng-if="vm.priceMarket.id" ng-click="vm.updatePriceMarket(vm.priceMarket)" class="btn btn-primary btn-with-icon save-profile"><i class="ion-android-checkmark-circle"></i>Update Pricing</button> <button type="button" ng-click="vm.cancelPriceMarket()" class="btn btn-danger btn-with-icon save-profile"><i class="ion-android-cancel"></i>Cancel</button></form></div></div><div class="row"><div class="col-md-12"><div ba-panel="" ba-panel-class="with-scroll"><div class="horizontal-scroll"><table class="table table-striped" st-table="smartTableData"><thead><tr class="sortable table-header" ng-if="vm.allMarkets.length!==0"><th>Country</th><th>Currency</th><th>Description</th><th>Actions</th></tr><tr class="table-header" ng-if="vm.allMarkets.length===0"><th>No values have been added.</th></tr></thead><tbody><tr ng-repeat="row in vm.allMarkets"><td class="titled" ng-bind="row.countryName"></td><td ng-bind="row.currency"></td><td ng-bind="row.description"></td><td><div class="buttons"><button class="btn btn-primary editable-table-button btn-xs" ng-click="vm.editPriceMarket(row)">Edit</button></div></td></tr></tbody></table></div></div></div></div>'),e.put("app/dashboard/pricing/pricing.html",'<div class="row"><div class="col-md-6 marginBottom10px"><button class="btn btn-primary" data-toggle="modal" ng-click="vm.addProductPricing(\'dashboard.pricing.productItems\')">Product Pricing</button> <button class="btn btn-primary" data-toggle="modal" ng-click="vm.addProductPricing(\'dashboard.pricing.market\')">Pricing Market</button></div></div><filter-bar country="true" product="true" on-products-selected-changed="vm.onProductsSelectedChanged(selectedList)" on-country-selected-changed="vm.onCountrySelectedChanged(selectedList)"></filter-bar><div class="row"><div class="col-md-12"><div ba-panel="" ba-panel-class="with-scroll"><div class="horizontal-scroll"><div class="priceItemList col-lg-12"><div class="priceContainer col-lg-4 col-sm-12" ng-repeat="row in vm.allProductPriceSummary | selectedRows:vm.priceSummaryToRemove:\'productItemId\'"><div class="priceItem"><div class="col-lg-12 col-xs-12"><div class="productName"><div class="name" ng-bind="row.productName"></div><div><div class="productKeyword" ng-bind="row.keywords"></div><div class="productOrigin">{{row.productOriginName}}</div><img width="60" src="{{vm.appConstants.HOST + row.originFlag}}">&nbsp;</div></div></div><div ng-if="row.internationalPrice!==\'NA\'" class="col-lg-6 col-sm-6 priceDetails"><div class="currency">International</div><div class="change" ng-if="row.internationalPercentangeChange==\'NA\' || row.internationalPercentangeChange==0"><i class="icon fa fa-minus"></i></div><div class="change" ng-if="row.internationalPercentangeChange !== 0 && row.internationalPercentangeChange!==\'NA\'"><div class="number" ng-bind="row.internationalPercentangeChange + \' %\'"></div><i ng-if="row.internationalPercentangeChange > 0" class="icon fa fa-caret-up"></i> <i ng-if="row.internationalPercentangeChange < 0" class="icon fa fa-caret-down"></i></div><div class="currency" ng-bind="row.internationalCurrency"></div><div class="price-number" ng-bind="row.internationalPrice"></div><div class="metric" ng-bind="\'per \' +row.internationalMetric"></div><div class="high-lows"><div class="heading">Weekly</div><div class="info"><div class="info-label">High</div><div class="number" ng-if="row.weeklyInternational.high!==\'NA\'">{{row.internationalCurrency + \' \' + row.weeklyInternational.high + \' / \' + row.internationalMetric}}</div></div><div class="info"><div class="info-label">Low</div><div class="number" ng-if="row.weeklyInternational.low!==\'NA\'">{{row.internationalCurrency + \' \' + row.weeklyInternational.low + \' / \' + row.internationalMetric}}</div></div><div class="heading">Monthly</div><div class="info"><div class="info-label">High</div><div class="number" ng-if="row.monthlyInternational.high!==\'NA\'">{{row.internationalCurrency + \' \' + row.monthlyInternational.high + \' / \' + row.internationalMetric}}</div></div><div class="info"><div class="info-label">Low</div><div class="number" ng-if="row.monthlyInternational.low!==\'NA\'">{{row.internationalCurrency + \' \' + row.monthlyInternational.low + \' / \' + row.internationalMetric}}</div></div></div><div class="lastUpdated" ng-bind="(row.intlastUpdated !== \'NA\') ? (row.intlastUpdated | date: vm.appFormats.Time) : \'NA\'"></div></div><div ng-if="row.internationalPrice===\'NA\'" class="col-lg-6 col-sm-6 priceDetails"><div class="currency">International</div><div class="price-number-na">NA</div></div><div ng-if="row.localCurrency!==\'NA\'" class="col-lg-6 col-sm-6 priceDetails"><div class="currency">Local</div><div class="change" ng-if="row.localPercentangeChange==\'NA\' || row.localPercentangeChange==0"><i class="icon fa fa-minus"></i></div><div class="change" ng-if="row.localPercentangeChange !== 0 && row.localPercentangeChange!==\'NA\'"><div class="number" ng-bind="row.localPercentangeChange + \' %\'"></div><i ng-if="row.localPercentangeChange > 0" class="icon fa fa-caret-up"></i> <i ng-if="row.localPercentangeChange < 0" class="icon fa fa-caret-down"></i></div><div class="currency" ng-bind="row.localCurrency"></div><div class="price-number" ng-bind="row.localPrice"></div><div class="metric" ng-bind="\'per \' +row.localMetric"></div><div class="high-lows"><div class="heading">Weekly</div><div class="info"><div class="info-label">High</div><div class="number" ng-if="row.weeklyInternational.high!==\'NA\'">{{row.localCurrency + \' \' + row.weeklyLocal.high + \' / \' + row.localMetric}}</div></div><div class="info"><div class="info-label">Low</div><div class="number" ng-if="row.weeklyInternational.low!==\'NA\'">{{row.localCurrency + \' \' + row.weeklyLocal.low + \' / \' + row.localMetric}}</div></div><div class="heading">Monthly</div><div class="info"><div class="info-label">High</div><div class="number" ng-if="row.monthlyLocal.high!==\'NA\'">{{row.localCurrency + \' \' + row.monthlyLocal.high + \' / \' + row.localMetric}}</div></div><div class="info"><div class="info-label">Low</div><div class="number" ng-if="row.monthlyLocal.low!==\'NA\'">{{row.localCurrency + \' \' + row.monthlyLocal.low + \' / \' + row.localMetric}}</div></div></div><div class="lastUpdated" ng-bind="(row.locallastUpdated !== \'NA\') ? (row.locallastUpdated | date: vm.appFormats.Time) : \'NA\'"></div></div><div ng-if="row.localCurrency===\'NA\'" class="col-lg-6 col-sm-6 priceDetails"><div class="currency">Local</div><div class="price-number-na">NA</div></div><button class="btn btn-primary col-lg-8 analytics-button" ng-click="vm.productPriceReport(row.productItemId)">Price Analytics</button></div></div></div></div></div></div></div>'),e.put("app/dashboard/pricing/productPricing.html",'<div class="row"><div class="col-md-6 marginBottom10px" ng-if="!vm.showForm"><button class="btn btn-primary" data-toggle="modal" ng-click="vm.addNewProductItemPrice()">Add New Product Price</button></div><div class="col-md-12"><div ba-panel="" ba-panel-class="profile-page" ng-if="vm.showForm"><div class="panel-content"><form name="vm.marketPriceForm" novalidate=""><h3 class="with-line"></h3><div class="row"><div class="col-md-6"><div class="form-group row clearfix"><label for="productItem" class="col-sm-3 control-label">Product Item</label><div class="col-sm-9"><selectize ng-required="true" name="productItem" id="productItem" config="vm.productItemConfig" options="vm.productItemOptions.list" ng-model="vm.marketPriceObj.productItemId"></selectize><ng-messages for="vm.marketPriceForm.productItem.$error" ng-if="(vm.marketPriceForm.$submitted && vm.marketPriceForm.productItem.$invalid) || (vm.marketPriceForm.productItem.$invalid && vm.marketPriceForm.productItem.$dirty)"><div ng-message="required" class="errorValidation">Please enter product item.</div></ng-messages></div></div><div class="form-group row clearfix"><label for="priceMarket" class="col-sm-3 control-label">Price Date</label><div class="col-sm-9"><div uib-datepicker="" ng-model="vm.marketPriceObj.priceTime" ng-change="vm.onPriceDateChange()" class="calender margin-top-10px" datepicker-options="options"></div></div></div></div><div class="col-md-6"><div class="form-group row clearfix"><label for="priceMarket" class="col-sm-3 control-label">Price Market</label><div class="col-sm-9"><selectize ng-required="true" name="priceMarket" on-change="vm.onPriceMarketChange()" id="priceMarket" config="vm.priceMarketConfig" options="vm.priceMarketOptions.list" ng-model="vm.marketPriceObj.priceMarketId"></selectize><ng-messages for="vm.marketPriceForm.priceMarket.$error" ng-if="(vm.marketPriceForm.$submitted && vm.marketPriceForm.priceMarket.$invalid) || (vm.marketPriceForm.priceMarket.$invalid && vm.marketPriceForm.priceMarket.$dirty)"><div ng-message="required" class="errorValidation">Please enter price market.</div></ng-messages></div></div><div class="form-group row clearfix"><label for="priceMarket" class="col-sm-3 control-label">Price Time</label><div class="col-sm-9"><div uib-timepicker="" ng-model="vm.marketPriceObj.priceTime" ng-change="changed()" hour-step="1" minute-step="1" show-meridian="true"></div></div></div><div class="form-group row clearfix"><label for="priceMarket" class="col-sm-3 control-label">Price Metric</label><div class="col-sm-9"><selectize ng-required="true" name="priceMetric" id="priceMetric" config="vm.priceMetricConfig" options="vm.priceMetricOptions.list" ng-model="vm.marketPriceObj.priceMetricId"></selectize><ng-messages for="vm.marketPriceForm.priceMarket.$error" ng-if="(vm.marketPriceForm.$submitted && vm.marketPriceForm.priceMetric.$invalid) || (vm.marketPriceForm.priceMetric.$invalid && vm.marketPriceForm.priceMetric.$dirty)"><div ng-message="required" class="errorValidation">Please enter price metric.</div></ng-messages></div></div></div></div><div class="row"><div class="col-md-12"><div class="form-group row clearfix"><label for="priceComments" class="col-sm-3 control-label">Comments</label><div class="col-sm-12"><textarea ng-model="vm.marketPriceObj.comments" placeholder="Price comments" class="form-control" id="priceComments">\n                        </textarea></div></div></div></div><h3 class="with-line">Pricing Details &nbsp; <i ng-click="vm.addMarketPriceItemObj(vm.marketPriceObj)" class="fa fa-plus primary-font cursor-pointer"></i></h3><div ng-repeat="price in vm.marketPriceObj.priceItems" class="notification row clearfix margin-top-10px"><div class="col-sm-4"><div class="form-group row clearfix"><label class="col-xs-3" for="shipmentMonth_{{index}}">Shipment</label><div class="col-xs-9"><selectize name="{{\'shipmentMonth_\'+$index}}" ng-required="true" id="shipmentMonth_{{index}}" config="vm.shipmentMonthConfig" options="vm.shipmentMonthOptions.list" ng-model="price.shipmentMonths"></selectize><ng-messages for="vm.marketPriceForm[\'shipmentMonth_{{$index}}\'].$error" ng-if=\'(vm.marketPriceForm.$submitted && vm.marketPriceForm["shipmentMonth_"+$index].$invalid) || (vm.marketPriceForm["shipmentMonth_"+$index].$invalid && vm.marketPriceForm["shipmentMonth_"+$index].$dirty)\'><div ng-message="required" class="errorValidation">Please enter shipment month.</div></ng-messages></div></div></div><div class="col-sm-4"><div class="form-group row clearfix"><label class="col-xs-4">Price ({{vm.currentCurrency}} / {{vm.marketPriceObj.priceMetricId ? vm.marketPriceObj.priceMetricId : \'FCL\' }})</label><div class="col-xs-8"><input required="" ng-pattern="/^[0-9]+(\\.[0-9][0-9])$/i" ng-model="price.priceValue" class="form-control" name="{{\'priceValue_\'+$index}}" placeholder="Market price in {{vm.currentCurrency}}"><ng-messages for="vm.marketPriceForm[\'priceValue_{{$index}}\'].$error" ng-show=\'(vm.marketPriceForm.$submitted && vm.marketPriceForm["priceValue_"+$index].$invalid) || (vm.marketPriceForm["priceValue_"+$index].$invalid && vm.marketPriceForm["priceValue_"+$index].$dirty)\' role="alert"><ng-message class="errorValidation" when="required">Please enter price value.</ng-message><ng-message class="errorValidation" when="pattern">Price should be number in two decimals.</ng-message></ng-messages></div></div></div><div class="col-sm-2"><div class="checkbox"><label class="custom-checkbox"><input type="checkbox" id="checkboxSuccess" ng-change="vm.currentValueChange(vm.marketPriceObj, price, price.currentValue)" ng-model="price.currentValue"> <span>Current Market Value</span></label></div></div><div class="col-sm-2"><i ng-click="vm.removeMarketPriceItemObj(vm.marketPriceObj, price)" class="fa fa-trash primary-font cursor-pointer" style="padding-top: 10px;"></i></div><br><br><h3 class="with-line margin-top-10px margin-bottom-10px" style="width:98%; margin-left: auto; margin-right: auto;"></h3></div><button type="submit" ng-if="!vm.marketPriceObj.id" ng-click="vm.addMarketPrice(vm.marketPriceForm, vm.marketPriceObj, true)" class="btn btn-success btn-with-icon save-profile"><i class="ion-android-checkmark-circle"></i>Add Pricing And Add Another</button> <button type="submit" ng-if="!vm.marketPriceObj.id" ng-click="vm.addMarketPrice(vm.marketPriceForm, vm.marketPriceObj, false)" class="btn btn-primary btn-with-icon save-profile"><i class="ion-android-checkmark-circle"></i>Add Pricing And Exit</button> <button type="submit" ng-if="vm.marketPriceObj.id" ng-click="vm.updateMarketPrice(vm.marketPriceForm, vm.marketPriceObj)" class="btn btn-primary btn-with-icon save-profile"><i class="ion-android-checkmark-circle"></i>Update Pricing</button> <button type="button" ng-click="vm.cancel()" class="btn btn-danger btn-with-icon save-profile"><i class="ion-android-cancel"></i>Cancel</button></form></div></div><filter-bar ng-show="!vm.showForm" date-picker-needed="true" country="true" price-market="true" product="true" date-picker="vm.dateRange" on-date-change="vm.onDateRangeChanged(dateRange)" on-products-selected-changed="vm.onProductsSelectedChanged(selectedList)" on-country-selected-changed="vm.onCountrySelectedChanged(selectedList)" on-price-market-selected-changed="vm.onPriceMarketSelectedChanged(selectedList)"></filter-bar><div ba-panel="" ba-panel-class="with-scroll min-height-500px" ng-show="!vm.showForm"><div class="horizontal-scroll"><table class="table table-striped" st-table="smartTableData"><thead><tr class="sortable table-header" ng-if="vm.allPriceItems.length!==0"><th><span class="count">{{vm.allPriceItems.length}}</span></th><th>Price Time</th><th>Product</th><th>Origin</th><th>Keywords</th><th>Price Market</th><th>Market Currency</th><th>Price Metric</th><th>Price</th><th>Actions</th></tr><tr class="table-header" ng-if="vm.allPriceItems.length===0"><th>No Price Items have been added for this date.</th></tr></thead><tbody ng-repeat="row in vm.allPriceItems | selectedRows:vm.priceItemsToRemove:\'id\'"><tr><td ng-click="vm.toggleDetailDisplay(row)"><i class="fa fa-plus-square cursor-pointer" aria-hidden="true" ng-if="!row.showDetails"></i> <i class="fa fa-minus-square cursor-pointer" aria-hidden="true" ng-if="row.showDetails"></i></td><td ng-bind="row.priceTime | date:vm.appFormats.Time"></td><td ng-bind="row.productName"></td><td ng-bind="row.productOriginName"></td><td ng-bind="row.keywords"></td><td ng-bind="row.marketCountry"></td><td ng-bind="row.marketCurrency"></td><td ng-bind="row.priceMetric"></td><td class="titled" ng-bind="row.marketCurrency + \' \' + row.currentPrice"></td><td><div class="buttons"><button class="btn btn-primary editable-table-button btn-xs" ng-click="vm.editProductItemPrice(row)">Edit</button> <button class="btn btn-danger editable-table-button btn-xs" ng-click="vm.deleteMarketPrice(row)">Delete</button></div></td></tr><tr><td colspan="10"><div class="priceDetails row" ng-show="row.showDetails"><div class="col-md-4 comments"><div class="label col-md-12">Comments</div><div class="label col-md-12 comment" ng-bind="row.comments"></div></div><div class="col-md-8"><div class="col-md-12 priceInfo" ng-repeat="price in row.priceItems"><div class="col-md-8" ng-repeat="month in price.shipmentMonths"><div ng-bind="month | date: vm.appFormats.ShipmentMonth"></div></div><div class="col-md-4" ng-bind="row.marketCurrency + \' \' + price.priceValue"></div></div></div></div></td></tr></tbody></table></div></div></div></div>'),e.put("app/dashboard/products/priceAnalytics.html",'<filter-bar ng-show="!vm.showForm" date-picker-needed="true" date-picker="vm.dateRange" on-date-change="vm.onDateRangeChanged(dateRange)"></filter-bar><div class="col-xlg-12 col-lg-12 col-md-12 col-sm-12 col-xs-12" ba-panel=""><div class="row"><div class="row pie-charts" ng-if="vm.showCharts"><div class="pie-chart-item-container"><div ba-panel=""><div class="pie-chart-item"><div class="chart" rel="{{ ::vm.dashboardColors.colors.success }}" data-percent="{{vm.sumData.sumPercentage}}"><span class="percent"></span></div><div class="description"><div>Average Price</div><div class="description-stats">{{::vm.sumData.filteredSum}}<span class="metric">FCL</span></div></div></div></div></div></div><div class="col-xlg-12 col-lg-12 col-md-12 col-sm-7 col-xs-12" ba-panel="" ba-panel-class="medium-panel"><line-chart chart-data="vm.graphData"></line-chart></div></div></div>'),e.put("app/dashboard/products/productCategories.html",'<div class="row"><div class="col-md-12 marginBottom10px" ng-if="!vm.showForm"><button class="btn btn-primary" ng-click="vm.addNewCategory()">Add New Category</button></div><div class="col-md-12"><div ba-panel="" ba-panel-class="profile-page" ng-if="vm.showForm"><div class="panel-content"><form name="vm.productCategoryForm" novalidate=""><div class="row"><div class="col-md-12"><div class="form-group"><label>Category</label> <input type="text" ng-model="vm.categoryObj.name" ng-required="true" name="categoryName" class="form-control" id="categoryName" placeholder="Category"><ng-messages for="vm.productCategoryForm.productName.$error" ng-if="(vm.productCategoryForm.$submitted && vm.productCategoryForm.categoryName.$invalid) || (vm.productCategoryForm.categoryName.$invalid && vm.productCategoryForm.categoryName.$dirty)"><div ng-message="required" class="errorValidation">Please enter a category name</div></ng-messages><span class="help-block error-block basic-block">Required</span></div></div><div class="col-md-12"><div class="form-group"><label>Description</label> <textarea placeholder="Category Description" ng-model="vm.categoryObj.description" class="form-control" id="priceComments"></textarea></div></div><button type="submit" ng-if="!vm.categoryObj.id" ng-click="vm.addCategory(vm.productCategoryForm, vm.categoryObj)" class="btn btn-primary btn-with-icon save-profile"><i class="ion-android-checkmark-circle"></i>Add Product Category</button> <button type="submit" ng-if="vm.categoryObj.id" ng-click="vm.updateCategory(vm.productCategoryForm, vm.categoryObj)" class="btn btn-primary btn-with-icon save-profile"><i class="ion-android-checkmark-circle"></i>Update Product Category</button> <button type="button" ng-click="vm.cancel()" class="btn btn-danger btn-with-icon save-profile"><i class="ion-android-cancel"></i>Cancel</button></div></form></div></div></div><div class="col-md-12"><div ba-panel="" ba-panel-class="with-scroll"><div class="horizontal-scroll"><table class="table table-striped" st-table="smartTableData"><thead><tr class="sortable table-header" ng-if="vm.allCategories.length!==0"><th>Product Category</th><th>Description</th><th>Number of Keywords</th><th>Number of Products</th><th>Actions</th></tr><tr class="table-header" ng-if="vm.allCategories.length===0"><th>No values have been added.</th></tr></thead><tbody><tr ng-repeat="row in vm.allCategories"><td class="titled" ng-bind="row.name"></td><td ng-if="row.description" ng-bind="row.description"></td><td ng-if="!row.description">No Description Provided</td><td ng-bind="row.keywordCount"></td><td ng-bind="row.productCount"></td><td><div class="buttons"><button class="btn btn-primary editable-table-button btn-xs" ng-click="vm.editCategory(row)">Edit</button> <button style="width: 115px;" class="btn btn-success editable-table-button btn-xs" ng-click="vm.specification(row.id)">Specification</button></div></td></tr></tbody></table></div></div></div></div>'),e.put("app/dashboard/products/productItems.html",'<div class="row"><div class="col-md-6 marginBottom10px" ng-if="!vm.showForm"><button class="btn btn-primary" data-toggle="modal" ng-click="vm.addNewProductItem()">Add New Product Item</button></div><div class="col-md-12"><div ba-panel="" ba-panel-class="profile-page" ng-if="vm.showForm"><div class="panel-content"><form name="vm.productItemForm" novalidate=""><div class="row"><div class="col-md-6"><div class="form-group"><label>Product</label><selectize ng-required="true" name="product" config="vm.productConfig" options="vm.productOptions.list" ng-model="vm.productItem.productId"></selectize><ng-messages for="vm.productItemForm.productName.$error" ng-if="(vm.productItemForm.$submitted && vm.productItemForm.productName.$invalid) || (vm.productItemForm.productName.$invalid && vm.productItemForm.productName.$dirty)"><div ng-message="required" class="errorValidation">Please select a product.</div></ng-messages><span class="help-block error-block basic-block">Required</span></div></div><div class="col-md-6"><div class="form-group"><label>Product Origin</label><selectize ng-disabled="!vm.productItem.productId" id="product-origin" ng-required="true" name="productOrigin" config="vm.originConfig" options="vm.originOptions.list" ng-model="vm.productItem.origin"></selectize><ng-messages for="vm.productItemForm.productOrigin.$error" ng-if="(vm.productItemForm.$submitted && vm.productItemForm.productOrigin.$invalid) || (vm.productItemForm.productOrigin.$invalid && vm.productItemForm.productOrigin.$dirty)"><div ng-message="required" class="errorValidation">Please select a product origin.</div></ng-messages><span class="help-block error-block basic-block">Required</span></div></div><div class="col-lg-12"><div class="form-group"><label>Product Keywords</label><selectize ng-disabled="!vm.productItem.productId" ng-required="true" name="productKeyword" config="vm.keywordConfig" options="vm.keywordOptions.list" ng-model="vm.productItem.keywords"></selectize></div><div class="form-group"><label>Import Expense</label> <input type="text" ng-model="vm.productItem.importExpense" name="importExpense" required="true" class="form-control" id="importExpense" placeholder="Import Expense"><ng-messages for="vm.productItemForm.importExpense.$error" ng-if="(vm.productItemForm.$submitted && vm.productItemForm.importExpense.$invalid) || (vm.productItemForm.importExpense.$invalid && vm.productItemForm.importExpense.$dirty)"><div ng-message="required" class="errorValidation">Please enter import Expense.</div></ng-messages></div><div class="form-group"><label>System Database Ids</label> <input type="text" ng-model="vm.productItem.databaseIds" name="keywordName" class="form-control" id="databaseIds" placeholder="Database Ids"></div></div><div class="col-sm-12"><div class="slider-box col-sm-12 col-md-4" ng-repeat="spec in vm.productItem.specification | orderBy:\'name\'"><h5 ng-bind="spec.name" style="padding-top: 20px"></h5><input style="margin-top: 25px;" class="form-control" ng-model="spec.value" ng-if="spec.type==\'text\'"><ion-slider ng-if="spec.type==\'percentage\'" type="single" grid="true" from="spec.value" ng-model="spec.value" min="0" max="100" prefix="%" disable="false"></ion-slider></div></div><button type="button" ng-if="!vm.productItem.id" ng-click="vm.addProductItem(vm.productItemForm, vm.productItem)" class="btn btn-primary btn-with-icon save-profile"><i class="ion-android-checkmark-circle"></i>Add Product Item</button> <button type="button" ng-if="vm.productItem.id" ng-click="vm.updateProductItem(vm.productItemForm, vm.productItem)" class="btn btn-primary btn-with-icon save-profile"><i class="ion-android-checkmark-circle"></i>Update Product Item</button> <button type="button" ng-click="vm.cancel()" class="btn btn-danger btn-with-icon save-profile"><i class="ion-android-cancel"></i>Cancel</button></div></form></div></div><div ba-panel="" ng-if="!vm.showForm" ba-panel-class="with-scroll"><div class="horizontal-scroll"><table class="table table-striped" st-table="smartTableData"><thead><tr class="sortable table-header" ng-if="vm.allProductItems.length!==0"><th>Product</th><th>Origin</th><th>Keyword</th><th>Import Expense</th><th>Actions</th></tr><tr class="table-header" ng-if="vm.allProductItems.length===0"><th>No from have been added.</th></tr></thead><tbody><tr ng-repeat="row in vm.allProductItems | orderBy:\'productName\'"><td class="titled" ng-bind="row.productName"></td><td><img width="18" src="{{vm.appConstants.HOST + row.productOriginFlag}}">&nbsp; {{row.productOriginName}}</td><td ng-if="row.keywordsString" ng-bind="row.keywordsString"></td><td ng-if="!row.keywordsString">No Keyword attached</td><td ng-bind="row.importExpense"></td><td><div class="buttons"><button class="btn btn-primary editable-table-button btn-xs" ng-click="vm.editProductItem(row)">Edit</button> <button style="width: 115px;" ng-class="{\'btn-danger\': !row.priceOnWebsite, \'btn-success\':row.priceOnWebsite}" class="btn editable-table-button btn-xs" ng-click="vm.displayPriceOnWebsite(row)">Price On Website</button></div></td></tr></tbody></table></div></div></div></div>'),e.put("app/dashboard/products/productKeyword.html",'<div class="row"><div class="col-md-6 marginBottom10px" ng-if="!vm.showForm"><button class="btn btn-primary" data-toggle="modal" ng-click="vm.addNewKeyword()">Add New Product Keyword</button></div><div class="col-md-12"><div ba-panel="" ba-panel-class="profile-page" ng-if="vm.showForm"><div class="panel-content"><form name="vm.productKeywordForm" novalidate=""><div class="row"><div class="col-md-6"><div class="form-group"><label>Keyword Name</label> <input type="text" ng-model="vm.keywordObj.name" ng-required="true" name="keywordName" class="form-control" id="keywordName" placeholder="Keyword Name"><ng-messages for="vm.productKeywordForm.productName.$error" ng-if="(vm.productKeywordForm.$submitted && vm.productKeywordForm.keywordName.$invalid) || (vm.productKeywordForm.keywordName.$invalid && vm.productKeywordForm.keywordName.$dirty)"><div ng-message="required" class="errorValidation">Please enter a keyword name</div></ng-messages><span class="help-block error-block basic-block">Required</span></div></div><div class="col-md-6"><div class="form-group"><label>Product Category</label><selectize id="category" ng-required="true" name="category" placeholder="Keyword Product Category" config="vm.categoryConfig" options="vm.categoryOptions.list" ng-model="vm.keywordObj.categoryId"></selectize><ng-messages for="vm.productKeywordForm.productOrigin.$error" ng-if="(vm.productKeywordForm.$submitted && vm.productKeywordForm.category.$invalid) || (vm.productKeywordForm.category.$invalid && vm.productKeywordForm.category.$dirty)"><div ng-message="required" class="errorValidation">Please select category</div></ng-messages></div></div><button type="submit" ng-if="!vm.keywordObj.id" ng-click="vm.addKeyword(vm.productKeywordForm, vm.keywordObj)" class="btn btn-primary btn-with-icon save-profile"><i class="ion-android-checkmark-circle"></i>Add Product Item</button> <button type="submit" ng-if="vm.keywordObj.id" ng-click="vm.updateKeyword(vm.productKeywordForm, vm.keywordObj)" class="btn btn-primary btn-with-icon save-profile"><i class="ion-android-checkmark-circle"></i>Update Product Item</button> <button type="button" ng-click="vm.cancel()" class="btn btn-danger btn-with-icon save-profile"><i class="ion-android-cancel"></i>Cancel</button></div></form></div></div><div ba-panel="" ba-panel-class="with-scroll"><div class="horizontal-scroll"><table class="table table-striped" st-table="smartTableData"><thead><tr class="sortable table-header" ng-if="vm.allKeywords.length!==0"><th>Keywords</th><th>Category</th><th>No. of Product Items</th><th>Actions</th></tr><tr class="table-header" ng-if="vm.allKeywords.length===0"><th>No keywords have been added.</th></tr></thead><tbody><tr ng-repeat="row in vm.allKeywords"><td class="titled" ng-bind="row.name"></td><td ng-if="row.categoryName" ng-bind="row.categoryName"></td><td ng-if="!row.categoryName">No category assigned</td><td ng-bind="row.noOfProductItems"></td><td><div class="buttons"><button class="btn btn-primary editable-table-button btn-xs" ng-click="vm.editKeyword(row)">Edit</button></div></td></tr></tbody></table></div></div></div></div>'),e.put("app/dashboard/products/productSpecification.html",'<div ba-panel="" ba-panel-title="{{vm.categoryName}} Specification" ba-panel-class="profile-page" class="row"><div><div class="panel-content"><form name="vm.productSpecificationForm" novalidate=""><h3 class="with-line">Add Specification Item <i ng-click="vm.addSpecificationItem(vm.marketPriceObj)" class="fa fa-plus primary-font cursor-pointer"></i></h3><div ng-repeat="spec in vm.specificationData.specs" class="notification row clearfix margin-top-10px"><div class="col-sm-4 col-xs-12"><div class="form-group row clearfix"><label class="col-xs-12 col-sm-4" for="specName_{{$index}}">Specification Name</label><div class="col-xs-12 col-sm-8"><input class="form-control" name="{{\'specName_\'+$index}}" ng-required="true" id="specName_{{$index}}" ng-model="spec.name"><ng-messages for="vm.productSpecificationForm[\'specName_\'+$index].$error" ng-if=\'(vm.productSpecificationForm.$submitted && vm.productSpecificationForm["specName_"+$index].$invalid) || (vm.productSpecificationForm["specName_"+$index].$invalid && vm.productSpecificationForm["specName_"+$index].$dirty)\'><div ng-message="required" class="errorValidation">Please enter specification name.</div></ng-messages></div></div></div><div class="col-sm-6 col-xs-12"><div class="form-group row clearfix"><label class="col-xs-12 col-sm-3">Specification Type</label><div class="col-xs-12 col-sm-9"><div class="input-demo radio-demo row"><div class="col-md-2 col-xs-12"><label class="radio-inline custom-radio nowrap"><input type="radio" ng-model="spec.type" name="{{\'specType_\'+$index}}" required="" value="percentage"> <span>Percentage</span></label></div><div class="col-md-2 col-xs-12"><label class="radio-inline custom-radio nowrap"><input type="radio" ng-model="spec.type" name="{{\'specType_\'+$index}}" required="" value="text"> <span>Text</span></label></div><div class="col-sm-12"><ng-messages for="vm.productSpecificationForm[\'specType_\'+$index].$error" ng-if=\'(vm.productSpecificationForm.$submitted && vm.productSpecificationForm["specType_"+$index].$invalid) || (vm.productSpecificationForm["specType_"+$index].$invalid && vm.productSpecificationForm["specType_"+$index].$dirty)\'><div ng-message="required" class="errorValidation">Please enter specification type.</div></ng-messages></div></div></div></div></div><div class="col-sm-2"><i ng-click="vm.removeSpecItem(vm.specificationData.specs, spec)" class="fa fa-trash primary-font cursor-pointer" style="padding-top: 10px;"></i></div></div><div class="row"><button type="submit" ng-click="vm.saveSpecs(vm.productSpecificationForm, vm.specificationData)" class="btn btn-primary btn-with-icon save-profile"><i class="ion-android-checkmark-circle"></i>Save Product Category Specification</button> <button type="button" ng-click="vm.cancel()" class="btn btn-danger btn-with-icon save-profile"><i class="ion-android-cancel"></i>Cancel</button></div></form></div></div></div>'),
e.put("app/dashboard/products/products.html",'<div class="row"><div class="col-md-6 marginBottom10px" ng-if="!vm.showForm"><button class="btn btn-primary" ng-click="vm.addNewProduct()">Add New Product</button></div><div class="col-md-12"><div ng-if="vm.showForm" class="widgets"><div class="row"><div class="col-md-12"><div ba-panel="" ba-panel-title="" ba-panel-class="with-scroll"><ba-wizard on-cancel="vm.cancel()"><ba-wizard-step title="Product Info" form="vm.productInfoForm" on-next="vm.saveProduct(vm.productObj, vm.imagesData)" on-next-callback="vm.onSaveProductCallback(response)" submit-button-title="{{vm.stepTitle[0]}}"><form name="vm.productInfoForm" novalidate=""><div class="product-wizard"><div class="row"><div class="col-md-12"><div class="row"><div class="col-md-12"><div class="form-group"><div class="product-pic col-xs-6 col-xs-offset-3"><div class="product-pic-wrapper"><img ng-src="{{ vm.productImage }}" ng-click="vm.uploadProductImage(event)"></div><i class="ion-ios-close-outline" ng-click="vm.removeProductPicture()" ng-if="!vm.noPicture"></i> <a href="" class="change-userpic" ng-click="vm.uploadProductImage(event)">Change Profile Picture</a> <input type="file" ng-show="false" id="uploadProductFile" ng-file-select="vm.onFileSelect($files)"></div></div></div><div class="col-md-12 distance-10px"></div><div class="col-md-4"><div class="form-group"><label for="productName">Product Name</label> <input autocomplete="false" type="text" class="form-control" id="productName" name="productName" placeholder="Product Name" ng-model="vm.productObj.info.name" required=""><ng-messages for="vm.productInfoForm.productName.$error" ng-if="(vm.productInfoForm.$submitted && vm.productInfoForm.productName.$invalid) || (vm.productInfoForm.productName.$invalid && vm.productInfoForm.productName.$dirty)"><div ng-message="required" class="errorValidation">Please enter product name.</div></ng-messages><span class="help-block error-block basic-block">Required</span></div></div><div class="col-md-4"><div class="form-group"><label for="productName">Product Code</label> <input autocomplete="false" type="text" class="form-control" id="productCode" name="productCode" placeholder="Product Code" ng-model="vm.productObj.info.productCode" required=""><ng-messages for="vm.productInfoForm.productName.$error" ng-if="(vm.productInfoForm.$submitted && vm.productInfoForm.productCode.$invalid) || (vm.productInfoForm.productCode.$invalid && vm.productInfoForm.productCode.$dirty)"><div ng-message="required" class="errorValidation">Please enter product name.</div></ng-messages></div></div><div class="col-md-4"><div class="form-group"><label for="productName">Product Category</label><selectize ng-required="true" name="productCategory" config="vm.categoryConfig" options="vm.categoryOptions.list" ng-model="vm.productObj.info.categoryId"></selectize><ng-messages for="vm.productInfoForm.productCategory.$error" ng-if="(vm.productInfoForm.$submitted && vm.productInfoForm.productCategory.$invalid) || (vm.productInfoForm.productCategory.$invalid && vm.productInfoForm.productCategory.$dirty)"><div ng-message="required" class="errorValidation">Please enter select a product category.</div></ng-messages><span class="help-block error-block basic-block">Required</span></div></div><div class="col-md-12"><div class="form-group"><label for="productDescription">Product Description</label><text-angular ng-model="vm.productObj.info.description" id="productDescription"></text-angular></div></div></div></div></div></div></form></ba-wizard-step><ba-wizard-step title="Product Origin" form="vm.productOriginForm" on-next="vm.saveProductOrigin(vm.productObj)" on-next-callback="vm.onSaveProductOriginCallback(response)" submit-button-title="{{vm.stepTitle[1]}}"><form name="vm.productOriginForm"><div class="product-wizard"><div class="row" style="min-height: 300px;"><div class="col-lg-12"><div class="form-group"><label>Origins</label><selectize ng-required="true" name="productOrigins" config="vm.countryConfig" options="vm.countryOptions.list" ng-model="vm.productObj.origins"></selectize><ng-messages for="vm.productOriginForm.productOrigins.$error" ng-if="(vm.productOriginForm.$submitted && vm.productOriginForm.productOrigins.$invalid) || (vm.productOriginForm.productOrigins.$invalid && vm.productOriginForm.productOrigins.$dirty)"><div ng-message="required" class="errorValidation">Please enter atleast one product origin.</div></ng-messages></div></div></div></div></form></ba-wizard-step></ba-wizard></div></div></div></div><div ba-panel="" ba-panel-class="with-scroll" ng-if="!vm.showForm"><div class="horizontal-scroll"><table class="table table-striped" st-table="smartTableData"><thead><tr class="sortable table-header" ng-if="vm.allProducts.length!==0"><th>Product Name</th><th>Product Catrgory</th><th colspan="2">Product Items</th><th>Actions</th></tr><tr class="table-header" ng-if="vm.allProducts.length===0"><th>No values have been added.</th></tr></thead><tbody><tr ng-repeat="row in vm.allProducts | orderBy:\'info.name\'"><td class="titled" ng-bind="row.info.name"></td><td ng-bind="row.info.categoryName"></td><td colspan="2" ng-if="row.productItems.length > 0"><div class="productItemsColumn" ng-repeat="item in row.productItems"><div class="origin"><img width="18" src="{{vm.appConstants.HOST + item.originFlag}}"> {{item.origin}}</div><div class="keywords" ng-bind="item.keywords"></div></div></td><td colspan="2" ng-if="row.productItems.length === 0"><div class="productItemsColumn"><div class="keywords">No product items</div></div></td><td><div class="buttons"><button class="btn btn-success editable-table-button btn-xs" ng-click="vm.productReport($index)">Report</button> <button class="btn btn-primary editable-table-button btn-xs" ng-click="vm.editProduct(row)">Edit</button> <button class="btn editable-table-button btn-xs" ng-class="{\'btn-danger\': !row.info.onWebsite, \'btn-success\': row.info.onWebsite}" ng-click="vm.displayOnWebsite(row)">Website</button> <button ng-if="row.isDeletable" class="btn btn-warning editable-table-button btn-xs" ng-click="vm.deleteProduct(vm.allProducts, row)">Delete</button></div></td></tr></tbody></table></div></div></div></div>'),e.put("app/dashboard/settings/settings.html",'<uib-tabset active="$tabSetStatus.activeTab"><uib-tab heading="Change Password"><div ng-include="\'app/dashboard/settings/templates/changePassword.html\'"></div></uib-tab><uib-tab heading="Application Drop Downs"><div ng-include="\'app/dashboard/settings/templates/appDropDown.html\'"></div></uib-tab><uib-tab heading="Business Details" ng-click="vm.getBusinessSettings()"><div ng-include="\'app/dashboard/settings/templates/businessDetails.html\'"></div></uib-tab></uib-tabset>'),e.put("app/dashboard/shell/shell.html",'<div class="body-bg"></div><main ng-if="$pageFinishedLoading" ng-class="{ \'menu-collapsed\': $baSidebarService.isMenuCollapsed() }"><ba-sidebar></ba-sidebar><page-top></page-top><div class="al-main"><div class="al-content"><page-header go-back="true"></page-header><div ui-view="content"></div></div></div><back-top></back-top></main><div id="preloader" ng-show="!$pageFinishedLoading"><div></div></div>'),e.put("app/dashboard/tradeBook/tradeBook.html",'<filter-bar date-picker-needed="true" buyer="true" seller="true" product="true" tran-status="true" date-picker="vm.dateRange" on-date-change="vm.onDateRangeChanged(dateRange)" on-buyers-selected-changed="vm.onBuyersSelectedChanged(selectedList)" on-sellers-selected-changed="vm.onSellersSelectedChanged(selectedList)" on-products-selected-changed="vm.onProductsSelectedChanged(selectedList)" on-tran-status-selected-changed="vm.onTranStatusSelectedChanged(selectedList)"></filter-bar><div class="row"><div class="col-md-12"><div ba-panel="" ba-panel-title="Business Partner (Standard)<br><small>Total {{vm.allBusinessPartner.data.length - vm.bpToRemove.length}} Business Partners</small>" ba-panel-class="with-scroll"><div><table class="table" st-table="smartTableData"><thead><tr class="sortable"><th st-sort="{{heading.stSort}}" ng-repeat="heading in vm.allBusinessPartner.tableHeadings" ng-bind="heading.name"></th></tr><tr><th><input st-search="bp_Cont_fullName" placeholder="Search Business Partner" class="input-sm form-control search-input" type="search"></th><th></th><th><input st-search="bp_country" placeholder="Search Origin" class="input-sm form-control search-input" type="search"></th><th></th><th></th><th></th></tr></thead><tbody></tbody><tfoot><tr><td colspan="6" class="text-center"><div st-pagination="" st-items-by-page="smartTablePageSize" st-displayed-pages="5"></div></td></tr></tfoot></table></div></div></div></div>'),e.put("app/dashboard/user/allUsers.html",'<div class="row"><div class="col-md-6 marginBottom10px" ng-if="!vm.showForm"><button class="btn btn-primary" data-toggle="modal" ng-click="vm.addNewUser()">Add New User</button></div><div class="col-md-12"><div ba-panel="" ba-panel-title="<small>Total {{vm.allUsers.length}} System Users</small>" ba-panel-class="with-scroll"><div class="horizontal-scroll"><table class="table table-striped" st-table="smartTableData"><thead><tr class="sortable table-header"><th>Username</th><th>Full Name</th><th>Email</th><th>Designation</th><th>Last Login</th><th class="center-align">Is Active</th><th>Actions</th></tr></thead><tbody><tr ng-repeat="user in vm.allUsers"><td><a class="email-link">{{user.userName}}</a></td><td>{{user.firstName + \' \' + user.lastName}}</td><td>{{user.email}}</td><td>{{user.designation}}</td><td>{{user.lastLogin | date:vm.appFormats.Time}}</td><td class="center-align"><i ng-if="user.active" ng-click="" class="fa fa-unlock cursor-pointer"></i> <i ng-if="!user.active" ng-click="" class="fa fa-lock cursor-pointer"></i></td><td><div class="buttons"><button class="btn btn-primary editable-table-button btn-xs" ng-click="vm.editUser(user.id)">Edit</button></div></td></tr></tbody></table></div></div></div></div>'),e.put("app/dashboard/website/blog.html",'<div class="row"><div class="col-md-6 marginBottom10px" ng-if="!vm.showForm"><button class="btn btn-primary" ng-click="vm.addNewResearch()">Add New Research</button></div><div class="col-md-12" ba-panel="" ng-show="!vm.showForm"><div ng-repeat="research in vm.researchList" ng-if="vm.researchList.length > 0" class="col-xlg-4 col-lg-4 col-md-4 col-sm-12 col-xs-12" ba-panel="" ba-panel-class="popular-app medium-panel"><blog-card visitors="research.visitors" research-id="research.id" can-edit="research.canEdit" can-delete="research.canDelete" display-web="research.displayOnWeb" is-draft="research.isDraft" on-edit="vm.editResearch(researchId)" author="research.createdBy" user-pic="research.createdByImage" comments="research.comments" reads="research.reads" created-on="research.createdOn" title="research.title" on-display-web="vm.displayResearchOnWeb(researchId)" on-delete="vm.deleteResearch(researchId)" image-url="research.image"></blog-card></div><div ng-if="vm.researchList.length == 0"><table class="table table-striped" st-table="smartTableData"><thead><tr class="table-header"><th>No Research have been added.</th></tr></thead></table></div></div><div ba-panel="" ba-panel-class="profile-page" ng-show="vm.showForm"><div class="panel-content"><h3 class="with-line">Research</h3><form name="vm.researchForm" novalidate=""><div class="product-wizard"><div class="row"><div class="col-md-12"><div class="row"><div class="col-md-12"><div class="form-group"><div class="product-pic col-xs-6 col-xs-offset-3"><div class="product-pic-wrapper"><img ng-src="{{ vm.blogImage }}" ng-click="vm.uploadResearchImage(event)"></div><i class="ion-ios-close-outline" ng-click="vm.removeResearchImage()" ng-if="!vm.noPicture"></i> <a href="" class="change-userpic" ng-click="vm.uploadResearchImage(event)">Change Blog Image</a> <input type="file" ng-show="false" id="uploadResearchFile" ng-file-select="vm.onFileSelect($files)"></div></div></div><div class="col-md-12 distance-10px"></div><div class="col-md-12"><div class="form-group"><label for="researchTitle">Research Title</label> <input autocomplete="false" type="text" class="form-control" id="researchTitle" name="researchTitle" placeholder="Title" ng-model="vm.researchObj.title" ng-maxlength="120" required=""><ng-messages for="vm.researchForm.researchTitle.$error" ng-if="(vm.researchForm.$submitted && vm.researchForm.researchTitle.$invalid) || (vm.researchForm.researchTitle.$invalid && vm.researchForm.researchTitle.$dirty)"><div ng-message="required" class="errorValidation">Please enter research title.</div><div ng-message="maxlength" class="errorValidation">Can only have 120 characters.</div></ng-messages></div></div><div class="col-md-12"><div class="form-group"><label for="researchTitle">Research Slug</label> <input autocomplete="false" type="text" class="form-control" id="researchSlug" name="researchSlug" placeholder="URL Slug" ng-model="vm.researchObj.slug" required=""><ng-messages for="vm.researchForm.researchSlug.$error" ng-if="(vm.researchForm.$submitted && vm.researchForm.slug.$invalid) || (vm.researchForm.slug.$invalid && vm.researchForm.slug.$dirty)"><div ng-message="required" class="errorValidation">Please enter research slug.</div></ng-messages></div></div><div class="col-md-12"><div class="form-group"><label for="researchTitle">Research Tags</label><tags-input ng-model="vm.researchObj.tags" add-on-paste="true"><auto-complete source="vm.loadTags($query)"></auto-complete></tags-input></div></div><div class="col-md-12"><h3 class="with-line">Research</h3><div class="form-group"><text-angular ng-model="vm.researchObj.content" id="productDescription"></text-angular></div></div><button type="button" ng-click="vm.saveResearch(vm.researchForm, vm.researchObj, vm.imagesData, false)" class="btn btn-success btn-with-icon save-profile"><i class="ion-android-add-circle"></i>Save & Publish</button> <button type="button" ng-click="vm.saveResearch(vm.researchForm, vm.researchObj, vm.imagesData, true)" class="btn btn-primary btn-with-icon save-profile"><i class="ion-android-add-circle"></i>Save As Draft</button> <button type="button" ng-click="vm.cancel(vm.researchForm)" class="btn btn-danger btn-with-icon save-profile"><i class="ion-android-cancel"></i>Cancel</button></div></div></div></div></form></div></div></div>'),e.put("app/dashboard/website/website.html",'<div class="row"><div class="col-md-6"><button class="btn btn-primary" ng-click="vm.goToWebsiteBlogs()">Website Blogs</button></div></div><br><div class="row" ba-panel="" ba-panel-title="Last 30 Days Report"><div class="row pie-charts" ng-if="vm.dashboardData.googleAnalyticsConnected"><div class="dash-cards col-xs-4"><div ba-panel=""><div class="card-item"><div class="details row"><div class="col-xs-4 item"><div class="title">Total Users</div><div class="number" ng-bind="vm.cardsTotalData.visits"></div></div><div class="col-xs-4 item"><div class="title">Page Views</div><div class="number" ng-bind="vm.cardsTotalData.pageViews"></div></div><div class="col-xs-4 item"><div class="title">Hits</div><div class="number" ng-bind="vm.cardsTotalData.hits"></div></div></div></div></div></div><div class="dash-cards col-xs-4"><div ba-panel=""><div class="card-item"><div class="details col-xs-12"><div class="col-xs-12 item"><div class="title">Bounce Rate</div><div class="number" ng-bind="vm.cardsTotalData.bounceRate | percentage: 2"></div></div></div></div></div></div><div class="dash-cards col-xs-4"><div ba-panel=""><div class="card-item"><div class="details col-xs-12"><div class="col-xs-6 item"><div class="title">Sessions</div><div class="number" ng-bind="vm.cardsTotalData.sessions"></div></div><div class="col-xs-6 item"><div class="title">Average Session Duration</div><div class="number" ng-bind="vm.cardsTotalData.avgSessionDuration | secondsToDateTime | date:\'HH:mm:ss\'"></div></div></div></div></div></div></div><div class="col-md-12" ba-panel="" ba-panel-class="medium-panel"><button class="col-md-offset-3 col-md-6 btn btn-success" ng-if="!vm.dashboardData.googleAnalyticsConnected" ng-click="vm.connectGoogleAnalytics()">Connect with Google Analytics to create website dashboard</button><div class="col-xlg-12 col-lg-12 col-md-12 col-sm-12 col-xs-12" ng-if="vm.dashboardData.googleAnalyticsConnected" ba-panel="" ba-panel-class="medium-panel"><line-chart chart-data="vm.trafficChartData" chart-values="vm.trafficChartValues"></line-chart></div><div class="col-xlg-12 col-lg-12 col-md-12 col-sm-12 col-xs-12" ng-if="vm.dashboardData.googleAnalyticsConnected" ba-panel="" ba-panel-class="medium-panel"><map-bubbles heading="Traffic By Country" map-chart-data="vm.mapData"></map-bubbles></div></div></div>'),e.put("app/landing/home/home.html",'<section id="story-home"><div class="story" style="padding-top: 0px; !important"><div class="wrapper"><div class="tp-homeSlider2016"><section class="newSlide intro clearfix" id="tpSlide1"><div class="homeSliderContent"><h1>Enabling Business Transformation</h1><p>Development Acceleration<br>Modernization, Mobility, Experience<br>Speed-to-market</p></div><div class="homeSliderArtwork"><img src="assets/img/landing/slider1.jpg" alt=""></div></section><div class="slider2016Nav"><a id="slideNavLeft"></a> <a id="slideNavRight"></a></div><ul class="sliderPagination"><li data-slide="1" class=""></li><li data-slide="2" class="active"></li></ul></div></div></div></section>'),e.put("app/landing/shell/header.html",'<header id="mainHeader" class="homeNavbar homeNavStickey"><nav id="mainNavWrap" class="navbar navbar-default navbar-fixed-top"><div class="container"><div class="navbar-header"><button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#mainNav" aria-expanded="false"><span class="sr-only">Toggle navigation</span> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span></button> <a class="pull-left" href="http://10pearls.com"><img src="assets/img/favicon-32x32.png" alt="10Pearls" class="img-responsive"></a></div><div class="collapse navbar-collapse" id="mainNav"><ul class="nav navbar-nav"><div class="menu-new-white-menu-container"><ul id="menu-new-white-menu" class="nav-menu"><li id="menu-item-2129" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-2129"><a title="Company" href="http://10pearls.com/company/">Company</a></li><li id="menu-item-2286" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-has-children menu-item-2286 dropdown"><a title="Works" href="#" data-toggle="dropdown" class="dropdown-toggle" aria-haspopup="true">Works</a><ul role="menu" class="dropdown-menu"><li id="menu-item-2231" class="menu-item menu-item-type-post_type menu-item-object-post menu-item-2231"><a title="Time Warner Cable" href="http://10pearls.com/time-warner-cable/">Time Warner Cable</a></li><li id="menu-item-2134" class="menu-item menu-item-type-post_type menu-item-object-post menu-item-2134"><a title="MBO" href="http://10pearls.com/mbo-partners/">MBO</a></li><li id="menu-item-2138" class="menu-item menu-item-type-post_type menu-item-object-post menu-item-2138"><a title="Social Radar" href="http://10pearls.com/social-radar/">Social Radar</a></li><li id="menu-item-2139" class="menu-item menu-item-type-post_type menu-item-object-post menu-item-2139"><a title="Zubie" href="http://10pearls.com/zubie/">Zubie</a></li><li id="menu-item-2136" class="menu-item menu-item-type-post_type menu-item-object-post menu-item-2136"><a title="Nextel Brazil" href="http://10pearls.com/nextel-brazil/">Nextel Brazil</a></li><li id="menu-item-2133" class="menu-item menu-item-type-post_type menu-item-object-post menu-item-2133"><a title="Discovery" href="http://10pearls.com/discovery-nfl/">Discovery</a></li><li id="menu-item-2137" class="menu-item menu-item-type-post_type menu-item-object-post menu-item-2137"><a title="Razorsight" href="http://10pearls.com/razorsight/">Razorsight</a></li><li id="menu-item-2135" class="menu-item menu-item-type-post_type menu-item-object-post menu-item-2135"><a title="National Geographic" href="http://10pearls.com/national-geographic/">National Geographic</a></li><li id="menu-item-2132" class="menu-item menu-item-type-post_type menu-item-object-post menu-item-2132"><a title="Brightline" href="http://10pearls.com/brightline/">Brightline</a></li></ul></li><li id="menu-item-2142" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-2142"><a title="What We Do" href="http://10pearls.com/what-we-do/">What We Do</a></li><li id="menu-item-2140" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-2140"><a title="News" href="http://10pearls.com/news/">News</a></li><li id="menu-item-2144" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-2144"><a title="Blog" href="http://10pearls.com/our-blog/">Blog</a></li><li id="menu-item-2143" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-2143"><a title="Contact" href="http://10pearls.com/get-in-touch/">Contact</a></li><li id="menu-item-2141" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-2141"><a title="Join Our Team" href="http://10pearls.com/join-our-team/">Join Our Team</a></li></ul></div></ul></div></div></nav></header>'),e.put("app/landing/shell/shell.html",'<div ui-view="header"></div><div ui-view="content"></div>'),e.put("app/modals/modalTemplates/basicDropDown.html",'<div class="modal-content"><div class="modal-header"><button type="button" class="close" ng-click="$dismiss()" aria-label="Close"><em class="ion-ios-close-empty sn-link-close"></em></button><h4 class="modal-title" id="myModalLabel" ng-bing="title">{{title}}</h4></div><div class="modal-body"><form class="row form-inline" name="transactionStatus"><div class="form-group col-sm-12 col-xs-12"><input type="text" class="form-control" ng-model="name" id="exampleInputName2" placeholder="Drop Down Value"></div></form></div><div class="modal-footer"><button type="submit" class="btn btn-default" ng-click="$dismiss()">Cancel</button> <button type="button" class="btn btn-primary" ng-click="saveDropDown(endPoint, name, id)">Save Drop Down Value</button></div></div>'),e.put("app/modals/modalTemplates/basicWrapper.html",'<div class="modal-content"><div class="modal-header"><button type="button" class="close" ng-click="$dismiss()" aria-label="Close"><em class="ion-ios-close-empty sn-link-close"></em></button><h4 class="modal-title" id="myModalLabel">Modal title</h4></div><div class="modal-body" ng-transclude=""></div><div class="modal-footer"><button type="button" class="btn btn-primary" ng-click="$dismiss()">Save changes</button></div></div>'),e.put("app/modals/modalTemplates/imageCropper.html",'<div class="modal-content"><div class="modal-header"><button type="button" class="close" ng-click="$dismiss()" aria-label="Close"><em class="ion-ios-close-empty sn-link-close"></em></button><h4 class="modal-title" id="myModalLabel" ng-bing="title">Image Cropper</h4></div><div class="modal-body"><div class="row"><div class="cropArea"><ui-cropper image="image" area-type="rectangle" area-init-size="{w:cropper.cropWidth,h:cropper.cropHeight}" result-image-quality="1.0" aspect-ratio="aspectRatio" result-blob="blob" result-image="croppedImage" result-array-image="croppedImages" result-image-size="resultImageSizes" area-min-size="{w:100, h:100}" init-max-area="true"></ui-cropper></div></div></div><div class="modal-footer"><button type="submit" class="btn btn-default" ng-click="$dismiss()">Cancel</button> <button type="button" class="btn btn-primary" ng-click="saveImage()">Done</button></div></div>'),e.put("app/modals/modalTemplates/loaderModal.html",'<div class="modal-content"><div class="modal-body" style="text-align: center;"><img src="assets/img/loader.svg"></div><div class="modal-footer"></div></div>'),e.put("app/modals/notifications/notifications.html",'<div class="modal-buttons same-width clearfix" ng-controller="NotificationsCtrl"><button type="button" class="btn btn-success" ng-click="showSuccessMsg()">Success Notification</button> <button type="button" class="btn btn-info" ng-click="showInfoMsg()">Info Notification</button> <button type="button" class="btn btn-warning" ng-click="showWarningMsg()">Warning Notification</button> <button type="button" class="btn btn-danger" ng-click="showErrorMsg()">Danger Notification</button></div>'),e.put("app/widgets/blogCard/blogCard.html",'<div class="popular-app-img-container"><div class="popular-app-img"><img height="360" ng-src="{{imageUrl}}"></div><div class="userPic"><img ng-src="{{( userPic | profilePicture )}}"><div class="name" ng-bind="author"></div></div></div><div class="buttons-bar"><button class="btn btn-primary editable-table-button btn-xs" ng-if="canEdit" ng-click="edit(researchId)">Edit</button> <button class="btn display-web editable-table-button btn-xs" ng-if="canDelete" ng-class="{\'btn-danger\': !displayWeb, \'btn-success\': displayWeb}" ng-click="changeWebDisplay(researchId)">Display On Website</button> <button class="btn btn-warning editable-table-button btn-xs" ng-if="canDelete" ng-click="delete(researchId)">Delete</button></div><div class="status" ng-class="{\'published\': !isDraft}" ng-bind="(isDraft) ? \'Draft\' : \'Published\'"></div><div class="popular-app-cost row"><div class="col-xs-9" ng-bind="title"></div></div><div class="popular-app-info row"><div class="col-xs-3 text-left"><div class="info-label">Created On</div><div class="info-text">{{ createdOn | date:appFormats.Date}}</div></div><div class="col-xs-3 text-center"><div class="info-label">Read Time</div><div class="info-text">{{reads | number : fractionSize}}</div></div><div class="col-xs-3 text-right"><div class="info-label">Comment</div><div class="info-text">{{comments | number : fractionSize}}</div></div><div class="col-xs-3 text-right"><div class="info-label">Visitors</div><div class="info-text">{{visitors | number : fractionSize}}</div></div></div>'),e.put("app/widgets/blurFeed/blurFeed.html",'<div class="feed-messages-container" track-width="smallContainerWidth" min-width="360"><div class="feed-message" ng-repeat="message in feed" ng-click="expandMessage(message)"><div class="message-icon" ng-if="message.type == \'text-message\'"><img class="photo-icon" ng-src="{{::( message.author | profilePicture )}}"></div><div class="message-icon" ng-if="message.type != \'text-message\'"><img class="photo-icon" ng-src="{{::( message.author | profilePicture )}}"> <span class="sub-photo-icon" ng-class="::message.type"></span></div><div class="text-block text-message"><div class="message-header"><span class="author">{{ ::message.author }} {{ ::message.surname}}</span></div><div class="message-content line-clamp" ng-class="{\'line-clamp-2\' : !message.expanded}"><span ng-if="message.preview">{{message.header}}</span>{{::message.text}}</div><div class="preview" ng-show="message.expanded" ng-if="message.preview"><a href="{{::message.link}}" target="_blank"><img ng-src="{{ ::( message.preview | appImage )}}"></a></div><div ng-show="message.expanded" class="message-time"><div class="post-time">{{::message.time}}</div><div class="ago-time">{{::message.ago}}</div></div></div></div></div>'),e.put("app/widgets/customFilter/customFilter.template.html",'<div class="col-sm-3" click-off="closeFilter();"><div class="dg-filterDropdown"><div class="dg-filterDropdownField" ng-click="invertShowOptions();"><i class="fa fa-filter">&nbsp;&nbsp;</i>{{title}} <span class="caret"></span> <span ng-show="!isLoading" class="pull-right filter-count" ng-bind="selectedValues.length"></span> <span ng-show="isLoading" class="pull-right filter-count"><i class="fa fa-spinner fa-pulse fa-3x fa-fw"></i></span></div><div class="dg-filterDropdownMenu" id="main-menu{{title}}" ng-show="showOptions"><ul class="dg-head"><li ng-show="dropDownValues.length !== 0"><input type="checkbox" id="checkboxSuccess" ng-click="onSelectAll(selectAll)" ng-model="selectAll"> <span class="dg-value"><input ng-model="textFilter" type="text" class="form-control"></span></li><li ng-show="dropDownValues.length === 0"><span class="dg-value">No values has been entered in to the system</span></li></ul><ul style="overflow-y: scroll;"><li ng-repeat="value in dropDownValues | selectFilterDropDown: textFilter:\'name\'" ng-if="endPoint===apiEndPoints.dropDown.product"><input ng-change="onSingleSelectChange(value,value.selected,\'id\')" type="checkbox" ng-model="value.selected"> <span class="dg-value filterHeading titled-text">{{value.name}}</span> <span class="dg-value">{{value.category}}</span></li><li ng-repeat="value in dropDownValues | selectFilterDropDown: textFilter:\'origin\'" ng-if="endPoint===apiEndPoints.dropDown.priceMarket"><input ng-change="onSingleSelectChange(value,value.selected,\'id\')" type="checkbox" ng-model="value.selected"> <span class="dg-value filterHeading">{{value.origin}}</span> <span class="dg-value">{{value.currency}}</span></li><li ng-repeat="value in dropDownValues | selectFilterDropDown: textFilter:\'name\'" ng-if="endPoint===apiEndPoints.dropDown.country"><input ng-change="onSingleSelectChange(value,value.selected,\'name\')" type="checkbox" ng-model="value.selected"> <span class="dg-value filterHeading"><img width="18" src="{{appConstants.STATIC_URL + value.image}}">&nbsp;{{value.name}}</span></li><li ng-repeat="value in dropDownValues | selectFilterDropDown: textFilter:\'text\'" ng-if="(endPoint===apiEndPoints.dropDown.transactionStatus)"><input ng-init="value.selected = true" ng-change="onSingleSelectChange(value,value.selected,\'id\')" type="checkbox" ng-model="value.selected"> <span class="dg-value singleFilterHeading titled-text">{{value.name}}</span></li><li ng-repeat="value in dropDownValues | selectFilterDropDown: textFilter:\'name\'" ng-if="(endPoint===apiEndPoints.dropDown.bpType)"><input ng-init="value.selected = true" ng-change="onSingleSelectChange(value,value.selected,\'name\')" type="checkbox" ng-model="value.selected"> <span class="dg-value singleFilterHeading titled-text">{{value.name}}</span></li><li ng-repeat="value in dropDownValues | selectFilterDropDown: textFilter:\'name\'" ng-if="(endPoint === apiEndPoints.dropDown.business)"><input ng-init="value.selected = true" ng-change="onSingleSelectChange(value,value.selected,\'id\')" type="checkbox" ng-model="value.selected"> <span class="dg-value filterHeading titled-text">{{value.name}}</span> <span class="dg-value">{{value.country}} | {{value.contactPerson ? value.contactPerson : \'No Primary Contact\' }}</span></li></ul></div></div></div>'),e.put("app/widgets/dashboardCalendar/dashboardCalendar.html",'<div id="calendar" class="blurCalendar"></div>'),e.put("app/widgets/dashboardMap/dashboardMap.html",'<div id="amChartMap"></div>'),e.put("app/widgets/dashboardPieChart/dashboardPieChart.html",'<div class="row pie-charts"><div class="pie-chart-item-container" ng-repeat="chart in charts"><div ba-panel=""><div class="pie-chart-item"><div class="chart" rel="{{ ::chart.color }}" data-percent="60"><span class="percent"></span></div><div class="description"><div>{{ ::chart.description }}</div><div class="description-stats">{{ ::chart.stats }}</div></div><i class="chart-icon i-{{ ::chart.icon }}"></i></div></div></div></div>'),e.put("app/widgets/dashboardTodo/dashboardTodo.html",'<div class="task-todo-container" ng-class="{\'transparent\': transparent}"><input type="text" value="" class="form-control task-todo" placeholder="Task to do.." ng-keyup="addToDoItem($event)" ng-model="newTodoText"> <i ng-click="addToDoItem(\'\',true)" class="add-item-icon ion-plus-round"></i><div class="box-shadow-border"></div><ul class="todo-list" ui-sortable="" ng-model="todoList"><li ng-repeat="item in todoList" ng-if="!item.deleted" ng-init="activeItem=false" ng-class="{checked: isChecked, active: activeItem}" ng-mouseenter="activeItem=true" ng-mouseleave="activeItem=false"><div class="blur-container"><div class="blur-box"></div></div><i class="mark" style="background-color: {{::item.color}}"></i> <label class="todo-checkbox custom-checkbox custom-input-success"><input type="checkbox" ng-model="isChecked"> <span class="cut-with-dots">{{ item.text }}</span></label> <i class="remove-todo ion-ios-close-empty" ng-click="item.deleted = true"></i></li></ul></div>'),
e.put("app/widgets/datePickerInput/datePickerInput.html",'<div class="datePickerInput"><input type="text" class="form-control" uib-datepicker-popup="{{format}}" ng-model="date" is-open="isOpen" datepicker-options="dateOptions" ng-required="true" close-text="Close" popup-placement="bottom-left" alt-input-formats="altInputFormats"> <span class="input-group-btn"><button type="button" class="btn btn-default" ng-click="open()"><i class="glyphicon glyphicon-calendar"></i></button></span></div>'),e.put("app/widgets/deAccordian/deAccordian.html",'<div><uib-tabset class="de-tabs"><uib-tab index="$index + 1" ng-repeat="tab in tabs" active="tab.active"><uib-tab-heading uib-dropdown=""><a uib-dropdown-toggle="" style="cursor:pointer" ng-click="tabClicked($event, tab, null , $index)">{{tab.title}} <i ng-if="tab.hasAccordianDropDown" class="caret"></i></a><ul class="dropdown-menu" uib-dropdown-menu="" ng-if="tab.hasAccordianDropDown"><li ng-repeat="subtab in tab.children"><a ng-click="tabClicked($event, subtab, tab, $index)">{{subtab.title}}</a></li></ul></uib-tab-heading><div ui-view="content"></div></uib-tab></uib-tabset></div>'),e.put("app/widgets/filterBar/filterBar.template.html",'<div ba-panel="" class="dg-filterPanel" ng-if="buyer || seller || product || bpTypes || country || priceMarket || datePickerNeeded"><div class="row"><div ng-if="datePickerNeeded" class="col-sm-6 col-sm-offset-6"><div class="dg-datePicker"><input type="daterange" opens="left" ng-change="datePickerChanged(datePicker)" format="{{appFormats.FullDate}}" ranges="ranges" max-date="maxDate" readonly="true" separator="{{seperator}}" class="form-control date-picker dg-filterDropdown" ng-model="datePicker"></div></div><custom-filter on-selected-values-changed="onBuyersSelectedChanged({selectedList:selectedList})" ng-if="buyer" title="Buyer" end-point="{{apiEndPoints.dropDown.business}}" filtersubtype="{{appTabFilter.BUYER}}"></custom-filter><custom-filter on-selected-values-changed="onSellersSelectedChanged({selectedList:selectedList})" ng-if="seller" end-point="{{apiEndPoints.dropDown.business}}" title="Seller"></custom-filter><custom-filter on-selected-values-changed="onProductsSelectedChanged({selectedList:selectedList})" ng-if="product" title="Products" end-point="{{apiEndPoints.dropDown.product}}"></custom-filter><custom-filter on-selected-values-changed="onBpTypesSelectedChanged({selectedList:selectedList})" title="Business Type" ng-if="bpTypes" end-point="{{apiEndPoints.dropDown.bpType}}"></custom-filter><custom-filter on-selected-values-changed="onCountrySelectedChanged({selectedList:selectedList})" title="Country" ng-if="country" end-point="{{apiEndPoints.dropDown.country}}"></custom-filter><custom-filter on-selected-values-changed="onPriceMarketSelectedChanged({selectedList:selectedList})" title="Price Market" ng-if="priceMarket" end-point="{{apiEndPoints.dropDown.priceMarket}}"></custom-filter><custom-filter on-selected-values-changed="onTranStatusSelectedChanged({selectedList:selectedList})" title="Transaction Status" ng-if="tranStatus" end-point="{{apiEndPoints.dropDown.transactionStatus}}"></custom-filter></div></div>'),e.put("app/widgets/lineChart/lineChart.html",'<div id="amchart"></div>'),e.put("app/widgets/mapBubbles/mapBubbles.html",'<div id="map-bubbles" heading="Traffic By Country"></div>'),e.put("app/widgets/maps/maps.html",'<div class="widgets"><div class="row"><div class="col-md-12" ui-view=""></div></div></div>'),e.put("app/widgets/numberOnlyInput/numberOnlyInput.template.html",'<input ng-class="{\'currency\': currency}" style="cursor:default" ng-required="{{required}}" type="number" step="0.01" ng-blur="onBlur()" ng-focus="onFocus()" class="form-control" placeholder="{{inputPlace}}" name="{{inputName}}" ng-model="inputValue">'),e.put("app/widgets/pageHeader/pageHeader.template.html",'<div class="dg-pageHeader"><a ng-if="rootScope.goBack" ng-click="goToBack()" class="dg-backToLink"><i class="fa fa-chevron-circle-left"></i></a><div class="dg-pageHeaderTop clearfix"><h1 class="dg-pageTitle"><span class="dg-pageMiniTitle">{{rootScope.headerSubTitle}}</span>{{rootScope.headerTitle}}</h1><ul class="dg-pageExtraLinks"><li ui-sref="{{button.state}}" ng-repeat="button in rootScope.headerAnchor"><a>{{button.text}}</a></li></ul></div></div>'),e.put("app/widgets/profile/profile.html",'<div ba-panel="" ba-panel-class="profile-page"><div class="panel-content"><div class="progress-info">Your profile is 70% Complete</div><div class="progress"><div class="progress-bar progress-bar-primary progress-bar-striped active" role="progressbar" aria-valuenow="70" aria-valuemin="0" aria-valuemax="100" style="width: 70%"></div></div><h3 class="with-line">General Information</h3><div class="row"><div class="col-md-6"><div class="form-group row clearfix"><label for="inputFirstName" class="col-sm-3 control-label">Picture</label><div class="col-sm-9"><div class="userpic"><div class="userpic-wrapper"><img ng-src="{{ picture }}" ng-click="uploadPicture()"></div><i class="ion-ios-close-outline" ng-click="removePicture()" ng-if="!noPicture"></i> <a href="" class="change-userpic" ng-click="uploadPicture()">Change Profile Picture</a> <input type="file" ng-show="false" id="uploadFile" ng-file-select="onFileSelect($files)"></div></div></div></div><div class="col-md-6"></div></div><div class="row"><div class="col-md-6"><div class="form-group row clearfix"><label for="inputFirstName" class="col-sm-3 control-label">First Name</label><div class="col-sm-9"><input type="text" class="form-control" id="inputFirstName" placeholder="" value="Anastasiya"></div></div><div class="form-group row clearfix"><label for="inputLastName" class="col-sm-3 control-label">Last Name</label><div class="col-sm-9"><input type="text" class="form-control" id="inputLastName" placeholder="" value=""></div></div></div><div class="col-md-6"><div class="form-group row clearfix"><label class="col-sm-3 control-label">Department</label><div class="col-sm-9"><select class="form-control" selectpicker=""><option>Web Development</option><option>System Development</option><option>Sales</option><option>Human Resources</option></select></div></div><div class="form-group row clearfix"><label for="inputOccupation" class="col-sm-3 control-label">Occupation</label><div class="col-sm-9"><input type="text" class="form-control" id="inputOccupation" placeholder="" value="Front End Web Developer"></div></div></div></div><h3 class="with-line">Change Password</h3><div class="row"><div class="col-md-6"><div class="form-group row clearfix"><label for="inputPassword" class="col-sm-3 control-label">Password</label><div class="col-sm-9"><input type="password" class="form-control" id="inputPassword" placeholder="" value="12345678"></div></div></div><div class="col-md-6"><div class="form-group row clearfix"><label for="inputConfirmPassword" class="col-sm-3 control-label">Confirm Password</label><div class="col-sm-9"><input type="password" class="form-control" id="inputConfirmPassword" placeholder=""></div></div></div></div><h3 class="with-line">Contact Information</h3><div class="row"><div class="col-md-6"><div class="form-group row clearfix"><label for="inputEmail3" class="col-sm-3 control-label">Email</label><div class="col-sm-9"><input type="email" class="form-control" id="inputEmail3" placeholder="" value="contact@akveo.com"></div></div><div class="form-group row clearfix"><label for="inputPhone" class="col-sm-3 control-label">Phone</label><div class="col-sm-9"><input type="text" class="form-control" id="inputPhone" placeholder="" value="+1 (23) 456 7890"></div></div></div><div class="col-md-6"><div class="form-group row clearfix"><label class="col-sm-3 control-label">Office Location</label><div class="col-sm-9"><select class="form-control" title="Standard Select" selectpicker=""><option>San Francisco</option><option>London</option><option>Minsk</option><option>Tokio</option></select></div></div><div class="form-group row clearfix"><label for="inputRoom" class="col-sm-3 control-label">Room</label><div class="col-sm-9"><input type="text" class="form-control" id="inputRoom" placeholder="" value="303"></div></div></div></div><h3 class="with-line">Social Profiles</h3><div class="social-profiles row clearfix"><div class="col-md-3 col-sm-4" ng-repeat="item in socialProfiles"><a class="sn-link" href="" ng-click="showModal(item)" ng-if="!item.href"><i class="socicon {{ item.icon }}"></i> <span>{{ item.name }}</span></a> <a class="sn-link connected" href="{{ item.href }}" target="_blank" ng-if="item.href"><i class="socicon {{ item.icon }}"></i> <span>{{ item.name }}</span> <em class="ion-ios-close-empty sn-link-close" ng-mousedown="unconnect(item)"></em></a></div></div><h3 class="with-line">Send Email Notifications</h3><div class="notification row clearfix"><div class="col-sm-6"><div class="form-group row clearfix"><label class="col-xs-8">When I receive a message</label><div class="col-xs-4"><switch color="primary" ng-model="switches[0]"></switch></div></div><div class="form-group row clearfix"><label class="col-xs-8">When Someone sends me an invitation</label><div class="col-xs-4"><switch color="primary" ng-model="switches[1]"></switch></div></div><div class="form-group row clearfix"><label class="col-xs-8">When profile information changes</label><div class="col-xs-4"><switch color="primary" ng-model="switches[2]"></switch></div></div></div><div class="col-sm-6"><div class="form-group row clearfix"><label class="col-xs-8">When anyone logs into your account from a new device or browser</label><div class="col-xs-4"><switch color="primary" ng-model="switches[3]"></switch></div></div><div class="form-group row clearfix"><label class="col-xs-8">Weekly Reports</label><div class="col-xs-4"><switch color="primary" ng-model="switches[4]"></switch></div></div><div class="form-group row clearfix"><label class="col-xs-8">Daily Reports</label><div class="col-xs-4"><switch color="primary" ng-model="switches[5]"></switch></div></div></div></div><button type="button" class="btn btn-primary btn-with-icon save-profile"><i class="ion-android-checkmark-circle"></i>Update Profile</button></div></div>'),e.put("app/widgets/profile/profileModal.html",'<div class="modal-content"><div class="modal-header"><button type="button" class="close" ng-click="$dismiss()" aria-label="Close"><em class="ion-ios-close-empty sn-link-close"></em></button><h4 class="modal-title" id="myModalLabel">Add Account</h4></div><form name="linkForm"><div class="modal-body"><p>Paste a link to your profile into the box below</p><div class="form-group"><input type="text" class="form-control" placeholder="Link to Profile" ng-model="link"></div></div><div class="modal-footer"><button type="button" class="btn btn-primary" ng-click="ok(link)">Save changes</button></div></form></div>'),e.put("app/widgets/sparklines/sparkline.template.html",'<div class="chart-block" style="padding:28px"><div id="line1" style="vertical-align: middle; display: inline-block; width: 100px; height: 30px;"></div></div>'),e.put("app/widgets/trafficChart/trafficChart.html",'<div class="channels-block" ng-class="{\'transparent\': transparent}"><div class="chart-bg"></div><div class="traffic-chart" id="trafficChart"><div class="canvas-holder"><canvas id="chart-area" width="300" height="300"></canvas><div class="traffic-text">1,900,128 <span>Views Total</span></div></div><div class="traffic-legend"></div></div><div class="channels-info"><div><div class="channels-info-item" ng-repeat="item in doughnutData | orderBy:\'order\'"><div class="legend-color" style="background-color: {{::item.color}}"></div><p>{{::item.label}}<span class="channel-number">+{{item.percentage}}%</span></p><div class="progress progress-sm channel-progress"><div class="progress-bar" role="progressbar" aria-valuenow="{{item.percentage}}" aria-valuemin="0" aria-valuemax="100" style="width: {{item.percentage}}%"></div></div></div></div></div></div>'),e.put("app/widgets/weather/weather.html",'<div class="weather-wrapper"><div class="weather-main-info"><h5 class="city-date font-x1dot5"><div>{{geoData.geoplugin_city}} - {{geoData.geoplugin_countryName | uppercase}}</div><div>{{ weather.days[weather.current].date | date : \'EEEE h:mm\'}}</div></h5><div class="weather-description font-x1dot5"><i class="font-x3 {{weatherIcons[weather.days[weather.current].icon]}}"></i><div class="weather-info">{{weather.days[weather.current].main}} - {{weather.days[weather.current].description}}</div></div><div class="weather-temp font-x1dot5"><i class="font-x2 ion-thermometer"></i><div class="weather-info" ng-switch="" on="units"><span ng-switch-when="metric">{{weather.days[weather.current].temp}} °C | <a ng-click="switchUnits(\'imperial\')" href="">°F</a></span> <span ng-switch-when="imperial">{{weather.days[weather.current].temp}} °F | <a ng-click="switchUnits(\'metric\')" href="">°C</a></span></div></div></div><div id="tempChart" class="temp-by-time"></div><div class="select-day"><div class="day" ng-repeat="day in weather.days" ng-click="switchDay($index)"><div><span class="font-x1dot25">{{day.temp}}</span></div><div><i class="weatherIcon font-x2 {{weatherIcons[day.icon]}}"></i> <span class="select-day-info">{{day.main}}</span></div><div><span>{{day.date | date : \'EEE\'}}</span></div></div></div></div>'),e.put("app/dashboard/businessPartner/template/bankInfo.html",'<form name="vm.bankInfoForm" novalidate=""><div class="row"><div class="col-md-6 marginBottom10px"><button type="button" class="btn btn-primary" data-toggle="modal" ng-click="vm.addBusinessBank(vm.business)">Add Bank Account</button></div></div><h3 class="with-line">All Banks</h3><div ng-repeat="bank in vm.business.banks" class="notification row clearfix margin-top-10px"><div class="col-sm-4"><div class="form-group row clearfix"><label class="col-xs-4">Bank Name</label><div class="col-xs-8"><input ng-required="true" ng-model="bank.bankName" class="form-control" name="{{\'banKName_\'+$index}}" placeholder="Bank Name"><ng-messages for="vm.bankInfoForm[\'banKName_{{$index}}\'].$error" ng-if=\'(vm.bankInfoForm.$submitted && vm.bankInfoForm["banKName_"+$index].$invalid) || (vm.bankInfoForm["banKName_"+$index].$invalid && vm.bankInfoForm["banKName_"+$index].$dirty)\'><div ng-message="required" class="errorValidation">Please enter a bank name.</div></ng-messages></div></div><div class="form-group row clearfix"><label class="col-xs-4">Account Title</label><div class="col-xs-8"><input ng-required="true" ng-model="bank.accountTitle" class="form-control" name="{{\'accountTitle_\'+$index}}" placeholder="Account Title"><ng-messages for="vm.bankInfoForm[\'accountTitle_{{$index}}\'].$error" ng-if=\'(vm.bankInfoForm.$submitted && vm.bankInfoForm["accountTitle_"+$index].$invalid) || (vm.bankInfoForm["accountTitle_"+$index].$invalid && vm.bankInfoForm["accountTitle_"+$index].$dirty)\'><div ng-message="required" class="errorValidation">Please enter account title.</div></ng-messages></div></div><div class="form-group row clearfix"><label class="col-xs-4">Country</label><div class="col-xs-8"><selectize placeholder="Bank Country" name="{{\'bankCountry_\'+$index}}" ng-required="true" config="vm.bankCountryConfig" options="vm.countryOptions.list" ng-model="bank.accountCountry"></selectize><ng-messages for="vm.bankInfoForm[\'locationCountry_{{$index}}\'].$error" ng-if=\'(vm.bankInfoForm.$submitted && vm.bankInfoForm["bankCountry_"+$index].$invalid) || (vm.bankInfoForm["bankCountry_"+$index].$invalid && vm.bankInfoForm["bankCountry_"+$index].$dirty)\'><div ng-message="required" class="errorValidation">Please select a country.</div></ng-messages></div></div><div class="form-group row clearfix"><label class="col-xs-4">Branch Address</label><div class="col-xs-8"><textarea ng-required="true" ng-model="bank.accountAddress" class="form-control" name="{{\'accountAddress_\'+$index}}" placeholder="Account Address">\n                    <ng-messages for="vm.bankInfoForm[\'accountAddress_{{$index}}\'].$error" ng-if=\'(vm.bankInfoForm.$submitted && vm.bankInfoForm["accountAddress_"+$index].$invalid) || (vm.bankInfoForm["accountAddress_"+$index].$invalid && vm.bankInfoForm["accountAddress_"+$index].$dirty)\'>\n                        <div ng-message="required" class="errorValidation">Please enter account address.</div>\n                    </ng-messages>\n                </textarea></div></div></div><div class="col-sm-4"><div class="form-group row clearfix"><label class="col-xs-4">Account Number</label><div class="col-xs-8"><input ng-required="true" ng-model="bank.accountNumber" class="form-control" name="{{\'accountNumber_\'+$index}}" placeholder="Account Number"><ng-messages for="vm.marketPriceForm[\'accountNumber_{{$index}}\'].$error" ng-if=\'(vm.bankInfoForm.$submitted && vm.bankInfoForm["accountNumber_"+$index].$invalid) || (vm.bankInfoForm["accountNumber_"+$index].$invalid && vm.bankInfoForm["accountNumber_"+$index].$dirty)\'><div ng-message="required" class="errorValidation">Please enter account number.</div></ng-messages></div></div><div class="form-group row clearfix"><label class="col-xs-4">City</label><div class="col-xs-8"><selectize placeholder="City" ng-disabled="!bank.accountCountry" id="bankCity_{{$index}}" name="bankCity_{{$index}}" config="vm.cityConfig" options="bank.cityOptions.list" ng-model="bank.accountCity"></selectize></div></div></div><div class="col-sm-2 col-sm-offset-2"><i ng-click="vm.removeBusinessBank(vm.business.banks, bank)" class="fa fa-trash primary-font cursor-pointer" style="padding-top: 10px;"></i></div><br></div></form>'),e.put("app/dashboard/businessPartner/template/basicInfo.html",'<form name="vm.basicInfoForm"><div class="row"><div class="col-md-4"><div class="form-group row clearfix"><label class="col-sm-3 control-label">Business Logo</label><div class="col-sm-9"><div class="userpic"><div class="userpic-wrapper"><img ng-src="{{ vm.businessLogo }}" ng-click="vm.uploadBusinessLogo(event)"></div><i class="ion-ios-close-outline" ng-click="vm.removeBusinessLogo()" ng-if="!vm.business.logo"></i> <a href="" class="change-userpic" ng-click="vm.uploadBusinessLogo(event)">Change Business Logo</a> <input type="file" ng-show="false" id="uploadBusinessLogo" ng-file-select="vm.onFileSelect($files)"></div></div></div></div><div class="col-md-4"><div class="form-group row clearfix"><label for="businessName" class="col-sm-3 control-label">Business</label><div class="col-sm-9"><input type="text" ng-required="true" name="businessName" ng-model="vm.business.name" class="form-control" id="businessName" placeholder="Business Name"><ng-messages for="vm.basicInfoForm.businessName.$error" ng-if="(vm.basicInfoForm.$submitted && vm.basicInfoForm.businessName.$invalid) || (vm.basicInfoForm.businessName.$invalid && vm.basicInfoForm.businessName.$dirty)"><div ng-message="required" class="errorValidation">Please enter business name.</div></ng-messages></div></div><div class="form-group row clearfix"><label class="col-sm-3 control-label">Website</label><div class="col-sm-9"><input type="text" name="businessWebsite" ng-pattern="/^(http:\\/\\/|https:\\/\\/)?[_a-z0-9]+(\\.[_a-z0-9]+)*[a-z0-9-]+(\\.[a-z0-9-]+)*(\\.[a-z]{2,7})$/" ng-model="vm.business.website" class="form-control" id="businessWebsite" placeholder="Business Website"><ng-messages for="vm.profileForm.businessWebsite.$error" ng-if="(vm.basicInfoForm.$submitted && vm.basicInfoForm.businessWebsite.$invalid) || (vm.basicInfoForm.businessWebsite.$invalid && vm.basicInfoForm.businessWebsite.$dirty)"><div ng-message="pattern" class="errorValidation">Please enter a valid website.</div></ng-messages></div></div><div class="form-group row clearfix"><label class="col-sm-3 control-label">NTN No.</label><div class="col-sm-9"><input type="text" name="businessNtn" ng-model="vm.business.ntn" class="form-control" id="businessNtn" placeholder="Business NTN"></div></div><div class="form-group row clearfix"><label class="col-sm-3 control-label">Business Type</label><div class="col-md-9"><selectize placeholder="Business Type" name="businessType" ng-required="true" config="vm.bpTypeConfig" options="vm.bpTypeOptions.list" ng-model="vm.business.bpType"></selectize><ng-messages for="vm.basicInfoForm.businessType.$error" ng-if="(vm.basicInfoForm.$submitted && vm.basicInfoForm.businessType.$invalid) || (vm.basicInfoForm.businessType.$invalid && vm.basicInfoForm.businessType.$dirty)"><div ng-message="required" class="errorValidation">A Business should at least have one type.</div></ng-messages></div></div></div></div></form>'),e.put("app/dashboard/businessPartner/template/contactInfo.html",'<form name="vm.contactInfoForm" novalidate=""><div class="row"><div class="col-md-6 marginBottom10px"><button type="button" class="btn btn-primary" data-toggle="modal" ng-click="vm.addBusinessContact(vm.business)">Add Contact Person</button></div></div><h3 class="with-line">All Contacts</h3><div ng-repeat="contact in vm.business.contacts" class="row"><div class="col-sm-4"><div class="form-group row clearfix"><label class="col-xs-4">Contact Number</label><div class="col-xs-8"><input ng-required="true" ng-pattern="/^[0-9+\\(\\)-]+$/i" ng-model="contact.contactNumber" class="form-control" name="{{\'contactNumber_\'+$index}}" placeholder="Contact Number"><ng-messages for="vm.contactInfoForm[\'contactNumber_{{$index}}\'].$error" ng-if=\'(vm.contactInfoForm.$submitted && vm.businessForm["contactNumber_"+$index].$invalid) || (vm.contactInfoForm["contactNumber_"+$index].$invalid && vm.contactInfoForm["contactNumber_"+$index].$dirty)\'><div ng-message="required" class="errorValidation">Please enter contact number.</div><div ng-message="pattern" class="errorValidation">Contact Number can not have alphabets.</div></ng-messages></div></div></div><div class="col-sm-4"><div class="form-group row clearfix"><label class="col-xs-4">Contact Type</label><div class="col-xs-8"><selectize placeholder="Contact Type" name="{{\'contactType_\'+$index}}" ng-required="true" config="vm.contactTypeConfig" options="vm.contactTypeOptions.list" ng-model="contact.contactType"></selectize><ng-messages for="vm.contactInfoForm[\'contactNumber_{{$index}}\'].$error" ng-if=\'(vm.contactInfoForm.$submitted && vm.contactInfoForm["contactType_"+$index].$invalid) || (vm.contactInfoForm["contactType_"+$index].$invalid && vm.contactInfoForm["contactType_"+$index].$dirty)\'><div ng-message="required" class="errorValidation">Please enter contact type.</div></ng-messages></div></div></div><div class="col-sm-2 col-sm-offset-2"><i ng-click="vm.removeBusinessContact(vm.business.contacts, contact)" class="fa fa-trash primary-font cursor-pointer" style="padding-top: 10px;"></i></div><br><br><h3 class="with-line margin-top-10px margin-bottom-10px" style="width:98%; margin-left: auto; margin-right: auto;"></h3></div></form>'),e.put("app/dashboard/businessPartner/template/contactPerson.html",'<form name="vm.contactPersonInfoForm" novalidate=""><div class="row"><div class="col-md-6 marginBottom10px"><button type="button" class="btn btn-primary" data-toggle="modal" ng-click="vm.addContactPerson(vm.business)">Add Contact Person</button></div></div><h3 class="with-line">All Contact Persons</h3><div ng-repeat="contPerson in vm.business.contactPersons" class="row"><div class="col-sm-4"><div class="form-group row clearfix"><label class="col-xs-4">Full Name</label><div class="col-xs-8"><input ng-required="true" ng-pattern="/^[a-zA-Z ]+$/i" ng-model="contPerson.fullName" class="form-control" name="{{\'personName_\'+$index}}" placeholder="Full Name"><ng-messages for="vm.contactPersonInfoForm[\'personName_{{$index}}\'].$error" ng-if=\'(vm.contactPersonInfoForm.$submitted && vm.contactPersonInfoForm["personName_"+$index].$invalid) || (vm.contactPersonInfoForm["personName_"+$index].$invalid && vm.contactPersonInfoForm["personName_"+$index].$dirty)\'><div ng-message="required" class="errorValidation">Please enter contact person name.</div><div ng-message="pattern" class="errorValidation">Name can only have alphabets.</div></ng-messages></div></div><div class="form-group row clearfix"><label class="col-xs-4">Designation</label><div class="col-xs-8"><input ng-required="true" ng-pattern="/^[a-zA-Z ]+$/i" ng-model="contPerson.designation" class="form-control" name="{{\'personDesignation_\'+$index}}" placeholder="Designation"><ng-messages for="vm.contactPersonInfoForm[\'personDesignation_{{$index}}\'].$error" ng-if=\'(vm.contactPersonInfoForm.$submitted && vm.contactPersonInfoForm["personDesignation_"+$index].$invalid) || (vm.contactPersonInfoForm["personDesignation_"+$index].$invalid && vm.contactPersonInfoForm["personDesignation_"+$index].$dirty)\'><div ng-message="required" class="errorValidation">Please enter designation.</div><div ng-message="pattern" class="errorValidation">Designation can only have alphabets.</div></ng-messages></div></div><div class="form-group row clearfix"><label class="col-xs-4">Email</label><div class="col-xs-8"><input ng-required="true" ng-model="contPerson.email" ng-pattern="/^([\\w-]+(?:\\.[\\w-]+)*)@((?:[\\w-]+\\.)*\\w[\\w-]{0,66})\\.([a-z]{2,6}(?:\\.[a-z]{2})?)$/i" class="form-control" name="{{\'personEmail_\'+$index}}" placeholder="Email"><ng-messages for="vm.contactPersonInfoForm[\'personEmail_{{$index}}\'].$error" ng-if=\'(vm.contactPersonInfoForm.$submitted && vm.contactPersonInfoForm["personEmail_"+$index].$invalid) || (vm.contactPersonInfoForm["personEmail_"+$index].$invalid && vm.contactPersonInfoForm["personEmail_"+$index].$dirty)\'><div ng-message="required" class="errorValidation">Please enter email.</div><div ng-message="pattern" class="errorValidation">Please enter valid person email.</div></ng-messages></div></div></div><div class="col-sm-4"><div class="form-group row clearfix"><label class="col-xs-4">Primary Contact</label><div class="col-xs-8"><input ng-required="true" ng-pattern="/^[0-9-\\(\\)]+$/i" ng-model="contPerson.primaryNumber" class="form-control" name="{{\'contPrimary_\'+$index}}" placeholder="Primary Contact"></div></div><div class="form-group row clearfix"><label class="col-xs-4">Secondary Contact</label><div class="col-xs-8"><input ng-pattern="/^[0-9-\\(\\)]+$/i" ng-model="contPerson.secondaryNumber" class="form-control" name="{{\'contSecondary_\'+$index}}" placeholder="Secondary Contact"></div></div></div><div class="col-sm-2"><div class="checkbox"><label class="custom-checkbox"><input type="checkbox" ng-change="vm.isPrimaryChange(vm.business.contactPersons, contPerson, contPerson.isPrimary, \'isPrimary\')" id="checkboxSuccess" ng-model="contPerson.isPrimary"> <span>Is Primary Contact</span></label></div></div><div class="col-sm-2"><i ng-click="vm.removeContactPerson(vm.business.contactPersons, contPerson)" class="fa fa-trash primary-font cursor-pointer" style="padding-top: 10px;"></i></div><br><br><h3 class="with-line margin-top-10px margin-bottom-10px" style="margin-top:110px; width:98%; margin-left: auto; margin-right: auto;"></h3></div></form>'),e.put("app/dashboard/businessPartner/template/location.html",'<form name="vm.locationInfoForm"><div class="row"><div class="col-md-6 marginBottom10px"><button type="button" class="btn btn-primary" data-toggle="modal" ng-click="vm.addBusinessAddress(vm.business)">Add New Address</button></div></div><h3 class="with-line">All Locations</h3><div ng-repeat="location in vm.business.locations" class="row"><div class="col-md-4"><div class="form-group row clearfix"><label for="locationAddress_{{$index}}" class="col-sm-3 control-label">Address</label><div class="col-sm-9"><textarea ng-model="location.address" style="height: 140px" rows="10" placeholder="Address" class="form-control" name="locationAddress_{{$index}}" id="locationAddress_{{$index}}">\n                            </textarea><ng-messages for="vm.locationInfoForm[\'locationAddress_{{$index}}\'].$error" ng-if=\'(vm.locationInfoForm.$submitted && vm.locationInfoForm["locationAddress_"+$index].$invalid) || (vm.locationInfoForm["locationAddress_"+$index].$invalid && vm.locationInfoForm["locationAddress_"+$index].$dirty)\'><div ng-message="required" class="errorValidation">Please enter valid address.</div></ng-messages></div></div></div><div class="col-md-4"><div class="form-group row clearfix"><label class="col-sm-3 control-label">Country</label><div class="col-sm-9"><selectize placeholder="Country" name="{{\'locationCountry_\'+$index}}" ng-required="true" config="vm.countryConfig" options="vm.countryOptions.list" ng-model="location.country"></selectize><ng-messages for="vm.locationInfoForm[\'locationCountry_{{$index}}\'].$error" ng-if=\'(vm.locationInfoForm.$submitted && vm.locationInfoForm["locationCountry_"+$index].$invalid) || (vm.locationInfoForm["locationCountry_"+$index].$invalid && vm.locationInfoForm["locationCountry_"+$index].$dirty)\'><div ng-message="required" class="errorValidation">Please select a country.</div></ng-messages></div></div><div class="form-group row clearfix"><label class="col-sm-3 control-label">State</label><div class="col-sm-9"><selectize placeholder="State" ng-disabled="!location.country" id="locationState_{{$index}}" name="locationState_{{$index}}" ng-required="true" config="vm.stateConfig" options="location.stateOptions.list" ng-model="location.state"></selectize></div></div><div class="form-group row clearfix"><label for="locationCity_{{$index}}" class="col-sm-3 control-label">City</label><div class="col-sm-9"><selectize placeholder="City" ng-disabled="!location.country" id="locationCity_{{$index}}" name="locationCity_{{$index}}" ng-required="true" config="vm.cityConfig" options="location.cityOptions.list" ng-model="location.city"></selectize></div></div></div><div class="col-sm-2"><div class="checkbox"><label class="custom-checkbox"><input type="checkbox" id="checkboxSuccess" ng-change="vm.isPrimaryChange(vm.business.locations, location, location.isPrimary, \'isPrimary\')" ng-model="location.isPrimary"> <span>Is Primary Address</span></label></div></div><div class="col-sm-2"><i ng-click="vm.removeBusinessLocation(vm.business.locations, location)" class="fa fa-trash primary-font cursor-pointer" style="padding-top: 10px;"></i></div><br><br><h3 class="with-line margin-top-10px margin-bottom-10px" style="margin-top:100px; width:98%; margin-left: auto; margin-right: auto;"></h3></div></form>'),e.put("app/dashboard/businessPartner/template/view.html",""),e.put("app/dashboard/manifest/template/itemForm.html",'<form name="vm.manifestForm" novalidate=""><h3 class="with-line"></h3><div class="row"><div class="col-md-6"><div class="form-group row clearfix"><label for="productItem" class="col-sm-3 control-label">Buyer</label><div class="col-sm-9"><selectize ng-required="true" placeholder="Buyer" name="buyer" id="buyer" config="vm.buyerConfig" options="vm.buyerOptions.list" ng-model="vm.manifestItem.buyerId"></selectize><ng-messages for="vm.manifestForm.buyer.$error" ng-if="(vm.manifestForm.$submitted && vm.manifestForm.buyer.$invalid) || (vm.manifestForm.buyer.$invalid && vm.manifestForm.buyer.$dirty)"><div ng-message="required" class="errorValidation">Please select Buyer</div></ng-messages></div></div><div class="form-group row clearfix"><label for="productItem" class="col-sm-3 control-label">Product Item</label><div class="col-sm-9"><selectize ng-required="true" name="product" placeholder="Product Item" id="product" config="vm.productConfig" options="vm.productOptions.list" ng-model="vm.manifestItem.productId"></selectize><ng-messages for="vm.manifestForm.product.$error" ng-if="(vm.manifestForm.$submitted && vm.manifestForm.product.$invalid) || (vm.manifestForm.product.$invalid && vm.manifestForm.product.$dirty)"><div ng-message="required" class="errorValidation">Please select product.</div></ng-messages></div></div><div class="form-group row clearfix"><label class="col-sm-3 control-label">Date</label><div class="col-sm-9"><div uib-datepicker="" ng-model="vm.manifestItem.date" class="calender margin-top-10px" datepicker-options="options"></div></div></div></div><div class="col-md-6"><div class="form-group row clearfix"><label for="productItem" class="col-sm-3 control-label">Seller</label><div class="col-sm-9"><selectize placeholder="Seller" ng-required="true" name="productItem" id="productItem" config="vm.sellerConfig" options="vm.sellerOptions.list" ng-model="vm.manifestItem.sellerId"></selectize><ng-messages for="vm.manifestForm.productItem.$error" ng-if="(vm.manifestForm.$submitted && vm.manifestForm.productItem.$invalid) || (vm.manifestForm.productItem.$invalid && vm.manifestForm.productItem.$dirty)"><div ng-message="required" class="errorValidation">Please select seller.</div></ng-messages></div></div><div class="form-group row clearfix"><label for="quantityMetric" class="col-sm-3 control-label">Quantity Metric</label><div class="col-sm-9"><selectize ng-required="true" placeholder="Quantity Metric" name="quantityMetric" id="quantityMetric" config="vm.quantityMetricConfig" options="vm.quantityMetricOptions.list" ng-model="vm.manifestItem.quantityMetricId"></selectize><ng-messages for="vm.manifestForm.quantityMetric.$error" ng-if="(vm.manifestForm.$submitted && vm.manifestForm.quantityMetric.$invalid) || (vm.manifestForm.quantityMetric.$invalid && vm.manifestForm.quantityMetric.$dirty)"><div ng-message="required" class="errorValidation">Please enter quantity metric.</div></ng-messages></div></div><div class="form-group row clearfix"><label class="col-sm-3 control-label">Quantity ({{vm.marketPriceObj.priceMetricId ? vm.marketPriceObj.priceMetricId : \'FCL\' }})</label><div class="col-sm-9"><input required="" ng-pattern="/^[0-9]+$/i" ng-model="vm.manifestItem.quantity" class="form-control" name="quantity" placeholder="Quantity in {{vm.manifestItem.quantityMetricId}}"><ng-messages for="vm.manifestForm.quantity.$error" ng-show="(vm.manifestForm.$submitted && vm.manifestForm.quantity.$invalid) || (vm.manifestForm.quantity.$invalid && vm.manifestForm.quantity.$dirty)" role="alert"><ng-message class="errorValidation" when="required">Please enter price value.</ng-message><ng-message class="errorValidation" when="pattern">Quantity can only have numbers.</ng-message></ng-messages></div></div><div class="form-group row clearfix"><label class="col-sm-3 control-label">Container No.</label><div class="col-sm-9"><input ng-model="vm.manifestItem.containerNo" class="form-control" name="containerNo" placeholder="Container No."></div></div></div></div><div class="row"><div class="col-md-12"><div class="form-group row clearfix"><label for="priceComments" class="col-sm-3 control-label">Comments</label><div class="col-sm-12"><textarea ng-model="vm.manifestItem.comments" placeholder="Comments" class="form-control" id="priceComments">\n                        </textarea></div></div></div></div><button type="submit" ng-if="!vm.manifestItem.id" ng-click="vm.saveManifestItem(vm.manifestItem, vm.manifestForm, true)" class="btn btn-success btn-with-icon save-profile"><i class="ion-android-checkmark-circle"></i>Add Manifest Item & Add Another</button> <button type="submit" ng-if="!vm.manifestItem.id" ng-click="vm.saveManifestItem(vm.manifestItem, vm.manifestForm)" class="btn btn-primary btn-with-icon save-profile"><i class="ion-android-checkmark-circle"></i>Add Manifest Item & Exit</button> <button type="submit" ng-if="vm.manifestItem.id" ng-click="vm.saveManifestItem(vm.manifestItem, vm.manifestForm)" class="btn btn-primary btn-with-icon save-profile"><i class="ion-android-checkmark-circle"></i>Update Manifest Item</button> <button type="button" ng-click="vm.cancel()" class="btn btn-danger btn-with-icon save-profile"><i class="ion-android-cancel"></i>Cancel</button></form>'),
e.put("app/dashboard/settings/dashboardProducts/dashboardProducts.html",'<div class="row"><div class="col-md-12" ba-panel="" ba-panel-title="Add New Transaction Status" ba-panel-class="with-scroll"><div><form class="row form-inline" name="transactionStatus"><div class="form-group col-sm-6 col-xs-6"><input type="text" class="form-control" id="exampleInputName2" placeholder="Name"></div><button type="submit" class="btn btn-primary">Add</button> <button type="submit" class="btn btn-default">Clear</button></form></div></div><div class="col-md-12"><div ba-panel="" ba-panel-title="All Transaction Status" ba-panel-class="with-scroll"><div class="horizontal-scroll"><table class="table" st-table="smartTableData"></table></div></div></div></div>'),e.put("app/dashboard/settings/templates/appDropDown.html",'<div ba-panel="" ba-panel-class="tabs-panel with-scroll"><uib-tabset class="tabs-left"><uib-tab ng-repeat="dropDown in vm.appDropDowns" heading="{{dropDown.title}}" ng-click="vm.getDropDownList(dropDown)"><button class="btn btn-primary" data-toggle="modal" ng-click="vm.openDropDownModal(\'Add New \' + dropDown.title, dropDown.endPoint, vm.page, \'md\', vm.modalController, null, null)">Add New {{dropDown.title}}</button><br><br><table class="table" st-table="smartTableData"><thead><tr class="sortable table-header" ng-if="dropDown.list.length!==0"><th>Drop Down Value</th><th>Created By</th><th>Created On</th><th>Updated By</th><th>Updated On</th><th>Actions</th></tr><tr class="table-header" ng-if="dropDown.list.length===0"><th>No values have been added.</th></tr></thead><tbody><tr ng-repeat="row in dropDown.list"><td ng-bind="row.name"></td><td ng-bind="row.createdBy"></td><td ng-bind="row.createdAt | date:vm.appFormats.Date"></td><td>{{(!row.updatedBy) && \'Not Updated\' || row.updatedBy}}</td><td>{{(!row.updatedOn) && \'Not Updated\' || (row.updatedOn | date:vm.appFormats.Date)}}</td><td><div class="buttons"><button class="btn btn-primary editable-table-button btn-xs" ng-click="vm.openDropDownModal(\'Edit \' + dropDown.title, dropDown.endPoint, vm.page, \'md\', vm.modalController, row.name, row.id)">Edit</button></div></td></tr></tbody></table></uib-tab></uib-tabset></div>'),e.put("app/dashboard/settings/templates/businessDetails.html",'<div><div class="panel-content"><form name="vm.businessSettingsForm"><div class="row"><div class="container"><div class="col-md-12"><label>Website</label> <input type="text" name="businessWebsite" ng-pattern="/^(http:\\/\\/|https:\\/\\/)?[_a-z0-9]+(\\.[_a-z0-9]+)*[a-z0-9-]+(\\.[a-z0-9-]+)*(\\.[a-z]{2,7})$/" ng-model="vm.businessSettings.website" class="form-control" id="businessWebsite" placeholder="Business Website"><ng-messages for="vm.businessSettingsForm.businessWebsite.$error" ng-if="(vm.businessSettingsForm.$submitted && vm.businessSettingsForm.businessWebsite.$invalid) || (vm.businessSettingsForm.businessWebsite.$invalid && vm.businessSettingsForm.businessWebsite.$dirty)"><div ng-message="pattern" class="errorValidation">Please enter a valid website.</div></ng-messages></div></div><br><div class="container"><div class="col-md-12"><div class="form-group"><button type="submit" ng-click="vm.saveBusinessSettings(vm.businessSettingsForm, vm.businessSettings)" class="btn btn-primary">Save Business Settings</button></div></div></div></div></form></div></div>'),e.put("app/dashboard/settings/templates/changePassword.html",'<div><div class="panel-content"><form name="vm.changePassword"><div class="row"><div class="container"><div class="col-md-12"><label>Old Password</label> <input name="oldPassword" type="password" ng-model-options="{ updateOn: \'default blur\' }" ng-model="vm.passwordDetails.oldPassword" class="form-control" oncopy="return false" ondrag="return false" ondrop="return false" onpaste="return false" placeholder="{{vm.inputFields.OldPassword.placeholder}}" ng-required="true"><ng-messages for="vm.changePassword.oldPassword.$error" ng-if="vm.changePassword.oldPassword.$dirty || vm.changePassword.$submitted"><div ng-message="required" class="errorValidation">{{::vm.inputFields.OldPassword.errorValidations.required}}</div></ng-messages></div></div><br><div class="container"><div class="col-md-12"><label>New Password</label> <input name="newPassword" type="password" ng-model-options="{ updateOn: \'default blur\' }" ng-model="vm.passwordDetails.newPassword" ng-pattern="/^(?=^.{8,32}$)(?=.*\\d)(?=.*[a-zA-Z])(?=.*[!@#$%^&amp;*()_+}{&quot;:;\'?/&gt;.&lt;,])(?!.*\\s).*$/" ng-minlength="{{vm.inputFields.NewPassword.minLength}}" ng-maxlength="{{vm.inputFields.NewPassword.maxLength}}" class="form-control" oncopy="return false" ondrag="return false" ondrop="return false" onpaste="return false" placeholder="{{vm.inputFields.NewPassword.placeholder}}" ng-required="true"><ng-messages for="vm.changePassword.newPassword.$error" ng-if="vm.changePassword.newPassword.$dirty || vm.changePassword.$submitted"><div ng-message="required" class="errorValidation">{{::vm.inputFields.NewPassword.errorValidations.required}}</div><div class="errorValidation" ng-message="pattern">{{::vm.inputFields.NewPassword.errorValidations.pattern}}</div></ng-messages></div></div><br><div class="container"><div class="col-md-12"><label>Confirm Password</label> <input name="confirmPassword" type="password" ng-model-options="{ updateOn: \'default blur\' }" ng-model="vm.passwordDetails.confirmPassword" class="form-control" oncopy="return false" ondrag="return false" ondrop="return false" onpaste="return false" ui-validate="\'$value===vm.changePassword.newPassword.$viewValue\'" ui-validate-watch="\'vm.passwordDetails.newPassword\'" placeholder="{{vm.inputFields.ConfirmPassword.placeholder}}" ng-required="true"><ng-messages for="vm.changePassword.confirmPassword.$error" ng-if="vm.changePassword.confirmPassword.$dirty || vm.changePassword.$submitted"><div ng-message="required" class="errorValidation">{{::vm.inputFields.ConfirmPassword.errorValidations.required}}</div><div class="errorValidation" ng-message="validator">{{::vm.inputFields.ConfirmPassword.errorValidations.validator}}</div></ng-messages></div></div><br><div class="container"><div class="col-md-12"><div class="form-group"><button type="submit" ng-click="vm.changePasswordSubmit(vm.changePassword, vm.passwordDetails)" class="btn btn-primary">Change Password</button></div></div></div></div></form></div></div>'),e.put("app/dashboard/tradeBook/transaction/transaction.html",'<div class="widgets"><div class="row"><div class="col-md-12"><div ba-panel="" ba-panel-title="" ba-panel-class="with-scroll"><div ng-include="\'app/dashboard/tradeBook/transaction/templates/basic.html\'"></div><div ng-include="\'app/dashboard/tradeBook/transaction/templates/product.html\'"></div><div ng-include="\'app/dashboard/tradeBook/transaction/templates/commission.html\'"></div><div ng-include="\'app/dashboard/tradeBook/transaction/templates/shipment.html\'"></div><div ng-include="\'app/dashboard/tradeBook/transaction/templates/notes.html\'"></div><div ng-include="\'app/dashboard/tradeBook/transaction/templates/documents.html\'"></div></div></div></div></div>'),e.put("app/dashboard/user/profile/profile.html",'<div ba-panel="" ba-panel-class="profile-page"><div class="panel-content"><form name="vm.profileForm" novalidate=""><h3 class="with-line">General Information</h3><div class="row"><div class="col-md-6"><div class="form-group row clearfix"><label for="inputFirstName" class="col-sm-3 control-label">Picture</label><div class="col-sm-9"><div class="userpic"><div class="userpic-wrapper"><img ng-src="{{ vm.picture }}" ng-click="vm.uploadPicture(event)"></div><i class="ion-ios-close-outline" ng-click="vm.removePicture()" ng-if="!vm.noPicture"></i> <a href="" class="change-userpic" ng-click="vm.uploadPicture(event)">Change Profile Picture</a> <input type="file" ng-show="false" id="uploadFile" ng-file-select="vm.onFileSelect($files)"></div></div></div></div><div class="col-md-6"></div></div><div class="row"><div class="col-md-6"><div class="form-group row clearfix"><label for="inputFirstName" class="col-sm-3 control-label">First Name</label><div class="col-sm-9"><input type="text" ng-required="true" name="firstName" ng-pattern="/^[a-zA-Z]*$/" ng-model="vm.userProfile.firstName" class="form-control" id="inputFirstName" placeholder="First Name"><ng-messages for="vm.profileForm.firstName.$error" ng-if="(vm.profileForm.$submitted && vm.profileForm.firstName.$invalid) || (vm.profileForm.firstName.$invalid && vm.profileForm.firstName.$dirty)"><div ng-message="required" class="errorValidation">Please enter first name.</div><div ng-message="pattern" class="errorValidation">First Name can only have alphabets.</div></ng-messages></div></div><div class="form-group row clearfix"><label for="lastName" class="col-sm-3 control-label">Last Name</label><div class="col-sm-9"><input type="text" ng-model="vm.userProfile.lastName" class="form-control" name="lastName" ng-pattern="/^[a-zA-Z]*$/" ng-required="true" id="lastName" placeholder="Last Name"><ng-messages for="vm.profileForm.lastName.$error" ng-if="(vm.profileForm.$submitted && vm.profileForm.lastName.$invalid) || (vm.profileForm.lastName.$invalid && vm.profileForm.lastName.$dirty)"><div ng-message="required" class="errorValidation">Please enter last name.</div><div ng-message="pattern" class="errorValidation">Last Name can only have alphabets.</div></ng-messages></div></div><div class="form-group row clearfix"><label class="col-sm-3 control-label">Designation</label><div class="col-sm-9"><selectize name="designation" required="true" placeholder="Designation" config="vm.designationConfig" options="vm.designationOptions.list" ng-model="vm.userProfile.designationId"></selectize><ng-messages for="vm.profileForm.designation.$error" ng-if="(vm.profileForm.$submitted && vm.profileForm.designation.$invalid) || (vm.profileForm.designation.$invalid && vm.profileForm.designation.$dirty)"><div ng-message="required" class="errorValidation">Please select a designation.</div></ng-messages></div></div></div><div class="col-md-6"><div class="form-group row clearfix"><label class="col-sm-3 control-label">Office Location</label><div class="col-sm-9"><selectize placeholder="Office Location" name="officeLocation" required="true" config="vm.locationConfig" options="vm.locationOptions.list" ng-model="vm.userProfile.businessLocationId"></selectize><ng-messages for="vm.profileForm.officeLocation.$error" ng-if="(vm.profileForm.$submitted && vm.profileForm.officeLocation.$invalid) || (vm.profileForm.officeLocation.$invalid && vm.profileForm.officeLocation.$dirty)"><div ng-message="required" class="errorValidation">Please select an office Location.</div></ng-messages></div></div><div class="form-group row clearfix"><label for="email" ng-required="true" class="col-sm-3 control-label">Email</label><div class="col-sm-9"><input type="email" class="form-control" ng-pattern="/^([\\w-]+(?:\\.[\\w-]+)*)@((?:[\\w-]+\\.)*\\w[\\w-]{0,66})\\.([a-z]{2,6}(?:\\.[a-z]{2})?)$/i" name="email" ng-model="vm.userProfile.email" ng-required="true" id="email" placeholder=""><ng-messages for="vm.profileForm.email.$error" ng-if="(vm.profileForm.$submitted && vm.profileForm.email.$invalid) || (vm.profileForm.email.$invalid && vm.profileForm.email.$dirty)"><div ng-message="pattern" class="errorValidation">Invalid email.</div><div ng-message="required" class="errorValidation">Please enter user email.</div></ng-messages></div></div><div class="form-group row clearfix"><label for="username" class="col-sm-3 control-label">User Name</label><div class="col-sm-9"><input type="text" ng-pattern="/^[a-zA-Z0-9]*$/" ng-model="vm.userProfile.username" name="username" class="form-control" id="username" placeholder="User Name"><ng-messages for="vm.profileForm.username.$error" ng-if="(vm.profileForm.$submitted && vm.profileForm.username.$invalid) || (vm.profileForm.username.$invalid && vm.profileForm.username.$dirty)"><div ng-message="required" class="errorValidation">Please enter user username.</div><div ng-message="required" class="errorValidation">User Name can only be alphanumeric.</div></ng-messages></div></div></div></div><h3 class="with-line">Send Email Notifications</h3><div class="notification row clearfix"><div class="col-sm-6"><div class="form-group row clearfix"><label class="col-xs-8">When a new transaction is added</label><div class="col-xs-4"><switch color="primary" ng-model="vm.userProfile.notify.newTransaction"></switch></div></div><div class="form-group row clearfix"><label class="col-xs-8">When shipment arrives</label><div class="col-xs-4"><switch color="primary" ng-model="vm.userProfile.notify.shipmentArrival"></switch></div></div><div class="form-group row clearfix"><label class="col-xs-8">When I recieve a message</label><div class="col-xs-4"><switch color="primary" ng-model="vm.userProfile.notify.messages"></switch></div></div></div><div class="col-sm-6"><div class="form-group row clearfix"><label class="col-xs-8">Monthly Reports</label><div class="col-xs-4"><switch color="primary" ng-model="vm.userProfile.notify.monthlyReports"></switch></div></div><div class="form-group row clearfix"><label class="col-xs-8">Weekly Reports</label><div class="col-xs-4"><switch color="primary" ng-model="vm.userProfile.notify.weeklyReports"></switch></div></div><div class="form-group row clearfix"><label class="col-xs-8">Daily Reports</label><div class="col-xs-4"><switch color="primary" ng-model="vm.userProfile.notify.dailyReports"></switch></div></div></div></div><button type="submit" ng-if="vm.userProfile.id" ng-click="vm.updateUser(vm.profileForm, vm.userProfile, vm.imagesData)" class="btn btn-primary btn-with-icon save-profile"><i class="ion-android-checkmark-circle"></i>Update Profile</button> <button type="submit" ng-if="!vm.userProfile.id" ng-click="vm.addUser(vm.profileForm, vm.userProfile, vm.imagesData)" class="btn btn-primary btn-with-icon save-profile"><i class="ion-android-checkmark-circle"></i>Add New Profile</button> <button type="button" ng-click="vm.cancel()" class="btn btn-danger btn-with-icon save-profile"><i class="ion-android-cancel"></i>Cancel</button></form></div></div>'),e.put("app/dashboard/user/profile/profileModal.html",'<div class="modal-content"><div class="modal-header"><button type="button" class="close" ng-click="$dismiss()" aria-label="Close"><em class="ion-ios-close-empty sn-link-close"></em></button><h4 class="modal-title" id="myModalLabel">Add Account</h4></div><form name="linkForm"><div class="modal-body"><p>Paste a link to your profile into the box below</p><div class="form-group"><input type="text" class="form-control" placeholder="Link to Profile" ng-model="link"></div></div><div class="modal-footer"><button type="button" class="btn btn-primary" ng-click="ok(link)">Save changes</button></div></form></div>'),e.put("app/theme/components/baSidebar/ba-sidebar.html",'<aside class="al-sidebar" ng-swipe-right="$baSidebarService.setMenuCollapsed(false)" ng-swipe-left="$baSidebarService.setMenuCollapsed(true)" ng-mouseleave="hoverElemTop=selectElemTop"><ul class="al-sidebar-list" slimscroll="{height: \'{{menuHeight}}px\'}" slimscroll-watch="menuHeight"><li ng-repeat="item in ::menuItems" class="al-sidebar-list-item" ng-class="::{\'with-sub-menu\': item.subMenu}" ui-sref-active="selected" ba-sidebar-toggling-item="item"><a ng-mouseenter="hoverItem($event, item)" ui-state="item.stateRef || \'\'" ng-href="{{::(item.fixedHref ? item.fixedHref: \'\')}}" ng-if="::!item.subMenu" class="al-sidebar-list-link"><i class="{{ ::item.icon }}"></i><span>{{ ::item.title }}</span></a> <a ng-mouseenter="hoverItem($event, item)" ng-if="::item.subMenu" class="al-sidebar-list-link" ba-ui-sref-toggler=""><i class="{{ ::item.icon }}"></i><span>{{ ::item.title }}</span> <b class="fa fa-angle-down" ui-sref-active="fa-angle-up" ng-if="::item.subMenu"></b></a><ul ng-if="::item.subMenu" class="al-sidebar-sublist" ng-class="{\'slide-right\': item.slideRight}" ba-ui-sref-toggling-submenu=""><li ng-repeat="subitem in ::item.subMenu" ng-class="::{\'with-sub-menu\': subitem.subMenu}" ui-sref-active="selected" ba-sidebar-toggling-item="subitem" class="ba-sidebar-sublist-item"><a ng-mouseenter="hoverItem($event, item)" ng-if="::subitem.subMenu" ba-ui-sref-toggler="" class="al-sidebar-list-link subitem-submenu-link"><span>{{ ::subitem.title }}</span> <b class="fa" ng-class="{\'fa-angle-up\': subitem.expanded, \'fa-angle-down\': !subitem.expanded}" ng-if="::subitem.subMenu"></b></a><ul ng-if="::subitem.subMenu" class="al-sidebar-sublist subitem-submenu-list" ng-class="{expanded: subitem.expanded, \'slide-right\': subitem.slideRight}" ba-ui-sref-toggling-submenu=""><li ng-mouseenter="hoverItem($event, item)" ng-repeat="subSubitem in ::subitem.subMenu" ui-sref-active="selected"><a ng-mouseenter="hoverItem($event, item)" href="" ng-if="::subSubitem.disabled" class="al-sidebar-list-link">{{ ::subSubitem.title }}</a> <a ng-mouseenter="hoverItem($event, item)" ui-state="subSubitem.stateRef || \'\'" ng-if="::!subSubitem.disabled" ng-href="{{::(subSubitem.fixedHref ? subSubitem.fixedHref: \'\')}}">{{::subSubitem.title }}</a></li></ul><a ng-mouseenter="hoverItem($event, item)" href="" ng-if="::(!subitem.subMenu && subitem.disabled)" class="al-sidebar-list-link">{{ ::subitem.title }}</a> <a ng-mouseenter="hoverItem($event, item)" target="{{::(subitem.blank ? \'_blank\' : \'_self\')}}" ng-if="::(!subitem.subMenu && !subitem.disabled)" ui-state="subitem.stateRef || \'\'" ng-href="{{::(subitem.fixedHref ? subitem.fixedHref: \'\')}}">{{ ::subitem.title}}</a></li></ul></li></ul><div class="sidebar-hover-elem" ng-style="{top: hoverElemTop + \'px\', height: hoverElemHeight + \'px\'}" ng-class="{\'show-hover-elem\': showHoverElem }"></div></aside>'),e.put("app/theme/components/baWizard/baWizard.html",'<div class="ba-wizard"><div class="ba-wizard-navigation-container"><div ng-repeat="t in $baWizardController.tabs" class="ba-wizard-navigation {{$baWizardController.tabNum == $index ? \'active\' : \'\'}}" ng-click="$baWizardController.selectTab($index)">{{t.title}}</div></div><div class="progress ba-wizard-progress"><div class="progress-bar progress-bar-danger active" role="progressbar" aria-valuemin="0" aria-valuemax="100" ng-style="{width: $baWizardController.progress + \'%\'}"></div></div><div class="steps" ng-transclude=""></div><nav><ul class="pager ba-wizard-pager"><li class="previous"><button ng-show="!$baWizardController.isFirstTab()" ng-click="$baWizardController.previousTab()" type="button" class="btn btn-primary"><span aria-hidden="true">&larr;</span>Previous</button></li><li class="next margin-left-20px"><button ng-click="$baWizardController.onCancel()" type="button" class="btn btn-danger">Cancel <span aria-hidden="true"></span></button></li><li class="next"><button ng-click="$baWizardController.nextTab()" type="button" class="btn btn-primary">{{$baWizardController.tabs[$baWizardController.tabNum].submitButtonTitle}} <span aria-hidden="true">&rarr;</span></button></li></ul></nav></div>'),e.put("app/theme/components/baWizard/baWizardStep.html",'<section ng-show="selected" class="step" ng-transclude=""></section>'),e.put("app/theme/components/backTop/backTop.html",'<i class="fa fa-angle-up back-top" id="backTop" title="Back to Top"></i>'),e.put("app/theme/components/contentTop/contentTop.html",'<div class="content-top clearfix"><h1 class="al-title">{{ activePageTitle }}</h1><ul class="breadcrumb al-breadcrumb"><li><a href="#/dashboard">Home</a></li><li>{{ activePageTitle }}</li></ul></div>'),e.put("app/theme/components/msgCenter/msgCenter.html",'<ul class="al-msg-center clearfix"><li uib-dropdown=""><a href="" uib-dropdown-toggle=""><i class="fa fa-bell-o"></i><span>5</span><div class="notification-ring"></div></a><div uib-dropdown-menu="" class="top-dropdown-menu"><i class="dropdown-arr"></i><div class="header clearfix"><strong>Notifications</strong> <a href="">Mark All as Read</a> <a href="">Settings</a></div><div class="msg-list"><a href="" class="clearfix" ng-repeat="msg in notifications"><div class="img-area"><img ng-class="{\'photo-msg-item\' : !msg.image}" ng-src="{{::( msg.image || (users[msg.userId].name | profilePicture) )}}"></div><div class="msg-area"><div ng-bind-html="getMessage(msg)"></div><span>{{ msg.time }}</span></div></a></div><a href="">See all notifications</a></div></li><li uib-dropdown=""><a href="" class="msg" uib-dropdown-toggle=""><i class="fa fa-envelope-o"></i><span>5</span><div class="notification-ring"></div></a><div uib-dropdown-menu="" class="top-dropdown-menu"><i class="dropdown-arr"></i><div class="header clearfix"><strong>Messages</strong> <a href="">Mark All as Read</a> <a href="">Settings</a></div><div class="msg-list"><a href="" class="clearfix" ng-repeat="msg in messages"><div class="img-area"><img class="photo-msg-item" ng-src="{{::( users[msg.userId].name | profilePicture )}}"></div><div class="msg-area"><div>{{ msg.text }}</div><span>{{ msg.time }}</span></div></a></div><a href="">See all messages</a></div></li></ul>'),e.put("app/theme/components/pageTop/pageTop.html",'<div class="page-top clearfix" scroll-position="scrolled" max-height="50" ng-class="{\'scrolled\': scrolled}"><a href="#/dashboard" class="al-logo clearfix"><img src="assets/img/favicon-32x32.png" alt="10Pearls"><a href="" class="collapse-menu-link ion-navicon" ba-sidebar-toggle-menu=""></a><div class="search"><i class="ion-ios-search-strong" ng-click="startSearch()"></i> <input id="searchInput" type="text" placeholder="Search for..."></div><div class="user-profile clearfix"><div class="al-user-profile" uib-dropdown=""><a uib-dropdown-toggle="" class="profile-toggle-link"><img ng-src="{{( userData.data.smallProfilePic | profilePicture )}}"></a><ul class="top-dropdown-menu profile-dropdown" uib-dropdown-menu=""><li><i class="dropdown-arr"></i></li><li><a ui-sref="dashboard.user.profile({id:userData.data.id})"><i class="fa fa-user"></i>{{userData.data.firstName + \' \' + userData.data.lastName}}</a></li><li><a ui-sref="dashboard.settings"><i class="fa fa-cog"></i>Settings</a></li><li ng-click="logout()"><a href="" class="signout"><i class="fa fa-power-off"></i>Sign out</a></li></ul></div><msg-center></msg-center></div></a></div>'),e.put("app/theme/components/progressBarRound/progressBarRound.html",'<svg class="center-block progress-bar-round" width="200" height="200"><circle cx="100" cy="100" r="90" fill="none" stroke="#F8F8FF" stroke-width="8"></circle><circle cx="100" cy="100" r="90" fill="none" id="loader" class="" stroke="#209e91" stroke-width="8" stroke-dasharray="0,20000" transform="rotate(-90,100,100)" stroke-linecap="round"></circle><text text-anchor="middle" class="loading" x="100" y="90">Loading...</text><text class="percentage" text-anchor="middle" x="100" y="130">{{progress}}%</text></svg>'),e.put("app/theme/components/widgets/widgets.html",'<div class="widgets"><div ng-repeat="widgetBlock in ngModel" ng-class="{\'row\': widgetBlock.widgets.length > 1}"><div ng-repeat="widgetCol in widgetBlock.widgets" ng-class="{\'col-md-6\': widgetBlock.widgets.length === 2}" ng-model="widgetCol" class="widgets-block"><div ba-panel="" ba-panel-title="{{::widget.title}}" ng-repeat="widget in widgetCol" ba-panel-class="with-scroll {{widget.panelClass}}"><div ng-include="widget.url"></div></div></div></div></div>'),e.put("app/widgets/charts/amCharts/charts.html",'<div class="widgets"><div class="row"><div class="col-lg-4 col-md-6" ba-panel="" ba-panel-title="Bar Chart" ba-panel-class="with-scroll"><div ng-include="\'app/pages/charts/amCharts/barChart/barChart.html\'"></div></div><div class="col-lg-4 col-md-6" ba-panel="" ba-panel-title="Area Chart" ba-panel-class="with-scroll"><div ng-include="\'app/pages/charts/amCharts/areaChart/areaChart.html\'"></div></div><div class="col-lg-4 col-md-12" ba-panel="" ba-panel-title="Line Chart" ba-panel-class="with-scroll"><div ng-include="\'app/pages/charts/amCharts/lineChart/lineChart.html\'"></div></div></div><div class="row"><div class="col-md-6" ba-panel="" ba-panel-title="Pie Chart" ba-panel-class="with-scroll"><div ng-include="\'app/pages/charts/amCharts/pieChart/pieChart.html\'"></div></div><div class="col-md-6" ba-panel="" ba-panel-title="Funnel Chart" ba-panel-class="with-scroll"><div ng-include="\'app/pages/charts/amCharts/funnelChart/funnelChart.html\'"></div></div></div><div class="row"><div class="col-md-12" ba-panel="" ba-panel-title="Combined bullet/column and line graphs with multiple value axes" ba-panel-class="with-scroll"><div ng-include="\'app/pages/charts/amCharts/combinedChart/combinedChart.html\'"></div></div></div></div>'),e.put("app/widgets/charts/chartJs/chartJs.html",'<div class="row"><div class="col-md-4" ng-controller="chartJs1DCtrl"><div ba-panel="" ba-panel-title="Pie" ba-panel-class="with-scroll"><canvas id="pie" class="chart chart-pie" chart-legend="true" chart-options="options" chart-data="data" chart-labels="labels" chart-click="changeData"></canvas></div></div><div class="col-md-4" ng-controller="chartJs1DCtrl"><div ba-panel="" ba-panel-title="Doughnut" ba-panel-class="with-scroll"><canvas id="doughnut" chart-options="options" class="chart chart-doughnut" chart-legend="true" chart-data="data" chart-labels="labels" chart-click="changeData"></canvas></div></div><div class="col-md-4" ng-controller="chartJs1DCtrl"><div ba-panel="" ba-panel-title="Polar" ba-panel-class="with-scroll"><canvas id="polar-area" class="chart chart-polar-area" chart-data="data" chart-options="polarOptions" chart-labels="labels" chart-legend="true" chart-click="changeData"></canvas></div></div></div><div class="row"><div class="col-md-6" ng-controller="chartJsWaveCtrl"><div ba-panel="" ba-panel-title="Animated Radar" ba-panel-class="with-scroll col-eq-height"><canvas id="waveLine" class="chart chart-radar" chart-data="data" chart-labels="labels" chart-legend="false"></canvas></div></div><div class="col-md-6" ng-controller="chartJsWaveCtrl"><div ba-panel="" ba-panel-title="Animated Bars" ba-panel-class="with-scroll col-eq-height"><canvas id="waveBars" class="chart chart-bar" chart-data="data" chart-labels="labels" chart-legend="false"></canvas></div></div></div><div class="row"><div class="col-lg-4 col-md-6" ng-controller="chartJs2DCtrl"><div ba-panel="" ba-panel-title="Radar" ba-panel-class="with-scroll"><canvas id="radar" class="chart chart-radar" chart-legend="false" chart-series="series" chart-data="data" chart-labels="labels" chart-click="changeData"></canvas></div></div><div class="col-lg-4 col-md-6" ng-controller="chartJs2DCtrl"><div ba-panel="" ba-panel-title="Line" ba-panel-class="with-scroll"><canvas id="line" class="chart chart-line" chart-data="data" chart-labels="labels" chart-legend="false" chart-series="series" chart-click="changeData"></canvas></div></div><div class="col-lg-4 col-md-12" ng-controller="chartJs2DCtrl"><div ba-panel="" ba-panel-title="Bars" ba-panel-class="with-scroll"><canvas id="bar" class="chart chart-bar" chart-data="data" chart-labels="labels" chart-series="series" chart-click="changeData"></canvas></div></div></div>'),e.put("app/widgets/charts/chartist/chartist.html",'<section ng-controller="chartistCtrl" class="chartist"><div class="row"><div class="col-md-6"><div ba-panel="" ba-panel-title="Lines" ba-panel-class="with-scroll"><h5>Simple line chart</h5><div id="line-chart" class="ct-chart"></div><h5>Line chart with area</h5><div id="area-chart" class="ct-chart"></div><h5>Bi-polar line chart with area only</h5><div id="bi-chart" class="ct-chart"></div></div></div><div class="col-md-6"><div ba-panel="" ba-panel-title="Bars" ba-panel-class="with-scroll"><h5>Simple bar chart</h5><div id="simple-bar" class="ct-chart"></div><h5>Multi-line labels bar chart</h5><div id="multi-bar" class="ct-chart"></div><h5>Stacked bar chart</h5><div id="stacked-bar" class="ct-chart stacked-bar"></div></div></div></div><div class="row"><div class="col-md-12"><div ba-panel="" ba-panel-title="Pies & Donuts" ba-panel-class="with-scroll"><div class="row"><div class="col-md-12 col-lg-4"><h5>Simple Pie</h5><div id="simple-pie" class="ct-chart"></div></div><div class="col-md-12 col-lg-4"><h5>Pie with labels</h5><div id="label-pie" class="ct-chart"></div></div><div class="col-md-12 col-lg-4"><h5>Donut</h5><div id="donut" class="ct-chart"></div></div></div></div></div></div></section>'),e.put("app/widgets/charts/morris/morris.html",'<section ng-controller="morrisCtrl"><div class="row"><div class="col-md-12"><div ba-panel="" ba-panel-title="Line Chart" ba-panel-class="with-scroll"><div line-chart="" line-data="lineData" line-xkey="y" line-ykeys=\'["a", "b"]\' line-labels=\'["Serie A", "Serie B"]\' line-colors="colors"></div></div></div></div><div class="row"><div class="col-md-4"><div ba-panel="" ba-panel-title="Donut" ba-panel-class="with-scroll"><div donut-chart="" donut-data="donutData" donut-colors="colors" donut-formatter=\'"currency"\'></div></div></div><div class="col-md-8"><div ba-panel="" ba-panel-title="Bar Chart" ba-panel-class="with-scroll"><div bar-chart="" bar-data="barData" bar-x="y" bar-y=\'["a", "b"]\' bar-labels=\'["Series A", "Series B"]\' bar-colors="colors"></div></div></div></div><div class="row"><div class="col-md-12"><div ba-panel="" ba-panel-title="Area Chart" ba-panel-class="with-scroll"><div area-chart="" area-data="areaData" area-xkey="y" area-ykeys=\'["a", "b"]\' %="" area-labels=\'["Serie A", "Serie B"]\' line-colors="colors"></div></div></div></div></section>'),e.put("app/widgets/components/mail/mail.html",'<div class="row mail-client-container transparent"><div class="col-md-12"><div ba-panel="" ba-panel-class="xmedium-panel mail-panel"><div class="letter-layout"><div class="mail-navigation-container" ng-class="{\'expanded\' : !tabCtrl.navigationCollapsed}"><div class="text-center"><button type="button" class="btn btn-default compose-button" ng-click="tabCtrl.showCompose(\'\',\'\',\'\')">Compose</button></div><div ng-repeat="t in tabCtrl.tabs" ui-sref-active="active" class="mail-navigation" ui-sref="components.mail.label({label: t.label})" ng-click="selectTab(t.label)">{{t.name}}<span class="new-mails" ng-show="t.newMails">{{t.newMails}}</span></div><div class="labels"><div class="labels-title"></div><div class="labels-container"><div class="label-item"><span class="tag label work">Work</span></div><div class="label-item"><span class="tag label family">Family</span></div><div class="label-item"><span class="tag label friend">Friend</span></div><div class="label-item"><span class="tag label study">Study</span></div></div></div><div class="add-label-container"><i class="ion-plus-round"></i><span class="label-input-stub">Add new label</span></div></div><ui-view></ui-view></div></div></div></div>'),e.put("app/widgets/components/timeline/timeline.html",'<div ba-panel=""><section id="cd-timeline" class="cd-container cssanimations" ng-controller="TimelineCtrl"><div class="cd-timeline-block"><div class="cd-timeline-img"><div class="kameleon-icon with-round-bg warning"><img ng-src="{{::( \'Euro-Coin\' | kameleonImg )}}"></div></div><div class="cd-timeline-content warning"><h5>Title of section 1</h5><p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Iusto, optio, dolorum provident rerum aut hic quasi placeat iure tempora laudantium ipsa ad debitis unde? Iste voluptatibus minus veritatis qui ut.</p><span class="cd-date">Jan 14</span></div></div><div class="cd-timeline-block"><div class="cd-timeline-img"><div class="kameleon-icon with-round-bg danger"><img ng-src="{{::( \'Laptop-Signal\' | kameleonImg )}}"></div></div><div class="cd-timeline-content danger"><h5>Title of section 2</h5><p>Donec dapibus at leo eget volutpat. Praesent dolor tellus, ultricies venenatis molestie eu, luctus eget nibh. Curabitur ullamcorper eleifend nisl.</p><span class="cd-date">Jan 18</span></div></div><div class="cd-timeline-block"><div class="cd-timeline-img"><div class="kameleon-icon with-round-bg primary"><img ng-src="{{::( \'Checklist\' | kameleonImg )}}"></div></div><div class="cd-timeline-content primary"><h5>Title of section 3</h5><p>Phasellus auctor tellus eget lacinia condimentum. Cum sociis natoque penatibus et magnis dis parturient montes.</p><span class="cd-date">Feb 18</span></div></div><div class="cd-timeline-block"><div class="cd-timeline-img"><div class="kameleon-icon with-round-bg warning"><img ng-src="{{::( \'Boss-3\' | kameleonImg )}}"></div></div><div class="cd-timeline-content warning"><h5>Title of section 4</h5><p>Morbi fringilla in massa ac posuere. Fusce non sagittis massa, id accumsan odio. Nullam eget tempor est. Etiam eu felis eu purus aliquam tristique id quis nisl. Nam eros nibh, consequat sed pulvinar eu, ultrices ornare ligula. Aenean interdum sed nunc sed hendrerit.</p><span class="cd-date">Feb 20</span></div></div><div class="cd-timeline-block"><div class="cd-timeline-img"><div class="kameleon-icon with-round-bg danger"><img ng-src="{{::( \'Online-Shopping\' | kameleonImg )}}"></div></div><div class="cd-timeline-content danger"><h5>Title of section 5</h5><p>Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Curabitur eget mattis metus. Nullam egestas eros metus, quis fringilla urna accumsan sed. Aliquam ultrices at arcu vitae tincidunt.</p><span class="cd-date">Feb 21</span></div></div><div class="cd-timeline-block"><div class="cd-timeline-img"><div class="kameleon-icon with-round-bg primary"><img ng-src="{{::( \'Money-Increase\' | kameleonImg )}}"></div></div><div class="cd-timeline-content primary"><h5>Title of section 6</h5><p>Praesent bibendum ante mattis augue consectetur, ut commodo turpis consequat. Donec ligula eros, porta in iaculis vel, semper ac sem. Integer at mauris lorem.</p><span class="cd-date">Feb 23</span></div></div><div class="cd-timeline-block"><div class="cd-timeline-img"><div class="kameleon-icon with-round-bg warning"><img ng-src="{{::( \'Vector\' | kameleonImg )}}"></div></div><div class="cd-timeline-content warning"><h5>Title of section 7</h5><p>Vivamus ut laoreet erat, vitae eleifend eros. Sed varius id tellus non lobortis. Sed dolor ante, cursus non scelerisque sed, euismod id eros.</p><span class="cd-date">Feb 24</span></div></div></section></div>'),
e.put("app/widgets/components/tree/tree.html",'<div class="row" ng-controller="treeCtrl"><div class="col-md-6"><div ba-panel="" ba-panel-title="Basic Action" ba-panel-class="with-scroll tree-panel"><div class="row"><div class="col-sm-4"><div class="control-side text-center"><div><button class="btn btn-primary" ng-click="addNewNode()">Add</button></div><div><button class="btn btn-primary" ng-click="collapse()">Collapse All</button></div><div><button class="btn btn-primary" ng-click="expand()">Expand All</button></div><div><button class="btn btn-primary" ng-click="refresh()">Refresh</button></div></div></div><div class="col-sm-8"><div js-tree="basicConfig" ng-model="treeData" should-apply="applyModelChanges()" tree="basicTree" tree-events="ready:readyCB"></div></div></div></div></div><div class="col-md-6"><div ba-panel="" ba-panel-title="Drag & Drop" ba-panel-class="with-scroll tree-panel"><div js-tree="dragConfig" ng-model="dragData"></div></div></div></div>'),e.put("app/widgets/form/inputs/inputs.html",'<div class="widgets"><div class="row"><div class="col-md-6"><div ba-panel="" ba-panel-title="Standard Fields" ba-panel-class="with-scroll"><div ng-include="\'app/pages/form/inputs/widgets/standardFields.html\'"></div></div><div ba-panel="" ba-panel-title="Tags Input" ba-panel-class="with-scroll"><div ng-include="\'app/pages/form/inputs/widgets/tagsInput/tagsInput.html\'"></div></div><div ba-panel="" ba-panel-title="Input Groups" ba-panel-class="with-scroll"><div ng-include="\'app/pages/form/inputs/widgets/inputGroups.html\'"></div></div><div ba-panel="" ba-panel-title="Checkboxes & Radios" ba-panel-class="with-scroll"><div ng-include="\'app/pages/form/inputs/widgets/checkboxesRadios.html\'"></div></div></div><div class="col-md-6"><div ba-panel="" ba-panel-title="Validation States" ba-panel-class="with-scroll"><div ng-include="\'app/pages/form/inputs/widgets/validationStates.html\'"></div></div><div ba-panel="" ba-panel-title="Selects" ba-panel-class="with-scroll"><div ng-include="\'app/pages/form/inputs/widgets/select/select.html\'"></div></div><div ba-panel="" ba-panel-title="On/Off Switches" ba-panel-class="with-scroll"><div ng-include="\'app/pages/form/inputs/widgets/switch/switch.html\'"></div></div></div></div></div>'),e.put("app/widgets/form/layouts/layouts.html",'<div class="widgets"><div class="row"><div class="col-md-12" ba-panel="" ba-panel-title="Inline Form" ba-panel-class="with-scroll"><div ng-include="\'app/pages/form/layouts/widgets/inlineForm.html\'"></div></div></div><div class="row"><div class="col-md-6"><div ba-panel="" ba-panel-title="Basic Form" ba-panel-class="with-scroll"><div ng-include="\'app/pages/form/layouts/widgets/basicForm.html\'"></div></div><div ba-panel="" ba-panel-title="Horizontal Form" ba-panel-class="with-scroll"><div ng-include="\'app/pages/form/layouts/widgets/horizontalForm.html\'"></div></div></div><div class="col-md-6"><div ba-panel="" ba-panel-title="Form Without Labels" ba-panel-class="with-scroll"><div ng-include="\'app/pages/form/layouts/widgets/formWithoutLabels.html\'"></div></div><div ba-panel="" ba-panel-title="Block Form" ba-panel-class="with-scroll"><div ng-include="\'app/pages/form/layouts/widgets/blockForm.html\'"></div></div></div></div></div>'),e.put("app/widgets/form/wizard/wizard.html",'<div class="widgets"><div class="row"><div class="col-md-12"><div ba-panel="" ba-panel-title="Form Wizard" ba-panel-class="with-scroll"><ba-wizard><ba-wizard-step title="Personal info" form="vm.personalInfoForm"><form name="vm.personalInfoForm" novalidate=""><div class="row"><div class="col-md-6"><div class="form-group has-feedback" ng-class="{\'has-error\': vm.personalInfoForm.username.$invalid && (vm.personalInfoForm.username.$dirty || vm.personalInfoForm.$submitted)}"><label for="exampleUsername1">Username</label> <input type="text" class="form-control" id="exampleUsername1" name="username" placeholder="Username" ng-model="vm.personalInfo.username" required=""> <span class="help-block error-block basic-block">Required</span></div><div class="form-group" ng-class="{\'has-error\': vm.personalInfoForm.email.$invalid && (vm.personalInfoForm.email.$dirty || vm.personalInfoForm.$submitted)}"><label for="exampleInputEmail1">Email address</label> <input type="email" class="form-control" id="exampleInputEmail1" name="email" placeholder="Email" ng-model="vm.personalInfo.email" required=""> <span class="help-block error-block basic-block">Proper email required</span></div></div><div class="col-md-6"><div class="form-group" ng-class="{\'has-error\': vm.personalInfoForm.password.$invalid && (vm.personalInfoForm.password.$dirty || vm.personalInfoForm.$submitted)}"><label for="exampleInputPassword1">Password</label> <input type="password" class="form-control" id="exampleInputPassword1" name="password" placeholder="Password" ng-model="vm.personalInfo.password" required=""> <span class="help-block error-block basic-block">Required</span></div><div class="form-group" ng-class="{\'has-error\': !vm.arePersonalInfoPasswordsEqual() && (vm.personalInfoForm.confirmPassword.$dirty || vm.personalInfoForm.$submitted)}"><label for="exampleInputConfirmPassword1">Confirm Password</label> <input type="password" class="form-control" id="exampleInputConfirmPassword1" name="confirmPassword" placeholder="Confirm Password" ng-model="vm.personalInfo.confirmPassword" required=""> <span class="help-block error-block basic-block">Passwords should match</span></div></div></div></form></ba-wizard-step><ba-wizard-step title="Product Info" form="vm.productInfoForm"><form name="vm.productInfoForm" novalidate=""><div class="row"><div class="col-md-6"><div class="form-group has-feedback" ng-class="{\'has-error\': vm.productInfoForm.productName.$invalid && (vm.productInfoForm.productName.$dirty || vm.productInfoForm.$submitted)}"><label for="productName">Product name</label> <input type="text" class="form-control" id="productName" name="productName" placeholder="Product name" ng-model="vm.productInfo.productName" required=""> <span class="help-block error-block basic-block">Required</span></div><div class="form-group" ng-class="{\'has-error\': vm.productInfoForm.productId.$invalid && (vm.productInfoForm.productId.$dirty || vm.productInfoForm.$submitted)}"><label for="productId">Product id</label> <input type="text" class="form-control" id="productId" name="productId" placeholder="productId" ng-model="vm.productInfo.productId" required=""> <span class="help-block error-block basic-block">Required</span></div></div><div class="col-md-6"><div class="form-group"><label for="productName">Category</label><select class="form-control" title="Category" selectpicker=""><option selected="">Electronics</option><option>Toys</option><option>Accessories</option></select></div></div></div></form></ba-wizard-step><ba-wizard-step title="Shipment" form="vm.addressForm"><form name="vm.addressForm" novalidate=""><div class="row"><div class="col-md-6"><div class="form-group has-feedback" ng-class="{\'has-error\': vm.addressForm.address.$invalid && (vm.addressForm.address.$dirty || vm.addressForm.$submitted)}"><label for="productName">Shipment address</label> <input type="text" class="form-control" id="address" name="address" placeholder="Shipment address" ng-model="vm.shipment.address" required=""> <span class="help-block error-block basic-block">Required</span></div></div><div class="col-md-6"><div class="form-group"><label for="productName">Shipment method</label><select class="form-control" title="Category" selectpicker=""><option selected="">Fast & expensive</option><option>Cheap & free</option></select></div></div></div><div class="checkbox"><label class="custom-checkbox"><input type="checkbox"> <span>Save shipment info</span></label></div></form></ba-wizard-step><ba-wizard-step title="Finish"><form class="form-horizontal" name="vm.finishForm" novalidate="">Congratulations! You have successfully filled the form!</form></ba-wizard-step></ba-wizard></div></div></div></div>'),e.put("app/widgets/maps/google-maps/google-maps.html",'<div ba-panel="" ba-panel-title="Google Maps" class="viewport100"><div id="google-maps"></div></div>'),e.put("app/widgets/maps/leaflet/leaflet.html",'<div ba-panel="" ba-panel-title="Leaflet" class="viewport100"><div id="leaflet-map"></div></div>'),e.put("app/widgets/maps/map-bubbles/map-bubbles.html",'<div ba-panel="" ba-panel-title="Map with Bubbles" class="viewport100"><div id="map-bubbles"></div></div>'),e.put("app/widgets/maps/map-lines/map-lines.html",'<div ba-panel="" ba-panel-title="Line Map" class="viewport100"><div id="map-lines"></div></div>'),e.put("app/widgets/tables/basic/tables.html",'<div class="widgets"><div class="row"><div class="col-lg-6 col-md-12"><div ba-panel="" ba-panel-title="Hover Rows" ba-panel-class="with-scroll table-panel"><div include-with-scope="app/pages/tables/widgets/hoverRows.html"></div></div></div><div class="col-lg-6 col-md-12"><div ba-panel="" ba-panel-title="Bordered Table" ba-panel-class="with-scroll table-panel"><div include-with-scope="app/pages/tables/widgets/borderedTable.html"></div></div></div></div><div class="row"><div class="col-lg-6 col-md-12"><div ba-panel="" ba-panel-title="Condensed Table" ba-panel-class="with-scroll table-panel"><div include-with-scope="app/pages/tables/widgets/condensedTable.html"></div></div></div><div class="col-lg-6 col-md-12"><div ba-panel="" ba-panel-title="Striped Rows" ba-panel-class="with-scroll table-panel"><div include-with-scope="app/pages/tables/widgets/stripedRows.html"></div></div></div></div><div class="row"><div class="col-lg-6 col-md-12"><div ba-panel="" ba-panel-title="Contextual Table" ba-panel-class="with-scroll table-panel"><div include-with-scope="app/pages/tables/widgets/contextualTable.html"></div></div></div><div class="col-lg-6 col-md-12"><div ba-panel="" ba-panel-title="Responsive Table" ba-panel-class="with-scroll table-panel"><div include-with-scope="app/pages/tables/widgets/responsiveTable.html"></div></div></div></div></div>'),e.put("app/widgets/tables/smart/tables.html",'<div class="widgets"><div class="row"><div class="col-md-12"><div ba-panel="" ba-panel-title="Editable Rows" ba-panel-class="with-scroll"><div include-with-scope="app/pages/tables/widgets/editableRowTable.html"></div></div></div></div><div class="row"><div class="col-md-12"><div ba-panel="" ba-panel-title="Editable Cells" ba-panel-class="with-scroll"><div include-with-scope="app/pages/tables/widgets/editableTable.html"></div></div></div></div><div class="row"><div class="col-md-12"><div ba-panel="" ba-panel-title="Smart Table With Filtering, Sorting And Pagination" ba-panel-class="with-scroll"><div include-with-scope="app/pages/tables/widgets/smartTable.html"></div></div></div></div></div>'),e.put("app/widgets/tables/widgets/basicTable.html",'<div class="horizontal-scroll"><table class="table"><thead><tr><th class="browser-icons"></th><th>Browser</th><th class="align-right">Visits</th><th class="table-arr"></th><th class="align-right">Downloads</th><th class="table-arr"></th><th class="align-right">Purchases</th><th class="table-arr"></th><th class="align-right">DAU</th><th class="table-arr"></th><th class="align-right">MAU</th><th class="table-arr"></th><th class="align-right">LTV</th><th class="table-arr"></th><th class="align-right">Users %</th><th class="table-arr"></th></tr></thead><tbody><tr><td><img src="img/chrome.svg" width="20" height="20"></td><td class="nowrap">Google Chrome</td><td class="align-right">10,392</td><td class="table-arr"><i class="icon-up"></i></td><td class="align-right">3,822</td><td class="table-arr"><i class="icon-up"></i></td><td class="align-right">4,214</td><td class="table-arr"><i class="icon-up"></i></td><td class="align-right">899</td><td class="table-arr"><i class="icon-up"></i></td><td class="align-right">7,098</td><td class="table-arr"><i class="icon-up"></i></td><td class="align-right">178</td><td class="table-arr"><i class="icon-up"></i></td><td class="align-right">45%</td><td class="table-arr"><i class="icon-up"></i></td></tr><tr><td><img src="img/firefox.svg" width="20" height="20"></td><td class="nowrap">Mozilla Firefox</td><td class="align-right">7,873</td><td class="table-arr"><i class="icon-down"></i></td><td class="align-right">6,003</td><td class="table-arr"><i class="icon-down"></i></td><td class="align-right">3,031</td><td class="table-arr"><i class="icon-up"></i></td><td class="align-right">897</td><td class="table-arr"><i class="icon-down"></i></td><td class="align-right">8,997</td><td class="table-arr"><i class="icon-up"></i></td><td class="align-right">102</td><td class="table-arr"><i class="icon-down"></i></td><td class="align-right">28%</td><td class="table-arr"><i class="icon-up"></i></td></tr><tr><td><img src="img/ie.svg" width="20" height="20"></td><td class="nowrap">Internet Explorer</td><td class="align-right">5,890</td><td class="table-arr"><i class="icon-down"></i></td><td class="align-right">3,492</td><td class="table-arr"><i class="icon-down"></i></td><td class="align-right">2,102</td><td class="table-arr"><i class="icon-down"></i></td><td class="align-right">27</td><td class="table-arr"><i class="icon-up"></i></td><td class="align-right">4,039</td><td class="table-arr"><i class="icon-down"></i></td><td class="align-right">99</td><td class="table-arr"><i class="icon-up"></i></td><td class="align-right">17%</td><td class="table-arr"><i class="icon-down"></i></td></tr><tr><td><img src="img/safari.svg" width="20" height="20"></td><td class="nowrap">Safari</td><td class="align-right">4,001</td><td class="table-arr"><i class="icon-up"></i></td><td class="align-right">2,039</td><td class="table-arr"><i class="icon-up"></i></td><td class="align-right">1,001</td><td class="table-arr"><i class="icon-down"></i></td><td class="align-right">104</td><td class="table-arr"><i class="icon-down"></i></td><td class="align-right">3,983</td><td class="table-arr"><i class="icon-down"></i></td><td class="align-right">209</td><td class="table-arr"><i class="icon-down"></i></td><td class="align-right">14%</td><td class="table-arr"><i class="icon-down"></i></td></tr><tr><td><img src="img/opera.svg" width="20" height="20"></td><td class="nowrap">Opera</td><td class="align-right">1,833</td><td class="table-arr"><i class="icon-up"></i></td><td class="align-right">983</td><td class="table-arr"><i class="icon-up"></i></td><td class="align-right">83</td><td class="table-arr"><i class="icon-up"></i></td><td class="align-right">19</td><td class="table-arr"><i class="icon-down"></i></td><td class="align-right">1,099</td><td class="table-arr"><i class="icon-down"></i></td><td class="align-right">103</td><td class="table-arr"><i class="icon-up"></i></td><td class="align-right">5%</td><td class="table-arr"><i class="icon-up"></i></td></tr></tbody></table></div>'),e.put("app/widgets/tables/widgets/borderedTable.html",'<div class="horizontal-scroll"><table class="table table-bordered"><thead><tr><th class="browser-icons"></th><th>Browser</th><th class="align-right">Visits</th><th class="align-right">Purchases</th><th class="align-right">%</th></tr></thead><tbody><tr ng-repeat="item in metricsTableData"><td><img ng-src="{{::( item.image | appImage )}}" width="20" height="20"></td><td ng-class="nowrap">{{item.browser}}</td><td class="align-right">{{item.visits}}</td><td class="align-right">{{item.purchases}}</td><td class="align-right">{{item.percent}}</td></tr></tbody></table></div>'),e.put("app/widgets/tables/widgets/condensedTable.html",'<div class="horizontal-scroll"><table class="table table-condensed"><thead><tr><th class="table-id">#</th><th>First Name</th><th>Last Name</th><th>Username</th><th>Email</th><th>Status</th></tr></thead><tbody><tr ng-repeat="item in peopleTableData"><td class="table-id">{{item.id}}</td><td>{{item.firstName}}</td><td>{{item.lastName}}</td><td>{{item.username}}</td><td><a class="email-link" ng-href="mailto:{{item.email}}">{{item.email}}</a></td><td><button class="status-button btn btn-xs btn-{{item.status}}">{{item.status}}</button></td></tr></tbody></table></div>'),e.put("app/widgets/tables/widgets/contextualTable.html",'<table class="table"><tr><th>#</th><th>First Name</th><th>Last Name</th><th>Username</th><th>Email</th><th>Age</th></tr><tr class="primary"><td>1</td><td>Mark</td><td>Otto</td><td>@mdo</td><td><a class="email-link" ng-href="mailto:mdo@gmail.com" href="mailto:mdo@gmail.com">mdo@gmail.com</a></td><td>28</td></tr><tr class="success"><td>2</td><td>Jacob</td><td>Thornton</td><td>@fat</td><td><a class="email-link" ng-href="mailto:fat@yandex.ru" href="mailto:fat@yandex.ru">fat@yandex.ru</a></td><td>45</td></tr><tr class="warning"><td>3</td><td>Larry</td><td>Bird</td><td>@twitter</td><td><a class="email-link" ng-href="mailto:twitter@outlook.com" href="mailto:twitter@outlook.com">twitter@outlook.com</a></td><td>18</td></tr><tr class="danger"><td>4</td><td>John</td><td>Snow</td><td>@snow</td><td><a class="email-link" ng-href="mailto:snow@gmail.com" href="mailto:snow@gmail.com">snow@gmail.com</a></td><td>20</td></tr><tr class="info"><td>5</td><td>Jack</td><td>Sparrow</td><td>@jack</td><td><a class="email-link" ng-href="mailto:jack@yandex.ru" href="mailto:jack@yandex.ru">jack@yandex.ru</a></td><td>30</td></tr></table>'),e.put("app/widgets/tables/widgets/editableRowTable.html",'<div class="add-row-editable-table"><button class="btn btn-primary" ng-click="addUser()">Add row</button></div><table class="table table-bordered table-hover table-condensed"><tr><td></td><td>Name</td><td>Status</td><td>Group</td><td>Actions</td></tr><tr ng-repeat="user in users" class="editable-row"><td>{{$index}}</td><td><span editable-text="user.name" e-name="name" e-form="rowform" e-required="">{{ user.name || \'empty\' }}</span></td><td class="select-td"><span editable-select="user.status" e-name="status" e-form="rowform" e-selectpicker="" e-ng-options="s.value as s.text for s in statuses">{{ showStatus(user) }}</span></td><td class="select-td"><span editable-select="user.group" e-name="group" onshow="loadGroups()" e-form="rowform" e-selectpicker="" e-ng-options="g.id as g.text for g in groups">{{ showGroup(user) }}</span></td><td><form editable-form="" name="rowform" ng-show="rowform.$visible" class="form-buttons form-inline" shown="inserted == user"><button type="submit" ng-disabled="rowform.$waiting" class="btn btn-primary editable-table-button btn-xs">Save</button> <button type="button" ng-disabled="rowform.$waiting" ng-click="rowform.$cancel()" class="btn btn-default editable-table-button btn-xs">Cancel</button></form><div class="buttons" ng-show="!rowform.$visible"><button class="btn btn-primary editable-table-button btn-xs" ng-click="rowform.$show()">Edit</button> <button class="btn btn-danger editable-table-button btn-xs" ng-click="removeUser($index)">Delete</button></div></td></tr></table>'),e.put("app/widgets/tables/widgets/editableTable.html",'<div class="horizontal-scroll"><table class="table table-hover" st-table="editableTableData"><thead><tr class="sortable"><th class="table-id" st-sort="id" st-sort-default="true">#</th><th st-sort="firstName">First Name</th><th st-sort="lastName">Last Name</th><th st-sort="username">Username</th><th st-sort="email">Email</th><th st-sort="age">Age</th></tr></thead><tbody><tr ng-repeat="item in editableTableData" class="editable-tr-wrap"><td class="table-id">{{item.id}}</td><td><span editable-text="item.firstName" blur="cancel">{{item.firstName}}</span></td><td><span editable-text="item.lastName" blur="cancel">{{item.lastName}}</span></td><td><span editable-text="item.username" blur="cancel">{{item.username}}</span></td><td><a class="email-link" ng-href="mailto:{{item.email}}">{{item.email}}</a></td><td><span editable-text="item.age" blur="cancel">{{item.age}}</span></td></tr></tbody><tfoot><tr><td colspan="6" class="text-center"><div st-pagination="" st-items-by-page="12" st-displayed-pages="5"></div></td></tr></tfoot></table></div>'),e.put("app/widgets/tables/widgets/hoverRows.html",'<div class="horizontal-scroll"><table class="table table-hover"><thead><tr class="black-muted-bg"><th class="browser-icons"></th><th>Browser</th><th class="align-right">Visits</th><th class="table-arr"></th><th class="align-right">Purchases</th><th class="table-arr"></th><th class="align-right">%</th><th class="table-arr"></th></tr></thead><tbody><tr ng-repeat="item in metricsTableData" class="no-top-border"><td><img ng-src="{{::( item.image | appImage )}}" width="20" height="20"></td><td ng-class="nowrap">{{item.browser}}</td><td class="align-right">{{item.visits}}</td><td class="table-arr"><i ng-class="{\'icon-up\': item.isVisitsUp, \'icon-down\': !item.isVisitsUp }"></i></td><td class="align-right">{{item.purchases}}</td><td class="table-arr"><i ng-class="{\'icon-up\': item.isPurchasesUp, \'icon-down\': !item.isPurchasesUp }"></i></td><td class="align-right">{{item.percent}}</td><td class="table-arr"><i ng-class="{\'icon-up\': item.isPercentUp, \'icon-down\': !item.isPercentUp }"></i></td></tr></tbody></table></div>'),e.put("app/widgets/tables/widgets/responsiveTable.html",'<div class="table-responsive"><table class="table"><tr><th>#</th><th>First Name</th><th>Last Name</th><th>Username</th><th>Email</th><th>Age</th></tr><tr><td>1</td><td>Mark</td><td>Otto</td><td>@mdo</td><td><a class="email-link" ng-href="mailto:mdo@gmail.com" href="mailto:mdo@gmail.com">mdo@gmail.com</a></td><td>28</td></tr><tr><td>2</td><td>Jacob</td><td>Thornton</td><td>@fat</td><td><a class="email-link" ng-href="mailto:fat@yandex.ru" href="mailto:fat@yandex.ru">fat@yandex.ru</a></td><td>45</td></tr><tr><td>3</td><td>Larry</td><td>Bird</td><td>@twitter</td><td><a class="email-link" ng-href="mailto:twitter@outlook.com" href="mailto:twitter@outlook.com">twitter@outlook.com</a></td><td>18</td></tr><tr><td>4</td><td>John</td><td>Snow</td><td>@snow</td><td><a class="email-link" ng-href="mailto:snow@gmail.com" href="mailto:snow@gmail.com">snow@gmail.com</a></td><td>20</td></tr><tr><td>5</td><td>Jack</td><td>Sparrow</td><td>@jack</td><td><a class="email-link" ng-href="mailto:jack@yandex.ru" href="mailto:jack@yandex.ru">jack@yandex.ru</a></td><td>30</td></tr></table></div>'),e.put("app/widgets/tables/widgets/smartTable.html",'<div class="horizontal-scroll"><div class="form-group select-page-size-wrap"><label>Rows on page<select class="form-control selectpicker show-tick" title="Rows on page" selectpicker="" ng-model="smartTablePageSize" ng-options="i for i in [5,10,15,20,25]"></select></label></div><table class="table" st-table="smartTableData"><thead><tr class="sortable"><th class="table-id" st-sort="id" st-sort-default="true">#</th><th st-sort="firstName">First Name</th><th st-sort="lastName">Last Name</th><th st-sort="username">Username</th><th st-sort="email">Email</th><th st-sort="age">Age</th></tr><tr><th></th><th><input st-search="firstName" placeholder="Search First Name" class="input-sm form-control search-input" type="search"></th><th><input st-search="lastName" placeholder="Search Last Name" class="input-sm form-control search-input" type="search"></th><th><input st-search="username" placeholder="Search Username" class="input-sm form-control search-input" type="search"></th><th><input st-search="email" placeholder="Search Email" class="input-sm form-control search-input" type="search"></th><th><input st-search="age" placeholder="Search Age" class="input-sm form-control search-input" type="search"></th></tr></thead><tbody><tr ng-repeat="item in smartTableData"><td class="table-id">{{item.id}}</td><td>{{item.firstName}}</td><td>{{item.lastName}}</td><td>{{item.username}}</td><td><a class="email-link" ng-href="mailto:{{item.email}}">{{item.email}}</a></td><td>{{item.age}}</td></tr></tbody><tfoot><tr><td colspan="6" class="text-center"><div st-pagination="" st-items-by-page="smartTablePageSize" st-displayed-pages="5"></div></td></tr></tfoot></table></div>'),e.put("app/widgets/tables/widgets/stripedRows.html",'<div class="vertical-scroll"><table class="table table-striped"><thead><tr><th class="table-id">#</th><th>First Name</th><th>Last Name</th><th>Username</th><th>Email</th><th>Age</th></tr></thead><tbody><tr ng-repeat="item in smartTableData"><td class="table-id">{{item.id}}</td><td>{{item.firstName}}</td><td>{{item.lastName}}</td><td>{{item.username}}</td><td><a class="email-link" ng-href="mailto:{{item.email}}">{{item.email}}</a></td><td>{{item.age}}</td></tr></tbody></table></div>'),e.put("app/widgets/ui/alerts/alerts.html",'<div class="widgets"><div class="row"><div class="col-md-6" ba-panel="" ba-panel-title="Basic" ba-panel-class="with-scroll"><div><div class="alert bg-success"><strong>Well done!</strong> You successfully read this important alert message.</div><div class="alert bg-info"><strong>Heads up!</strong> This alert needs your attention, but it\'s not super important.</div><div class="alert bg-warning"><strong>Warning!</strong> Better check yourself, you\'re not looking too good.</div><div class="alert bg-danger"><strong>Oh snap!</strong> Change a few things up and try submitting again.</div></div></div><div class="col-md-6" ba-panel="" ba-panel-title="Dismissible alerts" ba-panel-class="with-scroll"><div><div class="alert bg-success closeable" role="alert"><button type="button" class="close" aria-label="Close"><span aria-hidden="true">&times;</span></button> <strong>Well done!</strong> You successfully read this important alert message.</div><div class="alert bg-info closeable" role="alert"><button type="button" class="close" aria-label="Close"><span aria-hidden="true">&times;</span></button> <strong>Heads up!</strong> This alert needs your attention, but it\'s not super important.</div><div class="alert bg-warning closeable" role="alert"><button type="button" class="close" aria-label="Close"><span aria-hidden="true">&times;</span></button> <strong>Warning!</strong> Better check yourself, you\'re not looking too good.</div><div class="alert bg-danger closeable" role="alert"><button type="button" class="close" aria-label="Close"><span aria-hidden="true">&times;</span></button> <strong>Oh snap!</strong> Change a few things up and try submitting again.</div></div></div></div><div class="row"><div class="col-md-6" ba-panel="" ba-panel-title="Links in alerts" ba-panel-class="with-scroll"><div><div class="alert bg-success"><strong>Well done!</strong> You successfully read <a href="" class="alert-link">this important alert message</a>.</div><div class="alert bg-info"><strong>Heads up!</strong> This <a href="" class="alert-link">alert needs your attention</a>, but it\'s not super important.</div><div class="alert bg-warning"><strong>Warning!</strong> Better check yourself, you\'re <a href="" class="alert-link">not looking too good</a>.</div><div class="alert bg-danger"><strong>Oh snap!</strong> <a href="" class="alert-link">Change a few things up</a> and try submitting again.</div></div></div><div class="col-md-6" ba-panel="" ba-panel-title="Composite alerts" ba-panel-class="with-scroll"><div><div class="alert bg-warning"><h4>Warning!</h4><strong>Pay attention.</strong> Change a few things up and try submitting again.<div class="control-alert"><button type="button" class="btn btn-danger">Pay Attention</button> <button type="button" class="btn btn-primary">Ignore</button></div></div></div></div></div></div>'),e.put("app/widgets/ui/buttons/buttons.html",'<div class="widgets"><div class="row"><div class="col-md-3" ba-panel="" ba-panel-title="Flat Buttons" ba-panel-class="with-scroll button-panel"><div class="button-wrapper"><button type="button" class="btn btn-default">Default</button></div><div class="button-wrapper"><button type="button" class="btn btn-primary">Primary</button></div><div class="button-wrapper"><button type="button" class="btn btn-success">Success</button></div><div class="button-wrapper"><button type="button" class="btn btn-info">Info</button></div><div class="button-wrapper"><button type="button" class="btn btn-warning">Warning</button></div><div class="button-wrapper"><button type="button" class="btn btn-danger">Danger</button></div></div><div class="col-md-3" ba-panel="" ba-panel-title="Raised Buttons" ba-panel-class="with-scroll button-panel"><div class="button-wrapper"><button type="button" class="btn btn-default btn-raised">Default</button></div><div class="button-wrapper"><button type="button" class="btn btn-primary btn-raised">Primary</button></div><div class="button-wrapper"><button type="button" class="btn btn-success btn-raised">Success</button></div><div class="button-wrapper"><button type="button" class="btn btn-info btn-raised">Info</button></div><div class="button-wrapper"><button type="button" class="btn btn-warning btn-raised">Warning</button></div><div class="button-wrapper"><button type="button" class="btn btn-danger btn-raised">Danger</button></div></div><div class="col-md-3" ba-panel="" ba-panel-title="Different sizes" ba-panel-class="with-scroll button-panel df-size-button-panel"><div class="button-wrapper"><button type="button" class="btn btn-default btn-xs">Default</button></div><div class="button-wrapper"><button type="button" class="btn btn-primary btn-sm">Primary</button></div><div class="button-wrapper"><button type="button" class="btn btn-success btn-mm">Success</button></div><div class="button-wrapper"><button type="button" class="btn btn-info btn-md">Info</button></div><div class="button-wrapper"><button type="button" class="btn btn-warning btn-xm">Warning</button></div><div class="button-wrapper"><button type="button" class="btn btn-danger btn-lg">Danger</button></div></div><div class="col-md-3" ba-panel="" ba-panel-title="Disabled" ba-panel-class="with-scroll button-panel"><div class="button-wrapper"><button type="button" class="btn btn-default" disabled="disabled">Default</button></div><div class="button-wrapper"><button type="button" class="btn btn-primary" disabled="disabled">Primary</button></div><div class="button-wrapper"><button type="button" class="btn btn-success" disabled="disabled">Success</button></div><div class="button-wrapper"><button type="button" class="btn btn-info" disabled="disabled">Info</button></div><div class="button-wrapper"><button type="button" class="btn btn-warning" disabled="disabled">Warning</button></div><div class="button-wrapper"><button type="button" class="btn btn-danger" disabled="disabled">Danger</button></div></div></div><div class="row"><div class="col-md-6"><div ba-panel="" ba-panel-title="Icon Buttons" ba-panel-class="with-scroll"><div ng-include="\'app/pages/ui/buttons/widgets/iconButtons.html\'"></div></div><div ba-panel="" ba-panel-title="Large Buttons" ba-panel-class="with-scroll large-buttons-panel"><div ng-include="\'app/pages/ui/buttons/widgets/largeButtons.html\'"></div></div></div><div class="col-md-6"><div ba-panel="" ba-panel-title="Button Dropdowns" ba-panel-class="with-scroll"><div ng-include="\'app/pages/ui/buttons/widgets/dropdowns.html\'"></div></div><div ba-panel="" ba-panel-title="Button Groups" ba-panel-class="with-scroll"><div ng-include="\'app/pages/ui/buttons/widgets/buttonGroups.html\'"></div></div></div></div><div class="row"><div class="col-md-12" ba-panel="" ba-panel-title="Progress Buttons" ba-panel-class="with-scroll"><div ng-include="\'app/pages/ui/buttons/widgets/progressButtons.html\'"></div></div></div></div>'),e.put("app/widgets/ui/grid/baseGrid.html",'<h4 class="grid-h">Stacked to horizontal</h4><div class="row show-grid"><div class="col-md-1"><div>.col-md-1</div></div><div class="col-md-1"><div>.col-md-1</div></div><div class="col-md-1"><div>.col-md-1</div></div><div class="col-md-1"><div>.col-md-1</div></div><div class="col-md-1"><div>.col-md-1</div></div><div class="col-md-1"><div>.col-md-1</div></div><div class="col-md-1"><div>.col-md-1</div></div><div class="col-md-1"><div>.col-md-1</div></div><div class="col-md-1"><div>.col-md-1</div></div><div class="col-md-1"><div>.col-md-1</div></div><div class="col-md-1"><div>.col-md-1</div></div><div class="col-md-1"><div>.col-md-1</div></div></div><div class="row show-grid"><div class="col-md-8"><div>.col-md-8</div></div><div class="col-md-4"><div>.col-md-4</div></div></div><div class="row show-grid"><div class="col-md-4"><div>.col-md-4</div></div><div class="col-md-4"><div>.col-md-4</div></div><div class="col-md-4"><div>.col-md-4</div></div></div><div class="row show-grid"><div class="col-md-6"><div>.col-md-6</div></div><div class="col-md-6"><div>.col-md-6</div></div></div><h4 class="grid-h">Mobile and desktop</h4><div class="row show-grid"><div class="col-xs-12 col-md-8"><div>xs-12 .col-md-8</div></div><div class="col-xs-6 col-md-4"><div>xs-6 .col-md-4</div></div></div><div class="row show-grid"><div class="col-xs-6 col-md-4"><div>xs-6 .col-md-4</div></div><div class="col-xs-6 col-md-4"><div>xs-6 .col-md-4</div></div><div class="col-xs-6 col-md-4"><div>xs-6 .col-md-4</div></div></div><div class="row show-grid"><div class="col-xs-6"><div>.col-xs-6</div></div><div class="col-xs-6"><div>.col-xs-6</div></div></div><h4 class="grid-h">Mobile, tablet, desktop</h4><div class="row show-grid"><div class="col-xs-12 col-sm-6 col-md-8"><div>.col-xs-12 .col-sm-6 .col-md-8</div></div><div class="col-xs-6 col-md-4"><div>.col-xs-6 .col-md-4</div></div></div><div class="row show-grid"><div class="col-xs-6 col-sm-4"><div>.col-xs-6 .col-sm-4</div></div><div class="col-xs-6 col-sm-4"><div>.col-xs-6 .col-sm-4</div></div><div class="clearfix visible-xs-block"></div><div class="col-xs-6 col-sm-4"><div>.col-xs-6 .col-sm-4</div></div></div><h4 class="grid-h">Column wrapping</h4><div class="row show-grid"><div class="col-xs-9"><div>.col-xs-9</div></div><div class="col-xs-4"><div>.col-xs-4<br>Since 9 + 4 = 13 &gt; 12, this 4-column-wide div gets wrapped onto a new line as one contiguous unit.</div></div><div class="col-xs-6"><div>.col-xs-6<br>Subsequent columns continue along the new line.</div></div></div><h4 class="grid-h">Responsive column resets</h4><div class="row show-grid"><div class="col-xs-6 col-sm-3"><div>.col-xs-6 .col-sm-3<p>Resize your viewport or check it out on your phone for an example.</p></div></div><div class="col-xs-6 col-sm-3"><div>.col-xs-6 .col-sm-3</div></div><div class="clearfix visible-xs-block"></div><div class="col-xs-6 col-sm-3"><div>.col-xs-6 .col-sm-3</div></div><div class="col-xs-6 col-sm-3"><div>.col-xs-6 .col-sm-3</div></div></div><h4 class="grid-h">Offsetting columns</h4><div class="row show-grid"><div class="col-md-4"><div>.col-md-4</div></div><div class="col-md-4 col-md-offset-4"><div>.col-md-4 .col-md-offset-4</div></div></div><div class="row show-grid"><div class="col-md-3 col-md-offset-3"><div>.col-md-3 .col-md-offset-3</div></div><div class="col-md-3 col-md-offset-3"><div>.col-md-3 .col-md-offset-3</div></div></div><div class="row show-grid"><div class="col-md-6 col-md-offset-3"><div>.col-md-6 .col-md-offset-3</div></div></div><h4 class="grid-h">Grid options</h4><div class="table-responsive"><table class="table table-bordered table-striped"><thead><tr><th></th><th>Extra small devices <small>Phones (&lt;768px)</small></th><th>Small devices <small>Tablets (≥768px)</small></th><th>Medium devices <small>Desktops (≥992px)</small></th><th>Large devices <small>Desktops (≥1200px)</small></th></tr></thead><tbody><tr><th class="text-nowrap" scope="row">Grid behavior</th><td>Horizontal at all times</td><td colspan="3">Collapsed to start, horizontal above breakpoints</td></tr><tr><th class="text-nowrap" scope="row">Container width</th><td>None (auto)</td><td>750px</td><td>970px</td><td>1170px</td></tr><tr><th class="text-nowrap" scope="row">Class prefix</th><td><code>.col-xs-</code></td><td><code>.col-sm-</code></td><td><code>.col-md-</code></td><td><code>.col-lg-</code></td></tr><tr><th class="text-nowrap" scope="row"># of columns</th><td colspan="4">12</td></tr><tr><th class="text-nowrap" scope="row">Column width</th><td class="text-muted">Auto</td><td>~62px</td><td>~81px</td><td>~97px</td></tr><tr><th class="text-nowrap" scope="row">Gutter width</th><td colspan="4">30px (15px on each side of a column)</td></tr><tr><th class="text-nowrap" scope="row">Nestable</th><td colspan="4">Yes</td></tr><tr><th class="text-nowrap" scope="row">Offsets</th><td colspan="4">Yes</td></tr><tr><th class="text-nowrap" scope="row">Column ordering</th><td colspan="4">Yes</td></tr></tbody></table></div>'),
e.put("app/widgets/ui/grid/grid.html",'<div class="widgets"><div class="row"><div class="col-md-12" ba-panel="" ba-panel-title="Inline Form" ba-panel-class="with-scroll"><div ng-include="\'app/pages/ui/grid/baseGrid.html\'"></div></div></div></div>'),e.put("app/widgets/ui/icons/icons.html",'<div class="widgets"><div class="row"><div class="col-md-6"><div ba-panel="" ba-panel-title="Kameleon SVG Icons" ba-panel-class="with-scroll"><div include-with-scope="app/pages/ui/icons/widgets/kameleon.html"></div></div><div ba-panel="" ba-panel-title="Socicon" ba-panel-class="with-scroll"><div include-with-scope="app/pages/ui/icons/widgets/socicon.html"></div></div></div><div class="col-md-6"><div ba-panel="" ba-panel-title="Icons With Rounded Background" ba-panel-class="with-scroll"><div include-with-scope="app/pages/ui/icons/widgets/kameleonRounded.html"></div></div><div ba-panel="" ba-panel-title="ionicons" ba-panel-class="with-scroll"><div include-with-scope="app/pages/ui/icons/widgets/ionicons.html"></div></div><div ba-panel="" ba-panel-title="Font Awesome Icons" ba-panel-class="with-scroll"><div include-with-scope="app/pages/ui/icons/widgets/fontAwesomeIcons.html"></div></div></div></div></div>'),e.put("app/widgets/ui/modals/modals.html",'<div class="widgets"><div class="row"><div class="col-md-12" ba-panel="" ba-panel-title="Modals" ba-panel-class="with-scroll"><div class="modal-buttons clearfix"><button type="button" class="btn btn-primary" data-toggle="modal" ng-click="open(\'app/pages/ui/modals/modalTemplates/basicModal.html\', \'md\')">Default modal</button> <button type="button" class="btn btn-success" data-toggle="modal" ng-click="open(\'app/pages/ui/modals/modalTemplates/largeModal.html\', \'lg\')">Large modal</button> <button type="button" class="btn btn-warning" data-toggle="modal" ng-click="open(\'app/pages/ui/modals/modalTemplates/smallModal.html\', \'sm\')">Small modal</button></div></div></div><div class="row"><div class="col-md-6" ba-panel="" ba-panel-title="Message Modals" ba-panel-class="with-scroll"><div class="modal-buttons same-width clearfix"><button type="button" class="btn btn-success" data-toggle="modal" ng-click="open(\'app/pages/ui/modals/modalTemplates/successModal.html\')">Success Message</button> <button type="button" class="btn btn-info" data-toggle="modal" ng-click="open(\'app/pages/ui/modals/modalTemplates/infoModal.html\')">Info Message</button> <button type="button" class="btn btn-warning" data-toggle="modal" ng-click="open(\'app/pages/ui/modals/modalTemplates/warningModal.html\')">Warning Message</button> <button type="button" class="btn btn-danger" data-toggle="modal" ng-click="open(\'app/pages/ui/modals/modalTemplates/dangerModal.html\')">Danger Message</button></div></div><div class="col-md-6" ba-panel="" ba-panel-title="Notifications" ba-panel-class="with-scroll"><div ng-include="\'app/pages/ui/modals/notifications/notifications.html\'"></div></div></div></div>'),e.put("app/widgets/ui/notifications/notifications.html",'<div ba-panel="" ba-panel-class="with-scroll notification-panel"><div class="row"><div class="col-md-3 col-sm-4"><div class="control"><label for="title">Title</label> <input ng-model="options.title" type="text" class="form-control" id="title" placeholder="Enter a title ..."></div><div class="control"><label for="message">Message</label> <textarea ng-model="options.msg" class="form-control" id="message" rows="3" placeholder="Enter a message ..."></textarea></div><div class="control-group"><div class="control"><label class="checkbox-inline custom-checkbox nowrap"><input ng-model="options.closeButton" type="checkbox" id="closeButton"> <span>Close Button</span></label></div><div class="control"><label class="checkbox-inline custom-checkbox nowrap"><input ng-model="options.allowHtml" type="checkbox" id="html"> <span>Allow html</span></label></div><div class="control"><label class="checkbox-inline custom-checkbox nowrap"><input ng-model="options.progressBar" type="checkbox" id="progressBar"> <span>Progress bar</span></label></div><div class="control"><label class="checkbox-inline custom-checkbox nowrap"><input ng-model="options.preventDuplicates" type="checkbox" id="preventDuplicates"> <span>Prevent duplicates</span></label></div><div class="control"><label class="checkbox-inline custom-checkbox nowrap"><input ng-model="options.preventOpenDuplicates" type="checkbox" id="preventOpenDuplicates"> <span>Prevent open duplicates</span></label></div><div class="control"><label class="checkbox-inline custom-checkbox nowrap"><input ng-model="options.tapToDismiss" type="checkbox" id="tapToDismiss"> <span>Tap to dismiss</span></label></div><div class="control"><label class="checkbox-inline custom-checkbox nowrap"><input ng-model="options.newestOnTop" type="checkbox" id="newestOnTop"> <span>Newest on top</span></label></div></div></div><div class="col-md-2 col-sm-3 toastr-radio-setup"><div id="toastTypeGroup"><div class="controls radio-controls"><label class="radio-header">Toast Type</label> <label class="radio custom-radio"><input type="radio" ng-model="options.type" name="toasts" value="success"><span>Success</span></label> <label class="radio custom-radio"><input type="radio" ng-model="options.type" name="toasts" value="info"><span>Info</span></label> <label class="radio custom-radio"><input type="radio" ng-model="options.type" name="toasts" value="warning"><span>Warning</span></label> <label class="radio custom-radio"><input type="radio" ng-model="options.type" name="toasts" value="error"><span>Error</span></label></div></div><div id="positionGroup"><div class="controls radio-controls"><label class="radio-header position-header">Position</label> <label class="radio custom-radio"><input type="radio" ng-model="options.positionClass" name="positions" value="toast-top-right"> <span>Top Right</span></label> <label class="radio custom-radio"><input type="radio" ng-model="options.positionClass" name="positions" value="toast-bottom-right"> <span>Bottom Right</span></label> <label class="radio custom-radio"><input type="radio" ng-model="options.positionClass" name="positions" value="toast-bottom-left"> <span>Bottom Left</span></label> <label class="radio custom-radio"><input type="radio" ng-model="options.positionClass" name="positions" value="toast-top-left"> <span>Top Left</span></label> <label class="radio custom-radio"><input type="radio" ng-model="options.positionClass" name="positions" value="toast-top-full-width"> <span>Top Full Width</span></label> <label class="radio custom-radio"><input type="radio" ng-model="options.positionClass" name="positions" value="toast-bottom-full-width"> <span>Bottom Full Width</span></label> <label class="radio custom-radio"><input type="radio" ng-model="options.positionClass" name="positions" value="toast-top-center"> <span>Top Center</span></label> <label class="radio custom-radio"><input type="radio" ng-model="options.positionClass" name="positions" value="toast-bottom-center"> <span>Bottom Center</span></label></div></div></div><div class="col-md-2 col-sm-3"><div class="control"><label for="timeOut">Time out</label> <input type="text" class="form-control" id="timeOut" ng-model="options.timeOut" placeholder="ms"> <label class="sub-label" for="timeOut">If you set it to 0, it will stick</label></div><div class="control"><label for="extendedTimeOut">Extended time out</label> <input type="text" class="form-control" id="extendedTimeOut" ng-model="options.extendedTimeOut" placeholder="ms"></div><div class="control"><label for="maxOpened">Maximum number of toasts</label> <input type="text" class="form-control" id="maxOpened" ng-model="options.maxOpened" value="0"> <label for="maxOpened" class="sub-label">0 means no limit</label></div><div class="control"><label class="checkbox-inline custom-checkbox nowrap"><input ng-model="options.autoDismiss" type="checkbox" id="autoDismiss"> <span>Auto dismiss</span></label></div></div><div class="col-md-5 col-sm-12"><label>Result:</label><pre class="result-toastr" id="toastrOptions">{{optionsStr}}</pre></div></div><div class="row"><div class="col-md-12 button-row"><button ng-click="openToast()" class="btn btn-primary">Open Toast</button> <button ng-click="openRandomToast()" class="btn btn-primary">Random Toast</button> <button ng-click="clearToasts()" class="btn btn-danger">Clear Toasts</button> <button ng-click="clearLastToast()" class="btn btn-danger">Clear Last Toast</button></div></div></div>'),e.put("app/widgets/ui/panels/panels.html",'<h2>Default panels</h2><div class="row"><div class="col-md-12 col-lg-4"><div ba-panel="" ba-panel-class="xsmall-panel light-text">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Mauris ac mi erat. Phasellus placerat, elit a laoreet semper, enim ipsum ultricies orci, ac tincidunt tellus massa eu est. Nam non porta purus, sed facilisis justo. Nam pulvinar sagittis quam.</div></div><div class="col-md-12 col-lg-4"><div ba-panel="" ba-panel-title="Panel with header" ba-panel-class="xsmall-panel light-text">Phasellus maximus venenatis augue, et vestibulum neque aliquam ut. Morbi mattis libero vitae vulputate dignissim. Praesent placerat, sem non dapibus cursus, lacus nisi blandit quam, vitae porttitor lectus lacus non turpis. Donec suscipit consequat tellus.</div></div><div class="col-md-12 col-lg-4"><div ba-panel="" ba-panel-title="Panel with header & scroll" ba-panel-class="xsmall-panel with-scroll light-text"><p>Suspendisse nec tellus urna. Sed id est metus. Nullam sit amet dolor nec ipsum dictum suscipit. Mauris sed nisi mauris. Nulla iaculis nisl ut velit ornare imperdiet. Suspendisse potenti. In tempor leo sed sem malesuada pellentesque. Maecenas faucibus metus lacus, ac egestas diam vulputate vitae.</p><p>Sed dapibus, purus vel hendrerit consectetur, lectus orci gravida massa, sed bibendum dui mauris et eros. Nulla dolor massa, posuere et dictum sit amet, dignissim quis odio. Fusce mollis finibus dignissim. Integer sodales augue erat. Pellentesque laoreet vestibulum urna at iaculis. Nulla libero augue, euismod at diam eget, aliquam condimentum ligula. Donec a leo eu est molestie lacinia hendrerit sed lorem. Duis id diam eu metus sodales consequat vel eu elit. Praesent dolor nibh, convallis eleifend feugiat a, finibus porttitor nibh. Ut non libero vel velit pulvinar scelerisque non vel lorem. Integer porta tempor nulla. Sed nibh erat, ultrices vel lorem eu, rutrum vehicula sem.</p><p>Donec nec tellus urna. Sed id est metus. Nullam sit amet dolor nec ipsum dictum suscipit. Mauris sed nisi mauris. Nulla iaculis nisl ut velit ornare imperdiet. Suspendisse potenti. In tempor leo sed sem malesuada pellentesque. Maecenas faucibus metus lacus, ac egestas diam vulputate vitae.</p><p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque fermentum nec ligula egestas rhoncus. Sed dignissim, augue vel scelerisque vulputate, nisi ante posuere lorem, quis iaculis eros dolor eu nisl. Etiam sagittis, ipsum ac tempor iaculis, justo neque mattis ante, ac maximus sapien risus eu sapien. Morbi erat urna, varius et lectus vel, porta dictum orci. Duis bibendum euismod elit, et lobortis purus venenatis in. Mauris eget lacus enim. Cras quis sem et magna fringilla convallis. Proin hendrerit nulla vel gravida mollis. Interdum et malesuada fames ac ante ipsum primis in faucibus. Vestibulum consectetur quis purus vel aliquam.</p></div></div></div><h2>Bootstrap panels</h2><div class="row"><div class="col-md-12 col-lg-4"><div class="panel panel-default bootstrap-panel xsmall-panel"><div class="panel-body"><p>A panel in bootstrap is a bordered box with some padding around its content.</p><p class="p-with-code">Panels are created with the <code>.panel</code> class, and content inside the panel has a <code>.panel-body</code> class. The <code>.panel-default .panel-primary .panel-danger</code> and other classes are used to style the color of the panel. See the next example on this page for more contextual classes.</p></div></div></div><div class="col-md-12 col-lg-4"><div class="panel panel-default bootstrap-panel xsmall-panel"><div class="panel-heading">Panel Heading</div><div class="panel-body"><p class="p-with-code">The <code>.panel-heading</code> class adds a heading to the panel.Easily add a heading container to your panel with .panel-heading. You may also include any <code>h1-h6</code> with a <code>.panel-title</code> class to add a pre-styled heading.</p></div></div></div><div class="col-md-12 col-lg-4"><div class="panel panel-default bootstrap-panel"><div class="panel-body footer-panel"><p class="p-with-code">Wrap buttons or secondary text in <code>.panel-footer</code>. Note that panel footers do not inherit colors and borders when using contextual variations as they are not meant to be in the foreground.</p></div><div class="panel-footer">Panel Footer</div></div></div></div><h2>Panels with Contextual Classes</h2><div class="row"><div class="col-md-6 col-lg-4"><div class="panel panel-default contextual-example-panel bootstrap-panel"><div class="panel-heading">Panel with panel-default class</div><div class="panel-body">To color the panel, use contextual classes. This is sample <code>.panel-default</code> panel</div></div></div><div class="col-md-6 col-lg-4"><div class="panel panel-primary contextual-example-panel bootstrap-panel"><div class="panel-heading">Panel with panel-primary class</div><div class="panel-body">Sample <code>.panel-primary</code> panel</div></div></div><div class="col-md-6 col-lg-4"><div class="panel panel-success contextual-example-panel bootstrap-panel"><div class="panel-heading">Panel with panel-success class</div><div class="panel-body">Sample <code>.panel-success</code> panel</div></div></div><div class="col-md-6 col-lg-4"><div class="panel panel-info contextual-example-panel bootstrap-panel"><div class="panel-heading">Panel with panel-info class</div><div class="panel-body">Sample <code>.panel-info</code> panel</div></div></div><div class="col-md-6 col-lg-4"><div class="panel panel-warning contextual-example-panel bootstrap-panel"><div class="panel-heading">Panel with panel-warning class</div><div class="panel-body">Sample <code>.panel-warning</code> panel</div></div></div><div class="col-md-6 col-lg-4"><div class="panel panel-danger contextual-example-panel bootstrap-panel"><div class="panel-heading">Panel with panel-danger class</div><div class="panel-body">Sample <code>.panel-danger</code> panel</div></div></div></div><div class="row"><div class="col-md-12"><h2>Panel Group</h2><div class="panel-group"><div class="panel panel-default bootstrap-panel"><div class="panel-heading">Panel group 1</div><div class="panel-body"><p>To group many panels together, wrap a <code>&lt;div&gt;</code> with class <code>\n            .panel-group</code> around them.</p></div></div><div class="panel panel-default bootstrap-panel"><div class="panel-heading">Panel group 2</div><div class="panel-body"><p>The <code>.panel-group</code> class clears the bottom-margin of each panel.</p></div></div></div></div></div>'),e.put("app/widgets/ui/progressBars/progressBars.html",'<div class="widgets"><div class="row"><div class="col-md-6"><div ba-panel="" ba-panel-title="Basic" ba-panel-class="with-scroll"><div ng-include="\'app/pages/ui/progressBars/widgets/basic.html\'"></div></div><div ba-panel="" ba-panel-title="Striped" ba-panel-class="with-scroll"><div ng-include="\'app/pages/ui/progressBars/widgets/striped.html\'"></div></div></div><div class="col-md-6"><div ba-panel="" ba-panel-title="With label" ba-panel-class="with-scroll"><div ng-include="\'app/pages/ui/progressBars/widgets/label.html\'"></div></div><div ba-panel="" ba-panel-title="Animated" ba-panel-class="with-scroll"><div ng-include="\'app/pages/ui/progressBars/widgets/animated.html\'"></div></div></div></div><div class="row"><div class="col-md-12" ba-panel="" ba-panel-title="Stacked" ba-panel-class="with-scroll"><div ng-include="\'app/pages/ui/progressBars/widgets/stacked.html\'"></div></div></div></div>'),e.put("app/widgets/ui/slider/slider.html",'<div class="row"><div class="col-md-12"><div ba-panel="" ba-panel-title="Ion Range Slider" ba-panel-class="with-scroll"><div class="slider-box"><h5>Basic</h5><ion-slider type="single" grid="false" min="0" max="100" from="45" disable="false"></ion-slider></div><div class="slider-box"><h5>With prefix</h5><ion-slider type="single" grid="true" min="100" max="1200" prefix="$" from="420" disable="false"></ion-slider></div><div class="slider-box"><h5>With postfix</h5><ion-slider type="single" grid="true" min="-90" max="90" postfix="°" from="36" disable="false"></ion-slider></div><div class="slider-box"><h5>Two way range</h5><ion-slider type="double" grid="true" min="100" max="1200" from="420" to="900" disable="false"></ion-slider></div><div class="slider-box"><h5>With Steps</h5><ion-slider type="single" grid="true" min="0" max="1000" from="300" step="50" disable="false"></ion-slider></div><div class="slider-box"><h5>Decorating numbers</h5><ion-slider type="single" grid="true" min="0" max="1000000" from="300000" step="1000" prettify-separator="." prettify="true" disable="false"></ion-slider></div><div class="slider-box"><h5>Using custom values array</h5><ion-slider type="single" grid="true" from="5" step="1000" values="[\'January\', \'February\', \'March\', \'April\', \'May\', \'June\', \'July\', \'August\', \'September\', \'October\', \'November\', \'December\']" disable="false"></ion-slider></div><div class="slider-box"><h5>Disabled</h5><ion-slider type="single" grid="false" min="0" max="100" from="45" disable="true"></ion-slider></div></div></div></div>'),e.put("app/widgets/ui/tabs/contextualAccordion.html",'<uib-accordion><uib-accordion-group heading="Primary" panel-class="panel-primary bootstrap-panel accordion-panel">Primary <i class="ion-heart"></i></uib-accordion-group><uib-accordion-group heading="Success" panel-class="panel-success bootstrap-panel accordion-panel">Success <i class="ion-checkmark-round"></i></uib-accordion-group><uib-accordion-group heading="Info" panel-class="panel-info bootstrap-panel accordion-panel">Info <i class="ion-information-circled"></i></uib-accordion-group><uib-accordion-group heading="Warning" panel-class="panel-warning bootstrap-panel accordion-panel">Warning <i class="ion-alert"></i></uib-accordion-group><uib-accordion-group heading="Danger" panel-class="panel-danger bootstrap-panel accordion-panel">Danger <i class="ion-nuclear"></i></uib-accordion-group></uib-accordion>'),e.put("app/widgets/ui/tabs/mainTabs.html",'<uib-tabset active="$tabSetStatus.activeTab"><uib-tab heading="Start"><p>Take up one idea. Make that one idea your life--think of it, dream of it, live on that idea. Let the brain, muscles, nerves, every part of your body, be full of that idea, and just leave every other idea alone. This is the way to success.</p><p>People who succeed have momentum. The more they succeed, the more they want to succeed, and the more they find a way to succeed. Similarly, when someone is failing, the tendency is to get on a downward spiral that can even become a self-fulfilling prophecy.</p><div class="text-center"><div class="kameleon-icon with-round-bg primary inline-icon"><img ng-src="{{::( \'Shop\' | kameleonImg )}}"></div><div class="kameleon-icon with-round-bg primary inline-icon"><img ng-src="{{::( \'Programming\' | kameleonImg )}}"></div><div class="kameleon-icon with-round-bg primary inline-icon"><img ng-src="{{::( \'Dna\' | kameleonImg )}}"></div></div><p>The reason most people never reach their goals is that they don\'t define them, or ever seriously consider them as believable or achievable. Winners can tell you where they are going, what they plan to do along the way, and who will be sharing the adventure with them.</p></uib-tab><uib-tab heading="Getting Done"><p>You can\'t connect the dots looking forward; you can only connect them looking backwards. So you have to trust that the dots will somehow connect in your future. You have to trust in something--your gut, destiny, life, karma, whatever. This approach has never let me down, and it has made all the difference in my life.</p><p>The reason most people never reach their goals is that they don\'t define them, or ever seriously consider them as believable or achievable. Winners can tell you where they are going, what they plan to do along the way, and who will be sharing the adventure with them.</p></uib-tab><uib-tab ng-init="$dropdownTabActive = 1" class="with-dropdown"><uib-tab-heading uib-dropdown=""><a uib-dropdown-toggle="" ng-click="$event.stopPropagation()">Dropdown tab <i class="caret"></i></a><ul class="dropdown-menu" uib-dropdown-menu=""><li><a ng-click="$dropdownTabActive = 1; $tabSetStatus.activeTab = 3">Tab 1</a></li><li><a ng-click="$dropdownTabActive = 2; $tabSetStatus.activeTab = 3">Tab 2</a></li></ul></uib-tab-heading><div ng-show="$dropdownTabActive == 1"><p>Success is ... knowing your purpose in life, growing to reach your maximum potential, and sowing seeds that benefit others.</p><p>Failure is the condiment that gives success its flavor.</p></div><div ng-show="$dropdownTabActive == 2"><p class="text-center"><button class="btn btn-danger">I\'m just a dummy button</button></p></div></uib-tab></uib-tabset>'),e.put("app/widgets/ui/tabs/sampleAccordion.html",'<uib-accordion><uib-accordion-group is-open="true" heading="Static Header, initially expanded" panel-class="bootstrap-panel accordion-panel panel-default">This content is straight in the template.</uib-accordion-group><uib-accordion-group heading="Dynamic Body Content" panel-class="bootstrap-panel accordion-panel panel-default"><p>The body of the uib-accordion group grows to fit the contents</p><button type="button" class="btn btn-primary btn-sm">Add Item</button></uib-accordion-group><uib-accordion-group heading="Custom template" panel-class="bootstrap-panel accordion-panel panel-default">Hello</uib-accordion-group><uib-accordion-group panel-class="bootstrap-panel accordion-panel panel-default"><uib-accordion-heading>I can have markup, too! <i class="fa pull-right ion-settings"></i></uib-accordion-heading>This is just some content to illustrate fancy headings.</uib-accordion-group></uib-accordion>'),e.put("app/widgets/ui/tabs/sideTabs.html",'<div ba-panel="" ba-panel-class="tabs-panel xsmall-panel with-scroll"><uib-tabset class="tabs-left"><uib-tab heading="Start"><p class="text-center">Take up one idea.</p><div class="kameleon-icon-tabs kameleon-icon with-round-bg danger"><img ng-src="{{::( \'Key\' | kameleonImg )}}"></div><p>People who succeed have momentum. The more they succeed, the more they want to succeed, and the more they find a way to succeed.</p></uib-tab><uib-tab heading="Get it done"><p>You can\'t connect the dots looking forward; you can only connect them looking backwards. So you have to trust that the dots will somehow connect in your future. You have to trust in something--your gut, destiny, life, karma, whatever. This approach has never let me down, and it has made all the difference in my life.</p><p>The reason most people never reach their goals is that they don\'t define them, or ever seriously consider them as believable or achievable. Winners can tell you where they are going, what they plan to do along the way, and who will be sharing the adventure with them.</p></uib-tab><uib-tab heading="Achieve"><p>Success is ... knowing your purpose in life, growing to reach your maximum potential, and sowing seeds that benefit others.</p><p>Failure is the condiment that gives success its flavor.</p></uib-tab></uib-tabset></div><div ba-panel="" ba-panel-class="tabs-panel xsmall-panel with-scroll"><uib-tabset class="tabs-right"><uib-tab heading="Start"><p class="text-center">Take up one idea.</p><div class="kameleon-icon-tabs kameleon-icon with-round-bg warning"><img ng-src="{{::( \'Phone-Booth\' | kameleonImg )}}"></div><p>People who succeed have momentum. The more they succeed, the more they want to succeed, and the more they find a way to succeed.</p></uib-tab><uib-tab heading="Get it done"><p>You can\'t connect the dots looking forward; you can only connect them looking backwards. So you have to trust that the dots will somehow connect in your future. You have to trust in something--your gut, destiny, life, karma, whatever. This approach has never let me down, and it has made all the difference in my life.</p><p>The reason most people never reach their goals is that they don\'t define them, or ever seriously consider them as believable or achievable. Winners can tell you where they are going, what they plan to do along the way, and who will be sharing the adventure with them.</p></uib-tab><uib-tab heading="Achieve"><p>Success is ... knowing your purpose in life, growing to reach your maximum potential, and sowing seeds that benefit others.</p><p>Failure is the condiment that gives success its flavor.</p></uib-tab></uib-tabset></div>'),e.put("app/widgets/ui/tabs/tabs.html",'<div><div class="row"><div class="col-md-6"><div ba-panel="" ba-panel-class="with-scroll horizontal-tabs tabs-panel medium-panel"><div ng-include="\'app/pages/ui/tabs/mainTabs.html\'"></div></div></div><div class="col-md-6 tabset-group" ng-include="\'app/pages/ui/tabs/sideTabs.html\'"></div></div><div class="row accordions-row"><div class="col-md-6" ng-include="\'app/pages/ui/tabs/sampleAccordion.html\'"></div><div class="col-md-6" ng-include="\'app/pages/ui/tabs/contextualAccordion.html\'"></div></div></div>'),e.put("app/widgets/ui/typography/typography.html",'<div class="typography-document-samples row-fluid"><div class="col-xlg-3 col-lg-6 col-md-6 col-sm-6 col-xs-12 typography-widget"><div ba-panel="" ba-panel-class="with-scroll heading-widget" ba-panel-title="Text Size"><div class="section-block"><h1>H1. Heading 1</h1><p>Lorem ipsum dolor sit amet, id mollis iaculis mi nisl pulvinar, lacinia scelerisque pharetra, placerat vestibulum eleifend pellentesque.</p></div><div class="section-block"><h2>H2. Heading 2</h2><p>Lorem ipsum dolor sit amet, id mollis iaculis mi nisl pulvinar, lacinia scelerisque pharetra, placerat vestibulum eleifend pellentesque.</p></div><div class="section-block"><h3>H3. Heading 3</h3><p>Lorem ipsum dolor sit amet, id mollis iaculis mi nisl pulvinar, lacinia scelerisque pharetra, placerat vestibulum eleifend pellentesque.</p></div><div class="section-block"><h4>H4. Heading 4</h4><p>Lorem ipsum dolor sit amet, id mollis iaculis mi nisl pulvinar, lacinia scelerisque pharetra,.</p></div><div class="section-block"><h5>H5. Heading 5</h5><p>Lorem ipsum dolor sit amet, id mollis iaculis mi nisl pulvinar, lacinia scelerisque pharetra.</p></div></div></div><div class="col-xlg-3 col-lg-6 col-md-6 col-sm-6 col-xs-12 typography-widget"><div ba-panel="" ba-panel-class="with-scroll more-text-widget" ba-panel-title="Some more text"><div class="section-block light-text"><p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur bibendum ornare dolor, quis ullamcorper ligula sodales at. Nulla tellus elit, varius non commodo eget, mattis vel eros. In sed ornare nulla. Nullam quis risus eget urna mollis ornare vel eu leo. Cum sociis natoque penatibus et magnis.</p></div><div class="section-block regular-text"><p>Curabitur bibendum ornare dolor, quis ullamcorper ligula dfgz`zzsodales at. Nullam quis risus eget urna mollis ornare vel eu leo. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Nullam id dolor id.</p></div><div class="section-block upper-text bold-text"><p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur bibendum ornare dolor, quis ullamcorper ligula sodales at. Nulla tellus elit, varius non commodo eget, mattis vel eros. In sed ornare nulla.</p></div><div class="section-block bold-text"><p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur bibendum ornare dolor, quis ullam-corper ligula sodales at. Nulla tellus elit, varius non commodo eget, mattis vel eros. In sed ornare nulla.</p></div><div class="section-block small-text"><p>Secondary text. Lorem ipsum dolor sit amet, id mollis iaculis mi nisl pulvinar,</p><p>lacinia scelerisque pharetra, placerat vestibulum eleifend</p><p>pellentesque, mi nam.</p></div></div></div><div class="col-xlg-3 col-lg-6 col-md-6 col-sm-6 col-xs-12 typography-widget"><div ba-panel="" ba-panel-class="with-scroll lists-widget" ba-panel-title="Lists"><div class="section-block"><h5 class="list-header">Unordered list:</h5><ul class="blur"><li>Lorem ipsum dolor sit amet</li><li>Сlacinia scelerisque pharetra<ul><li>Dui rhoncus quisque integer lorem<ul><li>Libero iaculis vestibulum eu vitae</li></ul></li></ul></li><li>Nisl lectus nibh habitasse suspendisse ut</li><li><span>Posuere cursus hac, vestibulum wisi nulla bibendum</span></li></ul><h5 class="list-header">Ordered Lists:</h5><ol class="blur"><li><span>Eu non nec cursus quis mollis, amet quam nec</span></li><li><span>Et suspendisse, adipiscing fringilla ornare sit ligula sed</span><ol><li><span>Interdum et justo nulla</span><ol><li><span>Magna amet, suscipit suscipit non amet</span></li></ol></li></ol></li><li><span>Metus duis eu non eu ridiculus turpis</span></li><li><span>Neque egestas id fringilla consectetuer justo curabitur, wisi magna neque commodo volutpat</span></li></ol><div class="accent">Important text fragment. Lorem ipsum dolor sit amet, id mollis iaculis mi nisl pulvinar, lacinia scelerisque pharetra.</div></div></div></div><div class="col-xlg-3 col-lg-6 col-md-6 col-sm-6 col-xs-12 typography-widget"><div ba-panel="" ba-panel-class="with-scroll color-widget" ba-panel-title="Text Color"><div class="section-block red-text"><p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur bibendum ornare dolor, quis ullamcorper ligula sodales at. Nulla tellus elit, varius non commodo eget, mattis vel eros. In sed ornare nulla. Nullam quis risus eget urna mollis ornare vel eu leo. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus.</p></div><div class="section-block yellow-text"><p>Curabitur bibendum ornare dolor, quis ullamcorper ligula dfgz`zzsodales at. Nullam quis risus eget urna mollis ornare vel eu leo. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Nullam id dolor id nibh ultricies vehicula ut id elit. In sed ornare nulla.</p></div><div class="section-block links"><p>Lorem ipsum <a href="">dolor</a> sit amet, consectetur adipiscing elit. Curabitur bibendum ornare dolor, quis <a href="">ullamcorper</a> ligula sodales at. Nulla tellus elit, varius non commodo eget, <a href="">mattis</a> vel eros. In sed ornare nulla.</p></div><div class="section-block links"><p><a href="">Active link — #209e91</a></p><p class="hovered"><a href="">Hover link — #17857a</a></p></div></div></div></div><div class="row-fluid"><div class="col-lg-12 col-sm-12 col-xs-12"><div ba-panel="" ba-panel-class="banner-column-panel"><div class="banner"><div class="large-banner-wrapper"><img ng-src="{{::( \'app/typography/banner.png\' | appImage )}}" alt=""></div><div class="banner-text-wrapper"><div class="banner-text"><h1>Simple Banner Text</h1><p>Lorem ipsum dolor sit amet</p><p>Odio amet viverra rutrum</p></div></div></div><div class="section"><h2>Columns</h2><div class="row"><div class="col-sm-6"><div class="img-wrapper"><img ng-src="{{::( \'app/typography/typo03.png\' | appImage )}}" alt="" title=""></div><p>Vel elit, eros elementum, id lacinia, duis non ut ut tortor blandit. Mauris <a href="">dapibus</a> magna rutrum. Ornare neque suspendisse <a href="">phasellus wisi</a>, quam cras pede rutrum suspendisse, <a href="">felis amet eu</a>. Congue magna elit quisque quia, nullam justo sagittis, ante erat libero placerat, proin condimentum consectetuer lacus. Velit condimentum velit, sed penatibus arcu nulla.</p></div><div class="col-sm-6"><div class="img-wrapper"><img ng-src="{{::( \'app/typography/typo01.png\' | appImage )}}" alt="" title=""></div><p>Et suspendisse, adipiscing fringilla ornare sit ligula sed, vel nam. Interdum et justo nulla, fermentum lobortis purus ut eu, duis nibh dolor massa tristique elementum, nibh iste potenti risus fusce aliquet fusce, ullamcorper debitis primis arcu tellus vestibulum ac.</p></div></div><div class="separator"></div><div class="row"><div class="col-sm-4"><h4>Column heading example</h4><div class="img-wrapper"><img ng-src="{{::( \'app/typography/typo04.png\' | appImage )}}" alt=""></div><p>Eget augue, lacus erat ante egestas scelerisque aliquam, metus molestie leo in habitasse magna maecenas</p><a href="" class="learn-more">Lean more</a></div><div class="col-sm-4"><h4>Yet another column heading example</h4><div class="img-wrapper"><img ng-src="{{::( \'app/typography/typo05.png\' | appImage )}}" alt=""></div><p>Augue massa et parturient, suspendisse orci nec scelerisque sit, integer nam mauris pede consequat in velit</p><a href="" class="learn-more">Lean more</a></div><div class="col-sm-4"><h4>Third column heading example</h4><div class="img-wrapper"><img ng-src="{{::( \'app/typography/typo06.png\' | appImage )}}" alt=""></div><p>Eget turpis, tortor lobortis porttitor, vestibulum nullam vehicula aliquam</p><a href="" class="learn-more">Lean more</a></div></div><div class="separator"></div></div></div></div></div>'),
e.put("app/dashboard/tradeBook/transaction/templates/basic.html",'<form name="vm.transactionForm" novalidate=""><div class="row"><div class="col-md-12"><h3 class="with-line">Transaction Information</h3><div class="row wizard-containers"><div class="col-md-4"><div class="form-group row clearfix"><label class="col-sm-3 control-label">Date</label><div class="col-sm-9"><date-picker-input date="vm.transaction.basic.date" name="date"></date-picker-input><ng-messages for="vm.transactionForm.date.$error" ng-show="(vm.transactionForm.$submitted && vm.transactionForm.date.$invalid) || (vm.transactionForm.date.$invalid && vm.transactionForm.date.$dirty)" role="alert"><ng-message class="errorValidation" when="required">Please enter shipment start date.</ng-message></ng-messages></div></div><div class="form-group row clearfix"><label for="productItem" class="col-sm-3 control-label">Product Item</label><div class="col-sm-9"><selectize ng-required="true" name="productItem" id="productItem" config="vm.productItemConfig" options="vm.productItemOptions.list" ng-model="vm.transactionForm.basic.productItemId"></selectize><ng-messages for="vm.transactionForm.productItem.$error" ng-if="(vm.transactionForm.$submitted && vm.transactionForm.productItem.$invalid) || (vm.transactionForm.productItem.$invalid && vm.transactionForm.productItem.$dirty)"><div ng-message="required" class="errorValidation">Please enter product item.</div></ng-messages></div></div><div class="form-group row clearfix"><label class="col-sm-3 control-label">Price (US$ / {{vm.transaction.priceMetricId ? vm.transaction.priceMetricId : \'MT\' }})</label><div class="col-sm-9"><input required="" ng-pattern="/^[0-9]+$/i" ng-model="vm.transaction.basic.price" class="form-control" name="price" placeholder="Price US$ / {{vm.transaction.quantityMetricId ? vm.transaction.priceMetricId : \'MT\'}}"><ng-messages for="vm.transactionForm.price.$error" ng-show="(vm.transactionForm.$submitted && vm.transactionForm.price.$invalid) || (vm.transactionForm.price.$invalid && vm.transactionForm.price.$dirty)" role="alert"><ng-message class="errorValidation" when="required">Please enter price value.</ng-message><ng-message class="errorValidation" when="pattern">Quantity can only have numbers.</ng-message></ng-messages></div></div><div class="form-group row clearfix"><label class="col-sm-3 control-label">Packaging</label><div class="col-sm-9"><selectize placeholder="Packaging" ng-required="true" name="packaging" id="packaging" config="vm.packagingConfig" options="vm.packagingOptions.list" ng-model="vm.transaction.basic.packaging"></selectize><ng-messages for="vm.transactionForm.packaging.$error" ng-show="(vm.transactionForm.$submitted && vm.transactionForm.packaging.$invalid) || (vm.transactionForm.packaging.$invalid && vm.transactionForm.packaging.$dirty)" role="alert"><ng-message class="errorValidation" when="required">Please enter product packaging.</ng-message></ng-messages></div></div></div><div class="col-md-4"><div class="form-group row clearfix"><label for="productItem" class="col-sm-3 control-label">Buyer</label><div class="col-sm-9"><selectize ng-required="true" placeholder="Buyer" name="buyer" id="buyer" config="vm.buyerConfig" options="vm.buyerOptions.list" ng-model="vm.transaction.buyerId"></selectize><ng-messages for="vm.transactionForm.buyer.$error" ng-if="(vm.transactionForm.$submitted && vm.transactionForm.buyer.$invalid) || (vm.transactionForm.buyer.$invalid && vm.transactionForm.buyer.$dirty)"><div ng-message="required" class="errorValidation">Please select Buyer</div></ng-messages></div></div><div class="form-group row clearfix"><label for="quantityMetric" class="col-sm-3 control-label">Quantity Metric</label><div class="col-sm-9"><selectize ng-required="true" placeholder="Quantity Metric" name="quantityMetric" id="quantityMetric" config="vm.quantityMetricConfig" options="vm.quantityMetricOptions.list" ng-model="vm.transaction.basic.quantityMetricId"></selectize><ng-messages for="vm.transactionForm.quantityMetric.$error" ng-if="(vm.transactionForm.$submitted && vm.transactionForm.quantityMetric.$invalid) || (vm.transactionForm.quantityMetric.$invalid && vm.transactionForm.quantityMetric.$dirty)"><div ng-message="required" class="errorValidation">Please enter quantity metric.</div></ng-messages></div></div><div class="form-group row clearfix"><label class="col-sm-3 control-label">Shipment End</label><div class="col-sm-9"><date-picker-input date="vm.transaction.shipmentEnd" name="shipmentEnd"></date-picker-input><ng-messages for="vm.transactionForm.shipmentEnd.$error" ng-show="(vm.transactionForm.$submitted && vm.transactionForm.shipmentEnd.$invalid) || (vm.transactionForm.shipmentEnd.$invalid && vm.transactionForm.shipmentEnd.$dirty)" role="alert"><ng-message class="errorValidation" when="required">Please enter shipment start date.</ng-message></ng-messages></div></div><div class="form-group row clearfix"><label class="col-sm-3 control-label">Contract ID</label><div class="col-sm-9"><input required="" ng-model="vm.transaction.contractID" class="form-control" name="contractId" placeholder="Contract Id"><ng-messages for="vm.transactionForm.fileId.$error" ng-show="(vm.transactionForm.$submitted && vm.transactionForm.contractId.$invalid) || (vm.transactionForm.contractId.$invalid && vm.transactionForm.contractId.$dirty)" role="alert"><ng-message class="errorValidation" when="required">Please enter a valid contract Id.</ng-message></ng-messages></div></div></div><div class="col-md-4"><div class="form-group row clearfix"><label for="productItem" class="col-sm-3 control-label">Seller</label><div class="col-sm-9"><selectize placeholder="Seller" ng-required="true" name="seller" id="seller" config="vm.sellerConfig" options="vm.sellerOptions.list" ng-model="vm.transaction.sellerId"></selectize><ng-messages for="vm.transactionForm.seller.$error" ng-if="(vm.transactionForm.$submitted && vm.transactionForm.seller.$invalid) || (vm.transactionForm.seller.$invalid && vm.transactionForm.seller.$dirty)"><div ng-message="required" class="errorValidation">Please select seller.</div></ng-messages></div></div><div class="form-group row clearfix"><label class="col-sm-3 control-label">Quantity ({{vm.transaction.priceMetricId ? vm.transaction.priceMetricId : \'MT\' }})</label><div class="col-sm-9"><input required="" ng-pattern="/^[0-9]+$/i" ng-model="vm.transaction.quantity" class="form-control" name="quantity" placeholder="Quantity in {{vm.transaction.quantityMetricId ? vm.transaction.priceMetricId : \'MT\'}}"><ng-messages for="vm.transactionForm.quantity.$error" ng-show="(vm.transactionForm.$submitted && vm.transactionForm.quantity.$invalid) || (vm.transactionForm.quantity.$invalid && vm.transactionForm.quantity.$dirty)" role="alert"><ng-message class="errorValidation" when="required">Please enter price value.</ng-message><ng-message class="errorValidation" when="pattern">Quantity can only have numbers.</ng-message></ng-messages></div></div><div class="form-group row clearfix"><label class="col-sm-3 control-label">Shipment Start</label><div class="col-sm-9"><date-picker-input date="vm.transaction.shipmentStart" name="shipmentStart"></date-picker-input><ng-messages for="vm.transactionForm.fileId.$error" ng-show="(vm.transactionForm.$submitted && vm.transactionForm.shipmentStart.$invalid) || (vm.transactionForm.shipmentStart.$invalid && vm.transactionForm.shipmentStart.$dirty)" role="alert"><ng-message class="errorValidation" when="required">Please enter shipment start date.</ng-message></ng-messages></div></div><div class="form-group row clearfix"><label class="col-sm-3 control-label">File ID</label><div class="col-sm-9"><input required="" ng-model="vm.transaction.fileId" class="form-control" name="fileId" placeholder="File Id"><ng-messages for="vm.transactionForm.fileId.$error" ng-show="(vm.transactionForm.$submitted && vm.transactionForm.fileId.$invalid) || (vm.transactionForm.fileId.$invalid && vm.transactionForm.fileId.$dirty)" role="alert"><ng-message class="errorValidation" when="required">Please enter a valid file Id.</ng-message></ng-messages></div></div></div></div><div class="row wizard-containers"><div class="col-xs-12"></div></div></div></div></form>'),e.put("app/dashboard/tradeBook/transaction/templates/commission.html",'<form name="vm.transactionCommissionForm" novalidate=""><div class="row"><div class="col-md-12"><div class="row wizard-containers"><h3 class="with-line">Commission Details</h3><div class="row wizard-containers"><div class="col-md-4"><div class="form-group row clearfix"><label class="col-sm-3 control-label">Commission Type</label><div class="col-sm-9"><selectize placeholder="Commission Type" ng-required="true" name="commissionType" id="commissionType" config="vm.commissionTypeConfig" options="vm.commissionTypeOptions.list" ng-model="vm.transaction.commission.typeId"></selectize><ng-messages for="vm.transactionCommissionForm.seller.$error" ng-if="(vm.transactionCommissionForm.$submitted && vm.transactionCommissionForm.commissionType.$invalid) || (vm.transactionCommissionForm.commissionType.$invalid && vm.transactionCommissionForm.commissionType.$dirty)"><div ng-message="required" class="errorValidation">Please select commission type.</div></ng-messages></div></div><div class="form-group row clearfix"><label class="col-sm-3 control-label">Commission</label><div class="col-sm-9"><input required="" ng-model="vm.transaction.commission.commission" class="form-control" name="commission" placeholder="Commission"><ng-messages for="vm.transactionCommissionForm.commission.$error" ng-if="(vm.transactionCommissionForm.$submitted && vm.transactionCommissionForm.commission.$invalid) || (vm.transactionCommissionForm.commission.$invalid && vm.transactionCommissionForm.commission.$dirty)"><div ng-message="required" class="errorValidation">Please enter commission.</div></ng-messages></div></div><div class="form-group row clearfix"><label class="col-sm-3 control-label">Differance</label><div class="col-sm-9"><input required="" ng-model="vm.transaction.commission.differance" class="form-control" name="differance" placeholder="Differance"><ng-messages for="vm.transactionCommissionForm.differance.$error" ng-if="(vm.transactionCommissionForm.$submitted && vm.transactionCommissionForm.differance.$invalid) || (vm.transactionCommissionForm.differance.$invalid && vm.transactionCommissionForm.differance.$dirty)"><div ng-message="required" class="errorValidation">Please enter commission differance.</div></ng-messages></div></div><div class="form-group row clearfix"><label class="col-sm-3 control-label">Discount</label><div class="col-sm-9"><input required="" ng-model="vm.transaction.commission.discount" class="form-control" name="discount" placeholder="Discount"><ng-messages for="vm.transactionCommissionForm.discount.$error" ng-if="(vm.transactionCommissionForm.$submitted && vm.transactionCommissionForm.discount.$invalid) || (vm.transactionCommissionForm.discount.$invalid && vm.transactionCommissionForm.discount.$dirty)"><div ng-message="required" class="errorValidation">Please select commission type.</div></ng-messages></div></div></div></div><div class="row wizard-containers"><div class="col-md-4"></div></div><div class="row wizard-containers"><div class="col-md-4"></div></div></div></div></div></form>'),e.put("app/dashboard/tradeBook/transaction/templates/documents.html",'<form name="vm.transactionDocumentForm" novalidate=""><div class="row"><div class="col-md-12"><div class="row wizard-containers"><h3 class="with-line">Documents</h3></div></div></div></form>'),e.put("app/dashboard/tradeBook/transaction/templates/notes.html",'<form name="vm.transactionDocumentForm" novalidate=""><div class="row"><div class="col-md-12"><div class="row wizard-containers"><h3 class="with-line">Notes</h3></div></div></div></form>'),e.put("app/dashboard/tradeBook/transaction/templates/product.html",'<form name="vm.productInfoForm" novalidate=""><div class="row"><div class="col-md-12"><div class="row wizard-containers"><h3 class="with-line">Product Specification</h3><div class="slider-box col-sm-12 col-md-4"><h5>Moisture</h5><ion-slider type="single" grid="true" ng-model="vm.transaction.productSpecification.moisture" min="0" max="100" prefix="%" from="0" disable="false"></ion-slider></div><div class="slider-box col-sm-12 col-md-4"><h5>Purity</h5><ion-slider type="single" grid="true" ng-model="vm.transaction.productSpecification.purity" min="0" max="100" prefix="%" from="0" disable="false"></ion-slider></div><div class="slider-box col-sm-12 col-md-4"><h5>Foreign Matter</h5><ion-slider type="single" grid="true" ng-model="vm.transaction.productSpecification.foreignMatter" min="0" max="100" prefix="%" from="0" disable="false"></ion-slider></div><div class="slider-box col-sm-12 col-md-4"><h5>Broken Splits</h5><ion-slider type="single" grid="true" ng-model="vm.transaction.productSpecification.brokenSplits" min="0" max="100" prefix="%" from="0" disable="false"></ion-slider></div><div class="slider-box col-sm-12 col-md-4"><h5>Damaged</h5><ion-slider type="single" grid="true" ng-model="vm.transaction.productSpecification.damaged" min="0" max="100" prefix="%" from="0" disable="false"></ion-slider></div><div class="slider-box col-sm-12 col-md-4"><h5>Green Damaged</h5><ion-slider type="single" grid="true" ng-model="vm.transaction.productSpecification.greenDamaged" min="0" max="100" prefix="%" from="0" disable="false"></ion-slider></div><div class="slider-box col-sm-12 col-md-4"><h5>Weevilied</h5><ion-slider type="single" grid="true" ng-model="vm.transaction.productSpecification.weevilied" min="0" max="100" prefix="%" from="0" disable="false"></ion-slider></div><div class="slider-box col-sm-12 col-md-4"><h5>Other Color</h5><ion-slider type="single" grid="true" ng-model="vm.transaction.productSpecification.otherColor" min="0" max="100" prefix="%" from="0" disable="false"></ion-slider></div><div class="slider-box col-sm-12 col-md-4"><h5>Wrinkled</h5><ion-slider type="single" grid="true" ng-model="vm.transaction.productSpecification.wrinkled" min="0" max="100" prefix="%" from="0" disable="false"></ion-slider></div></div></div></div></form>'),e.put("app/dashboard/tradeBook/transaction/templates/shipment.html",'<form name="vm.transactionShipmentForm" novalidate=""><div class="row"><div class="col-md-12"><div class="row wizard-containers"><h3 class="with-line">Shipment</h3></div></div></div></form>'),e.put("app/widgets/charts/amCharts/areaChart/areaChart.html",'<div id="areaChart" class="admin-chart" ng-controller="AreaChartCtrl"></div>'),e.put("app/widgets/charts/amCharts/barChart/barChart.html",'<div id="barChart" class="admin-chart" ng-controller="BarChartCtrl"></div>'),e.put("app/widgets/charts/amCharts/combinedChart/combinedChart.html",'<div id="zoomAxisChart" class="admin-chart" ng-controller="combinedChartCtrl"></div>'),e.put("app/widgets/charts/amCharts/funnelChart/funnelChart.html",'<div id="funnelChart" class="admin-chart" ng-controller="FunnelChartCtrl"></div>'),e.put("app/widgets/charts/amCharts/ganttChart/ganttChart.html",'<div id="gnattChart" class="admin-chart" ng-controller="ganttChartCtrl"></div>'),e.put("app/widgets/charts/amCharts/lineChart/lineChart.html",'<div id="lineChart" class="admin-chart" ng-controller="LineChartCtrl"></div>'),e.put("app/widgets/charts/amCharts/pieChart/pieChart.html",'<div id="pieChart" class="admin-chart" ng-controller="PieChartCtrl"></div>'),e.put("app/widgets/components/mail/detail/mailDetail.html",'<div class="message-container" ng-class="{\'expanded\': tabCtrl.navigationCollapsed}"><div class="message"><div class="row"><div class="toggle-navigation-container detail-page"><a href="" class="collapse-navigation-link ion-navicon" ng-click="tabCtrl.navigationCollapsed=!tabCtrl.navigationCollapsed"></a></div><button ui-sref="components.mail.label({label : detailCtrl.label})" type="button" class="back-button btn btn-default btn-with-icon"><i class="ion-chevron-left"></i>Back</button></div><div class="person-info row"><div class="col-lg-4 col-md-12 no-padding"><img ng-src="{{detailCtrl.mail.name.split(\' \')[0] | profilePicture}}" class="human-picture"><div class="name"><h2 class="name-h">{{detailCtrl.mail.name.split(\' \')[0]}}</h2><h2 class="name-h second-name">{{detailCtrl.mail.name.split(\' \')[1]}}</h2><div><span class="mail-tag tag label {{detailCtrl.mail.tag}}">{{detailCtrl.mail.tag}}</span></div></div></div><div class="col-lg-4 col-md-6 col-xs-12 no-padding"><div class="contact-info phone-email"><div><i class="ion-iphone"></i> <span class="phone">777-777-7777</span></div><div><i class="ion-email"></i> <span class="email">{{detailCtrl.mail.email}}</span></div></div></div><div class="col-lg-4 col-md-6 col-xs-12 no-padding"><div class="contact-info position-address"><div><span class="position">{{detailCtrl.mail.position}}</span></div><div><span class="address">12 Nezavisimosti st. Vilnius, Lithuania</span></div></div></div></div><div class="row"></div><div class="line"></div><div class="message-details"><span class="subject">{{detailCtrl.mail.subject}}</span> <span class="date">• {{detailCtrl.mail.date | date : \'h:mm a MMMM d \'}}</span></div><div class="line"></div><div ng-bind-html="detailCtrl.mail.body" class="message-body"></div><div class="line"></div><div class="attachment" ng-show="detailCtrl.mail.attachment"><span class="file-links">1 Attachment - <a href="">View</a> | <a href="">Download</a></span><div><i class="file-icon ion-document"></i> <span class="file-name">{{detailCtrl.mail.attachment}}</span></div></div><div class="line" ng-show="detailCtrl.mail.attachment"></div><div class="answer-container"><button type="button" class="btn btn-with-icon" ng-click="tabCtrl.showCompose(detailCtrl.mail.subject,detailCtrl.mail.email,\'\')"><i class="ion-reply"></i>Reply</button> <button type="button" class="btn btn-with-icon" ng-click="tabCtrl.showCompose(detailCtrl.mail.subject,\'\',detailCtrl.mail.body)"><i class="ion-forward"></i>Forward</button> <button type="button" class="btn btn-with-icon"><i class="ion-printer"></i>Print</button> <button type="button" class="btn btn-with-icon"><i class="ion-android-remove-circle"></i>Spam</button> <button type="button" class="btn btn-with-icon"><i class="ion-android-delete"></i>Delete</button></div></div><div ng-show="!detailCtrl.mail"><h5 ng-class="text-center">Nothing to show</h5></div></div>'),e.put("app/widgets/components/mail/list/mailList.html",'<div class="side-message-navigation" ng-class="{\'expanded\': tabCtrl.navigationCollapsed}"><div class="mail-messages-control side-message-navigation-item"><div class="toggle-navigation-container"><a href="" class="collapse-navigation-link ion-navicon" ng-click="tabCtrl.navigationCollapsed=!tabCtrl.navigationCollapsed"></a></div><label class="checkbox-inline custom-checkbox nowrap"><input type="checkbox" id="inlineCheckbox01" value="option1"> <span class="select-all-label">Select All</span></label> <button type="button" class="btn btn-icon refresh-button"><i class="ion-refresh"></i></button><div class="btn-group" uib-dropdown=""><button type="button" class="btn more-button" uib-dropdown-toggle="">More <span class="caret"></span></button><ul uib-dropdown-menu=""><li><a href="">Action</a></li><li><a href="">Another action</a></li><li><a href="">Something else here</a></li><li role="separator" class="divider"></li><li><a href="">Separated link</a></li></ul></div></div><div class="messages"><table><tr ng-repeat="m in listCtrl.messages track by m.id | orderBy:\'-date\'" class="side-message-navigation-item little-human shineHover {{m.tag}}"><td class="check-td"><div class="mail-checkbox"><label class="checkbox-inline custom-checkbox nowrap"><input type="checkbox"> <span></span></label></div></td><td class="photo-td" ui-sref="components.mail.detail({id: m.id, label: listCtrl.label})"><img ng-src="{{m.name.split(\' \')[0] | profilePicture}}" class="little-human-picture"></td><td ui-sref="components.mail.detail({id: m.id, label: listCtrl.label})"><div class="name-container"><div><span class="name">{{m.name}}</span></div><div><span class="tag label label-primary {{m.tag}}">{{m.tag}}</span></div></div></td><td ui-sref="components.mail.detail({id: m.id, label: listCtrl.label})"><div class="additional-info"><span class="subject">{{m.subject}}</span></div></td><td ui-sref="components.mail.detail({id: m.id, label: listCtrl.label})"><div class="mail-body-part">{{m.body | plainText}}</div></td><td class="date"><span>{{m.date | date : \'MMM d HH:mm\'}}</span></td></tr></table></div></div>'),e.put("app/widgets/form/inputs/widgets/checkboxesRadios.html",'<div class="checkbox-demo-row"><div class="input-demo checkbox-demo row"><div class="col-md-4"><label class="checkbox-inline custom-checkbox nowrap"><input type="checkbox" id="inlineCheckbox01" value="option1"> <span>Check 1</span></label></div><div class="col-md-4"><label class="checkbox-inline custom-checkbox nowrap"><input type="checkbox" id="inlineCheckbox02" value="option2"> <span>Check 2</span></label></div><div class="col-md-4"><label class="checkbox-inline custom-checkbox nowrap"><input type="checkbox" id="inlineCheckbox03" value="option3"> <span>Check 3</span></label></div></div><div class="input-demo radio-demo row"><div class="col-md-4"><label class="radio-inline custom-radio nowrap"><input type="radio" name="inlineRadioOptions" id="inlineRadio1" value="option1"> <span>Option 1</span></label></div><div class="col-md-4"><label class="radio-inline custom-radio nowrap"><input type="radio" name="inlineRadioOptions" id="inlineRadio2" value="option2"> <span>Option 2</span></label></div><div class="col-md-4"><label class="radio-inline custom-radio nowrap"><input type="radio" name="inlineRadioOptions" id="inlineRadio3" value="option3"> <span>Option3</span></label></div></div></div><div><div class="checkbox disabled"><label class="custom-checkbox nowrap"><input type="checkbox" value="" disabled=""> <span>Checkbox is disabled</span></label></div><div class="radio disabled"><label class="custom-radio nowrap"><input type="radio" name="optionsRadios" id="optionsRadios3" value="option3" disabled=""> <span>Disabled option</span></label></div></div>'),e.put("app/widgets/form/inputs/widgets/inputGroups.html",'<div class="input-group"><span class="input-group-addon input-group-addon-primary addon-left" id="basic-addon1">@</span> <input type="text" class="form-control with-primary-addon" placeholder="Username" aria-describedby="basic-addon1"></div><div class="input-group"><input type="text" class="form-control with-warning-addon" placeholder="Recipient\'s username" aria-describedby="basic-addon2"> <span class="input-group-addon input-group-addon-warning addon-right" id="basic-addon2">@example.com</span></div><div class="input-group"><span class="input-group-addon addon-left input-group-addon-success">$</span> <input type="text" class="form-control with-success-addon" aria-label="Amount (to the nearest dollar)"> <span class="input-group-addon addon-right input-group-addon-success">.00</span></div><div class="input-group"><input type="text" class="form-control with-danger-addon" placeholder="Search for..."> <span class="input-group-btn"><button class="btn btn-danger" type="button">Go!</button></span></div>'),e.put("app/widgets/form/inputs/widgets/standardFields.html",'<form><div class="form-group"><label for="input01">Text</label> <input type="text" class="form-control" id="input01" placeholder="Text"></div><div class="form-group"><label for="input02">Password</label> <input type="password" class="form-control" id="input02" placeholder="Password"></div><div class="form-group"><label for="input03">Rounded Corners</label> <input type="text" class="form-control form-control-rounded" id="input03" placeholder="Rounded Corners"></div><div class="form-group"><label for="input04">With help</label> <input type="text" class="form-control" id="input04" placeholder="With help"> <span class="help-block sub-little-text">A block of help text that breaks onto a new line and may extend beyond one line.</span></div><div class="form-group"><label for="input05">Disabled Input</label> <input type="text" class="form-control" id="input05" placeholder="Disabled Input" disabled=""></div><div class="form-group"><label for="textarea01">Textarea</label> <textarea placeholder="Default Input" class="form-control" id="textarea01"></textarea></div><div class="form-group"><input type="text" class="form-control input-sm" id="input2" placeholder="Small Input"></div><div class="form-group"><input type="text" class="form-control input-lg" id="input4" placeholder="Large Input"></div></form>'),e.put("app/widgets/form/inputs/widgets/validationStates.html",'<div class="form-group has-success"><label class="control-label" for="inputSuccess1">Input with success</label> <input type="text" class="form-control" id="inputSuccess1"></div><div class="form-group has-warning"><label class="control-label" for="inputWarning1">Input with warning</label> <input type="text" class="form-control" id="inputWarning1"></div><div class="form-group has-error"><label class="control-label" for="inputError1">Input with error</label> <input type="text" class="form-control" id="inputError1"></div><div class="has-success"><div class="checkbox"><label class="custom-checkbox"><input type="checkbox" id="checkboxSuccess" value="option1"> <span>Checkbox with success</span></label></div></div><div class="has-warning"><div class="checkbox"><label class="custom-checkbox"><input type="checkbox" id="checkboxWarning" value="option1"> <span>Checkbox with warning</span></label></div></div><div class="has-error"><div class="checkbox"><label class="custom-checkbox"><input type="checkbox" id="checkboxError" value="option1"> <span>Checkbox with error</span></label></div></div><div class="form-group has-success has-feedback"><label class="control-label" for="inputSuccess2">Input with success</label> <input type="text" class="form-control" id="inputSuccess2" aria-describedby="inputSuccess2Status"> <i class="ion-checkmark-circled form-control-feedback" aria-hidden="true"></i> <span id="inputSuccess2Status" class="sr-only">(success)</span></div><div class="form-group has-warning has-feedback"><label class="control-label" for="inputWarning2">Input with warning</label> <input type="text" class="form-control" id="inputWarning2" aria-describedby="inputWarning2Status"> <i class="ion-alert-circled form-control-feedback" aria-hidden="true"></i> <span id="inputWarning2Status" class="sr-only">(warning)</span></div><div class="form-group has-error has-feedback"><label class="control-label" for="inputError2">Input with error</label> <input type="text" class="form-control" id="inputError2" aria-describedby="inputError2Status"> <i class="ion-android-cancel form-control-feedback" aria-hidden="true"></i> <span id="inputError2Status" class="sr-only">(error)</span></div><div class="form-group has-success has-feedback"><label class="control-label" for="inputGroupSuccess1">Input group with success</label><div class="input-group"><span class="input-group-addon addon-left">@</span> <input type="text" class="form-control" id="inputGroupSuccess1" aria-describedby="inputGroupSuccess1Status"></div><i class="ion-checkmark-circled form-control-feedback" aria-hidden="true"></i> <span id="inputGroupSuccess1Status" class="sr-only">(success)</span></div>'),e.put("app/widgets/components/mail/composeBox/compose.html",'<div class="compose-header"><span>New message</span> <span class="header-controls"><i class="ion-minus-round"></i> <i class="ion-arrow-resize"></i> <i ng-click="$dismiss()" class="ion-close-round"></i></span></div><div><input type="text" class="form-control compose-input default-color" placeholder="To" ng-model="boxCtrl.to"> <input type="text" class="form-control compose-input default-color" placeholder="Subject" ng-model="boxCtrl.subject"><div class="compose-container"><text-angular-toolbar ta-toolbar-class="toolbarMain" name="toolbarMain" ta-toolbar="[[\'h1\',\'h2\',\'h3\',\'bold\',\'italics\', \'underline\', \'justifyLeft\', \'justifyCenter\', \'justifyRight\', \'justifyFull\']]"></text-angular-toolbar><text-angular name="htmlcontent" ta-target-toolbars="toolbarMain,toolbarFooter" ng-model="boxCtrl.text"></text-angular></div></div><div class="compose-footer clearfix"><button type="button" ng-click="$dismiss()" class="btn btn-send">Send</button><text-angular-toolbar ta-toolbar-class="toolbarFooter" name="toolbarFooter" ta-toolbar="[[\'insertLink\', \'insertImage\', \'html\', \'quote\',\'insertVideo\']]"></text-angular-toolbar><div class="footer-controls"><i class="footer-control-first compose-footer-icon ion-arrow-down-b"></i> <i ng-click="$dismiss()" class="compose-footer-icon ion-android-delete"></i></div></div>'),e.put("app/widgets/form/layouts/widgets/basicForm.html",'<form><div class="form-group"><label for="exampleInputEmail1">Email address</label> <input type="email" class="form-control" id="exampleInputEmail1" placeholder="Email"></div><div class="form-group"><label for="exampleInputPassword1">Password</label> <input type="password" class="form-control" id="exampleInputPassword1" placeholder="Password"></div><div class="checkbox"><label class="custom-checkbox"><input type="checkbox"> <span>Check me out</span></label></div><button type="submit" class="btn btn-danger">Submit</button></form>'),e.put("app/widgets/form/layouts/widgets/blockForm.html",'<div class="row"><div class="col-sm-6"><div class="form-group"><label for="inputFirstName">First Name</label> <input type="text" class="form-control" id="inputFirstName" placeholder="First Name"></div></div><div class="col-sm-6"><div class="form-group"><label for="inputLastName">Last Name</label> <input type="text" class="form-control" id="inputLastName" placeholder="Last Name"></div></div></div><div class="row"><div class="col-sm-6"><div class="form-group"><label for="inputFirstName">Email</label> <input type="email" class="form-control" id="inputEmail" placeholder="Email"></div></div><div class="col-sm-6"><div class="form-group"><label for="inputWebsite">Website</label> <input type="text" class="form-control" id="inputWebsite" placeholder="Website"></div></div></div><button type="submit" class="btn btn-primary">Submit</button>'),e.put("app/widgets/form/layouts/widgets/formWithoutLabels.html",'<form><div class="form-group"><input type="text" class="form-control" placeholder="Recipients"></div><div class="form-group"><input type="text" class="form-control" placeholder="Subject"></div><div class="form-group"><textarea class="form-control" placeholder="Message"></textarea></div><button type="submit" class="btn btn-success">Send</button></form>'),e.put("app/widgets/form/layouts/widgets/horizontalForm.html",'<form class="form-horizontal"><div class="form-group"><label for="inputEmail3" class="col-sm-2 control-label">Email</label><div class="col-sm-10"><input type="email" class="form-control" id="inputEmail3" placeholder="Email"></div></div><div class="form-group"><label for="inputPassword3" class="col-sm-2 control-label">Password</label><div class="col-sm-10"><input type="password" class="form-control" id="inputPassword3" placeholder="Password"></div></div><div class="form-group"><div class="col-sm-offset-2 col-sm-10"><div class="checkbox"><label class="custom-checkbox"><input type="checkbox"> <span>Remember me</span></label></div></div></div><div class="form-group"><div class="col-sm-offset-2 col-sm-10"><button type="submit" class="btn btn-warning">Sign in</button></div></div></form>'),e.put("app/widgets/form/layouts/widgets/inlineForm.html",'<form class="row form-inline"><div class="form-group col-sm-3 col-xs-6"><input type="text" class="form-control" id="exampleInputName2" placeholder="Name"></div><div class="form-group col-sm-3 col-xs-6"><input type="email" class="form-control" id="exampleInputEmail2" placeholder="Email"></div><div class="checkbox"><label class="custom-checkbox"><input type="checkbox"> <span>Remember me</span></label></div><button type="submit" class="btn btn-primary">Send invitation</button></form>'),
e.put("app/widgets/ui/buttons/widgets/buttonGroups.html",'<div class="btn-group-example"><div class="btn-group" role="group" aria-label="Basic example"><button type="button" class="btn btn-danger">Left</button> <button type="button" class="btn btn-danger">Middle</button> <button type="button" class="btn btn-danger">Right</button></div></div><div class="btn-toolbar-example"><div class="btn-toolbar" role="toolbar" aria-label="Toolbar with button groups"><div class="btn-group" role="group" aria-label="First group"><button type="button" class="btn btn-primary">1</button> <button type="button" class="btn btn-primary">2</button> <button type="button" class="btn btn-primary">3</button> <button type="button" class="btn btn-primary">4</button></div><div class="btn-group" role="group" aria-label="Second group"><button type="button" class="btn btn-primary">5</button> <button type="button" class="btn btn-primary">6</button> <button type="button" class="btn btn-primary">7</button></div><div class="btn-group" role="group" aria-label="Third group"><button type="button" class="btn btn-primary">8</button></div></div></div>'),e.put("app/widgets/ui/buttons/widgets/buttons.html",'<div class="basic-btns"><div class="row"><div class="col-md-2"><h5>Default button</h5></div><div class="col-md-10"><div class="row btns-row btns-same-width-md"><div class="col-sm-2 col-xs-4"><button type="button" class="btn btn-primary">Primary</button></div><div class="col-sm-2 col-xs-4"><button type="button" class="btn btn-default">Default</button></div><div class="col-sm-2 col-xs-4"><button type="button" class="btn btn-success">Success</button></div><div class="col-sm-2 col-xs-4"><button type="button" class="btn btn-info">Info</button></div><div class="col-sm-2 col-xs-4"><button type="button" class="btn btn-warning">Warning</button></div><div class="col-sm-2 col-xs-4"><button type="button" class="btn btn-danger">Danger</button></div></div></div></div><div class="row"><div class="col-md-2"><h5 class="row-sm">Small button</h5></div><div class="col-md-10"><div class="row btns-row btns-same-width-md"><div class="col-sm-2 col-xs-4"><button type="button" class="btn btn-primary btn-sm">Primary</button></div><div class="col-sm-2 col-xs-4"><button type="button" class="btn btn-default btn-sm">Default</button></div><div class="col-sm-2 col-xs-4"><button type="button" class="btn btn-success btn-sm">Success</button></div><div class="col-sm-2 col-xs-4"><button type="button" class="btn btn-info btn-sm">Info</button></div><div class="col-sm-2 col-xs-4"><button type="button" class="btn btn-warning btn-sm">Warning</button></div><div class="col-sm-2 col-xs-4"><button type="button" class="btn btn-danger btn-sm">Danger</button></div></div></div></div><div class="row"><div class="col-md-2"><h5 class="row-xs">Extra small button</h5></div><div class="col-md-10"><div class="row btns-row btns-same-width-md"><div class="col-sm-2 col-xs-4"><button type="button" class="btn btn-primary btn-xs">Primary</button></div><div class="col-sm-2 col-xs-4"><button type="button" class="btn btn-default btn-xs">Default</button></div><div class="col-sm-2 col-xs-4"><button type="button" class="btn btn-success btn-xs">Success</button></div><div class="col-sm-2 col-xs-4"><button type="button" class="btn btn-info btn-xs">Info</button></div><div class="col-sm-2 col-xs-4"><button type="button" class="btn btn-warning btn-xs">Warning</button></div><div class="col-sm-2 col-xs-4"><button type="button" class="btn btn-danger btn-xs">Danger</button></div></div></div></div><div class="row"><div class="col-md-2"><h5>Disabled button</h5></div><div class="col-md-10"><div class="row btns-row btns-same-width-md"><div class="col-sm-2 col-xs-4"><button type="button" class="btn btn-primary" disabled="disabled">Primary</button></div><div class="col-sm-2 col-xs-4"><button type="button" class="btn btn-default" disabled="disabled">Default</button></div><div class="col-sm-2 col-xs-4"><button type="button" class="btn btn-success" disabled="disabled">Success</button></div><div class="col-sm-2 col-xs-4"><button type="button" class="btn btn-info" disabled="disabled">Info</button></div><div class="col-sm-2 col-xs-4"><button type="button" class="btn btn-warning" disabled="disabled">Warning</button></div><div class="col-sm-2 col-xs-4"><button type="button" class="btn btn-danger" disabled="disabled">Danger</button></div></div></div></div></div>'),e.put("app/widgets/ui/buttons/widgets/dropdowns.html",'<div class="row btns-row"><div class="col-sm-4 col-xs-6"><div class="btn-group" uib-dropdown="" dropdown-append-to-body=""><button type="button" class="btn btn-primary" uib-dropdown-toggle="">Primary <span class="caret"></span></button><ul uib-dropdown-menu=""><li><a href="">Action</a></li><li><a href="">Another action</a></li><li><a href="">Something else here</a></li><li role="separator" class="divider"></li><li><a href="">Separated link</a></li></ul></div></div><div class="col-sm-4 col-xs-6"><div class="btn-group" uib-dropdown="" dropdown-append-to-body=""><button type="button" class="btn btn-success" uib-dropdown-toggle="">Success <span class="caret"></span></button><ul uib-dropdown-menu=""><li><a href="">Action</a></li><li><a href="">Another action</a></li><li><a href="">Something else here</a></li><li role="separator" class="divider"></li><li><a href="">Separated link</a></li></ul></div></div><div class="col-sm-4 col-xs-6"><div class="btn-group" uib-dropdown="" dropdown-append-to-body=""><button type="button" class="btn btn-info" uib-dropdown-toggle="">Info <span class="caret"></span></button><ul uib-dropdown-menu=""><li><a href="">Action</a></li><li><a href="">Another action</a></li><li><a href="">Something else here</a></li><li role="separator" class="divider"></li><li><a href="">Separated link</a></li></ul></div></div><div class="col-sm-4 col-xs-6"><div class="btn-group" uib-dropdown="" dropdown-append-to-body=""><button type="button" class="btn btn-default" uib-dropdown-toggle="">Default <span class="caret"></span></button><ul uib-dropdown-menu=""><li><a href="">Action</a></li><li><a href="">Another action</a></li><li><a href="">Something else here</a></li><li role="separator" class="divider"></li><li><a href="">Separated link</a></li></ul></div></div><div class="col-sm-4 col-xs-6"><div class="btn-group" uib-dropdown="" dropdown-append-to-body=""><button type="button" class="btn btn-warning" uib-dropdown-toggle="">Warning <span class="caret"></span></button><ul uib-dropdown-menu=""><li><a href="">Action</a></li><li><a href="">Another action</a></li><li><a href="">Something else here</a></li><li role="separator" class="divider"></li><li><a href="">Separated link</a></li></ul></div></div><div class="col-sm-4 col-xs-6"><div class="btn-group" uib-dropdown="" dropdown-append-to-body=""><button type="button" class="btn btn-danger" uib-dropdown-toggle="">Danger <span class="caret"></span></button><ul uib-dropdown-menu=""><li><a href="">Action</a></li><li><a href="">Another action</a></li><li><a href="">Something else here</a></li><li role="separator" class="divider"></li><li><a href="">Separated link</a></li></ul></div></div></div><h5 class="panel-subtitle">Split button dropdowns</h5><div class="row btns-row"><div class="col-sm-4 col-xs-6"><div class="btn-group" uib-dropdown="" dropdown-append-to-body=""><button type="button" class="btn btn-primary">Primary</button> <button type="button" class="btn btn-primary" uib-dropdown-toggle=""><span class="caret"></span> <span class="sr-only">Toggle Dropdown</span></button><ul uib-dropdown-menu=""><li><a href="">Action</a></li><li><a href="">Another action</a></li><li><a href="">Something else here</a></li><li role="separator" class="divider"></li><li><a href="">Separated link</a></li></ul></div></div><div class="col-sm-4 col-xs-6"><div class="btn-group" uib-dropdown="" dropdown-append-to-body=""><button type="button" class="btn btn-success">Success</button> <button type="button" class="btn btn-success" uib-dropdown-toggle=""><span class="caret"></span> <span class="sr-only">Toggle Dropdown</span></button><ul uib-dropdown-menu=""><li><a href="">Action</a></li><li><a href="">Another action</a></li><li><a href="">Something else here</a></li><li role="separator" class="divider"></li><li><a href="">Separated link</a></li></ul></div></div><div class="col-sm-4 col-xs-6"><div class="btn-group" uib-dropdown="" dropdown-append-to-body=""><button type="button" class="btn btn-info">Info</button> <button type="button" class="btn btn-info" uib-dropdown-toggle=""><span class="caret"></span> <span class="sr-only">Toggle Dropdown</span></button><ul uib-dropdown-menu=""><li><a href="">Action</a></li><li><a href="">Another action</a></li><li><a href="">Something else here</a></li><li role="separator" class="divider"></li><li><a href="">Separated link</a></li></ul></div></div><div class="col-sm-4 col-xs-6"><div class="btn-group" uib-dropdown="" dropdown-append-to-body=""><button type="button" class="btn btn-default">Default</button> <button type="button" class="btn btn-default" uib-dropdown-toggle=""><span class="caret"></span> <span class="sr-only">Toggle Dropdown</span></button><ul uib-dropdown-menu=""><li><a href="">Action</a></li><li><a href="">Another action</a></li><li><a href="">Something else here</a></li><li role="separator" class="divider"></li><li><a href="">Separated link</a></li></ul></div></div><div class="col-sm-4 col-xs-6"><div class="btn-group" uib-dropdown="" dropdown-append-to-body=""><button type="button" class="btn btn-warning">Warning</button> <button type="button" class="btn btn-warning" uib-dropdown-toggle=""><span class="caret"></span> <span class="sr-only">Toggle Dropdown</span></button><ul uib-dropdown-menu=""><li><a href="">Action</a></li><li><a href="">Another action</a></li><li><a href="">Something else here</a></li><li role="separator" class="divider"></li><li><a href="">Separated link</a></li></ul></div></div><div class="col-sm-4 col-xs-6"><div class="btn-group" uib-dropdown="" dropdown-append-to-body=""><button type="button" class="btn btn-danger">Danger</button> <button type="button" class="btn btn-danger" uib-dropdown-toggle=""><span class="caret"></span> <span class="sr-only">Toggle Dropdown</span></button><ul uib-dropdown-menu=""><li><a href="">Action</a></li><li><a href="">Another action</a></li><li><a href="">Something else here</a></li><li role="separator" class="divider"></li><li><a href="">Separated link</a></li></ul></div></div></div>'),e.put("app/widgets/ui/buttons/widgets/iconButtons.html",'<ul class="btn-list clearfix"><li><button type="button" class="btn btn-primary btn-icon"><i class="ion-android-download"></i></button></li><li><button type="button" class="btn btn-default btn-icon"><i class="ion-stats-bars"></i></button></li><li><button type="button" class="btn btn-success btn-icon"><i class="ion-android-checkmark-circle"></i></button></li><li><button type="button" class="btn btn-info btn-icon"><i class="ion-information"></i></button></li><li><button type="button" class="btn btn-warning btn-icon"><i class="ion-android-warning"></i></button></li><li><button type="button" class="btn btn-danger btn-icon"><i class="ion-nuclear"></i></button></li></ul><h5 class="panel-subtitle">Buttons with icons</h5><ul class="btn-list clearfix"><li><button type="button" class="btn btn-primary btn-with-icon"><i class="ion-android-download"></i>Primary</button></li><li><button type="button" class="btn btn-default btn-with-icon"><i class="ion-stats-bars"></i>Default</button></li><li><button type="button" class="btn btn-success btn-with-icon"><i class="ion-android-checkmark-circle"></i>Success</button></li><li><button type="button" class="btn btn-info btn-with-icon"><i class="ion-information"></i>Info</button></li><li><button type="button" class="btn btn-warning btn-with-icon"><i class="ion-android-warning"></i>Warning</button></li><li><button type="button" class="btn btn-danger btn-with-icon"><i class="ion-nuclear"></i>Danger</button></li></ul>'),e.put("app/widgets/ui/buttons/widgets/largeButtons.html",'<div class="row btns-row btns-same-width-lg"><div class="col-sm-4 col-xs-6"><button type="button" class="btn btn-primary btn-lg">Primary</button></div><div class="col-sm-4 col-xs-6"><button type="button" class="btn btn-success btn-lg">Success</button></div><div class="col-sm-4 col-xs-6"><button type="button" class="btn btn-info btn-lg">Info</button></div><div class="col-sm-4 col-xs-6"><button type="button" class="btn btn-default btn-lg">Default</button></div><div class="col-sm-4 col-xs-6"><button type="button" class="btn btn-warning btn-lg">Warning</button></div><div class="col-sm-4 col-xs-6"><button type="button" class="btn btn-danger btn-lg">Danger</button></div></div>'),e.put("app/widgets/ui/buttons/widgets/progressButtons.html",'<div class="progress-buttons-container text-center default-text"><div class="row"><section class="col-md-6 col-lg-3"><span class="button-title">fill horizontal</span> <button progress-button="progressFunction()" class="btn btn-success">Submit</button></section><section class="col-md-6 col-lg-3"><span class="button-title">fill vertical</span> <button progress-button="progressFunction()" pb-direction="vertical" class="btn btn-danger">Submit</button></section><section class="col-md-6 col-lg-3"><span class="button-title">shrink horizontal</span> <button progress-button="progressFunction()" pb-style="shrink" class="btn btn-warning">Submit</button></section><section class="col-md-6 col-lg-3"><span class="button-title">shrink vertical</span> <button progress-button="progressFunction()" pb-style="shrink" pb-direction="vertical" class="btn btn-info">Submit</button></section></div><div class="row"><section class="col-md-6 col-lg-3"><span class="button-title">rotate-angle-bottom<br>perspective</span> <button progress-button="progressFunction()" pb-style="rotate-angle-bottom" class="btn btn-success">Submit</button></section><section class="col-md-6 col-lg-3"><span class="button-title">rotate-angle-top<br>perspective</span> <button progress-button="progressFunction()" pb-style="rotate-angle-top" class="btn btn-danger">Submit</button></section><section class="col-md-6 col-lg-3"><span class="button-title">rotate-angle-left<br>perspective</span> <button progress-button="progressFunction()" pb-style="rotate-angle-left" class="btn btn-warning">Submit</button></section><section class="col-md-6 col-lg-3"><span class="button-title">rotate-angle-right<br>perspective</span> <button progress-button="progressFunction()" pb-style="rotate-angle-right" class="btn btn-info">Submit</button></section></div><div class="row"><section class="col-md-6 col-lg-3"><span class="button-title">rotate-side-down<br>perspective</span> <button progress-button="progressFunction()" pb-style="rotate-side-down" class="btn btn-success">Submit</button></section><section class="col-md-6 col-lg-3"><span class="button-title">rotate-side-up<br>perspective</span> <button progress-button="progressFunction()" pb-style="rotate-side-up" class="btn btn-danger">Submit</button></section><section class="col-md-6 col-lg-3"><span class="button-title">rotate-side-left<br>perspective</span> <button progress-button="progressFunction()" pb-style="rotate-side-left" class="btn btn-warning">Submit</button></section><section class="col-md-6 col-lg-3"><span class="button-title">rotate-side-right<br>perspective</span> <button progress-button="progressFunction()" pb-style="rotate-side-right" class="btn btn-info">Submit</button></section></div><div class="row"><section class="col-md-6 col-lg-3"><span class="button-title">rotate-back<br>perspective</span> <button progress-button="progressFunction()" pb-style="rotate-back" class="btn btn-success">Submit</button></section><section class="col-md-6 col-lg-3"><span class="button-title">flip-open<br>perspective</span> <button progress-button="progressFunction()" pb-style="flip-open" class="btn btn-danger">Submit</button></section><section class="col-md-6 col-lg-3"><span class="button-title">slide-down<br>horizontal</span> <button progress-button="progressFunction()" pb-style="slide-down" class="btn btn-warning">Submit</button></section><section class="col-md-6 col-lg-3"><span class="button-title">move-up<br>horizontal</span> <button progress-button="progressFunction()" pb-style="move-up" class="btn btn-info">Submit</button></section></div><div class="row"><section class="col-md-6"><span class="button-title">top-line<br>horizontal</span> <button progress-button="progressFunction()" pb-style="top-line" class="btn btn-success">Submit</button></section><section class="col-md-6"><span class="button-title">lateral-lines<br>vertical</span> <button progress-button="progressFunction()" pb-style="lateral-lines" class="btn btn-info">Submit</button></section></div></div>'),e.put("app/widgets/ui/icons/widgets/fontAwesomeIcons.html",'<div class="row icons-list success awesomeIcons"><div class="col-xs-2" ng-repeat="icon in icons.fontAwesomeIcons"><i class="fa {{icon}}"></i></div></div><a href="http://fortawesome.github.io/Font-Awesome/icons/" target="_blank" class="see-all-icons">See all Font Awesome icons</a>'),e.put("app/widgets/ui/icons/widgets/ionicons.html",'<div class="row icons-list primary"><div class="col-xs-2" ng-repeat="icon in icons.ionicons"><i class="{{icon}}"></i></div></div><a href="http://ionicons.com/" target="_blank" class="see-all-icons">See all ionicons icons</a>'),e.put("app/widgets/ui/icons/widgets/kameleon.html",'<div class="row clearfix"><div class="kameleon-row" ng-repeat="icon in icons.kameleonIcons"><div class="kameleon-icon"><img ng-src="{{:: (icon.img | kameleonImg )}}"><span>{{icon.name}}</span></div></div></div><a href="http://www.kameleon.pics/" target="_blank" class="see-all-icons">See all Kamaleon icons</a>'),e.put("app/widgets/ui/icons/widgets/kameleonRounded.html",'<div class="row clearfix"><div class="kameleon-row" ng-repeat="icon in icons.kameleonRoundedIcons"><div class="kameleon-icon with-round-bg {{icon.color}}"><img ng-src="{{::( icon.img | kameleonImg )}}"><span>{{ icon.name }}</span></div></div></div><a href="http://www.kameleon.pics/" target="_blank" class="see-all-icons">See all Kamaleon icons</a>'),e.put("app/widgets/ui/icons/widgets/socicon.html",'<div class="row icons-list danger"><div class="col-xs-2" ng-repeat="icon in icons.socicon"><i class="socicon">{{ icon }}</i></div></div><a href="http://www.socicon.com/chart.php" target="_blank" class="see-all-icons">See all Socicon icons</a>'),e.put("app/widgets/ui/modals/modalTemplates/basicModal.html",'<div class="modal-content"><div class="modal-header"><button type="button" class="close" ng-click="$dismiss()" aria-label="Close"><em class="ion-ios-close-empty sn-link-close"></em></button><h4 class="modal-title" id="myModalLabel">Modal title</h4></div><div class="modal-body">Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat.</div><div class="modal-footer"><button type="button" class="btn btn-primary" ng-click="$dismiss()">Save changes</button></div></div>'),e.put("app/widgets/ui/modals/modalTemplates/dangerModal.html",'<div class="modal-content"><div class="modal-header bg-danger"><i class="ion-flame modal-icon"></i><span>Error</span></div><div class="modal-body text-center">Your information hasn\'t been saved!</div><div class="modal-footer"><button type="button" class="btn btn-danger" ng-click="$dismiss()">OK</button></div></div>'),e.put("app/widgets/ui/modals/modalTemplates/infoModal.html",'<div class="modal-content"><div class="modal-header bg-info"><i class="ion-information-circled modal-icon"></i><span>Information</span></div><div class="modal-body text-center">You\'ve got a new email!</div><div class="modal-footer"><button type="button" class="btn btn-info" ng-click="$dismiss()">OK</button></div></div>'),e.put("app/widgets/ui/modals/modalTemplates/largeModal.html",'<div class="modal-content"><div class="modal-header"><button type="button" class="close" ng-click="$dismiss()" aria-label="Close"><em class="ion-ios-close-empty sn-link-close"></em></button><h4 class="modal-title">Modal title</h4></div><div class="modal-body">Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat.</div><div class="modal-footer"><button type="button" class="btn btn-primary" ng-click="$dismiss()">Save changes</button></div></div>'),e.put("app/widgets/ui/modals/modalTemplates/smallModal.html",'<div class="modal-content"><div class="modal-header"><button type="button" class="close" ng-click="$dismiss()" aria-label="Close"><em class="ion-ios-close-empty sn-link-close"></em></button><h4 class="modal-title">Modal title</h4></div><div class="modal-body">Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat.</div><div class="modal-footer"><button type="button" class="btn btn-primary" ng-click="$dismiss()">Save changes</button></div></div>'),e.put("app/widgets/ui/modals/modalTemplates/successModal.html",'<div class="modal-content"><div class="modal-header bg-success"><i class="ion-checkmark modal-icon"></i><span>Success</span></div><div class="modal-body text-center">Your information has been saved successfully</div><div class="modal-footer"><button type="button" class="btn btn-success" ng-click="$dismiss()">OK</button></div></div>'),e.put("app/widgets/ui/modals/modalTemplates/warningModal.html",'<div class="modal-content"><div class="modal-header bg-warning"><i class="ion-android-warning modal-icon"></i><span>Warning</span></div><div class="modal-body text-center">Your computer is about to explode!</div><div class="modal-footer"><button type="button" class="btn btn-warning" ng-click="$dismiss()">OK</button></div></div>'),e.put("app/widgets/ui/modals/notifications/notifications.html",'<div class="modal-buttons same-width clearfix" ng-controller="NotificationsCtrl"><button type="button" class="btn btn-success" ng-click="showSuccessMsg()">Success Notification</button> <button type="button" class="btn btn-info" ng-click="showInfoMsg()">Info Notification</button> <button type="button" class="btn btn-warning" ng-click="showWarningMsg()">Warning Notification</button> <button type="button" class="btn btn-danger" ng-click="showErrorMsg()">Danger Notification</button></div>'),e.put("app/widgets/ui/progressBars/widgets/animated.html",'<div class="progress"><div class="progress-bar progress-bar-success progress-bar-striped active" role="progressbar" aria-valuenow="40" aria-valuemin="0" aria-valuemax="100" style="width: 40%"><span class="sr-only">40% Complete (success)</span></div></div><div class="progress"><div class="progress-bar progress-bar-info progress-bar-striped active" role="progressbar" aria-valuenow="20" aria-valuemin="0" aria-valuemax="100" style="width: 20%"><span class="sr-only">20% Complete</span></div></div><div class="progress"><div class="progress-bar progress-bar-warning progress-bar-striped active" role="progressbar" aria-valuenow="60" aria-valuemin="0" aria-valuemax="100" style="width: 60%"><span class="sr-only">60% Complete (warning)</span></div></div><div class="progress"><div class="progress-bar progress-bar-danger progress-bar-striped active" role="progressbar" aria-valuenow="80" aria-valuemin="0" aria-valuemax="100" style="width: 80%"><span class="sr-only">80% Complete (danger)</span></div></div>'),e.put("app/widgets/ui/progressBars/widgets/basic.html",'<div class="progress"><div class="progress-bar progress-bar-success" role="progressbar" aria-valuenow="40" aria-valuemin="0" aria-valuemax="100" style="width: 40%"><span class="sr-only">40% Complete (success)</span></div></div><div class="progress"><div class="progress-bar progress-bar-info" role="progressbar" aria-valuenow="20" aria-valuemin="0" aria-valuemax="100" style="width: 20%"><span class="sr-only">20% Complete</span></div></div><div class="progress"><div class="progress-bar progress-bar-warning" role="progressbar" aria-valuenow="60" aria-valuemin="0" aria-valuemax="100" style="width: 60%"><span class="sr-only">60% Complete (warning)</span></div></div><div class="progress"><div class="progress-bar progress-bar-danger" role="progressbar" aria-valuenow="80" aria-valuemin="0" aria-valuemax="100" style="width: 80%"><span class="sr-only">80% Complete (danger)</span></div></div>'),e.put("app/widgets/ui/progressBars/widgets/label.html",'<div class="progress"><div class="progress-bar progress-bar-success" role="progressbar" aria-valuenow="40" aria-valuemin="0" aria-valuemax="100" style="width: 40%">40% Complete (success)</div></div><div class="progress"><div class="progress-bar progress-bar-info" role="progressbar" aria-valuenow="20" aria-valuemin="0" aria-valuemax="100" style="width: 20%">20% Complete</div></div><div class="progress"><div class="progress-bar progress-bar-warning" role="progressbar" aria-valuenow="60" aria-valuemin="0" aria-valuemax="100" style="width: 60%">60% Complete (warning)</div></div><div class="progress"><div class="progress-bar progress-bar-danger" role="progressbar" aria-valuenow="80" aria-valuemin="0" aria-valuemax="100" style="width: 80%">80% Complete (danger)</div></div>'),e.put("app/widgets/ui/progressBars/widgets/stacked.html",'<div class="progress"><div class="progress-bar progress-bar-success" style="width: 35%"><span class="sr-only">35% Complete (success)</span></div><div class="progress-bar progress-bar-warning progress-bar-striped" style="width: 20%"><span class="sr-only">20% Complete (warning)</span></div><div class="progress-bar progress-bar-danger" style="width: 10%"><span class="sr-only">10% Complete (danger)</span></div><div class="progress-bar progress-bar-info progress-bar-striped active" style="width: 20%"><span class="sr-only">20% Complete (warning)</span></div></div>'),e.put("app/widgets/ui/progressBars/widgets/striped.html",'<div class="progress"><div class="progress-bar progress-bar-success progress-bar-striped" role="progressbar" aria-valuenow="40" aria-valuemin="0" aria-valuemax="100" style="width: 40%"><span class="sr-only">40% Complete (success)</span></div></div><div class="progress"><div class="progress-bar progress-bar-info progress-bar-striped" role="progressbar" aria-valuenow="20" aria-valuemin="0" aria-valuemax="100" style="width: 20%"><span class="sr-only">20% Complete</span></div></div><div class="progress"><div class="progress-bar progress-bar-warning progress-bar-striped" role="progressbar" aria-valuenow="60" aria-valuemin="0" aria-valuemax="100" style="width: 60%"><span class="sr-only">60% Complete (warning)</span></div></div><div class="progress"><div class="progress-bar progress-bar-danger progress-bar-striped" role="progressbar" aria-valuenow="80" aria-valuemin="0" aria-valuemax="100" style="width: 80%"><span class="sr-only">80% Complete (danger)</span></div></div>'),e.put("app/widgets/form/inputs/widgets/select/select.html",'<div ng-controller="SelectpickerPanelCtrl as selectpickerVm"><div class="form-group"><select class="form-control selectpicker" selectpicker="" title="Standard Select" ng-model="selectpickerVm.standardSelected" ng-options="item as item.label for item in selectpickerVm.standardSelectItems"></select></div><div class="form-group"><select class="form-control selectpicker with-search" data-live-search="true" title="Select With Search" selectpicker="" ng-model="selectpickerVm.searchSelectedItem" ng-options="item as item.label for item in selectpickerVm.selectWithSearchItems"></select></div><div class="form-group"><select class="form-control selectpicker" title="Option Types" selectpicker=""><option>Standard option</option><option data-subtext="option subtext">Option with subtext</option><option disabled="">Disabled Option</option><option data-icon="glyphicon-heart">Option with cion</option></select></div><div class="form-group"><select class="form-control selectpicker" disabled="" title="Disabled Select" selectpicker=""><option>Option 1</option><option>Option 2</option><option>Option 3</option></select></div><div class="row"><div class="col-sm-6"><div class="form-group"><select class="form-control" title="Select with Option Groups" selectpicker="" ng-model="selectpickerVm.groupedSelectedItem" ng-options="item as item.label group by item.group for item in selectpickerVm.groupedSelectItems"></select></div></div><div class="col-sm-6"><div class="form-group"><select class="form-control" title="Select with Divider" selectpicker=""><option>Group 1 - Option 1</option><option>Group 1 - Option 2</option><option data-divider="true"></option><option>Group 2 - Option 1</option><option>Group 2 - Option 2</option></select></div></div></div><div class="form-group"><select class="form-control" title="Multiple Select" multiple="" selectpicker="" ng-model="selectpickerVm.multipleSelectedItems" ng-options="item as item.label for item in selectpickerVm.standardSelectItems"><option>Option 1</option><option>Option 2</option><option>Option 3</option></select></div><div class="form-group"><select class="form-control" title="Multiple Select with Limit" multiple="" data-max-options="2" selectpicker="" ng-model="selectpickerVm.multipleSelectedItems2" ng-options="item as item.label for item in selectpickerVm.standardSelectItems"><option>Option 1</option><option>Option 2</option><option>Option 3</option></select></div><div class="row"><div class="col-sm-6"><div class="form-group"><select class="form-control" title="Primary Select" data-style="btn-primary" data-container="body" selectpicker=""><option>Option 1</option><option>Option 2</option><option>Option 3</option><option>Option 4</option></select></div><div class="form-group"><select class="form-control" title="Success Select" data-style="btn-success" data-container="body" selectpicker=""><option>Option 1</option><option>Option 2</option><option>Option 3</option><option>Option 4</option></select></div><div class="form-group"><select class="form-control" title="Warning Select" data-style="btn-warning" data-container="body" selectpicker=""><option>Option 1</option><option>Option 2</option><option>Option 3</option><option>Option 4</option></select></div></div><div class="col-sm-6"><div class="form-group"><select class="form-control" title="Info Select" data-style="btn-info" data-container="body" selectpicker=""><option>Option 1</option><option>Option 2</option><option>Option 3</option><option>Option 4</option></select></div><div class="form-group"><select class="form-control" title="Danger Select" data-style="btn-danger" data-container="body" selectpicker=""><option>Option 1</option><option>Option 2</option><option>Option 3</option><option>Option 4</option></select></div><div class="form-group"><select class="form-control" title="Inverse Select" data-style="btn-inverse" data-container="body" selectpicker=""><option>Option 1</option><option>Option 2</option><option>Option 3</option><option>Option 4</option></select></div></div></div></div>'),e.put("app/widgets/form/inputs/widgets/switch/switch.html",'<div ng-controller="SwitchPanelCtrl as switchPanelVm" class="switches clearfix"><switch color="primary" ng-model="switchPanelVm.switcherValues.primary"></switch><switch color="warning" ng-model="switchPanelVm.switcherValues.warning"></switch><switch color="danger" ng-model="switchPanelVm.switcherValues.danger"></switch><switch color="info" ng-model="switchPanelVm.switcherValues.info"></switch><switch color="success" ng-model="switchPanelVm.switcherValues.success"></switch></div>'),e.put("app/widgets/form/inputs/widgets/tagsInput/tagsInput.html",'<div class="form-group"><div class="form-group"><input type="text" tag-input="primary" value="Amsterdam,Washington,Sydney,Beijing,Cairo" data-role="tagsinput" placeholder="Add Tag"></div><div class="form-group"><input type="text" tag-input="warning" value="Minsk,Prague,Vilnius,Warsaw" data-role="tagsinput" placeholder="Add Tag"></div><div class="form-group"><input type="text" tag-input="danger" value="London,Berlin,Paris,Rome,Munich" data-role="tagsinput" placeholder="Add Tag"></div></div>');
}]);
//# sourceMappingURL=../maps/scripts/app-7541d38b1e.js.map
