"use strict";(self.webpackChunkwebpackWcBlocksJsonp=self.webpackChunkwebpackWcBlocksJsonp||[]).push([[9644],{65390:(e,t,s)=>{s.d(t,{P:()=>r});var c=s(94801),o=s(9818),n=s(45999),i=s(9576);const r=()=>{const{isCalculating:e,isBeforeProcessing:t,isProcessing:s,isAfterProcessing:r,isComplete:a,hasError:l}=(0,o.useSelect)((e=>{const t=e(c.CHECKOUT_STORE_KEY);return{isCalculating:t.isCalculating(),isBeforeProcessing:t.isBeforeProcessing(),isProcessing:t.isProcessing(),isAfterProcessing:t.isAfterProcessing(),isComplete:t.isComplete(),hasError:t.hasError()}})),{activePaymentMethod:u,isExpressPaymentMethodActive:d}=(0,o.useSelect)((e=>{const t=e(c.PAYMENT_STORE_KEY);return{activePaymentMethod:t.getActivePaymentMethod(),isExpressPaymentMethodActive:t.isExpressPaymentMethodActive()}})),{onSubmit:m}=(0,n.U)(),{paymentMethods:p={}}=(0,i.E)(),g=s||r||t,h=a&&!l;return{paymentMethodButtonLabel:(p[u]||{}).placeOrderButtonLabel,onSubmit:m,isCalculating:e,isDisabled:s||d,waitingForProcessing:g,waitingForRedirect:h}}},29619:(e,t,s)=>{s.r(t),s.d(t,{default:()=>k});var c=s(80721),o=s(99196),n=s(89814),i=s.n(n),r=s(74617),a=s(60673),l=s(65390),u=s(50693),d=s(49208),m=s(34877);const p=({label:e,fullWidth:t=!1})=>{const{onSubmit:s,isCalculating:c,isDisabled:n,waitingForProcessing:r,waitingForRedirect:a}=(0,l.P)();return(0,o.createElement)(m.Z,{className:i()("wc-block-components-checkout-place-order-button",{"wc-block-components-checkout-place-order-button--full-width":t}),onClick:s,disabled:c||n||r||a,showSpinner:r},a?(0,o.createElement)(u.Z,{icon:d.Z}):e)};var g=s(66423),h=s(40711),b=s(33554),P=s(19211);s(86272);var E=s(92516);const k=(0,c.withFilteredAttributes)(E.Z)((({cartPageId:e,showReturnToCart:t,className:s,placeOrderButtonLabel:c})=>{const{paymentMethodButtonLabel:n}=(0,l.P)(),u=(0,b.applyCheckoutFilter)({filterName:"placeOrderButtonLabel",defaultValue:n||c||P.g});return(0,o.createElement)("div",{className:i()("wc-block-checkout__actions",s)},(0,o.createElement)(h.StoreNoticesContainer,{context:g.n7.CHECKOUT_ACTIONS}),(0,o.createElement)("div",{className:"wc-block-checkout__actions_row"},t&&(0,o.createElement)(a.Z,{link:(0,r.getSetting)("page-"+e,!1)}),(0,o.createElement)(p,{label:u,fullWidth:!t})))}))}}]);