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