import{d as e}from"./objectSpread2-DtFdQpqy.js";import{a as t,n}from"./preload-helper-EQ20WQt-.js";import{c as r,l as i,n as a,o}from"./prop-types-DdDwMzX7.js";import{l as s}from"./react-router-OpaHPRhD.js";import{t as c}from"./helmet-xJbX5x_5.js";import{n as l}from"./short_number-CCNBtmoH.js";import{t as u}from"./column-CvSGioVA.js";import{t as d}from"./bundle_column_error-EbL41WId.js";import{n as f}from"./instance-F9xNKLvg.js";var p=e(t()),m=n(),h=r({title:{id:`terms_of_service.title`,defaultMessage:`Terms of Service`}}),g=({multiColumn:e})=>{let t=i(),{date:n}=s(),[r,g]=(0,p.useState)(),[_,v]=(0,p.useState)(!0);return(0,p.useEffect)(()=>{f(n).then(e=>(g(e),v(!1),``)).catch(()=>{v(!1)})},[n]),!_&&!r?(0,m.jsx)(d,{multiColumn:e,errorType:`routing`}):(0,m.jsxs)(u,{bindToDocument:!e,label:t.formatMessage(h.title),children:[(0,m.jsxs)(`div`,{className:`scrollable privacy-policy`,children:[(0,m.jsxs)(`div`,{className:`column-title`,children:[(0,m.jsx)(`h3`,{children:(0,m.jsx)(o,{id:`terms_of_service.title`,defaultMessage:`Terms of Service`})}),(0,m.jsxs)(`p`,{className:`prose`,children:[r!=null&&r.effective?(0,m.jsx)(o,{id:`privacy_policy.last_updated`,defaultMessage:`Last updated {date}`,values:{date:(0,m.jsx)(a,{value:r.effective_date,year:`numeric`,month:`short`,day:`2-digit`})}}):(0,m.jsx)(o,{id:`terms_of_service.effective_as_of`,defaultMessage:`Effective as of {date}`,values:{date:(0,m.jsx)(a,{value:r==null?void 0:r.effective_date,year:`numeric`,month:`short`,day:`2-digit`})}}),(r==null?void 0:r.succeeded_by)&&(0,m.jsxs)(m.Fragment,{children:[` · `,(0,m.jsx)(l,{to:`/terms-of-service/${r.succeeded_by}`,children:(0,m.jsx)(o,{id:`terms_of_service.upcoming_changes_on`,defaultMessage:`Upcoming changes on {date}`,values:{date:(0,m.jsx)(a,{value:r.succeeded_by,year:`numeric`,month:`short`,day:`2-digit`})}})})]})]})]}),r&&(0,m.jsx)(`div`,{className:`privacy-policy__body prose`,dangerouslySetInnerHTML:{__html:r.content}})]}),(0,m.jsxs)(c,{children:[(0,m.jsx)(`title`,{children:t.formatMessage(h.title)}),(0,m.jsx)(`meta`,{name:`robots`,content:`all`})]})]})};export{g as default};
//# sourceMappingURL=terms_of_service-7KpjMgzr.js.map