{"version":3,"file":"TextWrap_Prod.CfjTPCAM.mjs","names":[],"sources":["https:/framerusercontent.com/modules/oQk14E8Ar7JXjnVOhZW2/tTjSZGoYpVB4w8r1kHS0/TextWrap_Prod.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";/**\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight auto\n *\n * @framerDisableUnlink\n *\n * @framerIntrinsicWidth 400\n * @framerIntrinsicHeight auto\n */export default function TextWrap({layers=[],text,slot,font,color,layerGap,transform,layerAlign,decoration,balance,userSelect,tag,style}){const Tag=tag;const parts=text.split(slot);const content=[];// Insert layers at slot positions, keeping empty slots if no layer is available\nfor(let i=0;i<parts.length;i++){content.push(parts[i]);if(i<parts.length-1){// If we're not at the last part\nif(i<layers.length){// If we have a layer for this slot, insert it\ncontent.push(/*#__PURE__*/_jsx(InlineLayer,{align:layerAlign,gap:layerGap,children:layers[i]},`layer-${i}`));}else{// If we don't have a layer, keep the slot marker\ncontent.push(slot);}}}// Append any remaining layers at the end\nif(layers.length>parts.length-1){for(let i=parts.length-1;i<layers.length;i++){content.push(/*#__PURE__*/_jsx(InlineLayer,{align:layerAlign,gap:layerGap,children:layers[i]},`layer-${i}`));}}return /*#__PURE__*/_jsx(Tag,{style:{color,margin:0,whiteSpace:style?.width?\"pre\":\"nowrap\",fontWeight:400,textAlign:\"center\",userSelect:userSelect?\"auto\":\"none\",textDecoration:decoration,textWrap:balance?\"balance\":undefined,textTransform:transform,...color.mode==\"solid\"?{color:color.color}:{WebkitBackgroundClip:\"text\",WebkitTextFillColor:\"transparent\",backgroundImage:`linear-gradient(${color.angle}deg, ${color.endColor}, ${color.startColor})`},...font,...style},children:content});}TextWrap.displayName=\"Text Wrap\";addPropertyControls(TextWrap,{text:{type:ControlType.String,defaultValue:\"Learn [] Framer With [] Framer University\",displayTextArea:true},layers:{type:ControlType.Array,control:{type:ControlType.ComponentInstance}},slot:{type:ControlType.String,defaultValue:\"[]\"},font:{type:\"font\",controls:\"extended\",defaultFontType:\"sans-serif\",defaultValue:{fontSize:32,lineHeight:1.4}},color:{type:ControlType.Object,icon:\"color\",controls:{mode:{type:ControlType.Enum,defaultValue:\"solid\",options:[\"solid\",\"gradient\"],optionTitles:[\"Solid\",\"Gradient\"],displaySegmentedControl:true},color:{type:ControlType.Color,defaultValue:\"#999999\",hidden:props=>props.mode!==\"solid\"},startColor:{type:ControlType.Color,defaultValue:\"#000\",hidden:props=>props.mode!==\"gradient\"},endColor:{type:ControlType.Color,defaultValue:\"#FFF\",hidden:props=>props.mode!==\"gradient\"},angle:{type:ControlType.Number,defaultValue:0,min:-360,max:360,unit:\"\\xb0\",hidden:props=>props.mode!==\"gradient\"}}},layerAlign:{type:ControlType.Enum,defaultValue:\"baseline\",options:[\"baseline\",\"middle\"],optionTitles:[\"Baseline\",\"Middle\"],displaySegmentedControl:true,title:\"Align\"},layerGap:{type:ControlType.Number,defaultValue:0,min:0,step:1},transform:{type:ControlType.Enum,defaultValue:\"none\",options:[\"none\",\"inherit\",\"capitalize\",\"uppercase\",\"lowercase\"],optionTitles:[\"None\",\"Inherit\",\"Capitalize\",\"Uppercase\",\"Lowercase\"]},decoration:{type:ControlType.Enum,defaultValue:\"none\",options:[\"none\",\"underline\",\"line-through\"],optionTitles:[\"None\",\"Underline\",\"Strikethrough\"]},balance:{type:ControlType.Boolean,defaultValue:false},userSelect:{type:ControlType.Boolean,defaultValue:true},tag:{type:ControlType.Enum,defaultValue:\"h1\",options:[\"h1\",\"h2\",\"h3\",\"h4\",\"h5\",\"h6\",\"p\",\"span\"],description:\"More components at [Framer University](https://frameruni.link/cc).\"}});function InlineLayer({children,align=\"middle\",gap=0}){return /*#__PURE__*/_jsx(\"span\",{style:{display:\"inline-block\",verticalAlign:align,marginLeft:gap,marginRight:gap},children:children});}\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"TextWrap\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\":\"any\",\"framerDisableUnlink\":\"*\",\"framerSupportedLayoutHeight\":\"auto\",\"framerIntrinsicHeight\":\"auto\",\"framerContractVersion\":\"1\",\"framerIntrinsicWidth\":\"400\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./TextWrap_Prod.map"],"mappings":"6JAQG,SAAwB,EAAS,CAAC,SAAO,CAAC,EAAE,OAAK,OAAK,OAAK,QAAM,WAAS,YAAU,aAAW,aAAW,UAAQ,aAAW,MAAI,SAAO,CAAC,IAAM,EAAI,EAAU,EAAM,EAAK,MAAM,CAAI,EAAQ,EAAQ,CAAC,EACtM,IAAI,IAAI,EAAE,EAAE,EAAE,EAAM,OAAO,IAAK,EAAQ,KAAK,EAAM,EAAE,EAAK,EAAE,EAAM,OAAO,IACtE,EAAE,EAAO,OACZ,EAAQ,KAAkB,EAAK,EAAY,CAAC,MAAM,EAAW,IAAI,EAAS,SAAS,EAAO,EAAE,EAAE,SAAS,GAAG,CAAC,EAC3G,EAAQ,KAAK,CAAI,GACjB,GAAG,EAAO,OAAO,EAAM,OAAO,EAAG,IAAI,IAAI,EAAE,EAAM,OAAO,EAAE,EAAE,EAAO,OAAO,IAAK,EAAQ,KAAkB,EAAK,EAAY,CAAC,MAAM,EAAW,IAAI,EAAS,SAAS,EAAO,EAAE,EAAE,SAAS,GAAG,CAAC,EAAI,OAAoB,EAAK,EAAI,CAAC,MAAM,CAAC,QAAM,OAAO,EAAE,WAAW,GAAO,MAAM,MAAM,SAAS,WAAW,IAAI,UAAU,SAAS,WAAW,EAAW,OAAO,OAAO,eAAe,EAAW,SAAS,EAAQ,UAAU,IAAA,GAAU,cAAc,EAAU,GAAG,EAAM,MAAM,QAAQ,CAAC,MAAM,EAAM,KAAK,EAAE,CAAC,qBAAqB,OAAO,oBAAoB,cAAc,gBAAgB,mBAAmB,EAAM,MAAM,OAAO,EAAM,SAAS,IAAI,EAAM,WAAW,EAAE,EAAE,GAAG,EA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