// source --> https://dev.nonnasontwerp.co.za/wp-content/plugins/product-add-ons-woocommerce/assets/scripts/product.js?ver=2.1.38 
!function(t){var n={};function e(a){if(n[a])return n[a].exports;var o=n[a]={i:a,l:!1,exports:{}};return t[a].call(o.exports,o,o.exports,e),o.l=!0,o.exports}e.m=t,e.c=n,e.d=function(t,n,a){e.o(t,n)||Object.defineProperty(t,n,{enumerable:!0,get:a})},e.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},e.t=function(t,n){if(1&n&&(t=e(t)),8&n)return t;if(4&n&&"object"==typeof t&&t&&t.__esModule)return t;var a=Object.create(null);if(e.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:t}),2&n&&"string"!=typeof t)for(var o in t)e.d(a,o,function(n){return t[n]}.bind(null,o));return a},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},e.p="",e(e.s=234)}({234:function(t,n,e){e(235),t.exports=e(236)},235:function(t,n,e){"use strict";e.r(n),function(t){var n=e(86);function a(){Object(n.a)();var e=ZAddons,a=e.numberOfDecimals,o=e.displayProductLine,i=e.adminAjax,d=null,r=t(".variations").length>0,c=t(".variations_form.cart"),s=null,u=t("#zaddon_base_price"),l=t("div.quantity input.qty");function f(){var n=0,e=t(".zaddon_data");if(e.hide(),!r||null!==s||"only_with_add_ons"!==o){var a=l.length?l.val():1;d.each((function(){var e=0;switch(t(this).data("type")){case"select":e+=t(this).find("option:selected").data("price")?t(this).find("option:selected").data("price"):0;break;case"radio":case"checkbox":t(this).is(":checked")&&(e+=t(this).data("price"));break;case"text":default:t(this).val().length>0&&(e+=t(this).data("price"))}switch(t(this).data("value-type")){case"custom":e+=Number(t(this).val());break;case"custom_percent":e+=h(p()*Number(t(this).val())/100);break;case"subtotal_percent":e=h(p()*e/100)}var o=t(this).closest(".zaddon_option").find(".zaddon_quantity_input").val();n+=o?o*e:a*e})),t(".zaddon_additional span").html(_(n));var i=t(".zaddon_total span"),c=p()*a;t(".zaddon_subtotal span").html(_(c)),i.html(_(c+n)),t(".zaddon-type-container").length,e.trigger("zaUpdateInfo"),e.show()}}function p(){var t=null===s?0:s.display_price;return r?t:+u.val()}function h(t){return Math.round(t*Math.pow(10,a))/Math.pow(10,a)}function v(t){setTimeout((function(){t.off("change",f),t.on("change",f)}),400)}function _(n){return Intl&&t("#zaddon_locale").val()?new Intl.NumberFormat(t("#zaddon_locale").val().replace("_","-"),{style:"currency",currency:t("#zaddon_currency").val(),minimumFractionDigits:a}).format(n):n.toFixed(2)}function z(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:".zaddon-type-container";(d=t(".zaddon-type-container").find("input:not([type=hidden]):not(.zaddon-additional), select, .dd-selected-value")).on("change",f),t(n).on("click",".zaddon-open",(function(n){n.preventDefault();var e=t(this).parents(".zaddon-type-container");e.toggleClass("zaddon_closed"),e.find(".zaddon_hide_on_toggle").toggleClass("zaddon_hide");var a=e.hasClass("zaddon_closed")?t(this).data("open"):t(this).data("close");t(this).html(a)}))}function m(){t(".za-variation-section").remove()}z(),c.on("found_variation",(function(n,e){s=e,window.setTimeout((function(){if(s&&s.variation_id){m();var n=t(".zaddon-type-container"),e={action:"get_variation_section",applied_ids:t.map(n,(function(n){return t(n).data("id")})),variation_id:s&&s.variation_id};t.get(i,e,(function(n){n=JSON.parse(n);var e=t('<div class="za-variation-section">').append(n.section).append("</div>");t(e).insertBefore(".zaddon_data"),f(),z(".za-variation-section")})).fail((function(t){console.log(t)}))}f()}),40)})),c.on("hide_variation",(function(t){s=null,m(),window.setTimeout((function(){f()}),40)})),window.update_info=f(),l.on("change",f),u.on("change",f),t(".zaddon_select").each((function(){var n=t(this);new MutationObserver((function(t){t.forEach((function(t){var e,a;e=t.addedNodes,a="zaddon_quantity",e&&Object.values(e).some((function(t){return t.classList&&t.classList.contains(a)}))&&v(n.find(".zaddon_quantity_input"))}))})).observe(this,{attributes:!0,childList:!0,characterData:!0})})),t(".variations select").on("change",(function(){window.setTimeout((function(){f()}),40)})),v(t(".zaddon_quantity_input")),f(),window.formatPrice=_}t(document).on("ready",a),window.zaProductInit=a}.call(this,e(81))},236:function(t,n,e){},81:function(t,n){t.exports=jQuery},86:function(t,n,e){"use strict";(function(t){function a(){t(".zaddon_select select").each((function(){var n=t(this),e=!0;n.on("change",(function(){var t=n.find(":checked"),a=t.data("description"),i=t.data("is-tooltip-description"),d=n.parent().find(".za-tooltip"),r=d.find(".za-tooltip__control"),c=d.find(".za-tooltip__body");o(n),i&&a?(d.removeClass("za-tooltip_shown").show().addClass("za-tooltip_shown"),r.attr("aria-label",a),c.text(a)):e&&a?(d.hide().removeClass("za-tooltip_shown"),n.parent().append('<p class="zaddon-option-description">'.concat(a,"</p>"))):(d.hide().removeClass("za-tooltip_shown"),o(n))})).on("zaCustomSelectReady",(function(){e=!1,o(t(this))}))}))}function o(t){t.parent().find(".zaddon-option-description").remove()}e.d(n,"a",(function(){return a}))}).call(this,e(81))}});