1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8029],{5458:(e,i,t)=>{t.d(i,{A:()=>h,J:()=>u});var o=t(54568),n=t(99680),s=t(29306),r=t(7620),l=t(97509),a=t(54713),c=t(61848),d=t(39427);let u=(0,r.createContext)({}),p=a.Ay.div.withConfig({componentId:"sc-721d4398-0"})(["transform:",";transition:transform 0.3s ease-in-out;z-index:",";"],({$visible:e})=>e?"translateY(0)":"translateY(-100%)",c.wR+1),h=e=>{let i,t,a,h,g,m,f,x=(0,n.c)(18),{children:y}=e,[w,v]=(0,r.useState)(!1),[b,C]=(0,r.useState)(),[j,L]=(0,r.useState)(0);x[0]===Symbol.for("react.memo_cache_sentinel")?(i=e=>{C(e),v(!0)},x[0]=i):i=x[0];let k=i;x[1]===Symbol.for("react.memo_cache_sentinel")?(t=(e,i,t)=>{t?k({message:e,type:"success"}):k({message:i,type:"error"})},x[1]=t):t=x[1];let A=t;x[2]!==b?.displayTime?(a=()=>{let e=setTimeout(()=>{v(!1)},b?.displayTime||5e3);return()=>clearTimeout(e)},x[2]=b?.displayTime,x[3]=a):a=x[3];let I=b?.displayTime;x[4]!==j||x[5]!==I?(h=[j,I],x[4]=j,x[5]=I,x[6]=h):h=x[6],(0,r.useEffect)(a,h);let S=(0,d.A)();return x[7]===Symbol.for("react.memo_cache_sentinel")?(g={showMessage:k,showStatusMessage:A,hideMessage:()=>v(!1)},x[7]=g):g=x[7],x[8]!==S||x[9]!==j||x[10]!==b?.className||x[11]!==b?.message||x[12]!==b?.type||x[13]!==w?(m=S&&(0,l.createPortal)((0,o.jsx)(p,{className:"fixed top-0 right-0 left-0",style:{zIndex:c.wR+1},$visible:w,onTransitionEnd:()=>{L(j+1)},children:(0,o.jsx)("div",{className:(0,s.cn)("flex items-center justify-center p-2.5 text-center font-bold text-giphyWhite",b?.type==="success"?"bg-gradient-info":"bg-gradient-warning",b?.className),children:b?.message})}),document.body,`flash-message-${j}`),x[8]=S,x[9]=j,x[10]=b?.className,x[11]=b?.message,x[12]=b?.type,x[13]=w,x[14]=m):m=x[14],x[15]!==y||x[16]!==m?(f=(0,o.jsxs)(u.Provider,{value:g,children:[m,y]}),x[15]=y,x[16]=m,x[17]=f):f=x[17],f}},10797:(e,i,t)=>{t.r(i),t.d(i,{default:()=>a});var o=t(54568),n=t(99680),s=t(10933),r=t.n(s),l=t(902);let a=e=>{let i,t,s,a,c,d,u=(0,n.c)(13);u[0]!==e?({href:s,className:t,children:i,noLink:a,...c}=e,u[0]=e,u[1]=i,u[2]=t,u[3]=s,u[4]=a,u[5]=c):(i=u[1],t=u[2],s=u[3],a=u[4],c=u[5]);let p=(0,l.useRouter)();return u[6]!==i||u[7]!==t||u[8]!==s||u[9]!==a||u[10]!==c||u[11]!==p?(d=a?(0,o.jsx)("span",{className:t,onClick:e=>{e.stopPropagation(),e.preventDefault(),p.push(s.toString())},children:i}):(0,o.jsx)(r(),{className:t,href:s,...c,children:i}),u[6]=i,u[7]=t,u[8]=s,u[9]=a,u[10]=c,u[11]=p,u[12]=d):d=u[12],d}},14159:(e,i,t)=>{t.d(i,{A:()=>s});var o=t(54568),n=t(99680);let s=e=>{let i,t,s=(0,n.c)(4),r=e.color||"white";return s[0]===Symbol.for("react.memo_cache_sentinel")?(i=(0,o.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.7447 0L15.9028 2.55331L18.9947 3.81966L19.2419 7.15562L21 10L19.2419 12.8444L18.9947 16.1803L15.9028 17.4467L13.7447 20L10.5 19.2046L7.25532 20L5.09719 17.4467L2.00532 16.1803L1.75806 12.8444L0 10L1.75806 7.15562L2.00532 3.81966L5.09719 2.55331L7.25532 0L10.5 0.795382L13.7447 0ZM9.44644 15.2103L17.0434 7.52136L14.7399 5.19002L9.42133 10.5719L7.1186 8.24091L4.83951 10.5476L9.44644 15.2103Z"}),s[0]=i):i=s[0],s[1]!==e||s[2]!==r?(t=(0,o.jsx)("svg",{fill:r,viewBox:"0 0 21 20",xmlns:"http://www.w3.org/2000/svg",...e,children:i}),s[1]=e,s[2]=r,s[3]=t):t=s[3],t}},14576:(e,i,t)=>{t.d(i,{A:()=>b,O:()=>v});var o=t(54568),n=t(36542),s=t(26274),r=t(19010),l=t(7620),a=t(66955),c=t(16003),d=t(5458),u=t(42115),p=t(48828),h=t(39865),g=t(98062),m=t(34874);let f=async()=>{let e=(0,m.Ri)(n.o7);return e||(await (0,c.Ou)({url:`${p.wh}/login/check/`,options:(0,g.fG)(),timeout:1e4}),(0,m.Ri)(n.o7))};var x=t(72118),y=t(18562),w=t(96137);let v={appleLogin:"Log in with Apple",emailPlaceholder:"Email Address",errors:{refreshSession:"Login succeeded, but we could not refresh your session. Please try again.",requestFailed:"We could not log you in. Please try again.",timeout:"Login is taking longer than expected. Please try again."},facebookLogin:"Log in with Facebook",forgotPassword:"Forgot Your Password?",googleLogin:"Log in with Google",passwordPlaceholder:"Password",passwordVisibility:{hide:"Hide password.",show:"Show password as plain text. Warning: this will display your password on the screen."},socialAuth:{checkLogin:"Check login",finishedPrompt:"Finished logging in?",pending:"Complete login in the popup window."},submit:"Log In",terms:{conjunction:"and",prefix:"By logging in y
1ou agree to GIPHY's",privacyPolicy:"Privacy Policy",termsOfService:"Terms of Service"}},b=({copy:e=v,mode:i="page",next:t,onSuccess:g})=>{let m=(0,l.useRef)(null),b=(0,l.useRef)(!1),[C,j]=(0,l.useState)(!1),L=(0,l.useRef)(null),k=(0,l.useRef)(null),[A,I]=(0,l.useState)(!1),[,S]=(0,l.useReducer)(e=>e+1,0),{showMessage:_}=(0,l.useContext)(d.J),{refreshUser:P}=(0,l.useContext)(h.A),R=`${p.Dd}/login/google-oauth2/`,$=`${p.Dd}/login/facebook/`,N=`${p.Dd}/login/apple/`,{completeSocialAuth:z,openSocialAuthPopup:V,socialAuthState:E}=(0,w.n)({mode:i,onSuccess:g}),M="pending"===E.status,O=async()=>{if(b.current)return;b.current=!0,j(!0);let o=new FormData(m.current);t&&o.append("next",t);try{let t=await f(),s=await (0,c.Ou)({url:`${p.wh}/api/v1/users/login/`,options:{method:"POST",body:o,headers:{[n.rH]:t}},timeout:1e4}),l=await s.json();if(s.ok){let t={loggedInStatus:!0,userType:l.is_staff?"staff":l.user_type,verifiedStatus:l.is_verified,userID:`${l.id}`,loginMethod:"email"};(0,r.gV)(t),(0,r.Ed)({event:"login_form_success",options:{user:t,form:{formName:"login"}}});let o=l.redirect_url||"/";if("modal"===i){let i=await P?.();if(!i)return void _({message:e.errors.refreshSession,type:"error"});await g?.(i)}else location.href=o}else _({message:(0,a.Zx)(l),type:"error"}),(0,r.Ed)({event:"login_form_error",options:{form:{formName:"login",formError:"email,password"}}})}catch(t){let i=t instanceof c.MU||t instanceof Error&&t.message.startsWith("Timeout 10000 exceeded for url:");_({message:i?e.errors.timeout:e.errors.requestFailed,type:"error"}),(0,r.Ed)({event:"login_form_error",options:{form:{formName:"login",formError:i?"timeout":"request_failed"}}}),i||console.error("Login request failed",t)}finally{b.current=!1,j(!1)}};return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)(y.lV,{ref:m,onSubmit:e=>{e.preventDefault(),e.stopPropagation(),m.current?.checkValidity()&&O()},children:[(0,o.jsxs)("div",{children:[(0,o.jsx)("input",{autoComplete:"username",placeholder:e.emailPlaceholder,name:"email",required:!0,type:"email",ref:L,onKeyUp:S,onInput:S,className:"bg-giphyWhite placeholder-inputPlaceholder"}),(0,o.jsx)("div",{className:"error-message",children:L.current?.validationMessage})]}),(0,o.jsxs)("div",{style:{position:"relative"},children:[(0,o.jsx)("input",{name:"password",placeholder:e.passwordPlaceholder,autoComplete:"current-password",required:!0,type:A?"text":"password",minLength:6,onKeyUp:S,onInput:S,className:"bg-giphyWhite placeholder-inputPlaceholder",ref:k}),(0,o.jsx)(x.A,{ariaLabel:A?e.passwordVisibility.hide:e.passwordVisibility.show,viewPassword:A,setViewPassword:I}),(0,o.jsx)("div",{className:"error-message",children:k.current?.validationMessage})]}),(0,o.jsx)(y.$n,{size:"medium",gradient:"purple-indigo",loading:C,disabled:!m.current?.checkValidity(),type:"submit",children:e.submit})]}),(0,o.jsx)(y.XC,{href:"/password/reset",children:e.forgotPassword}),(0,o.jsxs)(y.VR,{children:[(0,o.jsx)(y.$n,{size:"medium",color:s.bW,disabled:M,href:"modal"===i?void 0:R,onClick:"modal"===i?()=>V("google",R):void 0,children:(0,o.jsxs)(y.o$,{children:[(0,o.jsx)("img",{src:u.xE,alt:"",className:"h-5"}),e.googleLogin]})}),(0,o.jsx)(y.$n,{size:"medium",color:s.bW,disabled:M,href:"modal"===i?void 0:$,onClick:"modal"===i?()=>V("facebook",$):void 0,children:(0,o.jsxs)(y.o$,{children:[(0,o.jsx)("img",{src:u.OF,alt:"",className:"h-[1.875rem]",style:{margin:-6}}),e.facebookLogin]})}),(0,o.jsx)(y.$n,{size:"medium",color:s.bW,disabled:M,href:"modal"===i?void 0:N,onClick:"modal"===i?()=>V("apple",N):void 0,children:(0,o.jsxs)(y.o$,{children:[(0,o.jsx)("img",{src:u.KI,alt:"",className:"h-5"}),e.appleLogin]})})]}),"modal"===i&&"idle"!==E.status&&(0,o.jsx)("div",{className:"text-center text-xs leading-snug font-semibold text-giphyWhite",children:"pending"===E.status?e.socialAuth.pending:(0,o.jsxs)(o.Fragment,{children:[e.socialAuth.finishedPrompt," ",(0,o.jsx)("button",{className:"cursor-pointer border-0 bg-transparent p-0 font-bold text-giphyBlue hover:text-giphyWhite",type:"button",onClick:z,children:e.socialAuth.checkLogin})]})}),(0,o.jsxs)(y.iI,{children:[e.terms.prefix," ",(0,o.jsx)("a",{href:"/terms",children:e.terms.termsOfService})," ",e.terms.conjunction," ",(0,o.jsx)("a",{href:"https://support.giphy.com/hc/en-us/articles/360032872931",children:e.terms.privacyPolicy})]})]})}},18562:(e,i,t)=>{t.d(i,{$n:()=>c,VR:()=>r,XC:()=>d,b2:()=>l,iI:()=>u,lV:()=>a,o$:()=>p});var o=t(26274),n=t(54713),s=t(65565);let r=n.Ay.div.withConfig({componentId:"sc-20008354-0"})(["display:flex;flex-direction:column;gap:6px;"]),l="password-visibility",a=n.Ay.form.withConfig({componentId:"sc-20008354-1"})(["display:flex;flex-direction:column;gap:10px;font-size:14px;.error-message{display:none;font-weight:bold;color:",";}input{width:100%;height:40px;border-radius:4px;border:2px solid black;padding:10px;}input:focus{outline:none;}.","{cursor:pointer;align-self:center;display:inline-flex;position:absolute;top:10px;right:10px;}input:focus ~ .","{display:none;}
1input:not(:focus):not(:placeholder-shown):invalid{border-color:",";}input:not(:focus):not(:placeholder-shown):invalid ~ .error-message{display:block;}input:not(:focus):not(:placeholder-shown):valid{border-color:black;}"],o.ze,l,l,o.ze),c=(0,n.Ay)(s.A).withConfig({componentId:"sc-20008354-2"})(["flex-shrink:0;"]),d=n.Ay.a.withConfig({componentId:"sc-20008354-3"})(["color:",";align-self:center;&:hover{color:",";}"],o.C2,o.hg),u=n.Ay.div.withConfig({componentId:"sc-20008354-4"})(["color:",";align-self:center;font-weight:600;font-size:12px;text-align:center;a{color:",";}a:hover{color:",";}"],o.hg,o.C2,o.hg),p=n.Ay.div.withConfig({componentId:"sc-20008354-5"})(["display:flex;align-items:center;white-space:nowrap;gap:10px;"])},26498:(e,i,t)=>{t.d(i,{default:()=>m});var o=t(54568),n=t(99680),s=t(48828),r=t(98062),l=t(7620),a=t(54713),c=t(49346),d=t(16003),u=t(72800);let p=async()=>{let e=await (0,d.Ou)({url:`${s.wh}/ajax/animated-backgrounds/`,options:(0,r.fG)()});return await e.json()},h=a.Ay.div.withConfig({componentId:"sc-79880b58-0"})(["position:absolute;height:100vh;width:100vw;video{object-fit:cover;width:100%;height:100%;}opacity:0.1;",""],(0,c.L_)((0,a.AH)(["opacity:1;width:50vw;transform:translateX(100%);"]))),g=a.Ay.div.withConfig({componentId:"sc-79880b58-1"})(["position:absolute;display:none;bottom:20px;left:20px;",""],(0,c.L_)((0,a.AH)(["display:flex;"]))),m=()=>{let e,i,t,s=(0,n.c)(4),[r,a]=(0,l.useState)();return s[0]===Symbol.for("react.memo_cache_sentinel")?(e=()=>{(async()=>{let e;try{let{result:i}=await p();e=i[Math.floor(Math.random()*i.length)],a(e)}catch(e){console.error(e)}})()},i=[],s[0]=e,s[1]=i):(e=s[0],i=s[1]),(0,l.useEffect)(e,i),s[2]!==r?(t=r&&(0,o.jsxs)(h,{className:"ci-hidden",children:[(0,o.jsxs)("video",{autoPlay:!0,loop:!0,muted:!0,playsInline:!0,children:[(0,o.jsx)("source",{src:r.mp4_url,type:"video/mp4"}),(0,o.jsx)("source",{src:r.webm_url,type:"video/webm"})]}),(0,o.jsx)(g,{children:(0,o.jsx)(u.default,{user:r.artist})})]}),s[2]=r,s[3]=t):t=s[3],t}},30904:(e,i,t)=>{t.d(i,{E2:()=>s,Kh:()=>n,b7:()=>r,dq:()=>l});var o=t(82666);let n="giphy-social-auth",s="width=520,height=720,menubar=no,toolbar=no,location=yes,status=no,scrollbars=yes,resizable=yes",r=e=>(0,o._)(e,"/login/social-auth-complete"),l=e=>!!e&&"object"==typeof e&&e.type===n&&"success"===e.status},39427:(e,i,t)=>{t.d(i,{A:()=>s});var o=t(99680),n=t(7620);let s=function(){let e,i,t=(0,o.c)(2),[s,r]=(0,n.useState)(!1);return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=()=>{r(!0)},i=[],t[0]=e,t[1]=i):(e=t[0],i=t[1]),(0,n.useEffect)(e,i),s}},49121:(e,i,t)=>{t.d(i,{A:()=>g});var o=t(54568),n=t(26274),s=t(7620),r=t(92805),l=t(41112),a=t(83500),c=t(54713);function d(e){switch(e){case"x-large":return 34;case"large":return 30;case"medium":return 24;case"small":return 20;case"mini":return 16}}let u=(0,c.i7)(["0%{opacity:0;}100%{opacity:1;}"]),p=c.Ay.button.withConfig({componentId:"sc-e1683e85-0"})(["box-sizing:border-box;cursor:pointer;display:block;position:relative;user-select:none;&:active{opacity:0.8;}&:focus-visible{outline:2px solid ",";}"," ",""],n.aw,({$backgroundColor:e,$outlineColor:i,$size:t})=>(0,c.AH)(["background:",";border-radius:","px;box-shadow:inset 0 0 0 ","px ",";height:","px;width:","px;"],e,(0,r.xb)(t),function(e){switch(e){case"x-large":case"large":return 3;default:return 2}}(t),i,d(t),d(t)),({$disabled:e})=>e&&(0,c.AH)(["opacity:0.5;pointer-events:none;"])),h=c.Ay.span.withConfig({componentId:"sc-e1683e85-1"})(["align-items:center;animation:"," 0.1s ease-in-out;border-radius:inherit;display:flex;height:100%;justify-content:center;left:0;position:absolute;top:0;width:100%;",""],u,({$color:e,$gradient:i})=>(0,c.AH)(["background:",";"],i?(0,r.$_)(i):e)),g=({backgroundColor:e=n.ni,checked:i,className:t,color:c=n.nU,disabled:d=!1,defaultChecked:u=!1,gradient:g,iconColor:m,name:f,outlineColor:x=n.Zf,size:y="small",style:w,tabIndex:v=0,title:b,onChange:C})=>{let j=(0,s.useRef)(void 0!==i?i:u),[L,k]=(0,s.useState)(j.current||!1),A=g?(0,r.Bj)(g,.5):c,I=m||(0,l.Y)(A),S=function(e){switch(e){case"x-large":return 24;case"large":return 22;case"medium":return 18;case"small":return 15;case"mini":return 12}}(y);return(0,s.useEffect)(()=>{void 0!==i&&k(i)},[i]),(0,s.useEffect)(()=>{L!==j.current&&(j.current=void 0,C?.(L))},[L]),(0,o.jsxs)(p,{$backgroundColor:e,$disabled:d,$outlineColor:x,$size:y,className:t,style:w,title:b,tabIndex:v,type:"button",onClick:function(){k(e=>!e)},children:[L&&(0,o.jsx)(h,{$color:c,$gradient:g,children:(0,o.jsx)(a.A,{color:I,icon:"checkmark",height:S,width:S})}
1),(0,o.jsx)("input",{checked:L,name:f,readOnly:!0,type:"hidden"})]})}},66955:(e,i,t)=>{t.d(i,{UM:()=>s,Zx:()=>o,qh:()=>n});let o=e=>{let i="";return e.details&&e.details.code?[e.details.code]:e.detail?[e.detail]:(i="object"==typeof(Object.keys(e).length>0&&e[Object.keys(e)[0]][0])?Object.entries(e).reduce((e,[,i])=>e+i.reduce((e,i)=>e+i.detail+"\n",""),""):Object.entries(e).reduce((e,[,i])=>e+i.join("\n")+"\n","")).split("\n").slice(0,-1)},n=e=>e.detail||e.details?["non-field error"]:Object.keys(e),s=(e,i)=>{if(void 0===i)return;let t=i.split(";");for(let i=0;i<t.length;i++){let o=t[i].trim();if(o.startsWith(e+"="))return o.substring(e.length+1)}}},72118:(e,i,t)=>{t.d(i,{A:()=>a});var o=t(54568),n=t(99680),s=t(84530),r=t(18562);let l={width:20,height:20,style:{display:"inline"}},a=e=>{let i,t,a,c=(0,n.c)(9),{ariaLabel:d,setViewPassword:u,viewPassword:p}=e,h=void 0===d?"Show password as plain text. Warning: this will display your password on the screen.":d;return c[0]!==u||c[1]!==p?(i=()=>u(!p),c[0]=u,c[1]=p,c[2]=i):i=c[2],c[3]!==p?(t=p?(0,o.jsx)(s.VisibilityOnIcon,{...l}):(0,o.jsx)(s.VisibilityOffIcon,{...l}),c[3]=p,c[4]=t):t=c[4],c[5]!==h||c[6]!==i||c[7]!==t?(a=(0,o.jsx)("i",{className:r.b2,onClick:i,"aria-label":h,children:t}),c[5]=h,c[6]=i,c[7]=t,c[8]=a):a=c[8],a}},72800:(e,i,t)=>{t.r(i),t.d(i,{default:()=>g});var o=t(54568),n=t(99680),s=t(26274),r=t(54713),l=t(85922),a=t(77797);let c=(0,r.Ay)(l.default).withConfig({componentId:"sc-86c7ee75-0"})(["object-fit:cover;"]),d=r.Ay.div.withConfig({componentId:"sc-86c7ee75-1"})(["margin-right:6px;display:flex;gap:12px;align-items:center;"]),u=r.Ay.h2.withConfig({componentId:"sc-86c7ee75-2"})(["line-height:16px;font-size:16px;overflow:hidden;display:flex;user-select:none;"]),p=r.Ay.div.withConfig({componentId:"sc-86c7ee75-3"})(["overflow:hidden;"]),h=r.Ay.span.withConfig({componentId:"sc-86c7ee75-4"})(["color:",";display:block;flex-shrink:0;font-size:14px;font-weight:bold;line-height:18px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;&:before{content:'â';line-height:18px;font-size:18px;margin-right:5px;position:relative;top:1px;}"],s.DK),g=e=>{let i,t,s,r,l,g,m=(0,n.c)(19),{user:f,className:x,canViewForHire:y,noLink:w}=e,v=void 0===x?"":x,b=void 0!==y&&y;if(!f)return null;m[0]!==f?(i=(0,o.jsx)(c,{user:f,size:50}),m[0]=f,m[1]=i):i=m[1];let C=b&&f?.is_freelance&&!f.display_name?f.username:f.display_name;return m[2]!==C?(t=(0,o.jsx)(u,{children:C}),m[2]=C,m[3]=t):t=m[3],m[4]!==b||m[5]!==f.is_freelance?(s=b&&f?.is_freelance&&(0,o.jsx)(h,{children:"Available for Work"}),m[4]=b,m[5]=f.is_freelance,m[6]=s):s=m[6],m[7]!==b||m[8]!==w||m[9]!==f?(r=(!b||!f?.is_freelance)&&(0,o.jsx)(a.A,{user:f,className:"text-giphyLightGrey hover:text-giphyWhite",noLink:w}),m[7]=b,m[8]=w,m[9]=f,m[10]=r):r=m[10],m[11]!==t||m[12]!==s||m[13]!==r?(l=(0,o.jsxs)(p,{children:[t,s,r]}),m[11]=t,m[12]=s,m[13]=r,m[14]=l):l=m[14],m[15]!==v||m[16]!==i||m[17]!==l?(g=(0,o.jsxs)(d,{className:v,children:[i,l]}),m[15]=v,m[16]=i,m[17]=l,m[18]=g):g=m[18],g}},73097:(e,i,t)=>{t.d(i,{default:()=>em});var o=t(54568),n=t(99680),s=t(54713);let r=s.Ay.a.withConfig({componentId:"sc-fcaafef4-0"})(["display:block;color:#fff;text-decoration:underline;"]),l=s.Ay.span.withConfig({componentId:"sc-fcaafef4-1"})(["font-weight:bold;"]),a=s.Ay.span.withConfig({componentId:"sc-fcaafef4-2"})(["font-size:30px;"]),c=s.Ay.span.withConfig({componentId:"sc-fcaafef4-3"})(["font-weight:normal;"]),d=e=>{let i,t,s,d,u,p,h=(0,n.c)(16),{icon:g,title:m,message:f,linkURL:x,linkText:y}=e;return h[0]!==g?(i=(0,o.jsx)(a,{children:g}),h[0]=g,h[1]=i):i=h[1],h[2]!==m?(t=(0,o.jsxs)(l,{children:[m,"\xa0"]}),h[2]=m,h[3]=t):t=h[3],h[4]!==f?(s=(0,o.jsx)(c,{children:f}),h[4]=f,h[5]=s):s=h[5],h[6]!==t||h[7]!==s?(d=(0,o.jsxs)("div",{children:[t,s]}),h[6]=t,h[7]=s,h[8]=d):d=h[8],h[9]!==y||h[10]!==x?(u=x&&y&&(0,o.jsx)(r,{href:x,children:y}),h[9]=y,h[10]=x,h[11]=u):u=h[11],h[12]!==i||h[13]!==d||h[14]!==u?(p=(0,o.jsxs)(o.Fragment,{children:[i,d,u]}),h[12]=i,h[13]=d,h[14]=u,h[15]=p):p=h[15],p};var u=t(26498),p=t(48828),h=t(26274),g=t(19010),m=t(7620),f=t(97509),x=t(87165),y=t(86907),w=t(49121),v=t
1(66955),b=t(16003),C=t(5458),j=t(42115),L=t(57728),k=t.n(L),A=t(41198),I=t.n(A),S=t(18562),_=t(49346),P=t(10933),R=t.n(P),$=t(902);let N={alreadyValidated:"Already validated your account?!",fallbackEmail:"[email protected]",footerLineOne:"Didn't receive an email? Check your spam folder!",footerLineTwo:"Emails may take a couple minutes to arrive.",goToLogin:"Go to Log In",goToLoginAriaLabel:"Go to Log In",invalidCode:"Invalid Code",messagePrefix:"We have sent an email to ",messageSuffix:". Please click the link in the email to verify your account or enter the email activation code below.",submit:"Submit",title:"Check your Email!",verifiedMessage:"Email Verified!"},z=s.Ay.div.withConfig({componentId:"sc-66b657fe-0"})(["font-family:",";-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-size:28px;margin-bottom:16px;"],I().style.fontFamily),V=s.Ay.div.withConfig({componentId:"sc-66b657fe-1"})(["font-size:18px;font-weight:normal;text-align:center;letter-spacing:0px;line-height:22px;"]),E=s.Ay.div.withConfig({componentId:"sc-66b657fe-2"})(["font-size:15px;font-weight:normal;text-align:center;letter-spacing:0.11px;"]),M=s.Ay.div.withConfig({componentId:"sc-66b657fe-3"})(["font-weight:bold;cursor:pointer;"]),O=s.Ay.button.withConfig({componentId:"sc-66b657fe-4"})(["font-weight:bold;cursor:pointer;background:transparent;border:0;padding:0;"]),T=s.Ay.span.withConfig({componentId:"sc-66b657fe-5"})(["color:",";font-weight:bold;"],h.C2),U=s.Ay.p.withConfig({componentId:"sc-66b657fe-6"})(["color:",";font-size:15px;font-weight:normal;font-style:italic;text-align:center;letter-spacing:0.11px;"],h.ze),H=s.Ay.div.withConfig({componentId:"sc-66b657fe-7"})(["position:absolute;inset:0;background:rgba(0,0,0);display:flex;align-items:center;",""],(0,_.L_)((0,s.AH)(["width:50vw;"]))),F=s.Ay.div.withConfig({componentId:"sc-66b657fe-8"})(["width:332px;flex-direction:column;display:flex;gap:10px;margin:auto;align-items:center;text-align:center;position:relative;"]),W=(0,s.Ay)(S.$n).withConfig({componentId:"sc-66b657fe-9"})(["width:100%;"]),Z=s.Ay.div.withConfig({componentId:"sc-66b657fe-10"})(["margin-bottom:20px;input{width:52px;height:52px;margin:8px;border-radius:4px;background:",";font-size:48px;text-align:center;color:",";font-size:25px;font-family:",";text-align:center;letter-spacing:0.38px;line-height:35px;border-width:0;outline-width:0;box-sizing:border-box;"," &:focus{border-width:2px;border-style:solid;border-color:",";}}"],h.Fl,h.MT,I().style.fontFamily,({$error:e})=>e?` 2 border-width: 2px; 3 border-style: solid; 4 border-color: ${h.ze}; 5 color: ${h.ze}; 6 `:"",h.DK),D=({copy:e=N,email:i,loginHref:t="/login",onVerified:n})=>{let[s,r]=(0,m.useState)(""),l=(0,$.useRouter)(),[a,c]=(0,m.useState)(!1),[d,p]=(0,m.useState)(!1),{showMessage:h}=(0,m.useContext)(C.J),g=(0,m.useCallback)(()=>{c(!0),(async()=>{try{let t=await (0,b.Ou)({url:"/api/v3/register/confirm",options:{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:i,code:s})}});if(t.ok)h({message:e.verifiedMessage,type:"success"}),n?n():l.push("/login");else{let e=await t.json();410===t.status?h({message:e.details.code||"error",type:"error"}):p(!0)}}catch(e){p(!0)}finally{c(!1)}})()},[e.verifiedMessage,i,s,n,h,l]);return(0,o.jsxs)(H,{children:[(0,o.jsx)(u.default,{}),(0,o.jsxs)(F,{children:[(0,o.jsx)("img",{src:"https://media2.giphy.com/media/LOnt6uqjD9OexmQJRB/200w.webp",width:100,height:100,alt:""}),(0,o.jsx)(z,{children:e.title}),(0,o.jsxs)(V,{children:[e.messagePrefix,(0,o.jsx)(T,{children:i||e.fallbackEmail}),e.messageSuffix]}),(0,o.jsx)(Z,{$error:d,children:(0,o.jsx)(k(),{name:"input-code",inputMode:"verbatim",fields:4,type:"text",onChange:e=>{r(e),p(!1)},value:s})}),d&&(0,o.jsx)(U,{children:e.invalidCode}),(0,o.jsxs)(E,{children:[e.footerLineOne," ",(0,o.jsx)("br",{}),e.footerLineTwo]}),(0,o.jsx)(E,{children:e.alreadyValidated}),n?(0,o.jsx)(O,{onClick:n,type:"button","aria-label":e.goToLoginAriaLabel,children:(0,o.jsx)(M,{children:e.goToLogin})}):(0,o.jsx)(R(),{href:t,children:(0,o.jsx)(M,{children:e.goToLogin})}),(0,o.jsx)(W,{size:"medium",gradient:"purple-indigo",loading:a,disabled:s.length<4,onClick:g,children:e.submit})]})]})};var B=t(34874),q=t(2011),Y=t(16496),G=t(41798),K=t(65565);let J=s.Ay.div.withConfig({componentId:"sc-ceb54f6a-0"})(["background:rgba(0,0,0,0.8);display:flex;position:absolute;flex-direction:column;inset:0;justify-content:center;align-items:center;h2{font-family:",";font-weight:300;}padding-bottom:","px;"],I().style.fontFamily,120),X=s.Ay.div.withConfig({componentId:"sc-ceb54f6a-1"}
6)(["height:","px;transform:translateY(","px);position:relative;"],120,e=>e.offset),Q=(0,s.Ay)(S.lV).withConfig({componentId:"sc-ceb54f6a-2"})(["min-width:325px;max-width:400px;background:",";display:flex;flex-direction:column;padding:30px;gap:10px;text-align:center;margin:0 20px;p{font-size:15px;}"],h.bW),ee={close:"Close",emailPlaceholder:"Email Address",errorTitle:"Oops!",instructions:"If you registered but did not confirm your account yet, enter your email address and we'll send you another confirmation email. Be sure to check your spam folder.",initialTitle:"Hello, again!",submit:"Send"},ei=[{error:!1,image:"rYV2FpxZ3gUizs2usC",offset:63},{error:!0,image:"28DaHBc6rGZgaUSThG",offset:10}],et=({copy:e=ee,onClose:i})=>{let[,t]=(0,m.useReducer)(e=>e+1,0),n=(0,m.useRef)(null),[s,r]=(0,m.useState)(!1),[l,a]=(0,m.useState)(0),[c,d]=(0,m.useState)(""),u=ei[l],p=u.error?e.errorTitle:e.initialTitle,g=(0,B.fq)(),[f,x]=(0,m.useState)();(0,m.useEffect)(()=>{(async()=>{let{data:e}=await new q.uK(g).gif(u.image);x(e)})()},[g,u.image]);let y=!n.current?.checkValidity(),w=async()=>{r(!0);let e=new FormData,t=n.current.value;e.append("email",t);let o=await (0,b.Ou)({url:"/api/v3/register/resend",options:{method:"POST",body:e}});if(o.ok)i(t);else{let e=await o.json();d((0,v.Zx)(e).join("")),a(1)}r(!1)};return(0,o.jsxs)(J,{children:[(0,o.jsx)(X,{offset:u.offset,children:f&&(0,o.jsx)(G.Gif,{gif:f,width:(0,Y.Vs)(f,120),backgroundColor:"rgba(0,0,0,0)",noLink:!0})}),(0,o.jsxs)(Q,{onSubmit:e=>{e.preventDefault(),e.stopPropagation(),y||w()},children:[(0,o.jsx)("h2",{children:p}),(0,o.jsx)("p",{children:u.error?c:e.instructions}),(0,o.jsxs)("div",{children:[(0,o.jsx)("input",{placeholder:e.emailPlaceholder,name:"email",required:!0,type:"email",ref:n,onInput:t}),(0,o.jsx)("div",{className:"error-message",children:n.current?.validationMessage})]}),(0,o.jsx)(K.A,{disabled:y,size:"medium",gradient:"purple-indigo",onClick:w,loading:s,children:e.submit}),(0,o.jsx)(K.A,{size:"medium",color:h.Fl,onClick:()=>i(),children:e.close})]})]})};var eo=t(72118),en=t(96137);let es=s.Ay.p.withConfig({componentId:"sc-27c9499e-0"})(["font-size:14px;text-align:center;"]),er=s.Ay.a.withConfig({componentId:"sc-27c9499e-1"})(["font-weight:bold;cursor:pointer;"]),el=(0,s.Ay)(w.A).withConfig({componentId:"sc-27c9499e-2"})(["display:inline-block;margin-right:6px;vertical-align:top;"]),ea=s.Ay.div.withConfig({componentId:"sc-27c9499e-3"})(["min-height:74px;width:325px;display:flex;justify-content:center;"]),ec={accountRecovery:ee,accountRecoveryCta:"Finish Sign Up",accountRecoveryPrompt:"Already started creating an account?",appleAlt:"apple login",appleSignUp:"Sign up with Apple",confirmPasswordPlaceholder:"Confirm your password",emailPlaceholder:"Email Address",emailValidation:N,errors:{multiple:"Please try again after fixing the following errors:"},facebookSignUp:"Sign up with Facebook",googleSignUp:"Sign up with Google",passwordPlaceholder:"Password",passwordVisibility:{hide:"Hide password.",show:"Show password as plain text. Warning: this will display your password on the screen."},socialAuth:{checkLogin:"Check login",finishedPrompt:"Finished signing up?",pending:"Complete sign up in the popup window."},submit:"Sign Up",terms:{checkboxTitle:"Terms of Service",conjunction:"and",prefix:"I agree to the",privacyPolicy:"Privacy Policy",termsOfService:"Terms of Service"},usernamePlaceholder:"Username"},ed=({copy:e=ec,mode:i="page",onSuccess:t,onSwitchToLogin:n})=>{let s=(0,m.useRef)(null),r=(0,m.useRef)(null),l=(0,m.useRef)(null),a=(0,m.useRef)(null),[c,d]=(0,m.useState)(!1),u=(0,m.useRef)(null),[w,L]=(0,m.useState)(!1),k=(0,m.useRef)(null),A=a.current?.value===u.current?.value,[,I]=(0,m.useReducer)(e=>e+1,0),[_,P]=(0,m.useState)(!1),[R,$]=(0,m.useState)(!1),[N,z]=(0,m.useState)({show:!1,email:""}),[V,E]=(0,m.useState)(!1),{showMessage:M}=(0,m.useContext)(C.J),O=`${p.Dd}/login/google-oauth2/`,T=`${p.Dd}/login/facebook/`,U=`${p.Dd}/login/apple/`,{completeSocialAuth:H,openSocialAuthPopup:F,socialAuthState:W}=(0,en.n)({mode:i,onSuccess:t}),Z="pending"===W.status,[B,q]=(0,y.A)("login_type"),Y=async()=>{let i=new FormData(s.current);i.append("platform","web"),i.append("recaptcha_token",k.current.getValue());try{E(!0);let t=await (0,b.Ou)({url:"/api/v3/register",options:{method:"POST",body:i}});if(t.ok)q("email"),(0,g.Ed)({event:"signup_form_success",options:{form:{formName:"signup"}}}),z({show:!0,email:r.current.value});else{let i=(0,v.Zx)(await t.json());i.length>1?M({message:(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("div",{children:e.errors.multiple}),i.map((e,i)=>(0,o.jsxs)("div",{children:[i+1,". ",e]},i))]}),type:"error"}):M({message:i.map((e,i)=>(0,o.jsx)("div",{children:e},i)),type:"error"}),k.current?.reset(),E(!1),(0,g.Ed)({event:"signup_form_error",options:{form:{formName:"signup",formError:i.join(",")}}})}}catch(e){}};return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)(es,{children:[e.accountRecoveryPrompt," ",(0,o.jsx)(er,{onClick:()=>$(!0),type:"button",children:e.accountRecoveryCta})]}),(0,o.jsxs)(S.lV,{ref:s,noValidate:!0,children:[(0,o.jsxs)("div",{children:[(0,o.jsx)("input",{autoComplete:"username",placeholder:e.emailPlaceholder,name:"email",required:!0,type:"email",ref:r,onKeyUp:I,onInput:I}),(0,o.jsx)("div",{className:"error-message",children:r.current?.validationMessage})]}),(0,o.jsxs)("div",{children:[(0,o.jsx)("input",{placeholder:e.usernamePlaceholder,name:"username",required:!0,type:"text",autoComplete:"off",ref:l,onKeyUp:I,onInput:I}),(0,o.jsx)("div",{className:"error-message",children:l.current?.validationMessage})]}),(0,o.jsxs)("div",{style:{position:"relative"},children:[(0,o.jsx)("input",{autoComplete:"new-password",name:"password",placeholder:e.passwordPlaceholder,required:!0,type:c?"text":"password",minLength:8,onInput:I,onKeyUp:I,ref:a}),(0,o.jsx)(eo.A,{ariaLabel:c?e.passwordVisibility.hide:e.passwordVisibility.show,viewPassword:c,setViewPassword:d}),(0,o.jsx)("div",{className:"error-message",children:a.current?.validationMessage})]}),(0,o.jsxs)("div",{style:{position:"relative"},children:[(0,o.jsx)("input",{autoComplete:"new-password",name:"password",placeholder:e.confirmPasswordPlaceholder,required:!0,type:w?"text":"password",minLength:8,onKeyUp:I,onInput:I,ref:u}),(0,o.jsx)(eo.A,{ariaLabel:w?e.passwordVisibility.hide:e.passwordVisibility.show,viewPassword:w,setViewPassword:L}),(0,o.jsx)("div",{className:"error-message",children:a.current?.validationMessage})]}),(0,o.jsx)(ea,{className:"ci-removed",children:(0,o.jsx)(x.A,{sitekey:"6LdLAasUAAAAAJIGrMFJ9wvf1UXIibLjHyeCZgH3",ref:k,onInput:I,onChange:I})}
6),(0,o.jsxs)(S.iI,{children:[(0,o.jsx)(el,{checked:_,name:"Terms",size:"small",title:e.terms.checkboxTitle,onChange:e=>{P(e)}}),e.terms.prefix," ",(0,o.jsx)("a",{href:"/terms",children:e.terms.termsOfService})," ",e.terms.conjunction," ",(0,o.jsx)("a",{href:"https://support.giphy.com/hc/en-us/articles/360032872931",children:e.terms.privacyPolicy})]}),(0,o.jsx)(S.$n,{size:"medium",gradient:"purple-indigo",loading:V,disabled:!s.current?.checkValidity()||!A||!_||!k.current?.getValue(),onClick:Y,children:e.submit})]}),(0,o.jsxs)(S.VR,{children:[(0,o.jsx)(S.$n,{size:"medium",disabled:Z,href:"modal"===i?void 0:O,onClick:"modal"===i?()=>F("google",O):void 0,color:h.bW,children:(0,o.jsxs)(S.o$,{children:[(0,o.jsx)("img",{src:j.xE,alt:"",height:"16",width:"16"}),e.googleSignUp]})}),(0,o.jsx)(S.$n,{size:"medium",disabled:Z,href:"modal"===i?void 0:T,onClick:"modal"===i?()=>F("facebook",T):void 0,color:h.bW,children:(0,o.jsxs)(S.o$,{children:[(0,o.jsx)("img",{src:j.OF,alt:"Facebook",style:{margin:-6}}),e.facebookSignUp]})}),(0,o.jsx)(S.$n,{size:"medium",disabled:Z,href:"modal"===i?void 0:U,onClick:"modal"===i?()=>F("apple",U):void 0,color:h.bW,children:(0,o.jsxs)(S.o$,{children:[(0,o.jsx)("img",{src:j.KI,alt:e.appleAlt,height:"16",width:"16"}),e.appleSignUp]})})]}),"modal"===i&&"idle"!==W.status&&(0,o.jsx)("div",{className:"text-center text-xs leading-snug font-semibold text-giphyWhite",children:"pending"===W.status?e.socialAuth.pending:(0,o.jsxs)(o.Fragment,{children:[e.socialAuth.finishedPrompt," ",(0,o.jsx)("button",{className:"cursor-pointer border-0 bg-transparent p-0 font-bold text-giphyBlue hover:text-giphyWhite",type:"button",onClick:H,children:e.socialAuth.checkLogin})]})}),R&&(0,f.createPortal)((0,o.jsx)(et,{copy:e.accountRecovery,onClose:e=>{$(!1),e&&z({show:!0,email:e})}}),document.body,"recovery-modal"),N.show&&(0,f.createPortal)((0,o.jsx)(D,{copy:e.emailValidation,email:N.email,loginHref:"modal"===i?void 0:"/login",onVerified:"modal"===i?n:void 0}),document.body,"email-validation")]})};var eu=t(14576),ep=t(76891),eh=t(7216);let eg={join:ec,login:eu.O,logoAlt:"Be Animated",messages:{legacy_email_confirmation_success:{icon:"\uD83D\uDE0E",title:"Success!",message:"Your GIPHY account is now validated.",linkText:"Home",linkURL:"/",type:"success"},email_validation_email_change_success:{icon:"\uD83D\uDE0E",title:"Success!",message:"Your GIPHY email has been updated.",linkText:"Home",linkURL:"/",type:"success"},registration_confirm_success:{icon:"\uD83D\uDE0E",title:"Success!",message:"Your email is now validated.",linkText:"Login Now",linkURL:"/login",type:"success"},registration_confirm_already_confirmed:{icon:"âï¸",title:"Confirmed!",message:"Looks like your account was already validated!",linkText:"Login Now",linkURL:"/login",type:"success"},registration_confirm_failure_invalid_token:{icon:"â ï¸",title:"Busted!",message:"Your confirmation link is expired or invalid.",type:"error"},registration_confirm_failure_already_logged_in:{icon:"\uD83E\uDDD0",title:"You are already signed in!",message:"Sign out first, then try again.",linkText:"Sign Out",linkURL:"/logout",type:"error"},registration_confirm_failure_unknown_error:{icon:"\uD83D\uDE2D",title:"Oops!",message:"An unknown error occurred. Please try again.",type:"error"},registration_send_email_error:{icon:"\uD83E\uDD2C",title:"Error!",message:"There was a problem sending your confirmation email. Please contact GIPHY Support.",linkText:"Contact Support",linkURL:"https://support.giphy.com",type:"error"}},tabs:{login:"Log In",signUp:"Sign Up"}},em=e=>{let i,t,s,r,l,a,c,p,h,g,f,x,y,w,v,b=(0,n.c)(48),{copy:j,footer:L,initialView:k,messageId:A,mode:I,next:S,onAuthSuccess:_,onClose:P,onViewChange:N}=e,z=void 0===j?eg:j,V=void 0===I?"page":I,E=A&&z.messages[A],M=(0,$.useSearchParams)(),O=(0,$.useRouter)(),T="modal"===V,U="/login"===(0,$.usePathname)()?"login":"join",[H,F]=(0,m.useState)(k||U),{showMessage:W}=(0,m.useContext)(C.J);b[0]!==k||b[1]!==T?(i=()=>{T&&F(k||"login")},t=[k,T],b[0]=k,b[1]=T,b[2]=i,b[3]=t):(i=b[2],t=b[3]),(0,m.useEffect)(i,t),b[4]!==E||b[5]!==W?(s=()=>{E&&W({message:(0,o.jsx)(d,{...E}),type:E.type})},r=[E,W],b[4]=E,b[5]=W,b[6]=s,b[7]=r):(s=b[6],r=b[7]),(0,m.useEffect)(s,r);let Z="login"===(T?H:U);e:{let e;if(void 0!==S){l=S;break e}b[8]!==M?(e=M?.get("next")||void 0,b[8]=M,b[9]=e):e=b[9],l=e}let D=l;b[10]!==T||b[11]!==N||b[12]!==M||b[13]!==O?(a=e=>{if(T){F(e),N?.(e);return}let i=M?Object.fromEntries(M.entries()):{},t=(0,B.LW)(new URL("/"+("login"===e?"login":"join"),location.href),i);O.push(t.toString())},b[10]=T,b[11]=N,b[12]=M,b[13]=O,b[14]=a):a=b[14];let q=a;b[15]!==T||b[16]!==P?(c=T?(0,o.jsx)("button",{className:"inline-flex size-6 cursor-pointer items-center justify-center self-start border-0 bg-transparent p-0",onClick:e=>{e.preventDefault(),e.stopPropagation(),P?.()},type:"button",children:(0,o.jsx)(eh.CloseIcon,{height:20})}):(0,o.jsx)(R(),{href:"/",children:(0,o.jsx)(eh.CloseIcon,{className:"absolute inset-0 mt-2.5 block self-start md:hidden",height:20})}),b[15]=T,b[16]=P,b[17]=c):c=b[17],b[18]!==z.logoAlt?(p=(0,o.jsx)("img",{className:"mx-auto h-[92px] w-[195px] md:h-[150px] md:w-[320px]",src:"/static/img/be-animated.gif",alt:z.logoAlt,suppressHydrationWarning:!0}),b[18]=z.logoAlt,b[19]=p):p=b[19];let Y=`segmented-control-${Z?"login":"join"}-${V}`,G=+!Z,K=Z?"blue-green":"purple-indigo";b[20]!==z.tabs.login||b[21]!==z.tabs.signUp?(h=[z.tabs.login,z.tabs.signUp],b[20]=z.tabs.login,b[21]=z.tabs.signUp,b[22]=h):h=b[22],b[23]!==q?(g=e=>{q(0===e?"login":"join")},b[23]=q,b[24]=g):g=b[24],b[25]!==Y||b[26]!==G||b[27]!==K||b[28]!==h||b[29]!==g?(f=(0,o.jsx)(ep.A,{className:"flex w-[325px] self-center",defaultIndex:G,size:"medium",gradient:K,options:h,onChange:g},Y),b[25]=Y,b[26]=G,b[27]=K,b[28]=h,b[29]=g,b[30]=f):f=b[30],b[31]!==z.join||b[32]!==z.login||b[33]!==Z||b[34]!==V||b[35]!==_||b[36]!==D||b[37]!==q?(x=Z?(0,o.jsx)(eu.A,{copy:z.login,mode:V,next:D,onSuccess:_}):(0,o.jsx)(ed,{copy:z.join,mode:V,next:D,onSuccess:_,onSwitchToLogin:()=>q("login")}),b[31]=z.join,b[32]=z.login,b[33]=Z,b[34]=V,b[35]=_,b[36]=D,b[37]=q,b[38]=x):x=b[38],b[39]!==L||b[40]!==p||b[41]!==f||b[42]!==x||b[43]!==c?(y=(0,o.jsxs)("div",{className:"relative m-auto flex w-[325px] flex-col items-stretch gap-3",children:[c,p,f,x,L]}),b[39]=L,b[40]=p,b[41]=f,b[42]=x,b[43]=c,b[44]=y):y=b[44];let J=y;return T?J:(b[45]===Symbol.for("react.memo_cache_sentinel")?(w=(0,o.jsx)(u.default,{}),b[45]=w):w=b[45],b[46]!==J?(v=(0,o.jsxs)(o.Fragment,{children:[w,(0,o.jsx)("div",{className:"flex h-screen md:w-[50vw]",children:J})]}),b[46]=J,b[47]=v):v=b[47],v)}},76891:(e,i,t)=>{t.d(i,{A:()=>_});var o=t(54568),n=t(26274),s=t(4398),r=t.n(s),l=t(7620),a=t(92805),c=t(27079),d=t(54713),u=t(99680),p=t(62922),h=t(20267);let g=(0,d.Ay)(h.A).withConfig({componentId:"sc-89b511c8-0"})(["border-radius:inherit;"]);var m=t(90203),f=t(45366),x=t(89698),y=t(41112),w=t(65565);let v=(0,d.Ay)(w.A).withConfig({componentId:"sc-134f3ec8-0"})(["border-radius:inherit;min-width:auto;position:relative;transition:color 0.2s ease-out;width:100%;&:focus-visible{outline-offset:-2px;}"]),b=d.Ay.div.withConfig({componentId:"sc-134f3ec8-1"})(["border-radius:inherit;height:100%;left:0;position:absolute;top:0;transition:width 0.4s ease-out,transform 0.4s cubic-bezier(0.68,-0.55,0.265,1.55);"]),C=d.Ay.div.withConfig({componentId:"sc-134f3ec8-2"})(["border-radius:inherit;display:flex;flex-direction:row;position:relative;"]),j=({active:e=!1,children:i,className:t,color:n,disabled:s=!1,gradient:r,size:c,title:d,onClick:u,onWidthChange:p})=>{let h=(0,l.useRef)(null),g=(0,x.A)(h),w=(0,a.o_)(g,10),b=(0,l.useMemo)(()=>{let i=r?(0,m.Bj)(r,.5):n,t=(0,y.Y)(i);return e?t:(0,f.b)(t,.5)},[e,n,r]);return(0,l.useEffect)(()=>{p?.(w)},[w]),(0,o.jsx)(v,{className:t,color:"transparent",ref:h,size:c,tabIndex:s?-1:void 0,textColor:b,title:d,onClick:()=>u?.(),children:i})},L=(0,l.forwardRef)((e,i)=>{let t,n,s,r,a,c,d=(0,u.c)(34),{activeIndex:p,backgroundColor:h,className:g,color:f,controlId:x,disabled:y,gradient:w,options:v,optionDescriptions:L,size:k,onChange:A}=e;d[0]!==L?(t=void 0===L?[]:L,d[0]=L,d[1]=t):t=d[1];let I=t;d[2]===Symbol.for("react.memo_cache_sentinel")?(n=[],d[2]=n):n=d[2];let[S,_]=(0,l.useState)(n),P=function(e,i,t,o){let n,s=(0,u.c)(8);e:{let r,l;if(void 0===t){let e;s[0]===Symbol.for("react.memo_cache_sentinel")?(e={display:"none"},s[0]=e):e=s[0],n=e;break e}let a=e[t]||0,c=0;for(let i=0;i<t;i++)c+=e[i]||0;s[1]!==i||s[2]!==o?(r=o?(0,m.$_)(o):i,s[1]=i,s[2]=o,s[3]=r):r=s[3];let d=`translate3d(${c}
6px, 0, 0)`;s[4]!==r||s[5]!==d||s[6]!==a?(l={background:r,transform:d,width:a},s[4]=r,s[5]=d,s[6]=a,s[7]=l):l=s[7],n=l}return n}(S,f,p,w);d[3]===Symbol.for("react.memo_cache_sentinel")?(s=function(e,i){i&&_(t=>{let o=[...t];return o[e]=i,o})},d[3]=s):s=d[3];let R=s;if(d[4]!==S.length||d[5]!==P||d[6]!==v.length?(r=S.length===v.length&&(0,o.jsx)(b,{style:P}),d[4]=S.length,d[5]=P,d[6]=v.length,d[7]=r):r=d[7],d[8]!==p||d[9]!==h||d[10]!==f||d[11]!==x||d[12]!==y||d[13]!==w||d[14]!==A||d[15]!==I||d[16]!==v||d[17]!==k){let e;d[19]!==p||d[20]!==h||d[21]!==f||d[22]!==x||d[23]!==y||d[24]!==w||d[25]!==A||d[26]!==I||d[27]!==k?(e=(e,i)=>{let t=i===p;return(0,o.jsx)(j,{active:t,color:t?f:h,disabled:y,gradient:t?w:void 0,size:k,title:I[i],onClick:()=>A(i),onWidthChange:e=>R(i,e),children:e},`${x}-option-${i}`)},d[19]=p,d[20]=h,d[21]=f,d[22]=x,d[23]=y,d[24]=w,d[25]=A,d[26]=I,d[27]=k,d[28]=e):e=d[28],a=v.map(e),d[8]=p,d[9]=h,d[10]=f,d[11]=x,d[12]=y,d[13]=w,d[14]=A,d[15]=I,d[16]=v,d[17]=k,d[18]=a}else a=d[18];return d[29]!==g||d[30]!==i||d[31]!==r||d[32]!==a?(c=(0,o.jsxs)(C,{className:g,ref:i,children:[r,a]}),d[29]=g,d[30]=i,d[31]=r,d[32]=a,d[33]=c):c=d[33],c}),k=d.Ay.div.withConfig({componentId:"sc-1953aef7-0"})(["background:",";border-radius:","px;position:relative;",""],({$background:e})=>e,({$size:e})=>(0,a.xb)(e,!0),({$disabled:e})=>e&&(0,d.AH)(["opacity:0.5;pointer-events:none;"])),A=d.Ay.div.withConfig({componentId:"sc-1953aef7-1"})(["border-bottom-right-radius:inherit;border-top-right-radius:inherit;height:100%;pointer-events:none;position:absolute;right:0;top:0;",""],({$background:e,$size:i})=>(0,d.AH)(["background:",";width:","px;"],`linear-gradient(90deg, ${(0,a.bq)(e,0)}, ${(0,a.bq)(e,1)}, ${(0,a.bq)(e,1)})`,2*(0,a.uN)(i))),I=(0,d.Ay)(e=>{let i,t,n,s,r,l,a,d=(0,u.c)(25),{activeIndex:h,backgroundColor:m,className:f,controlColor:x,controlId:y,controlSize:w,options:v,selectListOptions:b,tooltipOptions:C,onChange:j}=e;d[0]!==b?(i=void 0===b?{}:b,d[0]=b,d[1]=i):i=d[1];let L=i;d[2]!==C?(t=void 0===C?{}:C,d[2]=C,d[3]=t):t=d[3];let k=t,A=`${y}-menu`;d[4]!==m||d[5]!==A||d[6]!==k?(n={color:m,direction:"up",id:A,...k},d[4]=m,d[5]=A,d[6]=k,d[7]=n):n=d[7];let{isOpen:I,listeners:S}=(0,c.fS)(n);return d[8]!==m||d[9]!==f||d[10]!==w||d[11]!==S?(s=(0,o.jsx)(g,{...S,className:f,color:m,icon:"ellipsis",size:w}),d[8]=m,d[9]=f,d[10]=w,d[11]=S,d[12]=s):s=d[12],d[13]!==h||d[14]!==x||d[15]!==j||d[16]!==v||d[17]!==L?(r=(0,o.jsx)(p.A,{iconColor:x,...L,defaultIndex:h,options:v,onChange:j}),d[13]=h,d[14]=x,d[15]=j,d[16]=v,d[17]=L,d[18]=r):r=d[18],d[19]!==I||d[20]!==r?(l=(0,o.jsx)(c.mt,{isOpen:I,children:r}),d[19]=I,d[20]=r,d[21]=l):l=d[21],d[22]!==s||d[23]!==l?(a=(0,o.jsxs)(o.Fragment,{children:[s,l]}),d[22]=s,d[23]=l,d[24]=a):a=d[24],a}).withConfig({componentId:"sc-1953aef7-2"})(["position:absolute;right:0;top:0;"]),S=(0,d.Ay)(L).withConfig({componentId:"sc-1953aef7-3"})(["border-radius:inherit;height:100%;overflow:hidden;width:100%;",""],({$size:e,$truncated:i})=>i&&(0,d.AH)(["position:relative;> button:last-child{margin-right:","px;}"],(0,a.uN)(e))),_=({backgroundColor:e=n.Hi,className:i,color:t="#fff",defaultIndex:s,disabled:d=!1,gradient:u,index:p,options:h,optionDescriptions:g,selectListOptions:m,size:f="small",style:x,tooltipOptions:y,onChange:w})=>{let v=(0,l.useRef)(p||s),b=(0,l.useRef)(null),C=(0,l.useRef)(r()("segmented-control")),[j,L]=(0,l.useState)(p||s),[_,P]=(0,l.useState)(!1),R=(0,a.my)(b);return(0,l.useEffect)(()=>{b.current&&R&&P(Math.round(b.current.scrollWidth)>Math.round(R.width))},[R,b]),(0,l.useEffect)(()=>{"number"==typeof p&&p!==j&&L(p)},[p]),(0,l.useEffect)(()=>{"number"==typeof j&&j!==v.current&&(v.current=void 0,w?.(j))},[j]),(0,o.jsxs)(k,{$background:e,$disabled:d,$size:f,className:i,style:x,children:[(0,o.jsx)(S,{$size:f,$truncated:_,activeIndex:j,backgroundColor:e,color:t,controlId:C.current,disabled:d,gradient:u,options:h,optionDescriptions:g,ref:b,size:f,onChange:L}),_&&(0,o.jsxs)(c.DJ,{children:[(0,o.jsx)(A,{$background:e,$size:f}),(0,o.jsx)(I,{activeIndex:j,backgroundColor:e,controlColor:t,controlId:C.current,controlSize:f,options:h,selectListOptions:m,tooltipOptions:y,onChange:L})]})]})}}
6,77797:(e,i,t)=>{t.d(i,{A:()=>a});var o=t(54568),n=t(99680),s=t(14159),r=t(29306),l=t(10797);let a=e=>{let i,t,a,c,d=(0,n.c)(12),{user:u,noLink:p,className:h,alternateName:g,href:m}=e,f=m||u.profile_url||`/${u.username}`;d[0]!==h?(i=(0,r.cn)("flex min-w-0 cursor-pointer items-center gap-1 text-sm font-bold text-giphyWhiteSmoke",h),d[0]=h,d[1]=i):i=d[1];let x=(void 0===g?"":g)||`@${u.username}`;return d[2]!==x?(t=(0,o.jsx)("div",{className:"overflow-hidden text-ellipsis whitespace-nowrap subpixel-antialiased",children:x}),d[2]=x,d[3]=t):t=d[3],d[4]!==u.is_verified?(a=u.is_verified&&(0,o.jsx)(s.A,{className:"size-3.5 shrink-0 fill-giphyBlue"}),d[4]=u.is_verified,d[5]=a):a=d[5],d[6]!==p||d[7]!==i||d[8]!==t||d[9]!==a||d[10]!==f?(c=(0,o.jsxs)(l.default,{noLink:p,href:f,className:i,children:[t,a]}),d[6]=p,d[7]=i,d[8]=t,d[9]=a,d[10]=f,d[11]=c):c=d[11],c}},82666:(e,i,t)=>{t.d(i,{_:()=>o});let o=(e,i)=>{let t=e.startsWith("http://")||e.startsWith("https://"),o=new URL(e,t?void 0:"https://giphy.test");return(i&&o.searchParams.set("next",i),t)?o.toString():`${o.pathname}${o.search}${o.hash}`}},83500:(e,i,t)=>{t.d(i,{A:()=>c});var o=t(54568),n=t(7620),s=t(75646),r=t(92805),l=t(85129);let a=t(54713).Ay.i.withConfig({componentId:"sc-d571b98-0"})(["display:inline-block;"]),c=({className:e,color:i="#fff",gradient:t,height:c,icon:d,style:u,width:p})=>{let[h,g]=(0,n.useState)({}),m=(0,n.useMemo)(()=>(0,l.f)(d),[d]),f=(0,n.useMemo)(()=>(0,s.F0)((0,o.jsx)(m,{})),[d]),x={height:c,width:p,...u,...h};return(0,n.useEffect)(()=>{if(!t)return void g({});let e=`url(data:image/svg+xml,${encodeURIComponent(f)}) center center/${p}px ${c}px no-repeat`;g({background:(0,r.$_)(t),display:"inline-block",WebkitMask:e,mask:e})},[t,c,f,p]),t?(0,o.jsx)(a,{className:e,style:x}):(0,o.jsx)(m,{className:e,color:i,style:x})}},94613:(e,i,t)=>{t.r(i),t.d(i,{AutoPlayIcon:()=>s,ExitFullscreenIcon:()=>r,FullscreenIcon:()=>l,LoopIcon:()=>a,PauseIcon:()=>c,PlayIcon:()=>d,SoundOffIcon:()=>u,SoundOnIcon:()=>p});var o=t(54568),n=t(99680);let s=e=>{let i,t,s,r,l=(0,n.c)(8);l[0]!==e?({color:t,...i}=e,l[0]=e,l[1]=i,l[2]=t):(i=l[1],t=l[2]);let a=void 0===t?"#fff":t;return l[3]!==a?(s=(0,o.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.819 3.97116L10.8634 5.62633L16.7084 5.528L13.8711 0.41687L12.8868 2.12173C8.76888 0.0851771 3.72184 1.57289 1.39231 5.60775C-1.03349 9.80936 0.406086 15.1819 4.6077 17.6077C8.80931 20.0336 14.1819 18.594 16.6077 14.3924L14.7634 13.3276C12.9257 16.5106 8.85554 17.6012 5.6725 15.7635C2.48946 13.9257 1.39887 9.85559 3.2366 6.67255C4.97779 3.65672 8.72302 2.51927 11.819 3.97116ZM12.5992 10.9545L8.07382 13.6165C7.54145 13.9297 6.87031 13.5458 6.87031 12.9282V7.60419C6.87031 6.98654 7.54145 6.60269 8.07382 6.91585L12.5992 9.57785C13.1242 9.88663 13.1242 10.6458 12.5992 10.9545Z",fill:a}),l[3]=a,l[4]=s):s=l[4],l[5]!==i||l[6]!==s?(r=(0,o.jsx)("svg",{...i,viewBox:"0 0 17 19",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:s}),l[5]=i,l[6]=s,l[7]=r):r=l[7],r},r=e=>{let i,t,s,r,l=(0,n.c)(8);l[0]!==e?({color:t,...i}=e,l[0]=e,l[1]=i,l[2]=t):(i=l[1],t=l[2]);let a=void 0===t?"#fff":t;return l[3]!==a?(s=(0,o.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.4819 0.124989C10.4325 0.174107 10.4002 0.240137 10.3852 0.323356L10.313 9.40437C10.3108 9.48063 10.3356 9.54441 10.3873 9.5957C10.4391 9.64699 10.5035 9.67154 10.5805 9.66936L19.6277 9.70343C19.7047 9.70125 19.7737 9.66993 19.8347 9.60946C19.8958 9.549 19.9274 9.48063 19.9296 9.40437L19.9993 6.44437C20.0044 6.37096 19.9803 6.3079 19.9271 6.25518C19.8739 6.20247 19.8102 6.17863 19.7361 6.18365L13.8618 6.15407L13.9234 0.261374C13.9284 0.187961 13.9044 0.124898 13.8511 0.0721842C13.7979 0.0194709 13.7343 -0.00437151 13.6602 0.000656829L10.6871 0.0242968C10.6031 0.0391304 10.5347 0.0726945 10.4819 0.124989ZM9.51806 19.875C9.56746 19.8259 9.59978 19.7599 9.61476 19.6766L9.68702 10.5956C9.68922 10.5194 9.66443 10.4556 9.61265 10.4043C9.56087 10.353 9.49649 10.3285 9.4195 10.3306L0.372336 10.2966C0.295346 10.2988 0.22633 10.3301 0.165287 10.3905C0.104246 10.451 0.0726247 10.5194 0.070425 10.5956L0.000663089 13.5556C-0.00441318 13.629 0.0196565 13.6921 0.0728729 13.7448C0.126089 13.7975 0.189754 13.8214 0.263868 13.8163L6.1382 13.8459L6.07664 19.7386C6.07157 19.812 6.09564 19.8751 6.14885 19.9278C6.20207 19.9805 6.26573 20.0044 6.33985 19.9993L9.31285 19.9757C9.39686 19.9609 9.46526 19.9273 9.51806 19.875Z",fill:a}),l[3]=a,l[4]=s):s=l[4],l[5]!==i||l[6]!==s?(r=(0,o.jsx)("svg",{...i,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:s}),l[5]=i,l[6]=s,l[7]=r):r=l[7],r},l=e=>{let i,t,s,r,l=(0,n.c)(8);l[0]!==e?({color:t,...i}=e,l[0]=e,l[1]=i,l[2]=t):(i=l[1],t=l[2]);let a=void 0===t?"#fff":t;return l[3]!==a?(s=(0,o.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.12059 7.99626C4.21182 7.99004 4.2902 8.01953 4.35571 8.08475C4.42122 8.14996 4.45085 8.22798 4.4446 8.3188L4.36882 15.6089L11.6002 15.6455C11.6915 15.6393 11.7698 15.6688 11.8353 15.734C11.9009 15.7992 11.9305 15.8773 11.9242 15.9681L11.8384 19.63C11.8356 19.7244 11.7967 19.8089 11.7216 19.8838C11.6464 19.9586 11.5615 19.9973 11.4667 20L0.329486 19.9579C0.234709 19.9606 0.155452 19.9302 0.0917119 19.8667C0.0279728 19.8033 -0.0025424 19.7244 0.000165538 19.63L0.0891141 8.39548C0.107549 8.29253 0.14723 8.21073 0.208157 8.15007C0.273147 8.08538 0.357352 8.04386 0.460772 8.0255L4.12059 7.99626ZM8.5333 0L19.6705 0.042146C19.7653 0.0394504 19.8445 0.0698278 19.9083 0.133279C19.972 0.196732 20.0025 0.27563 19.9998 0.369979L19.9109 11.6045C19.8925 11.7075 19.8528 11.7893 19.7918 11.8499C19.7269 11.9146 19.6426 11.9561 19.5392 11.9745L15.8794 12.0037C15.7882 12.01 15.7098 11.9805 15.6443 11.9153C15.5788 11.85 15.5492 11.772 15.5554 11.6812L15.6312 4.39107L8.39977 4.35447C8.30854 4.36069 8.23017 4.3312 8.16466 4.26598C8.09915 4.20077 8.06952 4.12275 8.07577 4.03193L8.16164 0.369979C8.16435 0.27563 8.20328 0.191055 8.27842 0.116249C8.35357 0.0414452 8.43853 0.00269567 8.5333 0Z",fill:a}),l[3]=a,l[4]=s):s=l[4],l[5]!==i||l[6]!==s?(r=(0,o.jsx)("svg",{...i,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:s}),l[5]=i,l[6]=s,l[7]=r):r=l[7],r},a=e=>{let i,t,s,r,l=(0,n.c)(8);l[0]!==e?({color:t,...i}=e,l[0]=e,l[1]=i,l[2]=t):(i=l[1],t=l[2]);let a=void 0===t?"#fff":t;return l[3]!==a?(s=(0,o.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20.321 7.06367L20.3751 7.17797L20.5029 7.47171C20.8254 8.26626 21 9.14604 21 10.0004C21 13.7988 17.9074 16.997 14.0307 17.2286L13.8054 17.2387L13.5834 17.2419L6.
605309 17.2416L5.96132 17.3312L5.96122 20L1.89133 16.0255L5.96122 12.05L5.96132 14.719L6.05308 14.8086L13.5077 14.8091L13.7154 14.8049C16.1959 14.705 18.2123 12.8225 18.415 10.4009L18.4275 10.201L18.4317 10.0022L18.429 9.68064L18.4222 9.51572L18.4061 9.31991L18.3948 9.23242L18.3562 9.03796L18.4035 8.92288L20.321 7.06367ZM15.0379 0L19.1088 3.97544L15.0379 7.94999L15.0378 5.28061L14.946 5.19102L7.41518 5.19177L7.20744 5.19595C4.72702 5.29594 2.71062 7.17838 2.50785 9.60002L2.49535 9.79993L2.49119 9.99865L2.49174 10.1362L2.49758 10.3622C2.50238 10.46 2.5103 10.5375 2.52268 10.6065L2.55379 10.7363L2.57818 10.8085L2.66126 10.9988L0.677245 12.9363L0.624919 12.8229L0.497088 12.5292C0.174564 11.7346 0 10.8549 0 10.0004C0 6.20208 3.0926 3.00389 6.96932 2.77229L7.19458 2.76221L7.41659 2.75895L14.946 2.75896L15.0378 2.66937L15.0379 0Z",fill:a}),l[3]=a,l[4]=s):s=l[4],l[5]!==i||l[6]!==s?(r=(0,o.jsx)("svg",{...i,viewBox:"0 0 21 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:s}),l[5]=i,l[6]=s,l[7]=r):r=l[7],r},c=e=>{let i,t,s,r,l,a=(0,n.c)(10);a[0]!==e?({color:t,...i}=e,a[0]=e,a[1]=i,a[2]=t):(i=a[1],t=a[2]);let c=void 0===t?"#fff":t;return a[3]!==c?(s=(0,o.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4 20H1.01562C0.454711 20 0 19.5278 0 18.9453V1.05469C0 0.4722 0.454711 0 1.01562 0L3.98437 0.0546875C4.54529 0.0546875 5 0.526887 5 1.10938V19C5 19.5825 4.56091 20 4 20Z",fill:c}),r=(0,o.jsx)("path",{d:"M12.0156 20H15C15.5609 20 16 19.5825 16 19V1.10938C16 0.526887 15.5453 0.0546875 14.9844 0.0546875L12.0156 0C11.4547 0 11 0.4722 11 1.05469V18.9453C11 19.5278 11.4547 20 12.0156 20Z",fill:c}),a[3]=c,a[4]=s,a[5]=r):(s=a[4],r=a[5]),a[6]!==i||a[7]!==s||a[8]!==r?(l=(0,o.jsxs)("svg",{...i,viewBox:"0 0 16 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[s,r]}),a[6]=i,a[7]=s,a[8]=r,a[9]=l):l=a[9],l},d=e=>{let i,t,s,r,l=(0,n.c)(8);l[0]!==e?({color:t,...i}=e,l[0]=e,l[1]=i,l[2]=t):(i=l[1],t=l[2]);let a=void 0===t?"#fff":t;return l[3]!==a?(s=(0,o.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M21.75 0C22.9926 0 24 1.00736 24 2.25V21.75C24 22.9926 22.9926 24 21.75 24H2.25C1.00736 24 0 22.9926 0 21.75V2.25C0 1.00736 1.00736 0 2.25 0H21.75ZM8.44596 5.78246C8.36945 5.78246 8.29533 5.80384 8.2236 5.8466L8.21053 18.513C8.26791 18.5593 8.34084 18.5825 8.4293 18.5825C8.43362 18.5825 8.45441 18.5716 8.49167 18.55L8.53442 18.5248C9.12943 18.1691 12.2302 16.1685 17.8367 12.523C17.8941 12.4767 17.9228 12.4215 17.9228 12.3573C17.9228 12.2932 17.8941 12.2379 17.8367 12.1916L8.66115 5.8466C8.58942 5.80384 8.51769 5.78246 8.44596 5.78246Z",fill:a}),l[3]=a,l[4]=s):s=l[4],l[5]!==i||l[6]!==s?(r=(0,o.jsx)("svg",{...i,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:s}),l[5]=i,l[6]=s,l[7]=r):r=l[7],r},u=e=>{let i,t,s,r,l=(0,n.c)(8);l[0]!==e?({color:t,...i}=e,l[0]=e,l[1]=i,l[2]=t):(i=l[1],t=l[2]);let a=void 0===t?"#fff":t;return l[3]!==a?(s=(0,o.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M21.0035 12.3341C21.0363 12.3757 21.0526 12.4217 21.0526 12.4722C21.0526 12.5197 21.0363 12.5642 21.0035 12.6058L19.6549 13.951C19.6133 13.9837 19.5686 14 19.521 14C19.4704 14 19.4242 13.9837 19.3825 13.951L17.0426 11.6169L14.7027 13.951C14.661 13.9837 14.6149 14 14.5643 14C14.5166 14 14.472 13.9837 14.4303 13.951L13.0817 12.6058C13.049 12.5642 13.0326 12.5197 13.0326 12.4722C13.0326 12.4217 13.049 12.3757 13.0817 12.3341L15.4216 10L13.0817 7.66593C13.049 7.62435 13.0326 7.57832 13.0326 7.52784C13.0326 7.48033 13.049 7.43578 13.0817 7.39421L14.4303 6.049C14.472 6.01633 14.5166 6 14.5643 6C14.6149 6 14.661 6.01633 14.7027 6.049L17.0426 8.38307L19.3825 6.049C19.4242 6.01633 19.4704 6 19.521 6C19.5686 6 19.6133 6.01633 19.6549 6.049L21.0035 7.39421C21.0363 7.43578 21.0526 7.48033 21.0526 7.52784C21.0526 7.57832 21.0363 7.62435 21.0035 7.66593L18.6636 10L21.0035 12.3341ZM10.5194 0.502322V19.4977C10.5194 19.7241 10.4177 19.8802 10.2142 19.9661C9.97936 20.0364 9.79543 19.9974 9.66237 19.849L4.28525 13.9601H0.504838C0.363953 13.9601 0.244593 13.9113 0.146755 13.8137C0.0489179 13.7161 0 13.597 0 13.4565V6.53567C0 6.39513 0.0489179 6.27607 0.146755 6.17848C0.244593 6.08088 0.363953 6.03209 0.504838 6.03209H4.28525L9.66237 0.15099C9.79543 0.00264892 9.97936 -0.0363882 10.2142 0.0338786C10.4177 0.11976 10.5194 0.275907 10.5194 0.502322Z",fill:a}),l[3]=a,l[4]=s):s=l[4],l[5]!==i||l[6]!==s?(r=(0,o.jsx)("svg",{...i,viewBox:"0 0 22 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:s}),l[5]=i,l[6]=s,l[7]=r):r=l[7],r},p=e=>{let i,t,s,r,l=(0,n.c)(8);l[0]!==e?({color:t,...i}=e,l[0]=e,l[1]=i,l[2]=t):(i=l[1],t=l[2]);let a=void 0===t?"#fff":t;return l[3]!==a?(s=(0,o.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.5757 0.502322V19.4977C10.5757 19.7241 10.4734 19.8802 10.2689 19.9661C10.0328 20.0364 9.84787 19.9974 9.7141 19.849L4.3082 13.9601H0.507541C0.365901 13.9601 0.245902 13.9113 0.147541 13.8137C0.0491799 13.7161 0 13.597 0 13.4565V6.53567C0 6.39513 0.0491799 6.27607 0.147541 6.17848C0.245902 6.08088 0.365901 6.03209 0.507541 6.03209H4.3082L9.7141 0.15099C9.84787 0.00264892 10.0328 -0.0363882 10.2689 0.0338786C10.4734 0.11976 10.5757 0.275907 10.5757 0.502322ZM16.2555 2.2349C19.3184 3.59149 21.3333 6.61338 21.3333 10C21.3333 13.3942 19.3093 16.4216 16.2361 17.7737L15.2828 15.6406C17.5133 14.6593 18.9816 12.463 18.9816 10C18.9816 7.54245 17.5198 5.35016 15.2969 4.36558L16.2555 2.2349ZM13.9419 5.88932C15.5632 6.6074 16.6299 8.20724 16.6299 10C16.6299 11.7968 15.5584 13.3995 13.9316 14.1152L12.9783 11.9822C13.7623 11.6373 14.2782 10.8656 14.2782 10C14.2782 9.13632 13.7646 8.36607 12.9833 8.01999L13.9419 5.88932Z",fill:a}),l[3]=a,l[4]=s):s=l[4],l[5]!==i||l[6]!==s?(r=(0,o.jsx)("svg",{...i,viewBox:"0 0 22 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:s}),l[5]=i,l[6]=s,l[7]=r):r=l[7],r}},96137:(e,i,t)=>{t.d(i,{n:()=>l});var o=t(39865),n=t(5458),s=t(7620),r=t(30904);let l=({mode:e,onSuccess:i})=>{let{showMessage:t}=(0,s.useContext)(n.J),{refreshUser:l}=(0,s.useContext)(o.A),a=(0,s.useRef)(null),c=(0,s.useRef)(null),d=(0,s.useRef)(!1),[u,p]=(0,s.use
6State)({status:"idle"}),h=(0,s.useCallback)(()=>{null!==c.current&&(window.clearInterval(c.current),c.current=null)},[]),g=(0,s.useCallback)(async()=>{if(!d.current){d.current=!0;try{let e=await l?.();if(!e){p(e=>"idle"===e.status?e:{provider:e.provider,status:"closed"}),t({message:"We could not confirm your login. Please try again.",type:"error"});return}h(),a.current?.close(),a.current=null,p({status:"idle"}),await i?.(e)}finally{d.current=!1}}},[h,i,l,t]),m=(0,s.useCallback)((i,o)=>{if("modal"!==e)return;h();let n=window.open((0,r.b7)(o),`giphy-${i}-auth`,r.E2);if(!n){p({status:"idle"}),t({message:"We could not open the login window. Allow popups and try again.",type:"error"});return}a.current=n,p({provider:i,status:"pending"}),n.focus(),c.current=window.setInterval(()=>{n.closed&&!d.current&&(h(),p(e=>"pending"===e.status?{provider:e.provider,status:"closed"}:e))},500)},[h,e,t]);return(0,s.useEffect)(()=>{if("modal"!==e)return;let i=e=>{e.origin===window.location.origin&&(0,r.dq)(e.data)&&g()};return window.addEventListener("message",i),()=>{window.removeEventListener("message",i)}},[g,e]),(0,s.useEffect)(()=>h,[h]),{completeSocialAuth:g,openSocialAuthPopup:m,socialAuthState:u}}}}]); 7//# sourceMappingURL=8029-035dac1f34dfc3be.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.