File "order-confirmation-downloads-wrapper.js"

Full Path: /home/jlklyejr/public_html/wp-content/test/wp-content/plugins/woocommerce/assets/client/blocks/order-confirmation-downloads-wrapper.js
File size: 3.04 KB
MIME-type: text/plain
Charset: utf-8

(()=>{var e,o={8684:(e,o,t)=>{"use strict";t.r(o);var r=t(9196);const n=window.wp.blocks,s=window.wp.blockEditor;var a=t(2911),i=t(2995);const c=window.wc.wcSettings;var l=t(3849),d=t.n(l);t(8482);const p=JSON.parse('{"name":"woocommerce/order-confirmation-downloads-wrapper","version":"1.0.0","title":"Downloads Section","description":"Display the downloadable products section.","category":"woocommerce","keywords":["WooCommerce"],"attributes":{"heading":{"type":"string"}},"supports":{"multiple":false,"align":["wide","full"],"html":false,"spacing":{"padding":true,"margin":true,"__experimentalDefaultControls":{"margin":false,"padding":false}}},"textdomain":"woocommerce","apiVersion":2,"$schema":"https://schemas.wp.org/trunk/block.json"}'),w={heading:{type:"string",default:(0,t(5736).__)("Downloads","woocommerce")}};(0,n.registerBlockType)(p,{icon:{src:(0,r.createElement)(a.Z,{icon:i.Z,className:"wc-block-editor-components-block-icon"})},edit:({attributes:e,setAttributes:o})=>{const t=(0,s.useBlockProps)(),n=(0,c.getSetting)("storeHasDownloadableProducts");return(0,r.createElement)("div",{...t,className:d()(t.className,{"store-has-downloads":n})},(0,r.createElement)(s.InnerBlocks,{allowedBlocks:["core/heading"],template:[["core/heading",{level:3,style:{typography:{fontSize:"24px"}},content:e.heading||"",onChangeContent:e=>o({heading:e})}],["woocommerce/order-confirmation-downloads",{lock:{remove:!0}}]]}))},save:()=>(0,r.createElement)(s.InnerBlocks.Content,null),attributes:w})},8482:()=>{},9196:e=>{"use strict";e.exports=window.React},9307:e=>{"use strict";e.exports=window.wp.element},5736:e=>{"use strict";e.exports=window.wp.i18n},444:e=>{"use strict";e.exports=window.wp.primitives}},t={};function r(e){var n=t[e];if(void 0!==n)return n.exports;var s=t[e]={exports:{}};return o[e].call(s.exports,s,s.exports,r),s.exports}r.m=o,e=[],r.O=(o,t,n,s)=>{if(!t){var a=1/0;for(d=0;d<e.length;d++){for(var[t,n,s]=e[d],i=!0,c=0;c<t.length;c++)(!1&s||a>=s)&&Object.keys(r.O).every((e=>r.O[e](t[c])))?t.splice(c--,1):(i=!1,s<a&&(a=s));if(i){e.splice(d--,1);var l=n();void 0!==l&&(o=l)}}return o}s=s||0;for(var d=e.length;d>0&&e[d-1][2]>s;d--)e[d]=e[d-1];e[d]=[t,n,s]},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=5841,(()=>{var e={5841:0};r.O.j=o=>0===e[o];var o=(o,t)=>{var n,s,[a,i,c]=t,l=0;if(a.some((o=>0!==e[o]))){for(n in i)r.o(i,n)&&(r.m[n]=i[n]);if(c)var d=c(r)}for(o&&o(t);l<a.length;l++)s=a[l],r.o(e,s)&&e[s]&&e[s][0](),e[s]=0;return r.O(d)},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(8684)));n=r.O(n),((this.wc=this.wc||{}).blocks=this.wc.blocks||{})["order-confirmation-downloads-wrapper"]=n})();