{"version":3,"file":"TermDepositsTable.BTWSlbc9.mjs","names":[],"sources":["https:/framerusercontent.com/modules/dlphOheebKzdhpihZtBw/Uv0vn5BQx3W2lXW0kqzo/TermDepositsTable.js"],"sourcesContent":["// Table component for displaying term deposit interest rates with bunq brand alignment\nimport{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";/**\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight auto\n */export default function TermDepositsTable(props){const{headerFont,headerColor,headerBackground,cellFont,cellColor,cellBackground,alternateRowBackground,borderColor,borderRadius,term1,rate1,term2,rate2,term3,rate3,term4,rate4,showIcons,iconSize,term1Icon={src:\"https://framerusercontent.com/images/GfGkADagM4KEibNcIiRUWlfrR0.jpg\",alt:\"Term 1 Icon\"},rate1Icon={src:\"https://framerusercontent.com/images/aNsAT3jCvt4zglbWCUoFe33Q.jpg\",alt:\"Rate 1 Icon\"},term2Icon={src:\"https://framerusercontent.com/images/BYnxEV1zjYb9bhWh1IwBZ1ZoS60.jpg\",alt:\"Term 2 Icon\"},rate2Icon={src:\"https://framerusercontent.com/images/2uTNEj5aTl2K3NJaEFWMbnrA.jpg\",alt:\"Rate 2 Icon\"},term3Icon={src:\"https://framerusercontent.com/images/f9RiWoNpmlCMqVRIHz8l8wYfeI.jpg\",alt:\"Term 3 Icon\"},rate3Icon={src:\"https://framerusercontent.com/images/GfGkADagM4KEibNcIiRUWlfrR0.jpg\",alt:\"Rate 3 Icon\"},term4Icon={src:\"https://framerusercontent.com/images/aNsAT3jCvt4zglbWCUoFe33Q.jpg\",alt:\"Term 4 Icon\"},rate4Icon={src:\"https://framerusercontent.com/images/BYnxEV1zjYb9bhWh1IwBZ1ZoS60.jpg\",alt:\"Rate 4 Icon\"}}=props;const isFixedWidth=props?.style&&props.style.width===\"100%\";const rates=[{term:term1,rate:rate1,termIcon:term1Icon,rateIcon:rate1Icon},{term:term2,rate:rate2,termIcon:term2Icon,rateIcon:rate2Icon},{term:term3,rate:rate3,termIcon:term3Icon,rateIcon:rate3Icon},{term:term4,rate:rate4,termIcon:term4Icon,rateIcon:rate4Icon}];// Only show rows where either term or rate has text\nconst visibleRates=rates.filter(r=>r.term&&r.term.trim()||r.rate&&r.rate.trim());return /*#__PURE__*/_jsx(\"div\",{style:{...props.style,...isFixedWidth?{}:{minWidth:\"max-content\"},display:\"flex\",flexDirection:\"column\",padding:0},children:/*#__PURE__*/_jsx(\"div\",{style:{width:\"100%\",borderRadius:borderRadius,overflow:\"hidden\",border:`1px solid ${borderColor}`},children:/*#__PURE__*/_jsxs(\"table\",{style:{width:\"100%\",borderCollapse:\"collapse\",backgroundColor:cellBackground},children:[/*#__PURE__*/_jsx(\"thead\",{children:/*#__PURE__*/_jsxs(\"tr\",{style:{backgroundColor:headerBackground},children:[/*#__PURE__*/_jsx(\"th\",{style:{padding:\"16px 24px\",textAlign:\"left\",color:headerColor,borderBottom:`1px solid ${borderColor}`,width:\"50%\",...headerFont},children:props.termHeader}),/*#__PURE__*/_jsx(\"th\",{style:{padding:\"16px 24px\",textAlign:\"left\",color:headerColor,borderBottom:`1px solid ${borderColor}`,width:\"50%\",...headerFont},children:props.rateHeader})]})}),/*#__PURE__*/_jsx(\"tbody\",{children:visibleRates.map((rate,index)=>/*#__PURE__*/_jsxs(\"tr\",{style:{backgroundColor:index%2===1?alternateRowBackground:cellBackground},children:[/*#__PURE__*/_jsx(\"td\",{style:{padding:\"16px 24px\",color:cellColor,borderBottom:index<visibleRates.length-1?`1px solid ${borderColor}`:\"none\",width:\"50%\",...cellFont},children:/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",alignItems:\"center\",gap:\"8px\"},children:[showIcons&&rate.termIcon&&/*#__PURE__*/_jsx(\"img\",{src:rate.termIcon.src,srcSet:rate.termIcon.srcSet,alt:rate.termIcon.alt||\"\",style:{width:iconSize,height:iconSize,objectFit:\"cover\",borderRadius:\"4px\"}}),/*#__PURE__*/_jsx(\"span\",{children:rate.term})]})}),/*#__PURE__*/_jsx(\"td\",{style:{padding:\"16px 24px\",color:cellColor,borderBottom:index<visibleRates.length-1?`1px solid ${borderColor}`:\"none\",width:\"50%\",...cellFont},children:/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",alignItems:\"center\",gap:\"8px\"},children:[showIcons&&rate.rateIcon&&/*#__PURE__*/_jsx(\"img\",{src:rate.rateIcon.src,srcSet:rate.rateIcon.srcSet,alt:rate.rateIcon.alt||\"\",style:{width:iconSize,height:iconSize,objectFit:\"cover\",borderRadius:\"4px\"}}),/*#__PURE__*/_jsx(\"span\",{children:rate.rate})]})})]},index))})]})})});}addPropertyControls(TermDepositsTable,{headerFont:{type:ControlType.Font,title:\"Header Font\",controls:\"extended\",defaultFontType:\"sans-serif\",defaultValue:{fontSize:\"15px\",variant:\"Semibold\",letterSpacing:\"-0.01em\",lineHeight:\"1.2em\"}},headerColor:{type:ControlType.Color,title:\"Header Color\",defaultValue:\"#FFFFFF\"},headerBackground:{type:ControlType.Color,title:\"Header Background\",defaultValue:\"#1A1A1A\"},cellFont:{type:ControlType.Font,title:\"Cell Font\",controls:\"extended\",defaultFontType:\"sans-serif\",defaultValue:{fontSize:\"15px\",variant:\"Medium\",letterSpacing:\"-0.01em\",lineHeight:\"1.3em\"}},cellColor:{type:ControlType.Color,title:\"Cell Color\",defaultValue:\"#FFFFFF\"},cellBackground:{type:ControlType.Color,title:\"Cell Background\",defaultValue:\"#000000\"},alternateRowBackground:{type:ControlType.Color,title:\"Alternate Row Background\",defaultValue:\"#0A0A0A\"},borderColor:{type:ControlType.Color,title:\"Border Color\",defaultValue:\"#333333\"},borderRadius:{type:ControlType.Number,title:\"Border Radius\",defaultValue:8,min:0,max:32,step:1,unit:\"px\"},term1:{type:ControlType.String,title:\"Term 1\",defaultValue:\"3 months\"},rate1:{type:ControlType.String,title:\"Rate 1\",defaultValue:\"1.76%\"},term2:{type:ControlType.String,title:\"Term 2\",defaultValue:\"6 months\"},rate2:{type:ControlType.String,title:\"Rate 2\",defaultValue:\"1.86%\"},term3:{type:ControlType.String,title:\"Term 3\",defaultValue:\"12 months\"},rate3:{type:ControlType.String,title:\"Rate 3\",defaultValue:\"2.11%\"},term4:{type:ControlType.String,title:\"Term 4\",defaultValue:\"24 months\"},rate4:{type:ControlType.String,title:\"Rate 4\",defaultValue:\"1.91%\"},showIcons:{type:ControlType.Boolean,title:\"Show Icons\",defaultValue:false,enabledTitle:\"Show\",disabledTitle:\"Hide\"},iconSize:{type:ControlType.Number,title:\"Icon Size\",defaultValue:20,min:12,max:48,step:1,unit:\"px\",hidden:({showIcons})=>!showIcons},term1Icon:{type:ControlType.ResponsiveImage,title:\"Term 1 Icon\",hidden:({showIcons})=>!showIcons},rate1Icon:{type:ControlType.ResponsiveImage,title:\"Rate 1 Icon\",hidden:({showIcons})=>!showIcons},term2Icon:{type:ControlType.ResponsiveImage,title:\"Term 2 Icon\",hidden:({showIcons})=>!showIcons},rate2Icon:{type:ControlType.ResponsiveImage,title:\"Rate 2 Icon\",hidden:({showIcons})=>!showIcons},term3Icon:{type:ControlType.ResponsiveImage,title:\"Term 3 Icon\",hidden:({showIcons})=>!showIcons},rate3Icon:{type:ControlType.ResponsiveImage,title:\"Rate 3 Icon\",hidden:({showIcons})=>!showIcons},term4Icon:{type:ControlType.ResponsiveImage,title:\"Term 4 Icon\",hidden:({showIcons})=>!showIcons},rate4Icon:{type:ControlType.ResponsiveImage,title:\"Rate 4 Icon\",hidden:({showIcons})=>!showIcons},termHeader:{type:ControlType.String,title:\"Term Header\",defaultValue:\"Term\"},rateHeader:{type:ControlType.String,title:\"Rate Header\",defaultValue:\"Gross Annual Interest Rate\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"TermDepositsTable\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"auto\"}},\"__FramerMetadata__\":{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