{"version":3,"file":"FlippedText.DEPdk4e1.mjs","names":[],"sources":["https:/framerusercontent.com/modules/1xnLruninDC5qJ5PJf7B/eevDneukMzOlyeMjnYSl/FlippedText.js"],"sourcesContent":["// Flipped Text component with customizable text and flip character position\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";/**\n * @framerSupportedLayoutWidth auto\n * @framerSupportedLayoutHeight auto\n */export default function FlippedText(props){const{text=\"Different\",flipPosition=5,textColor=\"#E3411B\",font}=props;const characters=text.split(\"\");const flipIndex=Math.max(0,Math.min(flipPosition-1,characters.length-1));const isFixedWidth=props?.style&&props.style.width===\"100%\";return /*#__PURE__*/_jsx(\"div\",{style:{...props.style,...isFixedWidth?{}:{width:\"max-content\"},display:\"flex\",flexDirection:\"row\",background:\"none\",...font,color:textColor},children:characters.map((char,index)=>/*#__PURE__*/_jsx(\"span\",{style:{display:\"inline-block\",transform:index===flipIndex?\"scaleX(-1)\":\"none\"},children:char},index))});}addPropertyControls(FlippedText,{text:{type:ControlType.String,title:\"Text\",defaultValue:\"Different\"},flipPosition:{type:ControlType.Number,title:\"Flip Position\",defaultValue:5,min:1,max:20,step:1,displayStepper:true},textColor:{type:ControlType.Color,title:\"Text Color\",defaultValue:\"#E3411B\"},font:{type:ControlType.Font,title:\"Font\",defaultValue:{fontSize:\"64px\",variant:\"Semibold\",letterSpacing:\"-0.02em\",lineHeight:\"1em\"},controls:\"extended\",defaultFontType:\"sans-serif\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"FlippedText\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\":\"auto\",\"framerSupportedLayoutHeight\":\"auto\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./FlippedText.map"],"mappings":"4JAIG,SAAwB,EAAY,EAAM,CAAC,GAAK,CAAC,OAAK,YAAY,eAAa,EAAE,YAAU,UAAU,QAAM,EAAY,EAAW,EAAK,MAAM,EAAE,EAAQ,EAAU,KAAK,IAAI,EAAE,KAAK,IAAI,EAAa,EAAE,EAAW,OAAO,CAAC,CAAC,EAAQ,EAAa,GAAO,OAAO,EAAM,MAAM,QAAQ,OAAO,OAAoB,EAAK,MAAM,CAAC,MAAM,CAAC,GAAG,EAAM,MAAM,GAAG,EAAa,CAAC,EAAE,CAAC,MAAM,aAAa,EAAE,QAAQ,OAAO,cAAc,MAAM,WAAW,OAAO,GAAG,EAAK,MAAM,CAAS,EAAE,SAAS,EAAW,KAAK,EAAK,IAAqB,EAAK,OAAO,CAAC,MAAM,CAAC,QAAQ,eAAe,UAAU,IAAQ,EAAU,aAAa,MAAM,EAAE,SAAS,CAAI,EAAE,CAAK,CAAC,CAAC,CAAC,CAAE,iBAHpkB,IAAoD,EAGihB,EAAoB,EAAY,CAAC,KAAK,CAAC,KAAK,EAAY,OAAO,MAAM,OAAO,aAAa,WAAW,EAAE,aAAa,CAAC,KAAK,EAAY,OAAO,MAAM,gBAAgB,aAAa,EAAE,IAAI,EAAE,IAAI,GAAG,KAAK,EAAE,eAAe,EAAI,EAAE,UAAU,CAAC,KAAK,EAAY,MAAM,MAAM,aAAa,aAAa,SAAS,EAAE,KAAK,CAAC,KAAK,EAAY,KAAK,MAAM,OAAO,aAAa,CAAC,SAAS,OAAO,QAAQ,WAAW,cAAc,UAAU,WAAW,KAAK,EAAE,SAAS,WAAW,gBAAgB,YAAY,CAAC,CAAC"}