{"version":3,"file":"CollectionDropdown.BnFa5e3u.mjs","names":["useRef","useMemo","_Fragment","_Fragment","useState","useRef","useId","useReducedMotion","useCallback","useMemo","__esmMin","pe","init_npm_react_18_3_1","window","_e","de","l","ne","p","c","J","init_jsx_runtime","ie","ce","init_ssg_sandbox_shims","motion","AnimatePresence","init_framer_motion_DbYmcygs","addPropertyControls","ControlType","useIsStaticRenderer","useLocaleInfo","RenderTarget","init_framer_DPhDUVVB","init_propertyControlCopy","getCardRadius","isFramerStaticMotionContext","init_controlTextStyles","PRESERVE_CONTROL_NEWLINES","insetByInputBorder","getFocusOutlineWidth","init_domProps","getDropdownOptionStyles","getRadius","getFramerTransition","pickSafeDivProps","getBrightnessFilter","kernHeadingPlainText","init_resolveElementId","getInputBorder","getColorValue","resolveCollectionElementId","init_layoutStyles","FRAMER_THEME_DESCRIPTION_SURFACE_WITH_CHILDREN","init_framerStaticMotionContext","init_linkHelpers","init_inputStyles","getIcon","useSmartLinkProps","getBrandFocusColor","init_styles","getResponsiveSpacing","getCardThemeColors","applyCardSurfaceStyle","resolveThemeProp","getTransition","init_motionVariants","useInteractiveStates","LiquidGlassSurface","Tokens","createDropdownVariants","init_useAccessibilityStrings","CardSurfaceOverlay","isLightThemeSurface","getGap","getTypographyStyles","themePropertyControls","breakpointPropertyControl","useReducedMotion$1","brandPropertyControl","resolveBrand","useAccessibilityStrings","getDropdownContainerStyles","init_icons","init_themeHelpers","init_uICf1kf8tJ2f9iET6Ctk","init_brandControl","init_themeControl","getThemeColors","getSpacing","useReducedMotion","FRAMER_BREAKPOINT_DESCRIPTION","init_breakpointControl","init_colors","FRAMER_THEME_DESCRIPTION_FORM_WITH_CHILDREN","getCardContentLayerStyle","init_LiquidGlassSurface","VISUALLY_HIDDEN_STYLE","init_useInteractiveStates","useEffectiveBreakpoint","init_cardSurface","getCmsCollectionCardElements","init_cmsCollectionLayout","useClickOutside","init_useClickOutside","CardJobListItem","ref","CardJobListItemInternal","props","META_ICON_SIZE","init_CardJobListItem","theme","breakpointProp","rest","safeDomProps","strings","smartLink","jobLink","onJobClick","linkUrl","isInteractive","rootId","id","title","breakpoint","reducedMotion","isTricount","brand","cardColors","focusOutlineColor","borderRadius","contentLayerStyle","trimmedTitle","trimmedLocation","location","trimmedDepartment","department","trimmedCountry","country","showLocationMeta","showLocation","showCountryMeta","showCountry","hasMetaRow","usesDarkCardSurface","hoverFilter","isHovered","isPressed","locationIcon","departmentIcon","countryIcon","cardStyles","isFocused","style","titleStyles","metaRowStyles","metaItemStyles","metaTextStyles","locationItemStyles","opensInNewTab","cardBody","interactionHandlers","handlers","COLLECTION_ID","init_collectionId","getScopeStore","getCollectionScopeId","source","registerCollectionItems","scopeId","store","items","unregisterCollectionScope","getRegisteredCollectionItems","findCollectionRoot","collection","getCollectionItems","scopedItems","children","COLLECTION_SCOPE_ATTRIBUTE","init_collectionRegistry","itemPassesCollectionFilters","item","name","attribute","applyCappedCollectionItemVisibility","cappedItems","maxVisibleItems","shownCount","isVisible","nextDisplay","CollectionEmptyResults","init_collectionEmptyResults","containerStyles","textStyles","textColor","isEmpty","text","asTransition","value","init_motion","toIntlLocale","locale","FALLBACK_LOCALE","formatMonthNames","formatter","MONTH_COUNT","MONTH_NAME_YEAR","index","getMonthNames","month","normalizeMonthLabel","getCalendarMonthIndex","label","numeric","nameLists","names","compareDescending","b","a","compareCalendar","indexA","indexB","sortCollectionOptions","sorted","values","order","init_collectionOptionOrder","getAllCollectionItem","getLayerValues","splitValues","textContent","resolveDropdownMaxWidth","sizeToLabel","applyFilterAttribute","uniqueId","matches","CollectionDropdown","CollectionDropdownInternal","LEGACY_DEFAULT_ARIA_LABEL","init_CollectionDropdown","ariaLabelProp","controlledOptions","controlledValue","isControlled","resolvedBrand","lightSurface","isOpen","setIsOpen","collectedOptions","setOptions","localSelectedOption","setSelectedOption","options","selectedOption","focusedOptionIndex","setFocusedOptionIndex","containerRef","componentId","disableLivePolling","isStaticRenderer","skipMotion","activeLocaleCode","activeLocale","baseHandlers","disabled","fetchOptions","allItem","optionValues","child","layerName","layer","documentLocale","optionOrder","applyFilters","textLayers","allValues","scheduledFrame","refresh","scheduleRefresh","observer","fallbackInterval","rootFrame","retryStartedAt","attachObserver","collectionRoot","toggleDropdown","handleOptionClick","newOption","option","allOptionLabel","onValueChange","handleKeyDown","allOptionsArray","prev","isActive","themeColors","focusBorderColor","selectorTextColor","backgroundColorPath","getDisplayTitle","showAllLabelWhenEmpty","placeholderLabel","containerStyle","surfaceRadiusPx","selectorStyle","selectorTextStyle","chevronStyle","dropdownStyles","getOptionStyles","isHoveredOption","transition","dropdownVariants","activeDescendantId","listboxId","trimmedAriaLabel","authorAriaLabel","visibleLabel","resolvedAriaLabel","selectorTextId","setContainerRef","node","optionIndex","isSelected"],"sources":["https:/framerusercontent.com/modules/TMgFQbqyD0T6yOSNNlPC/323ouIKG6AlhCdYJnKt9/CardJobListItem.js","https:/framerusercontent.com/modules/QOX794swbZRp8SJUpO4U/IpVyJUrTXBdKE1r4tbZT/collectionId.js","https:/framerusercontent.com/modules/2WdEqL9F5b36twpOK7zP/cEM3uwN1O2SkLamU7wHu/collectionRegistry.js","https:/framerusercontent.com/modules/A7JB0os9MjBsRQSDMlBu/2q7HWAVHlq9VSqdtvmPR/collectionEmptyResults.js","https:/framerusercontent.com/modules/HWxWEzmg5anhWQ5rjsVC/UFnewI78zNAG5j63tbfU/motion.js","https:/framerusercontent.com/modules/F9KMMbom843Ongk1NaIZ/fZV0IfLWg0tZ6CFVFt3J/collectionOptionOrder.js","https:/framerusercontent.com/modules/N7n2UoaLTSZRwZZ73VOW/oVFE5iaMHcEqu6BvOKhR/CollectionDropdown.js"],"sourcesContent":["/**\n * @framerIntrinsicWidth 768\n * @framerIntrinsicHeight auto\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight auto\n */import{jsx as _jsx,jsxs as _jsxs,Fragment as _Fragment}from\"react/jsx-runtime\";import{forwardRef,useMemo,useRef}from\"react\";import{addPropertyControls,ControlType}from\"framer\";import Tokens,{useEffectiveBreakpoint,useReducedMotion,kernHeadingPlainText}from\"https://framerusercontent.com/modules/Dc1HXnYwhINKthfzKlok/uICf1kf8tJ2f9iET6Ctk/index.js\";import{getGap,getCardRadius,VISUALLY_HIDDEN_STYLE}from\"https://framerusercontent.com/modules/jhVoRKVtDIjcFxrOzGnG/e5Ye5OyYqc11UYD19Gx4/layoutStyles.js\";import{useSmartLinkProps}from\"https://framerusercontent.com/modules/WV2xdJkVS9YtFAEIS7Wc/0GZEfMxZb7GvaOUnKqEu/linkHelpers.js\";import{PRESERVE_CONTROL_NEWLINES}from\"https://framerusercontent.com/modules/UnyAHFRtGdrFAapSmu6N/mzR634VKkkLH64QzIoaR/controlTextStyles.js\";import{pickSafeDivProps}from\"https://framerusercontent.com/modules/IOMKtHy9Gi4e8Uhue21z/l8CeAhcNZh9e0iFWBIY7/domProps.js\";import{applyCardSurfaceStyle,CardSurfaceOverlay,getCardContentLayerStyle}from\"https://framerusercontent.com/modules/pmpLntjLYuHrKndongo9/JZ54bvfVmfr8uHvTycGo/cardSurface.js\";import{resolveCollectionElementId}from\"https://framerusercontent.com/modules/0Bziw2uJLHCGlfgZhQ8Y/nMK6F6dbGt8WyoOEpQc2/resolveElementId.js\";import{getIcon}from\"https://framerusercontent.com/modules/CPhT1lxO5REv13fMuyV5/TqVU9AhDronvuj3jP7Cd/icons.js\";import{useInteractiveStates}from\"https://framerusercontent.com/modules/3RTaB4u83LaFbXfFV8aL/dZG6e1GW9eCszBZ0gda3/useInteractiveStates.js\";import{getBrandFocusColor,getCardThemeColors,resolveBrand}from\"https://framerusercontent.com/modules/SVDdD8T3y43cvX1JiLeg/uVR2BrglaEpGTevcgiqk/themeHelpers.js\";import{brandPropertyControl}from\"https://framerusercontent.com/modules/t6PJyr2hw4Ye6exHEzKh/I7bQHhcZk0slFadQfIE0/brandControl.js\";import{themePropertyControls,resolveThemeProp}from\"https://framerusercontent.com/modules/Wgf0CYl3ixP0wEHCWy5U/vH5A2Z19ZDeyd0mF3fHA/themeControl.js\";import{FRAMER_BREAKPOINT_DESCRIPTION,FRAMER_THEME_DESCRIPTION_SURFACE_WITH_CHILDREN}from\"https://framerusercontent.com/modules/WKxWEPC9OsSLwXL89aRy/f20qqfTrYXa2CRqQP33u/propertyControlCopy.js\";import{useAccessibilityStrings}from\"https://framerusercontent.com/modules/xzfHGrPSBPgeoH3PDpCB/43Jkcdc6STIhL7OMDl2x/useAccessibilityStrings.js\";const META_ICON_SIZE=20;const CardJobListItemInternal=/*#__PURE__*/forwardRef(function CardJobListItemInternal(props,ref){const theme=resolveThemeProp(props);const{breakpoint:breakpointProp=\"desktop\",brand,title=\"Job title\",location=\"Location\",showLocation=true,department=\"Department\",country=\"\",showCountry=true,jobLink,onJobClick,id,style,...rest}=props;const safeDomProps=useMemo(()=>pickSafeDivProps(rest),[rest]);const strings=useAccessibilityStrings();const smartLink=useSmartLinkProps(jobLink??\"\",false,{brand,onClick:onJobClick?()=>{onJobClick();}:undefined});const linkUrl=smartLink.href;const isInteractive=Boolean(linkUrl);const rootId=resolveCollectionElementId(id,\"card-job-list-item\",linkUrl||title);const breakpoint=useEffectiveBreakpoint(breakpointProp);const reducedMotion=useReducedMotion();const{isHovered,isFocused,isPressed,handlers}=useInteractiveStates(!isInteractive,{brand});const isTricount=resolveBrand(brand)===\"tricount\";const cardColors=getCardThemeColors(theme,resolveBrand(brand));const focusOutlineColor=getBrandFocusColor(brand);const borderRadius=getCardRadius(breakpoint,\"default\");const contentLayerStyle=getCardContentLayerStyle(\"liquid-glass\");const trimmedTitle=title.trim();const trimmedLocation=location.trim();const trimmedDepartment=department.trim();const trimmedCountry=country.trim();const showLocationMeta=trimmedLocation.length>0&&showLocation;const showCountryMeta=trimmedCountry.length>0&&showCountry;const hasMetaRow=Boolean(showLocationMeta||trimmedDepartment||showCountryMeta);const usesDarkCardSurface=!isTricount&&theme!==\"inverted\";const hoverFilter=useMemo(()=>{const hoverOrPress=isHovered||isPressed;const active=isInteractive&&hoverOrPress;if(!usesDarkCardSurface){return Tokens.getBrightnessFilter(false,isHovered&&isInteractive,isPressed&&isInteractive);}return active?\"brightness(1.4)\":\"none\";},[usesDarkCardSurface,isInteractive,isHovered,isPressed]);const locationIcon=getIcon(\"marker-pin-location\",META_ICON_SIZE,cardColors.metaColor,{opticalInset:0});const departmentIcon=getIcon(\"briefcase\",META_ICON_SIZE,cardColors.metaColor,{opticalInset:0});const countryIcon=showCountryMeta?getIcon(\"globe\",META_ICON_SIZE,cardColors.metaColor,{opticalInset:0}):\"\";const cardStyles=applyCardSurfaceStyle({position:\"relative\",display:\"flex\",flexDirection:\"column\",gap:getGap(\"xs\",breakpoint),padding:Tokens.getResponsiveSpacing(breakpoint===\"phone\"?16:24,breakpoint),width:\"100%\",boxSizing:\"border-box\",borderRadius,textDecoration:\"none\",color:\"inherit\",cursor:isInteractive?\"pointer\":\"inherit\",outline:isFocused?`${Tokens.getFocusOutlineWidth()} solid ${focusOutlineColor}`:`${Tokens.getFocusOutlineWidth()} solid transparent`,outlineOffset:-2,transition:reducedMotion?\"none\":`${Tokens.getTransition(\"filter\",\"quick\")}, ${Tokens.getTransition(\"outline\",\"quick\")}`,filter:hoverFilter,...style},\"liquid-glass\");const titleStyles={...Tokens.getTypographyStyles(\"/Headline SM/Heavy\",breakpoint),color:cardColors.titleColor,margin:0,overflowWrap:\"break-word\",...PRESERVE_CONTROL_NEWLINES,...contentLayerStyle};const metaRowStyles={display:\"flex\",flexDirection:\"row\",flexWrap:\"wrap\",alignItems:\"center\",columnGap:getGap(\"md\",breakpoint),rowGap:getGap(\"xs\",breakpoint),...contentLayerStyle};const metaItemStyles={display:\"flex\",flexDirection:\"row\",alignItems:\"center\",gap:getGap(\"xs\",breakpoint),minWidth:0};const metaTextStyles={...Tokens.getTypographyStyles(\"/Body MD/Light\",breakpoint),color:cardColors.metaColor,margin:0,...PRESERVE_CONTROL_NEWLINES};const locationItemStyles=breakpoint===\"phone\"?{...metaItemStyles,flexBasis:\"100%\"}:metaItemStyles;const opensInNewTab=isInteractive&&smartLink.target===\"_blank\";const cardBody=/*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(CardSurfaceOverlay,{surface:\"liquid-glass\",radius:borderRadius,theme:theme,brand:brand}),trimmedTitle?/*#__PURE__*/_jsx(\"h3\",{\"data-framer-name\":\"Title\",style:titleStyles,children:kernHeadingPlainText(trimmedTitle)}):null,hasMetaRow&&/*#__PURE__*/_jsxs(\"div\",{style:metaRowStyles,role:\"list\",children:[showLocationMeta?/*#__PURE__*/_jsxs(\"div\",{style:locationItemStyles,role:\"listitem\",children:[/*#__PURE__*/_jsx(\"span\",{\"aria-hidden\":\"true\",style:{display:\"flex\",flexShrink:0},dangerouslySetInnerHTML:{__html:locationIcon}}),/*#__PURE__*/_jsx(\"span\",{\"data-framer-name\":\"Location\",style:metaTextStyles,children:trimmedLocation})]}):null,trimmedDepartment?/*#__PURE__*/_jsxs(\"div\",{style:metaItemStyles,role:\"listitem\",children:[/*#__PURE__*/_jsx(\"span\",{\"aria-hidden\":\"true\",style:{display:\"flex\",flexShrink:0},dangerouslySetInnerHTML:{__html:departmentIcon}}),/*#__PURE__*/_jsx(\"span\",{\"data-framer-name\":\"Department\",style:metaTextStyles,children:trimmedDepartment})]}):null,showCountryMeta?/*#__PURE__*/_jsxs(\"div\",{style:metaItemStyles,role:\"listitem\",children:[/*#__PURE__*/_jsx(\"span\",{\"aria-hidden\":\"true\",style:{display:\"flex\",flexShrink:0},dangerouslySetInnerHTML:{__html:countryIcon}}),/*#__PURE__*/_jsx(\"span\",{\"data-framer-name\":\"Country\",style:metaTextStyles,children:trimmedCountry})]}):null]}),trimmedLocation&&!showLocation?/*#__PURE__*/_jsx(\"span\",{\"data-framer-name\":\"Location\",hidden:true,children:trimmedLocation}):null,trimmedCountry&&!showCountry?/*#__PURE__*/_jsx(\"span\",{\"data-framer-name\":\"Country\",hidden:true,children:trimmedCountry}):null,opensInNewTab?/*#__PURE__*/_jsx(\"span\",{style:VISUALLY_HIDDEN_STYLE,children:strings.newTabSuffix}):null]});const interactionHandlers={onMouseEnter:handlers.onMouseEnter,onMouseLeave:handlers.onMouseLeave,onMouseDown:handlers.onMouseDown,onMouseUp:handlers.onMouseUp,onFocus:handlers.onFocus,onBlur:handlers.onBlur};if(isInteractive){return /*#__PURE__*/_jsx(\"a\",{ref:ref,id:rootId,href:smartLink.href,target:smartLink.target,rel:smartLink.rel,style:{...cardStyles,...smartLink.style},onClick:smartLink.onClick,...interactionHandlers,...safeDomProps,children:cardBody});}return /*#__PURE__*/_jsx(\"article\",{ref:ref,id:rootId,style:cardStyles,...interactionHandlers,...safeDomProps,children:cardBody});});export default function CardJobListItem(props){const ref=useRef(null);return /*#__PURE__*/_jsx(CardJobListItemInternal,{...props,ref:ref});}CardJobListItem.displayName=\"Card Job List Item - Molecule\";addPropertyControls(CardJobListItem,{title:{type:ControlType.String,title:\"Title\",defaultValue:\"Job title\",placeholder:\"Enter job title...\",displayTextArea:true,description:\"Job title. Layer name Title for collection filters.\"},location:{type:ControlType.String,title:\"Location\",defaultValue:\"Location\",placeholder:\"e.g. Amsterdam\",description:\"Job location. Layer name Location for CollectionDropdown filters.\"},showLocation:{type:ControlType.Boolean,title:\"Show Location\",defaultValue:true,enabledTitle:\"Show\",disabledTitle:\"Hide\",description:\"Show the location on the card. Hide keeps it out of sight, but the location filter and search can still use it.\"},department:{type:ControlType.String,title:\"Department\",defaultValue:\"Department\",placeholder:\"e.g. Technology\",description:\"Job department. Layer name Department for CollectionDropdown filters.\"},country:{type:ControlType.String,title:\"Country\",defaultValue:\"\",placeholder:\"e.g. Netherlands\",description:\"Optional job country. Layer name Country for CollectionDropdown filters. Leave empty to hide.\"},showCountry:{type:ControlType.Boolean,title:\"Show Country\",defaultValue:true,enabledTitle:\"Shown\",disabledTitle:\"Filter only\",description:\"Show the country as a meta line, or keep it only for filters.\",hidden:({country})=>!country?.trim()},jobLink:{type:ControlType.Link,title:\"Job Link\",defaultValue:\"\",description:\"Destination URL when the row is clicked.\"},onJobClick:{type:ControlType.EventHandler,title:\"On Job Click\",description:\"Optional analytics handler when the row is clicked.\"},id:{type:ControlType.String,title:\"ID\",defaultValue:\"card-job-list-item\",placeholder:\"e.g. my-element\",description:\"HTML id for the root element (e.g. for analytics or anchor links).\",preventLocalization:true},breakpoint:{type:ControlType.Enum,title:\"Breakpoint\",options:[\"desktop\",\"tablet\",\"phone\"],optionTitles:[\"Desktop\",\"Tablet\",\"Phone\"],displaySegmentedControl:false,defaultValue:\"desktop\",description:FRAMER_BREAKPOINT_DESCRIPTION},...themePropertyControls(FRAMER_THEME_DESCRIPTION_SURFACE_WITH_CHILDREN),...brandPropertyControl()});\nexport const __FramerMetadata__ = {\"exports\":{\"Breakpoint\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"default\":{\"type\":\"reactComponent\",\"name\":\"CardJobListItem\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"CardJobListItemProps\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}","export const COLLECTION_ID=\"3.14px solid transparent\";// recompile: 1792504624476\n\nexport const __FramerMetadata__ = {\"exports\":{\"COLLECTION_ID\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./collectionId.map","import{COLLECTION_ID}from\"https://framerusercontent.com/modules/QOX794swbZRp8SJUpO4U/IpVyJUrTXBdKE1r4tbZT/collectionId.js\";export const COLLECTION_SCOPE_ATTRIBUTE=\"data-bunq-collection-scope\";function getScopeStore(){if(typeof window===\"undefined\"){return undefined;}window.__bunqCollectionScopes=window.__bunqCollectionScopes??{};return window.__bunqCollectionScopes;}export function getCollectionScopeId(source){const scopeElement=source?.closest(`[${COLLECTION_SCOPE_ATTRIBUTE}]`);const scopeId=scopeElement?.getAttribute(COLLECTION_SCOPE_ATTRIBUTE)?.trim();return scopeId||undefined;}export function registerCollectionItems(scopeId,items){if(typeof window===\"undefined\"){return;}if(scopeId){const store=getScopeStore();if(store){store[scopeId]={items};}}window.allCollectionItems=items;}export function unregisterCollectionScope(scopeId){if(!scopeId||typeof window===\"undefined\"||!window.__bunqCollectionScopes){return;}delete window.__bunqCollectionScopes[scopeId];}export function getRegisteredCollectionItems(source){const scopeId=getCollectionScopeId(source);if(!scopeId||typeof window===\"undefined\"){return undefined;}return window.__bunqCollectionScopes?.[scopeId]?.items;}export function findCollectionRoot(source){if(typeof document===\"undefined\"){return null;}const scopeElement=source?.closest(`[${COLLECTION_SCOPE_ATTRIBUTE}]`);const queryRoot=scopeElement??document;const collection=queryRoot.querySelector(`[style*=\"border: ${COLLECTION_ID}\"]`);return collection instanceof HTMLElement?collection:null;}export function getCollectionItems(source){const scopedItems=getRegisteredCollectionItems(source);if(scopedItems){return scopedItems;}const collection=findCollectionRoot(source);const children=collection?Array.from(collection.children):[];if(children.length>0){return children;}if(typeof window===\"undefined\"){return[];}return window.allCollectionItems??[];}// recompile: 1792504624476\n\nexport const __FramerMetadata__ = {\"exports\":{\"getCollectionItems\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"registerCollectionItems\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"getCollectionScopeId\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"COLLECTION_SCOPE_ATTRIBUTE\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"findCollectionRoot\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"unregisterCollectionScope\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"getRegisteredCollectionItems\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./collectionRegistry.map","import{jsx as _jsx,jsxs as _jsxs,Fragment as _Fragment}from\"react/jsx-runtime\";import{getTypographyStyles}from\"https://framerusercontent.com/modules/uKW2eu2RdLqt2ypIK5w3/qGdsN4Zs1l4khag0IMdH/colors.js\";import{getGap}from\"https://framerusercontent.com/modules/jhVoRKVtDIjcFxrOzGnG/e5Ye5OyYqc11UYD19Gx4/layoutStyles.js\";import{PRESERVE_CONTROL_NEWLINES}from\"https://framerusercontent.com/modules/UnyAHFRtGdrFAapSmu6N/mzR634VKkkLH64QzIoaR/controlTextStyles.js\";import{getCmsCollectionCardElements}from\"https://framerusercontent.com/modules/pG9kfjKNf33xZbiF2i5v/yBd5dfIVGKIHj64FYy4e/cmsCollectionLayout.js\";export function itemPassesCollectionFilters(item){const filterAttributes=item.getAttributeNames().filter(name=>name.startsWith(\"data-filter-\"));return filterAttributes.every(attribute=>item.getAttribute(attribute)===\"match\");}export function applyCappedCollectionItemVisibility(items,maxVisibleItems=0){const cappedItems=new Set(maxVisibleItems>0?getCmsCollectionCardElements(items):[]);let shownCount=0;items.forEach(item=>{let isVisible=itemPassesCollectionFilters(item);if(isVisible&&cappedItems.has(item)){shownCount+=1;isVisible=shownCount<=maxVisibleItems;}const nextDisplay=isVisible?\"\":\"none\";if(item.style.display!==nextDisplay){item.style.display=nextDisplay;}});}export const CollectionEmptyResults=function CollectionEmptyResults({breakpoint,text,textColor,isEmpty,children}){const containerStyles={display:\"flex\",flexDirection:\"column\",alignItems:\"center\",gap:getGap(\"md\",breakpoint),width:\"100%\",textAlign:\"center\"};const textStyles={...getTypographyStyles(\"/Body MD/Light\",breakpoint),color:textColor,margin:0,...PRESERVE_CONTROL_NEWLINES};return /*#__PURE__*/_jsx(\"div\",{\"aria-live\":\"polite\",style:isEmpty?containerStyles:undefined,children:isEmpty?/*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(\"p\",{style:textStyles,children:text}),children]}):null});};\nexport const __FramerMetadata__ = {\"exports\":{\"CollectionEmptyResultsProps\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"CollectionEmptyResults\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"itemPassesCollectionFilters\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"applyCappedCollectionItemVisibility\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}","export function asTransition(value){return value;}export function reducedMotionTransition(reduced,transition){if(reduced)return asTransition({duration:0});return asTransition(transition);}// recompile: 1792504624476\n\nexport const __FramerMetadata__ = {\"exports\":{\"reducedMotionTransition\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"asTransition\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./motion.map","export const COLLECTION_OPTION_ORDERS=[\"alphabetical\",\"descending\",\"calendar\"];const FALLBACK_LOCALE=\"en-US\";const MONTH_COUNT=12;const MONTH_NAME_YEAR=2e3;export function toIntlLocale(locale){const normalized=(locale??\"\").trim().replaceAll(\"_\",\"-\");return normalized||FALLBACK_LOCALE;}function formatMonthNames(locale,month){const formatter=new Intl.DateTimeFormat(locale,{month,timeZone:\"UTC\"});return Array.from({length:MONTH_COUNT},(_,index)=>formatter.format(new Date(Date.UTC(MONTH_NAME_YEAR,index,1))));}export function getMonthNames(locale,month=\"long\"){try{return formatMonthNames(toIntlLocale(locale),month);}catch{return formatMonthNames(FALLBACK_LOCALE,month);}}function normalizeMonthLabel(value){return value.trim().replace(/\\.$/u,\"\").toLocaleLowerCase();}export function getCalendarMonthIndex(value,locale){const label=normalizeMonthLabel(value);if(!label)return-1;const numeric=/^\\d{1,2}$/u.test(label)?Number(label):NaN;if(numeric>=1&&numeric<=MONTH_COUNT)return numeric-1;const nameLists=[getMonthNames(locale,\"long\"),getMonthNames(locale,\"short\"),getMonthNames(FALLBACK_LOCALE,\"long\"),getMonthNames(FALLBACK_LOCALE,\"short\")];for(const names of nameLists){const index=names.findIndex(name=>normalizeMonthLabel(name)===label);if(index>=0)return index;}return-1;}function compareDescending(a,b){return b.localeCompare(a,undefined,{numeric:true,sensitivity:\"base\"});}function compareCalendar(locale){return(a,b)=>{const indexA=getCalendarMonthIndex(a,locale);const indexB=getCalendarMonthIndex(b,locale);if(indexA>=0&&indexB>=0)return indexA-indexB;if(indexA>=0)return-1;if(indexB>=0)return 1;return a.localeCompare(b);};}export function sortCollectionOptions(values,order=\"alphabetical\",locale){const sorted=[...values];switch(order){case\"descending\":return sorted.sort(compareDescending);case\"calendar\":return sorted.sort(compareCalendar(locale));case\"alphabetical\":default:return sorted.sort();}}// recompile: 1792504624476\n\nexport const __FramerMetadata__ = {\"exports\":{\"getMonthNames\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"sortCollectionOptions\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"CollectionOptionOrder\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"getCalendarMonthIndex\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"toIntlLocale\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"COLLECTION_OPTION_ORDERS\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./collectionOptionOrder.map","/**\n * @framerIntrinsicWidth 220\n * @framerIntrinsicHeight 48\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight auto\n */import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{forwardRef,useRef,useState,useEffect,useCallback,useId,useMemo}from\"react\";import{motion,AnimatePresence}from\"framer-motion\";import{addPropertyControls,ControlType,RenderTarget,useIsStaticRenderer,useLocaleInfo}from\"framer\";import{FRAMER_BREAKPOINT_DESCRIPTION,FRAMER_THEME_DESCRIPTION_FORM_WITH_CHILDREN}from\"https://framerusercontent.com/modules/WKxWEPC9OsSLwXL89aRy/f20qqfTrYXa2CRqQP33u/propertyControlCopy.js\";import{useReducedMotion,getColorValue,getSpacing,getRadius,getResponsiveSpacing,getTransition,getFocusOutlineWidth,getBrightnessFilter,getTypographyStyles,getFramerTransition}from\"https://framerusercontent.com/modules/uKW2eu2RdLqt2ypIK5w3/qGdsN4Zs1l4khag0IMdH/colors.js\";import{useInteractiveStates}from\"https://framerusercontent.com/modules/3RTaB4u83LaFbXfFV8aL/dZG6e1GW9eCszBZ0gda3/useInteractiveStates.js\";import{useClickOutside}from\"https://framerusercontent.com/modules/7Uv4PYZ9r6xhLHcDXbZj/ThDZ2mhdPZx4iluFLA5Z/useClickOutside.js\";import{getDropdownContainerStyles,getDropdownOptionStyles}from\"https://framerusercontent.com/modules/MhMowljVBk6BkJM30lit/x3S1h5WfE6WUA8zIjbEY/styles.js\";import{getIcon}from\"https://framerusercontent.com/modules/CPhT1lxO5REv13fMuyV5/TqVU9AhDronvuj3jP7Cd/icons.js\";import{asTransition}from\"https://framerusercontent.com/modules/HWxWEzmg5anhWQ5rjsVC/UFnewI78zNAG5j63tbfU/motion.js\";import{createDropdownVariants}from\"https://framerusercontent.com/modules/wonsWPnAmPbjyrEuEESB/p8wP33Gvo0tKPljeBsTJ/motionVariants.js\";import LiquidGlassSurface from\"https://framerusercontent.com/modules/Z6Mf443UWyPcD7uAAPgd/5dcNwmrvaWhzegQn7JLp/LiquidGlassSurface.js\";import{getInputBorder,insetByInputBorder}from\"https://framerusercontent.com/modules/0ycs4pj4boNEeBhQgVV0/A4APKRwnGpGL7ikySzPI/inputStyles.js\";import{findCollectionRoot,getCollectionItems}from\"https://framerusercontent.com/modules/2WdEqL9F5b36twpOK7zP/cEM3uwN1O2SkLamU7wHu/collectionRegistry.js\";import{isFramerStaticMotionContext}from\"https://framerusercontent.com/modules/Ya1L4g4Y4OvX0IdF0sQC/1mCrYpaEogVkn8Z7VpLK/framerStaticMotionContext.js\";import{sortCollectionOptions}from\"https://framerusercontent.com/modules/F9KMMbom843Ongk1NaIZ/fZV0IfLWg0tZ6CFVFt3J/collectionOptionOrder.js\";import{getBrandFocusColor,getThemeColors,isLightThemeSurface,resolveBrand}from\"https://framerusercontent.com/modules/SVDdD8T3y43cvX1JiLeg/uVR2BrglaEpGTevcgiqk/themeHelpers.js\";import{breakpointPropertyControl}from\"https://framerusercontent.com/modules/ggIBfaKEZoFm3i26drC0/7AlJocwPJICBPl3TPgUY/breakpointControl.js\";import{brandPropertyControl,themePropertyControls}from\"https://framerusercontent.com/modules/t6PJyr2hw4Ye6exHEzKh/I7bQHhcZk0slFadQfIE0/brandControl.js\";import{resolveThemeProp}from\"https://framerusercontent.com/modules/Wgf0CYl3ixP0wEHCWy5U/vH5A2Z19ZDeyd0mF3fHA/themeControl.js\";function getAllCollectionItem(source){return getCollectionItems(source);}function getLayerValues(textContent,splitValues){if(!splitValues){const value=textContent.trim();return value?[value]:[];}return textContent.split(\",\").map(value=>value.trim()).filter(value=>value.length>0);}function resolveDropdownMaxWidth(sizeToLabel,breakpoint){if(!sizeToLabel){return getSpacing(220);}return breakpoint===\"phone\"?\"100%\":getSpacing(320);}function applyFilterAttribute(item,uniqueId,matches){item.setAttribute(`data-filter-${uniqueId}`,matches?\"match\":\"no-match\");}const LEGACY_DEFAULT_ARIA_LABEL=\"Filter by Title\";const CollectionDropdownInternal=/*#__PURE__*/forwardRef(function CollectionDropdownInternal(props,ref){const theme=resolveThemeProp(props);const{breakpoint=\"desktop\",brand,layerName=\"Title\",allOptionLabel=\"All\",showAllLabelWhenEmpty=false,placeholderLabel=\"\",splitValues=true,optionOrder=\"alphabetical\",sizeToLabel=false,ariaLabel:ariaLabelProp=\"\",disabled=false,options:controlledOptions,value:controlledValue,onValueChange,style,id}=props;const isControlled=controlledOptions!==undefined;const resolvedBrand=resolveBrand(brand);const lightSurface=isLightThemeSurface(theme,resolvedBrand);const[isOpen,setIsOpen]=useState(false);const[collectedOptions,setOptions]=useState([]);const[localSelectedOption,setSelectedOption]=useState(\"\");const options=controlledOptions??collectedOptions;const selectedOption=isControlled?controlledValue??\"\":localSelectedOption;const[focusedOptionIndex,setFocusedOptionIndex]=useState(-1);const containerRef=useRef(null);const componentId=useId();const uniqueId=useRef(`collection-dropdown-${componentId}`);const isCanvas=RenderTarget.current()===RenderTarget.canvas;const disableLivePolling=isCanvas||isFramerStaticMotionContext();const reducedMotion=useReducedMotion();const isStaticRenderer=useIsStaticRenderer();const skipMotion=reducedMotion||isStaticRenderer;const{activeLocale}=useLocaleInfo();const activeLocaleCode=activeLocale?.code;const{isHovered,isFocused,isPressed,handlers:baseHandlers}=useInteractiveStates(disabled,{brand:resolvedBrand,theme});useClickOutside(containerRef,()=>setIsOpen(false),isOpen);const fetchOptions=useCallback(()=>{try{const allItem=getAllCollectionItem(containerRef.current);const optionValues=[];allItem.forEach(child=>{try{const textLayers=child.querySelectorAll(`[data-framer-name=\"${layerName}\"]`);textLayers.forEach(layer=>{getLayerValues(layer.textContent||\"\",splitValues).forEach(value=>{if(!optionValues.includes(value)){optionValues.push(value);}});});}catch{}});const documentLocale=typeof document===\"undefined\"?undefined:document.documentElement.lang;setOptions(sortCollectionOptions(optionValues,optionOrder,activeLocaleCode||documentLocale));}catch{}},[layerName,optionOrder,activeLocaleCode,splitValues]);const applyFilters=useCallback(()=>{try{const allItem=getAllCollectionItem(containerRef.current);allItem.forEach(child=>{try{const textLayers=child.querySelectorAll(`[data-framer-name=\"${layerName}\"]`);if(selectedOption===\"\"){applyFilterAttribute(child,uniqueId.current,true);return;}if(textLayers.length>0){const allValues=[];textLayers.forEach(layer=>{allValues.push(...getLayerValues(layer.textContent||\"\",splitValues));});const matches=allValues.includes(selectedOption);applyFilterAttribute(child,uniqueId.current,matches);}else{applyFilterAttribute(child,uniqueId.current,false);}}catch{}});}catch{}},[selectedOption,layerName,splitValues]);useEffect(()=>{if(disableLivePolling||isControlled){return()=>{};}let scheduledFrame=0;const refresh=()=>{fetchOptions();applyFilters();};const scheduleRefresh=()=>{if(scheduledFrame!==0)return;scheduledFrame=window.requestAnimationFrame(()=>{scheduledFrame=0;refresh();});};refresh();const COLLECTION_ROOT_RETRY_MS=2e3;let observer=null;let fallbackInterval=0;let rootFrame=0;const retryStartedAt=Date.now();const attachObserver=()=>{const collectionRoot=findCollectionRoot(containerRef.current);if(!collectionRoot){if(Date.now()-retryStartedAt>=COLLECTION_ROOT_RETRY_MS){return;}rootFrame=window.requestAnimationFrame(attachObserver);return;}refresh();if(typeof MutationObserver===\"undefined\"){fallbackInterval=window.setInterval(refresh,1e3);return;}observer=new MutationObserver(scheduleRefresh);observer.observe(collectionRoot,{childList:true,subtree:true,characterData:true});};attachObserver();return()=>{observer?.disconnect();if(rootFrame)window.cancelAnimationFrame(rootFrame);if(scheduledFrame!==0)window.cancelAnimationFrame(scheduledFrame);if(fallbackInterval)window.clearInterval(fallbackInterval);};},[disableLivePolling,isControlled,layerName,fetchOptions,applyFilters]);useEffect(()=>{if(disableLivePolling||isControlled){return;}applyFilters();},[selectedOption,disableLivePolling,isControlled,applyFilters]);const toggleDropdown=useCallback(()=>{if(disabled){return;}if(isOpen){setFocusedOptionIndex(-1);}setIsOpen(!isOpen);},[disabled,isOpen]);const handleOptionClick=useCallback(option=>{const newOption=option===allOptionLabel?\"\":option;if(isControlled){onValueChange?.(newOption);}else{setSelectedOption(newOption);}setIsOpen(false);setFocusedOptionIndex(-1);},[allOptionLabel,isControlled,onValueChange]);useEffect(()=>{if(isOpen&&options.length>0){setFocusedOptionIndex(0);}else if(!isOpen){setFocusedOptionIndex(-1);}},[isOpen,options.length]);const handleKeyDown=useCallback(e=>{if(e.key===\"Escape\"){setIsOpen(false);setFocusedOptionIndex(-1);return;}if(disabled){return;}if(e.key===\"Enter\"||e.key===\" \"){e.preventDefault();if(isOpen&&focusedOptionIndex>=0){const allOptionsArray=[allOptionLabel,...options];const option=allOptionsArray[focusedOptionIndex];handleOptionClick(option);}else{toggleDropdown();}}else if(e.key===\"ArrowDown\"){e.preventDefault();if(!isOpen){setIsOpen(true);}else{const allOptionsArray=[allOptionLabel,...options];setFocusedOptionIndex(prev=>prev<allOptionsArray.length-1?prev+1:0);}}else if(e.key===\"ArrowUp\"){e.preventDefault();if(isOpen){const allOptionsArray=[allOptionLabel,...options];setFocusedOptionIndex(prev=>prev>0?prev-1:allOptionsArray.length-1);}}},[disabled,isOpen,focusedOptionIndex,options,toggleDropdown,handleOptionClick,allOptionLabel]);const isActive=selectedOption!==\"\";const themeColors=getThemeColors(theme,resolvedBrand);const textColor=disabled?getColorValue(\"/Text/text-disabled\"):themeColors.textPrimary;const focusBorderColor=getBrandFocusColor(resolvedBrand,theme);const selectorTextColor=disabled?getColorValue(\"/Text/text-disabled\"):isActive?themeColors.textPrimary:themeColors.textTertiary;const backgroundColorPath=resolvedBrand===\"bunq\"&&theme===\"inverted\"?\"/Backgrounds/bg-inverted-primary\":\"/Backgrounds/bg-tertiary\";const getDisplayTitle=()=>{if(selectedOption!==\"\"){return selectedOption;}if(showAllLabelWhenEmpty){return allOptionLabel;}return placeholderLabel.trim()||layerName;};const containerStyle={position:\"relative\",width:\"100%\",minWidth:0,maxWidth:resolveDropdownMaxWidth(sizeToLabel,breakpoint),userSelect:\"none\"};const surfaceRadiusPx=parseFloat(getRadius(\"radius-lg\"))||parseFloat(getSpacing(12));const selectorStyle=useMemo(()=>({padding:insetByInputBorder(getResponsiveSpacing(12,breakpoint)),borderRadius:getRadius(\"radius-lg\"),border:getInputBorder(theme,resolvedBrand,disabled),outlineOffset:getSpacing(2),cursor:disabled?\"not-allowed\":\"pointer\",display:\"flex\",justifyContent:\"space-between\",alignItems:\"center\",transition:skipMotion?\"none\":`${getTransition(\"filter\",\"quick\")}, ${getTransition(\"outline\",\"quick\")}`,background:\"transparent\",position:\"relative\",isolation:\"isolate\",overflow:\"hidden\",outline:isFocused?`${getFocusOutlineWidth()} solid ${focusBorderColor}`:\"none\",filter:getBrightnessFilter(disabled,isHovered,isPressed),...getTypographyStyles(\"/Body MD/Light\",breakpoint)}),[breakpoint,theme,resolvedBrand,disabled,skipMotion,isFocused,isHovered,isPressed,focusBorderColor]);const selectorTextStyle={marginRight:getResponsiveSpacing(8,breakpoint),whiteSpace:\"nowrap\",overflow:\"hidden\",textOverflow:\"ellipsis\",pointerEvents:\"none\",color:selectorTextColor};const chevronStyle={display:\"flex\",alignItems:\"center\",flexShrink:0,pointerEvents:\"none\",width:getSpacing(24),height:getSpacing(24),filter:disabled?getBrightnessFilter(true,false,false):undefined};const dropdownStyles=getDropdownContainerStyles({breakpoint,brand:resolvedBrand,theme,backgroundColor:backgroundColorPath});const getOptionStyles=(isSelected,isHoveredOption)=>{return getDropdownOptionStyles({breakpoint,brand:resolvedBrand,theme,isSelected,isHovered:isHoveredOption,reducedMotion:skipMotion,selectedTextColor:lightSurface?\"/Text/text-inverted-primary\":\"/Text/text-primary\",unselectedTextColor:lightSurface?\"/Text/text-inverted-secondary\":\"/Text/text-secondary\"});};const transition=skipMotion?{duration:0}:getFramerTransition(\"quick\");const dropdownVariants=createDropdownVariants(skipMotion);const activeDescendantId=focusedOptionIndex>=0?`dropdown-option-${componentId}-${focusedOptionIndex}`:undefined;const listboxId=`collection-dropdown-listbox-${componentId}`;const trimmedAriaLabel=ariaLabelProp.trim();const isLegacyDefaultAriaLabel=trimmedAriaLabel.toLowerCase()===LEGACY_DEFAULT_ARIA_LABEL.toLowerCase();const authorAriaLabel=isLegacyDefaultAriaLabel?\"\":trimmedAriaLabel;const visibleLabel=showAllLabelWhenEmpty?allOptionLabel.trim():placeholderLabel.trim();const resolvedAriaLabel=authorAriaLabel||visibleLabel||undefined;const selectorTextId=`collection-dropdown-text-${componentId}`;const setContainerRef=useCallback(node=>{containerRef.current=node;if(typeof ref===\"function\"){ref(node);}else if(ref){ref.current=node;}},[ref]);return /*#__PURE__*/_jsxs(\"div\",{ref:setContainerRef,id:id,style:{...containerStyle,outline:\"none\",...style},onKeyDown:handleKeyDown,onFocus:baseHandlers.onFocus,onBlur:baseHandlers.onBlur,tabIndex:disabled?-1:0,role:\"combobox\",\"aria-expanded\":isOpen,\"aria-controls\":isOpen?listboxId:undefined,\"aria-haspopup\":\"listbox\",\"aria-activedescendant\":activeDescendantId,\"aria-label\":resolvedAriaLabel,\"aria-labelledby\":resolvedAriaLabel?undefined:selectorTextId,\"aria-disabled\":disabled,children:[/*#__PURE__*/_jsxs(\"div\",{onClick:toggleDropdown,onMouseEnter:baseHandlers.onMouseEnter,onMouseLeave:baseHandlers.onMouseLeave,onMouseDown:baseHandlers.onMouseDown,onMouseUp:baseHandlers.onMouseUp,style:selectorStyle,children:[resolvedBrand===\"tricount\"?/*#__PURE__*/_jsx(\"span\",{\"aria-hidden\":\"true\",style:{position:\"absolute\",inset:0,zIndex:-1,borderRadius:surfaceRadiusPx,background:themeColors.bgTertiary,border:`1px solid ${themeColors.borderPrimary}`,boxSizing:\"border-box\",pointerEvents:\"none\"}}):/*#__PURE__*/_jsx(LiquidGlassSurface,{theme:theme,brand:resolvedBrand,radius:surfaceRadiusPx,interactive:false,style:{zIndex:-1}}),/*#__PURE__*/_jsx(\"div\",{id:selectorTextId,style:selectorTextStyle,children:getDisplayTitle()}),/*#__PURE__*/_jsx(motion.div,{\"aria-hidden\":\"true\",animate:{rotate:isOpen?180:0},transition:asTransition(transition),style:chevronStyle,dangerouslySetInnerHTML:{__html:getIcon(\"chevron-down\",24,textColor,{opticalInset:0})}})]}),/*#__PURE__*/_jsx(AnimatePresence,{children:isOpen&&/*#__PURE__*/_jsxs(motion.div,{id:listboxId,variants:dropdownVariants,initial:\"hidden\",animate:\"visible\",exit:\"exit\",style:dropdownStyles,role:\"listbox\",children:[/*#__PURE__*/_jsx(\"div\",{id:`dropdown-option-${componentId}-0`,onClick:()=>handleOptionClick(allOptionLabel),onMouseEnter:()=>setFocusedOptionIndex(0),style:getOptionStyles(selectedOption===\"\",focusedOptionIndex===0),role:\"option\",\"aria-selected\":selectedOption===\"\",tabIndex:-1,children:allOptionLabel}),options.map((option,index)=>{const optionIndex=index+1;const isSelected=option===selectedOption;return /*#__PURE__*/_jsx(\"div\",{id:`dropdown-option-${componentId}-${optionIndex}`,onClick:()=>handleOptionClick(option),onMouseEnter:()=>setFocusedOptionIndex(optionIndex),style:getOptionStyles(isSelected,focusedOptionIndex===optionIndex),role:\"option\",\"aria-selected\":isSelected,tabIndex:-1,children:option},`${componentId}-${optionIndex}`);})]},\"collection-dropdown-panel\")})]});});export default function CollectionDropdown(props){return /*#__PURE__*/_jsx(CollectionDropdownInternal,{...props});}CollectionDropdown.displayName=\"Collection Dropdown - Atom\";addPropertyControls(CollectionDropdown,{layerName:{type:ControlType.String,title:\"Layer Name\",defaultValue:\"Title\",placeholder:\"Enter layer name...\",description:\"Data-framer-name attribute value to extract filter options from.\"},allOptionLabel:{type:ControlType.String,title:\"All Option Label\",defaultValue:\"All\",placeholder:\"Enter label...\",description:\"Label for the 'All' option that clears the filter.\"},showAllLabelWhenEmpty:{type:ControlType.Boolean,title:\"Button Text\",defaultValue:false,enabledTitle:\"All Label\",disabledTitle:\"Layer Name\",description:\"What the button says before anything is picked: the layer name (for example Topic) or the All option label (for example All topics).\"},placeholderLabel:{type:ControlType.String,title:\"Placeholder Label\",defaultValue:\"\",placeholder:\"e.g. Departments\",description:\"Button text before anything is picked, instead of the layer name. Leave empty to show the layer name.\",hidden:({showAllLabelWhenEmpty})=>showAllLabelWhenEmpty===true},splitValues:{type:ControlType.Boolean,title:\"Split Values\",defaultValue:true,enabledTitle:\"Split\",disabledTitle:\"Whole\",description:\"Split layer text on commas into separate options. Turn off to keep the full text as one option, for example Risk, Legal & Compliance.\"},optionOrder:{type:ControlType.Enum,title:\"Option Order\",options:[\"alphabetical\",\"descending\",\"calendar\"],optionTitles:[\"A to Z\",\"Newest First\",\"Calendar\"],displaySegmentedControl:true,defaultValue:\"alphabetical\",description:\"A to Z sorts options alphabetically. Newest First sorts from high to low, for years such as 2026, 2025. Calendar sorts month names January to December in the page language, with other values last.\"},disabled:{type:ControlType.Boolean,title:\"Disabled\",enabledTitle:\"Yes\",disabledTitle:\"No\",defaultValue:false,description:\"Disable user interaction with the component.\"},ariaLabel:{type:ControlType.String,title:\"ARIA Label\",defaultValue:\"\",placeholder:\"e.g. Filter by category\",description:\"Only when the button text does not describe the filter. When empty, the Placeholder Label (or All Option Label) names the dropdown, otherwise the visible button text.\"},id:{type:ControlType.String,title:\"ID\",defaultValue:\"collection-dropdown\",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: 1792505576746\n\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"CollectionDropdown\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"CollectionDropdownProps\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}"],"mappings":"A,6hCAK+iQ,SAAwByG,GAAgB,EAAM,CAAC,IAAMC,EAAI1G,EAAO,IAAI,EAAE,MAAoB,gBAAK2G,GAAwB,CAAC,GAAGC,EAAU,KAAG,CAAC,CAAE,C,4HAAjgM,EAAe,GAAS,GAAqC,gBAAW,SAAiC,EAAM,EAAI,CAAC,IAAMG,EAAM/C,GAAiB4C,CAAK,EAAO,CAAC,WAAWI,EAAe,UAAU,QAAM,QAAM,YAAY,WAAS,WAAW,eAAa,GAAK,cAAW,aAAa,WAAQ,GAAG,cAAY,GAAK,WAAQ,cAAW,KAAG,QAAM,GAAGC,GAAML,EAAYM,GAAajH,MAAY4C,GAAiBoE,CAAI,EAAE,CAACA,CAAI,CAAC,EAAQE,GAAQlC,GAAwB,EAAQmC,EAAU1D,GAAkB2D,IAAS,GAAG,GAA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