D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
home
/
aramrprl
/
www
/
wp-content
/
plugins
/
complianz-gdpr
/
settings
/
build
/
Filename :
3549.e5ba19d1953def146594.js
back
Copy
"use strict";(globalThis.webpackChunkcomplianz_gdpr=globalThis.webpackChunkcomplianz_gdpr||[]).push([[3549],{13549:(e,l,a)=>{a.r(l),a.d(l,{default:()=>t});var d=a(27723),i=a(4219),r=a(10790);const t=e=>{const{updateField:l,setChangedField:a}=(0,i.default)(),t=(d,i)=>{let r={...e.field.value};r[d]=i,l(e.field.id,r),a(e.field.id,r)},s=e.field.value.hasOwnProperty("top")?e.field.value.top:e.field.default.top,p=e.field.value.hasOwnProperty("right")?e.field.value.right:e.field.default.right,n=e.field.value.hasOwnProperty("bottom")?e.field.value.bottom:e.field.default.bottom,c=e.field.value.hasOwnProperty("left")?e.field.value.left:e.field.default.left,u=e.field.value.hasOwnProperty("type")?e.field.value.type:e.field.default.type,m="%"===u?"cmplz-inactive":"",o="px"===u?"cmplz-inactive":"";return(0,r.jsxs)("div",{children:[(0,r.jsx)("div",{className:"cmplz-borderradius-label",children:e.label}),(0,r.jsxs)("div",{className:"cmplz-borderradius-control",children:[(0,r.jsxs)("div",{className:"cmplz-borderradius-element",children:[(0,r.jsx)("div",{className:"cmplz-borderradius-element-label",children:(0,d.__)("Top","complianz-gdpr")}),(0,r.jsx)("input",{type:"number",onChange:e=>t("top",e.target.value),value:s},"1")]}),(0,r.jsxs)("div",{className:"cmplz-borderradius-element",children:[(0,r.jsx)("div",{className:"cmplz-borderradius-element-label",children:(0,d.__)("Right","complianz-gdpr")}),(0,r.jsx)("input",{type:"number",onChange:e=>t("right",e.target.value),value:p},"2")]}),(0,r.jsxs)("div",{className:"cmplz-borderradius-element",children:[(0,r.jsx)("div",{className:"cmplz-borderradius-element-label",children:(0,d.__)("Bottom","complianz-gdpr")}),(0,r.jsx)("input",{type:"number",onChange:e=>t("bottom",e.target.value),value:n},"3")]}),(0,r.jsxs)("div",{className:"cmplz-borderradius-element",children:[(0,r.jsx)("div",{className:"cmplz-borderradius-element-label",children:(0,d.__)("Left","complianz-gdpr")}),(0,r.jsx)("input",{type:"number",onChange:e=>t("left",e.target.value),value:c},"4")]}),(0,r.jsxs)("div",{className:"cmplz-borderradius-inputtype",children:[(0,r.jsx)("div",{className:"cmplz-borderradius-inputtype-pixel "+m,onClick:()=>t("type","px"),children:"px"}),(0,r.jsx)("div",{className:"cmplz-borderradius-inputtype-percent "+o,onClick:()=>t("type","%"),children:"%"})]})]})]})}}}]);