{"version":3,"file":"CurrencyMenu.OvjuuGEd.mjs","names":["p","React.useRef","React.useMemo","React.useState","_Fragment"],"sources":["https:/framerusercontent.com/modules/CiZzJqxmpONKoYXJyM2K/XqEQDR1ORo5oFYJORA1G/CurrencyMenu.js"],"sourcesContent":["// CurrencyMenu.tsx — final (CAD, caret X-offset, IP auto-currency, smooth timer)\nimport{jsx as _jsx,jsxs as _jsxs,Fragment as _Fragment}from\"react/jsx-runtime\";import*as React from\"react\";import{addPropertyControls,ControlType}from\"framer\";const SYMBOLS={GBP:\"\\xa3\",USD:\"$\",EUR:\"€\",CAD:\"C$\",OMR:\"ر.ع\",AED:\"د.إ\",SAR:\"ر.س\",QAR:\"ر.ق\"};/* ---------- Locale helpers ---------- */function getURLLocale(){try{const href=window.location.href.toLowerCase();if(href.includes(\"lang=ar\")||href.includes(\"/ar/\")||href.endsWith(\"/ar\"))return\"ar\";if(href.includes(\"lang=en\")||href.includes(\"/en/\")||href.endsWith(\"/en\"))return\"en\";}catch{}return null;}function readHtmlDirLang(){if(typeof document===\"undefined\")return{dir:\"\",lang:\"\"};const el=document.documentElement;let dir=(el.getAttribute(\"dir\")||\"\").toLowerCase();let lang=(el.getAttribute(\"lang\")||\"\").toLowerCase();try{if((!dir||!lang)&&window.parent&&window.parent!==window){const p=window.parent.document?.documentElement;dir=dir||(p?.getAttribute(\"dir\")||\"\").toLowerCase();lang=lang||(p?.getAttribute(\"lang\")||\"\").toLowerCase();}}catch{}return{dir,lang};}function resolveLocaleAndDir(prefLocale,prefDir){if(prefLocale===\"en\")return{locale:\"en\",isRTL:prefDir===\"rtl\"};if(prefLocale===\"ar\")return{locale:\"ar\",isRTL:prefDir!==\"ltr\"};const urlLoc=getURLLocale();if(urlLoc)return{locale:urlLoc,isRTL:urlLoc===\"ar\"};const{dir,lang}=readHtmlDirLang();const htmlIsRTL=dir===\"rtl\"||/^ar\\b/.test(lang);const navLang=(typeof navigator!==\"undefined\"&&(navigator.language||navigator.userLanguage)||\"\").toLowerCase();const browserIsAR=/^ar\\b/.test(navLang);const finalRTL=prefDir===\"ltr\"?false:prefDir===\"rtl\"?true:htmlIsRTL||browserIsAR;return{locale:finalRTL?\"ar\":\"en\",isRTL:finalRTL};}async function fetchWithTimeout(url,ms){const ctrl=new AbortController;const t=setTimeout(()=>ctrl.abort(),ms);try{const res=await fetch(url,{signal:ctrl.signal});if(!res.ok)throw new Error(`HTTP ${res.status}`);return await res.json();}finally{clearTimeout(t);}}async function guessCurrencyFromIP(endpoints,timeoutMs){for(const raw of endpoints){const url=raw.trim();if(!url)continue;try{const j=await fetchWithTimeout(url,timeoutMs);const currency=j?.currency?.code||j?.currency||j?.currency_code||null;const country=j?.country_code||j?.country||j?.countryCode||null;if(currency||country)return{currency:currency||undefined,country:country||undefined};}catch{}}return{};}const COUNTRY_TO_CURRENCY={OM:\"OMR\",AE:\"AED\",SA:\"SAR\",QA:\"QAR\",BH:\"BHD\",KW:\"KWD\",GB:\"GBP\",US:\"USD\",CA:\"CAD\",EU:\"EUR\",FR:\"EUR\",DE:\"EUR\",IT:\"EUR\",ES:\"EUR\",NL:\"EUR\",BE:\"EUR\",PT:\"EUR\",IE:\"EUR\"};/* ---------- Component ---------- */export default function CurrencyMenu(p){const changeByUserRef=React.useRef(false);const initialLoadRef=React.useRef(true);const list=React.useMemo(()=>{const arr=(p.currenciesCsv||\"\").split(\",\").map(s=>s.trim().toUpperCase()).filter(Boolean);return arr.length?arr:[\"GBP\",\"USD\",\"EUR\",\"CAD\",\"AED\",\"OMR\",\"SAR\",\"QAR\"];},[p.currenciesCsv]);const[ld,setLD]=React.useState(()=>resolveLocaleAndDir(p.locale,p.direction));React.useEffect(()=>{const update=()=>setLD(resolveLocaleAndDir(p.locale,p.direction));const target=typeof document!==\"undefined\"?document.documentElement:null;let mo=null;if(target&&(p.locale===\"auto\"||p.direction===\"auto\")){mo=new MutationObserver(update);mo.observe(target,{attributes:true,attributeFilter:[\"dir\",\"lang\"]});}window.addEventListener(\"popstate\",update);window.addEventListener(\"hashchange\",update);const id=window.setInterval(update,1500);update();return()=>{if(mo)mo.disconnect();window.removeEventListener(\"popstate\",update);window.removeEventListener(\"hashchange\",update);window.clearInterval(id);};},[p.locale,p.direction]);const isRTL=ld.isRTL;const overlayMessage=ld.locale===\"ar\"?p.overlayMessageAR:p.overlayMessageEN;// Selected currency\nconst[value,setValue]=React.useState(()=>{const saved=typeof window!==\"undefined\"?localStorage.getItem(`currency:${p.persistKey}`):null;return saved&&saved.length?saved:\"\"// empty → eligible for geo\n;});// Geo default (first visit only)\nReact.useEffect(()=>{let alive=true;(async()=>{if(!p.enableGeoAuto)return;const saved=typeof window!==\"undefined\"?localStorage.getItem(`currency:${p.persistKey}`):null;if(saved)return;if(value)return;const endpoints=(p.geoEndpointsCsv||\"https://ipapi.co/json/,https://ipwho.is/\").split(\",\");const g=await guessCurrencyFromIP(endpoints,Math.max(800,p.geoTimeoutMs||1500));if(!alive)return;let code=g.currency&&String(g.currency).toUpperCase()||g.country&&COUNTRY_TO_CURRENCY[String(g.country).toUpperCase()]||\"\";if(code&&!list.includes(code)){const cc=(g.country||\"\").toUpperCase();code=COUNTRY_TO_CURRENCY[cc]||\"\";}if(!code)return;changeByUserRef.current=false;setValue(code);})();return()=>{alive=false;};},[p.enableGeoAuto,p.geoEndpointsCsv,p.geoTimeoutMs,list,p.persistKey,value]);// Toast + broadcast\nconst[show,setShow]=React.useState(false);const durationMs=Math.max(.8,p.overlayDurationSec)*1e3;// Seconds (text only) — smooth, no jank\nconst[secondsLeft,setSecondsLeft]=React.useState(0);const startRef=React.useRef(null);const timerIdRef=React.useRef(null);const hideIdRef=React.useRef(null);const barRef=React.useRef(null);// When value changes: persist, broadcast, and (maybe) show toast\nReact.useEffect(()=>{if(!value)return;localStorage.setItem(`currency:${p.persistKey}`,value);const isUser=changeByUserRef.current===true;window.dispatchEvent(new CustomEvent(\"currency:change\",{detail:{code:value,key:p.persistKey,source:isUser?\"user\":\"programmatic\"}}));changeByUserRef.current=false;// overlay rules\nif(p.suppressOnInitialLoad&&initialLoadRef.current){initialLoadRef.current=false;return;}if(p.suppressOnProgrammaticChange&&!isUser)return;if(!p.showOverlayOnChange)return;if(value.toUpperCase()===\"GBP\"){setShow(false);return;}// Show toast\nsetShow(true);// Animate bar with pure CSS keyframe (no state writes)\nrequestAnimationFrame(()=>{if(!barRef.current)return;const name=p.timerMode===\"fill\"?\"cmFill\":\"cmShrink\";barRef.current.style.animation=\"none\";// @ts-ignore force reflow\nvoid barRef.current.offsetWidth;barRef.current.style.transformOrigin=p.timerMode===\"fill\"?isRTL?\"right\":\"left\":isRTL?\"left\":\"right\";barRef.current.style.animation=`${name} ${durationMs}ms linear forwards`;});// Seconds text updater (lightweight)\nstartRef.current=performance.now();setSecondsLeft(durationMs/1e3);if(timerIdRef.current)clearInterval(timerIdRef.current);timerIdRef.current=window.setInterval(()=>{if(!startRef.current)return;const elapsed=performance.now()-startRef.current;const left=Math.max(0,(durationMs-elapsed)/1e3);setSecondsLeft(left);},120);if(hideIdRef.current)clearTimeout(hideIdRef.current);hideIdRef.current=window.setTimeout(()=>{setShow(false);if(timerIdRef.current)clearInterval(timerIdRef.current);timerIdRef.current=null;startRef.current=null;},durationMs);return()=>{if(timerIdRef.current)clearInterval(timerIdRef.current);if(hideIdRef.current)clearTimeout(hideIdRef.current);timerIdRef.current=null;hideIdRef.current=null;};},[value,p.persistKey,p.showOverlayOnChange,p.timerMode,durationMs,p.suppressOnInitialLoad,p.suppressOnProgrammaticChange,isRTL]);const uiDir=p.direction!==\"auto\"?p.direction:isRTL?\"rtl\":\"ltr\";// Caret SVG\nconst caretSVG=encodeURIComponent(`<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"${p.caretSize}\" height=\"${p.caretSize}\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"${p.caretColor}\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><polyline points=\"6 9 12 15 18 9\"/></svg>`);const caretPad=p.caretSize+Math.max(0,p.caretOffsetX);const selectStyle={padding:`${p.paddingY}px ${p.paddingX+(uiDir===\"ltr\"?caretPad:0)}px ${p.paddingY}px ${p.paddingX+(uiDir===\"rtl\"?caretPad:0)}px`,borderRadius:p.radius,border:`1px solid ${p.borderColor}`,background:p.bgColor,color:p.textColor,fontSize:p.fontSize,fontFamily:p.fontFamily||\"Zain\",outline:\"none\",direction:uiDir,appearance:\"none\",WebkitAppearance:\"none\",MozAppearance:\"none\",backgroundImage:\"none\"};const caretCommon={position:\"absolute\",top:\"50%\",transform:\"translateY(-50%)\",width:p.caretSize,height:p.caretSize,pointerEvents:\"none\",backgroundImage:`url(\"data:image/svg+xml,${caretSVG}\")`,backgroundRepeat:\"no-repeat\",backgroundPosition:\"center\",backgroundSize:\"100% 100%\",opacity:.9};return /*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsxs(\"div\",{style:{position:\"relative\",display:\"inline-block\"},children:[uiDir===\"ltr\"?/*#__PURE__*/_jsx(\"div\",{style:{...caretCommon,right:p.caretOffsetX}}):/*#__PURE__*/_jsx(\"div\",{style:{...caretCommon,left:p.caretOffsetX}}),/*#__PURE__*/_jsx(\"select\",{value:value||list[0],onChange:e=>{changeByUserRef.current=true;setValue(e.target.value);},style:selectStyle,children:list.map(code=>/*#__PURE__*/_jsx(\"option\",{value:code,style:{color:\"black\"},children:p.showSymbols&&SYMBOLS[code]?`${SYMBOLS[code]} ${code}`:code},code))})]}),show&&/*#__PURE__*/_jsxs(\"div\",{role:\"status\",\"aria-live\":\"polite\",style:{position:\"fixed\",left:\"50%\",transform:\"translateX(-50%)\",bottom:p.overlayBottom,zIndex:p.overlayZIndex,maxWidth:p.overlayMaxWidth,width:\"calc(100% - 32px)\",color:p.overlayTextColor,background:p.overlayBg,border:`1px solid ${p.overlayBorder}`,borderRadius:p.overlayRadius,boxShadow:p.overlayShadow,backdropFilter:p.overlayBlur?`blur(${p.overlayBlur}px)`:undefined,WebkitBackdropFilter:p.overlayBlur?`blur(${p.overlayBlur}px)`:undefined,padding:`${p.overlayPaddingY}px ${p.overlayPaddingX}px`,fontFamily:\"Zain\",lineHeight:1.5,direction:uiDir,animation:\"cm-fade-slide-in 220ms ease-out\",// isolate timer layer from heavy backdrop on mobile:\nwillChange:\"transform\"},children:[/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",gap:10,alignItems:\"center\",justifyContent:\"space-between\"},children:[/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",gap:10,alignItems:\"center\"},children:[p.showIcon&&/*#__PURE__*/_jsxs(\"svg\",{width:\"18\",height:\"18\",viewBox:\"0 0 24 24\",fill:\"none\",style:{flex:\"0 0 auto\"},children:[/*#__PURE__*/_jsx(\"path\",{d:\"M12 2L2 20h20L12 2z\",stroke:p.iconColor,strokeWidth:\"1.5\",fill:\"none\"}),/*#__PURE__*/_jsx(\"path\",{d:\"M12 9v5\",stroke:p.iconColor,strokeWidth:\"1.5\",strokeLinecap:\"round\"}),/*#__PURE__*/_jsx(\"circle\",{cx:\"12\",cy:\"17\",r:\"1\",fill:p.iconColor})]}),/*#__PURE__*/_jsx(\"div\",{style:{fontSize:p.overlayFontSize,opacity:.95},children:overlayMessage})]}),p.showSeconds&&/*#__PURE__*/_jsxs(\"div\",{style:{fontSize:12,color:p.secondsColor,opacity:.8,minWidth:36,textAlign:\"right\"},children:[secondsLeft.toFixed(1),\"s\"]})]}),/*#__PURE__*/_jsx(\"div\",{style:{marginTop:12,height:p.timerHeight,background:p.timerBg,borderRadius:999,overflow:\"hidden\",transform:\"translateZ(0)\"},children:/*#__PURE__*/_jsx(\"div\",{ref:barRef,style:{height:\"100%\",width:\"100%\",background:p.timerColor,transform:p.timerMode===\"fill\"?\"scaleX(0)\":\"scaleX(1)\",willChange:\"transform\",backfaceVisibility:\"hidden\"}})}),/*#__PURE__*/_jsx(\"style\",{children:`\n              @keyframes cm-fade-slide-in {\n                from { opacity: 0; transform: translate(-50%, 8px); }\n                to   { opacity: 1; transform: translate(-50%, 0); }\n              }\n              @keyframes cmFill   { from { transform: scaleX(0) translateZ(0); } to { transform: scaleX(1) translateZ(0); } }\n              @keyframes cmShrink { from { transform: scaleX(1) translateZ(0); } to { transform: scaleX(0) translateZ(0); } }\n            `})]})]});}/* ---------- Controls ---------- */addPropertyControls(CurrencyMenu,{// Menu\ncurrenciesCsv:{type:ControlType.String,title:\"Currencies\",defaultValue:\"GBP, USD, EUR, CAD, AED, OMR, SAR, QAR\"},persistKey:{type:ControlType.String,title:\"Persist Key\",defaultValue:\"sf-currency\"},showSymbols:{type:ControlType.Boolean,title:\"Show symbols\",defaultValue:true},// Menu styling\ntextColor:{type:ControlType.Color,title:\"Text\",defaultValue:\"#ffffff\"},bgColor:{type:ControlType.Color,title:\"Background\",defaultValue:\"transparent\"},borderColor:{type:ControlType.Color,title:\"Border\",defaultValue:\"transparent\"},radius:{type:ControlType.Number,title:\"Radius\",defaultValue:8,min:0},paddingX:{type:ControlType.Number,title:\"Pad X\",defaultValue:12,min:0},paddingY:{type:ControlType.Number,title:\"Pad Y\",defaultValue:8,min:0},fontSize:{type:ControlType.Number,title:\"Font size\",defaultValue:16,min:8,max:32},fontFamily:{type:ControlType.String,title:\"Font\",defaultValue:\"Zain\"},// Caret\ncaretColor:{type:ControlType.Color,title:\"Caret color\",defaultValue:\"#BFBFBF\"},caretSize:{type:ControlType.Number,title:\"Caret size\",defaultValue:14,min:8,max:24},caretOffsetX:{type:ControlType.Number,title:\"Caret X offset\",defaultValue:12,min:-16,max:48},// Locale\nlocale:{type:ControlType.Enum,title:\"Locale\",options:[\"auto\",\"en\",\"ar\"],optionTitles:[\"Auto\",\"English\",\"Arabic\"],defaultValue:\"auto\"},direction:{type:ControlType.Enum,title:\"Direction\",options:[\"auto\",\"ltr\",\"rtl\"],optionTitles:[\"Auto\",\"LTR\",\"RTL\"],defaultValue:\"auto\"},// Overlay behavior/content\nshowOverlayOnChange:{type:ControlType.Boolean,title:\"Show overlay\",defaultValue:true},overlayDurationSec:{type:ControlType.Number,title:\"Duration (s)\",defaultValue:6,min:1,max:15,step:.5},overlayMessageEN:{type:ControlType.String,title:\"Message (EN)\",defaultValue:\"Prices are shown in your currency for guidance. Checkout will be in GBP.\"},overlayMessageAR:{type:ControlType.String,title:\"Message (AR)\",defaultValue:\"تُعرَض الأسعار بعملتك للتوضيح فقط. سيتم الدفع بالجنيه الإسترليني (GBP).\"},// Overlay style\noverlayTextColor:{type:ControlType.Color,title:\"Overlay text\",defaultValue:\"#ffffff\"},overlayBg:{type:ControlType.Color,title:\"Overlay BG\",defaultValue:\"rgba(15,15,20,0.92)\"},overlayBorder:{type:ControlType.Color,title:\"Overlay border\",defaultValue:\"rgba(255,255,255,0.08)\"},overlayRadius:{type:ControlType.Number,title:\"Overlay radius\",defaultValue:12,min:0},overlayShadow:{type:ControlType.String,title:\"Overlay shadow\",defaultValue:\"0 10px 30px rgba(0,0,0,0.35)\"},overlayBlur:{type:ControlType.Number,title:\"Backdrop blur\",defaultValue:6,min:0,max:20,step:1},overlayPaddingX:{type:ControlType.Number,title:\"Pad X\",defaultValue:14,min:0},overlayPaddingY:{type:ControlType.Number,title:\"Pad Y\",defaultValue:12,min:0},overlayFontSize:{type:ControlType.Number,title:\"Text size\",defaultValue:16,min:10,max:28},// Timer\ntimerMode:{type:ControlType.Enum,title:\"Timer mode\",options:[\"fill\",\"shrink\"],optionTitles:[\"Fill (natural)\",\"Shrink\"],defaultValue:\"fill\"},timerHeight:{type:ControlType.Number,title:\"Timer height\",defaultValue:3,min:1,max:10},timerColor:{type:ControlType.Color,title:\"Timer color\",defaultValue:\"#ffffff\"},timerBg:{type:ControlType.Color,title:\"Timer bg\",defaultValue:\"rgba(255,255,255,0.15)\"},showSeconds:{type:ControlType.Boolean,title:\"Show seconds\",defaultValue:true},secondsColor:{type:ControlType.Color,title:\"Seconds color\",defaultValue:\"rgba(255,255,255,0.8)\"},// Position\noverlayBottom:{type:ControlType.Number,title:\"Bottom offset\",defaultValue:24,min:0,max:200},overlayMaxWidth:{type:ControlType.Number,title:\"Max width\",defaultValue:640,min:240,max:1e3},overlayZIndex:{type:ControlType.Number,title:\"z-index\",defaultValue:9999,min:0,max:999999},// Icon\nshowIcon:{type:ControlType.Boolean,title:\"Show icon\",defaultValue:true},iconColor:{type:ControlType.Color,title:\"Icon color\",defaultValue:\"#ffffff\"},// Suppression\nsuppressOnInitialLoad:{type:ControlType.Boolean,title:\"No overlay on first load\",defaultValue:true},suppressOnProgrammaticChange:{type:ControlType.Boolean,title:\"No overlay on auto changes\",defaultValue:true},// Geo\nenableGeoAuto:{type:ControlType.Boolean,title:\"Auto currency by IP\",defaultValue:true},geoTimeoutMs:{type:ControlType.Number,title:\"Geo timeout (ms)\",defaultValue:1500,min:300,max:5e3,step:50},geoEndpointsCsv:{type:ControlType.String,title:\"Geo endpoints\",defaultValue:\"https://ipapi.co/json/, https://ipwho.is/\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"CurrencyMenu\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./CurrencyMenu.map"],"mappings":"kOACqS,SAAS,GAAc,CAAC,GAAG,CAAC,IAAM,EAAK,EAAO,SAAS,KAAK,aAAa,CAAC,GAAG,EAAK,SAAS,UAAU,EAAE,EAAK,SAAS,OAAO,EAAE,EAAK,SAAS,MAAM,CAAC,MAAM,KAAK,GAAG,EAAK,SAAS,UAAU,EAAE,EAAK,SAAS,OAAO,EAAE,EAAK,SAAS,MAAM,CAAC,MAAM,UAAW,EAAE,OAAO,KAAM,SAAS,GAAiB,CAAC,GAAG,OAAO,SAAW,IAAY,MAAM,CAAC,IAAI,GAAG,KAAK,GAAG,CAAC,IAAM,EAAG,SAAS,gBAAoB,GAAK,EAAG,aAAa,MAAM,EAAE,IAAI,aAAa,CAAK,GAAM,EAAG,aAAa,OAAO,EAAE,IAAI,aAAa,CAAC,GAAG,CAAC,IAAI,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