PK
Current Path : /home/wallqcyy/www/wp-content/plugins/woocommerce/assets/client/blocks/ |
Current File : /home/wallqcyy/www/wp-content/plugins/woocommerce/assets/client/blocks/order-confirmation-totals.js |
(()=>{var e,o,t,r={6145:(e,o,t)=>{"use strict";const r=window.wp.blocks;var l=t(4530),c=t(5573),i=t(790);const a=(0,i.jsxs)(c.SVG,{xmlns:"http://www.w3.org/2000/SVG",viewBox:"0 0 24 24",fill:"none",children:[(0,i.jsx)("path",{stroke:"currentColor",strokeWidth:"1.5",fill:"none",d:"M6 3.75h12c.69 0 1.25.56 1.25 1.25v14c0 .69-.56 1.25-1.25 1.25H6c-.69 0-1.25-.56-1.25-1.25V5c0-.69.56-1.25 1.25-1.25z"}),(0,i.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"M6.9 7.5A1.1 1.1 0 018 6.4h8a1.1 1.1 0 011.1 1.1v2a1.1 1.1 0 01-1.1 1.1H8a1.1 1.1 0 01-1.1-1.1v-2zm1.2.1v1.8h7.8V7.6H8.1z",clipRule:"evenodd"}),(0,i.jsx)("path",{fill:"currentColor",d:"M8.5 12h1v1h-1v-1zM8.5 14h1v1h-1v-1zM8.5 16h1v1h-1v-1zM11.5 12h1v1h-1v-1zM11.5 14h1v1h-1v-1zM11.5 16h1v1h-1v-1zM14.5 12h1v1h-1v-1zM14.5 14h1v1h-1v-1zM14.5 16h1v1h-1v-1z"})]}),n=JSON.parse('{"name":"woocommerce/order-confirmation-totals","version":"1.0.0","title":"Order Totals","description":"Display the items purchased and order totals.","category":"woocommerce","keywords":["WooCommerce"],"supports":{"multiple":false,"align":["wide","full"],"html":false,"typography":{"fontSize":true,"lineHeight":true,"__experimentalFontFamily":true,"__experimentalTextDecoration":true,"__experimentalFontStyle":true,"__experimentalFontWeight":true,"__experimentalLetterSpacing":true,"__experimentalTextTransform":true,"__experimentalDefaultControls":{"fontSize":true}},"color":{"background":true,"text":true,"link":true,"gradients":true,"__experimentalDefaultControls":{"background":true,"text":true}},"spacing":{"padding":true,"margin":true,"__experimentalDefaultControls":{"margin":false,"padding":false}},"__experimentalBorder":{"color":true,"style":true,"width":true,"__experimentalDefaultControls":{"color":true,"style":true,"width":true}},"__experimentalSelector":".wp-block-woocommerce-order-confirmation-totals table"},"attributes":{"align":{"type":"string","default":"wide"},"className":{"type":"string","default":""}},"textdomain":"woocommerce","apiVersion":3,"$schema":"https://schemas.wp.org/trunk/block.json"}'),s=window.wp.blockEditor,d=window.wp.components;var m=t(7723);const p=window.wc.priceFormat;t(4628);(0,r.registerBlockType)(n,{icon:{src:(0,i.jsx)(l.A,{icon:a,className:"wc-block-editor-components-block-icon"})},attributes:{...n.attributes},edit:()=>{const e=(0,s.useBlockProps)({className:"wc-block-order-confirmation-totals"}),{borderBottomColor:o,borderLeftColor:t,borderRightColor:r,borderTopColor:l,borderWidth:c}=e.style,a={borderBottomColor:o,borderLeftColor:t,borderRightColor:r,borderTopColor:l,borderWidth:c};return(0,i.jsx)("div",{...e,children:(0,i.jsx)(d.Disabled,{children:(0,i.jsxs)("table",{style:a,cellSpacing:"0",className:"wc-block-order-confirmation-totals__table",children:[(0,i.jsx)("thead",{children:(0,i.jsxs)("tr",{children:[(0,i.jsx)("th",{className:"wc-block-order-confirmation-totals__product",children:(0,m.__)("Product","woocommerce")}),(0,i.jsx)("th",{className:"wc-block-order-confirmation-totals__total",children:(0,m.__)("Total","woocommerce")})]})}),(0,i.jsxs)("tbody",{children:[(0,i.jsxs)("tr",{className:"woocommerce-table__line-item order_item",children:[(0,i.jsxs)("th",{scope:"row",className:"wc-block-order-confirmation-totals__product",children:[(0,i.jsx)("a",{href:"#link",children:(0,m._x)("Test Product","sample product name","woocommerce")})," ",(0,i.jsx)("strong",{className:"product-quantity",children:"× 2"})]}),(0,i.jsx)("td",{className:"wc-block-order-confirmation-totals__total",children:(0,p.formatPrice)(2e3)})]}),(0,i.jsxs)("tr",{className:"woocommerce-table__line-item order_item",children:[(0,i.jsxs)("th",{scope:"row",className:"wc-block-order-confirmation-totals__product",children:[(0,i.jsx)("a",{href:"#link",children:(0,m._x)("Test Product","sample product name","woocommerce")})," ",(0,i.jsx)("strong",{className:"product-quantity",children:"× 2"})]}),(0,i.jsx)("td",{className:"wc-block-order-confirmation-totals__total",children:(0,p.formatPrice)(2e3)})]})]}),(0,i.jsx)("tfoot",{children:(0,i.jsxs)("tr",{children:[(0,i.jsx)("th",{className:"wc-block-order-confirmation-totals__label",scope:"row",children:(0,m.__)("Total","woocommerce")}),(0,i.jsx)("td",{className:"wc-block-order-confirmation-totals__total",children:(0,p.formatPrice)(4e3)})]})})]})})})},save:()=>null})},4628:()=>{},790:e=>{"use strict";e.exports=window.ReactJSXRuntime},6087:e=>{"use strict";e.exports=window.wp.element},7723:e=>{"use strict";e.exports=window.wp.i18n},5573:e=>{"use strict";e.exports=window.wp.primitives}},l={};function c(e){var o=l[e];if(void 0!==o)return o.exports;var t=l[e]={exports:{}};return r[e].call(t.exports,t,t.exports,c),t.exports}c.m=r,e=[],c.O=(o,t,r,l)=>{if(!t){var i=1/0;for(d=0;d<e.length;d++){for(var[t,r,l]=e[d],a=!0,n=0;n<t.length;n++)(!1&l||i>=l)&&Object.keys(c.O).every((e=>c.O[e](t[n])))?t.splice(n--,1):(a=!1,l<i&&(i=l));if(a){e.splice(d--,1);var s=r();void 0!==s&&(o=s)}}return o}l=l||0;for(var d=e.length;d>0&&e[d-1][2]>l;d--)e[d]=e[d-1];e[d]=[t,r,l]},c.n=e=>{var o=e&&e.__esModule?()=>e.default:()=>e;return c.d(o,{a:o}),o},t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,c.t=function(e,r){if(1&r&&(e=this(e)),8&r)return e;if("object"==typeof e&&e){if(4&r&&e.__esModule)return e;if(16&r&&"function"==typeof e.then)return e}var l=Object.create(null);c.r(l);var i={};o=o||[null,t({}),t([]),t(t)];for(var a=2&r&&e;"object"==typeof a&&!~o.indexOf(a);a=t(a))Object.getOwnPropertyNames(a).forEach((o=>i[o]=()=>e[o]));return i.default=()=>e,c.d(l,i),l},c.d=(e,o)=>{for(var t in o)c.o(o,t)&&!c.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:o[t]})},c.o=(e,o)=>Object.prototype.hasOwnProperty.call(e,o),c.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},c.j=9779,(()=>{var e={9779:0};c.O.j=o=>0===e[o];var o=(o,t)=>{var r,l,[i,a,n]=t,s=0;if(i.some((o=>0!==e[o]))){for(r in a)c.o(a,r)&&(c.m[r]=a[r]);if(n)var d=n(c)}for(o&&o(t);s<i.length;s++)l=i[s],c.o(e,l)&&e[l]&&e[l][0](),e[l]=0;return c.O(d)},t=globalThis.webpackChunkwebpackWcBlocksMainJsonp=globalThis.webpackChunkwebpackWcBlocksMainJsonp||[];t.forEach(o.bind(null,0)),t.push=o.bind(null,t.push.bind(t))})();var i=c.O(void 0,[94],(()=>c(6145)));i=c.O(i),((this.wc=this.wc||{}).blocks=this.wc.blocks||{})["order-confirmation-totals"]=i})();