File "actions-frontend.js"

Full Path: /home/warrior1/public_html/plugins/woocommerce/packages/woocommerce-blocks/build/checkout-blocks/actions-frontend.js
File size: 3.31 KB
MIME-type: text/plain
Charset: utf-8

(window.webpackWcBlocksJsonp=window.webpackWcBlocksJsonp||[]).push([[29],{138:function(e,t,n){"use strict";var c=n(0);n(199),t.a=()=>Object(c.createElement)("span",{className:"wc-block-components-spinner","aria-hidden":"true"})},199:function(e,t){},269:function(e,t,n){"use strict";var c=n(12),o=n.n(c),a=n(0),s=n(42),r=n(4),i=n.n(r),l=n(138);n(270),t.a=e=>{let{className:t,showSpinner:n=!1,children:c,variant:r="contained",...u}=e;const b=i()("wc-block-components-button",t,r,{"wc-block-components-button--loading":n});return Object(a.createElement)(s.a,o()({className:b},u),n&&Object(a.createElement)(l.a,null),Object(a.createElement)("span",{className:"wc-block-components-button__text"},c))}},270:function(e,t){},282:function(e,t,n){"use strict";n.d(t,"b",(function(){return s})),n.d(t,"a",(function(){return r}));var c=n(31),o=n(211);const a=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const{paymentMethods:t,expressPaymentMethods:n,paymentMethodsInitialized:a,expressPaymentMethodsInitialized:s}=Object(o.b)(),r=Object(c.a)(t),i=Object(c.a)(n);return{paymentMethods:e?i:r,isInitialized:e?s:a}},s=()=>a(!1),r=()=>a(!0)},366:function(e,t,n){"use strict";var c=n(0),o=n(13);const a=Object(c.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(c.createElement)(o.Path,{d:"M16.7 7.1l-6.3 8.5-3.3-2.5-.9 1.2 4.5 3.4L17.9 8z"}));t.a=a},395:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var c=n(1),o=n(36),a=n(211),s=n(282);const r=()=>{const{onSubmit:e,isCalculating:t,isBeforeProcessing:n,isProcessing:r,isAfterProcessing:i,isComplete:l,hasError:u}=Object(o.b)(),{paymentMethods:b={}}=Object(s.b)(),{activePaymentMethod:m,currentStatus:d}=Object(a.b)(),p=b[m]||{},w=r||i||n,g=l&&!u;return{submitButtonText:(null==p?void 0:p.placeOrderButtonLabel)||Object(c.__)("Place Order","woocommerce"),onSubmit:e,isCalculating:t,isDisabled:r||d.isDoingExpressPayment,waitingForProcessing:w,waitingForRedirect:g}}},396:function(e,t){},397:function(e,t){},437:function(e,t,n){"use strict";n.r(t);var c=n(123),o=n(0),a=n(4),s=n.n(a),r=n(2),i=n(1),l=n(47),u=n(108),b=n(13),m=Object(o.createElement)(b.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(b.Path,{d:"M20 10.8H6.7l4.1-4.5-1.1-1.1-5.8 6.3 5.8 5.8 1.1-1.1-4-3.9H20z"}));n(397);var d=e=>{let{link:t}=e;const n=t||l.c;return n?Object(o.createElement)("a",{href:n,className:"wc-block-components-checkout-return-to-cart-button"},Object(o.createElement)(u.a,{icon:m}),Object(i.__)("Return to Cart","woocommerce")):null},p=n(395),w=n(366),g=n(269),O=()=>{const{submitButtonText:e,onSubmit:t,isCalculating:n,isDisabled:c,waitingForProcessing:a,waitingForRedirect:s}=Object(p.a)();return Object(o.createElement)(g.a,{className:"wc-block-components-checkout-place-order-button",onClick:t,disabled:n||c||a||s,showSpinner:a},s?Object(o.createElement)(u.a,{icon:w.a}):e)};n(396);t.default=Object(c.withFilteredAttributes)({cartPageId:{type:"number",default:0},showReturnToCart:{type:"boolean",default:!0},className:{type:"string",default:""},lock:{type:"object",default:{move:!0,remove:!0}}})(e=>{let{cartPageId:t,showReturnToCart:n,className:c}=e;return Object(o.createElement)("div",{className:s()("wc-block-checkout__actions",c)},n&&Object(o.createElement)(d,{link:Object(r.getSetting)("page-"+t,!1)}),Object(o.createElement)(O,null))})}}]);