"use strict";(globalThis.webpackChunkcomplianz_gdpr=globalThis.webpackChunkcomplianz_gdpr||[]).push([[9401],{9401:(e,u,a)=>{a.r(u),a.d(u,{default:()=>t});var l=a(51609),r=a(10790);const t=(0,l.memo)((({value:e,onChange:u,onError:a,required:t,defaultValue:n,disabled:i,id:s,name:p})=>{const c=s||p,[d,o]=(0,l.useState)("");return(0,l.useEffect)((()=>{o(e)}),[]),(0,l.useEffect)((()=>{if(d===e)return;const l=setTimeout((()=>{u(d),null===d.match(/^(https?:\/\/)?([\da-z\.-]+)\.([a-z\.]{2,6})([\/\w \.-]*)*\/?$/)&&a("invalid_url")}),500);return()=>{clearTimeout(l)}}),[d]),(0,r.jsx)("div",{className:"cmplz-input-group cmplz-url-input-group",children:(0,r.jsx)("input",{type:"url",id:c,name:p,value:d,onChange:e=>(e=>{o(e)})(e.target.value),required:t,disabled:i,className:"cmplz-url-input-group__input"})})}))}}]);