1import{s as R,bn as E,cH as j,ae as v,bX as N,aA as i,cI as b,aq as M,bk as y,ai as w,r as l,u as U,P as B,cJ as F,j as e,f as H,C as K,b as V,l as g,d as $,cK as Y,h as J,t as Q,bz as q,V as _,c as h,a0 as z,n as X,cL as Z,cM as W,cN as ee,cO as ae,b9 as se,cP as te,G as ce,H as ne,b1 as oe,K as re,Q as le,b2 as ie}from"./index-BpLLe65f.js";const me=(s=!1)=>{const a=new Date().toISOString();return s?a:a.split(".")[0]+"Z"},ue="_brsS-",ge="_v1jJa",d={link:ue,acceptance:ge},de=({digitalPageList:s})=>{const a=R(),{lid:t=""}=E(),m=j(),{localeOptions:p}=v(),O=N("acceptedTermsDate")??!0,n=i()&&!O&&t===b,I=s?.items?.[0]?.mainSection,u=M({elements:I??[],type:"path",value:W.TC_CONTENT}),T=y(u?.title?.toLocaleLowerCase()),L=w({mutationFn:ee,onSuccess:c=>{ae(c),a(se)}}),f=()=>{S?L.mutate({username:N("username"),acceptedTermsDate:me()}):C(!0)},[S,A]=l.useState(!1),[G,C]=l.useState(!1),[r,k]=l.useState({language:m,count:0}),{t:o,i18n:x}=U(B.TERMS_CONDITIONS);return l.useEffect(()=>{F(r.language),x.language!==r.language&&x.changeLanguage(r.language)},[r]),e.jsxs("div",{className:"container-width",children:[e.jsx(H,{className:`${n?"pb-0 pt-4":"py-4"} px-6`,children:e.jsxs(K,{lg:12,md:12,sm:12,className:n?"mb-0":"mb-6",children:[e.jsxs(V,{id:T,title:u?.title,className:n?"max-h-300 overflow-y-auto":"",theme:"dark",children:[p.map(c=>e.jsx(g,{id:c.value,variant:"text",className:"w-fit mb-1",onClick:D=>k(P=>({language:D.target.id,count:P.count+1})),children:c.key})),e.jsx($,{className:"pt-4",htmlContent:J(u?.content?.[0]?.html),enableSoftScroll:!0,scrollOffsetId:i()?Y:void 0,scrollContainerId:n?T:void 0})]}),!i()&&e.jsx(Q,{className:h(d.link,"h-35 w-fit flex items-center underline text-green"),id:"back-to-login",to:q,children:o(_.BACK_TO_LOGIN)})]})}),n&&e.jsxs("div",{className:h("bg-white py-4 ml-6 mr-6",d.acceptance),children:[e.jsx(z,{id:"checkbox-acceptTerms",name:"checkbox-acceptTerms",label:o("acceptanceForm.acceptTermsCheckBox.label"),onChange:()=>{A(c=>!c),C(!1)},className:d.checkbox,errMessage:!S&&G?o("acceptanceForm.acceptTermsCheckBox.errorMessages.empty"):void 0}),e.jsxs("div",{className:"flex gap-4 mt-4",children:[e.jsx(g,{id:"button-agreeTerms",className:"w-fit",onClick:f,children:o("acceptanceForm.agreeTermsBtnLabel")}),e.jsxs(g,{variant:"secondary-reverse",id:"button-logout",className:"w-fit",onClick:()=>a(Z),children:[e.jsx(X,{name:"logout"}),o(_.LOGOUT)]})]})]})]})},Te=()=>{const{lid:s=""}=E(),a=i()&&s===b?te:s,t=ce(de,a);return e.jsx(t,{})},Se=async({lid:s,locale:a=oe})=>{const t=ie[a]??a,m=`${le}_${s},${t}`;return await ne({[m]:()=>re(s,t)})};export{Te as LegalPage,Se 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.