(window.webpackWcBlocksJsonp=window.webpackWcBlocksJsonp||[]).push([[39],{146:function(e,t,c){"use strict";var s=c(0);c(215),t.a=()=>Object(s.createElement)("span",{className:"wc-block-components-spinner","aria-hidden":"true"})},147:function(e,t,c){"use strict";var s=c(0),n=c(1),a=c(4),r=c.n(a),o=(c(218),c(146));t.a=e=>{let{children:t,className:c,screenReaderLabel:a,showSpinner:l=!1,isLoading:i=!0}=e;return Object(s.createElement)("div",{className:r()(c,{"wc-block-components-loading-mask":i})},i&&l&&Object(s.createElement)(o.a,null),Object(s.createElement)("div",{className:r()({"wc-block-components-loading-mask__children":i}),"aria-hidden":i},t),i&&Object(s.createElement)("span",{className:"screen-reader-text"},a||Object(n.__)("Loading…","woocommerce")))}},215:function(e,t){},218:function(e,t){},297:function(e,t,c){"use strict";var s=c(12),n=c.n(s),a=c(0),r=c(4),o=c.n(r);c(298),t.a=e=>{let{children:t,className:c,headingLevel:s,...r}=e;const l=o()("wc-block-components-title",c),i="h"+s;return Object(a.createElement)(i,n()({className:l},r),t)}},298:function(e,t){},494:function(e,t,c){"use strict";c.r(t);var s=c(0),n=c(38),a=c(1),r=c(36),o=c(138),l=c(43),i=c(297),m=c(147),b=c(2),p=c(3),u=c(6),d=c(378);c(377);var E=()=>{const{isCalculating:e,isProcessing:t,isAfterProcessing:c,isBeforeProcessing:n,isComplete:E,hasError:g}=Object(u.useSelect)(e=>{const t=e(p.CHECKOUT_STORE_KEY);return{isCalculating:t.isCalculating(),isProcessing:t.isProcessing(),isAfterProcessing:t.isAfterProcessing(),isBeforeProcessing:t.isBeforeProcessing(),isComplete:t.isComplete(),hasError:t.hasError()}}),{availableExpressPaymentMethods:O,expressPaymentMethodsInitialized:j,paymentStatus:k}=Object(u.useSelect)(e=>{const t=e(p.PAYMENT_STORE_KEY);return{availableExpressPaymentMethods:t.getAvailableExpressPaymentMethods(),expressPaymentMethodsInitialized:t.expressPaymentMethodsInitialized(),paymentStatus:t.getCurrentStatus()}}),{isEditor:h}=Object(r.a)();if(!j||j&&0===Object.keys(O).length)return h||b.CURRENT_USER_IS_ADMIN?Object(s.createElement)(o.a,{context:l.d.EXPRESS_PAYMENTS}):null;const _=t||c||n||E&&!g;return Object(s.createElement)(s.Fragment,null,Object(s.createElement)(m.a,{isLoading:e||_||k.isDoingExpressPayment},Object(s.createElement)("div",{className:"wc-block-components-express-payment wc-block-components-express-payment--checkout"},Object(s.createElement)("div",{className:"wc-block-components-express-payment__title-container"},Object(s.createElement)(i.a,{className:"wc-block-components-express-payment__title",headingLevel:"2"},Object(a.__)("Express checkout","woocommerce"))),Object(s.createElement)("div",{className:"wc-block-components-express-payment__content"},Object(s.createElement)(o.a,{context:l.d.EXPRESS_PAYMENTS}),Object(s.createElement)(d.a,null)))),Object(s.createElement)("div",{className:"wc-block-components-express-payment-continue-rule wc-block-components-express-payment-continue-rule--checkout"},Object(a.__)("Or continue below","woocommerce")))};t.default=e=>{let{className:t}=e;const{cartNeedsPayment:c}=Object(n.a)();return c?Object(s.createElement)("div",{className:t},Object(s.createElement)(E,null)):null}}}]);