{"version":3,"file":"PageSchema.IPO08BFK.mjs","names":[],"sources":["https:/framerusercontent.com/modules/Lbnp1Yo7uaOrK6e57RCu/HQWywb7GjsjDbnWkBjTI/PageSchema.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";function imageSrc(image){if(!image)return\"\";if(typeof image===\"string\")return image;return image.src||\"\";}// Escape characters that could terminate the surrounding <script> element.\nfunction safeJson(value){return JSON.stringify(value).replace(/</g,\"\\\\u003c\").replace(/>/g,\"\\\\u003e\").replace(/&/g,\"\\\\u0026\");}/**\n * Emits schema.org JSON-LD for a static page. Renders no visible UI.\n *\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight fixed\n * @framerIntrinsicWidth 1\n * @framerIntrinsicHeight 1\n */export default function PageSchema({schemaType=\"SoftwareApplication\",name=\"\",description=\"\",url=\"\",image,applicationCategory=\"BusinessApplication\",operatingSystem=\"Web\",organizationName=\"Syncly\",organizationUrl=\"https://syncly.app\",aboutName=\"\",aboutUrl=\"\",slug=\"\",baseUrl=\"\"}){const src=imageSrc(image);const org={\"@type\":\"Organization\",name:organizationName,url:organizationUrl};const schema={\"@context\":\"https://schema.org\",\"@type\":schemaType,inLanguage:\"en-US\",publisher:org};if(name)schema.name=name;if(description)schema.description=description;const resolvedUrl=url||(slug&&baseUrl?baseUrl.replace(/\\/+$/,\"\")+\"/\"+slug:\"\");if(resolvedUrl)schema.url=resolvedUrl;if(src)schema.image=[src];if(schemaType===\"SoftwareApplication\"){if(applicationCategory)schema.applicationCategory=applicationCategory;if(operatingSystem)schema.operatingSystem=operatingSystem;schema.brand=org;}else{schema.author=org;if(aboutName){schema.about={\"@type\":\"SoftwareApplication\",name:aboutName,applicationCategory:\"BusinessApplication\",operatingSystem:\"Web\",...aboutUrl?{url:aboutUrl}:{}};if(aboutUrl)schema.isPartOf={\"@type\":\"WebSite\",url:aboutUrl};}}return /*#__PURE__*/_jsx(\"span\",{style:{display:\"none\"},\"aria-hidden\":\"true\",children:/*#__PURE__*/_jsx(\"script\",{type:\"application/ld+json\",dangerouslySetInnerHTML:{__html:safeJson(schema)}})});}addPropertyControls(PageSchema,{schemaType:{type:ControlType.Enum,title:\"Type\",options:[\"SoftwareApplication\",\"Product\",\"CollectionPage\",\"CreativeWork\",\"Article\",\"WebPage\"],defaultValue:\"SoftwareApplication\"},name:{type:ControlType.String,title:\"Name\",defaultValue:\"\"},description:{type:ControlType.String,title:\"Description\",defaultValue:\"\"},url:{type:ControlType.String,title:\"URL\",defaultValue:\"\"},image:{type:ControlType.ResponsiveImage,title:\"Image\"},applicationCategory:{type:ControlType.String,title:\"App Category\",defaultValue:\"BusinessApplication\",hidden:p=>p.schemaType!==\"SoftwareApplication\"},operatingSystem:{type:ControlType.String,title:\"OS\",defaultValue:\"Web\",hidden:p=>p.schemaType!==\"SoftwareApplication\"},organizationName:{type:ControlType.String,title:\"Org Name\",defaultValue:\"Syncly\"},organizationUrl:{type:ControlType.String,title:\"Org URL\",defaultValue:\"https://syncly.app\"},aboutName:{type:ControlType.String,title:\"About (product)\",defaultValue:\"\",hidden:p=>p.schemaType===\"SoftwareApplication\"},aboutUrl:{type:ControlType.String,title:\"About URL\",defaultValue:\"\",hidden:p=>p.schemaType===\"SoftwareApplication\"},slug:{type:ControlType.String,title:\"Slug\",defaultValue:\"\"},baseUrl:{type:ControlType.String,title:\"BaseLink\",defaultValue:\"\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"PageSchema\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutHeight\":\"fixed\",\"framerIntrinsicHeight\":\"1\",\"framerSupportedLayoutWidth\":\"fixed\",\"framerContractVersion\":\"1\",\"framerIntrinsicWidth\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./PageSchema.map"],"mappings":"6JAA+F,SAAS,EAAS,EAAM,CAA4D,OAAvD,EAAkB,OAAO,GAAQ,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