{
  "version": 3,
  "sources": ["ssg:https://framerusercontent.com/modules/ceEuKIu3pUiQnviKii5S/p0QJJCiPqOZluVWDJcni/CurrencySelect.js", "ssg:https://framerusercontent.com/modules/emTkev2YD3gokYidIBcO/9kHivXlg6qHCLcCKXlC5/AmountInput.js", "ssg:https://framerusercontent.com/modules/sEFkXHhVKrM4ylmRxxK2/vDy3iuk57aBY61GYZHNI/currencyConversionData.js", "ssg:https://framerusercontent.com/modules/1bxy2asRIdK7HPMzMzGf/UGBlLSuR8LeY9Ix2nXHf/CurrencyCalculator.js", "ssg:https://framerusercontent.com/modules/1fFJURGRr7HDbqDtdX1G/CzGNb0BXrJ56nY64cs9h/CurrencyCalculatorMobile.js"],
  "sourcesContent": ["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import React from\"react\";import{addPropertyControls,ControlType}from\"framer\";// Currency data with country codes and full names\nconst allCurrencies={USD:{countryCode:\"us\",name:\"US dollar\"},GBP:{countryCode:\"gb\",name:\"British pound\"},EUR:{countryCode:\"eu\",name:\"Euro\"},THB:{countryCode:\"th\",name:\"Thai baht\"},PHP:{countryCode:\"ph\",name:\"Philippine peso\"},VND:{countryCode:\"vn\",name:\"Vietnamese dong\"}};export default function CurrencySelector({label=\"Depositing\",defaultCurrency=\"USD\",availableCurrencies=[\"USD\",\"GBP\",\"EUR\",\"THB\",\"PHP\",\"VND\"],onChange}){const[selectedCurrency,setSelectedCurrency]=React.useState(defaultCurrency);const[isFocused,setIsFocused]=React.useState(false);// Use only available currencies\nconst currencies=availableCurrencies.reduce((acc,code)=>{acc[code]=allCurrencies[code];return acc;},{});const handleChange=e=>{const newCurrency=e.target.value;setSelectedCurrency(newCurrency);onChange?.(newCurrency);};// Container styles matching Figma\nconst containerStyle={boxSizing:\"border-box\",display:\"flex\",flexDirection:\"column\",gap:\"16px\",alignItems:\"stretch\",justifyContent:\"flex-start\",padding:0,position:\"relative\",width:\"100%\",height:\"100%\"};// Label styles matching Figma\nconst labelStyle={fontFamily:\"'Poppins', sans-serif\",fontWeight:600,fontSize:\"14px\",lineHeight:\"16px\",color:\"#FFFFFF\",textAlign:\"left\",margin:0,padding:0};// Select wrapper styles matching Figma\nconst selectWrapperStyle={backgroundColor:\"#31363A\",borderRadius:\"1000px\",padding:\"8px 16px 8px 8px\",display:\"flex\",alignItems:\"center\",justifyContent:\"space-between\",position:\"relative\",boxSizing:\"border-box\",border:isFocused?\"1px solid #0099ff\":\"1px solid transparent\",transition:\"border-color 0.2s ease\"};// Native select styles (invisible but functional)\nconst selectStyle={position:\"absolute\",top:0,left:0,width:\"100%\",height:\"100%\",opacity:0,cursor:\"pointer\",fontSize:\"18px\",border:\"none\",background:\"none\",zIndex:1};// Display content styles\nconst displayStyle={display:\"flex\",alignItems:\"center\",gap:\"8px\",pointerEvents:\"none\"};// Flag image styles\nconst flagStyle={width:\"32px\",height:\"32px\",borderRadius:\"50%\",objectFit:\"cover\",flexShrink:0};// Currency code styles\nconst codeStyle={fontFamily:\"'Poppins', sans-serif\",fontWeight:400,fontSize:\"18px\",lineHeight:\"28px\",color:\"#FFFFFF\",whiteSpace:\"nowrap\"};// Currency name styles\nconst nameStyle={fontFamily:\"'Poppins', sans-serif\",fontWeight:400,fontSize:\"18px\",lineHeight:\"28px\",color:\"#91A0A7\",whiteSpace:\"nowrap\"};// Arrow icon styles\nconst arrowStyle={width:\"24px\",height:\"24px\",flexShrink:0,pointerEvents:\"none\"};return /*#__PURE__*/_jsxs(\"div\",{style:containerStyle,children:[/*#__PURE__*/_jsx(\"div\",{style:labelStyle,children:label}),/*#__PURE__*/_jsxs(\"div\",{style:selectWrapperStyle,children:[/*#__PURE__*/_jsxs(\"div\",{style:displayStyle,children:[/*#__PURE__*/_jsx(\"img\",{style:flagStyle,src:`https://flagcdn.com/w80/${currencies[selectedCurrency].countryCode}.png`,alt:`${selectedCurrency} flag`}),/*#__PURE__*/_jsx(\"span\",{style:codeStyle,children:selectedCurrency}),/*#__PURE__*/_jsx(\"span\",{style:nameStyle,children:currencies[selectedCurrency].name})]}),/*#__PURE__*/_jsx(\"svg\",{style:arrowStyle,viewBox:\"0 0 24 24\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\",children:/*#__PURE__*/_jsx(\"path\",{d:\"M7 10L12 15L17 10\",stroke:\"#91A0A7\",strokeWidth:\"2\",strokeLinecap:\"round\",strokeLinejoin:\"round\"})}),/*#__PURE__*/_jsx(\"select\",{style:selectStyle,value:selectedCurrency,onChange:handleChange,\"aria-label\":label,onFocus:()=>setIsFocused(true),onBlur:()=>setIsFocused(false),children:Object.entries(currencies).map(([code,data])=>/*#__PURE__*/_jsxs(\"option\",{value:code,children:[code,\" (\",data.name,\")\"]},code))})]})]});}// Framer property controls\naddPropertyControls(CurrencySelector,{label:{type:ControlType.String,title:\"Label\",defaultValue:\"Depositing\"},defaultCurrency:{type:ControlType.Enum,title:\"Default Currency\",options:[\"USD\",\"GBP\",\"EUR\",\"THB\",\"PHP\",\"VND\"],optionTitles:[\"USD (US dollar)\",\"GBP (British pound)\",\"EUR (Euro)\",\"THB (Thai baht)\",\"PHP (Philippine peso)\",\"VND (Vietnamese dong)\"],defaultValue:\"USD\"},availableCurrencies:{type:ControlType.Array,title:\"Available Currencies\",control:{type:ControlType.Enum,options:[\"USD\",\"GBP\",\"EUR\",\"THB\",\"PHP\",\"VND\"],optionTitles:[\"USD (US dollar)\",\"GBP (British pound)\",\"EUR (Euro)\",\"THB (Thai baht)\",\"PHP (Philippine peso)\",\"VND (Vietnamese dong)\"]},defaultValue:[\"USD\",\"GBP\",\"EUR\",\"THB\",\"PHP\",\"VND\"]}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"CurrencySelector\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./CurrencySelect.map", "import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import React from\"react\";import{addPropertyControls,ControlType}from\"framer\";// Currency data matching the CurrencySelector component\nconst currencyData={USD:{countryCode:\"us\",name:\"US dollar\"},GBP:{countryCode:\"gb\",name:\"British pound\"},EUR:{countryCode:\"eu\",name:\"Euro\"}};export default function AmountInput({label=\"You deposit exactly\",amount=\"1,000\",currency=\"USD\",placeholder=\"Amount\",onChange}){const[inputValue,setInputValue]=React.useState(amount);const[rawValue,setRawValue]=React.useState(amount.replace(/,/g,\"\"));// Format number with thousands separators\nconst formatNumber=value=>{// Remove all non-digit and non-decimal characters\nconst cleanValue=value.replace(/[^\\d.]/g,\"\");// Split by decimal point\nconst parts=cleanValue.split(\".\");// Format the integer part with commas\nconst integerPart=parts[0].replace(/\\B(?=(\\d{3})+(?!\\d))/g,\",\");// Combine with decimal part if exists (limit to 2 decimal places)\nif(parts.length>1){const decimalPart=parts[1].slice(0,2);return`${integerPart}.${decimalPart}`;}return integerPart;};const handleChange=e=>{const value=e.target.value;// Remove commas for numeric validation\nconst cleanValue=value.replace(/,/g,\"\");// Allow empty input\nif(value===\"\"){setInputValue(\"\");setRawValue(\"\");onChange?.(\"\");return;}// Check if it's a valid number\nconst numericValue=parseFloat(cleanValue);// If the value is a valid number and exceeds maximum, don't update\nif(!isNaN(numericValue)&&numericValue>1e5){return;// Don't update the input\n}// Format the value with commas\nconst formattedValue=formatNumber(value);setInputValue(formattedValue);setRawValue(cleanValue);onChange?.(formattedValue);};// Format initial value on mount\nReact.useEffect(()=>{const formatted=formatNumber(amount);setInputValue(formatted);setRawValue(amount.replace(/,/g,\"\"));},[amount]);// Container styles matching Figma\nconst containerStyle={boxSizing:\"border-box\",display:\"flex\",flexDirection:\"column\",gap:\"16px\",alignItems:\"stretch\",justifyContent:\"flex-start\",padding:0,position:\"relative\",width:\"100%\",height:\"100%\"};// Label styles matching Figma\nconst labelStyle={fontFamily:\"'Poppins', sans-serif\",fontWeight:600,fontSize:\"14px\",lineHeight:\"16px\",color:\"#FFFFFF\",textAlign:\"left\",margin:0,padding:0};// Focus state for the wrapper\nconst[isFocused,setIsFocused]=React.useState(false);// Input wrapper styles matching Figma\nconst inputWrapperStyle={backgroundColor:\"#31363A\",borderRadius:\"1000px\",padding:isFocused?\"7px 15px\":\"8px 16px\",display:\"flex\",alignItems:\"center\",justifyContent:\"space-between\",position:\"relative\",boxSizing:\"border-box\",height:\"48px\",border:isFocused?\"1px solid #0099ff\":\"1px solid transparent\",transition:\"border-color 0.2s ease, padding 0.2s ease\",overflow:\"hidden\"};// Input field styles\nconst inputStyle={fontFamily:\"'Poppins', sans-serif\",fontWeight:400,fontSize:\"18px\",lineHeight:\"28px\",color:\"#FFFFFF\",backgroundColor:\"transparent\",border:\"none\",outline:\"none\",flex:1,marginRight:\"8px\",minWidth:0,width:\"100%\"};// Currency display container styles\nconst currencyContainerStyle={display:\"flex\",alignItems:\"center\",gap:\"8px\",flexShrink:0};// Flag image styles\nconst flagStyle={width:\"32px\",height:\"32px\",borderRadius:\"50%\",objectFit:\"cover\",flexShrink:0};// Currency code styles\nconst currencyCodeStyle={fontFamily:\"'Poppins', sans-serif\",fontWeight:400,fontSize:\"18px\",lineHeight:\"28px\",color:\"#FFFFFF\",whiteSpace:\"nowrap\"};return /*#__PURE__*/_jsxs(\"div\",{style:containerStyle,children:[label&&/*#__PURE__*/_jsx(\"div\",{style:labelStyle,children:label}),/*#__PURE__*/_jsxs(\"div\",{style:inputWrapperStyle,children:[/*#__PURE__*/_jsx(\"input\",{type:\"text\",inputMode:\"decimal\",value:inputValue,onChange:handleChange,placeholder:placeholder,style:inputStyle,\"aria-label\":label,onFocus:()=>setIsFocused(true),onBlur:()=>setIsFocused(false)}),/*#__PURE__*/_jsxs(\"div\",{style:currencyContainerStyle,children:[/*#__PURE__*/_jsx(\"img\",{style:flagStyle,src:`https://flagcdn.com/w80/${currencyData[currency].countryCode}.png`,alt:`${currency} flag`}),/*#__PURE__*/_jsx(\"span\",{style:currencyCodeStyle,children:currency})]})]})]});}// Framer property controls\naddPropertyControls(AmountInput,{label:{type:ControlType.String,title:\"Label\",defaultValue:\"You deposit exactly\"},amount:{type:ControlType.String,title:\"Amount\",defaultValue:\"1,000\"},currency:{type:ControlType.Enum,title:\"Currency\",options:[\"USD\",\"GBP\",\"EUR\"],optionTitles:[\"US Dollar\",\"British Pound\",\"Euro\"],defaultValue:\"USD\"},placeholder:{type:ControlType.String,title:\"Placeholder\",defaultValue:\"Amount\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"AmountInput\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./AmountInput.map", "import React from\"react\";// Provider configurations\nexport const providerConfigs={THB:[{name:\"moreta\",displayName:\"Moreta\",imageUrl:\"https://d1m6gz26rsyeo5.cloudfront.net/images/bank-icons/website/moreta.png\",supportsQR:true,fxRate:.994,cashbackBonus:1.01,depositFee:0},{name:\"Wise\",displayName:\"Wise\",imageUrl:\"https://d1m6gz26rsyeo5.cloudfront.net/images/bank-icons/website/wise.png\",supportsQR:false,fxRate:.994,cashbackBonus:1,depositFeePercent:.002},{name:\"Revolut\",displayName:\"Revolut\",imageUrl:\"https://d1m6gz26rsyeo5.cloudfront.net/images/bank-icons/website/revolut.png\",supportsQR:false,fxRate:.99,cashbackBonus:1,depositFeePercent:.002},{name:\"TagThai\",displayName:\"TagThai\",imageUrl:\"https://d1m6gz26rsyeo5.cloudfront.net/images/bank-icons/website/tagthai.png\",supportsQR:true,fxRate:.955,cashbackBonus:1,depositFee:0},{name:\"Cash from ATM\",displayName:\"Cash from ATM\",imageUrl:null,supportsQR:false,isATM:true,fxRate:.985,atmMax:25e3,atmFee:250}],PHP:[{name:\"moreta\",displayName:\"Moreta\",imageUrl:\"https://d1m6gz26rsyeo5.cloudfront.net/images/bank-icons/website/moreta.png\",supportsQR:true,fxRate:.994,cashbackBonus:1,depositFee:0},{name:\"Remitly\",displayName:\"Remitly\",imageUrl:\"https://d1m6gz26rsyeo5.cloudfront.net/images/bank-icons/website/remitly.png\",supportsQR:false,fxRate:.9625,cashbackBonus:1,depositFee:0},{name:\"Western Union\",displayName:\"Western Union\",imageUrl:\"https://d1m6gz26rsyeo5.cloudfront.net/images/bank-icons/website/westernunion.png\",supportsQR:false,fxRate:.97,cashbackBonus:1,depositFee:5},{name:\"Cash from ATM\",displayName:\"Cash from ATM\",imageUrl:null,supportsQR:false,isATM:true,fxRate:.985,atmMax:2e4,atmFee:250}],VND:[{name:\"moreta\",displayName:\"Moreta\",imageUrl:\"https://d1m6gz26rsyeo5.cloudfront.net/images/bank-icons/website/moreta.png\",supportsQR:true,fxRate:.994,cashbackBonus:1,depositFee:0},{name:\"Wise\",displayName:\"Wise\",imageUrl:\"https://d1m6gz26rsyeo5.cloudfront.net/images/bank-icons/website/wise.png\",supportsQR:false,fxRate:.995,cashbackBonus:1,depositFeePercent:.002},{name:\"Revolut\",displayName:\"Revolut\",imageUrl:\"https://d1m6gz26rsyeo5.cloudfront.net/images/bank-icons/website/revolut.png\",supportsQR:false,fxRate:.99,cashbackBonus:1,depositFeePercent:.002},{name:\"Cash from ATM\",displayName:\"Cash from ATM\",imageUrl:null,supportsQR:false,isATM:true,fxRate:.985,atmMax:5e6,atmFee:5e4}]};// Custom hook for exchange rates\nexport function useExchangeRates(){const[exchangeRates,setExchangeRates]=React.useState({});const[ratesLoading,setRatesLoading]=React.useState(true);React.useEffect(()=>{const fetchRates=async()=>{try{setRatesLoading(true);const response=await fetch(\"https://api-cache.moreta.io/exchange-rates\");const data=await response.json();setExchangeRates(data.rates);}catch(error){console.error(\"Failed to fetch exchange rates:\",error);}finally{setRatesLoading(false);}};fetchRates();// Refresh rates every 5 minutes\nconst interval=setInterval(fetchRates,5*60*1e3);return()=>clearInterval(interval);},[]);return{exchangeRates,ratesLoading};}// Utility functions\nexport function parseAmount(amountStr){return parseFloat(amountStr.replace(/,/g,\"\"))||0;}// Get exchange rate for currency pair\nexport function getExchangeRate(depositCurrency,spendCurrency,exchangeRates){if(!exchangeRates)return 1;// Direct USD conversions\nif(depositCurrency===\"USD\"){if(spendCurrency===\"THB\")return exchangeRates.USD_THB||32.4272;if(spendCurrency===\"PHP\")return exchangeRates.USD_PHP||55.37;if(spendCurrency===\"VND\")return exchangeRates.USD_VND||26209.98;}// EUR conversions (through USD)\nif(depositCurrency===\"EUR\"){const eurToUsd=exchangeRates.EUR_USD||1.162;if(spendCurrency===\"THB\")return eurToUsd*(exchangeRates.USD_THB||32.4272);if(spendCurrency===\"PHP\")return eurToUsd*(exchangeRates.USD_PHP||55.37);if(spendCurrency===\"VND\")return eurToUsd*(exchangeRates.USD_VND||26209.98);}// GBP conversions (through USD)\nif(depositCurrency===\"GBP\"){const gbpToUsd=exchangeRates.GBP_USD||1.3429;if(spendCurrency===\"THB\")return gbpToUsd*(exchangeRates.USD_THB||32.4272);if(spendCurrency===\"PHP\")return gbpToUsd*(exchangeRates.USD_PHP||55.37);if(spendCurrency===\"VND\")return gbpToUsd*(exchangeRates.USD_VND||26209.98);}return 1;}// Calculate spending power for a provider\nexport function calculateSpendingPower(provider,amount,baseRate){if(provider.isATM&&provider.atmMax&&provider.atmFee){// ATM calculation: ($1000 * rate * FX) - (ROUNDUP(($1000 * rate * FX) / ATM_MAX) * ATM_FEE)\nconst grossAmount=amount*baseRate*provider.fxRate;const withdrawals=Math.ceil(grossAmount/provider.atmMax);const totalFees=withdrawals*provider.atmFee;return grossAmount-totalFees;}else{// Non-ATM calculation: (amount - depositFee - percentageFee) * exchangeRate * FX * cashbackBonus\nconst fixedFee=provider.depositFee||0;const percentageFee=provider.depositFeePercent?amount*provider.depositFeePercent:0;const totalFee=fixedFee+percentageFee;const fxRate=provider.fxRate;const cashbackBonus=provider.cashbackBonus||1;return(amount-totalFee)*baseRate*fxRate*cashbackBonus;}}// Calculate all provider data with comparisons\nexport function calculateProviderData(spendCurrency,depositAmount,depositCurrency,exchangeRates){const amount=parseAmount(depositAmount);const baseRate=getExchangeRate(depositCurrency,spendCurrency,exchangeRates);const currentProviders=providerConfigs[spendCurrency]||[];// Calculate spending power for all providers\nconst providersWithCalculations=currentProviders.map(provider=>{const spendingPower=calculateSpendingPower(provider,amount,baseRate);const displayRate=baseRate*provider.fxRate;// Calculate fee\nlet fee=provider.depositFee||0;let feeNote=null;if(provider.name===\"moreta\"&&provider.cashbackBonus&&provider.cashbackBonus>1){fee=-amount*(provider.cashbackBonus-1)// 1% cashback\n;feeNote=\"(1% cashback)\";}else if(provider.depositFeePercent){// Percentage-based fee\nfee=amount*provider.depositFeePercent;}else if(provider.isATM&&provider.atmMax&&provider.atmFee){// For ATM, calculate the fee but don't show withdrawal count\nconst withdrawals=Math.ceil(amount*baseRate*provider.fxRate/provider.atmMax);fee=withdrawals*provider.atmFee/baseRate// Convert back to deposit currency\n;feeNote=null// No note for ATM fees\n;}return{...provider,exchangeRate:displayRate,spendingPower:spendingPower,fee:fee,feeNote:feeNote,isCheapest:false,difference:null};});// Find the best rate\nconst maxSpendingPower=Math.max(...providersWithCalculations.map(p=>p.spendingPower));// Add cheapest flag and differences\nreturn providersWithCalculations.map(provider=>({...provider,isCheapest:provider.spendingPower===maxSpendingPower,difference:provider.spendingPower===maxSpendingPower?null:maxSpendingPower-provider.spendingPower}));}\nexport const __FramerMetadata__ = {\"exports\":{\"CalculatedProvider\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"DepositCurrency\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"calculateSpendingPower\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"getExchangeRate\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"Provider\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"calculateProviderData\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"SpendCurrency\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"ExchangeRates\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"providerConfigs\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"parseAmount\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"useExchangeRates\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./currencyConversionData.map", "import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import React from\"react\";import{addPropertyControls,ControlType}from\"framer\";import CurrencySelector from\"https://framerusercontent.com/modules/ceEuKIu3pUiQnviKii5S/p0QJJCiPqOZluVWDJcni/CurrencySelect.js\";import AmountInput from\"https://framerusercontent.com/modules/emTkev2YD3gokYidIBcO/9kHivXlg6qHCLcCKXlC5/AmountInput.js\";import{useExchangeRates,calculateProviderData}from\"https://framerusercontent.com/modules/sEFkXHhVKrM4ylmRxxK2/vDy3iuk57aBY61GYZHNI/currencyConversionData.js\";export default function CurrencyConversion({depositAmount:initialDepositAmount=\"1,000\",depositCurrency:initialDepositCurrency=\"USD\",spendCurrency:initialSpendCurrency=\"THB\",showFees=true,showExchangeRate=true}){// Use React state to manage the component state\nconst[depositAmount,setDepositAmount]=React.useState(initialDepositAmount);const[depositCurrency,setDepositCurrency]=React.useState(initialDepositCurrency);const[spendCurrency,setSpendCurrency]=React.useState(initialSpendCurrency);// Modal state\nconst[showExchangeRateModal,setShowExchangeRateModal]=React.useState(false);const[showFeesModal,setShowFeesModal]=React.useState(false);const[showATMFeesModal,setShowATMFeesModal]=React.useState(false);// Use custom hook for exchange rates\nconst{exchangeRates,ratesLoading}=useExchangeRates();// Update state when props change\nReact.useEffect(()=>{setDepositAmount(initialDepositAmount);},[initialDepositAmount]);React.useEffect(()=>{setDepositCurrency(initialDepositCurrency);},[initialDepositCurrency]);React.useEffect(()=>{setSpendCurrency(initialSpendCurrency);},[initialSpendCurrency]);// Calculate provider data using the imported function\nconst providers=calculateProviderData(spendCurrency,depositAmount,depositCurrency,exchangeRates);// Container styles\nconst containerStyle={backgroundColor:\"#1D2124\",boxSizing:\"border-box\",display:\"flex\",flexDirection:\"column\",gap:\"64px\",padding:\"64px\",borderRadius:\"96px\",boxShadow:\"0px 17px 31.3px 0px rgba(0, 0, 0, 0.15)\",width:\"100%\",minWidth:\"1200px\",height:\"100%\",fontFamily:\"'Poppins', sans-serif\"};// Header container styles\nconst headerStyle={display:\"flex\",flexDirection:\"row\",gap:\"32px\",width:\"100%\"};// Input section styles\nconst inputSectionStyle={flex:1,display:\"flex\",flexDirection:\"column\",gap:\"16px\"};// Table container styles\nconst tableContainerStyle={borderRadius:\"32px\",border:\"1px solid #31363A\",overflow:\"hidden\",width:\"100%\"};// Table header styles\nconst tableHeaderStyle={backgroundColor:\"#31363A\",padding:\"20px 64px\",display:\"flex\",alignItems:\"flex-start\",justifyContent:\"space-between\",height:\"96px\"};// Table row styles\nconst tableRowStyle={backgroundColor:\"#FFFFFF\",padding:\"20px 64px\",display:\"flex\",alignItems:\"center\",justifyContent:\"space-between\",height:\"96px\",borderBottom:\"1px solid rgba(0, 0, 0, 0.03)\",position:\"relative\"};// Column styles\nconst providerColStyle={width:\"180px\",display:\"flex\",alignItems:\"center\",gap:\"12px\"};const supportColStyle={width:\"150px\",display:\"flex\",paddingRight:\"12px\",flexDirection:\"column\",gap:\"4px\"};const rateColStyle={width:\"160px\",display:\"flex\",flexDirection:\"column\",gap:\"4px\"};const feeColStyle={width:\"140px\",display:\"flex\",flexDirection:\"column\",gap:\"2px\"};const spendingColStyle={width:\"200px\",display:\"flex\",flexDirection:\"column\",gap:\"2px\"};// Header text styles\nconst headerTextStyle={fontWeight:600,fontSize:\"18px\",lineHeight:\"24px\",color:\"#FFFFFF\",margin:0,whiteSpace:\"nowrap\"};const headerSubTextStyle={fontSize:\"14px\",lineHeight:\"20px\",color:\"#91A0A7\",margin:0,fontWeight:400};// Row text styles\nconst rowTextStyle={fontSize:\"18px\",lineHeight:\"28px\",color:\"#1D2124\",margin:0};const rowSubTextStyle={fontSize:\"14px\",lineHeight:\"20px\",color:\"#91A0A7\",margin:0};const spendingAmountStyle={fontSize:\"20px\",lineHeight:\"28px\",color:\"#1D2124\",fontWeight:500,margin:0,whiteSpace:\"nowrap\"};// Icon components\nconst CheckIcon=()=>/*#__PURE__*/_jsx(\"svg\",{width:\"24\",height:\"24\",viewBox:\"0 0 24 24\",fill:\"none\",children:/*#__PURE__*/_jsx(\"path\",{d:\"M20 6L9 17L4 12\",stroke:\"#00A004\",strokeWidth:\"2\",strokeLinecap:\"round\",strokeLinejoin:\"round\"})});const CloseIcon=()=>/*#__PURE__*/_jsx(\"svg\",{width:\"24\",height:\"24\",viewBox:\"0 0 24 24\",fill:\"none\",children:/*#__PURE__*/_jsx(\"path\",{d:\"M18 6L6 18M6 6L18 18\",stroke:\"#FF453A\",strokeWidth:\"2\",strokeLinecap:\"round\",strokeLinejoin:\"round\"})});const HelpIcon=({onClick})=>/*#__PURE__*/_jsxs(\"svg\",{width:\"24\",height:\"24\",viewBox:\"0 0 24 24\",fill:\"none\",onClick:onClick,style:{cursor:onClick?\"pointer\":\"default\"},children:[/*#__PURE__*/_jsx(\"circle\",{cx:\"12\",cy:\"12\",r:\"9\",stroke:\"#91A0A7\",strokeWidth:\"2\"}),/*#__PURE__*/_jsx(\"path\",{d:\"M9 9C9 7.5 10 6.5 12 6.5C14 6.5 15 7.5 15 9C15 10.5 14 11 12 12V14\",stroke:\"#91A0A7\",strokeWidth:\"2\",strokeLinecap:\"round\"}),/*#__PURE__*/_jsx(\"circle\",{cx:\"12\",cy:\"17\",r:\"1\",fill:\"#91A0A7\"})]});// Modal Component\nconst Modal=({isOpen,onClose,title,content})=>{if(!isOpen)return null;// Modal overlay styles\nconst overlayStyle={position:\"fixed\",top:0,left:0,right:0,bottom:0,backgroundColor:\"rgba(0, 0, 0, 0.5)\",display:\"flex\",alignItems:\"center\",justifyContent:\"center\",zIndex:1e3};// Modal container styles\nconst modalStyle={backgroundColor:\"#1D2124\",borderRadius:\"10px\",padding:\"16px\",boxShadow:\"0px 11px 17.9px 0px rgba(0, 0, 0, 0.25)\",width:\"393px\",maxWidth:\"90%\",display:\"flex\",flexDirection:\"column\",gap:\"24px\"};// Header styles\nconst headerStyle={display:\"flex\",justifyContent:\"space-between\",alignItems:\"center\"};// Title styles\nconst titleStyle={fontFamily:\"'Poppins', sans-serif\",fontWeight:500,fontSize:\"20px\",lineHeight:\"28px\",color:\"#FFFFFF\",margin:0};// Close button styles\nconst closeButtonStyle={cursor:\"pointer\",background:\"none\",border:\"none\",padding:0};// Content styles\nconst contentStyle={fontFamily:\"'Poppins', sans-serif\",fontWeight:400,fontSize:\"14px\",lineHeight:\"20px\",color:\"#FFFFFF\",margin:0};// Done button styles\nconst doneButtonStyle={backgroundColor:\"transparent\",border:\"1px solid #0A84FF\",borderRadius:\"100px\",padding:\"15px\",cursor:\"pointer\",fontFamily:\"'Poppins', sans-serif\",fontWeight:600,fontSize:\"16px\",lineHeight:\"20px\",color:\"#0A84FF\",textAlign:\"center\"};return /*#__PURE__*/_jsx(\"div\",{style:overlayStyle,onClick:onClose,children:/*#__PURE__*/_jsxs(\"div\",{style:modalStyle,onClick:e=>e.stopPropagation(),children:[/*#__PURE__*/_jsxs(\"div\",{style:headerStyle,children:[/*#__PURE__*/_jsx(\"h2\",{style:titleStyle,children:title}),/*#__PURE__*/_jsx(\"button\",{style:closeButtonStyle,onClick:onClose,\"aria-label\":\"Close\",children:/*#__PURE__*/_jsx(\"svg\",{width:\"24\",height:\"24\",viewBox:\"0 0 24 24\",fill:\"none\",children:/*#__PURE__*/_jsx(\"path\",{d:\"M18 6L6 18M6 6L18 18\",stroke:\"#FFFFFF\",strokeWidth:\"2\",strokeLinecap:\"round\",strokeLinejoin:\"round\"})})})]}),/*#__PURE__*/_jsx(\"p\",{style:contentStyle,children:content}),/*#__PURE__*/_jsx(\"button\",{style:doneButtonStyle,onClick:onClose,children:\"Done\"})]})});};const DecreaseIcon=()=>/*#__PURE__*/_jsx(\"svg\",{width:\"10\",height:\"9\",viewBox:\"0 0 10 9\",fill:\"none\",style:{transform:\"scaleY(-1)\"},children:/*#__PURE__*/_jsx(\"path\",{d:\"M5 0L9.33 7.5H0.67L5 0Z\",fill:\"#FF453A\"})});return /*#__PURE__*/_jsxs(\"div\",{style:containerStyle,children:[/*#__PURE__*/_jsxs(\"div\",{style:headerStyle,children:[/*#__PURE__*/_jsx(\"div\",{style:inputSectionStyle,children:/*#__PURE__*/_jsx(AmountInput,{label:\"You deposit exactly\",amount:depositAmount,currency:depositCurrency,min:5,max:1e5,onChange:amount=>setDepositAmount(amount)})}),/*#__PURE__*/_jsx(\"div\",{style:inputSectionStyle,children:/*#__PURE__*/_jsx(CurrencySelector,{label:\"Depositing\",defaultCurrency:depositCurrency,availableCurrencies:[\"USD\",\"GBP\",\"EUR\"],onChange:currency=>setDepositCurrency(currency)})}),/*#__PURE__*/_jsx(\"div\",{style:inputSectionStyle,children:/*#__PURE__*/_jsx(CurrencySelector,{label:\"Spending\",defaultCurrency:spendCurrency,availableCurrencies:[\"THB\",\"PHP\",\"VND\"],onChange:currency=>setSpendCurrency(currency)})})]}),/*#__PURE__*/_jsxs(\"div\",{style:tableContainerStyle,children:[/*#__PURE__*/_jsxs(\"div\",{style:tableHeaderStyle,children:[/*#__PURE__*/_jsx(\"div\",{style:providerColStyle,children:/*#__PURE__*/_jsx(\"p\",{style:headerTextStyle,children:\"Provider\"})}),/*#__PURE__*/_jsxs(\"div\",{style:supportColStyle,children:[/*#__PURE__*/_jsx(\"p\",{style:headerTextStyle,children:\"Supports QR?\"}),/*#__PURE__*/_jsx(\"p\",{style:headerSubTextStyle,children:\"(99% accepted)\"})]}),/*#__PURE__*/_jsx(\"div\",{style:rateColStyle,children:/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",flexDirection:\"column\",gap:\"4px\"},children:[/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",alignItems:\"center\",gap:\"4px\"},children:[/*#__PURE__*/_jsx(\"p\",{style:headerTextStyle,children:\"Exchange rate\"}),/*#__PURE__*/_jsx(HelpIcon,{onClick:()=>setShowExchangeRateModal(true)})]}),/*#__PURE__*/_jsxs(\"p\",{style:headerSubTextStyle,children:[\"(1 \",depositCurrency,\" \u2192 \",spendCurrency,\")\"]})]})}),/*#__PURE__*/_jsx(\"div\",{style:feeColStyle,children:/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",alignItems:\"center\",gap:\"4px\"},children:[/*#__PURE__*/_jsx(\"p\",{style:headerTextStyle,children:\"Fees\"}),/*#__PURE__*/_jsx(HelpIcon,{onClick:()=>setShowFeesModal(true)})]})}),/*#__PURE__*/_jsxs(\"div\",{style:spendingColStyle,children:[/*#__PURE__*/_jsx(\"p\",{style:{...headerTextStyle,whiteSpace:\"nowrap\"},children:\"Spending power\"}),/*#__PURE__*/_jsx(\"p\",{style:headerSubTextStyle,children:\"(You can spend)\"})]})]}),ratesLoading?/*#__PURE__*/_jsx(\"div\",{style:{padding:\"40px\",textAlign:\"center\",backgroundColor:\"#FFFFFF\"},children:/*#__PURE__*/_jsx(\"p\",{style:{color:\"#91A0A7\"},children:\"Loading exchange rates...\"})}):providers.map((provider,index)=>/*#__PURE__*/_jsxs(\"div\",{style:tableRowStyle,children:[/*#__PURE__*/_jsx(\"div\",{style:providerColStyle,children:provider.imageUrl?/*#__PURE__*/_jsx(\"img\",{src:provider.imageUrl,alt:provider.displayName,style:{height:\"auto\",width:\"120px\",objectFit:\"contain\"}}):/*#__PURE__*/_jsx(\"p\",{style:{...rowTextStyle,fontWeight:600,color:\"#1D2124\",fontSize:\"18px\"},children:provider.displayName})}),/*#__PURE__*/_jsx(\"div\",{style:supportColStyle,children:provider.supportsQR?/*#__PURE__*/_jsx(CheckIcon,{}):/*#__PURE__*/_jsx(CloseIcon,{})}),/*#__PURE__*/_jsx(\"div\",{style:rateColStyle,children:/*#__PURE__*/_jsx(\"p\",{style:rowTextStyle,children:provider.exchangeRate.toFixed(4)})}),/*#__PURE__*/_jsxs(\"div\",{style:feeColStyle,children:[/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",alignItems:\"center\",gap:\"4px\"},children:[/*#__PURE__*/_jsxs(\"p\",{style:{...rowTextStyle,whiteSpace:\"nowrap\"},children:[provider.fee<0?`-${Math.abs(provider.fee).toFixed(2)}`:provider.fee.toFixed(2),\" \",depositCurrency]}),provider.isATM&&/*#__PURE__*/_jsx(HelpIcon,{onClick:()=>setShowATMFeesModal(true)})]}),provider.feeNote&&/*#__PURE__*/_jsx(\"p\",{style:rowSubTextStyle,children:provider.feeNote})]}),/*#__PURE__*/_jsxs(\"div\",{style:spendingColStyle,children:[/*#__PURE__*/_jsxs(\"p\",{style:spendingAmountStyle,children:[provider.spendingPower.toLocaleString(\"en-US\",{minimumFractionDigits:2,maximumFractionDigits:2}),\" \",spendCurrency]}),provider.isCheapest&&/*#__PURE__*/_jsx(\"p\",{style:{...rowSubTextStyle,color:\"#00A004\"},children:\"Cheapest\"}),provider.difference&&/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",alignItems:\"center\",gap:\"4px\"},children:[/*#__PURE__*/_jsx(DecreaseIcon,{}),/*#__PURE__*/_jsxs(\"p\",{style:{...rowSubTextStyle,color:\"#FF453A\"},children:[provider.difference.toLocaleString(\"en-US\",{minimumFractionDigits:2,maximumFractionDigits:2}),\" \",spendCurrency]})]})]})]},index))]}),/*#__PURE__*/_jsx(Modal,{isOpen:showExchangeRateModal,onClose:()=>setShowExchangeRateModal(false),title:\"Exchange rate\",content:\"Exchange rates shown are based on data from other providers' websites on specific dates. Some providers do not publish this information, so we simulate transactions to estimate their rates. Actual rates may vary.\"}),/*#__PURE__*/_jsx(Modal,{isOpen:showFeesModal,onClose:()=>setShowFeesModal(false),title:\"Fees\",content:\"The calculated fees include foreign exchange fees and markups, transaction fees, transfer fees, and other platform fees.\"}),/*#__PURE__*/_jsx(Modal,{isOpen:showATMFeesModal,onClose:()=>setShowATMFeesModal(false),title:\"ATM Fees\",content:\"ATM fees include both the withdrawal charge and the impact of withdrawal limits, which often force users to make multiple transactions and incur additional fees.\"})]});}// Framer property controls\naddPropertyControls(CurrencyConversion,{depositAmount:{type:ControlType.String,title:\"Deposit Amount\",defaultValue:\"1,000\"},depositCurrency:{type:ControlType.Enum,title:\"Deposit Currency\",options:[\"USD\",\"GBP\",\"EUR\"],optionTitles:[\"US Dollar\",\"British Pound\",\"Euro\"],defaultValue:\"USD\"},spendCurrency:{type:ControlType.Enum,title:\"Spend Currency\",options:[\"THB\",\"PHP\",\"VND\"],optionTitles:[\"Thai Baht\",\"Philippine Peso\",\"Vietnamese Dong\"],defaultValue:\"THB\"},showFees:{type:ControlType.Boolean,title:\"Show Fees\",defaultValue:true},showExchangeRate:{type:ControlType.Boolean,title:\"Show Exchange Rate\",defaultValue:true}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"CurrencyConversion\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./CurrencyCalculator.map", "import{jsx as _jsx,jsxs as _jsxs,Fragment as _Fragment}from\"react/jsx-runtime\";import React from\"react\";import{addPropertyControls,ControlType}from\"framer\";import CurrencySelector from\"https://framerusercontent.com/modules/ceEuKIu3pUiQnviKii5S/p0QJJCiPqOZluVWDJcni/CurrencySelect.js\";import AmountInput from\"https://framerusercontent.com/modules/emTkev2YD3gokYidIBcO/9kHivXlg6qHCLcCKXlC5/AmountInput.js\";import{useExchangeRates,calculateProviderData}from\"https://framerusercontent.com/modules/sEFkXHhVKrM4ylmRxxK2/vDy3iuk57aBY61GYZHNI/currencyConversionData.js\";export default function CurrencyConversionMobile({depositAmount:initialDepositAmount=\"1,000\",depositCurrency:initialDepositCurrency=\"USD\",spendCurrency:initialSpendCurrency=\"THB\",showFees=true,showExchangeRate=true}){// Use React state to manage the component state\nconst[depositAmount,setDepositAmount]=React.useState(initialDepositAmount);const[depositCurrency,setDepositCurrency]=React.useState(initialDepositCurrency);const[spendCurrency,setSpendCurrency]=React.useState(initialSpendCurrency);// Modal state\nconst[showExchangeRateModal,setShowExchangeRateModal]=React.useState(false);const[showFeesModal,setShowFeesModal]=React.useState(false);const[showATMFeesModal,setShowATMFeesModal]=React.useState(false);// Show more state\nconst[showAllProviders,setShowAllProviders]=React.useState(false);// Use custom hook for exchange rates\nconst{exchangeRates,ratesLoading}=useExchangeRates();// Update state when props change\nReact.useEffect(()=>{setDepositAmount(initialDepositAmount);},[initialDepositAmount]);React.useEffect(()=>{setDepositCurrency(initialDepositCurrency);},[initialDepositCurrency]);React.useEffect(()=>{setSpendCurrency(initialSpendCurrency);},[initialSpendCurrency]);// Calculate provider data using the imported function\nconst providers=calculateProviderData(spendCurrency,depositAmount,depositCurrency,exchangeRates);// Determine which providers to show\nconst visibleProviders=showAllProviders?providers:providers.slice(0,3);// Container styles for mobile\nconst containerStyle={backgroundColor:\"#1D2124\",boxSizing:\"border-box\",display:\"flex\",flexDirection:\"column\",gap:\"24px\",padding:\"24px\",borderRadius:\"24px\",boxShadow:\"0px 17px 31.3px 0px rgba(0, 0, 0, 0.15)\",width:\"100%\",maxWidth:\"400px\",fontFamily:\"'Poppins', sans-serif\"};// Header section styles (vertical layout)\nconst headerStyle={display:\"flex\",flexDirection:\"column\",gap:\"16px\",width:\"100%\"};// Card container styles\nconst cardsContainerStyle={display:\"flex\",flexDirection:\"column\",gap:\"16px\",width:\"100%\"};// Individual card styles\nconst cardStyle={backgroundColor:\"#FFFFFF\",borderRadius:\"16px\",padding:\"20px\",gap:\"8px\",display:\"flex\",flexDirection:\"column\",position:\"relative\"};// Card header styles (logo and name)\nconst cardHeaderStyle={display:\"flex\",alignItems:\"center\",gap:\"12px\",marginBottom:\"8px\"};// Card row styles\nconst cardRowStyle={display:\"flex\",justifyContent:\"space-between\",alignItems:\"flex-start\",gap:\"8px\"};// Divider styles\nconst dividerStyle={height:\"1px\",backgroundColor:\"rgba(0, 0, 0, 0.16)\",width:\"100%\",margin:\"8px 0\"};// Label styles\nconst labelStyle={fontSize:\"14px\",lineHeight:\"20px\",color:\"#4B4B4B\",margin:0,display:\"flex\",alignItems:\"center\",gap:\"4px\",fontWeight:400};// Value styles\nconst valueStyle={fontSize:\"16px\",lineHeight:\"24px\",color:\"#1D2124\",margin:0,fontWeight:500};// Spending power styles (larger, emphasized)\nconst spendingPowerStyle={fontSize:\"16px\",lineHeight:\"20px\",color:\"#1D2124\",margin:0,fontWeight:600};// Cheapest text styles\nconst cheapestTextStyle={color:\"#00A004\",fontSize:\"12px\",lineHeight:\"16px\",fontWeight:400,margin:0,marginTop:\"2px\"};// Show more button styles\nconst showMoreButtonStyle={backgroundColor:\"transparent\",border:\"1px solid #0A84FF\",borderRadius:\"100px\",padding:\"12px 24px\",cursor:\"pointer\",fontFamily:\"'Poppins', sans-serif\",fontWeight:600,fontSize:\"16px\",lineHeight:\"20px\",color:\"#0A84FF\",textAlign:\"center\",width:\"100%\"};// Icon components\nconst CheckIcon=()=>/*#__PURE__*/_jsx(\"svg\",{width:\"20\",height:\"20\",viewBox:\"0 0 24 24\",fill:\"none\",children:/*#__PURE__*/_jsx(\"path\",{d:\"M20 6L9 17L4 12\",stroke:\"#00A004\",strokeWidth:\"2\",strokeLinecap:\"round\",strokeLinejoin:\"round\"})});const CloseIcon=()=>/*#__PURE__*/_jsx(\"svg\",{width:\"20\",height:\"20\",viewBox:\"0 0 24 24\",fill:\"none\",children:/*#__PURE__*/_jsx(\"path\",{d:\"M18 6L6 18M6 6L18 18\",stroke:\"#FF453A\",strokeWidth:\"2\",strokeLinecap:\"round\",strokeLinejoin:\"round\"})});const HelpIcon=({onClick})=>/*#__PURE__*/_jsxs(\"svg\",{width:\"16\",height:\"16\",viewBox:\"0 0 24 24\",fill:\"none\",onClick:onClick,style:{cursor:onClick?\"pointer\":\"default\"},children:[/*#__PURE__*/_jsx(\"circle\",{cx:\"12\",cy:\"12\",r:\"9\",stroke:\"#91A0A7\",strokeWidth:\"2\"}),/*#__PURE__*/_jsx(\"path\",{d:\"M9 9C9 7.5 10 6.5 12 6.5C14 6.5 15 7.5 15 9C15 10.5 14 11 12 12V14\",stroke:\"#91A0A7\",strokeWidth:\"2\",strokeLinecap:\"round\"}),/*#__PURE__*/_jsx(\"circle\",{cx:\"12\",cy:\"17\",r:\"1\",fill:\"#91A0A7\"})]});const DecreaseIcon=()=>/*#__PURE__*/_jsx(\"svg\",{width:\"10\",height:\"9\",viewBox:\"0 0 10 9\",fill:\"none\",style:{transform:\"scaleY(-1)\"},children:/*#__PURE__*/_jsx(\"path\",{d:\"M5 0L9.33 7.5H0.67L5 0Z\",fill:\"#FF453A\"})});// Modal Component\nconst Modal=({isOpen,onClose,title,content})=>{if(!isOpen)return null;const overlayStyle={position:\"fixed\",top:0,left:0,right:0,bottom:0,backgroundColor:\"rgba(0, 0, 0, 0.5)\",display:\"flex\",alignItems:\"center\",justifyContent:\"center\",zIndex:1e3};const modalStyle={backgroundColor:\"#1D2124\",borderRadius:\"10px\",padding:\"16px\",boxShadow:\"0px 11px 17.9px 0px rgba(0, 0, 0, 0.25)\",width:\"350px\",maxWidth:\"90%\",display:\"flex\",flexDirection:\"column\",gap:\"24px\"};const headerStyle={display:\"flex\",justifyContent:\"space-between\",alignItems:\"center\"};const titleStyle={fontFamily:\"'Poppins', sans-serif\",fontWeight:500,fontSize:\"20px\",lineHeight:\"28px\",color:\"#FFFFFF\",margin:0};const closeButtonStyle={cursor:\"pointer\",background:\"none\",border:\"none\",padding:0};const contentStyle={fontFamily:\"'Poppins', sans-serif\",fontWeight:400,fontSize:\"14px\",lineHeight:\"20px\",color:\"#FFFFFF\",margin:0};const doneButtonStyle={backgroundColor:\"transparent\",border:\"1px solid #0A84FF\",borderRadius:\"100px\",padding:\"15px\",cursor:\"pointer\",fontFamily:\"'Poppins', sans-serif\",fontWeight:600,fontSize:\"16px\",lineHeight:\"20px\",color:\"#0A84FF\",textAlign:\"center\"};return /*#__PURE__*/_jsx(\"div\",{style:overlayStyle,onClick:onClose,children:/*#__PURE__*/_jsxs(\"div\",{style:modalStyle,onClick:e=>e.stopPropagation(),children:[/*#__PURE__*/_jsxs(\"div\",{style:headerStyle,children:[/*#__PURE__*/_jsx(\"h2\",{style:titleStyle,children:title}),/*#__PURE__*/_jsx(\"button\",{style:closeButtonStyle,onClick:onClose,\"aria-label\":\"Close\",children:/*#__PURE__*/_jsx(\"svg\",{width:\"24\",height:\"24\",viewBox:\"0 0 24 24\",fill:\"none\",children:/*#__PURE__*/_jsx(\"path\",{d:\"M18 6L6 18M6 6L18 18\",stroke:\"#FFFFFF\",strokeWidth:\"2\",strokeLinecap:\"round\",strokeLinejoin:\"round\"})})})]}),/*#__PURE__*/_jsx(\"p\",{style:contentStyle,children:content}),/*#__PURE__*/_jsx(\"button\",{style:doneButtonStyle,onClick:onClose,children:\"Done\"})]})});};return /*#__PURE__*/_jsxs(\"div\",{style:containerStyle,children:[/*#__PURE__*/_jsxs(\"div\",{style:headerStyle,children:[/*#__PURE__*/_jsx(AmountInput,{label:\"You deposit exactly\",amount:depositAmount,currency:depositCurrency,min:5,max:1e5,onChange:amount=>setDepositAmount(amount)}),/*#__PURE__*/_jsx(CurrencySelector,{label:\"Depositing\",defaultCurrency:depositCurrency,availableCurrencies:[\"USD\",\"GBP\",\"EUR\"],onChange:currency=>setDepositCurrency(currency)}),/*#__PURE__*/_jsx(CurrencySelector,{label:\"Spending\",defaultCurrency:spendCurrency,availableCurrencies:[\"THB\",\"PHP\",\"VND\"],onChange:currency=>setSpendCurrency(currency)})]}),/*#__PURE__*/_jsx(\"div\",{style:cardsContainerStyle,children:ratesLoading?/*#__PURE__*/_jsx(\"div\",{style:{padding:\"40px\",textAlign:\"center\",backgroundColor:\"#31363A\",borderRadius:\"16px\"},children:/*#__PURE__*/_jsx(\"p\",{style:{color:\"#91A0A7\"},children:\"Loading exchange rates...\"})}):/*#__PURE__*/_jsxs(_Fragment,{children:[visibleProviders.map((provider,index)=>/*#__PURE__*/_jsxs(\"div\",{style:cardStyle,children:[/*#__PURE__*/_jsx(\"div\",{style:cardHeaderStyle,children:provider.imageUrl?/*#__PURE__*/_jsx(\"img\",{src:provider.imageUrl,alt:provider.displayName,style:{height:\"32px\",width:\"auto\",objectFit:\"contain\"}}):/*#__PURE__*/_jsx(\"p\",{style:{fontSize:\"20px\",fontWeight:600,color:\"#1D2124\",margin:0},children:provider.displayName})}),/*#__PURE__*/_jsxs(\"div\",{style:cardRowStyle,children:[/*#__PURE__*/_jsx(\"p\",{style:labelStyle,children:\"Supports QR?\"}),provider.supportsQR?/*#__PURE__*/_jsx(CheckIcon,{}):/*#__PURE__*/_jsx(CloseIcon,{})]}),/*#__PURE__*/_jsx(\"div\",{style:dividerStyle}),/*#__PURE__*/_jsxs(\"div\",{style:cardRowStyle,children:[/*#__PURE__*/_jsxs(\"p\",{style:labelStyle,children:[\"Exchange rate\",/*#__PURE__*/_jsx(HelpIcon,{onClick:()=>setShowExchangeRateModal(true)})]}),/*#__PURE__*/_jsx(\"p\",{style:valueStyle,children:provider.exchangeRate.toFixed(4)})]}),/*#__PURE__*/_jsx(\"div\",{style:dividerStyle}),/*#__PURE__*/_jsxs(\"div\",{style:cardRowStyle,children:[/*#__PURE__*/_jsxs(\"p\",{style:labelStyle,children:[\"Fees\",provider.isATM?/*#__PURE__*/_jsx(HelpIcon,{onClick:()=>setShowATMFeesModal(true)}):/*#__PURE__*/_jsx(HelpIcon,{onClick:()=>setShowFeesModal(true)})]}),/*#__PURE__*/_jsxs(\"div\",{style:{textAlign:\"right\"},children:[/*#__PURE__*/_jsxs(\"p\",{style:valueStyle,children:[provider.fee<0?`-${Math.abs(provider.fee).toFixed(2)}`:provider.fee.toFixed(2),\" \",depositCurrency]}),provider.feeNote&&/*#__PURE__*/_jsx(\"p\",{style:{fontSize:\"12px\",color:\"#91A0A7\",margin:0},children:provider.feeNote})]})]}),/*#__PURE__*/_jsx(\"div\",{style:dividerStyle}),/*#__PURE__*/_jsxs(\"div\",{style:cardRowStyle,children:[/*#__PURE__*/_jsx(\"p\",{style:labelStyle,children:\"Spending power\"}),/*#__PURE__*/_jsxs(\"div\",{style:{textAlign:\"right\"},children:[/*#__PURE__*/_jsxs(\"p\",{style:spendingPowerStyle,children:[provider.spendingPower.toLocaleString(\"en-US\",{minimumFractionDigits:2,maximumFractionDigits:2}),\" \",spendCurrency]}),provider.isCheapest&&/*#__PURE__*/_jsx(\"p\",{style:cheapestTextStyle,children:\"Cheapest\"}),provider.difference&&/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",alignItems:\"center\",gap:\"4px\",justifyContent:\"flex-end\",marginTop:\"4px\"},children:[/*#__PURE__*/_jsx(DecreaseIcon,{}),/*#__PURE__*/_jsxs(\"p\",{style:{fontSize:\"12px\",color:\"#FF453A\",margin:0},children:[provider.difference.toLocaleString(\"en-US\",{minimumFractionDigits:2,maximumFractionDigits:2}),\" \",spendCurrency]})]})]})]})]},index)),providers.length>3&&/*#__PURE__*/_jsx(\"button\",{style:showMoreButtonStyle,onClick:()=>setShowAllProviders(!showAllProviders),children:showAllProviders?\"Show less\":\"Show more\"})]})}),/*#__PURE__*/_jsx(Modal,{isOpen:showExchangeRateModal,onClose:()=>setShowExchangeRateModal(false),title:\"Exchange rate\",content:\"Exchange rates shown are based on data from other providers' websites on specific dates. Some providers do not publish this information, so we simulate transactions to estimate their rates. Actual rates may vary.\"}),/*#__PURE__*/_jsx(Modal,{isOpen:showFeesModal,onClose:()=>setShowFeesModal(false),title:\"Fees\",content:\"The calculated fees include foreign exchange fees and markups, transaction fees, transfer fees, and other platform fees.\"}),/*#__PURE__*/_jsx(Modal,{isOpen:showATMFeesModal,onClose:()=>setShowATMFeesModal(false),title:\"ATM Fees\",content:\"ATM fees include both the withdrawal charge and the impact of withdrawal limits, which often force users to make multiple transactions and incur additional fees.\"})]});}// Framer property controls\naddPropertyControls(CurrencyConversionMobile,{depositAmount:{type:ControlType.String,title:\"Deposit Amount\",defaultValue:\"1,000\"},depositCurrency:{type:ControlType.Enum,title:\"Deposit Currency\",options:[\"USD\",\"GBP\",\"EUR\"],optionTitles:[\"US Dollar\",\"British Pound\",\"Euro\"],defaultValue:\"USD\"},spendCurrency:{type:ControlType.Enum,title:\"Spend Currency\",options:[\"THB\",\"PHP\",\"VND\"],optionTitles:[\"Thai Baht\",\"Philippine Peso\",\"Vietnamese Dong\"],defaultValue:\"THB\"},showFees:{type:ControlType.Boolean,title:\"Show Fees\",defaultValue:true},showExchangeRate:{type:ControlType.Boolean,title:\"Show Exchange Rate\",defaultValue:true}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"CurrencyConversionMobile\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}"],
  "mappings": "+GACA,IAAMA,GAAc,CAAC,IAAI,CAAC,YAAY,KAAK,KAAK,WAAW,EAAE,IAAI,CAAC,YAAY,KAAK,KAAK,eAAe,EAAE,IAAI,CAAC,YAAY,KAAK,KAAK,MAAM,EAAE,IAAI,CAAC,YAAY,KAAK,KAAK,WAAW,EAAE,IAAI,CAAC,YAAY,KAAK,KAAK,iBAAiB,EAAE,IAAI,CAAC,YAAY,KAAK,KAAK,iBAAiB,CAAC,EAAiB,SAARC,EAAkC,CAAC,MAAAC,EAAM,aAAa,gBAAAC,EAAgB,MAAM,oBAAAC,EAAoB,CAAC,MAAM,MAAM,MAAM,MAAM,MAAM,KAAK,EAAE,SAAAC,CAAQ,EAAE,CAAC,GAAK,CAACC,EAAiBC,CAAmB,EAAEC,EAAM,SAASL,CAAe,EAAO,CAACM,EAAUC,CAAY,EAAEF,EAAM,SAAS,EAAK,EACjiBG,EAAWP,EAAoB,OAAO,CAACQ,EAAIC,KAAQD,EAAIC,CAAI,EAAEb,GAAca,CAAI,EAASD,GAAM,CAAC,CAAC,EAAQE,EA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iB,aAAa,OAAO,EAAE,gBAAgB,CAAC,KAAKA,EAAY,KAAK,MAAM,mBAAmB,QAAQ,CAAC,MAAM,MAAM,KAAK,EAAE,aAAa,CAAC,YAAY,gBAAgB,MAAM,EAAE,aAAa,KAAK,EAAE,cAAc,CAAC,KAAKA,EAAY,KAAK,MAAM,iBAAiB,QAAQ,CAAC,MAAM,MAAM,KAAK,EAAE,aAAa,CAAC,YAAY,kBAAkB,iBAAiB,EAAE,aAAa,KAAK,EAAE,SAAS,CAAC,KAAKA,EAAY,QAAQ,MAAM,YAAY,aAAa,EAAI,EAAE,iBAAiB,CAAC,KAAKA,EAAY,QAAQ,MAAM,qBAAqB,aAAa,EAAI,CAAC,CAAC",
  "names": ["allCurrencies", "CurrencySelector", "label", "defaultCurrency", "availableCurrencies", "onChange", "selectedCurrency", "setSelectedCurrency", "e", "isFocused", "setIsFocused", "currencies", "acc", "code", "handleChange", "newCurrency", "containerStyle", "labelStyle", "selectWrapperStyle", "selectStyle", "displayStyle", "flagStyle", "codeStyle", "nameStyle", "arrowStyle", "u", "p", "data", "addPropertyControls", "ControlType", "currencyData", "AmountInput", "label", "amount", "currency", "placeholder", "onChange", "inputValue", "setInputValue", "e", "rawValue", "setRawValue", "formatNumber", "value", "parts", "integerPart", "decimalPart", "handleChange", "cleanValue", "numericValue", "formattedValue", "formatted", "containerStyle", "labelStyle", "isFocused", "setIsFocused", "inputWrapperStyle", "inputStyle", "currencyContainerStyle", "flagStyle", "currencyCodeStyle", "u", "p", "addPropertyControls", "ControlType", "providerConfigs", "useExchangeRates", "exchangeRates", "setExchangeRates", "e", "ratesLoading", "setRatesLoading", "fetchRates", "data", "error", "interval", "parseAmount", "amountStr", "getExchangeRate", "depositCurrency", "spendCurrency", "eurToUsd", "gbpToUsd", "calculateSpendingPower", "provider", "amount", "baseRate", "grossAmount", "totalFees", "fixedFee", "percentageFee", "totalFee", "fxRate", "cashbackBonus", "calculateProviderData", "depositAmount", "providersWithCalculations", "spendingPower", "displayRate", "fee", "feeNote", "maxSpendingPower", "p", "CurrencyConversion", "initialDepositAmount", "initialDepositCurrency", "initialSpendCurrency", "showFees", "showExchangeRate", "depositAmount", "setDepositAmount", "e", "depositCurrency", "setDepositCurrency", "spendCurrency", "setSpendCurrency", "showExchangeRateModal", "setShowExchangeRateModal", "showFeesModal", "setShowFeesModal", "showATMFeesModal", "setShowATMFeesModal", "exchangeRates", "ratesLoading", "useExchangeRates", "providers", "calculateProviderData", "containerStyle", "headerStyle", "inputSectionStyle", "tableContainerStyle", "tableHeaderStyle", "tableRowStyle", "providerColStyle", "supportColStyle", "rateColStyle", "feeColStyle", "spendingColStyle", "headerTextStyle", "headerSubTextStyle", "rowTextStyle", "rowSubTextStyle", "spendingAmountStyle", "CheckIcon", "p", "CloseIcon", "HelpIcon", "onClick", "u", "Modal", "isOpen", "onClose", "title", "content", "DecreaseIcon", "AmountInput", "amount", "CurrencySelector", "currency", "provider", "index", "addPropertyControls", "ControlType", "CurrencyConversionMobile", "initialDepositAmount", "initialDepositCurrency", "initialSpendCurrency", "showFees", "showExchangeRate", "depositAmount", "setDepositAmount", "e", "depositCurrency", "setDepositCurrency", "spendCurrency", "setSpendCurrency", "showExchangeRateModal", "setShowExchangeRateModal", "showFeesModal", "setShowFeesModal", "showATMFeesModal", "setShowATMFeesModal", "showAllProviders", "setShowAllProviders", "exchangeRates", "ratesLoading", "useExchangeRates", "providers", "calculateProviderData", "visibleProviders", "containerStyle", "headerStyle", "cardsContainerStyle", "cardStyle", "cardHeaderStyle", "cardRowStyle", "dividerStyle", "labelStyle", "valueStyle", "spendingPowerStyle", "cheapestTextStyle", "showMoreButtonStyle", "CheckIcon", "p", "CloseIcon", "HelpIcon", "onClick", "u", "DecreaseIcon", "Modal", "isOpen", "onClose", "title", "content", "AmountInput", "amount", "CurrencySelector", "currency", "l", "provider", "index", "addPropertyControls", "ControlType"]
}
