{"version":3,"file":"DynamicContentSchema.BVLP1p4k.mjs","names":["React.useContext","React.useMemo","React.Fragment","React.forwardRef","useRef","React.useId","Image1","useMemo","_Fragment"],"sources":["https:/framerusercontent.com/modules/fQyFVlqQ0qPiT8YzBz6t/5WanWjv3aEmoh5vyHK97/v87eNetnB.js","https:/framerusercontent.com/modules/v2qhTEOuYNO94U1aCYzl/S1R8lNyQmswaMJq0jTH5/DynamicContentSchema.js"],"sourcesContent":["// Generated by Framer (0116799)\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{addFonts,addPropertyControls,ControlType,cx,getLoadingLazyAtYPosition,Image as Image1,useComponentViewport,useLocaleInfo,useVariantState,withCSS}from\"framer\";import{LayoutGroup,motion,MotionConfigContext}from\"framer-motion\";import*as React from\"react\";import{useRef}from\"react\";const cycleOrder=[\"BnUogkMw9\",\"lJ09gmyEA\"];const serializationHash=\"framer-Kzm7j\";const variantClassNames={BnUogkMw9:\"framer-v-bnq3kl\",lJ09gmyEA:\"framer-v-pnkwlb\"};function addPropertyOverrides(overrides,...variants){const nextOverrides={};variants?.forEach(variant=>variant&&Object.assign(nextOverrides,overrides[variant]));return nextOverrides;}const jDJXLA5qJ=undefined;const toResponsiveImage=value=>{if(typeof value===\"object\"&&value!==null&&typeof value.src===\"string\"){return value;}return typeof value===\"string\"?{src:value}:undefined;};const transition1={delay:0,duration:1,ease:[.79,.02,.24,.99],type:\"tween\"};const Transition=({value,children})=>{const config=React.useContext(MotionConfigContext);const transition=value??config.transition;const contextValue=React.useMemo(()=>({...config,transition}),[JSON.stringify(transition)]);return /*#__PURE__*/_jsx(MotionConfigContext.Provider,{value:contextValue,children:children});};const humanReadableVariantMap={Primary:\"BnUogkMw9\",Start:\"lJ09gmyEA\"};const Variants=motion.create(React.Fragment);const getProps=({height,id,thumbnail,width,...props})=>{return{...props,jDJXLA5qJ:thumbnail??props.jDJXLA5qJ??{pixelHeight:673,pixelWidth:1200,src:\"https://framerusercontent.com/images/2OdZh94Y7CDuFMolzRSuM2DM.jpeg?width=1200&height=673\",srcSet:\"https://framerusercontent.com/images/2OdZh94Y7CDuFMolzRSuM2DM.jpeg?scale-down-to=512&width=1200&height=673 512w,https://framerusercontent.com/images/2OdZh94Y7CDuFMolzRSuM2DM.jpeg?scale-down-to=1024&width=1200&height=673 1024w,https://framerusercontent.com/images/2OdZh94Y7CDuFMolzRSuM2DM.jpeg?width=1200&height=673 1200w\"},variant:humanReadableVariantMap[props.variant]??props.variant??\"BnUogkMw9\"};};const createLayoutDependency=(props,variants)=>{if(props.layoutDependency)return variants.join(\"-\")+props.layoutDependency;return variants.join(\"-\");};const Component=/*#__PURE__*/React.forwardRef(function(props,ref){const fallbackRef=useRef(null);const refBinding=ref??fallbackRef;const defaultLayoutId=React.useId();const{activeLocale,setLocale}=useLocaleInfo();const componentViewport=useComponentViewport();const{style,className,layoutId,variant,jDJXLA5qJ,...restProps}=getProps(props);const{baseVariant,classNames,clearLoadingGesture,gestureHandlers,gestureVariant,isLoading,setGestureState,setVariant,variants}=useVariantState({cycleOrder,defaultVariant:\"BnUogkMw9\",ref:refBinding,variant,variantClassNames});const layoutDependency=createLayoutDependency(props,variants);const sharedStyleClassNames=[];const scopingClassNames=cx(serializationHash,...sharedStyleClassNames);return /*#__PURE__*/_jsx(LayoutGroup,{id:layoutId??defaultLayoutId,children:/*#__PURE__*/_jsx(Variants,{animate:variants,initial:false,children:/*#__PURE__*/_jsx(Transition,{value:transition1,children:/*#__PURE__*/_jsx(Image1,{...restProps,...gestureHandlers,background:{alt:\"\",fit:\"fill\",loading:getLoadingLazyAtYPosition(componentViewport?.y||0),sizes:componentViewport?.width||\"100vw\",...toResponsiveImage(jDJXLA5qJ)},className:cx(scopingClassNames,\"framer-bnq3kl\",className,classNames),\"data-framer-name\":\"Primary\",layoutDependency:layoutDependency,layoutId:\"BnUogkMw9\",ref:refBinding,style:{mask:\"linear-gradient(90deg, rgba(0,0,0,1) 100%, rgba(0,0,0,0) 100%) add\",WebkitMask:\"linear-gradient(90deg, rgba(0,0,0,1) 100%, rgba(0,0,0,0) 100%) add\",...style},variants:{lJ09gmyEA:{mask:\"linear-gradient(90deg, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 0%) add\",WebkitMask:\"linear-gradient(90deg, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 0%) add\"}},...addPropertyOverrides({lJ09gmyEA:{\"data-framer-name\":\"Start\"}},baseVariant,gestureVariant)})})})});});const css=[\".framer-Kzm7j.framer-1x3okry, .framer-Kzm7j .framer-1x3okry { display: block; }\",\".framer-Kzm7j.framer-bnq3kl { height: 485px; overflow: hidden; position: relative; width: 1072px; }\"];/**\n * This is a generated Framer component.\n * @framerIntrinsicHeight 485\n * @framerIntrinsicWidth 1072\n * @framerCanvasComponentVariantDetails {\"propertyName\":\"variant\",\"data\":{\"default\":{\"layout\":[\"fixed\",\"fixed\"]},\"lJ09gmyEA\":{\"layout\":[\"fixed\",\"fixed\"]}}}\n * @framerVariables {\"jDJXLA5qJ\":\"thumbnail\"}\n * @framerImmutableVariables true\n * @framerDisplayContentsDiv false\n * @framerAutoSizeImages true\n * @framerComponentViewportWidth true\n * @framerColorSyntax true\n */const Framerv87eNetnB=withCSS(Component,css,\"framer-Kzm7j\");export default Framerv87eNetnB;Framerv87eNetnB.displayName=\"Work Image\";Framerv87eNetnB.defaultProps={height:485,width:1072};addPropertyControls(Framerv87eNetnB,{variant:{options:[\"BnUogkMw9\",\"lJ09gmyEA\"],optionTitles:[\"Primary\",\"Start\"],title:\"Variant\",type:ControlType.Enum},jDJXLA5qJ:{__defaultAssetReference:\"data:framer/asset-reference,2OdZh94Y7CDuFMolzRSuM2DM.jpeg?originalFilename=Indoor+Serenity+with+Greenery.jpeg&preferredSize=auto\",title:\"Thumbnail\",type:ControlType.ResponsiveImage}});addFonts(Framerv87eNetnB,[{explicitInter:true,fonts:[]}],{supportsExplicitInterCodegen:true});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"Framerv87eNetnB\",\"slots\":[],\"annotations\":{\"framerColorSyntax\":\"true\",\"framerContractVersion\":\"1\",\"framerCanvasComponentVariantDetails\":\"{\\\"propertyName\\\":\\\"variant\\\",\\\"data\\\":{\\\"default\\\":{\\\"layout\\\":[\\\"fixed\\\",\\\"fixed\\\"]},\\\"lJ09gmyEA\\\":{\\\"layout\\\":[\\\"fixed\\\",\\\"fixed\\\"]}}}\",\"framerComponentViewportWidth\":\"true\",\"framerIntrinsicHeight\":\"485\",\"framerImmutableVariables\":\"true\",\"framerDisplayContentsDiv\":\"false\",\"framerIntrinsicWidth\":\"1072\",\"framerAutoSizeImages\":\"true\",\"framerVariables\":\"{\\\"jDJXLA5qJ\\\":\\\"thumbnail\\\"}\"}},\"Props\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./v87eNetnB.map","import{jsx as _jsx,jsxs as _jsxs,Fragment as _Fragment}from\"react/jsx-runtime\";import{addPropertyControls,ControlType,useRouter}from\"framer\";import{useMemo}from\"react\";// DynamicContentSchema: JSON-LD for CMS detail pages (no visible UI).\n// Original request: render a <script type=\"application/ld+json\"> with @context, @type, name, description and\n// image (only when imageUrl is nonblank); bindable string controls so CMS pages pass dynamic values.\n// 2026-10-17 (Chat 2, Pinterest Rich Pins): Framer always prints its own og:type=\"website\" before our\n// og:type=\"article\" custom-code tag and it cannot be removed, so Pinterest does not see blog posts as articles.\n// Pinterest also accepts schema.org Article MICRODATA in the page body (url, name, description required).\n// For schemaType BlogPosting or Article this component now also renders a hidden schema.org/Article\n// microdata block with the page URL (from the router, e.g. /blog/:slug), name, description and image.\nconst SITE=\"https://hausinteriordesign.ca\";function usePageUrl(fallback){let router=null;try{router=useRouter();}catch(e){router=null;}try{const route=router&&router.routes&&router.routes[router.currentRouteId];const vars=router&&router.currentPathVariables||{};if(route&&typeof route.path===\"string\"){const path=route.path.replace(/:([A-Za-z0-9_]+)/g,(_m,k)=>vars[k]!=null?encodeURIComponent(String(vars[k])):\"\");if(path&&path.indexOf(\":\")===-1)return SITE+path;}}catch(e){// fall through\n}return fallback;}/**\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight fixed\n */export default function DynamicContentSchema(props){const{schemaType=\"WebPage\",contentName=\"\",description=\"\",imageUrl=\"\",websiteUrl=\"\"}=props;const isArticle=/^(BlogPosting|Article|NewsArticle)$/i.test((schemaType||\"\").trim());const pageUrl=usePageUrl((websiteUrl||\"\").trim());const jsonLd=useMemo(()=>{const schema={\"@context\":\"https://schema.org\",\"@type\":schemaType,name:contentName,description};const trimmedImageUrl=(imageUrl||\"\").trim();if(trimmedImageUrl){schema.image=trimmedImageUrl;}return JSON.stringify(schema);},[schemaType,contentName,description,imageUrl]);const img=(imageUrl||\"\").trim();return /*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(\"script\",{type:\"application/ld+json\",dangerouslySetInnerHTML:{__html:jsonLd}}),isArticle&&pageUrl?/*#__PURE__*/_jsxs(\"div\",{itemScope:true,itemType:\"https://schema.org/Article\",style:{display:\"none\"},\"aria-hidden\":\"true\",children:[/*#__PURE__*/_jsx(\"link\",{itemProp:\"url\",href:pageUrl}),/*#__PURE__*/_jsx(\"meta\",{itemProp:\"name\",content:contentName}),/*#__PURE__*/_jsx(\"meta\",{itemProp:\"headline\",content:contentName}),/*#__PURE__*/_jsx(\"meta\",{itemProp:\"description\",content:description}),img?/*#__PURE__*/_jsx(\"link\",{itemProp:\"image\",href:img}):null]}):null]});}addPropertyControls(DynamicContentSchema,{schemaType:{type:ControlType.String,title:\"Schema Type\",defaultValue:\"WebPage\"},contentName:{type:ControlType.String,title:\"Content Name\",defaultValue:\"Sample Content\"},description:{type:ControlType.String,title:\"Description\",defaultValue:\"Summary or excerpt for this CMS detail page.\",displayTextArea:true},imageUrl:{type:ControlType.String,title:\"Image URL\",defaultValue:\"\",placeholder:\"https://example.com/image.jpg\"},websiteUrl:{type:ControlType.String,title:\"Website URL\",defaultValue:\"\",placeholder:\"https://example.com\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"DynamicContentSchema\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"fixed\",\"framerSupportedLayoutHeight\":\"fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./DynamicContentSchema.map"],"mappings":"8VAC4e,SAAS,EAAqB,EAAU,GAAG,EAAS,CAAC,IAAM,EAAc,CAAC,EAAuF,OAArF,GAAU,QAAQ,GAAS,GAAS,OAAO,OAAO,EAAc,EAAU,EAAQ,CAAC,EAAS,CAAc,uCAAxnB,IAAqK,IAAkE,IAA4B,EAAiC,EAAW,CAAC,YAAY,WAAW,EAAQ,EAAkB,eAAqB,EAAkB,CAAC,UAAU,kBAAkB,UAAU,iBAAiB,EAAyN,EAAkB,GAAW,OAAO,GAAQ,UAAU,GAAc,OAAO,EAAM,KAAM,SAAiB,EAAc,OAAO,GAAQ,SAAS,CAAC,IAAI,CAAK,EAAE,IAAA,GAAkB,EAAY,CAAC,MAAM,EAAE,SAAS,EAAE,KAAK,CAAC,IAAI,IAAI,IAAI,GAAG,EAAE,KAAK,OAAO,EAAQ,GAAY,CAAC,QAAM,cAAY,CAAC,IAAM,EAAOA,EAAiB,CAAmB,EAAQ,EAAW,GAAO,EAAO,WAAiB,EAAaC,OAAmB,CAAC,GAAG,EAAO,YAAU,GAAG,CAAC,KAAK,UAAU,CAAU,CAAC,CAAC,EAAE,OAAoB,EAAK,EAAoB,SAAS,CAAC,MAAM,EAAsB,UAAQ,CAAC,CAAE,EAAQ,EAAwB,CAAC,QAAQ,YAAY,MAAM,WAAW,EAAQ,EAAS,EAAO,OAAOC,CAAc,EAAQ,GAAU,CAAC,SAAO,KAAG,YAAU,QAAM,GAAG,MAAgB,CAAC,GAAG,EAAM,UAAU,GAAW,EAAM,WAAW,C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