L(10-13) – Tagged "color-navy-lavender"– Kappa USA ')};if(e.wrap(t(" ",{class:"owl-video-wrapper",style:o})),this._core.settings.lazyLoad&&(a="data-src",h="owl-lazy"),r.length)return c(r.attr(a)),r.remove(),!1;"youtube"===i.type?(n="//img.youtube.com/vi/"+i.id+"/hqdefault.jpg",c(n)):"vimeo"===i.type?t.ajax({type:"GET",url:"//vimeo.com/api/v2/video/"+i.id+".json",jsonp:"callback",dataType:"jsonp",success:function(t){n=t[0].thumbnail_large,c(n)}}):"vzaar"===i.type&&t.ajax({type:"GET",url:"//vzaar.com/api/videos/"+i.id+".json",jsonp:"callback",dataType:"jsonp",success:function(t){n=t.framegrab_url,c(n)}})},n.prototype.stop=function(){this._core.trigger("stop",null,"video"),this._playing.find(".owl-video-frame").remove(),this._playing.removeClass("owl-video-playing"),this._playing=null,this._core.leave("playing"),this._core.trigger("stopped",null,"video")},n.prototype.play=function(e){var i,s=t(e.target).closest("."+this._core.settings.itemClass),n=this._videos[s.attr("data-video")],o=n.width||"100%",r=n.height||this._core.$stage.height();this._playing||(this._core.enter("playing"),this._core.trigger("play",null,"video"),s=this._core.items(this._core.relative(s.index())),this._core.reset(s.index()),(i=t(' ')).attr("height",r),i.attr("width",o),"youtube"===n.type?i.attr("src","//www.youtube.com/embed/"+n.id+"?autoplay=1&rel=0&v="+n.id):"vimeo"===n.type?i.attr("src","//player.vimeo.com/video/"+n.id+"?autoplay=1"):"vzaar"===n.type&&i.attr("src","//view.vzaar.com/"+n.id+"/player?autoplay=true"),t(i).wrap(' ').insertAfter(s.find(".owl-video")),this._playing=s.addClass("owl-video-playing"))},n.prototype.isInFullScreen=function(){var e=i.fullscreenElement||i.mozFullScreenElement||i.webkitFullscreenElement;return e&&t(e).parent().hasClass("owl-video-frame")},n.prototype.destroy=function(){var t,e;for(t in this._core.$element.off("click.owl.video"),this._handlers)this._core.$element.off(t,this._handlers[t]);for(e in Object.getOwnPropertyNames(this))"function"!=typeof this[e]&&(this[e]=null)},t.fn.WiserCarouselSlider.Constructor.Plugins.Video=n}(window.Zepto||window.jQuery,window,document),function(t,e,i,s){var n=function(e){this.core=e,this.core.options=t.extend({},n.Defaults,this.core.options),this.swapping=!0,this.previous=void 0,this.next=void 0,this.handlers={"change.owl.carousel":t.proxy(function(t){t.namespace&&"position"==t.property.name&&(this.previous=this.core.current(),this.next=t.property.value)},this),"drag.owl.carousel dragged.owl.carousel translated.owl.carousel":t.proxy(function(t){t.namespace&&(this.swapping="translated"==t.type)},this),"translate.owl.carousel":t.proxy(function(t){t.namespace&&this.swapping&&(this.core.options.animateOut||this.core.options.animateIn)&&this.swap()},this)},this.core.$element.on(this.handlers)};n.Defaults={animateOut:!1,animateIn:!1},n.prototype.swap=function(){if(1===this.core.settings.items&&t.support.animation&&t.support.transition){this.core.speed(0);var e,i=t.proxy(this.clear,this),s=this.core.$stage.children().eq(this.previous),n=this.core.$stage.children().eq(this.next),o=this.core.settings.animateIn,r=this.core.settings.animateOut;this.core.current()!==this.previous&&(r&&(e=this.core.coordinates(this.previous)-this.core.coordinates(this.next),s.one(t.support.animation.end,i).css({left:e+"px"}).addClass("animated owl-animated-out").addClass(r)),o&&n.one(t.support.animation.end,i).addClass("animated owl-animated-in").addClass(o))}},n.prototype.clear=function(e){t(e.target).css({left:""}).removeClass("animated owl-animated-out owl-animated-in").removeClass(this.core.settings.animateIn).removeClass(this.core.settings.animateOut),this.core.onTransitionEnd()},n.prototype.destroy=function(){var t,e;for(t in this.handlers)this.core.$element.off(t,this.handlers[t]);for(e in Object.getOwnPropertyNames(this))"function"!=typeof this[e]&&(this[e]=null)},t.fn.WiserCarouselSlider.Constructor.Plugins.Animate=n}(window.Zepto||window.jQuery,window,document),function(t,e,i,s){var n=function(e){this._core=e,this._call=null,this._time=0,this._timeout=0,this._paused=!0,this._handlers={"changed.owl.carousel":t.proxy(function(t){t.namespace&&"settings"===t.property.name?this._core.settings.autoplay?this.play():this.stop():t.namespace&&"position"===t.property.name&&this._paused&&(this._time=0)},this),"initialized.owl.carousel":t.proxy(function(t){t.namespace&&this._core.settings.autoplay&&this.play()},this),"play.owl.autoplay":t.proxy(function(t,e,i){t.namespace&&this.play(e,i)},this),"stop.owl.autoplay":t.proxy(function(t){t.namespace&&this.stop()},this),"mouseover.owl.autoplay":t.proxy(function(){this._core.settings.autoplayHoverPause&&this._core.is("rotating")&&this.pause()},this),"mouseleave.owl.autoplay":t.proxy(function(){this._core.settings.autoplayHoverPause&&this._core.is("rotating")&&this.play()},this),"touchstart.owl.core":t.proxy(function(){this._core.settings.autoplayHoverPause&&this._core.is("rotating")&&this.pause()},this),"touchend.owl.core":t.proxy(function(){this._core.settings.autoplayHoverPause&&this.play()},this)},this._core.$element.on(this._handlers),this._core.options=t.extend({},n.Defaults,this._core.options)};n.Defaults={autoplay:!1,autoplayTimeout:5e3,autoplayHoverPause:!1,autoplaySpeed:!1},n.prototype._next=function(s){this._call=e.setTimeout(t.proxy(this._next,this,s),this._timeout*(Math.round(this.read()/this._timeout)+1)-this.read()),this._core.is("interacting")||i.hidden||this._core.next(s||this._core.settings.autoplaySpeed)},n.prototype.read=function(){return(new Date).getTime()-this._time},n.prototype.play=function(i,s){var n;this._core.is("rotating")||this._core.enter("rotating"),i=i||this._core.settings.autoplayTimeout,n=Math.min(this._time%(this._timeout||i),i),this._paused?(this._time=this.read(),this._paused=!1):e.clearTimeout(this._call),this._time+=this.read()%i-n,this._timeout=i,this._call=e.setTimeout(t.proxy(this._next,this,s),i-n)},n.prototype.stop=function(){this._core.is("rotating")&&(this._time=0,this._paused=!0,e.clearTimeout(this._call),this._core.leave("rotating"))},n.prototype.pause=function(){this._core.is("rotating")&&!this._paused&&(this._time=this.read(),this._paused=!0,e.clearTimeout(this._call))},n.prototype.destroy=function(){var t,e;for(t in this.stop(),this._handlers)this._core.$element.off(t,this._handlers[t]);for(e in Object.getOwnPropertyNames(this))"function"!=typeof this[e]&&(this[e]=null)},t.fn.WiserCarouselSlider.Constructor.Plugins.autoplay=n}(window.Zepto||window.jQuery,window,document),function(t,e,i,s){"use strict";var n=function(e){this._core=e,this._initialized=!1,this._pages=[],this._controls={},this._templates=[],this.$element=this._core.$element,this._overrides={next:this._core.next,prev:this._core.prev,to:this._core.to},this._handlers={"prepared.owl.carousel":t.proxy(function(e){e.namespace&&this._core.settings.dotsData&&this._templates.push(' '+t(e.content).find("[data-dot]").addBack("[data-dot]").attr("data-dot")+" ")},this),"added.owl.carousel":t.proxy(function(t){t.namespace&&this._core.settings.dotsData&&this._templates.splice(t.position,0,this._templates.pop())},this),"remove.owl.carousel":t.proxy(function(t){t.namespace&&this._core.settings.dotsData&&this._templates.splice(t.position,1)},this),"changed.owl.carousel":t.proxy(function(t){t.namespace&&"position"==t.property.name&&this.draw()},this),"initialized.owl.carousel":t.proxy(function(t){t.namespace&&!this._initialized&&(this._core.trigger("initialize",null,"navigation"),this.initialize(),this.update(),this.draw(),this._initialized=!0,this._core.trigger("initialized",null,"navigation"))},this),"refreshed.owl.carousel":t.proxy(function(t){t.namespace&&this._initialized&&(this._core.trigger("refresh",null,"navigation"),this.update(),this.draw(),this._core.trigger("refreshed",null,"navigation"))},this)},this._core.options=t.extend({},n.Defaults,this._core.options),this.$element.on(this._handlers)};n.Defaults={nav:!1,navText:['‹','›'],navSpeed:!1,navElement:'button type="button" role="presentation"',navContainer:!1,navContainerClass:"owl-nav",navClass:["owl-prev","owl-next"],slideBy:1,dotClass:"owl-dot",dotsClass:"owl-dots",dots:!1,dotsEach:!1,dotsData:!1,dotsSpeed:!1,dotsContainer:!1},n.prototype.initialize=function(){var e,i=this._core.settings;for(e in this._controls.$relative=(i.navContainer?t(i.navContainer):t(" ").addClass(i.navContainerClass).appendTo(this.$element)).addClass("disabled"),this._controls.$previous=t("<"+i.navElement+">").addClass(i.navClass[0]).html(i.navText[0]).prependTo(this._controls.$relative).on("click",t.proxy(function(t){this.prev(i.navSpeed)},this)),this._controls.$next=t("<"+i.navElement+">").addClass(i.navClass[1]).html(i.navText[1]).appendTo(this._controls.$relative).on("click",t.proxy(function(t){this.next(i.navSpeed)},this)),i.dotsData||(this._templates=[t(' ').addClass(i.dotClass).append(t("")).prop("outerHTML")]),this._controls.$absolute=(i.dotsContainer?t(i.dotsContainer):t(" ").addClass(i.dotsClass).appendTo(this.$element)).addClass("disabled"),this._controls.$absolute.on("click","button",t.proxy(function(e){var s=t(e.target).parent().is(this._controls.$absolute)?t(e.target).index():t(e.target).parent().index();e.preventDefault(),this.to(s,i.dotsSpeed)},this)),this._overrides)this._core[e]=t.proxy(this[e],this)},n.prototype.destroy=function(){var t,e,i,s,n;for(t in n=this._core.settings,this._handlers)this.$element.off(t,this._handlers[t]);for(e in this._controls)"$relative"===e&&n.navContainer?this._controls[e].html(""):this._controls[e].remove();for(s in this.overides)this._core[s]=this._overrides[s];for(i in Object.getOwnPropertyNames(this))"function"!=typeof this[i]&&(this[i]=null)},n.prototype.update=function(){var t,e,i=this._core.clones().length/2,s=i+this._core.items().length,n=this._core.maximum(!0),o=this._core.settings,r=o.center||o.autoWidth||o.dotsData?1:o.dotsEach||o.items;if("page"!==o.slideBy&&(o.slideBy=Math.min(o.slideBy,o.items)),o.dots||"page"==o.slideBy)for(this._pages=[],t=i,e=0;t=r||0===e){if(this._pages.push({start:Math.min(n,t-i),end:t-i+r-1}),Math.min(n,t-i)===n)break;e=0}e+=this._core.mergers(this._core.relative(t))}},n.prototype.draw=function(){var e,i=this._core.settings,s=this._core.items().length<=i.items,n=this._core.relative(this._core.current()),o=i.loop||i.rewind;this._controls.$relative.toggleClass("disabled",!i.nav||s),i.nav&&(this._controls.$previous.toggleClass("disabled",!o&&n<=this._core.minimum(!0)),this._controls.$next.toggleClass("disabled",!o&&n>=this._core.maximum(!0))),this._controls.$absolute.toggleClass("disabled",!i.dots||s),i.dots&&(e=this._pages.length-this._controls.$absolute.children().length,i.dotsData&&0!==e?this._controls.$absolute.html(this._templates.join("")):e>0?this._controls.$absolute.append(new Array(e+1).join(this._templates[0])):e<0&&this._controls.$absolute.children().slice(e).remove(),this._controls.$absolute.find(".active").removeClass("active"),this._controls.$absolute.children().eq(t.inArray(this.current(),this._pages)).addClass("active"))},n.prototype.onTrigger=function(e){var i=this._core.settings;e.page={index:t.inArray(this.current(),this._pages),count:this._pages.length,size:i&&(i.center||i.autoWidth||i.dotsData?1:i.dotsEach||i.items)}},n.prototype.current=function(){var e=this._core.relative(this._core.current());return t.grep(this._pages,t.proxy(function(t,i){return t.start<=e&&t.end>=e},this)).pop()},n.prototype.getPosition=function(e){var i,s,n=this._core.settings;return"page"==n.slideBy?(i=t.inArray(this.current(),this._pages),s=this._pages.length,e?++i:--i,i=this._pages[(i%s+s)%s].start):(i=this._core.relative(this._core.current()),s=this._core.items().length,e?i+=n.slideBy:i-=n.slideBy),i},n.prototype.next=function(e){t.proxy(this._overrides.to,this._core)(this.getPosition(!0),e)},n.prototype.prev=function(e){t.proxy(this._overrides.to,this._core)(this.getPosition(!1),e)},n.prototype.to=function(e,i,s){var n;!s&&this._pages.length?(n=this._pages.length,t.proxy(this._overrides.to,this._core)(this._pages[(e%n+n)%n].start,i)):t.proxy(this._overrides.to,this._core)(e,i)},t.fn.WiserCarouselSlider.Constructor.Plugins.Navigation=n}(window.Zepto||window.jQuery,window,document),function(t,e,i,s){"use strict";var n=function(i){this._core=i,this._hashes={},this.$element=this._core.$element,this._handlers={"initialized.owl.carousel":t.proxy(function(i){i.namespace&&"URLHash"===this._core.settings.startPosition&&t(e).trigger("hashchange.owl.navigation")},this),"prepared.owl.carousel":t.proxy(function(e){if(e.namespace){var i=t(e.content).find("[data-hash]").addBack("[data-hash]").attr("data-hash");if(!i)return;this._hashes[i]=e.content}},this),"changed.owl.carousel":t.proxy(function(i){if(i.namespace&&"position"===i.property.name){var s=this._core.items(this._core.relative(this._core.current())),n=t.map(this._hashes,function(t,e){return t===s?e:null}).join();if(!n||e.location.hash.slice(1)===n)return;e.location.hash=n}},this)},this._core.options=t.extend({},n.Defaults,this._core.options),this.$element.on(this._handlers),t(e).on("hashchange.owl.navigation",t.proxy(function(t){var i=e.location.hash.substring(1),s=this._core.$stage.children(),n=this._hashes[i]&&s.index(this._hashes[i]);void 0!==n&&n!==this._core.current()&&this._core.to(this._core.relative(n),!1,!0)},this))};n.Defaults={URLhashListener:!1},n.prototype.destroy=function(){var i,s;for(i in t(e).off("hashchange.owl.navigation"),this._handlers)this._core.$element.off(i,this._handlers[i]);for(s in Object.getOwnPropertyNames(this))"function"!=typeof this[s]&&(this[s]=null)},t.fn.WiserCarouselSlider.Constructor.Plugins.Hash=n}(window.Zepto||window.jQuery,window,document),function(t,e,i,s){var n=t("").get(0).style,o="Webkit Moz O ms".split(" "),r={transition:{end:{WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd",transition:"transitionend"}},animation:{end:{WebkitAnimation:"webkitAnimationEnd",MozAnimation:"animationend",OAnimation:"oAnimationEnd",animation:"animationend"}}};function a(e,i){var r=!1,a=e.charAt(0).toUpperCase()+e.slice(1);return t.each((e+" "+o.join(a+" ")+a).split(" "),function(t,e){if(n[e]!==s)return r=!i||e,!1}),r}function h(t){return a(t,!0)}!!a("transition")&&(t.support.transition=new String(h("transition")),t.support.transition.end=r.transition.end[t.support.transition]),!!a("animation")&&(t.support.animation=new String(h("animation")),t.support.animation.end=r.animation.end[t.support.animation]),a("transform")&&(t.support.transform=new String(h("transform")),t.support.transform3d=!!a("perspective"))}(window.Zepto||window.jQuery,window,document); 0 {{productTitle}} {{variant_compare_at_price}} {{variant_price}} × {{optionVariantData}} {{SelectButton}} {{AddToCartButton}} {{variantTitle}} {{variant_compare_at_price}} {{variant_price}} {{AddToCartButton}} {{giftTitle}} {{popupTitle}} You get 1 free item with every product purchased. It looks like you can still add more free item(s) to your cart. What would you like to do? ADD MORE CHECKOUT Skip to content Close menu Men New Arrivals Authentic Fall '22 Authentic Classic Sport Ski Retro Sport Tops Hoodies T-Shirts Track Jackets Sweatshirts Jackets Bottoms Trackpants Sweatpants Shorts 2-Piece Sets Track Suits Sweatsuits Last Chance Sale Women New Arrivals Authentic Fall '22 Tops Track Jackets Hoodies T-Shirts Jackets Bodysuits Tanks & Bras Bottoms Leggings Trackpants Sweatpants Shorts Dresses & Skirts 2-Piece Sets Track Suits Sweatsuits Sport Ski Last Chance Sale Kids New Arrivals Collections Fall '22 Tops Hoodies T-Shirts Track Jackets Sweat Shirts Bottoms Track Pants Sweatpants Shorts 2-Piece Sets Track Suits Sweatsuits Infants Infant & Kids Footwear Last Chance Sale Accessories Socks Headwear Bags Footwear Sneakers Sandals Slides Mules Last Chance Sale Brand Campaigns Kappa SS '22 Footwear Lookbook Kappa Race Lookbook Kappa Race 2 Lookbook Authentic SS '22 Lookbook Kappa Heritage Log in Facebook Instagram Cart Close cart Facebook Instagram Men New Arrivals Authentic Fall '22 Authentic Classic Sport Ski Retro Sport Tops Hoodies T-Shirts Track Jackets Sweatshirts Jackets Bottoms Trackpants Sweatpants Shorts 2-Piece Sets Track Suits Sweatsuits Last Chance Sale Women New Arrivals Authentic Fall '22 Tops Track Jackets Hoodies T-Shirts Jackets Bodysuits Tanks & Bras Bottoms Leggings Trackpants Sweatpants Shorts Dresses & Skirts 2-Piece Sets Track Suits Sweatsuits Sport Ski Last Chance Sale Kids New Arrivals Collections Fall '22 Tops Hoodies T-Shirts Track Jackets Sweat Shirts Bottoms Track Pants Sweatpants Shorts 2-Piece Sets Track Suits Sweatsuits Infants Infant & Kids Footwear Last Chance Sale Accessories Socks Headwear Bags Footwear Sneakers Sandals Slides Mules Last Chance Sale Brand Campaigns Kappa SS '22 Footwear Lookbook Kappa Race Lookbook Kappa Race 2 Lookbook Authentic SS '22 Lookbook Kappa Heritage Log in Search Site navigation Cart Search "Close (esc)" FREE SHIPPING ON ORDERS OVER $100 Filter Close menu color-navy-lavender Filter By Filter Size L(10-13) clear Color Navy Lavender clear Filter (1) 0 products Sort Sort Featured Best selling Alphabetically, A-Z Alphabetically, Z-A Price, low to high Price, high to low Date, old to new Date, new to old Sorry, there are no products in this collection. Discover Discover Home Search Kappa Omini Club Download Our App & Subscribe Gift Cards Heritage Campaigns Affiliate Program Help Help FAQ Size Chart Shipping Info Returns & Exchanges Accessibility Contact Us Wholesale Inquiry Terms Of Use Privacy Policy Download The App Amazon American Express Apple Pay Diners Club Discover Google Pay Mastercard PayPal Shop Pay Venmo Visa © 2022 Kappa USA Powered by Shopify {{{name}}} {{#if variation}} {{variation}} {{/if}} {{#properties}} {{#each this}} {{#if this}} {{@key}}: {{this}} {{/if}} {{/each}} {{/properties}} Quantity − + {{#if discountsApplied}} {{{price}}} {{{discountedPrice}}} {{else}} {{{price}}} {{/if}} {{#if discountsApplied}} {{#each discounts}} {{this.discount_application.title}} (-{{{this.formattedAmount}}}) {{/each}} {{/if}} {{/items}} {{#if cartDiscounts }} Discounts {{#each cartDiscounts}} {{this.title}} (-{{{this.formattedAmount}}}) {{/each}} {{/if}} Subtotal {{{totalPrice}}} Shipping, taxes, and discounts codes calculated at checkout. Check out "Close (esc)" ' + t.discount_item_html); document.querySelectorAll("#appikon-remove-discount-code").forEach(item => { item.addEventListener('click', event => { deleteCookie("appikon_discount_" + window.appikonDiscount.settings.shop); delete window.appikon.discount_code; triggerDiscountCalculation(); }) }); } else { $(".appikon-discounts-wrapper").show(); } } $(".wholesale-cart-total span").css("text-decoration", "none"); reloadCurrency(); } function showAppikonNotificatioBar(notificationMessage, selector, placement) { if(notificationMessage && notificationMessage.trim()) { var notificationBarElement = " X " + notificationMessage.trim() + " " // Remove old notification $('#appikon-notification-bar').remove() if(selector) { var selectorElement = $(selector).first(); if(selectorElement.length){ "before" == placement.toLowerCase() ? selectorElement.before(notificationBarElement) : selectorElement.after(notificationBarElement) } } else { window.appikonDiscount.settings.global.headerSelector.split(",").forEach(function (t) { t = $.trim(t) "#shopify-section-header" == t ? $(t).after(notificationBarElement) : "main" == t ? $(t).prepend(notificationBarElement) : $(t).before(notificationBarElement) }) } $("#appikon-notification-bar").length > 0 && $("#appikon-notification-bar").show() } } function showAppikonNotification(notificationMessage) { // Show product page Notification if(isAppikonProductPage && window.appikonDiscount.settings.show_product_notification_bar) { showAppikonNotificatioBar(notificationMessage, window.appikonDiscount.settings.notification_placement_settings.final_selector, window.appikonDiscount.settings.notification_placement_settings.placement) } if(isAppikonCartPage && window.appikonDiscount.settings.show_cart_notification_bar) { showAppikonNotificatioBar(notificationMessage, window.appikonDiscount.settings.notification_cart_placement_settings.final_selector, window.appikonDiscount.settings.notification_cart_placement_settings.placement) } } function DiscountedPricingCheckout(t) { var termsSelector = "input[type='checkbox']"; if (window.appikonDiscount.settings.terms_selector) { termsSelector += window.appikonDiscount.settings.terms_selector; } else { termsSelector += "#agree"; } if (!(1 != window.appikonDiscount.settings.turn_off_agree_checkbox && $(termsSelector).length > 0 && $(termsSelector + ":checked").length != $(termsSelector).length)) { $(t.target).prop("disabled", "disabled"); window.appikon.action_type = "checkout"; var i = [], a = []; $("[name^='attributes']").each(function () { var t = $(this), e = $(this).attr("name"), n = { name: e = e.replace(/^attributes\[/i, "").replace(/\]$/i, ""), value: t.val() }; if ("" != n.value) switch (t[0].tagName.toLowerCase()) { case "input": "checkbox" == t.attr("type") ? t.is(":checked") && a.push(n) : a.push(n); break; default: a.push(n) } }); var r = ""; if (window.Shopify.locale) { i.push("locale=" + window.Shopify.locale); } $("[name='note']").length && (r = $("[name='note']")[0].value), window.appikon.cart.note_attributes = a, window.appikon.cart.note = r, r.length && i.push("note=" + encodeURIComponent(r)), a.length && a.map(function (t) { i.push("attributes" + encodeURIComponent("[" + t.name + "]") + "=" + encodeURIComponent(t.value)) }), $.ajax({ cache: !1, contentType: "application/json; charset=utf-8", dataType: "json", type: "POST", url: window.appikonDiscount.settings.app_root_url, data: JSON.stringify(window.appikon), success: function (t) { t.invoice_url ? (i.length && (t.invoice_url += "?" + i.join("&")), setTimeout(function () { window.location.href = t.invoice_url }, 500) ) : ( t.invoice_url = "/checkout", t.discount_code && (setCookie("adp-pr-id", t.pr_id, 14), i.push("discount=" + t.discount_code)), i.length && (t.invoice_url += "?" + i.join("&")), window.location.href = t.invoice_url ) }, error: function () { window.location.href = "/checkout" } }) } } function notifyCalculationsInProgress() { return hasFlag("notify_about_disocunt_calculations") && (hasFlag("disable_checkout_button") ? (checkoutBtn.attr("disabled", !0).val("Please wait").text("Please wait").css("border-color", originalBorder).css("background-color", originalBackground), setTimeout(enableCheckoutButton, 4e3)) : isAppikonCartPage && showAppikonNotification(window.appikonDiscount.settings.calculation_note, {})), !0 } function hideCalculationsInProgressNote() { return hasFlag("notify_about_disocunt_calculations") && (hasFlag("disable_checkout_button") ? enableCheckoutButton() : $("#appikon-notification-bar").text() == window.appikonDiscount.settings.calculation_note + "X" && $("#appikon-notification-bar").fadeOut("slow")), !0 } function getRefreshDelayValue() { var t = ""; return t = isMobileBrowser() ? window.appikonDiscount.settings.buyx.delay_mobile_refresh_cart : window.appikonDiscount.settings.buyx.delay_refresh_cart, 1e3 * parseFloat(t) } function disableCheckoutButtons() { var checkoutSelectors = getCheckoutSelectors(); $.each(checkoutSelectors, function(index, selector){ $(selector).prop('disabled', true); }); } function enableCheckoutButtons() { var checkoutSelectors = getCheckoutSelectors(); $.each(checkoutSelectors, function(index, selector){ $(selector).prop('disabled', false); }); } function checkForTestOffer() { window.appikon.test_offer_token = getCookie('shopacado-test-offer-token'); window.appikon.test_offer_name = getCookie('shopacado-test-offer-name'); console.log("testing offer: " + getCookie('shopacado-test-offer-name')); if (window.appikon.test_offer_token && window.appikon.test_offer_token != "") { showTestOfferNotice(); } } function showTestOfferNotice() { var noticeHtml = ` Testing Offer: ` + window.appikon.test_offer_name + ` Stop Testing `; $("#shopacado-banner").remove(); $("body").prepend(noticeHtml); $("body").addClass("push-down"); $("#shopacado-stop-test-offer").click( function () { removeTestOfferNotice(); }); } function removeTestOfferNotice() { $("#shopacado-banner").remove(); $("body").removeClass("push-down"); deleteCookie("shopacado-test-offer-token"); deleteCookie("shopacado-test-offer-name"); delete window.appikon.test_offer_token; delete window.appikon.test_offer_name; } function calculateAppikonDiscount() { disableCheckoutButtons(); var xhrAppikonDiscountRequest = $.ajax({ cache: !1, type: "POST", url: window.appikonDiscount.settings.app_root_url, data: JSON.stringify(window.appikon), dataType: "json", contentType: "application/json; charset=utf-8" }).done(function(data) { window.appikonResponseStore.discountResponse = data; fillCartData(true); enableCheckoutButtons(); }).fail(function(jqXHR, status, error) { console.error("calculateAppikonDiscount", error, jqXHR.responseText) enableCheckoutButtons(); }) } function prepareAppikonDiscountRequestData(appikonDrawerCart) { window.appikon.cart = appikonDrawerCart; window.appikon.adp_page = 'cart'; window.appikon.discounts = {}; window.appikon.cart_product_ids = []; appikonDrawerCart.items.forEach(function(item){ var appikon_item = item; ["product_title", "total_discount", "discounts", "grams", "vendor", "taxable", "gift_card", "url", "image", "featured_image", "requires_shipping", "product_type", "product_description", "variant_title", "variant_options"].map(function(k) { delete appikon_item[k] }); window.appikon.cart_product_ids.push(appikon_item.product_id); }); if(window.appikon.cart.items.length > 0) { // Get Product Metadata var xhrAppiconCartViewJSONRequet = $.ajax({ cache: !1, type: "GET", url: "/cart?view=appikon.json", dataType: "text", beforeSend: function(xhr){xhr.setRequestHeader('x-requested-with', '');} }).done(function(data) { var cartMetadataResponse = JSON.parse(data) window.appikon.cart_collection_ids = []; window.appikon.cart.items.forEach(function(item){ cartMetadataResponse.items.forEach(function(cartMetadataItem){ if(cartMetadataItem.id == item.id) { item["collection_ids"] = cartMetadataItem.collectionIds; } }); window.appikon.cart_collection_ids.push(item.collection_ids); }); calculateAppikonDiscount(); }).fail(function(jqXHR, status, error) { console.error("prepareAppikonDiscountRequestData", error, jqXHR.responseText) }) } } function isCartChange(newCart) { var isCartChange = false; var oldCart = window.appikonResponseStore.cartJS; var cartPropertiesToCompare = ["original_total_price", "total_discount", "total_weight", "item_count", "items_subtotal_price"]; $.each(cartPropertiesToCompare, function (i, prop) { if (oldCart[prop] !== newCart[prop]) { isCartChange = true; return false; // break the loop } }); if(!isCartChange && oldCart.items.length !== newCart.items.length) { isCartChange = true; } if(!isCartChange) { $.each(oldCart.items, function(i, oldItem){ var newItem = newCart.items[i]; if(oldItem.id !== newItem.id || oldItem.quantity !== newItem.quantity) { isCartChange = true; return false; // break the loop } }) } return isCartChange; } function triggerDiscountCalculation() { if (window.appikonResponseStore.cartJS) { prepareAppikonDiscountRequestData(window.appikonResponseStore.cartJS); } else { getAppikonDiscontData(); } } function processCartData(ajaxCartData) { if (isCartChange(ajaxCartData)) { window.appikonResponseStore.cartJS = ajaxCartData; prepareAppikonDiscountRequestData(ajaxCartData) } else { fillCartData(); } } async function addCompareAtPrice(cart) { var totalCompareAtPrice = 0; await Promise.all(cart.items.map(async (item) => { $.ajax({ url: '/products/' + item.handle + '.js', dataType: 'json', async: false, success: function(product){ for (const variant of product.variants) { item["compare_at_price"] = item["price"]; if (variant.id == item.variant_id && variant.compare_at_price != null) { item["compare_at_price"] = variant.compare_at_price; break; } }; const compareAtLinePrice = item["compare_at_price"] * item["quantity"]; totalCompareAtPrice += compareAtLinePrice; item["compare_at_line_price"] = compareAtLinePrice; } }); })); cart.compare_at_total_price = totalCompareAtPrice; return cart; } function getAppikonDiscontData() { if (window.appikonDiscount.settings.use_compare_at_price === true){ var xhrAppiconCartRequet = $.ajax({ cache: !1, type: "GET", url: "/cart.js", dataType : "json" }).done(async function(ajaxCartData) { let cartWithCompareAt = await addCompareAtPrice(ajaxCartData); processCartData(cartWithCompareAt); }).fail(function(jqXHR, status, error) { console.error("getAppikonDiscontData", error, jqXHR.responseText) }) }else{ var xhrAppiconCartRequet = $.ajax({ cache: !1, type: "GET", url: "/cart.js", dataType : "json" }).done(function(ajaxCartData) { processCartData(ajaxCartData); }).fail(function(jqXHR, status, error) { console.error("getAppikonDiscontData", error, jqXHR.responseText) }) } } window.appikon.calculateDiscounts = getAppikonDiscontData; function insertCartTitleSnippet(productTitleSelector) { var isInserted = false; if (!productTitleSelector) { return isInserted; } var selectors = productTitleSelector.split(","); $.each(selectors, function(index, selector) { var elems = $(selector); if (elems.length) { var cart = window.appikon.cart; elems.each(function (index) { if (index < cart.items.length && $(this).find(".appikon-cart-item-success-notes").length === 0) { $(this).html($(this).html() + ""); isInserted = true; } }); } }) return isInserted; } function insertCartLinePriceSnippet(cartLinePriceSelector) { var isInserted = false; if (!cartLinePriceSelector) { return isInserted; } var selectors = cartLinePriceSelector.split(","); $.each(selectors, function(index, selector) { var elems = $(selector); if (elems.length) { var cart = window.appikon.cart; elems.each(function (index) { if (index < cart.items.length && $(this).find(".appikon-cart-item-line-price").length == 0) { $(this).html("" + $(this).html() + ""); isInserted = true; } }); } }) return isInserted; } function insertCartUnitPriceSnippet(cartUnitPriceSelector) { var isInserted = false; if (!cartUnitPriceSelector) { return isInserted; } var selectors = cartUnitPriceSelector.split(","); $.each(selectors, function(index, selector) { var elems = $(selector); if (elems.length) { var cart = window.appikon.cart; elems.each(function (index) { if (index < cart.items.length && $(this).find(".appikon-cart-item-unit-price").length == 0) { $(this).html("" + $(this).html() + ""); } }); } }) return isInserted; } function insertCartSubTotalSnippet(cartSubTotalSelector) { var isInserted = false; if (cartSubTotalSelector) { var selectors = cartSubTotalSelector.split(","); $.each(selectors, function(index, selector) { var elem = $(selector).eq(0); if(elem && elem.length && elem.find(".wholesale-original-cart-total").length == 0) { elem.html("" + "" + elem.html() + "" + "" + "" + " " + "" + "" + " "); isInserted = true; } }) } return isInserted; } function insertCartSnippets(cartType) { var productTitleInserted = null; var linePriceInserted = null; var subtotalInserted = null; var unitPriceInserted = null; if (cartType === 'DRAWER') { productTitleInserted = insertCartTitleSnippet(window.appikonDiscount.settings.drawer_cart_product_title_selector); linePriceInserted = insertCartLinePriceSnippet(window.appikonDiscount.settings.drawer_cart_line_price_selector); unitPriceInserted = insertCartUnitPriceSnippet(window.appikonDiscount.settings.drawer_cart_unit_price_selector); subtotalInserted = insertCartSubTotalSnippet(window.appikonDiscount.settings.drawer_cart_sub_total_selector); } else if (cartType === 'REGULAR') { productTitleInserted = insertCartTitleSnippet(window.appikonDiscount.settings.regular_cart_product_title_selector); linePriceInserted = insertCartLinePriceSnippet(window.appikonDiscount.settings.regular_cart_line_price_selector); unitPriceInserted = insertCartUnitPriceSnippet(window.appikonDiscount.settings.regular_cart_unit_price_selector); subtotalInserted = insertCartSubTotalSnippet(window.appikonDiscount.settings.regular_cart_sub_total_selector); } return productTitleInserted || linePriceInserted || subtotalInserted || unitPriceInserted; } function fillCartData(forceFill) { setTimeout(function() { if(window.appikonResponseStore.discountResponse) { var drawerCartSnippets = insertCartSnippets("DRAWER"); var regularCartSnippets = false; if (window.appikonDiscount.settings.is_dynamic_insertion) { regularCartSnippets = insertCartSnippets("REGULAR"); } if(drawerCartSnippets || regularCartSnippets || forceFill == true) { appikonDelegate(window.appikonResponseStore.discountResponse); } } }, 400); } function refreshAppikonData() { getAppikonDiscontData(); } function handleCartRequests(url) { var isCartRequestProcessed = true; if ((url.includes('/cart.js') || url.includes('/cart.json') || url.includes('/cart/add.js') || url.includes('/cart/update.js') || (window.appikonDiscount.settings.is_dynamic_insertion && url.includes('/cart/change')) || url.includes('/cart/clear.js') || url.endsWith('/cart') || url.includes('/cart?')) && !url.includes('/cart?view=appikon.json')) { if (url.includes('/cart/add.js') || url.endsWith('/cart') || url.includes('/cart?') ) { $.ajax({ cache: !1, type: "GET", url: "/cart.js", dataType: "json" }).done(function (ajaxCartData) { //processCartData(ajaxCartData); }).fail(function (jqXHR, status, error) { console.error(error) }) } else { isCartRequestProcessed = false; } } return isCartRequestProcessed; } $(document).ready(function () { if(window.appikonDiscount.settings.dp.installed) { refreshAppikonData(); if (window.appikonDiscount.settings.listen_to_ajax_cart_events_strategy) { // Intercept AJAX requests var origOpen = window.XMLHttpRequest.prototype.open; window.XMLHttpRequest.prototype.open = function() { this.addEventListener('load', async function() { var url = this.responseURL; if(!handleCartRequests(url)) { var ajaxCartData = JSON.parse(this.responseText); if (window.appikonDiscount.settings.use_compare_at_price === true) { var cartWithCompareAt = await addCompareAtPrice(ajaxCartData); processCartData(cartWithCompareAt); } else { processCartData(ajaxCartData); } } }); origOpen.apply(this, arguments); }; // Intercept fetch requests const originalFetch = window.fetch; window.fetch = function() { return new Promise((resolve, reject) => { originalFetch.apply(this, arguments) .then((response) => { var url = response.url; if(!handleCartRequests(url)) { $.ajax({ cache: !1, type: "GET", url: "/cart.js", dataType: "json" }) // response.clone().json().then(ajaxCartData => { // processCartData(ajaxCartData); //}); } resolve(response); }) .catch((error) => { reject(response); }) }); } } else { var appikonCallRepeater = setInterval(refreshAppikonData,1000); } } }); var appikonCookieCode = getCookie("appikon_discount_" + window.appikonDiscount.settings.shop); appikonCookieCode && (window.appikon.discount_code = appikonCookieCode); if (hasFlag("disable_checkout_button")) { var checkoutBtn = $(window.appikonDiscount.settings.global.appikonCheckoutSelector); var originalCheckoutContent = checkoutBtn.val() || checkoutBtn.html(); var originalBorder = checkoutBtn.css("border-color"); var originalBackground = checkoutBtn.css("background-color"); var enableCheckoutButton = function () { checkoutBtn.html(originalCheckoutContent).val(originalCheckoutContent).removeAttr("disabled").removeAttr("border-color").removeAttr("background-color") }; } if (isAppikonCartPage) { var skipIds = getCookie("adp-skip-ids"); skipIds && (window.appikon.skip_ids = skipIds) } window.appikon.multicurrency = {}; if (window.Shopify && window.Shopify.currency) { window.appikon.multicurrency.currency = window.Shopify.currency.active; window.appikon.multicurrency.rate = window.Shopify.currency.rate; } if (window.theme && window.theme.moneyFormat) { window.appikon.multicurrency.moneyFormat = window.theme.moneyFormat; } else if (window.theme && window.theme.strings && window.theme.strings.moneyFormat) { window.appikon.multicurrency.moneyFormat = window.theme.strings.moneyFormat; } else if (window.Theme && window.Theme.strings && window.Theme.strings.moneyFormat) { window.appikon.multicurrency.moneyFormat = window.Theme.strings.moneyFormat; } else if (window.Theme && window.Theme.moneyFormat) { window.appikon.multicurrency.moneyFormat = window.Theme.moneyFormat; } else if (window.mwSwitcherObjects && window.mwSwitcherObjects.shop.money_format){ window.appikon.multicurrency.moneyFormat = window.mwSwitcherObjects.shop.money_format; } window.appikon.adp_page.length && window.appikonDiscount.settings.dp.installed > 0 && ($.ajax({ cache: !1, type: "POST", url: window.appikonDiscount.settings.app_root_url, data: JSON.stringify(window.appikon), dataType: "json", contentType: "application/json; charset=utf-8", success: function (t) { appikonDelegate(t); } })), setTimeout(function () { "function" == typeof ga && ga(function (t) { window.gaclientId = t.get("clientId") }) }, 1e3), hasFlag("refresh_on_qty_plush_minus") && ($(document).on("click", window.appikonDiscount.settings.plus_minus_qty_selector, function () { var t = this; isAppikonCartPage && setTimeout(function () { $(t).parents('form[action*="/cart"]').submit() }, 500) }), hasFlag("refresh_on_qty_change_hard") && (window.appikon.cartSubmit = function () { isAppikonCartPage && setTimeout(function () { $('form[action*="/cart"]').submit() }, 500) }, $(document).ready(function () { setTimeout(function () { var t, e = document.querySelectorAll(window.appikonDiscount.settings.plus_minus_qty_selector); for (t = 0; t < e.length; t++) e[t].setAttribute("onclick", "window.appikon.cartSubmit();") }, 1200) }))); var debutEditBtnExists = $("div.cart__edit button.btn.cart__edit--active:visible").length > 0, qtyInputEvent = debutEditBtnExists ? "" : "input "; if (isAppikonCartPage && $(document).on(qtyInputEvent + "change", "input.appikon-quantity, input[name^='updates['], input[id^='updates_'], input[id^='Updates_']", function (t) { var e = this; t.preventDefault(), "" != $.trim($(this).val()) && (setTimeout(function () { hasFlag("quantities_refresh_over_submit") ? window.location.reload() : $(e).parents('form[action*="/cart"]').submit() }, getRefreshDelayValue())) }), isAppikonCartPage && ($(document).on("click", "td.cart-qty span.icon-plus, td.cart-qty span.icon-minus", function (t) { t.preventDefault(), $(this).parents('form[action*="/cart"]').submit() }), !window.appikonDiscount.settings.is_dynamic_insertion && $(document).ajaxSuccess(function (t, e, n) { n && "/cart/change.js" == n.url && window.location.reload() }), 1 != hasFlag("avoid_default_qty_input_event_change") && (setTimeout(function () { $(".js-qty__adjust").off("click") }, 500), $(document).on("click", "div.js-qty .js-qty__adjust", function (t) { if(!window.appikonDiscount.settings.avoid_cart_quantity_adjustment) { t.preventDefault(); var e = parseInt($(this).parents("div.js-qty").find("input").val()); if ($(this).hasClass("js-qty__adjust--plus")) var n = e + 1; else n = e - 1; $(this).parents("div.js-qty").find("input").val(n).change() } else { $(this).parents("div.js-qty").find("input").change() } }))), $(document).on("click", "button#apply-appikon-discount", function (t) { t.preventDefault(); var discount_code_entered = $("input[id=appikon-discount-code]:visible").val().trim(); setCookieMinutes("appikon_discount_" + window.appikonDiscount.settings.shop, discount_code_entered, 5); window.appikon.discount_code = discount_code_entered; triggerDiscountCalculation(); }), $(document).on("click", "div#appikon-close-notification", function (t) { t.preventDefault(), setCookie("appikon_notifications_closed", 1, .01), $("#appikon-notification-bar").slideUp("slow") }), $(document).on("click", ".appikon-variants-container select.adp-variants", function () { $(this).children("option").length < 1 && alert("All item variants are out of stock") }), hasFlag("use_google_fonts")) { function insertGoogleFontStyle(t) { var e = document.head, n = document.createElement("link"); n.id = "adp_google_fonts_link", n.type = "text/css", n.rel = "stylesheet", n.href = "https://fonts.googleapis.com/css?family=" + t.join(","), e.appendChild(n) } }; }); }(window, document);