{"version":3,"file":"PriceDisplay.B1QLrS6b.mjs","names":["getURLLocale","readHtmlDirLang","p","resolveLocaleAndDir","React.useRef","React.useMemo","React.useState","_Fragment","React.useState","p"],"sources":["https:/framerusercontent.com/modules/CiZzJqxmpONKoYXJyM2K/0FF1RCnvxnnYQ716o0vw/CurrencyMenu.js","https:/framerusercontent.com/modules/jgQBjPsi0eE3CAHLfR10/Kr1SEfzRnJQgyJSy0QWq/PriceDisplay.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","import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import*as React from\"react\";import{addPropertyControls,ControlType}from\"framer\";/* ----- Config ----- */const GCC=new Set([\"AED\",\"SAR\",\"OMR\",\"QAR\"]);const SYMBOLS_EN={GBP:\"\\xa3\",USD:\"$\",EUR:\"€\",CAD:\"C$\"};const SYMBOLS_GCC_AR={AED:\"د.إ\",SAR:\"ر.س\",OMR:\"ر.ع\",QAR:\"ر.ق\"};// Manual rates per 1 GBP (edit any time)\nconst MANUAL_RATES={GBP:1,USD:1.36,CAD:1.85,EUR:1.16,OMR:.525,AED:5,SAR:5.1,QAR:4.96};/* --------- Locale detection helpers --------- */function getURLLocale(){try{const h=window.location.href.toLowerCase();if(h.includes(\"lang=ar\")||/\\/ar(\\/|$)/.test(h))return\"ar\";if(h.includes(\"lang=en\")||/\\/en(\\/|$)/.test(h))return\"en\";}catch{}return null;}function readHtmlDirLang(){if(typeof document===\"undefined\")return{dir:\"ltr\",lang:\"en\"};const el=document.documentElement;const dirAttr=(el.getAttribute(\"dir\")||\"\").toLowerCase();const langAttr=(el.getAttribute(\"lang\")||\"\").toLowerCase();const lang=langAttr.startsWith(\"ar\")?\"ar\":\"en\";const dir=dirAttr===\"rtl\"||lang===\"ar\"?\"rtl\":\"ltr\";return{dir,lang};}function resolveLocaleAndDir(prefLocale,prefDir){if(prefLocale===\"ar\")return{lang:\"ar\",dir:prefDir===\"ltr\"?\"ltr\":\"rtl\"};if(prefLocale===\"en\")return{lang:\"en\",dir:prefDir===\"rtl\"?\"rtl\":\"ltr\"};const urlLoc=getURLLocale();if(urlLoc)return{lang:urlLoc,dir:urlLoc===\"ar\"?\"rtl\":\"ltr\"};const{dir,lang}=readHtmlDirLang();if(prefDir===\"ltr\")return{lang,dir:\"ltr\"};if(prefDir===\"rtl\")return{lang,dir:\"rtl\"};return{lang,dir};}/* --------- Component --------- */export default function PriceDisplay(p){// selected currency (from CurrencyMenu)\nconst[currency,setCurrency]=React.useState(()=>{if(typeof window===\"undefined\")return p.baseCurrency;return localStorage.getItem(`currency:${p.persistKey}`)||p.baseCurrency;});React.useEffect(()=>{const h=e=>{if(e?.detail?.key===p.persistKey)setCurrency(e.detail.code||p.baseCurrency);};window.addEventListener(\"currency:change\",h);return()=>window.removeEventListener(\"currency:change\",h);},[p.persistKey,p.baseCurrency]);// locale/dir resolution + live watcher\nconst[ld,setLD]=React.useState(()=>resolveLocaleAndDir(p.locale,p.direction));React.useEffect(()=>{const update=()=>setLD(resolveLocaleAndDir(p.locale,p.direction));const mo=new MutationObserver(update);if(typeof document!==\"undefined\"){mo.observe(document.documentElement,{attributes:true,attributeFilter:[\"dir\",\"lang\"]});}window.addEventListener(\"popstate\",update);window.addEventListener(\"hashchange\",update);update();return()=>{mo.disconnect();window.removeEventListener(\"popstate\",update);window.removeEventListener(\"hashchange\",update);};},[p.locale,p.direction]);const isRTL=ld.dir===\"rtl\";const isArabic=ld.lang===\"ar\";// token logic per your rules\nfunction tokenFor(code){const c=code.toUpperCase();if(!p.useSymbol)return c;if(GCC.has(c)){return isArabic?SYMBOLS_GCC_AR[c]||c:c;}return SYMBOLS_EN[c]||c;}// compute numeric amount\nconst base=p.baseCurrency.toUpperCase();const target=(currency||base).toUpperCase();const rate=target===base?1:MANUAL_RATES[target];let computed=typeof rate===\"number\"?p.baseAmount*rate:NaN;// apply markup ONLY when target != base\nif(target!==base&&isFinite(computed)&&p.markupPercent){computed=computed*(1+p.markupPercent/100);}const numberText=isFinite(computed)?new Intl.NumberFormat(undefined,{minimumFractionDigits:p.decimals,maximumFractionDigits:p.decimals}).format(computed):p.errorText||\"Rate unavailable\";// Layout\nconst flexDirection=isRTL?\"row-reverse\":\"row\";const uiDir=p.direction!==\"auto\"?p.direction:isRTL?\"rtl\":\"ltr\";const justifyContent=p.align===\"center\"?\"center\":p.align===\"end\"?\"flex-end\":\"flex-start\";const iconSize=Math.max(6,p.valueSize*(p.iconScale||.6));const iconTranslateY=p.iconSuperscript?`${-Math.abs(p.iconYOffsetPct)}%`:\"0%\";return /*#__PURE__*/_jsxs(\"div\",{style:{position:\"relative\",display:\"flex\",justifyContent,fontFamily:p.valueFont||\"Zain\",lineHeight:p.valueLineHeight,direction:uiDir},children:[/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",alignItems:\"baseline\",gap:p.gapPx,flexDirection,whiteSpace:\"nowrap\"},children:[/*#__PURE__*/_jsx(\"span\",{style:{color:p.valueColor,fontSize:iconSize,fontWeight:p.valueWeight,letterSpacing:p.valueLetter,opacity:.95,lineHeight:1,transform:`translateY(${iconTranslateY})`},children:tokenFor(target)}),/*#__PURE__*/_jsx(\"span\",{style:{color:p.valueColor,fontSize:p.valueSize,fontWeight:p.valueWeight,letterSpacing:p.valueLetter},children:numberText})]}),p.strike&&/*#__PURE__*/_jsx(\"i\",{\"aria-hidden\":true,style:{position:\"absolute\",left:0,right:0,top:`${p.strikeOffsetPct}%`,height:p.strikeThickness,opacity:p.strikeOpacity,borderRadius:p.strikeThickness/2,background:p.strikeDashed?`repeating-linear-gradient(90deg, ${p.valueColor}, ${p.valueColor} ${p.strikeDashLength}px, transparent ${p.strikeDashLength}px, transparent ${p.strikeDashLength+p.strikeDashGap}px)`:p.valueColor,transform:\"translateY(-50%)\",pointerEvents:\"none\"}})]});}/* ----- Controls ----- */addPropertyControls(PriceDisplay,{baseCurrency:{type:ControlType.String,title:\"Base\",defaultValue:\"GBP\"},baseAmount:{type:ControlType.Number,title:\"Amount\",defaultValue:0,min:0,step:.01},decimals:{type:ControlType.Number,title:\"Decimals\",defaultValue:2,min:0,max:6},useSymbol:{type:ControlType.Boolean,title:\"Use token\",defaultValue:true},persistKey:{type:ControlType.String,title:\"Persist key\",defaultValue:\"sf-currency\"},locale:{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\"},align:{type:ControlType.Enum,title:\"Align\",options:[\"start\",\"center\",\"end\"],defaultValue:\"center\"},valueColor:{type:ControlType.Color,title:\"Color\",defaultValue:\"#ffffff\"},valueSize:{type:ControlType.Number,title:\"Size\",defaultValue:28,min:6,max:200},valueWeight:{type:ControlType.Number,title:\"Weight\",defaultValue:600,min:100,max:900,step:50},valueLetter:{type:ControlType.Number,title:\"Letter\",defaultValue:0,min:-2,max:4,step:.1},valueFont:{type:ControlType.String,title:\"Font\",defaultValue:\"Zain\"},valueLineHeight:{type:ControlType.Number,title:\"Line\",defaultValue:1.2,min:.8,max:2,step:.05},iconScale:{type:ControlType.Number,title:\"Icon scale\",defaultValue:.6,min:.3,max:1,step:.01},iconSuperscript:{type:ControlType.Boolean,title:\"Icon superscript\",defaultValue:true},iconYOffsetPct:{type:ControlType.Number,title:\"Icon Y offset %\",defaultValue:18,min:-60,max:60,step:1},strike:{type:ControlType.Boolean,title:\"Strike\",defaultValue:false},strikeThickness:{type:ControlType.Number,title:\"Strike px\",defaultValue:6,min:1,max:24},strikeOffsetPct:{type:ControlType.Number,title:\"Strike offset %\",defaultValue:50,min:0,max:100},strikeOpacity:{type:ControlType.Number,title:\"Strike opacity\",defaultValue:1,min:0,max:1,step:.05},strikeDashed:{type:ControlType.Boolean,title:\"Dashed\",defaultValue:false},strikeDashLength:{type:ControlType.Number,title:\"Dash length\",defaultValue:10,min:2,max:40},strikeDashGap:{type:ControlType.Number,title:\"Dash gap\",defaultValue:8,min:2,max:40},// NEW: spacing + markup\ngapPx:{type:ControlType.Number,title:\"Gap px\",defaultValue:1,min:0,max:20,step:1},markupPercent:{type:ControlType.Number,title:\"Markup % (non-GBP)\",defaultValue:3.25,min:0,max:100,step:.01},errorText:{type:ControlType.String,title:\"Error text\",defaultValue:\"Rate unavailable\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"PriceDisplay\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./PriceDisplay.map"],"mappings":"+VACqS,SAASA,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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