{"version":3,"file":"TypingIndicator.C5IZLydD.mjs","names":["useState"],"sources":["https:/framerusercontent.com/modules/QvJN0Wrf2tUWgWp6Czh6/4O8OZV1EhgEOq43tok20/TypingIndicator.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{useState,useEffect}from\"react\";import{addPropertyControls,ControlType}from\"framer\";export default function TypingIndicator({message=\"Don't be shy — say hi!\",delay=4e3,dotSize=6,dotGap=6,dotColor=\"#787878\",bounceHeight=6,bubbleWidth=61,bubbleHeight=28,bubbleColor=\"#F5F5F5\",dotTopSpacing=40,textTopSpacing=-8}){const[showMessage,setShowMessage]=useState(false);useEffect(()=>{const id=\"typing-indicator-style\";if(!document.getElementById(id)){const style=document.createElement(\"style\");style.id=id;style.textContent=`\n                @keyframes ti-bounce {\n                    0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }\n                    30% { transform: translateY(var(--ti-bounce-height, -6px)); opacity: 1; }\n                }\n                .ti-dot {\n                    animation: ti-bounce 1.2s ease-in-out infinite;\n                }\n                .ti-dot:nth-child(1) { animation-delay: 0s; }\n                .ti-dot:nth-child(2) { animation-delay: 0.15s; }\n                .ti-dot:nth-child(3) { animation-delay: 0.3s; }\n                @import url('https://fonts.googleapis.com/css2?family=Silkscreen&display=swap');\n            `;document.head.appendChild(style);}},[]);useEffect(()=>{const timer=setTimeout(()=>setShowMessage(true),delay);return()=>clearTimeout(timer);},[delay]);return /*#__PURE__*/_jsx(\"div\",{style:{width:\"100%\",height:\"100%\",display:\"flex\",flexDirection:\"column\",alignItems:\"flex-start\",justifyContent:\"flex-start\"},children:showMessage?/*#__PURE__*/_jsx(\"div\",{style:{marginTop:textTopSpacing,textAlign:\"left\",fontFamily:\"'Silkscreen', monospace\",fontSize:14,color:\"#797979\",lineHeight:\"140%\",whiteSpace:\"nowrap\"},children:message}):/*#__PURE__*/_jsx(\"div\",{style:{paddingTop:dotTopSpacing},children:/*#__PURE__*/_jsx(\"div\",{style:{display:\"flex\",alignItems:\"center\",justifyContent:\"center\",gap:dotGap,width:bubbleWidth,height:bubbleHeight,borderRadius:14,background:bubbleColor,\"--ti-bounce-height\":`-${bounceHeight}px`},children:[0,1,2].map(i=>/*#__PURE__*/_jsx(\"div\",{className:\"ti-dot\",style:{width:dotSize,height:dotSize,borderRadius:\"50%\",background:dotColor}},i))})})});}addPropertyControls(TypingIndicator,{message:{type:ControlType.String,title:\"메시지\",defaultValue:\"Don't be shy — say hi!\"},delay:{type:ControlType.Number,title:\"전환 시간(ms)\",defaultValue:4e3,min:500,max:1e4,step:100},dotSize:{type:ControlType.Number,title:\"점 크기\",defaultValue:6,min:3,max:16},dotGap:{type:ControlType.Number,title:\"점 간격\",defaultValue:6,min:2,max:20},dotColor:{type:ControlType.Color,title:\"점 색상\",defaultValue:\"#787878\"},bounceHeight:{type:ControlType.Number,title:\"튀는 높이\",defaultValue:6,min:2,max:20},bubbleWidth:{type:ControlType.Number,title:\"박스 폭\",defaultValue:61,min:40,max:200},bubbleHeight:{type:ControlType.Number,title:\"박스 높이\",defaultValue:28,min:20,max:80},bubbleColor:{type:ControlType.Color,title:\"박스 배경색\",defaultValue:\"#F5F5F5\"},dotTopSpacing:{type:ControlType.Number,title:\"점박이-이름 간격\",defaultValue:40,min:0,max:60},textTopSpacing:{type:ControlType.Number,title:\"텍스트-이름 간격\",defaultValue:-8,min:-30,max:40}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"TypingIndicator\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./TypingIndicator.map"],"mappings":"iLAAqI,SAAwB,EAAgB,CAAC,UAAQ,yBAAyB,QAAM,IAAI,UAAQ,EAAE,SAAO,EAAE,WAAS,UAAU,eAAa,EAAE,cAAY,GAAG,eAAa,GAAG,cAAY,UAAU,gBAAc,GAAG,iBAAe,IAAI,CAAC,GAAK,CAAC,EAAY,GAAgBA,EA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