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