1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6594],{6015:(e,t,r)=>{r.d(t,{LegalHeader:()=>c});var s=r(95155);r(12115);var n=r(52619),a=r.n(n),l=r(25016),o=r(72748),i=r(53600);function c(e){var t,r;let{document:n,versions:c,region:d,regionLabel:m,minimal:u=!1,className:x}=e,h=n.effectiveDate?new Date(n.effectiveDate).toLocaleDateString("en-US",{year:"numeric",month:"long",day:"numeric"}):null,f=n.lastUpdatedAt?new Date(n.lastUpdatedAt).toLocaleDateString("en-US",{year:"numeric",month:"long",day:"numeric"}):null;if(u)return(0,s.jsxs)("header",{className:(0,l.cn)("mb-6",x),children:[(0,s.jsx)("h1",{className:"text-2xl font-semibold text-foreground md:text-3xl",children:n.title}),h&&(0,s.jsxs)("p",{className:"mt-2 text-sm text-foreground/60",children:["Effective: ",h]})]});let p=null!=(r=n.displayedVersion)?r:n.currentVersion,g=(null==(t=n.displayedVersionLabel)?void 0:t.trim())||"v".concat(p),b=c&&c.length>1;return(0,s.jsxs)("header",{className:(0,l.cn)("space-y-4",x),children:[(0,s.jsxs)("div",{className:"flex items-start justify-between gap-4",children:[(0,s.jsxs)("div",{className:"space-y-2",children:[(0,s.jsx)("p",{className:"text-sm uppercase tracking-[0.2em] text-primary",children:"Legal Document"}),(0,s.jsx)("h1",{className:"text-3xl font-semibold text-foreground md:text-4xl",children:n.title})]}),d&&(0,s.jsxs)(a(),{href:"/".concat(d,"/legal"),className:"flex items-center gap-1 text-sm text-foreground/60 transition-colors hover:text-foreground",children:[(0,s.jsx)("span",{children:"â"}),(0,s.jsx)("span",{children:"Back to Legal Documents"})]})]}),n.summary&&(0,s.jsx)("p",{className:"text-base text-foreground/80",children:n.summary}),(0,s.jsxs)("div",{className:"flex flex-wrap items-center gap-x-6 gap-y-2 text-sm text-foreground/60",children:[d&&(0,s.jsxs)("span",{children:[(0,s.jsx)("strong",{className:"font-medium text-foreground/80",children:"Location:"})," ",m||d.toUpperCase()]}),(0,s.jsxs)("span",{className:"flex items-center gap-1.5",children:[(0,s.jsx)("strong",{className:"font-medium text-foreground/80",children:"Version:"})," ",g,n.isDraft&&(0,s.jsx)("span",{className:"rounded bg-amber-100 px-1.5 py-0.5 text-xs font-medium text-amber-700 dark:bg-amber-900/30 dark:text-amber-300",children:"Draft"})]}),h&&(0,s.jsxs)("span",{children:[(0,s.jsx)("strong",{className:"font-medium text-foreground/80",children:"Effective:"})," ",h]}),f&&(0,s.jsxs)("span",{children:[(0,s.jsx)("strong",{className:"font-medium text-foreground/80",children:"Last Updated:"})," ",f]}),b&&d&&(0,s.jsx)(i.VersionHistoryDialog,{versions:c,currentVersion:n.currentVersion,displayedVersion:p,documentKey:n.documentKey,region:d,slug:n.slug}),(0,s.jsx)(o.PdfDownloadButton,{url:n.pdfUrl})]})]})}},10959:(e,t,r)=>{r.d(t,{d:()=>u});var s=r(95155);r(12115);var n=r(36578),a=r(8166),l=r(94755),o=r(5386),i=r(8300),c=r(25016);let d=new Set(["node","index","siblingCount","ordered","depth","inline","isHeader","sourcePosition","children"]);function m(e){let t={};for(let[r,s]of Object.entries(e))!(d.has(r)||/^\d+$/.test(r))&&/^[a-zA-Z_]/.test(r)&&(t[r]=s);return t}
1function u(e){let{content:t,className:r}=e;return(0,s.jsx)("div",{className:(0,c.cn)("legal-prose",r),children:(0,s.jsx)(n.oz,{remarkPlugins:[a.A],rehypePlugins:[l.A,o.A,[i.A,{behavior:"wrap"}]],components:{h1:e=>{let{children:t,...r}=e;return(0,s.jsx)("h1",{className:"mb-6 border-b border-slate-200 pb-4 text-2xl font-bold text-slate-900",...m(r),children:t})},h2:e=>{let{children:t,...r}=e;return(0,s.jsx)("h2",{className:"mb-4 mt-8 border-b border-slate-100 pb-2 text-xl font-semibold text-slate-900",...m(r),children:t})},h3:e=>{let{children:t,...r}=e;return(0,s.jsx)("h3",{className:"mb-3 mt-6 text-lg font-medium text-slate-900",...m(r),children:t})},h4:e=>{let{children:t,...r}=e;return(0,s.jsx)("h4",{className:"mb-2 mt-4 text-base font-medium text-slate-900",...m(r),children:t})},p:e=>{let{children:t,...r}=e;return(0,s.jsx)("p",{className:"mb-4 leading-7 text-slate-700",...m(r),children:t})},ul:e=>{let{children:t,...r}=e;return(0,s.jsx)("ul",{className:"mb-4 ml-6 list-disc space-y-2",...m(r),children:t})},ol:e=>{let{children:t,...r}=e;return(0,s.jsx)("ol",{className:"mb-4 ml-6 list-decimal space-y-2",...m(r),children:t})},li:e=>{let{children:t,...r}=e;return(0,s.jsx)("li",{className:"text-slate-700",...m(r),children:t})},a:e=>{let{children:t,href:r,...n}=e;return(0,s.jsx)("a",{href:r,className:"text-primary underline underline-offset-2 hover:text-primary/80",target:(null==r?void 0:r.startsWith("http"))?"_blank":void 0,rel:(null==r?void 0:r.startsWith("http"))?"noopener noreferrer":void 0,...m(n),children:t})},strong:e=>{let{children:t,...r}=e;return(0,s.jsx)("strong",{className:"font-semibold text-slate-900",...m(r),
1children:t})},em:e=>{let{children:t,...r}=e;return(0,s.jsx)("em",{className:"italic text-slate-800",...m(r),children:t})},table:e=>{let{children:t,...r}=e;return(0,s.jsx)("div",{className:"my-6 overflow-x-auto",children:(0,s.jsx)("table",{className:"w-full border-collapse border border-slate-200",...m(r),children:t})})},thead:e=>{let{children:t,...r}=e;return(0,s.jsx)("thead",{className:"bg-slate-50",...m(r),children:t})},th:e=>{let{children:t,...r}=e;return(0,s.jsx)("th",{className:"border border-slate-200 px-4 py-2 text-left font-medium text-slate-900",...m(r),children:t})},td:e=>{let{children:t,...r}=e;return(0,s.jsx)("td",{className:"border border-slate-200 px-4 py-2 text-slate-700",...m(r),children:t})},blockquote:e=>{let{children:t,...r}=e;return(0,s.jsx)("blockquote",{className:"my-4 border-l-4 border-primary/50 pl-4 italic text-slate-600",...m(r),children:t})},code:e=>{let{children:t,className:r,...n}=e;return r?(0,s.jsx)("code",{className:r,...m(n),children:t}):(0,s.jsx)("code",{className:"rounded bg-slate-100 px-1.5 py-0.5 text-sm font-mono text-slate-800",...m(n),children:t})},pre:e=>{let{children:t,...r}=e;return(0,s.jsx)("pre",{className:"my-4 overflow-x-auto rounded-lg bg-slate-50 p-4 text-sm text-slate-800",...m(r),
1children:t})},hr:e=>{let{...t}=e;return(0,s.jsx)("hr",{className:"my-8 border-t border-slate-200",...m(t)})}},children:t})})}},28580:(e,t,r)=>{r.d(t,{LegalDocumentDialog:()=>c});var s=r(95155),n=r(12115),a=r(54679),l=r(10959),o=r(25016);let i=new Map;function c(e){let{open:t,onOpenChange:r,slug:c,region:d,title:m}=e,[u,x]=(0,n.useState)(!0),[h,f]=(0,n.useState)(null),[p,g]=(0,n.useState)(null);return(0,n.useEffect)(()=>{if(!t)return;let e="".concat(d,"/").concat(c),r=i.get(e);if(r){g(r),x(!1);return}x(!0),f(null),(async()=>{try{let t=await fetch("/api/legal/".concat(d,"/").concat(c));if(!t.ok)throw Error("Failed to load document");let r=await t.json();i.set(e,r),g(r)}catch(e){f(e instanceof Error?e.message:"Failed to load document")}finally{x(!1)}})()},[t,d,c]),(0,s.jsx)(a.lG,{open:t,onOpenChange:r,children:(0,s.jsxs)(a.Cf,{className:(0,o.cn)("max-w-4xl max-h-[90vh] h-[90vh] flex flex-col p-0 overflow-hidden","bg-white"),children:[(0,s.jsxs)("div",{className:"flex-shrink-0 flex items-center justify-between px-6 py-4 border-b border-slate-200 bg-white",children:[(0,s.jsx)("h2",{className:"text-lg font-semibold text-slate-900",children:m}),(0,s.jsx)(a.HM,{onClose:()=>r(!1),className:"relative right-0 top-0 text-slate-500 hover:text-slate-700"})]}),(0,s.jsxs)("div",{className:"relative flex-1 overflow-auto",children:[u&&(0,s.jsx)("div",{className:"absolute inset-0 flex items-center justify-center bg-white z-[5]",children:(0,s.jsxs)("div",{className:"flex items-center gap-3 text-slate-500",children:[(0,s.jsxs)("svg",{className:"animate-spin h-5 w-5",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[(0,s.jsx)("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),(0,s.jsx)("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}),(0,s.jsx)("span",{children:"Loading..."})]})}),h&&!u&&(0,s.jsx)("div",{className:"flex items-center justify-center h-full text-slate-500",children:(0,s.jsx)("p",{children:h})}),p&&!u&&(0,s.jsx)("div",{className:"px-6 py-6",children:(0,s.jsx)(l.d,{content:p.contentMd})})]})]})})}},37377:(e,t,r)=>{r.d(t,{ScrollToTop:()=>l});var s=r(95155),n=r(12115),a=r(25016);function l(e){let{threshold:t=300,className:r}=e,[l,i]=(0,n.useState)(!1);return((0,n.useEffect)(()=>{let e=()=>{window.scrollY>t?i(!0):i(!1)};return window.addEventListener("scroll",e),()=>window.removeEventListener("scroll",e)},[t]),l)?(0,s.jsx)("button",{onClick:()=>{window.scrollTo({top:0,behavior:"smooth"})},className:(0,a.cn)("fixed bottom-8 right-8 z-50 flex h-12 w-12 items-center justify-center rounded-full bg-primary text-primary-foreground shadow-lg transition-all hover:bg-primary/90 hover:shadow-xl","animate-in fade-in-0 zoom-in-95",r),"aria-label":"Scroll to top",children:(0,s.jsx)(o,{className:"h-5 w-5"})}):null}function o(e){let{className:t}=e;return(0,s.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:t,children:(0,s.jsx)("path",{d:"m18 15-6-6-6 6"})})}},48364:(e,t,r)=>{r.d(t,{LegalSidebar:()=>i});var s=r(95155);r(12115);var n=r(25016),a=r(72748),l=r(86970),o=r(93510);function i(e){var t;let{document:r,versions:i,currentRegion:c,className:d}=e,m=null==i?void 0:i.find(e=>e.version===r.currentVersion),u=m?(0,o.Y)(m):"v".concat(r.currentVersion);return(0,s.jsxs)("div",{className:(0,n.cn)("space-y-6",d),children:[(0,s.jsxs)("div",{className:"rounded-2xl bg-foreground
1/5 p-4",children:[(0,s.jsx)("h3",{className:"mb-3 text-sm font-medium uppercase tracking-wider text-foreground/60",children:"Download"}),(0,s.jsx)(a.PdfDownloadButton,{url:r.pdfUrl,fullWidth:!0})]}),i&&i.length>1&&(0,s.jsxs)("div",{className:"rounded-2xl bg-foreground/5 p-4",children:[(0,s.jsx)("h3",{className:"mb-3 text-sm font-medium uppercase tracking-wider text-foreground/60",children:"Version History"}),(0,s.jsx)(l.VersionSelector,{versions:i,currentVersion:r.currentVersion,displayedVersion:null!=(t=r.displayedVersion)?t:r.currentVersion,documentKey:r.documentKey,region:c,slug:r.slug})]}),(0,s.jsxs)("div",{className:"rounded-2xl bg-foreground/5 p-4",children:[(0,s.jsx)("h3",{className:"mb-3 text-sm font-medium uppercase tracking-wider text-foreground/60",children:"Document Info"}),(0,s.jsxs)("dl",{className:"space-y-2 text-sm",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("dt",{className:"text-foreground/60",children:"Region"}),(0,s.jsx)("dd",{className:"font-medium text-foreground",children:c.toUpperCase()})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("dt",{className:"text-foreground/60",children:"Current Version"}),(0,s.jsx)("dd",{className:"font-medium text-foreground",children:u})]}),r.effectiveDate&&(0,s.jsxs)("div",{children:[(0,s.jsx)("dt",{className:"text-foreground/60",children:"Effective Date"}),(0,s.jsx)("dd",{className:"font-medium text-foreground",children:new Date(r.effectiveDate).toLocaleDateString("en-US",{year:"numeric",month:"short",day:"numeric"})})]})]})]})]})}},53600:(e,t,r)=>{r.d(t,{VersionHistoryDialog:()=>c});var s=r(95155),n=r(12115),a=r(20063),l=r(25016),o=r(54679),i=r(93510);function c(e){let{versions:t,currentVersion:r,displayedVersion:c,slug:m,region:u,className:x}=e,[h,f]=(0,n.useState)(!1),p=(0,a.useRouter)(),g=[...t].sort((e,t)=>t.version-e.version);return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("button",{onClick:()=>f(!0),className:(0,l.cn)("inline-flex items-center gap-1.5 text-sm font-medium text-primary transition-colors hover:text-primary/80",x),children:[(0,s.jsx)(d,{className:"h-4 w-4"}),"Version History"]}),(0,s.jsx)(o.lG,{open:h,onOpenChange:f,children:(0,s.jsxs)(o.Cf,{children:[(0,s.jsx)(o.HM,{onClose:()=>f(!1)}),(0,s.jsx)(o.c7,{children:(0,s.jsx)(o.L3,{children:"Version History"})}),(0,s.jsx)("div",{className:"space-y-2 max-h-[300px] overflow-y-auto",children:g.map(e=>{let t=e.version===c,n=e.version===r,a=e.effectiveDate?new Date(e.effectiveDate).toLocaleDateString("en-US",{year:"numeric",month:"short",day:"numeric"}):null;return(0,s.jsxs)("button",{onClick:()=>{var t;return t=e.version,void(f(!1),t===r?p.push("/".concat(u,"/legal/").concat(m)):p.push("/".concat(u,"/legal/").concat(m,"?version=").concat(t)))},className:(0,l.cn)("w-full flex items-center justify-between rounded-lg px-4 py-3 text-left transition-colors",t?"bg-primary/10 text-primary":"hover:bg-foreground
1/5 text-foreground"),children:[(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)("span",{className:"font-medium",children:(0,i.Y)(e)}),n&&(0,s.jsx)("span",{className:"rounded-full bg-primary/20 px-2 py-0.5 text-xs font-medium text-primary",children:"Latest"})]}),a&&(0,s.jsx)("span",{className:"text-sm text-foreground/60",children:a})]},e.version)})})]})})]})}function d(e){let{className:t}=e;return(0,s.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:t,children:[(0,s.jsx)("path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8"}),(0,s.jsx)("path",{d:"M3 3v5h5"}),(0,s.jsx)("path",{d:"M12 7v5l4 2"})]})}},54679:(e,t,r)=>{r.d(t,{Cf:()=>c,HM:()=>u,L3:()=>m,c7:()=>d,lG:()=>i});var s=r(95155),n=r(12115),a=r(47650),l=r(25016),o=r(37072);function i(e){let{open:t,onOpenChange:r,children:l,"aria-labelledby":i,"aria-describedby":c}=e,d=(0,o.r)({enabled:t,onEscape:()=>r(!1),autoFocus:!0,restoreFocus:!0});return(n.useEffect(()=>(t?document.body.style.overflow="hidden":document.body.style.overflow="",()=>{document.body.style.overflow=""}),[t]),t)?(0,a.createPortal)((0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:"fixed inset-0 z-[100] bg-black/50 backdrop-blur-sm animate-in fade-in-0",onClick:()=>r(!1),"aria-hidden":"true"}),(0,s.jsx)("div",{ref:d,role:"dialog","aria-modal":"true","aria-labelledby":i,"aria-describedby":c,className:"pointer-events-none fixed inset-0 z-[101] flex items-center justify-center p-4",children:(0,s.jsx)("div",{className:"pointer-events-auto",children:l})})]}),document.body):null}function c(e){let{children:t,className:r}=e;return(0,s.jsx)("div",{className:(0,l.cn)("relative w-full max-w-md rounded-2xl bg-background p-6 shadow-xl animate-in fade-in-0 zoom-in-95",r),onClick:e=>e.stopPropagation(),children:t})}function d(e){let{children:t,className:r}=e;return(0,s.jsx)("div",{className:(0,l.cn)("mb-4",r),children:t})}function m(e){let{children:t,className:r,...n}=e;return(0,s.jsx)("h2",{className:(0,l.cn)("text-lg font-semibold text-foreground",r),...n,children:t})}function u(e){let{onClose:t,className:r}=e;return(0,s.jsxs)("button",{onClick:t,className:(0,l.cn)("absolute right-4 top-4 roun
1ded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",r),children:[(0,s.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"h-4 w-4",children:[(0,s.jsx)("path",{d:"M18 6 6 18"}),(0,s.jsx)("path",{d:"m6 6 12 12"})]}),(0,s.jsx)("span",{className:"sr-only",children:"Close"})]})}},60298:(e,t,r)=>{r.d(t,{EmbedStyles:()=>o});var s=r(95155),n=r(88661),a=r.n(n),l=r(12115);function o(){return(0,l.useEffect)(()=>(document.body.classList.add("legal-embed-mode"),()=>{document.body.classList.remove("legal-embed-mode")}),[]),(0,s.jsx)(a(),{id:"d08b8949a81dc764",children:"body.legal-embed-mode header,body.legal-embed-mode footer,body.legal-embed-mode [data-site-header],body.legal-embed-mode [data-site-footer]{display:none!important}body.legal-embed-mode .flex-1{margin-top:0!important;padding-top:0!important}body.legal-embed-mode .min-h-screen{min-height:auto!important}"})}},63504:(e,t,r)=>{r.d(t,{DraftBanner:()=>l});var s=r(95155),n=r(52056),a=r(25016);function l(e){let{className:t}=e;return(0,s.jsxs)("div",{className:(0,a.cn)("flex items-start gap-3 rounded-xl border-2 border-amber-400 bg-amber-50 p-4 dark:border-amber-600 dark:bg-amber-950/30",t),role:"alert",children:[(0,s.jsx)(n.A,{className:"mt-0.5 h-5 w-5 flex-shrink-0 text-amber-600 dark:text-amber-400"}),(0,s.jsxs)("div",{children:[(0,s.jsx)("p",{className:"font-semibold text-amber-800 dark:text-amber-200",children:"Draft Version"}),(0,s.jsx)("p",{className:"mt-1 text-sm text-amber-700 dark:text-amber-300",children:"This is an unpublished draft. It is not visible to the public and may change before publication."})]})]})}},65501:(e,t,r)=>{r.d(t,{t:()=>o});var s=r(95155);r(12115);var n=r(52619),a=r.n(n),l=r(25016);function o(e){let{document:t,className:r}=e;return(0,s.jsxs)("footer",{className:(0,l.cn)("mt-12 space-y-6",r),children:[(0,s.jsx)("div",{className:"rounded-lg border border-foreground
1/10 bg-foreground/5 p-4",children:(0,s.jsxs)("p",{className:"text-sm text-foreground/60",children:["This document is provided for informational purposes. If you have any questions about these terms, please"," ",(0,s.jsx)(a(),{href:"/".concat(t.region,"/contact"),className:"text-primary underline hover:text-primary/80",children:"contact us"}),"."]})}),(0,s.jsxs)("div",{className:"flex items-center justify-between border-t border-border pt-6",children:[(0,s.jsx)(a(),{href:"/".concat(t.region,"/legal"),className:"text-sm text-primary hover:underline",children:"â Back to Legal Documents"}),(0,s.jsxs)("p",{className:"text-xs text-foreground/40",children:["Document ID: ",t.documentKey,"-",t.region,"-v",t.currentVersion]})]})]})}},72686:(e,t,r)=>{r.d(t,{LegalShell:()=>u});var s=r(95155);r(12115);var n=r(25016),a=r(6015),l=r(10959),o=r(65501),i=r(72748),c=r(60298),d=r(37377),m=r(63504);function u(e){let{document:t,versions:r,region:u,regionLabel:x,embed:h=!1,className:f,children:p}=e;return h?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(c.EmbedStyles,{}),(0,s.jsx)("div",{className:(0,n.cn)("legal-embed min-h-screen bg-background text-foreground",f),children:(0,s.jsxs)("div",{className:"mx-auto max-w-4xl p-6 pt-8",children:[t.isDraft&&(0,s.jsx)(m.DraftBanner,{className:"mb-6"}),(0,s.jsx)(a.LegalHeader,{document:t,minimal:!0}),(0,s.jsx)(l.d,{content:t.contentMd}),(0,s.jsx)("div",{className:"mt-8 flex justify-center border-t border-border pt-6",children:(0,s.jsx)(i.PdfDownloadButton,{url:t.pdfUrl})})]})})]}):(0,s.jsxs)("div",{className:(0,n.cn)("container pt-32 pb-16",f),children:[t.isDraft&&(0,s.jsx)(m.DraftBanner,{className:"mb-6"}
1),(0,s.jsx)(a.LegalHeader,{document:t,versions:r,region:u,regionLabel:x}),(0,s.jsx)("div",{className:"mt-8 rounded-3xl bg-white p-6 shadow-[0_2px_20px_rgba(0,0,0,0.08)] md:p-8",children:(0,s.jsx)(l.d,{content:t.contentMd})}),(0,s.jsx)(o.t,{document:t}),p,(0,s.jsx)(d.ScrollToTop,{})]})}},72748:(e,t,r)=>{r.d(t,{PdfDownloadButton:()=>i});var s=r(95155),n=r(12115),a=r(25016),l=r(30926);let o=(0,l.createServerReference)("40888a5a1529871f5554dfa423ae06b5237ea49e68",l.callServer,void 0,l.findSourceMapURL,"getSignedUrl");function i(e){let{url:t,fullWidth:r=!1,className:l}=e,[i,d]=(0,n.useState)(!1),[m,u]=(0,n.useState)(null),[x,h]=(0,n.useState)(null),f=t&&!t.startsWith("http");(0,n.useEffect)(()=>{f&&t&&(async()=>{try{let e=await o(t);e.url?u(e.url):h(e.error||"Failed to load PDF")}catch(e){console.error("Failed to get signed URL:",e),h("Failed to load PDF")}})()},[t,f]);let p=(0,n.useCallback)(async()=>{if(t){if(!f)return void window.open(t,"_blank");if(m)return void window.open(m,"_blank");d(!0),h(null);try{let e=await o(t);e.url?window.open(e.url,"_blank"):h(e.error||"Failed to download PDF")}catch(e){console.error("Failed to get signed URL:",e),h("Failed to download PDF")}finally{d(!1)}}},[t,f,m]);return!t||x?null:(0,s.jsxs)("button",{onClick:p,disabled:i,className:(0,a.cn)("inline-flex items-center gap-1.5 text-sm font-medium text-primary transition-colors hover:text-primary/80 disabled:opacity-50",r&&"w-full justify-center",l),children:[i?(0,s.jsx)(c,{className:"h-4 w-4"}):(0,s.jsx)("img",{src:"/icons/pdf.svg",alt:"PDF",className:"h-5 w-5"}),i?"Loading...":"View PDF"]})}function c(e){let{className:t}=e;return(0,s.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:(0,a.cn)("animate-spin",t),children:(0,s.jsx)("path",{d:"M21 12a9 9 0 1 1-6.219-8.56"})})}},86970:(e,t,r)=>{r.d(t,{VersionSelector:()=>o});var s=r(95155);r(12115);var n=r(20063),a=r(25016),l=r(93510);function o(e){let{versions:t,currentVersion:r,displayedVersion:o,region:i,slug:c,className:d}=e,m=(0,n.useRouter)();return(0,s.jsxs)("div",{className:(0,a.cn)("space-y-3",d),children:[(0,s.jsx)("select",{value:o,onChange:e=>{let t=parseInt(e.target.value,10);t===r?m.push("/".concat(i,"/legal/").concat(c)):m.push("/".concat(i,"/legal/").concat(c,"?version=").concat(t))}
1,className:"w-full rounded-lg border border-foreground/20 bg-background px-3 py-2 text-sm text-foreground focus:border-primary focus:outline-none focus:ring-1 focus:ring-primary",children:t.map(e=>(0,s.jsxs)("option",{value:e.version,children:[(0,l.Y)(e),e.version===r?" (Latest)":"",e.effectiveDate?" - ".concat(new Date(e.effectiveDate).toLocaleDateString("en-US",{year:"numeric",month:"short"})):""]},e.version))}),(0,s.jsx)("ul",{className:"max-h-48 space-y-1 overflow-y-auto text-xs",children:t.slice(0,5).map(e=>(0,s.jsx)("li",{className:(0,a.cn)("rounded px-2 py-1",e.version===o?"bg-primary/10 text-primary":"text-foreground/60 hover:bg-foreground/5"),children:(0,s.jsxs)("button",{onClick:()=>{e.version===r?m.push("/".concat(i,"/legal/").concat(c)):m.push("/".concat(i,"/legal/").concat(c,"?version=").concat(e.version))},className:"block w-full text-left",children:[(0,s.jsx)("span",{className:"font-medium",children:(0,l.Y)(e)}),e.version===r&&(0,s.jsx)("span",{className:"ml-1 text-primary",children:"(Latest)"}),e.effectiveDate&&(0,s.jsx)("span",{className:"ml-2 opacity-70",children:new Date(e.effectiveDate).toLocaleDateString("en-US",{year:"numeric",month:"short",day:"numeric"})})]})},e.version))})]})}},93510:(e,t,r)=>{r.d(t,{Y:()=>s});function s(e){var t;return(null==(t=e.versionLabel)?void 0:t.trim())||"v".concat(e.version)}}}]);
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.