{"version":3,"file":"TableComponent.DGWs0C88.mjs","names":["useMemo","useState","isHeaderColumn","_Fragment","__esmMin","pe","init_npm_react_18_3_1","l","_e","p","ce","init_framer_BWFVvmND","addPropertyControls","ControlType","TableComponent","paginationTextColor","filterTextColor","props","cellMetaMap","parseCellMetaJson","cellMetaJson","parseFontSize","value","parsed","fallback","parseFontWeight","num","fontFamily","font","fontSize","lineHeight","bodyFontWeight","headerFontFamily","headerFont","headerFontSize","headerLineHeight","headerFontWeight","borderWidth","border","borderStyle","sortColumn","setSortColumn","sortDirection","setSortDirection","hoveredColumn","setHoveredColumn","filterText","setFilterText","safeTheme","theme","sourceMatrix","parseMatrixJson","dataJson","data","sanitizedData","sanitizeMatrix","rows","columns","headerRow","showColumnHeaders","bodyRows","filteredRows","enableFiltering","query","row","cell","sortedRows","enableSorting","sorted","aVal","a","bVal","b","aNum","bNum","cmp","currentPage","setCurrentPage","paginatedRows","enablePagination","rowsPerPage","start","totalPages","handleSort","columnIndex","prev","resolvedHeaderPadding","headerCellPadding","resolvedBodyPadding","bodyCellPadding","resolvedRadius","cornerRadius","hasGap","columnGap","rowGap","wrapperStyle","tableStyle","baseCellStyle","filterBarPadding","resolvedFilterBg","filterBackground","resolvedFilterText","filterBorderWidth","filterBorder","filterBorderStyle","filterBorderColor","resolvedFilterPadding","filterPadding","filterBarStyle","filterInputStyle","filterBorderRadius","filterIconWrapperStyle","resolvedPaginationBg","paginationBackground","resolvedPaginationText","paginationFontFamily","paginationFont","paginationFontSize","paginationFontWeight","paginationLineHeight","paginationNumbersFontFamily","paginationNumbersFont","paginationNumbersFontSize","paginationNumbersFontWeight","paginationNumbersLineHeight","resolvedPaginationPadding","paginationPadding","resolvedBtnBg","paginationBtnBackground","resolvedBtnText","paginationBtnText","resolvedBtnActiveBg","paginationBtnActiveBackground","resolvedBtnActiveText","paginationBtnActiveText","btnBorderWidth","paginationBtnBorder","btnBorderStyle","btnBorderColor","getButtonStyle","paginationBtnWidth","paginationBtnHeight","paginationBtnRadius","isActive","isDisabled","IconInline","filterIconSvg","filterPlaceholder","alignmentToText","headerAlignment","CellContent","sortAscIconSvg","sortDescIconSvg","sortNoneIconSvg","originalIndex","index","absoluteRowIndex","isRowHeaderCell","showRowHeaders","variant","resolveCellVariant","zebraStripes","backgroundColor","color","isHeader","commonProps","bodyAlignment","rowHeaderKey","rowHeaderMeta","cellKey","meta","paginationTextTemplate","paginationIconSize","paginationStyle","generatePagination","i","clampNumber","TAG_SIZE_STYLES","init_TableComponent","init_jsx_runtime","min","max","source","matrix","inferredRows","inferredColumns","safeRows","safeColumns","sanitized","rowIndex","rowValue","sanitizedRow","zebraRowIndex","json","pages","end","svg","sized","size","pos","sizeStyle","tagStyle","inheritedColor","btnStyle","inner"],"sources":["https:/framerusercontent.com/modules/btMvJg9EUCxpeUQImqR6/28uG7JpSPQEeB5rCvwBS/TableComponent.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs,Fragment as _Fragment}from\"react/jsx-runtime\";import{useState,useMemo,useEffect}from\"react\";import{addPropertyControls,ControlType}from\"framer\";const clampNumber=(value,min,max)=>{if(!Number.isFinite(value)){return min;}return Math.max(min,Math.min(max,Math.round(value)));};const sanitizeMatrix=(matrix,rows,columns)=>{const source=Array.isArray(matrix)?matrix:[];const inferredRows=source.length>0?source.length:1;const inferredColumns=source.reduce((max,row)=>{if(!Array.isArray(row)){return max;}return Math.max(max,row.length);},1);const safeRows=Number.isFinite(rows)?clampNumber(rows,1,200):clampNumber(inferredRows,1,200);const safeColumns=Number.isFinite(columns)?clampNumber(columns,1,200):clampNumber(inferredColumns,1,200);const sanitized=[];for(let rowIndex=0;rowIndex<safeRows;rowIndex+=1){const rowValue=source[rowIndex];const row=Array.isArray(rowValue)?rowValue:[];const sanitizedRow=[];for(let columnIndex=0;columnIndex<safeColumns;columnIndex+=1){sanitizedRow.push((row[columnIndex]??\"\").toString());}sanitized.push(sanitizedRow);}return sanitized;};const parseMatrixJson=value=>{if(typeof value!==\"string\"||value.trim().length===0){return null;}try{const parsed=JSON.parse(value);return Array.isArray(parsed)?parsed:null;}catch{return null;}};const alignmentToText={left:\"left\",center:\"center\",right:\"right\"};const resolveCellVariant=(rowIndex,showColumnHeaders,showRowHeaders,zebraStripes)=>{const isHeaderRow=showColumnHeaders&&rowIndex===0;const isHeaderColumn=showRowHeaders;const isHeader=isHeaderRow||isHeaderColumn;if(isHeader){return\"header\";}const zebraRowIndex=showColumnHeaders?rowIndex-1:rowIndex;if(zebraStripes&&zebraRowIndex>=0&&zebraRowIndex%2===1){return\"zebra\";}return\"body\";};const parseCellMetaJson=json=>{if(typeof json!==\"string\"||json.trim().length===0)return{};try{const parsed=JSON.parse(json);return typeof parsed===\"object\"&&parsed!==null?parsed:{};}catch{return{};}};const generatePagination=(currentPage,totalPages)=>{if(totalPages<=5){return Array.from({length:totalPages},(_,i)=>i+1);}const pages=[];let start=Math.max(1,currentPage-1);let end=Math.min(totalPages,currentPage+1);if(currentPage===1)end=3;if(currentPage===totalPages)start=totalPages-2;for(let i=start;i<=end;i++){pages.push(i);}if(end<totalPages){if(end<totalPages-1){pages.push(\"...\");}pages.push(totalPages);}return pages;};const TAG_SIZE_STYLES={sm:{padding:\"2px 6px\",fontSize:\"0.75em\"},md:{padding:\"3px 10px\",fontSize:\"0.85em\"},lg:{padding:\"4px 14px\",fontSize:\"0.95em\"}};const IconInline=({svg,size=14})=>{// Inject width/height into the SVG element so it scales to the container\nif(!svg||!svg.trim())return null;const cleanSvg=svg.trim();const sized=cleanSvg.replace(/^<svg\\b/i,`<svg width=\"${size}\" height=\"${size}\"`);if(!/^<svg\\b/i.test(sized))return null;return /*#__PURE__*/_jsx(\"span\",{style:{display:\"inline-flex\",alignItems:\"center\",justifyContent:\"center\",width:size,height:size,flexShrink:0,lineHeight:0},dangerouslySetInnerHTML:{__html:sized}});};const CellContent=({value,meta,inheritedColor})=>{if(!meta||meta.type===\"text\"){if(meta?.icon){const pos=meta.iconPosition??\"left\";return /*#__PURE__*/_jsxs(\"span\",{style:{display:\"inline-flex\",alignItems:\"center\",gap:4},children:[pos===\"left\"&&/*#__PURE__*/_jsx(IconInline,{svg:meta.icon}),/*#__PURE__*/_jsx(\"span\",{children:value}),pos===\"right\"&&/*#__PURE__*/_jsx(IconInline,{svg:meta.icon})]});}return /*#__PURE__*/_jsx(_Fragment,{children:value});}if(meta.type===\"tag\"){const sizeStyle=TAG_SIZE_STYLES[meta.tagSize??\"md\"]??TAG_SIZE_STYLES.md;const tagStyle={display:\"inline-flex\",alignItems:\"center\",gap:4,borderRadius:meta.tagBorderRadius??999,backgroundColor:meta.tagColor??\"#e5e7eb\",color:meta.tagTextColor??inheritedColor,fontWeight:500,lineHeight:1.2,whiteSpace:\"nowrap\",...sizeStyle};const pos=meta.iconPosition??\"left\";return /*#__PURE__*/_jsxs(\"span\",{style:tagStyle,children:[meta.icon&&pos===\"left\"&&/*#__PURE__*/_jsx(IconInline,{svg:meta.icon,size:12}),/*#__PURE__*/_jsx(\"span\",{children:value}),meta.icon&&pos===\"right\"&&/*#__PURE__*/_jsx(IconInline,{svg:meta.icon,size:12})]});}if(meta.type===\"button\"){const btnStyle={display:\"inline-flex\",alignItems:\"center\",gap:4,padding:\"6px 16px\",borderRadius:meta.btnBorderRadius??6,backgroundColor:meta.btnBackground??\"#111827\",color:meta.btnTextColor??\"#ffffff\",fontWeight:500,lineHeight:1.2,whiteSpace:\"nowrap\",cursor:meta.btnUrl?\"pointer\":undefined,textDecoration:\"none\",border:\"none\"};const pos=meta.iconPosition??\"left\";const inner=/*#__PURE__*/_jsxs(_Fragment,{children:[meta.icon&&pos===\"left\"&&/*#__PURE__*/_jsx(IconInline,{svg:meta.icon,size:14}),/*#__PURE__*/_jsx(\"span\",{children:value}),meta.icon&&pos===\"right\"&&/*#__PURE__*/_jsx(IconInline,{svg:meta.icon,size:14})]});if(meta.btnUrl){return /*#__PURE__*/_jsx(\"a\",{href:meta.btnUrl,target:\"_blank\",rel:\"noopener noreferrer\",style:btnStyle,children:inner});}return /*#__PURE__*/_jsx(\"span\",{style:btnStyle,children:inner});}return /*#__PURE__*/_jsx(_Fragment,{children:value});};/**\n * @framerDisableUnlink\n *\n * @framerIntrinsicWidth any\n * @framerIntrinsicHeight any\n */export default function TableComponent(props){const{rows,columns,data=[],dataJson=\"\",showColumnHeaders,showRowHeaders,zebraStripes,headerAlignment=\"left\",bodyAlignment=\"left\",headerCellPadding,bodyCellPadding,columnGap,rowGap,border={},cornerRadius,theme,font={},headerFont={},enableSorting=false,enableFiltering=false,enablePagination=false,rowsPerPage=10,paginationStyle=\"simple\",paginationTextTemplate=\"Showing {start} to {end} of {total} rows\",paginationBackground,paginationText:paginationTextColor,paginationFont={},paginationNumbersFont={},paginationIconSize=16,paginationPadding=\"8px\",paginationBtnBackground,paginationBtnText,paginationBtnActiveBackground,paginationBtnActiveText,paginationBtnBorder={},paginationBtnRadius=4,paginationBtnWidth=32,paginationBtnHeight=32,filterBackground,filterText:filterTextColor,filterBorder={},filterBorderRadius=4,filterPadding=\"8px\",filterPlaceholder=\"Filter rows...\",filterIconSvg='<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\"><polygon points=\"22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3\"/></svg>',sortAscIconSvg='<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\"><path d=\"m5 12 7-7 7 7\"/><path d=\"M12 19V5\"/></svg>',sortDescIconSvg='<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\"><path d=\"M12 5v14\"/><path d=\"m19 12-7 7-7-7\"/></svg>',sortNoneIconSvg='<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\"><path d=\"m21 16-4 4-4-4\"/><path d=\"M17 20V4\"/><path d=\"m3 8 4-4 4 4\"/><path d=\"M7 4v16\"/></svg>',cellMetaJson=\"\"}=props;const cellMetaMap=useMemo(()=>parseCellMetaJson(cellMetaJson),[cellMetaJson]);// Parse a font size value that may arrive as a number or string (Framer Font control)\nconst parseFontSize=(value,fallback)=>{if(typeof value===\"number\"&&Number.isFinite(value))return value;if(typeof value===\"string\"){const parsed=parseFloat(value);if(Number.isFinite(parsed)&&parsed>0)return parsed;}return fallback;};// Parse font weight from number or Framer weight name\nconst parseFontWeight=(value,fallback)=>{if(typeof value===\"number\")return value;if(typeof value===\"string\"){const num=parseInt(value,10);if(Number.isFinite(num))return num;return value// pass through CSS weight names like \"bold\"\n;}return fallback;};// Extract font values with defaults\nconst fontFamily=font.fontFamily??\"Inter\";const fontSize=parseFontSize(font.fontSize,14);const lineHeight=font.lineHeight??1.4;const bodyFontWeight=parseFontWeight(font.fontWeight,400);// Extract header font values (fall back to body font values)\nconst headerFontFamily=headerFont.fontFamily??fontFamily;const headerFontSize=parseFontSize(headerFont.fontSize,fontSize);const headerLineHeight=headerFont.lineHeight??lineHeight;const headerFontWeight=parseFontWeight(headerFont.fontWeight,600);// Extract border values with defaults\nconst borderWidth=typeof border.borderWidth===\"number\"?border.borderWidth:typeof border.borderWidth===\"string\"?parseFloat(border.borderWidth)||0:1;const borderStyle=border.borderStyle??\"solid\";const[sortColumn,setSortColumn]=useState(null);const[sortDirection,setSortDirection]=useState(\"asc\");const[hoveredColumn,setHoveredColumn]=useState(null);const[filterText,setFilterText]=useState(\"\");const defaultTheme={headerBackground:\"#111111\",headerText:\"#ffffff\",bodyBackground:\"#ffffff\",bodyText:\"#111111\",zebraBackground:\"#f3f4f6\",zebraText:\"#111111\",borderColor:\"#d1d5db\"};const safeTheme=Object.assign({},defaultTheme,theme);const sourceMatrix=parseMatrixJson(dataJson)??data;const sanitizedData=sanitizeMatrix(sourceMatrix,rows,columns);const headerRow=showColumnHeaders?sanitizedData[0]:null;const bodyRows=sanitizedData.slice(showColumnHeaders?1:0);// Apply filtering\nconst filteredRows=useMemo(()=>{if(!enableFiltering||filterText.trim().length===0)return bodyRows;const query=filterText.toLowerCase();return bodyRows.filter(row=>row.some(cell=>cell.toLowerCase().includes(query)));},[bodyRows,enableFiltering,filterText]);// Apply sorting\nconst sortedRows=useMemo(()=>{if(!enableSorting||sortColumn===null)return filteredRows;const sorted=[...filteredRows];sorted.sort((a,b)=>{const aVal=(a[sortColumn]??\"\").toLowerCase();const bVal=(b[sortColumn]??\"\").toLowerCase();// Try numeric comparison first\nconst aNum=Number(aVal);const bNum=Number(bVal);if(!Number.isNaN(aNum)&&!Number.isNaN(bNum)){return sortDirection===\"asc\"?aNum-bNum:bNum-aNum;}const cmp=aVal.localeCompare(bVal);return sortDirection===\"asc\"?cmp:-cmp;});return sorted;},[filteredRows,enableSorting,sortColumn,sortDirection]);const[currentPage,setCurrentPage]=useState(1);// Reset page when filtering or sorting changes\nuseEffect(()=>{setCurrentPage(1);},[filterText,sortColumn,sortDirection]);// Apply pagination\nconst paginatedRows=useMemo(()=>{if(!enablePagination||rowsPerPage<=0)return sortedRows;const start=(currentPage-1)*rowsPerPage;return sortedRows.slice(start,start+rowsPerPage);},[sortedRows,enablePagination,rowsPerPage,currentPage]);const totalPages=Math.max(1,Math.ceil(sortedRows.length/(rowsPerPage>0?rowsPerPage:1)));const handleSort=columnIndex=>{if(!enableSorting)return;if(sortColumn===columnIndex){setSortDirection(prev=>prev===\"asc\"?\"desc\":\"asc\");}else{setSortColumn(columnIndex);setSortDirection(\"asc\");}};// Resolve padding string\nconst resolvedHeaderPadding=typeof headerCellPadding===\"number\"?`${Math.max(0,headerCellPadding)}px`:headerCellPadding||\"12px\";const resolvedBodyPadding=typeof bodyCellPadding===\"number\"?`${Math.max(0,bodyCellPadding)}px`:bodyCellPadding||\"12px\";// Resolve border radius\nconst resolvedRadius=typeof cornerRadius===\"number\"?`${cornerRadius}px`:cornerRadius||\"8px\";const hasGap=columnGap>0||rowGap>0;const wrapperStyle={width:\"100%\",overflowX:\"auto\",borderRadius:resolvedRadius};const tableStyle=hasGap?{width:\"100%\",minWidth:\"100%\",borderCollapse:\"separate\",borderSpacing:`${columnGap}px ${rowGap}px`,backgroundColor:borderWidth>0?border.borderColor??safeTheme.borderColor:\"transparent\",padding:borderWidth>0?`${borderWidth}px`:undefined,borderRadius:resolvedRadius,boxSizing:\"border-box\",fontFamily,fontSize:`${fontSize}px`,lineHeight:`${lineHeight}`,letterSpacing:font.letterSpacing!=null?typeof font.letterSpacing===\"number\"?`${font.letterSpacing}px`:font.letterSpacing:undefined}:{width:\"100%\",minWidth:\"100%\",borderCollapse:\"collapse\",borderRadius:resolvedRadius,boxSizing:\"border-box\",fontFamily,fontSize:`${fontSize}px`,lineHeight:`${lineHeight}`,letterSpacing:font.letterSpacing!=null?typeof font.letterSpacing===\"number\"?`${font.letterSpacing}px`:font.letterSpacing:undefined};const baseCellStyle={minWidth:\"64px\",verticalAlign:\"middle\",border:borderWidth>0&&!hasGap?`${borderWidth}px ${borderStyle} ${border.borderColor??safeTheme.borderColor}`:undefined,whiteSpace:\"pre-wrap\",wordBreak:\"break-word\"};const filterBarPadding=typeof headerCellPadding===\"number\"?headerCellPadding:parseFloat(String(headerCellPadding))||12;const resolvedFilterBg=filterBackground||safeTheme.bodyBackground;const resolvedFilterText=filterTextColor||safeTheme.bodyText;const filterBorderWidth=typeof filterBorder.borderWidth===\"number\"?filterBorder.borderWidth:typeof filterBorder.borderWidth===\"string\"?parseFloat(filterBorder.borderWidth)||1:1;const filterBorderStyle=filterBorder.borderStyle??\"solid\";const filterBorderColor=filterBorder.borderColor??safeTheme.borderColor;const resolvedFilterPadding=typeof filterPadding===\"number\"?`${Math.max(0,filterPadding)}px`:filterPadding||\"8px\";const filterBarStyle={padding:`${Math.max(4,filterBarPadding/2)}px`,backgroundColor:resolvedFilterBg,borderBottom:borderWidth>0?`${borderWidth}px solid ${filterBorderColor}`:undefined};const filterInputStyle={width:\"100%\",padding:resolvedFilterPadding,paddingLeft:\"32px\",border:`${filterBorderWidth}px ${filterBorderStyle} ${filterBorderColor}`,borderRadius:`${filterBorderRadius}px`,backgroundColor:resolvedFilterBg,color:resolvedFilterText,fontFamily,fontSize:`${Math.max(10,fontSize-2)}px`,outline:\"none\",boxSizing:\"border-box\"};const filterIconWrapperStyle={position:\"absolute\",left:\"10px\",display:\"flex\",alignItems:\"center\",justifyContent:\"center\",color:resolvedFilterText,opacity:.5,pointerEvents:\"none\"};const resolvedPaginationBg=paginationBackground||safeTheme.bodyBackground;const resolvedPaginationText=paginationTextColor||safeTheme.bodyText;// Resolve pagination fonts\nconst paginationFontFamily=paginationFont.fontFamily??fontFamily;const paginationFontSize=parseFontSize(paginationFont.fontSize,Math.max(10,fontSize-2));const paginationFontWeight=parseFontWeight(paginationFont.fontWeight,bodyFontWeight);const paginationLineHeight=paginationFont.lineHeight??lineHeight;const paginationNumbersFontFamily=paginationNumbersFont.fontFamily??paginationFontFamily;const paginationNumbersFontSize=parseFontSize(paginationNumbersFont.fontSize,paginationFontSize);const paginationNumbersFontWeight=parseFontWeight(paginationNumbersFont.fontWeight,paginationFontWeight);const paginationNumbersLineHeight=paginationNumbersFont.lineHeight??paginationLineHeight;// Resolve pagination padding\nconst resolvedPaginationPadding=typeof paginationPadding===\"number\"?`${Math.max(0,paginationPadding)}px`:paginationPadding||\"8px\";const resolvedBtnBg=paginationBtnBackground||\"transparent\";const resolvedBtnText=paginationBtnText||safeTheme.bodyText;const resolvedBtnActiveBg=paginationBtnActiveBackground||safeTheme.bodyText;const resolvedBtnActiveText=paginationBtnActiveText||safeTheme.bodyBackground;const btnBorderWidth=typeof paginationBtnBorder.borderWidth===\"number\"?paginationBtnBorder.borderWidth:typeof paginationBtnBorder.borderWidth===\"string\"?parseFloat(paginationBtnBorder.borderWidth)||1:1;const btnBorderStyle=paginationBtnBorder.borderStyle??\"solid\";const btnBorderColor=paginationBtnBorder.borderColor??safeTheme.borderColor;const getButtonStyle=(isActive,isDisabled)=>({display:\"flex\",alignItems:\"center\",justifyContent:\"center\",padding:\"4px 8px\",width:paginationBtnWidth>0?`${paginationBtnWidth}px`:undefined,height:paginationBtnHeight>0?`${paginationBtnHeight}px`:undefined,borderRadius:`${paginationBtnRadius}px`,border:`${btnBorderWidth}px ${btnBorderStyle} ${btnBorderColor}`,backgroundColor:isActive?resolvedBtnActiveBg:resolvedBtnBg,color:isActive?resolvedBtnActiveText:resolvedBtnText,cursor:isDisabled?\"not-allowed\":\"pointer\",opacity:isDisabled?.5:1,fontFamily:paginationNumbersFontFamily,fontSize:`${paginationNumbersFontSize}px`,fontWeight:paginationNumbersFontWeight,lineHeight:`${paginationNumbersLineHeight}`});return /*#__PURE__*/_jsxs(\"div\",{\"data-testid\":\"table-root\",style:wrapperStyle,children:[enableFiltering?/*#__PURE__*/_jsx(\"div\",{style:filterBarStyle,children:/*#__PURE__*/_jsxs(\"div\",{style:{position:\"relative\",display:\"flex\",alignItems:\"center\",width:\"100%\"},children:[/*#__PURE__*/_jsx(\"span\",{style:filterIconWrapperStyle,children:/*#__PURE__*/_jsx(IconInline,{svg:filterIconSvg,size:14})}),/*#__PURE__*/_jsx(\"input\",{type:\"text\",placeholder:filterPlaceholder,value:filterText,onChange:e=>setFilterText(e.target.value),style:filterInputStyle})]})}):null,/*#__PURE__*/_jsxs(\"table\",{style:tableStyle,children:[headerRow?/*#__PURE__*/_jsx(\"thead\",{children:/*#__PURE__*/_jsx(\"tr\",{children:headerRow.map((value,columnIndex)=>/*#__PURE__*/_jsx(\"th\",{\"data-testid\":\"table-cell\",\"data-variant\":\"header\",scope:\"col\",onClick:()=>handleSort(columnIndex),style:{...baseCellStyle,textAlign:alignmentToText[headerAlignment],padding:resolvedHeaderPadding,backgroundColor:safeTheme.headerBackground,color:safeTheme.headerText,fontFamily:headerFontFamily,fontSize:`${headerFontSize}px`,lineHeight:`${headerLineHeight}`,fontWeight:headerFontWeight,cursor:enableSorting?\"pointer\":undefined,userSelect:enableSorting?\"none\":undefined},onMouseEnter:()=>enableSorting&&setHoveredColumn(columnIndex),onMouseLeave:()=>enableSorting&&setHoveredColumn(null),children:/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",alignItems:\"center\",justifyContent:headerAlignment===\"center\"?\"center\":headerAlignment===\"right\"?\"flex-end\":\"flex-start\",gap:\"4px\",width:\"100%\"},children:[/*#__PURE__*/_jsx(CellContent,{value:value,meta:cellMetaMap[`0-${columnIndex}`],inheritedColor:safeTheme.headerText}),enableSorting?/*#__PURE__*/_jsx(\"span\",{style:{display:\"inline-flex\",alignItems:\"center\",opacity:sortColumn===columnIndex?1:hoveredColumn===columnIndex?.4:0,transition:\"opacity 0.2s ease-in-out\"},children:/*#__PURE__*/_jsx(IconInline,{svg:sortColumn===columnIndex?sortDirection===\"asc\"?sortAscIconSvg:sortDescIconSvg:sortNoneIconSvg,size:Math.max(12,headerFontSize-2)})}):null]})},`head-${columnIndex}`))})}):null,/*#__PURE__*/_jsxs(\"tbody\",{children:[paginatedRows.map((row,index)=>{const originalIndex=enablePagination&&rowsPerPage>0?(currentPage-1)*rowsPerPage+index:index;const absoluteRowIndex=showColumnHeaders?originalIndex+1:originalIndex;return /*#__PURE__*/_jsx(\"tr\",{children:row.map((value,columnIndex)=>{const isRowHeaderCell=showRowHeaders&&columnIndex===0;const variant=isRowHeaderCell?\"header\":resolveCellVariant(absoluteRowIndex,showColumnHeaders,false,zebraStripes);const backgroundColor=variant===\"header\"?safeTheme.headerBackground:variant===\"zebra\"?safeTheme.zebraBackground:safeTheme.bodyBackground;const color=variant===\"header\"?safeTheme.headerText:variant===\"zebra\"?safeTheme.zebraText:safeTheme.bodyText;const isHeader=variant===\"header\";const commonProps={\"data-testid\":\"table-cell\",\"data-variant\":variant,style:{...baseCellStyle,textAlign:alignmentToText[isHeader?headerAlignment:bodyAlignment],padding:isHeader?resolvedHeaderPadding:resolvedBodyPadding,backgroundColor,color,fontFamily:isHeader?headerFontFamily:fontFamily,fontSize:isHeader?`${headerFontSize}px`:`${fontSize}px`,lineHeight:isHeader?`${headerLineHeight}`:`${lineHeight}`,fontWeight:isHeader?headerFontWeight:bodyFontWeight}};if(isRowHeaderCell){const rowHeaderKey=`${absoluteRowIndex}-${columnIndex}`;const rowHeaderMeta=cellMetaMap[rowHeaderKey];return /*#__PURE__*/_jsx(\"th\",{scope:\"row\",...commonProps,children:/*#__PURE__*/_jsx(CellContent,{value:value,meta:rowHeaderMeta,inheritedColor:color})},`row-header-${absoluteRowIndex}-${columnIndex}`);}const cellKey=`${absoluteRowIndex}-${columnIndex}`;const meta=cellMetaMap[cellKey];return /*#__PURE__*/_jsx(\"td\",{...commonProps,children:/*#__PURE__*/_jsx(CellContent,{value:value,meta:meta,inheritedColor:color})},`cell-${absoluteRowIndex}-${columnIndex}`);})},`row-${absoluteRowIndex}`);}),enableFiltering&&filterText.trim().length>0&&sortedRows.length===0?/*#__PURE__*/_jsx(\"tr\",{children:/*#__PURE__*/_jsx(\"td\",{colSpan:columns,style:{...baseCellStyle,padding:resolvedBodyPadding,backgroundColor:safeTheme.bodyBackground,color:safeTheme.bodyText,textAlign:\"center\",opacity:.5,fontStyle:\"italic\"},children:\"No matching rows\"})}):null]})]}),enablePagination&&totalPages>1?/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",alignItems:\"center\",justifyContent:\"space-between\",padding:resolvedPaginationPadding,backgroundColor:resolvedPaginationBg,borderBottomLeftRadius:resolvedRadius,borderBottomRightRadius:resolvedRadius,fontFamily:paginationFontFamily,fontSize:`${paginationFontSize}px`,fontWeight:paginationFontWeight,lineHeight:`${paginationLineHeight}`,color:resolvedPaginationText},children:[/*#__PURE__*/_jsx(\"span\",{children:paginationTextTemplate.replace(\"{start}\",String(sortedRows.length===0?0:(currentPage-1)*rowsPerPage+1)).replace(\"{end}\",String(Math.min(sortedRows.length,currentPage*rowsPerPage))).replace(\"{total}\",String(sortedRows.length)).replace(\"{current}\",String(currentPage)).replace(\"{page}\",String(currentPage)).replace(\"{pages}\",String(totalPages))}),/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",gap:\"8px\"},children:[/*#__PURE__*/_jsx(\"button\",{type:\"button\",onClick:()=>setCurrentPage(1),disabled:currentPage===1,style:getButtonStyle(false,currentPage===1),children:/*#__PURE__*/_jsxs(\"svg\",{xmlns:\"http://www.w3.org/2000/svg\",width:paginationIconSize,height:paginationIconSize,viewBox:\"0 0 24 24\",fill:\"none\",stroke:\"currentColor\",strokeWidth:\"2\",strokeLinecap:\"round\",strokeLinejoin:\"round\",children:[/*#__PURE__*/_jsx(\"path\",{d:\"m11 17-5-5 5-5\"}),/*#__PURE__*/_jsx(\"path\",{d:\"m18 17-5-5 5-5\"})]})}),/*#__PURE__*/_jsx(\"button\",{type:\"button\",onClick:()=>setCurrentPage(prev=>Math.max(1,prev-1)),disabled:currentPage===1,style:getButtonStyle(false,currentPage===1),children:/*#__PURE__*/_jsx(\"svg\",{xmlns:\"http://www.w3.org/2000/svg\",width:paginationIconSize,height:paginationIconSize,viewBox:\"0 0 24 24\",fill:\"none\",stroke:\"currentColor\",strokeWidth:\"2\",strokeLinecap:\"round\",strokeLinejoin:\"round\",children:/*#__PURE__*/_jsx(\"path\",{d:\"m15 18-6-6 6-6\"})})}),paginationStyle===\"numbers\"?/*#__PURE__*/_jsx(\"div\",{style:{display:\"flex\",gap:\"4px\"},children:generatePagination(currentPage,totalPages).map((p,i)=>p===\"...\"?/*#__PURE__*/_jsx(\"span\",{style:{padding:\"4px 0\",display:\"flex\",alignItems:\"center\",justifyContent:\"center\",minWidth:\"24px\"},children:\"...\"},`dots-${i}`):/*#__PURE__*/_jsx(\"button\",{type:\"button\",onClick:()=>setCurrentPage(p),style:getButtonStyle(currentPage===p,false),children:p},`page-${p}`))}):null,/*#__PURE__*/_jsx(\"button\",{type:\"button\",onClick:()=>setCurrentPage(prev=>Math.min(totalPages,prev+1)),disabled:currentPage===totalPages,style:getButtonStyle(false,currentPage===totalPages),children:/*#__PURE__*/_jsx(\"svg\",{xmlns:\"http://www.w3.org/2000/svg\",width:paginationIconSize,height:paginationIconSize,viewBox:\"0 0 24 24\",fill:\"none\",stroke:\"currentColor\",strokeWidth:\"2\",strokeLinecap:\"round\",strokeLinejoin:\"round\",children:/*#__PURE__*/_jsx(\"path\",{d:\"m9 18 6-6-6-6\"})})}),/*#__PURE__*/_jsx(\"button\",{type:\"button\",onClick:()=>setCurrentPage(totalPages),disabled:currentPage===totalPages,style:getButtonStyle(false,currentPage===totalPages),children:/*#__PURE__*/_jsxs(\"svg\",{xmlns:\"http://www.w3.org/2000/svg\",width:paginationIconSize,height:paginationIconSize,viewBox:\"0 0 24 24\",fill:\"none\",stroke:\"currentColor\",strokeWidth:\"2\",strokeLinecap:\"round\",strokeLinejoin:\"round\",children:[/*#__PURE__*/_jsx(\"path\",{d:\"m6 17 5-5-5-5\"}),/*#__PURE__*/_jsx(\"path\",{d:\"m13 17 5-5-5-5\"})]})})]})]}):null]});}TableComponent.defaultProps={rows:4,columns:4,data:[[\"Header 1\",\"Header 2\",\"Header 3\",\"Header 4\"],[\"Row 1\",\"\",\"\",\"\"],[\"Row 2\",\"\",\"\",\"\"],[\"Row 3\",\"\",\"\",\"\"]],dataJson:\"\",showColumnHeaders:true,showRowHeaders:false,zebraStripes:false,headerAlignment:\"left\",bodyAlignment:\"left\",headerCellPadding:\"12px\",bodyCellPadding:\"12px\",columnGap:0,rowGap:0,border:{borderWidth:1,borderColor:\"#e5e7eb\",borderStyle:\"solid\"},cornerRadius:8,theme:{headerBackground:\"#f3f4f6\",headerText:\"#111827\",bodyBackground:\"#ffffff\",bodyText:\"#111827\",zebraBackground:\"#f9fafb\",zebraText:\"#111827\",borderColor:\"#e5e7eb\"},themeId:\"minimal-light\",widthMode:\"auto\",font:{fontFamily:\"Inter\",fontSize:14,fontWeight:400,lineHeight:1.4},headerFont:{fontFamily:\"Inter\",fontSize:14,fontWeight:600,lineHeight:1.4},enableSorting:false,enableFiltering:false,enablePagination:false,rowsPerPage:10,paginationStyle:\"simple\",paginationTextTemplate:\"Showing {start} to {end} of {total} rows\",paginationBackground:\"\",paginationText:\"\",paginationFont:{fontFamily:\"Inter\",fontSize:12,fontWeight:400,lineHeight:1.4},paginationNumbersFont:{fontFamily:\"Inter\",fontSize:12,fontWeight:400,lineHeight:1.4},paginationIconSize:16,paginationPadding:\"8px\",paginationBtnBackground:\"transparent\",paginationBtnText:\"\",paginationBtnActiveBackground:\"\",paginationBtnActiveText:\"\",paginationBtnBorder:{borderWidth:1,borderColor:\"#e5e7eb\",borderStyle:\"solid\"},paginationBtnRadius:4,paginationBtnWidth:32,paginationBtnHeight:32,filterBackground:\"\",filterText:\"\",filterBorder:{borderWidth:1,borderColor:\"#e5e7eb\",borderStyle:\"solid\"},filterBorderRadius:4,filterPadding:\"8px\",filterPlaceholder:\"Filter rows...\",filterIconSvg:'<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\"><polygon points=\"22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3\"/></svg>',sortAscIconSvg:'<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\"><path d=\"m5 12 7-7 7 7\"/><path d=\"M12 19V5\"/></svg>',sortDescIconSvg:'<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\"><path d=\"M12 5v14\"/><path d=\"m19 12-7 7-7-7\"/></svg>',sortNoneIconSvg:'<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\"><path d=\"m21 16-4 4-4-4\"/><path d=\"M17 20V4\"/><path d=\"m3 8 4-4 4 4\"/><path d=\"M7 4v16\"/></svg>',cellMetaJson:\"\"};/* eslint-disable @typescript-eslint/no-explicit-any */addPropertyControls(TableComponent,{// ─── Layout ──────────────────────────────────\nrows:{type:ControlType.Number,hidden:()=>true},columns:{type:ControlType.Number,hidden:()=>true},showColumnHeaders:{title:\"Column Headers\",type:ControlType.Boolean,defaultValue:true},showRowHeaders:{title:\"Row Headers\",type:ControlType.Boolean,defaultValue:false},zebraStripes:{title:\"Zebra Stripes\",type:ControlType.Boolean,defaultValue:false},// ─── Typography ──────────────────────────────\nfont:{title:\"Body Font\",type:ControlType.Font,controls:\"extended\",displayFontSize:true,displayTextAlignment:false,defaultValue:{fontSize:14,fontWeight:400}},headerFont:{title:\"Header Font\",type:ControlType.Font,controls:\"extended\",displayFontSize:true,displayTextAlignment:false,defaultValue:{fontSize:14,fontWeight:600}},headerAlignment:{title:\"Header Align\",type:ControlType.Enum,options:[\"left\",\"center\",\"right\"],optionTitles:[\"Left\",\"Center\",\"Right\"],displaySegmentedControl:true,defaultValue:\"left\"},bodyAlignment:{title:\"Body Align\",type:ControlType.Enum,options:[\"left\",\"center\",\"right\"],optionTitles:[\"Left\",\"Center\",\"Right\"],displaySegmentedControl:true,defaultValue:\"left\"},// ─── Spacing ─────────────────────────────────\nheaderCellPadding:{title:\"Header Padding\",type:ControlType.Padding,defaultValue:\"12px\"},bodyCellPadding:{title:\"Body Padding\",type:ControlType.Padding,defaultValue:\"12px\"},columnGap:{title:\"Column Gap\",type:ControlType.Number,min:0,max:64,step:1,displayStepper:true,defaultValue:0},rowGap:{title:\"Row Gap\",type:ControlType.Number,min:0,max:64,step:1,displayStepper:true,defaultValue:0},// ─── Border ──────────────────────────────────\nborder:{title:\"Border\",type:ControlType.Border,defaultValue:{borderWidth:1,borderColor:\"#e5e7eb\",borderStyle:\"solid\"}},cornerRadius:{title:\"Corner Radius\",type:ControlType.BorderRadius,defaultValue:8},// ─── Theme Colors ────────────────────────────\ntheme:{title:\"Colors\",type:ControlType.Object,controls:{headerBackground:{title:\"Header BG\",type:ControlType.Color,defaultValue:\"#f3f4f6\"},headerText:{title:\"Header Text\",type:ControlType.Color,defaultValue:\"#111827\"},bodyBackground:{title:\"Body BG\",type:ControlType.Color,defaultValue:\"#ffffff\"},bodyText:{title:\"Body Text\",type:ControlType.Color,defaultValue:\"#111827\"},zebraBackground:{title:\"Zebra BG\",type:ControlType.Color,defaultValue:\"#f9fafb\"},zebraText:{title:\"Zebra Text\",type:ControlType.Color,defaultValue:\"#111827\"},borderColor:{title:\"Border\",type:ControlType.Color,defaultValue:\"#e5e7eb\"}}},// ─── Hidden / Internal ───────────────────────\nthemeId:{type:ControlType.String,hidden:()=>true},dataJson:{type:ControlType.String,displayTextArea:true,hidden:()=>true},// ─── Interactive Features ────────────────────\nenableSorting:{title:\"Sorting\",type:ControlType.Boolean,defaultValue:false,description:\"Click column headers to sort rows\"},sortAscIconSvg:{title:\"Sort Asc SVG\",type:ControlType.String,displayTextArea:true,defaultValue:'<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\"><path d=\"m5 12 7-7 7 7\"/><path d=\"M12 19V5\"/></svg>',hidden:props=>!props.enableSorting},sortDescIconSvg:{title:\"Sort Desc SVG\",type:ControlType.String,displayTextArea:true,defaultValue:'<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\"><path d=\"M12 5v14\"/><path d=\"m19 12-7 7-7-7\"/></svg>',hidden:props=>!props.enableSorting},sortNoneIconSvg:{title:\"Sort None SVG\",type:ControlType.String,displayTextArea:true,defaultValue:'<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\"><path d=\"m21 16-4 4-4-4\"/><path d=\"M17 20V4\"/><path d=\"m3 8 4-4 4 4\"/><path d=\"M7 4v16\"/></svg>',hidden:props=>!props.enableSorting},enableFiltering:{title:\"Filtering\",type:ControlType.Boolean,defaultValue:false,description:\"Show a search bar to filter rows\"},filterPlaceholder:{title:\"Placeholder\",type:ControlType.String,defaultValue:\"Filter rows...\",hidden:props=>!props.enableFiltering},filterBackground:{title:\"Filter BG\",type:ControlType.Color,defaultValue:\"\",hidden:props=>!props.enableFiltering},filterText:{title:\"Filter Text\",type:ControlType.Color,defaultValue:\"\",hidden:props=>!props.enableFiltering},filterBorder:{title:\"Filter Border\",type:ControlType.Border,defaultValue:{borderWidth:1,borderColor:\"#e5e7eb\",borderStyle:\"solid\"},hidden:props=>!props.enableFiltering},filterBorderRadius:{title:\"Filter Radius\",type:ControlType.Number,min:0,max:32,step:1,displayStepper:true,defaultValue:4,hidden:props=>!props.enableFiltering},filterPadding:{title:\"Filter Padding\",type:ControlType.Padding,defaultValue:\"8px\",hidden:props=>!props.enableFiltering},filterIconSvg:{title:\"Filter Icon SVG\",type:ControlType.String,displayTextArea:true,defaultValue:'<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\"><polygon points=\"22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3\"/></svg>',hidden:props=>!props.enableFiltering},cellMetaJson:{title:\"Cell Meta JSON\",type:ControlType.String,defaultValue:\"\",displayTextArea:true,hidden:()=>true},enablePagination:{title:\"Pagination\",type:ControlType.Boolean,defaultValue:false,description:\"Add pagination to your table\"},rowsPerPage:{title:\"Rows/Page\",type:ControlType.Number,min:1,max:100,defaultValue:10,hidden:props=>!props.enablePagination},paginationStyle:{title:\"Paging Style\",type:ControlType.Enum,options:[\"simple\",\"numbers\"],optionTitles:[\"Simple\",\"Numbers\"],defaultValue:\"simple\",displaySegmentedControl:true,hidden:props=>!props.enablePagination},paginationTextTemplate:{title:\"Text Template\",type:ControlType.String,defaultValue:\"Showing {start} to {end} of {total} rows\",displayTextArea:true,hidden:props=>!props.enablePagination,description:\"Use placeholders like {start}, {end}, {total}, {current}, {page}, {pages}\"},paginationBackground:{title:\"Paging BG\",type:ControlType.Color,defaultValue:\"\",hidden:props=>!props.enablePagination},paginationText:{title:\"Paging Text\",type:ControlType.Color,defaultValue:\"\",hidden:props=>!props.enablePagination},paginationFont:{title:\"Label Font\",type:ControlType.Font,controls:\"extended\",displayFontSize:true,displayTextAlignment:false,defaultValue:{fontSize:12,fontWeight:400},hidden:props=>!props.enablePagination},paginationNumbersFont:{title:\"Number Font\",type:ControlType.Font,controls:\"extended\",displayFontSize:true,displayTextAlignment:false,defaultValue:{fontSize:12,fontWeight:400},hidden:props=>!props.enablePagination},paginationPadding:{title:\"Padding\",type:ControlType.Padding,defaultValue:\"8px\",hidden:props=>!props.enablePagination},paginationIconSize:{title:\"Icon Size\",type:ControlType.Number,min:8,max:64,step:1,displayStepper:true,defaultValue:16,hidden:props=>!props.enablePagination},paginationBtnBackground:{title:\"Btn BG\",type:ControlType.Color,defaultValue:\"transparent\",hidden:props=>!props.enablePagination},paginationBtnText:{title:\"Btn Text\",type:ControlType.Color,defaultValue:\"\",hidden:props=>!props.enablePagination},paginationBtnActiveBackground:{title:\"Active Btn BG\",type:ControlType.Color,defaultValue:\"\",hidden:props=>!props.enablePagination},paginationBtnActiveText:{title:\"Active Btn Text\",type:ControlType.Color,defaultValue:\"\",hidden:props=>!props.enablePagination},paginationBtnBorder:{title:\"Btn Border\",type:ControlType.Border,defaultValue:{borderWidth:1,borderColor:\"#e5e7eb\",borderStyle:\"solid\"},hidden:props=>!props.enablePagination},paginationBtnRadius:{title:\"Btn Radius\",type:ControlType.Number,min:0,max:32,step:1,displayStepper:true,defaultValue:4,hidden:props=>!props.enablePagination},paginationBtnWidth:{title:\"Btn Width\",type:ControlType.Number,min:0,max:64,step:1,displayStepper:true,defaultValue:32,hidden:props=>!props.enablePagination},paginationBtnHeight:{title:\"Btn Height\",type:ControlType.Number,min:0,max:64,step:1,displayStepper:true,defaultValue:32,hidden:props=>!props.enablePagination}});\nexport const __FramerMetadata__ = {\"exports\":{\"TableComponentProps\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"TableTheme\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"default\":{\"type\":\"reactComponent\",\"name\":\"TableComponent\",\"slots\":[],\"annotations\":{\"framerIntrinsicWidth\":\"any\",\"framerContractVersion\":\"1\",\"framerIntrinsicHeight\":\"any\",\"framerDisableUnlink\":\"*\"}},\"BorderConfig\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"FontConfig\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./TableComponent.map"],"mappings":"A,4LAMG,SAAwBc,EAAe,EAAM,CAAC,GAAK,CAAC,OAAK,UAAQ,OAAK,CAAC,EAAE,WAAS,GAAG,oBAAkB,iBAAe,eAAa,kBAAgB,OAAO,gBAAc,OAAO,oBAAkB,kBAAgB,aAAU,UAAO,SAAO,CAAC,EAAE,eAAa,SAAM,OAAK,CAAC,EAAE,aAAW,CAAC,EAAE,gBAA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