{"version":3,"file":"TextWrap_Prod.Bjs0-2SL.mjs","names":["__esmMin","init_jsx_runtime","c","addPropertyControls","init_framer_B1b760uK","ControlType","TextWrap","Tag","tag","parts","text","slot","content","i","layers","InlineLayer","layerAlign","layerGap","style","userSelect","decoration","balance","transform","color","font","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,6JAQG,SAAwBM,EAAS,CAAC,SAAO,CAAC,EAAE,OAAK,OAAK,OAAK,QAAM,WAAS,YAAU,aAAW,aAAW,UAAQ,aAAW,MAAI,SAAO,CAAC,IAAMC,EAAIC,EAAUC,EAAMC,EAAK,MAAMC,CAAI,EAAQC,EAAQ,CAAC,EACtM,IAAI,IAAIC,EAAE,EAAEA,EAAEJ,EAAM,OAAO,IAAKG,EAAQ,KAAKH,EAAMI,EAAE,EAAKA,EAAEJ,EAAM,OAAO,IACtEI,EAAEC,EAAO,OACZF,EAAQ,KAAkB,gBAAKG,EAAY,CAAC,MAAMC,EAAW,IAAIC,EAAS,SAASH,EAAOD,EAAE,EAAE,SAASA,GAAG,CAAC,EAC3GD,EAAQ,KAAKD,CAAI,GACjB,GAAGG,EAAO,OAAOL,EAAM,OAAO,EAAG,IAAI,IAAII,EAAEJ,EAAM,OAAO,EAAEI,EAAEC,EAAO,OAAO,IAAKF,EAAQ,KAAkB,gBAAKG,EAAY,CAAC,MAAMC,EAAW,IAAIC,EAAS,SAASH,EAAOD,EAAE,EAAE,SAASA,GAAG,CAAC,EAAI,MAAoB,gBAAKN,EAAI,CAAC,MAAM,CAAC,QAAM,OAAO,EAAE,WAAWW,GAAO,MAAM,MAAM,SAAS,WAAW,IAAI,UAAU,SAAS,WAAWC,EAAW,OAAO,OAAO,eAAeC,EAAW,SAASC,EAA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