{"version":3,"file":"StructuredData.2K43_VBi.mjs","names":["__esmMin","init_jsx_runtime","c","addPropertyControls","init_framer_BisrWwwE","ControlType","isoDate","value","compact","out","key","obj","v","StructuredData","props","sectionUrl","SITE","sectionPath","crumbs","sectionName","graph","isDetail","kind","title","slug","pageUrl","description","image","datePublished","category","ORG","json","init_StructuredData","p"],"sources":["https:/framerusercontent.com/modules/qCBQ53mwEFGiwGnosh7p/fqEd2fmCeXFpUV7OL8z6/StructuredData.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";const SITE=\"https://formeo.id\";const ORG=`${SITE}/#organization`;function isoDate(value){if(!value)return undefined;const t=new Date(value);return isNaN(t.getTime())?undefined:t.toISOString().slice(0,10);}function compact(obj){const out={};for(const key of Object.keys(obj)){const v=obj[key];if(v===undefined||v===null||v===\"\")continue;out[key]=v;}return out;}/**\n * Structured Data (JSON-LD). Renders no visible output.\n *\n * @framerIntrinsicWidth 1\n * @framerIntrinsicHeight 1\n *\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight fixed\n */export default function StructuredData(props){const{kind=\"breadcrumb\",sectionName=\"\",sectionPath=\"\",title=\"\",slug=\"\",description=\"\",image,datePublished,category=\"\"}=props;const sectionUrl=`${SITE}${sectionPath}`;const crumbs=[{\"@type\":\"ListItem\",position:1,name:\"Home\",item:`${SITE}/`}];if(sectionName&&sectionPath){crumbs.push({\"@type\":\"ListItem\",position:2,name:sectionName,item:sectionUrl});}const graph=[];const isDetail=kind!==\"breadcrumb\"&&title&&slug;const pageUrl=isDetail?`${sectionUrl}/${slug}`:sectionUrl;if(isDetail){crumbs.push({\"@type\":\"ListItem\",position:crumbs.length+1,name:title,item:pageUrl});}if(kind===\"blogPosting\"&&isDetail){graph.push(compact({\"@type\":\"BlogPosting\",\"@id\":`${pageUrl}#article`,mainEntityOfPage:pageUrl,url:pageUrl,headline:title,description:description||undefined,image:image?.src?[image.src.split(\"?\")[0]]:undefined,datePublished:isoDate(datePublished),articleSection:category||undefined,inLanguage:\"en\",author:{\"@id\":ORG},publisher:{\"@id\":ORG},isPartOf:{\"@id\":`${SITE}/#website`}}));}if(kind===\"service\"&&isDetail){graph.push(compact({\"@type\":\"Service\",\"@id\":`${pageUrl}#service`,name:title,serviceType:title,description:description||undefined,url:pageUrl,category:\"Cosmetic contract manufacturing\",provider:{\"@id\":ORG}}));}if(crumbs.length>1){graph.push({\"@type\":\"BreadcrumbList\",itemListElement:crumbs});}if(graph.length===0)return null;const json=JSON.stringify({\"@context\":\"https://schema.org\",\"@graph\":graph}).replace(/</g,\"\\\\u003c\");return /*#__PURE__*/_jsx(\"div\",{\"aria-hidden\":\"true\",style:{position:\"relative\",width:1,height:1,overflow:\"hidden\",pointerEvents:\"none\"},children:/*#__PURE__*/_jsx(\"script\",{type:\"application/ld+json\",dangerouslySetInnerHTML:{__html:json}})});}addPropertyControls(StructuredData,{kind:{type:ControlType.Enum,title:\"Type\",options:[\"breadcrumb\",\"blogPosting\",\"service\"],optionTitles:[\"Breadcrumb only\",\"Blog post\",\"Service\"],defaultValue:\"breadcrumb\"},sectionName:{type:ControlType.String,title:\"Section name\",defaultValue:\"Blog\"},sectionPath:{type:ControlType.String,title:\"Section path\",defaultValue:\"/blog\"},title:{type:ControlType.String,title:\"Title\",defaultValue:\"\",hidden:p=>p.kind===\"breadcrumb\"},slug:{type:ControlType.String,title:\"Slug\",defaultValue:\"\",hidden:p=>p.kind===\"breadcrumb\"},description:{type:ControlType.String,title:\"Description\",defaultValue:\"\",displayTextArea:true,hidden:p=>p.kind===\"breadcrumb\"},image:{type:ControlType.ResponsiveImage,title:\"Image\",hidden:p=>p.kind!==\"blogPosting\"},datePublished:{type:ControlType.Date,title:\"Published\",optional:true,hidden:p=>p.kind!==\"blogPosting\"},category:{type:ControlType.String,title:\"Category\",defaultValue:\"\",hidden:p=>p.kind!==\"blogPosting\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"StructuredData\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\":\"fixed\",\"framerContractVersion\":\"1\",\"framerIntrinsicWidth\":\"1\",\"framerSupportedLayoutHeight\":\"fixed\",\"framerIntrinsicHeight\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./StructuredData.map"],"mappings":"A,4JAAgK,SAASM,EAAQ,EAAM,CAAC,GAAG,CAACC,EAAM,OAAiB,IAAM,EAAE,IAAI,KAAKA,CAAK,EAAE,OAAO,MAAM,EAAE,QAAQ,CAAC,EAAE,IAAA,GAAU,EAAE,YAAY,CAAC,CAAC,MAAM,EAAE,EAAE,CAAE,CAAC,SAASC,EAAQ,EAAI,CAAC,IAAMC,EAAI,CAAC,EAAE,IAAI,IAAMC,KAAO,OAAO,KAAKC,CAAG,EAAE,CAAC,IAAMC,EAAED,EAAID,GAAQE,GAAmB,MAAMA,IAAI,KAAY,EAAIF,GAAKE,EAAE,CAAC,OAAOH,CAAI,CAQnc,SAAwBI,EAAe,EAAM,CAAC,GAAK,CAAC,OAAK,aAAa,cAAY,GAAG,cAAY,GAAG,QAAM,GAAG,OAAK,GAAG,cAAY,GAAG,QAAM,gBAAc,WAAS,IAAIC,EAAYC,EAAW,GAAGC,IAAOC,IAAoBC,EAAO,CAAC,CAAC,QAAQ,WAAW,SAAS,EAAE,KAAK,OAAO,KAAK,GAAGF,EAAK,EAAE,CAAC,EAAKG,GAAaF,GAAaC,EAAO,KAAK,CAAC,QAAQ,WAAW,SAAS,EAAE,KAAKC,EAAY,KAAKJ,CAAU,CAAC,EAAG,IAAMK,EAAM,CAAC,EAAQC,EAASC,IAAO,cAAcC,GAAOC,EAAWC,EAAQJ,EAAS,GAAGN,EAAW,GAAGS,IAAOT,EAA40B,GAA9zBM,GAAUH,EAAO,KAAK,CAAC,QAAQ,WAAW,SAASA,EAAO,OAAO,EAAE,KAAKK,EAAM,KAAKE,CAAO,CAAC,EAAMH,IAA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