{"version":3,"file":"WhatsAppButton.Ce1FSobR.mjs","names":["_Fragment"],"sources":["https:/framerusercontent.com/modules/rYNHUsEy7oZtjnboDe24/3QZ81Lc7Qnt1fnM6Hweo/WhatsAppButton.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs,Fragment as _Fragment}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";const WhatsAppSVG=()=>/*#__PURE__*/_jsx(\"svg\",{width:\"28\",height:\"28\",viewBox:\"0 0 24 24\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\",children:/*#__PURE__*/_jsx(\"path\",{d:\"M20.472 3.528A11.868 11.868 0 0 0 12.001.001C5.468.001.145 5.324.142 11.859c0 2.09.546 4.13 1.585 5.929L.05 23.999l6.363-1.67a11.903 11.903 0 0 0 5.585 1.422h.005c6.53 0 11.854-5.323 11.857-11.859a11.79 11.79 0 0 0-3.388-8.364zm-8.471 18.24h-.004a9.88 9.88 0 0 1-5.038-1.377l-.361-.215-3.742.982 1-3.648-.235-.374a9.859 9.859 0 0 1-1.511-5.276c.002-5.45 4.437-9.883 9.894-9.883a9.827 9.827 0 0 1 6.993 2.898 9.823 9.823 0 0 1 2.892 6.994c-.003 5.452-4.438 9.899-9.888 9.899zm5.424-7.406c-.298-.149-1.763-.87-2.036-.968-.273-.099-.472-.149-.671.149-.198.298-.769.968-.942 1.167-.174.199-.348.224-.645.075-.298-.15-1.257-.463-2.393-1.475-.884-.788-1.48-1.761-1.654-2.059-.174-.298-.018-.459.13-.607.134-.133.298-.348.447-.522.15-.175.199-.299.299-.498.099-.198.05-.372-.025-.521-.075-.149-.671-1.617-.919-2.213-.242-.581-.488-.502-.671-.511-.174-.008-.372-.01-.571-.01-.199 0-.522.074-.795.372-.273.298-1.043 1.02-1.043 2.488 0 1.467 1.068 2.886 1.217 3.085.149.198 2.101 3.206 5.09 4.495.711.307 1.266.49 1.699.627.714.227 1.364.195 1.878.118.572-.085 1.763-.721 2.011-1.418.248-.696.248-1.293.174-1.418-.075-.124-.273-.199-.571-.348z\",fill:\"white\"})});/**\n * @framerSupportedLayoutWidth auto\n * @framerSupportedLayoutHeight auto\n */export default function WhatsAppButton({phoneNumber,message,tooltipText,size,bottomOffset,rightOffset}){const cleanNumber=phoneNumber.replace(/[^0-9]/g,\"\");const encodedMessage=encodeURIComponent(message);const href=`https://wa.me/${cleanNumber}?text=${encodedMessage}`;return /*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(\"style\",{children:`\n                @keyframes wa-pulse {\n                    0% { box-shadow: 0 0 0 0 rgba(37,211,102,0.5); }\n                    70% { box-shadow: 0 0 0 14px rgba(37,211,102,0); }\n                    100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }\n                }\n                .wa-btn {\n                    display: flex;\n                    align-items: center;\n                    justify-content: center;\n                    border-radius: 50%;\n                    background: #25D366;\n                    cursor: pointer;\n                    text-decoration: none;\n                    transition: transform 0.2s ease, background 0.2s ease;\n                    animation: wa-pulse 2.5s infinite;\n                }\n                .wa-btn:hover {\n                    transform: scale(1.1);\n                    background: #20bb59;\n                    animation: none;\n                    box-shadow: 0 8px 32px rgba(37,211,102,0.45);\n                }\n                .wa-tooltip {\n                    background: rgba(18,18,18,0.92);\n                    color: #fff;\n                    font-family: 'Poppins', sans-serif;\n                    font-size: 13px;\n                    font-weight: 500;\n                    padding: 6px 14px;\n                    border-radius: 8px;\n                    white-space: nowrap;\n                    opacity: 0;\n                    pointer-events: none;\n                    transform: translateX(8px);\n                    transition: opacity 0.2s ease, transform 0.2s ease;\n                    border: 1px solid rgba(255,255,255,0.1);\n                }\n                .wa-wrapper:hover .wa-tooltip {\n                    opacity: 1;\n                    transform: translateX(0);\n                }\n            `}),/*#__PURE__*/_jsx(\"div\",{style:{position:\"fixed\",bottom:bottomOffset,right:rightOffset,zIndex:99999,display:\"flex\",alignItems:\"center\",gap:12,pointerEvents:\"auto\"},children:/*#__PURE__*/_jsxs(\"div\",{className:\"wa-wrapper\",style:{display:\"flex\",alignItems:\"center\",gap:12},children:[/*#__PURE__*/_jsx(\"span\",{className:\"wa-tooltip\",children:tooltipText}),/*#__PURE__*/_jsx(\"a\",{href:href,target:\"_blank\",rel:\"noopener noreferrer\",className:\"wa-btn\",style:{width:size,height:size,minWidth:size,minHeight:size},\"aria-label\":\"Chat on WhatsApp\",children:/*#__PURE__*/_jsx(WhatsAppSVG,{})})]})})]});}WhatsAppButton.defaultProps={phoneNumber:\"971547578282\",message:\"Hi! I'd like to discuss a project with Proud Lion Studios.\",tooltipText:\"Chat on WhatsApp\",size:60,bottomOffset:32,rightOffset:32};addPropertyControls(WhatsAppButton,{phoneNumber:{type:ControlType.String,title:\"Phone Number\",defaultValue:\"971547578282\",description:\"Include country code, no + or spaces\"},message:{type:ControlType.String,title:\"Pre-filled Message\",defaultValue:\"Hi! I'd like to discuss a project with Proud Lion Studios.\",displayTextArea:true},tooltipText:{type:ControlType.String,title:\"Tooltip\",defaultValue:\"Chat on WhatsApp\"},size:{type:ControlType.Number,title:\"Button Size\",defaultValue:60,min:40,max:80,step:4},bottomOffset:{type:ControlType.Number,title:\"Bottom\",defaultValue:32,min:0,max:200},rightOffset:{type:ControlType.Number,title:\"Right\",defaultValue:32,min:0,max:200}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"WhatsAppButton\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutHeight\":\"auto\",\"framerSupportedLayoutWidth\":\"auto\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./WhatsAppButton.map"],"mappings":"0KAGG,SAAwB,EAAe,CAAC,cAAY,UAAQ,cAAY,OAAK,eAAa,eAAa,CAAsG,IAAM,EAAK,iBAA9F,EAAY,QAAQ,UAAU,EAA2F,EAAE,QAApE,mBAAmB,CAAsE,IAAI,OAAoB,EAAMA,EAAU,CAAC,SAAS,CAAc,EAAK,QAAQ,CAAC,SAAS;;;;;;;;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