{"version":3,"file":"StructuredData.B4JDGrqd.mjs","names":[],"sources":["https:/framerusercontent.com/modules/xa3PMBlOM9r7NGbTKump/Tgq4Ik5k9nBOm9oGiSoq/StructuredData.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";/**\n * Emits JSON-LD for the page it sits on. Values are passed in from CMS fields\n * on the canvas, so a new home or post needs no hand-written schema.\n * Types per SEO-AEO-GEO-PLAYBOOK.md Part 6: AssistedLiving / NursingHome /\n * SeniorLiving / RetirementHome / RespiteCare do not exist in schema.org.\n */export default function StructuredData({kind=\"Organization\",name=\"\",description=\"\",url=\"\",image=\"\",streetAddress=\"\",locality=\"Bengaluru\",region=\"Karnataka\",postalCode=\"\",telephone=\"\",datePublished=\"\",dateModified=\"\",openingHours=\"\",priceRange=\"\",latitude=\"\",longitude=\"\"}){const base=\"https://priaashraya.com\";const props={kind,name,description,url,image,streetAddress,locality,region,postalCode,telephone,datePublished,dateModified,openingHours,priceRange,latitude,longitude};const toISODate=value=>{if(!value)return undefined;const d=new Date(value);return isNaN(d.getTime())?undefined:d.toISOString();};let data={};if(props.kind===\"Organization\"){data={\"@context\":\"https://schema.org\",\"@type\":\"Organization\",name:\"Priaashraya\",url:base,logo:props.image||undefined,description:props.description||undefined,sameAs:[\"https://www.facebook.com/priaashraya\",\"https://www.instagram.com/priaashraya/\",\"https://www.linkedin.com/company/priaashraya/\",\"https://www.youtube.com/@priaashrayaassistedlivingh4582\"]};}else if(props.kind===\"Home\"){const hasGeo=Boolean(props.latitude&&props.longitude);data={\"@context\":\"https://schema.org\",\"@type\":[\"MedicalClinic\",\"Geriatric\"],name:props.name,description:props.description||undefined,url:props.url||undefined,image:props.image||undefined,telephone:props.telephone||undefined,medicalSpecialty:[\"Geriatric\",\"Nursing\",\"Physiotherapy\"],address:{\"@type\":\"PostalAddress\",streetAddress:props.streetAddress,addressLocality:props.locality||\"Bengaluru\",addressRegion:props.region||\"Karnataka\",postalCode:props.postalCode||undefined,addressCountry:\"IN\"},parentOrganization:{\"@type\":\"Organization\",name:\"Priaashraya\",url:base},openingHours:props.openingHours||undefined,priceRange:props.priceRange||undefined,geo:hasGeo?{\"@type\":\"GeoCoordinates\",latitude:props.latitude,longitude:props.longitude}:undefined};}else{data={\"@context\":\"https://schema.org\",\"@type\":\"BlogPosting\",headline:props.name,description:props.description||undefined,image:props.image||undefined,url:props.url||undefined,datePublished:toISODate(props.datePublished),dateModified:toISODate(props.dateModified)||toISODate(props.datePublished),author:{\"@type\":\"Organization\",name:\"Priaashraya\"},publisher:{\"@type\":\"Organization\",name:\"Priaashraya\"}};}const json=JSON.stringify(data,(_k,v)=>v===undefined||v===\"\"?undefined:v).replace(/</g,\"\\\\u003c\");return /*#__PURE__*/_jsx(\"script\",{type:\"application/ld+json\",dangerouslySetInnerHTML:{__html:json}});}addPropertyControls(StructuredData,{kind:{type:ControlType.Enum,options:[\"Organization\",\"Home\",\"BlogPosting\"],defaultValue:\"Organization\"},name:{type:ControlType.String,defaultValue:\"\"},description:{type:ControlType.String,defaultValue:\"\"},url:{type:ControlType.String,defaultValue:\"\"},image:{type:ControlType.String,defaultValue:\"\"},streetAddress:{type:ControlType.String,defaultValue:\"\"},locality:{type:ControlType.String,defaultValue:\"Bengaluru\"},region:{type:ControlType.String,defaultValue:\"Karnataka\"},postalCode:{type:ControlType.String,defaultValue:\"\"},telephone:{type:ControlType.String,defaultValue:\"\"},datePublished:{type:ControlType.Date,defaultValue:\"\"},dateModified:{type:ControlType.Date,defaultValue:\"\"},openingHours:{type:ControlType.String,defaultValue:\"\",placeholder:\"Mo-Su 00:00-23:59\"},priceRange:{type:ControlType.String,defaultValue:\"\",placeholder:\"₹₹\"},latitude:{type:ControlType.String,defaultValue:\"\"},longitude:{type:ControlType.String,defaultValue:\"\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"StructuredData\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\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