{"version":3,"file":"StructuredData.Bu6nVj-7.mjs","names":[],"sources":["https:/framerusercontent.com/modules/rEXCWMSmQi5fas6R4kU5/uqopoupTIX7bsJd1YG0z/ModalStore.js","https:/framerusercontent.com/modules/PFSzJg0xV0yKPqE9D8XB/k0aUpA2vsblWgot9ioDr/StructuredData.js"],"sourcesContent":["import{createStorePersist}from\"https://framerusercontent.com/modules/ecmnSddXBJpQsAujxCSQ/2zMFA9EQryEKkWl3wsPK/State.js\";export const useConflictModal=createStorePersist({isOpen:false,existingType:\"\",newType:\"\"},\"conflictModal\");\nexport const __FramerMetadata__ = {\"exports\":{\"useConflictModal\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./ModalStore.map","import{jsx as _jsx}from\"react/jsx-runtime\";import{forwardRef,useEffect}from\"react\";const ORGANIZATION_SCRIPT_ID=\"hdddepot-jsonld-organization\";const WEBSITE_SCRIPT_ID=\"hdddepot-jsonld-website\";const SITE_BREADCRUMB_SCRIPT_ID=\"hdddepot-jsonld-site-breadcrumb\";function canUseDom(){return typeof window!==\"undefined\"&&typeof document!==\"undefined\";}export function upsertJsonLdScript(id,payload){if(!canUseDom())return;const existing=document.getElementById(id);if(!payload){if(existing&&existing.parentNode===document.head){document.head.removeChild(existing);}return;}const script=existing instanceof HTMLScriptElement?existing:document.createElement(\"script\");script.id=id;script.type=\"application/ld+json\";script.text=JSON.stringify(payload);if(!existing){document.head.appendChild(script);}}export function setCanonicalUrl(url){if(!canUseDom()||!url)return;let canonical=document.querySelector(\"link[rel='canonical']\");if(!canonical){canonical=document.createElement(\"link\");canonical.setAttribute(\"rel\",\"canonical\");document.head.appendChild(canonical);}canonical.href=url;}export function setMetaDescription(content){if(!canUseDom())return;const value=(content||\"\").trim();let meta=document.querySelector(\"meta[name='description']\");if(!value){if(meta&&meta.parentNode===document.head){document.head.removeChild(meta);}return;}if(!meta){meta=document.createElement(\"meta\");meta.setAttribute(\"name\",\"description\");document.head.appendChild(meta);}meta.setAttribute(\"content\",value);}function normalizePathSegment(value){return value.replace(/[-_]+/g,\" \").replace(/\\s+/g,\" \").trim();}function toTitleCase(value){return normalizePathSegment(value).split(\" \").filter(Boolean).map(word=>word.charAt(0).toUpperCase()+word.slice(1)).join(\" \");}export function upsertInternalBreadcrumbFromCurrentPath(overrides){if(!canUseDom())return;const origin=window.location.origin;const pathname=window.location.pathname||\"\";const segments=pathname.split(\"/\").filter(Boolean);if(!pathname.startsWith(\"/\")||segments.length===0){upsertJsonLdScript(SITE_BREADCRUMB_SCRIPT_ID,null);return;}const itemListElement=[{\"@type\":\"ListItem\",position:1,name:\"Home\",item:`${origin}/`}];let currentPath=\"\";segments.forEach((segment,index)=>{currentPath+=`/${segment}`;const position=index+2;const explicitName=overrides?.[position];const name=explicitName||toTitleCase(decodeURIComponent(segment));if(!name)return;itemListElement.push({\"@type\":\"ListItem\",position,name,item:`${origin}${currentPath}`});});if(itemListElement.length<2){upsertJsonLdScript(SITE_BREADCRUMB_SCRIPT_ID,null);return;}upsertJsonLdScript(SITE_BREADCRUMB_SCRIPT_ID,{\"@context\":\"https://schema.org\",\"@type\":\"BreadcrumbList\",itemListElement});}export function setRobotsNoindexFollow(enabled){if(!canUseDom())return;let meta=document.querySelector(\"meta[name='robots'][data-seo='dynamic-noindex']\");if(!enabled){if(meta&&meta.parentNode===document.head){document.head.removeChild(meta);}return;}if(!meta){meta=document.createElement(\"meta\");meta.setAttribute(\"name\",\"robots\");meta.setAttribute(\"data-seo\",\"dynamic-noindex\");document.head.appendChild(meta);}meta.setAttribute(\"content\",\"noindex,follow\");}export function withFooterStructuredData(Component){return /*#__PURE__*/forwardRef(function WithFooterStructuredData(props,ref){useEffect(()=>{if(!canUseDom())return;upsertJsonLdScript(ORGANIZATION_SCRIPT_ID,{\"@context\":\"https://schema.org\",\"@type\":\"Organization\",name:\"HDD Depot\",url:\"https://hdddepot.com/\",logo:\"https://framerusercontent.com/images/aggDoCsxir7bxtUUU1Z3HNcbmc.jpg\",telephone:\"+1-617-402-2042\",email:\"hello@hdddepot.com\",address:{\"@type\":\"PostalAddress\",streetAddress:\"175R North St\",addressLocality:\"Newton\",addressRegion:\"MA\",postalCode:\"02460\",addressCountry:\"US\"}});upsertJsonLdScript(WEBSITE_SCRIPT_ID,{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",name:\"HDD Depot\",url:\"https://hdddepot.com/\"});},[]);return /*#__PURE__*/_jsx(Component,{ref:ref,...props});});}\nexport const __FramerMetadata__ = {\"exports\":{\"upsertInternalBreadcrumbFromCurrentPath\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"setMetaDescription\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"upsertJsonLdScript\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"setRobotsNoindexFollow\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"setCanonicalUrl\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withFooterStructuredData\":{\"type\":\"reactHoc\",\"name\":\"withFooterStructuredData\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./StructuredData.map"],"mappings":"yMAAwH,EAAc,EAAiB,EAAmB,CAAC,OAAO,GAAM,aAAa,GAAG,QAAQ,EAAE,EAAE,eAAe,KCAgC,SAAS,GAAW,CAAC,OAAc,IAAS,QAAa,OAAO,SAAW,GAAY,CAAC,SAAgB,EAAmB,EAAG,EAAQ,CAAC,GAAG,CAAC,EAAU,EAAE,OAAO,IAAM,EAAS,SAAS,eAAe,CAAE,EAAE,GAAG,CAAC,EAAQ,CAAI,GAAU,EAAS,aAAa,SAAS,MAAM,SAAS,KAAK,YAAY,CAAQ,EAAG,MAAO,CAAC,IAAM,EAAO,aAAoB,kBAAkB,EAAS,SAAS,cAAc,QAAQ,E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