{"version":3,"file":"GoogleLoginButton.C-LqUvUP.mjs","names":["useCallback"],"sources":["https:/framerusercontent.com/modules/j2sdyq2zdTa2Vkw45Ya5/c579NpJMAEEezSYeybgA/GoogleLoginButton.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{useCallback}from\"react\";import{useTracking,addPropertyControls,ControlType}from\"framer\";/**\n * @framerSupportedLayoutWidth auto\n * @framerSupportedLayoutHeight fixed\n * @framerIntrinsicWidth 200\n * @framerIntrinsicHeight 32\n */export default function GoogleLoginButton(props){const track=useTracking();const{theme,size,shape,text,minWidth}=props;const renderButton=node=>{if(!window.google?.accounts){console.log(\"UNEXPECTED WINDOW.GOOGLE STATE\");}window.google.accounts.id.renderButton(node,{theme,size,shape,text,width:minWidth,state:\"google-btn\",click_listener:()=>{track(\"google-btn-click\");}});};const refCallback=useCallback(node=>{if(node===null)return;if(window.google?.accounts){renderButton(node);}else{document.addEventListener(\"__framer-gsi-loaded\",()=>renderButton(node),{once:true});}},[]);return /*#__PURE__*/_jsx(\"div\",{ref:refCallback});}addPropertyControls(GoogleLoginButton,{theme:{type:ControlType.Enum,defaultValue:\"outline\",options:[\"outline\",\"filled_blue\",\"filled_black\"],optionTitles:[\"Standard\",\"Blue-filled\",\"Black-filled\"]},size:{type:ControlType.Enum,defaultValue:\"large\",options:[\"large\",\"medium\",\"small\"],optionTitles:[\"Large\",\"Medium\",\"Small\"]},text:{type:ControlType.Enum,defaultValue:\"signin_with\",options:[\"signin_with\",\"signup_with\",\"continue_with\",\"signin\"],optionTitles:[\"Sign in with Google\",\"Sign up with Google\",\"Continue with Google\",\"Sign in\"]},shape:{type:ControlType.Enum,defaultValue:\"rectangular\",options:[\"rectangular\",\"pill\"],optionTitles:[\"Rectangular\",\"Pill\"]},minWidth:{type:ControlType.Number,title:\"Min. Width\",defaultValue:0,min:0,max:400,displayStepper:true}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"GoogleLoginButton\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"fixed\",\"framerIntrinsicHeight\":\"32\",\"framerIntrinsicWidth\":\"200\",\"framerSupportedLayoutWidth\":\"auto\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./GoogleLoginButton.map"],"mappings":"4LAKG,SAAwB,EAAkB,EAAM,CAAC,IAAM,EAAM,GAAa,CAAM,CAAC,QAAM,OAAK,QAAM,OAAK,YAAU,EAAY,EAAa,GAAM,CAAK,EAAO,QAAQ,UAAU,QAAQ,IAAI,iCAAiC,CAAE,EAAO,OAAO,SAAS,GAAG,aAAa,EAAK,CAAC,QAAM,OAAK,QAAM,OAAK,MAAM,EAAS,MAAM,aAAa,mBAAmB,CAAC,EAAM,mBAAmB,EAAG,CAAC,EAA8M,OAAoB,EAAK,MAAM,CAAC,IAAzNA,EAAY,GAAM,CAAI,IAAO,OAAe,EAAO,QAAQ,SAAU,EAAa,EAAK,CAAO,SAAS,iBAAiB,0BAA0B,EAAa,EAAK,CAAC,CAAC,KAAK,GAAK,CAAC,GAAI,EAAE,CAAC,CAAiD,CAAC,sBAL1kB,IAA+B,IAAgE,CAK6e,EAAoB,EAAkB,CAAC,MAAM,CAAC,KAAK,EAAY,KAAK,aAAa,UAAU,QAAQ,CAAC,UAAU,cAAc,eAAe,CAAC,aAAa,CAAC,WAAW,cAAc,eAAe,CAAC,CAAC,KAAK,CAAC,KAAK,EAAY,KAAK,aAAa,QAAQ,QAAQ,CAAC,QAAQ,SAAS,QAAQ,CAAC,aAAa,CAAC,QAAQ,SAAS,QAAQ,CAAC,CAAC,KAAK,CAAC,KAAK,EAAY,KAAK,aAAa,cAAc,QAAQ,CAAC,cAAc,cAAc,gBAAgB,SAAS,CAAC,aAAa,CAAC,sBAAsB,sBAAsB,uBAAuB,UAAU,CAAC,CAAC,MAAM,CAAC,KAAK,EAAY,KAAK,aAAa,cAAc,QAAQ,CAAC,cAAc,OAAO,CAAC,aAAa,CAAC,cAAc,OAAO,CAAC,CAAC,SAAS,CAAC,KAAK,EAAY,OAAO,MAAM,aAAa,aAAa,EAAE,IAAI,EAAE,IAAI,IAAI,eAAe,GAAK,CAAC,CAAC"}