"use strict";(self.webpackChunkwebpackWcBlocksStylingJsonp=self.webpackChunkwebpackWcBlocksStylingJsonp||[]).push([[3982],{66777:(e,t,s)=>{s.d(t,{w:()=>r});var c=s(47594),i=s(47143),o=s(1614),n=s(66379);const r=()=>{const{isCalculating:e,isBeforeProcessing:t,isProcessing:s,isAfterProcessing:r,isComplete:a,hasError:l}=(0,i.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,i.useSelect)((e=>{const t=e(c.PAYMENT_STORE_KEY);return{activePaymentMethod:t.getActivePaymentMethod(),isExpressPaymentMethodActive:t.isExpressPaymentMethodActive()}})),{onSubmit:m}=(0,o.E)(),{paymentMethods:g={}}=(0,n.m)(),p=s||r||t,h=a&&!l;return{paymentMethodButtonLabel:(g[u]||{}).placeOrderButtonLabel,onSubmit:m,isCalculating:e,isDisabled:s||d,waitingForProcessing:p,waitingForRedirect:h}}},51145:(e,t,s)=>{s.r(t),s.d(t,{default:()=>w});var c=s(41616),i=s(51609),o=s(70851),n=s(15703),r=s(4298),a=s(66777),l=s(7104),u=s(22900),d=s(74845);const m=({label:e,fullWidth:t=!1})=>{const{onSubmit:s,isCalculating:c,isDisabled:n,waitingForProcessing:r,waitingForRedirect:m}=(0,a.w)();return(0,i.createElement)(d.A,{className:(0,o.A)("wc-block-components-checkout-place-order-button",{"wc-block-components-checkout-place-order-button--full-width":t}),onClick:s,disabled:c||n||r||m,showSpinner:r},m?(0,i.createElement)(l.A,{icon:u.A}):e)};var g=s(72379),p=s(14656),h=s(71e3),b=s(83291);s(88780);var E=s(76577);const w=(0,c.withFilteredAttributes)(E.A)((({cartPageId:e,showReturnToCart:t,className:s,placeOrderButtonLabel:c})=>{const{paymentMethodButtonLabel:l}=(0,a.w)(),u=(0,h.applyCheckoutFilter)({filterName:"placeOrderButtonLabel",defaultValue:l||c||b.H});return(0,i.createElement)("div",{className:(0,o.A)("wc-block-checkout__actions",s)},(0,i.createElement)(p.StoreNoticesContainer,{context:g.tG.CHECKOUT_ACTIONS}),(0,i.createElement)("div",{className:"wc-block-checkout__actions_row"},t&&(0,i.createElement)(r.A,{link:(0,n.getSetting)("page-"+e,!1)}),(0,i.createElement)(m,{label:u,fullWidth:!t})))}))}}]);