(()=>{"use strict";var e=jQuery,t=e("body"),i=function(t){var i;if(void 0!==e.fn.block){var r="#fff center center no-repeat";"undefined"!=typeof yith_wcan_shortcodes&&null!==(i=yith_wcan_shortcodes)&&void 0!==i&&i.loader&&(r="url('".concat(yith_wcan_shortcodes.loader,"') ").concat(r)),t.block({message:null,overlayCSS:{background:r,opacity:.7}})}},r=function(t){void 0!==e.fn.unblock&&t.unblock()};function n(e){return n="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},n(e)}function a(e,t){for(var i=0;i1&&(s+=i),s}},{key:"searchAlternativeUrl",value:function(e){var t,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return-1===e.indexOf("yith_wcan:sharing_url")?i:i=(t=e.match(//))&&1 in t?t[1]:i}},{key:"pushUrlToHistory",value:function(e,t,i,r){if(yith_wcan_shortcodes.change_browser_url&&!navigator.userAgent.match(/msie/i)){var n="pushState";r&&(n="replaceState"),window.history[n]({_yithWcan:!0,pageTitle:t,filters:i},"",e)}}},{key:"refreshFragments",value:function(t,i,r){var n=document.createElement("html"),a=e(n);if(n.innerHTML=r,t){var o,l=e(i),s=e(t);l.length&&(o=a.find(i)).length&&l.replaceWith(o.first()),s.length&&(o=a.find(t)).length&&s.replaceWith(o.first())}else{var c=e(yith_wcan_shortcodes.content);c.length?c.replaceWith(a.find(yith_wcan_shortcodes.content)):e("body").replaceWith(a.find("body"))}e(document).trigger("yith_wcan_init_shortcodes")}},{key:"_cleanParam",value:function(e){var t,i;return null===(t=yith_wcan_shortcodes)||void 0===t||!t.process_sanitize||null!==(i=yith_wcan_shortcodes)&&void 0!==i&&i.skip_sanitize?e:encodeURIComponent(e)}},{key:"_doAjax",value:function(t,i){return this.xhr&&this.xhr.abort(),i=e.extend({url:t,headers:{"X-YITH-WCAN":1}},i),this.xhr=e.ajax(i),this.xhr}},{key:"block",value:function(e){return i(e)}},{key:"unblock",value:function(e){return r(e)}},{key:"isFilterParam",value:function(t){var i,r=["rating_filter","min_price","max_price","price_ranges","onsale_filter","instock_filter","featured_filter","orderby","product-page",yith_wcan_shortcodes.query_param];return(i=e(document).triggerHandler("yith_wcan_supported_filters_parameters",[r]))&&(r=i),-1!==(r=r.concat(yith_wcan_shortcodes.supported_taxonomies.map((function(e){return e.replace("pa_","filter_")})))).indexOf(t)||-1!==t.indexOf("filter_")||-1!==t.indexOf("query_type_")}}],s&&a(l.prototype,s),c&&a(l,c),Object.defineProperty(l,"prototype",{writable:!1}),l;var l,s,c}();function c(e){return c="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},c(e)}function u(e,t){for(var i=0;ie.length)&&(t=e.length);for(var i=0,r=Array(t);i=0;--a){var o=this.tryEntries[a],l=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev=0;--i){var n=this.tryEntries[i];if(n.tryLoc<=this.prev&&r.call(n,"finallyLoc")&&this.prev=0;--t){var i=this.tryEntries[t];if(i.finallyLoc===e)return this.complete(i.completion,i.afterLoc),E(i),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var i=this.tryEntries[t];if(i.tryLoc===e){var r=i.completion;if("throw"===r.type){var n=r.arg;E(i)}return n}}throw Error("illegal catch attempt")},delegateYield:function(t,i,r){return this.delegate={iterator:L(t),resultName:i,nextLoc:r},"next"===this.method&&(this.arg=e),g}},t}function g(e,t,i,r,n,a,o){try{var l=e[a](o),s=l.value}catch(e){return void i(e)}l.done?t(s):Promise.resolve(s).then(r,n)}function _(e){return function(){var t=this,i=arguments;return new Promise((function(r,n){var a=e.apply(t,i);function o(e){g(a,r,n,o,l,"next",e)}function l(e){g(a,r,n,o,l,"throw",e)}o(void 0)}))}}function b(e,t){for(var i=0;i",{class:"yith-wcan-dropdown closed"}),i=e("
",{class:"dropdown-label",html:this.getLabel()}),r=e("
",{class:"dropdown-wrapper"}),n=e("