{"version":3,"file":"shared-lib.B933v_d2.mjs","names":["React.useContext","React.useMemo","React.Fragment","useRef","React.useId","RichText"],"sources":["https:/framerusercontent.com/modules/tl2RhylJpoxuNw2b7573/5mAMmyF7xY32Ufql1SUg/QEXYTJC5a.js"],"sourcesContent":["// Generated by Framer (656a448)\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{addFonts,addPropertyControls,ControlType,cx,Link,RichText,useActiveVariantCallback,useComponentViewport,useLocaleInfo,useVariantState,withCSS}from\"framer\";import{LayoutGroup,motion,MotionConfigContext}from\"framer-motion\";import*as React from\"react\";import{useRef}from\"react\";const enabledGestures={hAScEq1Xq:{hover:true},HLAvEdqbo:{hover:true},NOmtvIpLR:{hover:true}};const cycleOrder=[\"hAScEq1Xq\",\"HLAvEdqbo\",\"NOmtvIpLR\"];const serializationHash=\"framer-n4qCB\";const variantClassNames={hAScEq1Xq:\"framer-v-j5qsl0\",HLAvEdqbo:\"framer-v-1x7guek\",NOmtvIpLR:\"framer-v-mrsuhd\"};function addPropertyOverrides(overrides,...variants){const nextOverrides={};variants?.forEach(variant=>variant&&Object.assign(nextOverrides,overrides[variant]));return nextOverrides;}const nCh5PIFqN=undefined;const y59MjdhdK=undefined;const CR6SeabcK=undefined;const transition1={bounce:.2,delay:0,duration:.4,type:\"spring\"};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={Genomskinlig:\"NOmtvIpLR\",Svart:\"HLAvEdqbo\",Vit:\"hAScEq1Xq\"};const getProps=({height,id,link,newTab,tITEL,width,...props})=>{return{...props,CR6SeabcK:tITEL??props.CR6SeabcK??\"BOKA TID\",nCh5PIFqN:link??props.nCh5PIFqN,variant:humanReadableVariantMap[props.variant]??props.variant??\"hAScEq1Xq\",y59MjdhdK:newTab??props.y59MjdhdK};};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,nCh5PIFqN,CR6SeabcK,y59MjdhdK,...restProps}=getProps(props);const{baseVariant,classNames,clearLoadingGesture,gestureHandlers,gestureVariant,isLoading,setGestureState,setVariant,variants}=useVariantState({cycleOrder,defaultVariant:\"hAScEq1Xq\",enabledGestures,ref:refBinding,variant,variantClassNames});const layoutDependency=createLayoutDependency(props,variants);const{activeVariantCallback,delay}=useActiveVariantCallback(baseVariant);const onTap4zbyd6=activeVariantCallback(async(...args)=>{setGestureState({isPressed:false});});const sharedStyleClassNames=[];const scopingClassNames=cx(serializationHash,...sharedStyleClassNames);return /*#__PURE__*/_jsx(LayoutGroup,{id:layoutId??defaultLayoutId,children:/*#__PURE__*/_jsx(Variants,{animate:variants,initial:false,children:/*#__PURE__*/_jsx(Transition,{value:transition1,children:/*#__PURE__*/_jsx(Link,{href:nCh5PIFqN,motionChild:true,nodeId:\"hAScEq1Xq\",openInNewTab:y59MjdhdK,scopeId:\"QEXYTJC5a\",smoothScroll:true,children:/*#__PURE__*/_jsx(motion.a,{...restProps,...gestureHandlers,className:`${cx(scopingClassNames,\"framer-j5qsl0\",className,classNames)} framer-12ivgyz`,\"data-framer-name\":\"Vit\",\"data-highlight\":true,layoutDependency:layoutDependency,layoutId:\"hAScEq1Xq\",onTap:onTap4zbyd6,ref:refBinding,style:{\"--border-bottom-width\":\"0px\",\"--border-color\":\"rgba(0, 0, 0, 0)\",\"--border-left-width\":\"0px\",\"--border-right-width\":\"0px\",\"--border-style\":\"solid\",\"--border-top-width\":\"0px\",backgroundColor:\"rgb(255, 255, 255)\",borderBottomLeftRadius:30,borderBottomRightRadius:30,borderTopLeftRadius:30,borderTopRightRadius:30,opacity:1,...style},variants:{\"hAScEq1Xq-hover\":{\"--border-bottom-width\":\"0px\",\"--border-left-width\":\"0px\",\"--border-right-width\":\"0px\",\"--border-top-width\":\"0px\",opacity:.8},\"HLAvEdqbo-hover\":{\"--border-bottom-width\":\"0px\",\"--border-left-width\":\"0px\",\"--border-right-width\":\"0px\",\"--border-top-width\":\"0px\",opacity:.8},\"NOmtvIpLR-hover\":{opacity:.8},HLAvEdqbo:{backgroundColor:\"rgb(20, 20, 20)\"},NOmtvIpLR:{\"--border-bottom-width\":\"1px\",\"--border-color\":\"rgb(255, 255, 255)\",\"--border-left-width\":\"1px\",\"--border-right-width\":\"1px\",\"--border-style\":\"solid\",\"--border-top-width\":\"1px\",backgroundColor:\"rgba(0, 0, 0, 0)\"}},...addPropertyOverrides({\"hAScEq1Xq-hover\":{\"data-framer-name\":undefined},\"HLAvEdqbo-hover\":{\"data-framer-name\":undefined},\"NOmtvIpLR-hover\":{\"data-framer-name\":undefined},HLAvEdqbo:{\"data-framer-name\":\"Svart\"},NOmtvIpLR:{\"data-border\":true,\"data-framer-name\":\"Genomskinlig\"}},baseVariant,gestureVariant),children:/*#__PURE__*/_jsx(RichText,{__fromCanvasComponent:true,children:/*#__PURE__*/_jsx(React.Fragment,{children:/*#__PURE__*/_jsx(motion.p,{style:{\"--font-selector\":\"RlM7TW9udHNlcnJhdC1zZW1pYm9sZA==\",\"--framer-font-family\":'\"Montserrat\", \"Montserrat Placeholder\", sans-serif',\"--framer-font-size\":\"14px\",\"--framer-font-weight\":\"600\",\"--framer-line-height\":\"1.5em\",\"--framer-text-transform\":\"uppercase\"},children:\"BOKA TID\"})}),className:\"framer-12b13bp\",fonts:[\"FS;Montserrat-semibold\"],layoutDependency:layoutDependency,layoutId:\"f831VTjBo\",style:{\"--framer-link-text-color\":\"rgb(0, 153, 255)\",\"--framer-link-text-decoration\":\"underline\"},text:CR6SeabcK,variants:{HLAvEdqbo:{\"--extracted-r6o4lv\":\"rgb(255, 255, 255)\"},NOmtvIpLR:{\"--extracted-r6o4lv\":\"rgb(255, 255, 255)\"}},verticalAlignment:\"top\",withExternalLayout:true,...addPropertyOverrides({HLAvEdqbo:{children:/*#__PURE__*/_jsx(React.Fragment,{children:/*#__PURE__*/_jsx(motion.p,{style:{\"--font-selector\":\"RlM7TW9udHNlcnJhdC1zZW1pYm9sZA==\",\"--framer-font-family\":'\"Montserrat\", \"Montserrat Placeholder\", sans-serif',\"--framer-font-size\":\"14px\",\"--framer-font-weight\":\"600\",\"--framer-line-height\":\"1.5em\",\"--framer-text-color\":\"var(--extracted-r6o4lv, rgb(255, 255, 255))\",\"--framer-text-transform\":\"uppercase\"},children:\"BOKA TID\"})})},NOmtvIpLR:{children:/*#__PURE__*/_jsx(React.Fragment,{children:/*#__PURE__*/_jsx(motion.p,{style:{\"--font-selector\":\"RlM7TW9udHNlcnJhdC1zZW1pYm9sZA==\",\"--framer-font-family\":'\"Montserrat\", \"Montserrat Placeholder\", sans-serif',\"--framer-font-size\":\"14px\",\"--framer-font-weight\":\"600\",\"--framer-line-height\":\"1.5em\",\"--framer-text-color\":\"var(--extracted-r6o4lv, rgb(255, 255, 255))\",\"--framer-text-transform\":\"uppercase\"},children:\"BOKA TID\"})})}},baseVariant,gestureVariant)})})})})})});});const css=[\"@supports (aspect-ratio: 1) { body { --framer-aspect-ratio-supported: auto; } }\",\".framer-n4qCB.framer-12ivgyz, .framer-n4qCB .framer-12ivgyz { display: block; }\",\".framer-n4qCB.framer-j5qsl0 { align-content: center; align-items: center; cursor: pointer; display: flex; flex-direction: row; flex-wrap: nowrap; gap: 0px; height: min-content; justify-content: center; overflow: hidden; padding: 12px 25px 12px 25px; position: relative; text-decoration: none; width: min-content; will-change: var(--framer-will-change-override, transform); }\",\".framer-n4qCB .framer-12b13bp { flex: none; height: auto; position: relative; white-space: pre; width: auto; }\",'.framer-n4qCB[data-border=\"true\"]::after, .framer-n4qCB [data-border=\"true\"]::after { content: \"\"; border-width: var(--border-top-width, 0) var(--border-right-width, 0) var(--border-bottom-width, 0) var(--border-left-width, 0); border-color: var(--border-color, none); border-style: var(--border-style, none); width: 100%; height: 100%; position: absolute; box-sizing: border-box; left: 0; top: 0; border-radius: inherit; corner-shape: inherit; pointer-events: none; }'];/**\n * This is a generated Framer component.\n * @framerIntrinsicHeight 45\n * @framerIntrinsicWidth 121\n * @framerCanvasComponentVariantDetails {\"propertyName\":\"variant\",\"data\":{\"default\":{\"layout\":[\"auto\",\"auto\"]},\"HLAvEdqbo\":{\"layout\":[\"auto\",\"auto\"]},\"NOmtvIpLR\":{\"layout\":[\"auto\",\"auto\"]},\"yoCfpdfYa\":{\"layout\":[\"auto\",\"auto\"]},\"REn8PAK3g\":{\"layout\":[\"auto\",\"auto\"]},\"gAxdVT0nI\":{\"layout\":[\"auto\",\"auto\"]}}}\n * @framerVariables {\"nCh5PIFqN\":\"link\",\"CR6SeabcK\":\"tITEL\",\"y59MjdhdK\":\"newTab\"}\n * @framerImmutableVariables true\n * @framerDisplayContentsDiv false\n * @framerAutoSizeImages true\n * @framerComponentViewportWidth true\n * @framerColorSyntax true\n */const FramerQEXYTJC5a=withCSS(Component,css,\"framer-n4qCB\");export default FramerQEXYTJC5a;FramerQEXYTJC5a.displayName=\"Knappar\";FramerQEXYTJC5a.defaultProps={height:45,width:121};addPropertyControls(FramerQEXYTJC5a,{variant:{options:[\"hAScEq1Xq\",\"HLAvEdqbo\",\"NOmtvIpLR\"],optionTitles:[\"Vit\",\"Svart\",\"Genomskinlig\"],title:\"Variant\",type:ControlType.Enum},nCh5PIFqN:{title:\"Link\",type:ControlType.Link},CR6SeabcK:{defaultValue:\"BOKA TID\",displayTextArea:false,title:\"TITEL\",type:ControlType.String},y59MjdhdK:{defaultValue:false,title:\"New Tab\",type:ControlType.Boolean}});addFonts(FramerQEXYTJC5a,[{explicitInter:true,fonts:[{cssFamilyName:\"Montserrat\",source:\"fontshare\",style:\"normal\",uiFamilyName:\"Montserrat\",url:\"https://framerusercontent.com/third-party-assets/fontshare/wf/DELXRVKO253LHPYOBD6KD7EW3TJKXCXF/L6SILXET3P727LN5N75LL5PG77IET2IT/6DP3DAT2N5LSQGN5ISPRN63WPP32A54A.woff2\",weight:\"600\"}]}],{supportsExplicitInterCodegen:true});\nexport const __FramerMetadata__ = {\"exports\":{\"Props\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"default\":{\"type\":\"reactComponent\",\"name\":\"FramerQEXYTJC5a\",\"slots\":[],\"annotations\":{\"framerColorSyntax\":\"true\",\"framerCanvasComponentVariantDetails\":\"{\\\"propertyName\\\":\\\"variant\\\",\\\"data\\\":{\\\"default\\\":{\\\"layout\\\":[\\\"auto\\\",\\\"auto\\\"]},\\\"HLAvEdqbo\\\":{\\\"layout\\\":[\\\"auto\\\",\\\"auto\\\"]},\\\"NOmtvIpLR\\\":{\\\"layout\\\":[\\\"auto\\\",\\\"auto\\\"]},\\\"yoCfpdfYa\\\":{\\\"layout\\\":[\\\"auto\\\",\\\"auto\\\"]},\\\"REn8PAK3g\\\":{\\\"layout\\\":[\\\"auto\\\",\\\"auto\\\"]},\\\"gAxdVT0nI\\\":{\\\"layout\\\":[\\\"auto\\\",\\\"auto\\\"]}}}\",\"framerVariables\":\"{\\\"nCh5PIFqN\\\":\\\"link\\\",\\\"CR6SeabcK\\\":\\\"tITEL\\\",\\\"y59MjdhdK\\\":\\\"newTab\\\"}\",\"framerIntrinsicHeight\":\"45\",\"framerImmutableVariables\":\"true\",\"framerIntrinsicWidth\":\"121\",\"framerContractVersion\":\"1\",\"framerAutoSizeImages\":\"true\",\"framerDisplayContentsDiv\":\"false\",\"framerComponentViewportWidth\":\"true\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./QEXYTJC5a.map"],"mappings":"+UAC+mB,SAAS,EAAqB,EAAU,GAAG,EAAS,CAAC,IAAM,EAAc,EAAE,CAAsF,OAArF,GAAU,QAAQ,GAAS,GAAS,OA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