(window.webpackWcBlocksJsonp=window.webpackWcBlocksJsonp||[]).push([[38],{112:function(e,t,c){"use strict";var s=c(0);c(131),t.a=()=>Object(s.createElement)("span",{className:"wc-block-components-spinner","aria-hidden":"true"})},131:function(e,t){},146:function(e,t,c){"use strict";var s=c(0),n=c(1),a=c(5),o=c.n(a),r=(c(219),c(112));t.a=e=>{let{children:t,className:c,screenReaderLabel:a,showSpinner:l=!1,isLoading:i=!0}=e;return Object(s.createElement)("div",{className:o()(c,{"wc-block-components-loading-mask":i})},i&&l&&Object(s.createElement)(r.a,null),Object(s.createElement)("div",{className:o()({"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")))}},219:function(e,t){},287:function(e,t,c){"use strict";var s=c(13),n=c.n(s),a=c(0),o=c(5),r=c.n(o);c(288),t.a=e=>{let{children:t,className:c,headingLevel:s,...o}=e;const l=r()("wc-block-components-title",c),i="h"+s;return Object(a.createElement)(i,n()({className:l},o),t)}},288:function(e,t){},524:function(e,t,c){"use strict";c.r(t);var s=c(0),n=c(44),a=c(1),o=c(51),r=c(47),l=c(9),i=c(287),m=c(146),b=c(2),p=c(3),u=c(4),d=c(402);c(401);var E=()=>{const{isCalculating:e,isProcessing:t,isAfterProcessing:c,isBeforeProcessing:n,isComplete:E,hasError:O}=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:g,expressPaymentMethodsInitialized:h,isExpressPaymentMethodActive:j}=Object(u.useSelect)(e=>{const t=e(p.PAYMENT_STORE_KEY);return{availableExpressPaymentMethods:t.getAvailableExpressPaymentMethods(),expressPaymentMethodsInitialized:t.expressPaymentMethodsInitialized(),isExpressPaymentMethodActive:t.isExpressPaymentMethodActive()}}),{isEditor:k}=Object(o.a)();if(!h||h&&0===Object.keys(g).length)return k||b.CURRENT_USER_IS_ADMIN?Object(s.createElement)(l.StoreNoticesContainer,{context:r.d.EXPRESS_PAYMENTS}):null;const P=t||c||n||E&&!O;return Object(s.createElement)(s.Fragment,null,Object(s.createElement)(m.a,{isLoading:e||P||j},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)(l.StoreNoticesContainer,{context:r.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}}}]);