{"version":3,"file":"StructuredData.BFAN_bov.mjs","names":["__esmMin","c","init_jsx_runtime","addPropertyControls","ControlType","init_framer_DKtAEkcX","StructuredData","base","props","toISODate","value","d","data","hasGeo","json","v","init_StructuredData"],"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\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./StructuredData.map"],"mappings":"A,4JAKG,SAAwBM,EAAe,CAAC,OAAK,eAAe,OAAK,GAAG,cAAY,GAAG,MAAI,GAAG,QAAM,GAAG,gBAAc,GAAG,WAAS,YAAY,SAAO,YAAY,aAAW,GAAG,YAAU,GAAG,gBAAc,GAAG,eAAa,GAAG,eAAa,GAAG,aAAW,GAAG,WAAS,GAAG,YAAU,IAAI,CAAC,IAAMC,EAAK,0BAAgCC,EAAM,CAAC,OAAK,OAAK,cAAY,MAAI,QAAM,gBAAc,WAAS,SAAO,aAAW,YAAU,gBAAc,eAAa,eAAa,aAAW,WAAS,WAAS,EAAQC,EAAU,GAAO,CAAC,GAAG,CAACC,EAAM,OAAiB,IAAMC,EAAE,IAAI,KAAKD,CAAK,EAAE,OAAO,MAAMC,EAAE,QAAQ,CAAC,EAAE,IAAA,GAAUA,EAAE,YAAY,CAAE,EAAMC,EAAK,CAAC,EAAE,GAAGJ,EAAM,OAAO,eAAgB,EAAK,CAAC,WAAW,qBAAqB,QAAQ,eAAe,KAAK,cAAc,IAAID,EAAK,KAAKC,EAAM,OAAO,IAAA,GAAU,YAAYA,EAAM,aAAa,IAAA,GAAU,OAAO,CAAC,uCAAuC,yCAAyC,gDAAgD,yDAAyD,CAAC,OAAQ,GAAGA,EAAM,OAAO,OAAO,CAAC,IAAMK,EAAO,GAAQL,EAAM,UAAUA,EAAM,WAAW,EAAK,CAAC,WAAW,qBAAqB,QAAQ,CAAC,gBAAgB,WAAW,EAAE,KAAKA,EAAM,KAAK,YAAYA,EAAM,aAAa,IAAA,GAAU,IAAIA,EAAM,KAAK,IAAA,GAAU,MAAMA,EAAM,OAAO,IAAA,GAAU,UAAUA,EAAM,WAAW,IAAA,GAAU,iBAAiB,CAAC,YA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