{"version":3,"file":"TextIndenter.eut-uZ-l.mjs","names":["useMemo"],"sources":["https:/framerusercontent.com/modules/fEQuiwvr6MreOhfDWNbI/A5dgwCSTUUUTI44KCbG9/vp3LN5YiK.js","https:/framerusercontent.com/modules/XBLQKNP4H4SunjkAGBSw/VJkxmkFVML31c5bBRko6/TextIndenter.js"],"sourcesContent":["// Generated by Framer (8c2ed74)\nimport{fontStore}from\"framer\";fontStore.loadFonts([\"FS;Plus Jakarta Sans-medium\",\"FS;Plus Jakarta Sans-bold\",\"FS;Plus Jakarta Sans-bold italic\",\"FS;Plus Jakarta Sans-medium italic\"]);export const fonts=[{explicitInter:true,fonts:[{cssFamilyName:\"Plus Jakarta Sans\",source:\"fontshare\",style:\"normal\",uiFamilyName:\"Plus Jakarta Sans\",url:\"https://framerusercontent.com/third-party-assets/fontshare/wf/3U7D2WJULAFN5UCDE2DSKFPDTJNUSRPY/XTZGHUDFURQVBRVTOPX7XHP5YBIQJL2U/FVNNCZHGTHUOM3RCJDOO45QMBIJISVEG.woff2\",weight:\"500\"},{cssFamilyName:\"Plus Jakarta Sans\",source:\"fontshare\",style:\"normal\",uiFamilyName:\"Plus Jakarta Sans\",url:\"https://framerusercontent.com/third-party-assets/fontshare/wf/AJVGEOXGB2ALQKAZEK2LDOLCVBCMCOIT/LDEP4R7SNNABDEG433DCQGM2A7YCBHLU/OWABOLGBAKFVLPZ756IYS6EKYKU54K3I.woff2\",weight:\"700\"},{cssFamilyName:\"Plus Jakarta Sans\",source:\"fontshare\",style:\"italic\",uiFamilyName:\"Plus Jakarta Sans\",url:\"https://framerusercontent.com/third-party-assets/fontshare/wf/57U2OK2BISA74Z4RT4CRD5GR4O3PNVPY/K4TDAPUNBYK24HOCNW4JIOTEXSAE2BEF/GV5XODI2YD2DJA5RVTMJOSDHYESL7IYT.woff2\",weight:\"700\"},{cssFamilyName:\"Plus Jakarta Sans\",source:\"fontshare\",style:\"italic\",uiFamilyName:\"Plus Jakarta Sans\",url:\"https://framerusercontent.com/third-party-assets/fontshare/wf/UABF25CCX23LBLOOMOCUSPFEXYUNKOIQ/NGF5IU7BZUA2FUOVWECHGUFSHNEIX4YK/QDINYT7WQXBD2IDFQGGJ74DWIUFHOOZD.woff2\",weight:\"500\"}]}];export const css=['.framer-l5769 .framer-styles-preset-1k7trq4:not(.rich-text-wrapper), .framer-l5769 .framer-styles-preset-1k7trq4.rich-text-wrapper p { --framer-font-family: \"Plus Jakarta Sans\", \"Plus Jakarta Sans Placeholder\", sans-serif; --framer-font-family-bold: \"Plus Jakarta Sans\", \"Plus Jakarta Sans Placeholder\", sans-serif; --framer-font-family-bold-italic: \"Plus Jakarta Sans\", \"Plus Jakarta Sans Placeholder\", sans-serif; --framer-font-family-italic: \"Plus Jakarta Sans\", \"Plus Jakarta Sans Placeholder\", sans-serif; --framer-font-open-type-features: normal; --framer-font-size: 14px; --framer-font-style: normal; --framer-font-style-bold: normal; --framer-font-style-bold-italic: italic; --framer-font-style-italic: italic; --framer-font-variation-axes: normal; --framer-font-weight: 500; --framer-font-weight-bold: 700; --framer-font-weight-bold-italic: 700; --framer-font-weight-italic: 500; --framer-letter-spacing: -0.01em; --framer-line-height: 21px; --framer-paragraph-spacing: 20px; --framer-text-alignment: start; --framer-text-color: var(--token-e3e6dea6-1776-4d3e-b8f6-916edb83b27d, #383832); --framer-text-decoration: none; --framer-text-stroke-color: initial; --framer-text-stroke-width: initial; --framer-text-transform: inherit; }'];export const className=\"framer-l5769\";\nexport const __FramerMetadata__ = {\"exports\":{\"className\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"css\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"fonts\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}","// Text component with first-line indent functionality and overflow protection\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{useMemo}from\"react\";import{addPropertyControls,ControlType}from\"framer\";/**\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight any-prefer-fixed\n */export default function TextIndenter(props){const{text,indentSpaces,font,textColor}=props;const processedText=useMemo(()=>{// Handle empty or whitespace-only text\nif(!text||text.trim().length===0){return text||\"\";}// Apply indent\nconst spaces=\" \".repeat(Math.max(0,Math.min(indentSpaces,50)));return spaces+text;},[text,indentSpaces]);const isFixedWidth=props?.style&&props.style.width===\"100%\";return /*#__PURE__*/_jsx(\"div\",{style:{...props.style,position:\"relative\",...isFixedWidth?{...props?.style}:{minWidth:\"max-content\"}},children:/*#__PURE__*/_jsx(\"div\",{style:{...font,color:textColor,whiteSpace:\"pre-wrap\",wordBreak:\"break-word\",overflowWrap:\"break-word\",...isFixedWidth?{}:{width:\"max-content\"}},children:processedText||\"Enter your text here...\"})});}addPropertyControls(TextIndenter,{text:{type:ControlType.String,title:\"Text\",defaultValue:\"This is a sample paragraph that will have its first line indented. The indent will only apply to the very beginning of this text, creating a traditional paragraph formatting style.\",displayTextArea:true},indentSpaces:{type:ControlType.Number,title:\"Indent Spaces\",defaultValue:4,min:0,max:50,step:1,displayStepper:true},font:{type:ControlType.Font,title:\"Font\",defaultValue:{fontSize:\"15px\",variant:\"Medium\",letterSpacing:\"-0.01em\",lineHeight:\"1.3em\"},controls:\"extended\",defaultFontType:\"sans-serif\"},textColor:{type:ControlType.Color,title:\"Text Color\",defaultValue:\"#000000\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"TextIndenter\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerSupportedLayoutHeight\":\"any-prefer-fixed\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./TextIndenter.map"],"mappings":"wMAC8B,GAAU,UAAU,CAAC,8BAA8B,4BAA4B,mCAAmC,qCAAqC,CAAC,CAAc,EAAM,CAAC,CAAC,cAAc,GAAK,M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