{"version":3,"file":"StructuredData.BLDjP1q1.mjs","names":[],"sources":["https:/framerusercontent.com/modules/Zn1bHQ8HGUCB6YKu6p33/5VhQbaPXZZ6Otu70YdF5/StructuredData.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";const ORIGIN=\"https://formlab.design\";/**\n * Emits per-page JSON-LD (schema.org) for CMS detail pages.\n * Place one instance on a detail-page template and bind the props to\n * collection fields. Renders a <script type=\"application/ld+json\"> into the\n * page, so it is present in the server-rendered HTML for crawlers.\n *\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight any\n */export default function StructuredData(props){const{sdType=\"Service\",sdName=\"\",sdDescription=\"\",sdImage=\"\",sdDate=\"\",sdBasePath=\"/\",sdSection=\"\"}=props;if(!sdName)return null;const base=sdBasePath||\"/\";const sectionUrl=ORIGIN+base;const href=typeof window!==\"undefined\"&&window.location?window.location.href:sectionUrl;const org={\"@id\":ORIGIN+\"/#organization\"};const imgUrl=typeof sdImage===\"string\"?sdImage:sdImage&&sdImage.src||\"\";let entity;if(sdType===\"BlogPosting\"){entity={\"@type\":\"BlogPosting\",headline:sdName,description:sdDescription||undefined,image:imgUrl||undefined,datePublished:sdDate||undefined,dateModified:sdDate||undefined,author:org,publisher:org,inLanguage:\"pl\",mainEntityOfPage:href};}else if(sdType===\"CreativeWork\"){entity={\"@type\":\"CreativeWork\",name:sdName,description:sdDescription||undefined,image:imgUrl||undefined,creator:org,inLanguage:\"pl\",url:href};}else{entity={\"@type\":\"Service\",name:sdName,description:sdDescription||undefined,serviceType:sdName,provider:org,areaServed:{\"@type\":\"Country\",name:\"Poland\"},url:href};}const breadcrumb={\"@type\":\"BreadcrumbList\",itemListElement:[{\"@type\":\"ListItem\",position:1,name:\"Strona gł\\xf3wna\",item:ORIGIN+\"/\"},{\"@type\":\"ListItem\",position:2,name:sdSection||\"\",item:sectionUrl},{\"@type\":\"ListItem\",position:3,name:sdName}]};const graph={\"@context\":\"https://schema.org\",\"@graph\":[entity,breadcrumb]};const json=JSON.stringify(graph,(_k,v)=>v===undefined?undefined:v);return /*#__PURE__*/_jsx(\"script\",{type:\"application/ld+json\",dangerouslySetInnerHTML:{__html:json}});}addPropertyControls(StructuredData,{sdType:{type:ControlType.Enum,title:\"Type\",options:[\"Service\",\"BlogPosting\",\"CreativeWork\"],defaultValue:\"Service\"},sdName:{type:ControlType.String,title:\"Name\"},sdDescription:{type:ControlType.String,title:\"Description\"},sdImage:{type:ControlType.Image,title:\"Image\"},sdDate:{type:ControlType.String,title:\"Date (ISO)\"},sdBasePath:{type:ControlType.String,title:\"Base path\",defaultValue:\"/\"},sdSection:{type:ControlType.String,title:\"Section label\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"StructuredData\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"any\",\"framerSupportedLayoutHeight\":\"any\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./StructuredData.map"],"mappings":"0KAQG,SAAwB,EAAe,EAAM,CAAC,GAAK,CAAC,SAAO,UAAU,SAAO,GAAG,gBAAc,GAAG,UAAQ,GAAG,SAAO,GAAG,aAAW,IAAI,YAAU,IAAI,EAAM,GAAG,CAAC,EAAO,OAAO,KAAgC,IAAM,EAAW,GAAjC,GAAY,KAAuC,EAAY,IAAS,QAAa,EAAO,SAAS,EAAO,SAAS,KAAK,EAAiB,EAAI,CAAC,MAAM,sCAAuB,EAAQ,EAAO,OAAO,GAAU,SAAS,EAAQ,GAAS,EAAQ,KAAK,GAAO,EAAw+B,MAAj+B,CAA2b,EAAxb,IAAS,cAAsB,CAAC,QAAQ,cAAc,SAAS,EAAO,YAAY,GAAe,IAAA,GAAU,MAAM,GAAQ,IAAA,GAAU,cAAc,GAAQ,IAAA,GAAU,aAAa,GAAQ,IAAA,GAAU,OAAO,EAAI,UAAU,EAAI,WAAW,KAAK,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