var loadScript=function(t,e){var i=document.createElement("script");i.type="text/javascript",i.readyState?i.onreadystatechange=function(){"loaded"!=i.readyState&&"complete"!=i.readyState||(i.onreadystatechange=null,e())}:i.onload=function(){e()},i.src=t,document.getElementsByTagName("head")[0].appendChild(i)},myFrontendJavascriptQB=function(t){function e(e){function i(o){o<e.length?t.ajax({url:e[o],dataType:"script",cache:!1,success:function(){i(o+1)}}):n.resolve()}var n=t.Deferred();return i(0),n}console.log("from source file init");var i=["//cdnjs.cloudflare.com/ajax/libs/spin.js/2.3.2/spin.min.js"];"undefined"==typeof Currency&&i.push("//cdn.shopify.com/s/javascripts/currencies.js");var e=e(i).done(function(){function e(){if("undefined"!=typeof Weglot)return Weglot.getCurrentLang()}function i(t){return"liftket.myshopify.com"!==h()&&"zito-cover-cases.myshopify.com"!==h()&&"xyz-edsil.myshopify.com"!==h()||(t=t.concat("?locale=").concat(e())),t}function n(t){for(var e=document.cookie.split(";"),i=0;i<e.length;i++){var n=e[i].split("=");if(t==n[0].trim())return decodeURIComponent(n[1])}return null}function o(){return n("cart")}function a(t){var e=window.qb.enabled_multi_currencies.current_shop_currency,i=window.qb.enabled_multi_currencies.currencies_count,n=t.currency;return i>1&&e!=n}function s(t){var e=window.qb.shop.currency,i=window.qb.enabled_multi_currencies.current_shop_currency;return e==i?1*t:Currency.convert(t,e,i)}function c(){var e=window.location.hostname;return new Promise(function(i){t.get("https://"+e+"/cart/update?currency="+window.Shopify.currency.active,function(t){i(t)}).fail(function(t){console.log(t)})})}function r(){setInterval(function(){var t=document.querySelectorAll(".additional-checkout-buttons, .dynamic-checkout__content");t.length>0&&(t[0].style.visibility="hidden")},1e3)}function u(t,e){var i=null,n=null;if("rountine.myshopify.com"!=t.shopify_domain&&"animalshop111.myshopify.com"!=t.shopify_domain&&"animal112.myshopify.com"!=t.shopify_domain&&"animal111.myshopify.com"!=t.shopify_domain)return window.qb.convertedCurrency.converted_amount=1,new Promise(function(o){(n=d(t,e)).then(function(n){200==n.status&&(et()?e.updateCart(function(){it(),(i=O()).length>0&&new H(e,i,t).applyDiscounts(),o([])}):o([]))}),n["catch"](function(){et()&&e.updateCart(function(){it(),(i=O()).length>0&&new H(e,i,t).applyDiscounts(),o([])})})})}function d(t){if("rountine.myshopify.com"!=t.shopify_domain&&"animalshop111.myshopify.com"!=t.shopify_domain&&"animal112.myshopify.com"!=t.shopify_domain&&"animal111.myshopify.com"!=t.shopify_domain){var e=window.location.hostname,i="https://{{shop_hostname}}/cart.js".replace("{{shop_hostname}}",e);return fetch(i)}}async function l(t){if("rountine.myshopify.com"==t.shopify_domain||"animalshop111.myshopify.com"==t.shopify_domain||"animal112.myshopify.com"==t.shopify_domain||"animal111.myshopify.com"==t.shopify_domain)return;var e=window.location.hostname,i="https://{{shop_hostname}}/cart/update.js".replace("{{shop_hostname}}",e);return(await fetch(i)).json()}function p(){return window.qb.enabled_multi_currencies.currency_format}function _(t){t.currency,window.qb.enabled_multi_currencies.current_shop_currency;return new Promise(function(e){a(t)&&t.enabled_multi_currencies,e([])})}function m(t,e){try{var i=null,n=null;(n=d(t,e)).then(function(n){200==n.status&&et()&&e.updateCart(function(){it(),(i=O()).length>0&&new H(e,i,t).applyDiscounts();var n=new K(e);L()&&(window.qb.datastore.shop.enabled_discount_codes?e.getAppliedDiscountCode(function(){n.updatePage(!1)}):n.updatePage(!1)),t.ajax_cart_integration_enabled&&n.updatePage(!0)})}),n["catch"](function(){et()&&e.updateCart(function(){it(),(i=O()).length>0&&new H(e,i,t).applyDiscounts();var n=new K(e);L()&&(window.qb.datastore.shop.enabled_discount_codes?e.getAppliedDiscountCode(function(){n.updatePage(!1)}):n.updatePage(!1)),t.ajax_cart_integration_enabled&&n.initializeAjaxCartObserver(t)})})}catch(o){console.log(o)}}function h(){for(var t=document.getElementsByTagName("script"),e="",i="",n=0;n<t.length;n++)if((e=t[n].getAttribute("src"))&&(e=e.match(/^(.*)widget\/javascript(\?\s*(.+))?\s*/))){i=e[3].match(/shop=(.+).myshopify.com/)[1];break}return".myshopify.com"===(i+=".myshopify.com")&&ot(window.Shopify)&&ot(window.Shopify.shop)&&(i=window.Shopify.shop),".myshopify.com"===i&&console.log("QB: unable to get shop domain"),i}function f(){return window.qb&&window.qb.serverAddress?window.qb.serverAddress:"abc-edsil.myshopify.com"===h()||"xyz-edsil.myshopify.com"===h()||"wnteststore5.myshopify.com"===h()||"crazy-apps-house.myshopify.com"===h()||"preorder-tagging.myshopify.com"===h()||"wholesale-staging-store.myshopify.com"===h()||"qb-edsil-local.myshopify.com"===h()||"crn-edsil-stag.myshopify.com"===h()?"https://wod2.ngrok.io":"wod-dan-test.myshopify.com"===h()||"wod-qa-staging.myshopify.com"===h()||"vlad-wod.myshopify.com"===h()?"https://quantity-breaks-now-staging.herokuapp.com":"https://quantity-breaks-now.herokuapp.com"}function b(e){var i=location.search.match(/variant=([0-9]+)/);return null!=i?i[1]:"gdt-implant.myshopify.com"==e.shopify_domain?t(qb.shop.form_selector).find(".ced-qty-input").attr("data-variant-id"):"radio"==t(e.form_selector).find('select[name="id"], input[name="id"]').attr("type")?t(e.form_selector).find('input[name="id"]:checked').val():t(e.form_selector).find('select[name="id"], input[name="id"], select[name="id[]"]').val()}function y(){return"undefined"!=typeof window.qb&&"undefined"!=typeof window.qb.datastore}function g(t){window.qb.datastore={},window.qb.datastore.shop=t.shop,window.qb.datastore.discount_groups=t.discount_groups,window.qb.datastore.net_order_tags=t.net_order_tags}function w(){t.ajax({cache:!1,type:"GET",url:f()+"/get_settings?shopify_domain="+h(),success:function(t){g(t),rt()}})}function v(){return!!(R()&&T().length>0)}function R(){return"undefined"==typeof window.qb.shop&&q(),window.qb.shop}function q(){y()&&"undefined"!=typeof window.qb.datastore.shop?"undefined"!=typeof window.qb.datastore.theme_setting?window.qb.shop=M():window.qb.shop=window.qb.datastore.shop:window.qb.shop=!1}function M(){var e=window.qb.datastore.theme_setting,i=window.qb.datastore.shop,n=[["cart_subtotal_selector","cart_subtotal_selector"],["checkout_button_selector","checkout_button_selector"],["form_selector","form_selector"],["quantity_selector","quantity_selector"],["cart_form_selector","cart_form_selector"],["quantity_button_selector","quantity_button_selector"],["variant_selector","variant_selector"],["swatch_selector","swatch_selector"],["mutation_ids","mutation_ids"],["mutation_classes","mutation_classes"],["table_placement_selector","table_placement_selector"],["shipping_rates_form_placement_selector","shipping_rates_form_placement_selector"],["regular_cart_subtotal_table_placement_selector","regular_cart_subtotal_table_placement_selector"],["discount_log_placement_selector","discount_log_placement_selector"],["discount_log_position","discount_log_position"],["product_selector_container","product_selector_container"],["net_order_success_redirect_url","net_order_success_redirect_url"],["discount_code_input_placeholder","discount_code_input_placeholder"],["discount_code_button_text","discount_code_button_text"],["currency_option_selector","currency_option_selector"]];return t.each(n,function(t,n){i[n[0]]=C(i[n[0]],e[n[1]])}),nt(e.shipping_rates_form_position)&&!nt(i.shipping_rates_form_position)?i.shipping_rates_form_position=e.shipping_rates_form_position:nt(e.shipping_rates_form_position)||nt(i.shipping_rates_form_position)||(i.shipping_rates_form_position="after"),nt(e.shipping_rates_form_placement_selector)&&!nt(i.shipping_rates_form_placement_selector)?i.shipping_rates_form_placement_selector=e.shipping_rates_form_placement_selector:nt(e.shipping_rates_form_placement_selector)||nt(i.shipping_rates_form_placement_selector)||(i.shipping_rates_form_placement_selector="form[action^='/cart']:visible table:first, .cart-row:nth-last-child(2)"),nt(i.regular_cart_subtotal_table_placement_selector)||(i.regular_cart_subtotal_table_placement_selector=i.cart_subtotal_selector),nt(i.discount_log_placement_selector)||(i.discount_log_placement_selector=i.cart_subtotal_selector),null==i.custom_css&&(i.custom_css=""),nt(e.theme_css)&&(i.custom_css=i.custom_css+"\r\n"+e.theme_css),i}function C(t,e){return nt(t)?t:e}function T(){return y()&&"undefined"!=typeof window.qb.datastore.discount_groups?window.qb.datastore.discount_groups:[]}function O(){return"undefined"!=typeof window.qb&&"undefined"!=typeof window.qb.discount_groups?window.qb.discount_groups:[]}function A(){return"undefined"==typeof window.qb||"undefined"==typeof window.qb.customer_id?"":window.qb.customer_id}function D(){return-1!==window.location.href.indexOf("/products")}function L(){return-1!==window.location.href.indexOf("/cart")}function Y(e){if("function"==typeof Spinner){var i=new Spinner({top:"-50px",left:"50%",position:"relative"}).spin().el;t(e).first().parent().after(i)}}function S(){t(".spinner").remove()}function P(e){t(document).on("change",e.variant_selector,function(){N(e)}),t(e.swatch_selector).length>0&&("hqtecno.myshopify.com"===h()?t(e.swatch_selector).click(function(){setTimeout(function(){N(e)},1e3)}):t(document).on("click",e.swatch_selector,function(){N(e)})),(new k).setup(function(){N(e)})}function k(){}function N(e){0!=t(".quantity-breaks-now-wrapper").length&&t(".quantity-breaks-now-wrapper").remove(),E(e)}function F(e,i){var n=[];t.each(window.qb.discount_groups,function(t,e){e.appliesToProduct(window.qb.product.id,window.qb.product_collections)&&n.push(e)}),n.length>1&&nt(e.multiple_groups_notice)&&t("div.quantity-breaks-now-wrapper").append('<div class="multiple-groups-notice">'+e.multiple_groups_notice+"</div>"),t.each(n,function(t,n){n.printDiscountTable(e,i)})}function B(e){var i=null;return 1==window.qb.product.variants.length?i=window.qb.product.variants[0]:t.each(window.qb.product.variants,function(t,n){n.id==e&&(i=n)}),i}function x(t){var e=B(b(t));return null!=e?e.price:null}function E(e){var i=null;i=nt(e.table_placement_selector)?t(e.table_placement_selector).first():t(e.form_selector).first(),0==t(".quantity-breaks-now-wrapper").length&&i.after('<div class="quantity-breaks-now-wrapper"></div>'),F(e,x(e))}function I(t,e){function i(t,e){return void 0===t?e:t}function n(t,e,n,o){if(e=i(e,2),n=i(n,","),o=i(o,"."),isNaN(t)||null==t)return 0;var a=(t=(t/100).toFixed(e)).split(".");return a[0].replace(/(\d)(?=(\d\d\d)+(?!\d))/g,"$1"+n)+(a[1]?o+a[1]:"")}if(void 0===t||null==t)return"";if("string"==typeof t&&0==t.length)return"";var o=/\{\{\s*(\w+)\s*\}\}/;"string"==typeof t&&(t=t.replace(".",""));var a="";switch(e.match(o)[1]){case"amount":a=n(t,2);break;case"amount_no_decimals":a=n(t,0);break;case"amount_no_decimals_with_comma_separator":a=n(t,0,".",",");break;case"amount_with_comma_separator":a=n(t,2,".",",")}return e.replace(o,a)}function U(t){return Math.round(100*t)+"%"}function $(e,i){setTimeout(function(){t(e.checkout_button_selector).off("click","**"),t("#OffAmazonPaymentsWidgets0").unbind("click#OffAmazonPaymentsWidgets0"),t("#OffAmazonPaymentsWidgets0").unbind("apay-OffAmazonPayments_mec_#OffAmazonPaymentsWidgets0"),t(e.checkout_button_selector).prop("onclick",null),"lovely-fluffy-panda.myshopify.com"===h()||"luringskin.myshopify.com"===h()||"laumiere-gourmet-fruits.myshopify.com"===h()||"gotchu-philippines.myshopify.com"===h()||"maison-vantage.myshopify.com"===h()||"yogaclicks.myshopify.com"===h()||"airs-store.myshopify.com"===h()||"nouvelle-fortune-officielle.myshopify.com"===h()?t(document).on("click",e.checkout_button_selector,function(n){var o=t(".qb-discount-code-inputs input[type='text']").val();t(n.target).hasClass("qb-net-order-button")||(n.preventDefault(),n.stopImmediatePropagation(),n.stopPropagation(),t(e.checkout_button_selector).prop("disabled",!0),Y(e.checkout_button_selector),c(e).then(function(){u(e,i).then(function(){window.qb.datastore.shop.enabled_discount_codes&&void 0!==o&&o.length<1?i.getAppliedDiscountCode(function(){j(e,i)}):j(e,i)})}))}):"the-frontal-queen-la-store.myshopify.com"===h()||"rountine.myshopify.com"==h()||"animalshop111.myshopify.com"==h()||"animal112.myshopify.com"==h()||"animal111.myshopify.com"==h()||"dogcatpig123.myshopify.com"==h()||"pifito.myshopify.com"==h()||"purpletuls.myshopify.com"===h()?t(e.checkout_button_selector).click(function(n){var o=t(".qb-discount-code-inputs input[type='text']").val();t(n.target).hasClass("qb-net-order-button")||(n.preventDefault(),n.stopImmediatePropagation(),n.stopPropagation(),t(e.checkout_button_selector).prop("disabled",!0),Y(e.checkout_button_selector),window.qb.datastore.shop.enabled_discount_codes&&void 0!==o&&o.length<1?i.getAppliedDiscountCode(function(){j(e,i)}):j(e,i))}):t(e.checkout_button_selector).click(function(n){var o=t(".qb-discount-code-inputs input[type='text']").val();t(n.target).hasClass("qb-net-order-button")||(n.preventDefault(),n.stopImmediatePropagation(),n.stopPropagation(),t(e.checkout_button_selector).prop("disabled",!0),Y(e.checkout_button_selector),c(e).then(function(){u(e,i).then(function(){window.qb.datastore.shop.enabled_discount_codes&&void 0!==o&&o.length<1?i.getAppliedDiscountCode(function(){j(e,i)}):j(e,i)})}))})},1e3)}function j(e,n){if("undefined"==typeof window.qb.checkingOut||!window.qb.checkingOut){if(window.qb.checkingOut=!0,t(e.agree_to_terms_selector).length>0&&t(e.agree_to_terms_selector+":checked").length!=t(e.agree_to_terms_selector).length)return;var o=n.createDraftOrder();t.ajax({cache:!1,type:"POST",url:f()+"/get_checkout_url?shopify_domain="+h(),data:JSON.stringify(o),dataType:"json",contentType:"application/json; charset=utf-8",success:function(n){if(S(),t(e.checkout_button_selector).prop("disabled",!1),n.invoice_url){var o=n.invoice_url.replace("checkout.shopify.com",e.primary_domain);o=i(o),"undefined"!=typeof window.qb.extraCheckoutParams?window.location.href=o.concat("?").concat(window.qb.extraCheckoutParams):window.location.href=o}else alert("An error occured, and we're unable to process your order at this time. Please contact customer service for assistance. ");window.qb.checkingOut=!1}})}}function Q(t,e){var i=O();i.length>0&&new H(e,i,t).applyDiscounts();var n=new K(e);(L()||D())&&(window.qb.datastore.shop.enabled_discount_codes?e.getAppliedDiscountCode(function(){n.updatePage(!1)}):n.updatePage(!1)),t.ajax_cart_integration_enabled&&n.initializeAjaxCartObserver(t)}function G(t,e){D()&&(new K(e).setupEnv(t),P(t),E(t))}function V(t,e){this.message=t,this.amount=e}function W(t,e){this.message=t,this.amount=e}function K(e){var i=this,n=function(e){nt(e.custom_css)&&t("head").append('<style type="text/css">'+e.custom_css+"</style>")},o=function(o){if(e.totalDiscount>0||e.hasMinTierWarnings()){var a=R();o&&!a.ajax_cart_integration_enabled||(n(a),f(a),d(a,o),u(a),r(a),a.show_line_item_discount&&s(i.cart.items,a),e.totalDiscount>0&&c(a,e),e.totalDiscount>0&&($(a,i.cart),t("body .additional-checkout-button").css("display","none")),"chips-games.myshopify.com"===h()&&t(a.quantity_selector).keyup(function(i){13==i.keyCode&&setTimeout(function(){a.enabled_cart_js_update?m(a,e):t(a.cart_form_selector).submit()},500)}),"tomorrowgolf.myshopify.com"===h()&&t(document).on("change",a.quantity_selector,function(i){i.preventDefault(),i.stopImmediatePropagation(),setTimeout(function(){a.enabled_cart_js_update?m(a,e):t(a.cart_form_selector).submit()},500)}),""!==a.quantity_selector&&t(document).on("change",a.quantity_selector,function(i){i.preventDefault(),i.stopImmediatePropagation(),setTimeout(function(){a.enabled_cart_js_update?m(a,e):t(a.cart_form_selector).submit()},500)}),""!==a.quantity_button_selector&&t(document).on("click",a.quantity_button_selector,function(i){i.preventDefault(),i.stopImmediatePropagation(),setTimeout(function(){a.enabled_cart_js_update?m(a,e):("community-wines.myshopify.com"!=a.shopify_domain&&i.stopPropagation(),t(a.cart_form_selector).submit())},500)}))}},a=function(e){var i="",n=9999999;return t.each(e,function(t,e){e.amount<n&&(i=e.message,n=e.amount)}),i},s=function(e,i){var n=t(".qb-price-item"),o=t(".qb-total-line-item"),a=p(i.money_format);t.each(e,function(e,i){if(i.appliedDiscount.total_discount_amount>0){var s=i.price-i.appliedDiscount.total_discount_amount/i.quantity,c=i.appliedDiscount.original_line_price-i.appliedDiscount.total_discount_amount,r=i.appliedDiscount.original_line_price,u=i.price,d='<span class="qb-line-item-original-price">'+I(r,a)+'</span><span class="qb-line-item-discounted-price">'+I(c,a)+"</span>",l='<span class="qb-line-item-original-price">'+I(u,a)+'</span><span class="qb-line-item-discounted-price">'+I(s,a)+"</span>";t.each(n,function(e,n){t(n).data("id")===i.key&&t(n).html(l)}),t.each(o,function(e,n){t(n).data("id")===i.key&&t(n).html(d)})}})},c=function(e,i){e.enabled_discount_codes&&(t(".discount-code-wrapper").remove(),l(e),t(".apply-discount-code").prop("disabled",!0),window.qb.datastore.discount_codes.length>0&&window.qb.datastore.discount_codes[0].discountedAmount>0&&(_(window.qb.datastore.discount_codes[0],window.qb.datastore.shop),t(document).on("click",".qb-discount-code-tag",function(t){t.stopImmediatePropagation(),t.preventDefault(),i.removeDiscountCode(function(){new K(i).updatePage(!1)})})),window.qb.datastore.discount_codes.length>0&&window.qb.datastore.discount_codes[0].discountedAmount<=0&&i.removeDiscountCode(function(){new K(i).updatePage(!1)}),t(document).on("input",".discount-code-wrapper input[type='text']",function(){t(".apply-discount-code").prop("disabled",!1)}),t(document).on("click",".apply-discount-code",function(e){e.stopImmediatePropagation(),e.preventDefault();var n=window.qb.cart.items.flatMap(function(t){return t.collection_ids}),o=window.qb.cart.items.flatMap(function(t){return t.product_id}),a=window.qb.cart.items.flatMap(function(t){return t.variant_id}),s=window.qb.cart.original_total_price,c=window.qb.cart.item_count,r=window.qb.cart.token;let u=null;t(".discount-code-wrapper input[type='text']").length>0&&(u=t(".discount-code-wrapper input[type='text']").map(function(){if(null!==t(this).val()&&""!==t(this).val())return t(this).val()}));var d={discount_code:u&&u[0]?u[0]:t(".discount-code-wrapper input[type='text']").val(),shopify_domain:h(),options:{collections:n,products:o,variants:a,subtotal:s,quantity:c,cart_token:r}};window.qb.discountCodeData=d,i.submitDiscountCode(i,d,function(){new K(i).updatePage(!1)})}))},r=function(i){if(i.next_tier_offers_enabled){var n=e.getNextTierOffers(),o=a(n);nt(o)&&(0==t(".qb-next-tier-offers").length?t(i.cart_subtotal_selector).append('<span class="qb-next-tier-offers">'+o+"</span>"):t(".qb-next-tier-offers").html(o))}},u=function(i){setTimeout(function(){if(i.minimum_tier_warnings_enabled){var n=e.getMinTierWarnings(),o=a(n);nt(o)&&(0==t(".qb-min-cart-warnings").length?t(i.cart_subtotal_selector).append('<span class="qb-min-cart-warnings">'+o+"</span>"):t(".qb-min-cart-warnings").html(o))}},1)},d=function(i,n){setTimeout(function(){if((!n||n&&i.show_discount_log_on_ajax_carts)&&i.enable_discount_log){var o=e.getDiscountLogEntries(),a="";t.each(o,function(t,e){a+=e+"<br />"}),nt(a)&&(0==t(".qb-discount-log").length?t(i.cart_subtotal_selector).append('<div class="qb-discount-log">'+a+"</div>"):(t(i.cart_subtotal_selector).append('<div class="qb-discount-log">'+a+"</div>"),t(".qb-discount-log").html(a)))}},1)},l=function(e){var i=e.discount_code_input_placeholder||"Discount code",n=e.discount_code_button_text||"Apply",o='<div class="discount-code-wrapper"><label class="qb-discount-code-log"></label><div class="qb-discount-code-inputs"><input type="text" id=\'discount-code-field\' /><input type="submit" class="apply-discount-code" id=\'submit-discount-code\' /></div><span class="qb-discount-code-tag"></span></div>';t(e.cart_subtotal_selector).append(o),t("#discount-code-field").attr("placeholder",i),t("#submit-discount-code").val(n)},_=function(e,i){var n=p(i.money_format),o=i.discount_code_log;o=(o=o.replace("{{discount_code_amount}}",I(e.discountedAmount,n))).replace("{{discount_code}}",e.discountCode),t(".qb-discount-code-log").append(o),t(".qb-discount-code-tag").text(" "+e.discountCode),t(".qb-discount-code-tag").css("visibility","visible"),t(".qb-discount-code-inputs > input").prop("disabled",!0)},f=function(i){let n=e.totalPrice;if(window.qb.datastore.discount_codes&&window.qb.datastore.discount_codes.length>0&&window.qb.discountCodeData&&window.qb.discountCodeData.discount_code&&window.qb.discountCodeData.discount_code.length>0){let t=window.qb.discountCodeData.discount_code,i=window.qb.datastore.discount_codes.find(e=>e.discountCode===t);i&&i.discountedCartTotalPrice&&e.originalTotalPrice-i.discountedCartTotalPrice>0&&(n=e.originalTotalPrice-i.discountedCartTotalPrice)}var o=p(i.money_format);if(e.totalDiscount>0){if(0==t(".qb-original-subtotal").length){var a='<span class="qb-original-subtotal">'+I(e.originalTotalPrice,o)+'</span><span class="qb-discounted-subtotal">'+I(n,o)+"</span>";t(i.cart_subtotal_selector).html(a),window.qb.discountedSubtotalApplied=!0}else t(".qb-discounted-subtotal").html(I(n,o)),t(".qb-original-subtotal").html(I(e.originalTotalPrice,o)),t(i.cart_subtotal_selector).html(I(n,o));t("#qb-net-order-original-total").css("text-decoration","line-through"),t("#qb-net-order-original-total").text(I(e.originalTotalPrice,o)),t("#qb-net-order-discounted-total").text(I(n,o))}else t(i.cart_subtotal_selector).html(I(e.originalTotalPrice,o))},b=function(t,e){var i=["ajaxifyCart","cart-loading","AjaxifyCart","layer-addcart-modal"];if(nt(t.mutation_ids)){var n=t.mutation_ids.replace(/ /g,"").split(",");i=i.concat(n)}return-1!==i.indexOf(e.target.id)},y=function(e,i){var n=["drawer","cart-drawer__item-list","ajaxcart__footer--fixed","cart-item__qty","mm-opened","cart-sidebar","opened","cart-preview"];if(nt(e.mutation_classes)){var o=e.mutation_classes.replace(/ /g,"").split(",");n=n.concat(o)}var a=!1;return t.each(n,function(t,e){"undefined"!=typeof i.target.classList&&i.target.classList.contains(e)&&(a=!0)}),a},g=function(t,e){return b(t,e)||y(t,e)},w=function(t){var i=!1,n=new MutationObserver(function(n){n.forEach(function(n){!i&&g(t,n)&&(window.qb.discountCodeApplied=!1,setTimeout(function(){e.updateCart(function(){var i=O();new H(e,i,t).applyDiscounts();var n=new K(e);window.qb.datastore.shop.enabled_discount_codes&&!window.qb.discountCodeApplied?(window.qb.discountCodeApplied=!0,e.getAppliedDiscountCode(function(){n.updatePage(!1)})):n.updatePage(!1)})},250),i=!0)}),i=!1}),o={attributes:!0,childList:!0,characterData:!0,subtree:!0},a=document.body;n.observe(a,o)};this.cart=e,this.setupEnv=n,this.updatePage=o,this.showNextTierOffers=r,this.showMinTierWarnings=u,this.showDiscountLog=d,this.showDiscountedSubtotal=f,this.initializeAjaxCartObserver=w,this.checkMutations=g,this.checkMutationIds=b,this.checkMutationClasses=y}function H(e,i,n){var o=this,a=function(){t.each(o.cart.items,function(t,e){var i=o.findBestDiscountGroup(e);if(i)o.applyDiscountsToItem(e,i);else{var n=o.findLowestMinTierDiscountGroup(e);n&&o.applyMinTierWarningToItem(e,n)}});var e=o.cart.hasDiscountLogEntries(),i=o.cart.hasMinTierWarnings();e&&i&&o.changeMinTierWarningsToNextTierOffers()},s=function(){t.each(o.cart.items,function(t,e){if(""!=e.minTierWarning){var i=e.discountGroup.getMinTier();e.nextTierOffer=i.getNextTierOffer(e,o.cart),e.minTierWarning=""}})},c=function(e){var i=!1,n=0,a=0;return t.each(o.discountGroups,function(t,s){s.appliesToProduct(e.productId,e.collectionIds)&&(n=s.getDiscountAmountForProduct(e,o.cart))>a&&(i=s,a=n)}),i},r=function(i){var n=!1,a=0,s=9999999;return t.each(o.discountGroups,function(t,o){o.appliesToProduct(i.productId,i.collectionIds)&&0==o.getDiscountAmountForProduct(i,e)&&(a=o.getMinTierAmountNeeded())<s&&(s=a,n=o)}),n},u=function(t,e){t.discountGroup=e,t.minTierWarning=e.getMinTierWarning(t)},d=function(t,e){t.discountGroup=e,t.appliedDiscount=e.getAppliedDiscount(t,o.cart),o.cart.totalDiscount+=t.appliedDiscount.total_discount_amount,o.cart.totalPrice-=t.appliedDiscount.total_discount_amount,t.discountLogEntry=e.getDiscountLogEntry(t,o.cart),t.nextTierOffer=e.getNextTierOffer(t,o.cart)},l=function(t,e){return e.length>0?"apply_newest_group"==t.multiple_discount_group_behavior?[e[e.length-1]]:"apply_oldest_group"==t.multiple_discount_group_behavior?[e[0]]:e:e};this.filterDiscountGroups=l,this.discountGroups=l(n,i),this.cart=e,this.findBestDiscountGroup=c,this.findLowestMinTierDiscountGroup=r,this.applyDiscounts=a,this.applyDiscountsToItem=d,this.applyMinTierWarningToItem=u,this.changeMinTierWarningsToNextTierOffers=s}function z(e){var i=this,n=function(){return""!=i.minTierWarning},o=function(){return""!=i.discountLogEntry},a=function(){var e=[];return null!=i.properties&&t.each(Object.keys(i.properties),function(t,n){var o={};o.name=n,o.value=i.properties[n],e.push(o)}),e},s=function(){var t={};return t.title=i.title,t.variant_id=i.variantId,t.product_id=i.productId,t.image=i.image,t.quantity=i.quantity,t.grams=i.grams,t.requires_shipping=i.requiresShipping,t.price=i.price/100,t.properties=i.getLineItemPropertiesArray(),t.applied_discount=i.appliedDiscount,"undefined"!==t.applied_discount.amount&&(t.applied_discount.amount=t.applied_discount.amount),t};this.title=e.title,this.quantity=e.quantity,this.variantId=e.variant_id,this.productId=e.product_id,this.price=e.price,this.giftCard=e.gift_card,this.productTitle=e.product_title,this.variantTitle=e.variant_title,this.variantOptions=e.variant_options,this.originalPrice=e.original_price,this.originalLinePrice=e.original_line_price,this.discountedPrice=e.discounted_price,this.linePrice=e.line_price,this.collectionIds=e.collection_ids,this.properties=e.properties,this.requiresShipping=e.requires_shipping,this.grams=e.grams,this.key=e.key,this.appliedDiscount={},this.discountGroup=null,this.minTierWarning="",this.nextTierOffer="",this.discountLogEntry="",this.image=e.image,this.handle=e.handle,this.hasMinTierWarning=n,this.hasDiscountLogEntry=o,this.getLineItemHash=s,this.getLineItemPropertiesArray=a}function J(){var e=this,i=function(){var i=[];return t.each(e.items,function(t,e){i.push(e.getLineItemHash())}),i},n=function(){var i=[];return t.each(e.items,function(t,e){nt(e.discountLogEntry)&&i.push(e.discountLogEntry)}),i},a=function(){var i=[];return t.each(e.items,function(t,e){nt(e.minTierWarning)&&i.push(e.minTierWarning)}),i},s=function(){var i=[];return t.each(e.items,function(t,e){nt(e.nextTierOffer)&&i.push(e.nextTierOffer)}),i},c=function(){var i=!1;return t.each(e.items,function(t,e){e.hasMinTierWarning()&&(i=!0)}),i},r=function(){var i=!1;return t.each(e.items,function(t,e){e.hasDiscountLogEntry()&&(i=!0)}),i},u=async function(i){let n=R(),a=null;e.items=[];var s="";await window.qbnInit(),a=await l(n),s=o();let c=window.cartSettings;window.qb.enabled_multi_currencies={currencies_count:c&&c.enabled_currencies_count&&c.enabled_currencies_count,currencies:c&&c.enabled_currencies&&c.enabled_currencies,primary_domain:c&&c.primary_domain&&c.primary_domain},window.qb.shop.enabled_multi_currencies?(window.qb.enabled_multi_currencies.current_shop_currency=c.current_shop_currency,window.qb.enabled_multi_currencies.currency_format=ut[c.current_shop_currency].CURRENCY_FORMAT):(window.qb.enabled_multi_currencies.current_shop_currency=window.qb.shop.currency,window.qb.enabled_multi_currencies.currency_format=window.qb.shop.money_format),"undefined"!==window.qb.cart&&s&&(window.qb.cart.token=s),e.originalTotalPrice=a&&a.original_total_price?a.original_total_price:c&&c.original_total_price&&c.original_total_price,e.totalDiscount=a&&a.total_discount?a.total_discount:c&&c.total_discount&&c.total_discount,e.totalPrice=a&&a.total_price?a.total_price:c&&c.total_price&&c.total_price,e.totalWeight=a&&a.total_weight?a.total_weight:c&&c.total_weight&&c.total_weight,e.itemCount=a&&a.item_count?a.item_count:c&&c.item_count&&c.item_count;var r=[];console.info(c&&c.items,"itemsaa"),a&&a.items?t.each(a.items,function(t,e){c.items&&c.items[t]&&c.items[t].collection_ids&&c.items[t].collection_ids.length>0&&(e.collection_ids=c.items[t].collection_ids),r.push(new z(e))}):t.each(c.items,function(t,e){r.push(new z(e))}),e.items=r,i()},d=function(t,e){return e=(t.targetSelection,t.applyDiscountCode(e))},p=function(){var i={};return i.line_items=JSON.stringify(e.getLineItemsHash()),i.order_notes="",window.qb.datastore.shop.enabled_discount_codes&&window.qb.datastore.discount_codes.length>0&&(i=e.applyDiscountCode(window.qb.datastore.discount_codes[0],i)),t("#CartSpecialInstructions:visible").length>0&&(i.order_notes=t("#CartSpecialInstructions:visible").val()),t("#cartSpecialInstructions:visible").length>0&&(i.order_notes+=t("#cartSpecialInstructions:visible").val()),t("#cartSpecialInstructionsFromPopup:visible").length>0&&(i.order_notes+=t("#cartSpecialInstructionsFromPopup:visible").val()),""==i.order_notes&&t("textarea[name='note']:visible:first").length>0&&(i.order_notes+=t("textarea[name='note']:visible:first").val()),i},_=function(i){var n=window.qb.cart.token;t.ajax({cache:!1,type:"GET",url:f()+"/cart/remove_discount_code/"+n,success:function(n){if(n.deleted_discounted_cart){var o=window.qb.datastore.discount_codes[0];e.totalPrice=o.cartTotalPrice,window.qb.datastore.discount_codes=[],window.qb.discountCodeApplied=!1,t(".discount-code-wrapper").remove(),t(".qb-discount-code-inputs > input").prop("disabled",!1),i()}}})},m=function(e,i,n){t.ajax({cache:!1,type:"POST",url:f()+"/discount_codes/apply",data:JSON.stringify(i),contentType:"application/json; charset=utf-8",success:function(i){if(i.is_valid){window.qb.datastore.discount_codes=[],t(".discount-code-wrapper input[type=text]").removeClass("qb-discount-code-error"),t(".qb-invalid-discount-code").remove(),i.cartTotalPrice=e.totalPrice,i.cart=e;var o=new X(i);o.discountedAmount<e.totalPrice?e.totalPrice=Math.round(e.totalPrice-o.discountedAmount):e.totalPrice=0,window.qb.datastore.discount_codes.push(o),n()}else t(".qb-invalid-discount-code").length>0&&t(".qb-invalid-discount-code").remove(),t(".discount-code-wrapper input[type=text]").addClass("qb-discount-code-error"),t(".qb-discount-code-inputs").append("<label class='qb-invalid-discount-code'>"+i.error_message+"</label>")}})},h=function(i){var n=window.qb.cart.token;t.ajax({cache:!1,type:"GET",url:f()+"/cart/applied_discount_code/"+n,success:function(t){if(void 0!==t&&t.is_valid){window.qb.datastore.discount_codes=[],t.cartTotalPrice=e.totalPrice,t.cart=e;var n=new X(t);n.discountedAmount<e.totalPrice?e.totalPrice=Math.round(e.totalPrice-n.discountedAmount):e.totalPrice=0,window.qb.datastore.discount_codes.push(n)}i()}})};this.items=[],this.originalTotalPrice=0,this.totalDiscount=0,this.totalPrice=0,this.totalWeight=0,this.itemCount=0,this.hasMinTierWarnings=c,this.hasDiscountLogEntries=r,this.updateCart=u,this.getDiscountLogEntries=n,this.getMinTierWarnings=a,this.getNextTierOffers=s,this.getLineItemsHash=i,this.createDraftOrder=p,this.submitDiscountCode=m,this.applyDiscountCode=d,this.getAppliedDiscountCode=h,this.removeDiscountCode=_}function Z(e,i,n){var o=function(t){var e=R(),i=Math.floor(this.discountAmount),n={};return i>t.price&&(i=t.price),n.discount_amount=i,n.original_line_price=t.originalLinePrice,n.total_discount_amount=i*t.quantity,n.value_type="fixed_amount",n.description="Fixed Amount Discount",n.title=e.fixed_amount_discount_title,n.value=i/100,n.amount=i*t.quantity/100,n},a=function(t){var e=R(),i={};return i.value=Math.floor(100*this.discountPercent),i.original_line_price=t.originalLinePrice,i.discount_amount=Math.floor(Math.floor(t.price*i.value)/100),i.total_discount_amount=Math.floor(Math.floor(t.price*i.value*t.quantity)/100),i.value_type="percentage",i.description="Percentage Discount",i.title=e.percentage_discount_title,i.amount=Math.floor(Math.floor(t.price*i.value*t.quantity)/100)/100,i},c=function(t,e){return!(null==e||null==e.originalTotalPrice||e.originalTotalPrice<this.minCartValue)},r=function(){return this.minCartValue},u=function(){var t=R(),e=this.getAmount(),i=p(t.money_format);return new W(t.min_cart_value_warning.replace("{{amount}}",I(this.getAmount(),i)),e)},d=function(){var t=R(),e=this.getAmount(),i=p(t.money_format);return new V(t.next_tier_offer.replace("{{amount}}",I(this.getAmount(),i)),e)},l=function(t,e){return!(null==e||null==e.itemCount||e.itemCount<this.minCartQuantity)},_=function(){return this.minCartQuantity},m=function(){var t=R(),e=this.getAmount();return new W(t.min_cart_quantity_warning.replace("{{amount}}",e),e)},h=function(){var t=R(),e=this.getAmount();return new V(t.next_tier_cart_quantity_offer.replace("{{amount}}",e),e)},f=function(t){
return!(null==t.originalLinePrice||t.originalLinePrice<this.minLineItemValue)},b=function(){return this.minLineItemValue},y=function(t){var e=R(),i=this.getAmount(),n=p(e.money_format);return new W(e.min_line_item_value_warning.replace("{{amount}}",I(i,n)).replace("{{product}}",'<span class="qb-product-name">'+t.title+"</span>"),i)},g=function(t){var e=R(),i=this.getAmount(),n=p(e.money_format);return new V(e.next_tier_line_item_value_offer.replace("{{amount}}",I(i,n)).replace("{{product}}",'<span class="qb-product-name">'+t.title+"</span>"),i)},w=function(t){return!(null==t.quantity||t.quantity<this.minLineItemQuantity)},v=function(){return this.minLineItemQuantity},q=function(t){var e=R(),i=this.getAmount();p(e.money_format);return new W(e.min_line_item_quantity_warning.replace("{{amount}}",i).replace("{{product}}",'<span class="qb-product-name">'+t.title+"</span>"),i)},M=function(t){var e=R(),i=this.getAmount();p(e.money_format);return new V(e.next_tier_line_item_quantity_offer.replace("{{amount}}",i).replace("{{product}}",'<span class="qb-product-name">'+t.title+"</span>"),i)},C=function(t,e){var i=this.discountGroup.getSelectedProductsQuantity(e);return!(null==i||i<this.getAmount())},T=function(){return this.minSelectedProductsQuantity},O=function(){var t=R(),e=this.getAmount();p(t.money_format);return new W(t.min_selected_products_quantity_warning.replace("{{amount}}",e).replace("{{discount_group_title}}",'<span class="qb-discount-group-title">'+this.discountGroup.title+"</span>"),e)},A=function(){var t=R(),e=this.getAmount();p(t.money_format);return new V(t.next_tier_selected_products_quantity_offer.replace("{{amount}}",e).replace("{{discount_group_title}}",'<span class="qb-discount-group-title-name">'+this.discountGroup.title+"</span>"),e)},D=function(t,e){var i=this.discountGroup.getSelectedProductsValue(e);return!(null==i||i<this.getAmount())},L=function(){return this.minSelectedProductsValue},Y=function(){var t=R(),e=this.getAmount(),i=p(t.money_format);return new W(t.min_selected_products_value_warning.replace("{{amount}}",I(e,i)).replace("{{discount_group_title}}",'<span class="qb-discount-group-title">'+this.discountGroup.title+"</span>"),e)},S=function(){var t=R(),e=this.getAmount(),i=p(t.money_format);return new V(t.next_tier_selected_products_value_offer.replace("{{amount}}",I(e,i)).replace("{{discount_group_title}}",'<span class="qb-discount-group-title">'+this.discountGroup.title+"</span>"),e)},P=function(e,i,n){var o="",a="",s="",c=i.discount_table_config.show_inline_maximum_qty,r=i.discount_table_config.show_maximum_qty,u=i.discount_table_config.required_amount_label,d=i.discount_table_config.discount_value_col_label,l=i.discount_table_config.discounted_price_col_label,_=p(i.money_format);switch(this.type){case"MinimumCartValueTier":o=I(o=this.minCartValue,_),c?("+"===(s=this.maximumRequirementAmount(i))?o=o.concat(s):o!==s.toString()&&(o=o+" - "+s),o=u.replace("{{min_requirement}} - {{max_requirement}}",o)):o=u.replace("{{min_requirement}}",o);break;case"MinimumCartQuantityTier":o=(o=this.minCartQuantity).toString(),c?("+"===(s=this.maximumRequirementAmount(i))?o=o.concat(s):o!==s.toString()&&(o=o+" - "+s),o=u.replace("{{min_requirement}} - {{max_requirement}}",o)):o=u.replace("{{min_requirement}}",o);break;case"MinimumLineItemValueTier":o=I(o=this.minLineItemValue,_),c?("+"===(s=this.maximumRequirementAmount(i))?o=o.concat(s):o!==s.toString()&&(o=o+" - "+s),o=u.replace("{{min_requirement}} - {{max_requirement}}",o)):o=u.replace("{{min_requirement}}",o);break;case"MinimumLineItemQuantityTier":o=(o=this.minLineItemQuantity).toString(),c?("+"===(s=this.maximumRequirementAmount(i))?o=o.concat(s):o!==s.toString()&&(o=o+" - "+s),o=u.replace("{{min_requirement}} - {{max_requirement}}",o)):o=u.replace("{{min_requirement}}",o);break;case"MinimumSelectedProductsValueTier":o=I(o=this.minSelectedProductsValue,_),c?("+"===(s=this.maximumRequirementAmount(i))?o=o.concat(s):o!==s.toString()&&(o=o+" - "+s),o=u.replace("{{min_requirement}} - {{max_requirement}}",o)):o=u.replace("{{min_requirement}}",o);break;case"MinimumSelectedProductsQuantityTier":o=(o=this.minSelectedProductsQuantity).toString(),c?("+"===(s=this.maximumRequirementAmount(i))?o=o.concat(s):o!==s.toString()&&(o=o+" - "+s),o=u.replace("{{min_requirement}} - {{max_requirement}}",o)):o=u.replace("{{min_requirement}}",o)}switch(e.discountType){case"percentage":a=U(this.discountPercent),a=d.replace("{{discount_value}}",a),m=I(m=n*(1-this.discountPercent),_),m=l.replace("{{discounted_price}}",m);break;case"fixed_amount":var m;a=I(a=this.discountAmount,_),a=d.replace("{{discount_value}}",a),(m=n-this.discountAmount)<0&&(m=0),m=I(m,_),m=l.replace("{{discounted_price}}",m)}var h=t("#quantity-breaks-now-discount-tiers-table-row").html(),f={requirement_amount:o,maximum_requirement_amount:s,discount_value:a,discounted_price:m,show_discount_value:e.showDiscountValue,show_discounted_price:e.showDiscountedPrice,show_inline_maximum_qty:c,show_maximum_qty:r},b=Handlebars.compile(h)(f);t("div.quantity-breaks-now-wrapper #discount-group-"+e.id+" table tbody").append(b)},k=function(e){var i=!1,n=this.id,o=this.discountGroup.discountTiers.map(function(t){return t.id===n}),a=t.inArray(!0,o)+1;if(a<this.discountGroup.discountTiers.length){var s=this.discountGroup.discountTiers[a];switch(this.type){case"MinimumCartValueTier":s.minCartValue>this.minCartValue&&(i=I(i=s.minCartValue-1,e.money_format));break;case"MinimumLineItemValueTier":s.minLineItemValue>this.minLineItemValue&&(i=I(i=s.minLineItemValue-1,e.money_format));break;case"MinimumSelectedProductsValueTier":s.minSelectedProductsValue>this.minSelectedProductsValue&&(i=I(i=s.minSelectedProductsValue-1,e.money_format));break;case"MinimumCartQuantityTier":s.minCartQuantity>this.minCartQuantity&&(i=s.minCartQuantity-1);break;case"MinimumLineItemQuantityTier":s.minLineItemQuantity>this.minLineItemQuantity&&(i=s.minLineItemQuantity-1);break;case"MinimumSelectedProductsQuantityTier":s.minSelectedProductsQuantity>this.minSelectedProductsQuantity&&(i=s.minSelectedProductsQuantity-1)}}else i="+";return i};this.discountAmount=s(e.discount_amount),this.discountPercent=e.discount_percent,this.discountType=e.discount_type,this.id=e.id,this.minCartValue=s(e.min_cart_value),this.minLineItemValue=s(e.min_line_item_value),this.minSelectedProductsValue=s(e.min_selected_products_value),this.minCartQuantity=e.min_cart_quantity,this.minLineItemQuantity=e.min_line_item_quantity,this.minSelectedProductsQuantity=e.min_selected_products_quantity,this.type=i,this.discountGroup=n,"MinimumCartValueTier"==this.type?(this.appliesTo=c,this.getAmount=r,this.getMinTierWarning=u,this.getNextTierOffer=d):"MinimumCartQuantityTier"==this.type?(this.appliesTo=l,this.getAmount=_,this.getMinTierWarning=m,this.getNextTierOffer=h,this.hasMaximumRequirmentAmount=!1):"MinimumSelectedProductsValueTier"==this.type?(this.appliesTo=D,this.getAmount=L,this.getMinTierWarning=Y,this.getNextTierOffer=S):"MinimumSelectedProductsQuantityTier"==this.type?(this.appliesTo=C,this.getAmount=T,this.getMinTierWarning=O,this.getNextTierOffer=A,this.hasMaximumRequirmentAmount=!1):"MinimumLineItemValueTier"==this.type?(this.appliesTo=f,this.getAmount=b,this.getMinTierWarning=y,this.getNextTierOffer=g):(this.appliesTo=w,this.getAmount=v,this.getMinTierWarning=q,this.getNextTierOffer=M),"fixed_amount"==this.discountType?this.getAppliedDiscount=o:this.getAppliedDiscount=a,this.printDiscountTier=P,this.maximumRequirementAmount=k}function X(e){var i=function(e){var i=t.extend(!0,{},JSON.parse(e.line_items)),n=[],o=this;return t.each(i,function(e,i){t.each(o.lineItemAppliedDiscounts,function(t,e){e.variantId===i.variant_id&&e.productId===i.product_id&&(i.applied_discount=e.applied_discount)}),n.push(i)}),e.line_items=JSON.stringify(n),e},n=function(t){var e;return"all"==this.targetSelection&&(e="fixed_amount"==this.valueType?this.fixedAmountDiscountCodeHash():this.percentageDiscountCodeHash()),t.applied_discount=JSON.stringify(e),t},o=function(e){var i=[],n=this.collectionIds,o=e.items.map(function(e){return e.collectionIds.length>0&&t.each(e.collectionIds,function(e,o){t.each(n,function(t,e){e===o.toString()&&i.push(o)})}),(i=i.filter(function(t){return t})).length>0?(i=[],e):null});return o=o.filter(function(t){return t}),this.applyDiscountLineItemHash(e,o)},a=function(e){var i=this.productIds,n=this.variantIds,o=[],a=[];return t.each(e.items,function(e,s){s.productId&&t.each(i,function(t,e){s.productId.toString()===e&&o.push(s)}),s.variantId&&t.each(n,function(t,e){s.variantId.toString()===e&&a.push(s)})}),o=(o=o.concat(a)).filter(function(t){return t}),this.applyDiscountLineItemHash(e,o)},c=function(e,i,n){var o=0,a=t.extend(!0,{},i.getLineItemHash());if("percentage"===e){o=n/(s=i.price*i.quantity-100*a.applied_discount.amount)*100}else{var s=Math.floor(i.price-100*a.applied_discount.amount/i.quantity);o=Math.floor(s*(n/100))}return o},r=function(t,e,i,n,o){var a={};return"undefined"==typeof t.applied_discount.amount||100===i?(t.applied_discount.value=i,t.applied_discount.discount_amount=Math.floor(Math.floor(e.price*t.applied_discount.value)/100),t.applied_discount.total_discount_amount=Math.floor(Math.floor(e.price*t.applied_discount.value*e.quantity)/100),t.applied_discount.amount=Math.floor(Math.floor(e.price*t.applied_discount.value*e.quantity)/100)/100):t.applied_discount.value+i>100?(i=100,t.applied_discount.value=i,t.applied_discount.discount_amount=Math.floor(Math.floor(e.price*t.applied_discount.value)/100),t.applied_discount.total_discount_amount=Math.floor(Math.floor(e.price*t.applied_discount.value*e.quantity)/100),t.applied_discount.amount=Math.floor(Math.floor(e.price*t.applied_discount.value*e.quantity)/100)/100):(t.applied_discount.value=t.applied_discount.value+i,t.applied_discount.discount_amount=Math.floor(Math.floor(e.price*t.applied_discount.value)/100),t.applied_discount.total_discount_amount=Math.floor(Math.floor(e.price*t.applied_discount.value*e.quantity)/100),t.applied_discount.amount=Math.floor(Math.floor(e.price*t.applied_discount.value*e.quantity)/100)/100),t.applied_discount.value_type=o,"undefined"==typeof t.applied_discount.title?t.applied_discount.title=n:t.applied_discount.title=t.applied_discount.title.concat(", ",n),a={variantId:e.variantId,productId:e.productId,applied_discount:t.applied_discount},{totalDiscountAmount:t.applied_discount.total_discount_amount,appliedDiscount:a}},u=function(t,e,i,n,o){var a={};return"undefined"==typeof t.applied_discount.amount?(t.applied_discount.value=i/100,t.applied_discount.discount_amount=i,t.applied_discount.total_discount_amount=e.price*e.quantity,t.applied_discount.amount=i*e.quantity/100,t.applied_discount.value_type=o,t.applied_discount.title=n):(t.applied_discount.total_discount_amount>=e.original_line_price?(t.applied_discount.value=e.price/100,t.applied_discount.discount_amount=e.price,t.applied_discount.total_discount_amount=e.price*e.quantity,t.applied_discount.amount=e.price*e.quantity/100):(t.applied_discount.value=t.applied_discount.value+i/100,t.applied_discount.discount_amount=t.applied_discount.discount_amount+i,t.applied_discount.total_discount_amount=Math.floor(t.applied_discount.total_discount_amount+Math.floor(i*e.quantity)),t.applied_discount.amount=Math.floor(t.applied_discount.amount+i*e.quantity/100)),t.applied_discount.value_type=o,t.applied_discount.title=t.applied_discount.title.concat(", ",n)),a={variantId:e.variantId,productId:e.productId,applied_discount:t.applied_discount},{totalDiscountAmount:t.applied_discount.total_discount_amount,appliedDiscount:a}},d=function(e,i){var n=this.discountCode,o=this.valueType,a=0,s={discountAmount:0,totalDiscountAmount:0},d={},l=this;return"fixed_amount"==this.valueType?t.each(i,function(e,i){var p=t.extend(!0,{},i.getLineItemHash()),_=i.price*i.quantity;if(a=100*l.amount,"undefined"!=typeof p.applied_discount.value_type&&p.applied_discount.value_type!==o){var m=c(p.applied_discount.value_type,i,a),h=m;if(m>=i.price&&(h=m=i.price*i.quantity,fullPercent=!0),"undefined"!=typeof p.applied_discount.amount)h=(f=_-100*p.applied_discount.amount)*m/(i.price*i.quantity)/100*100,h=parseFloat(h.toFixed(2)),_=f;s.discountAmount=a>=_?s.discountAmount+_/100:s.discountAmount+a/100,d=r(p,i,h,n,p.applied_discount.value_type),l.lineItemAppliedDiscounts.push(d.appliedDiscount)}else{var f;if(a>i.price&&(a=i.price),"undefined"!=typeof p.applied_discount.amount)_=f=_-100*p.applied_discount.amount;s.discountAmount=a>=_?s.discountAmount+_/100:s.discountAmount+a/100,d=u(p,i,a,n,o),l.lineItemAppliedDiscounts.push(d.appliedDiscount)}s.totalDiscountAmount=s.totalDiscountAmount+d.totalDiscountAmount}):t.each(i,function(e,i){var a=t.extend(!0,{},i.getLineItemHash()),p=!1,_=i.price*i.quantity,m=l.amount;if("undefined"!=typeof a.applied_discount.value_type&&a.applied_discount.value_type!==o){var h=c(a.applied_discount.value_type,i,m);if(h>=i.price&&(h=i.price*i.quantity,p=!0),"undefined"!=typeof a.applied_discount.amount)_=f=_-a.applied_discount.total_discount_amount,m=h*i.quantity;s.discountAmount=m>=_?s.discountAmount+_/100:Math.floor(s.discountAmount+Math.floor(m/100)),d=u(a,i,h,n,a.applied_discount.value_type,p),l.lineItemAppliedDiscounts.push(d.appliedDiscount)}else{var f,b=m;if("undefined"!=typeof a.applied_discount.amount)b=(f=_-100*a.applied_discount.amount)*m/(i.price*i.quantity),m=f*(m/100),_=f;s.discountAmount=m>=_?s.discountAmount+_/100:s.discountAmount+m/100,d=r(a,i,b,n,o),l.lineItemAppliedDiscounts.push(d.appliedDiscount)}s.totalDiscountAmount=s.totalDiscountAmount+d.totalDiscountAmount}),this.discountedAmount=100*s.discountAmount,this.discountedCartTotalPrice=s.totalDiscountAmount,t.extend(!0,{},e.getLineItemsHash())},l=function(){var t={};return t.description=this.discountCode,t.value_type=this.valueType,t.value=this.value,t.amount=this.amount,t.title=this.discountCode,t},p=function(){var t={};return t.description=this.discountCode,t.value_type=this.valueType,t.value=this.value,t.amount=this.amount,t.title=this.discountCode,t};this.cartTotalPrice=e.cartTotalPrice,this.value=-1*e.discounted_value,this.amount=-1*e.discounted_value,this.discountedAmount=0,this.discountedCartTotalPrice=0,this.discountCode=e.discount_code,this.valueType=e.value_type,this.title=e.discount_code,this.targetSelection=e.discount_applies_to.target_selection,this.cartToken=e.cart_token,this.lineItemAppliedDiscounts=[],this.fixedAmountDiscountCodeHash=l,this.percentageDiscountCodeHash=p,this.applyDiscountToAll=n,this.discountedItemInCollection=o,this.discountedItemInProduct=a,this.applyDiscountLineItemHash=d,this.getDiscountedLineItems=i,"all"===this.targetSelection?("percentage"==e.value_type?(this.amount=Math.floor(this.cartTotalPrice*this.value/100)/100,this.discountedAmount=100*this.amount,this.discountedCartTotalPrice=this.cartTotalPrice-100*this.amount):(this.amount=s(this.value),this.discountedAmount=100*this.amount,this.discountedCartTotalPrice=this.cartTotalPrice-100*this.amount),this.applyDiscountCode=this.applyDiscountToAll):"collections"==this.targetSelection?(this.collectionIds=e.discount_applies_to.collections||[],this.draftOrderLineItems=this.discountedItemInCollection(e.cart),this.applyDiscountCode=this.getDiscountedLineItems):(this.productIds=e.discount_applies_to.products||[],this.variantIds=e.discount_applies_to.variants||[],this.draftOrderLineItems=this.discountedItemInProduct(e.cart),this.applyDiscountCode=this.getDiscountedLineItems)}function tt(e){var i=this,n=function(e,n){if(null!=n){var o=null;return t.each(i.discountTiers,function(t,i){i.appliesTo(e,n)&&(o=i)}),o}return i.discountTiers},o=function(e,n){if(at(e)){var o=[];return t.each(e,function(t,e){o.push(new Z(e,n,i))}),o}return[]},a=function(t,e){var n=!1,o=i.getDiscountTier(t,e);return o&&(n=(n=o.getAppliedDiscount(t)).amount),n},s=function(e,n){var o=!1,a=!1;return t.each(i.discountTiers,function(t,i){i.appliesTo(e,n)?o=i:o&&!1===a&&(a=i)}),a},c=function(){return i.discountTiers.length>0&&i.discountTiers[0]},r=function(){var t=i.getMinTier();return!!t&&t.getAmount()},u=function(e){var n=!1;return t.each(i.products,function(t,i){i.shopify_product_id==e&&(n=!0)}),n},d=function(){return!0},l=function(e,n){var o=!1;return t.each(n,function(e,n){t.each(i.collections,function(t,e){e.shopify_collection_id==n&&(o=!0)})}),o},_=function(e,n){var o=e.discount_table_config.show_maximum_qty,a=e.discount_table_config.discount_table_type;if(i.showDiscountTable){var s="";switch(i.discountTierType){case"MinimumCartValueTier":s=e.minimum_cart_value_label;break;case"MinimumCartQuantityTier":s=e.minimum_cart_quantity_label;break;case"MinimumLineItemQuantityTier":s=e.minimum_line_item_quantity_label;break;case"MinimumLineItemValueTier":s=e.minimum_line_item_value_label;break;case"MinimumSelectedProductsQuantityTier":s=e.minimum_selected_products_quantity_label;break;case"MinimumSelectedProductsValueTier":s=e.minimum_selected_products_value_label}var c=t("#quantity-breaks-now-discount-tiers-table").html(),r={requirement_label:s,discount_label:e.discount_label,maximum_requirement_label:"Max Qty",show_maximum_qty:o,table_header:i.title,discount_group_id:i.id,description:i.description,discounted_price_label:e.discounted_price_label,show_discount_value:i.showDiscountValue,show_discounted_price:i.showDiscountedPrice},u=Handlebars.compile(c)(r);t("div.quantity-breaks-now-wrapper").append(u);var d={discountType:i.discountType,id:i.id,showDiscountValue:i.showDiscountValue,showDiscountedPrice:i.showDiscountedPrice};this.defaultDiscountTableFormat(a),t.each(i.discountTiers,function(t,i){i.printDiscountTier(d,e,n)})}},m=function(e){e.discount_table_config.discount_table_type;var i=e.discount_table_config.table_title_font_size,n=e.discount_table_config.table_description_font_size,o=e.discount_table_config.table_title_color,a=e.discount_table_config.table_description_color;t(".quantity-breaks-now-discount-title").css("font-size",parseInt(i)),t(".quantity-breaks-now-discount-description").css("font-size",parseInt(n)),t(".quantity-breaks-now-discount-title").css("color",o),t(".quantity-breaks-now-discount-description").css("color",a)},h=function(e){e.discount_table_config.discount_table_type;var i=e.discount_table_config.border_radius.toString();i=i.concat("px"),t("table.quantity-breaks-now-discount-table").css("border-collapse","separate !important"),t(".quantity-breaks-now-discount-table th:first-child").css({"-moz-border-radius":i.concat(" 0 0 0"),"-webkit-border-radius":i.concat(" 0 0 0"),"border-radius":i.concat(" 0 0 0")}),t(".quantity-breaks-now-discount-table th:last-child").css({"-moz-border-radius":"0 "+i+" 0 0","-webkit-border-radius":"0 "+i+" 0 0","border-radius":"0 "+i+" 0 0"}),t(".quantity-breaks-now-discount-table tr:last-child td:first-child").css({"-moz-border-radius":"0 0 0 ".concat(i),"-webkit-border-radius":"0 0 0 ".concat(i),"border-radius":"0 0 0 ".concat(i)}),t(".quantity-breaks-now-discount-table tr:last-child td:last-child").css({"-moz-border-radius":"0 0 ".concat(i+" 0"),"-webkit-border-radius":"0 0 ".concat(i+" 0"),"border-radius":"0 0 ".concat(i+" 0")})},f=function(e){var i=e.discount_table_config.discount_table_type,n=e.discount_table_config.bg_table_row_color,o=e.discount_table_config.bg_header_color,a=e.discount_table_config.border_color,s=e.discount_table_config.border_width.toString(),c=e.discount_table_config.text_th_color,r=e.discount_table_config.text_td_color,u=e.discount_table_config.border_type,d=e.discount_table_config.table_font_size,l=s.concat("px ");l=(l=l.concat(u+" ")).concat(a),t(".quantity-breaks-now-discount-table").css("font-size",parseInt(d)),t(".quantity-breaks-now-discount-table th").css("color",c),t(".quantity-breaks-now-discount-table th").css("background-color",o),t(".qb-discount-table-row td").css("color",r),t(".qb-discount-table-row td").css("background-color",n),"default-grid"===i?(t(".quantity-breaks-now-discount-table th").css("border-bottom",l),t(".quantity-breaks-now-discount-table th").css("border-top",l),t(".quantity-breaks-now-discount-table th:last-child").css({"border-left":l,"border-right":l}),t(".quantity-breaks-now-discount-table th:first-child").css({"border-left":l,"border-right":l}),t(".qb-discount-table-row td").css("border-bottom",l),t(".qb-discount-table-row td:first-child").css({"border-left":l,"border-right":l}),t(".qb-discount-table-row td:last-child").css({"border-left":l,"border-right":l})):(t(".quantity-breaks-now-discount-table th:nth-child(2)").css({"border-left":"none","border-right":"none"}),t(".quantity-breaks-now-discount-table th").css({"border-bottom":l,"border-top":l}),t(".quantity-breaks-now-discount-table th:first-child").css({"border-left":l,"border-right":"none"}),t(".quantity-breaks-now-discount-table th:last-child").css({"border-left":"none","border-right":l}),t(".quantity-breaks-now-discount-table td:nth-child(2)").css({"border-left":"none","border-right":"none"}),t(".qb-discount-table-row td").css("border-bottom",l),t(".qb-discount-table-row td:first-child").css({"border-left":l,"border-right":"none"}),t(".qb-discount-table-row td:last-child").css({"border-left":"none","border-right":l}))},b=function(e){"default-grid"===e&&t(".quantity-breaks-now-discount-table").prop("id","default-type")},y=function(t,e){return n(t,e).getAppliedDiscount(t)},g=function(t){var e=R(),n=t.appliedDiscount,o=p(e.money_format);return e.discount_log_text.replace("{{total_discount_amount}}",I(Math.floor(n.total_discount_amount),o)).replace("{{discount_amount}}",I(Math.floor(n.discount_amount),o)).replace("{{product_title}}",t.title).replace("{{discount_group_title}}",i.title).replace("{{quantity}}",t.quantity).replace("{{discount_percent}}",U(n.value/100))},w=function(t,e){var i=s(t,e);return i?i.getNextTierOffer(t,e):""},v=function(t){var e=c(t);return e?e.getMinTierWarning(t):""},q=function(e){var n=0;return t.each(e.items,function(t,e){i.appliesToProduct(e.productId,e.collectionIds)&&(n+=e.quantity)}),n},M=function(e){var n=0;return t.each(e.items,function(t,e){i.appliesToProduct(e.productId,e.collectionIds)&&(n+=e.quantity*e.price)}),n};this.products=e.products||[],this.collections=e.collections||[],this.cartLabel=e.cart_label||"",this.description=e.description||"",this.discountEnabled=e.discount_enabled||!1,this.discountTierType=e.discount_tier_type||"MinimumCartValueTier",this.discountType=e.discount_type||"percentage",this.showDiscountTable=e.show_discount_table||!1,this.showDiscountValue=e.show_discount_value||!1,this.showDiscountedPrice=e.show_discounted_price||!1,this.title=e.title||"",this.groupType=e.type||"all",this.createDiscountTierObjects=o,this.discountTiers=this.createDiscountTierObjects(e.discount_tiers,e.discount_tier_type),this.id=e.id,"ProductDiscount"==this.groupType?this.appliesToProduct=u:"AllDiscount"==this.groupType?this.appliesToProduct=d:"CollectionDiscount"==this.groupType&&(this.appliesToProduct=l),this.getDiscountAmountForProduct=a,this.getDiscountTier=n,this.printDiscountTable=_,this.getMinTier=c,this.getMinTierAmountNeeded=r,this.getNextTier=s,this.getAppliedDiscount=y,this.getDiscountLogEntry=g,this.getNextTierOffer=w,this.getMinTierWarning=v,this.getSelectedProductsQuantity=q,this.getSelectedProductsValue=M,this.defaultDiscountTableFormat=b,this.discountTableBorderRadius=h,this.discountTableBorderStyle=f,this.discountTableHeader=m}function et(){return T().length>0}function it(){return window.qb.discount_groups=[],t.each(T(),function(t,e){e.discount_enabled&&window.qb.discount_groups.push(new tt(e))}),!!at(window.qb.discount_groups)}function nt(t){return null!=t&&""!=t&&void 0!==t}function ot(t){return void 0!==t}function at(t){return null!=t&&void 0!==t&&t.length>0}function st(e){var i=["revessel.myshopify.com"];e.enabled_cart_js_update&&-1!=t.inArray(h(),i)&&t(document).on("click",e.quantity_button_selector,function(t){t.preventDefault(),t.stopImmediatePropagation(),setTimeout(function(){m(e,cart)},1e3)})}function ct(e,i){e.reload_cart_page&&setInterval(function(){t(".qb-discounted-subtotal").length<1&&("shiningmood.myshopify.com"==h()?i.updateCart(function(){it(),Q(e,i)}):(it(),Q(e,i)))},1e3)}function rt(){var t=R();if(window.qb.datastore.discount_codes=[],window.qb.discountCodeApplied=!1,window.qb.discountedSubtotalApplied=!0,window.qb.convertedCurrency={converted_amount:1,currency_format:t.money_format},t&&(""==A()||!t.disable_for_logged_in_customers)){var e=new J;et()&&e.updateCart(function(){_(t).then(function(){it(),at(window.qb.discount_groups)&&G(t,e),Q(t,e),ct(t,e),st(e)})})}}var ut={AED:{SYMBOL:"Dhs.",CURRENCY_FORMAT:"Dhs. {{amount}}"},ANG:{SYMBOL:"\u0192;.",CURRENCY_FORMAT:"\u0192;{{amount}}"},BAM:{SYMBOL:"KM",CURRENCY_FORMAT:"KM {{ amount_with_comma_separator }}"},BNG:{SYMBOL:"\u043b\u0432",CURRENCY_FORMAT:"{{ amount }} \u043b\u0432"},BIF:{SYMBOL:"FBu.",CURRENCY_FORMAT:"FBu. {{ amount_with_comma_separator }}"},BMD:{SYMBOL:"BD$",CURRENCY_FORMAT:"BD${{ amount }}"},BND:{SYMBOL:"$",CURRENCY_FORMAT:"${{ amount }}"},BOB:{SYMBOL:"$",CURRENCY_FORMAT:"Bs{{ amount_with_comma_separator }}"},BRL:{SYMBOL:"R$",CURRENCY_FORMAT:"R$ {{ amount }}"},BWP:{SYMBOL:"P",CURRENCY_FORMAT:"P{{ amount }}"},BZD:{SYMBOL:"BZ$",CURRENCY_FORMAT:"BZ${{ amount }}"},CDF:{SYMBOL:"FC",CURRENCY_FORMAT:"FC{{ amount }}"},CHF:{SYMBOL:"SFr.",CURRENCY_FORMAT:"SFr. {{ amount }}"},CLP:{SYMBOL:"$",CURRENCY_FORMAT:"${{ amount }}"},CNY:{SYMBOL:"\xa5",CURRENCY_FORMAT:"\xa5{{ amount }}"},COP:{SYMBOL:"$",CURRENCY_FORMAT:"${{ amount_with_comma_separator }}"},CRC:{SYMBOL:"\u20a1",CURRENCY_FORMAT:"\u20a1 {{ amount_with_comma_separator }}"},CVE:{SYMBOL:"$",CURRENCY_FORMAT:"{{ amount_with_comma_separator }}$"},CZK:{SYMBOL:"K\u010d",CURRENCY_FORMAT:"{{ amount_with_comma_separator }} K\u010d"},DJF:{SYMBOL:"Fdj",CURRENCY_FORMAT:"{{ amount }} Fdj"},DKK:{SYMBOL:"kr",CURRENCY_FORMAT:"{{ amount_with_comma_separator }} kr"},DOP:{SYMBOL:"RD$",CURRENCY_FORMAT:"RD$ {{ amount_with_comma_separator }}"},EGP:{SYMBOL:"LE",CURRENCY_FORMAT:"LE {{ amount }}"},ETB:{SYMBOL:"Br",CURRENCY_FORMAT:"Br{{ amount }}"},FJD:{SYMBOL:"FJ$",CURRENCY_FORMAT:"FJ${{ amount }}"},FKP:{SYMBOL:"\xa3",CURRENCY_FORMAT:"\xa3{{ amount }}"},GBP:{SYMBOL:"\xa3",CURRENCY_FORMAT:"\xa3{{ amount }}"},GEL:{SYMBOL:"GEL",CURRENCY_FORMAT:"{{ amount }} GEL"},GIP:{SYMBOL:"\xa3",CURRENCY_FORMAT:"\xa3{{ amount }}"},GMD:{SYMBOL:"D",CURRENCY_FORMAT:"D {{ amount }}"},GNF:{SYMBOL:"FG",CURRENCY_FORMAT:"FG {{ amount_with_comma_separator }}"},GTQ:{SYMBOL:"Q",CURRENCY_FORMAT:"Q{{ amount }}"},GYD:{SYMBOL:"G$",CURRENCY_FORMAT:"G${{ amount }}"},HKD:{SYMBOL:"HK$",CURRENCY_FORMAT:"HK${{ amount }}"},HNL:{SYMBOL:"L",CURRENCY_FORMAT:"L {{ amount }}"},HRK:{SYMBOL:"kn",CURRENCY_FORMAT:"{{ amount_with_comma_separator }} kn"},HTG:{SYMBOL:"G",CURRENCY_FORMAT:"G {{ amount }}"},HUF:{SYMBOL:"Ft",CURRENCY_FORMAT:"{{ amount }} Ft"},IDR:{SYMBOL:"Rp",CURRENCY_FORMAT:"Rp {{ amount_with_comma_separator }}"},ILS:{SYMBOL:"NIS",CURRENCY_FORMAT:"{{ amount }} NIS"},INR:{SYMBOL:"Rs.",CURRENCY_FORMAT:"Rs. {{ amount }}"},ISK:{SYMBOL:"kr",CURRENCY_FORMAT:"{{ amount_no_decimals_with_comma_separator }} kr"},JMD:{SYMBOL:"$",CURRENCY_FORMAT:"${{ amount }}"},KES:{SYMBOL:"KSh",CURRENCY_FORMAT:"KSh{{ amount }}"},KGS:{SYMBOL:"\u043b\u0432",CURRENCY_FORMAT:"\u043b\u0432{{ amount }}"},KHR:{SYMBOL:"KHR",CURRENCY_FORMAT:"KHR{{ amount }}"},KMF:{SYMBOL:"CF",CURRENCY_FORMAT:"{{ amount_no_decimals_with_comma_separator }} CF"},KRW:{SYMBOL:"\u20a9",CURRENCY_FORMAT:"\u20a9{{ amount_with_comma_separator }}"},KYD:{SYMBOL:"$",CURRENCY_FORMAT:"${{ amount }}"},KZT:{SYMBOL:"KZT",CURRENCY_FORMAT:"{{ amount }} KZT"},LAK:{SYMBOL:"\u20ad",CURRENCY_FORMAT:"\u20ad{{ amount }}"},LBP:{SYMBOL:"L\xa3",CURRENCY_FORMAT:"L\xa3{{ amount }}"},LRD:{SYMBOL:"L$",CURRENCY_FORMAT:"L${{ amount }}"},LSL:{SYMBOL:"M",CURRENCY_FORMAT:"M{{ amount }}"},MAD:{SYMBOL:"Dh",CURRENCY_FORMAT:"Dh {{ amount }}"},MDL:{SYMBOL:"MDL",CURRENCY_FORMAT:"{{ amount }} MDL"},MKD:{SYMBOL:"\u0434\u0435\u043d",CURRENCY_FORMAT:"\u0434\u0435\u043d {{ amount }}"},MMK:{SYMBOL:"K",CURRENCY_FORMAT:"K{{ amount }}"},MNT:{SYMBOL:"\u20ae",CURRENCY_FORMAT:"{{ amount }} \u20ae"},MOP:{SYMBOL:"MOP$",CURRENCY_FORMAT:"MOP${{ amount }}"},MVR:{SYMBOL:"Rf",CURRENCY_FORMAT:"Rf{{ amount }}"},MWK:{SYMBOL:"Mk",CURRENCY_FORMAT:"Mk{{ amount }}"},MXN:{SYMBOL:"$",CURRENCY_FORMAT:"$ {{ amount }}"},MYR:{SYMBOL:"RM",CURRENCY_FORMAT:"RM{{ amount }}"},MZN:{SYMBOL:"Mt",CURRENCY_FORMAT:"{{ amount }} Mt"},NAD:{SYMBOL:"N$",CURRENCY_FORMAT:"N${{ amount }}"},NGN:{SYMBOL:"\u20a6",CURRENCY_FORMAT:"\u20a6{{ amount }}"},NIO:{SYMBOL:"C$",CURRENCY_FORMAT:"C${{ amount }}"},NOK:{SYMBOL:"kr",CURRENCY_FORMAT:"{{ amount_with_comma_separator }} kr"},NZD:{SYMBOL:"$",CURRENCY_FORMAT:"${{ amount }}"},JPY:{SYMBOL:"\xa5",CURRENCY_FORMAT:"\xa5{{amount}}"},PHP:{SYMBOL:"\u20b1",CURRENCY_FORMAT:"\u20b1{{amount}}"},CAD:{SYMBOL:"$",CURRENCY_FORMAT:"${{amount}}"},ALL:{SYMBOL:"Lek",CURRENCY_FORMAT:"Lek {{amount}}"},AOA:{SYMBOL:"Kz",CURRENCY_FORMAT:"Kz{{amount}}"},AMD:{SYMBOL:"AMD",CURRENCY_FORMAT:"{{amount}} AMD"},ARS:{SYMBOL:"$",CURRENCY_FORMAT:"${{amount_with_comma_separator}}"},AUD:{SYMBOL:"$",CURRENCY_FORMAT:"${{amount}}"},AWD:{SYMBOL:"Afl",CURRENCY_FORMAT:"Afl{{amount}}"},BBD:{SYMBOL:"$",CURRENCY_FORMAT:"${{amount}}"},BBT:{SYMBOL:"Tk",CURRENCY_FORMAT:"Tk {{amount}}"},DZD:{SYMBOL:"DA",CURRENCY_FORMAT:"DA {{amount}}"},EUR:{SYMBOL:"\u20ac",CURRENCY_FORMAT:"\u20ac{{ amount_with_comma_separator }}"},LKR:{SYMBOL:"Rs",CURRENCY_FORMAT:"Rs {{amount}}"},MUR:{SYMBOL:"Rs",CURRENCY_FORMAT:"Rs {{amount}}"},NPR:{SYMBOL:"Rs",CURRENCY_FORMAT:"Rs{{amount}}"},PKR:{SYMBOL:"Rs.",CURRENCY_FORMAT:"Rs.{{amount}}"},SCR:{SYMBOL:"Rs",CURRENCY_FORMAT:"Rs {{amount}}"},USD:{SYMBOL:"$",CURRENCY_FORMAT:"${{amount}}"},TWD:{SYMBOL:"$",CURRENCY_FORMAT:"${{amount}}"},SGD:{SYMBOL:"$",CURRENCY_FORMAT:"${{amount}}"}};(window.qb.datastore!==undefined&&window.qb.datastore.shop!==undefined&&window.qb.datastore.shop.show_express_checkout_buttons===undefined||window.qb.datastore!==undefined&&window.qb.datastore.shop!==undefined&&!window.qb.datastore.shop.show_express_checkout_buttons)&&r(),k.prototype.track=function(t,e,i){return function(){if(i)return e.apply(this,arguments),t.apply(this,arguments);var n=t.apply(this,arguments);return e.apply(this,arguments),n}},k.prototype.setup=function(t){history.pushState=this.track(history.pushState,t),history.replaceState=this.track(history.replaceState,t),window.addEventListener("popstate",t)},t(document).ready(function(){ot(window.qb)&&"undefined"==typeof window.qb.running&&(window.qb.running=!0,v()?rt():w())})})};with(window)hasQBLoaded=!1;"undefined"==typeof jQuery||parseFloat(jQuery.fn.jquery)<1.7?loadScript("//ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js",function(){var t=jQuery.noConflict(!0);myFrontendJavascriptQB(t),hasQBLoaded=!0}):(myFrontendJavascriptQB(jQuery),hasQBLoaded=!0);