{"version":3,"file":"LogoTicker.BlUI-3Az.mjs","names":["React.useState"],"sources":["https:/framerusercontent.com/modules/8LE17MEwvAEFrPcexEz8/7EjAffbUcm70TAnlYffi/LogoTicker.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import*as React from\"react\";import{addPropertyControls,ControlType}from\"framer\";export default function LogoTicker({logosRow1=[],logosRow2=[],speed=30,logoHeight=60,gap=60,rowGap=40,pauseOnHover=true,direction=\"left\",enableAnimation=true,fadeWidth=100,grayscale=false,grayscaleHover=false}){var isHoveredState=React.useState(false);var isHovered=isHoveredState[0];var setIsHovered=isHoveredState[1];var renderRow=function(logos,rowIndex){if(!logos||logos.length===0){return /*#__PURE__*/_jsxs(\"div\",{style:{width:\"100%\",height:logoHeight,display:\"flex\",alignItems:\"center\",justifyContent:\"center\",textAlign:\"center\",border:\"1px dashed #ccc\",borderRadius:12,color:\"#999\",fontSize:14},children:[\"👉 Add logos for Row \",rowIndex,\" in the Properties Panel\"]});}var duplicatedLogos=enableAnimation?logos.concat(logos).concat(logos):logos;var rowDirection=rowIndex===1?direction:direction===\"left\"?\"right\":\"left\";var animationDirection=rowDirection===\"left\"?\"tickerLeft\":\"tickerRight\";var duration=logos.length*(100/speed);var animationStyle=enableAnimation?animationDirection+\" \"+duration+\"s linear infinite\":\"none\";var playState=enableAnimation&&isHovered&&pauseOnHover?\"paused\":\"running\";// grayscale 필터 계산\nvar getFilter=()=>{if(!grayscale)return\"none\";if(grayscaleHover&&isHovered)return\"grayscale(0%)\";return\"grayscale(100%)\";};return /*#__PURE__*/_jsxs(\"div\",{style:{width:\"100%\",overflow:\"hidden\",display:\"flex\",alignItems:\"center\",position:\"relative\"},children:[/*#__PURE__*/_jsx(\"div\",{style:{position:\"absolute\",left:0,top:0,bottom:0,width:fadeWidth,background:\"linear-gradient(to right, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 100%)\",zIndex:2,pointerEvents:\"none\"}}),/*#__PURE__*/_jsx(\"div\",{style:{position:\"absolute\",right:0,top:0,bottom:0,width:fadeWidth,background:\"linear-gradient(to left, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 100%)\",zIndex:2,pointerEvents:\"none\"}}),/*#__PURE__*/_jsx(\"div\",{style:{display:\"flex\",alignItems:\"center\",gap:gap,animation:animationStyle,animationPlayState:playState,justifyContent:enableAnimation?\"flex-start\":\"center\",width:enableAnimation?\"auto\":\"100%\"},children:duplicatedLogos.map(function(logo,i){return /*#__PURE__*/_jsx(\"div\",{style:{flexShrink:0,height:logoHeight,display:\"flex\",alignItems:\"center\",justifyContent:\"center\"},children:/*#__PURE__*/_jsx(\"img\",{src:logo,alt:\"\",style:{height:\"100%\",width:\"auto\",objectFit:\"contain\",display:\"block\",filter:getFilter(),transition:\"filter 0.3s ease\"}})},i);})})]});};var hasAnyLogos=logosRow1&&logosRow1.length>0||logosRow2&&logosRow2.length>0;if(!hasAnyLogos){return /*#__PURE__*/_jsx(\"div\",{style:{width:\"100%\",height:\"100%\",display:\"flex\",alignItems:\"center\",justifyContent:\"center\",textAlign:\"center\",border:\"1px dashed #ccc\",borderRadius:12,color:\"#999\",fontSize:14},children:\"👉 Add logos in the Properties Panel\"});}return /*#__PURE__*/_jsxs(\"div\",{style:{width:\"100%\",height:\"100%\",display:\"flex\",flexDirection:\"column\",justifyContent:\"center\",gap:rowGap},onMouseEnter:function(){setIsHovered(true);},onMouseLeave:function(){setIsHovered(false);},children:[logosRow1&&logosRow1.length>0&&renderRow(logosRow1,1),logosRow2&&logosRow2.length>0&&renderRow(logosRow2,2),/*#__PURE__*/_jsx(\"style\",{children:\"\\n                    @keyframes tickerLeft {\\n                        0% { transform: translateX(0); }\\n                        100% { transform: translateX(-33.333%); }\\n                    }\\n                    @keyframes tickerRight {\\n                        0% { transform: translateX(-33.333%); }\\n                        100% { transform: translateX(0); }\\n                    }\\n                \"})]});}addPropertyControls(LogoTicker,{enableAnimation:{type:ControlType.Boolean,title:\"Enable Animation\",defaultValue:true,section:\"Settings\"},speed:{type:ControlType.Number,title:\"Speed\",defaultValue:30,min:10,max:100,step:5,hidden(props){return props.enableAnimation===false;},section:\"Settings\"},direction:{type:ControlType.Enum,title:\"Direction\",options:[\"left\",\"right\"],optionTitles:[\"Left\",\"Right\"],defaultValue:\"left\",hidden(props){return props.enableAnimation===false;},section:\"Settings\"},pauseOnHover:{type:ControlType.Boolean,title:\"Pause on Hover\",defaultValue:true,hidden(props){return props.enableAnimation===false;},section:\"Settings\"},logosRow1:{type:ControlType.Array,title:\"Logos\",maxCount:30,propertyControl:{type:ControlType.Image},section:\"Row 1\"},logosRow2:{type:ControlType.Array,title:\"Logos\",maxCount:30,propertyControl:{type:ControlType.Image},section:\"Row 2\"},logoHeight:{type:ControlType.Number,title:\"Logo Height\",defaultValue:60,min:20,max:200,step:10,section:\"Style\"},gap:{type:ControlType.Number,title:\"Logo Gap\",defaultValue:60,min:20,max:200,step:10,section:\"Style\"},rowGap:{type:ControlType.Number,title:\"Row Gap\",defaultValue:40,min:10,max:100,step:10,section:\"Style\"},fadeWidth:{type:ControlType.Number,title:\"Fade Width\",defaultValue:100,min:0,max:300,step:10,section:\"Style\"},grayscale:{type:ControlType.Boolean,title:\"Grayscale\",defaultValue:false,section:\"Style\"},grayscaleHover:{type:ControlType.Boolean,title:\"Color on Hover\",defaultValue:false,hidden(props){return props.grayscale===false;},section:\"Style\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"LogoTicker\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./LogoTicker.map"],"mappings":"iLAAyI,SAAwB,EAAW,CAAC,YAAU,EAAE,CAAC,YAAU,EAAE,CAAC,QAAM,GAAG,aAAW,GAAG,MAAI,GAAG,SAAO,GAAG,eAAa,GAAK,YAAU,OAAO,kBAAgB,GAAK,YAAU,IAAI,YAAU,GAAM,iBAAe,IAAO,CAAC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