"use strict";(self.webpackChunkshopwp=self.webpackChunkshopwp||[]).push([["CartTerms-public"],{wsJS:function(e,t,n){n.r(t);var r=n("2MD/"),a=n("LpH3"),s=n("AU3J"),i=n("y+oc"),o=n("V+k2"),p={name:"1wkvke5-termsWrapperCSS",styles:"align-items:center;.wps-input{margin:0;&:hover{cursor:pointer;}};label:termsWrapperCSS;"},l={name:"1yvtkhm-containerCSS",styles:"margin:0.5em 0 1em 0;padding:0;label:containerCSS;"};t.default=function(){var e=wp.element.useState,t=(0,i.d)(),n=(0,o.v)(),c=e((function(){return!1})),u=(0,r.Z)(c,2),m=u[0],d=u[1],h=l,w=(0,a.iv)("padding-left:10px;width:100%;text-transform:initial;display:inline-block;vertical-align:middle;cursor:pointer;margin:0;font-weight:normal;font-size:15px;color:#121212;cursor:",n.isCartUpdating?"not-allowed":"pointer",";&:empty{display:none;};label:labelCSS;"),g=p,b=(0,a.iv)("color:transparent;user-select:none;filter:hue-rotate(59deg);width:14px;height:14px;margin:5px;appearance:none;outline:1px solid gray;box-shadow:none;font-size:0.8em;text-align:center;line-height:1em;background:white;cursor:",n.isCartUpdating?"not-allowed":"pointer",';position:relative;top:1px;border-radius:2px;&:checked:after{content:"✔";color:black;font-size:15px;position:absolute;left:2px;top:-3px;}&:disabled{&:hover{cursor:not-allowed;}};label:termsInputCSS;');return(0,a.tZ)("section",{className:"wps-cart-terms",css:h},(0,a.tZ)("div",{className:"wps-input-row",css:[s.mm,g,";label:CartTerms;"]},(0,a.tZ)("input",{onChange:function(e){n.isCartUpdating||(d(!m),t({type:"SET_TERMS_ACCEPTED",payload:!m}))},id:"wps-input-terms",defaultChecked:m,type:"checkbox",className:"wps-input wps-input-checkbox",css:b}),(0,a.tZ)("label",{dangerouslySetInnerHTML:{__html:shopwp.general.cartTermsContent},htmlFor:"wps-input-terms",className:"wps-input-label wps-input-terms",css:w})))}}}]);