{
  "version": 3,
  "sources": ["ssg: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": "yFAQkB,SAARA,EAA0B,CAAC,OAAAC,EAAO,CAAC,EAAE,KAAAC,EAAK,KAAAC,EAAK,KAAAC,EAAK,MAAAC,EAAM,SAAAC,EAAS,UAAAC,EAAU,WAAAC,EAAW,WAAAC,EAAW,QAAAC,EAAQ,WAAAC,EAAW,IAAAC,EAAI,MAAAC,CAAK,EAAE,CAAC,IAAMC,EAAIF,EAAUG,EAAMb,EAAK,MAAMC,CAAI,EAAQa,EAAQ,CAAC,EACtM,QAAQC,EAAE,EAAEA,EAAEF,EAAM,OAAOE,IAAKD,EAAQ,KAAKD,EAAME,CAAC,CAAC,EAAKA,EAAEF,EAAM,OAAO,IACtEE,EAAEhB,EAAO,OACZe,EAAQ,KAAkBE,EAAKC,EAAY,CAAC,MAAMX,EAAW,IAAIF,EAAS,SAASL,EAAOgB,CAAC,CAAC,EAAE,SAASA,CAAC,EAAE,CAAC,EAC3GD,EAAQ,KAAKb,CAAI,GACjB,GAAGF,EAAO,OAAOc,EAAM,OAAO,EAAG,QAAQE,EAAEF,EAAM,OAAO,EAAEE,EAAEhB,EAAO,OAAOgB,IAAKD,EAAQ,KAAkBE,EAAKC,EAAY,CAAC,MAAMX,EAAW,IAAIF,EAAS,SAASL,EAAOgB,CAAC,CAAC,EAAE,SAASA,CAAC,EAAE,CAAC,EAAI,OAAoBC,EAAKJ,EAAI,CAAC,MAAM,CAAC,MAAAT,EAAM,OAAO,EAAE,WAAWQ,GAAO,MAAM,MAAM,SAAS,WAAW,IAAI,UAAU,SAAS,WAAWF,EAAW,OAAO,OAAO,eAAeF,EAAW,SAASC,EAAQ,UAAU,OAAU,cAAcH,EAAU,GAAGF,EAAM,MAAM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GAAK,MAAM,OAAO,EAAE,SAAS,CAAC,KAAKA,EAAY,OAAO,aAAa,EAAE,IAAI,EAAE,KAAK,CAAC,EAAE,UAAU,CAAC,KAAKA,EAAY,KAAK,aAAa,OAAO,QAAQ,CAAC,OAAO,UAAU,aAAa,YAAY,WAAW,EAAE,aAAa,CAAC,OAAO,UAAU,aAAa,YAAY,WAAW,CAAC,EAAE,WAAW,CAAC,KAAKA,EAAY,KAAK,aAAa,OAAO,QAAQ,CAAC,OAAO,YAAY,cAAc,EAAE,aAAa,CAAC,OAAO,YAAY,eAAe,CAAC,EAAE,QAAQ,CAAC,KAAKA,EAAY,QAAQ,aAAa,EAAK,EAAE,WAAW,CAAC,KAAKA,EAAY,QAAQ,aAAa,EAAI,EAAE,IAAI,CAAC,KAAKA,EAAY,KAAK,aAAa,KAAK,QAAQ,CAAC,KAAK,KAAK,KAAK,KAAK,KAAK,KAAK,IAAI,MAAM,EAAE,YAAY,oEAAoE,CAAC,CAAC,EAAE,SAASF,EAAY,CAAC,SAAAI,EAAS,MAAAC,EAAM,SAAS,IAAAC,EAAI,CAAC,EAAE,CAAC,OAAoBP,EAAK,OAAO,CAAC,MAAM,CAAC,QAAQ,eAAe,cAAcM,EAAM,WAAWC,EAAI,YAAYA,CAAG,EAAE,SAASF,CAAQ,CAAC,CAAE",
  "names": ["TextWrap", "layers", "text", "slot", "font", "color", "layerGap", "transform", "layerAlign", "decoration", "balance", "userSelect", "tag", "style", "Tag", "parts", "content", "i", "p", "InlineLayer", "addPropertyControls", "ControlType", "props", "children", "align", "gap"]
}
