{"version":3,"file":"InputCountrySelect.C3627OEd.mjs","names":["useState","useRef","useId","React.useMemo","useCallback","useMemo","__esmMin","le","pe","init_npm_react_18_3_1","window","_e","de","init_jsx_runtime","ne","J","c","p","ie","ce","init_ssg_sandbox_shims","motion","AnimatePresence","init_framer_motion_DhsWWWsN","addPropertyControls","init_framer_Cb9Z_4vX","ControlType","useIsStaticRenderer","init_propertyControlCopy","init_brandControl","init_domProps","FRAMER_ON_CHANGE_DESCRIPTION","themePropertyControls","FRAMER_THEME_DESCRIPTION_FORM_WITH_CHILDREN","brandPropertyControl","domIdFromUseId","FRAMER_BREAKPOINT_DESCRIPTION","useAccessibilityStrings","init_useAccessibilityStrings","getSpacing","init_colors","useReducedMotion","getRadius","getTypographyStyles","getControlSize","getFramerTransition","getFocusOutlineWidth","getZIndex","getTransition","getColorValue","getBrightnessFilter","getResponsiveSpacing","init_themeControl","resolveThemeProp","init_useInteractiveStates","normalizeElementId","getBrandFocusColor","init_breakpointControl","resolveScopedElementId","useInteractiveStates","init_resolveElementId","breakpointPropertyControl","init_themeHelpers","init_icons","getIcon","resolveInputAriaLabel","useWrappingLabelTextIds","init_useAssociatedLabel","init_inputAccessibleName","init_styles","insetByInputBorder","getDropdownOptionStyles","getInputPlaceholderColor","init_inputStyles","getInputBorder","getInputGlassBackdropStyles","INPUT_RADIUS","getInputTypography","getInputBackgroundColor","INPUT_HEIGHT","getDropdownContainerStyles","init_motionVariants","createDropdownVariants","withoutTrailingEllipsis","init_inputFieldStrings","init_inputErrorRow","InputErrorRow","stopEnterFromSubmittingForm","init_formKeyboard","useClickOutside","init_useClickOutside","useHiddenSelectConstraint","init_useHiddenSelectConstraint","getBunqMarketCountryFromPathname","getFlag","useLocationChange","init_worldCountries","init_flags","getFlagCodeForCountry","init_countryListOrder","getWorldCountryByName","orderCountriesByLocale","WORLD_COUNTRIES","init_useLocationChange","coerceIsValid","value","InputCountrySelect","rest","props","InputCountrySelectInternal","isValid","init_InputCountrySelect","theme","inputIdProp","reducedMotion","isStaticRenderer","skipMotion","selectedValue","setSelectedValue","isOpen","setIsOpen","searchQuery","setSearchQuery","focusedOptionIndex","setFocusedOptionIndex","localeCountry","setLocaleCountry","baseHandlers","disabled","containerRef","comboboxRef","accessibilityStrings","wrappingLabelTextIds","comboboxLabelledBy","labelId","resolvedAriaLabel","searchInputRef","prevValueRef","userPickedCountryRef","appliedLocaleDefaultRef","suppressClearRef","suppressClearTimeoutRef","componentId","rootId","id","selectId","errorMessageId","validation","syncLocaleFromPath","clearNativeError","locale","onChange","orderedCountries","country","filteredCountries","trimmed","currentIndex","raf","textColor","focusBorderColor","brand","errorBorderColor","toggleDropdown","prev","handleOptionSelect","countryName","handleOptionMouseDown","event","handleClear","handleTriggerKeyDown","handleSearchKeyDown","containerStyle","selectorStyle","typography","breakpoint","padding","backgroundColor","outline","isFocused","isHovered","isPressed","textStyle","color","chevronStyle","clearButtonStyle","iconBox","hitInflate","searchInputStyle","setContainerRef","node","ref","hidden","selectedCountry","displayText","placeholder","displayFlagCode","dropdownStyles","optionsListStyle","getOptionStyles","isHoveredOption","flagIconStyle","transition","dropdownVariants","activeDescendantId","listboxId","style","required","isSelected","isFocusedOption","index","optionFlagCode"],"sources":["https:/framerusercontent.com/modules/TY1qruS8RIpA3CdqNOc6/AsM69ubqY0HUx0bDpe5i/InputCountrySelect.js"],"sourcesContent":["/**\n * @framerIntrinsicWidth 320\n * @framerIntrinsicHeight 48\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight auto\n */import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import*as React from\"react\";import{forwardRef,useRef,useState,useEffect,useLayoutEffect,useMemo,useCallback,useId}from\"react\";import{motion,AnimatePresence}from\"framer-motion\";import{addPropertyControls,ControlType,useIsStaticRenderer}from\"framer\";import{FRAMER_BREAKPOINT_DESCRIPTION,FRAMER_ON_CHANGE_DESCRIPTION,FRAMER_THEME_DESCRIPTION_FORM_WITH_CHILDREN}from\"https://framerusercontent.com/modules/1JKQWaDWME3nCssGCmhT/Mh4RG2GTTAjreAKh6MKa/propertyControlCopy.js\";import{useReducedMotion,getColorValue,getTypographyStyles,getResponsiveSpacing,getFocusOutlineWidth,getRadius,getSpacing,getBrightnessFilter,getTransition,getControlSize,getZIndex,getFramerTransition}from\"https://framerusercontent.com/modules/ARogoavfmvsXA8wBrKDi/QeocF6sc4VBlv0ObVBxr/colors.js\";import{domIdFromUseId}from\"https://framerusercontent.com/modules/gOfM12EiuVSW9EQq7PEG/CqU29SKkbsJzjO1dXOmw/domProps.js\";import{normalizeElementId,resolveScopedElementId}from\"https://framerusercontent.com/modules/2WjV9YYlbtN9u8ds1Tez/ldgGdkHvk7vZtvhBB3a8/resolveElementId.js\";import{useInteractiveStates}from\"https://framerusercontent.com/modules/N82LIhBcm5OrSs1iGSYb/GEkaN0wbT4emZ6A24oDx/useInteractiveStates.js\";import{useClickOutside}from\"https://framerusercontent.com/modules/afk0LYj2wZTa4EKtLDaS/pDBzu7xzI5jpPzyBJoKs/useClickOutside.js\";import{useHiddenSelectConstraint}from\"https://framerusercontent.com/modules/2iWEKlDuPDd4u46uIXwc/3g1LXkE07SORUoUeooz4/useHiddenSelectConstraint.js\";import{useLocationChange}from\"https://framerusercontent.com/modules/84LAZQGJE87WJY8sWiZV/pzIhRzDkTsxaCYlwUQHD/useLocationChange.js\";import{useAccessibilityStrings}from\"https://framerusercontent.com/modules/jwYFmLz2LLX4XNa4VQs4/e9ex8fkxEXCrNkzMSGEU/useAccessibilityStrings.js\";import{useWrappingLabelTextIds}from\"https://framerusercontent.com/modules/1asnqUYnYZyfcahMmMKl/gjksyiMGFqGaO8tuMeQD/useAssociatedLabel.js\";import{resolveInputAriaLabel}from\"https://framerusercontent.com/modules/Uq7zAQw0Bb12EnXXQ7Ji/n3Fxa5XGXjxuM5oas8gJ/inputAccessibleName.js\";import{withoutTrailingEllipsis}from\"https://framerusercontent.com/modules/hVjMLXab9NuRHHyftMp6/78VjwEUlVYEzJtKoBFPw/inputFieldStrings.js\";import{getInputBackgroundColor,getInputBorder,getInputGlassBackdropStyles,getInputPlaceholderColor,getInputTypography,INPUT_HEIGHT,INPUT_RADIUS,insetByInputBorder}from\"https://framerusercontent.com/modules/pCYXWfsxQCasHkOPK88G/DiQ14koGGhZR7FemPHX8/inputStyles.js\";import{InputErrorRow}from\"https://framerusercontent.com/modules/T9TFt8Cte0HRsjj9a0kl/iZ071YwNVYhMHhw0iRtx/inputErrorRow.js\";import{getDropdownContainerStyles,getDropdownOptionStyles}from\"https://framerusercontent.com/modules/pw6XJ4WCkjvG566xdKB0/01gWAT79vRVmGKHVBFmt/styles.js\";import{getIcon}from\"https://framerusercontent.com/modules/2F1LcP0kVyaKk9M6HpYD/zIaeximGqbpiu32ucXKh/icons.js\";import{createDropdownVariants}from\"https://framerusercontent.com/modules/HhOYCW60TQpXrLs5SfGV/FBAhWcBIwAOV9z9TNft0/motionVariants.js\";import{getFlag}from\"https://framerusercontent.com/modules/qQrtAXWBNcYvlQInHZzk/e9K9u0tP0tUplFjtfCl8/flags.js\";import{WORLD_COUNTRIES,getFlagCodeForCountry,getWorldCountryByName}from\"https://framerusercontent.com/modules/LLFGj3bFgW5fgrdpGIBs/AkYXPIFh5tGtdFKvH63M/worldCountries.js\";import{getBunqMarketCountryFromPathname,orderCountriesByLocale}from\"https://framerusercontent.com/modules/k71cCzJ2N01XVsxj13qZ/8m0HEPsZX7NnewQtDwHD/countryListOrder.js\";import{getBrandFocusColor}from\"https://framerusercontent.com/modules/NIjGwdtnfe3Mdv4bvZde/tvXCv9qHdi1vAmRkehKf/themeHelpers.js\";import{breakpointPropertyControl}from\"https://framerusercontent.com/modules/k6nLNc7ZVt0b7stBm46D/zjQVNiZCoHcEnOMj3fwd/breakpointControl.js\";import{brandPropertyControl,themePropertyControls}from\"https://framerusercontent.com/modules/jVo5WBhba9MIIkO0W1im/mGsjnzSZwvkCNCqB1iXS/brandControl.js\";import{resolveThemeProp}from\"https://framerusercontent.com/modules/Rg5q22EU9aWqUJDzBew3/p8bLtj4qTxgqEosNmSxc/themeControl.js\";import{stopEnterFromSubmittingForm}from\"https://framerusercontent.com/modules/IFmqRQEfhpHhojeocSMr/M1pcYz1attTYBzz8WFHC/formKeyboard.js\";const InputCountrySelectInternal=/*#__PURE__*/forwardRef(function InputCountrySelectInternal(props,ref){const theme=resolveThemeProp(props);const{breakpoint=\"desktop\",brand=\"bunq\",name=\"country\",value=\"\",placeholder=\"Select country...\",disabled=false,required=false,hidden=false,isValid,errorMessage=\"\",showError=true,onChange,ariaLabel=\"\",labelId,ariaDescribedBy,inputId:inputIdProp,id,style}=props;const reducedMotion=useReducedMotion();const isStaticRenderer=useIsStaticRenderer();const skipMotion=reducedMotion||isStaticRenderer;const[selectedValue,setSelectedValue]=useState(()=>typeof value===\"string\"&&value.trim()!==\"\"?value:\"\");const[isOpen,setIsOpen]=useState(false);const[searchQuery,setSearchQuery]=useState(\"\");const[focusedOptionIndex,setFocusedOptionIndex]=useState(-1);const[localeCountry,setLocaleCountry]=useState(null);const{isHovered,isFocused,isPressed,handlers:baseHandlers}=useInteractiveStates(disabled);const containerRef=useRef(null);const comboboxRef=useRef(null);const accessibilityStrings=useAccessibilityStrings();const wrappingLabelTextIds=useWrappingLabelTextIds(comboboxRef);const comboboxLabelledBy=labelId||wrappingLabelTextIds;const resolvedAriaLabel=resolveInputAriaLabel({labelId:comboboxLabelledBy,ariaLabel});const searchInputRef=useRef(null);const prevValueRef=useRef(value);const userPickedCountryRef=useRef(Boolean(value));const appliedLocaleDefaultRef=useRef(false);const suppressClearRef=useRef(false);const suppressClearTimeoutRef=useRef(null);const componentId=useId();const rootId=normalizeElementId(id)??domIdFromUseId(componentId,\"input-country-select\");const selectId=resolveScopedElementId(inputIdProp,\"input-country-select-control\",rootId,\"control\");const errorMessageId=React.useMemo(()=>`${selectId}-error`,[selectId]);const validation=useHiddenSelectConstraint({isValid,errorMessage,showError,focusRef:comboboxRef,errorMessageId,ariaDescribedBy});const{clearNativeError}=validation;useClickOutside(containerRef,()=>setIsOpen(false),isOpen);const syncLocaleFromPath=useCallback(()=>{if(typeof window===\"undefined\"){return;}setLocaleCountry(getBunqMarketCountryFromPathname(window.location.pathname));},[]);useEffect(syncLocaleFromPath,[syncLocaleFromPath]);useLocationChange(syncLocaleFromPath);useEffect(()=>{if(prevValueRef.current===value){return;}prevValueRef.current=value;clearNativeError();if(value){userPickedCountryRef.current=true;setSelectedValue(value);return;}if(userPickedCountryRef.current){setSelectedValue(\"\");}},[value,clearNativeError]);useLayoutEffect(()=>{if(userPickedCountryRef.current||appliedLocaleDefaultRef.current){return;}if(typeof value===\"string\"&&value.trim()!==\"\"){return;}const locale=localeCountry??(typeof window!==\"undefined\"?getBunqMarketCountryFromPathname(window.location.pathname):null);if(!locale){return;}appliedLocaleDefaultRef.current=true;setLocaleCountry(locale);setSelectedValue(locale.name);prevValueRef.current=locale.name;onChange?.(locale.name);},[localeCountry,value,onChange]);const orderedCountries=useMemo(()=>orderCountriesByLocale(WORLD_COUNTRIES,{getCode:country=>country.code,localeCountry}),[localeCountry]);const filteredCountries=useMemo(()=>{const trimmed=searchQuery.trim().toLowerCase();if(!trimmed){return orderedCountries;}return orderedCountries.filter(country=>country.name.toLowerCase().includes(trimmed)||country.code.toLowerCase().includes(trimmed));},[searchQuery,orderedCountries]);useEffect(()=>{if(isOpen){const currentIndex=orderedCountries.findIndex(c=>c.name===selectedValue);setFocusedOptionIndex(currentIndex>=0?currentIndex:orderedCountries.length>0?0:-1);const raf=typeof window!==\"undefined\"?window.requestAnimationFrame(()=>searchInputRef.current?.focus()):undefined;return()=>{if(raf!==undefined&&typeof window!==\"undefined\")window.cancelAnimationFrame(raf);};}setFocusedOptionIndex(-1);setSearchQuery(\"\");return undefined;},[isOpen,selectedValue,orderedCountries]);const textColor=disabled?getColorValue(\"/Text/text-disabled\"):theme===\"inverted\"?getColorValue(\"/Text/text-inverted-primary\"):getColorValue(\"/Text/text-primary\");const focusBorderColor=getBrandFocusColor(brand,theme);const errorBorderColor=getColorValue(\"/Borders/border-error\");const toggleDropdown=useCallback(()=>{if(disabled){return;}setIsOpen(prev=>!prev);},[disabled]);const handleOptionSelect=useCallback(countryName=>{if(disabled){return;}suppressClearRef.current=true;if(suppressClearTimeoutRef.current!==null){clearTimeout(suppressClearTimeoutRef.current);}suppressClearTimeoutRef.current=setTimeout(()=>{suppressClearRef.current=false;suppressClearTimeoutRef.current=null;},300);userPickedCountryRef.current=true;setSelectedValue(countryName);prevValueRef.current=countryName;clearNativeError();if(onChange){onChange(countryName);}setIsOpen(false);},[disabled,onChange,clearNativeError]);const handleOptionMouseDown=useCallback((event,countryName)=>{event.preventDefault();event.stopPropagation();handleOptionSelect(countryName);},[handleOptionSelect]);const handleClear=useCallback(e=>{e.stopPropagation();if(disabled||suppressClearRef.current){return;}userPickedCountryRef.current=true;setSelectedValue(\"\");prevValueRef.current=\"\";if(onChange){onChange(\"\");}},[disabled,onChange]);useEffect(()=>{return()=>{if(suppressClearTimeoutRef.current!==null){clearTimeout(suppressClearTimeoutRef.current);}};},[]);const handleTriggerKeyDown=useCallback(e=>{stopEnterFromSubmittingForm(e);if(e.target!==e.currentTarget){return;}if(disabled){return;}if(e.key===\"Escape\"){setIsOpen(false);}else if(e.key===\"Enter\"||e.key===\" \"){if(!isOpen){e.preventDefault();setIsOpen(true);}}else if(e.key===\"ArrowDown\"){e.preventDefault();setIsOpen(true);}},[disabled,isOpen]);const handleSearchKeyDown=useCallback(e=>{stopEnterFromSubmittingForm(e);if(e.key===\"Escape\"){e.preventDefault();setIsOpen(false);comboboxRef.current?.focus();}else if(e.key===\"Enter\"){e.preventDefault();if(focusedOptionIndex>=0){const country=filteredCountries[focusedOptionIndex];if(country){handleOptionSelect(country.name);}}}else if(e.key===\"ArrowDown\"){e.preventDefault();setFocusedOptionIndex(prev=>prev<filteredCountries.length-1?prev+1:0);}else if(e.key===\"ArrowUp\"){e.preventDefault();setFocusedOptionIndex(prev=>prev>0?prev-1:filteredCountries.length-1);}},[focusedOptionIndex,filteredCountries,handleOptionSelect]);const containerStyle=useMemo(()=>({position:\"relative\",width:\"100%\",minWidth:0,maxWidth:\"none\",userSelect:\"none\"}),[]);const selectorStyle=useMemo(()=>{const typography=getInputTypography(breakpoint);const padding=getResponsiveSpacing(16,breakpoint);const backgroundColor=getInputBackgroundColor(theme,brand);let outline=\"none\";if(validation.isInvalid){outline=`${getFocusOutlineWidth()} solid ${errorBorderColor}`;}else if(isFocused){outline=`${getFocusOutlineWidth()} solid ${focusBorderColor}`;}return{padding:`${insetByInputBorder(padding)} ${insetByInputBorder(getResponsiveSpacing(20,breakpoint))}`,minHeight:INPUT_HEIGHT,boxSizing:\"border-box\",borderRadius:INPUT_RADIUS,border:getInputBorder(theme,brand,disabled),outlineOffset:getSpacing(2),cursor:disabled?\"not-allowed\":\"pointer\",position:\"relative\",display:\"flex\",justifyContent:\"space-between\",alignItems:\"center\",gap:getResponsiveSpacing(8,breakpoint),background:backgroundColor,...getInputGlassBackdropStyles(brand),outline,filter:getBrightnessFilter(disabled,isHovered,isPressed),transition:skipMotion?\"none\":`${getTransition(\"filter\",\"quick\")}, ${getTransition(\"outline\",\"quick\")}`,...typography??{}};},[breakpoint,theme,brand,disabled,validation.isInvalid,isFocused,isHovered,isPressed,skipMotion,focusBorderColor,errorBorderColor]);const textStyle=useMemo(()=>{let color;if(disabled){color=getColorValue(\"/Text/text-disabled\");}else if(selectedValue){color=theme===\"inverted\"?getColorValue(\"/Text/text-inverted-primary\"):getColorValue(\"/Text/text-primary\");}else{color=getInputPlaceholderColor(theme,brand);}return{flex:1,minWidth:0,display:\"flex\",alignItems:\"center\",gap:getResponsiveSpacing(8,breakpoint),whiteSpace:\"nowrap\",overflow:\"hidden\",textOverflow:\"ellipsis\",pointerEvents:\"none\",color};},[breakpoint,theme,brand,disabled,selectedValue]);const chevronStyle=useMemo(()=>({display:\"flex\",alignItems:\"center\",flexShrink:0,pointerEvents:\"none\",width:getSpacing(20),height:getSpacing(20),filter:disabled?getBrightnessFilter(true,false,false):\"none\"}),[disabled]);const clearButtonStyle=useMemo(()=>{const iconBox=getSpacing(20);const touchTarget=getControlSize(\"touchTarget\");const hitInflate=(touchTarget-Number.parseInt(iconBox,10))/2;return{display:\"flex\",alignItems:\"center\",justifyContent:\"center\",flexShrink:0,boxSizing:\"content-box\",width:iconBox,height:iconBox,minWidth:iconBox,padding:hitInflate,margin:-hitInflate,background:\"transparent\",border:\"none\",cursor:disabled?\"not-allowed\":\"pointer\",position:\"relative\",zIndex:getZIndex(\"raised\")};},[disabled]);const searchInputStyle=useMemo(()=>{const typography=getTypographyStyles(\"/Body MD/Light\",breakpoint);return{width:\"100%\",boxSizing:\"border-box\",padding:getResponsiveSpacing(10,breakpoint),borderRadius:getRadius(\"radius-md\"),border:\"none\",outline:\"none\",background:getColorValue(theme===\"inverted\"?\"/Backgrounds/bg-inverted-quaternary\":\"/Backgrounds/bg-quaternary\"),color:getColorValue(theme===\"inverted\"?\"/Text/text-inverted-primary\":\"/Text/text-primary\"),marginBottom:getResponsiveSpacing(8,breakpoint),...typography??{}};},[breakpoint,theme]);const setContainerRef=useCallback(node=>{containerRef.current=node;if(typeof ref===\"function\"){ref(node);}else if(ref){ref.current=node;}},[ref]);if(hidden){return null;}const selectedCountry=selectedValue?getWorldCountryByName(selectedValue):undefined;const displayText=selectedCountry?.name??placeholder;const displayFlagCode=selectedCountry?getFlagCodeForCountry(selectedCountry.code):undefined;const dropdownStyles={...getDropdownContainerStyles({breakpoint,brand,theme,backgroundColor:theme===\"inverted\"?\"/Backgrounds/bg-inverted-tertiary-glass\":\"/Backgrounds/bg-tertiary-glass\",maxHeight:\"none\"}),padding:getResponsiveSpacing(8,breakpoint),display:\"flex\",flexDirection:\"column\",overflow:\"hidden\"};const optionsListStyle={display:\"flex\",flexDirection:\"column\",overflowY:\"auto\",overscrollBehavior:\"contain\",WebkitOverflowScrolling:\"touch\",maxHeight:getSpacing(280)};const getOptionStyles=(isSelected,isHoveredOption)=>{return{...getDropdownOptionStyles({breakpoint,brand,theme,isSelected,isHovered:isHoveredOption,reducedMotion:skipMotion,selectedTextColor:textColor===getColorValue(\"/Text/text-primary\")?\"/Text/text-primary\":undefined,unselectedTextColor:theme===\"inverted\"?\"/Text/text-inverted-secondary\":\"/Text/text-secondary\"}),display:\"flex\",alignItems:\"center\",gap:getResponsiveSpacing(8,breakpoint),whiteSpace:\"nowrap\"};};const flagIconStyle={display:\"flex\",alignItems:\"center\",flexShrink:0,width:getSpacing(20),height:getSpacing(20),borderRadius:getRadius(\"radius-full\"),overflow:\"hidden\"};const transition=skipMotion?{duration:0}:getFramerTransition(\"quick\");const dropdownVariants=createDropdownVariants(skipMotion);const activeDescendantId=focusedOptionIndex>=0?`country-option-${componentId}-${focusedOptionIndex}`:undefined;const listboxId=`country-listbox-${componentId}`;return /*#__PURE__*/_jsxs(\"div\",{ref:setContainerRef,id:rootId,style:{...containerStyle,...style},children:[/*#__PURE__*/_jsxs(motion.div,{onClick:toggleDropdown,onMouseEnter:baseHandlers.onMouseEnter,onMouseLeave:baseHandlers.onMouseLeave,style:selectorStyle,whileTap:undefined,children:[/*#__PURE__*/_jsxs(\"div\",{ref:comboboxRef,\"data-form-field-input-id\":inputIdProp,onClick:event=>{event.stopPropagation();toggleDropdown();},onKeyDown:handleTriggerKeyDown,onFocus:baseHandlers.onFocus,onBlur:baseHandlers.onBlur,tabIndex:disabled?-1:0,role:\"combobox\",\"aria-expanded\":isOpen,\"aria-haspopup\":\"listbox\",\"aria-controls\":isOpen?listboxId:undefined,\"aria-activedescendant\":activeDescendantId,\"aria-labelledby\":comboboxLabelledBy||undefined,\"aria-label\":resolvedAriaLabel,\"aria-describedby\":validation.ariaDescribedByValue,\"aria-invalid\":validation.isInvalid,\"aria-disabled\":disabled,\"aria-required\":required,style:{...textStyle,outline:\"none\"},children:[displayFlagCode&&/*#__PURE__*/_jsx(\"span\",{style:flagIconStyle,\"aria-hidden\":\"true\",dangerouslySetInnerHTML:{__html:getFlag(displayFlagCode,20)}}),/*#__PURE__*/_jsx(\"span\",{style:{overflow:\"hidden\",textOverflow:\"ellipsis\",whiteSpace:\"nowrap\"},children:displayText})]}),selectedValue&&!disabled&&!isOpen&&/*#__PURE__*/_jsx(\"button\",{type:\"button\",onClick:handleClear,onKeyDown:stopEnterFromSubmittingForm,onMouseDown:event=>{event.stopPropagation();},style:clearButtonStyle,\"aria-label\":accessibilityStrings.clearSelection,dangerouslySetInnerHTML:{__html:getIcon(\"x\",16,textColor,{opticalInset:0})}}),/*#__PURE__*/_jsx(motion.div,{animate:{rotate:isOpen?180:0},transition:transition,style:chevronStyle,dangerouslySetInnerHTML:{__html:getIcon(\"chevron-down\",20,textColor,{opticalInset:0})}})]}),/*#__PURE__*/_jsx(AnimatePresence,{children:isOpen&&/*#__PURE__*/_jsxs(motion.div,{variants:dropdownVariants,initial:\"hidden\",animate:\"visible\",exit:\"exit\",style:dropdownStyles,onWheel:e=>e.stopPropagation(),children:[/*#__PURE__*/_jsx(\"input\",{ref:searchInputRef,type:\"text\",value:searchQuery,onChange:e=>{setSearchQuery(e.target.value);setFocusedOptionIndex(0);},onKeyDown:handleSearchKeyDown,placeholder:accessibilityStrings.searchCountries,style:searchInputStyle,role:\"searchbox\",\"aria-label\":withoutTrailingEllipsis(accessibilityStrings.searchCountries),\"aria-controls\":listboxId,\"aria-activedescendant\":activeDescendantId}),/*#__PURE__*/_jsxs(\"div\",{style:optionsListStyle,role:\"listbox\",id:listboxId,\"aria-label\":accessibilityStrings.countries,children:[filteredCountries.length===0&&/*#__PURE__*/_jsx(\"div\",{style:{padding:getResponsiveSpacing(12,breakpoint),color:getColorValue(theme===\"inverted\"?\"/Text/text-inverted-tertiary\":\"/Text/text-tertiary\"),...getTypographyStyles(\"/Body MD/Light\",breakpoint)},children:accessibilityStrings.noResults}),filteredCountries.map((country,index)=>{const isSelected=country.name===selectedValue;const isFocusedOption=focusedOptionIndex===index;const optionFlagCode=getFlagCodeForCountry(country.code);return /*#__PURE__*/_jsxs(\"div\",{id:`country-option-${componentId}-${index}`,onMouseDown:event=>handleOptionMouseDown(event,country.name),onMouseEnter:()=>setFocusedOptionIndex(index),style:getOptionStyles(isSelected,isFocusedOption),role:\"option\",\"aria-selected\":isSelected,tabIndex:-1,children:[/*#__PURE__*/_jsx(\"span\",{style:flagIconStyle,\"aria-hidden\":\"true\",dangerouslySetInnerHTML:{__html:getFlag(optionFlagCode,20)}}),/*#__PURE__*/_jsx(\"span\",{children:country.name})]},country.code);})]})]},\"country-select-dropdown-panel\")}),/*#__PURE__*/_jsxs(\"select\",{id:selectId,name:name,required:required,disabled:disabled,value:selectedValue,onChange:()=>{},style:{position:\"absolute\",opacity:0,pointerEvents:\"none\",width:0,height:0},tabIndex:-1,\"aria-hidden\":\"true\",onInvalid:validation.handleInvalid,children:[/*#__PURE__*/_jsx(\"option\",{value:\"\",disabled:true,children:placeholder}),WORLD_COUNTRIES.map(country=>/*#__PURE__*/_jsx(\"option\",{value:country.name,children:country.name},country.code))]}),/*#__PURE__*/_jsx(InputErrorRow,{theme:theme,brand:brand,id:errorMessageId,breakpoint:breakpoint,message:validation.errorRowMessage})]});});function coerceIsValid(value){if(value===true||value===\"valid\")return true;if(value===false||value===\"invalid\")return false;return null;}export default function InputCountrySelect(props){const{isValid,...rest}=props;return /*#__PURE__*/_jsx(InputCountrySelectInternal,{...rest,isValid:coerceIsValid(isValid)});}InputCountrySelect.displayName=\"Input Country Select - Atom\";addPropertyControls(InputCountrySelect,{name:{type:ControlType.String,title:\"Name\",defaultValue:\"country\",placeholder:\"Enter field name...\",description:\"Form field name used for form submission.\",preventLocalization:true},value:{type:ControlType.String,title:\"Value\",defaultValue:\"\",placeholder:\"Netherlands\",description:\"Currently selected country (exact country name).\"},placeholder:{type:ControlType.String,title:\"Placeholder\",defaultValue:\"Select country...\",placeholder:\"Enter placeholder text...\",description:\"Placeholder text shown when no country is selected.\"},disabled:{type:ControlType.Boolean,title:\"Disabled\",defaultValue:false,enabledTitle:\"Yes\",disabledTitle:\"No\",description:\"Disable user interaction with the input.\"},required:{type:ControlType.Boolean,title:\"Required\",defaultValue:false,enabledTitle:\"Yes\",disabledTitle:\"No\",description:\"Whether the field is required for form submission.\"},hidden:{type:ControlType.Boolean,title:\"Hidden\",defaultValue:false,enabledTitle:\"Yes\",disabledTitle:\"No\",description:\"Hide the input field from view.\"},isValid:{type:ControlType.Enum,title:\"Validation\",options:[\"unset\",\"valid\",\"invalid\"],optionTitles:[\"Neutral\",\"Valid\",\"Invalid\"],displaySegmentedControl:true,defaultValue:\"unset\",description:\"Preview the externally-controlled validation state. Use 'Invalid' to see the error border + aria-invalid styling that a parent FormField would normally drive at runtime.\"},errorMessage:{type:ControlType.String,title:\"Error Message\",defaultValue:\"\",placeholder:\"Enter error message...\",description:\"Error message to display when validation fails.\",hidden:({isValid})=>isValid!==\"invalid\"&&isValid!==false},showError:{type:ControlType.Boolean,title:\"Show Error\",defaultValue:true,enabledTitle:\"Show\",disabledTitle:\"Hide\",description:\"Display error message row (icon + text) when validation fails.\",hidden:({isValid})=>isValid!==\"invalid\"&&isValid!==false},onChange:{type:ControlType.EventHandler,title:\"On Change\",description:FRAMER_ON_CHANGE_DESCRIPTION},labelId:{type:ControlType.String,title:\"Label ID\",defaultValue:\"\",placeholder:\"Enter label ID...\",description:\"ID of the label element associated with this input (for accessibility).\",preventLocalization:true},ariaDescribedBy:{type:ControlType.String,title:\"ARIA Described By\",defaultValue:\"\",placeholder:\"Enter ARIA described by ID...\",description:\"External aria-describedby ID for error message association (used by parent molecules).\",preventLocalization:true},ariaLabel:{type:ControlType.String,title:\"Accessible name\",defaultValue:\"\",placeholder:\"e.g. Country of residence\",description:\"Only for a field with no visible label. When the field sits in a label or has a Label ID, the visible label names it and this is ignored.\"},id:{type:ControlType.String,title:\"ID\",defaultValue:\"input-country-select\",placeholder:\"e.g. my-element\",description:\"HTML id for the root element (e.g. for analytics or anchor links).\",preventLocalization:true},...breakpointPropertyControl(FRAMER_BREAKPOINT_DESCRIPTION),...themePropertyControls(FRAMER_THEME_DESCRIPTION_FORM_WITH_CHILDREN),...brandPropertyControl()});// recompile: 20261112-restructure\n\nexport const __FramerMetadata__ = {\"exports\":{\"InputCountrySelectProps\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"default\":{\"type\":\"reactComponent\",\"name\":\"InputCountrySelect\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./InputCountrySelect.map"],"mappings":"A,s7CAKq+lB,SAASwG,EAAc,EAAM,CAA+F,OAA3FC,IAAQ,IAAMA,IAAQ,QAAe,GAAQA,IAAQ,IAAOA,IAAQ,UAAiB,GAAa,IAAK,CAAC,SAAwBC,EAAmB,EAAM,CAAC,GAAK,CAAC,UAAQ,GAAGC,GAAMC,EAAM,MAAoB,gBAAKC,EAA2B,CAAC,GAAGF,EAAK,QAAQH,EAAcM,CAAO,CAAC,CAAC,CAAE,C,mLAA3ve,EAAwC,gBAAW,SAAoC,EAAM,EAAI,CAAC,IAAME,EAAM3D,GAAiBuD,CAAK,EAAO,CAAC,aAAW,UAAU,QAAM,OAAO,QAAK,UAAU,QAAM,GAAG,cAAY,oBAAoB,WAAS,GAAM,YAAS,GAAM,UAAO,GAAM,WAAQ,gBAAa,GAAG,aAAU,GAAK,WAAS,aAAU,GAAG,WAAQ,mBAAgB,QAAQK,GAAY,MAAG,UAAOL,EAAYM,GAAczE,GAAiB,EAAQ0E,GAAiBxF,GAAoB,EAAQyF,EAAWF,IAAeC,GAAsB,CAACE,EAAcC,GAAkBtH,MAAa,OAAOyG,GAAQ,UAAUA,EAAM,KAAK,IAAI,GAAGA,EAAM,EAAE,EAAO,CAACc,EAAOC,GAAWxH,EAAS,EAAK,EAAO,CAACyH,EAAYC,GAAgB1H,EAAS,EAAE,EAAO,CAAC2H,EAAmBC,GAAuB5H,EAAS,EAAE,EAAO,CAAC6H,EAAcC,GAAkB9H,EAA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