1import{i as m}from"./apollo-B1TfImlk.js";import{j as t}from"./jsx-runtime-DdoI48LW.js";import{L as c}from"./index.styled-0IV4tXyP.js";import{S as f}from"./Spinner-DZEFY96R.js";import{u as p,W as u}from"./Container-CLDeUiE_.js";import{u as g}from"./usePageTitle-BZS-_kTb.js";import{a as P}from"./useGTMPageView-fm7fqSUG.js";import{a1 as d}from"./graphql-BW49-ESX.js";import{C}from"./ContactPrefsForm-CJlCJMhB.js";const l=r=>{const{data:e,loading:o,error:s}=d({fetchPolicy:"network-only",variables:{accountNumber:r},onError:()=>{}});return{getCPLoading:o,getCPError:s,isOptedInToSmsMessages:e?.viewer?.preferences?.isOptedInToSmsMessages,isOptedInToOfferMessages:e?.viewer?.preferences?.isOptedInToOfferMessages,smets2Interest:e?.account?.smets2Interest,smets2RefusalReason:e?.account?.smets2RefusalReason}},{useParams:I}=await m("react-router"),h=()=>{const{accountNumber:r}=I();g("Contact Preferences | EDF"),P("Contact Preferences Page");const{getCPLoading:e,getCPError:o,isOptedInToSmsMessages:s,isOptedInToOfferMessages:a,smets2Interest:n,smets2RefusalReason:i}=l(r);return p({journeyName:"ContactPreferences",journeyStep:"ChangeContactPreferences",journeyVersion:1}),e?t.jsx(c,{children:t.jsx(f,{isLarge:!0})}):t.jsx(u,{children:t.jsx(C,{isSmart:!0,accountNumber:r,getContactPrefsError:o,formProps:{isOptedInToExclusiveUpdates:a||s,isOptedInToSmsMessages:s,isOptedInToOfferMessages:a,smets2Interest:n,smets2RefusalReason:i}})})};export{h as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.