{"version":3,"file":"PageStructuredData.DDmt4lFx.mjs","names":["React.useMemo"],"sources":["https:/framerusercontent.com/modules/0wUZxXZogHwoRazd9SKB/FVgubOrHtBtYwx8AZQVf/PageStructuredData.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import*as React from\"react\";import{addPropertyControls,ControlType}from\"framer\";const ORIGIN=\"https://montai.jp\";/**\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight fixed\n */export default function PageStructuredData(props){const{path,pageType,pageName,description,crumb2Name,crumb2Path,crumb3Name}=props;const safeJsonLd=React.useMemo(()=>{if(!pageName||!path)return\"\";const url=ORIGIN+path;const page={\"@type\":pageType||\"WebPage\",\"@id\":url+\"#webpage\",url,name:pageName,inLanguage:\"ja\",isPartOf:{\"@id\":ORIGIN+\"/#website\"},publisher:{\"@id\":ORIGIN+\"/#organization\"}};if(description)page.description=description;const items=[{\"@type\":\"ListItem\",position:1,name:\"ホーム\",item:ORIGIN+\"/\"}];if(crumb2Name){items.push({\"@type\":\"ListItem\",position:2,name:crumb2Name,item:crumb2Path?ORIGIN+crumb2Path:url});}if(crumb3Name){items.push({\"@type\":\"ListItem\",position:3,name:crumb3Name,item:url});}const data={\"@context\":\"https://schema.org\",\"@graph\":[page,{\"@type\":\"BreadcrumbList\",\"@id\":url+\"#breadcrumb\",itemListElement:items}]};return JSON.stringify(data).replace(/<\\/script/gi,\"<\\\\/script\");},[path,pageType,pageName,description,crumb2Name,crumb2Path,crumb3Name]);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(PageStructuredData,{path:{type:ControlType.String,title:\"パス\",defaultValue:\"\",placeholder:\"/about\"},pageType:{type:ControlType.Enum,title:\"ページ種別\",options:[\"WebPage\",\"AboutPage\",\"ContactPage\",\"CollectionPage\",\"FAQPage\"],defaultValue:\"WebPage\"},pageName:{type:ControlType.String,title:\"ページ名\",defaultValue:\"\"},description:{type:ControlType.String,title:\"description\",defaultValue:\"\",displayTextArea:true},crumb2Name:{type:ControlType.String,title:\"パンくず2\",defaultValue:\"\"},crumb2Path:{type:ControlType.String,title:\"パンくず2のパス\",defaultValue:\"\"},crumb3Name:{type:ControlType.String,title:\"パンくず3\",defaultValue:\"\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"PageStructuredData\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"fixed\",\"framerSupportedLayoutWidth\":\"fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./PageStructuredData.map"],"mappings":"0KAGG,SAAwB,EAAmB,EAAM,CAAC,GAAK,CAAC,OAAK,WAAS,WAAS,cAAY,aAAW,aAAW,cAAY,EAAY,EAAWA,MAAkB,CAAC,GAAG,CAAC,GAAU,CAAC,EAAK,MAAM,GAAG,IAAM,EAAI,EAAO,EAAW,EAAK,CAAC,QAAQ,GAAU,UAAU,MAAM,EAAI,WAAW,MAAI,KAAK,EAAS,WAAW,KAAK,SAAS,CAAC,MAAM,4BAAkB,EAAE,UAAU,CAAC,MAAM,iCAAuB,CAAC,EAAK,IAAY,EAAK,YAAY,GAAY,IAAM,EAAM,CAAC,CAAC,QAAQ,WAAW,SAAS,EAAE,KAAK,MAAM,KAAK,oBAAU,CAAC,EAAK,GAAY,EAAM,KAAK,CAAC,QAAQ,WAAW,SAAS,EAAE,KAAK,EAAW,KAAK,EAAW,EAAO,EAAW,CAAG,CAAC,EAAM,GAAY,EAAM,KAAK,CAAC,QAAQ,WAAW,SAAS,EAAE,KAAK,EAAW,KAAK,CAAG,CAAC,EAAG,IAAM,EAAK,CAAC,WAAW,qBAAqB,SAAS,CAAC,EAAK,CAAC,QAAQ,i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