{"version":3,"file":"TextWrap_Prod.Uh8FpPQ1.mjs","names":["_jsx","__esmMin","init_jsx_runtime","c","addPropertyControls","init_framer_BWzg2IRg","ControlType","TextWrap","layers","text","slot","font","color","layerGap","transform","layerAlign","decoration","balance","userSelect","tag","style","Tag","parts","content","i","InlineLayer","children","align","gap","init_TextWrap_Prod","props"],"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":"A,4JAQG,SAAwBO,EAAS,CAACC,SAAO,CAAC,EAAEC,OAAKC,OAAKC,OAAKC,QAAMC,WAASC,YAAUC,aAAWC,aAAWC,UAAQC,aAAWC,MAAIC,SAAO,CAAC,IAAMC,EAAIF,EAAUG,EAAMb,EAAK,MAAMC,CAAI,EAAQa,EAAQ,CAAC,EACtM,IAAI,IAAIC,EAAE,EAAEA,EAAEF,EAAM,OAAOE,IAAKD,EAAQ,KAAKD,EAAME,EAAE,EAAKA,EAAEF,EAAM,OAAO,IACtEE,EAAEhB,EAAO,OACZe,EAAQ,KAAkBvB,gBAAKyB,EAAY,CAAC,MAAMV,EAAW,IAAIF,EAAS,SAASL,EAAOgB,EAAE,EAAE,SAASA,GAAG,CAAC,EAC3GD,EAAQ,KAAKb,CAAI,GACjB,GAAGF,EAAO,OAAOc,EAAM,OAAO,EAAG,IAAI,IAAIE,EAAEF,EAAM,OAAO,EAAEE,EAAEhB,EAAO,OAAOgB,IAAKD,EAAQ,KAAkBvB,gBAAKyB,EAAY,CAAC,MAAMV,EAAW,IAAIF,EAAS,SAASL,EAAOgB,EAAE,EAAE,SAASA,GAAG,CAAC,EAAI,MAAoBxB,gBAAKqB,EAAI,CAAC,MAAM,CAACT,QAAM,OAAO,EAAE,WAAWQ,GAAO,MAAM,MAAM,SAAS,WAAW,IAAI,UAAU,SAAS,WAAWF,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