{"version":3,"file":"CollectionStructuredData.CRtkBd1G.mjs","names":["__esmMin","init_jsx_runtime","c","init_framer_BisrWwwE","addPropertyControls","ControlType","CollectionStructuredData","props","name","slug","sections","kind","section","url","site","description","image","organization","website","crumbs","label","path","breadcrumb","item","index","page","graph","sameAs","link","data","style","episodeOnly","init_CollectionStructuredData"],"sources":["https:/framerusercontent.com/modules/fIVkDhQAY873AYFZwyAt/g1F0MimBLsvfytsyCvA1/CollectionStructuredData.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";// JSON-LD for CMS detail pages, rendered into the static HTML like ArticleStructuredData.\n// Bind props to the template's CMS fields. Framer cannot bind a Slug field to a code component,\n// so Page links to the current item and its last path segment is the slug.\n// A page without name or slug gets no schema.\nconst site=\"https://peoplefirst.club\";const sections={podcastEpisode:{path:\"/podcast/\",crumbs:[[\"Подкаст\",\"/podcast\"]]},person:{path:\"/people/\",crumbs:[[\"Люди\",\"/people\"]]},category:{path:\"/media/categories/\",crumbs:[[\"Медіа\",\"/media\"]]},tag:{path:\"/media/tag/\",crumbs:[[\"Медіа\",\"/media\"]]}};/**\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight fixed\n */export default function CollectionStructuredData(props){const{kind=\"person\",style}=props;const name=props.name?.trim(),slug=props.page?.split(/[?#]/)[0].split(\"/\").filter(Boolean).pop();if(!name||!slug||!sections[kind])return null;const section=sections[kind];const url=site+section.path+slug;const description=props.description?.trim()||(kind===\"tag\"?\"Матеріали People First Media за темою \\xab\"+name+\"\\xbb.\":undefined);const image=props.image?.src;const organization={\"@type\":\"Organization\",\"@id\":site+\"/#organization\",name:\"People First Club\",url:site+\"/\",logo:\"https://framerusercontent.com/images/60jn33qzmjU8VA51oIt6gwd6nTA.svg?width=1689&height=1111\"};const website={\"@type\":\"WebSite\",\"@id\":site+\"/#website\",name:\"People First Club\",url:site+\"/\",inLanguage:\"uk\",publisher:{\"@id\":organization[\"@id\"]}};const crumbs=[[\"People First Club\",site+\"/\"],...section.crumbs.map(([label,path])=>[label,site+path]),[name,url]];const breadcrumb={\"@type\":\"BreadcrumbList\",\"@id\":url+\"#breadcrumbs\",itemListElement:crumbs.map(([label,item],index)=>({\"@type\":\"ListItem\",position:index+1,name:label,item}))};const page={\"@type\":kind===\"person\"?\"ProfilePage\":kind===\"podcastEpisode\"?\"WebPage\":\"CollectionPage\",\"@id\":url,url,name,inLanguage:\"uk\",...description?{description}:{},...image?{image}:{},isPartOf:{\"@id\":website[\"@id\"]},breadcrumb:{\"@id\":breadcrumb[\"@id\"]}};const graph=[organization,website,page,breadcrumb];if(kind===\"person\"){page.mainEntity={\"@id\":url+\"#person\"};graph.push({\"@type\":\"Person\",\"@id\":url+\"#person\",name,url,...props.jobTitle?.trim()?{jobTitle:props.jobTitle.trim()}:{},...description?{description}:{},...image?{image}:{}});}if(kind===\"podcastEpisode\"){page.mainEntity={\"@id\":url+\"#episode\"};const sameAs=[props.youtube,props.applePodcasts,props.spotify].map(link=>link?.trim()).filter(link=>!!link&&(link.startsWith(\"https://\")||link.startsWith(\"http://\")));graph.push({\"@type\":\"PodcastEpisode\",\"@id\":url+\"#episode\",name,url,inLanguage:\"uk\",...description?{description}:{},...image?{image}:{},// Keep the approved date-only convention used by articles.\n...props.published?{datePublished:props.published.slice(0,10)}:{},...props.episodeNumber?{episodeNumber:props.episodeNumber}:{},...sameAs.length?{sameAs}:{},partOfSeries:{\"@type\":\"PodcastSeries\",\"@id\":site+\"/podcast#series\",name:\"People First Podcast\",url:site+\"/podcast\"},publisher:{\"@id\":organization[\"@id\"]}});}const data={\"@context\":\"https://schema.org\",\"@graph\":graph};return /*#__PURE__*/_jsx(\"div\",{style:{...style,display:\"none\"},\"aria-hidden\":\"true\",children:/*#__PURE__*/_jsx(\"script\",{type:\"application/ld+json\",\"data-pfc-collection-schema\":kind,dangerouslySetInnerHTML:{__html:JSON.stringify(data).replace(/</g,String.fromCharCode(92)+\"u003c\")}})});}const episodeOnly=props=>props.kind!==\"podcastEpisode\";addPropertyControls(CollectionStructuredData,{kind:{type:ControlType.Enum,title:\"Kind\",options:[\"podcastEpisode\",\"person\",\"category\",\"tag\"],optionTitles:[\"Podcast episode\",\"Person\",\"Media category\",\"Media tag\"],defaultValue:\"person\"},page:{type:ControlType.Link,title:\"Page\"},name:{type:ControlType.String,title:\"Name\"},description:{type:ControlType.String,title:\"Description\"},jobTitle:{type:ControlType.String,title:\"Job title\",hidden:props=>props.kind!==\"person\"},image:{type:ControlType.ResponsiveImage,title:\"Image\"},published:{type:ControlType.Date,title:\"Published\",hidden:episodeOnly},episodeNumber:{type:ControlType.Number,title:\"Episode\",hidden:episodeOnly},youtube:{type:ControlType.Link,title:\"YouTube\",hidden:episodeOnly},applePodcasts:{type:ControlType.Link,title:\"Apple Podcasts\",hidden:episodeOnly},spotify:{type:ControlType.Link,title:\"Spotify\",hidden:episodeOnly}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"CollectionStructuredData\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\":\"fixed\",\"framerSupportedLayoutHeight\":\"fixed\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./CollectionStructuredData.map"],"mappings":"A,4JAOG,SAAwBM,EAAyB,EAAM,CAAC,GAAK,CAAC,OAAK,SAAS,SAAOC,EAAYC,EAAKD,EAAM,MAAM,KAAK,EAAEE,EAAKF,EAAM,MAAM,MAAM,MAAM,CAAC,CAAC,EAAE,CAAC,MAAM,GAAG,CAAC,CAAC,OAAO,OAAO,CAAC,CAAC,IAAI,EAAE,GAAG,CAACC,GAAM,CAACC,GAAM,CAACC,EAASC,GAAM,OAAO,KAAK,IAAMC,EAAQF,EAASC,GAAYE,EAAIC,EAAKF,EAAQ,KAAKH,EAAWM,EAAYR,EAAM,aAAa,KAAK,IAAII,IAAO,MAAM,0CAA6CH,EAAK,KAAQ,I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