From 34d7606d9fea123848d25fc5607820790535032b Mon Sep 17 00:00:00 2001 From: "deploy.sh" Date: Fri, 8 Aug 2014 21:48:17 +0000 Subject: [PATCH] publish: Merge pull request #82 from kevinsproles/master generated from commit 1e96a8b1e577843e6dc532603f9cd4507a035088 --- index.html | 2 +- scripts/047b77df.scripts.js | 2 ++ scripts/{a8339369.vendor.js => 39f6656c.vendor.js} | 4 ++-- scripts/d653648a.scripts.js | 2 -- 4 files changed, 5 insertions(+), 5 deletions(-) create mode 100644 scripts/047b77df.scripts.js rename scripts/{a8339369.vendor.js => 39f6656c.vendor.js} (99%) delete mode 100644 scripts/d653648a.scripts.js diff --git a/index.html b/index.html index 16ac20a2..5e0580df 100644 --- a/index.html +++ b/index.html @@ -1,4 +1,4 @@ Volusion AngularJS Method Theme
\ No newline at end of file +
\ No newline at end of file diff --git a/scripts/047b77df.scripts.js b/scripts/047b77df.scripts.js new file mode 100644 index 00000000..21e1a558 --- /dev/null +++ b/scripts/047b77df.scripts.js @@ -0,0 +1,2 @@ +"use strict";function Translate(a,b,c,d,e){this.$translate=a,this.$translatePartialLoader=b,this.storage=c,this.disableTranslations=e,this.configure(angular.extend(d,this.getConfig())),this.addPart=b.addPart}function TranslateProvider(a){this.$translateProvider=a,this.setPreferredLanguage=a.preferredLanguage}angular.module("config",[]).constant("ENV",{name:"production",apiEndpoint:"/api/v1"}),angular.module("Volusion.templates",[]),angular.module("Volusion.directives",["Volusion.templates"]),angular.module("Volusion.filters",[]),angular.module("Volusion.services",[]),angular.module("Volusion.decorators",[]),angular.module("Volusion.controllers",[]),angular.module("methodApp",["ngAnimate","ngCookies","ngResource","ngSanitize","ngRoute","ngTouch","ui.bootstrap","pascalprecht.translate","snap","textAngular","config","seo","angulartics","Volusion.toolboxCommon","Volusion.controllers","Volusion.decorators","Volusion.directives","Volusion.filters","Volusion.services"]).config(["$routeProvider","$locationProvider","translateProvider","AppConfigProvider",function(a,b,c,d){b.html5Mode(!0);var e={urlPrefix:d.getPrefix(),region:d.getRegion(),lang:d.getLang(),country:d.getCountry(),disableTranslations:d.getTranslations()};c.configure(e),a.when("/",{templateUrl:"views/home.html",controller:"HomeCtrl",resolve:{translations:["translate",function(a){a.addParts("home"),a.addParts("product")}]}}).when("/p/:slug",{templateUrl:"views/product.html",controller:"ProductCtrl",resolve:{translations:["translate",function(a){return a.addParts("product")}]}}).when("/c/:slug",{templateUrl:"views/category.html",controller:"CategoryCtrl"}).when("/search",{templateUrl:"views/search.html",controller:"SearchCtrl"}).when("/theme-settings",{templateUrl:"views/theme-settings.html",controller:"ThemeSettingsCtrl"}).when("/:slug",{templateUrl:"views/article.html",controller:"ArticleCtrl"}).otherwise({redirectTo:"/"})}]).run(["snapRemote","$rootScope","$window","cacheBustFilter","SiteConfig","themeSettings","Cart","ContentMgr",function(a,b,c,d,e,f,g,h){b.isInDesktopMode=!0,enquire.register("screen and (max-width: 991px)",{unmatch:function(){a.close(),b.isInDesktopMode=!0},match:function(){b.isInDesktopMode=!1}}),b.$watch(function(){return h.getSnapMenuState()},function(a){b.snapMenuState=a},!0),b.$on("$routeChangeSuccess",function(){a.close()}),b.$on("$routeChangeError",function(a,b,d,e,f,g){a.preventDefault(),404===g.status&&c.location.replace("/404.html")}),b.overridesCSS=d("/styles/overrides.css"),g.init()}]),angular.module("Volusion.controllers").controller("MainCtrl",["$scope","$rootScope","$location","$window","$timeout","vnApi","themeSettings","SiteConfig",function(a,b,c,d,e,f,g,h){function i(){var b=0,c=0,d=0,e=[];-1!==j.windowWidth&&a.windowWidth>j.windowWidth&&(d=0,j.windowWidth=-1,j.position=0),-1===j.windowWidth&&angular.forEach(angular.element(".nav-top-level-menu-items"),function(a){return 0===b&&(c=angular.element(a).position().top),angular.element(a).position().top!==c?(d=b,!1):void b++}),0!==d||-1!==j.windowWidth?(-1===j.windowWidth?(j.windowWidth=a.windowWidth,j.position=d):d=j.position,a.smartNavMoreCategories=[],angular.forEach(a.smartCategories,function(b,c){c>=d-1?a.smartNavMoreCategories.push(b):e.push(b)}),a.smartNavCategories=e):a.smartNavCategories=a.smartCategories,a.displaySmartNavMoreMenuItem=0!==d}h.getConfig().then(function(b){a.config=b.data}),g.getThemeSettings().then(function(b){a.themeSettings=b});var j={windowWidth:-1,position:0};a.initializeWindowSize=function(){a.windowWidth=d.outerWidth},a.initializeWindowSize(),angular.element(d).bind("resize",function(){a.initializeWindowSize(),a.$apply(),i()}),f.Nav().get({navId:1}).$promise.then(function(b){a.smartNavCategories=a.smartCategories=b.data,e(function(){i()},0)}),b.seo={}}]),angular.module("Volusion.controllers").controller("HeaderCtrl",["$rootScope","$scope","$window","$timeout","translate","Cart","vnApi","ContentMgr",function(a,b,c,d,e,f,g,h){b.$watch(function(){return h.getHeaderState()},function(a){b.headerState=a},!0),e.addParts("header"),b.getCartItemsCount=function(){return f.getCartItemsCount()},b.viewCart=function(){return a.isInDesktopMode?"/shoppingcart.asp":"/checkout.asp"}}]),angular.module("Volusion.controllers").controller("FooterCtrl",["$scope","translate","themeSettings","ContentMgr",function(a,b,c,d){b.addParts("footer"),a.$watch(function(){return d.getFooterState()},function(b){a.footerState=b},!0)}]),angular.module("Volusion.controllers").controller("HomeCtrl",["$scope","$filter","vnApi",function(a,b,c){c.Product().get({filter:"featured",pageSize:4}).$promise.then(function(b){a.featuredProducts=b.data}),a.getImagePath=function(a){var c=b("vnProductImageFilter")(a);return""===c?"/images/theme/tcp-no-image.jpg":c}}]),angular.module("Volusion.controllers").controller("CategoryCtrl",["$q","$scope","$rootScope","$routeParams","$location","$filter","vnApi","vnProductParams","ContentMgr",function(a,b,c,d,e,f,g,h,i){b.getCategory=function(a){g.Category().get({slug:a}).$promise.then(function(a){b.category=a.data,h.addCategory(a.data.id),b.queryProducts()})},b.queryProducts=function(){var a=h.getParamsObject();g.Product().query(a).$promise.then(function(a){b.products=a.data,b.facets=a.facets,b.categoryList=a.categories,b.cursor=a.cursor,b.checkFacetsAndCategories(a.categories,a.facets)})},b.getImagePath=function(a){var b=f("vnProductImageFilter")(a);return""===b?"/images/theme/tcp-no-image.jpg":b},b.checkFacetsAndCategories=function(a,c){b.hasFacetsOrCategories=a&&a.length||c&&c.length?!0:!1},b.toggleSearch=function(){return b.mobileDisplay?(b.mobileDisplay=!1,b.isMobileAndVisible=!1,b.isMobileAndHidden=!0,void i.showAppFooter()):(b.mobileDisplay=!0,b.isMobileAndVisible=!0,b.isMobileAndHidden=!1,void i.hideAppFooter())},b.clearAllFilters=function(){h.resetParamsObject(),h.addCategory(b.category.id),b.queryProducts(),b.isMobileAndVisible&&b.toggleSearch()},b.dismissMobileFilters=function(){b.toggleSearch()},b.getCategory(d.slug),b.checkForFacetFilters=function(){return h.getFacetString()?!0:void 0},b.$on("$destroy",function(){h.resetParamsObject()})}]),angular.module("Volusion.controllers").controller("ProductCtrl",["$rootScope","$scope","vnApi","$location","$routeParams","$filter","$anchorScroll","Cart",function(a,b,c,d,e,f,g,h){function i(a){var b=[];if(!a)return b;for(var c=0;c0)for(var e=i(d.options),f=0;f0){for(var c=0;c0&&a.imageCollections[0].images.length>0?a.image=a.imageCollections[0].images[0]:(a.image={},a.image.medium="/images/theme/tcp-no-image.jpg",a.image.large="/images/theme/tcp-no-image.jpg",a.image.small="/images/theme/tcp-no-image.jpg"),b.cartItem.options=b.cartItem.options||[];var c=a.options;return c&&c.length?void j():void(a.optionSelection=angular.extend(a.optionSelection,{available:9999,isValid:!0,product:a,state:"available"}))}function l(a){b.cartItem.qty=parseInt(b.cartItem.qty)+a;var c=b.product.optionSelection;c&&c.available-a>=0&&(c.available-=a)}function m(a,b){return a.$$phase||a.$root.$$phase?b():a.$apply(b)}b.product={},b.cartItem={},b.carousel={interval:4e3},b.accordionPanels={isopen1:!0},b.tabs={relatedProducts:{active:!0},accessories:{active:!1}},c.Product().get({slug:e.slug}).$promise.then(function(c){b.product=c.data;var e=d.absUrl(),f=b.seo.metaTagTitle;b.product.sharing={facebook:"http://www.facebook.com/sharer.php?u="+e+"/",twitter:"http://twitter.com/share?url="+e+"&text="+f,tumblr:"http://www.tumblr.com/share/link?url="+e+"&name="+f,googlePlus:"https://plus.google.com/share?url="+e},b.cartItem=b.product.cartItem,b.isInDesktopMode=a.isInDesktopMode,angular.extend(b.seo,b.product.seo),k()}).then(function(){b.product.code&&c.Review().get({code:b.product.code}).$promise.then(function(a){b.ratingsAndReviews=a});var a=b.product.categories[0].id;c.Product().get({categoryIds:a,pageNumber:1,pageSize:4}).$promise.then(function(a){b.relatedProducts=a.data}),c.Product().get({accessoriesOf:b.product.code,pageNumber:1,pageSize:4}).$promise.then(function(a){b.accessories=a.data})}),b.$on("$stateChangeSuccess",function(){d.hash("top"),g(),d.hash("")}),a.$on("VN_PRODUCT_SELECTED",function(a,b){b.product.optionSelection=b}),b.$watch("product.optionSelection",function(a,c){function d(){b.cartItem.code=b.product.code,b.cartItem.id=b.product.id}function e(){return a.isValid?((void 0===b.cartItem.qty||0===b.cartItem.qty)&&(b.cartItem.qty=1),void(a.available-=b.cartItem.qty)):(b.cartItem.qty=1,a.available=0,void(b.product.optionSelection.available=0))}function f(){return 0===b.product.imageCollections.length||0===b.product.imageCollections[0].images.length?(b.product.image={},b.product.image.medium="/images/theme/tcp-no-image.jpg",b.product.image.large="/images/theme/tcp-no-image.jpg",void(b.product.image.small="/images/theme/tcp-no-image.jpg")):((void 0===c||a.images!==c.images)&&(b.product.image=b.product.imageCollections[0].images[0]),b.currentImageCollection={},void angular.forEach(b.product.imageCollections,function(c){c.key===a.images&&(b.currentImageCollection=c.images)}))}void 0!==a&&(d(),e(),f(),j(),b.isAddToCartButtonEnabled=a.isValid&&b.cartItem.qty>0)}),b.decrementQty=function(){l(-1)},b.incrementQty=function(){l(1)},b.changeQty=function(){(isNaN(b.cartItem.qty)||parseInt(b.cartItem.qty)<1)&&(b.cartItem.qty=1)},b.getImagePath=function(a){var b=f("vnProductImageFilter")(a);return""===b?"/images/theme/tcp-no-image.jpg":b},b.addToCart=function(){i(b.product.options).length>0||h.saveCart(b.cartItem).then(function(){m(b,function(){b.cartItem.qty=0})},function(){}).finally(function(){m(b,function(){l(b.product.optionSelection.available&&1)})})}}]),angular.module("methodApp").controller("SearchCtrl",["$rootScope","$scope","$routeParams","$location","$window","$filter","vnApi","vnProductParams","ContentMgr","themeSettings",function(a,b,c,d,e,f,g,h,i,j){b.searchLocal="",b.searchTerms="",b.queryProducts=function(){var a=h.getParamsObject();g.Product().query(a).$promise.then(function(a){b.products=a.data,b.facets=a.facets,b.categoryList=a.categories,b.cursor=a.cursor,b.checkFacetsAndCategories(a.categories,a.facets)})},b.getImagePath=function(a){var b=f("vnProductImageFilter")(a);return""===b?"/images/theme/tcp-no-image.jpg":b},b.doSearch=function(){b.currentSearchText=b.searchLocal,b.searchTerms={q:b.searchLocal},d.path("/search"),d.search("q",b.searchLocal)},b.checkFacetsAndCategories=function(a,c){b.hasFacetsOrCategories=a&&a.length||c&&c.length?!0:!1},b.initParams=function(){h.setPageSize(j.getPageSize()),void 0!==c.q&&b.searchTerms!==c&&(h.updateSearch(c.q),b.searchTerms=c,b.queryProducts())},b.clearAllFilters=function(){h.resetParamsObject(),h.setSort("relevance"),h.updateSearch(c.q),b.minPrice="",b.maxPrice="",b.queryProducts()},b.searchByPrice=function(a){13===a.which&&(h.setMinPrice(b.minPrice),h.setMaxPrice(b.maxPrice),b.queryProducts())},b.toggleSearch=function(){return b.mobileDisplay?(b.mobileDisplay=!1,b.isMobileAndVisible=!1,b.isMobileAndHidden=!0,void i.showAppFooter()):(b.mobileDisplay=!0,b.isMobileAndVisible=!0,b.isMobileAndHidden=!1,void i.hideAppFooter())},b.dismissMobileFilters=function(){b.toggleSearch()},b.initParams(),b.$on("$destroy",function(){h.resetParamsObject()})}]),angular.module("Volusion.controllers").controller("ArticleCtrl",["$rootScope","$scope","$routeParams","vnApi",function(a,b,c,d){d.Article().get({slug:"how-do-i-return-an-item"}).$promise.then(function(c){b.article=c.data,a.seo=angular.extend(a.seo||{},b.article.seo)})}]),angular.module("Volusion.controllers").controller("PageCtrl",["$scope",function(a){a.awesomeThings=["HTML5 Boilerplate","AngularJS","Karma"]}]),angular.module("methodApp").controller("ThemeSettingsCtrl",["$scope","$http","$location","ContentMgr",function(a,b,c,d){var e,f;if(d.hideAppHeader(),d.hideAppFooter(),c.absUrl().indexOf("127.0.0.1")>=0||c.absUrl().indexOf("localhost")>=0)f="dev",e="/settings/themeSettings.json",a.debug=!0;else{f="prod";var g=c.search();e="/api/v1/themes/"+g.themeName+"/versions/"+g.themeVersion+"/settings"}b.get(e).success(function(b){"dev"===f?(console.log(b),a.settings=b):a.settings=b.data}),a.addSlide=function(){a.settings.pages.home.slider.slides.push({headline:"",subHeadline:"",imageUrl:"",linksTo:""})},a.save=function(){"dev"===f?(console.log("would be saved if you were in production"),window.alert("would be saved if you were in production, but since you're not:=, simply copy the debug output to your themeSettings.json file manually.")):b.put(e,a.settings).success(function(){console.log("successfully saved")})},a.$on("$destroy",function(){d.showAppHeader(),d.showAppFooter()})}]),angular.module("Volusion.directives").directive("easyZoom",function(){function a(a){b.standardSrc&&b.zoomSrc&&(a.swap(b.standardSrc,b.zoomSrc),b={})}var b={};return{restrict:"A",replace:!0,templateUrl:"template/easyZoom.html",scope:{ngSrc:"=",ezAdjacent:"=",ezOverlay:"=",ezZoomSrc:"=",alt:"@"},link:function(c,d){var e=d.easyZoom(),f=e.data("easyZoom");c.$watch("ngSrc",function(c){void 0!==c&&(b.standardSrc=c,a(f))}),c.$watch("ezZoomSrc",function(c){void 0!==c&&(b.zoomSrc=c,a(f))}),c.$on("$destroy",function(){f.teardown()})}}}).run(["$templateCache",function(a){a.put("template/easyZoom.html",'
{{alt}}
')}]),angular.module("Volusion.directives").directive("legacyLink",["$window",function(a){return{restrict:"A",link:function(b,c,d){d.$observe("legacyLink",function(a){c.attr("href",a)}),c.on("click",function(b){b.preventDefault(),a.location.assign(this.href)})}}}]),angular.module("Volusion.directives").directive("showOnDropdownHover",["$timeout",function(a){return{restrict:"A",link:function(b,c){var d,e=c.parent().parent();e.bind("mouseenter",function(){c.show()}).bind("mouseleave",function(){d=a(function(){c.hide()},1)}).bind("click",function(){c.show()}),c.bind("mouseenter",function(){c.show(),a.cancel(d)}).bind("mouseleave",function(){c.hide()}),b.$on("$destroy",function(){a.cancel(d)})}}}]),angular.module("Volusion.directives").directive("scrollToAnchor",["$location","$anchorScroll",function(a,b){return{restrict:"AC",compile:function(){return function(c,d,e){d.bind("click",function(c){c.preventDefault(),a.hash(e.scrollToAnchor),b()})}}}}]),angular.module("Volusion.directives").directive("vnPaginator",["vnProductParams","themeSettings",function(a,b){return{templateUrl:"views/partials/paginator.html",restrict:"A",scope:{cursor:"=",queryFn:"&"},link:function(c,d,e){a.setPageSize(b.getPageSize()),c.prevPage=function(){c.cursor.currentPage>1&&(a.previousPage(),c.queryFn())},c.nextPage=function(){c.cursor.currentPage-1?"&":"?";return b+c+"_="+a.getCacheBustingToken()}return function(a){return b(a)}}]),angular.module("Volusion.filters").filter("html",["$sce",function(a){return function(b){return a.trustAsHtml(b)}}]),angular.module("Volusion.filters").filter("legacyLinkify",function(){return function(a){var b=angular.element("
").html(a);return angular.forEach(b.find("a"),function(a){var b=angular.element(a);b.attr("target",b.attr("target")||"_self")}),b.html()}}),angular.module("Volusion.filters").filter("seoFriendly",function(){return function(a){var b=a.match(/[0-9a-z]+/gi);return b?b.join("-"):""}});var ApiEndpointConfig=function(a){var b={"delete":{method:"DELETE"},get:{method:"GET"},patch:{method:"PATCH"},query:{method:"GET",isArray:!0},remove:{method:"DELETE"},save:{method:"POST"},update:{method:"PUT"}};this.actions=angular.extend(b,a||{});var c=this;angular.forEach(c.actions,function(a,b){c.addHttpAction(b,a)})};ApiEndpointConfig.prototype.route=function(a){return this.route=a,this},ApiEndpointConfig.prototype.model=function(a){return this.model=a,this},ApiEndpointConfig.prototype.addHttpAction=function(a,b){this.actions[a]=b};var ApiEndpoint=function(a,b,c){this.config=b,this.resource=c(a+b.route,{},b.actions);var d=this;angular.forEach(b.actions,function(a,b){var c=d.request;d[b]=angular.bind(d,c,b)})};ApiEndpoint.prototype.request=function(a,b,c){return this.resource[a](b,c).$promise};var ApiProvider=function(){this.baseRoute="",this.endpoints={}};ApiProvider.prototype.setBaseRoute=function(a){this.baseRoute=a},ApiProvider.prototype.endpoint=function(a,b){var c=new ApiEndpointConfig(b);return this.endpoints[a]=c,c},ApiProvider.prototype.$get=["$resource",function(a){var b={},c=this;return angular.forEach(c.endpoints,function(d,e){b[e]=new ApiEndpoint(c.baseRoute,d,a)}),b}],angular.module("Volusion.services").provider("api",ApiProvider).config(["apiProvider",function(a){var b={save:{method:"POST",headers:{vMethod:"POST"}},update:{method:"POST",headers:{vMethod:"PUT"}}};a.endpoint("products").route("/products/:code"),a.endpoint("reviews").route("/products/:code/reviews"),a.endpoint("categories").route("/categories/:id"),a.endpoint("config").route("/config"),a.endpoint("relatedProducts").route("/products/:code/relatedProducts"),a.endpoint("accessories").route("/products/:code/accessories"),a.endpoint("navs").route("/navs/:navId"),a.endpoint("carts",b).route("/carts/:cartId")}]),angular.module("Volusion.services").provider("AppConfig",["ENV","vnDataEndpointProvider",function(a,b){function c(){this.AppConfig=function(){return this}}b.setApiUrl(a.apiEndpoint);var d=a.apiEndpoint,e=!0,f=!1,g="",h="us",i="en",j="us";this.getIsLocalEnv=function(){return e},this.getApiPath=function(){return d},this.getTranslations=function(){return f},this.getPrefix=function(){return g},this.getRegion=function(){return h},this.getLang=function(){return i},this.getCountry=function(){return j},this.setApiPath=function(a){d=a},this.setIsLocalEnv=function(a){e=a},this.setTranslations=function(a){f=a},this.setPrefix=function(a){g=a},this.setRegion=function(a){h=a},this.setLang=function(a){i=a},this.setCountry=function(a){j=a},this.$get=function(){return new c}}]),angular.module("Volusion.services").factory("ContentMgr",function(){function a(){return k}function b(){return j}function c(){return l}function d(){k=!1}function e(){j=!1}function f(){l=!1}function g(){k=!0}function h(){j=!0}function i(){l=!0}var j=!0,k=!0,l=!0;return{getFooterState:a,getHeaderState:b,getSnapMenuState:c,hideAppFooter:d,hideAppHeader:e,hideSnapMenuState:f,showSnapMenuState:i,showAppFooter:g,showAppHeader:h}}),angular.module("Volusion.services").service("SiteConfig",["vnApi","$q",function(a,b){var c={};return c.getConfig=function(){var c=b.defer();return a.Configuration().get().$promise.then(function(a){c.resolve(a)}),c.promise},c}]),angular.module("Volusion.services").service("Cart",["vnApi",function(a){function b(){a.Cart({cartId:""}).get().$promise.then(function(a){f=a.data})}function c(){return f}function d(){return void 0===f.totals?0:f.totals.qty}function e(b){return a.Cart().save({cartId:f.id},b).$promise.then(function(a){return f=a.data})}var f={};return{init:b,getCart:c,getCartItemsCount:d,saveCart:e}}]),angular.module("Volusion.services").factory("storage",["$window","$cookieStore",function(a,b){function c(){return{get:function(b){var c=a.localStorage.getItem(b);return null===c?d(b):c},set:function(b,c){return a.localStorage.setItem(b,c)},remove:function(b){return a.localStorage.removeItem(b)}}}function d(a){var c=b.get(a);return"undefined"==typeof c?null:c}function e(){return{get:function(a){return d(a)},set:function(a,c){return b.put(a,c)},remove:function(a){return b.remove(a)}}}return"localStorage"in a&&null!==a.localStorage?c():e()}]),angular.module("Volusion.services").service("themeSettings",["$q","vnApi",function(a,b){function c(a){for(var b in a)if(a.hasOwnProperty(b))return!1;return!0}function d(){c(g)&&b.ThemeSettings().get().$promise.then(function(a){g=a})}function e(){var d=a.defer();return c(g)?(console.log("in gaurd: ",g),b.ThemeSettings().get().$promise.then(function(a){d.resolve(a),g=a})):d.resolve(g),d.promise}function f(){return g.itemsPerPage||8}var g={};return{init:d,getThemeSettings:e,getPageSize:f}}]),angular.module("Volusion.services").factory("tokenGenerator",function(){function a(){return(new Date).valueOf()}return{getCacheBustingToken:a}});var storageKey="VN_TRANSLATE";Translate.prototype.getConfig=function(){var a=this.storage,b=JSON.parse(a.get(storageKey))||{},c=a.get("NG_TRANSLATE_LANG_KEY");return!this.disableTranslations&&c&&"undefined"!==c&&(b.lang=c),b},Translate.prototype.configure=function(a){a=angular.extend(this.getConfig(),a),this.storage.set(storageKey,JSON.stringify(a)),this.$translate.use(a.lang)},Translate.prototype.addParts=function(){if(this.disableTranslations)return!0;var a=this.$translatePartialLoader;return angular.forEach(arguments,function(b){a.addPart(b)}),this.$translate.refresh()},TranslateProvider.prototype.$get=["$translate","$translatePartialLoader","storage",function(a,b,c){var d=this.options;return new Translate(a,b,c,{region:d.region,lang:d.lang,country:d.country},d.disableTranslations)}],TranslateProvider.prototype.configure=function(a){a=angular.extend({region:"us",lang:"en",country:"us"},a),a.lang&&this.setPreferredLanguage(a.lang),this.options=a,a.disableTranslations||this.initTranslateProvider(a.lang)},TranslateProvider.prototype.initTranslateProvider=function(a){var b=this.$translateProvider;b.useLoader("$translatePartialLoader",{urlTemplate:"/translations/{part}/{lang}.json"}),"en"===a&&b.useMessageFormatInterpolation(),b.useMissingTranslationHandlerLog(),b.useLocalStorage()},angular.module("Volusion.services").provider("translate",["$translateProvider",TranslateProvider]),angular.module("Volusion.templates",[]).run(["$templateCache",function(a){a.put("views/about.html","

This is the about view.

"),a.put("views/article.html",'

'),a.put("views/category.html",'
{{product.pricing.regularPrice | currency}} Reg {{product.pricing.salePrice | currency}} Now
'),a.put("views/contact.html","

This is the contact view.

"),a.put("views/home.html",'
'),a.put("views/partials/footer.html",'
'),a.put("views/partials/form-search.html",'
'),a.put("views/partials/header.html",''),a.put("views/partials/mobile-menu.html",''),a.put("views/partials/paginator.html",'
Page {{ cursor.currentPage }} of {{ cursor.totalPages }}
'),a.put("views/partials/product-descriptions.html",'
Description
Features
Tech Specs
Extended Info
'),a.put("views/partials/product-tile.html",'
{{ product.name }}
{{product.pricing.regularPrice | currency}}Reg {{product.pricing.salePrice | currency}}Now
'),a.put("views/partials/social-sharing.html"," "),a.put("views/product.html",'
Reg Now
Reviews
This product has recieved out of stars based on customer reviews
people found the following review helpful
out of By
Was this review helpful for you? Yes No
'),a.put("views/search.html",'
{{product.pricing.regularPrice | currency}} Reg {{product.pricing.salePrice | currency}} Now
'),a.put("views/style-guide.html",'

Hello, world!

This is a template for a simple marketing or informational website. It includes a large callout called a jumbotron and three supporting pieces of content. Use it as a starting point to create something more unique.

Learn More »

200x200
Well done! You successfully read this important alert message.
Heads up! This alert needs your attention, but it\'s not super important.
Warning! Best check yo self, you\'re not looking too good.
Oh snap! Change a few things up and try submitting again.
60% Complete
40% Complete (success)
20% Complete
60% Complete (warning)
80% Complete (danger)
35% Complete (success)
20% Complete (warning)
10% Complete (danger)

Panel title

Panel content

Panel title

Panel content

Panel title

Panel content

Panel title

Panel content

Panel title

Panel content

Panel title

Panel content

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas sed diam eget risus varius blandit sit amet non magna. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent commodo cursus magna, vel scelerisque nisl consectetur et. Cras mattis consectetur purus sit amet fermentum. Duis mollis, est non commodo luctus, nisi erat porttitor ligula, eget lacinia odio sem nec elit. Aenean lacinia bibendum nulla sed consectetur.

'),a.put("views/theme-settings.html",'

Theme Settings

General

Header Content

Footer Content

Home

Content

Display Featured Products

Content Tiles

Display Content Tiles
{{$index}}

Home Page Slideshow

Display Slide Show

Slide {{$index + 1}}   
Category
TODO

Debug

We\'ve detected you\'re running locally, so only you see this debug window. Watch your theme settings json model change in real time.

') +}]); \ No newline at end of file diff --git a/scripts/a8339369.vendor.js b/scripts/39f6656c.vendor.js similarity index 99% rename from scripts/a8339369.vendor.js rename to scripts/39f6656c.vendor.js index ff391738..8967fbe5 100644 --- a/scripts/a8339369.vendor.js +++ b/scripts/39f6656c.vendor.js @@ -1,9 +1,9 @@ !function(a,b){"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof window?window:this,function(a,b){function c(a){var b=a.length,c=_.type(a);return"function"===c||_.isWindow(a)?!1:1===a.nodeType&&b?!0:"array"===c||0===b||"number"==typeof b&&b>0&&b-1 in a}function d(a,b,c){if(_.isFunction(b))return _.grep(a,function(a,d){return!!b.call(a,d,a)!==c});if(b.nodeType)return _.grep(a,function(a){return a===b!==c});if("string"==typeof b){if(hb.test(b))return _.filter(b,a,c);b=_.filter(b,a)}return _.grep(a,function(a){return U.call(b,a)>=0!==c})}function e(a,b){for(;(a=a[b])&&1!==a.nodeType;);return a}function f(a){var b=ob[a]={};return _.each(a.match(nb)||[],function(a,c){b[c]=!0}),b}function g(){Z.removeEventListener("DOMContentLoaded",g,!1),a.removeEventListener("load",g,!1),_.ready()}function h(){Object.defineProperty(this.cache={},0,{get:function(){return{}}}),this.expando=_.expando+Math.random()}function i(a,b,c){var d;if(void 0===c&&1===a.nodeType)if(d="data-"+b.replace(ub,"-$1").toLowerCase(),c=a.getAttribute(d),"string"==typeof c){try{c="true"===c?!0:"false"===c?!1:"null"===c?null:+c+""===c?+c:tb.test(c)?_.parseJSON(c):c}catch(e){}sb.set(a,b,c)}else c=void 0;return c}function j(){return!0}function k(){return!1}function l(){try{return Z.activeElement}catch(a){}}function m(a,b){return _.nodeName(a,"table")&&_.nodeName(11!==b.nodeType?b:b.firstChild,"tr")?a.getElementsByTagName("tbody")[0]||a.appendChild(a.ownerDocument.createElement("tbody")):a}function n(a){return a.type=(null!==a.getAttribute("type"))+"/"+a.type,a}function o(a){var b=Kb.exec(a.type);return b?a.type=b[1]:a.removeAttribute("type"),a}function p(a,b){for(var c=0,d=a.length;d>c;c++)rb.set(a[c],"globalEval",!b||rb.get(b[c],"globalEval"))}function q(a,b){var c,d,e,f,g,h,i,j;if(1===b.nodeType){if(rb.hasData(a)&&(f=rb.access(a),g=rb.set(b,f),j=f.events)){delete g.handle,g.events={};for(e in j)for(c=0,d=j[e].length;d>c;c++)_.event.add(b,e,j[e][c])}sb.hasData(a)&&(h=sb.access(a),i=_.extend({},h),sb.set(b,i))}}function r(a,b){var c=a.getElementsByTagName?a.getElementsByTagName(b||"*"):a.querySelectorAll?a.querySelectorAll(b||"*"):[];return void 0===b||b&&_.nodeName(a,b)?_.merge([a],c):c}function s(a,b){var c=b.nodeName.toLowerCase();"input"===c&&yb.test(a.type)?b.checked=a.checked:("input"===c||"textarea"===c)&&(b.defaultValue=a.defaultValue)}function t(b,c){var d,e=_(c.createElement(b)).appendTo(c.body),f=a.getDefaultComputedStyle&&(d=a.getDefaultComputedStyle(e[0]))?d.display:_.css(e[0],"display");return e.detach(),f}function u(a){var b=Z,c=Ob[a];return c||(c=t(a,b),"none"!==c&&c||(Nb=(Nb||_("