{"version":3,"file":"AnnyStructuredData.CMdkCRii.mjs","names":["localeUrl","url","__esmMin","init_jsx_runtime","c","useLocaleInfo","addPropertyControls","init_framer_BisrWwwE","ControlType","RenderTarget","routerPath","url","currencyFor","parsePlans","pageLocale","canvasBadgeStyle","ORG_ID","init_AnnySchema","SOFTWARE_ID","useRouter","toJson","parseFaqText","raw","pair","p","q","a","pathOf","AnnyStructuredData","url$1","props","router","locale","activeLocale","pageUrl","serviceUrl","priceCurrency","currency","planPrices","plans","DEFAULT_AI_PLANS","prices","name","graph","UNIT","items","faqText","faqs","f","init_AnnyStructuredData"],"sources":["https:/framerusercontent.com/modules/hTqnkmDoZXn6IkDlZvjL/HIrnVtx6hJOBwugEc4lw/AnnyStructuredData.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType,RenderTarget,useLocaleInfo}from\"framer\";import{canvasBadgeStyle,currencyFor,ORG_ID,pageLocale,parsePlans,routerPath,SOFTWARE_ID,toJson,url as localeUrl,useRouter}from\"https://framerusercontent.com/modules/FTMNCnfWEiVgLb2dp3xR/MdCN6r9KsHDKP2DgN8wF/AnnySchema.js\";// The plans shown on /solutions/ki-telefonassistent and /solutions/ki-chatbot, monthly, plus VAT.\nconst DEFAULT_AI_PLANS=\"AI Sidekick=59; AI Employee=249; AI Team=599\";const UNIT={de:\"pro Monat, zzgl. MwSt.\",en:\"per month, plus applicable taxes\",fr:\"par mois, HT\"};// \"Question :: Answer || Question :: Answer\" — one line, so it stays editable and translatable\nfunction parseFaqText(raw){return(raw||\"\").split(\"||\").map(pair=>pair.split(\"::\")).filter(p=>p.length>=2).map(([q,...a])=>({question:q.trim(),answer:a.join(\"::\").trim()}));}function pathOf(raw){if(!raw)return\"\";try{return new URL(raw,\"https://anny.co\").pathname;}catch{return\"\";}}/**\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight fixed\n * @framerIntrinsicWidth 1\n * @framerIntrinsicHeight 1\n */export default function AnnyStructuredData(props){const{name=\"anny Assistant\",description=\"\",url=\"\",currency=\"\",plans=\"\",faqs=[],faqText=\"\"}=props;const{activeLocale}=useLocaleInfo();const router=useRouter();const locale=pageLocale(activeLocale);const pageUrl=localeUrl(locale,routerPath(router)||\"/\");const serviceUrl=localeUrl(locale,pathOf(url)||routerPath(router)||\"/\");const priceCurrency=currency.trim()||currencyFor(locale);const planPrices=parsePlans(plans||DEFAULT_AI_PLANS);const prices=planPrices.map(p=>p.price);if(RenderTarget.current()===RenderTarget.canvas){return /*#__PURE__*/_jsx(\"div\",{style:canvasBadgeStyle,children:`Structured data: ${name} \\xb7 ${planPrices.length} plans`});}const graph=[{\"@type\":\"Service\",\"@id\":`${serviceUrl}#service`,name,description,url:serviceUrl,serviceType:name,provider:{\"@id\":ORG_ID},brand:{\"@id\":ORG_ID},isRelatedTo:{\"@id\":SOFTWARE_ID},offers:prices.length?{\"@type\":\"AggregateOffer\",\"@id\":`${serviceUrl}#offers`,lowPrice:Math.min(...prices).toFixed(2),highPrice:Math.max(...prices).toFixed(2),priceCurrency,offerCount:planPrices.length,offers:planPrices.map(p=>({\"@type\":\"Offer\",name:p.name,price:p.price.toFixed(2),priceCurrency,url:serviceUrl,priceSpecification:{\"@type\":\"UnitPriceSpecification\",price:p.price.toFixed(2),priceCurrency,unitText:UNIT[locale.lang],billingDuration:\"P1M\",valueAddedTaxIncluded:false}}))}:undefined}];const items=[...parseFaqText(faqText),...faqs].filter(f=>f?.question&&f?.answer);if(items.length){graph.push({\"@type\":\"FAQPage\",\"@id\":`${pageUrl}#faq`,inLanguage:locale.inLanguage,isPartOf:{\"@id\":`${pageUrl}#webpage`},mainEntity:items.map(f=>({\"@type\":\"Question\",name:f.question,acceptedAnswer:{\"@type\":\"Answer\",text:f.answer}}))});}return /*#__PURE__*/_jsx(\"div\",{\"aria-hidden\":\"true\",style:{position:\"relative\",width:1,height:1,overflow:\"hidden\"},children:/*#__PURE__*/_jsx(\"script\",{type:\"application/ld+json\",dangerouslySetInnerHTML:{__html:toJson(graph)}})});}addPropertyControls(AnnyStructuredData,{name:{type:ControlType.String,title:\"Name\",defaultValue:\"anny Assistant\"},description:{type:ControlType.String,title:\"Description\",defaultValue:\"\",displayTextArea:true},url:{type:ControlType.String,title:\"URL\",description:\"Service page; its path is localized. Empty = this page\",defaultValue:\"\",preventLocalization:true},category:{type:ControlType.String,title:\"Category\",description:\"Unused (kept for old instances)\",defaultValue:\"\",preventLocalization:true},lowPrice:{type:ControlType.Number,title:\"Low price\",description:\"Unused: derived from Plans\",defaultValue:59,min:0,max:1e5},highPrice:{type:ControlType.Number,title:\"High price\",description:\"Unused: derived from Plans\",defaultValue:599,min:0,max:1e5},currency:{type:ControlType.String,title:\"Currency\",description:\"Empty = by locale (en USD, de/fr EUR)\",defaultValue:\"\",preventLocalization:true},plans:{type:ControlType.String,title:\"Plans\",description:`Monthly prices as shown. Empty = ${DEFAULT_AI_PLANS}`,defaultValue:\"\",preventLocalization:true},faqText:{type:ControlType.String,title:\"FAQ text\",description:\"Only on pages without the FAQ component\",defaultValue:\"\",displayTextArea:true},faqs:{type:ControlType.Array,title:\"FAQs\",control:{type:ControlType.Object,controls:{question:{type:ControlType.String,title:\"Question\",defaultValue:\"\"},answer:{type:ControlType.String,title:\"Answer\",defaultValue:\"\",displayTextArea:true}}},defaultValue:[{question:\"\",answer:\"\"}]}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"AnnyStructuredData\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"fixed\",\"framerSupportedLayoutHeight\":\"fixed\",\"framerIntrinsicWidth\":\"1\",\"framerIntrinsicHeight\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}"],"mappings":"A,oSAEA,SAASqB,EAAa,EAAI,CAAC,OAAOC,GAAK,GAAA,CAAI,MAAM,IAAI,CAAC,CAAC,IAAI,GAAMC,EAAK,MAAM,IAAI,CAAC,CAAC,C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