{"version":3,"file":"CardPressRelease.CFbKdTSc.mjs","names":["useRef","useMemo","useId","_Fragment","__esmMin","fe","init_npm_react_18_3_1","pe","ie","de","l","p","c","J","init_framer_CKT6jEEQ","addPropertyControls","RenderTarget","ControlType","useLocaleInfo","themePropertyControls","getFixedImageSizes","VISUALLY_HIDDEN_STYLE","getWidth","init_useAccessibilityStrings","init_colors","init_linkHelpers","getLinkUrl","init_themeControl","useAccessibilityStrings","useReducedMotion","useSmartLinkProps","getTransition","init_useInteractiveStates","resolveCollectionElementId","init_layoutStyles","useInteractiveStates","brandPropertyControl","resolveThemeProp","init_brandControl","HINT_CATEGORY","breakpointPropertyControl","PLACEHOLDER","pickSafeDivProps","init_themeHelpers","HINT_ELEMENT_ID","kernHeadingPlainText","getCardThemeColors","resolveBrand","HINT_IMAGE_ALT","init_placeholders","init_breakpointControl","init_domProps","init_resolveElementId","init_useInheritedSectionBreakpoint","init_collectionItemContext","init_pressCardStyles","useCollectionImagePriority","useInheritedSectionBreakpoint","getPressCardStyles","init_framerCmsString","sanitizeFramerDisplayString","getPressFilterLayers","formatPressDate","init_pressCardMeta","formatPressDateTimeAttribute","PRESS_FILTER_LAYER_STYLE","init_resolveImageAlt","getImageOwnAlt","resolveImageAlt","init_Image","Image","CardPressRelease","ref","CardPressReleaseInternal","props","init_CardPressRelease","init_jsx_runtime","theme","idProp","breakpointProp","rest","cardRef","breakpoint","canvasBreakpoint","safeDomProps","resolvedBrand","brand","colors","prefersReducedMotion","isCanvas","locale","activeLocale","titleText","title","topicText","topic","summaryText","summary","displayDate","date","dateTime","filterLayers","linkUrl","link","smartLink","strings","releaseIdSuffix","titleId","summaryId","newTabId","opensInNewTab","states","rootId","transition","styles","summaryLines","imageSource","image","altText","imageAlt","linkLabelledBy","imagePriority","content","layer","style"],"sources":["https:/framerusercontent.com/modules/Jk5dvHI0tWIw4DKNsmuE/GYKp3jSVGLOyog7ttLHR/CardPressRelease.js"],"sourcesContent":["/**\n * @framerIntrinsicWidth 384\n * @framerIntrinsicHeight 420\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight auto\n */import{jsx as _jsx,jsxs as _jsxs,Fragment as _Fragment}from\"react/jsx-runtime\";import{forwardRef,useId,useImperativeHandle,useMemo,useRef}from\"react\";import{addPropertyControls,ControlType,RenderTarget,useLocaleInfo}from\"framer\";import{kernHeadingPlainText,useReducedMotion,getFixedImageSizes,getTransition,getWidth}from\"https://framerusercontent.com/modules/8Zji6gUHadeLlN0mKx3f/JBNlOEOGCerb8iTZamM8/colors.js\";import{getPressCardStyles}from\"https://framerusercontent.com/modules/AEgdmzd03Cdoeb8szkOO/Gpn3tOlUI2cBUW0S8jh1/pressCardStyles.js\";import{PRESS_FILTER_LAYER_STYLE,formatPressDate,formatPressDateTimeAttribute,getPressFilterLayers}from\"https://framerusercontent.com/modules/knVXadcoWNRUIeQ0VGee/lo3tzCmwViIclnuaGAhp/pressCardMeta.js\";import{sanitizeFramerDisplayString}from\"https://framerusercontent.com/modules/esfz6pYhRjBfdgkC5KuZ/kdrHyKGLFuMnqxu38uod/framerCmsString.js\";import{useInteractiveStates}from\"https://framerusercontent.com/modules/h3NOSmne29xK0GpczE2C/n6JSqf2WiiNOvBO2KOgt/useInteractiveStates.js\";import{getLinkUrl,useSmartLinkProps}from\"https://framerusercontent.com/modules/soucxBxlV4O1XNiKOKhD/ieR0TBjNOyYHwXVpfScg/linkHelpers.js\";import{PLACEHOLDER,HINT_IMAGE_ALT,HINT_ELEMENT_ID,HINT_CATEGORY}from\"https://framerusercontent.com/modules/kL913CZt0nijVS0GJxsM/tN2SsuwRZqXdBebc0lHK/placeholders.js\";import{pickSafeDivProps}from\"https://framerusercontent.com/modules/v2IXjLPCwZkunDzFN7z6/zDFybEDvhQ6usjdWiJLD/domProps.js\";import{resolveCollectionElementId}from\"https://framerusercontent.com/modules/HVguzVv3qXZI4DtIaaGs/ny7QZsQWfr38MczdZHva/resolveElementId.js\";import{useInheritedSectionBreakpoint}from\"https://framerusercontent.com/modules/voLi7jtr04141jZLuZT9/0HOURAJmJHF0hXGmknbP/useInheritedSectionBreakpoint.js\";import{getImageOwnAlt,resolveImageAlt}from\"https://framerusercontent.com/modules/j9mzUvQHPh9aBToiOvbj/YMoyT09aV7XbyPlIVpjF/resolveImageAlt.js\";import{VISUALLY_HIDDEN_STYLE}from\"https://framerusercontent.com/modules/kJrHete7MvqpOocTF7jJ/nOeoKUfRasBsOlKlXZ2e/layoutStyles.js\";import{useAccessibilityStrings}from\"https://framerusercontent.com/modules/f8mrLCEGT00dmU5pCe8N/h4i9pdhOKUjXxKYe7Ocu/useAccessibilityStrings.js\";import{useCollectionImagePriority}from\"https://framerusercontent.com/modules/DOBWtVZwIfpCVCrYchmQ/k2mPBvSlx1NxUZe0DB2Z/collectionItemContext.js\";import Image from\"https://framerusercontent.com/modules/nwDUluxdk44grPOpeGsL/fNuva37K1bnpfjr0cfNV/Image.js\";import{getCardThemeColors,resolveBrand}from\"https://framerusercontent.com/modules/fF40Dj0DuNtMWi6XblPF/LDYkFr9VnQc2mBiF0NXr/themeHelpers.js\";import{brandPropertyControl}from\"https://framerusercontent.com/modules/6fLGaxLId8P57R07yoYq/waIti9IXeYFfgpWUhFii/brandControl.js\";import{breakpointPropertyControl}from\"https://framerusercontent.com/modules/Fk2t5Uqez4vSxN8Kkr0t/nasmiyctu3CbQHP3ExTi/breakpointControl.js\";import{themePropertyControls,resolveThemeProp}from\"https://framerusercontent.com/modules/39r6SIsK3yJ8CSFGq0EK/zR22x9ogKOjMDxHO8KZe/themeControl.js\";const CardPressReleaseInternal=/*#__PURE__*/forwardRef(function CardPressReleaseInternal(props,ref){const theme=resolveThemeProp(props);const{image,imageAlt,date=\"\",topic=\"\",title=PLACEHOLDER.ITEM_HEADING,summary=\"\",summaryLines=3,link,id:idProp,breakpoint:breakpointProp=\"desktop\",canvasBreakpoint,brand,style,...rest}=props;const cardRef=useRef(null);useImperativeHandle(ref,()=>cardRef.current);const inheritedBreakpoint=useInheritedSectionBreakpoint(cardRef);const breakpoint=inheritedBreakpoint??canvasBreakpoint??breakpointProp;const safeDomProps=useMemo(()=>pickSafeDivProps(rest),[rest]);const resolvedBrand=resolveBrand(brand);const colors=getCardThemeColors(theme,resolvedBrand);const prefersReducedMotion=useReducedMotion();const isCanvas=RenderTarget.current()===RenderTarget.canvas;const{activeLocale}=useLocaleInfo();const locale=activeLocale?.code;const titleText=sanitizeFramerDisplayString(title);const topicText=sanitizeFramerDisplayString(topic);const summaryText=sanitizeFramerDisplayString(summary);const displayDate=formatPressDate(date,locale);const dateTime=formatPressDateTimeAttribute(date);const filterLayers=getPressFilterLayers(date,locale,topicText);const linkUrl=getLinkUrl(link);const smartLink=useSmartLinkProps(link,false,{brand:resolvedBrand});const strings=useAccessibilityStrings();const releaseIdSuffix=useId().replace(/:/g,\"\");const titleId=`card-press-release-${releaseIdSuffix}-title`;const summaryId=`card-press-release-${releaseIdSuffix}-summary`;const newTabId=`card-press-release-${releaseIdSuffix}-new-tab`;const opensInNewTab=smartLink.target===\"_blank\";const states=useInteractiveStates(!linkUrl,{brand:resolvedBrand,theme});const rootId=resolveCollectionElementId(idProp,\"card-press-release\",linkUrl||titleText);const transition=prefersReducedMotion?\"none\":getTransition(\"filter\",\"quick\");const styles=getPressCardStyles(breakpoint,colors,transition,summaryLines);const imageSource=image?.src?image:isCanvas?PLACEHOLDER.IMAGE:undefined;const altText=resolveImageAlt(imageAlt,getImageOwnAlt(image));const linkLabelledBy=titleText?[titleId,opensInNewTab?newTabId:\"\"].filter(Boolean).join(\" \"):undefined;const imagePriority=useCollectionImagePriority(imageSource?rootId:\"\");const content=/*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(\"div\",{style:styles.imageArea,\"aria-hidden\":altText===\"\"?true:undefined,children:imageSource?/*#__PURE__*/_jsx(Image,{id:`${rootId}-image`,imageUrl:imageSource,alt:altText,aspectRatio:\"16:9\",objectFit:\"cover\",objectPosition:\"center\",borderRadius:\"radius-none\",overflow:\"hidden\",fill:true,breakpoint:breakpoint,sizes:getFixedImageSizes(getWidth(\"width-xs\")),loading:imagePriority?\"eager\":\"lazy\",priority:imagePriority,style:{position:\"absolute\",inset:0}}):null}),/*#__PURE__*/_jsxs(\"div\",{style:styles.body,children:[topicText||displayDate?/*#__PURE__*/_jsxs(\"p\",{style:styles.metaRow,children:[topicText?/*#__PURE__*/_jsx(\"span\",{style:styles.topic,children:topicText}):null,displayDate?/*#__PURE__*/_jsx(\"time\",{style:styles.metaText,dateTime:dateTime,children:displayDate}):null]}):null,titleText?/*#__PURE__*/_jsx(\"h3\",{id:titleId,style:styles.title,children:kernHeadingPlainText(titleText)}):null,summaryText?/*#__PURE__*/_jsx(\"p\",{id:summaryId,style:styles.summary,children:summaryText}):null,titleText&&opensInNewTab?/*#__PURE__*/_jsx(\"span\",{id:newTabId,style:VISUALLY_HIDDEN_STYLE,children:strings.newTabSuffix.trim()}):null]}),filterLayers.map(layer=>/*#__PURE__*/_jsx(\"span\",{\"data-framer-name\":layer.name,\"aria-hidden\":\"true\",style:PRESS_FILTER_LAYER_STYLE,children:layer.value},layer.name))]});return /*#__PURE__*/_jsx(\"article\",{ref:cardRef,id:rootId,style:{...styles.root,...style},...safeDomProps,children:linkUrl?/*#__PURE__*/_jsx(\"a\",{href:smartLink.href,target:smartLink.target,rel:smartLink.rel,\"aria-labelledby\":linkUrl?linkLabelledBy:undefined,\"aria-describedby\":linkUrl&&titleText&&summaryText?summaryId:undefined,style:{...smartLink.style,...styles.link,filter:states.brightnessFilter,outline:states.focusOutline,outlineOffset:states.focusOutlineOffset},onClick:smartLink.onClick,...states.handlers,children:content}):/*#__PURE__*/_jsx(\"div\",{style:styles.stack,children:content})});});export default function CardPressRelease(props){const ref=useRef(null);return /*#__PURE__*/_jsx(CardPressReleaseInternal,{...props,ref:ref});}CardPressRelease.displayName=\"Card Press Release - Molecule\";addPropertyControls(CardPressRelease,{image:{type:ControlType.ResponsiveImage,title:\"Image\",description:\"Cover image for the press release. Fills the 16:9 tile and crops.\"},imageAlt:{type:ControlType.String,title:\"Image Alt\",defaultValue:\"\",placeholder:HINT_IMAGE_ALT,description:\"Alt text for the image. Leave empty to use the image's own alt text. Empty marks it decorative.\"},date:{type:ControlType.Date,title:\"Date\",description:\"Release date. Bind the CMS date field. Shown in the page language, for example October 1, 2026, and used by the Year and Month filters.\"},topic:{type:ControlType.String,title:\"Topic\",defaultValue:\"\",placeholder:HINT_CATEGORY,description:\"Topic shown above the title and used by the Topic filter. Separate several with commas.\"},title:{type:ControlType.String,title:\"Title\",defaultValue:PLACEHOLDER.ITEM_HEADING,placeholder:PLACEHOLDER.ITEM_HEADING,description:\"Press release title (h3). Also the name of the card link.\",displayTextArea:true},summary:{type:ControlType.String,title:\"Summary\",defaultValue:\"\",placeholder:PLACEHOLDER.DESCRIPTION_SHORT,description:\"Optional short summary under the title. Leave empty to hide.\",displayTextArea:true},summaryLines:{type:ControlType.Enum,title:\"Summary Lines\",options:[3,2,1],optionTitles:[\"3\",\"2\",\"1\"],displaySegmentedControl:true,defaultValue:3,description:\"Maximum number of summary lines before the text is cut off.\",hidden:({summary})=>!summary},link:{type:ControlType.Link,title:\"Link\",defaultValue:\"\",description:\"Press release page. The whole card links to it.\"},id:{type:ControlType.String,title:\"ID\",defaultValue:\"card-press-release\",placeholder:HINT_ELEMENT_ID,description:\"HTML id for the root element (e.g. for analytics or anchor links).\",preventLocalization:true},...breakpointPropertyControl(),...themePropertyControls(\"Default is dark mode, inverted is light mode.\"),...brandPropertyControl()});\nexport const __FramerMetadata__ = {\"exports\":{\"CardPressReleaseProps\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"default\":{\"type\":\"reactComponent\",\"name\":\"CardPressRelease\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}"],"mappings":"A,u4BAKygO,SAAwBuE,EAAiB,EAAM,CAAC,IAAMC,EAAIxE,EAAO,IAAI,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