{"version":3,"file":"ConvertCore.PSfAyvwC.mjs","names":["useId","useRef","useState","_Fragment","useState","useMemo","startTransition","__esmMin","ie","init_ssg_sandbox_shims","te","window","_e","Ha","de","pe","init_npm_react_dom_18_3_1","c","init_npm_react_18_3_1","ce","init_CoinIcon","CoinIcon","AssetPicker","props","id","button","list","keyed","open","setOpen","active","setActive","close","show","options","value","choose","onChange","index","place","el","anchor","box","page","ratio","zoom","top","bottom","viewWidth","width","LIST_MIN_WIDTH","below","LIST_GAP","LIST_EDGE","above","up","LIST_MAX_HEIGHT","outside","target","event","l","CSS","className","ariaLabel","key","move","match","a","textColor","children","isAr","groundColor","radius","SANS","asset","ROW_HEIGHT","MONO","NAMES","mutedColor","init_AssetPicker","init_jsx_runtime","formatAmount","fiatLike","ticker","STABLES","fetchUsdPrice","proxyBase","r","sym","price","useConvert","from","setFrom","to","setTo","CRYPTO","defaultTo","amount","setAmount","defaultAmount","turns","setTurns","prices","setPrices","failed","setFailed","symbols","s","cancelled","load","prev","rows","p","timer","usd","aedPerUsd","pFrom","pTo","given","received","mode","base","quote","rate","status","set","fn","v","startAmount","startScale","n","ALL","START_AMOUNTS","init_ConvertCore","scale"],"sources":["https:/framerusercontent.com/modules/hTfoBoHsckV1OrYW9uaX/HDxCWj39leyVzrPA8cNt/AssetPicker.js","https:/framerusercontent.com/modules/FiP5DsazB9ForhaWVRjP/LSAT6oewIPqaE3u9epzT/ConvertCore.js"],"sourcesContent":["// Shared asset dropdown for the converters (HeroConverter, PhoneConvert, DesktopConvert): coin icons,\n// names and a tick on the selected asset, in place of the browser's own <select> list.\n// A select-only combobox: focus stays on the button and the arrow keys move the highlight. The list is\n// portalled to <body> so a hero's overflow clip or a device mock-up's screen can't cut it off, and it\n// opens upwards when there is more room above. It lines up with the nearest [data-picker-anchor] parent.\n// The button has a plain look of its own; pass className, children and radius to give it a mock-up's look.\n// The assets themselves come from ConvertCore.\nimport{jsx as _jsx,jsxs as _jsxs,Fragment as _Fragment}from\"react/jsx-runtime\";import{useEffect,useId,useRef,useState}from\"react\";import{createPortal}from\"react-dom\";import CoinIcon from\"https://framerusercontent.com/modules/x8ycAFlkYCwmmAwB7Rww/cFfz2J7bmN6blmQzXpPl/CoinIcon.js\";const MONO=\"'Fragment Mono', 'Noto Sans Arabic', 'Geeza Pro', ui-monospace, SFMono-Regular, monospace\";const SANS=\"'Inter', 'Noto Sans Arabic', 'Geeza Pro', system-ui, sans-serif\";// Shown beside the ticker as [en, ar]. XRP and BNB are their own names, so they have none.\nconst NAMES={AED:[\"UAE Dirham\",\"درهم إماراتي\"],USDT:[\"Tether\",\"تيثر\"],USDC:[\"USD Coin\",\"USD Coin\"],BTC:[\"Bitcoin\",\"بيتكوين\"],ETH:[\"Ethereum\",\"إيثريوم\"],SOL:[\"Solana\",\"سولانا\"],TRX:[\"Tron\",\"ترون\"],ARB:[\"Arbitrum\",\"أربيتروم\"],POL:[\"Polygon\",\"بوليغون\"]};const ROW_HEIGHT=44;const LIST_GAP=6;const LIST_EDGE=8// Keeps the list off the screen edges.\n;const LIST_MIN_WIDTH=240// The device mock-ups' cards can be narrower than a readable row.\n;const LIST_MAX_HEIGHT=ROW_HEIGHT*6.5// The half row shows there is more to scroll to.\n;const CSS=`\n.mkxac-btn { appearance: none; font-family: inherit; color: inherit; cursor: pointer; }\n.mkxac-btn svg:last-child { transition: transform 0.16s ease; }\n.mkxac-btn[aria-expanded=\"true\"] svg:last-child { transform: rotate(180deg); }\n.mkxac-btn:focus-visible { outline: 2px solid rgba(255,255,255,0.55); outline-offset: 1px; }\n.mkxac-plain { display: flex; align-items: center; gap: 8px; flex-shrink: 0; margin-inline-end: -8px; padding: 8px; background: transparent;\n    border: none; border-radius: 2px; font-family: ${MONO}; font-size: 13px; }\n.mkxac-plain:hover, .mkxac-plain[aria-expanded=\"true\"] { background: rgba(255,255,255,0.06); }\n@keyframes mkxac-in { from { opacity: 0; transform: translateY(-4px); } }\n.mkxac-list { animation: mkxac-in 0.14s ease-out; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,0.2) transparent; }\n@media (prefers-reduced-motion: reduce) { .mkxac-btn svg:last-child { transition: none; } .mkxac-list { animation: none; } }\n`;/**\n * Asset Picker\n *\n * @framerIntrinsicWidth 110\n * @framerIntrinsicHeight 40\n *\n * @framerSupportedLayoutWidth auto\n * @framerSupportedLayoutHeight auto\n */export default function AssetPicker(props){const{options=[\"USDT\"],value=\"USDT\",onChange,ariaLabel=\"Asset\",isAr=false,groundColor=\"#06050A\",textColor=\"#F3F3F5\",mutedColor=\"#9D9CA6\",radius=2,className,children}=props;const id=useId();const button=useRef(null);const list=useRef(null);const keyed=useRef(false)// Only keyboard moves and opening scroll the highlight into view, not hovering.\n;const[open,setOpen]=useState(false);const[active,setActive]=useState(0);// Plain state updates, not transitions: the next key press has to see the row this one moved to.\nconst close=()=>setOpen(false);const show=()=>{keyed.current=true;setActive(Math.max(0,options.indexOf(value)));setOpen(true);};const choose=index=>{close();onChange?.(options[index]);};useEffect(()=>{if(!open)return;const place=()=>{const el=list.current;const anchor=button.current?.closest(\"[data-picker-anchor]\")??button.current;if(!el||!anchor)return;const box=anchor.getBoundingClientRect();// With the large-screen zoom on <html>, some browsers report rects in on-screen px while this\n// layer's px are scaled again. Measured on <body> so a mock-up's own scale doesn't count.\nconst page=document.body;const ratio=page.offsetWidth?page.getBoundingClientRect().width/page.offsetWidth:1;const zoom=ratio>1.02&&ratio<3?ratio:1;const top=box.top/zoom;const bottom=box.bottom/zoom;const viewWidth=window.innerWidth/zoom;const width=Math.min(Math.max(box.width/zoom,LIST_MIN_WIDTH),viewWidth-LIST_EDGE*2);const below=window.innerHeight/zoom-bottom-LIST_GAP-LIST_EDGE;const above=top-LIST_GAP-LIST_EDGE;const up=below<LIST_MAX_HEIGHT&&above>below;el.style.left=`${Math.max(LIST_EDGE,Math.min(box.left/zoom,viewWidth-width-LIST_EDGE))}px`;el.style.width=`${width}px`;el.style.maxHeight=`${Math.min(LIST_MAX_HEIGHT,up?above:below)}px`;el.style.top=`${up?top-LIST_GAP-el.offsetHeight:bottom+LIST_GAP}px`;el.style.visibility=\"visible\";};const outside=event=>{const target=event.target;if(!list.current?.contains(target)&&!button.current?.contains(target))close();};place();window.addEventListener(\"scroll\",place,{capture:true,passive:true});window.addEventListener(\"resize\",place);document.addEventListener(\"pointerdown\",outside);return()=>{window.removeEventListener(\"scroll\",place,{capture:true});window.removeEventListener(\"resize\",place);document.removeEventListener(\"pointerdown\",outside);};},[open]);useEffect(()=>{if(!open||!keyed.current)return;keyed.current=false;list.current?.children[active]?.scrollIntoView({block:\"nearest\"});},[open,active]);const onKeyDown=event=>{const{key}=event;if(!open){if(key===\"ArrowDown\"||key===\"ArrowUp\"||key===\"Enter\"||key===\" \"){event.preventDefault();show();}return;}const move=index=>{event.preventDefault();keyed.current=true;setActive(index);};if(key===\"ArrowDown\")move(Math.min(active+1,options.length-1));else if(key===\"ArrowUp\")move(Math.max(active-1,0));else if(key===\"Home\")move(0);else if(key===\"End\")move(options.length-1);else if(key===\"Enter\"||key===\" \"){event.preventDefault();choose(active);}else if(key===\"Escape\"){event.preventDefault();close();}else if(key===\"Tab\")close();else if(key.length===1){const match=options.findIndex(a=>a.startsWith(key.toUpperCase()));if(match>=0)move(match);}};return /*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(\"style\",{children:CSS}),/*#__PURE__*/_jsx(\"button\",{ref:button,type:\"button\",role:\"combobox\",className:`mkxac-btn ${className??\"mkxac-plain\"}`,\"aria-label\":ariaLabel,\"aria-haspopup\":\"listbox\",\"aria-expanded\":open,\"aria-controls\":open?`${id}-list`:undefined,\"aria-activedescendant\":open?`${id}-${active}`:undefined,onClick:()=>open?close():show(),onKeyDown:onKeyDown,onKeyUp:event=>event.key===\" \"&&event.preventDefault(),style:className?undefined:{color:textColor},children:children??/*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(CoinIcon,{symbol:value,size:18}),value,/*#__PURE__*/_jsx(\"svg\",{width:\"10\",height:\"10\",viewBox:\"0 0 10 10\",fill:\"none\",\"aria-hidden\":\"true\",children:/*#__PURE__*/_jsx(\"path\",{d:\"M1.5 3.5 5 7l3.5-3.5\",stroke:\"currentColor\",strokeWidth:\"1.4\",strokeLinecap:\"round\",strokeLinejoin:\"round\"})})]})}),open&&/*#__PURE__*/createPortal(/*#__PURE__*/_jsx(\"div\",{ref:list,id:`${id}-list`,role:\"listbox\",\"aria-label\":ariaLabel,className:\"mkxac-list\",dir:isAr?\"rtl\":\"ltr\",lang:isAr?\"ar\":undefined,style:{position:\"fixed\",zIndex:1e3,visibility:\"hidden\",boxSizing:\"border-box\",overflowY:\"auto\",overscrollBehavior:\"contain\",padding:4,backgroundColor:groundColor,border:\"1px solid rgba(255,255,255,0.12)\",borderRadius:radius,boxShadow:\"0 16px 40px rgba(0,0,0,0.6)\",fontFamily:SANS},children:options.map((asset,index)=>/*#__PURE__*/_jsxs(\"div\",{id:`${id}-${index}`,role:\"option\",\"aria-selected\":asset===value,onMouseMove:()=>setActive(index),onMouseDown:event=>event.preventDefault(),onClick:()=>choose(index),style:{display:\"flex\",alignItems:\"center\",gap:10,height:ROW_HEIGHT,padding:\"0 10px\",borderRadius:Math.max(radius-4,2),backgroundColor:index===active?\"rgba(255,255,255,0.07)\":\"transparent\",cursor:\"pointer\"},children:[/*#__PURE__*/_jsx(CoinIcon,{symbol:asset,size:22}),/*#__PURE__*/_jsx(\"span\",{style:{fontFamily:MONO,fontSize:13,color:textColor},children:asset}),NAMES[asset]&&/*#__PURE__*/_jsx(\"span\",{style:{fontSize:12,color:mutedColor},children:NAMES[asset][isAr?1:0]}),asset===value&&/*#__PURE__*/_jsx(\"svg\",{width:\"14\",height:\"14\",viewBox:\"0 0 14 14\",fill:\"none\",\"aria-hidden\":\"true\",style:{marginInlineStart:\"auto\",color:textColor},children:/*#__PURE__*/_jsx(\"path\",{d:\"m2.5 7.5 3 3 6-7\",stroke:\"currentColor\",strokeWidth:\"1.5\",strokeLinecap:\"round\",strokeLinejoin:\"round\"})})]},asset))}),document.body)]});}\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"AssetPicker\",\"slots\":[\"children\"],\"annotations\":{\"framerSupportedLayoutWidth\":\"auto\",\"framerSupportedLayoutHeight\":\"auto\",\"framerIntrinsicHeight\":\"40\",\"framerIntrinsicWidth\":\"110\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./AssetPicker.map","// Shared converter logic for the device mock-ups (DesktopConvert on /business): assets, live USD\n// prices (the MKX price proxy, then Coinbase's public spot price, as in HeroConverter), the fixed\n// AED/USD peg and the amount / asset / swap / mode state. Figures are indicative; the app quotes.\nimport{startTransition,useEffect,useMemo,useState}from\"react\";// Every asset MKX lists, in the home page's order. All three converters read this list.\nexport const CRYPTO=[\"USDT\",\"USDC\",\"BTC\",\"ETH\",\"SOL\",\"XRP\",\"BNB\",\"TRX\",\"ARB\",\"POL\"];export const ALL=[\"AED\",...CRYPTO];export const STABLES=new Set([\"USDT\",\"USDC\"]);// What the amount resets to when an asset becomes the \"from\" side, so 100000 AED doesn't turn into\n// 100000 BTC. Round figures worth roughly USD 1,000 of each; the low-priced coins need far more than 0.1.\nconst START_AMOUNTS={USDT:1e3,USDC:1e3,BTC:.1,ETH:1,SOL:10,XRP:1e3,BNB:1,TRX:5e3,ARB:5e3,POL:1e4};// `scale` is for the corporate mock-up's larger tickets; AED always starts at the component's own amount.\nexport const startAmount=(asset,defaultAmount,scale=1)=>String(asset===\"AED\"?defaultAmount:START_AMOUNTS[asset]*scale);export function formatAmount(value,ticker){if(value==null||!isFinite(value))return\"—\";const fiatLike=ticker===\"AED\"||ticker===\"USD\"||STABLES.has(ticker);return value.toLocaleString(\"en-US\",{minimumFractionDigits:fiatLike?2:0,maximumFractionDigits:fiatLike?2:value>=1?4:6});}export async function fetchUsdPrice(proxyBase,sym){if(proxyBase){try{const r=await fetch(`${proxyBase}/api/coin/${sym}`);if(r.ok){const price=(await r.json())?.quote?.USD?.price;if(typeof price===\"number\"&&price>0)return price;}}catch{}}try{const r=await fetch(`https://api.coinbase.com/v2/prices/${sym}-USD/spot`);if(r.ok){const price=parseFloat((await r.json())?.data?.amount);if(price>0)return price;}}catch{}return null;}export function useConvert({defaultAmount,defaultTo,proxyBase,aedPerUsd,startScale=1}){const[from,setFrom]=useState(\"AED\");const[to,setTo]=useState(CRYPTO.includes(defaultTo)?defaultTo:\"BTC\");const[amount,setAmount]=useState(String(defaultAmount));const[turns,setTurns]=useState(0);const[prices,setPrices]=useState({USDT:1,USDC:1});const[failed,setFailed]=useState({});const symbols=useMemo(()=>[from,to].filter(s=>s!==\"AED\"&&!STABLES.has(s)).sort().join(\",\"),[from,to]);useEffect(()=>{if(!symbols)return;let cancelled=false;const load=()=>Promise.all(symbols.split(\",\").map(async sym=>[sym,await fetchUsdPrice(proxyBase,sym)])).then(rows=>{if(cancelled)return;startTransition(()=>{setPrices(prev=>({...prev,...Object.fromEntries(rows.filter(([,p])=>p).map(([s,p])=>[s,p]))}));setFailed(prev=>({...prev,...Object.fromEntries(rows.map(([s,p])=>[s,!p]))}));});});load();const timer=setInterval(load,6e4);return()=>{cancelled=true;clearInterval(timer);};},[proxyBase,symbols]);const usd=sym=>sym===\"AED\"?1/aedPerUsd:prices[sym]??null;const pFrom=usd(from);const pTo=usd(to);const given=parseFloat(amount)||0;const received=pFrom&&pTo?given*pFrom/pTo:null;const mode=from===\"AED\"?\"buy\":to===\"AED\"?\"sell\":\"convert\";// The rate reads as the app shows it: one unit of the crypto side, in AED where AED is involved.\nconst base=mode===\"sell\"?from:mode===\"buy\"?to:from;const quote=mode===\"convert\"?to:\"AED\";const rate=usd(base)&&usd(quote)?usd(base)/usd(quote):null;const status=rate?\"live\":failed[from]||failed[to]?\"down\":\"loading\";const set=fn=>startTransition(fn);// Picking the asset already on the other side swaps the two. A new \"from\" asset starts at its own\n// default amount; only the swap button carries the value across.\nconst pickFrom=v=>set(()=>{if(v===from)return;if(v===to)setTo(from);setFrom(v);setAmount(startAmount(v,defaultAmount,startScale));});const pickTo=v=>set(()=>{if(v===from){setFrom(to);setAmount(startAmount(to,defaultAmount,startScale));}setTo(v);});const swap=()=>set(()=>{setTurns(n=>n+1);setFrom(to);setTo(from);if(received)setAmount(String(Number(received.toFixed(to===\"AED\"||STABLES.has(to)?2:6))));});const onAmount=e=>set(()=>setAmount(e.target.value.replace(/[^0-9.]/g,\"\").replace(/(\\..*)\\./g,\"$1\")));const pickAmount=v=>set(()=>setAmount(v));return{from,to,amount,given,received,pFrom,pTo,mode,base,quote,rate,status,turns,pickFrom,pickTo,swap,onAmount,pickAmount};}\nexport const __FramerMetadata__ = {\"exports\":{\"useConvert\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"fetchUsdPrice\":{\"type\":\"function\",\"isAsync\":true,\"annotations\":{\"framerContractVersion\":\"1\"}},\"Mode\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"CRYPTO\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"STABLES\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"startAmount\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"formatAmount\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"ALL\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./ConvertCore.map"],"mappings":"A,6OA8BG,SAAwBsB,EAAY,EAAM,CAAC,GAAK,CAAC,UAAQ,CAAC,MAAM,EAAE,QAAM,OAAO,WAAS,YAAU,QAAQ,OAAK,GAAM,cAAY,UAAU,YAAU,UAAU,aAAW,UAAU,SAAO,EAAE,YAAU,YAAUC,EAAYC,EAAGxB,EAAM,EAAQyB,EAAOxB,EAAO,IAAI,EAAQyB,EAAKzB,EA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