{"version":3,"file":"TermsConditions.CAdNfpTa.mjs","names":["t","DOMPurify","React.useMemo"],"sources":["https:/framerusercontent.com/modules/Iuc4oLL9uaK9MV6DJGbO/UWJ1miu9vO2TQYhpimw0/TermsConditions.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import*as React from\"react\";import{addPropertyControls,ControlType}from\"framer\";import{marked}from\"marked\";import DOMPurify from\"dompurify\";function slugify(text){return text.toLowerCase().replace(/[^a-z0-9\\s-]/g,\"\").trim().replace(/\\s+/g,\"-\");}function buildHtmlAndToc(markdown,anchorPrefix=\"\"){const tokens=marked.lexer(markdown);const toc=[];for(const t of tokens){if(t.type===\"heading\"&&typeof t.text===\"string\"){const depth=t.depth;const txt=t.text;const slug=(anchorPrefix?`${anchorPrefix}-`:\"\")+slugify(txt);toc.push({text:txt,slug,depth});}}const renderer=new marked.Renderer;renderer.heading=(text,level)=>{const slug=(anchorPrefix?`${anchorPrefix}-`:\"\")+slugify(text);return`<h${level} id=\"${slug}\"><a class=\"md-anchor\" href=\"#${slug}\">#</a>${text}</h${level}>`;};const rawHtml=marked.parse(markdown,{renderer});const cleanHtml=DOMPurify.sanitize(rawHtml);return{html:cleanHtml,toc};}export default function MarkdownPage(props){const{title=\"\",markdown=\"\",showTOC=true,mode=\"full\",maxContentWidth=860,contentPadding=24,enableShadows=true,backgroundColor=\"#1D174D\",textColor=\"#FFFFFF\",anchorPrefix=\"\"}=props;const{html,toc}=React.useMemo(()=>buildHtmlAndToc(markdown,anchorPrefix),[markdown,anchorPrefix]);// Wrapper always fills the component frame; the inner container\n// either spans 100% (full) or is centered with a max-width (constrained).\nconst innerStyle=mode===\"full\"?{width:\"100%\",margin:0,padding:contentPadding,boxSizing:\"border-box\"}:{maxWidth:maxContentWidth,width:\"100%\",margin:\"0 auto\",padding:contentPadding,boxSizing:\"border-box\"};return /*#__PURE__*/_jsxs(\"div\",{style:{width:\"100%\",height:\"100%\",overflow:\"auto\",background:backgroundColor,color:textColor,fontFamily:\"Poppins, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif\",fontSize:11,boxSizing:\"border-box\"},children:[/*#__PURE__*/_jsxs(\"div\",{style:innerStyle,children:[title?/*#__PURE__*/_jsx(\"h1\",{style:{marginBottom:8,color:textColor},children:title}):null,showTOC&&toc.length>0?/*#__PURE__*/_jsxs(\"nav\",{\"aria-label\":\"Table of contents\",style:{border:`1px solid rgba(255,255,255,0.2)`,padding:16,margin:\"16px 0 24px\",borderRadius:12,boxShadow:enableShadows?\"0 1px 4px rgba(255,255,255,0.2)\":\"none\",background:\"rgba(255,255,255,0.05)\",fontFamily:\"Poppins, sans-serif\",fontSize:11},children:[/*#__PURE__*/_jsx(\"div\",{style:{fontWeight:600,marginBottom:8,color:textColor},children:\"On this page\"}),/*#__PURE__*/_jsx(\"ul\",{style:{listStyle:\"none\",padding:0,margin:0},children:toc.map((item,i)=>/*#__PURE__*/_jsx(\"li\",{style:{marginLeft:(item.depth-1)*12,marginBottom:6},children:/*#__PURE__*/_jsx(\"a\",{href:`#${item.slug}`,style:{textDecoration:\"none\",color:textColor},children:item.text})},i))})]}):null,/*#__PURE__*/_jsx(\"article\",{className:\"markdown-body\",style:{fontFamily:\"Poppins, sans-serif\",fontSize:11},dangerouslySetInnerHTML:{__html:html}})]}),/*#__PURE__*/_jsx(\"style\",{children:`\n        .markdown-body h1 { font-size: 1.6rem; margin: 1rem 0 .5rem; color: ${textColor}; font-family: Poppins, sans-serif; }\n        .markdown-body h2 { font-size: 1.4rem; margin: 1rem 0 .5rem; color: ${textColor}; font-family: Poppins, sans-serif; }\n        .markdown-body h3 { font-size: 1.2rem; margin: .75rem 0 .5rem; color: ${textColor}; font-family: Poppins, sans-serif; }\n        .markdown-body p, .markdown-body li { line-height: 1.6; color: ${textColor}; font-family: Poppins, sans-serif; font-size: 11px; }\n        .markdown-body code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, \"Liberation Mono\", monospace; font-size: 10px; background: rgba(255,255,255,.1); padding: .1em .3em; border-radius: 4px; color: ${textColor}; }\n        .markdown-body pre { background: rgba(255,255,255,.1); padding: 12px; border-radius: 8px; overflow: auto; color: ${textColor}; font-size: 10px; }\n        .markdown-body table { width: 100%; border-collapse: collapse; margin: 16px 0; color: ${textColor}; font-family: Poppins, sans-serif; font-size: 11px; }\n        .markdown-body th, .markdown-body td { border: 1px solid rgba(255,255,255,.2); padding: 8px; text-align: left; }\n        .markdown-body blockquote { border-left: 4px solid rgba(255,255,255,.3); padding: 8px 12px; background: rgba(255,255,255,.1); border-radius: 6px; color: ${textColor}; font-family: Poppins, sans-serif; font-size: 11px; }\n        .md-anchor { opacity: 0; margin-right: .4rem; text-decoration: none; color: ${textColor}; }\n        h1:hover .md-anchor, h2:hover .md-anchor, h3:hover .md-anchor, h4:hover .md-anchor, h5:hover .md-anchor, h6:hover .md-anchor { opacity: .5; }\n        a { color: ${textColor}; }\n      `})]});}addPropertyControls(MarkdownPage,{title:{type:ControlType.String,title:\"Title\"},markdown:{type:ControlType.String,title:\"Markdown\",displayTextArea:true},showTOC:{type:ControlType.Boolean,title:\"Show TOC\",defaultValue:true},mode:{type:ControlType.Enum,title:\"Layout\",options:[\"full\",\"constrained\"],optionTitles:[\"Full Width\",\"Constrained\"],defaultValue:\"full\"},maxContentWidth:{type:ControlType.Number,title:\"Max Width\",defaultValue:860,min:480,max:1920,step:10,hidden:props=>props.mode!==\"constrained\"},contentPadding:{type:ControlType.Number,title:\"Padding\",defaultValue:24,min:0,max:96,step:1},enableShadows:{type:ControlType.Boolean,title:\"Shadows\",defaultValue:true},backgroundColor:{type:ControlType.Color,title:\"Background\",defaultValue:\"#1D174D\"},textColor:{type:ControlType.Color,title:\"Text\",defaultValue:\"#FFFFFF\"},anchorPrefix:{type:ControlType.String,title:\"Anchor Prefix\",defaultValue:\"\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"MarkdownPage\",\"slots\":[],\"annotations\":{\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