{"version":3,"file":"CTA_ProTip_Example.DdgSETfj.mjs","names":["React.useState","a","__legacyOverrideHOC_DataObserverContext","_jsx"],"sources":["https:/framerusercontent.com/modules/UaAskQDXaIss82BPH3AY/fpri9LOvg6SJTbmc1iaw/CTA_ProTip_Example.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import*as React from\"react\";import ReactDOM from\"react-dom/client\";/*───────────────────────────────\n  1 — CTA banner\n───────────────────────────────*/function CTA({title=\"Join 5 000+ makers\",description=\"Get one practical tip every Friday.\",buttonLabel=\"Subscribe\",link=\"/signup\",align=\"center\",background=\"linear-gradient(241deg, #323dd6 0%, #2832c8 100%)\",textColor=\"#ffffff\"}){const[isHovered,setIsHovered]=React.useState(false);const alignmentMap={\"flex-start\":\"left\",\"flex-end\":\"right\",center:\"center\"};const textAlign=alignmentMap[align]||\"center\";return /*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",flexDirection:\"column\",gap:20,padding:\"48px 40px\",borderRadius:16,textAlign:textAlign,alignItems:align,background,color:textColor,boxShadow:\"0 24px 40px rgba(0,0,0,0.06)\",margin:\"20px 0\",position:\"relative\"},children:[/*#__PURE__*/_jsx(\"h4\",{style:{margin:0,fontSize:\"2rem\",lineHeight:\"120%\",fontWeight:600},children:title}),/*#__PURE__*/_jsx(\"p\",{style:{margin:0,fontSize:\"1.25rem\",opacity:.9},children:description}),/*#__PURE__*/_jsx(\"a\",{href:link,onMouseEnter:()=>setIsHovered(true),onMouseLeave:()=>setIsHovered(false),style:{marginTop:20,padding:\"18px 44px\",borderRadius:14,background:isHovered?\"#ffffff\":\"rgba(255,255,255,0.95)\",color:isHovered?\"#1f2937\":\"#374151\",fontWeight:500,textDecoration:\"none\",transition:\"all .2s\",boxShadow:isHovered?\"0 14px 28px rgba(0,0,0,0.15)\":\"0 8px 20px rgba(0,0,0,0.08)\",display:\"inline-flex\",alignItems:\"center\",gap:8},children:buttonLabel})]});}/*───────────────────────────────\n  2 — Pro Tip pill\n───────────────────────────────*/function ProTip({title=\"💡 Pro Tip:\",description=\"Use Jenni AI to Create Your Thesis Introduction with Ease!\",background=\"#F1F5F9\",textColor=\"#323DD6\"}){return /*#__PURE__*/_jsxs(\"div\",{style:{background,color:textColor,padding:\"18px 32px\",borderRadius:\"8px\",border:\"1px solid #E2E8F1\",fontSize:\"1.125rem\",fontWeight:500,textAlign:\"center\",margin:\"20px 0\",boxShadow:\"0 12px 30px rgba(0,0,0,0.08)\"},children:[/*#__PURE__*/_jsx(\"strong\",{children:title}),\" \",description]});}/*───────────────────────────────\n  3 — Example box\n───────────────────────────────*/function Example({title=\"Example\",description1=\"Here’s how it works in practice.\",description2=\"\",description3=\"\",description4=\"\",description5=\"\",description6=\"\",description7=\"\",description8=\"\",description9=\"\",description10=\"\",background=\"#F8FAFC\",accent=\"#5551F4\",textColor=\"#1e293b\"}){// Collect every non-empty description prop\nconst lines=[description1,description2,description3,description4,description5,description6,description7,description8,description9,description10].filter(Boolean);return /*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",gap:16,padding:\"20px 28px\",borderRadius:8,background,color:textColor,borderLeft:`6px solid ${accent}`,fontSize:\"1rem\",lineHeight:1.6,margin:\"20px 0\"},children:[/*#__PURE__*/_jsxs(\"div\",{style:{fontWeight:600,whiteSpace:\"nowrap\"},children:[title,\":\"]}),/*#__PURE__*/_jsx(\"div\",{children:lines.map((line,idx)=>/*#__PURE__*/_jsx(\"div\",{children:line},idx))})]});}/*───────────────────────────────\n  BulletList (indented, padded)\n───────────────────────────────*/function BulletList({items=[],indent=20,gap=10,linePadding=5,bulletColor=\"#323dd6\"}){// allow pipe-separated string e.g.  \"First|Second|Third\"\nif(typeof items===\"string\")items=items.split(\"|\").map(s=>s.trim());return /*#__PURE__*/_jsx(\"ul\",{style:{paddingLeft:indent,margin:\"12px 0\",listStyle:\"none\"},children:items.map((txt,i)=>/*#__PURE__*/_jsxs(\"li\",{style:{display:\"flex\",alignItems:\"flex-start\",gap,paddingBottom:linePadding},children:[/*#__PURE__*/_jsx(\"span\",{style:{flexShrink:0,color:bulletColor,marginTop:2,fontWeight:600},children:\"•\"}),/*#__PURE__*/_jsx(\"span\",{children:txt})]},i))});}/*───────────────────────────────\n  4 — Universal shortcode override\n───────────────────────────────*/export function Shortcodes(){React.useEffect(()=>{const root=document.querySelector('[data-framer-name=\"Post Content\"]')||document.body;if(!root)return;/*───────────────────────────────\n          A — Render CTA / ProTip / Example\n        ───────────────────────────────*/const shortcodeRE=/<(CTA|ProTip|Example|BulletList)\\b([^>]*?)\\/>/gi;const attrRE=/(\\w+)=[\"']([^\"']+)[\"']/g;const components={CTA,ProTip,Example,BulletList};const walker=document.createTreeWalker(root,NodeFilter.SHOW_TEXT);const nodes=[];while(walker.nextNode())nodes.push(walker.currentNode);nodes.forEach(node=>{const src=node.data;if(!shortcodeRE.test(src))return;shortcodeRE.lastIndex=0;let last=0;const frags=[];let m;while(m=shortcodeRE.exec(src)){if(m.index>last)frags.push(src.slice(last,m.index));const tag=m[1];const props={};attrRE.lastIndex=0;let a;while(a=attrRE.exec(m[2]))props[a[1]]=a[2];const mount=document.createElement(\"span\");ReactDOM.createRoot(mount).render(/*#__PURE__*/React.createElement(components[tag],props));frags.push(mount);last=m.index+m[0].length;}if(last<src.length)frags.push(src.slice(last));const parent=node.parentNode;frags.forEach(f=>typeof f===\"string\"?parent.insertBefore(document.createTextNode(f),node):parent.insertBefore(f,node));parent.removeChild(node);});/*───────────────────────────────\n          B — Style IMAGES\n        ───────────────────────────────*/const images=root.querySelectorAll(\"img\");images.forEach(img=>{const wrapper=document.createElement(\"div\");wrapper.style.display=\"flex\";wrapper.style.justifyContent=\"center\";wrapper.style.margin=\"40px 0\";img.style.boxShadow=\"0 4px 16px rgba(0, 0, 0, 0.1)\";img.style.borderRadius=\"8px\";img.style.maxWidth=\"100%\";img.style.height=\"auto\";const parent=img.parentElement;if(parent){parent.replaceChild(wrapper,img);wrapper.appendChild(img);}});},[]);return{};}import{useContext as __legacyOverrideHOC_useContext}from\"react\";import{DataObserverContext as __legacyOverrideHOC_DataObserverContext}from\"framer\";export function withShortcodes(C){return props=>{__legacyOverrideHOC_useContext(__legacyOverrideHOC_DataObserverContext);return _jsx(C,{...props,...Shortcodes(props)});};}withShortcodes.displayName=\"Shortcodes\";\nexport const __FramerMetadata__ = {\"exports\":{\"Shortcodes\":{\"type\":\"override\",\"name\":\"Shortcodes\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withShortcodes\":{\"type\":\"reactHoc\",\"name\":\"withShortcodes\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./CTA_ProTip_Example.map"],"mappings":"uSAEiC,SAAS,EAAI,CAAC,QAAM,qBAAqB,cAAY,sCAAsC,cAAY,YAAY,OAAK,UAAU,QAAM,SAAS,aAAW,oDAAoD,YAAU,WAAW,CAAC,GAAK,CAAC,EAAU,GAAcA,EAAe,GAAM,CAAmF,EAA/D,CAAC,aAAa,OAAO,WAAW,QAAQ,OAAO,SAAS,CAA8B,IAAQ,SAAS,OAAoB,EAAM,MAAM,CAAC,MAAM,CAAC,QAAQ,OAAO,cAAc,SAAS,IAAI,GAAG,QAAQ,YAAY,aAAa,GAAa,YAAU,WAAW,EAAM,aAAW,MAAM,EAAU,UAAU,+BAA+B,OAAO,SAAS,SAAS,WAAW,CAAC,SAAS,CAAc,EAAK,KAAK,CAAC,MAAM,CAAC,OAAO,EAAE,SAAS,OAAO,WAAW,OAAO,WAAW,IAAI,CAAC,SAAS,EAAM,CAAC,CAAc,EAAK,IAAI,CAAC,MAAM,CAAC,OAAO,EAAE,SAAS,UAAU,QAAQ,GAAG,CAAC,SAAS,EAAY,CAAC,CAAc,EAAK,IAAI,CAAC,KAAK,EAAK,iBAAiB,EAAa,GAAK,CAAC,iBAAiB,EAAa,GAAM,CAAC,MAAM,CAAC,UAAU,GAAG,QAAQ,YAAY,aAAa,GAAG,WAAW,EAAU,UAA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