{"version":3,"file":"LSMATitle.Do4UtQZ2.mjs","names":["__esmMin","init_jsx_runtime","c","p","init_framer_Bf4_tcb2","addPropertyControls","LSMATitle","props","Tag","tag","has2","line2","inline","flow","size","align","color1","line1","color2","init_LSMATitle","ControlType"],"sources":["https:/framerusercontent.com/modules/SsaRCRyxYx154hIb3AS9/TR0LaZAQaHh6hbXdJ9IN/LSMATitle.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";/**\n * @framerIntrinsicWidth 600\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight auto\n */export default function LSMATitle(props){const{tag=\"h1\",line1=\"\",line2=\"\",size=64,lineHeight=.95,color1=\"#0F1B33\",color2=\"#D9481F\",align=\"left\",flow=\"lines\"}=props;const Tag=tag;const has2=line2.trim().length>0;// \"lines\": plain part and italic part on their own lines (display titles).\n// \"inline\": one sentence that wraps naturally, italic part continuing on the same line (lesson titles).\nconst inline=flow===\"inline\";return /*#__PURE__*/_jsxs(Tag,{style:{...props.style,position:\"relative\",margin:0,fontFamily:'\"Instrument Serif\", Georgia, serif',fontWeight:400,fontSize:size,lineHeight,letterSpacing:\"-0.015em\",textAlign:align,color:color1,...{textWrap:\"balance\"}},children:[/*#__PURE__*/_jsx(\"span\",{style:{display:inline?\"inline\":\"block\"},children:line1}),has2&&inline&&\" \",has2&&/*#__PURE__*/_jsx(\"span\",{style:{display:inline?\"inline\":\"block\",fontStyle:\"italic\"},children:/*#__PURE__*/_jsx(\"span\",{style:/(D9481F|F06A42|F2A08A|B83A16)/i.test(String(color2))?{backgroundImage:\"linear-gradient(90deg,#F2A08A 0%,#F06A42 60%,#D9481F 100%)\",WebkitBackgroundClip:\"text\",backgroundClip:\"text\",color:\"transparent\",WebkitTextFillColor:\"transparent\",paddingRight:\"0.08em\"}:{color:color2},children:line2})})]});}addPropertyControls(LSMATitle,{tag:{type:ControlType.Enum,title:\"Tag\",options:[\"h1\",\"h2\",\"h3\"],defaultValue:\"h1\",displaySegmentedControl:true},line1:{type:ControlType.String,title:\"Line 1\",defaultValue:\"The Omics\"},line2:{type:ControlType.String,title:\"Line 2 (italic)\",defaultValue:\"Primer\"},size:{type:ControlType.Number,title:\"Size\",defaultValue:64,min:20,max:140,unit:\"px\"},lineHeight:{type:ControlType.Number,title:\"Line height\",defaultValue:.95,min:.8,max:1.6,step:.01},color1:{type:ControlType.Color,title:\"Colour\",defaultValue:\"#0F1B33\"},color2:{type:ControlType.Color,title:\"Italic colour\",defaultValue:\"#D9481F\"},flow:{type:ControlType.Enum,title:\"Layout\",options:[\"lines\",\"inline\"],optionTitles:[\"Two lines\",\"One line\"],defaultValue:\"lines\",displaySegmentedControl:true},align:{type:ControlType.Enum,title:\"Align\",options:[\"left\",\"center\"],defaultValue:\"left\",displaySegmentedControl:true}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"LSMATitle\",\"slots\":[],\"annotations\":{\"framerIntrinsicWidth\":\"600\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerSupportedLayoutHeight\":\"auto\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./LSMATitle.map"],"mappings":"A,8JAIG,SAAwBM,EAAU,EAAM,CAAC,GAAK,CAAC,MAAI,KAAK,QAAM,GAAG,QAAM,GAAG,OAAK,GAAG,aAAW,IAAI,SAAO,UAAU,SAAO,UAAU,QAAM,OAAO,OAAK,SAASC,EAAYC,EAAIC,EAAUC,EAAKC,EAAM,KAAK,CAAC,CAAC,OAAO,EAE9MC,EAAOC,IAAO,SAAS,MAAoB,gBAAML,EAAI,CAAC,MAAM,CAAC,GAAGD,EAAM,MAAM,SAAS,WAAW,OAAO,EAAE,WAAW,qCAAqC,WAAW,IAAI,SAASO,EAAK,aAAW,cAAc,WAAW,UAAUC,EAAM,MAAMC,EAAW,SAAS,SAAU,EAA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