(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[185,735],{6382:function(e,n,o){Promise.resolve().then(o.bind(o,1901))},8735:function(e,n,o){"use strict";o.r(n),o.d(n,{GoogleLogin:function(){return d},GoogleOAuthProvider:function(){return r},googleLogout:function(){return a},hasGrantedAllScopesGoogle:function(){return f},hasGrantedAnyScopeGoogle:function(){return g},useGoogleLogin:function(){return s},useGoogleOAuth:function(){return i},useGoogleOneTapLogin:function(){return v}});var t=o(2265);let l=(0,t.createContext)(null);function r(e){let{clientId:n,nonce:o,onScriptLoadSuccess:r,onScriptLoadError:i,children:u}=e,c=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{nonce:n,onScriptLoadSuccess:o,onScriptLoadError:l}=e,[r,i]=(0,t.useState)(!1),u=(0,t.useRef)(o);u.current=o;let c=(0,t.useRef)(l);return c.current=l,(0,t.useEffect)(()=>{let e=document.createElement("script");return e.src="https://accounts.google.com/gsi/client",e.async=!0,e.defer=!0,e.nonce=n,e.onload=()=>{var e;i(!0),null===(e=u.current)||void 0===e||e.call(u)},e.onerror=()=>{var e;i(!1),null===(e=c.current)||void 0===e||e.call(c)},document.body.appendChild(e),()=>{document.body.removeChild(e)}},[n]),r}({nonce:o,onScriptLoadSuccess:r,onScriptLoadError:i}),d=(0,t.useMemo)(()=>({clientId:n,scriptLoadedSuccessfully:c}),[n,c]);return t.createElement(l.Provider,{value:d},u)}function i(){let e=(0,t.useContext)(l);if(!e)throw Error("Google OAuth components must be used within GoogleOAuthProvider");return e}function u(e){var n;return null!==(n=null==e?void 0:e.clientId)&&void 0!==n?n:null==e?void 0:e.client_id}let c={large:40,medium:32,small:20};function d(e){let{onSuccess:n,onError:o,useOneTap:l,promptMomentNotification:r,type:d="standard",theme:a="outline",size:s="large",text:v,shape:f,logo_alignment:g,width:w,locale:p,click_listener:m,containerProps:h,...b}=e,y=(0,t.useRef)(null),{clientId:A,scriptLoadedSuccessfully:E}=i(),j=(0,t.useRef)(n);j.current=n;let C=(0,t.useRef)(o);C.current=o;let O=(0,t.useRef)(r);return O.current=r,(0,t.useEffect)(()=>{var e,n,o,t,r,i,c,h,R;if(E)return null===(o=null===(n=null===(e=null==window?void 0:window.google)||void 0===e?void 0:e.accounts)||void 0===n?void 0:n.id)||void 0===o||o.initialize({client_id:A,callback:e=>{var n;if(!(null==e?void 0:e.credential))return null===(n=C.current)||void 0===n?void 0:n.call(C);let{credential:o,select_by:t}=e;j.current({credential:o,clientId:u(e),select_by:t})},...b}),null===(i=null===(r=null===(t=null==window?void 0:window.google)||void 0===t?void 0:t.accounts)||void 0===r?void 0:r.id)||void 0===i||i.renderButton(y.current,{type:d,theme:a,size:s,text:v,shape:f,logo_alignment:g,width:w,locale:p,click_listener:m}),l&&(null===(R=null===(h=null===(c=null==window?void 0:window.google)||void 0===c?void 0:c.accounts)||void 0===h?void 0:h.id)||void 0===R||R.prompt(O.current)),()=>{var e,n,o;l&&(null===(o=null===(n=null===(e=null==window?void 0:window.google)||void 0===e?void 0:e.accounts)||void 0===n?void 0:n.id)||void 0===o||o.cancel())}},[A,E,l,d,a,s,v,f,g,w,p]),t.createElement("div",{...h,ref:y,style:{height:c[s],...null==h?void 0:h.style}})}function a(){var e,n,o;null===(o=null===(n=null===(e=null==window?void 0:window.google)||void 0===e?void 0:e.accounts)||void 0===n?void 0:n.id)||void 0===o||o.disableAutoSelect()}function s(e){let{flow:n="implicit",scope:o="",onSuccess:l,onError:r,onNonOAuthError:u,overrideScope:c,state:d,...a}=e,{clientId:s,scriptLoadedSuccessfully:v}=i(),f=(0,t.useRef)(),g=(0,t.useRef)(l);g.current=l;let w=(0,t.useRef)(r);w.current=r;let p=(0,t.useRef)(u);p.current=u,(0,t.useEffect)(()=>{var e,t;if(!v)return;let l="implicit"===n?"initTokenClient":"initCodeClient",r=null===(t=null===(e=null==window?void 0:window.google)||void 0===e?void 0:e.accounts)||void 0===t?void 0:t.oauth2[l]({client_id:s,scope:c?o:"openid profile email ".concat(o),callback:e=>{var n,o;if(e.error)return null===(n=w.current)||void 0===n?void 0:n.call(w,e);null===(o=g.current)||void 0===o||o.call(g,e)},error_callback:e=>{var n;null===(n=p.current)||void 0===n||n.call(p,e)},state:d,...a});f.current=r},[s,v,n,o,d]);let m=(0,t.useCallback)(e=>{var n;return null===(n=f.current)||void 0===n?void 0:n.requestAccessToken(e)},[]),h=(0,t.useCallback)(()=>{var e;return null===(e=f.current)||void 0===e?void 0:e.requestCode()},[]);return"implicit"===n?m:h}function v(e){let{onSuccess:n,onError:o,promptMomentNotification:l,cancel_on_tap_outside:r,prompt_parent_id:c,state_cookie_domain:d,hosted_domain:a,use_fedcm_for_prompt:s=!1,disabled:v,auto_select:f}=e,{clientId:g,scriptLoadedSuccessfully:w}=i(),p=(0,t.useRef)(n);p.current=n;let m=(0,t.useRef)(o);m.current=o;let h=(0,t.useRef)(l);h.current=l,(0,t.useEffect)(()=>{var e,n,o,t,l,i,b,y,A;if(w){if(v){null===(o=null===(n=null===(e=null==window?void 0:window.google)||void 0===e?void 0:e.accounts)||void 0===n?void 0:n.id)||void 0===o||o.cancel();return}return null===(i=null===(l=null===(t=null==window?void 0:window.google)||void 0===t?void 0:t.accounts)||void 0===l?void 0:l.id)||void 0===i||i.initialize({client_id:g,callback:e=>{var n;if(!(null==e?void 0:e.credential))return null===(n=m.current)||void 0===n?void 0:n.call(m);let{credential:o,select_by:t}=e;p.current({credential:o,clientId:u(e),select_by:t})},hosted_domain:a,cancel_on_tap_outside:r,prompt_parent_id:c,state_cookie_domain:d,use_fedcm_for_prompt:s,auto_select:f}),null===(A=null===(y=null===(b=null==window?void 0:window.google)||void 0===b?void 0:b.accounts)||void 0===y?void 0:y.id)||void 0===A||A.prompt(h.current),()=>{var e,n,o;null===(o=null===(n=null===(e=null==window?void 0:window.google)||void 0===e?void 0:e.accounts)||void 0===n?void 0:n.id)||void 0===o||o.cancel()}}},[g,w,r,c,d,a,s,v,f])}function f(e,n){for(var o,t,l,r=arguments.length,i=Array(r>2?r-2:0),u=2;u2?r-2:0),u=2;ue.length)&&(n=e.length);for(var o=0,t=Array(n);o{let{componentCls:n,colorText:o,fontSize:t,lineHeight:l,fontFamily:r}=e;return{[n]:{color:o,fontSize:t,lineHeight:l,fontFamily:r}}},()=>({}));let b=e=>{let{prefixCls:n,children:o,className:t,rootClassName:r,message:i,notification:u,style:c,component:d="div"}=e,{getPrefixCls:a}=(0,l.useContext)(f.E_),b=a("app",n),[y,A,E]=h(b),j=s()(A,b,t,r,E),C=(0,l.useContext)(m.J),O=l.useMemo(()=>({message:Object.assign(Object.assign({},C.message),i),notification:Object.assign(Object.assign({},C.notification),u)}),[i,u,C.message,C.notification]),[R,k]=(0,g.Z)(O.message),[G,S]=(0,p.Z)(O.notification),[_,x]=(0,w.Z)(),I=l.useMemo(()=>({message:R,notification:G,modal:_}),[R,G,_]);(0,v.ln)("App")(!(E&&!1===d),"usage","When using cssVar, ensure `component` is assigned a valid React component string.");let P=!1===d?l.Fragment:d;return y(l.createElement(m.Z.Provider,{value:I},l.createElement(m.J.Provider,{value:O},l.createElement(P,Object.assign({},!1===d?void 0:{className:j,style:c}),x,k,S,o))))};b.useApp=()=>l.useContext(m.Z),o(3054);var y=o(8735);function A(e){let{children:n}=e;return(0,t.jsx)("html",{lang:"en","data-lt-installed":"true",children:(0,t.jsx)("body",{children:(0,t.jsx)(y.GoogleOAuthProvider,{clientId:"734344654822-pk70c4rh0r62vpf77ibpj2kr6g1898se.apps.googleusercontent.com",children:(0,t.jsx)(c,{children:(0,t.jsx)(d.ZP,{children:(0,t.jsx)(b,{children:n})})})})})})}},3054:function(){}},function(e){e.O(0,[141,9,161,436,818,971,23,744],function(){return e(e.s=6382)}),_N_E=e.O()}]);