{"version":3,"file":"StoreButtons.B9p59ndC.mjs","names":[],"sources":["https:/framerusercontent.com/modules/NqAqurbFEkJdzeLQP3UR/nNiS95NgRVmQlhsioYWW/StoreButtons.js"],"sourcesContent":["// App Store and Google Play Store buttons with horizontal layout and responsive wrapping\nimport{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";/**\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight auto\n */export default function StoreButtons(props){const{showAppStore,showGooglePlay,appStoreLink,googlePlayLink,buttonSpacing,buttonHeight,buttonWidth,borderRadius,backgroundColor,textColor,font}=props;// *** 1. Olay Tetikleme Fonksiyonu ***\nconst trackAnalyticsEvent=(eventName,linkUrl)=>{if(typeof window!==\"undefined\"&&window.gtag){// Google Analytics 4 (GA4) formatında olay gönderimi\nwindow.gtag(\"event\",eventName,{link_url:linkUrl,// Olayın sayfa üzerindeki konumunu belirtmek için ek bir parametre\ncomponent_name:\"StoreButtons\"});console.log(`GA Event Sent: ${eventName} for ${linkUrl}`);}else{// gtag yüklenmemişse veya önizlemede çalışmıyorsa uyarı ver\nconsole.warn(\"Google Analytics (gtag) is not loaded.\");}};const buttonStyle={display:\"flex\",alignItems:\"center\",justifyContent:\"center\",height:buttonHeight,width:buttonWidth,backgroundColor,color:textColor,borderRadius,textDecoration:\"none\",border:\"1px solid #ddd\",padding:\"0 20px\",cursor:\"pointer\",transition:\"all 0.2s ease\",...font};const hoverStyle={transform:\"scale(1.02)\",boxShadow:\"0 4px 12px rgba(0,0,0,0.15)\"};return /*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",flexDirection:\"row\",flexWrap:\"wrap\",gap:buttonSpacing,width:\"100%\",alignItems:\"center\",justifyContent:\"flex-start\"},children:[showAppStore&&/*#__PURE__*/_jsx(\"a\",{href:appStoreLink,// *** 2. App Store Tıklama Olayı Eklendi ***\nonClick:()=>trackAnalyticsEvent(\"app_store_button_click\",appStoreLink),style:buttonStyle,onMouseEnter:e=>{Object.assign(e.currentTarget.style,hoverStyle);},onMouseLeave:e=>{e.currentTarget.style.transform=\"scale(1)\";e.currentTarget.style.boxShadow=\"none\";},role:\"button\",\"aria-label\":\"Download on the App Store\",children:/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",alignItems:\"center\",gap:12},children:[/*#__PURE__*/_jsx(\"svg\",{width:\"24\",height:\"24\",viewBox:\"0 0 24 24\",fill:\"currentColor\",children:/*#__PURE__*/_jsx(\"path\",{d:\"M18.71 19.5c-.83 1.24-1.71 2.45-3.05 2.47-1.34.03-1.77-.79-3.29-.79-1.53 0-2 .77-3.27.82-1.31.05-2.3-1.32-3.14-2.53C4.25 17 2.94 12.45 4.7 9.39c.87-1.52 2.43-2.48 4.12-2.51 1.28-.02 2.5.87 3.29.87.78 0 2.26-1.07 3.81-.91.65.03 2.47.26 3.64 1.98-.09.06-2.17 1.28-2.15 3.81.03 3.02 2.65 4.03 2.68 4.04-.03.07-.42 1.44-1.38 2.83M13 3.5c.73-.83 1.94-1.46 2.94-1.5.13 1.17-.34 2.35-1.04 3.19-.69.85-1.83 1.51-2.95 1.42-.15-1.15.41-2.35 1.05-3.11z\"})}),/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",flexDirection:\"column\",alignItems:\"flex-start\"},children:[/*#__PURE__*/_jsx(\"div\",{style:{fontSize:\"12px\",opacity:.8},children:\"İndir\"}),/*#__PURE__*/_jsx(\"div\",{style:{fontSize:\"18px\",fontWeight:\"bold\",lineHeight:1},children:\"App Store\"})]})]})}),showGooglePlay&&/*#__PURE__*/_jsx(\"a\",{href:googlePlayLink,// *** 3. Google Play Tıklama Olayı Eklendi ***\nonClick:()=>trackAnalyticsEvent(\"google_play_button_click\",googlePlayLink),style:buttonStyle,onMouseEnter:e=>{Object.assign(e.currentTarget.style,hoverStyle);},onMouseLeave:e=>{e.currentTarget.style.transform=\"scale(1)\";e.currentTarget.style.boxShadow=\"none\";},role:\"button\",\"aria-label\":\"Get it on Google Play\",children:/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",alignItems:\"center\",gap:12},children:[/*#__PURE__*/_jsx(\"svg\",{width:\"24\",height:\"24\",viewBox:\"0 0 24 24\",fill:\"currentColor\",children:/*#__PURE__*/_jsx(\"path\",{d:\"M3,20.5V3.5C3,2.91 3.34,2.39 3.84,2.15L13.69,12L3.84,21.85C3.34,21.6 3,21.09 3,20.5M16.81,15.12L6.05,21.34L14.54,12.85L16.81,15.12M20.16,10.81C20.5,11.08 20.75,11.5 20.75,12C20.75,12.5 20.53,12.9 20.18,13.18L17.89,14.5L15.39,12L17.89,9.5L20.16,10.81M6.05,2.66L16.81,8.88L14.54,11.15L6.05,2.66Z\"})}),/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",flexDirection:\"column\",alignItems:\"flex-start\"},children:[/*#__PURE__*/_jsx(\"div\",{style:{fontSize:\"12px\",opacity:.8},children:\"İNDİR\"}),/*#__PURE__*/_jsx(\"div\",{style:{fontSize:\"18px\",fontWeight:\"bold\",lineHeight:1},children:\"Google Play\"})]})]})})]});}addPropertyControls(StoreButtons,{showAppStore:{type:ControlType.Boolean,title:\"Show App Store\",defaultValue:true,enabledTitle:\"Show\",disabledTitle:\"Hide\"},appStoreLink:{type:ControlType.String,title:\"App Store Link\",defaultValue:\"https://apps.apple.com/\",hidden:({showAppStore})=>!showAppStore},showGooglePlay:{type:ControlType.Boolean,title:\"Show Google Play\",defaultValue:true,enabledTitle:\"Show\",disabledTitle:\"Hide\"},googlePlayLink:{type:ControlType.String,title:\"Google Play Link\",defaultValue:\"https://play.google.com/store\",hidden:({showGooglePlay})=>!showGooglePlay},buttonSpacing:{type:ControlType.Number,title:\"Button Spacing\",defaultValue:16,min:0,max:40,unit:\"px\"},buttonHeight:{type:ControlType.Number,title:\"Button Height\",defaultValue:60,min:40,max:80,unit:\"px\"},buttonWidth:{type:ControlType.Number,title:\"Button Width\",defaultValue:200,min:150,max:300,unit:\"px\"},borderRadius:{type:ControlType.Number,title:\"Border Radius\",defaultValue:8,min:0,max:20,unit:\"px\"},backgroundColor:{type:ControlType.Color,title:\"Background Color\",defaultValue:\"#000000\"},textColor:{type:ControlType.Color,title:\"Text Color\",defaultValue:\"#FFFFFF\"},font:{type:ControlType.Font,title:\"Font\",defaultValue:{fontSize:\"14px\",variant:\"Medium\",letterSpacing:\"-0.01em\",lineHeight:\"1.2em\"},controls:\"extended\",defaultFontType:\"sans-serif\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"StoreButtons\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"auto\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./StoreButtons.map"],"mappings":"iLAIG,SAAwB,EAAa,EAAM,CAAC,GAAK,CAAC,eAAa,iBAAe,eAAa,iBAAe,gBAAc,eAAa,cAAY,eAAa,kBAAgB,YAAU,QAAM,EAC3L,GAAqB,EAAU,IAAU,CAAW,IAAS,QAAa,EAAO,MACvF,EAAO,KAAK,QAAQ,EAAU,CAAC,SAAS,EACxC,eAAe,eAAe,CAAC,CAAC,QAAQ,IAAI,kBAAkB,EAAU,OAAO,IAAU,EACzF,QAAQ,KAAK,yCAAyC,EAAU,EAAY,CAAC,QAAQ,OAAO,WAAW,SAAS,eAAe,SAAS,OAAO,EAAa,MAAM,EAAY,kBAAgB,MAAM,EAAU,eAAa,eAAe,OAAO,OAAO,iBAAiB,QAAQ,SAAS,OAAO,UAAU,WAAW,gBAAgB,GAAG,EAAK,CAAO,EAAW,CAAC,UAAU,cAAc,UAAU,8BAA8B,CAAC,OAAoB,EAAM,MAAM,CAAC,MAAM,CAAC,QAAQ,OAAO,cAAc,MAAM,SAAS,OAAO,IAAI,EAAc,MAAM,OAAO,WAAW,SAAS,eAAe,aAAa,CAAC,SAAS,CAAC,GAA2B,EAA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