{"version":3,"file":"Mte0usOkj.BUH7oO2w.mjs","names":["CardTyp1","React.useContext","React.useMemo","React.Fragment","useRef","React.useId"],"sources":["https:/framerusercontent.com/modules/UtmVp5KZmYHSeXGGftT4/1OG1V88r2Zt6UZsWxACu/Mte0usOkj.js"],"sourcesContent":["// Generated by Framer (7b363e7)\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{addFonts,addPropertyControls,ComponentViewportProvider,ControlType,cx,getFonts,getPropertyControls,Link,SmartComponentScopedContainer,useComponentViewport,useLocaleInfo,useVariantState,withCSS}from\"framer\";import{LayoutGroup,motion,MotionConfigContext}from\"framer-motion\";import*as React from\"react\";import{useRef}from\"react\";import CardTyp1 from\"https://framerusercontent.com/modules/MYFBZJI3q7e6cq7BMhi0/GSW1vEM4MGz1aiQ1yiSh/A4KnP9ARX.js\";const CardTyp1Fonts=getFonts(CardTyp1);const CardTyp1Controls=getPropertyControls(CardTyp1);const serializationHash=\"framer-SmqRJ\";const variantClassNames={HaAKRNwVt:\"framer-v-kelg5z\"};function addPropertyOverrides(overrides,...variants){const nextOverrides={};variants?.forEach(variant=>variant&&Object.assign(nextOverrides,overrides[variant]));return nextOverrides;}const transition1={bounce:.2,delay:0,duration:.4,type:\"spring\"};const toResponsiveImage=value=>{if(typeof value===\"object\"&&value!==null&&typeof value.src===\"string\"){return value;}return typeof value===\"string\"?{src:value}:undefined;};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 humanReadableEnumMap={\"Text aussen an Bild\":\"sMVbV40cF\",Default:\"OmLninWO_\",Mobile:\"S8amkyFPY\"};const getProps=({angebotsbild,beschreibungAngebot,height,id,link,newTab,pillText,titelAngebot,variant1,width,...props})=>{return{...props,clo_VX19g:pillText??props.clo_VX19g,g1lAKw6JH:newTab??props.g1lAKw6JH,gOLeGLB8h:humanReadableEnumMap[variant1]??variant1??props.gOLeGLB8h??\"OmLninWO_\",PKGus2dqs:titelAngebot??props.PKGus2dqs??\"Tobias\",qHj6rOJ7L:angebotsbild??props.qHj6rOJ7L,QpQBvGByD:beschreibungAngebot??props.QpQBvGByD??\"PDF \\xf6ffnen\",TCcj5Gq8k:link??props.TCcj5Gq8k};};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,TCcj5Gq8k,g1lAKw6JH,gOLeGLB8h,qHj6rOJ7L,clo_VX19g,PKGus2dqs,QpQBvGByD,...restProps}=getProps(props);const{baseVariant,classNames,clearLoadingGesture,gestureHandlers,gestureVariant,isLoading,setGestureState,setVariant,variants}=useVariantState({defaultVariant:\"HaAKRNwVt\",ref:refBinding,variant,variantClassNames});const layoutDependency=createLayoutDependency(props,variants);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:TCcj5Gq8k,motionChild:true,nodeId:\"HaAKRNwVt\",openInNewTab:g1lAKw6JH,scopeId:\"Mte0usOkj\",children:/*#__PURE__*/_jsx(motion.a,{...restProps,...gestureHandlers,className:`${cx(scopingClassNames,\"framer-kelg5z\",className,classNames)} framer-ygssyp`,\"data-framer-name\":\"Variant 1\",layoutDependency:layoutDependency,layoutId:\"HaAKRNwVt\",ref:refBinding,style:{...style},children:/*#__PURE__*/_jsx(ComponentViewportProvider,{height:372,width:componentViewport?.width||\"100vw\",y:(componentViewport?.y||0)+0+(((componentViewport?.height||372.5)-0-372)/2+0+0),children:/*#__PURE__*/_jsx(SmartComponentScopedContainer,{className:\"framer-1i6ckps-container\",layoutDependency:layoutDependency,layoutId:\"wXy432evV-container\",nodeId:\"wXy432evV\",rendersWithMotion:true,scopeId:\"Mte0usOkj\",children:/*#__PURE__*/_jsx(CardTyp1,{height:\"100%\",id:\"wXy432evV\",J_pyCvLWH:true,jNoHr7Q2d:90,jONkl6Oy6:QpQBvGByD,layoutId:\"wXy432evV\",O_a87Jl1H:\"Kategorie\",qCo0idBog:clo_VX19g,R9S7HE2t9:toResponsiveImage(qHj6rOJ7L),style:{width:\"100%\"},variant:gOLeGLB8h,width:\"100%\",yWPd5U0GR:PKGus2dqs})})})})})})})});});const css=[\"@supports (aspect-ratio: 1) { body { --framer-aspect-ratio-supported: auto; } }\",\".framer-SmqRJ.framer-ygssyp, .framer-SmqRJ .framer-ygssyp { display: block; }\",\".framer-SmqRJ.framer-kelg5z { align-content: center; align-items: center; cursor: pointer; display: flex; flex-direction: column; flex-wrap: nowrap; gap: 10px; height: min-content; justify-content: center; overflow: hidden; padding: 0px; position: relative; text-decoration: none; width: 298px; }\",\".framer-SmqRJ .framer-1i6ckps-container { flex: none; height: auto; position: relative; width: 100%; }\"];/**\n * This is a generated Framer component.\n * @framerIntrinsicHeight 372.5\n * @framerIntrinsicWidth 298\n * @framerCanvasComponentVariantDetails {\"propertyName\":\"variant\",\"data\":{\"default\":{\"layout\":[\"fixed\",\"auto\"]}}}\n * @framerVariables {\"TCcj5Gq8k\":\"link\",\"g1lAKw6JH\":\"newTab\",\"gOLeGLB8h\":\"variant1\",\"qHj6rOJ7L\":\"angebotsbild\",\"clo_VX19g\":\"pillText\",\"PKGus2dqs\":\"titelAngebot\",\"QpQBvGByD\":\"beschreibungAngebot\"}\n * @framerImmutableVariables true\n * @framerDisplayContentsDiv false\n * @framerAutoSizeImages true\n * @framerComponentViewportWidth true\n * @framerColorSyntax true\n */const FramerMte0usOkj=withCSS(Component,css,\"framer-SmqRJ\");export default FramerMte0usOkj;FramerMte0usOkj.displayName=\"Card Typ 1 + Link\";FramerMte0usOkj.defaultProps={height:372.5,width:298};addPropertyControls(FramerMte0usOkj,{TCcj5Gq8k:{title:\"Link\",type:ControlType.Link},g1lAKw6JH:{defaultValue:false,title:\"New Tab\",type:ControlType.Boolean},gOLeGLB8h:CardTyp1Controls?.[\"variant\"]&&{...CardTyp1Controls[\"variant\"],defaultValue:\"OmLninWO_\",description:undefined,hidden:undefined,title:\"Variant\"},qHj6rOJ7L:{title:\"Angebotsbild\",type:ControlType.ResponsiveImage},clo_VX19g:{defaultValue:\"\",title:\"Pill Text\",type:ControlType.String},PKGus2dqs:{defaultValue:\"Tobias\",title:\"Titel Angebot\",type:ControlType.String},QpQBvGByD:{defaultValue:\"PDF \\xf6ffnen\",description:\"\",title:\"Beschreibung Angebot\",type:ControlType.String}});addFonts(FramerMte0usOkj,[{explicitInter:true,fonts:[]},...CardTyp1Fonts],{supportsExplicitInterCodegen:true});\nexport const __FramerMetadata__ = {\"exports\":{\"Props\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"default\":{\"type\":\"reactComponent\",\"name\":\"FramerMte0usOkj\",\"slots\":[],\"annotations\":{\"framerColorSyntax\":\"true\",\"framerIntrinsicWidth\":\"298\",\"framerCanvasComponentVariantDetails\":\"{\\\"propertyName\\\":\\\"variant\\\",\\\"data\\\":{\\\"default\\\":{\\\"layout\\\":[\\\"fixed\\\",\\\"auto\\\"]}}}\",\"framerVariables\":\"{\\\"TCcj5Gq8k\\\":\\\"link\\\",\\\"g1lAKw6JH\\\":\\\"newTab\\\",\\\"gOLeGLB8h\\\":\\\"variant1\\\",\\\"qHj6rOJ7L\\\":\\\"angebotsbild\\\",\\\"clo_VX19g\\\":\\\"pillText\\\",\\\"PKGus2dqs\\\":\\\"titelAngebot\\\",\\\"QpQBvGByD\\\":\\\"beschreibungAngebot\\\"}\",\"framerImmutableVariables\":\"true\",\"framerAutoSizeImages\":\"true\",\"framerDisplayContentsDiv\":\"false\",\"framerComponentViewportWidth\":\"true\",\"framerContractVersion\":\"1\",\"framerIntrinsicHeight\":\"372.5\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}"],"mappings":"wbAC2C,IAAqN,IAAkE,IAA4B,IAA6I,CAAM,EAAc,EAASA,EAAS,CAAO,EAAiB,EAAoBA,EAAS,CAAO,EAAkB,eAAqB,EAAkB,CAAC,UAAU,kBAAkB,CAA8L,EAAY,CAAC,OAAO,GAAG,MAAM,EAAE,SAAS,GAAG,KAAK,SAAS,CAAO,EAAkB,GAAW,OAAO,GAAQ,UAAU,GAAc,OAAO,EAAM,KAAM,SAAiB,EAAc,OAAO,GAAQ,SAAS,CAAC,IAAI,EAAM,CAAC,IAAA,GAAkB,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,OAAoB,EAAK,EAAoB,SAAS,CAAC,MAAM,EAAsB,WAAS,CAAC,EAAS,EAAS,EAAO,OAAOC,EAAe,CAAO,EAAqB,CAAC,sBAAsB,YAAY,QAAQ,YAAY,OAAO,YAAY,CAAO,GAAU,CAAC,eAAa,sBAAoB,SAAO,KAAG,OAAK,SAAO,WAAS,eAAa,WAAS,QAAM,GAAG,MAAgB,CAAC,GAAG,EAAM,UAAU,GAAU,EAAM,UAAU,UAAU,GAAQ,EAAM,UAAU,UAAU,EAAqB,IAAW,GAAU,EAAM,WAAW,YAAY,UAAU,GAAc,EAAM,WAAW,SAAS,UAAU,GAAc,EAAM,UAAU,UAAU,GAAqB,EAAM,WAAW,aAAgB,UAAU,GAAM,EAAM,UAAU,EAAS,GAAwB,EAAM,IAAe,EAAM,iBAAwB,EAAS,KAAK,IAAI,CAAC,EAAM,iBAAwB,E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