{"version":3,"file":"ArticleStructuredData.cYLsrQlI.mjs","names":["React.useMemo","__esmMin","init_ssg_sandbox_shims","pe","init_npm_react_18_3_1","init_jsx_runtime","c","window","addPropertyControls","init_framer_CN96F41L","ControlType","toISO","input","trimmed","parsed","ArticleStructuredData","props","safeJsonLd","headline","url","published","datePublished","modified","dateModified","data","description","image","init_ArticleStructuredData"],"sources":["https:/framerusercontent.com/modules/fL70vRm2vezTYamxTvK6/AOKAuoosyynkYjP7aLWg/ArticleStructuredData.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import*as React from\"react\";import{addPropertyControls,ControlType}from\"framer\";function toISO(input){if(!input)return\"\";const trimmed=input.trim();if(!trimmed)return\"\";const parsed=new Date(trimmed);if(isNaN(parsed.getTime()))return\"\";return parsed.toISOString();}/**\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight fixed\n */export default function ArticleStructuredData(props){const{headline,description,datePublished,dateModified,image}=props;const safeJsonLd=React.useMemo(()=>{if(!headline)return\"\";const url=typeof window!==\"undefined\"?window.location.origin+window.location.pathname:\"\";const published=toISO(datePublished);const modified=toISO(dateModified)||published;const data={\"@context\":\"https://schema.org\",\"@type\":\"BlogPosting\",mainEntityOfPage:{\"@type\":\"WebPage\",\"@id\":url},headline:headline.slice(0,110),url,inLanguage:\"ja\",author:{\"@type\":\"Organization\",name:\"人的リスク研究室\",url:\"https://montai.jp/column\",parentOrganization:{\"@id\":\"https://montai.jp/#organization\"}},publisher:{\"@id\":\"https://montai.jp/#organization\"}};if(description)data.description=description;if(published)data.datePublished=published;if(modified)data.dateModified=modified;if(image)data.image=[image];return JSON.stringify(data).replace(/<\\/script/gi,\"<\\\\/script\");},[headline,description,datePublished,dateModified,image]);return /*#__PURE__*/_jsx(\"div\",{style:{position:\"relative\",width:0,height:0,overflow:\"hidden\",pointerEvents:\"none\"},\"aria-hidden\":\"true\",children:safeJsonLd?/*#__PURE__*/_jsx(\"script\",{type:\"application/ld+json\",dangerouslySetInnerHTML:{__html:safeJsonLd}}):null});}addPropertyControls(ArticleStructuredData,{headline:{type:ControlType.String,title:\"記事タイトル\",defaultValue:\"\"},description:{type:ControlType.String,title:\"description\",defaultValue:\"\",displayTextArea:true},datePublished:{type:ControlType.String,title:\"公開日\",defaultValue:\"\"},dateModified:{type:ControlType.String,title:\"更新日\",defaultValue:\"\"},image:{type:ControlType.String,title:\"アイキャッチ画像URL\",defaultValue:\"\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"ArticleStructuredData\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutHeight\":\"fixed\",\"framerSupportedLayoutWidth\":\"fixed\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./ArticleStructuredData.map"],"mappings":"A,wLAA2H,SAASW,EAAM,EAAM,CAAC,GAAG,CAACC,EAAM,MAAM,GAAG,IAAMC,EAAQD,EAAM,KAAK,EAAE,GAAG,CAACC,EAAQ,MAAM,GAAG,IAAMC,EAAO,IAAI,KAAKD,CAAO,EAAsC,OAAjC,MAAMC,EAAO,QAAQ,CAAC,EAAQ,GAAUA,EAAO,YAAY,CAAE,CAGhT,SAAwBC,EAAsB,EAAM,CAAC,GAAK,CAAC,WAAS,cAAY,gBAAc,eAAa,SAAOC,EAAYC,EAAWjB,MAAkB,CAAC,GAAG,CAACkB,EAAS,MAAM,GAAG,IAAMC,EAAWZ,IAAS,OAA4D,GAAhDA,EAAO,SAAS,OAAOA,EAAO,SAAS,SAAkBa,EAAUT,EAAMU,CAAa,EAAQC,EAASX,EAAMY,CAAY,GAAGH,EAAgBI,EAAK,CAAC,WAAW,qBAAqB,QAAQ,cAAc,iBAAiB,CAAC,QAAQ,UAAU,MAAML,CAAG,EAAE,SAASD,EAAS,MAAM,EAAE,GAAG,EAAE,MAAI,WAAW,KAAK,OAAO,CAAC,QAAQ,eAAe,KAAK,WAAW,IAAI,2BAA2B,mBAA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