{"version":3,"file":"sNzhSfyMF.DZtyD03e.mjs","names":["FilterButton2","City","React.useContext","React.useMemo","React.Fragment","useRef","React.useId","_Fragment"],"sources":["https:/framerusercontent.com/modules/oncBlLgi04yS5iEoeWY6/yCJ6QsJxCZQE7APsi2S9/sNzhSfyMF.js"],"sourcesContent":["// Generated by Framer (8e1ebfe)\nimport{jsx as _jsx,Fragment as _Fragment}from\"react/jsx-runtime\";import{addFonts,addPropertyControls,ChildrenCanSuspend,ComponentViewportProvider,ControlType,cx,getFonts,PathVariablesContext,queryCache,ResolveLinks,SmartComponentScopedContainer,useComponentViewport,useLocaleInfo,useQueryData,useRouter,useVariantState,withCSS}from\"framer\";import{LayoutGroup,motion,MotionConfigContext}from\"framer-motion\";import*as React from\"react\";import{useRef}from\"react\";import City from\"https://framerusercontent.com/modules/scE7YbClSsHDE9rWM2T8/Qq2QeEwhWVzZIASpzpjT/xRQiRhhpo.js\";import FilterButton2 from\"https://framerusercontent.com/modules/WhXGQ99NZU1YphKee7S7/AfwR8cxVjMVdx5xO2Qs5/csN2Ll_yo.js\";const FilterButton2Fonts=getFonts(FilterButton2);const cycleOrder=[\"wYIWeiH4c\",\"rzlsWsQe9\",\"ey8eXuOx1\",\"jjTCPW2Us\"];const serializationHash=\"framer-7DF3n\";const variantClassNames={ey8eXuOx1:\"framer-v-1lyb6f5\",jjTCPW2Us:\"framer-v-115weh2\",rzlsWsQe9:\"framer-v-19l0s8n\",wYIWeiH4c:\"framer-v-1gw2c69\"};function addPropertyOverrides(overrides,...variants){const nextOverrides={};variants?.forEach(variant=>variant&&Object.assign(nextOverrides,overrides[variant]));return nextOverrides;}const rElJgygb8wYIWeiH4c=undefined;const tMMLoie8xwYIWeiH4c=undefined;const idwYIWeiH4c=undefined;const transition1={bounce:.2,delay:0,duration:.4,type:\"spring\"};const query=prequery=>prequery({from:{alias:\"wYIWeiH4c\",data:City,type:\"Collection\"},limit:{type:\"LiteralValue\",value:10},orderBy:[{collection:\"wYIWeiH4c\",name:\"rElJgygb8\",type:\"Identifier\"}],select:[{collection:\"wYIWeiH4c\",name:\"rElJgygb8\",type:\"Identifier\"},{collection:\"wYIWeiH4c\",name:\"tMMLoie8x\",type:\"Identifier\"},{collection:\"wYIWeiH4c\",name:\"id\",type:\"Identifier\"}]});const query1=()=>({from:{alias:\"wYIWeiH4c\",data:City,type:\"Collection\"},limit:{type:\"LiteralValue\",value:10},orderBy:[{collection:\"wYIWeiH4c\",name:\"rElJgygb8\",type:\"Identifier\"}],select:[{collection:\"wYIWeiH4c\",name:\"rElJgygb8\",type:\"Identifier\"},{collection:\"wYIWeiH4c\",name:\"tMMLoie8x\",type:\"Identifier\"},{collection:\"wYIWeiH4c\",name:\"id\",type:\"Identifier\"}]});const QueryData=({query,pageSize,children})=>{const data=useQueryData(query);return children(data);};const Transition=({value,children})=>{const config=React.useContext(MotionConfigContext);const transition=value??config.transition;const contextValue=React.useMemo(()=>({...config,transition}),[JSON.stringify(transition)]);return /*#__PURE__*/_jsx(MotionConfigContext.Provider,{value:contextValue,children:children});};const Variants=motion.create(React.Fragment);const humanReadableVariantMap={\"Location CMS Pages\":\"rzlsWsQe9\",\"Location Index Danish\":\"ey8eXuOx1\",\"Location Index\":\"wYIWeiH4c\",\"Locations CMS pages Danish\":\"jjTCPW2Us\"};const getProps=({height,id,width,...props})=>{return{...props,variant:humanReadableVariantMap[props.variant]??props.variant??\"wYIWeiH4c\"};};const createLayoutDependency=(props,variants)=>{if(props.layoutDependency)return variants.join(\"-\")+props.layoutDependency;return variants.join(\"-\");};const Component=/*#__PURE__*/React.forwardRef(function(props,ref){const fallbackRef=useRef(null);const refBinding=ref??fallbackRef;const defaultLayoutId=React.useId();const{activeLocale,setLocale}=useLocaleInfo();const componentViewport=useComponentViewport();const{style,className,layoutId,variant,...restProps}=getProps(props);const{baseVariant,classNames,clearLoadingGesture,gestureHandlers,gestureVariant,isLoading,setGestureState,setVariant,variants}=useVariantState({cycleOrder,defaultVariant:\"wYIWeiH4c\",ref:refBinding,variant,variantClassNames});const layoutDependency=createLayoutDependency(props,variants);const sharedStyleClassNames=[];const scopingClassNames=cx(serializationHash,...sharedStyleClassNames);const router=useRouter();return /*#__PURE__*/_jsx(LayoutGroup,{id:layoutId??defaultLayoutId,children:/*#__PURE__*/_jsx(Variants,{animate:variants,initial:false,children:/*#__PURE__*/_jsx(Transition,{value:transition1,children:/*#__PURE__*/_jsx(motion.div,{...restProps,...gestureHandlers,className:cx(scopingClassNames,\"framer-1gw2c69\",className,classNames),\"data-framer-name\":\"Location Index\",layoutDependency:layoutDependency,layoutId:\"wYIWeiH4c\",ref:refBinding,style:{...style},...addPropertyOverrides({ey8eXuOx1:{\"data-framer-name\":\"Location Index Danish\"},jjTCPW2Us:{\"data-framer-name\":\"Locations CMS pages Danish\"},rzlsWsQe9:{\"data-framer-name\":\"Location CMS Pages\"}},baseVariant,gestureVariant),children:/*#__PURE__*/_jsx(ChildrenCanSuspend,{children:/*#__PURE__*/_jsx(QueryData,{query:query1(),children:(collection,paginationInfo,loadMore)=>{return /*#__PURE__*/_jsx(_Fragment,{children:collection?.map(({id:idwYIWeiH4c,rElJgygb8:rElJgygb8wYIWeiH4c,tMMLoie8x:tMMLoie8xwYIWeiH4c},index)=>{rElJgygb8wYIWeiH4c??=\"\";tMMLoie8xwYIWeiH4c??=\"\";return /*#__PURE__*/_jsx(LayoutGroup,{id:`wYIWeiH4c-${idwYIWeiH4c}`,children:/*#__PURE__*/_jsx(PathVariablesContext.Provider,{value:{tMMLoie8x:tMMLoie8xwYIWeiH4c},children:/*#__PURE__*/_jsx(motion.div,{className:\"framer-el321f\",layoutDependency:layoutDependency,layoutId:\"K4kQaZvR8\",children:/*#__PURE__*/_jsx(ResolveLinks,{links:[{href:{pathVariables:{tMMLoie8x:tMMLoie8xwYIWeiH4c},webPageId:\"H72NbIEX1\"},implicitPathVariables:undefined},{href:{pathVariables:{tMMLoie8x:tMMLoie8xwYIWeiH4c},webPageId:\"H72NbIEX1\"},implicitPathVariables:undefined},{href:{pathVariables:{tMMLoie8x:tMMLoie8xwYIWeiH4c},webPageId:\"J1VIOoorv\"},implicitPathVariables:undefined},{href:{pathVariables:{tMMLoie8x:tMMLoie8xwYIWeiH4c},webPageId:\"J1VIOoorv\"},implicitPathVariables:undefined}],children:resolvedLinks=>/*#__PURE__*/_jsx(ComponentViewportProvider,{height:42,y:(componentViewport?.y||0)+0+0,children:/*#__PURE__*/_jsx(SmartComponentScopedContainer,{className:\"framer-wx0vw4-container\",layoutDependency:layoutDependency,layoutId:\"OrJ8JAws6-container\",nodeId:\"OrJ8JAws6\",rendersWithMotion:true,scopeId:\"sNzhSfyMF\",children:/*#__PURE__*/_jsx(FilterButton2,{bfsUbxZnR:resolvedLinks[0],height:\"100%\",id:\"OrJ8JAws6\",layoutId:\"OrJ8JAws6\",Q4LgE6551:rElJgygb8wYIWeiH4c,variant:\"eHPzaeK6U\",width:\"100%\",...addPropertyOverrides({ey8eXuOx1:{bfsUbxZnR:resolvedLinks[2]},jjTCPW2Us:{bfsUbxZnR:resolvedLinks[3]},rzlsWsQe9:{bfsUbxZnR:resolvedLinks[1]}},baseVariant,gestureVariant)})})})})})})},idwYIWeiH4c);})});}})})})})})});});const css=[\"@supports (aspect-ratio: 1) { body { --framer-aspect-ratio-supported: auto; } }\",\".framer-7DF3n.framer-1grsnd1, .framer-7DF3n .framer-1grsnd1 { display: block; }\",\".framer-7DF3n.framer-1gw2c69 { align-content: flex-start; align-items: flex-start; display: flex; flex-direction: row; flex-wrap: nowrap; gap: 20px; height: min-content; justify-content: center; padding: 0px; position: relative; width: min-content; }\",\".framer-7DF3n .framer-el321f { align-content: center; align-items: center; display: flex; flex: none; flex-direction: row; flex-wrap: nowrap; gap: 10px; height: min-content; justify-content: flex-start; padding: 0px; position: relative; width: min-content; }\",\".framer-7DF3n .framer-wx0vw4-container { flex: none; height: auto; position: relative; width: auto; }\"];/**\n * This is a generated Framer component.\n * @framerIntrinsicHeight 42\n * @framerIntrinsicWidth 423\n * @framerCanvasComponentVariantDetails {\"propertyName\":\"variant\",\"data\":{\"default\":{\"layout\":[\"auto\",\"auto\"]},\"rzlsWsQe9\":{\"layout\":[\"auto\",\"auto\"]},\"ey8eXuOx1\":{\"layout\":[\"auto\",\"auto\"]},\"jjTCPW2Us\":{\"layout\":[\"auto\",\"auto\"]}}}\n * @framerImmutableVariables true\n * @framerDisplayContentsDiv false\n * @framerAutoSizeImages true\n * @framerComponentViewportWidth true\n * @framerColorSyntax true\n */const FramersNzhSfyMF=withCSS(Component,css,\"framer-7DF3n\");export default FramersNzhSfyMF;FramersNzhSfyMF.displayName=\"Location Index\";FramersNzhSfyMF.defaultProps={height:42,width:423};addPropertyControls(FramersNzhSfyMF,{variant:{options:[\"wYIWeiH4c\",\"rzlsWsQe9\",\"ey8eXuOx1\",\"jjTCPW2Us\"],optionTitles:[\"Location Index\",\"Location CMS Pages\",\"Location Index Danish\",\"Locations CMS pages Danish\"],title:\"Variant\",type:ControlType.Enum}});addFonts(FramersNzhSfyMF,[{explicitInter:true,fonts:[]},...FilterButton2Fonts],{supportsExplicitInterCodegen:true});FramersNzhSfyMF.loader={load:(props,context)=>Promise.allSettled([queryCache.get(query1(),context.locale).preload()])};\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"FramersNzhSfyMF\",\"slots\":[],\"annotations\":{\"framerImmutableVariables\":\"true\",\"framerCanvasComponentVariantDetails\":\"{\\\"propertyName\\\":\\\"variant\\\",\\\"data\\\":{\\\"default\\\":{\\\"layout\\\":[\\\"auto\\\",\\\"auto\\\"]},\\\"rzlsWsQe9\\\":{\\\"layout\\\":[\\\"auto\\\",\\\"auto\\\"]},\\\"ey8eXuOx1\\\":{\\\"layout\\\":[\\\"auto\\\",\\\"auto\\\"]},\\\"jjTCPW2Us\\\":{\\\"layout\\\":[\\\"auto\\\",\\\"auto\\\"]}}}\",\"framerDisplayContentsDiv\":\"false\",\"framerContractVersion\":\"1\",\"framerColorSyntax\":\"true\",\"framerIntrinsicWidth\":\"423\",\"framerComponentViewportWidth\":\"true\",\"framerAutoSizeImages\":\"true\",\"framerIntrinsicHeight\":\"42\"}},\"Props\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./sNzhSfyMF.map"],"mappings":"ieAC49B,SAAS,EAAqB,EAAU,GAAG,EAAS,CAAC,IAAM,EAAc,EAAE,CAAsF,OAArF,GAAU,QAAQ,GAAS,GAAS,OAAO,OAAO,EAAc,EAAU,GAAS,CAAC,CAAQ,+CAAnkC,IAAmR,IAAkE,IAA4B,IAAyI,IAAwH,CAAM,EAAmB,EAASA,EAAc,CAAO,EAAW,CAAC,YAAY,YAAY,YAAY,YAAY,CAAO,EAAkB,eAAqB,EAAkB,CAAC,UAAU,mBAAmB,UAAU,mBAAmB,UAAU,mBAAmB,UAAU,mBAAmB,CAAgS,EAAY,CAAC,OAAO,GAAG,MAAM,EAAE,SAAS,GAAG,KAAK,SAAS,CAA+X,OAAY,CAAC,KAAK,CAAC,MAAM,YAAY,KAAKC,EAAK,KAAK,aAAa,CAAC,MAAM,CAAC,KAAK,eAAe,MAAM,GAAG,CAAC,QAAQ,CAAC,CAAC,WAAW,YAAY,KAAK,YAAY,KAAK,aAAa,CAAC,CAAC,OAAO,CAAC,CAAC,WAAW,YAAY,KAAK,YAAY,KAAK,aAAa,CAAC,CAAC,WAAW,YAAY,KAAK,YAAY,KAAK,aAAa,CAAC,CAAC,WAAW,YAAY,KAAK,KAAK,KAAK,aAAa,CAAC,CAAC,EAAQ,GAAW,CAAC,QAAM,WAAS,cAAmD,EAA3B,EAAa,EAAM,CAAsB,CAAS,GAAY,CAAC,QAAM,cAAY,CAAC,IAAM,EAAOC,EAAiB,EAAoB,CAAO,EAAW,GAAO,EAAO,WAAiB,EAAaC,OAAmB,CAAC,GAAG,EAAO,aAAW,EAAE,CAAC,KAAK,UAAU,EAAW,CAAC,CAAC,CAAC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