{"version":3,"file":"StructuredData.CchaePeo.mjs","names":["__esmMin","init_jsx_runtime","c","addPropertyControls","init_framer_BpuvUAiZ","ControlType","JsonLd","json","data","clean","text","value","absoluteUrl","path","SITE_URL","ReviewSchema","reviewBody","props","authorName","program","field","about","date","ORGANIZATION","BreadcrumbSchema","levels","i","level","index","ArticleSchema","headline","image","author","url","init_StructuredData"],"sources":["https:/framerusercontent.com/modules/a6DCRFgFBtPoWWSB558t/jKANBvobIaFjkoS5fBSY/StructuredData.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";// Server-rendered JSON-LD for CMS pages.\n// Drop one of these components anywhere on a CMS template and bind its properties to CMS\n// fields. Framer renders it on the server, so the <script type=\"application/ld+json\"> tag is\n// in the HTML that search engines and AI crawlers fetch. Nothing is visible on the page.\nconst SITE_URL=\"https://www.connect-123.com\";const ORGANIZATION={\"@type\":\"Organization\",\"@id\":`${SITE_URL}/#organization`,name:\"Connect-123\",url:`${SITE_URL}/`};function JsonLd({data}){// Escape \"<\" so a CMS value containing \"</script>\" can't end the tag early.\nconst json=JSON.stringify(data).replace(/</g,\"\\\\u003c\");return /*#__PURE__*/_jsx(\"script\",{type:\"application/ld+json\",dangerouslySetInnerHTML:{__html:json}});}function clean(value){const text=(value??\"\").replace(/\\s+/g,\" \").trim();return text.length>0?text:undefined;}function absoluteUrl(path){const value=clean(path);if(!value)return undefined;if(/^https?:\\/\\//.test(value))return value;return`${SITE_URL}/${value.replace(/^\\/+/,\"\")}`;}/**\n * Review schema for a single alumni review page.\n *\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight any\n */export function ReviewSchema(props){const reviewBody=clean(props.reviewBody);const authorName=clean(props.authorName);if(!reviewBody||!authorName)return null;const program=clean(props.programName);const field=clean(props.fieldName);const about=[field&&`${field} internship`,program&&`in ${program}`].filter(Boolean).join(\" \");const date=clean(props.datePublished);const data={\"@context\":\"https://schema.org\",\"@type\":\"Review\",author:{\"@type\":\"Person\",name:authorName},reviewBody,...date&&{datePublished:date.slice(0,10)},reviewRating:{\"@type\":\"Rating\",ratingValue:props.rating||5,bestRating:5,worstRating:1},itemReviewed:ORGANIZATION,publisher:{\"@id\":ORGANIZATION[\"@id\"]},...about&&{about:{\"@type\":\"Thing\",name:about}}};return /*#__PURE__*/_jsx(JsonLd,{data:data});}addPropertyControls(ReviewSchema,{authorName:{type:ControlType.String,title:\"Author\"},reviewBody:{type:ControlType.String,title:\"Review\",displayTextArea:true},datePublished:{type:ControlType.Date,title:\"Date\"},rating:{type:ControlType.Number,title:\"Rating\",min:1,max:5,step:1,defaultValue:5},programName:{type:ControlType.String,title:\"Program\"},fieldName:{type:ControlType.String,title:\"Field\"}});/**\n * BreadcrumbList schema. Fill in as many levels as the page has (up to four);\n * empty levels are skipped. Paths can be relative (\"/internships/barcelona-spain\").\n *\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight any\n */export function BreadcrumbSchema(props){const levels=[1,2,3,4].map(i=>({name:clean(props[`name${i}`]),item:absoluteUrl(props[`path${i}`])})).filter(level=>level.name&&level.item);if(levels.length<2)return null;const data={\"@context\":\"https://schema.org\",\"@type\":\"BreadcrumbList\",itemListElement:levels.map((level,index)=>({\"@type\":\"ListItem\",position:index+1,name:level.name,item:level.item}))};return /*#__PURE__*/_jsx(JsonLd,{data:data});}addPropertyControls(BreadcrumbSchema,{name1:{type:ControlType.String,title:\"Name 1\",defaultValue:\"Home\"},path1:{type:ControlType.String,title:\"Path 1\",defaultValue:\"/\"},name2:{type:ControlType.String,title:\"Name 2\"},path2:{type:ControlType.String,title:\"Path 2\"},name3:{type:ControlType.String,title:\"Name 3\"},path3:{type:ControlType.String,title:\"Path 3\"},name4:{type:ControlType.String,title:\"Name 4\"},path4:{type:ControlType.String,title:\"Path 4\"}});/**\n * BlogPosting schema for a blog post page.\n *\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight any\n */export function ArticleSchema(props){const headline=clean(props.headline);if(!headline)return null;const image=typeof props.image===\"string\"?props.image:props.image?.src;const date=clean(props.datePublished);const author=clean(props.authorName);const url=absoluteUrl(props.path);const data={\"@context\":\"https://schema.org\",\"@type\":\"BlogPosting\",headline,...clean(props.description)&&{description:clean(props.description)},...image&&{image},...date&&{datePublished:date.slice(0,10)},...author&&{author:{\"@type\":\"Person\",name:author}},publisher:ORGANIZATION,...url&&{mainEntityOfPage:url,url}};return /*#__PURE__*/_jsx(JsonLd,{data:data});}addPropertyControls(ArticleSchema,{headline:{type:ControlType.String,title:\"Headline\"},description:{type:ControlType.String,title:\"Description\"},image:{type:ControlType.ResponsiveImage,title:\"Image\"},datePublished:{type:ControlType.Date,title:\"Date\"},authorName:{type:ControlType.String,title:\"Author\"},path:{type:ControlType.String,title:\"Path\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"BreadcrumbSchema\":{\"type\":\"reactComponent\",\"name\":\"BreadcrumbSchema\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutHeight\":\"any\",\"framerSupportedLayoutWidth\":\"any\",\"framerContractVersion\":\"1\"}},\"ReviewSchema\":{\"type\":\"reactComponent\",\"name\":\"ReviewSchema\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutHeight\":\"any\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"any\"}},\"ArticleSchema\":{\"type\":\"reactComponent\",\"name\":\"ArticleSchema\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"any\",\"framerSupportedLayoutWidth\":\"any\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./StructuredData.map"],"mappings":"A,4JAIiK,SAASM,EAAO,CAAC,QAAM,CACxL,IAAMC,EAAK,KAAK,UAAUC,CAAI,CAAC,CAAC,QAAQ,KAAK,SAAS,EAAE,MAAoB,gBAAK,SAAS,CAAC,KAAK,sBAAsB,wBAAwB,CAAC,OAAOD,CAAI,CAAC,CAAC,CAAE,CAAC,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