{"version":3,"file":"StoreButtons.BReRh7HA.mjs","names":["React.useMemo","React.useCallback"],"sources":["https:/framerusercontent.com/modules/CarjGmWJmWIf7jL5PtO4/RIQkAa3lpQPYUqWkWJF8/StoreButtons.js"],"sourcesContent":["// Instructions: Create a Framer component that follows the Framer component rules and achieves the user's goal.\n// Goal: erstelle. ir 2 supe clan cts button for google play store un dapple store wo ich dann den link eifugen kann zuder mobilee app\nimport{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import*as React from\"react\";import{addPropertyControls,ControlType}from\"framer\";/**\n * @framerIntrinsicWidth 420\n * @framerIntrinsicHeight 64\n *\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight any-prefer-fixed\n */export default function StoreButtons(props){const{googlePlayLink,appStoreLink,showGooglePlay,showAppStore,orientation,gap,styleType,backgroundColor,textColor,borderColor,borderRadius,paddingVertical,paddingHorizontal,labelFont,storeFont,openInNewTab,relNoFollow,style}=props;const isRow=orientation===\"row\";const rel=React.useMemo(()=>{const base=[];if(openInNewTab)base.push(\"noopener\",\"noreferrer\");if(relNoFollow)base.push(\"nofollow\");return base.length?base.join(\" \"):undefined;},[openInNewTab,relNoFollow]);const target=openInNewTab?\"_blank\":undefined;const baseButtonStyle=React.useMemo(()=>{const filled=styleType===\"filled\";return{display:\"flex\",alignItems:\"center\",justifyContent:\"center\",gap:10,width:isRow?\"100%\":\"max-content\",padding:`${Math.max(0,paddingVertical)}px ${Math.max(0,paddingHorizontal)}px`,borderRadius,textDecoration:\"none\",userSelect:\"none\",WebkitTapHighlightColor:\"transparent\",transition:\"transform 120ms ease, background-color 120ms ease, color 120ms ease, border-color 120ms ease, box-shadow 120ms ease\",border:`1px solid ${filled?\"transparent\":borderColor}`,background:filled?backgroundColor:\"transparent\",color:textColor,boxShadow:filled?\"0 6px 18px rgba(0,0,0,0.10)\":\"none\",transform:\"translateZ(0)\"};},[styleType,backgroundColor,textColor,borderColor,borderRadius,paddingVertical,paddingHorizontal,isRow]);const labelStyle=React.useMemo(()=>{return{margin:0,opacity:.9,...labelFont,lineHeight:labelFont?.lineHeight??\"1em\"};},[labelFont]);const storeStyle=React.useMemo(()=>{return{margin:0,...storeFont,lineHeight:storeFont?.lineHeight??\"1em\"};},[storeFont]);const iconWrapStyle=React.useMemo(()=>({width:22,height:22,display:\"flex\",alignItems:\"center\",justifyContent:\"center\",flex:\"0 0 auto\",color:textColor}),[textColor]);const contentStyle=React.useMemo(()=>({display:\"flex\",flexDirection:\"column\",gap:3,alignItems:\"flex-start\",justifyContent:\"center\",minWidth:\"max-content\"}),[]);const containerStyle=React.useMemo(()=>({position:\"relative\",width:\"100%\",height:\"100%\",display:\"flex\",flexDirection:isRow?\"row\":\"column\",alignItems:isRow?\"stretch\":\"center\",justifyContent:\"center\",gap:Math.max(0,gap),...style||{}}),[isRow,gap,style]);const onEnter=React.useCallback(e=>{const el=e.currentTarget;el.style.boxShadow=styleType===\"filled\"?\"0 10px 26px rgba(0,0,0,0.16)\":\"0 10px 26px rgba(0,0,0,0.10)\";el.style.transform=\"translateY(-1px)\";},[styleType]);const onLeave=React.useCallback(e=>{const el=e.currentTarget;el.style.boxShadow=styleType===\"filled\"?\"0 6px 18px rgba(0,0,0,0.10)\":\"none\";el.style.transform=\"translateY(0px)\";},[styleType]);const onDown=React.useCallback(e=>{const el=e.currentTarget;el.style.transform=\"translateY(0px) scale(0.99)\";},[]);const onUp=React.useCallback(e=>{const el=e.currentTarget;el.style.transform=\"translateY(-1px)\";},[]);const googleAria=\"Disponible sur Google Play\";const appleAria=\"T\\xe9l\\xe9charger sur l’App Store\";const googleDisabled=!googlePlayLink||googlePlayLink.trim().length===0;const appleDisabled=!appStoreLink||appStoreLink.trim().length===0;const disabledStyle={opacity:.5,cursor:\"not-allowed\",pointerEvents:\"none\",boxShadow:\"none\",transform:\"none\"};return /*#__PURE__*/_jsxs(\"div\",{style:containerStyle,\"aria-label\":\"Boutons des stores\",children:[showGooglePlay&&/*#__PURE__*/_jsxs(\"a\",{href:googleDisabled?undefined:googlePlayLink,target:googleDisabled?undefined:target,rel:googleDisabled?undefined:rel,style:{...baseButtonStyle,...googleDisabled?disabledStyle:{cursor:\"pointer\"}},\"aria-label\":googleAria,role:\"button\",onMouseEnter:googleDisabled?undefined:onEnter,onMouseLeave:googleDisabled?undefined:onLeave,onMouseDown:googleDisabled?undefined:onDown,onMouseUp:googleDisabled?undefined:onUp,children:[/*#__PURE__*/_jsx(\"span\",{style:iconWrapStyle,\"aria-hidden\":\"true\",children:/*#__PURE__*/_jsx(GooglePlayIcon,{})}),/*#__PURE__*/_jsxs(\"span\",{style:contentStyle,children:[/*#__PURE__*/_jsx(\"span\",{style:labelStyle,children:\"Disponible sur\"}),/*#__PURE__*/_jsx(\"span\",{style:storeStyle,children:\"Google Play\"})]})]}),showAppStore&&/*#__PURE__*/_jsxs(\"a\",{href:appleDisabled?undefined:appStoreLink,target:appleDisabled?undefined:target,rel:appleDisabled?undefined:rel,style:{...baseButtonStyle,...appleDisabled?disabledStyle:{cursor:\"pointer\"}},\"aria-label\":appleAria,role:\"button\",onMouseEnter:appleDisabled?undefined:onEnter,onMouseLeave:appleDisabled?undefined:onLeave,onMouseDown:appleDisabled?undefined:onDown,onMouseUp:appleDisabled?undefined:onUp,children:[/*#__PURE__*/_jsx(\"span\",{style:iconWrapStyle,\"aria-hidden\":\"true\",children:/*#__PURE__*/_jsx(AppleIcon,{})}),/*#__PURE__*/_jsxs(\"span\",{style:contentStyle,children:[/*#__PURE__*/_jsx(\"span\",{style:labelStyle,children:\"T\\xe9l\\xe9charger sur\"}),/*#__PURE__*/_jsx(\"span\",{style:storeStyle,children:\"l’App Store\"})]})]})]});}function GooglePlayIcon(){return /*#__PURE__*/_jsxs(\"svg\",{width:\"22\",height:\"22\",viewBox:\"0 0 24 24\",fill:\"none\",\"aria-hidden\":\"true\",children:[/*#__PURE__*/_jsx(\"path\",{d:\"M4.5 3.5c-.3.3-.5.8-.5 1.4v14.2c0 .6.2 1.1.5 1.4l9-9-9-9Z\",fill:\"currentColor\",opacity:\"0.9\"}),/*#__PURE__*/_jsx(\"path\",{d:\"M14.4 10.6 6.2 2.4c.4-.1.9 0 1.4.3l9.4 5.4-2.6 2.5Z\",fill:\"currentColor\",opacity:\"0.75\"}),/*#__PURE__*/_jsx(\"path\",{d:\"M17.8 8.1 20.6 9.7c1 .6 1 2 0 2.6l-2.8 1.6-3-2.9 3-2.9Z\",fill:\"currentColor\",opacity:\"0.6\"}),/*#__PURE__*/_jsx(\"path\",{d:\"M14.4 13.4 6.2 21.6c.4.1.9 0 1.4-.3l9.4-5.4-2.6-2.5Z\",fill:\"currentColor\",opacity:\"0.75\"})]});}function AppleIcon(){return /*#__PURE__*/_jsxs(\"svg\",{width:\"22\",height:\"22\",viewBox:\"0 0 24 24\",fill:\"none\",\"aria-hidden\":\"true\",children:[/*#__PURE__*/_jsx(\"path\",{d:\"M16.7 12.7c0 2.3 2 3.1 2 3.1s-1.5 4.2-3.6 4.2c-1 0-1.7-.7-2.7-.7s-1.8.7-2.8.7c-1.9 0-4.2-3.9-4.2-7.3 0-2.8 1.6-4.6 3.6-4.6 1 0 2 .8 2.7.8.7 0 1.9-.9 3.1-.9.5 0 2.2.1 3.3 1.7-.1.1-2 .9-2.4 3Z\",fill:\"currentColor\",opacity:\"0.9\"}),/*#__PURE__*/_jsx(\"path\",{d:\"M14.6 4.4c.7-.8 1.2-2 1.1-3.1-1.1.1-2.3.7-3 1.5-.7.8-1.3 2-1.1 3.1 1.2.1 2.3-.7 3-1.5Z\",fill:\"currentColor\",opacity:\"0.7\"})]});}addPropertyControls(StoreButtons,{googlePlayLink:{type:ControlType.Link,title:\"Google Play Link\",defaultValue:\"https://play.google.com/store\"},appStoreLink:{type:ControlType.Link,title:\"App Store Link\",defaultValue:\"https://apps.apple.com\"},showGooglePlay:{type:ControlType.Boolean,title:\"Show Google\",defaultValue:true,enabledTitle:\"Show\",disabledTitle:\"Hide\"},showAppStore:{type:ControlType.Boolean,title:\"Show Apple\",defaultValue:true,enabledTitle:\"Show\",disabledTitle:\"Hide\"},orientation:{type:ControlType.Enum,title:\"Layout\",options:[\"row\",\"column\"],optionTitles:[\"Row\",\"Column\"],defaultValue:\"column\",displaySegmentedControl:true},gap:{type:ControlType.Number,title:\"Gap\",defaultValue:12,min:0,max:40,step:1,unit:\"px\"},styleType:{type:ControlType.Enum,title:\"Style\",options:[\"filled\",\"outlined\"],optionTitles:[\"Filled\",\"Outlined\"],defaultValue:\"filled\",displaySegmentedControl:true},backgroundColor:{type:ControlType.Color,title:\"Background\",defaultValue:\"#000000\"},textColor:{type:ControlType.Color,title:\"Text\",defaultValue:\"#FFFFFF\"},borderColor:{type:ControlType.Color,title:\"Border\",defaultValue:\"#EEEEEE\"},borderRadius:{type:ControlType.BorderRadius,title:\"Radius\",defaultValue:\"14px\"},paddingVertical:{type:ControlType.Number,title:\"Pad Y\",defaultValue:12,min:6,max:30,step:1,unit:\"px\"},paddingHorizontal:{type:ControlType.Number,title:\"Pad X\",defaultValue:16,min:8,max:40,step:1,unit:\"px\"},labelFont:{type:ControlType.Font,title:\"Label Font\",controls:\"extended\",defaultFontType:\"sans-serif\",defaultValue:{fontSize:\"12px\",variant:\"Medium\",letterSpacing:\"-0.01em\",lineHeight:\"1em\"}},storeFont:{type:ControlType.Font,title:\"Store Font\",controls:\"extended\",defaultFontType:\"sans-serif\",defaultValue:{fontSize:\"16px\",variant:\"Semibold\",letterSpacing:\"-0.02em\",lineHeight:\"1em\"}},openInNewTab:{type:ControlType.Boolean,title:\"New Tab\",defaultValue:true,enabledTitle:\"Yes\",disabledTitle:\"No\"},relNoFollow:{type:ControlType.Boolean,title:\"Nofollow\",defaultValue:false,enabledTitle:\"On\",disabledTitle:\"Off\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"StoreButtons\",\"slots\":[],\"annotations\":{\"framerIntrinsicHeight\":\"64\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\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