{"version":3,"file":"PressReleaseExample.BUCSo2tN.mjs","names":["React.useMemo","React.useState","__esmMin","pe","init_npm_react_18_3_1","_e","p","c","init_jsx_runtime","addPropertyControls","ControlType","init_framer_BkYB2Gqq","PressReleaseExample","data","parsed","release","fallback","ReleaseCard","imageActivated","setImageActivated","style","css","event","paragraph","index","__FramerMetadata__","init_PressReleaseExample","\"exports\"","\"default\"","\"type\"","\"name\"","\"slots\"","\"annotations\"","\"framerContractVersion\"","\"framerSupportedLayoutHeight\"","\"framerIntrinsicHeight\"","\"framerSupportedLayoutWidth\"","\"framerIntrinsicWidth\"","\"__FramerMetadata__\""],"sources":["https:/framerusercontent.com/modules/qtMXmXENofnMVlSFQBnm/glKqYOPHUctzp3IEv51F/PressReleaseExample.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import*as React from\"react\";import{addPropertyControls,ControlType}from\"framer\";const fallback={company:\"Example company\",headline:\"A complete press release example\",subheadline:\"Add the worked announcement through the Release content control.\",dateline:\"\",lead:\"\",details:[],quote:\"\",speaker:\"\",after:[],about:\"\",contact:{name:\"\",role:\"\",email:\"\",website:\"\",country:\"\"},image:\"\",imageAlt:\"\",imageWidth:1200,imageHeight:675,caption:\"\"};const css=`\n.ts-release-example{container-type:inline-size;color:#f6f6f6;font-family:Inter,Arial,sans-serif;text-align:left;overflow-wrap:anywhere;user-select:text;box-sizing:border-box}\n.ts-release-example *{box-sizing:border-box}\n.ts-release-example details{width:100%;background:#141414;margin:0;padding:0}\n.ts-release-example summary{list-style:none;cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:20px;min-height:100px;padding:26px 30px;outline-offset:5px;transition:background-color .18s ease}\n.ts-release-example summary::-webkit-details-marker{display:none}\n.ts-release-example summary:hover{background:#191919}\n.ts-release-example summary:focus-visible{outline:2px solid #90b9ff}\n.ts-release-example .ts-example-label{display:block;color:#f6f6f6;font-family:Switzer,Inter,Arial,sans-serif;font-size:22px;font-weight:500;line-height:1.25;letter-spacing:-.4px}\n.ts-release-example .ts-example-hint{display:block;color:#b4b9c3;font-size:14px;line-height:1.5;margin-top:7px}\n.ts-release-example .ts-example-icon{display:block;position:relative;flex:0 0 32px;width:32px;height:32px;color:#dce9ff;background:#173a78;border-radius:50%}\n.ts-release-example .ts-example-icon::before,.ts-release-example .ts-example-icon::after{content:'';position:absolute;width:12px;height:1.5px;top:15px;left:10px;background:currentColor}\n.ts-release-example .ts-example-icon::after{transform:rotate(90deg);transition:transform .18s ease}\n.ts-release-example details[open] .ts-example-icon::after{transform:rotate(0deg)}\n.ts-release-example .ts-example-content{padding:4px 30px 32px;max-width:900px;margin:0 auto}\n.ts-release-example details[open] .ts-example-content{animation:ts-example-enter .24s ease-out both}\n.ts-release-example .ts-example-note{margin:0 0 26px!important;padding:14px 16px;background:#1b1f25;color:#bfc5cf;font-size:13px!important;line-height:1.6!important;font-weight:400}\n.ts-release-example .ts-example-kicker{font-size:11px;line-height:1.5;letter-spacing:1.4px;text-transform:uppercase;color:#9da8ba;font-weight:600;margin-bottom:13px}\n.ts-release-example .ts-example-headline{font-family:Switzer,Inter,Arial,sans-serif;font-weight:500;font-size:32px!important;line-height:1.2!important;letter-spacing:-.7px;color:#f6f6f6;margin:0 0 16px!important}\n.ts-release-example .ts-example-subheadline{font-size:18px!important;line-height:1.55!important;font-weight:400;color:#c7cbd3;margin:0 0 26px!important}\n.ts-release-example figure{margin:0 0 26px;padding:0}\n.ts-release-example .ts-example-image-frame{width:100%;aspect-ratio:1200/675;background:#1c222b;overflow:hidden}\n.ts-release-example .ts-example-image{display:block;width:100%;height:auto;aspect-ratio:1200/675;object-fit:cover}\n.ts-release-example figcaption{margin-top:9px;color:#969eaa;font-size:12px;line-height:1.5}\n.ts-release-example .ts-example-paragraph{font-size:17px!important;line-height:1.75!important;letter-spacing:0;font-weight:400;color:#d2d5dc;margin:0 0 20px!important}\n.ts-release-example strong{font-weight:600;color:#f0f1f4}\n.ts-release-example blockquote{margin:28px 0;padding:0 0 0 20px;border:0;border-left:2px solid #739ce0}\n.ts-release-example blockquote p{font-size:19px!important;line-height:1.65!important;font-weight:400;color:#eff2f8;margin:0 0 12px!important;letter-spacing:0}\n.ts-release-example blockquote cite{font-size:13px;line-height:1.6;font-style:normal;color:#aeb8c9;display:block}\n.ts-release-example .ts-example-section-title{font-size:18px!important;line-height:1.4!important;font-weight:600;color:#f6f6f6;margin:28px 0 12px!important;letter-spacing:0}\n.ts-release-example .ts-example-contact{padding-top:6px}\n.ts-release-example .ts-example-contact p{font-size:15px!important;line-height:1.75!important;margin:0!important;color:#b9c1ce;font-weight:400;letter-spacing:0}\n.ts-release-example .ts-example-end{font-size:14px;color:#788394;letter-spacing:3px;margin-top:24px}\n@keyframes ts-example-enter{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}\n@container(max-width:520px){.ts-release-example summary{padding:22px 18px;gap:14px;min-height:96px}.ts-release-example .ts-example-label{font-size:19px;letter-spacing:-.2px}.ts-release-example .ts-example-hint{font-size:13px}.ts-release-example .ts-example-content{padding:2px 18px 26px}.ts-release-example .ts-example-headline{font-size:25px!important;letter-spacing:-.4px}.ts-release-example .ts-example-subheadline{font-size:16px!important}.ts-release-example .ts-example-paragraph{font-size:16px!important;line-height:1.7!important}.ts-release-example blockquote{padding-left:15px}.ts-release-example blockquote p{font-size:17px!important}}\n@media(prefers-reduced-motion:reduce){.ts-release-example summary,.ts-release-example .ts-example-icon::after{transition:none}.ts-release-example details[open] .ts-example-content{animation:none}}\n`;/**\n * @framerIntrinsicWidth 720\n * @framerIntrinsicHeight 104\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight auto\n */export default function PressReleaseExample({release,style}){const data=React.useMemo(()=>{try{const parsed=JSON.parse(release);return parsed.headline&&Array.isArray(parsed.details)&&Array.isArray(parsed.after)&&parsed.contact?parsed:fallback;}catch{return fallback;}},[release]);return /*#__PURE__*/_jsx(ReleaseCard,{data:data,style:style},data.headline);}function ReleaseCard({data,style}){const[imageActivated,setImageActivated]=React.useState(false);return /*#__PURE__*/_jsxs(\"div\",{className:\"ts-release-example\",style:{...style,position:\"relative\",width:\"100%\",height:\"auto\"},children:[/*#__PURE__*/_jsx(\"style\",{children:css}),/*#__PURE__*/_jsxs(\"details\",{onToggle:event=>{if(event.currentTarget.open)setImageActivated(true);},children:[/*#__PURE__*/_jsxs(\"summary\",{children:[/*#__PURE__*/_jsxs(\"span\",{children:[/*#__PURE__*/_jsx(\"span\",{className:\"ts-example-label\",children:\"Read the complete example\"}),/*#__PURE__*/_jsx(\"span\",{className:\"ts-example-hint\",children:\"A finished release, from headline to media contact.\"})]}),/*#__PURE__*/_jsx(\"span\",{className:\"ts-example-icon\",\"aria-hidden\":\"true\"})]}),/*#__PURE__*/_jsxs(\"div\",{className:\"ts-example-content\",children:[/*#__PURE__*/_jsx(\"p\",{className:\"ts-example-note\",children:\"Fictional example for guidance. The organisations, people, dates and figures below are illustrative. Replace them with verified details for your own announcement.\"}),/*#__PURE__*/_jsxs(\"article\",{\"aria-label\":`Example press release: ${data.headline}`,children:[/*#__PURE__*/_jsx(\"div\",{className:\"ts-example-kicker\",children:\"For immediate release\"}),/*#__PURE__*/_jsx(\"h3\",{className:\"ts-example-headline\",children:data.headline}),/*#__PURE__*/_jsx(\"p\",{className:\"ts-example-subheadline\",children:data.subheadline}),data.image&&/*#__PURE__*/_jsxs(\"figure\",{children:[/*#__PURE__*/_jsx(\"div\",{className:\"ts-example-image-frame\",children:imageActivated&&/*#__PURE__*/_jsx(\"img\",{className:\"ts-example-image\",src:data.image,alt:data.imageAlt,width:data.imageWidth,height:data.imageHeight,loading:\"lazy\",decoding:\"async\"})}),/*#__PURE__*/_jsx(\"figcaption\",{children:data.caption})]}),/*#__PURE__*/_jsxs(\"p\",{className:\"ts-example-paragraph\",children:[/*#__PURE__*/_jsx(\"strong\",{children:data.dateline}),\" — \",data.lead]}),data.details.map((paragraph,index)=>/*#__PURE__*/_jsx(\"p\",{className:\"ts-example-paragraph\",children:paragraph},`detail-${index}`)),data.quote&&/*#__PURE__*/_jsxs(\"blockquote\",{children:[/*#__PURE__*/_jsxs(\"p\",{children:[\"“\",data.quote,\"”\"]}),/*#__PURE__*/_jsx(\"cite\",{children:data.speaker})]}),data.after.map((paragraph,index)=>/*#__PURE__*/_jsx(\"p\",{className:\"ts-example-paragraph\",children:paragraph},`after-${index}`)),/*#__PURE__*/_jsxs(\"h4\",{className:\"ts-example-section-title\",children:[\"About \",data.company]}),/*#__PURE__*/_jsx(\"p\",{className:\"ts-example-paragraph\",children:data.about}),/*#__PURE__*/_jsxs(\"div\",{className:\"ts-example-contact\",children:[/*#__PURE__*/_jsx(\"h4\",{className:\"ts-example-section-title\",children:\"Media contact\"}),/*#__PURE__*/_jsxs(\"p\",{children:[/*#__PURE__*/_jsx(\"strong\",{children:data.company}),/*#__PURE__*/_jsx(\"br\",{}),data.contact.name,\" \\xb7 \",data.contact.role,/*#__PURE__*/_jsx(\"br\",{}),data.contact.email,/*#__PURE__*/_jsx(\"br\",{}),data.contact.website,/*#__PURE__*/_jsx(\"br\",{}),data.contact.country]})]}),/*#__PURE__*/_jsx(\"div\",{className:\"ts-example-end\",\"aria-label\":\"End of example\",children:\"###\"})]})]})]})]});}addPropertyControls(PressReleaseExample,{release:{type:ControlType.String,title:\"Release content\",displayTextArea:true,defaultValue:JSON.stringify(fallback),description:\"The complete example stored with this CMS article.\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"PressReleaseExample\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"auto\",\"framerIntrinsicHeight\":\"104\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerIntrinsicWidth\":\"720\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./PressReleaseExample.map"],"mappings":"A,wLAyCG,SAAwBY,EAAoB,CAAC,UAAQ,SAAO,CAAC,IAAMC,E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