1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[313],{5458:(e,t,i)=>{i.d(t,{A:()=>u,J:()=>p});var n=i(54568),o=i(99680),r=i(29306),a=i(7620),s=i(97509),l=i(54713),c=i(61848),d=i(39427);let p=(0,a.createContext)({}),h=l.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),u=e=>{let t,i,l,u,m,f,g,x=(0,o.c)(18),{children:y}=e,[v,w]=(0,a.useState)(!1),[b,j]=(0,a.useState)(),[C,k]=(0,a.useState)(0);x[0]===Symbol.for("react.memo_cache_sentinel")?(t=e=>{j(e),w(!0)},x[0]=t):t=x[0];let _=t;x[1]===Symbol.for("react.memo_cache_sentinel")?(i=(e,t,i)=>{i?_({message:e,type:"success"}):_({message:t,type:"error"})},x[1]=i):i=x[1];let A=i;x[2]!==b?.displayTime?(l=()=>{let e=setTimeout(()=>{w(!1)},b?.displayTime||5e3);return()=>clearTimeout(e)},x[2]=b?.displayTime,x[3]=l):l=x[3];let I=b?.displayTime;x[4]!==C||x[5]!==I?(u=[C,I],x[4]=C,x[5]=I,x[6]=u):u=x[6],(0,a.useEffect)(l,u);let S=(0,d.A)();return x[7]===Symbol.for("react.memo_cache_sentinel")?(m={showMessage:_,showStatusMessage:A,hideMessage:()=>w(!1)},x[7]=m):m=x[7],x[8]!==S||x[9]!==C||x[10]!==b?.className||x[11]!==b?.message||x[12]!==b?.type||x[13]!==v?(f=S&&(0,s.createPortal)((0,n.jsx)(h,{className:"fixed top-0 right-0 left-0",style:{zIndex:c.wR+1},$visible:v,onTransitionEnd:()=>{k(C+1)},children:(0,n.jsx)("div",{className:(0,r.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-${C}`),x[8]=S,x[9]=C,x[10]=b?.className,x[11]=b?.message,x[12]=b?.type,x[13]=v,x[14]=f):f=x[14],x[15]!==y||x[16]!==f?(g=(0,n.jsxs)(p.Provider,{value:m,children:[f,y]}),x[15]=y,x[16]=f,x[17]=g):g=x[17],g}},5588:(e,t,i)=>{i.d(t,{default:()=>j});var n=i(54568),o=i(99680),r=i(16496),a=i(41798),s=i(7620),l=i(7397),c=i(54713),d=i(50392),p=i(11939),h=i(902),u=i(34874),m=i(68097);let f=(0,c.i7)(["0%{opacity:0;}5%{opacity:1;}80%{opacity:1;}100%{opacity:0;}"]),g=c.Ay.div.withConfig({componentId:"sc-3f0a1d37-0"})(["position:absolute;inset:0;animation:"," 2.5s ease-in-out forwards;animation-delay:0.5s;opacity:0;"],f),x=(0,c.Ay)(d.A).withConfig({componentId:"sc-3f0a1d37-1"})(["position:absolute;left:5px;top:50%;filter:drop-shadow(4px 4px 4px rgba(0,0,0,0.5));"]),y=(0,c.Ay)(p.A).withConfig({componentId:"sc-3f0a1d37-2"})(["position:absolute;right:5px;top:50%;filter:drop-shadow(4px 4px 4px rgba(0,0,0,0.5));"]),v=e=>{let t,i,r,a,l=(0,o.c)(13),{gif:c}=e,{prev:d,next:p}=(0,m.p)(c,4),f=(0,h.useRouter)(),[v,w]=(0,s.useState)(0);return l[0]!==v?(t=()=>{w(v+1)},l[0]=v,l[1]=t):t=l[1],l[2]!==d||l[3]!==f?(i=d&&(0,n.jsx)("div",{onClick:e=>{e.preventDefault(),e.stopPropagation(),f.push((0,u.AK)(d.url))},children:(0,n.jsx)(x,{width:20})}),l[2]=d,l[3]=f,l[4]=i):i=l[4],l[5]!==p||l[6]!==f?(r=p&&(0,n.jsx)("div",{onClick:e=>{e.preventDefault(),e.stopPropagation(),f.push((0,u.AK)(p.url))},children:(0,n.jsx)(y,{width:20})}),l[5]=p,l[6]=f,l[7]=r):r=l[7],l[8]!==v||l[9]!==t||l[10]!==i||l[11]!==r?(a=(0,n.jsxs)(g,{onClick:t,children:[i,r]},v),l[8]=v,l[9]=t,l[10]=i,l[11]=r,l[12]=a):a=l[12],a};var w=i(16974);let b=(0,c.Ay)(a.Gif).withConfig({componentId:"sc-865b66db-0"})(["img{object-fit:contain;}transition:height 100ms ease-out,width 100ms ease-out;"]),j=e=>{let t,i,c,d,p=(0,o.c)(19),{gif:h,isVideo:u,isBot:m,lazyLoad:f}=e,g=void 0!==m&&m,{currentGif:x,setCurrentGif:y}=(0,s.useContext)(w.l),j=x||h,{width:C}=(0,l.A)();p[0]!==h||p[1]!==y?(t=()=>{y(h)},i=[h,y],p[0]=h,p[1]=y,p[2]=t,p[3]=i):(t=p[2],i=p[3]),(0,s.useEffect)(t,i);let k=!x,_=(0,r._2)(j,350),A=`${100*Math.min(1,500/_)}%`,I=C*parseFloat(A)/100;p[4]!==j||p[5]!==k||p[6]!==I?(c=k?void 0:(0,r._2)(j,I),p[4]=j,p[5]=k,p[6]=I,p[7]=c):c=p[7];let S=c,N=k?350:I,E=j.images.original.width/j.images.original.height;return p[8]!==E||p[9]!==j.is_sticker||p[10]!==S||p[11]!==g||p[12]!==k||p[13]!==u||p[14]!==f||p[15]!==A||p[16]!==h||p[17]!==N?(d=(0,n.jsx)("div",{className:"relative flex justify-center",children:u?(0,n.jsx)(a.Video,{hideTitle:!0,controls:!0,style:{aspectRatio:E},gif:h,width:N,height:S,hideAttribution:!0,percentWidth:k?A:void 0}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(b,{noLink:!0,style:{aspectRatio:E},gif:h,width:N,height:S,lazyLoad:f,percentWidth:k?A:void 0,backgroundColor:j.is_sticker?void 0:"rgba(0,0,0,0)"}),g?null:(0,n.jsx)(v,{gif:h})]})}),p[8]=E,p[9]=j.is_sticker,p[10]=S,p[11]=g,p[12]=k,p[13]=u,p[14]=f,p[15]=A,p[16]=h,p[17]=N,p[18]=d):d=p[18],d}},16974:(e,t,i)=>{i.d(t,{default:()=>s,l:()=>a});var n=i(54568),o=i(99680),r=i(7620);let a=(0,r.createContext)({relatedGifs:[],setRelatedGifs:()=>{},setCurrentGif:()=>{}}),s=e=>{let t,i,s,l=(0,o.c)(7),{children:c}=e;l[0]===Symbol.for("react.memo_cache_sentinel")?(t=[],l[0]=t):t=l[0];let[d,p]=(0,r.useState)(t),[h,u]=(0,r.useState)();return l[1]!==h||l[2]!==d?(i={relatedGifs:d,setRelatedGifs:p,currentGif:h,setCurrentGif:u},l[1]=h,l[2]=d,l[3]=i):i=l[3],l[4]!==c||l[5]!==i?(s=(0,n.jsx)(a.Provider,{value:i,children:c}),l[4]=c,l[5]=i,l[6]=s):s=l[6],s}},22328:(e,t,i)=>{i.d(t,{default:()=>p});var n=i(54568),o=i(99680),r=i(74932),a=i(41198),s=i.n(a),l=i(29306),c=i(7620);let d=new Set(["favorited","copied","downloaded"]),p=()=>{let e,t,i,a,p=(0,o.c)(13),{panel:h,setPanel:u}=(0,c.useContext)(r.Q),[m,f]=(0,c.useState)("closed");p[0]!==h?(e=d.has(h),p[0]=h,p[1]=e):e=p[1];let g=e;p[2]!==g?(t=()=>{let e;return g?(f("opening"),e=setTimeout(()=>{f("closing")},2e3)):f("closed"),()=>clearTimeout(e)},p[2]=g,p[3]=t):t=p[3],p[4]!==g||p[5]!==u?(i=[g,u,f],p[4]=g,p[5]=u,p[6]=i):i=p[6],(0,c.useEffect)(t,i);let x="to-giphyRed from-giphyPink",y="Added to Favorites!";switch(h){case"copied":y="Copied to Clipboard!",x="to-giphyGreen from-giphyAqua";break;case"downloaded":y="Saved to Downloads!",x="from-giphyBlue to-giphyIndigo"}return p[7]!==m||p[8]!==x||p[9]!==g||p[10]!==u||p[11]!==y?(a=g?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{className:(0,l.cn)("opening"===m?"animate-[showGifMessage_250ms_ease-in-out_forwards]":"animate-[fadeIn_250ms_ease-out_reverse_both]","absolute inset-0 flex items-center justify-center"),onAnimationEnd:()=>{"closing"===m&&g&&(f("closed"),u("none"))},children:(0,n.jsx)("div",{className:(0,l.cn)(x,"absolute inset-0 bg-linear-to-b opacity-80")})},`message-${m}`),(0,n.jsx)("div",{className:(0,l.cn)("p-2 text-center text-3xl select-none","transition-opacity","opening"===m?"opacity-100 delay-200":"opacity-0","absolute inset-0 flex items-center justify-center",s().className),children:y})]}):null,p[7]=m,p[8]=x,p[9]=g,p[10]=u,p[11]=y,p[12]=a):a=p[12],a}},26213:(e,t,i)=>{i.d(t,{default:()=>l});var n=i(54568),o=i(99680),r=i(85874),a=i(36119),s=i(7620);let l=e=>{let t,i,l=(0,o.c)(10),{gif:c,children:d,className:p,iconSize:h,iconClassName:u}=e,m=(0,s.useContext)(a.Ay);l[0]!==c.id||l[1]!==m.favorites?(t=m.favorites.includes(c.id),l[0]=c.id,l[1]=m.favorites,l[2]=t):t=l[2];let f=t;return l[3]!==d||l[4]!==p||l[5]!==c||l[6]!==u||l[7]!==h||l[8]!==f?(i=(0,n.jsx)(r.default,{gif:c,iconSize:h,isFavorite:f,className:p,iconClassName:u,children:d}),l[3]=d,l[4]=p,l[5]=c,l[6]=u,l[7]=h,l[8]=f,l[9]=i):i=l[9],i}},33401:(e,t,i)=>{i.d(t,{default:()=>g});var n=i(54568),o=i(99680),r=i(35949),a=i(10933),s=i.n(a),l=i(7620),c=i(97509),d=i(49202),p=i(33601),h=i(84530),u=i(33918),m=i(57769),f=i(35754);let g=e=>{let t,i,a,s,p=(0,o.c)(23),{gif:g,iconSize:v,children:w}=e,[b,j]=(0,l.useState)(!1),[C,k]=(0,f.N)(),{width:_}=(0,d.A)();if(p[0]!==w||p[1]!==g.id||p[2]!==g.images||p[3]!==g.is_sticker||p[4]!==g.tags||p[5]!==g.title||p[6]!==v||p[7]!==k||p[8]!==b||p[9]!==_){let e,o=g.tags?.filter(x);p[12]===Symbol.for("react.memo_cache_sentinel")?(e=()=>{j(!0)},p[12]=e):e=p[12],p[13]!==v?(t=(0,n.jsx)("div",{onClick:e,children:(0,n.jsx)(h.EllipsisIcon,{width:v,height:v})}),p[13]=v,p[14]=t):t=p[14],i=b&&(0,c.createPortal)((0,n.jsx)(u.A,{onClose:()=>j(!1),children:(0,n.jsxs)(m.mc,{children:[(0,n.jsxs)(m.T0,{children:[(0,n.jsx)(m.TX,{src:g.images.original.url,alt:g.title,width:_-m.d$}),(0,n.jsxs)("h4",{className:"flex align-middle",children:[(0,n.jsx)(h.TapAndHoldIcon,{width:v,height:v,className:"inline-block align-middle"}),"Tap and Hold to Copy ",g.is_sticker?"Sticker":"GIF"]})]}),(0,n.jsxs)(m.wi,{children:[o?.length>0&&(0,n.jsx)("div",{className:"w-full space-x-1.5 overflow-auto whitespace-nowrap",children:o.map(y)}),w,(0,n.jsx)(r.default,{className:"w-full bg-giphyDarkGrey",onClick:()=>{k(!0)},children:"Report Content"})]})]})}),document.body,`${g.id}-info`),p[0]=w,p[1]=g.id,p[2]=g.images,p[3]=g.is_sticker,p[4]=g.tags,p[5]=g.title,p[6]=v,p[7]=k,p[8]=b,p[9]=_,p[10]=t,p[11]=i}else t=p[10],i=p[11];return p[15]!==g.id||p[16]!==k||p[17]!==C?(a=C&&(0,n.jsx)(f.K,{gifId:g.id,onClose:()=>k(!1)}),p[15]=g.id,p[16]=k,p[17]=C,p[18]=a):a=p[18],p[19]!==t||p[20]!==i||p[21]!==a?(s=(0,n.jsxs)(n.Fragment,{children:[t,i,a]}),p[19]=t,p[20]=i,p[21]=a,p[22]=s):s=p[22],s};function x(e){return!e.startsWith("giphy")}function y(e){return(0,n.jsx)(s(),{prefetch:!1,href:`/explore/${encodeURIComponent(e.replace(/ /g,"-"))}`,children:(0,n.jsx)(p.A,{text:`#${e}`})},e)}},33601:(e,t,i)=>{i.d(t,{A:()=>d});var n=i(54568),o=i(99680),r=i(26274),a=i(54713);let s=(0,a.i7)(["from{opacity:0;transform:translate3d(0,100%,0);}to{opacity:1;transform:none;}"]),l=a.Ay.a.withConfig({componentId:"sc-115046ce-0"})(["display:inline-flex;padding:0 16px;background-color:",";border-radius:20px;line-height:38px;justify-content:center;align-items:center;height:40px;overflow:visible;animation-name:",";animation-duration:1s;&:active{opacity:0.8;}&:hover{color:",";}"],r.Hi,s,r.MT),c=a.Ay.h3.withConfig({componentId:"sc-115046ce-1"})(["margin:0px;white-space:nowrap;font-size:15px;font-weight:400;text-transform:lowercase;font-style:italic;letter-spacing:0.04em;-webkit-font-smoothing:antialiased;"]),d=e=>{let t,i=(0,o.c)(5),{href:r,text:a,onClick:s,className:d}=e;return i[0]!==d||i[1]!==r||i[2]!==s||i[3]!==a?(t=r?(0,n.jsx)(l,{href:r,onClick:s,className:d,children:(0,n.jsx)(c,{children:a})}):(0,n.jsx)(l,{as:"div",className:d,children:(0,n.jsx)(c,{children:a})}),i[0]=d,i[1]=r,i[2]=s,i[3]=a,i[4]=t):t=i[4],t}},33918:(e,t,i)=>{i.d(t,{A:()=>p});var n=i(54568),o=i(99680),r=i(54713),a=i(61848),s=i(7216);let l=r.Ay.div.withConfig({componentId:"sc-ea8a6110-0"})(["position:fixed;inset:0;background:rgba(0,0,0,0.9);display:flex;flex-direction:column;padding:20px 0;z-index:",";overflow:auto;"],a.wR),c=r.Ay.div.withConfig({componentId:"sc-ea8a6110-1"})(["font-weight:bold;align-self:center;display:flex;"]),d=r.Ay.div.withConfig({componentId:"sc-ea8a6110-2"})(["margin-left:15px;margin-top:5px;
1"]),p=e=>{let t,i,r,a,p=(0,o.c)(10),{children:h,onClose:u,className:m}=e;return p[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,n.jsx)(s.CloseIcon,{height:20}),p[0]=t):t=p[0],p[1]!==u?(i=(0,n.jsx)(d,{onClick:u,children:t}),p[1]=u,p[2]=i):i=p[2],p[3]!==u?(r=(0,n.jsx)(c,{onClick:u,children:"Cancel"}),p[3]=u,p[4]=r):r=p[4],p[5]!==h||p[6]!==m||p[7]!==i||p[8]!==r?(a=(0,n.jsxs)(l,{className:m,children:[i,h,r]}),p[5]=h,p[6]=m,p[7]=i,p[8]=r,p[9]=a):a=p[9],a}},35754:(e,t,i)=>{i.d(t,{K:()=>ei,default:()=>en,N:()=>et});var n=i(54568),o=i(99680),r=i(6164),a=i(29306),s=i(39427),l=i(902),c=i(7620),d=i(97509),p=i(77965),h=i(35949),u=i(39865),m=i(89905),f=i.n(m),g=i(41198),x=i.n(g),y=i(34874),v=i(36542),w=i(26274),b=i(54713),j=i(89149),C=i(62922),k=i(16003);let _=b.Ay.div.withConfig({componentId:"sc-342d5167-0"})(["background:linear-gradient(240deg,#f66 7.79%,#e646b6 92.21%);width:100%;height:5px;position:absolute;top:0;left:0;"]),A=(0,b.Ay)(j.A).withConfig({componentId:"sc-342d5167-1"})(["height:42px;margin-top:10px;margin-bottom:10px;button{height:42px;}"]),I=b.Ay.div.withConfig({componentId:"sc-342d5167-2"})(["background:",";border-radius:3px;height:24px;width:24px;margin:0 7px;cursor:pointer;border-radius:4px;border:2px solid ",";background:#121212;&:before{content:'';width:20px;height:20px;position:absolute;filter:grayscale(1);","}"],w.Hi,e=>e.checked?"#0f9":"#5c5c5c",e=>e.checked&&(0,b.AH)(["background-image:url('/static/img/check-mark.png');background-size:64%;background-repeat:no-repeat;background-position:center;"])),S=b.Ay.span.withConfig({componentId:"sc-342d5167-3"})(["color:",";font-family:",";font-size:17px;font-style:normal;font-weight:700;line-height:25px;"],e=>e.checked?"#FFF":"#616060",f().style.fontFamily),N=b.Ay.p.withConfig({componentId:"sc-342d5167-4"})(["color:var(--Grey-07-Brooklyn-Snow,#a6a6a6);text-align:center;font-weight:normal;letter-spacing:0.3px;font-size:14px;line-height:18px;margin-top:20px;font-family:",";font-size:15px;font-style:normal;font-weight:700;line-height:normal;cursor:pointer;"],f().style.fontFamily),E=b.Ay.div.withConfig({componentId:"sc-342d5167-5"})(["background-color:rgba(0,0,0,0.7);&::-webkit-scrollbar{display:none;}"]),F=b.Ay.form.withConfig({componentId:"sc-342d5167-6"})(["position:absolute;top:60px;left:50%;width:100%;height:auto;padding:40px 20px;background-color:green;transform:translateX(-50%);z-index:999;background:",";transition:all 1s ease-out;max-width:600px;"],w.ni),T=b.Ay.div.withConfig({componentId:"sc-342d5167-7"})(["display:flex;flex-direction:row;justify-content:space-between;margin-bottom:20px;"]),R=b.Ay.div.withConfig({componentId:"sc-342d5167-8"})(["display:flex;flex-direction:column;flex-grow:1;&:nth-child(2){margin-left:30px;}"]),O=(0,b.Ay)(R).withConfig({componentId:"sc-342d5167-9"})([""," & > div > div:first-child > div{background-color:#2e2e2e;height:42px;width:42px;}& > div > div{background-color:#212121;}"],({fixedWidth:e})=>e&&"width:"+e+"px;");b.Ay.span.withConfig({componentId:"sc-342d5167-10"})(["color:",";font-size:16px;align-items:center;"],w.nU);let z=b.Ay.div.withConfig({componentId:"sc-342d5167-11"})(["color:white;font-size:15px;font-weight:bold;justify-content:flex-start;div{flex-direction:row;}span{display:flex;}&::after{content:' *';color:var(--color-grey-5-greg,#4e4e4e);font-family:",";font-size:15px;font-style:normal;font-weight:700;line-height:22px;display:",";}"],f().style.fontFamily,({displayAsterisk:e})=>e?"inline":"none"),P=b.Ay.div.withConfig({componentId:"sc-342d5167-12"})(["display:flex;flex-direction:row;color:",";font-family:",";font-size:17px;font-weight:bold;margin-bottom:40px;"],w.xx,f().style.fontFamily),$=b.Ay.span.withConfig({componentId:"sc-342d5167-13"})(["color:white;font-family:",";font-size:34px;line-height:42px;margin-top:3px;font-weight:normal;display:table;margin:0 auto;"],x().style.fontFamily),G=b.Ay.input.withConfig({componentId:"sc-342d5167-14"})(["width:100%;height:42px;font-size:16px;line-height:24px;font-weight:normal;color:",";background-color:",";border-radius:4px;padding:10px;margin-top:10px;resize:none;border:none;&:focus{outline:none;}&::placeholder{color:",";}"],w.nU,w.bW,w.nU),J=b.Ay.textarea.withConfig({componentId:"sc-342d5167-15"})(["width:100%;height:96px;font-size:16px;line-height:24px;font-weight:normal;margin-top:10px;color:white;background-color:",";border-radius:4px;padding:10px;resize:none;border:none;&:focus{outline:none;}&::placeholder{color:",";}"],w.bW,w.nU),U=b.Ay.div.withConfig({componentId:"sc-342d5167-16"})(["gap:15px;width:300px;margin-top:10px;display:flex;flex-direction:row;justify-content:flex-end;padding-right:5px;"]),M=b.Ay.div.withConfig({componentId:"sc-342d5167-17"})(["display:flex;flex-direction:row;justify-content:space-between;"]),V=b.Ay.div.withConfig({componentId:"sc-342d5167-18"})(["height:",";opacity:",";overflow:hidden;transition:all 1s ease-out;"],e=>e.isExpand?"auto":"0",e=>e.isExpand?"1":"0"),D=b.Ay.div.withConfig({componentId:"sc-342d5167-19"})(["padding:16px 24px;height:240px;overflow-x:auto;"]),W=b.Ay.div.withConfig({componentId:"sc-342d5167-20"})(["position:fixed;top:30%;left:50%;width:95%;height:390px;transform:translateX(-50%);z-index:999;background:rgb(18,18,18);overflow-y:scroll;&::-webkit-scrollbar{display:none;}"]),Y=b.Ay.span.withConfig({componentId:"sc-342d5167-21"})(["width:18px;height:18px;position:absolute;top:25px;right:25px;background-size:100%;cursor:pointer;background-image:url('/static/img/thick-close-btn.png');"]),B=b.Ay.div.withConfig({componentId:"sc-342d5167-22"})(["text-align:center;margin:auto;height:260px;display:flex;flex-direction:column;justify-content:center;padding:40px 40px 20px;h4{color:var(--color-grey-9-white,#fff);text-align:center;font-family:",";font-size:28px;font-style:normal;font-weight:900;line-height:130%;}p{color:var(--color-grey-8-almost-white,#d8d8d8);text-align:center;font-family:",";font-size:17px;font-style:normal;font-weight:700;line-height:25px;}"],x().style.fontFamily,f().style.fontFamily),L=b.Ay.div.withConfig({componentId:"sc-342d5167-23"})(["background-color:#212121;height:70px;width:100%;margin-top:20px;
1display:flex;justify-content:center;align-items:center;padding:40px 20px;p{width:485px;text-align:center;color:var(--color-symantic-paragraph,#a6a6a6);text-align:center;font-family:",";font-size:13px;font-style:normal;font-weight:400;line-height:normal;}b{font-weight:700;}"],f().style.fontFamily),K=e=>{let t,i,r,a=(0,o.c)(9),{label:s,isChecked:l,onClick:c}=e;return a[0]!==l||a[1]!==c?(t=(0,n.jsx)(I,{checked:l,onClick:c}),a[0]=l,a[1]=c,a[2]=t):t=a[2],a[3]!==l||a[4]!==s?(i=(0,n.jsx)(S,{checked:l,children:s}),a[3]=l,a[4]=s,a[5]=i):i=a[5],a[6]!==t||a[7]!==i?(r=(0,n.jsxs)(M,{children:[t,i]}),a[6]=t,a[7]=i,a[8]=r):r=a[8],r},H=["grooming","csam"],X=["csam","grooming","terrorism","sale","activity"],Q=e=>{let t,i,r,a,s,l,c,d=(0,o.c)(12),{toggleForm:p,reason:h}=e;d[0]!==h?(t=X.includes(h||""),d[0]=h,d[1]=t):t=d[1];let u=t;return d[2]===Symbol.for("react.memo_cache_sentinel")?(i=(0,n.jsx)(_,{}),d[2]=i):i=d[2],d[3]!==p?(r=(0,n.jsx)(Y,{onClick:p}),d[3]=p,d[4]=r):r=d[4],d[5]===Symbol.for("react.memo_cache_sentinel")?(a=(0,n.jsx)("h4",{children:"Thank You!"}),d[5]=a):a=d[5],d[6]!==u?(s=(0,n.jsxs)(B,{children:[a,u?(0,n.jsx)(ee,{}):(0,n.jsx)(Z,{})]}),d[6]=u,d[7]=s):s=d[7],d[8]===Symbol.for("react.memo_cache_sentinel")?(l=(0,n.jsx)(L,{children:(0,n.jsxs)("p",{children:["If you would like to report another piece of content, please select the `",(0,n.jsx)("b",{children:"Report this GIF"}),"` button that appears next to the content in question."]})}),d[8]=l):l=d[8],d[9]!==r||d[10]!==s?(c=(0,n.jsxs)(W,{children:[i,r,s,l]}),d[9]=r,d[10]=s,d[11]=c):c=d[11],c},q=({toggleForm:e,gif:t,className:i})=>{let o=(0,l.useSearchParams)().get("report")||"web",r=(0,c.useRef)(null),s=(0,c.useRef)(null),d=(0,c.useContext)(u.A),[m,f]=(0,c.useState)(!1),[g,x]=(0,c.useState)(null),[w,b]=(0,c.useState)(null),[j,I]=(0,c.useState)(null),[S,M]=(0,c.useState)(!1),[W,Y]=(0,c.useState)(!1),[B,L]=(0,c.useState)([]),[X,q]=(0,c.useState)(!!d?.user?.display_name),[Z,ee]=(0,c.useState)(!!d?.user?.email),[et,ei]=(0,c.useState)(!1),[en,eo]=(0,c.useState)(!1),er=(0,c.useMemo)(()=>H.includes(j),[j]),ea=(e,t)=>{t(""!==e.target.value)};(0,c.useEffect)(()=>{let e=null!==g&&(!g||en),t=X&&Z&&et&&j&&e&&!0===w;M(!!(er&&w)||!!t)},[X,Z,g,j,er,en,w,et]),(0,c.useEffect)(()=>{ee(!!d?.user?.email)},[d?.user?.email]),(0,c.useEffect)(()=>{q(!!d?.user?.display_name)},[d?.user?.display_name]),(0,c.useEffect)(()=>{Y(!1)},[scrollY]),(0,c.useEffect)(()=>{function e(e){s.current&&!s.current.contains(e.target)&&Y(!1)}return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[s,e]);let es=async e=>{let i={},n=(0,y.Ri)(v.o7);if(e.stopPropagation(),e.preventDefault(),null==r.current)return;let a=new FormData(r.current);a.append("reporter_reason",j),a.append("platform",o),a.append("gif_id",t),a.forEach((e,t)=>i[t]=e),(await (0,k.Ou)({url:"/api/v3/reports/",options:{method:"POST",headers:{"Content-Type":"application/json","X-CSRFToken":n},body:JSON.stringify(i)}})).ok&&f(!0)};(0,c.useEffect)(()=>{(async()=>{let e=await (0,k.Ou)({url:"/api/v3/reports/",options:{method:"OPTIONS"}});L((await e.json()).actions.POST.reporter_reason.choices)})()},[]);let el=e=>(0,n.jsx)(z,{displayAsterisk:!er,children:e.children});return(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(E,{onClick:e=>{e.stopPropagation()},children:m?(0,n.jsx)(Q,{toggleForm:e,reason:j}):(0,n.jsxs)(F,{method:"POST",ref:r,className:i,children:[(0,n.jsx)(p.A,{className:"absolute -top-10 right-2 size-5 cursor-pointer md:top-3",onClick:()=>{e()}}),(0,n.jsx)(_,{}),(0,n.jsx)(P,{children:(0,n.jsx)($,{children:"Report this Content"})}),(0,n.jsxs)(O,{ref:s,children:[(0,n.jsx)(el,{children:"Reason for reporting this content"}),(0,n.jsx)(A,{isOpen:W,onToggle:Y,label:B.find(e=>e.value==j)?.display_name||"Must select an option",children:(0,n.jsx)(D,{ref:s,children:(0,n.jsx)(C.A,{onChange:e=>{I(B[e].value),Y(!1)},options:B.map(e=>e.display_name)})})})]}),(0,n.jsx)(T,{children:(0,n.jsxs)(R,{children:[(0,n.jsx)(el,{children:"Name"}),(0,n.jsx)(G,{placeholder:"Enter Name",name:"reporter_name",required:!0,type:"email",defaultValue:d?.user?.display_name,onKeyUp:e=>ea(e,q),onInput:e=>ea(e,q)})]})}),(0,n.jsx)(T,{children:(0,n.jsxs)(R,{children:[(0,n.jsx)(el,{children:"Email"}),(0,n.jsx)(G,{placeholder:"Enter email",name:"reporter_email",required:!0,type:"email",defaultValue:d?.user?.email,onKeyUp:e=>ea(e,ee),onInput:e=>ea(e,ee)})]})}),(0,n.jsx)(T,{children:(0,n.jsxs)(R,{children:[(0,n.jsx)(el,{children:"Please explain why you believe this content should be removed"}),(0,n.jsx)(J,{placeholder:"Enter details",name:"reporter_comment",onKeyUp:e=>ea(e,ei),onInput:e=>ea(e,ei)})]})}),(0,n.jsxs)(T,{children:[(0,n.jsx)(el,{children:"Are you contacting us from an organization designated as a Trusted Flagger by the Digital Services Coordinator?"}),(0,n.jsxs)(U,{children:[(0,n.jsx)(K,{label:"Yes",isChecked:!0===g,onClick:()=>x(!0)}),(0,n.jsx)(K,{label:"No",isChecked:!1===g,onClick:()=>x(!1)})]})]}),(0,n.jsx)(V,{isExpand:g||!1,children:(0,n.jsx)(T,{children:(0,n.jsxs)(R,{children:[(0,n.jsx)(el,{children:"What is the name of your organization?"}),(0,n.jsx)(G,{placeholder:"Enter Organization Name",name:"trusted_flagger_org",required:!0,onKeyUp:e=>ea(e,eo),onInput:e=>ea(e,eo)})]})})}),(0,n.jsxs)(T,{children:[(0,n.jsx)(z,{displayAsterisk:!0,children:"Do you confirm that you have a bona fide belief that the allegations in this report are accurate?"}),(0,n.jsxs)(U,{children:[(0,n.jsx)(K,{label:"Yes",isChecked:!0===w,onClick:()=>b(!0)}),(0,n.jsx)(K,{label:"No",isChecked:!1===w,onClick:()=>b(!1)})]})]}),(0,n.jsx)(h.default,{className:(0,a.cn)("mt-10 w-full rounded-sm",!S&&"bg-giphyDarkGrey text-giphyLightGrey"),onClick:es,children:"Submit"}),(0,n.jsx)(N,{onClick:e,children:"Cancel"})]})})})};function Z(){return(0,n.jsx)("p",{children:"GIPHY's moderation team will review your report and take appropriate action. This typically takes 24 hours."})}
1function ee(){return(0,n.jsx)("p",{children:"Thank you! If you have provided an email address, you will receive an email to inform you of the action we've taken in response to your report once it has been reviewed. This typically takes 24 hours."})}let et=()=>{let e,t,i=(0,o.c)(4),n=(0,l.useSearchParams)();i[0]!==n?(e=n.get("report"),i[0]=n,i[1]=e):e=i[1];let r=e,[a,s]=(0,c.useState)(!!r);return i[2]!==a?(t=[a,s],i[2]=a,i[3]=t):t=i[3],t},ei=e=>{let t,i=(0,o.c)(4),{gifId:l,onClose:c}=e,p=(0,s.A)();return i[0]!==l||i[1]!==c||i[2]!==p?(t=p?(0,d.createPortal)((0,n.jsx)("div",{className:(0,a.cn)(r.jL,"overflow-y-auto bg-giphyBlack/90"),onClick:()=>c(),children:(0,n.jsx)(q,{gif:l,toggleForm:()=>c()})}),document.body,`${l}-flag`):null,i[0]=l,i[1]=c,i[2]=p,i[3]=t):t=i[3],t},en=function(e){let t,i,r,a,s=(0,o.c)(13),{gif:l,children:c,className:d}=e,[p,h]=et();return s[0]!==h?(t=()=>{h(!0)},s[0]=h,s[1]=t):t=s[1],s[2]!==c||s[3]!==d||s[4]!==t?(i=(0,n.jsx)("div",{className:d,onClick:t,children:c}),s[2]=c,s[3]=d,s[4]=t,s[5]=i):i=s[5],s[6]!==l||s[7]!==h||s[8]!==p?(r=p&&(0,n.jsx)(ei,{gifId:l.id,onClose:()=>h(!1)}),s[6]=l,s[7]=h,s[8]=p,s[9]=r):r=s[9],s[10]!==i||s[11]!==r?(a=(0,n.jsxs)(n.Fragment,{children:[i,r]}),s[10]=i,s[11]=r,s[12]=a):a=s[12],a}},36513:(e,t,i)=>{i.r(t),i.d(t,{default:()=>d});var n=i(54568),o=i(99680),r=i(54713),a=i(82732),s=i(35410);let l=r.Ay.div.withConfig({componentId:"sc-9008970e-0"})(["margin:15px 0 30px 0;"]),c=r.Ay.div.withConfig({componentId:"sc-9008970e-1"})(["img{display:inline;}source{display:inline;}"]),d=()=>{let e,t=(0,o.c)(1);return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,n.jsx)(s.default,{routeName:"/geo-blocked",children:(0,n.jsxs)(c,{className:"flex-col text-center text-giphyWhite",children:[(0,n.jsxs)("picture",{children:[(0,n.jsx)("source",{type:"image/webp",srcSet:"https://media.giphy.com/media/ys3xvXRwsdjoYvYR3h/giphy.webp"}),(0,n.jsx)("img",{src:"https://media.giphy.com/media/ys3xvXRwsdjoYvYR3h/giphy.gif",width:"350",alt:"Content unavailable in your location",className:"ci-hidden h-[22.25rem]"})]}),(0,n.jsx)("h3",{children:"Oops! This content is not"}),(0,n.jsx)("h3",{children:"available in your current location."}),(0,n.jsx)(l,{className:"ss-icon ss-navigatedown"}),(0,n.jsx)(a.A,{})]})}),t[0]=e):e=t[0],e}},55962:(e,t,i)=>{i.d(t,{CopyButton:()=>j,DownloadToggle:()=>x,ShareButton:()=>b});var n=i(54568),o=i(99680),r=i(74932),a=i(82666),s=i(5458),l=i(19010),c=i(51486),d=i.n(c),p=i(902),h=i(7620),u=i(9614),m=i.n(u),f=i(16003),g=i(98399);let x=e=>{let t,i,s=(0,o.c)(10),{gif:c,className:u,children:x,user:y}=e,v=void 0===u?"":u,w=(0,p.usePathname)(),b=(0,p.useRouter)(),{setPanel:j}=(0,h.useContext)(r.Q);return s[0]!==c||s[1]!==w||s[2]!==b||s[3]!==j||s[4]!==y?(t=async()=>{if(y){let e=c.images.original.url.replace("media.giphy.com","i.giphy.com"),t=await (0,f.Ou)({url:e,timeout:1e4}),i=await t.blob();d()(i,m()(`${c.title}.gif`)),j("downloaded"),(0,l.Ed)({event:"file_download",options:{content:(0,l.Jc)(c,{rendition:g.m.Original,format:c.images.original.url}),creator:(0,l.OV)(c)}})}else b.push((0,a._)("/login",w))},s[0]=c,s[1]=w,s[2]=b,s[3]=j,s[4]=y,s[5]=t):t=s[5],s[6]!==x||s[7]!==v||s[8]!==t?(i=(0,n.jsx)("div",{className:v,onClick:t,children:x}),s[6]=x,s[7]=v,s[8]=t,s[9]=i):i=s[9],i},y=async e=>{let t=e.images.original.url,i=await (0,f.Ou)({url:t,timeout:1e4});if(!i.ok)throw Error(`GIF file download returned ${i.status} ${i.statusText}`);let n=await i.blob();return new File([n],m()(`${e.title}.gif`)||"giphy.gif",{type:n.type||"image/gif"})},v=(e,t)=>{if(!t)return e;let i=new URL(e);return i.searchParams.set("nf","1"),i.toString()},w=async(e,t,i,n)=>{try{let o;if(n&&navigator.canShare?.({files:[n]}))await navigator.share({files:[n]}),o="share";else if(navigator.share)await navigator.share({title:e.title,url:t}),o="share";else{if(!navigator.clipboard?.writeText)throw Error("GIF sharing and clipboard writing are not supported.");o="copy",await navigator.clipboard.writeText(t),i({message:"GIF link copied to clipboard.",type:"success"})}(0,l.Ed)({event:"share_success",options:{social:{socialChannel:o},content:(0,l.Jc)(e,{rendition:g.m.Original,format:e.images.original.url}),creator:(0,l.OV)(e)}})}catch(e){if("object"==typeof e&&null!==e&&"name"in e&&"AbortError"===e.name)return;console.error("Unable to share or copy GIF.",e),i({message:"Unable to share or copy this GIF.",type:"error"})}},b=({className:e="",children:t,gif:i})=>{let{showMessage:o}=(0,h.useContext)(s.J),r=(0,p.useSearchParams)(),a=(0,h.useRef)(null),l=(0,h.useRef)(!1),c=v(i.images.original.url,"1"===r.get("nf")),d=()=>{let e=i.images.original.url;if(a.current?.url===e)return;let t={url:e};a.current=t,y(i).then(e=>{a.current===t&&(t.file=e)}).catch(()=>
1{a.current===t&&(a.current=null)})};return(0,n.jsx)("div",{className:e,onFocus:d,onPointerEnter:d,onClick:async()=>{if(!l.current){l.current=!0;try{let e=a.current?.url===i.images.original.url?a.current.file:void 0;await w(i,c,o,e)}finally{l.current=!1}}},children:t})},j=e=>{let t,i,a,s,c=(0,o.c)(13),{className:d,children:u,gif:m}=e,f=void 0===d?"":d,{setPanel:x}=(0,h.useContext)(r.Q),y=(0,p.useSearchParams)(),w=m.images.original.url;c[0]!==y?(t=y.get("nf"),c[0]=y,c[1]=t):t=c[1];let b="1"===t;c[2]!==m.images.original.url||c[3]!==b?(i=v(w,b),c[2]=m.images.original.url,c[3]=b,c[4]=i):i=c[4];let j=i;return c[5]!==j||c[6]!==m||c[7]!==x?(a=()=>{navigator.clipboard.writeText(j),x("copied"),(0,l.Ed)({event:"share_success",options:{social:{socialChannel:"share"},content:(0,l.Jc)(m,{rendition:g.m.Original,format:m.images.original.url}),creator:(0,l.OV)(m)}})},c[5]=j,c[6]=m,c[7]=x,c[8]=a):a=c[8],c[9]!==u||c[10]!==f||c[11]!==a?(s=(0,n.jsx)("div",{className:f,onClick:a,children:u}),c[9]=u,c[10]=f,c[11]=a,c[12]=s):s=c[12],s}},57597:(e,t,i)=>{i.r(t),i.d(t,{default:()=>s});var n=i(54568),o=i(99680),r=i(88267),a=i(7620);let s=e=>{let t,i,s=(0,o.c)(7),{gif:l,className:c,children:d}=e,{addToEdit:p}=(0,a.useContext)(r.iO);return s[0]!==p||s[1]!==l.id?(t=()=>p(l.id),s[0]=p,s[1]=l.id,s[2]=t):t=s[2],s[3]!==d||s[4]!==c||s[5]!==t?(i=(0,n.jsx)("div",{onClick:t,className:c,children:d}),s[3]=d,s[4]=c,s[5]=t,s[6]=i):i=s[6],i}},57769:(e,t,i)=>{i.d(t,{T0:()=>l,TX:()=>r,d$:()=>o,mc:()=>a,wi:()=>s});var n=i(54713);let o=20,r=n.Ay.img.withConfig({componentId:"sc-89696cbb-0"})(["display:block;align-self:center;object-fit:contain;"]),a=n.Ay.div.withConfig({componentId:"sc-89696cbb-1"})(["display:flex;flex-direction:column;gap:10px;margin-top:","px;flex:1;"],o),s=n.Ay.div.withConfig({componentId:"sc-89696cbb-2"})(["display:flex;flex-direction:column;justify-content:end;gap:4px;padding:","px;"],o),l=n.Ay.div.withConfig({componentId:"sc-89696cbb-3"})(["display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;flex:1;"])},58502:(e,t,i)=>{i.d(t,{default:()=>f});var n=i(54568),o=i(99680),r=i(74932),a=i(77965),s=i(35949),l=i(48009),c=i(29306),d=i(16496),p=i(19010),h=i(7620),u=i(97509),m=i(76787);let f=e=>{let t,i,d,f,y,v,w,b=(0,o.c)(18),{gif:j}=e,{panel:C,setPanel:k}=(0,h.useContext)(r.Q),_=(0,h.useRef)(!1),A=j.is_sticker?"Sticker":"Gif",[I,S]=(0,h.useState)(!1);b[0]!==j||b[1]!==I?(t=g(j,I),b[0]=j,b[1]=I,b[2]=t):t=b[2];let N=t;b[3]===Symbol.for("react.memo_cache_sentinel")?(i=[{label:"Off"},{label:"On"}],b[3]=i):i=b[3];let E=i,[F,T]=(0,h.useState)(!1);return b[4]!==F?(d=()=>{let e;return F&&(e=setTimeout(()=>{T(!1)},2e3)),()=>clearTimeout(e)},f=[F],b[4]=F,b[5]=d,b[6]=f):(d=b[5],f=b[6]),(0,h.useEffect)(d,f),b[7]!==j||b[8]!==C?(y=()=>{let e={content:(0,p.Jc)(j),creator:(0,p.OV)(j)};_.current||"embed"!==C||(_.current=!0,(0,p.Ed)({event:"embed_open",options:e})),_.current&&"embed"!==C&&(_.current=!1,(0,p.Ed)({event:"embed_close",options:e}))},v=[j,C],b[7]=j,b[8]=C,b[9]=y,b[10]=v):(y=b[9],v=b[10]),(0,h.useEffect)(y,v),b[11]!==N||b[12]!==j||b[13]!==A||b[14]!==C||b[15]!==k||b[16]!==F?(w="embed"===C?(0,u.createPortal)((0,n.jsx)("div",{className:m.r,onClick:()=>{k("none")},children:(0,n.jsxs)("div",{className:(0,c.cn)(m.E,"w-[560px] p-6"),onClick:x,children:[(0,n.jsxs)("div",{className:"mb-4 flex flex-1 justify-between border-b border-solid border-giphyCharcoal pb-2 font-bold",children:[(0,n.jsx)("h4",{className:"text-xl text-giphyWhite",children:`Embed this ${A}`}),(0,n.jsx)("div",{onClick:()=>k("none"),children:(0,n.jsx)(a.A,{height:18,className:"cursor-pointer fill-giphyWhite"})})]}),(0,n.jsxs)("div",{className:"mb-2 flex h-full flex-1 flex-col justify-center gap-4",children:[(0,n.jsxs)("p",{children:["Want to embed this ",A," on your website or blog? Just drop in the embed code below and you're done!"]}),(0,n.jsxs)("section",{children:[(0,n.jsx)("h4",{children:"Responsive"}),(0,n.jsx)(l.A,{className:"w-[250px]",index:0,options:E,onClick:e=>{S(1===e)}})]}),(0,n.jsxs)("section",{children:[(0,n.jsx)("h4",{children:"Embed Code"}),(0,n.jsxs)("div",{className:"flex items-center",children:[(0,n.jsx)("input",{type:"text",className:"h-10 flex-1 rounded-l p-1",value:N,readOnly:!0}
1),(0,n.jsx)(s.default,{className:(0,c.cn)("h-[40px] w-[120px] cursor-pointer rounded-r-md transition-all",F&&"bg-gradient-secondary"),onClick:()=>{navigator.clipboard?.writeText(N),T(!0),(0,p.Ed)({event:"embed_success",options:{content:(0,p.Jc)(j),creator:(0,p.OV)(j)}})},children:F?"Copied":"Copy Code"})]})]})]})]})}),document.body,"gif-embed-modal"):null,b[11]=N,b[12]=j,b[13]=A,b[14]=C,b[15]=k,b[16]=F,b[17]=w):w=b[17],w},g=(e,t=!1)=>{let{url:i,images:{original:n}}=e,o=480,r=(0,d._2)(e,o);n.width<n.height&&(r=480,o=(0,d.Vs)(e,r));let a=r/o,s={src:e.embed_url,width:t?"100%":Math.round(o),height:t?"100%":Math.round(r),style:t?"position:absolute":"",frameBorder:"0",class:"giphy-embed"},l=t?`<div style="width:100%;height:0;padding-bottom:${Math.round(100*a)}%;position:relative;">`:"";return l+(`<iframe src="${s.src}" width="${s.width}" height="${s.height}" style="${s.style}" frameBorder="${s.frameBorder}" class="${s.class}" allowFullScreen></iframe>`+(t?"</div>":"")+`<p><a href="${i}">via GIPHY</a></p>`)};function x(e){e.stopPropagation()}},61475:(e,t,i)=>{i.d(t,{A:()=>r});var n=i(54568),o=i(99680);let r=e=>{let t,i,r,a,s,l,c,d=(0,o.c)(18);if(d[0]!==e){let o,l,{gradientId:c,...p}=e,h=void 0===c?"favorites-icon":c;i="0 0 22 20",r="http://www.w3.org/2000/svg",a=p,d[6]===Symbol.for("react.memo_cache_sentinel")?(o=(0,n.jsx)("stop",{id:"gradient-stop-1",offset:"0%",stopColor:"var(--stop-color-1)"}),l=(0,n.jsx)("stop",{id:"gradient-stop-2",offset:"100%",stopColor:"var(--stop-color-2)"}),d[6]=o,d[7]=l):(o=d[6],l=d[7]),d[8]!==h?(s=(0,n.jsx)("defs",{children:(0,n.jsxs)("linearGradient",{x1:"0%",y1:"10%",x2:"0%",y2:"90%",id:h,children:[o,l]})}),d[8]=h,d[9]=s):s=d[9],t=p.className?.indexOf("--stop-color-1")===-1?"":`url(#${h})`,d[0]=e,d[1]=t,d[2]=i,d[3]=r,d[4]=a,d[5]=s}else t=d[1],i=d[2],r=d[3],a=d[4],s=d[5];return d[10]!==t?(l=(0,n.jsx)("path",{fill:t,fillRule:"evenodd",clipRule:"evenodd",d:"M18.9307 11.9353L11.3231 19.8661C11.2015 19.9554 11.0906 20 10.9904 20C10.8545 20 10.7436 19.9554 10.6578 19.8661L3.05013 11.9353C2.1631 11.0132 1.46386 10.0707 0.952383 9.10764C0.440911 8.14463 0.136893 7.22997 0.0403214 6.36364C-0.0562504 5.4973 0.0206483 4.6756 0.271019 3.8985C0.521391 3.1214 0.939862 2.43168 1.52645 1.82934C2.28471 1.04108 3.17352 0.507532 4.19289 0.228668C5.21225 -0.0501953 6.23161 -0.0501953 7.25098 0.228668C8.27034 0.507532 9.15915 1.04108 9.91741 1.82934C10.3395 2.26808 10.6971 2.76259 10.9904 3.31288C11.2837 2.76259 11.6414 2.26808 12.0634 1.82934C12.8217 1.03365 13.7105 0.494518 14.7299 0.211936C15.7493 -0.0706455 16.7704 -0.0706455 17.7933 0.211936C18.8163 0.494518 19.7105 1.03365 20.4759 1.82934C21.2556 2.6399 21.7385 3.5843 21.9244 4.66258C22.1104 5.74085 21.9531 6.91578 21.4523 8.1874C20.9516 9.45901 20.1111 10.7083 18.9307 11.9353Z"}),d[10]=t,d[11]=l):l=d[11],d[12]!==i||d[13]!==r||d[14]!==a||d[15]!==s||d[16]!==l?(c=(0,n.jsxs)("svg",{viewBox:i,xmlns:r,...a,children:[s,l]}),d[12]=i,d[13]=r,d[14]=a,d[15]=s,d[16]=l,d[17]=c):c=d[17],c}},68097:(e,t,i)=>{i.d(t,{p:()=>s});var n=i(99680),o=i(27670),r=i(7620),a=i(16974);function s(e,t){let i,s,l,c=(0,n.c)(20),d=void 0===t?4:t,p=e.id,{relatedGifs:h,setRelatedGifs:u}=(0,r.useContext)(a.l),[m,f]=(0,r.useState)(!1),g=(0,r.useRef)(!1),x=(0,o.l)(),y=h.findIndex(e=>e.id===p),v=h[y-1],w=h[y+1];return c[0]!==m||c[1]!==x||c[2]!==e||c[3]!==d||c[4]!==w||c[5]!==h||c[6]!==u?(i=()=>{let t=async()=>{g.current=!0;let t=0===h.length?[e]:[...h];(await x.related(t[0].id,{offset:Math.max(0,h.length-1),limit:d})).data.forEach(e=>{t.find(t=>t.id===e.id)||t.push(e)}),t.length!==h.length?u(t):f(!0),g.current=!1};w||m||g.current||t()},c[0]=m,c[1]=x,c[2]=e,c[3]=d,c[4]=w,c[5]=h,c[6]=u,c[7]=i):i=c[7],c[8]!==p||c[9]!==m||c[10]!==x||c[11]!==e||c[12]!==d||c[13]!==w||c[14]!==h||c[15]!==u?(s=[w,h,x,p,e,u,d,m],c[8]=p,c[9]=m,c[10]=x,c[11]=e,c[12]=d,c[13]=w,c[14]=h,c[15]=u,c[16]=s):s=c[16],(0,r.useEffect)(i,s),c[17]!==w||c[18]!==v?(l={prev:v,next:w},c[17]=w,c[18]=v,c[19]=l):l=c[19],l}},74932:(e,t,i)=>{i.d(t,{Q:()=>l,default:()=>c});var n=i(54568),o=i(99680),r=i(7620);let a={panel:"none",setPanel:()=>{}},s=(e,t)=>({...e,panel:t.type}),l=(0,r.createContext)(a),c=e=>{let t,i,c,d=(0,o.c)(6),{children:p}=e,[h,u]=(0,r.useReducer)(s,a);d[0]===Symbol.for("react.memo_cache_sentinel")?(t=e=>{u({type:e})},d[0]=t):t=d[0];let m=t;return d[1]!==h?(i={...h,setPanel:m},d[1]=h,d[2]=i):i=d[2],d[3]!==p||d[4]!==i?(c=(0,n.jsx)(l.Provider,{value:i,children:p}),d[3]=p,d[4]=i,d[5]=c):c=d[5],c}},76787:(e,t,i)=>{i.d(t,{E:()=>n,r:()=>o});let n="bg-giphyBlack border-giphyDarkCharcoal relative flex flex-col rounded-md border border-solid",o="bg-giphyBlack/80 z-modal absolute inset-0 flex animate-[fadeIn_150ms_ease-in-out] items-center justify-center"},82732:(e,t,i)=>{i.d(t,{A:()=>l});var n=i(54568),o=i(99680),r=i(48828),a=i(88275);let s=new(i(2011)).uK(r.OT.fourOhFourApiKey),l=()=>{let e,t=(0,o.c)(1);return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,n.jsx)(a.Ay,{fetchGifs:c}),t[0]=e):e=t[0],e};function c(e){return s.trending({offset:e})}},83500:(e,t,i)=>{i.d(t,{A:()=>c});var n=i(54568),o=i(7620),r=i(75646),a=i(92805),s=i(85129);let l=i(54713).Ay.i.withConfig({componentId:"sc-d571b98-0"})(["display:inline-block;"]),c=({className:e,color:t="#fff",gradient:i,height:c,icon:d,style:p,width:h})=>{let[u,m]=(0,o.useState)({}),f=(0,o.useMemo)(()=>(0,s.f)(d),[d]),g=(0,o.useMemo)(()=>(0,r.F0)((0,n.jsx)(f,{})),[d]),x={height:c,width:h,...p,...u};return(0,o.useEffect)(()=>
1{if(!i)return void m({});let e=`url(data:image/svg+xml,${encodeURIComponent(g)}) center center/${h}px ${c}px no-repeat`;m({background:(0,a.$_)(i),display:"inline-block",WebkitMask:e,mask:e})},[i,c,g,h]),i?(0,n.jsx)(l,{className:e,style:x}):(0,n.jsx)(f,{className:e,color:t,style:x})}},85874:(e,t,i)=>{i.d(t,{default:()=>u});var n=i(54568),o=i(74932),r=i(61475),a=i(36119),s=i(5458),l=i(39865),c=i(29306),d=i(19010),p=i(7620),h=i(3135);let u=({gif:e,iconSize:t,className:i="",isFavorite:u,iconClassName:m,hideLabel:f})=>{let{user:g}=(0,p.useContext)(l.A),[x,y]=(0,h.A)("hasSeenLocalFavoritesMessage",!1),{showMessage:v}=(0,p.useContext)(s.J),w=(0,a.jn)(),{setFavorites:b}=(0,p.useContext)(a.Ay),{setPanel:j}=(0,p.useContext)(o.Q);(0,p.useEffect)(()=>{u&&b(t=>[...t,e.id])},[u,e.id,b]);let[C,k]=(0,p.useState)(void 0),_=void 0===C?u:C,[A,I]=(0,p.useState)("Favorite");return(0,p.useEffect)(()=>{let e;return C?(I("Favorited!"),e=setTimeout(()=>{I("Favorite")},2e3),j("favorited")):!1===C&&(e=setTimeout(()=>{I("Favorite")},2e3),I("Removed")),()=>clearTimeout(e)},[C,j]),(0,n.jsxs)("div",{className:i,onClick:async t=>{if(t.preventDefault(),t.stopPropagation(),k(!_),await w(e.id))try{(0,d.Ed)({event:"favorite_success",options:{content:(0,d.Jc)(e),creator:{...(0,d.OV)(e),user_is_creator:g?.id===e.user?.id}}})}catch(e){}g||x||(y(!0),v({message:"Favorite saved! You can access your favorites from the user menu."}))},children:[(0,n.jsx)(r.A,{gradientId:`${e.id}-favorite`,width:t,height:t,className:(0,c.cn)("[--stop-color-1:var(--giphy-white)] [--stop-color-2:var(--giphy-white)]",m,_&&"[--stop-color-1:var(--giphy-pink)] [--stop-color-2:var(--giphy-red)]","Removed"===A&&"[--stop-color-1:var(--giphy-white)]! [--stop-color-2:var(--giphy-white)]!")}),!f&&(0,n.jsx)("label",{className:(0,c.cn)("hidden md:block","text-lg font-bold","Removed"===A?"text-giphyWhite":"from-giphyRed to-giphyPink bg-clip-text group-hover:bg-linear-to-b group-hover:text-transparent"),children:A})]})}},93344:(e,t,i)=>{i.d(t,{default:()=>w});var n=i(54568),o=i(99680),r=i(33918),a=i(57769),s=i(42115),l=i(19010),c=i(92805);let d=e=>{let t,i,r=(0,o.c)(4),{gif:a}=e;return r[0]!==a?(t=s.GC.filter(p).map(e=>(0,n.jsx)("div",{className:"flex h-9 flex-1 content-center justify-center md:size-10 md:flex-none",style:{background:e.bg},onClick:()=>{var t,i,n,o,r,s;switch(e.id){case"SMS":t=a.url,location.href=`sms:${(0,c.OF)()?"&":"?"}body=${encodeURIComponent(t)}`;break;case"Facebook":i=a.url,window.open("http://www.facebook.com/sharer/sharer.php?u="+encodeURIComponent(i||location.href));break;case"Twitter":n=a.url,window.open("http://twitter.com/share?url="+encodeURIComponent(n||location.href)+"?tc=1&via=giphy");break;case"Pinterest":o=a.images.original.url,r=a.url,window.open("http://pinterest.com/pin/create/bookmarklet/?media="+o+"&url="+encodeURIComponent(r||location.href));break;case"Reddit":s=a.url,window.open(`//www.reddit.com/submit?url=${encodeURIComponent(s||location.href)}`)}(0,l.Ed)({event:"share_success",options:{social:{socialChannel:e.id},content:(0,l.Jc)(a),creator:(0,l.OV)(a)}})},children:(0,n.jsx)("img",{src:e.icon,alt:e.id})},e.id)),r[0]=a,r[1]=t):t=r[1],r[2]!==t?(i=(0,n.jsx)("div",{className:"flex gap-1",children:t}),r[2]=t,r[3]=i):i=r[3],i};function p(e){return"Instagram"!==e.id}var h=i(35949),u=i(5458),m=i(26274),f=i(7620),g=i(97509),x=i(7397),y=i(84530),v=i(98399);let w=e=>{let t,i,s,c,p=(0,o.c)(16),{gif:w,iconSize:b,children:j,className:C}=e,[k,_]=(0,f.useState)(!1),{showMessage:A}=(0,f.useContext)(u.J),{width:I}=(0,x.A)();return p[0]!==w?(t=()=>{_(!0),(0,l.Ed)({event:"share_open",options:{content:(0,l.Jc)(w),creator:(0,l.OV)(w)}})},p[0]=w,p[1]=t):t=p[1],p[2]!==j||p[3]!==C||p[4]!==t?(i=(0,n.jsx)("div",{className:C,onClick:t,children:j}),p[2]=j,p[3]=C,p[4]=t,p[5]=i):i=p[5],p[6]!==C||p[7]!==w||p[8]!==b||p[9]!==A||p[10]!==k||p[11]!==I?(s=k?(0,g.createPortal)((0,n.jsx)(r.A,{onClose:()=>{(0,l.Ed)({event:"share_close",options:{content:(0,l.Jc)(w),creator:(0,l.OV)(w)}}),_(!1)},children:(0,n.jsxs)(a.mc,{className:C,children:[(0,n.jsxs)(a.T0,{children:[(0,n.jsx)(a.TX,{src:w.images.original.url,alt:w.title,width:I-a.d$,onClick:()=>{(0,l.Ed)({event:"share_success",options:{social:{socialChannel:"copy"},content:(0,l.Jc)(w,{rendition:"original",format:(0,l.QS)(w.url)}),creator:(0,l.OV)(w)}})}}),"video"!==w.type&&(0,n.jsxs)("h4",{className:"flex align-middle",children:[(0,n.jsx)(y.TapAndHoldIcon,{width:b,height:b,style:{animationIterationCount:2},className:"inline-block animate-bounce1 align-middle"}),"Tap and Hold to Copy ",w.is_sticker?"Sticker":"GIF"]})]}),(0,n.jsxs)(a.wi,{children:[navigator.share&&(0,n.jsx)(h.default,{color:m.eZ,onClick:()=>{navigator.share&&(navigator.share({title:w.title,text:w.title,url:w.images.original.url}),(0,l.Ed)({event:"share_success",options:{social:{socialChannel:"share"},content:(0,l.Jc)(w,{rendition:v.m.Original,format:w.images.original.url}),creator:(0,l.OV)(w)}}))},children:"Share GIF"}),navigator.clipboard&&(0,n.jsxs)(h.default,{className:"bg-giphyDarkGrey",onClick:()=>{navigator.clipboard.writeText(w.images.original.url),A({message:"Link copied to clipboard",type:"success"}),(0,l.Ed)({event:"share_success",options:{social:{socialChannel:"share"},content:(0,l.Jc)(w,{rendition:"original",format:w.images.original.url}),creator:(0,l.OV)(w)}})},children:["Copy ","video"===w.type?"Clip":"GIF"," Link"]}),(0,n.jsx)(d,{gif:w,iconSize:b})]})]})}),document.body,w.id):null,p[6]=C,p[7]=w,p[8]=b,p[9]=A,p[10]=k,p[11]=I,p[12]=s):s=p[12],p[13]!==i||p[14]!==s?(c=(0,n.jsxs)(n.Fragment,{children:[i,s]}),p[13]=i,p[14]=s,p[15]=c):c=p[15],c}},98399:(e,t,i)=>{i.d(t,{m:()=>n});let n={Small:"downsized",Social:"fixed_width",Original:"original",OriginalStill:"original_still",MP4:"original_mp4"}}}]); 2//# sourceMappingURL=313-6aa1825f14a46769.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.