File: /var/www/vhosts/uyarreklam.com.tr/httpdocs/terms-style.js.tar
wp-content/plugins/woocommerce/packages/woocommerce-blocks/build/checkout-blocks/terms-style.js 0000644 00000002267 15155007140 0037314 0 ustar 00 var/www/vhosts/uyarreklam.com.tr/httpdocs (window.webpackWcBlocksJsonp=window.webpackWcBlocksJsonp||[]).push([[61],{962: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(12),l=c(963),d=c(11),i=c(7),b=c(10),u=c(379);t.default=Object(d.withInstanceId)(({text:e,checkbox:t,instanceId:c,className:s})=>{const[d,m]=Object(n.useState)(!1),{isDisabled:O}=Object(l.a)(),h="terms-and-conditions-"+c,{setValidationErrors:E,clearValidationError:_}=Object(i.useDispatch)(b.VALIDATION_STORE_KEY),j=Object(i.useSelect)(e=>e(b.VALIDATION_STORE_KEY).getValidationError(h)),k=!(null==j||!j.message||null!=j&&j.hidden);return Object(n.useEffect)(()=>{if(t)return d?_(h):E({[h]:{message:Object(a.__)("Please read and accept the terms and conditions.","woocommerce"),hidden:!0}}),()=>{_(h)}},[t,d,h,_,E]),Object(n.createElement)("div",{className:r()("wc-block-checkout__terms",{"wc-block-checkout__terms--disabled":O},s)},t?Object(n.createElement)(n.Fragment,null,Object(n.createElement)(o.CheckboxControl,{id:"terms-and-conditions",checked:d,onChange:()=>m(e=>!e),hasError:k,disabled:O},Object(n.createElement)("span",{dangerouslySetInnerHTML:{__html:e||u.a}}))):Object(n.createElement)("span",{dangerouslySetInnerHTML:{__html:e||u.b}}))})}}]); packages/woocommerce-blocks/build/checkout-blocks/actions--checkout-blocks/terms-style.js 0000644 00000001774 15155473417 0044127 0 ustar 00 var/www/vhosts/uyarreklam.com.tr/httpdocs/wp-content/plugins/woocommerce (window.webpackWcBlocksJsonp=window.webpackWcBlocksJsonp||[]).push([[11],{963:function(e,s,t){"use strict";t.d(s,"a",(function(){return c}));var i=t(10),o=t(7),n=t(176),r=t(319);const c=()=>{const{isCalculating:e,isBeforeProcessing:s,isProcessing:t,isAfterProcessing:c,isComplete:a,hasError:l}=Object(o.useSelect)(e=>{const s=e(i.CHECKOUT_STORE_KEY);return{isCalculating:s.isCalculating(),isBeforeProcessing:s.isBeforeProcessing(),isProcessing:s.isProcessing(),isAfterProcessing:s.isAfterProcessing(),isComplete:s.isComplete(),hasError:s.hasError()}}),{activePaymentMethod:u,isExpressPaymentMethodActive:g}=Object(o.useSelect)(e=>{const s=e(i.PAYMENT_STORE_KEY);return{activePaymentMethod:s.getActivePaymentMethod(),isExpressPaymentMethodActive:s.isExpressPaymentMethodActive()}}),{onSubmit:P}=Object(n.b)(),{paymentMethods:d={}}=Object(r.b)(),p=t||c||s,b=a&&!l;return{paymentMethodButtonLabel:(d[u]||{}).placeOrderButtonLabel,onSubmit:P,isCalculating:e,isDisabled:t||g,waitingForProcessing:p,waitingForRedirect:b}}}}]);