Merged in feature/MAW-855-import-code-into-aws (pull request #2)

code import from pantheon

* code import from pantheon
This commit is contained in:
Tony Volpe
2023-12-04 23:08:14 +00:00
parent 8c9b1312bc
commit 8f4b5efda6
4766 changed files with 185592 additions and 239967 deletions

View File

@@ -1 +1 @@
(window.webpackWcBlocksJsonp=window.webpackWcBlocksJsonp||[]).push([[61],{932:function(e,t,c){"use strict";c.r(t);var n=c(0),a=c(1),s=c(4),r=c.n(s),o=c(13),l=c(933),d=c(12),i=c(8),b=c(10),u=c(370);t.default=Object(d.withInstanceId)(e=>{let{text:t,checkbox:c,instanceId:s,className:d}=e;const[m,O]=Object(n.useState)(!1),{isDisabled:h}=Object(l.a)(),E="terms-and-conditions-"+s,{setValidationErrors:_,clearValidationError:j}=Object(i.useDispatch)(b.VALIDATION_STORE_KEY),k=Object(i.useSelect)(e=>e(b.VALIDATION_STORE_KEY).getValidationError(E)),p=!(null==k||!k.message||null!=k&&k.hidden);return Object(n.useEffect)(()=>{if(c)return m?j(E):_({[E]:{message:Object(a.__)("Please read and accept the terms and conditions.","woocommerce"),hidden:!0}}),()=>{j(E)}},[c,m,E,j,_]),Object(n.createElement)("div",{className:r()("wc-block-checkout__terms",{"wc-block-checkout__terms--disabled":h},d)},c?Object(n.createElement)(n.Fragment,null,Object(n.createElement)(o.CheckboxControl,{id:"terms-and-conditions",checked:m,onChange:()=>O(e=>!e),hasError:p,disabled:h},Object(n.createElement)("span",{dangerouslySetInnerHTML:{__html:t||u.a}}))):Object(n.createElement)("span",{dangerouslySetInnerHTML:{__html:t||u.b}}))})}}]);
"use strict";(self.webpackChunkwebpackWcBlocksJsonp=self.webpackChunkwebpackWcBlocksJsonp||[]).push([[8806],{65390:(e,s,t)=>{t.d(s,{P:()=>c});var n=t(94801),r=t(9818),a=t(45999),i=t(9576);const c=()=>{const{isCalculating:e,isBeforeProcessing:s,isProcessing:t,isAfterProcessing:c,isComplete:o,hasError:l}=(0,r.useSelect)((e=>{const s=e(n.CHECKOUT_STORE_KEY);return{isCalculating:s.isCalculating(),isBeforeProcessing:s.isBeforeProcessing(),isProcessing:s.isProcessing(),isAfterProcessing:s.isAfterProcessing(),isComplete:s.isComplete(),hasError:s.hasError()}})),{activePaymentMethod:d,isExpressPaymentMethodActive:u}=(0,r.useSelect)((e=>{const s=e(n.PAYMENT_STORE_KEY);return{activePaymentMethod:s.getActivePaymentMethod(),isExpressPaymentMethodActive:s.isExpressPaymentMethodActive()}})),{onSubmit:m}=(0,a.U)(),{paymentMethods:h={}}=(0,i.E)(),E=t||c||s,g=o&&!l;return{paymentMethodButtonLabel:(h[d]||{}).placeOrderButtonLabel,onSubmit:m,isCalculating:e,isDisabled:t||u,waitingForProcessing:E,waitingForRedirect:g}}},10283:(e,s,t)=>{t.r(s),t.d(s,{default:()=>E});var n=t(99196),r=t(65736),a=t(89814),i=t.n(a),c=t(69307),o=t(33554),l=t(65390),d=t(94333),u=t(9818),m=t(94801),h=t(81065);const E=(0,d.withInstanceId)((({text:e,checkbox:s,instanceId:t,className:a})=>{const[d,E]=(0,c.useState)(!1),{isDisabled:g}=(0,l.P)(),p="terms-and-conditions-"+t,{setValidationErrors:P,clearValidationError:b}=(0,u.useDispatch)(m.VALIDATION_STORE_KEY),_=(0,u.useSelect)((e=>e(m.VALIDATION_STORE_KEY).getValidationError(p))),k=!(null==_||!_.message||null!=_&&_.hidden);return(0,c.useEffect)((()=>{if(s)return d?b(p):P({[p]:{message:(0,r.__)("Please read and accept the terms and conditions.","woocommerce"),hidden:!0}}),()=>{b(p)}}),[s,d,p,b,P]),(0,n.createElement)("div",{className:i()("wc-block-checkout__terms",{"wc-block-checkout__terms--disabled":g},a)},s?(0,n.createElement)(n.Fragment,null,(0,n.createElement)(o.CheckboxControl,{id:"terms-and-conditions",checked:d,onChange:()=>E((e=>!e)),hasError:k,disabled:g},(0,n.createElement)("span",{dangerouslySetInnerHTML:{__html:e||h.S}}))):(0,n.createElement)("span",{dangerouslySetInnerHTML:{__html:e||h.w}}))}))}}]);