function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _regeneratorRuntime(){"use strict";_regeneratorRuntime=function(){return i};var c,i={},e=Object.prototype,l=e.hasOwnProperty,d=Object.defineProperty||function(e,n,t){e[n]=t.value},n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",t=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function o(e,n,t){return Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}),e[n]}try{o({},"")}catch(c){o=function(e,n,t){return e[n]=t}}function s(e,n,t,r){var a,o,i,s,n=n&&n.prototype instanceof b?n:b,n=Object.create(n.prototype),r=new E(r||[]);return d(n,"_invoke",{value:(a=e,o=t,i=r,s=h,function(e,n){if(s===y)throw Error("Generator is already running");if(s===m){if("throw"===e)throw n;return{value:c,done:!0}}for(i.method=e,i.arg=n;;){var t=i.delegate;if(t){t=function e(n,t){var r=t.method,a=n.iterator[r];if(a===c)return t.delegate=null,"throw"===r&&n.iterator.return&&(t.method="return",t.arg=c,e(n,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),p;r=u(a,n.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,p;a=r.arg;return a?a.done?(t[n.resultName]=a.value,t.next=n.nextLoc,"return"!==t.method&&(t.method="next",t.arg=c),t.delegate=null,p):a:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,p)}(t,i);if(t){if(t===p)continue;return t}}if("next"===i.method)i.sent=i._sent=i.arg;else if("throw"===i.method){if(s===h)throw s=m,i.arg;i.dispatchException(i.arg)}else"return"===i.method&&i.abrupt("return",i.arg);s=y;t=u(a,o,i);if("normal"===t.type){if(s=i.done?m:f,t.arg===p)continue;return{value:t.arg,done:i.done}}"throw"===t.type&&(s=m,i.method="throw",i.arg=t.arg)}})}),n}function u(e,n,t){try{return{type:"normal",arg:e.call(n,t)}}catch(e){return{type:"throw",arg:e}}}i.wrap=s;var h="suspendedStart",f="suspendedYield",y="executing",m="completed",p={};function b(){}function v(){}function g(){}var n={},w=(o(n,r,function(){return this}),Object.getPrototypeOf),w=w&&w(w(P([]))),_=(w&&w!==e&&l.call(w,r)&&(n=w),g.prototype=b.prototype=Object.create(n));function k(e){["next","throw","return"].forEach(function(n){o(e,n,function(e){return this._invoke(n,e)})})}function C(i,s){var n;d(this,"_invoke",{value:function(t,r){function e(){return new s(function(e,n){!function n(e,t,r,a){var o,e=u(i[e],i,t);if("throw"!==e.type)return(t=(o=e.arg).value)&&"object"==_typeof(t)&&l.call(t,"__await")?s.resolve(t.__await).then(function(e){n("next",e,r,a)},function(e){n("throw",e,r,a)}):s.resolve(t).then(function(e){o.value=e,r(o)},function(e){return n("throw",e,r,a)});a(e.arg)}(t,r,e,n)})}return n=n?n.then(e,e):e()}})}function x(e){var n={tryLoc:e[0]};1 in e&&(n.catchLoc=e[1]),2 in e&&(n.finallyLoc=e[2],n.afterLoc=e[3]),this.tryEntries.push(n)}function L(e){var n=e.completion||{};n.type="normal",delete n.arg,e.completion=n}function E(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(x,this),this.reset(!0)}function P(n){if(n||""===n){var t,e=n[r];if(e)return e.call(n);if("function"==typeof n.next)return n;if(!isNaN(n.length))return t=-1,(e=function e(){for(;++t')}),l(document.body).on("added_to_cart",function(e,n,t,r){l(r).find(".brandy-loader").remove(),l(r).prop("disabled",!1)})})}(window.jQuery),function(r){r(document).ready(function(){r(document.body).on("wc_fragments_refreshed added_to_cart removed_from_cart",function(e,n){var t=n;if(null==n){if(null==window.sessionStorage||null==window.wc_cart_fragments_params)return;if(null==window.sessionStorage[window.wc_cart_fragments_params.fragment_name])return;t=JSON.parse(window.sessionStorage[window.wc_cart_fragments_params.fragment_name])}r(".brandy-mini-cart").html(t["div.widget_shopping_cart_content"]),r(".brandy-cart-qtybadge").html(t.count||"")})})}(window.jQuery),function(e){e(document).ready(function(){e(".single-comment__detail__action .reply-btn").on("click",function(){e(this).closest(".single-comment").find(".single-comment__reply-form").show()})})}(window.jQuery),function(e){e("document").ready(function(){e("head").append(""))})}(window.jQuery),function(i){i(document).ready(function(){i(".brandy-subscribe-box__action-send-mail").on("click",function(e){e.preventDefault(),e.stopPropagation();var e=i(".brandy-subscribe-box__input").val(),o=i(".brandy-subscribe-box__action-send-mail");o.addClass("loading"),i.ajax({url:window.brandyData.ajax.path,method:"POST",data:{email:e,action:"brandy_send_subscribe_mail",nonce:window.brandyData.ajax.nonces.send_subscribe_mail},success:function(e){var n,t,r,a;e.success&&(o.removeClass("loading"),n=(null==e||null==(n=e.data)?void 0:n.message)||"",e=(null==e||null==(e=e.data)?void 0:e.success)||!1?"#7ED321":"#FF0000",t="\n
\n
\n \n ").concat(n,"\n
\n
\n "),(r=i("body")).css({position:"relative"}),((a=i("#send-mail-message")).length<1?(r.append(t),i("#send-mail-message")):(i(".send-mail-message-icon").attr("fill",e),a.find(".send-mail-message-content").html(n),a)).fadeIn("slow"),setTimeout(function(){i("#send-mail-message").fadeOut("slow")},4e3))},error:function(e){o.removeClass("loading"),console.log(e)}})})})}(jQuery),function(a){a("document").ready(function(){var e="".concat([1,2,3,4,5].map(function(e){return'\t\t\t\t\n\t\t\t')}).join(""));a("#brandy-rating .brandy-ratings__stars").html(e),a(".comment-form-author input").attr("placeholder","Enter your fullname"),a(".comment-form-email input").attr("placeholder","Enter your email"),a(document).on("click","#brandy-rating > .brandy-ratings__stars > label",function(){var t=a(this).find("input[type='radio']").val();a(this).closest("#brandy-rating").find(".star-item").each(function(e,n){e\n .woocommerce-product-gallery__trigger::after {\n background-image: url(".concat(window.brandyData.urls.assets+"/images/zoom-icon.png",")\n }\n "))})}(window.jQuery),function(o){o(document).ready(function(){o(document.body).on("click",".brandy-add-to-wishlist-btn:not(.disabled)",function(){var e,r,n=this,t=null!=(a=o(this).attr("data-product-id"))?a:"",a=null!=(a=o(this).attr("data-nonce"))?a:"";o(this).hasClass("adding")||(o(".brandy-wishlist-shortcode-loading").css("display","flex"),o(this).addClass("adding"),e=a,r=new URLSearchParams({product_id:t}),new Promise(function(n,t){o.ajax({url:window.brandyData.ajax.path+"?".concat(r.toString()),type:"GET",data:{action:"brandy_add_to_wishlist",nonce:e},success:function(e){e.success&&n(e.data),t(!1)},error:function(){t(!1)}})}).then(function(e){var n;e&&(window.dispatchEvent(new CustomEvent("brandy-reload-wishlist-shortcode",{detail:{fragments:null!=(n=e.fragments)?n:{}}})),window.dispatchEvent(new CustomEvent("brandy-reload-wishlist-fragments",{detail:{productId:t,fragments:null!=(n=e.fragments)?n:{}}})))}).finally(function(){o(n.element).removeClass("adding"),o(".brandy-wishlist-shortcode-loading").hide()}))}),o(document.body).on("click",".brandy-wishlist-item-remove",function(e){var r,a,n=this,t=null!=(e=o(e.currentTarget).attr("data-product-id"))?e:"";o(this).closest(".brandy-wishlist-drawer__item").addClass("removing"),e=t,r=new URLSearchParams({product_id:e}),a=null!=(e=null==(e=o(".brandy-wishlist-shortcode").find("input[name='brandy-remove-wishlist-nonce']").val())?void 0:e.toString())?e:"",new Promise(function(n,t){o.ajax({url:window.brandyData.ajax.path+"?".concat(r.toString()),type:"GET",data:{action:"brandy_remove_wishlist_item",nonce:a},success:function(e){e.success&&n(e.data),t(!1)},error:function(){t(!1)}})}).then(function(e){var n;window.dispatchEvent(new CustomEvent("brandy-reload-wishlist-shortcode",{detail:{fragments:null!=(n=e.fragments)?n:{}}})),window.dispatchEvent(new CustomEvent("brandy-reload-wishlist-fragments",{detail:{productId:t,fragments:null!=(n=e.fragments)?n:{}}}))}).finally(function(){o(n).closest(".brandy-wishlist-drawer__item").removeClass("removing")})}),window.addEventListener("brandy-reload-wishlist-shortcode",function(e){e=e.detail.fragments,o(".brandy-wishlist-shortcode").replaceWith(null!=(e=e.wishlist_shortcode)?e:"")}),window.addEventListener("brandy-reload-wishlist-fragments",function(e){var n,t;n=e.detail.productId,e=e.detail.fragments,o(".brandy-add-to-wishlist-fragment[data-product-id='".concat(n,"']")).replaceWith(null!=(t=e.wishlist_atw_fragment)?t:""),o(".brandy-wishlist-floating-fragment[data-product-id='".concat(n,"']")).replaceWith(null!=(t=e.wishlist_floating_fragment)?t:""),o(".brandy-wishlist-element .brandy-count-badge").text(e.count||"")})})}(window.jQuery),function(i){i(document).ready(function(){function t(){var o=0r+t?(o(n).addClass("is-stickying"),o(n).closest(".header-within-device").addClass("sticky-start")):(window.scrollY<=a||0==window.scrollY)&&(o(n).removeClass("is-stickying"),o(n).closest(".header-within-device").removeClass("sticky-start"))})}window.addEventListener("scroll",function(){e()}),e(),o(document).on("click",".header-expand",function(e){e.stopPropagation(),e.preventDefault(),o("#brandy-top-header .header-container").toggleClass("expand")})})}(window.jQuery),function(t){t(document).ready(function(){t(document).on("click",".brandy-lang-switcher-element .brandy-lang-switcher__placeholder",function(){t(this).toggleClass("opened"),t(this).hasClass("opened")&&window.dispatchEvent(new CustomEvent("brandy-language-switcher-opened",{detail:{activator:this}}))}),t(document).on("click",function(e){var n=t(".brandy-lang-switcher-element .brandy-lang-switcher__placeholder");n.has(e.target).length<=0&&!n.is(e.target)&&n.removeClass("opened")}),t(document).on("click",".brandy-lang-switcher-element .brandy-lang-option",function(){t(".brandy-lang-switcher-element .brandy-lang-option").removeClass("selected"),t(this).addClass("selected"),t(".brandy-lang-switcher__placeholder .brandy-lang-flag").replaceWith(t(this).find(".brandy-lang-flag").clone()),t(".brandy-lang-switcher__placeholder .brandy-lang-name").replaceWith(t(this).find(".brandy-lang-name").clone())}),t(window).on("brandy-language-switcher-opened",function(e){var e=t(e.detail.activator).parent(),n=t(e).find(".brandy-lang-options"),e=0More'));for(var t,r,a=l(t);;)if(r=function(){var t=[],e=l(n).find(".brandy-menu-items").children(".brandy-menu__item"),r=n.offsetLeft+n.offsetWidth;if(e.each(function(e,n){0!=e&&Math.ceil(n.offsetLeft+n.offsetWidth)-10>r&&(l(n).is(".more-options")?((e=l(n).prev()).addClass("brandy-sub-menu__item"),t.push(e)):(n.classList.add("brandy-sub-menu__item"),t.push(n)))}),t.forEach(function(e){a.children(".brandy-sub-menu").append(e)}),0').scrollTop(r(this.element).find(".brandy-live-result__content")[0].scrollHeight)}},{key:"stopLoading",value:function(){r(this.element).find(".brandy-result-placeholder").remove(),r(this.element).find(".brandy-loader-2").remove()}},{key:"mapDataToContent",value:function(e){r(this.element).find(".brandy-live-result__content").append(e)}},{key:"clearResult",value:function(){r(this.element).find(".brandy-live-result__content").html("")}},{key:"fetchPosts",value:(t=_asyncToGenerator(_regeneratorRuntime().mark(function e(n){var t;return _regeneratorRuntime().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t=new URLSearchParams(n),e.abrupt("return",new Promise(function(n){a=r.ajax({url:window.brandyData.ajax.path+"?".concat(t.toString()),type:"GET",data:{action:"brandy_search"},success:function(e){e.success&&n(null!=(e=null==(e=e.data)?void 0:e.html)?e:""),n("")}})}));case 2:case"end":return e.stop()}},e)})),function(e){return t.apply(this,arguments)})},{key:"onSearch",value:(n=_asyncToGenerator(_regeneratorRuntime().mark(function e(n){var t,r,a,o,i;return _regeneratorRuntime().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t=n.s,r=n.post_types,a=n.offset,o=n.limit,i=n.showMore,i=void 0!==i&&i,this.openLiveResult(),i||this.clearResult(),this.loading(),e.next=6,this.fetchPosts({s:t,post_types:r,offset:a,limit:o});case 6:i=e.sent,this.mapDataToContent(i),this.stopLoading();case 9:case"end":return e.stop()}},e,this)})),function(e){return n.apply(this,arguments)})},{key:"onSubmit",value:function(e){e.preventDefault(),e.stopPropagation();var n=new FormData(e.target).get("search_value"),e=null!=(e=r(e.target).attr("search-criteria"))?e:"",t={s:n,post_types:e,offset:0..toString(),limit:this.limit.toString()};this.hasLiveResult?(this.isIcon&&this.openLiveResult(),null!=n&&""!=n&&this.onSearch(t)):window.location.href=window.location.origin+"/?s=".concat(n,"&post_type=").concat(""!=e?e:"any")}},{key:"onShowMore",value:function(){var e,n,t=r(o);t.length<=0||(e=new FormData(t[0]).get("search_value"),t=null!=(t=r(t[0]).attr("search-criteria"))?t:"",n=r(".brandy-live-result__content .brandy-result-item").length||0,this.onSearch({s:e,post_types:t,offset:n.toString(),limit:this.limit.toString(),showMore:!0}))}},{key:"searchBySuggestion",value:function(e){var n,e=e.target.dataset.value,e=(r(".brandy-search-box__input").val(e),r(o));e.length<=0||(n=new FormData(e[0]).get("search_value"),e=null!=(e=r(e[0]).attr("search-criteria"))?e:"",this.onSearch({s:n,post_types:e,offset:0..toString(),limit:this.limit.toString()}))}},{key:"parentSubmit",value:function(e){e.stopPropagation(),e.preventDefault(),r(this).parent().submit()}},{key:"createHandlers",value:function(){this.closeLiveResultHandler=this.closeLiveResult.bind(this),this.submitHandler=this.onSubmit.bind(this),this.showMoreHandler=this.onShowMore.bind(this),this.searchBySuggestionHandler=this.searchBySuggestion.bind(this),this.onEscEvent=this.onEsc.bind(this)}},{key:"onEsc",value:function(e){"Escape"===e.key&&this.closeLiveResult()}},{key:"main",value:function(){r(this.element).find(o+" button[type='submit']").on("click",this.parentSubmit),r(this.element).find(o).on("submit",this.submitHandler),r(document).on("keyup",".brandy-search-box__input",function(e){r(".brandy-search-box__input").val(e.target.value)}),r(document).on("focus",".brandy-search-box__input",function(){r(".brandy-search-box").addClass("focused")}),r(document).on("focusout",".brandy-search-box__input",function(){r(".brandy-search-box").removeClass("focused")}),r(this.element).find(".brandy-live-result__suggestions__item").on("click",this.searchBySuggestionHandler)}},{key:"removeListeners",value:function(){r(this.element).find(o+" button[type='submit']").off("click",this.parentSubmit),r(this.element).find(o).off("submit",this.submitHandler),r(this.element).find(".brandy-live-result__suggestions__item").off("click",this.searchBySuggestionHandler)}}]);var n,t}();function t(){var e=[];return r(".brandy-search-element .brandy-element-wrapper").each(function(){e.push(new n(this))}),e}r(document).ready(function(){var e=t();window.addEventListener("partials-refreshed",function(){e.forEach(function(e){e.removeListeners()}),e=t()})})}(window.jQuery),function(o){function e(){o("body").removeClass("toc-opened")}function n(e){o("body").toggleClass("toc-opened"),o("body").hasClass("toc-opened")&&window.dispatchEvent(new CustomEvent("brandy-canvas-opened"))}o(document).ready(function(){o(document).on("click",".brandy-toggle-button-element .brandy-toggle-button",n),o(document).on("click",".brandy-toc-close-icon, .brandy-toc-backdrop",e)}),o(window).on("brandy-canvas-opened",function(){var e,n,t,r,a;e=o("[device='mobile'] .brandy-toggle-button-element"),n=o("[device='mobile'] #toggle-off-canvas"),t=n.find(".brandy-toc-panel"),r=(e=e.closest(".brandy-child-header")).closest(".sticky-part"),a=e.position().top,0