this.wc=this.wc||{},this.wc.blocks=this.wc.blocks||{},this.wc.blocks["legacy-template"]=function(e){function t(t){for(var r,l,i=t[0],u=t[1],a=t[2],s=0,d=[];s<i.length;s++)l=i[s],Object.prototype.hasOwnProperty.call(n,l)&&n[l]&&d.push(n[l][0]),n[l]=0;for(r in u)Object.prototype.hasOwnProperty.call(u,r)&&(e[r]=u[r]);for(p&&p(t);d.length;)d.shift()();return c.push.apply(c,a||[]),o()}function o(){for(var e,t=0;t<c.length;t++){for(var o=c[t],r=!0,i=1;i<o.length;i++){var u=o[i];0!==n[u]&&(r=!1)}r&&(c.splice(t--,1),e=l(l.s=o[0]))}return e}var r={},n={24:0},c=[];function l(t){if(r[t])return r[t].exports;var o=r[t]={i:t,l:!1,exports:{}};return e[t].call(o.exports,o,o.exports,l),o.l=!0,o.exports}l.m=e,l.c=r,l.d=function(e,t,o){l.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},l.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},l.t=function(e,t){if(1&t&&(e=l(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(l.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)l.d(o,r,function(t){return e[t]}.bind(null,r));return o},l.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return l.d(t,"a",t),t},l.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},l.p="";var i=window.webpackWcBlocksJsonp=window.webpackWcBlocksJsonp||[],u=i.push.bind(i);i.push=t,i=i.slice();for(var a=0;a<i.length;a++)t(i[a]);var p=u;return c.push([844,0]),o()}({0:function(e,t){e.exports=window.wp.element},1:function(e,t){e.exports=window.wp.i18n},14:function(e,t){e.exports=window.wp.blocks},18:function(e,t){e.exports=window.wp.primitives},3:function(e,t){e.exports=window.wc.wcSettings},32:function(e,t,o){"use strict";o.d(t,"o",(function(){return c})),o.d(t,"m",(function(){return l})),o.d(t,"l",(function(){return i})),o.d(t,"n",(function(){return u})),o.d(t,"j",(function(){return a})),o.d(t,"e",(function(){return p})),o.d(t,"f",(function(){return s})),o.d(t,"g",(function(){return d})),o.d(t,"k",(function(){return m})),o.d(t,"c",(function(){return b})),o.d(t,"d",(function(){return g})),o.d(t,"h",(function(){return f})),o.d(t,"a",(function(){return w})),o.d(t,"i",(function(){return h})),o.d(t,"b",(function(){return O}));var r,n=o(3);const c=Object(n.getSetting)("wcBlocksConfig",{buildPhase:1,pluginUrl:"",productCount:0,defaultAvatar:"",restApiRoutes:{},wordCountType:"words"}),l=c.pluginUrl+"images/",i=c.pluginUrl+"build/",u=c.buildPhase,a=null===(r=n.STORE_PAGES.shop)||void 0===r?void 0:r.permalink,p=n.STORE_PAGES.checkout.id,s=n.STORE_PAGES.checkout.permalink,d=n.STORE_PAGES.privacy.permalink,m=(n.STORE_PAGES.privacy.title,n.STORE_PAGES.terms.permalink),b=(n.STORE_PAGES.terms.title,n.STORE_PAGES.cart.id),g=n.STORE_PAGES.cart.permalink,f=(n.STORE_PAGES.myaccount.permalink?n.STORE_PAGES.myaccount.permalink:Object(n.getSetting)("wpLoginUrl","/wp-login.php"),Object(n.getSetting)("shippingCountries",{})),w=Object(n.getSetting)("allowedCountries",{}),h=Object(n.getSetting)("shippingStates",{}),O=Object(n.getSetting)("allowedStates",{})},4:function(e,t){e.exports=window.wp.components},844:function(e,t,o){e.exports=o(874)},845:function(e,t){},874:function(e,t,o){"use strict";o.r(t);var r=o(0),n=o(14),c=o(32),l=o(9),i=o(4),u=o(1),a=o(897);o(845);const p={"single-product":{title:Object(u.__)("WooCommerce Single Product Template",'woocommerce'),placeholder:"single-product"},"archive-product":{title:Object(u.__)("WooCommerce Product Archive Template",'woocommerce'),placeholder:"archive-product"},"taxonomy-product_cat":{title:Object(u.__)("WooCommerce Product Taxonomy Template",'woocommerce'),placeholder:"archive-product"},"taxonomy-product_tag":{title:Object(u.__)("WooCommerce Product Tag Template",'woocommerce'),placeholder:"archive-product"}};Object(n.registerBlockType)("woocommerce/legacy-template",{title:Object(u.__)("WooCommerce Legacy Template",'woocommerce'),category:"woocommerce",apiVersion:2,keywords:[Object(u.__)("WooCommerce",'woocommerce')],description:Object(u.__)("Renders legacy WooCommerce PHP templates.",'woocommerce'),supports:{align:!1,html:!1,multiple:!1,reusable:!1,inserter:!1},example:{attributes:{isPreview:!0}},attributes:{template:{type:"string",default:"any"}},edit:e=>{var t,o,n,s;let{attributes:d}=e;const m=Object(l.useBlockProps)(),b=null!==(t=null===(o=p[d.template])||void 0===o?void 0:o.title)&&void 0!==t?t:d.template,g=null!==(n=null===(s=p[d.template])||void 0===s?void 0:s.placeholder)&&void 0!==n?n:"fallback";return Object(r.createElement)("div",m,Object(r.createElement)(i.Placeholder,{icon:a.a,label:b,className:"wp-block-woocommerce-legacy-template__placeholder"},Object(r.createElement)("div",{className:"wp-block-woocommerce-legacy-template__placeholder-copy"},Object(u.sprintf)(
/* translators: %s is the template title */
Object(u.__)("This is an editor placeholder for the %s. On your store this will be replaced by the template and display with your product image(s), title, price, etc. You can move this placeholder around and add further blocks around it to extend the template.",'woocommerce'),b)),Object(r.createElement)("div",{className:"wp-block-woocommerce-legacy-template__placeholder-wireframe"},Object(r.createElement)("img",{className:"wp-block-woocommerce-legacy-template__placeholder-image",src:`${c.m}template-placeholders/${g}.svg`,alt:b}))))},save:()=>null})},9:function(e,t){e.exports=window.wp.blockEditor}});