{"version":3,"file":"TextWrap_Prod.vyL3OYLC.mjs","names":[],"sources":["https:/framerusercontent.com/modules/oQk14E8Ar7JXjnVOhZW2/LpHCv0t6vmmcb3NuXlid/TextWrap_Prod.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}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(props){const{layers=[],text=\"\",slot=\"[]\",font,color,layerGap,transform,layerAlign,decoration,balance,userSelect,tag=\"h1\",style}=props;const Tag=tag;const parts=text.split(slot);const content=[];// CSS to force any nested Framer divs to stay inline and not break the <p>/<h> tags\nconst styleTag=/*#__PURE__*/_jsx(\"style\",{children:`\n            .framer-text-wrap-container div {\n                display: inline-block !important;\n                vertical-align: inherit;\n            }\n        `});// Insert layers at slot positions\nfor(let i=0;i<parts.length;i++){content.push(parts[i]);if(i<parts.length-1){if(i<layers.length){content.push(/*#__PURE__*/_jsx(InlineLayer,{align:layerAlign,gap:layerGap,children:layers[i]},`layer-${i}`));}else{content.push(slot);}}}// Append remaining layers\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}`));}}const colorStyle=color?.mode===\"gradient\"?{WebkitBackgroundClip:\"text\",WebkitTextFillColor:\"transparent\",backgroundImage:`linear-gradient(${color.angle}deg, ${color.endColor}, ${color.startColor})`}:{color:color?.color||\"inherit\"};return /*#__PURE__*/_jsxs(Tag,{className:\"framer-text-wrap-container\",style:{...font,...colorStyle,margin:0,display:\"block\",whiteSpace:\"pre-wrap\",fontWeight:font?.fontWeight||400,textAlign:style?.textAlign||\"center\",userSelect:userSelect?\"auto\":\"none\",textDecoration:decoration,textWrap:balance?\"balance\":\"wrap\",textTransform:transform,...style},children:[styleTag,content]});}// This wrapper uses SPAN and INLINE-FLEX to prevent the <div> nesting error\nfunction InlineLayer({children,align=\"middle\",gap=0}){return /*#__PURE__*/_jsx(\"span\",{style:{display:\"inline-flex\",verticalAlign:align===\"baseline\"?\"baseline\":\"middle\",marginLeft:gap,marginRight:gap,lineHeight:0},children:children});}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\"]}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"TextWrap\",\"slots\":[],\"annotations\":{\"framerIntrinsicHeight\":\"auto\",\"framerContractVersion\":\"1\",\"framerIntrinsicWidth\":\"400\",\"framerSupportedLayoutHeight\":\"auto\",\"framerSupportedLayoutWidth\":\"any\",\"framerDisableUnlink\":\"*\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./TextWrap_Prod.map"],"mappings":"mKAQG,SAAwB,EAAS,EAAM,CAAC,GAAK,CAAC,SAAO,CAAC,EAAE,OAAK,GAAG,OAAK,KAAK,OAAK,QAAM,WAAS,YAAU,aAAW,aAAW,UAAQ,aAAW,MAAI,KAAK,SAAO,EAAY,EAAI,EAAU,EAAM,EAAK,MAAM,CAAI,EAAQ,EAAQ,CAAC,EAC9N,EAAsB,EAAK,QAAQ,CAAC,SAAS;;;;;SAK1C,CAAC,EACV,IAAI,IAAI,EAAE,EAAE,EAAE,EAAM,OAAO,IAAK,EAAQ,KAAK,EAAM,EAAE,EAAK,EAAE,EAAM,OAAO,IAAM,EAAE,EAAO,OAAQ,EAAQ,KAAkB,EAAK,EAAY,CAAC,MAAM,EAAW,IAAI,EAAS,SAAS,EAAO,EAAE,EAAE,SAAS,GAAG,CAAC,EAAQ,EAAQ,KAAK,CAAI,GACpO,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,IAAM,EAAW,GAAO,OAAO,WAAW,CAAC,qBAAqB,OAAO,oBAAo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