// source --> https://polor.pl/wp-content/plugins/woocommerce-product-filters/assets/js/plugin.min.js?ver=1.2.0 
!function(n){var o={};function r(t){if(o[t])return o[t].exports;var e=o[t]={i:t,l:!1,exports:{}};return n[t].call(e.exports,e,e.exports,r),e.l=!0,e.exports}r.m=n,r.c=o,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:n})},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="/",r(r.s=183)}([,function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(16),r=(i.prototype.initialProperties=function(){},i.prototype.getInitialSubpackages=function(){return[]},i);function i(){this.componentList=new Set,this.subpackageList=new Set,this.collectAfter=new o.default}e.default=r},,,,,,,function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return jQuery(t)}},,,,,function(t,e,n){"use strict";var o,r=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var i,a=n(34),l=(i=a.default,r(s,i),Object.defineProperty(s.prototype,"prototypes",{get:function(){return{component:this.app.objectContainer.get("Filter/Component/Prototypes"),urlNavigation:this.app.objectContainer.get("Project/URLNavigation/Prototypes")}},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"register",{get:function(){return{components:this.app.objectContainer.get("Filter/Components"),entityTypes:this.app.objectContainer.get("Entity/Register"),productsQueryVars:this.app.objectContainer.get("ProductsQueryVars"),productsLoopProperties:this.app.objectContainer.get("ProductsLoopProperties")}},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"builders",{get:function(){return{component:this.app.componentRegister.get("Filter/Builder/Component")}},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"componentBuilder",{get:function(){return this.app.objectContainer.get("ComponentBuilder")},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"entityCollector",{get:function(){return this.app.componentRegister.get("Entity/Collector")},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"localizedMessages",{get:function(){return this.app.objectContainer.get("Messages")},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"appSelectors",{get:function(){return this.app.objectContainer.get("Selectors")},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"filterPackage",{get:function(){return this.app.packageRegister.get("Filter/Package")},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"wooData",{get:function(){return this.app.objectContainer.get("WooData")},enumerable:!0,configurable:!0}),s);function s(){return null!==i&&i.apply(this,arguments)||this}e.default=l},,function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){return jQuery.extend(t,e)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=(r.prototype.subscribe=function(t,e){!e&&this.defaultContext&&(e=this.defaultContext),e=e||t;var n=this,o={callback:t,event:n,unsubscribe:function(){n.unsubscribe(t)}};return this.callbacks.push({callback:t,subscriber:e}),o},r.prototype.unsubscribe=function(t,e){!e&&this.defaultContext&&(e=this.defaultContext),e=e||t;for(var n=[],o=0;o<this.callbacks.length;o++)this.callbacks[o].callback!==t&&this.callbacks[o].subscriber!==e&&n.push(this.callbacks[o]);this.callbacks=n},r.prototype.trigger=function(t,e){for(var n=0;n<this.callbacks.length;n++)this.callbacks[n].callback.apply(this.callbacks[n].subscriber,[t,e])},r);function r(){this.defaultContext=null,this.callbacks=[]}e.default=o},,,,,,,,function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){return jQuery.proxy(t,e)}},,,,,,,,,,function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(98),r=(Object.defineProperty(i.prototype,"app",{get:function(){return this.package.app},enumerable:!0,configurable:!0}),i.prototype.initialProperties=function(){},i);function i(t){this.eventManager=t||new o.default(this)}e.default=r},,,,,,,,function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(100),r=n(101),i=(a.prototype.has=function(t){return void 0!==r.default(this.container,t)},a.prototype.get=function(t){return r.default(this.container,t)},a.prototype.set=function(t,e){var n=this.has(t)?this.get(t):null;r.default(this.container,t,e),"string"==typeof t&&t.split(".").length&&(t=t.split(".")[0]),this.observable.notify(t,e,n)},a);function a(t){this.observable=new o.default,t&&(this.container=t)}e.default=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return JSON.parse(JSON.stringify(t))}},function(t,e,n){"use strict";var o,r=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var i,a=n(199),l=n(8),s=(i=a.default,r(c,i),c.prototype.getFieldKey=function(){return this.getFilterKeys().field},c.prototype.getFilterKeys=function(){return{field:this.options.get("optionKey")}},c.prototype.updateValueFromElement=function(t){var e=this.getFieldKey();"string"==typeof t&&(e=t);var n=this.getDocumentElementValue(e);Array.isArray(n)&&!n.length||null==n||"string"==typeof n&&!n.length?this.removeFilterValue(e):this.applyFilterValue(e,n)},c.prototype.resetDocumentElementValue=function(t){this.setDocumentElementValue(t,null)},c.prototype.initialPropertiesOfElement=function(){var l=this;i.prototype.initialPropertiesOfElement.call(this),this.componentState.has("box")?"hide"==this.componentState.get("box")?(this.componentElement.addClass("wcpf-box-hide"),this.componentElement.find(".wcpf-content").slideUp(0)):(this.componentElement.removeClass("wcpf-box-hide"),this.componentElement.find(".wcpf-content").slideDown(0)):this.componentElement.hasClass("wcpf-box-style")&&this.componentElement.hasClass("wcpf-box-hide")&&this.componentElement.find(".wcpf-content").slideUp(300),this.componentElement.hasClass("wcpf-hierarchical-collapsed")&&this.componentElement.find(".wcpf-item-hierarchical-collapsed").each(function(t,e){var n=jQuery(e),o="boxItem_"+n.data("item-key"),r=n.hasClass("wcpf-item-box-hide");l.componentState.has(o)&&"hide"!=l.componentState.get(o)&&r?(n.removeClass("wcpf-item-box-hide"),n.find(".wcpf-item-children-container:first").slideDown(0)):n.find(".wcpf-item-children-container:first").css({display:r?"none":"block"})}),this.componentElement.hasClass("wcpf-scrollbar")?this.componentElement.each(function(t,e){var n=jQuery(e),o=n.find(".wcpf-content"),r="maxHeight_"+t;if(l.componentState.has(r))o.css({maxHeight:l.componentState.get(r)+"px"});else{var i=l.options.get("heightOfVisibleContent");(!i||i<=0)&&(i=12);var a=n.find(".wcpf-item-label:first").actual("height")*i;a+=2,o.css({maxHeight:a+"px"}),l.componentState.set(r,a)}}):this.componentElement.hasClass("wcpf-contain-more-button")&&!this.componentState.get("showMoreContent")&&this.componentElement.each(function(t,e){var n=jQuery(e),o=l.options.get("heightOfVisibleContent"),r=n.find(".wcpf-item"),i=n.find(".wcpf-more-button");(!o||o<=0)&&(o=12);var a=1;r.each(function(t,e){var n=jQuery(e);n.parents(".wcpf-item.wcpf-item-box-hide").length||(o<a&&n.addClass("wcpf-more-item wcpf-item-hide"),a++)}),o<a&&i.addClass("wcpf-status-active")})},c.prototype.attachElementEvents=function(t){i.prototype.attachElementEvents.call(this,t),this.componentElement.hasClass("wcpf-box-style")&&t.addElementHandler(this.componentElement,"click",".wcpf-heading-label",this.onBoxToggleClick),this.componentElement.hasClass("wcpf-hierarchical-collapsed")&&t.addElementHandler(this.componentElement.find([".wcpf-item-hierarchical-collapsed > .wcpf-item-inner > .wcpf-item-label .wcpf-title-container",".wcpf-item-hierarchical-collapsed > .wcpf-item-inner > .wcpf-item-label .box-item-toggle"].join(",")),"click",this.onItemBoxToggleClick),this.componentElement.hasClass("wcpf-contain-more-button")&&t.addElementHandler(this.componentElement.find(".wcpf-more-button"),"click",this.onMoreButtonClick)},c.prototype.onMoreButtonClick=function(t){var e=jQuery(t.currentTarget).parents(".wcpf-front-element:first"),n=e.find(".wcpf-more-item");e.hasClass("wcpf-hide-more-items")?n.addClass("wcpf-item-hide"):n.removeClass("wcpf-item-hide"),e.toggleClass("wcpf-hide-more-items"),this.componentState.set("showMoreContent",e.hasClass("wcpf-hide-more-items"))},c.prototype.onItemBoxToggleClick=function(t){var e=l.default(t.currentTarget).parents(".wcpf-item-hierarchical-collapsed:first"),n="boxItem_"+e.data("item-key");e.hasClass("wcpf-item-box-hide")?(e.find(".wcpf-item-children-container:first").slideDown(300),this.componentState.set(n,"show")):(e.find(".wcpf-item-children-container:first").slideUp(300),this.componentState.set(n,"hide")),e.toggleClass("wcpf-item-box-hide")},c.prototype.onBoxToggleClick=function(t){this.componentElement.toggleClass("wcpf-box-hide"),this.componentElement.hasClass("wcpf-box-hide")?(this.componentElement.find(".wcpf-content").slideUp(300),this.componentState.set("box","hide")):(this.componentElement.find(".wcpf-content").slideDown(300),this.componentState.set("box","show"))},c);function c(){return null!==i&&i.apply(this,arguments)||this}e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});function o(t){this.mark="",t&&(t.hasOwnProperty("filterComponent")&&(this.filterComponent=t.filterComponent),t.hasOwnProperty("filterValue")&&(this.filterValue=t.filterValue),t.hasOwnProperty("text")&&(this.text=t.text),t.hasOwnProperty("mark")&&(this.mark=t.mark))}e.default=o},,,,,,,,,,function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return jQuery(t.currentTarget)}},,,,,,,,,,function(t,e,n){"use strict";var o,r;Object.defineProperty(e,"__esModule",{value:!0}),(r=o=o||{}).remove="remove",r.virtual="virtual",r.published="published",e.default=o},function(t,e,n){"use strict";var o,r=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var i,a=n(135),l=n(42),s=(i=a.default,r(c,i),c.prototype.initialProperties=function(){this.options.container=this.entity.options,this.initialPropertiesOfElement()},c.prototype.attachEvents=function(t){this.attachElementEvents(t)},c.prototype.initialPropertiesOfElement=function(){},c.prototype.attachElementEvents=function(t){},Object.defineProperty(c.prototype,"activeComponentElement",{get:function(){if(1<this.componentElement.length){var o=this.componentElement.filter(":visible");return o.each(function(t,e){var n=jQuery(e);if("visible"==n.css("visibility"))return o=n,!1}),o}return this.componentElement},enumerable:!0,configurable:!0}),c);function c(){var t=i.call(this)||this;return t.options=new l.default,t.childFilterComponents=[],t.componentState=new Map,t}e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function t(e,n){for(var o in e){if(e.hasOwnProperty(o)!==n.hasOwnProperty(o))return!1;var r=typeof e[o];if("object"==r){if(!t(e[o],n[o]))return!1}else if("function"==r){if(void 0===n[o]||e[o].toString()!=n[o].toString())return!1}else if(e[o]!=n[o])return!1}for(var o in n)if(void 0===e[o])return!1;return!0}},,,,,,function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){for(var n="";;){var o=t.getParentEntity();if(!t.rootSelector){if(o){t=o;continue}break}if(n=0==n.length?t.rootSelector:t.rootSelector+" "+n,!o)break;t=o}return e&&(0==n.length?n=e:n+=" "+e),n}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});function o(){}e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,n){return Object.getPrototypeOf(t)===Object.getPrototypeOf(n)&&(void 0!==t.length&&t.length===n.length&&Array.prototype.every.call(t,function(t,e){return t===n[e]}))}},,,,,,,,,,,,,,,,,,function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(8),r=(Object.defineProperty(i.prototype,"bodyElement",{get:function(){return o.default(document.body)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"windowElement",{get:function(){return o.default(window)},enumerable:!0,configurable:!0}),i.prototype.initialization=function(){},i);function i(){this.objectContainer=new Map,this.componentRegister=new Map,this.packageRegister=new Map}e.default=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=n(1),o=(r.prototype.buildByClass=function(t,e,n){var o=this.createPackageByClass(t,e,n);return this.build(o,e,n)},r.prototype.build=function(t,e,n){return t.app=e,t.parentPackage=n,this.createInteraction(t,e,n),this.afterInteractionBuilding(t,e),this.packageInitialProperties(t),this.packageAttachEvents(t),t.collectAfter.trigger(t),t},r.prototype.packageAttachEvents=function(t){var e=this;t.componentList.forEach(function(t){t.attachEvents(t.eventManager)}),t.subpackageList.forEach(function(t){e.packageAttachEvents(t)})},r.prototype.packageInitialProperties=function(t){var e=this;t.initialProperties(),t.componentList.forEach(function(t){t.initialProperties()}),t.subpackageList.forEach(function(t){e.packageInitialProperties(t)})},r.prototype.createInteraction=function(n,o,t){var r=this,e=n.getInitialSubpackages(),i=n.getInitialComponents();i&&i.forEach(function(t){(t.package=n).componentList.add(t)}),e&&(e.forEach(function(t){var e=null;t instanceof a.default?((e=t).app=o,e.parentPackage=n):e=r.createPackageByClass(t,n.app,n),n.subpackageList.add(e)}),n.subpackageList.forEach(function(t){r.createInteraction(t,t.app,t.parentPackage)}))},r.prototype.createPackageByClass=function(t,e,n){if(!(t.prototype instanceof a.default))throw new TypeError('Сlass does not implement class "PackageAbstract"');var o=new t;return o.app=e,o.parentPackage=n,o},r.prototype.afterInteractionBuilding=function(t,e){var n=this;t.afterInteractionBuilding&&t.afterInteractionBuilding(e),t.componentList.size&&t.componentList.forEach(function(t){t.afterInteractionBuilding&&t.afterInteractionBuilding(e)}),t.subpackageList.size&&t.subpackageList.forEach(function(t){n.afterInteractionBuilding(t,e)})},r);function r(){}e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=(r.prototype.build=function(t,e){var n=new t;return e&&this.implementation(n,e),n},r.prototype.implementation=function(t,e){t.package=e,t.initialProperties(),t.attachEvents(t.eventManager)},r);function r(){}e.default=o},function(t,e,n){"use strict";var o,r=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var i,a=n(1),l=n(97),s=(i=a.default,r(c,i),c.prototype.initialProperties=function(){var t=new Map;this.app.objectContainer.set("Entity/Register",t)},c.prototype.getInitialComponents=function(){return[new l.default]},c);function c(){return null!==i&&i.apply(this,arguments)||this}e.default=s},function(t,e,n){"use strict";var o,r=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var i,a=n(34),l=n(15),s=n(74),c=n(65),p=(i=a.default,r(u,i),Object.defineProperty(u.prototype,"register",{get:function(){return this.app.objectContainer.get("Entity/Register")},enumerable:!0,configurable:!0}),u.prototype.initialProperties=function(){this.app.componentRegister.set("Entity/Collector",this)},u.prototype.attachEvents=function(t){},u.prototype.collectVirtualEntityByKey=function(t){var e=null;if(!this.register.has(t))throw new Error("Entry by key '"+t+"' in register not found");var n=this.register.get(t);return(e=new s.default).status=c.default.virtual,e.entityId=this.createUniqueID(),e.parentId=0,e.entityKey=n.id,e.order=0,e.options=l.default({},n.defaultOptions),e.title=n.label,e.childEntities=[],e},u.prototype.collectEntityByStructure=function(t){var e=null;if((e=new s.default).status=c.default.published,e.entityId=t.entityId,e.parentId=t.parentId,e.entityKey=t.entityKey,e.order=Number(t.order),e.options=l.default({},t.options),e.title=t.title,e.childEntities=[],t.childEntities&&t.childEntities.hasOwnProperty("length")&&t.childEntities.length)for(var n in t.childEntities){var o=t.childEntities[n],r=this.collectEntityByStructure(o);e.childEntities.push(r)}return e},u.prototype.createUniqueID=function(){function t(){return Math.random().toString(16).slice(-4)}return"virtual-"+t()+t()+"-"+t()+"-"+t()+"-"+t()+"-"+t()+t()+t()},u);function u(){return null!==i&&i.apply(this,arguments)||this}e.default=p},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(8),s=n(73),c=n(24),r=(i.prototype.addWindowHandler=function(t,e,n){this.applyElementHandler(!0,{element:o.default(window),event:t,eventSelector:null,eventHandler:e,context:n})},i.prototype.removeWindowHandler=function(t,e,n){this.applyElementHandler(!1,{element:o.default(window),event:t,eventSelector:null,eventHandler:e,context:n})},i.prototype.addSystemHandler=function(t,e,n){n=this.getContext(n),t.subscribe(e,n)},i.prototype.removeSystemHandler=function(t,e,n){n=this.getContext(n),t.unsubscribe(e,n)},i.prototype.addElementHandler=function(t,e,n,o,r){this.applyElementHandler(!0,{element:t,event:e,eventSelector:n,eventHandler:o,context:r})},i.prototype.removeElementHandler=function(t,e,n,o,r){this.applyElementHandler(!1,{element:t,event:e,eventSelector:n,eventHandler:o,context:r})},i.prototype.applyElementHandler=function(t,e){e.context=this.getContext(e.context),e.eventSelector instanceof Function&&!e.eventHandler&&(e.eventHandler=e.eventSelector,e.eventSelector=""),e.context&&(e.eventHandler=c.default(e.eventHandler,e.context)),e.element instanceof Element&&(e.element=jQuery(e.element)),t?e.eventSelector?e.element.on(e.event,e.eventSelector,e.eventHandler):e.element.on(e.event,e.eventHandler):e.eventSelector?e.element.off(e.event,e.eventSelector,e.eventHandler):e.element.off(e.event,e.eventHandler)},i.prototype.getContext=function(t){return!t&&this.component&&(t=this.component),t},i.prototype.addEntityHandler=function(t,e,n,o,r){var i="",a=n;"string"==typeof n&&o instanceof Function&&(i=n,a=o),r||!o||o instanceof Function||(r=o),(r=this.getContext(r))&&(a=c.default(a,r));var l=s.default(t,i);this.rootElement.on(e,l,a)},i.prototype.removeEntityHandler=function(t,e,n,o,r){var i="",a=n;"string"==typeof n&&o instanceof Function&&(i=n,a=o),r||!o||o instanceof Function||(r=o),(r=this.getContext(r))&&(a=c.default(a,r));var l=s.default(t,i);this.rootElement.off(e,l,a)},i.prototype.addComponentHandler=function(t,e,n,o){this.addEntityHandler(this.component,t,e,n,o)},i.prototype.removeComponentHandler=function(t,e,n,o){this.removeEntityHandler(this.component,t,e,n,o)},i.prototype.addPackageHandler=function(t,e,n,o){this.addEntityHandler(this.component.package,t,e,n,o)},i.prototype.removePackageHandler=function(t,e,n,o){this.removeEntityHandler(this.component.package,t,e,n,o)},i.prototype.addPageElementHandler=function(t,e,n,o){this.applyElementHandler(!0,{element:this.rootElement,event:t,eventSelector:e,eventHandler:n,context:o})},i.prototype.removePageElementHandler=function(t,e,n,o){this.applyElementHandler(!1,{element:this.rootElement,event:t,eventSelector:e,eventHandler:n,context:o})},i);function i(t){this.component=t,this.rootElement=o.default(document.documentElement)}e.default=r},function(t,e,n){"use strict";var o,r=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var i,a=n(34),l=(i=a.default,r(s,i),s.prototype.addElementHandler=function(t,e,n,o){this.eventManager.addElementHandler(this.componentElement,t,e,n,o)},s.prototype.removeElementHandler=function(t,e,n,o){this.eventManager.removeElementHandler(this.componentElement,t,e,n,o)},s);function s(t){var e=i.call(this)||this;return t&&(t instanceof Element&&(t=jQuery(t)),e.componentElement=t),e}e.default=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(24),r=(i.prototype.add=function(t,e,n){this.observers.has(t)||this.observers.set(t,[]),e=n?o.default(e,n):e,this.observers.get(t).push(e)},i.prototype.remove=function(t,e,n){this.observers.has(t)&&(e=n||o.default(e,this),this.observers.get(t).filter(function(t){return t!==e}))},i.prototype.notify=function(e,n,o){this.observers.has(e)&&this.observers.get(e).forEach(function(t){t(n,o,e)})},i);function i(){this.observers=new Map}e.default=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(43);e.default=function t(e,n,o){if("string"==typeof n)return t(e,n.split("."),o);if(1==n.length&&void 0!==o)return e[n[0]]=o;if(0==n.length)return r.default(e);if(!e.hasOwnProperty(n[0])){if(void 0===o)return;e[n[0]]={}}return t(e[n[0]],n.slice(1),o)}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){"use strict";var o,r=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),c=this&&this.__values||function(t){var e="function"==typeof Symbol&&t[Symbol.iterator],n=0;return e?e.call(t):{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}}},p=this&&this.__read||function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var o,r,i=n.call(t),a=[];try{for(;(void 0===e||0<e--)&&!(o=i.next()).done;)a.push(o.value)}catch(t){r={error:t}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return a};Object.defineProperty(e,"__esModule",{value:!0});var i,a=n(188),l=(i=a.default,r(s,i),s.prototype.initialProperties=function(){i.prototype.initialProperties.call(this),this.urlParams=new Map,this.updateUrlParams()},s.prototype.updateUrlParams=function(){this.urlParams.clear();var t=location.search.substring(1),e=t.split("&");if(t.length)for(var n in e){var o=e[n].split("=");this.urlParams.set(o[0],1<o.length?this.decode(o[1]):void 0)}},s.prototype.hasAttribute=function(t){return this.urlParams.has(t)},s.prototype.getAttribute=function(t){return this.urlParams.get(t)},s.prototype.setAttribute=function(t,e){this.updateUrlParams(),this.urlParams.set(t,e),this.updateUrl()},s.prototype.removeAttribute=function(t){this.updateUrlParams(),this.urlParams.delete(t),this.updateUrl()},s.prototype.updateUrl=function(){var e,t,n=[];try{for(var o=c(this.urlParams.entries()),r=o.next();!r.done;r=o.next()){var i=p(r.value,2),a=i[0],l=i[1];null==l?n.push(this.encode(a)):n.push(this.encode(a)+"="+this.encode(l))}}catch(t){e={error:t}}finally{try{r&&!r.done&&(t=o.return)&&t.call(o)}finally{if(e)throw e.error}}var s=location.pathname+location.hash;n.length&&(s="?"+n.join("&")),window.history.replaceState({},document.title,s)},s.prototype.decode=function(t){return-1!==(t=decodeURIComponent(t)).indexOf(",")?t.split(","):t},s.prototype.encode=function(t){return Array.isArray(t)?t.join(","):t},s.prototype.setAllAttributesToUrl=function(t,e){var n="";-1!=t.indexOf("?")&&(n=t.slice(t.indexOf("?")+1),t=t.slice(0,t.indexOf("?")));var o={},r=-1!=n.indexOf("&")?n.split("&"):[],i=[];for(var a in r){var l=r[a].split("=");o[l[0]]=this.decode(l[1])}for(var a in e)o[a]=e[a];for(var s in o){var c=o[s];i.push(this.encode(s)+"="+this.encode(c))}return i.length&&(t+="?"+i.join("&")),t},s.prototype.removeAllAttributesFromUrl=function(t,e){if(-1==t.indexOf("?"))return t;var n=t.slice(t.indexOf("?")+1);if(!n.length)return t;t=t.slice(0,t.indexOf("?"));var o={},r=n.split("&"),i=[];for(var a in r){var l=r[a].split("=");o[l[0]]=this.decode(l[1])}for(var a in e){var s=e[a];o.hasOwnProperty(s)&&delete o[s]}for(var c in o){var p=o[c];i.push(this.encode(c)+"="+this.encode(p))}return i.length&&(t+="?"+i.join("&")),t},s.prototype.getAllAttributes=function(){var e,t;this.updateUrlParams();var n={};try{for(var o=c(this.urlParams.entries()),r=o.next();!r.done;r=o.next()){var i=p(r.value,2),a=i[0],l=i[1];n[a]=l}}catch(t){e={error:t}}finally{try{r&&!r.done&&(t=o.return)&&t.call(o)}finally{if(e)throw e.error}}return n},s);function s(){return null!==i&&i.apply(this,arguments)||this}e.default=l},function(t,e,n){"use strict";var o,r=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var i,a=n(99),l=(i=a.default,r(s,i),Object.defineProperty(s.prototype,"prototypes",{get:function(){return{component:this.app.objectContainer.get("Filter/Component/Prototypes"),urlNavigation:this.app.objectContainer.get("Project/URLNavigation/Prototypes")}},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"register",{get:function(){return{components:this.app.objectContainer.get("Filter/Components"),entityTypes:this.app.objectContainer.get("Entity/Register"),productsQueryVars:this.app.objectContainer.get("ProductsQueryVars"),productsLoopProperties:this.app.objectContainer.get("ProductsLoopProperties")}},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"builders",{get:function(){return{component:this.app.componentRegister.get("Filter/Builder/Component")}},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"componentBuilder",{get:function(){return this.app.objectContainer.get("ComponentBuilder")},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"entityCollector",{get:function(){return this.app.componentRegister.get("Entity/Collector")},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"localizedMessages",{get:function(){return this.app.objectContainer.get("Messages")},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"appSelectors",{get:function(){return this.app.objectContainer.get("Selectors")},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"filterPackage",{get:function(){return this.app.packageRegister.get("Filter/Package")},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"wooData",{get:function(){return this.app.objectContainer.get("WooData")},enumerable:!0,configurable:!0}),s);function s(){return null!==i&&i.apply(this,arguments)||this}e.default=l},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=new(n(184).default);o.initialization(),window.wcpfFrontApp=o},function(t,e,n){"use strict";var o,r=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var i,a=n(93),l=n(94),s=n(95),c=n(96),p=n(185),u=n(195),f=n(221),h=(i=a.default,r(d,i),d.prototype.initialization=function(){var t=new l.default,e=new s.default;this.objectContainer.set("ComponentBuilder",e),t.build(new c.default,this),t.build(new p.default,this),t.build(new u.default,this),t.build(new f.default,this)},d);function d(){return null!==i&&i.apply(this,arguments)||this}e.default=h},function(t,e,n){"use strict";var o,r=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var i,a=n(1),l=n(16),s=n(186),c=n(192),p=n(194),u=(i=a.default,r(f,i),f.prototype.initialProperties=function(){this.app.objectContainer.set("ProductsQueryVars",new Map),this.app.objectContainer.set("ProductsLoopProperties",new Map),this.app.packageRegister.set("Filter/Package",this),this.app.objectContainer.set("Filter/Components",new Map),this.app.objectContainer.set("Filter/Component/Prototypes",new Map)},f.prototype.getInitialSubpackages=function(){return[new s.default]},f.prototype.getInitialComponents=function(){return[new c.default,new p.default]},f);function f(){var t=null!==i&&i.apply(this,arguments)||this;return t.initFilterEvent=new l.default,t}e.default=u},function(t,e,n){"use strict";var o,r=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var i,a=n(1),l=n(187),s=n(189),c=(i=a.default,r(p,i),p.prototype.initialProperties=function(){this.app.packageRegister.set("Project/Package",this)},p.prototype.getInitialSubpackages=function(){return[new l.default]},p.prototype.getInitialComponents=function(){return[new s.default]},p);function p(){return null!==i&&i.apply(this,arguments)||this}e.default=c},function(t,e,n){"use strict";var o,r=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var i,a=n(1),l=n(134),s=(i=a.default,r(c,i),c.prototype.initialProperties=function(){this.app.objectContainer.set("Project/URLNavigation/Prototypes",new Map([["query",l.default]]))},c.prototype.getInitialComponents=function(){return[]},c);function c(){return null!==i&&i.apply(this,arguments)||this}e.default=s},function(t,e,n){"use strict";var o,r=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var i,a=n(13),l=(i=a.default,r(s,i),s.prototype.attachEvents=function(t){},s);function s(){var t=null!==i&&i.apply(this,arguments)||this;return t.navigationOptions={},t}e.default=l},function(t,e,n){"use strict";var o,r=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var i,a=n(13),l=n(190),s=(i=a.default,r(c,i),c.prototype.attachEvents=function(t){t.addSystemHandler(this.filterPackage.initFilterEvent,this.initFilter)},c.prototype.initFilter=function(t){t.component.set("Project",l.default)},c);function c(){return null!==i&&i.apply(this,arguments)||this}e.default=s},function(t,e,n){"use strict";var o,r=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),y=this&&this.__values||function(t){var e="function"==typeof Symbol&&t[Symbol.iterator],n=0;return e?e.call(t):{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}}};Object.defineProperty(e,"__esModule",{value:!0});var i,a=n(66),m=n(8),l=n(191),s=(i=a.default,r(c,i),c.prototype.initialProperties=function(){i.prototype.initialProperties.call(this),this.productsElement=null,this.getNotesElement()&&(this.filterNotes=this.componentBuilder.build(l.default),this.filterNotes.project=this.project,this.filterNotes.componentElement=this.getNotesElement(),this.componentBuilder.implementation(this.filterNotes,this.package))},c.prototype.attachEvents=function(t){i.prototype.attachEvents.call(this,t),t.addSystemHandler(this.project.beforeLoadingProductPageEvent,this.beforeLoadingProductPage),t.addSystemHandler(this.project.afterLoadingProductPageEvent,this.afterLoadingProductPage),t.addSystemHandler(this.project.productPageLoadedEvent,this.onProductPageLoaded),this.attachEventsToPageParts(t)},c.prototype.attachEventsToPageParts=function(t){this.options.get("paginationAjax")&&-1!=this.options.get("useComponents").indexOf("pagination")&&this.getPaginationElement()&&t.addElementHandler(this.getPaginationElement(),"click","a",this.onPaginationClick),this.options.get("sortingAjax")&&-1!=this.options.get("useComponents").indexOf("sorting")&&this.getSortingElement()&&(t.addElementHandler(this.getSortingElement(),"submit",this.onSortingSubmit),t.addElementHandler(this.getSortingElement(),"change",".orderby",this.onSortingChange))},c.prototype.getThemePartSelector=function(t){return this.app.objectContainer.has("ThemeSelectors")&&this.app.objectContainer.get("ThemeSelectors").hasOwnProperty(t)?this.app.objectContainer.get("ThemeSelectors")[t]:null},c.prototype.getBreadcrumbSelectors=function(){return[this.options.get("breadcrumbSelector"),this.appSelectors.breadcrumb]},c.prototype.getSortingSelectors=function(){var t=[this.options.get("sortingSelector"),this.appSelectors.sorting];return this.getThemePartSelector("sorting")&&t.push(this.getThemePartSelector("sorting")),t},c.prototype.getResultCountSelectors=function(){var t=[this.options.get("resultCountSelector"),this.appSelectors.resultCount];return this.getThemePartSelector("resultCount")&&t.push(this.getThemePartSelector("resultCount")),t},c.prototype.getPaginationSelectors=function(){var t=[this.options.get("paginationSelector"),this.appSelectors.paginationContainer];return this.getThemePartSelector("paginationContainer")&&t.push(this.getThemePartSelector("paginationContainer")),t},c.prototype.getProductsSelectors=function(){var t=[".wcpf-products-container-"+this.entity.entityId,this.options.get("productsContainerSelector"),this.appSelectors.productsContainer];return this.options.get("multipleContainersForProducts")&&(t[0]+=","+this.options.get("productsContainerSelector")),t},c.prototype.getNotesSelectors=function(){return[".wcpf-filter-notes-"+this.entity.entityId,".wcpf-filter-notes-default"]},c.prototype.getPageTitleSelectors=function(){return[this.options.get("pageTitleSelector"),this.appSelectors.pageTitle]},c.prototype.getBreadcrumbElement=function(){return this.findElementBySelectors(this.getBreadcrumbSelectors())},c.prototype.getNotesElement=function(){return this.findElementBySelectors(this.getNotesSelectors())},c.prototype.getPaginationElement=function(){return this.findElementBySelectors(this.getPaginationSelectors())},c.prototype.getSortingElement=function(){return this.findElementBySelectors(this.getSortingSelectors())},c.prototype.getResultCountElement=function(){return this.findElementBySelectors(this.getResultCountSelectors())},c.prototype.getPageTitleElement=function(){return this.findElementBySelectors(this.getPageTitleSelectors())},c.prototype.getProductsElement=function(){return this.productsElement?this.productsElement:this.findElementBySelectors(this.getProductsSelectors())},c.prototype.setProductsElement=function(t){this.productsElement=t},c.prototype.beforeLoadingProductPage=function(){jQuery.blockUI({message:null})},c.prototype.afterLoadingProductPage=function(){jQuery.unblockUI()},c.prototype.prepareComponentElement=function(t,e,n){"pagination"==t&&e.attr("style")&&!n.attr("style")&&n.attr("style",e.attr("style"))},c.prototype.onProductPageLoaded=function(t){var e,n,o=m.default(t.page.documentElement),r=this.options.get("useComponents"),i=[{selectors:this.getPaginationSelectors(),componentKey:"pagination",element:this.getPaginationElement()},{selectors:this.getResultCountSelectors(),componentKey:"results-count",element:this.getResultCountElement()},{selectors:this.getSortingSelectors(),componentKey:"sorting",element:this.getSortingElement()},{selectors:this.getPageTitleSelectors(),componentKey:"page-title",element:this.getPageTitleElement()},{selectors:this.getBreadcrumbSelectors(),componentKey:"breadcrumb",element:this.getBreadcrumbElement()}];try{for(var a=y(i.values()),l=a.next();!l.done;l=a.next()){var s=l.value;if(-1!=r.indexOf(s.componentKey)&&s.element)if(s.element.html(""),-1!=s.selectors[0].indexOf(",")){var c=s.selectors[0].split(",");for(var p in c){var u=this.findElementBySelectors([c[p]],o),f=this.findElementBySelectors([c[p]]);f&&u&&(this.prepareComponentElement(s.componentKey,f,u.first()),f.replaceWith(u.first()))}}else(u=this.findElementBySelectors(s.selectors,o))&&(this.prepareComponentElement(s.componentKey,s.element,u.first()),s.element.replaceWith(u.first()))}}catch(t){e={error:t}}finally{try{l&&!l.done&&(n=a.return)&&n.call(a)}finally{if(e)throw e.error}}var h=this.getProductsElement();if(h&&h.length||(h=this.findContainerElementForProducts(this.app.bodyElement)),h){var d=this.findElementBySelectors(this.getProductsSelectors(),o);d&&d.length||(d=this.findContainerElementForProducts(o)),d?(this.options.get("multipleContainersForProducts")&&1<d.length&&d.length==h.length?d.each(function(t,e){jQuery(h.get(t)).replaceWith(jQuery(e))}):(d=d.first(),h.replaceWith(d)),this.setProductsElement(d),this.updateImageHeightForSafari()):h.html("")}this.attachEventsToPageParts(this.eventManager),"yes"==window.WCPFData.scrollTop&&this.productsElement&&jQuery("html,body").stop().animate({scrollTop:this.productsElement.offset().top-jQuery(window).height()/3.5},500,"swing")},c.prototype.findContainerElementForProducts=function(t){var i=[],e=[t.find(".product.type-product").filter('[class^="post-"],[class*=" post-"]'),t.find(".product-category.product")];for(var n in e){var o=e[n];o.length&&o.each(function(t,e){var n=jQuery(e).parent(),o=!1;for(var r in i)if(jQuery(i[r]).is(n)){o=!0;break}o||i.push(n.get(0))})}return i.length?jQuery(i):null},c.prototype.updateImageHeightForSafari=function(){var t=this.getProductsElement();t&&t.find("img").each(function(t,e){e.outerHTML=e.outerHTML})},c.prototype.onPaginationClick=function(t){t.preventDefault();var e=m.default(t.currentTarget).attr("href");e&&this.project.goToPageNumberByUrl(e)},c.prototype.onSortingChange=function(t){var e=m.default(t.currentTarget).val();e&&this.project.applySortingToProducts(e)},c.prototype.onSortingSubmit=function(t){t.preventDefault()},c.prototype.findElementBySelectors=function(t,e){var n,o;try{for(var r=y(t.values()),i=r.next();!i.done;i=r.next()){var a=i.value,l=e?e.find(a):m.default(a);if(l.length)return l}}catch(t){n={error:t}}finally{try{i&&!i.done&&(o=r.return)&&o.call(r)}finally{if(n)throw n.error}}return null},c);function c(){return null!==i&&i.apply(this,arguments)||this}e.default=s},function(t,e,n){"use strict";var o,r=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),y=this&&this.__values||function(t){var e="function"==typeof Symbol&&t[Symbol.iterator],n=0;return e?e.call(t):{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}}},m=this&&this.__read||function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var o,r,i=n.call(t),a=[];try{for(;(void 0===e||0<e--)&&!(o=i.next()).done;)a.push(o.value)}catch(t){r={error:t}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return a};Object.defineProperty(e,"__esModule",{value:!0});var i,a=n(135),v=n(67),g=n(75),_=n(8),l=n(55),s=(i=a.default,r(c,i),Object.defineProperty(c.prototype,"notesListElement",{get:function(){return this.componentElement.find(".wcpf-note-list")},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"notesItemsElement",{get:function(){return this.notesListElement.find(".wcpf-note-item")},enumerable:!0,configurable:!0}),c.prototype.attachEvents=function(t){t.addElementHandler(this.componentElement,"click",".remove-filter",this.onRemoveFilterClick),this.eventManager.addSystemHandler(this.project.applyFilterValueEvent,this.onApplyFilterValue),this.eventManager.addSystemHandler(this.project.removeFilterValueEvent,this.onRemoveFilterValue)},c.prototype.onRemoveFilterValue=function(t){var r=t.filterComponent;this.notesItemsElement.each(function(t,e){var n=_.default(e),o=n.data("wcpf-note-entry");r.entity.entityId==o.filterComponent.entity.entityId&&n.remove()})},c.prototype.onApplyFilterValue=function(t){var e,n,f=t.filterComponent;if("collectFilterNotes"in f){var h=f.collectFilterNotes(t.value,t.filterKey),d=!h.length;if(this.notesItemsElement.each(function(t,e){var n,o,r=_.default(e),i=r.data("wcpf-note-entry"),a=-1;if(f.entity.entityId==i.filterComponent.entity.entityId){try{for(var l=y(h.entries()),s=l.next();!s.done;s=l.next()){var c=m(s.value,2),p=c[0],u=c[1];if(typeof u.filterValue==typeof i.filterValue&&(Array.isArray(u.filterValue)&&g.default(u.filterValue,i.filterValue)||"object"==typeof u.filterValue&&v.default(u.filterValue,i.filterValue)||u.filterValue==i.filterValue)&&u.mark==i.mark){a=p;break}}}catch(t){n={error:t}}finally{try{s&&!s.done&&(o=l.return)&&o.call(l)}finally{if(n)throw n.error}}-1==a||d?r.remove():h.splice(a,1)}}),h.length)try{for(var o=y(h.values()),r=o.next();!r.done;r=o.next()){var i=r.value;this.addEntry(i)}}catch(t){e={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(e)throw e.error}}}},c.prototype.onRemoveFilterClick=function(t){var e=l.default(t).parents(".wcpf-note-item:first").data("wcpf-note-entry");e&&e.filterComponent&&"removeFilterValueByFilterNote"in e.filterComponent&&e.filterComponent.removeFilterValueByFilterNote(e)},c.prototype.addEntry=function(t){var e=_.default('\n            <div class="wcpf-note-item">\n                <span class="note-text">'+t.text+'</span>\n                <span class="remove-filter"></span>\n            </div>\n        ');e.data("wcpf-note-entry",t),this.notesListElement.append(e)},c);function c(){return null!==i&&i.apply(this,arguments)||this}e.default=s},function(t,e,n){"use strict";var o,r=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var i,a=n(13),l=n(193),s=(i=a.default,r(c,i),c.prototype.initialProperties=function(){this.app.componentRegister.set("Filter/Dispatcher",this)},c.prototype.attachEvents=function(t){t.addWindowHandler("load",this.onWindowLoaded)},c.prototype.expansionSupport=function(){if(Array.prototype.hasOwnProperty("compare")){var t=Array.prototype.compare;delete Array.prototype.compare,Object.defineProperty(Array.prototype,"compare",{value:t,enumerable:!1})}},c.prototype.onWindowLoaded=function(t){this.expansionSupport();var e=window.WCPFData;for(var n in this.app.objectContainer.set("IsPaged",e.isPaged),this.app.objectContainer.set("Messages",e.messages),this.app.objectContainer.set("Selectors",e.selectors),this.app.objectContainer.set("PageUrl",e.pageUrl),this.app.objectContainer.set("WooData",{priceFormat:e.priceFormat}),e.registerEntities){var o=e.registerEntities[n];this.register.entityTypes.set(n,{id:o.id,label:o.label,isGrouped:o.is_grouped,defaultOptions:o.default_options})}this.filterPackage.initFilterEvent.trigger(this.prototypes)},c.prototype.loadProject=function(t){var e=this.entityCollector.collectEntityByStructure(t);if(!this.register.components.has(t.entityId)){var n=new l.default;n.projectComponent=this.builders.component.createComponent(e,n),this.assignDocumentElementForFilterComponent(n.projectComponent),this.builders.component.implementationComponent(n.projectComponent),this.componentBuilder.implementation(n,this.package),n.initEvent.trigger(n)}},c.prototype.assignDocumentElementForFilterComponent=function(t){for(var e in t.componentElement=this.app.bodyElement.find(".wcpf-front-element-"+t.entity.entityId),t.childFilterComponents)this.assignDocumentElementForFilterComponent(t.childFilterComponents[e])},c);function c(){return null!==i&&i.apply(this,arguments)||this}e.default=s},function(module,exports,__webpack_require__){"use strict";var __extends=this&&this.__extends||(bp=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}bp(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),bp,__values=this&&this.__values||function(t){var e="function"==typeof Symbol&&t[Symbol.iterator],n=0;return e?e.call(t):{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}}};Object.defineProperty(exports,"__esModule",{value:!0});var ComponentAbstract_1=__webpack_require__(13),ApplicationEvent_1=__webpack_require__(16),ExtendObject_1=__webpack_require__(15),CreateElement_1=__webpack_require__(8),QueryNavigation_1=__webpack_require__(134),Project=function(_super){function Project(){var t=_super.call(this)||this;return t.initEvent=new ApplicationEvent_1.default,t.productPageLoadedEvent=new ApplicationEvent_1.default,t.beforeLoadingProductPageEvent=new ApplicationEvent_1.default,t.afterLoadingProductPageEvent=new ApplicationEvent_1.default,t.applyFilterValueEvent=new ApplicationEvent_1.default,t.removeFilterValueEvent=new ApplicationEvent_1.default,t.productPageRequest=null,t.activeFilters={},t.componentKeys=new Map,t}return __extends(Project,_super),Object.defineProperty(Project.prototype,"projectId",{get:function(){return this.projectComponent.entity.entityId},enumerable:!0,configurable:!0}),Object.defineProperty(Project.prototype,"projectOptions",{get:function(){return this.projectComponent.options},enumerable:!0,configurable:!0}),Project.prototype.initialProperties=function(){this.pageUrl=this.app.objectContainer.get("PageUrl"),this.urlNavigator=this.componentBuilder.build(QueryNavigation_1.default,this.package),this.urlNavigator.navigationOptions=ExtendObject_1.default(this.urlNavigator.navigationOptions,this.projectOptions.get("urlNavigationOptions"))},Project.prototype.attachEvents=function(t){t.addSystemHandler(this.initEvent,this.onInit),this.app.objectContainer.get("IsPaged")&&this.eventManager.addSystemHandler(this.beforeLoadingProductPageEvent,this.resetPaginationUrl)},Project.prototype.resetPaginationUrl=function(){var t=this.urlNavigator.getAllAttributes();t&&t.hasOwnProperty("product-page")&&delete t["product-page"],t&&t.hasOwnProperty("paged")&&delete t.paged;var e=this.urlNavigator.setAllAttributesToUrl(this.pageUrl,t);this.replacePageUrl(e),this.eventManager.removeSystemHandler(this.beforeLoadingProductPageEvent,this.resetPaginationUrl)},Project.prototype.onInit=function(){var s=this;this.eachComponents(function(t){var e,n;if("getFilterKeys"in t){var o=t.getFilterKeys();try{for(var r=__values(Object.values(o)),i=r.next();!i.done;i=r.next()){var a=i.value;if(s.urlNavigator.hasAttribute(a)){var l=s.urlNavigator.getAttribute(a);s.activeFilters[a]=l,s.applyFilterValueEvent.trigger({filterComponent:t,filterKey:a,value:l})}s.componentKeys.set(a,t)}}catch(t){e={error:t}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(e)throw e.error}}}});var t=Object.keys(this.activeFilters);t.push("product-page"),t.push("paged"),this.pageUrl=this.urlNavigator.removeAllAttributesFromUrl(this.pageUrl,t)},Project.prototype.removeFilterValue=function(t,e){this.activeFilters.hasOwnProperty(e)&&(delete this.activeFilters[e],this.removeFilterValueEvent.trigger({filterComponent:t,filterKey:e}),"auto"==this.projectOptions.get("filteringStarts")&&(this.urlNavigator.removeAttribute(e),this.applyFilters()))},Project.prototype.applyFilterValue=function(t,e,n){this.activeFilters[e]=n,this.applyFilterValueEvent.trigger({filterComponent:t,filterKey:e,value:n}),"auto"==this.projectOptions.get("filteringStarts")&&(this.urlNavigator.setAttribute(e,n),this.applyFilters())},Project.prototype.resetFilters=function(){for(var t in this.activeFilters)this.urlNavigator.removeAttribute(t),this.componentKeys.has(t)&&this.removeFilterValueEvent.trigger({filterComponent:this.componentKeys.get(t),filterKey:t});this.activeFilters={},this.applyFilters()},Project.prototype.applyFilters=function(properties){var _this=this;if(properties=ExtendObject_1.default({updateFiltersElements:!0,applyAttributes:!0},"object"==typeof properties?properties:{}),"auto"!=this.projectOptions.get("filteringStarts")&&properties.applyAttributes){for(var attribute in this.urlNavigator.getAllAttributes())this.componentKeys.has(attribute)&&!this.activeFilters.hasOwnProperty(attribute)&&this.urlNavigator.removeAttribute(attribute);for(var filterKey in this.activeFilters)this.urlNavigator.setAttribute(filterKey,this.activeFilters[filterKey])}this.productPageRequest&&this.productPageRequest.abort(),this.beforeLoadingProductPageEvent.trigger({filters:this.activeFilters,project:this}),this.app.windowElement.trigger("wcpf_before_ajax_filtering"),this.productPageRequest=jQuery.ajax({url:location.href,type:"GET"}).done(function(responseHtml){var responsePage=document.implementation.createHTMLDocument(document.title);responsePage.documentElement.innerHTML=responseHtml,properties.updateFiltersElements&&_this.updateComponentElementsFromPage(responsePage),_this.productPageLoadedEvent.trigger({page:responsePage,filters:_this.activeFilters,project:_this}),_this.app.windowElement.trigger("wcpf_update_products");var scriptAfterProductsUpdate=window.WCPFData.scriptAfterProductsUpdate;scriptAfterProductsUpdate&&scriptAfterProductsUpdate.length&&eval(scriptAfterProductsUpdate)}).always(function(){_this.afterLoadingProductPageEvent.trigger({filters:_this.activeFilters,project:_this}),_this.app.windowElement.trigger("wcpf_after_ajax_filtering")})},Project.prototype.goToPageNumberByUrl=function(t){this.eventManager.removeSystemHandler(this.beforeLoadingProductPageEvent,this.resetPaginationUrl),this.replacePageUrl(t),this.applyFilters({updateFiltersElements:!1,applyAttributes:!1}),this.eventManager.addSystemHandler(this.beforeLoadingProductPageEvent,this.resetPaginationUrl)},Project.prototype.applySortingToProducts=function(t){this.urlNavigator.setAttribute("orderby",t),this.applyFilters({updateFiltersElements:!1,applyAttributes:!1})},Project.prototype.replacePageUrl=function(t){window.history.replaceState({},document.title,t)},Project.prototype.eachComponents=function(n){var o=function(t){for(var e in n(t),t.childFilterComponents)o(t.childFilterComponents[e])};o(this.projectComponent)},Project.prototype.updateComponentElementsFromPage=function(t){var e=this,n=CreateElement_1.default(t.documentElement).find(".wcpf-front-element-"+this.projectId);this.projectComponent.componentElement.replaceWith(n.first()),this.projectComponent.componentElement=this.app.bodyElement.find(".wcpf-front-element-"+this.projectId),this.eachComponents(function(t){t.entity.entityId!=e.projectId&&(t.componentElement=e.projectComponent.componentElement.find(".wcpf-front-element-"+t.entity.entityId))}),this.eachComponents(function(t){t.componentElement.length&&(t.initialPropertiesOfElement(),t.attachElementEvents(t.eventManager))})},Project}(ComponentAbstract_1.default);exports.default=Project},function(t,e,n){"use strict";var o,r=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var i,a=n(13),l=(i=a.default,r(s,i),s.prototype.initialProperties=function(){this.app.componentRegister.set("Filter/Builder/Component",this)},s.prototype.attachEvents=function(t){},s.prototype.createComponent=function(t,e){if(!this.prototypes.component.has(t.entityKey))throw new Error("Component prototype by entity key '"+t.entityKey+"' not found");var n=this.prototypes.component.get(t.entityKey),o=this.componentBuilder.build(n);for(var r in o.entity=t,o.project=e,t.childEntities){var i=t.childEntities[r];o.childFilterComponents.push(this.createComponent(i,e))}return this.register.components.set(t.entityId,o),o},s.prototype.implementationComponent=function(t){for(var e in this.componentBuilder.implementation(t,this.package),t.childFilterComponents)this.implementationComponent(t.childFilterComponents[e])},s);function s(){return null!==i&&i.apply(this,arguments)||this}e.default=l},function(t,e,n){"use strict";var o,r=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var i,a=n(1),l=n(196),s=n(200),c=n(203),p=n(206),u=n(209),f=n(212),h=n(215),d=n(218),y=(i=a.default,r(m,i),m.prototype.getInitialSubpackages=function(){return[new l.default,new s.default,new c.default,new p.default,new u.default,new f.default,new h.default,new d.default]},m.prototype.getInitialComponents=function(){return[]},m);function m(){return null!==i&&i.apply(this,arguments)||this}e.default=y},function(t,e,n){"use strict";var o,r=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var i,a=n(1),l=n(197),s=(i=a.default,r(c,i),c.prototype.getInitialComponents=function(){return[new l.default]},c);function c(){return null!==i&&i.apply(this,arguments)||this}e.default=s},function(t,e,n){"use strict";var o,r=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var i,a=n(13),l=n(198),s=(i=a.default,r(c,i),c.prototype.attachEvents=function(t){t.addSystemHandler(this.filterPackage.initFilterEvent,this.initFilter)},c.prototype.initFilter=function(t){t.component.set("CheckBoxListField",l.default)},c);function c(){return null!==i&&i.apply(this,arguments)||this}e.default=s},function(t,e,n){"use strict";var o,r=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),p=this&&this.__values||function(t){var e="function"==typeof Symbol&&t[Symbol.iterator],n=0;return e?e.call(t):{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}}};Object.defineProperty(e,"__esModule",{value:!0});var i,a=n(44),u=n(45),l=n(8),s=(i=a.default,r(c,i),Object.defineProperty(c.prototype,"itemElements",{get:function(){return this.activeComponentElement.find(".wcpf-checkbox-item")},enumerable:!0,configurable:!0}),c.prototype.attachElementEvents=function(t){i.prototype.attachElementEvents.call(this,t);var e=[];this.componentElement.hasClass("wcpf-hierarchical-collapsed")?(e.push(".wcpf-checkbox-item.wcpf-item-hierarchical-collapsed:not(.disabled) > .wcpf-item-inner > .wcpf-item-label .wcpf-input-container"),e.push(".wcpf-checkbox-item:not(.disabled,.wcpf-item-hierarchical-collapsed)> .wcpf-item-inner > .wcpf-item-label")):e.push(".wcpf-checkbox-item:not(.disabled) .wcpf-checkbox-label"),t.addElementHandler(this.componentElement.find(e.join(",")),"click",this.onLabelClick)},c.prototype.onLabelClick=function(t){var e=l.default(t.currentTarget),n=e.parents(".wcpf-checkbox-item:first");n.toggleClass("checked"),e.find(".wcpf-input").prop("checked",n.hasClass("checked")),n.parents(".wcpf-checkbox-item.checked").each(this.uncheckElement),n.find(".wcpf-checkbox-item.checked").each(this.uncheckElement),this.updateValueFromElement(this.getFieldKey())},c.prototype.uncheckElement=function(t,e){var n=jQuery(e),o=n.data("item-key");n.removeClass("checked"),n.find('.wcpf-input[value="'+o+'"]').prop("checked",!1)},c.prototype.setDocumentElementValue=function(t,e){var n,o;if(null==e&&(e=""),this.itemElements.find(".wcpf-input").prop("checked",!1),this.itemElements.filter(".checked").removeClass("checked"),"string"==typeof e&&(e=[e]),Array.isArray(e))try{for(var r=p(e),i=r.next();!i.done;i=r.next()){var a=i.value,l=this.itemElements.find('.wcpf-input[value="'+a+'"]'),s=l.parents(".wcpf-checkbox-item:first");l.prop("checked",!0),s.addClass("checked")}}catch(t){n={error:t}}finally{try{i&&!i.done&&(o=r.return)&&o.call(r)}finally{if(n)throw n.error}}},c.prototype.getDocumentElementValue=function(t){var o=[];return this.itemElements.filter(".checked").each(function(t,e){var n=l.default(e);o.push(n.data("item-key"))}),o},c.prototype.removeFilterValueByFilterNote=function(t){var e=this.getDocumentElementValue(this.getFieldKey()),n=e.indexOf(t.filterValue);-1!=n&&(e.splice(n,1),this.setDocumentElementValue(this.getFieldKey(),e),e.length?this.applyFilterValue(this.getFieldKey(),e):this.removeFilterValue(this.getFieldKey()))},c.prototype.collectFilterNotes=function(t,e){var n,o,r=[];if("string"==typeof t&&(t=[t]),Array.isArray(t))try{for(var i=p(t.values()),a=i.next();!a.done;a=i.next()){var l=a.value,s=this.itemElements.filter('[data-item-key="'+l+'"]'),c=s.find(".wcpf-checkbox-label:first");s.length&&c.length&&r.push(new u.default({filterComponent:this,filterValue:l,text:c.find(".wcpf-title").html()}))}}catch(t){n={error:t}}finally{try{a&&!a.done&&(o=i.return)&&o.call(i)}finally{if(n)throw n.error}}return r},c);function c(){return null!==i&&i.apply(this,arguments)||this}e.default=s},function(t,e,n){"use strict";var o,r=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var i,a=n(66),l=(i=a.default,r(s,i),s.prototype.getFilterKeysList=function(){return Object.values(this.getFilterKeys())},s.prototype.getFilterKeyByIndex=function(t){var e=this.getFilterKeys();return e.hasOwnProperty(t)?e[t]:null},s.prototype.applyFilterValue=function(t,e){this.project.applyFilterValue(this,t,e)},s.prototype.removeFilterValue=function(t){this.project.removeFilterValue(this,t)},s);function s(){return null!==i&&i.apply(this,arguments)||this}e.default=l},function(t,e,n){"use strict";var o,r=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var i,a=n(1),l=n(201),s=(i=a.default,r(c,i),c.prototype.getInitialComponents=function(){return[new l.default]},c);function c(){return null!==i&&i.apply(this,arguments)||this}e.default=s},function(t,e,n){"use strict";var o,r=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var i,a=n(13),l=n(202),s=(i=a.default,r(c,i),c.prototype.attachEvents=function(t){t.addSystemHandler(this.filterPackage.initFilterEvent,this.initFilter)},c.prototype.initFilter=function(t){t.component.set("RadioListField",l.default)},c);function c(){return null!==i&&i.apply(this,arguments)||this}e.default=s},function(t,e,n){"use strict";var o,r=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var i,a=n(44),l=n(45),s=n(8),c=(i=a.default,r(p,i),Object.defineProperty(p.prototype,"itemElements",{get:function(){return this.activeComponentElement.find(".wcpf-radio-item")},enumerable:!0,configurable:!0}),p.prototype.initialProperties=function(){i.prototype.initialProperties.call(this)},p.prototype.attachElementEvents=function(t){i.prototype.attachElementEvents.call(this,t);var e=[];this.componentElement.hasClass("wcpf-hierarchical-collapsed")?(e.push(".wcpf-radio-item.wcpf-item-hierarchical-collapsed:not(.disabled) > .wcpf-item-inner > .wcpf-item-label .wcpf-input-container"),e.push(".wcpf-radio-item:not(.disabled,.wcpf-item-hierarchical-collapsed)> .wcpf-item-inner > .wcpf-item-label")):e.push(".wcpf-radio-item:not(.disabled) .wcpf-radio-label"),t.addElementHandler(this.componentElement.find(e.join(",")),"click",this.onLabelClick)},p.prototype.onLabelClick=function(t){var e=s.default(t.currentTarget),n=e.parents(".wcpf-radio-item:first");this.itemElements.find(".wcpf-input").prop("checked",!1),this.itemElements.filter(".checked").removeClass("checked"),e.find(".wcpf-input").prop("checked",!0),n.addClass("checked"),this.updateValueFromElement(this.getFieldKey())},p.prototype.setDocumentElementValue=function(t,e){null==e&&(e=""),this.itemElements.find(".wcpf-input").prop("checked",!1),this.itemElements.filter(".checked").removeClass("checked");var n=this.itemElements.filter('[data-item-key="'+e+'"]');n.find(".wcpf-input:first").prop("checked",!0),n.addClass("checked")},p.prototype.getDocumentElementValue=function(t){return this.itemElements.filter(".checked").data("item-key")},p.prototype.removeFilterValueByFilterNote=function(t){this.resetDocumentElementValue(this.getFieldKey()),this.removeFilterValue(this.getFieldKey())},p.prototype.collectFilterNotes=function(t,e){var n=[];if(null!=t&&"string"==typeof t){var o=this.itemElements.filter('[data-item-key="'+t+'"]'),r=o.find(".wcpf-radio-label:first");if(!o.length)return n;n.push(new l.default({filterComponent:this,filterValue:t,text:r.find(".wcpf-title").html()}))}return n},p);function p(){return null!==i&&i.apply(this,arguments)||this}e.default=c},function(t,e,n){"use strict";var o,r=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var i,a=n(1),l=n(204),s=(i=a.default,r(c,i),c.prototype.getInitialComponents=function(){return[new l.default]},c);function c(){return null!==i&&i.apply(this,arguments)||this}e.default=s},function(t,e,n){"use strict";var o,r=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var i,a=n(13),l=n(205),s=(i=a.default,r(c,i),c.prototype.attachEvents=function(t){t.addSystemHandler(this.filterPackage.initFilterEvent,this.initFilter)},c.prototype.initFilter=function(t){t.component.set("DropDownListField",l.default)},c);function c(){return null!==i&&i.apply(this,arguments)||this}e.default=s},function(t,e,n){"use strict";var o,r=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var i,a=n(44),l=n(45),s=(i=a.default,r(c,i),Object.defineProperty(c.prototype,"inputElement",{get:function(){return this.activeComponentElement.find(".wcpf-input")},enumerable:!0,configurable:!0}),c.prototype.initialPropertiesOfElement=function(){var t=this;i.prototype.initialPropertiesOfElement.call(this);var e=this.componentElement.find(".wcpf-drop-down-style-woocommerce");jQuery.fn.hasOwnProperty("selectWoo")&&e.selectWoo({minimumResultsForSearch:5,width:"100%",allowClear:!1,placeholder:this.options.get("titleItemReset"),language:{noResults:function(){return t.localizedMessages.selectNoMatchesFound}}})},c.prototype.attachElementEvents=function(t){i.prototype.attachElementEvents.call(this,t),t.addElementHandler(this.componentElement.find(".wcpf-input"),"change",this.updateValueFromElement)},c.prototype.setDocumentElementValue=function(t,e){null==e&&(e=""),this.inputElement.val(e)},c.prototype.getDocumentElementValue=function(t){return this.inputElement.val()},c.prototype.removeFilterValueByFilterNote=function(t){this.resetDocumentElementValue(this.getFieldKey()),this.removeFilterValue(this.getFieldKey())},c.prototype.collectFilterNotes=function(t,e){var n=[];if(null!=t&&"string"==typeof t){var o=this.inputElement.find('option[value="'+t+'"]');if(!o.length)return n;n.push(new l.default({filterComponent:this,filterValue:t,text:o.data("title")}))}return n},c);function c(){return null!==i&&i.apply(this,arguments)||this}e.default=s},function(t,e,n){"use strict";var o,r=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var i,a=n(1),l=n(207),s=(i=a.default,r(c,i),c.prototype.getInitialComponents=function(){return[new l.default]},c);function c(){return null!==i&&i.apply(this,arguments)||this}e.default=s},function(t,e,n){"use strict";var o,r=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var i,a=n(13),l=n(208),s=(i=a.default,r(c,i),c.prototype.attachEvents=function(t){t.addSystemHandler(this.filterPackage.initFilterEvent,this.initFilter)},c.prototype.initFilter=function(t){t.component.set("ButtonField",l.default)},c);function c(){return null!==i&&i.apply(this,arguments)||this}e.default=s},function(t,e,n){"use strict";var o,r=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var i,a=n(66),l=(i=a.default,r(s,i),s.prototype.attachElementEvents=function(t){i.prototype.attachElementEvents.call(this,t),t.addElementHandler(this.componentElement,"click",".wcpf-button",this.onButtonClick)},s.prototype.onButtonClick=function(t){var e=this.options.get("action");"filter"==e?this.project.applyFilters():"reset"==e&&this.project.resetFilters()},s);function s(){return null!==i&&i.apply(this,arguments)||this}e.default=l},function(t,e,n){"use strict";var o,r=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var i,a=n(1),l=n(210),s=(i=a.default,r(c,i),c.prototype.getInitialComponents=function(){return[new l.default]},c);function c(){return null!==i&&i.apply(this,arguments)||this}e.default=s},function(t,e,n){"use strict";var o,r=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var i,a=n(13),l=n(211),s=(i=a.default,r(c,i),c.prototype.attachEvents=function(t){t.addSystemHandler(this.filterPackage.initFilterEvent,this.initFilter)},c.prototype.initFilter=function(t){t.component.set("PriceSliderField",l.default)},c);function c(){return null!==i&&i.apply(this,arguments)||this}e.default=s},function(t,e,n){"use strict";var o,r=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),a=this&&this.__values||function(t){var e="function"==typeof Symbol&&t[Symbol.iterator],n=0;return e?e.call(t):{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}}};Object.defineProperty(e,"__esModule",{value:!0});var i,l=n(44),s=n(45),c=n(24),p=(i=l.default,r(u,i),Object.defineProperty(u.prototype,"minInputElement",{get:function(){return this.activeComponentElement.find(".wcpf-min-input")},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"maxInputElement",{get:function(){return this.activeComponentElement.find(".wcpf-max-input")},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"sliderElement",{get:function(){return this.componentElement.find(".priceSliderInput")},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"labelElement",{get:function(){return this.componentElement.find(".priceLabel")},enumerable:!0,configurable:!0}),u.prototype.getFilterKeys=function(){var t={};return"dash"==this.options.get("optionKeyFormat")?t.price=this.options.get("optionKey"):"two"==this.options.get("optionKeyFormat")&&(t.minPrice=this.options.get("minPriceOptionKey"),t.maxPrice=this.options.get("maxPriceOptionKey")),t},u.prototype.initialPropertiesOfElement=function(){i.prototype.initialPropertiesOfElement.call(this),this.sliderElement.show(),this.componentElement.hasClass("wcpf-display-price-label")&&this.labelElement.show();var t=parseFloat(this.minInputElement.data("min")),e=parseFloat(this.maxInputElement.data("max")),n=parseFloat(this.minInputElement.val()),o=parseFloat(this.maxInputElement.val());this.sliderElement.slider({range:!0,animate:!0,min:t,max:e,values:[n,o],stop:c.default(this.onSlideStop,this),slide:c.default(this.onSlideMove,this)}),this.setPriceLabel(n,o),this.componentElement.hasClass("wcpf-box-style")&&this.componentElement.hasClass("wcpf-box-hide")&&this.componentElement.find(".wcpf-content").slideUp(300)},u.prototype.attachElementEvents=function(t){i.prototype.attachElementEvents.call(this,t),this.attachMinMaxInputEvents(),this.eventManager.addElementHandler(this.componentElement,"keypress keyup blur",".wcpf-price-slider-min-max-inputs .wcpf-input",this.onMinMaxInputKeyChange)},u.prototype.attachMinMaxInputEvents=function(){this.eventManager.addElementHandler(this.componentElement,"change",".wcpf-price-slider-min-max-inputs .wcpf-input",this.onMinMaxInputChange)},u.prototype.detachMinMaxInputEvents=function(){this.eventManager.removeElementHandler(this.componentElement,"change",".wcpf-price-slider-min-max-inputs .wcpf-input",this.onMinMaxInputChange)},u.prototype.resetDocumentElementValue=function(t){var e=parseFloat(this.minInputElement.data("min")),n=parseFloat(this.maxInputElement.data("max"));this.getFilterKeyByIndex("price")==t?this.setDocumentElementValue(t,e+"-"+n):this.getFilterKeyByIndex("minPrice")==t?this.setDocumentElementValue(t,e):this.getFilterKeyByIndex("maxPrice")==t&&this.setDocumentElementValue(t,n)},u.prototype.setDocumentElementValue=function(t,e){if(this.detachMinMaxInputEvents(),this.getFilterKeyByIndex("price")==t){var n=e.split("-");this.minInputElement.val(n[0]),1<n.length&&this.maxInputElement.val(n[1])}else this.getFilterKeyByIndex("minPrice")==t?this.minInputElement.val(e):this.getFilterKeyByIndex("maxPrice")==t&&this.maxInputElement.val(e);this.updateSliderRangeValue(),this.attachMinMaxInputEvents()},u.prototype.getDocumentElementValue=function(t){var e=this.getMinValue(),n=this.getMaxValue();return this.getFilterKeyByIndex("price")==t?e+"-"+n:this.getFilterKeyByIndex("minPrice")==t?e:this.getFilterKeyByIndex("maxPrice")==t?n:""},u.prototype.updateSliderRangeValue=function(){var t=parseFloat(this.minInputElement.val()),e=parseFloat(this.maxInputElement.val());this.sliderElement.slider("values",[t,e]),this.setPriceLabel(t,e)},u.prototype.onMinMaxInputKeyChange=function(t){var e=jQuery(t.currentTarget),n=e.val();this.detachMinMaxInputEvents(),e.val(n.replace(/[^\d].+/,"")),(t.which<48||57<t.which)&&t.preventDefault(),this.attachMinMaxInputEvents()},u.prototype.onMinMaxInputChange=function(t){var e=jQuery(t.currentTarget),n=null;"dash"==this.options.get("optionKeyFormat")?n=this.getFilterKeyByIndex("price"):"two"==this.options.get("optionKeyFormat")&&(n=e.hasClass("wcpf-min-input")?this.getFilterKeyByIndex("minPrice"):this.getFilterKeyByIndex("maxPrice")),this.updateSliderRangeValue(),n&&this.applyFilterValue(n,this.getDocumentElementValue(n))},u.prototype.onSlideMove=function(t,e){this.minInputElement.val(e.values[0]),this.maxInputElement.val(e.values[1]),this.updateSliderRangeValue()},u.prototype.onSlideStop=function(t,e){var n=null;"dash"==this.options.get("optionKeyFormat")?n=this.getFilterKeyByIndex("price"):"two"==this.options.get("optionKeyFormat")&&(n=jQuery(e.handle).is(":last-child")?this.getFilterKeyByIndex("maxPrice"):this.getFilterKeyByIndex("minPrice")),n&&this.applyFilterValue(n,this.getDocumentElementValue(n))},u.prototype.getPriceText=function(t){return window.accounting.formatMoney(t,{symbol:this.wooData.priceFormat.currencyFormatSymbol,decimal:this.wooData.priceFormat.currencyFormatDecimalSep,thousand:this.wooData.priceFormat.currencyFormatThousandSep,precision:this.wooData.priceFormat.currencyFormatNumDecimals,format:this.wooData.priceFormat.currencyFormat})},u.prototype.setPriceLabel=function(t,e){window.accounting,this.labelElement.find(".from").html(this.getPriceText(t)),this.labelElement.find(".to").html(this.getPriceText(e))},u.prototype.removeFilterValueByFilterNote=function(t){var e,n;try{for(var o=a(this.getFilterKeysList()),r=o.next();!r.done;r=o.next()){var i=r.value;this.resetDocumentElementValue(i),this.removeFilterValue(i)}}catch(t){e={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(e)throw e.error}}},u.prototype.getMaxValue=function(){var t=this.maxInputElement.val();return""==t&&(t=this.maxInputElement.data("max")),t},u.prototype.getMinValue=function(){var t=this.minInputElement.val();return""==t&&(t=this.minInputElement.data("min")),t},u.prototype.collectFilterNotes=function(t,e){var n=[];if(null!=t&&"string"==typeof t){var o=this.getMinValue(),r=this.getMaxValue();n.push(new s.default({filterComponent:this,filterValue:t,text:this.getPriceText(o)+" - "+this.getPriceText(r)}))}return n},u);function u(){return null!==i&&i.apply(this,arguments)||this}e.default=p},function(t,e,n){"use strict";var o,r=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var i,a=n(1),l=n(213),s=(i=a.default,r(c,i),c.prototype.getInitialComponents=function(){return[new l.default]},c);function c(){return null!==i&&i.apply(this,arguments)||this}e.default=s},function(t,e,n){"use strict";var o,r=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var i,a=n(13),l=n(214),s=(i=a.default,r(c,i),c.prototype.attachEvents=function(t){t.addSystemHandler(this.filterPackage.initFilterEvent,this.initFilter)},c.prototype.initFilter=function(t){t.component.set("BoxListField",l.default)},c);function c(){return null!==i&&i.apply(this,arguments)||this}e.default=s},function(t,e,n){"use strict";var o,r=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),p=this&&this.__values||function(t){var e="function"==typeof Symbol&&t[Symbol.iterator],n=0;return e?e.call(t):{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}}};Object.defineProperty(e,"__esModule",{value:!0});var i,a=n(44),u=n(45),l=n(8),s=(i=a.default,r(c,i),Object.defineProperty(c.prototype,"itemElements",{get:function(){return this.activeComponentElement.find(".wcpf-box-item")},enumerable:!0,configurable:!0}),c.prototype.attachElementEvents=function(t){i.prototype.attachElementEvents.call(this,t),t.addElementHandler(this.componentElement.find(".wcpf-box-item:not(.disabled)"),"click",this.onClickItem)},c.prototype.onClickItem=function(t){var e=l.default(t.currentTarget);this.options.get("multiSelect")||this.itemElements.filter(".selected").not('[data-value="'+e.data("value")+'"]').removeClass("selected"),e.toggleClass("selected"),this.updateValueFromElement(this.getFieldKey())},c.prototype.setDocumentElementValue=function(t,e){var n,o;if(null==e&&(e=""),this.itemElements.filter(".selected").removeClass("selected"),"string"==typeof e&&(e=[e]),Array.isArray(e))try{for(var r=p(e),i=r.next();!i.done;i=r.next()){var a=i.value;this.itemElements.filter('[data-value="'+a+'"]').addClass("selected")}}catch(t){n={error:t}}finally{try{i&&!i.done&&(o=r.return)&&o.call(r)}finally{if(n)throw n.error}}},c.prototype.getDocumentElementValue=function(t){var o=[];return this.itemElements.filter(".selected").each(function(t,e){var n=l.default(e);o.push(n.data("value"))}),o},c.prototype.removeFilterValueByFilterNote=function(t){var e=this.getDocumentElementValue(this.getFieldKey()),n=e.indexOf(t.filterValue);-1!=n&&(e.splice(n,1),this.setDocumentElementValue(this.getFieldKey(),e),e.length?this.applyFilterValue(this.getFieldKey(),e):this.removeFilterValue(this.getFieldKey()))},c.prototype.collectFilterNotes=function(t,e){var n,o,r=[];if("string"==typeof t&&(t=[t]),Array.isArray(t))try{for(var i=p(t.values()),a=i.next();!a.done;a=i.next()){var l=a.value,s=this.itemElements.filter('[data-value="'+l+'"]'),c=s.find(".wcpf-title");s.length&&c.length&&r.push(new u.default({filterComponent:this,filterValue:l,text:c.html()}))}}catch(t){n={error:t}}finally{try{a&&!a.done&&(o=i.return)&&o.call(i)}finally{if(n)throw n.error}}return r},c);function c(){return null!==i&&i.apply(this,arguments)||this}e.default=s},function(t,e,n){"use strict";var o,r=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var i,a=n(1),l=n(216),s=(i=a.default,r(c,i),c.prototype.getInitialComponents=function(){return[new l.default]},c);function c(){return null!==i&&i.apply(this,arguments)||this}e.default=s},function(t,e,n){"use strict";var o,r=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var i,a=n(13),l=n(217),s=(i=a.default,r(c,i),c.prototype.attachEvents=function(t){t.addSystemHandler(this.filterPackage.initFilterEvent,this.initFilter)},c.prototype.initFilter=function(t){t.component.set("TextListField",l.default)},c);function c(){return null!==i&&i.apply(this,arguments)||this}e.default=s},function(t,e,n){"use strict";var o,r=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),p=this&&this.__values||function(t){var e="function"==typeof Symbol&&t[Symbol.iterator],n=0;return e?e.call(t):{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}}};Object.defineProperty(e,"__esModule",{value:!0});var i,a=n(44),u=n(45),l=n(8),s=(i=a.default,r(c,i),Object.defineProperty(c.prototype,"itemElements",{get:function(){return this.activeComponentElement.find(".wcpf-text-item")},enumerable:!0,configurable:!0}),c.prototype.attachElementEvents=function(t){i.prototype.attachElementEvents.call(this,t),t.addElementHandler(this.componentElement.find(".wcpf-text-item:not(.disabled) .wcpf-text-label"),"click",this.onLabelClick)},c.prototype.onLabelClick=function(t){var e=jQuery(t.currentTarget).parents(".wcpf-text-item:first");this.options.get("multiSelect")||this.itemElements.filter(".selected").not('[data-value="'+e.data("value")+'"]').removeClass("selected"),e.toggleClass("selected"),e.parents(".wcpf-text-item.selected").each(this.uncheckElement),e.find(".wcpf-text-item.selected").each(this.uncheckElement),this.updateValueFromElement(this.getFieldKey())},c.prototype.uncheckElement=function(t,e){var n=jQuery(e),o=n.data("value");n.removeClass("selected"),n.find('.wcpf-input[value="'+o+'"]').prop("checked",!1)},c.prototype.setDocumentElementValue=function(t,e){var n,o;if(null==e&&(e=""),this.itemElements.filter(".selected").removeClass("selected"),"string"==typeof e&&(e=[e]),Array.isArray(e))try{for(var r=p(e),i=r.next();!i.done;i=r.next()){var a=i.value;this.itemElements.filter('[data-value="'+a+'"]').addClass("selected")}}catch(t){n={error:t}}finally{try{i&&!i.done&&(o=r.return)&&o.call(r)}finally{if(n)throw n.error}}},c.prototype.getDocumentElementValue=function(t){var o=[];return this.itemElements.filter(".selected").each(function(t,e){var n=l.default(e);o.push(n.data("value"))}),o},c.prototype.removeFilterValueByFilterNote=function(t){var e=this.getDocumentElementValue(this.getFieldKey()),n=e.indexOf(t.filterValue);-1!=n&&(e.splice(n,1),this.setDocumentElementValue(this.getFieldKey(),e),e.length?this.applyFilterValue(this.getFieldKey(),e):this.removeFilterValue(this.getFieldKey()))},c.prototype.collectFilterNotes=function(t,e){var n,o,r=[];if("string"==typeof t&&(t=[t]),Array.isArray(t))try{for(var i=p(t.values()),a=i.next();!a.done;a=i.next()){var l=a.value,s=this.itemElements.filter('[data-value="'+l+'"]'),c=s.find(".wcpf-title");c.length&&s.length&&r.push(new u.default({filterComponent:this,filterValue:l,text:c.html()}))}}catch(t){n={error:t}}finally{try{a&&!a.done&&(o=i.return)&&o.call(i)}finally{if(n)throw n.error}}return r},c);function c(){return null!==i&&i.apply(this,arguments)||this}e.default=s},function(t,e,n){"use strict";var o,r=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var i,a=n(1),l=n(219),s=(i=a.default,r(c,i),c.prototype.getInitialComponents=function(){return[new l.default]},c);function c(){return null!==i&&i.apply(this,arguments)||this}e.default=s},function(t,e,n){"use strict";var o,r=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var i,a=n(13),l=n(220),s=(i=a.default,r(c,i),c.prototype.attachEvents=function(t){t.addSystemHandler(this.filterPackage.initFilterEvent,this.initFilter)},c.prototype.initFilter=function(t){t.component.set("ColorListField",l.default)},c);function c(){return null!==i&&i.apply(this,arguments)||this}e.default=s},function(t,e,n){"use strict";var o,r=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),p=this&&this.__values||function(t){var e="function"==typeof Symbol&&t[Symbol.iterator],n=0;return e?e.call(t):{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}}};Object.defineProperty(e,"__esModule",{value:!0});var i,a=n(44),u=n(45),l=n(8),s=(i=a.default,r(c,i),Object.defineProperty(c.prototype,"itemElements",{get:function(){return this.activeComponentElement.find(".wcpf-color-item")},enumerable:!0,configurable:!0}),c.prototype.attachElementEvents=function(t){i.prototype.attachElementEvents.call(this,t),t.addElementHandler(this.componentElement.find(".wcpf-color-item:not(.disabled)").filter(":not(.disabled)"),"click",this.onClickItem)},c.prototype.onClickItem=function(t){var e=l.default(t.currentTarget);this.options.get("multiSelect")||this.itemElements.filter(".selected").not('[data-value="'+e.data("value")+'"]').removeClass("selected"),e.toggleClass("selected"),this.updateValueFromElement(this.getFieldKey())},c.prototype.setDocumentElementValue=function(t,e){var n,o;if(null==e&&(e=""),this.itemElements.filter(".selected").removeClass("selected"),"string"==typeof e&&(e=[e]),Array.isArray(e))try{for(var r=p(e),i=r.next();!i.done;i=r.next()){var a=i.value;this.itemElements.filter('[data-value="'+a+'"]').addClass("selected")}}catch(t){n={error:t}}finally{try{i&&!i.done&&(o=r.return)&&o.call(r)}finally{if(n)throw n.error}}},c.prototype.getDocumentElementValue=function(t){var o=[];return this.itemElements.filter(".selected").each(function(t,e){var n=l.default(e);o.push(n.data("value"))}),o},c.prototype.removeFilterValueByFilterNote=function(t){var e=this.getDocumentElementValue(this.getFieldKey()),n=e.indexOf(t.filterValue);-1!=n&&(e.splice(n,1),this.setDocumentElementValue(this.getFieldKey(),e),e.length?this.applyFilterValue(this.getFieldKey(),e):this.removeFilterValue(this.getFieldKey()))},c.prototype.collectFilterNotes=function(t,e){var n,o,r=[];if("string"==typeof t&&(t=[t]),Array.isArray(t))try{for(var i=p(t.values()),a=i.next();!a.done;a=i.next()){var l=a.value,s=this.itemElements.filter('[data-value="'+l+'"]'),c=s.data("title");s.length&&c&&r.push(new u.default({filterComponent:this,filterValue:l,text:c}))}}catch(t){n={error:t}}finally{try{a&&!a.done&&(o=i.return)&&o.call(i)}finally{if(n)throw n.error}}return r},c);function c(){return null!==i&&i.apply(this,arguments)||this}e.default=s},function(t,e,n){"use strict";var o,r=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var i,a=n(1),l=n(222),s=n(224),c=(i=a.default,r(p,i),p.prototype.getInitialSubpackages=function(){return[new l.default,new s.default]},p.prototype.getInitialComponents=function(){return[]},p);function p(){return null!==i&&i.apply(this,arguments)||this}e.default=c},function(t,e,n){"use strict";var o,r=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var i,a=n(1),l=n(223),s=(i=a.default,r(c,i),c.prototype.getInitialComponents=function(){return[new l.default]},c);function c(){return null!==i&&i.apply(this,arguments)||this}e.default=s},function(t,e,n){"use strict";var o,r=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var i,a=n(13),l=n(66),s=(i=a.default,r(c,i),c.prototype.attachEvents=function(t){t.addSystemHandler(this.filterPackage.initFilterEvent,this.initFilter)},c.prototype.initFilter=function(t){t.component.set("ColumnsLayout",l.default)},c);function c(){return null!==i&&i.apply(this,arguments)||this}e.default=s},function(t,e,n){"use strict";var o,r=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var i,a=n(1),l=n(225),s=(i=a.default,r(c,i),c.prototype.getInitialComponents=function(){return[new l.default]},c);function c(){return null!==i&&i.apply(this,arguments)||this}e.default=s},function(t,e,n){"use strict";var o,r=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var i,a=n(13),l=n(226),s=(i=a.default,r(c,i),c.prototype.attachEvents=function(t){t.addSystemHandler(this.filterPackage.initFilterEvent,this.initFilter)},c.prototype.initFilter=function(t){t.component.set("SimpleBoxLayout",l.default)},c);function c(){return null!==i&&i.apply(this,arguments)||this}e.default=s},function(t,e,n){"use strict";var o,r=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var i,a=n(66),l=(i=a.default,r(s,i),s.prototype.initialPropertiesOfElement=function(){i.prototype.initialPropertiesOfElement.call(this),this.componentState.has("box")?"hide"==this.componentState.get("box")?(this.componentElement.addClass("wcpf-box-hide"),this.componentElement.find(".wcpf-content:first").slideUp(0)):(this.componentElement.removeClass("wcpf-box-hide"),this.componentElement.find(".wcpf-content:first").slideDown(0)):this.componentElement.hasClass("wcpf-box-style")&&this.componentElement.hasClass("wcpf-box-hide")&&this.componentElement.find(".wcpf-content:first").slideUp(300)},s.prototype.attachElementEvents=function(t){i.prototype.attachElementEvents.call(this,t),this.componentElement.hasClass("wcpf-box-style")&&t.addElementHandler(this.componentElement,"click",".wcpf-heading-label:first",this.onBoxToggleClick)},s.prototype.onBoxToggleClick=function(t){this.componentElement.toggleClass("wcpf-box-hide"),this.componentElement.hasClass("wcpf-box-hide")?(this.componentElement.find(".wcpf-content:first").slideUp(300),this.componentState.set("box","hide")):(this.componentElement.find(".wcpf-content:first").slideDown(300),this.componentState.set("box","show"))},s);function s(){return null!==i&&i.apply(this,arguments)||this}e.default=l}]);
// source --> https://polor.pl/wp-content/plugins/woocommerce/assets/js/jquery-blockui/jquery.blockUI.min.js?ver=2.7.0-wc.10.7.0 
/*!
 * jQuery blockUI plugin
 * Version 2.70.0-2014.11.23
 * Requires jQuery v1.7 or later
 *
 * Examples at: http://malsup.com/jquery/block/
 * Copyright (c) 2007-2013 M. Alsup
 * Dual licensed under the MIT and GPL licenses:
 * http://www.opensource.org/licenses/mit-license.php
 * http://www.gnu.org/licenses/gpl.html
 *
 * Thanks to Amir-Hossein Sobhi for some excellent contributions!
 */
!function(){"use strict";function e(e){e.fn._fadeIn=e.fn.fadeIn;var t=e.noop||function(){},o=/MSIE/.test(navigator.userAgent),n=/MSIE 6.0/.test(navigator.userAgent)&&!/MSIE 8.0/.test(navigator.userAgent),i=(document.documentMode,"function"==typeof document.createElement("div").style.setExpression&&document.createElement("div").style.setExpression);e.blockUI=function(e){d(window,e)},e.unblockUI=function(e){a(window,e)},e.growlUI=function(t,o,n,i){var s=e('<div class="growlUI"></div>');t&&s.append("<h1>"+t+"</h1>"),o&&s.append("<h2>"+o+"</h2>"),n===undefined&&(n=3e3);var l=function(t){t=t||{},e.blockUI({message:s,fadeIn:"undefined"!=typeof t.fadeIn?t.fadeIn:700,fadeOut:"undefined"!=typeof t.fadeOut?t.fadeOut:1e3,timeout:"undefined"!=typeof t.timeout?t.timeout:n,centerY:!1,showOverlay:!1,onUnblock:i,css:e.blockUI.defaults.growlCSS})};l();s.css("opacity");s.on("mouseover",function(){l({fadeIn:0,timeout:3e4});var t=e(".blockMsg");t.stop(),t.fadeTo(300,1)}).on("mouseout",function(){e(".blockMsg").fadeOut(1e3)})},e.fn.block=function(t){if(this[0]===window)return e.blockUI(t),this;var o=e.extend({},e.blockUI.defaults,t||{});return this.each(function(){var t=e(this);o.ignoreIfBlocked&&t.data("blockUI.isBlocked")||t.unblock({fadeOut:0})}),this.each(function(){"static"==e.css(this,"position")&&(this.style.position="relative",e(this).data("blockUI.static",!0)),this.style.zoom=1,d(this,t)})},e.fn.unblock=function(t){return this[0]===window?(e.unblockUI(t),this):this.each(function(){a(this,t)})},e.blockUI.version=2.7,e.blockUI.defaults={message:"<h1>Please wait...</h1>",title:null,draggable:!0,theme:!1,css:{padding:0,margin:0,width:"30%",top:"40%",left:"35%",textAlign:"center",color:"#000",border:"3px solid #aaa",backgroundColor:"#fff",cursor:"wait"},themedCSS:{width:"30%",top:"40%",left:"35%"},overlayCSS:{backgroundColor:"#000",opacity:.6,cursor:"wait"},cursorReset:"default",growlCSS:{width:"350px",top:"10px",left:"",right:"10px",border:"none",padding:"5px",opacity:.6,cursor:"default",color:"#fff",backgroundColor:"#000","-webkit-border-radius":"10px","-moz-border-radius":"10px","border-radius":"10px"},iframeSrc:/^https/i.test(window.location.href||"")?"javascript:false":"about:blank",forceIframe:!1,baseZ:1e3,centerX:!0,centerY:!0,allowBodyStretch:!0,bindEvents:!0,constrainTabKey:!0,fadeIn:200,fadeOut:400,timeout:0,showOverlay:!0,focusInput:!0,focusableElements:":input:enabled:visible",onBlock:null,onUnblock:null,onOverlayClick:null,quirksmodeOffsetHack:4,blockMsgClass:"blockMsg",ignoreIfBlocked:!1};var s=null,l=[];function d(d,c){var u,b,h=d==window,k=c&&c.message!==undefined?c.message:undefined;if(!(c=e.extend({},e.blockUI.defaults,c||{})).ignoreIfBlocked||!e(d).data("blockUI.isBlocked")){if(c.overlayCSS=e.extend({},e.blockUI.defaults.overlayCSS,c.overlayCSS||{}),u=e.extend({},e.blockUI.defaults.css,c.css||{}),c.onOverlayClick&&(c.overlayCSS.cursor="pointer"),b=e.extend({},e.blockUI.defaults.themedCSS,c.themedCSS||{}),k=k===undefined?c.message:k,h&&s&&a(window,{fadeOut:0}),k&&"string"!=typeof k&&(k.parentNode||k.jquery)){var y=k.jquery?k[0]:k,m={};e(d).data("blockUI.history",m),m.el=y,m.parent=y.parentNode,m.display=y.style.display,m.position=y.style.position,m.parent&&m.parent.removeChild(y)}e(d).data("blockUI.onUnblock",c.onUnblock);var g,v,I,w,U=c.baseZ;g=o||c.forceIframe?e('<iframe class="blockUI" style="z-index:'+U+++';display:none;border:none;margin:0;padding:0;position:absolute;width:100%;height:100%;top:0;left:0" src="'+c.iframeSrc+'"></iframe>'):e('<div class="blockUI" style="display:none"></div>'),v=c.theme?e('<div class="blockUI blockOverlay ui-widget-overlay" style="z-index:'+U+++';display:none"></div>'):e('<div class="blockUI blockOverlay" style="z-index:'+U+++';display:none;border:none;margin:0;padding:0;width:100%;height:100%;top:0;left:0"></div>'),c.theme&&h?(w='<div class="blockUI '+c.blockMsgClass+' blockPage ui-dialog ui-widget ui-corner-all" style="z-index:'+(U+10)+';display:none;position:fixed">',c.title&&(w+='<div class="ui-widget-header ui-dialog-titlebar ui-corner-all blockTitle">'+(c.title||"&nbsp;")+"</div>"),w+='<div class="ui-widget-content ui-dialog-content"></div>',w+="</div>"):c.theme?(w='<div class="blockUI '+c.blockMsgClass+' blockElement ui-dialog ui-widget ui-corner-all" style="z-index:'+(U+10)+';display:none;position:absolute">',c.title&&(w+='<div class="ui-widget-header ui-dialog-titlebar ui-corner-all blockTitle">'+(c.title||"&nbsp;")+"</div>"),w+='<div class="ui-widget-content ui-dialog-content"></div>',w+="</div>"):w=h?'<div class="blockUI '+c.blockMsgClass+' blockPage" style="z-index:'+(U+10)+';display:none;position:fixed"></div>':'<div class="blockUI '+c.blockMsgClass+' blockElement" style="z-index:'+(U+10)+';display:none;position:absolute"></div>',I=e(w),k&&(c.theme?(I.css(b),I.addClass("ui-widget-content")):I.css(u)),c.theme||v.css(c.overlayCSS),v.css("position",h?"fixed":"absolute"),(o||c.forceIframe)&&g.css("opacity",0);var x=[g,v,I],C=e(h?"body":d);e.each(x,function(){this.appendTo(C)}),c.theme&&c.draggable&&e.fn.draggable&&I.draggable({handle:".ui-dialog-titlebar",cancel:"li"});var S=i&&(!e.support.boxModel||e("object,embed",h?null:d).length>0);if(n||S){if(h&&c.allowBodyStretch&&e.support.boxModel&&e("html,body").css("height","100%"),(n||!e.support.boxModel)&&!h)var E=p(d,"borderTopWidth"),O=p(d,"borderLeftWidth"),T=E?"(0 - "+E+")":0,M=O?"(0 - "+O+")":0;e.each(x,function(e,t){var o=t[0].style;if(o.position="absolute",e<2)h?o.setExpression("height","Math.max(document.body.scrollHeight, document.body.offsetHeight) - (jQuery.support.boxModel?0:"+c.quirksmodeOffsetHack+') + "px"'):o.setExpression("height",'this.parentNode.offsetHeight + "px"'),h?o.setExpression("width",'jQuery.support.boxModel && document.documentElement.clientWidth || document.body.clientWidth + "px"'):o.setExpression("width",'this.parentNode.offsetWidth + "px"'),M&&o.setExpression("left",M),T&&o.setExpression("top",T);else if(c.centerY)h&&o.setExpression("top",'(document.documentElement.clientHeight || document.body.clientHeight) / 2 - (this.offsetHeight / 2) + (blah = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop) + "px"'),o.marginTop=0;else if(!c.centerY&&h){var n="((document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop) + "+(c.css&&c.css.top?parseInt(c.css.top,10):0)+') + "px"';o.setExpression("top",n)}})}if(k&&(c.theme?I.find(".ui-widget-content").append(k):I.append(k),(k.jquery||k.nodeType)&&e(k).show()),(o||c.forceIframe)&&c.showOverlay&&g.show(),c.fadeIn){var B=c.onBlock?c.onBlock:t,j=c.showOverlay&&!k?B:t,H=k?B:t;c.showOverlay&&v._fadeIn(c.fadeIn,j),k&&I._fadeIn(c.fadeIn,H)}else c.showOverlay&&v.show(),k&&I.show(),c.onBlock&&c.onBlock.bind(I)();if(r(1,d,c),h?(s=I[0],l=e(c.focusableElements,s),c.focusInput&&setTimeout(f,20)):function(e,t,o){var n=e.parentNode,i=e.style,s=(n.offsetWidth-e.offsetWidth)/2-p(n,"borderLeftWidth"),l=(n.offsetHeight-e.offsetHeight)/2-p(n,"borderTopWidth");t&&(i.left=s>0?s+"px":"0");o&&(i.top=l>0?l+"px":"0")}(I[0],c.centerX,c.centerY),c.timeout){var z=setTimeout(function(){h?e.unblockUI(c):e(d).unblock(c)},c.timeout);e(d).data("blockUI.timeout",z)}}}function a(t,o){var n,i,d=t==window,a=e(t),u=a.data("blockUI.history"),f=a.data("blockUI.timeout");f&&(clearTimeout(f),a.removeData("blockUI.timeout")),o=e.extend({},e.blockUI.defaults,o||{}),r(0,t,o),null===o.onUnblock&&(o.onUnblock=a.data("blockUI.onUnblock"),a.removeData("blockUI.onUnblock")),i=d?e(document.body).children().filter(".blockUI").add("body > .blockUI"):a.find(">.blockUI"),o.cursorReset&&(i.length>1&&(i[1].style.cursor=o.cursorReset),i.length>2&&(i[2].style.cursor=o.cursorReset)),d&&(s=l=null),o.fadeOut?(n=i.length,i.stop().fadeOut(o.fadeOut,function(){0==--n&&c(i,u,o,t)})):c(i,u,o,t)}function c(t,o,n,i){var s=e(i);if(!s.data("blockUI.isBlocked")){t.each(function(e,t){this.parentNode&&this.parentNode.removeChild(this)}),o&&o.el&&(o.el.style.display=o.display,o.el.style.position=o.position,o.el.style.cursor="default",o.parent&&o.parent.appendChild(o.el),s.removeData("blockUI.history")),s.data("blockUI.static")&&s.css("position","static"),"function"==typeof n.onUnblock&&n.onUnblock(i,n);var l=e(document.body),d=l.width(),a=l[0].style.width;l.width(d-1).width(d),l[0].style.width=a}}function r(t,o,n){var i=o==window,l=e(o);if((t||(!i||s)&&(i||l.data("blockUI.isBlocked")))&&(l.data("blockUI.isBlocked",t),i&&n.bindEvents&&(!t||n.showOverlay))){var d="mousedown mouseup keydown keypress keyup touchstart touchend touchmove";t?e(document).on(d,n,u):e(document).off(d,u)}}function u(t){if("keydown"===t.type&&t.keyCode&&9==t.keyCode&&s&&t.data.constrainTabKey){var o=l,n=!t.shiftKey&&t.target===o[o.length-1],i=t.shiftKey&&t.target===o[0];if(n||i)return setTimeout(function(){f(i)},10),!1}var d=t.data,a=e(t.target);return a.hasClass("blockOverlay")&&d.onOverlayClick&&d.onOverlayClick(t),a.parents("div."+d.blockMsgClass).length>0||0===a.parents().children().filter("div.blockUI").length}function f(e){if(l){var t=l[!0===e?l.length-1:0];t&&t.trigger("focus")}}function p(t,o){return parseInt(e.css(t,o),10)||0}}"function"==typeof define&&define.amd&&define.amd.jQuery?define(["jquery"],e):e(jQuery)}();