{"version":3,"file":"shared-lib.iFP1GO3C.mjs","names":["__esmMin","init_npm_react_18_3_1","init_ssg_sandbox_shims","p","c","init_jsx_runtime","ce","init_framer_BpuvUAiZ","addPropertyControls","ControlType","useDicFont","d","DIGITS_HREF","l","FONT_HREF","DIC_Header","props","baseCss","css","showDisclosure","disclosureText","homePath","brandName","logo","trustText","T","FONT","init_Dic_header","metadata","init_siteMetadata"],"sources":["https:/framerusercontent.com/modules/vAKSxwcE0BpnCsBGckk5/NOhb71gGBcBe17MOdZ0H/Dic_header.js","https:/framerusercontent.com/modules/mQXOMgNyZfQNWBCPbJR7/kWnjQF7iYgO2zfL3e4tu/siteMetadata.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{useEffect}from\"react\";// DIC_Header.tsx\nimport{addPropertyControls,ControlType}from\"framer\";// ---- Shared DIC tokens (inlined so this file has no dependencies) ----\nconst T={ink:\"#13303F\",petrol:\"#1F5F73\",petrolDeep:\"#174B5B\",sea:\"#E3EFF1\",mist:\"#F4F7F8\",paper:\"#FFFFFF\",line:\"#D3DEE2\",muted:\"#4A6470\",amber:\"#F2B33D\",amberDeep:\"#D99A1F\",error:\"#B3261E\",success:\"#1E7A4C\"};const DIGITS_HREF=\"https://fonts.googleapis.com/css2?family=Figtree:wght@400;700&text=0123456789&display=swap\";const FONT=`\"Figtree\", \"Atkinson Hyperlegible\", system-ui, -apple-system, \"Segoe UI\", Roboto, sans-serif`;const FONT_HREF=\"https://fonts.googleapis.com/css2?family=Atkinson+Hyperlegible:ital,wght@0,400;0,700;1,400&display=swap\";// Atkinson Hyperlegible was designed by the Braille Institute for low-vision readers.\n// Chosen deliberately: a lot of this audience is stressed, reading on a phone, in a Facebook in-app browser.\nfunction useDicFont(){useEffect(()=>{if(typeof document===\"undefined\")return;if(!document.getElementById(\"dic-digits\")){const d=document.createElement(\"link\");d.id=\"dic-digits\";d.rel=\"stylesheet\";d.href=DIGITS_HREF;document.head.appendChild(d);}if(document.getElementById(\"dic-font\"))return;const l=document.createElement(\"link\");l.id=\"dic-font\";l.rel=\"stylesheet\";l.href=FONT_HREF;document.head.appendChild(l);},[]);}// DSD eligibility-check bands. `value` is sent to Hubsolv EXACTLY as the DSD form sends it\n// (note: no comma in \"£1000\"). `label` is what people see. `id` travels in the URL (?debt=).\nconst DEBT_BANDS=[{id:\"1000-7199\",label:\"\\xa31,000 to \\xa37,199\",value:\"\\xa31000 to \\xa37,199\",level:\"33%\"},{id:\"7200-50000\",label:\"\\xa37,200 to \\xa350,000\",value:\"\\xa37,200 to \\xa350,000\",level:\"66%\"},{id:\"50001-plus\",label:\"\\xa350,001 or over\",value:\"\\xa350,001 or over\",level:\"100%\"}];function track(event,data={}){try{const w=window;w.dataLayer=w.dataLayer||[];w.dataLayer.push({event,...data});}catch(e){}}// Carries utm_*, fbclid etc. from the landing URL through to the form page.\nfunction buildFormUrl(path,band){if(typeof window===\"undefined\")return band?`${path}?debt=${band}`:path;const p=new URLSearchParams(window.location.search);if(band)p.set(\"debt\",band);const q=p.toString();return q?`${path}?${q}`:path;}function goToForm(path,band){track(\"dic_cta_click\",{debt_band:band||\"none\"});window.location.assign(buildFormUrl(path,band));}// Base CSS every component injects (scoped by class prefix).\nconst baseCss=`\n.dic-root, .dic-root * { box-sizing: border-box; }\n.dic-root { font-family: ${FONT}; color: ${T.ink}; -webkit-font-smoothing: antialiased; }\n.dic-root a { color: inherit; }\n.dic-root :focus-visible { outline: 3px solid ${T.amber}; outline-offset: 2px; border-radius: 4px; }\n.dic-btn {\n  display: inline-flex; align-items: center; justify-content: center; gap: 8px;\n  min-height: 56px; padding: 0 28px; border: 0; border-radius: 10px;\n  background: ${T.amber}; color: ${T.ink}; font: 700 18px/1.2 ${FONT};\n  text-decoration: none; cursor: pointer; transition: background .15s ease;\n}\n.dic-btn:hover { background: ${T.amberDeep}; }\n.dic-btn[disabled] { opacity: .6; cursor: not-allowed; }\n@media (prefers-reduced-motion: reduce) { .dic-root * { transition: none !important; animation: none !important; } }\n`;/**\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight auto\n */export default function DIC_Header(props){useDicFont();const{logo,brandName,homePath,showDisclosure,disclosureText,trustText}=props;return /*#__PURE__*/_jsxs(\"header\",{className:\"dic-root dic-header\",style:{width:\"100%\"},children:[/*#__PURE__*/_jsx(\"style\",{dangerouslySetInnerHTML:{__html:baseCss+css}}),showDisclosure&&/*#__PURE__*/_jsx(\"div\",{className:\"dic-disc\",role:\"note\",children:disclosureText}),/*#__PURE__*/_jsxs(\"div\",{className:\"dic-header-inner\",children:[/*#__PURE__*/_jsx(\"a\",{href:homePath,className:\"dic-logo\",\"aria-label\":`${brandName} home`,children:logo?.src?/*#__PURE__*/_jsx(\"img\",{src:logo.src,srcSet:logo.srcSet,alt:logo.alt||brandName}):/*#__PURE__*/_jsx(\"span\",{className:\"dic-wordmark\",children:brandName})}),/*#__PURE__*/_jsxs(\"div\",{className:\"dic-trust\",children:[/*#__PURE__*/_jsx(\"svg\",{width:\"18\",height:\"18\",viewBox:\"0 0 24 24\",\"aria-hidden\":\"true\",children:/*#__PURE__*/_jsx(\"path\",{fill:\"currentColor\",d:\"M12 2a5 5 0 0 0-5 5v3H6a2 2 0 0 0-2 2v8a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-8a2 2 0 0 0-2-2h-1V7a5 5 0 0 0-5-5Zm-3 8V7a3 3 0 1 1 6 0v3H9Z\"})}),/*#__PURE__*/_jsx(\"span\",{children:trustText})]})]})]});}const css=`\n.dic-header { background: ${T.paper}; border-bottom: 1px solid ${T.line}; container-type: inline-size; }\n.dic-disc { background: ${T.ink}; color: #fff; font: 400 14px/1.4 ${FONT}; text-align: center; padding: 8px 16px; }\n.dic-header-inner { max-width: 1200px; margin: 0 auto; padding: 16px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }\n.dic-logo { display: inline-flex; align-items: center; text-decoration: none; }\n.dic-logo img { height: 44px; width: auto; display: block; }\n.dic-wordmark { font: 700 22px/1 ${FONT}; color: ${T.ink}; letter-spacing: -0.01em; }\n.dic-trust { display: inline-flex; align-items: center; gap: 8px; color: ${T.muted}; font: 400 15px/1.3 ${FONT}; }\n@container (max-width: 560px) {\n  .dic-header-inner { padding: 12px 16px; }\n  .dic-logo img { height: 36px; }\n  .dic-trust span { font-size: 13px; }\n  .dic-disc { font-size: 13px; text-align: left; }\n}\n`;DIC_Header.defaultProps={brandName:\"Debt Info Centre\",homePath:\"/\",showDisclosure:true,disclosureText:\"Debt Info Centre is an introducer, not a debt adviser. We pass your details to a regulated firm who can explain your options.\",trustText:\"Secure form\"};addPropertyControls(DIC_Header,{logo:{type:ControlType.ResponsiveImage,title:\"Logo\"},brandName:{type:ControlType.String,title:\"Brand name\"},homePath:{type:ControlType.String,title:\"Home link\"},showDisclosure:{type:ControlType.Boolean,title:\"Disclosure bar\"},disclosureText:{type:ControlType.String,title:\"Disclosure\",displayTextArea:true,hidden:p=>!p.showDisclosure},trustText:{type:ControlType.String,title:\"Trust text\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"DIC_Header\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerSupportedLayoutHeight\":\"auto\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Dic_header.map","// Generated by Framer (8a054b2)\nexport default function metadata(params,contentLocale){return{description:\"Debt Info Centre is an introducer, not a debt adviser. Tell us about your debts and we'll pass your details to a regulated firm who can explain your options. Free help is available from MoneyHelper.\",robots:\"max-image-preview:large\",title:\"Debt Info Centre | Find out what help is available for your debts\"};}export const metadataVersion=1;\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"metadataVersion\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable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