{"version":3,"file":"StructuredData.DSpXYaSF.mjs","names":["React.forwardRef","useMemo"],"sources":["https:/framerusercontent.com/modules/liGwkIXVDPkg4CfKUJoR/BvPhIrJAI4RLkVfNzsaP/zD0HidK19.js","https:/framerusercontent.com/modules/Lzj0EB8JZJG8NRh37bdy/pGGbcGNHYnnJ4xbKSRiR/StructuredData.js"],"sourcesContent":["// Generated by Framer (85eaff3)\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType,cx,motion,useSVGTemplate,withCSS}from\"framer\";import*as React from\"react\";import{forwardRef}from\"react\";const mask=\"var(--framer-icon-mask)\";const Base=/*#__PURE__*/forwardRef(function(props,ref){return /*#__PURE__*/_jsx(\"svg\",{...props,ref:ref,children:props.children});});const MotionSVG=motion.create(Base);const SVG=/*#__PURE__*/forwardRef((props,ref)=>{const{animated,layoutId,children,...rest}=props;return animated?/*#__PURE__*/_jsx(MotionSVG,{...rest,layoutId:layoutId,ref:ref,children:children}):/*#__PURE__*/_jsx(\"svg\",{...rest,ref:ref,children:children});});const svg='<svg display=\"block\" role=\"presentation\" viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M 0 12 L 6 6 L 0 0\" fill=\"transparent\" height=\"12px\" id=\"sVN6YVZ9m\" stroke-dasharray=\"\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"var(--js9iwy, 2)\" stroke=\"var(--1m973uw, rgb(0,0,0))\" transform=\"translate(9 6)\" width=\"6px\"/></svg>';const getProps=({color,height,id,width,width1,...props})=>{return{...props,JEeZYcamG:width1??props.JEeZYcamG??2,P_DcoRcrY:color??props.P_DcoRcrY??\"rgb(0, 0, 0)\"};};const Component=/*#__PURE__*/React.forwardRef(function(props,ref){const{style,className,layoutId,variant,P_DcoRcrY,JEeZYcamG,...restProps}=getProps(props);const href=useSVGTemplate(\"2903821725\",svg);return /*#__PURE__*/_jsx(SVG,{...restProps,className:cx(\"framer-ab47M\",className),layoutId:layoutId,ref:ref,role:\"presentation\",style:{\"--1m973uw\":P_DcoRcrY,\"--js9iwy\":JEeZYcamG,...style},viewBox:\"0 0 24 24\",children:/*#__PURE__*/_jsx(\"use\",{href:href})});});const css=[`.framer-ab47M { -webkit-mask: ${mask}; aspect-ratio: 1; display: block; mask: ${mask}; width: 24px; }`];/**\n * This is a generated Framer component.\n * @framerIntrinsicWidth 24\n * @framerIntrinsicHeight 24\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight any-prefer-fixed\n * @framerVariables {\"P_DcoRcrY\":\"color\",\"JEeZYcamG\":\"width1\"}\n * @framerImmutableVariables true\n * @framerVector {\"name\":\"Chevron Right\",\"color\":{\"type\":\"variable\",\"value\":\"1m973uw\"},\"set\":{\"localId\":\"vectorSet/ZsiCCGPvG\",\"id\":\"ZsiCCGPvG\",\"moduleId\":\"Y7SpbVH16cWqMhj75z1M\"}}\n */const Icon=withCSS(Component,css,\"framer-ab47M\");Icon.displayName=\"Chevron Right\";export default Icon;addPropertyControls(Icon,{P_DcoRcrY:{defaultValue:\"rgb(0, 0, 0)\",hidden:false,title:\"Color\",type:ControlType.Color},JEeZYcamG:{defaultValue:2,displayStepper:true,hidden:false,max:16,min:1,title:\"Width\",type:ControlType.Number}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"Icon\",\"slots\":[],\"annotations\":{\"framerIntrinsicHeight\":\"24\",\"framerIntrinsicWidth\":\"24\",\"framerSupportedLayoutHeight\":\"any-prefer-fixed\",\"framerImmutableVariables\":\"true\",\"framerVector\":\"{\\\"name\\\":\\\"Chevron Right\\\",\\\"color\\\":{\\\"type\\\":\\\"variable\\\",\\\"value\\\":\\\"1m973uw\\\"},\\\"set\\\":{\\\"localId\\\":\\\"vectorSet/ZsiCCGPvG\\\",\\\"id\\\":\\\"ZsiCCGPvG\\\",\\\"moduleId\\\":\\\"Y7SpbVH16cWqMhj75z1M\\\"}}\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerVariables\":\"{\\\"P_DcoRcrY\\\":\\\"color\\\",\\\"JEeZYcamG\\\":\\\"width1\\\"}\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}","/**\n * StructuredData — Framer code component\n *\n * Emits a single JSON-LD block for the page it sits on. Framer's page\n * metadata panel covers title/description/social image but has no slot for\n * schema.org markup, and the site-wide head snippet cannot see CMS values —\n * so CMS detail templates (article, product, partner) need this instead.\n *\n * Drop one instance on a detail template, pick the type, and bind the fields\n * to the collection. It renders nothing visible.\n *\n * Google reads JSON-LD anywhere in the document, so rendering into the body\n * is fine; the script is inert markup, never executed.\n */import{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType,RenderTarget}from\"framer\";import{useMemo}from\"react\";const SITE=\"https://www.red.org\";const ORG_ID=SITE+\"/#organization\";const ORG_LOGO=\"https://framerusercontent.com/images/HWD0owjY1JH6iJmFOCSnSUly254.jpg\";/** Framer hands dates through as ISO strings or Date objects. */function isoDate(value){if(!value)return undefined;const date=value instanceof Date?value:new Date(String(value));if(Number.isNaN(date.getTime()))return undefined;return date.toISOString().slice(0,10);}/** Strip Framer's image query params so the URL is a clean canonical asset. */function cleanImage(src){const raw=typeof src===\"string\"?src:src&&typeof src===\"object\"?src.src??\"\":\"\";const value=raw.trim();if(!value||!/^https?:/i.test(value))return undefined;return value.split(\"?\")[0];}function absolute(path){const value=typeof path===\"string\"?path.trim():\"\";if(!value)return undefined;if(/^https?:/i.test(value))return value;return SITE+(value.startsWith(\"/\")?value:\"/\"+value);}function trimmed(value){const text=typeof value===\"string\"?value.trim():\"\";return text||undefined;}/**\n * @framerIntrinsicWidth 1\n * @framerIntrinsicHeight 1\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight fixed\n */export default function StructuredData(props){const{kind=\"Article\",path=\"\",headline=\"\",description=\"\",image=\"\",datePublished=\"\",dateModified=\"\",brand=\"\",shopUrl=\"\",crumbLabel=\"\",crumbPath=\"\",style}=props;const json=useMemo(()=>{// `path` is bound to the item slug; the section prefix comes from\n// crumbPath so one control covers every collection.\nconst slug=trimmed(path);const section=trimmed(crumbPath);const url=slug&&!slug.startsWith(\"/\")&&!/^https?:/i.test(slug)&&section?absolute(section.replace(/\\/$/,\"\")+\"/\"+slug.replace(/^\\//,\"\")):absolute(path);const name=trimmed(headline);if(!name)return null;const publisher={\"@type\":\"Organization\",\"@id\":ORG_ID,name:\"(RED)\",url:SITE+\"/\",// Google requires publisher.logo as an ImageObject for Article\n// rich-result eligibility; the bare @id reference is not enough.\nlogo:{\"@type\":\"ImageObject\",url:ORG_LOGO}};const crumbs=[{\"@type\":\"ListItem\",position:1,name:\"Home\",item:SITE+\"/\"}];const sectionName=trimmed(crumbLabel);const sectionPath=absolute(crumbPath);if(sectionName&&sectionPath){crumbs.push({\"@type\":\"ListItem\",position:2,name:sectionName,item:sectionPath});}crumbs.push({\"@type\":\"ListItem\",position:crumbs.length+1,name,...url?{item:url}:{}});const breadcrumb={\"@type\":\"BreadcrumbList\",itemListElement:crumbs};let primary;if(kind===\"Product\"){const offerUrl=trimmed(shopUrl);primary={\"@type\":\"Product\",name,...trimmed(description)?{description:trimmed(description)}:{},...cleanImage(image)?{image:cleanImage(image)}:{},...trimmed(brand)?{brand:{\"@type\":\"Brand\",name:trimmed(brand)}}:{},...url?{url}:{},// No Offer node: the Price field is empty across the\n// catalogue, and an offer without a price is invalid.\n...offerUrl?{subjectOf:{\"@type\":\"WebPage\",url:offerUrl}}:{}};}else if(kind===\"Partner\"){primary={\"@type\":\"Organization\",name,...trimmed(description)?{description:trimmed(description)}:{},...cleanImage(image)?{logo:cleanImage(image)}:{},...url?{url}:{},memberOf:publisher};}else{primary={\"@type\":\"NewsArticle\",headline:name.slice(0,110),...trimmed(description)?{description:trimmed(description)}:{},...cleanImage(image)?{image:cleanImage(image)}:{},...isoDate(datePublished)?{datePublished:isoDate(datePublished)}:{},...isoDate(dateModified)||isoDate(datePublished)?{dateModified:isoDate(dateModified)??isoDate(datePublished)}:{},...url?{mainEntityOfPage:url}:{},publisher,author:publisher};}return JSON.stringify({\"@context\":\"https://schema.org\",\"@graph\":[primary,breadcrumb]});},[kind,path,headline,description,image,datePublished,dateModified,brand,shopUrl,crumbLabel,crumbPath]);const onCanvas=RenderTarget.current()===RenderTarget.canvas;if(onCanvas){return /*#__PURE__*/_jsx(\"div\",{style:{...style,display:\"flex\",alignItems:\"center\",justifyContent:\"center\",minWidth:1,minHeight:1,fontFamily:'\"Antarctican Mono\", \"Antarctican Mono Placeholder\", monospace',fontSize:9,letterSpacing:\"0.08em\",textTransform:\"uppercase\",color:json?\"#2C6A4E\":\"#B3001B\",background:json?\"#E4F1EA\":\"#FBE7EA\",borderRadius:2,padding:\"2px 4px\",whiteSpace:\"nowrap\",overflow:\"hidden\"},children:json?kind:\"No data\"});}if(!json)return null;return /*#__PURE__*/_jsx(\"script\",{type:\"application/ld+json\",dangerouslySetInnerHTML:{__html:json}});}addPropertyControls(StructuredData,{kind:{type:ControlType.Enum,title:\"Type\",options:[\"Article\",\"Product\",\"Partner\"],optionTitles:[\"Article\",\"Product\",\"Partner\"],defaultValue:\"Article\"},path:{type:ControlType.String,title:\"Path\",placeholder:\"/reditorial/some-slug\",description:\"Bind to the item slug, prefixed with its section.\"},headline:{type:ControlType.String,title:\"Name\"},description:{type:ControlType.String,title:\"Summary\"},image:{type:ControlType.ResponsiveImage,title:\"Image\"},datePublished:{type:ControlType.Date,title:\"Published\",hidden:props=>props.kind!==\"Article\"},dateModified:{type:ControlType.Date,title:\"Updated\",hidden:props=>props.kind!==\"Article\"},brand:{type:ControlType.String,title:\"Brand\",hidden:props=>props.kind!==\"Product\"},shopUrl:{type:ControlType.String,title:\"Shop URL\",hidden:props=>props.kind!==\"Product\"},crumbLabel:{type:ControlType.String,title:\"Section\",placeholder:\"(RED)ITORIAL\"},crumbPath:{type:ControlType.String,title:\"Section Path\",placeholder:\"/reditorial\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"StructuredData\",\"slots\":[],\"annotations\":{\"framerIntrinsicHeight\":\"1\",\"framerIntrinsicWidth\":\"1\",\"framerSupportedLayoutWidth\":\"fixed\",\"framerSupportedLayoutHeight\":\"fixed\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./StructuredData.map"],"mappings":"wRAC0C,IAAqF,IAA4B,EAAqC,EAAK,0BAAgC,EAAkB,EAAW,SAAS,EAAM,EAAI,CAAC,OAAoB,EAAK,MAAM,CAAC,GAAG,EAAU,MAAI,SAAS,EAAM,QAAQ,CAAC,CAAE,CAAC,EAAQ,EAAU,EAAO,OAAO,CAAI,EAAQ,EAAiB,GAAY,EAAM,IAAM,CAAC,GAAK,CAAC,WAAS,WAAS,WAAS,GAAG,GAAM,EAAM,OAAO,EAAsB,EAAK,EAAU,CAAC,GAAG,EAAc,WAAa,MAAa,UAAQ,CAAC,EAAe,EAAK,MAAM,CAAC,GAAG,EAAS,MAAa,UAAQ,CAAC,CAAE,CAAC,EAAQ,EAAI,qWAA2W,GAAU,CAAC,QAAM,SAAO,KAAG,QAAM,SAAO,GAAG,MAAgB,CAAC,GAAG,EAAM,UAAU,GAAQ,EAAM,WAAW,EAAE,UAAU,GAAO,EAAM,WAAW,cAAc,GASjpC,EAAK,EAT6qCA,EAAiB,SAAS,EAAM,EAAI,CAAC,GAAK,CAAC,QAAM,YAAU,WAAS,UAAQ,YAAU,YAAU,GAAG,GAAW,EAAS,CAAK,EAAQ,EAAK,EAAe,aAAa,CAAG,EAAE,OAAoB,EAAK,EAAI,CAAC,GAAG,EAAU,UAAU,EAAG,eAAe,CAAS,EAAW,WAAa,MAAI,KAAK,eAAe,MAAM,CAAC,YAAY,EAAU,WAAW,EAAU,GAAG,CAAK,EAAE,QAAQ,YAAY,SAAsB,EAAK,MAAM,CAAM,MAAI,CAAC,CAAC,CAAC,CAAE,CASv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