"use strict";(self.webpackChunkshopwp=self.webpackChunkshopwp||[]).push([["CartCheckout-public"],{ldeN:function(e,t,c){c.r(t),c.d(t,{default:function(){return m}});var a=c("aaiT"),o=c("lQpH"),r=c("y+oc"),n=c("dGr1"),l=c("LpH3"),s=c("AU3J"),u=c("swXr"),p=c("V+k2"),i=wp.element.lazy((function(){return Promise.resolve().then(c.bind(c,"DGrm"))})),h=function(e){var t,c,a,o;return e.onCheckout,t=(0,r.K)(),c=(0,r.d)(),a=(0,p.v)(),o=(0,l.iv)("font-size:22px;margin-top:0.5em;margin-bottom:0;background-color:",t.isCheckingOut||shopwp.general.enableCartTerms&&!t.termsAccepted||t.isCartEmpty?"#cfcfcf":shopwp.general.checkoutColor,";padding:16px 0 20px 0;transition:none;position:static;&:hover{background-color:",t.isCheckingOut||shopwp.general.enableCartTerms&&!t.termsAccepted||t.isCartEmpty?"#cfcfcf":shopwp.general.checkoutColor,";}&:disabled{&:hover{cursor:not-allowed;color:#fff;background-color:#cfcfcf;}}",(0,s.mq)("small"),"{font-size:22px;};label:checkoutButtonCSS;"),(0,l.tZ)("button",{className:"wps-btn-checkout",onClick:function(){c({type:"SET_NOTICE",payload:!1}),c({type:"SET_IS_CHECKING_OUT",payload:!0}),(0,u.p)(a.cartData.checkoutUrl)},disabled:t.isCheckingOut||shopwp.general.enableCartTerms&&!t.termsAccepted||t.isCartEmpty,css:[s.ct,o,";label:CartCheckoutButton;"]},t.isCheckingOut?(0,l.tZ)(i,{isLoading:t.isCheckingOut}):t.checkoutText)},m=function(){var e=(0,r.K)();return React.createElement(React.Fragment,null,React.createElement(n.ce,{name:"before.cartCheckoutButton",args:[e]}),React.createElement(o.ErrorBoundary,{FallbackComponent:a.Z},React.createElement(h,null)),React.createElement(n.ce,{name:"after.cartCheckoutButton",args:[e]}))}}}]);