{"version":3,"file":"StructuredDataJsonLd.BcBApkTP.mjs","names":["useMemo","useCallback"],"sources":["https:/framerusercontent.com/modules/tvmGYZttlCNSZLAAvrHY/r463De3bdFYInj76w7Sl/StructuredDataJsonLd.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";import{useCallback,useEffect,useMemo}from\"react\";function normalizeOrganizationUrl(rawUrl){const trimmed=rawUrl.trim();if(trimmed.length>0){try{const parsed=new URL(trimmed);const normalized=parsed.toString();return normalized.endsWith(\"/\")?normalized:`${normalized}/`;}catch(error){return trimmed.endsWith(\"/\")?trimmed:`${trimmed}/`;}}if(typeof window!==\"undefined\"&&window.location?.origin){const origin=window.location.origin;return origin.endsWith(\"/\")?origin:`${origin}/`;}return\"\";}/**\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight fixed\n */export default function StructuredDataJsonLd(props){const{includeOrganization,includeFAQ,organizationName,organizationLegalName,organizationUrl,organizationLogo,organizationSameAs,organizationTelephone,organizationEmail,organizationStreetAddress,organizationPostalCode,organizationAddressLocality,organizationAddressCountry,organizationCompanyRegistrationNumber,organizationVatTaxNumber,inLanguage,faq1Question,faq1Answer,faq2Question,faq2Answer,faq3Question,faq3Answer,faq4Question,faq4Answer,faq5Question,faq5Answer,faq6Question,faq6Answer,faq7Question,faq7Answer,faq8Question,faq8Answer,faq9Question,faq9Answer}=props;const faqPairs=useMemo(()=>[{question:faq1Question,answer:faq1Answer},{question:faq2Question,answer:faq2Answer},{question:faq3Question,answer:faq3Answer},{question:faq4Question,answer:faq4Answer},{question:faq5Question,answer:faq5Answer},{question:faq6Question,answer:faq6Answer},{question:faq7Question,answer:faq7Answer},{question:faq8Question,answer:faq8Answer},{question:faq9Question,answer:faq9Answer}],[faq1Question,faq1Answer,faq2Question,faq2Answer,faq3Question,faq3Answer,faq4Question,faq4Answer,faq5Question,faq5Answer,faq6Question,faq6Answer,faq7Question,faq7Answer,faq8Question,faq8Answer,faq9Question,faq9Answer]);const parsedSameAs=useMemo(()=>{return organizationSameAs.split(/[\\n,]/g).map(value=>value.trim()).filter(value=>value.length>0);},[organizationSameAs]);const upsertSchemaScript=useCallback((key,payload)=>{if(typeof document===\"undefined\")return;const selector=`script[type=\"application/ld+json\"][data-addvee-schema=\"${key}\"]`;const matches=Array.from(document.head.querySelectorAll(selector));const primary=matches[0]??document.createElement(\"script\");if(!matches[0]){primary.type=\"application/ld+json\";primary.setAttribute(\"data-addvee-schema\",key);document.head.appendChild(primary);}if(matches.length>1){matches.slice(1).forEach(node=>node.remove());}primary.textContent=JSON.stringify(payload);},[]);const removeSchemaScript=useCallback(key=>{if(typeof document===\"undefined\")return;const selector=`script[type=\"application/ld+json\"][data-addvee-schema=\"${key}\"]`;document.head.querySelectorAll(selector).forEach(node=>node.remove());},[]);useEffect(()=>{if(typeof window===\"undefined\"||typeof document===\"undefined\"){return;}const normalizedUrl=normalizeOrganizationUrl(organizationUrl);if(includeOrganization){const trimmedName=organizationName.trim();const trimmedLegalName=organizationLegalName.trim();const trimmedLogo=organizationLogo.trim();const trimmedTelephone=organizationTelephone.trim();const trimmedEmail=organizationEmail.trim();const trimmedStreetAddress=organizationStreetAddress.trim();const trimmedPostalCode=organizationPostalCode.trim();const trimmedAddressLocality=organizationAddressLocality.trim();const trimmedAddressCountry=organizationAddressCountry.trim();const trimmedCompanyRegistrationNumber=organizationCompanyRegistrationNumber.trim();const trimmedVatTaxNumber=organizationVatTaxNumber.trim();const organizationData={\"@context\":\"https://schema.org\",\"@type\":\"Organization\"};if(normalizedUrl.length>0){organizationData[\"@id\"]=`${normalizedUrl}#organization`;organizationData.url=normalizedUrl;}if(trimmedName.length>0){organizationData.name=trimmedName;}if(trimmedLegalName.length>0){organizationData.legalName=trimmedLegalName;}if(trimmedLogo.length>0){organizationData.logo=trimmedLogo;}if(parsedSameAs.length>0){organizationData.sameAs=parsedSameAs;}if(trimmedTelephone.length>0){organizationData.telephone=trimmedTelephone;organizationData.contactPoint={\"@type\":\"ContactPoint\",telephone:trimmedTelephone,availableLanguage:\"cs\"};}if(trimmedEmail.length>0){organizationData.email=trimmedEmail;}if(trimmedStreetAddress.length>0||trimmedPostalCode.length>0||trimmedAddressLocality.length>0||trimmedAddressCountry.length>0){const address={\"@type\":\"PostalAddress\"};if(trimmedStreetAddress.length>0){address.streetAddress=trimmedStreetAddress;}if(trimmedPostalCode.length>0){address.postalCode=trimmedPostalCode;}if(trimmedAddressLocality.length>0){address.addressLocality=trimmedAddressLocality;}if(trimmedAddressCountry.length>0){address.addressCountry=trimmedAddressCountry;}organizationData.address=address;}if(trimmedCompanyRegistrationNumber.length>0){organizationData.identifier={\"@type\":\"PropertyValue\",propertyID:\"IČO\",value:trimmedCompanyRegistrationNumber};}if(trimmedVatTaxNumber.length>0){organizationData.taxID=trimmedVatTaxNumber;organizationData.vatID=trimmedVatTaxNumber;}upsertSchemaScript(\"organization\",organizationData);}const mainEntity=faqPairs.map(pair=>({question:pair.question.trim(),answer:pair.answer.trim()})).filter(pair=>pair.question.length>0&&pair.answer.length>0).map(pair=>({\"@type\":\"Question\",name:pair.question,acceptedAnswer:{\"@type\":\"Answer\",text:pair.answer}}));if(includeFAQ&&mainEntity.length>0){upsertSchemaScript(\"faq\",{\"@context\":\"https://schema.org\",\"@type\":\"FAQPage\",inLanguage,mainEntity});}else if(includeFAQ){removeSchemaScript(\"faq\");}return()=>{if(includeOrganization){removeSchemaScript(\"organization\");}if(includeFAQ){removeSchemaScript(\"faq\");}};},[includeOrganization,includeFAQ,organizationName,organizationLegalName,organizationUrl,organizationLogo,parsedSameAs,organizationTelephone,organizationEmail,organizationStreetAddress,organizationPostalCode,organizationAddressLocality,organizationAddressCountry,organizationCompanyRegistrationNumber,organizationVatTaxNumber,inLanguage,faqPairs,upsertSchemaScript,removeSchemaScript]);return /*#__PURE__*/_jsx(\"div\",{style:{position:\"relative\",width:1,height:1,opacity:0,overflow:\"hidden\",pointerEvents:\"none\"},\"aria-hidden\":\"true\"});}addPropertyControls(StructuredDataJsonLd,{includeOrganization:{type:ControlType.Boolean,title:\"Include Org\",defaultValue:false},includeFAQ:{type:ControlType.Boolean,title:\"Include FAQ\",defaultValue:false},organizationName:{type:ControlType.String,title:\"Org Name\",defaultValue:\"Addvee s.r.o.\"},organizationLegalName:{type:ControlType.String,title:\"Org Legal Name\",defaultValue:\"Addvee s.r.o.\"},organizationUrl:{type:ControlType.String,title:\"Canonical URL\",defaultValue:\"https://www.addvee.cz/\"},organizationLogo:{type:ControlType.String,title:\"Org Logo\",defaultValue:\"\"},organizationSameAs:{type:ControlType.String,title:\"Org SameAs\",defaultValue:\"https://www.linkedin.com/company/addvee-advisory/\",displayTextArea:true},organizationTelephone:{type:ControlType.String,title:\"Telephone\",defaultValue:\"+420 724 107 358\"},organizationEmail:{type:ControlType.String,title:\"Email\",defaultValue:\"\"},organizationStreetAddress:{type:ControlType.String,title:\"Street\",defaultValue:\"Radlick\\xe1 663/28\"},organizationPostalCode:{type:ControlType.String,title:\"Postal Code\",defaultValue:\"150 00\"},organizationAddressLocality:{type:ControlType.String,title:\"Locality\",defaultValue:\"Praha 5\"},organizationAddressCountry:{type:ControlType.String,title:\"Country\",defaultValue:\"CZ\"},organizationCompanyRegistrationNumber:{type:ControlType.String,title:\"IČO\",defaultValue:\"19938080\"},organizationVatTaxNumber:{type:ControlType.String,title:\"DIČ\",defaultValue:\"CZ19938080\"},inLanguage:{type:ControlType.String,title:\"Language\",defaultValue:\"cs-CZ\"},faq1Question:{type:ControlType.String,title:\"FAQ1 Q\",defaultValue:\"\"},faq1Answer:{type:ControlType.String,title:\"FAQ1 A\",defaultValue:\"\",displayTextArea:true},faq2Question:{type:ControlType.String,title:\"FAQ2 Q\",defaultValue:\"\"},faq2Answer:{type:ControlType.String,title:\"FAQ2 A\",defaultValue:\"\",displayTextArea:true},faq3Question:{type:ControlType.String,title:\"FAQ3 Q\",defaultValue:\"\"},faq3Answer:{type:ControlType.String,title:\"FAQ3 A\",defaultValue:\"\",displayTextArea:true},faq4Question:{type:ControlType.String,title:\"FAQ4 Q\",defaultValue:\"\"},faq4Answer:{type:ControlType.String,title:\"FAQ4 A\",defaultValue:\"\",displayTextArea:true},faq5Question:{type:ControlType.String,title:\"FAQ5 Q\",defaultValue:\"\"},faq5Answer:{type:ControlType.String,title:\"FAQ5 A\",defaultValue:\"\",displayTextArea:true},faq6Question:{type:ControlType.String,title:\"FAQ6 Q\",defaultValue:\"\"},faq6Answer:{type:ControlType.String,title:\"FAQ6 A\",defaultValue:\"\",displayTextArea:true},faq7Question:{type:ControlType.String,title:\"FAQ7 Q\",defaultValue:\"\"},faq7Answer:{type:ControlType.String,title:\"FAQ7 A\",defaultValue:\"\",displayTextArea:true},faq8Question:{type:ControlType.String,title:\"FAQ8 Q\",defaultValue:\"\"},faq8Answer:{type:ControlType.String,title:\"FAQ8 A\",defaultValue:\"\",displayTextArea:true},faq9Question:{type:ControlType.String,title:\"FAQ9 Q\",defaultValue:\"\"},faq9Answer:{type:ControlType.String,title:\"FAQ9 A\",defaultValue:\"\",displayTextArea:true}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"StructuredDataJsonLd\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutHeight\":\"fixed\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./StructuredDataJsonLd.map"],"mappings":"kMAAgJ,SAAS,EAAyB,EAAO,CAAC,IAAM,EAAQ,EAAO,KAAK,EAAE,GAAG,EAAQ,OAAO,EAAG,GAAG,CAA+B,IAAM,EAAW,IAA9B,IAAI,CAA+B,CAAC,CAAC,SAAS,EAAE,OAAO,EAAW,SAAS,GAAG,EAAE,EAAW,GAAG,EAAW,EAAG,MAAa,CAAC,OAAO,EAAQ,SAAS,GAAG,EAAE,EAAQ,GAAG,EAAQ,EAAG,CAAE,GAAU,IAAS,QAAa,EAAO,U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