geno/wp-content/plugins/woocommerce/packages/woocommerce-blocks/build/order-confirmation-billing-wrapper.js

1 line
2.8 KiB
JavaScript
Raw Permalink Normal View History

2024-02-01 17:24:18 +05:30
(()=>{"use strict";var e,o={2818:(e,o,r)=>{r.r(o);var t=r(9196);const n=window.wp.blocks,i=window.wp.blockEditor;var l=r(1984),s=r(5427);const a=JSON.parse('{"name":"woocommerce/order-confirmation-billing-wrapper","version":"1.0.0","title":"Billing Address Section","description":"Display the order confirmation billing 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"}'),c={heading:{type:"string",default:(0,r(5736).__)("Billing address","woocommerce")}};(0,n.registerBlockType)(a,{icon:{src:(0,t.createElement)(l.Z,{icon:s.Z,className:"wc-block-editor-components-block-icon"})},edit:({attributes:e,setAttributes:o})=>{const r=(0,i.useBlockProps)();return(0,t.createElement)("div",{...r},(0,t.createElement)(i.InnerBlocks,{allowedBlocks:["core/heading"],template:[["core/heading",{level:3,style:{typography:{fontSize:"24px"}},content:e.heading||"",onChangeContent:e=>o({heading:e})}],["woocommerce/order-confirmation-billing-address",{lock:{remove:!0}}]]}))},save:()=>(0,t.createElement)(i.InnerBlocks.Content,null),attributes:c})},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 t(e){var n=r[e];if(void 0!==n)return n.exports;var i=r[e]={exports:{}};return o[e].call(i.exports,i,i.exports,t),i.exports}t.m=o,e=[],t.O=(o,r,n,i)=>{if(!r){var l=1/0;for(p=0;p<e.length;p++){for(var[r,n,i]=e[p],s=!0,a=0;a<r.length;a++)(!1&i||l>=i)&&Object.keys(t.O).every((e=>t.O[e](r[a])))?r.splice(a--,1):(s=!1,i<l&&(l=i));if(s){e.splice(p--,1);var c=n();void 0!==c&&(o=c)}}return o}i=i||0;for(var p=e.length;p>0&&e[p-1][2]>i;p--)e[p]=e[p-1];e[p]=[r,n,i]},t.n=e=>{var o=e&&e.__esModule?()=>e.default:()=>e;return t.d(o,{a:o}),o},t.d=(e,o)=>{for(var r in o)t.o(o,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:o[r]})},t.o=(e,o)=>Object.prototype.hasOwnProperty.call(e,o),t.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.j=3122,(()=>{var e={3122:0};t.O.j=o=>0===e[o];var o=(o,r)=>{var n,i,[l,s,a]=r,c=0;if(l.some((o=>0!==e[o]))){for(n in s)t.o(s,n)&&(t.m[n]=s[n]);if(a)var p=a(t)}for(o&&o(r);c<l.length;c++)i=l[c],t.o(e,i)&&e[i]&&e[i][0](),e[i]=0;return t.O(p)},r=self.webpackChunkwebpackWcBlocksJsonp=self.webpackChunkwebpackWcBlocksJsonp||[];r.forEach(o.bind(null,0)),r.push=o.bind(null,r.push.bind(r))})();var n=t.O(void 0,[2869],(()=>t(2818)));n=t.O(n),((this.wc=this.wc||{}).blocks=this.wc.blocks||{})["order-confirmation-billing-wrapper"]=n})();