{"version":3,"file":"CommunityButton.DHpiFuyk.mjs","names":["React.useState","__esmMin","_e","p","c","init_jsx_runtime","init_npm_react_18_3_1","addPropertyControls","init_framer_D1IzEvwH","ControlType","HeroTuneCommunity","props","hovered","setHovered","floating","url","title","showStatus","accentColor","subtitle","init_CommunityButton"],"sources":["https:/framerusercontent.com/modules/LF99Kt4Z3kRZ6xZnHSaK/chhBsYzqFvtDQlhuG5jn/CommunityButton.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import*as React from\"react\";import{addPropertyControls,ControlType}from\"framer\";export default function HeroTuneCommunity(props){const{title,subtitle,url,accentColor,showStatus,floating}=props;const[hovered,setHovered]=React.useState(false);const style={position:floating?\"fixed\":\"relative\",right:floating?\"24px\":\"auto\",bottom:floating?\"24px\":\"auto\",zIndex:floating?9999:1,width:\"min(100%, 360px)\",boxSizing:\"border-box\",fontFamily:\"Inter, sans-serif\"};return /*#__PURE__*/_jsxs(\"div\",{className:floating?\"ht-community-floating\":undefined,style:style,children:[/*#__PURE__*/_jsx(\"style\",{children:`\n                .ht-community-button {\n                    display: flex;\n                    align-items: center;\n                    gap: 13px;\n                    width: 100%;\n                    padding: 13px 16px;\n                    border-radius: 17px;\n                    background: #FFFFFF;\n                    border: 1px solid #EAEAEA;\n                    color: #171717;\n                    text-decoration: none;\n                    box-sizing: border-box;\n                    box-shadow: 0 8px 26px rgba(0,0,0,.07);\n                    transition: transform .25s ease,\n                                box-shadow .25s ease,\n                                background .25s ease, border-color .25s ease;\n                }\n\n                .ht-community-button:hover {\n                    transform: translateY(-4px);\n                    background: #FAFAFA;\n                    border-color: #DEDEDE;\n                    box-shadow: 0 12px 32px rgba(0,0,0,.11);\n                }\n\n                .ht-community-icon {\n                    width: 45px;\n                    height: 45px;\n                    flex-shrink: 0;\n                    display: flex;\n                    justify-content: center;\n                    align-items: center;\n                    background: #F2F2F2;\n                    border-radius: 13px;\n                }\n\n                .ht-community-arrow {\n                    transition: transform .25s ease;\n                    flex-shrink: 0;\n                }\n\n                .ht-community-button:hover .ht-community-arrow {\n                    transform: translate(3px,-3px);\n                }\n\n                @media(max-width: 600px) {\n                    body:has([data-ht-mobile-pair=\"true\"]) .ht-community-floating {\n                        left: auto !important;\n                        right: 16px !important;\n                        bottom: max(16px, env(safe-area-inset-bottom)) !important;\n                        width: calc((100% - 40px) / 2) !important;\n                        max-width: none !important;\n                    }\n\n                    body:has([data-ht-mobile-pair=\"true\"]) .ht-community-floating > .ht-community-button {\n                        height: 68px;\n                        padding: 8px;\n                        gap: 7px;\n                        border-radius: 13px;\n                        transform: none;\n                    }\n\n                    body:has([data-ht-mobile-pair=\"true\"]) .ht-community-floating .ht-community-icon {\n                        width: 30px;\n                        height: 30px;\n                    }\n\n                    body:has([data-ht-mobile-pair=\"true\"]) .ht-community-floating .ht-community-arrow {\n                        display: none;\n                    }\n\n                    body:has([data-ht-mobile-pair=\"true\"]) .ht-community-floating > .ht-community-button > div {\n                        overflow-wrap: anywhere;\n                    }\n\n                    .ht-community-button {\n                        padding: 11px 13px;\n                        gap: 10px;\n                        border-radius: 15px;\n                    }\n                    .ht-community-icon {\n                        width: 40px;\n                        height: 40px;\n                    }\n                }\n\n                @media(prefers-reduced-motion: reduce) {\n                    .ht-community-button,\n                    .ht-community-arrow {\n                        transition: none;\n                    }\n                }\n            `}),/*#__PURE__*/_jsxs(\"a\",{href:url,className:\"ht-community-button\",\"aria-label\":title,onMouseEnter:()=>setHovered(true),onMouseLeave:()=>setHovered(false),children:[/*#__PURE__*/_jsx(\"div\",{className:\"ht-community-icon\",children:/*#__PURE__*/_jsxs(\"svg\",{width:\"27\",height:\"27\",viewBox:\"0 0 32 32\",fill:\"none\",\"aria-hidden\":\"true\",children:[/*#__PURE__*/_jsx(\"path\",{d:\"M6 7.5C6 5.57 7.57 4 9.5 4H22.5C24.43 4 26 5.57 26 7.5V17.5C26 19.43 24.43 21 22.5 21H14L8 26V21.1C6.82 20.53 6 19.33 6 17.9V7.5Z\",stroke:\"#222222\",strokeWidth:\"2\",strokeLinecap:\"round\",strokeLinejoin:\"round\"}),/*#__PURE__*/_jsx(\"path\",{d:\"M11 12.5H18\",stroke:\"#222222\",strokeWidth:\"1.8\",strokeLinecap:\"round\",opacity:\"0.9\"})]})}),/*#__PURE__*/_jsxs(\"div\",{style:{flex:1,minWidth:0,display:\"flex\",flexDirection:\"column\",gap:5},children:[/*#__PURE__*/_jsx(\"span\",{style:{fontSize:13,fontWeight:650,letterSpacing:\"-.25px\",color:\"#171717\"},children:title}),/*#__PURE__*/_jsxs(\"span\",{style:{display:\"flex\",alignItems:\"center\",gap:6,fontSize:11,color:\"#777777\"},children:[showStatus&&/*#__PURE__*/_jsx(\"span\",{style:{width:7,height:7,borderRadius:\"50%\",background:accentColor,boxShadow:`0 0 8px ${accentColor}`}}),subtitle===\"M\\xfczik topluluğuna katıl\"?\"M\\xfczik Topluluğu\":subtitle]})]}),/*#__PURE__*/_jsx(\"svg\",{className:\"ht-community-arrow\",width:\"19\",height:\"19\",viewBox:\"0 0 24 24\",fill:\"none\",children:/*#__PURE__*/_jsx(\"path\",{d:\"M7 17L17 7M7 7H17V17\",stroke:\"#222222\",strokeWidth:\"1.8\",strokeLinecap:\"round\",strokeLinejoin:\"round\"})})]})]});}HeroTuneCommunity.defaultProps={title:\"Topluluk Sohbet Sunucusu\",subtitle:\"M\\xfczik Topluluğu\",url:\"https://www.herotune.site/muzik-toplulugu-chat\",accentColor:\"#52D58B\",showStatus:true,floating:true};addPropertyControls(HeroTuneCommunity,{title:{type:ControlType.String,title:\"Başlık\"},subtitle:{type:ControlType.String,title:\"Alt Başlık\"},url:{type:ControlType.String,title:\"Bağlantı\"},accentColor:{type:ControlType.Color,title:\"Durum Rengi\"},showStatus:{type:ControlType.Boolean,title:\"Durum Noktası\"},floating:{type:ControlType.Boolean,title:\"Sabit Konum\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"HeroTuneCommunity\",\"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