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