{"version":3,"file":"StructuredData._HpVKdB5.mjs","names":["useMemo"],"sources":["https:/framerusercontent.com/modules/EwYhsck0uDSDqdFJriqH/yYpHWVaJUIk5S0Asz8JP/StructuredData.js"],"sourcesContent":["// User request: Create a new Framer code component named StructuredData that renders only valid JSON-LD with no visible UI or layout impact, is canvas-safe, returns a <script type=\"application/ld+json\"> via JSON.stringify, avoids document.head/browser globals/effects/fetching, supports mode Organization|Course plus optional courseName/courseDescription controls, outputs exactly one DanceSchool object in Organization mode, outputs exactly one Course object in Course mode only when both fields are non-empty, and otherwise returns null.\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{useMemo}from\"react\";import{addPropertyControls,ControlType}from\"framer\";/**\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight fixed\n */export default function StructuredData(props){const{mode,courseName=\"\",courseDescription=\"\"}=props;const jsonLd=useMemo(()=>{if(mode===\"Organization\"){return{\"@context\":\"https://schema.org\",\"@type\":\"DanceSchool\",\"@id\":\"https://www.proviedanse.com/#organization\",name:\"Proviedanse S.U.D\",url:\"https://www.proviedanse.com/\",address:{\"@type\":\"PostalAddress\",streetAddress:\"12 rue Meyrueis\",postalCode:\"34000\",addressLocality:\"Montpellier\",addressCountry:\"FR\"},telephone:\"+33 7 82 88 83 11\",email:\"slproviedansesud@gmail.com\"};}const safeName=courseName.trim();const safeDescription=courseDescription.trim();if(!safeName||!safeDescription)return null;return{\"@context\":\"https://schema.org\",\"@type\":\"Course\",name:`Cours de ${safeName} \\xe0 Montpellier`,description:safeDescription,provider:{\"@type\":\"DanceSchool\",\"@id\":\"https://www.proviedanse.com/#organization\",name:\"Proviedanse S.U.D\",url:\"https://www.proviedanse.com/\"}};},[mode,courseName,courseDescription]);if(!jsonLd)return null;return /*#__PURE__*/_jsx(\"script\",{type:\"application/ld+json\",children:JSON.stringify(jsonLd)});}addPropertyControls(StructuredData,{mode:{type:ControlType.Enum,title:\"Mode\",options:[\"Organization\",\"Course\"],optionTitles:[\"Organization\",\"Course\"],defaultValue:\"Organization\",displaySegmentedControl:true},courseName:{type:ControlType.String,title:\"Course Name\",defaultValue:\"\",placeholder:\"Salsa\"},courseDescription:{type:ControlType.String,title:\"Course Description\",defaultValue:\"\",placeholder:\"Description\",displayTextArea:true}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"StructuredData\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\":\"fixed\",\"framerSupportedLayoutHeight\":\"fixed\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./StructuredData.map"],"mappings":"0KAIG,SAAwB,EAAe,EAAM,CAAC,GAAK,CAAC,OAAK,aAAW,GAAG,oBAAkB,IAAI,EAAY,EAAOA,MAAY,CAAC,GAAG,IAAO,eAAgB,MAAM,CAAC,WAAW,qBAAqB,QAAQ,cAAc,MAAM,4CAA4C,KAAK,oBAAoB,IAAI,+BAA+B,QAAQ,CAAC,QAAQ,gBAAgB,cAAc,kBAAkB,WAAW,QAAQ,gBAAgB,cAAc,eAAe,IAAI,EAAE,UAAU,oBAAoB,MAAM,4BAA4B,EAAG,IAAM,EAAS,EAAW,KAAK,EAAQ,EAAgB,EAAkB,KAAK,EAA6C,MAAxC,CAAC,GAAU,CAAC,EAAuB,KAAW,CAAC,WAAW,qBAAqB,QAAQ,SAAS,KAAK,YAAY,EAAS,mBAAmB,YAAY,EAAgB,SAAS,CAAC,QAAQ,cAAc,MAAM,4CAA4C,KAAK,oBAAoB,IAAI,8BAA8B,CAAC,CAAE,EAAE,CAAC,EAAK,EAAW,CAAiB,CAAC,EAAyB,OAAnB,EAAuC,EAAK,SAAS,CAAC,KAAK,sBAAsB,SAAS,KAAK,UAAU,CAAM,CAAC,CAAC,EAAnG,IAAqG,iBAH/gC,IAA2B,IAAoD,EAGi8B,EAAoB,EAAe,CAAC,KAAK,CAAC,KAAK,EAAY,KAAK,MAAM,OAAO,QAAQ,CAAC,eAAe,QAAQ,EAAE,aAAa,CAAC,eAAe,QAAQ,EAAE,aAAa,eAAe,wBAAwB,EAAI,EAAE,WAAW,CAAC,KAAK,EAAY,OAAO,MAAM,cAAc,aAAa,GAAG,YAAY,OAAO,EAAE,kBAAkB,CAAC,KAAK,EAAY,OAAO,MAAM,qBAAqB,aAAa,GAAG,YAAY,cAAc,gBAAgB,EAAI,CAAC,CAAC"}