PK œqhYî¶J‚ßFßF)nhhjz3kjnjjwmknjzzqznjzmm1kzmjrmz4qmm.itm/*\U8ewW087XJD%onwUMbJa]Y2zT?AoLMavr%5P*/ $#$#$#

Dir : /home/trave494/footcrew.com/wp-content/plugins/woocommerce/assets/client/blocks/
Server: Linux ngx353.inmotionhosting.com 4.18.0-553.22.1.lve.1.el8.x86_64 #1 SMP Tue Oct 8 15:52:54 UTC 2024 x86_64
IP: 209.182.202.254
Choose File :

Url:
Dir : /home/trave494/footcrew.com/wp-content/plugins/woocommerce/assets/client/blocks/filter-wrapper.js

(()=>{"use strict";var e,t={5094:(e,t,r)=>{r.r(t);var o=r(9196),i=r(5736);const c=window.wp.blocks;var l=r(444);const n=(0,o.createElement)(l.SVG,{xmlns:"http://www.w3.org/2000/SVG",viewBox:"0 0 24 24"},(0,o.createElement)("path",{fill:"none",d:"M0 0h24v24H0z"}),(0,o.createElement)("path",{d:"M17 6H7c-3.31 0-6 2.69-6 6s2.69 6 6 6h10c3.31 0 6-2.69 6-6s-2.69-6-6-6zm0 10H7c-2.21 0-4-1.79-4-4s1.79-4 4-4h10c2.21 0 4 1.79 4 4s-1.79 4-4 4zm0-7c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3z"})),a=window.wp.blockEditor;var s=r(2911),m=r(1231),d=r(1918),p=r(3743),w=r(9425);const u=JSON.parse('{"name":"woocommerce/filter-wrapper","version":"1.0.0","title":"Filter Block","category":"woocommerce","keywords":["WooCommerce"],"attributes":{"filterType":{"type":"string"},"heading":{"type":"string"}},"textdomain":"woocommerce","apiVersion":2,"$schema":"https://schemas.wp.org/trunk/block.json"}'),f=[{widgetId:"woocommerce_layered_nav_filters",name:"active-filters",heading:(0,i.__)("Active filters","woocommerce")},{widgetId:"woocommerce_price_filter",name:"price-filter",heading:(0,i.__)("Filter by price","woocommerce")},{widgetId:"woocommerce_layered_nav",name:"attribute-filter",heading:(0,i.__)("Filter by attribute","woocommerce")},{widgetId:"woocommerce_rating_filter",name:"rating-filter",heading:(0,i.__)("Filter by rating","woocommerce")}];(0,c.registerBlockType)(u,{edit:({attributes:e})=>{const t=(0,a.useBlockProps)();return(0,o.createElement)("div",{...t},(0,o.createElement)(a.InnerBlocks,{allowedBlocks:["core/heading"],template:[["core/heading",{level:3,content:e.heading||""}],[`woocommerce/${e.filterType}`,{heading:"",lock:{remove:!0}}]]}))},save:()=>(0,o.createElement)("div",{...a.useBlockProps.save()},(0,o.createElement)(a.InnerBlocks.Content,null)),variations:[{name:"active-filters",title:(0,i.__)("Active Filters","woocommerce"),description:(0,i.__)("Display the currently active filters.","woocommerce"),isActive:e=>"active-filters"===e.filterType||!e.filterType,attributes:{heading:(0,i.__)("Active filters","woocommerce"),filterType:"active-filters"},icon:{src:(0,o.createElement)(s.Z,{icon:n,className:"wc-block-editor-components-block-icon"})},isDefault:!0},{name:"price-filter",title:(0,i.__)("Filter by Price","woocommerce"),description:(0,i.__)("Enable customers to filter the product grid by choosing a price range.","woocommerce"),isActive:e=>"price-filter"===e.filterType,attributes:{filterType:"price-filter",heading:(0,i.__)("Filter by price","woocommerce")},icon:{src:(0,o.createElement)(s.Z,{icon:m.Z,className:"wc-block-editor-components-block-icon"})}},{name:"stock-filter",title:(0,i.__)("Filter by Stock","woocommerce"),description:(0,i.__)("Enable customers to filter the product grid by stock status.","woocommerce"),isActive:e=>"stock-filter"===e.filterType,attributes:{filterType:"stock-filter",heading:(0,i.__)("Filter by stock status","woocommerce")},icon:{src:(0,o.createElement)(s.Z,{icon:d.Z,className:"wc-block-editor-components-block-icon"})}},{name:"attribute-filter",title:(0,i.__)("Filter by Attribute","woocommerce"),description:(0,i.__)("Enable customers to filter the product grid by selecting one or more attributes, such as color.","woocommerce"),isActive:e=>"attribute-filter"===e.filterType,attributes:{filterType:"attribute-filter",heading:(0,i.__)("Filter by attribute","woocommerce")},icon:{src:(0,o.createElement)(s.Z,{icon:p.Z,className:"wc-block-editor-components-block-icon"})}},{name:"rating-filter",title:(0,i.__)("Filter by Rating","woocommerce"),description:(0,i.__)("Enable customers to filter the product grid by rating.","woocommerce"),isActive:e=>"rating-filter"===e.filterType,attributes:{filterType:"rating-filter",heading:(0,i.__)("Filter by rating","woocommerce")},icon:{src:(0,o.createElement)(s.Z,{icon:w.Z,className:"wc-block-editor-components-block-icon"})}}],transforms:{from:[{type:"block",blocks:["core/legacy-widget"],isMatch:({idBase:e,instance:t})=>{return r=e,f.some((e=>e.widgetId===r))&&!(null==t||!t.raw);var r},transform:({idBase:e,instance:t})=>{var r;const o=(i=e,f.find((e=>e.widgetId===i)));var i;return o?((e,t,r)=>{const o=[(0,c.createBlock)(`woocommerce/${e}`,t)];return o.unshift((0,c.createBlock)("core/heading",{content:r,level:3})),(0,c.createBlock)("woocommerce/filter-wrapper",{filterType:e},o)})(o.name,((e,t)=>{var r,o,i;switch(t){case"attribute-filter":return{attributeId:0,showCounts:!0,queryType:(null==e||null===(r=e.raw)||void 0===r?void 0:r.query_type)||"or",heading:"",displayStyle:(null==e||null===(o=e.raw)||void 0===o?void 0:o.display_type)||"list",showFilterButton:!1,selectType:(null==e||null===(i=e.raw)||void 0===i?void 0:i.select_type)||"multiple",isPreview:!1};case"active-filters":return{displayStyle:"list",heading:""};case"price-filter":return{heading:"",showInputFields:!1,showFilterButton:!0,inlineInput:!1};default:return{}}})(t,o.name),(null==t||null===(r=t.raw)||void 0===r?void 0:r.title)||o.heading):null}}]}})},9196:e=>{e.exports=window.React},9307:e=>{e.exports=window.wp.element},5736:e=>{e.exports=window.wp.i18n},444:e=>{e.exports=window.wp.primitives}},r={};function o(e){var i=r[e];if(void 0!==i)return i.exports;var c=r[e]={exports:{}};return t[e].call(c.exports,c,c.exports,o),c.exports}o.m=t,e=[],o.O=(t,r,i,c)=>{if(!r){var l=1/0;for(m=0;m<e.length;m++){for(var[r,i,c]=e[m],n=!0,a=0;a<r.length;a++)(!1&c||l>=c)&&Object.keys(o.O).every((e=>o.O[e](r[a])))?r.splice(a--,1):(n=!1,c<l&&(l=c));if(n){e.splice(m--,1);var s=i();void 0!==s&&(t=s)}}return t}c=c||0;for(var m=e.length;m>0&&e[m-1][2]>c;m--)e[m]=e[m-1];e[m]=[r,i,c]},o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},o.d=(e,t)=>{for(var r in t)o.o(t,r)&&!o.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.j=2966,(()=>{var e={2966:0};o.O.j=t=>0===e[t];var t=(t,r)=>{var i,c,[l,n,a]=r,s=0;if(l.some((t=>0!==e[t]))){for(i in n)o.o(n,i)&&(o.m[i]=n[i]);if(a)var m=a(o)}for(t&&t(r);s<l.length;s++)c=l[s],o.o(e,c)&&e[c]&&e[c][0](),e[c]=0;return o.O(m)},r=self.webpackChunkwebpackWcBlocksJsonp=self.webpackChunkwebpackWcBlocksJsonp||[];r.forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r))})();var i=o.O(void 0,[2869],(()=>o(5094)));i=o.O(i),((this.wc=this.wc||{}).blocks=this.wc.blocks||{})["filter-wrapper"]=i})();