{"version":3,"file":"SeoPageSchema.CIo2DAad.mjs","names":[],"sources":["https:/framerusercontent.com/modules/E0pTHkfuXZXWWZlSAlui/9G9tovFHz2E0n55NevwB/SeoPageSchema.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType,RenderTarget}from\"framer\";const PAIR=\"||\";const ENTRY=\";;\";function clean(value){return typeof value===\"string\"&&value.trim().length>0;}function rows(value){if(!clean(value))return[];return String(value).split(ENTRY).map(part=>part.trim()).filter(part=>part.length>0);}function splitPair(value){const index=value.indexOf(PAIR);if(index===-1)return[value.trim(),\"\"];return[value.slice(0,index).trim(),value.slice(index+PAIR.length).trim()];}/** Drops the \"1. \" prefix editors add to FAQ questions. */function tidyQuestion(value){return value.trim().replace(/^\\d+[.)]\\s*/,\"\");}/**\n * SEO · Page Schema\n *\n * Emits BreadcrumbList and/or FAQPage JSON-LD for a standard page.\n * Each list entry is one line using \"||\" to separate the two parts:\n *   Breadcrumbs — \"Home || /\"\n *   FAQs        — \"Question || Answer\"\n * Leave a list empty to omit that block.\n *\n * @framerIntrinsicWidth 210\n * @framerIntrinsicHeight 28\n *\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight fixed\n */export default function SeoPageSchema(props){const{siteUrl,crumbs,faqs,style}=props;const site=clean(siteUrl)?siteUrl.replace(/\\/+$/,\"\"):\"\";const blocks=[];const crumbRows=rows(crumbs).map(splitPair).filter(pair=>pair[0].length>0);if(crumbRows.length>0){blocks.push({\"@type\":\"BreadcrumbList\",itemListElement:crumbRows.map((pair,index)=>{const entry={\"@type\":\"ListItem\",position:index+1,name:pair[0]};if(pair[1].length>0){entry.item=/^https?:/.test(pair[1])?pair[1]:site+\"/\"+pair[1].replace(/^\\/+/,\"\");}return entry;})});}const faqRows=rows(faqs).map(splitPair).filter(pair=>pair[0].length>0&&pair[1].length>0);if(faqRows.length>0){blocks.push({\"@type\":\"FAQPage\",mainEntity:faqRows.map(pair=>({\"@type\":\"Question\",name:tidyQuestion(pair[0]),acceptedAnswer:{\"@type\":\"Answer\",text:pair[1]}}))});}const json=blocks.length>0?JSON.stringify({\"@context\":\"https://schema.org\",\"@graph\":blocks}):\"\";const onCanvas=RenderTarget.current()===RenderTarget.canvas;const label=\"JSON-LD \\xb7 \"+[crumbRows.length>0?\"Breadcrumb\":null,faqRows.length>0?\"FAQ \"+faqRows.length:null].filter(Boolean).join(\" + \");return /*#__PURE__*/_jsxs(\"div\",{style:{...style,position:\"relative\",display:onCanvas?\"flex\":\"none\",alignItems:\"center\",justifyContent:\"center\",gap:6,overflow:\"hidden\",borderRadius:6,border:\"1px dashed rgba(10, 31, 60, 0.35)\",background:\"rgba(29, 90, 168, 0.10)\",color:\"rgb(10, 31, 60)\",fontSize:11,fontWeight:600,letterSpacing:\"0.04em\",textTransform:\"uppercase\",fontFamily:\"Inter, sans-serif\"},children:[json?/*#__PURE__*/_jsx(\"script\",{type:\"application/ld+json\",dangerouslySetInnerHTML:{__html:json}}):null,onCanvas?blocks.length>0?label:\"JSON-LD \\xb7 empty\":null]});}addPropertyControls(SeoPageSchema,{siteUrl:{type:ControlType.String,title:\"Site URL\",defaultValue:\"https://www.epfconsultancy.co.in\"},crumbs:{type:ControlType.String,title:\"Breadcrumbs\",displayTextArea:true,defaultValue:\"Home || /\",placeholder:\"Home || / ;; Services || /services\",description:'Levels separated by \";;\", each as \"Name || /path\".'},faqs:{type:ControlType.String,title:\"FAQs\",displayTextArea:true,defaultValue:\"\",placeholder:\"Question || Answer ;; Question || Answer\",description:'Questions separated by \";;\", each as \"Question || Answer\".'}});SeoPageSchema.displayName=\"SEO \\xb7 Page Schema\";\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"SeoPageSchema\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerIntrinsicHeight\":\"28\",\"framerIntrinsicWidth\":\"210\",\"framerSupportedLayoutHeight\":\"fixed\",\"framerSupported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