{"version":3,"file":"StructuredData.DoEdEpux.mjs","names":["__esmMin","p","c","init_jsx_runtime","addPropertyControls","RenderTarget","init_framer_BWFVvmND","ControlType","StructuredData","props","isCanvas","items","faq","q","org","providerUrl","providerName","orgDescription","knowsAbout","sameAs","graph","mode","url","serviceName","serviceDescription","json","style","init_StructuredData"],"sources":["https:/framerusercontent.com/modules/bQcxysULEHQbAlUJ0kVm/UtLwG1Jw92D2hGUGnVt4/StructuredData.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType,RenderTarget}from\"framer\";/**\n * Rendert JSON-LD (Service + FAQPage) in de HTML. Onzichtbaar op de site.\n * Houd de FAQ-tekst gelijk aan de zichtbare FAQ op de pagina.\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight fixed\n */export default function StructuredData(props){const{mode,orgDescription,sameAs,knowsAbout,serviceName,serviceDescription,url,providerName,providerUrl,areaServed,faq,style}=props;const isCanvas=RenderTarget.current()===RenderTarget.canvas;const items=(faq||[]).filter(q=>q.question&&q.answer);const org={\"@type\":\"Organization\",\"@id\":providerUrl+\"#organization\",name:providerName,url:providerUrl,description:orgDescription||undefined,areaServed,knowsAbout:(knowsAbout||[]).filter(Boolean),sameAs:(sameAs||[]).filter(Boolean)};const graph=mode===\"organization\"?[org,{\"@type\":\"WebSite\",\"@id\":providerUrl+\"#website\",url:providerUrl,name:providerName,inLanguage:\"nl-NL\",publisher:{\"@id\":providerUrl+\"#organization\"}}]:[{\"@type\":\"Service\",\"@id\":url+\"#service\",name:serviceName,description:serviceDescription,url,serviceType:\"B2B e-commerce\",areaServed:areaServed,provider:{\"@type\":\"Organization\",name:providerName,url:providerUrl}}];if(mode===\"faq\")graph.length=0;if(items.length>0){graph.push({\"@type\":\"FAQPage\",\"@id\":url+\"#faq\",mainEntity:items.map(q=>({\"@type\":\"Question\",name:q.question,acceptedAnswer:{\"@type\":\"Answer\",text:q.answer}}))});}const json=JSON.stringify({\"@context\":\"https://schema.org\",\"@graph\":graph});return /*#__PURE__*/_jsxs(\"div\",{style:{...style,overflow:\"hidden\"},children:[/*#__PURE__*/_jsx(\"script\",{type:\"application/ld+json\",dangerouslySetInnerHTML:{__html:json}}),isCanvas&&/*#__PURE__*/_jsxs(\"div\",{style:{fontSize:11,color:\"#A1A1AA\",fontFamily:\"Inter, sans-serif\",padding:6,border:\"1px dashed #52525B\"},children:[\"JSON-LD: \",mode===\"organization\"?\"Organization + WebSite\":mode===\"faq\"?\"\":\"Service\",items.length>0?\" + FAQPage (\"+items.length+\")\":\"\"]})]});}StructuredData.defaultProps={mode:\"service\",orgDescription:\"\",sameAs:[],knowsAbout:[\"Magento\",\"Adobe Commerce\",\"Hyv\\xe4\",\"B2B e-commerce\",\"ERP-koppeling\",\"PIM\",\"OCI Punchout\"],serviceName:\"Hyv\\xe4 B2B Suite\",serviceDescription:\"\",url:\"https://www.epartment.nl/hyva-b2bsuite\",providerName:\"Epartment\",providerUrl:\"https://www.epartment.nl\",areaServed:\"NL\",faq:[]};addPropertyControls(StructuredData,{mode:{type:ControlType.Enum,title:\"Type\",options:[\"service\",\"organization\",\"faq\"],optionTitles:[\"Dienst\",\"Organisatie\",\"Alleen FAQ\"],defaultValue:\"service\"},orgDescription:{type:ControlType.String,title:\"Org. omschrijving\",displayTextArea:true,defaultValue:\"\",hidden:p=>p.mode!==\"organization\"},knowsAbout:{type:ControlType.Array,title:\"Expertise\",control:{type:ControlType.String},defaultValue:[\"Magento\",\"Adobe Commerce\",\"Hyv\\xe4\",\"B2B e-commerce\",\"ERP-koppeling\",\"PIM\",\"OCI Punchout\"],hidden:p=>p.mode!==\"organization\"},sameAs:{type:ControlType.Array,title:\"Profielen (sameAs)\",control:{type:ControlType.String},defaultValue:[],hidden:p=>p.mode!==\"organization\"},serviceName:{type:ControlType.String,title:\"Dienst\",defaultValue:\"Hyv\\xe4 B2B Suite\"},serviceDescription:{type:ControlType.String,title:\"Omschrijving\",displayTextArea:true,defaultValue:\"\"},url:{type:ControlType.String,title:\"URL\",defaultValue:\"https://www.epartment.nl/hyva-b2bsuite\"},providerName:{type:ControlType.String,title:\"Aanbieder\",defaultValue:\"Epartment\"},providerUrl:{type:ControlType.String,title:\"Aanbieder URL\",defaultValue:\"https://www.epartment.nl\"},areaServed:{type:ControlType.String,title:\"Gebied\",defaultValue:\"NL\"},faq:{type:ControlType.Array,title:\"FAQ\",control:{type:ControlType.Object,controls:{question:{type:ControlType.String,title:\"Vraag\",defaultValue:\"\"},answer:{type:ControlType.String,title:\"Antwoord\",displayTextArea:true,defaultValue:\"\"}}},defaultValue:[]}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"StructuredData\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutHeight\":\"fixed\",\"framerSupportedLayoutWidth\":\"fixed\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./StructuredData.map"],"mappings":"A,2KAKG,SAAwBQ,EAAe,EAAM,CAAC,GAAK,CAAC,OAAK,iBAAe,SAAO,aAAW,cAAY,qBAAmB,MAAI,eAAa,cAAY,aAAW,MAAI,SAAOC,EAAYC,EAASL,EAAa,QAAQ,IAAIA,EAAa,OAAaM,GAAOC,GAAK,CAAC,EAAA,CAAG,OAAO,GAAGC,EAAE,UAAUA,EAAE,MAAM,EAAQC,EAAI,CAAC,QAAQ,eAAe,MAAMC,EAAY,gBAAgB,KAAKC,EAAa,IAAID,EAAY,YAAYE,GAAgB,IAAA,GAAU,aAAW,YAAYC,GAAY,CAAC,EAAA,CAAG,OAAO,OAAO,EAAE,QAAQC,GAAQ,CAAC,EAAA,CAAG,OAAO,OAAO,CAAC,EAAQC,EAAMC,IAAO,eAAe,CAACP,EAAI,CAAC,QAAQ,UAAU,MAAMC,EAAY,WAAW,IAAIA,EAAY,KAAKC,EAAa,WAAW,QAAQ,UAAU,CAAC,MAAMD,EAAY,eAAe,CAAC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