{"version":3,"file":"BlogArticleReadability.DBpdh6gg.mjs","names":["useRef","useState","__esmMin","init_ssg_sandbox_shims","_e","p","c","J","init_jsx_runtime","ce","init_npm_react_18_3_1","de","window","addPropertyControls","init_framer_DDfsYcI0","ControlType","init_SharedArticleBody","init_ArticleVideo","ArticleVideo","mergeRefs","refs","ref","node","BlogHeroImage","props","heroVideo","heroImage","style","BlogAuthorIcon","withBlogArticleColumns","localRef","root","scopeId","Component","ArticleShare","page","setPage","title","u","t","links","l","SHARE_ICON","init_BlogArticleReadability"],"sources":["https:/framerusercontent.com/modules/m2PG1hDHdZHqsgcssKNg/daqKe26afWZccip8ZQTe/BlogArticleReadability.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{forwardRef,useEffect,useRef,useState}from\"react\";import ArticleVideo from\"https://framerusercontent.com/modules/QfSC1dwcHzKxNsXuqso7/j3YDFPxFYD0LChhRzqRo/ArticleVideo.js\";// @ts-ignore\nimport{addPropertyControls,ControlType}from\"framer\";// @ts-ignore\nimport{withSharedArticleBody}from\"https://framerusercontent.com/modules/zec3zgqgfTuivldhXKx9/99OLh5JZ5CAVhyRNU3sT/SharedArticleBody.js\";function mergeRefs(...refs){return node=>{refs.forEach(ref=>{if(!ref)return;if(typeof ref===\"function\")ref(node);else ref.current=node;});};}/**\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight auto\n */export function BlogHeroImage(props){const{heroImage,style,heroVideo}=props;// When a hero video URL is set (Vimeo, YouTube or a HubSpot .mp4), show the playable video instead of the image\nif(String(heroVideo||\"\").trim()){return /*#__PURE__*/_jsx(ArticleVideo,{url:String(heroVideo).trim(),title:heroImage?.alt||\"Video\",style:{margin:0,...style}});}if(!heroImage?.src)return null;return /*#__PURE__*/_jsx(\"div\",{style:{position:\"relative\",width:\"100%\",height:\"auto\",...style},children:/*#__PURE__*/_jsx(\"img\",{...heroImage,alt:heroImage.alt||\"\",style:{display:\"block\",width:\"100%\",height:\"auto\"}})});}addPropertyControls(BlogHeroImage,{heroImage:{type:ControlType.ResponsiveImage},heroVideo:{type:ControlType.String,title:\"Hero Video URL\",defaultValue:\"\"}});/**\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight fixed\n */export function BlogAuthorIcon(props){const{style}=props;return /*#__PURE__*/_jsx(\"div\",{style:{position:\"relative\",width:64,height:64,background:\"#0E172E\",display:\"flex\",alignItems:\"center\",justifyContent:\"center\",flexShrink:0,...style},children:/*#__PURE__*/_jsx(\"div\",{style:{width:32,height:37,overflow:\"hidden\",position:\"relative\"},children:/*#__PURE__*/_jsx(\"img\",{src:\"https://framerusercontent.com/images/EFCktCeWvs7gXUiHvtClm1nojJM.svg\",alt:\"\",style:{position:\"absolute\",left:0,top:0,width:178,height:37,maxWidth:\"none\",objectFit:\"contain\",filter:\"brightness(0) invert(1)\",display:\"block\"}})})});}addPropertyControls(BlogAuthorIcon,{});export function withBlogArticleReadability(Component){return withSharedArticleBody(Component);}export function withBlogArticleColumns(Component){return /*#__PURE__*/forwardRef(function WithBlogArticleColumns(props,ref){const localRef=useRef(null);useEffect(()=>{if(typeof window===\"undefined\"||typeof document===\"undefined\")return;const root=localRef.current;if(!root)return;const scopeId=`blog-article-columns-${Math.random().toString(36).slice(2,10)}`;root.setAttribute(\"data-blog-article-columns\",scopeId);const style=document.createElement(\"style\");style.setAttribute(\"data-blog-article-columns-style\",scopeId);style.textContent=`\n[data-blog-article-columns=\"${scopeId}\"] {\n    display: grid !important;\n    grid-template-columns: minmax(0, 800fr) minmax(0, 340fr) !important;\n    gap: 40px !important;\n    align-items: start !important;\n}\n[data-blog-article-columns=\"${scopeId}\"] [data-framer-name=\"Blog main column\"] {\n    width: 100% !important;\n    min-width: 0 !important;\n}\n[data-blog-article-columns=\"${scopeId}\"] [data-framer-name=\"Blog subscribe sidebar\"] {\n    width: 100% !important;\n    min-width: 0 !important;\n    position: sticky !important;\n    top: 100px !important;\n    align-self: start !important;\n}\n@media (max-width: 1024px) {\n    [data-blog-article-columns=\"${scopeId}\"] {\n        grid-template-columns: 1fr !important;\n    }\n    [data-blog-article-columns=\"${scopeId}\"] [data-framer-name=\"Blog subscribe sidebar\"] {\n        position: relative !important;\n        top: auto !important;\n    }\n}\n`;document.head.appendChild(style);return()=>{root.removeAttribute(\"data-blog-article-columns\");style.remove();};},[]);return /*#__PURE__*/_jsx(Component,{ref:mergeRefs(ref,localRef),...props});});}const SHARE_ICON={width:20,height:20,fill:\"#958D92\"};/**\n * Share row for article sidebars (LinkedIn, X, Facebook), matching the old resources site.\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight auto\n */export function ArticleShare(props){const{style}=props;const[page,setPage]=useState({url:\"https://www.sentilink.com\",title:\"SentiLink\"});useEffect(()=>{if(typeof window===\"undefined\")return;const title=(document.title||\"SentiLink\").replace(/\\s*[|\\u2013-]\\s*SentiLink\\s*$/i,\"\");setPage({url:window.location.href.split(\"#\")[0],title});},[]);const u=encodeURIComponent(page.url);const t=encodeURIComponent(page.title);const links=[{label:\"Share on LinkedIn\",href:`https://www.linkedin.com/sharing/share-offsite/?url=${u}`,path:\"M4.98 3.5a2.5 2.5 0 1 1 0 5 2.5 2.5 0 0 1 0-5zM3 9.5h4V21H3zM9.5 9.5h3.8v1.6h.05c.53-1 1.83-2.05 3.77-2.05 4.03 0 4.78 2.65 4.78 6.1V21h-4v-5.1c0-1.22-.02-2.79-1.7-2.79-1.7 0-1.96 1.33-1.96 2.7V21h-4z\"},{label:\"Share on X\",href:`https://twitter.com/intent/tweet?text=${t}&url=${u}`,path:\"M17.75 3h3.07l-6.7 7.66L22 21h-6.17l-4.83-6.32L5.47 21H2.4l7.17-8.2L2 3h6.33l4.37 5.78zm-1.08 16.17h1.7L7.4 4.74H5.58z\"},{label:\"Share on Facebook\",href:`https://www.facebook.com/sharer/sharer.php?u=${u}`,path:\"M13.5 21v-7.5h2.5l.4-3h-2.9V8.6c0-.87.25-1.46 1.5-1.46h1.6V4.46A21 21 0 0 0 14.27 4.3c-2.3 0-3.87 1.4-3.87 3.97v2.23H7.9v3h2.5V21z\"}];return /*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",alignItems:\"center\",justifyContent:\"space-between\",width:\"100%\",padding:\"24px 32px\",boxSizing:\"border-box\",fontFamily:\"Inter, sans-serif\",fontSize:16,color:\"#222021\",...style},children:[/*#__PURE__*/_jsx(\"span\",{children:\"Share\"}),/*#__PURE__*/_jsx(\"span\",{style:{display:\"flex\",alignItems:\"center\",gap:16},children:links.map(l=>/*#__PURE__*/_jsx(\"a\",{href:l.href,target:\"_blank\",rel:\"noopener noreferrer\",\"aria-label\":l.label,style:{display:\"flex\",lineHeight:0},children:/*#__PURE__*/_jsx(\"svg\",{viewBox:\"0 0 24 24\",width:SHARE_ICON.width,height:SHARE_ICON.height,fill:SHARE_ICON.fill,\"aria-hidden\":\"true\",children:/*#__PURE__*/_jsx(\"path\",{d:l.path})})},l.label))})]});}addPropertyControls(ArticleShare,{});\nexport const __FramerMetadata__ = {\"exports\":{\"withBlogArticleReadability\":{\"type\":\"reactHoc\",\"name\":\"withBlogArticleReadability\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withBlogArticleColumns\":{\"type\":\"reactHoc\",\"name\":\"withBlogArticleColumns\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"BlogAuthorIcon\":{\"type\":\"reactComponent\",\"name\":\"BlogAuthorIcon\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\":\"fixed\",\"framerSupportedLayoutHeight\":\"fixed\",\"framerContractVersion\":\"1\"}},\"ArticleShare\":{\"type\":\"reactComponent\",\"name\":\"ArticleShare\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutHeight\":\"auto\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\"}},\"BlogHeroImage\":{\"type\":\"reactComponent\",\"name\":\"BlogHeroImage\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1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