(window.webpackWcBlocksJsonp=window.webpackWcBlocksJsonp||[]).push([[39],{144:function(e,t,c){"use strict";var n=c(0);c(213),t.a=()=>Object(n.createElement)("span",{className:"wc-block-components-spinner","aria-hidden":"true"})},145:function(e,t,c){"use strict";var n=c(0),s=c(1),a=c(5),o=c.n(a),r=(c(216),c(144));t.a=e=>{let{children:t,className:c,screenReaderLabel:a,showSpinner:l=!1,isLoading:i=!0}=e;return Object(n.createElement)("div",{className:o()(c,{"wc-block-components-loading-mask":i})},i&&l&&Object(n.createElement)(r.a,null),Object(n.createElement)("div",{className:o()({"wc-block-components-loading-mask__children":i}),"aria-hidden":i},t),i&&Object(n.createElement)("span",{className:"screen-reader-text"},a||Object(s.__)("Loading…","woocommerce")))}},213:function(e,t){},216:function(e,t){},295:function(e,t,c){"use strict";var n=c(11),s=c.n(n),a=c(0),o=c(5),r=c.n(o);c(296),t.a=e=>{let{children:t,className:c,headingLevel:n,...o}=e;const l=r()("wc-block-components-title",c),i="h"+n;return Object(a.createElement)(i,s()({className:l},o),t)}},296:function(e,t){},491:function(e,t,c){"use strict";c.r(t);var n=c(0),s=c(36),a=c(1),o=c(34),r=c(136),l=c(42),i=c(295),m=c(145),u=c(2),b=c(3),p=c(4),d=c(376);c(375);var E=()=>{const{isCalculating:e,isProcessing:t,isAfterProcessing:c,isBeforeProcessing:s,isComplete:E,hasError:g}=Object(p.useSelect)(e=>{const t=e(b.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(p.useSelect)(e=>{const t=e(b.PAYMENT_STORE_KEY);return{availableExpressPaymentMethods:t.getAvailableExpressPaymentMethods(),expressPaymentMethodsInitialized:t.expressPaymentMethodsInitialized(),paymentStatus:t.getCurrentStatus()}}),{isEditor:h}=Object(o.a)();if(!j||j&&0===Object.keys(O).length)return h||u.CURRENT_USER_IS_ADMIN?Object(n.createElement)(r.a,{context:l.d.EXPRESS_PAYMENTS}):null;const _=t||c||s||E&&!g;return Object(n.createElement)(n.Fragment,null,Object(n.createElement)(m.a,{isLoading:e||_||k.isDoingExpressPayment},Object(n.createElement)("div",{className:"wc-block-components-express-payment wc-block-components-express-payment--checkout"},Object(n.createElement)("div",{className:"wc-block-components-express-payment__title-container"},Object(n.createElement)(i.a,{className:"wc-block-components-express-payment__title",headingLevel:"2"},Object(a.__)("Express checkout","woocommerce"))),Object(n.createElement)("div",{className:"wc-block-components-express-payment__content"},Object(n.createElement)(r.a,{context:l.d.EXPRESS_PAYMENTS}),Object(n.createElement)("p",null,Object(a.__)("In a hurry? Use one of our express checkout options:","woocommerce")),Object(n.createElement)(d.a,null)))),Object(n.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(s.a)();return c?Object(n.createElement)("div",{className:t},Object(n.createElement)(E,null)):null}}}]);