1 line
3.3 KiB
JavaScript
1 line
3.3 KiB
JavaScript
|
(()=>{"use strict";var e,o={8469:(e,o,t)=>{t.r(o);const r=window.wp.blocks;var n=t(9507);const c=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"woocommerce/product-collection-no-results","title":"No results","version":"1.0.0","category":"woocommerce","description":"The contents of this block will display when there are no products found.","textdomain":"woocommerce","keywords":["Product Collection"],"usesContext":["queryId","query"],"ancestor":["woocommerce/product-collection"],"supports":{"align":true,"reusable":false,"html":false,"color":{"gradients":true,"link":true},"typography":{"fontSize":true,"lineHeight":true,"__experimentalFontFamily":true,"__experimentalFontWeight":true,"__experimentalFontStyle":true,"__experimentalTextTransform":true,"__experimentalTextDecoration":true,"__experimentalLetterSpacing":true,"__experimentalDefaultControls":{"fontSize":true}}}}');var l=t(9196);const s=window.wp.blockEditor;var a=t(5736);const i=[["core/group",{layout:{type:"flex",orientation:"vertical",justifyContent:"center",flexWrap:"wrap"}},[["core/paragraph",{textAlign:"center",fontSize:"medium",content:`<strong>${(0,a.__)("No results found","woocommerce")}</strong>`}],["core/paragraph",{content:`${(0,a.__)("You can try","woocommerce")} <a href="#" class="wc-link-clear-any-filters">${(0,a.__)("clearing any filters","woocommerce")}</a> ${(0,a.__)("or head to our","woocommerce")} <a href="#" class="wc-link-stores-home">${(0,a.__)("store's home","woocommerce")}</a>`}]]]];(0,r.registerBlockType)(c,{icon:n.Z,supports:{...c.supports},edit:()=>{const e=(0,s.useBlockProps)({className:"wc-block-product-collection-no-results"});return(0,l.createElement)("div",{...e},(0,l.createElement)(s.InnerBlocks,{template:i}))},save:function(){return(0,l.createElement)(s.InnerBlocks.Content,null)}})},9196:e=>{e.exports=window.React},5736:e=>{e.exports=window.wp.i18n},444:e=>{e.exports=window.wp.primitives}},t={};function r(e){var n=t[e];if(void 0!==n)return n.exports;var c=t[e]={exports:{}};return o[e].call(c.exports,c,c.exports,r),c.exports}r.m=o,e=[],r.O=(o,t,n,c)=>{if(!t){var l=1/0;for(u=0;u<e.length;u++){for(var[t,n,c]=e[u],s=!0,a=0;a<t.length;a++)(!1&c||l>=c)&&Object.keys(r.O).every((e=>r.O[e](t[a])))?t.splice(a--,1):(s=!1,c<l&&(l=c));if(s){e.splice(u--,1);var i=n();void 0!==i&&(o=i)}}return o}c=c||0;for(var u=e.length;u>0&&e[u-1][2]>c;u--)e[u]=e[u-1];e[u]=[t,n,c]},r.n=e=>{var o=e&&e.__esModule?()=>e.default:()=>e;return r.d(o,{a:o}),o},r.d=(e,o)=>{for(var t in o)r.o(o,t)&&!r.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:o[t]})},r.o=(e,o)=>Object.prototype.hasOwnProperty.call(e,o),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.j=1052,(()=>{var e={1052:0};r.O.j=o=>0===e[o];var o=(o,t)=>{var n,c,[l,s,a]=t,i=0;if(l.some((o=>0!==e[o]))){for(n in s)r.o(s,n)&&(r.m[n]=s[n]);if(a)var u=a(r)}for(o&&o(t);i<l.length;i++)c=l[i],r.o(e,c)&&e[c]&&e[c][0](),e[c]=0;return r.O(u)},t=self.webpackChunkwebpackWcBlocksJsonp=self.webpackChunkwebpackWcBlocksJsonp||[];t.forEach(o.bind(null,0)),t.push=o.bind(null,t.push.bind(t))})();var n=r.O(void 0,[2869],(()=>r(8469)));n=r.O(n),((this.wc=this.wc||{}).blocks=this.wc.blocks||{})["product-collection-no-results"]=n})();
|