1import{j as e,h as o,Y as u,u as x,A as d}from"./vendor-mui-CYq-6ego.js";import{v as y,d as g,l as h,g as b,t as a}from"./index-5sb0ZHD_.js";import{P as f}from"./PageLayout-BHoO67qe.js";import{u as j}from"./vendor-redux-CUeFAPXf.js";import{m as v}from"./vendor-motion-BPjkBOu7.js";import"./vendor-three-B82KWFtT.js";import"./vendor-query-C1eo258M.js";import"./logo-BkSacLXu.js";const m=()=>e.jsxs(o,{display:"flex",flexDirection:"column",gap:1,p:2,children:[" ",Array.from({length:10}).map((l,s)=>e.jsx(u,{variant:"rectangular",height:80},s))]}),F=()=>{var i,c;const{type:l}=y(),{isAuthenticated:s}=j(t=>t==null?void 0:t.user);x();const{data:r,isFetching:n}=g({url:`template/${l}`,key:[l]}),p=()=>{switch(l){case"privacyPolicy":return a.legal.label.privacyPolicy;case"tos":return a.legal.label.termsAndConditions;case"safetyCenter":return a.legal.label.safetyCenter;case"about":return a.legal.label.about;case"contact":return a.legal.label.contact;default:return a.legal.label.unknown}};return e.jsx(e.Fragment,{children:s?e.jsx(f,{label:p(),children:n?e.jsx(m,{}):e.jsx(o,{p:2,sx:t=>({"&":{color:t.palette.text.primary},"& *":{color:`${t.palette.text.primary} !important`}}),dangerouslySetInnerHTML:{__html:((i=r==null?void 0:r.data)==null?void 0:i.body)||""}})}):e.jsxs(e.Fragment,{children:[" ",n?e.jsx(m,{}):e.jsxs(v.div,{initial:{opacity:0}
1,animate:{opacity:1},transition:{duration:.5,ease:"easeOut"},className:"mb-3 motion-safe motion-div p-5",children:[e.jsx(o,{display:"flex",justifyContent:"center",className:"overflow-scroll",children:e.jsx(d,{src:h,variant:"square",sx:{width:"107px",height:"72px",borderRadius:0,"& img":{objectFit:"fill"}}})}),e.jsx(o,{mb:3,className:"!h-[calc(100vh-17rem)] mt-3 overflow-scroll",sx:t=>({"&":{color:t.palette.text.primary},"& *":{color:`${t.palette.text.primary} !important`}}),dangerouslySetInnerHTML:{__html:((c=r==null?void 0:r.data)==null?void 0:c.body)||""}}),e.jsx(b,{onClick:()=>window.history.back(),children:a.label.back})]})]})})};export{F 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.