(window.webpackWcBlocksJsonp=window.webpackWcBlocksJsonp||[]).push([[42],{263:function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return i}));var c=n(45),o=n(164),r=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=Object(o.b)(),n=t.paymentMethods,r=t.expressPaymentMethods,a=t.paymentMethodsInitialized,i=t.expressPaymentMethodsInitialized,s=Object(c.a)(n),u=Object(c.a)(r);return{paymentMethods:e?u:s,isInitialized:e?i:a}},a=function(){return r(!1)},i=function(){return r(!0)}},364:function(e,t){},365:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var c=n(1),o=n(54),r=n(164),a=n(263),i=function(){var e=Object(o.b)(),t=e.onSubmit,n=e.isCalculating,i=e.isBeforeProcessing,s=e.isProcessing,u=e.isAfterProcessing,d=e.isComplete,b=e.hasError,l=Object(a.b)().paymentMethods,g=void 0===l?{}:l,m=Object(r.b)(),p=m.activePaymentMethod,h=m.currentStatus,f=g[p]||{},_=s||u||i,j=d&&!b;return{submitButtonText:(null==f?void 0:f.placeOrderButtonLabel)||Object(c.__)("Place Order",'woocommerce'),onSubmit:t,isCalculating:n,isDisabled:s||h.isDoingExpressPayment,waitingForProcessing:_,waitingForRedirect:j}}},409:function(e,t,n){"use strict";n.r(t);var c=n(5),o=n.n(c),r=n(4),a=n.n(r),i=n(1),s=n(7),u=n.n(s),d=n(0),b=n(28),l=n(365),g=n(25),m=n(104),p=m.j?'<a href="'.concat(m.j,'">').concat(Object(i.__)("Terms and Conditions",'woocommerce'),"</a>"):Object(i.__)("Terms and Conditions",'woocommerce'),h=m.f?'<a href="'.concat(m.f,'">').concat(Object(i.__)("Privacy Policy",'woocommerce'),"</a>"):Object(i.__)("Privacy Policy",'woocommerce'),f=Object(i.sprintf)(
/* translators: %1$s terms page link, %2$s privacy page link. */
Object(i.__)("By proceeding with your purchase you agree to our %1$s and %2$s",'woocommerce'),p,h),_=Object(i.sprintf)(
/* translators: %1$s terms page link, %2$s privacy page link. */
Object(i.__)("You must accept our %1$s and %2$s to continue with your purchase.",'woocommerce'),p,h);n(364),t.default=Object(g.withInstanceId)((function(e){var t=e.text,n=e.checkbox,c=e.instanceId,r=e.validation,s=e.className,g=Object(d.useState)(!1),m=a()(g,2),p=m[0],h=m[1],j=Object(l.a)().isDisabled,O="terms-and-conditions-"+c,w=r.getValidationError,k=r.setValidationErrors,y=r.clearValidationError,v=w(O)||{},P=v.message&&!v.hidden;return Object(d.useEffect)((function(){if(n)return p?y(O):k(o()({},O,{message:Object(i.__)("Please read and accept the terms and conditions.",'woocommerce'),hidden:!0})),function(){y(O)}}),[n,p,O,y,k]),React.createElement("div",{className:u()("wc-block-checkout__terms",{"wc-block-checkout__terms--disabled":j},s)},n?React.createElement(React.Fragment,null,React.createElement(b.CheckboxControl,{id:"terms-and-conditions",checked:p,onChange:function(){return h((function(e){return!e}))},hasError:P,disabled:j},React.createElement("span",{dangerouslySetInnerHTML:{__html:t||_}}))):React.createElement("span",{dangerouslySetInnerHTML:{__html:t||f}}))}))}}]);