'use client';
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),r=require("react");exports.default=({setting:t,builderProps:u})=>{let l=r.useRef(null),a=r.useRef(null),n=r.useRef(new AbortController),o=r.useCallback(e=>{alert(e)},[]),c=t?.triggerUpdate==="blur"?{onBlur:e=>{n.current.signal.aborted&&(n.current=new AbortController),o(e.target.value)}}:{onChange:()=>{a.current&&(n.current.signal.aborted||n.current.abort(),clearTimeout(a.current)),a.current=setTimeout(()=>{n.current=new AbortController,o(l.current?.value??"")},t?.debounce??1e3)}};return e.jsx("textarea",{placeholder:t?.placeholder,"data-id":u?.uid,ref:l,className:"gp-w-full gp-rounded gp-border gp-p-4",...c})};
