{"version":3,"file":"KlyroDocumentsPanel.C_2jVThP.mjs","names":[],"sources":["https:/framerusercontent.com/modules/LfdZJUOPYvYBtrt0RDZY/nYcjcsAhwDnkivV5W2id/KlyroDocumentsPanel.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType,useIsStaticRenderer}from\"framer\";import{motion}from\"framer-motion\";const defaultDocuments=[{title:\"Access Controls Policy\",file:\"\"},{title:\"Data Retention\",file:\"\"},{title:\"Information Security\",file:\"\"}];function DocumentIcon({color}){return /*#__PURE__*/_jsxs(\"svg\",{width:\"18\",height:\"18\",viewBox:\"0 0 24 24\",fill:\"none\",\"aria-hidden\":\"true\",children:[/*#__PURE__*/_jsx(\"path\",{d:\"M7 3.75h6.8L18 7.95v12.3H7z\",stroke:color,strokeWidth:\"1.5\",strokeLinejoin:\"round\"}),/*#__PURE__*/_jsx(\"path\",{d:\"M13.5 3.9v4.35h4.35M9.5 12h6M9.5 15.5h5\",stroke:color,strokeWidth:\"1.5\",strokeLinecap:\"round\",strokeLinejoin:\"round\"})]});}function DownloadIcon(){return /*#__PURE__*/_jsx(\"svg\",{width:\"17\",height:\"17\",viewBox:\"0 0 24 24\",fill:\"none\",\"aria-hidden\":\"true\",children:/*#__PURE__*/_jsx(\"path\",{d:\"M12 4v10m0 0 4-4m-4 4-4-4M5 19h14\",stroke:\"currentColor\",strokeWidth:\"1.7\",strokeLinecap:\"round\",strokeLinejoin:\"round\"})});}/**\n * Compact Klyro document links and downloads panel.\n *\n * @framerIntrinsicWidth 560\n * @framerIntrinsicHeight 286\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight any-prefer-fixed\n */export default function KlyroDocumentsPanel(props){const{title=\"Documentation\",subtitle=\"Policies, privacy, and platform security.\",documents=defaultDocuments,showHeader=true,backgroundColor=\"rgba(10, 10, 11, 0.96)\",rowColor=\"rgba(255, 255, 255, 0.035)\",borderColor=\"rgba(255, 255, 255, 0.11)\",accentColor=\"#C6A84A\",textColor=\"#F7F4EA\",mutedColor=\"rgba(247, 244, 234, 0.56)\",borderRadius=18,titleFont={},bodyFont={},style}=props;const isStatic=useIsStaticRenderer();const visibleDocuments=documents?.length?documents:defaultDocuments;function linkProps(url,shouldDownload=false){if(!url)return{};return{href:url,target:\"_blank\",rel:\"noreferrer noopener\",...shouldDownload?{download:true}:{}};}return /*#__PURE__*/_jsxs(\"section\",{\"aria-label\":title,style:{...style,position:\"relative\",width:\"100%\",height:\"100%\",minWidth:320,minHeight:220,boxSizing:\"border-box\",overflow:\"hidden\",display:\"flex\",flexDirection:\"column\",gap:14,padding:18,borderRadius,color:textColor,background:`linear-gradient(145deg, ${backgroundColor}, rgba(3, 3, 4, 0.98))`,border:`1px solid ${borderColor}`,boxShadow:\"0 18px 45px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255,255,255,0.035)\"},children:[/*#__PURE__*/_jsx(\"div\",{\"aria-hidden\":\"true\",style:{position:\"absolute\",inset:\"0 auto auto 0\",width:\"58%\",height:1,background:`linear-gradient(90deg, ${accentColor}, transparent)`,opacity:.85}}),showHeader&&/*#__PURE__*/_jsxs(\"header\",{style:{display:\"flex\",alignItems:\"flex-start\",justifyContent:\"space-between\",gap:16},children:[/*#__PURE__*/_jsxs(\"div\",{style:{minWidth:0,flex:1},children:[/*#__PURE__*/_jsx(\"div\",{style:{...titleFont,color:textColor,fontFamily:titleFont.fontFamily||\"Inter, sans-serif\",fontSize:titleFont.fontSize||17,fontWeight:titleFont.fontWeight||650,lineHeight:titleFont.lineHeight||1.15,letterSpacing:titleFont.letterSpacing||\"-0.025em\"},children:title}),/*#__PURE__*/_jsx(\"div\",{style:{...bodyFont,marginTop:5,color:mutedColor,fontFamily:bodyFont.fontFamily||\"Inter, sans-serif\",fontSize:bodyFont.fontSize||11,fontWeight:bodyFont.fontWeight||450,lineHeight:bodyFont.lineHeight||1.4},children:subtitle})]}),/*#__PURE__*/_jsx(\"div\",{\"aria-hidden\":\"true\",style:{display:\"grid\",placeItems:\"center\",width:34,height:34,flex:\"0 0 34px\",borderRadius:10,color:accentColor,border:`1px solid ${borderColor}`,background:\"rgba(255,255,255,0.025)\"},children:/*#__PURE__*/_jsx(DocumentIcon,{color:accentColor})})]}),/*#__PURE__*/_jsx(\"div\",{style:{display:\"grid\",gridTemplateColumns:\"repeat(2, minmax(0, 1fr))\",gridAutoRows:\"minmax(52px, 1fr)\",gap:8,width:\"100%\",minHeight:0,flex:1,overflowY:\"auto\",scrollbarWidth:\"thin\"},children:visibleDocuments.map((item,index)=>{// Legacy link values remain supported on existing instances,\n// while new items use the Framer document upload control.\nconst destination=item.file||item.link||item.downloadLink||\"\";const downloadDestination=item.file||item.downloadLink||item.link||\"\";return /*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",alignItems:\"stretch\",gap:8,width:\"100%\",minHeight:52},children:[/*#__PURE__*/_jsxs(motion.a,{...linkProps(destination),\"aria-label\":destination?`Open ${item.title}`:item.title,whileHover:isStatic?undefined:{y:-1,borderColor:accentColor},whileTap:isStatic?undefined:{scale:.99},style:{display:\"flex\",alignItems:\"center\",gap:11,minWidth:0,flex:1,padding:\"0 14px\",boxSizing:\"border-box\",borderRadius:12,color:textColor,textDecoration:\"none\",cursor:destination&&!isStatic?\"pointer\":\"default\",background:rowColor,border:`1px solid ${borderColor}`,transition:\"background-color .18s ease, border-color .18s ease\"},children:[/*#__PURE__*/_jsx(\"span\",{style:{display:\"grid\",placeItems:\"center\",width:28,height:28,flex:\"0 0 28px\",borderRadius:8,color:accentColor,background:\"rgba(198,168,74,0.09)\"},children:/*#__PURE__*/_jsx(DocumentIcon,{color:accentColor})}),/*#__PURE__*/_jsx(\"span\",{style:{...bodyFont,flex:1,minWidth:0,overflow:\"hidden\",textOverflow:\"ellipsis\",whiteSpace:\"nowrap\",fontFamily:bodyFont.fontFamily||\"Inter, sans-serif\",fontSize:bodyFont.fontSize||12,fontWeight:bodyFont.fontWeight||560,lineHeight:bodyFont.lineHeight||1.2},children:item.title||`Document ${index+1}`}),/*#__PURE__*/_jsx(\"span\",{\"aria-hidden\":\"true\",style:{flex:\"0 0 auto\",color:accentColor,fontSize:13,lineHeight:1},children:\"↗\"})]}),/*#__PURE__*/_jsx(motion.a,{...linkProps(downloadDestination,true),\"aria-label\":`Download ${item.title||`document ${index+1}`}`,title:`Download ${item.title||`document ${index+1}`}`,whileHover:isStatic?undefined:{y:-1,color:\"#0A0A0B\",backgroundColor:accentColor},whileTap:isStatic?undefined:{scale:.96},style:{display:\"grid\",placeItems:\"center\",width:52,flex:\"0 0 52px\",borderRadius:12,color:accentColor,cursor:downloadDestination&&!isStatic?\"pointer\":\"default\",background:\"rgba(198,168,74,0.08)\",border:`1px solid rgba(198,168,74,0.34)`,textDecoration:\"none\",transition:\"background-color .18s ease, color .18s ease\"},children:/*#__PURE__*/_jsx(DownloadIcon,{})})]},`${item.title}-${index}`);})}),/*#__PURE__*/_jsx(\"div\",{style:{height:1,width:\"100%\",background:borderColor}}),/*#__PURE__*/_jsxs(\"div\",{style:{...bodyFont,color:mutedColor,fontFamily:bodyFont.fontFamily||\"Inter, sans-serif\",fontSize:9,fontWeight:bodyFont.fontWeight||520,lineHeight:1.2,letterSpacing:\"0.12em\",textTransform:\"uppercase\"},children:[\"Klyro documents \\xb7 \",visibleDocuments.length,\" files\"]})]});}addPropertyControls(KlyroDocumentsPanel,{title:{type:ControlType.String,title:\"Title\",defaultValue:\"Documentation\"},subtitle:{type:ControlType.String,title:\"Subtitle\",defaultValue:\"Policies, privacy, and platform security.\"},showHeader:{type:ControlType.Boolean,title:\"Header\",defaultValue:true},documents:{type:ControlType.Array,title:\"Documents\",maxCount:12,control:{type:ControlType.Object,buttonTitle:\"Document\",controls:{title:{type:ControlType.String,title:\"Name\",defaultValue:\"New Document\"},file:{type:ControlType.File,title:\"Upload Document\",allowedFileTypes:[\"pdf\",\"doc\",\"docx\",\"txt\"]}}},defaultValue:defaultDocuments},backgroundColor:{type:ControlType.Color,title:\"Background\",defaultValue:\"rgba(10, 10, 11, 0.96)\"},rowColor:{type:ControlType.Color,title:\"Rows\",defaultValue:\"rgba(255, 255, 255, 0.035)\"},borderColor:{type:ControlType.Color,title:\"Borders\",defaultValue:\"rgba(255, 255, 255, 0.11)\"},accentColor:{type:ControlType.Color,title:\"Accent\",defaultValue:\"#C6A84A\"},textColor:{type:ControlType.Color,title:\"Text\",defaultValue:\"#F7F4EA\"},mutedColor:{type:ControlType.Color,title:\"Muted\",defaultValue:\"rgba(247, 244, 234, 0.56)\"},borderRadius:{type:ControlType.Number,title:\"Radius\",defaultValue:18,min:0,max:32,step:1},titleFont:{type:ControlType.Font,title:\"Title Font\",controls:\"extended\",defaultFontType:\"sans-serif\",defaultValue:{fontSize:\"17px\",variant:\"Semibold\",letterSpacing:\"-0.025em\",lineHeight:\"1.15em\"}},bodyFont:{type:ControlType.Font,title:\"Body Font\",controls:\"extended\",defaultFontType:\"sans-serif\",defaultValue:{fontSize:\"12px\",variant:\"Medium\",letterSpacing:\"-0.01em\",lineHeight:\"1.3em\"}}});KlyroDocumentsPanel.displayName=\"Klyro Documents Panel\";\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"KlyroDocumentsPanel\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"any-prefer-fixed\",\"framerIntrinsicWidth\":\"560\",\"framerIntrinsicHeight\":\"286\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./KlyroDocumentsPanel.map"],"mappings":"4NAA6S,SAAS,EAAa,CAAC,SAAO,CAAC,OAAoB,EAAM,MAAM,CAAC,MAAM,KAAK,OAAO,KAAK,QAAQ,YAAY,KAAK,OAAO,cAAc,OAAO,SAAS,CAAc,EAAK,OAAO,CAAC,EAAE,8BAA8B,OAAO,EAAM,YAAY,MAAM,eAAe,OAAO,CAAC,EA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