1import{j as e,m as g,t as r,bb as I,r as p}from"./WarningIcon-Bebxa2Ar.js";import{M as o,g as b}from"./Logo-DOHrzmDH.js";import{M as O}from"./ModalStyles-rvIO_pZ8.js";import{j as x,J as M,K as R}from"./GeneralContextContainer-BpJCYKwq.js";import{h as k}from"./requests-DX1SWHAV.js";import{u as z}from"./useGetAllLDFlagsWithOverrides-Vn0TF2lW.js";import{B as P,d as _}from"./BaseIcon-BUY6xmqh.js";const T=({t})=>e.jsx(e.Fragment,{children:t("copyrightText",{currentYear:new Date().getFullYear()})}),H=g()((t,{isAuthenticated:n})=>({footerWrapper:{boxSizing:"border-box",fontFamily:t.typography.fontFamily,background:n?r.neutral.scale100:r.accentSecondary.accentSecondary4,padding:16,width:"100%",color:r.elementNeutralOnLight.elementNeutralPrimaryOnLight,fontSize:12,lineHeight:"18px",fontWeight:400,textAlign:"center"},footer__navItems:{width:"100%",color:r.element.brand.primaryOnLight,paddingBottom:14,display:"flex",flexWrap:"wrap",justifyContent:"center",alignItems:"center",rowGap:"8px","& a":{color:r.element.brand.primaryOnLight,padding:"0 8px",textDecoration:"underline",cursor:"pointer"},"& button":{color:r.element.brand.primaryOnLight,padding:"0 8px",textDecoration:"underline",cursor:"pointer",background:"none",border:"none",display:"inline-flex",alignItems:"center",gap:"4px"}},footer__copy:{width:"100%"}})),h=t=>{const n=e.jsxs("svg",{width:"30px",height:"14px",viewBox:"0 0 30 14",xmlns:"http://www.w3.org/2000/svg",children:[e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",fill:"#FFFFFF",d:"M7.4,12.8h6.8l3.1-11.6H7.4C4.2,1.2,1.6,3.8,1.6,7S4.2,12.8,7.4,12.8z"}),e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",fill:"#0066FF",d:"M22.6,0H7.4c-3.9,0-7,3.1-7,7s3.1,7,7,7h15.2c3.9,0,7-3.1,7-7S26.4,0,22.6,0z M1.6,7c0-3.2,2.6-5.8,5.8-5.8h9.9l-3.1,11.6H7.4C4.2,12.8,1.6,10.2,1.6,7z"}),e.jsx("path",{fill:"#FFFFFF",d:"M24.6,4c0.2,0.2,0.2,0.6,0,0.8l0,0L22.5,7l2.2,2.2c0.2,0.2,0.2,0.6,0,0.8c-0.2,0.2-0.6,0.2-0.8,0l0,0l-2.2-2.2L19.5,10c-0.2,0.2-0.6,0.2-0.8,0c-0.2-0.2-0.2-0.6,0-0.8l0,0L20.8,7l-2.2-2.2c-0.2-0.2-0.2-0.6,0-0.8c0.2-0.2,0.6-0.2,0.8,0l0,0l2.2,2.2L23.8,4C24,3.8,24.4,3.8,24.6,4z"}),e.jsx("path",{fill:"#0066FF",d:"M12.7,4.1c0.2,0.2,0.3,0.6,0.1,0.8l0,0L8.6,9.8C8.5,9.9,8.4,10,8.3,10c-0.2,0.1-0.5,0.1-0.7-0.1l0,0L5.4,7.7c-0.2-0.2-0.2-0.6,0-0.8c0.2-0.2,0.6-0.2,0.8,0l0,0L8,8.6l3.8-4.5C12,3.9,12.4,3.9,12.7,4.1z"})]});return e.jsx(P,{...t,svg:n})};h.defaultProps=_;const W=g()(t=>({buttonOverrides:{padding:"8px 8px",fontSize:12,fontWeight:600,minWidth:"unset"},iconWrapper:{display:"inline-flex",alignItems:"center",gap:"6px"}})),a=({id:t,handleClick:n,tInstance:l})=>{const{classes:i}=W();return e.jsx(I,{className:i.buttonOverrides,color:"secondary",id:t,onClick:()=>n(t),size:"small",children:t===o.YOUR_PRIVACY_CHOICES?e.jsxs("span",{className:i.iconWrapper,children:[l(`footerLink_${t}`),e.jsx(h,{size:14})]}):l(`footerLink_${t}`)})},U=({isAuthenticated:t})=>{const{t:n,i18n:l}=k(),{classes:i}=H({isAuthenticated:t}),{isSpanish:f}=p.useContext(x),{locale:u}=p.useContext(x),c=p.useMemo(()=>u[0],[u]),F=z("zdHelpDesk"),{requestFilingState:y,savedFormValues:j,closeModal:C,formSuccessfullySubmitted:S,formSubmittedFailure:L,formRetry:v,setSavedFormValues:w}=M();p.useEffect(()=>{(m=>l.changeLanguage(m))(c)},[c,l]);const d=s=>{if(F&&s===o.HELP){const m=new URL(`https://support.ourfamilywizard.com/hc/${c==null?void 0:c.toLowerCase()}`);window.open(m)}b(s,f,!0)};return e.jsxs(e.Fragment,{children:[e.jsxs("footer",{className:i.footerWrapper,children:[e.jsxs("div",{children:[e.jsx(a,{id:o.TERMS,handleClick:d,tInstance:n}),e.jsx(a,{id:o.PRIVACY,handleClick:d,tInstance:n}),e.jsx(a,{id:o.ABOUT,handleClick:d,tInstance:n}),e.jsx(a,{id:o.HELP,handleClick:d,tInstance:n}),e.jsx(a,{id:o.CONTACT,handleClick:d,tInstance:n}),!t&&e.jsx(a,{id:o.YOUR_PRIVACY_CHOICES,handleClick:()=>{var s;return(s=window.OneTrust)==null?void 0:s.ToggleInfoDisplay()},tInstance:n})]}),e.jsx("div",{className:i.footer__copy,children:e.jsx(T,{t:n})})]}),e.jsx(R,{currentState:y,onClose:C,onSubmitSuccess:S,onSubmitFailure:L,onRetry:v,savedValues:j,saveFormValues:w}),e.jsx(O,{})]})};export{U as F,h as P,T as S};
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.