1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7404],{5458:(e,t,l)=>{l.d(t,{A:()=>m,J:()=>h});var i=l(54568),a=l(99680),s=l(29306),n=l(7620),r=l(97509),o=l(54713),c=l(61848),d=l(39427);let h=(0,n.createContext)({}),u=o.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),m=e=>{let t,l,o,m,p,x,f,g=(0,a.c)(18),{children:y}=e,[v,j]=(0,n.useState)(!1),[b,C]=(0,n.useState)(),[w,_]=(0,n.useState)(0);g[0]===Symbol.for("react.memo_cache_sentinel")?(t=e=>{C(e),j(!0)},g[0]=t):t=g[0];let N=t;g[1]===Symbol.for("react.memo_cache_sentinel")?(l=(e,t,l)=>{l?N({message:e,type:"success"}):N({message:t,type:"error"})},g[1]=l):l=g[1];let k=l;g[2]!==b?.displayTime?(o=()=>{let e=setTimeout(()=>{j(!1)},b?.displayTime||5e3);return()=>clearTimeout(e)},g[2]=b?.displayTime,g[3]=o):o=g[3];let S=b?.displayTime;g[4]!==w||g[5]!==S?(m=[w,S],g[4]=w,g[5]=S,g[6]=m):m=g[6],(0,n.useEffect)(o,m);let A=(0,d.A)();return g[7]===Symbol.for("react.memo_cache_sentinel")?(p={showMessage:N,showStatusMessage:k,hideMessage:()=>j(!1)},g[7]=p):p=g[7],g[8]!==A||g[9]!==w||g[10]!==b?.className||g[11]!==b?.message||g[12]!==b?.type||g[13]!==v?(x=A&&(0,r.createPortal)((0,i.jsx)(u,{className:"fixed top-0 right-0 left-0",style:{zIndex:c.wR+1},$visible:v,onTransitionEnd:()=>{_(w+1)},children:(0,i.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-${w}`),g[8]=A,g[9]=w,g[10]=b?.className,g[11]=b?.message,g[12]=b?.type,g[13]=v,g[14]=x):x=g[14],g[15]!==y||g[16]!==x?(f=(0,i.jsxs)(h.Provider,{value:p,children:[x,y]}),g[15]=y,g[16]=x,g[17]=f):f=g[17],f}},5817:(e,t,l)=>{l.d(t,{A:()=>x,z:()=>p});var i=l(54568),a=l(99680),s=l(23305),n=l(88275),r=l(88267),o=l(41198),c=l.n(o),d=l(29306),h=l(41798),u=l(7620),m=l(28131);let p=e=>{let t,l=(0,a.c)(7),{gif:o}=e,{position:p}=(0,s.FH)(o.id),x=(0,r.jb)(o.id),f=(0,r.UT)(x),{gifs:g}=(0,u.useContext)(n.kv),[y]=(0,m.A)("Alt"),v=(0,s.rL)();if(f){let e;return l[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,i.jsx)("div",{className:`absolute inset-0 flex items-center justify-center bg-giphyBlack/60 text-2xl text-white ${c().className}`,children:"DELETED"}),l[0]=e):e=l[0],e}return l[1]!==v||l[2]!==o||l[3]!==g||l[4]!==y||l[5]!==p?(t=y?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("div",{className:"absolute inset-0 grid place-items-center",children:(0,i.jsx)("div",{className:"text-3xl font-bold uppercase drop-shadow-text-shadow",children:o.rating})}),(0,i.jsx)(h.AttributionOverlay,{gif:o,isHovered:!0})]}):p>0?(0,i.jsx)("div",{onClick:e=>{e.preventDefault(),e.stopPropagation(),(0,s.Ql)(o.id)},className:(0,d.cn)(`absolute inset-0 box-border border-[6px] border-solid border-giphyIndigo ${c().className}`),children:p&&(0,i.jsx)("div",{className:"absolute top-[-6px] right-[-6px] flex size-9 items-center justify-center bg-giphyYellow text-lg font-extrabold text-black",children:p})}):(0,i.jsx)("div",{className:"absolute inset-0 cursor-pointer",onClick:async e=>{e.preventDefault(),e.stopPropagation();let t=g.findIndex(e=>e.id===o.id);if(-1!==t)if(e.shiftKey&&null!==v){let e=Math.min(v,t),l=Math.max(v,t);(0,s.Cl)();let i=1;for(let t=e;t<=l;t++)(0,s.XN)(g[t],i++)}else e.metaKey||(0,s.Cl)(),(0,s.XN)(o,t),(0,s.WF)(t)}}),l[1]=v,l[2]=o,l[3]=g,l[4]=y,l[5]=p,l[6]=t):t=l[6],t},x=e=>{let t,l=(0,a.c)(2),{count:s}=e,n=void 0===s?0:s;return l[0]!==n?(t=n>0?(0,i.jsx)("div",{className:(0,d.cn)(`absolute inset-0 box-border border-[6px] border-solid border-giphyIndigo ${c().className}`),children:n&&(0,i.jsx)("div",{className:"absolute top-[-6px] right-[-6px] flex size-9 items-center justify-center bg-giphyYellow text-lg font-extrabold text-black",children:n})}):null,l[0]=n,l[1]=t):t=l[1],t}},8351:(e,t,l)=>{l.d(t,{A:()=>s});var i=l(7620),a=l(40124);let s=({initialData:e=[],fetchData:t,triggerFetch:l=!1,checkDone:s})=>{let n=(0,i.useRef)(e),[,r]=(0,i.useState)(),o=(0,i.useCallback)(()=>r({}),[]),c=(0,i.useRef)(!!s?.()),d=(0,i.useRef)(!1),h=(0,i.useRef)(t),u=(0,i.useCallback)(async()=>
1{if(c.current||d.current)return;d.current=!0;let e=await h.current.apply(h,[n.current.length]),t=e;t.results&&(e=((e,t)=>{let{results:l=[]}=e,i=l.length;return{data:l,pagination:{count:i,total_count:1/0,offset:t},meta:{msg:"",response_id:"",status:200}}})(t,n.current.length));let{data:l,pagination:i}=e,a=[...n.current,...l],r=a.length===i.total_count,u=!l.length;c.current=r||u||!!s?.(e),n.current=[...a],d.current=!1,o()},[]);(0,a.A)(()=>{l&&u()},100,[n.current.length]),(0,i.useEffect)(()=>{l&&u()},[l,u]);let m=(0,i.useCallback)(e=>{n.current=e},[]);return{doneFetching:c.current,doFetch:u,gifs:n.current,isFetching:d.current,mutate:m}}},10797:(e,t,l)=>{l.r(t),l.d(t,{default:()=>o});var i=l(54568),a=l(99680),s=l(10933),n=l.n(s),r=l(902);let o=e=>{let t,l,s,o,c,d,h=(0,a.c)(13);h[0]!==e?({href:s,className:l,children:t,noLink:o,...c}=e,h[0]=e,h[1]=t,h[2]=l,h[3]=s,h[4]=o,h[5]=c):(t=h[1],l=h[2],s=h[3],o=h[4],c=h[5]);let u=(0,r.useRouter)();return h[6]!==t||h[7]!==l||h[8]!==s||h[9]!==o||h[10]!==c||h[11]!==u?(d=o?(0,i.jsx)("span",{className:l,onClick:e=>{e.stopPropagation(),e.preventDefault(),u.push(s.toString())},children:t}):(0,i.jsx)(n(),{className:l,href:s,...c,children:t}),h[6]=t,h[7]=l,h[8]=s,h[9]=o,h[10]=c,h[11]=u,h[12]=d):d=h[12],d}},14159:(e,t,l)=>{l.d(t,{A:()=>s});var i=l(54568),a=l(99680);let s=e=>{let t,l,s=(0,a.c)(4),n=e.color||"white";return s[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,i.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]=t):t=s[0],s[1]!==e||s[2]!==n?(l=(0,i.jsx)("svg",{fill:n,viewBox:"0 0 21 20",xmlns:"http://www.w3.org/2000/svg",...e,children:t}),s[1]=e,s[2]=n,s[3]=l):l=s[3],l}},14455:(e,t,l)=>{l.d(t,{A:()=>s});var i=l(54568),a=l(99680);let s=e=>{let t,l,s=(0,a.c)(4),n=e.color||"white";return s[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,i.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10 20C11.3607 20 12.6579 19.7363 13.8916 19.209C15.1253 18.6816 16.1882 17.972 17.0801 17.0801C17.972 16.1882 18.6816 15.1253 19.209 13.8916C19.7363 12.6579 20 11.3607 20 10C20 8.63932 19.7363 7.34212 19.209 6.1084C18.6816 4.87467 17.972 3.81185 17.0801 2.91992C16.1882 2.028 15.1253 1.31836 13.8916 0.791016C12.6579 0.263672 11.3607 0 10 0C8.63932 0 7.34049 0.263672 6.10352 0.791016C4.87305 1.31836 3.81185 2.028 2.91992 2.91992C2.028 3.81185 1.31836 4.87467 0.791016 6.1084C0.263672 7.34212 0 8.63932 0 10C0 11.3607 0.263672 12.6579 0.791016 13.8916C1.31836 15.1253 2.028 16.1882 2.91992 17.0801C3.81185 17.972 4.87467 18.6816 6.1084 19.209C7.34212 19.7363 8.63932 20 10 20ZM10 7.08008C9.53776 7.08008 9.14388 6.92057 8.81836 6.60156C8.49284 6.27604 8.33008 5.88216 8.33008 5.41992C8.33008 4.95768 8.49284 4.5638 8.81836 4.23828C9.14388 3.91276 9.53776 3.75 10 3.75C10.4622 3.75 10.8561 3.91276 11.1816 4.23828C11.5072 4.5638 11.6699 4.95768 11.6699 5.41992C11.6699 5.88216 11.5072 6.27441 11.1816 6.59668C10.8561 6.91894 10.4622 7.08008 10 7.08008ZM11.25 16.25H8.75V9.16992H11.25V16.25Z"}),s[0]=t):t=s[0],s[1]!==e||s[2]!==n?(l=(0,i.jsx)("svg",{fill:n,...e,viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",children:t}),s[1]=e,s[2]=n,s[3]=l):l=s[3],l}},18275:(e,t,l)=>{l.d(t,{A:()=>s});var i=l(54568),a=l(99680);let s=e=>{let t,l,s=(0,a.c)(4),n=e.color||"white";return s[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,i.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20 3.00439C20 3.09224 19.961 3.18009 19.8829 3.26794L10.3075 11.8946C10.2229 11.9649 10.122 12 10.0049 12C9.88775 12 9.78689 11.9649 9.70229 11.8946L0.126892 3.26793C0.0422972 3.19766 -1.3587e-07 3.10835 -1.31134e-07 3C-1.26398e-07 2.89165 0.0422972 2.80234 0.126892 2.73206L3.04539 0.105417C3.12348 0.0351384 3.22271 -7.33359e-07 3.34309 -7.28096e-07C3.46348 -7.22834e-07 3.56271 0.0351385 3.6408 0.105417L10.0049 5.83309L16.369 0.105418C16.447 0.035139 16.5463 -1.50967e-07 16.6667 -1.45705e
1-07C16.7871 -1.40442e-07 16.8863 0.035139 16.9644 0.105418L19.8829 2.73206C19.961 2.81991 20 2.91069 20 3.00439Z"}),s[0]=t):t=s[0],s[1]!==e||s[2]!==n?(l=(0,i.jsx)("svg",{fill:n,viewBox:"0 0 20 12",xmlns:"http://www.w3.org/2000/svg",...e,children:t}),s[1]=e,s[2]=n,s[3]=l):l=s[3],l}},22622:(e,t,l)=>{l.d(t,{A:()=>o});var i=l(54568),a=l(99680),s=l(11166),n=l(29306),r=l(92805);let o=e=>{let t,l,o,c,d,h=(0,a.c)(10);return h[0]!==e.className?(t=(0,n.cn)("peer m-0 size-5 cursor-pointer appearance-none rounded border-2 border-solid border-giphyLightCharcoal bg-giphyBlack shadow transition-all checked:bg-giphyLightCharcoal hover:shadow-md",e.className),h[0]=e.className,h[1]=t):t=h[1],h[2]!==e?(l=(0,r.cJ)(e,["className"]),h[2]=e,h[3]=l):l=h[3],h[4]!==t||h[5]!==l?(o=(0,i.jsx)("input",{type:"checkbox",className:t,...l}),h[4]=t,h[5]=l,h[6]=o):o=h[6],h[7]===Symbol.for("react.memo_cache_sentinel")?(c=(0,i.jsx)("span",{className:"pointer-events-none absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 transform text-white opacity-0 peer-checked:opacity-100",children:(0,i.jsx)(s.A,{className:"size-3"})}),h[7]=c):c=h[7],h[8]!==o?(d=(0,i.jsx)("div",{className:"inline-flex items-center",children:(0,i.jsxs)("label",{className:"relative flex cursor-pointer items-center",children:[o,c]})}),h[8]=o,h[9]=d):d=h[9],d}},24950:(e,t,l)=>{l.d(t,{A:()=>b});var i=l(54568),a=l(99680),s=l(90483),n=l(44011),r=l(35949),o=l(39865),c=l(29306),d=l(7620),h=l(53553),u=l(29617),m=l(76353),p=l(48828),x=l(5458),f=l(34874),g=l(16003),y=l(6164),v=l(72629);let j=e=>{let t,l,r,o=(0,a.c)(14),{className:c,children:h,featuredGif:j,enabled:b,onCreated:C}=e;o[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,f.Ri)("csrftoken"),o[0]=t):t=o[0];let w=t,{showMessage:_}=(0,d.useContext)(x.J),N=(0,v.x)(),{goBack:k,setModalType:S,modal:A}=(0,d.useContext)(y.Vs),{data:L}=(0,s.HS)(A?.channelId);return o[1]!==L||o[2]!==b||o[3]!==j||o[4]!==k||o[5]!==N||o[6]!==C||o[7]!==S||o[8]!==_?(l=async e=>{if(!b)return;let t=await (0,g.Ou)({url:`${p.wh}/api/v4/channels`,options:{...(0,f.f5)(w),body:JSON.stringify(Object.fromEntries(e))}});if(t.ok){let e=await t.json();j&&!(0,n.n5)(j)?(await (0,m.Dn)([j.id],e.id)).ok&&_({message:"Created collection",type:"success"}):_({message:"Created collection",type:"success"}),await N({...e,featured_gif:j}),C?C(e):L?S({name:"editCollections",channelId:L.id,title:(0,i.jsx)(u.BI,{channel:L})}):k()}else _({message:"Failed to create to collection",type:"error"})},o[1]=L,o[2]=b,o[3]=j,o[4]=k,o[5]=N,o[6]=C,o[7]=S,o[8]=_,o[9]=l):l=o[9],o[10]!==h||o[11]!==c||o[12]!==l?(r=(0,i.jsx)("form",{autoComplete:"off",className:c,action:l,children:h}),o[10]=h,o[11]=c,o[12]=l,o[13]=r):r=o[13],r},b=e=>{let t,l,m=(0,a.c)(10),{channelId:p,gifId:x,onCreated:f}=e,{user:g}=(0,d.useContext)(o.A),{data:y}=(0,s.HS)(p),{data:v}=(0,s.i9)(x);m[0]!==v?(t=void 0===v?(0,n.Ay)():v,m[0]=v,m[1]=t):t=m[1];let b=t,[C,w]=(0,d.useState)(""),_=!!C,N=!!y?.ancestors?.length;return m[2]!==y||m[3]!==b||m[4]!==C||m[5]!==_||m[6]!==N||m[7]!==f||m[8]!==g?.id?(l=y?(0,i.jsxs)(j,{enabled:_,className:"flex flex-col items-center gap-2 p-2 font-bold",featuredGif:b,onCreated:f,children:[(0,i.jsxs)("div",{className:(0,c.cn)(u.U4,"mb-2 w-40 bg-giphyIndigo"),children:[(0,i.jsx)(u.zE,{src:u.yp,width:"100%",className:"bg-black/40"}),(0,i.jsx)(u.bV,{label:C||"New Collection"})]}),(0,i.jsx)(h.A,{}),(0,i.jsx)("input",{type:"hidden",name:"user",value:g?.id}),(0,i.jsx)("input",{type:"hidden",name:"parent",value:y?.id}),(0,i.jsxs)("div",{className:"flex w-full flex-1 flex-col gap-1",children:[(0,i.jsx)("label",{className:"text-giphyLightGrey",htmlFor:"channel",children:"Name"}),(0,i.jsx)("input",{type:"text",spellCheck:!1,value:C,onChange:e=>w(e.target.value),placeholder:"Collection Name",name:"display_name",autoComplete:"off",autoCorrect:"off",className:(0,c.cn)(u.Ol,"peer/input h-auto w-full py-3.5 text-giphyLightGrey")})]}),(0,i.jsx)(u.cG,{}),(0,i.jsxs)(r.b,{className:(0,c.cn)("w-full cursor-pointer select-none peer-placeholder-shown/input:pointer-events-none peer-placeholder-shown/input:opacity-50",!_&&"bg-gradient-grey"),children:["Create ",N?"Sub-":"","Collection"]})]}):null,m[2]=y,m[3]=b,m[4]=C,m[5]=_,m[6]=N,m[7]=f,m[8]=g?.id,m[9]=l):l=m[9],l}},37807:(e,t,l)=>{l.d(t,{A:()=>n});var i=l(54568),a=l(99680);let s="trash-icon",n=e=>{let t,l,n,r,o,c=(0,a.c)(11),d=e.color||"white",h=e.id||s;c[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,i.jsx)("stop",{id:"gradient-stop-1",offset:"0%",stopColor:"var(--stop-color-1)"}),l=(0,i.jsx)("stop",{id:"gradient-stop-2",offset:"100%",stopColor:"var(--stop-color-2)"}),c[0]=t,c[1]=l):(t=c[0],l=c[1]),c[2]!==h?(n=(0,i.jsx)("defs",{children:(0,i.jsxs)("linearGradient",{x1:"0%",y1:"10%",x2:"0%",y2:"90%",id:h,children:[t,l]})}),c[2]=h,c[3]=n):n=c[3];
1let u=e.className?.indexOf("--stop-color-1")===-1?"":`url(#${e.id||s})`;return c[4]!==u?(r=(0,i.jsx)("path",{fill:u,fillRule:"evenodd",clipRule:"evenodd",d:"M17.5879 2.5C17.7029 2.5 17.8003 2.45931 17.8802 2.37793C17.9601 2.29655 18 2.19727 18 2.08008V0.419921C18 0.302734 17.9601 0.20345 17.8802 0.12207C17.8003 0.0406898 17.7029 0 17.5879 0H0.412141C0.297125 0 0.199681 0.0406898 0.119808 0.12207C0.0399361 0.20345 0 0.302734 0 0.419921V2.08008C0 2.19727 0.0399361 2.29655 0.119808 2.37793C0.199681 2.45931 0.297125 2.5 0.412141 2.5H17.5879ZM14.722 20C14.8243 20 14.9153 19.9642 14.9952 19.8926C15.0751 19.821 15.1214 19.7331 15.1342 19.6289L16.361 4.16992H1.63898L2.86581 19.6289C2.87859 19.7331 2.92492 19.821 3.00479 19.8926C3.08466 19.9642 3.17572 20 3.27796 20H14.722Z"}),c[4]=u,c[5]=r):r=c[5],c[6]!==e||c[7]!==d||c[8]!==n||c[9]!==r?(o=(0,i.jsxs)("svg",{fill:d,viewBox:"0 0 18 20",xmlns:"http://www.w3.org/2000/svg",...e,children:[n,r]}),c[6]=e,c[7]=d,c[8]=n,c[9]=r,c[10]=o):o=c[10],o}},40047:(e,t,l)=>{l.d(t,{A:()=>o});var i=l(54568),a=l(26274),s=l(7620),n=l(27079),r=l(92805);let o=({children:e,label:t})=>{let l=(0,s.useRef)((0,r.$C)("overlay-channel")),{isOpen:o,listeners:c}=(0,n.fS)({color:a.Fl,id:l.current,triggerType:"hover",width:150});return(0,i.jsxs)("div",{...c,children:[e,(0,i.jsx)(n.mt,{hoverMode:!0,isOpen:o,children:(0,i.jsx)("div",{className:"p-2 text-sm",children:t})})]})}},43444:(e,t,l)=>{l.d(t,{A:()=>s});var i=l(54568),a=l(99680);let s=e=>{let t,l,s,n,r,o=(0,a.c)(10),c=e.id||"copy-icon",d=e.className?.includes("--stop-color-1")?`url(#${c})`:void 0;return o[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,i.jsx)("stop",{id:"gradient-stop-1",offset:"0%",stopColor:"var(--stop-color-1)"}),l=(0,i.jsx)("stop",{id:"gradient-stop-2",offset:"100%",stopColor:"var(--stop-color-2)"}),o[0]=t,o[1]=l):(t=o[0],l=o[1]),o[2]!==c?(s=(0,i.jsx)("defs",{children:(0,i.jsxs)("linearGradient",{x1:"0%",y1:"10%",x2:"0%",y2:"90%",id:c,children:[t,l]})}),o[2]=c,o[3]=s):s=o[3],o[4]!==d?(n=(0,i.jsx)("path",{fill:d,fillRule:"evenodd",clipRule:"evenodd",d:"M34.0909 22.6034V5.78752C34.089 5.15096 33.8169 4.54099 33.3342 4.09087C32.8515 3.64076 32.1973 3.38708 31.5147 3.38525H13.4808C12.7981 3.38708 12.1439 3.64076 11.6612 4.09087C11.1785 4.54099 10.9064 5.15096 10.9045 5.78752V11.1926H23.7858C24.9812 11.1939 26.1271 11.6372 26.9723 12.4253C27.8176 13.2134 28.293 14.282 28.2943 15.3966V25.0057H31.5147C32.1973 25.0038 32.8515 24.7501 33.3342 24.3C33.8169 23.8499 34.089 23.2399 34.0909 22.6034ZM23.5277 12.9943H6.48519C5.06235 12.9943 3.90891 14.0699 3.90891 15.3966V32.2125C3.90891 33.5392 5.06235 34.6147 6.48519 34.6147H23.5277C24.9505 34.6147 26.104 33.5392 26.104 32.2125V15.3966C26.104 14.0699 24.9505 12.9943 23.5277 12.9943Z"}),o[4]=d,o[5]=n):n=o[5],o[6]!==e||o[7]!==s||o[8]!==n?(r=(0,i.jsxs)("svg",{width:"38",height:"38",viewBox:"0 3 38 33",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e,children:[s,n]}),o[6]=e,o[7]=s,o[8]=n,o[9]=r):r=o[9],r}},44011:(e,t,l)=>{l.d(t,{Ay:()=>r,n5:()=>s});var i=l(4398),a=l.n(i);let s=e=>!!e[n],n=Symbol("isPlaceholder"),r=(e={},t)=>({[n]:!0,bitly_url:"",create_datetime:"",embed_url:"",id:a()("placeholder"),images:{...((e=1,t=1,l="")=>["fixed_width","downsized","fixed_height_small_still","fixed_width_downsampled","downsized_large","original","original_still","fixed_height_still","fixed_width_small","fixed_height_downsampled","looping","downsized_small","fixed_width_small_still","downsized_medium","preview","fixed_height","fixed_width_still","fixed_height_small","downsized_still"].reduce((i,a)=>(i[a]={url:l||"data:image/gif;base64,R0lGODlhAQABAIAAAAUEBAAAACwAAAAAAQABAAACAkQBADs=",width:e,height:t},i),{}))(t?.width,t?.height,t?.src)},import_datetime:"",is_anonymous:!1,is_community:!1,is_featured:!1,is_hidden:!1,is_indexable:!1,is_realtime:!1,is_removed:!1,is_sticker:!1,rating:"g",slug:"",tags:[],trending_datetime:"",update_datetime:"",username:"",url:"",...e})},44112:(e,t,l)=>{l.d(t,{default:()=>eJ});var i=l(54568),a=l(99680),s=l(29306);let n=e=>{let t,l,n,r,o,c,d,h,u,m,p,x,f=(0,a.c)(26);f[0]!==e?({disabled:t,id:l,label:n,onChange:r,...o}=e,f[0]=e,f[1]=t,f[2]=l,f[3]=n,f[4]=r,f[5]=o):(t=f[1],l=f[2],n=f[3],r=f[4],o=f[5]);let g=!t&&"cursor-pointer";f[6]!==g?(c=(0,s.cn)("m-0 transition-all","peer col-start-1 row-start-1 size-4 shrink-0","appearance-none rounded-full","ring-2 ring-giphyCharcoal","disabled:border-giphyLightGrey",g),f[6]=g,f[7]=c):c=f[7],f[8]!==t||f[9]!==l||f[10]!==r||f[11]!==o||f[12]!==c?(d=(0,i.jsx)("input",{type:"radio",id:l,disabled:t,className:c,onChange:r,...o}),f[8]=t,f[9]=l,f[10]=r,f[11]=o,f[12]=c,f[13]=d):d=f[13],f[14]===Symbol.for("react.memo_cache_sentinel")?(h=(0,i.jsx)("div",{className:(0,s.cn)("pointer-events-none","col-start-1 row-start-1","size-3 rounded-full bg-giphyCharcoal transition-all","peer-checked:bg-giphyGreen","peer-checked:
1peer-disabled:bg-giphyLightGrey")}),f[14]=h):h=f[14],f[15]!==d?(u=(0,i.jsxs)("div",{className:"mt-1 grid place-items-center",children:[d,h]}),f[15]=d,f[16]=u):u=f[16];let y=t?"text-giphyLightGrey":"hover:cursor-pointer";return f[17]!==y?(m=(0,s.cn)("text-start",y),f[17]=y,f[18]=m):m=f[18],f[19]!==l||f[20]!==n||f[21]!==m?(p=(0,i.jsx)("label",{htmlFor:l,className:m,children:n}),f[19]=l,f[20]=n,f[21]=m,f[22]=p):p=f[22],f[23]!==u||f[24]!==p?(x=(0,i.jsxs)("div",{className:"flex items-start gap-2",children:[u,p]}),f[23]=u,f[24]=p,f[25]=x):x=f[25],x};var r=l(84405),o=l(6164),c=l(76353),d=l(35949),h=l(22622),u=l(5458),m=l(7620);let p={animal_welfare:"Animal welfare",bullying_harassment:"Bullying and harassment",bullying_harassment_women:"Bullying and harassment of women",clips_copyright:"Clips Copyright",coordinated_harm:"Coordinated harm or threat to life",copyright:"Copyright infringement",csam:"CSAM",csam_deepfake:"CSAM deepfake",csam_jokes:"CSAM jokes or mockery",disasters_tragedies:"Disasters and tragedies",discrimination:"Discrimination",eating_disorder:"Eating disorder",epilepsy:"Epilepsy",graphic_medical_content:"Graphic medical content",hate:"Hate",illegal_activity:"Illegal content: Illegal activity",illegal_substances:"Illegal content: Selling illegal substances/service",incitement_violence_women:"Incitement to violence against women",incitement_violence_hate:"Incitement to violence or hate",private_information:"Private information",misinformation:"Misinformation",mutilation:"Mutilation",nonconsensual_deepfake:"Non-consensual deepfake",nonconsensual_image:"Non-consensual image",nudity:"Nudity",perpetrators:"Perpetrators of violence",pornography:"Pornography",public_health:"Public health",real_gore:"Real gore",school_shootings:"School shootings",sexual_violence:"Sexual violence",sexualized_deepfake:"Sexualized deepfake",solicitation:"Solicitation",spam:"Spam",self_harm:"Suicide",terrorism:"Terrorism and violent extremists",threatening_stalking:"Threatening or stalking",threatening_stalking_women:"Threatening or stalking of women",trademark:"Trademark violation",underage_user:"Underage user",violence:"Violence"},x="note",f="reason",g="reporter",y="send_email",v="userToDeactivate",j=async(e,t)=>{let l={userToDeactivate:t.get(v),reason:t.get(f),note:t.get(x),send_email:"on"===t.get(y),reporter:t.get(g)};try{return await (0,c.yz)(l),"success"}catch(e){}return"Oops! Something went wrong. Please try again later."},b=()=>{let e,t,l,c=(0,a.c)(8),{modal:b,setModalType:w}=(0,m.useContext)(o.Vs),[_,N]=(0,m.useActionState)(j,null),{showMessage:k}=(0,m.useContext)(u.J);return(c[0]!==_||c[1]!==w||c[2]!==k?(e=()=>{let e;return _&&("success"!==_?k({message:_,type:"success"}):e=setTimeout(()=>{w(null)},3e3)),()=>clearTimeout(e)},t=[_,k,w],c[0]=_,c[1]=w,c[2]=k,c[3]=e,c[4]=t):(e=c[3],t=c[4]),(0,m.useEffect)(e,t),b?.name!=="deactivateUser")?null:(c[5]!==b?.channel||c[6]!==_?(l="success"===_?(0,i.jsx)("div",{className:"grid flex-1 place-items-center",children:(0,i.jsx)("h1",{children:"Sent"})}):(0,i.jsxs)("form",{className:"group flex flex-1 flex-col gap-6 p-4 [&_h4]:font-normal [&_h4]:text-giphyLightGrey",action:N,children:[(0,i.jsx)("input",{type:"text",defaultValue:b?.channel.user.username,name:v,hidden:!0}),(0,i.jsxs)("h1",{children:["Are you sure you want to deactivate"," ",(0,i.jsxs)("span",{className:"text-giphyBlue",children:["@",b?.channel.user.username]}),"?"]}),(0,i.jsxs)("div",{className:"flex flex-col gap-12",children:[(0,i.jsx)(r.default,{required:!0,name:f,placeholder:"Select Reason",className:"w-full",options:Object.entries(p).map(C)}),(0,i.jsxs)("section",{className:"flex flex-col gap-2",children:[(0,i.jsx)("h4",{children:"Reported By:"}),(0,i.jsxs)("div",{className:"relative flex flex-1 gap-3",children:[(0,i.jsx)(n,{id:"proactive",label:"GIPHY Proactive",name:g,required:!0,value:"GIPHY Proactive"}),(0,i.jsx)(n,{id:"reported",label:"User Reported",name:g,required:!0,value:"User Reported"})]})]}),(0,i.jsxs)("section",{className:"flex flex-col gap-2",children:[(0,i.jsx)("h4",{children:"Any additional information?"}),(0,i.jsx)("textarea",{name:x,placeholder:"Enter additional details...",className:"m-0 w-full resize-none p-2.5 text-sm leading-[normal] font-normal text-black"})]}),(0,i.jsxs)("section",{className:"flex cursor-pointer items-center gap-3",children:[(0,i.jsx)(h.A,{id:"sendemail",name:y})," ",(0,i.jsx)("label",{htmlFor:"sendemail",className:"cursor-pointer select-none",children:"Send Email to User"})]})]}),(0,i.jsx)(d.b,{className:(0,s.cn)("w-full bg-gradient-error group-invalid:pointer-events-none group-invalid:bg-gradient-grey group-invalid:opacity-50"),children:"Confirm Deactivation"})]}),c[5]=b?.channel,c[6]=_,c[7]=l):l=c[7],l)};function C(e){let[t,l]=e;return{label:l,value:t}}let w=e=>{let t,l,s,n,r,o=(0,a.c)(14),{filledIndex:c,fillColor:d,size:h}=e,u=void 0===d?"blue":d,m=void 0===h?24:h;return o[0]!==u||o[1]!==c?(t=["gray","gray","gray"],void 0!==c&&(t[c]=u),o[0]=u,o[1]=c,o[2]=t):t=o[2],o[3]!==t[0]?(l=(0,i.jsx)("rect",{x:"3",y:"14",width:"4",height:"7",stroke:"black",fill:t[0]}),o[3]=t[0],o[4]=l):l=o[4],o[5]!==t[1]?(s=(0,i.jsx)("rect",{x:"10",y:"10",width:"4",height:"11",stroke:"black",fill:t[1]}),o[5]=t[1],o[6]=s):s=o[6],o[7]!==t[2]?(n=(0,i.jsx)("rect",{x:"17",y:"6",
1width:"4",height:"15",stroke:"black",fill:t[2]}),o[7]=t[2],o[8]=n):n=o[8],o[9]!==m||o[10]!==l||o[11]!==s||o[12]!==n?(r=(0,i.jsxs)("svg",{width:m,height:m,viewBox:"0 0 24 24",fill:"none",stroke:"black",xmlns:"http://www.w3.org/2000/svg",children:[l,s,n]}),o[9]=m,o[10]=l,o[11]=s,o[12]=n,o[13]=r):r=o[13],r};var _=l(48828),N=l(34874),k=l(16003);let S=async(e,t,l,i,a,s)=>{let n=await (0,k.Ou)({url:`${_.Dd}/api/v4/channels/derank`,options:{cookie:s,method:"POST",headers:{Authorization:`Token ${a}`,"Content-Type":"application/json","X-CSRFToken":(0,N.Ri)("csrftoken",s)},body:JSON.stringify({channel_id:e,account_type:t,level:l,magic_tags:i})}});return await n.json()};var A=l(39865);let L="accountType",I=[{value:"unset",label:"Unset deranking",color:"rgba(34,197,94,0.85)",text:"text-white"},{value:"low",label:"Set low level",color:"rgba(253,224,71,0.85)",text:"text-black"},{value:"high",label:"Set high level",color:"rgba(239,68,68,0.85)",text:"text-white"}],G=()=>{let{user:e}=(0,m.useContext)(A.A),{modal:t,setModalType:l}=(0,m.useContext)(o.Vs),{showMessage:a}=(0,m.useContext)(u.J),[r,c]=(0,m.useState)(null),[h,p]=(0,m.useState)(""),[x,f]=(0,m.useState)(null),[g,y]=(0,m.useState)(null),v=t&&"channel"in t&&t.channel&&"syncable_tags"in t.channel?t.channel.syncable_tags:[];if((0,m.useEffect)(()=>{let e;return"success"===r&&(e=setTimeout(()=>{l(null)},3e3)),()=>clearTimeout(e)},[r,l]),(0,m.useEffect)(()=>{!h&&v.length>0&&(v.some(e=>e.tag.startsWith("giphyderankofficial"))?p("official"):v.some(e=>e.tag.startsWith("giphyderankpromotional"))&&p("promotional"))},[t]),t?.name!=="derankUser")return null;let j=async()=>{if(y(null),!x)return void y("Please select a deranking level.");if(("high"===x||"low"===x)&&!h)return void y("Please select an account type for high or low deranking.");c("success"),a({message:"high"===x?"Set to high deranking level":"low"===x?"Set to low deranking level":"Deranking unset",type:"success"});let l=Array.isArray(t?.channel.syncable_tags)&&t?.channel.syncable_tags.every(e=>"string"==typeof e.tag)?t?.channel.syncable_tags:[];await S(t?.channel?.id??0,"unset"===x?"promotional":h,x,l,e?.token,document.cookie),window.location.reload()},b=e=>v.some(t=>t.tag===e);return"success"===r?(0,i.jsx)("div",{className:"grid flex-1 place-items-center",children:(0,i.jsx)("h1",{children:"Action completed"})}):(0,i.jsxs)("form",{className:"group flex flex-1 flex-col gap-6 p-4 [&_h4]:font-normal [&_h4]:text-giphyLightGrey",onSubmit:e=>{e.preventDefault(),j()},children:[(0,i.jsxs)("h1",{children:["Derank ",(0,i.jsxs)("span",{className:"text-giphyBlue",children:["@",t?.channel.user.username]})]}),(0,i.jsxs)("div",{className:"flex flex-col gap-6",children:[(0,i.jsxs)("section",{className:"flex flex-col gap-2",children:[(0,i.jsx)("h4",{children:"Account Type"}),(0,i.jsxs)("div",{className:"flex gap-6",children:[(0,i.jsx)(n,{id:"official",label:"Official account",name:L,checked:"official"===h,onChange:()=>p("official"),value:"official"}),(0,i.jsx)(n,{id:"promotional",label:"Promotional account",name:L,checked:"promotional"===h,onChange:()=>p("promotional"),value:"promotional"})]})]}),(0,i.jsx)("section",{children:(0,i.jsx)("div",{className:"flex justify-between gap-4",children:I.map(e=>{var t;let l="high"===(t=e.value)?!!("official"===h&&b("giphyderankofficialaccounthigh")||"promotional"===h&&b("giphyderankpromotionalaccounthigh")):"low"===t?!!("official"===h&&b("giphyderankofficialaccountlow")||"promotional"===h&&b("giphyderankpromotionalaccountlow")):"unset"===t&&!(b("giphyderankofficialaccounthigh")||b("giphyderankofficialaccountlow")||b("giphyderankpromotionalaccounthigh")||b("giphyderankpromotionalaccountlow"));return(0,i.jsx)("button",{type:"button",className:`flex-1 rounded-lg border-4 py-6 text-lg font-bold transition-all duration-200 ${x===e.value?"opacity-80":"opacity-80 hover:opacity-100"} ${l?"ring-4":""}`,style:{border:`2px solid ${e.color}`,color:l?e.color:x===e.value?"white":e.color,background:l?"rgba(0,0,0,0.7)":x===e.value?e.color:"transparent",boxShadow:l?`0 0 0 4px ${e.color}`:void 0,transition:"background 0.2s, color 0.2s, box-shadow 0.2s"},onClick:()=>f(e.value),children:(0,i.jsxs)("span",{className:"flex w-full items-center justify-center gap-2",children:[(0,i.jsx)(w,{filledIndex:"high"===e.value?2:+("low"===e.value),fillColor:e.color}),(0,i.jsx)("span",{children:e.label})]})},e.value)})})}),g&&(0,i.jsx)("div",{className:"text-sm text-red-500",children:g}),(0,i.jsx)(d.b,{className:(0,s.cn)("w-full bg-gradient-error group-invalid:pointer-events-none group-invalid:bg-gradient-grey group-invalid:opacity-50"),children:"Confirm Deranking"})]})]})};var V=l(18275),T=l(78804);let D=e=>{let t,l,n,r,o,c,d,h,u=(0,a.c)(21),{label:p,name:x,className:f}=e,[g,y]=(0,m.useState)(0);return u[0]!==f?(t=(0,s.cn)("flex items-center gap-4 bg-giphyDarkGrey p-2",f),u[0]=f,u[1]=t):t=u[1],u[2]!==x||u[3]!==g?(l=(0,i.jsx)("input",{type:"number",name:x,className:"number-input w-6 bg-giphyDarkestGrey bg-giphyDarkestGrey/0 text-giphyLightGrey",placeholder:"0",value:g,readOnly:!0}),u[2]=x,u[3]=g,u[4]=l):l=u[4],u[5]!==g?(n=(0,i.jsx)("div",{children:(0,i.jsx)(T.A,{className:"size-3 cursor-pointer fill-giphyBlue",onClick:()=>{y(g+1)}})}),u[5]=g,u[6]=n):n=u[6],u[7]!==g?(r=(0,i.jsx)("div",{children:(0,i.jsx)(V.A,{className:"size-3 cursor-pointer fill-giphyBlue",onClick:()=>{y(Math.max(0,g-1))}})}),u[7]=g,u[8]=r):r=u[8],u[9]!==n||u[10]!==r?(o=(0,i.jsxs)("div",{className:"flex flex-col gap-1",children:[n,r]}),u[9]=n,u[10]=r,u[11]=o):o=u[11],u[12]!==l||u[13]!==o?(c=(0,i.jsxs)("div",{className:"flex w-fit gap-2 bg-giphyDarkestGrey p-2",children:[l,o]}),u[12]=l,u[13]=o,u[14]=c):c=u[14],u[15]!==p?(d=(0,i.jsx)("label",{className:"px-2 font-bold",children:p}),u[15]=p,u[16]=d):d=u[16],u[17]!==t||u[18]!==c||u[19]!==d?(h=(0,i.jsxs)("div",{className:t,children:[c,d]}),u[17]=t,u[18]=c,u[19]=d,u[20]=h):h=u[20],h};var R=l(40047),F=l(14455),$=l(85922),H=l(26274),O=l(19010),z=l(68236),M=l(27079),E=l(66955),B=l(99340);let P=()=>{let e,t=(0,a.c)(1);return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("p",{children:"Help us get a better sense of what you're working on & where the work will live. Select any that might apply."}),(0,i.jsx)("a",{className:"text-giphyWhite underline",target:"_blank",rel:"noreferrer",href:"https://support.giphy.com/hc/en-us/articles/360022661172-Hire-A-GIF-Artist-",children:"Learn More about GIF Commissions"})]}),t[0]=e):e=t[0],e},W=()=>{let e,t=(0,a.c)(1);return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("p",{children:"Rates tend to vary! Consider the scope of work and a fair day rate to help calculate this."}),(0,i.jsx)("a",{target:"_blank",rel:"noreferrer",href:"https://support.giphy.com/hc/en-us/articles/360022661172-Hire-A-GIF-Artist-",children:"Learn More about GIF Commissions"})]}),t[0]=e):e=t[0],e},U=()=>{let e,t=(0,a.c)(1);return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,i.jsx)("div",{className:"grid flex-1 place-items-center text-3xl font-bold",children:"Inquiry Sent"}),t[0]=e):e=t[0],e},Z=e=>{var t=new Date(e);return new Date(t.getTime()-6e4*t.getTimezoneOffset()).toISOString().split("T")[0]}
1,J=({label:e,onChange:t,min:l})=>{let a=(0,m.useRef)((0,B.$)(e)),{isOpen:s,listeners:n,closeTooltip:r}=(0,M.fS)({color:H.Fl,id:a.current,triggerType:"click",width:350});return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(M.mt,{isOpen:s,children:(0,i.jsx)("div",{className:"relative bg-giphyDarkGrey p-4",children:(0,i.jsx)(z.A,{min:l,size:"small",onChange:e=>{r(),t(e)}})})}),(0,i.jsx)(d.default,{...n,className:"bg-gradient-grey",children:e})]})},q="text-giphyWhite font-bold py-2 flex",Y="budget",X="project_start_date",Q="project_end_date",K="artistId",ee=async(e,t)=>{var l,i;let[a,s]=["+$50,000"===(i=l=t.get(Y))?"50000":i.replace(/\$/g,"").replace(/\,/g,"").split("-")[0].trim(),"+$50,000"===l?"100000":l.replace(/\$/g,"").replace(/\,/g,"").split("-")[1].trim()];t.delete(Y);let n=t.get(K);t.delete(K),t.set("project_budget_min",a),t.set("project_budget_max",s);let r={};t.forEach((e,t)=>r[t]=e),console.log("payload",r);try{let e=await fetch(`${_.Dd}/api/v1/users/${n}/freelance-email/`,{method:"POST",headers:{"Content-Type":"application/json","X-CSRFToken":(0,N.Ri)("csrftoken")},body:JSON.stringify(r)});if(e.ok)return(0,O.Ed)({event:"hire_form_success",options:{form:{formName:"hire me"}}}),"success";{let t=(0,E.qh)(await e.json());(0,O.Ed)({event:"hire_form_error",options:{form:{formName:"hire me",formError:t.join(",")}}})}}catch(e){(0,O.Ed)({event:"hire_form_error",options:{form:{formName:"hire me",formError:"uncaught exception"}}})}return"Oops! Something went wrong. Please try again later."},et=()=>{let e,t,l,n,c,p=(0,a.c)(14),{user:x}=(0,m.useContext)(A.A),{modal:f,setModalType:g}=(0,m.useContext)(o.Vs),[y,v]=(0,m.useState)(),[j,b]=(0,m.useState)(),[C,w]=(0,m.useActionState)(ee,null),{showMessage:_}=(0,m.useContext)(u.J);return(p[0]!==C||p[1]!==g||p[2]!==_?(e=()=>{let e;return C&&("success"!==C?_({message:C,type:"error"}):e=setTimeout(()=>{g(null)},3e3)),()=>clearTimeout(e)},t=[C,_,g],p[0]=C,p[1]=g,p[2]=_,p[3]=e,p[4]=t):(e=p[3],t=p[4]),(0,m.useEffect)(e,t),p[5]===Symbol.for("react.memo_cache_sentinel")?(l=()=>{b(void 0)},p[5]=l):l=p[5],p[6]!==y?(n=[y],p[6]=y,p[7]=n):n=p[7],(0,m.useEffect)(l,n),x&&f?.name==="hireMe")?(p[8]!==f||p[9]!==C||p[10]!==j||p[11]!==y||p[12]!==x?(c="success"===C?(0,i.jsx)(U,{}):(0,i.jsxs)("form",{className:"group flex flex-col gap-10 p-2",action:w,children:[(0,i.jsx)("input",{hidden:!0,type:"text",defaultValue:f.artist.id,name:K}),(0,i.jsxs)("div",{className:"flex gap-2",children:[(0,i.jsx)($.default,{user:f.artist}),(0,i.jsxs)("div",{className:"flex flex-col justify-center",children:[(0,i.jsx)("h4",{children:"Work Inquiry For"}),(0,i.jsx)("h1",{children:f.artist.username})]})]}),(0,i.jsxs)("div",{className:"flex min-h-fit flex-col gap-6",children:[(0,i.jsxs)("section",{children:[(0,i.jsxs)("h3",{className:(0,s.cn)(q,"items-center gap-3"),children:[(0,i.jsx)("div",{className:"flex-1",children:"I'm looking for:"}),(0,i.jsx)("div",{className:"text-giphyLightGrey",children:"Uncertain Amount / flexible "}),(0,i.jsx)(h.A,{name:"project_flexible"})]}),(0,i.jsxs)("div",{className:"flex justify-between gap-2",children:[(0,i.jsx)(D,{label:"GIFs",name:"project_gif_count"}),(0,i.jsx)(D,{label:"Animated Stickers",name:"project_sticker_count"}),(0,i.jsx)(D,{label:"Clips (with sound)",name:"project_video_count"})]})]}),(0,i.jsxs)("div",{className:"flex justify-between gap-5",children:[(0,i.jsxs)("section",{className:"flex-1",children:[(0,i.jsxs)("h3",{className:(0,s.cn)(q,"gap-2"),children:["What type of project is this?",(0,i.jsx)(R.A,{label:(0,i.jsx)(P,{}),children:(0,i.jsx)(F.A,{className:"size-3"})})]}),(0,i.jsx)(r.default,{required:!0,name:"project_type",placeholder:"Choose which type(s)",className:"w-full",options:[{label:"Advertising Campaign",value:""},{label:"Social Media Campaign",value:""},{label:"Editorial",value:""},{label:"Personal Promotion",value:""},{label:"TV/Broadcast/Film",value:""},{label:"Music Video",value:""},{label:"Product Design",value:""},{label:"Social Good",value:""}]})]}),(0,i.jsxs)("section",{className:"flex-1",children:[(0,i.jsxs)("h3",{className:(0,s.cn)(q,"gap-2"),children:["Project Budget",(0,i.jsx)(R.A,{label:(0,i.jsx)(W,{}),children:(0,i.jsx)(F.A,{className:"size-3"})})]}),(0,i.jsx)(r.default,{required:!0,className:"w-full",placeholder:"Select Budget",name:Y,options:[{label:"$500 - $2,000",value:""},{label:"$2,000 - $5,000",value:""},{label:"$5,000 - $10,000",value:""},{label:"$10,000 - $25,000",value:""},{label:"$25,000 - $50,000",value:""},{label:"+$50,000",value:""}]})]})]}),(0,i.jsxs)("section",{className:"",children:[(0,i.jsx)("h3",{className:q,children:"Project Timeline"}),(0,i.jsxs)("div",{className:"flex gap-3",children:[(0,i.jsxs)("div",{className:"flex items-center gap-3",children:[(0,i.jsx)("div",{children:"Start:"}),(0,i.jsx)("input",{type:"text",hidden:!0,required:!0,defaultValue:y?Z(y):"",name:X}),(0,i.jsx)(J,{min:new Date,name:X,label:y?.toLocaleDateString()||"Select Date Start",onChange:v})]}),(0,i.jsxs)("div",{className:"flex items-center gap-3",children:[(0,i.jsx)("div",{children:"End:"}),(0,i.jsx)("input",{type:"text",hidden:!0,required:!0,defaultValue:j?Z(j):"",name:Q}),(0,i.jsx)(J,{name:Q,min:y,label:j?.toLocaleDateString()||"Select Date End",onChange:b})]})]})]}),(0,i.jsxs)("section",{className:"",children:[(0,i.jsxs)("h3",{className:(0,s.cn)(q,"flex justify-between"),children:[(0,i.jsx)("div",{children:"Contact Email"}),(0,i.jsx)("div",{className:"text-giphyLightGrey",children:"Any responses will be sent here"})]}),(0,i.jsx)("input",{type:"email",required:!0,name:"email",defaultValue:x.email,className:"w-full bg-giphyDarkGrey p-2 text-white"})]})]}),(0,i.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,i.jsx)(d.b,{className:(0,s.cn)("w-full group-invalid:pointer-events-none group-invalid:bg-gradient-grey group-invalid:opacity-50"),children:"Send Inquiry"}),(0,i.jsx)("h5",{className:"text-center",children:"Clicking âSend Inquiryâ will send an email to this Artist containing the information you entered, including your email address. Please ensure you are comfortable sharing the information entered."})]})]}),p[8]=f,p[9]=C,p[10]=j,p[11]=y,p[12]=x,p[13]=c):c=p[13],c):null};var el=l(69581),ei=l(24950),ea=l(90483),es=l(42761);let en="INVALID_FILE",er=(e,t,l,i)=>new Promise((a,s)=>{var n;let r;if(!e||!e.type)return void s("NO_FILE");if(r=e.type,!t.some(e=>{let[t,l]=e.split("/"),i="*"===l?t:e;if(r.indexOf(i)>-1)return!0}
1))return void s(en);if((e.size?e.size/1048576:0)>i)return void s("FILE_TOO_BIG");let o=((e="")=>e.indexOf("video/")>-1)(n=e.type)?"video":((e="")=>e.indexOf("image/")>-1)(n)?"image":void 0;if(!o)return void s(en);let c={file:e,fileType:o,type:"file"};if(l&&"video"===o){let t=document.createElement("video");t.onerror=e=>{console.info("Reject file:",e),s(en)},t.onloadedmetadata=()=>{t.duration>l?s("FILE_TOO_LONG"):a(c),URL.revokeObjectURL(t.src)},t.src=URL.createObjectURL(e)}else a(c)}),eo=(e,t)=>e?.length?1===e.length?e[0].name:`${e.length} files selected`:t||"Choose File",ec=({maxFileSize:e=1/0,className:t,accept:l,id:a,placeholder:n,onChange:r,disabled:o,...c})=>{let d=(0,m.useId)(),h=a||d,[u,p]=(0,m.useState)(eo(null,n)),[x,f]=(0,m.useState)(!1),g=async t=>{if(p(eo(t.target.files,n)),f(!!t.target.files?.length),r?.(t),t.target.files){console.log("File input changed");for(var i=0;i<t.target.files.length;i++){let a=t.target.files[i];await er(a,l,0,e)?console.log("File is valid"):console.log("File is invalid")}}};return(0,i.jsxs)("label",{htmlFor:h,className:(0,s.cn)("flex w-full cursor-pointer items-center justify-between gap-3 rounded-md bg-giphyBlack px-4 py-3.5 font-bold transition-colors",o&&"pointer-events-none opacity-50",t),children:[(0,i.jsx)("span",{className:(0,s.cn)("min-w-0 flex-1 truncate text-left",x?"text-giphyWhite":"text-giphyLightCharcoal"),children:u}),(0,i.jsx)("span",{className:"shrink-0 rounded bg-giphyDarkGrey px-3 py-1 text-xs text-giphyLightGrey",children:"Browse"}),(0,i.jsx)("input",{id:h,onChange:g,accept:l.join(","),type:"file",disabled:o,placeholder:n,...c,className:"sr-only"})]})};var ed=l(43444),eh=l(37807),eu=l(42115),em=l(902),ep=l(53553),ex=l(72629),ef=l(29617);let eg=e=>{let t,l,s=(0,a.c)(12),{className:n,children:r,channelId:d}=e,{showStatusMessage:h}=(0,m.useContext)(u.J),{goBack:p,modal:x}=(0,m.useContext)(o.Vs),f=(0,ex.x)(),g=(0,em.useRouter)(),y=(0,em.usePathname)();return s[0]!==d||s[1]!==p||s[2]!==x||s[3]!==f||s[4]!==y||s[5]!==g||s[6]!==h?(t=async e=>{let t=await (0,c._2)(d,e);if(h("Collection Saved","Failed to update collection",t.ok),t.ok){let e=await t.json();x?.name==="editCollection"&&x.channel.url===y&&e.url!==y?g.replace(e.url):(await f(e),p())}},s[0]=d,s[1]=p,s[2]=x,s[3]=f,s[4]=y,s[5]=g,s[6]=h,s[7]=t):t=s[7],s[8]!==r||s[9]!==n||s[10]!==t?(l=(0,i.jsx)("form",{id:"editForm",autoComplete:"off",className:n,action:t,children:r}),s[8]=r,s[9]=n,s[10]=t,s[11]=l):l=s[11],l},ey={display_name:"",description:""},ev=()=>{let{user:e}=(0,m.useContext)(A.A),{showStatusMessage:t}=(0,m.useContext)(u.J),{modal:l,setModalType:a,goBack:n}=(0,m.useContext)(o.Vs),r=(0,ex.x)(),h=(0,em.useRouter)(),p=l?.name==="editCollection"?l.channel:void 0,{data:x=p||ey}=(0,ea.HS)(p?null:l?.channelId),[f,g]=(0,m.useState)(""),[y,v]=(0,m.useState)(""),[j,b]=(0,m.useState)(!1),C=y?(0,eu.QP)(y):"";(0,m.useEffect)(()=>{x&&(g(x?.display_name),v(x.banner_image||""))},[x]);let w=(0,em.usePathname)(),_=async i=>{if(i.preventDefault(),i.stopPropagation(),window.confirm("Are you sure you want to delete this collection?")){let i=await (0,c.D3)(x.id);if(t("Collection Deleted","Failed to delete collection",i.ok),i.ok){let t=(0,es.ZG)(x.parent);t&&(0,es.YD)(x.parent,t.filter(e=>e.id!==x.id)),n(),l?.name==="editCollection"&&l.channel.url===w&&setTimeout(()=>{e&&h.replace(e.profile_url||`/${e.username}`)},1e3)}}},N=async()=>{if(window.confirm("Are you sure you want to delete this banner?"))try{b(!0);let e=await (0,c.ZJ)(x.id);if(t("Banner Deleted","Failed to delete banner",e.ok),e.ok){let t=await e.json();v(""),await r(t)}}finally{b(!1)}};return(0,i.jsxs)(eg,{className:"flex flex-col items-center gap-2 p-2 font-bold transition-opacity",channelId:x.id,children:[(0,i.jsxs)("div",{className:(0,s.cn)("w-40 overflow-hidden rounded-md bg-giphyIndigo"),children:[(0,i.jsx)(ef.T7,{gif:x.featured_gif}),(0,i.jsx)(ef.bV,{label:f})]}),(0,i.jsxs)("div",{className:"flex w-full flex-col gap-1",children:[(0,i.jsx)("label",{className:"text-giphyLightGrey",htmlFor:"channel",children:"Name"}),(0,i.jsx)("input",{type:"text",spellCheck:!1,value:f,placeholder:"Collection Name",name:"display_name",autoComplete:"off",onChange:e=>g(e.target.value),autoCorrect:"off",className:(0,s.cn)(ef.Ol,"h-auto w-full py-3.5 text-giphyLightGrey")})]}),(0,i.jsxs)("div",{className:"flex w-full flex-col gap-1",children:[(0,i.jsxs)("div",{className:"flex justify-between text-giphyLightGrey",children:[(0,i.jsx)("label",{children:"Description"}),(0,i.jsx)("label",{className:"self-baseline text-sm text-giphyLightCharcoal",children:"Optional"})]}),(0,i.jsx)("textarea",{defaultValue:x.description,maxLength:200,placeholder:"Add a brief description about your collection.",name:"description",className:(0,s.cn)(ef.Ol,"h-20 w-full")})]}),(0,i.jsxs)("div",{className:"flex w-full flex-col gap-1",children:[(0,i.jsx)("label",{className:"text-giphyLightGrey",htmlFor:"collectionId",children:"Collection ID"}),(0,i.jsxs)("div",{className:"relative w-full",children:[(0,i.jsx)("input",{id:"collectionId",type:"text",spellCheck:!1,value:x.id,autoComplete:"off",readOnly:!0,"aria-readonly":"true",tabIndex:-1,
1className:(0,s.cn)(ef.Ol,"h-auto w-full cursor-default bg-giphyDarkCharcoal/40 py-3.5 pr-12 text-giphyLightGrey")}),(0,i.jsx)("button",{type:"button",onClick:()=>{navigator.clipboard.writeText(String(x.id)),t("Collection ID copied!","Failed to copy",!0)},className:"absolute top-1/2 right-1 -translate-y-1/2 cursor-pointer p-1 opacity-40 transition-opacity hover:opacity-30","aria-label":"Copy Collection ID",children:(0,i.jsx)(ed.A,{className:"size-6 fill-giphyLightGrey"})})]})]}),(0,i.jsxs)("div",{className:"mb-1 flex w-full flex-col gap-1",children:[(0,i.jsx)("label",{className:"text-giphyLightGrey",children:"Visibility"}),(0,i.jsx)(ep.A,{initialIsPrivate:x.is_private})]}),(0,i.jsxs)("div",{className:"flex w-full flex-col gap-1",children:[(0,i.jsxs)("div",{className:"flex justify-between",children:[(0,i.jsxs)("label",{className:"text-giphyLightGrey",children:["Banner ",(0,i.jsx)("span",{className:"text-xs text-giphyDarkCharcoal italic",children:"5 mb max, 1040x160"})]}),(0,i.jsx)("label",{className:"text-sm text-giphyLightCharcoal",children:"Optional"})]}),C&&(0,i.jsxs)("div",{className:"relative aspect-[13/2] w-full overflow-hidden rounded-md bg-giphyBlack",children:[(0,i.jsx)("img",{src:C,height:160,width:1040,alt:`${x.display_name} banner`,className:(0,s.cn)("size-full object-cover",j&&"opacity-40")}),(0,i.jsx)("button",{type:"button","aria-label":"Delete current banner",disabled:j,onClick:N,className:"absolute top-2 right-2 flex size-8 cursor-pointer items-center justify-center rounded-md bg-giphyBlack/80 transition-colors hover:bg-giphyRed disabled:pointer-events-none disabled:opacity-50",children:(0,i.jsx)(eh.A,{className:"size-4 fill-giphyWhite"})})]}),(0,i.jsx)(ec,{className:"w-full bg-giphyBlack px-4 py-3.5 text-center text-giphyWhite",placeholder:"Choose File",accept:["image/*"],name:"banner_image"})]}),(0,i.jsxs)("div",{className:"mt-3 flex w-full gap-2",children:[(0,i.jsx)(d.default,{type:"button",className:"flex h-9 flex-1 items-center justify-center rounded-md bg-giphyDarkGrey px-4 py-2 font-bold text-giphyWhite",onClick:()=>{a({name:"createCollection",channelId:x.id,title:`Create new sub-collection in "${x.display_name}"`})},children:"Create Sub-Collections"}),(0,i.jsxs)(d.default,{type:"button",className:"flex h-9 flex-1 items-center justify-center gap-2 rounded-md bg-giphyDarkGrey px-4 py-2 font-bold text-giphyWhite",onClick:_,children:[(0,i.jsx)(eh.A,{className:"size-4 fill-giphyRed"})," Delete Collection"]})]}),(0,i.jsx)("input",{type:"hidden",name:"user_id",value:e?.id}),(0,i.jsx)("input",{type:"hidden",name:"id",value:x?.id}),(0,i.jsx)("input",{type:"hidden",name:"parent",value:x?.parent}),(0,i.jsx)(ef.cG,{}),(0,i.jsx)(d.b,{className:(0,s.cn)("w-full cursor-pointer rounded-md bg-gradient-primary px-4 py-3 font-bold text-giphyWhite select-none",!f&&"pointer-events-none opacity-50"),children:"Save Collection"})]})};var ej=l(88267),eb=l(20111),eC=l(74595),ew=l(8351),e_=l(92805),eN=l(77672),ek=l(66804),eS=l(87909),eA=l(6479),eL=l(63522);let eI=e=>{let t,l,s,n=(0,a.c)(8),r=e.color||"white";return n[0]!==r?(t=(0,i.jsx)("path",{d:"M22 3.43696C22 1.54319 20.4561 0 18.5614 0H14.4351C13.6752 0 13.0597 0.615216 13.0597 1.37478C13.0597 2.13435 13.6752 2.74957 14.4351 2.74957H17.3029L11.227 8.82267C10.6905 9.35884 10.6905 10.2284 11.227 10.768C11.4952 11.0361 11.8459 11.1701 12.2001 11.1701C12.5542 11.1701 12.905 11.0361 13.1732 10.768L19.2491 4.69489V7.56131C19.2491 8.32088 19.8647 8.93609 20.6246 8.93609C21.3845 8.93609 22 8.32088 22 7.56131V3.43696Z",fill:r}),l=(0,i.jsx)("path",{d:"M0.922392 19.5528C1.3247 20.1577 1.83705 20.6663 2.44224 21.0719C3.83142 21.9999 5.76734 21.9999 9.62542 21.9999C13.4835 21.9999 15.4194 21.9999 16.8086 21.0719C17.4138 20.6698 17.9227 20.1577 18.3284 19.5528C19.2087 18.2364 19.2534 16.4217 19.2534 13.0638C19.2534 12.3042
118.6379 11.689 17.878 11.689C17.1181 11.689 16.5026 12.3042 16.5026 13.0638C16.5026 15.7274 16.4682 17.3875 16.0384 18.0302C15.8355 18.3326 15.581 18.587 15.2784 18.7898C14.5838 19.2537 12.7167 19.2537 9.62542 19.2537C6.53414 19.2537 4.66356 19.2537 3.9724 18.7898C3.66981 18.587 3.41536 18.3326 3.21248 18.0302C2.74827 17.3359 2.74827 15.4697 2.74827 12.3798C2.74827 9.29 2.74827 7.4203 3.21248 6.72947C3.41536 6.42702 3.66981 6.17268 3.9724 5.9699C4.61542 5.54028 6.27625 5.50935 8.94114 5.50591C9.70107 5.50591 10.3166 4.8907 10.3166 4.13113C10.3166 3.37156 9.70107 2.75635 8.94114 2.75635C5.58166 2.75635 3.76609 2.80103 2.44568 3.68433C1.84393 4.08645 1.33158 4.59856 0.929269 5.20002C0.000854082 6.58856 0.000854492 8.52356 0.000854492 12.3798C0.000854492 16.2361 0.000854082 18.1711 0.929269 19.5596L0.922392 19.5528Z",fill:r}),n[0]=r,n[1]=t,n[2]=l):(t=n[1],l=n[2]),n[3]!==r||n[4]!==e||n[5]!==t||n[6]!==l?(s=(0,i.jsxs)("svg",{fill:r,width:"22",height:"22",viewBox:"0 0 22 22",xmlns:"http://www.w3.org/2000/svg",...e,children:[t,l]}),n[3]=r,n[4]=e,n[5]=t,n[6]=l,n[7]=s):s=n[7],s};var eG=l(44011),eV=l(41798),eT=l(10933),eD=l.n(eT);let eR="bg-giphyDarkCharcoal flex p-3 rounded-md gap-2 cursor-pointer",eF=e=>{let t,l,n,r,d,h,u,p,x,f,g,y,v,j,b,C,w,_,N,k,S,A,L,I,G=(0,a.c)(64),{channel:V,className:T,dragHandleProps:D}=e,{setModalType:R}=(0,m.useContext)(o.Vs),{data:F}=(0,ea.j9)(V),$=void 0===F?V:F,H=$.num_children>0;G[0]!==$.featured_gif?(t=$.featured_gif||(0,eG.Ay)(),G[0]=$.featured_gif,G[1]=t):t=G[1];let O=t,[z,M]=(0,m.useState)(),{ref:E,inView:B}=(0,eC.Wx)();G[2]!==$.id||G[3]!==B?(l=()=>{let e=async()=>{M((await (0,c.Xr)($.id,{offset:0,limit:25},document.cookie)).pagination.count)};B&&e()},G[2]=$.id,G[3]=B,G[4]=l):l=G[4],G[5]!==$||G[6]!==B?(n=[$,B],G[5]=$,G[6]=B,G[7]=n):n=G[7],(0,m.useEffect)(l,n),G[8]!==T?(r=(0,s.cn)("flex cursor-pointer bg-giphyDarkGrey hover:bg-giphyCharcoal",T),G[8]=T,G[9]=r):r=G[9],G[10]!==$||G[11]!==R?(d=()=>{R({name:"editCollections",channelId:$.id,title:(0,i.jsx)(ef.BI,{channel:$})})},G[10]=$,G[11]=R,G[12]=d):d=G[12],G[13]!==T?(h=(0,s.cn)(T,"cursor-pointer [&_img]:object-cover"),G[13]=T,G[14]=h):h=G[14],G[15]!==$||G[16]!==R?(u=()=>{R({name:"editCollections",channelId:$.id,title:(0,i.jsx)(ef.BI,{channel:$})})},G[15]=$,G[16]=R,G[17]=u):u=G[17],G[18]!==$.is_private?(p=e=>$.is_private?(0,i.jsx)("div",{className:"absolute inset-0 flex items-center justify-center",children:(0,i.jsx)(eL.A,{className:"size-10 fill-giphyRed"})}):null,G[18]=$.is_private,G[19]=p):p=G[19];let P=O.is_sticker?void 0:"rgba(0,0,0,0)";return G[20]!==O||G[21]!==P||G[22]!==h||G[23]!==u||G[24]!==p?(x=(0,i.jsx)(eV.Gif,{className:h,gif:O,width:120,height:80,onGifClick:u,hideAttribution:!0,noLink:!0,overlay:p,borderRadius:0,backgroundColor:P}),G[20]=O,G[21]=P,G[22]=h,G[23]=u,G[24]=p,G[25]=x):x=G[25],G[26]!==$.display_name?(f=(0,i.jsx)("span",{className:"line-clamp-1 text-xl font-bold select-none",children:$.display_name}),G[26]=$.display_name,G[27]=f):f=G[27],G[28]!==$||G[29]!==H||G[30]!==R?(g=H&&(0,i.jsxs)("div",{className:(0,s.cn)(eR,"rounded-lg border px-2 py-1 text-center font-bold"),onClick:()=>{R({name:"editCollections",channelId:$.id,title:(0,i.jsx)(ef.BI,{channel:$})})},children:[$.num_children," more"]}),G[28]=$,G[29]=H,G[30]=R,G[31]=g):g=G[31],G[32]!==f||G[33]!==g?(y=(0,i.jsxs)("div",{className:"flex gap-2",children:[f,g]}),G[32]=f,G[33]=g,G[34]=y):y=G[34],G[35]!==z?(v=z?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("span",{className:"font-bold",children:z})," items"]}):"",G[35]=z,G[36]=v):v=G[36],G[37]!==v?(j=(0,i.jsx)("div",{className:"h-5 text-giphyLightGrey select-none",children:v}),G[37]=v,G[38]=j):j=G[38],G[39]!==y||G[40]!==j?(b=(0,i.jsx)("div",{className:"flex grow justify-between p-4",children:(0,i.jsxs)("div",{children:[y,j]})}),G[39]=y,G[40]=j,G[41]=b):b=G[41],G[42]===Symbol.for("react.memo_cache_sentinel")?(C=(0,i.jsx)(eI,{className:"size-5"}),G[42]=C):C=G[42],G[43]!==$.url?(w=(0,i.jsxs)(eD(),{className:eR,href:$.url,target:"_blank",children:[C,"View"]}),G[43]=$.url,G[44]=w):w=G[44],G[45]!==$?(_={name:"editCollection",channel:$},G[45]=$,G[46]=_):_=G[46],G[47]===Symbol.for("react.memo_cache_sentinel")?(N=(0,i.jsx)(eA.A,{className:"size-5"}),G[47]=N):N=G[47],G[48]!==_?(k=(0,i.jsxs)(o.ClickToShowModal,{modal:_,className:eR,children:[N," Edit"]}),G[48]=_,G[49]=k):k=G[49],G[50]===Symbol.for("react.memo_cache_sentinel")?(S=(0,i.jsx)(eS.A,{className:(0,s.cn)("ml-4 size-5 cursor-grab")}),G[50]=S):S=G[50],G[51]!==D?(A=(0,i.jsx)("div",{...D,children:S}),G[51]=D,G[52]=A):A=G[52],G[53]!==w||G[54]!==k||G[55]!==A?(L=(0,i.jsxs)("div",{className:"flex items-center gap-2 p-4",children:[w,
1k,A]}),G[53]=w,G[54]=k,G[55]=A,G[56]=L):L=G[56],G[57]!==E||G[58]!==x||G[59]!==b||G[60]!==L||G[61]!==r||G[62]!==d?(I=(0,i.jsxs)("div",{ref:E,className:r,onClick:d,children:[x,b,L]}),G[57]=E,G[58]=x,G[59]=b,G[60]=L,G[61]=r,G[62]=d,G[63]=I):I=G[63],I};var e$=l(51176);let eH=e=>{let t,l,n,r,c,d=(0,a.c)(11),{className:h,channel:u}=e,m=u.ancestors.length>0;d[0]!==u.id?(t={name:"createCollection",channelId:u.id},d[0]=u.id,d[1]=t):t=d[1],d[2]!==h?(l=(0,s.cn)("cursor-pointer rounded-md","striped-background","basis-full hover:border-giphyLightCharcoal","flex items-center justify-center",h),d[2]=h,d[3]=l):l=d[3],d[4]===Symbol.for("react.memo_cache_sentinel")?(n=(0,i.jsx)(e$.A,{className:"size-5"}),d[4]=n):n=d[4];let p=`New ${m?"Sub-":""}Collection`;return d[5]!==p?(r=(0,i.jsx)(ef.bV,{className:"text-2xl",label:p}),d[5]=p,d[6]=r):r=d[6],d[7]!==t||d[8]!==l||d[9]!==r?(c=(0,i.jsxs)(o.ClickToShowModal,{modal:t,className:l,children:[n,r]}),d[7]=t,d[8]=l,d[9]=r,d[10]=c):c=d[10],c},eO=()=>{let e,t,l,n,r,d,h,p,x,f,g,y,v,j,b,C,w=(0,a.c)(45),{user:_}=(0,m.useContext)(A.A),{modal:N,setModalType:k}=(0,m.useContext)(o.Vs),S=N?.channelId,{showMessage:L}=(0,m.useContext)(u.J),I=S||_?.channel_id,{data:G,isLoading:V}=(0,ea.HS)(I),T=(0,es.es)(I,G?.children),D=(0,ex.x)();w[0]===Symbol.for("react.memo_cache_sentinel")?(e=[],w[0]=e):e=w[0];let[R,F]=(0,m.useState)(e),{staffMode:$}=(0,m.useContext)(ej.iO),[H,O]=(0,m.useState)(!1);w[1]!==T?(t=()=>{T&&F(T.map(ez))},l=[T],w[1]=T,w[2]=t,w[3]=l):(t=w[2],l=w[3]),(0,m.useEffect)(t,l),w[4]!==I?(n=async e=>await (0,c.vp)(I,"",{offset:e,limit:25}),w[4]=I,w[5]=n):n=w[5];let z=n;w[6]===Symbol.for("react.memo_cache_sentinel")?(r={rootMargin:"0px 0px 250px 0px"},w[6]=r):r=w[6];let{ref:M,inView:E}=(0,eC.Wx)(r);w[7]!==G?.num_children||w[8]!==T?(d=()=>T.length===G?.num_children,w[7]=G?.num_children,w[8]=T,w[9]=d):d=w[9],w[10]!==T||w[11]!==z||w[12]!==E||w[13]!==d?(h={initialData:T,fetchData:z,triggerFetch:E,checkDone:d},w[10]=T,w[11]=z,w[12]=E,w[13]=d,w[14]=h):h=w[14];let{doneFetching:B,gifs:P}=(0,ew.A)(h);if(w[15]!==I||w[16]!==P?(p=()=>{(0,es.YD)(I,P)},x=[I,P],w[15]=I,w[16]=P,w[17]=p,w[18]=x):(p=w[17],x=w[18]),(0,m.useEffect)(p,x),!_)return null;w[19]!==G||w[20]!==T||w[21]!==R||w[22]!==D||w[23]!==L?(f=async e=>{let{draggableId:t,source:l,destination:i}=e,a=i?.index,s=l.index;if(void 0!==a&&a!==s){let e;O(!0);let l=R.filter(e=>e.toString()!==t);F(l=(0,e_.Bp)(l,a,t));let i=l[a+1],s=i?"left":"right",n="right"===s?l[a-1]:i;try{e=!(await (0,c.vq)(t,n,s)).ok}catch(t){e=!0}e&&(F(R),L({type:"error",message:"There was error updating"})),O(!1),await D({...G,children:l.map(e=>T?.find(t=>t.id.toString()===e))})}},w[19]=G,w[20]=T,w[21]=R,w[22]=D,w[23]=L,w[24]=f):f=w[24];let W=f;w[25]===Symbol.for("react.memo_cache_sentinel")?(g={maxHeight:"calc(100vh - 200px)"},w[25]=g):g=w[25];let U=H&&"pointer-events-none opacity-70";return w[26]!==U?(y=(0,s.cn)("flex flex-col gap-2.5 p-2",U),w[26]=U,w[27]=y):y=w[27],w[28]!==k||w[29]!==$?(v=$&&(0,i.jsx)(ek.A,{onSelect:e=>{k({name:"editCollections",channelId:e.id,title:(0,i.jsx)(ef.BI,{channel:e})})}}),w[28]=k,w[29]=$,w[30]=v):v=w[30],w[31]!==G?(j=G&&(0,i.jsx)(eH,{className:"h-20 w-full p-5",channel:G}),w[31]=G,w[32]=j):j=w[32],w[33]!==T||w[34]!==B||w[35]!==R||w[36]!==V||w[37]!==W||w[38]!==M?(b=V?(0,i.jsx)(eN.A,{}):T&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(eb.JY,{onDragEnd:W,children:(0,i.jsx)(eb.gL,{droppableId:"droppable",children:(e,t)=>(0,i.jsxs)("div",{...e.droppableProps,ref:e.innerRef,className:"flex flex-col gap-4",children:[R.map((e,t)=>{let l=T.find(t=>t.id.toString()===e);return l?(0,i.jsx)(eb.sx,{draggableId:l.id.toString(),index:t,children:(e,a)=>(0,i.jsx)("div",{ref:e.innerRef,...e.draggableProps,className:(0,s.cn)("box-border border-2 border-solid border-transparent",a.isDragging&&"border-giphyCharcoal"),children:(0,i.jsx)(eF,{dragHandleProps:e.dragHandleProps,channel:l},`${l.id}-${t}`)})},l.id):(console.error(e,"not found in children:",T),null)}),e.placeholder]})})}),!B&&(0,i.jsx)("div",{ref:M,children:(0,i.jsx)(eN.A,{})})]}),w[33]=T,w[34]=B,w[35]=R,w[36]=V,w[37]=W,w[38]=M,w[39]=b):b=w[39],w[40]!==y||w[41]!==v||w[42]!==j||w[43]!==b?(C=(0,i.jsxs)("div",{style:g,className:y,children:[v,j,b]}),w[40]=y,w[41]=v,w[42]=j,w[43]=b,w[44]=C):C=w[44],C};function ez(e){return e.id.toString()}var eM=l(3135),eE=l(88275),eB=l(5817);let eP=e=>{let t,l,n,r,h=(0,a.c)(17),{channelId:p,channel:x}=e,{modal:f,setModalType:g}=(0,m.useContext)(o.Vs),{user:y}=(0,m.useContext)(A.A);h[0]!==y?.channel_id?(t=async e=>await (0,c.Xr)(y?.channel_id,{offset:e,limit:20},document.cookie),h[0]=y?.channel_id,h[1]=t):t=h[1],y?.channel_id;let v=t,{setGifs:j}=(0,m.useContext)(eE.kv);h[2]===Symbol.for("react.memo_cache_sentinel")?(l=[],h[2]=l):l=h[2];let[b,C]=(0,m.useState)(l),[w,_]=(0,m.useState)(!1),{showMessage:N}=(0,m.useContext)(u.J);h[3]!==b?(n=e=>{let t=b.indexOf(e.gif);return(0,i.jsx)(eB.A,{...e,count:-1!==t?t+1:void 0})},h[3]=b,h[4]=n):n=h[4];let k=n,S=(0,ex.x)();return h[5]!==k||h[6]!==x||h[7]!==p||h[8]!==v||h[9]!==b||h[10]!==w||h[11]!==f?.name||h[12]!==S||h[13]!==j||h[14]!==g||h[15]!==N?(r=f?.name==="addGifsToCollection"?(0,i.jsx)(i.Fragment,{children:(0,i.jsxs)("div",{className:(0,s.cn)("relative mt-2 flex flex-col gap-4 overflow-hidden",w&&"pointer-events-none opacity-80"),style:{height:"calc(100vh - 100px)"},children:[(0,i.jsx)(d.default,{className:(0,s.cn)("mx-auto cursor-pointer",0===b.length&&"pointer-events-none cursor-none bg-giphyCharcoal"),onClick:async()=>{_(!0),(await (0,c.Dn)(b.map(eW),p)).ok?(N({message:"Gifs Added",type:"success"}),j(e=>[...e,...b]),g(null)):N({message:"There was an error",type:"error"}),x.featured_gif||(await (0,c.o4)(x.id,{id:x.id,parent:x.parent,featured_gif:b[0].id.toString()}),S({...x,featured_gif:b[0]})),_(!1)},children:"Add Selected Gifs to Collection"}),(0,i.jsx)("div",{className:"animate-fade-in overflow-y-auto",children:(0,i.jsx)(eV.Grid,{fetchGifs:v,percentWidth:"100%",width:1040,columns:4,overlay:k,onGifClick:(e,t)=>{t.preventDefault(),t.stopPropagation(),b.includes(e)?C(b.filter(t=>t!==e)):C([...b,e])}})})]})}):null,h[5]=k,h[6]=x,h[7]=p,h[8]=v,h[9]=b,h[10]=w,h[11]=f?.name,h[12]=S,h[13]=j,h[14]=g,h[15]=N,h[16]=r):r=h[16],r};function eW(e){return e.id}let eU=e=>{let t,l=(0,a.c)(5),{className:n}=e,{user:r}=(0,m.useContext)(A.A),{staffMode:o,setStaffMode:c}=(0,m.useContext)(ej.iO);return l[0]!==n||l[1]!==c||l[2]!==o||l[3]!==r?.is_staff?(t=r?.is_staff?(0,i.jsxs)("div",{className:(0,s.cn)("group flex cursor-pointer items-center gap-2",n),onClick:()=>c(eZ),children:[(0,i.jsx)(eA.A,{className:(0,s.cn)("size-3",o?"fill-giphyGreen group-hover:opacity-80":"fill-giphyLightCharcoal group-hover:fill-giphyLightestGrey")})," ",(0,i.jsx)("div",{className:(0,s.cn)("font-bold",o?"text-giphyGreen group-hover:opacity-80":"text-giphyLightCharcoal group-hover:text-giphyLightestGrey"),children:"Staff Mode"})]}):null,l[0]=n,l[1]=c,l[2]=o,l[3]=r?.is_staff,l[4]=t):t=l[4],t};function eZ(e){return!e}function eJ(e){let t,l,n,r,c,d,h,u,p,x,f,g=(0,a.c)(30),{gifId:y,children:v,channel:j}=e,{user:C}=(0,m.useContext)(A.A),[w,_]=(0,m.useState)(null);g[0]===Symbol.for("react.memo_cache_sentinel")?(t=[],g[0]=t):t=g[0];let[N,k]=(0,m.useState)(t);g[1]!==w||g[2]!==N?(l=()=>{null===w?N.length>0&&k([]):w!==N[N.length-1]&&k([...N,w])},n=[w,N],g[1]=w,g[2]=N,g[3]=l,g[4]=n):(l=g[3],n=g[4]),(0,m.useEffect)(l,n);let S=N[N.length-2];g[5]!==N||g[6]!==S?(r=()=>{k(N.slice(0,-1)),_(S)},g[5]=N,g[6]=S,g[7]=r):r=g[7];let L=r;g[8]!==w?.name?(c=()=>{w?.name?document.documentElement.style.overflow="hidden":document.documentElement.style.overflow=""},g[8]=w?.name,g[9]=c):c=g[9];let I=w?.name;g[10]!==I?(d=[I],g[10]=I,g[11]=d):d=g[11],(0,m.useEffect)(c,d);let[V,T]=(0,eM.A)("openCollectionCabinet",!1);return g[12]!==j||g[13]!==V||g[14]!==T||g[15]!==C?(h=()=>
1{if(j){let e=!!(C&&(C.is_staff||C.username===j.user.username));V&&e&&(_({name:"editCollections",channelId:j.id,title:(0,i.jsx)(ef.BI,{channel:j})}),T(!1))}},u=[j,V,_,T,C],g[12]=j,g[13]=V,g[14]=T,g[15]=C,g[16]=h,g[17]=u):(h=g[16],u=g[17]),(0,m.useEffect)(h,u),g[18]!==L||g[19]!==w?(p={modal:w,setModalType:_,goBack:L},g[18]=L,g[19]=w,g[20]=p):p=g[20],g[21]!==L||g[22]!==y||g[23]!==w||g[24]!==S?(x=w?(0,i.jsx)(o.aF,{className:(0,s.cn)("transition-all duration-200 ease-in-out",function(e){let t="max-h-[1000px] max-w-desktopWidth";switch(e?.name){case"createCollection":t="max-w-[512px]";break;case"addToCollection":t="max-w-[846px]";break;case"editCollection":t="max-w-[562px]";break;case"addGifsToCollection":t="w-desktopWidth max-h-[1200px] overflow-hidden";break;case"hireMe":case"derankUser":case"deactivateUser":t="md:w-[675px]"}return t}(w)),previousModalId:S,contentClassName:function(e){switch(e?.name){case"hireMe":case"derankUser":case"deactivateUser":return"flex flex-1"}return""}(w),title:w.title||function(e){let t="";switch(e?.name){case"addToCollection":t="Add To Collection";break;case"createCollection":t="Create Collection";break;case"editCollection":t="Edit Collection";break;case"addGifsToCollection":t=`Add GIFs to ${e.channel?.display_name}`;break;case"editCollections":t="Edit Collections"}return t}(w),goBack:L,onClose:()=>_(null),titleBarComponent:function(e){let t=null;switch(e?.name){case"addToCollection":case"editCollections":t=(0,i.jsx)("div",{className:"pointer-events-auto absolute inset-0 -z-10 mr-8 flex flex-1 items-center justify-end",children:(0,i.jsx)(eU,{})})}return t}(w),children:"addToCollection"===w.name?(0,i.jsx)(el.A,{gifId:y,channelId:w.channelId},`add-${w.channelId}`):"addGifsToCollection"===w.name?(0,i.jsx)(eP,{channelId:w.channelId,channel:w.channel}):"createCollection"===w.name?(0,i.jsx)(ei.A,{channelId:w.channelId?.toString()}):"editCollections"===w.name?(0,i.jsx)(eO,{},w.channelId):"deactivateUser"===w.name?(0,i.jsx)(b,{}):"derankUser"===w.name?(0,i.jsx)(G,{}):"hireMe"===w.name?(0,i.jsx)(et,{}):"editCollection"===w.name?(0,i.jsx)(ev,{}):null}):null,g[21]=L,g[22]=y,g[23]=w,g[24]=S,g[25]=x):x=g[25],g[26]!==v||g[27]!==p||g[28]!==x?(f=(0,i.jsxs)(o.Vs.Provider,{value:p,children:[v,x]}),g[26]=v,g[27]=p,g[28]=x,g[29]=f):f=g[29],f}},48009:(e,t,l)=>{l.d(t,{A:()=>d});var i=l(54568),a=l(29306),s=l(10933),n=l.n(s),r=l(902),o=l(7620),c=l(20267);let d=({className:e,options:t,onClick:l,index:s,onTransitionEnd:d,isMobile:h})=>{let[u,m]=(0,o.useState)(s),p=(0,o.useRef)(!1),x=(0,o.useRef)(!1),f=(0,o.useRef)(null),g=(0,o.useRef)(!1),y=(0,o.useRef)(null),v=(0,o.useRef)([]),j=(0,r.usePathname)(),b=j?.startsWith("/search"),C=j?.startsWith("/edit/gifs"),w=!!(h&&!b),_=!w;v.current.length=t.length,(0,o.useEffect)(()=>{p.current||m(s)},[s]),(0,o.useLayoutEffect)(()=>{if(!w){x.current=!1,f.current=null,g.current=!1;return}let e=g.current;g.current=!1;let t=y.current,l=v.current[u];if(!t||!l)return;let i=()=>Math.max(0,l.offsetLeft-(t.clientWidth-l.offsetWidth)/2),a=()=>{let e=i();f.current!==e&&(t.scrollTo({left:e,behavior:x.current?"smooth":"auto"}),f.current=e,x.current=!0)};e?f.current=i():a();let s=new ResizeObserver(a);return s.observe(t),s.observe(l),()=>s.disconnect()},[u,w]);let N=`${100/t.length}%`,k=`${100*(u/t.length)}%`,S=(0,i.jsxs)("div",{className:(0,a.cn)("relative flex flex-shrink-0 justify-between overflow-hidden rounded-3xl bg-gradient-grey font-bold text-giphyWhite",h?"w-max min-w-full":["flex w-full justify-between overflow-hidden",!C&&"md:w-[400px]"],!h&&e),children:[_&&(0,i.jsx)("div",{"data-testid":"toggle-highlight",className:(0,a.cn)("absolute left-0 z-10 h-full transition-all duration-250",h?"rounded-3xl bg-gradient-tertiary":(t[s].gradientClassName||["bg-gradient-primary","bg-gradient-secondary","bg-gradient-tertiary"][u%t.length])+" rounded-[inherit]"),onTransitionEnd:()=>{d?.(u),p.current=!1},style:{width:N,left:k,transform:h?"translateZ(0)":void 0}}),(0,i.jsx)("div",{className:(0,a.cn)("flex",h?b?"w-full justify-between":"gap-2":"w-full justify-between"),children:t.map((e,t)=>{let s=()=>{u!==t&&(p.current=_,g.current=w,m(t),l?.(t),_||d?.(t))},r=(0,i.jsxs)(i.Fragment,{children:[e.icon&&(0,i.jsx)(c.A,{inverted:!0,icon:e.icon}),e.label]}),o=h?b?{width:N,minWidth:N,height:"45px",flexShrink:0,whiteSpace:"nowrap"}:{minWidth:"88px",height:"45px",flexShrink:0,scrollSnapAlign:"center",whiteSpace:"nowrap"}:{width:N};return e.href?(0,i.jsx)(n(),{ref:e=>{v.current[t]=e},prefetch:!1,replace:!0,onClick:s,className:(0,a.cn)("relative z-20 flex cursor-pointer items-center justify-center gap-1 rounded-3xl text-center text-inherit",h?"px-3 py-2":"p-2",w&&"w-max",w&&t===u&&"bg-gradient-tertiary"),style:o,href:e.href,children:r},t):(0,i.jsx)("button",{ref:e=>{v.current[t]=e},onClick:s,className:(0,a.cn)("relative z-20 flex cursor-pointer items-center justify-center gap-1 rounded-3xl text-inherit",h?"px-3 py-2":"p-2",w&&"w-max",w&&t===u&&"bg-gradient-tertiary"),type:"button",style:o,children:r},t)})})]},`toggle-${h?"mobile":"desktop"}-${b?"search":"normal"}`);return h?(0,i.jsx)("div",{ref:y,className:(0,a.cn)("scrollbar-hide overflow-x-auto",e),style:{scrollSnapType:"x mandatory",WebkitOverflowScrolling:"touch"},children:S}):S}},50392:(e,t,l)=>{l.d(t,{A:()=>s});var i=l(54568),a=l(99680);let s=e=>{let t,l,s=(0,a.c)(4),n=e.color||"white";return s[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,i.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.99561 0C8.90776 0 8.81991 0.0390432 8.73206 0.117131L0.105419 9.69253C0.035141 9.77713 9.53674e-07 9.87799 9.53674e-07 9.99512C9.53674e-07 10.1122 0.035141 10.2131 0.105419 10.2977L8.73206 19.8731C8.80234 19.9577 8.89165 20 9 20C9.10835 20 9.19766 19.9577 9.26794 19.8731L11.8946 16.9546C11.9649 16.8765 12 16.7773 12 16.6569C12 16.5365 11.9649 16.4373 11.8946 16.3592L6.16691 9.99512L11.8946 3.63104C11.9649 3.55295 12 3.45372 12 3.33333C12 3.21295 11.9649 3.11371 11.8946 3.03563L9.26794 0.117131C9.18009 0.0390432 9.08931 0 8.99561 0Z"}),s[0]=t):t=s[0],s[1]!==e||s[2]!==n?(l=(0,i.jsx)("svg",{fill:n,viewBox:"0 0 12 20",xmlns:"http://www.w3.org/2000/svg",...e,children:t}),s[1]=e,s[2]=n,s[3]=l):l=s[3],l}},53553:(e,t,l)=>{l.d(t,{A:()=>r});var i=l(54568),a=l(99680),s=l(48009),n=l(7620);let r=e=>{let t,l,r,o,c,d=(0,a.c)(9),{initialIsPrivate:h}
1=e,[u,m]=(0,n.useState)(!!h);d[0]===Symbol.for("react.memo_cache_sentinel")?(t=[{label:(0,i.jsx)("span",{className:"mx-4 font-bold text-giphyWhite",children:"Public"}),gradientClassName:"bg-gradient-secondary"},{label:(0,i.jsx)("span",{className:"mx-4 font-bold text-giphyWhite",children:"Private"}),gradientClassName:"bg-gradient-error"}],d[0]=t):t=d[0];let p=+!!u;d[1]===Symbol.for("react.memo_cache_sentinel")?(l=e=>{m(1===e)},d[1]=l):l=d[1],d[2]!==p?(r=(0,i.jsx)(s.A,{className:"h-9 w-full md:w-full",options:t,index:p,onTransitionEnd:l}),d[2]=p,d[3]=r):r=d[3];let x=u?"true":"false";return d[4]!==x?(o=(0,i.jsx)("input",{type:"hidden",name:"is_private",value:x}),d[4]=x,d[5]=o):o=d[5],d[6]!==r||d[7]!==o?(c=(0,i.jsxs)("div",{className:"h-9 w-full",children:[r,o]}),d[6]=r,d[7]=o,d[8]=c):c=d[8],c}},61127:(e,t,l)=>{l.d(t,{p2:()=>i,vX:()=>a}),l(91769);let i=(e,t)=>!!e?.is_staff||s(t,e),a=(e,t)=>!!e?.is_staff||(e?.user_type==="artist"||e?.user_type==="partner")&&s(t,e);function s(e,t){return!!t&&!!e&&e?.user?.id===t?.id}},61475:(e,t,l)=>{l.d(t,{A:()=>s});var i=l(54568),a=l(99680);let s=e=>{let t,l,s,n,r,o,c,d=(0,a.c)(18);if(d[0]!==e){let a,o,{gradientId:c,...h}=e,u=void 0===c?"favorites-icon":c;l="0 0 22 20",s="http://www.w3.org/2000/svg",n=h,d[6]===Symbol.for("react.memo_cache_sentinel")?(a=(0,i.jsx)("stop",{id:"gradient-stop-1",offset:"0%",stopColor:"var(--stop-color-1)"}),o=(0,i.jsx)("stop",{id:"gradient-stop-2",offset:"100%",stopColor:"var(--stop-color-2)"}),d[6]=a,d[7]=o):(a=d[6],o=d[7]),d[8]!==u?(r=(0,i.jsx)("defs",{children:(0,i.jsxs)("linearGradient",{x1:"0%",y1:"10%",x2:"0%",y2:"90%",id:u,children:[a,o]})}),d[8]=u,d[9]=r):r=d[9],t=h.className?.indexOf("--stop-color-1")===-1?"":`url(#${u})`,d[0]=e,d[1]=t,d[2]=l,d[3]=s,d[4]=n,d[5]=r}else t=d[1],l=d[2],s=d[3],n=d[4],r=d[5];return d[10]!==t?(o=(0,i.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]=o):o=d[11],d[12]!==l||d[13]!==s||d[14]!==n||d[15]!==r||d[16]!==o?(c=(0,i.jsxs)("svg",{viewBox:l,xmlns:s,...n,children:[r,o]}),d[12]=l,d[13]=s,d[14]=n,d[15]=r,d[16]=o,d[17]=c):c=d[17],c}},63522:(e,t,l)=>{l.d(t,{A:()=>s});var i=l(54568),a=l(99680);let s=e=>{let t,l,s=(0,a.c)(4),n=e.color||"white";return s[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,i.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14.6667 20C15.0347 20 15.349 19.8779 15.6094 19.6338C15.8698 19.3896 16 19.0951 16 18.75V10C16 9.65495 15.8698 9.36035 15.6094 9.11621C15.349 8.87207 15.0347 8.75 14.6667 8.75H13.3333V5C13.3333 4.32292 13.1927 3.67676 12.9115 3.06152C12.6302 2.44629 12.25 1.91406 11.7708 1.46484C11.2917 1.01562 10.724 0.659179 10.0677 0.395507C9.41146 0.131835 8.72222 0 8 0C7.27778 0 6.58854 0.131835 5.93229 0.395507C5.27604 0.659179 4.70833 1.01562 4.22917 1.46484C3.75 1.91406 3.36979 2.44629 3.08854 3.06152C2.80729 3.67676 2.66667 4.32292 2.66667 5V8.75H1.33333C0.965277 8.75 0.651042 8.87207 0.390625 9.11621C0.130208 9.36035 0 9.65495 0 10V18.75C0 19.0951 0.130208 19.3896 0.390625 19.6338C0.651042 19.8779 0.965277 20 1.33333 20H14.6667ZM10.6667 8.75H5.33333V5C5.33333 4.3099 5.59375 3.7207 6.11458 3.23242C6.63542 2.74414 7.26389 2.5 8 2.5C8.73611 2.5 9.36458 2.74414 9.88542 3.23242C10.4062 3.7207 10.6667 4.3099 10.6667 5V8.75Z"}),s[0]=t):t=s[0],s[1]!==e||s[2]!==n?(l=(0,i.jsx)("svg",{fill:n,viewBox:"0 0 16 20",xmlns:"http://www.w3.org/2000/svg",...e,children:t}),s[1]=e,s[2]=n,s[3]=l):l=s[3],l}},65784:(e,t,l)=>{l.d(t,{T:()=>s});var i=l(26274);let a={creator:i.MU,partner:i.C2,artist:i.DK,user:i.aw},s=(e,t=!1)=>{let l=t?"creator":e?.toLowerCase();return l?a[l]:void 0}},66955:(e,t,l)=>{l.d(t,{UM:()=>s,Zx:()=>i,qh:()=>a});let i=e=>{let t="";return e.details&&e.details.code?[e.details.code]:e.detail?[e.detail]:(t="object"==typeof(Object.keys(e).length>0&&e[Object.keys(e)[0]][0])?Object.entries(e).reduce((e,[,t])=>e+t.reduce((e,t)=>
1e+t.detail+"\n",""),""):Object.entries(e).reduce((e,[,t])=>e+t.join("\n")+"\n","")).split("\n").slice(0,-1)},a=e=>e.detail||e.details?["non-field error"]:Object.keys(e),s=(e,t)=>{if(void 0===t)return;let l=t.split(";");for(let t=0;t<l.length;t++){let i=l[t].trim();if(i.startsWith(e+"="))return i.substring(e.length+1)}}},69581:(e,t,l)=>{l.d(t,{A:()=>_});var i=l(54568),a=l(99680),s=l(42761),n=l(76353),r=l(88267),o=l(5458),c=l(39865),d=l(29306),h=l(7620),u=l(77672),m=l(6164),p=l(35949),x=l(41798),f=l(61848);let g=e=>{let t,l=(0,a.c)(3),{channel:s}=e,[r,o]=(0,h.useState)(!1);return l[0]!==s||l[1]!==r?(t=s?(0,i.jsxs)("div",{className:"flex min-h-[300px] flex-col gap-2",children:[(0,i.jsx)("div",{className:(0,d.cn)("flex justify-end"),children:(0,i.jsxs)(p.default,{onClick:()=>o(!0),className:(0,d.cn)("cursor-pointer",r&&"opacity-80"),children:["See all the ",s.display_name," Gifs"]})}),r&&s&&(0,i.jsx)(x.Grid,{columns:3,gutter:10,width:f.TJ,percentWidth:"100%",fetchGifs:async e=>await (0,n.Xr)(s.id,{offset:e})})]}):null,l[0]=s,l[1]=r,l[2]=t):t=l[2],t};var y=l(77736),v=l(72249),j=l(66804),b=l(29617);let C="group w-36",w=e=>{let t,l,s,r=(0,a.c)(11),{className:c,children:u,gifId:p,channelId:x}=e,{showStatusMessage:f}=(0,h.useContext)(o.J),{setModalType:g}=(0,h.useContext)(m.Vs);return r[0]!==c?(t=(0,d.cn)(c),r[0]=c,r[1]=t):t=r[1],r[2]!==x||r[3]!==p||r[4]!==g||r[5]!==f?(l=async()=>{p&&(f("Added to collection","Failed to add to collection",(await (0,n.Dn)([p],x)).ok),g(null))},r[2]=x,r[3]=p,r[4]=g,r[5]=f,r[6]=l):l=r[6],r[7]!==u||r[8]!==t||r[9]!==l?(s=(0,i.jsx)("div",{className:t,onClick:l,children:u}),r[7]=u,r[8]=t,r[9]=l,r[10]=s):s=r[10],s},_=e=>{let t,l,n,o,p,x,f,_=(0,a.c)(33),{channelId:N,gifId:k,onSelectChannel:S,selectedChannelIds:A}=e,{user:L}=(0,h.useContext)(c.A),I=!!N,{setModalType:G,modal:V}=(0,h.useContext)(m.Vs),{staffMode:T}=(0,h.useContext)(r.iO),D=N||V?.channelId||L?.channel_id,{channel:R,isLoading:F,ref:$,children:H,doneFetching:O}=(0,s.cf)(D);if(!L)return null;let z=R?.id===L?.channel_id;_[0]!==G||_[1]!==T?(t=T&&(0,i.jsx)(j.A,{onSelect:e=>{G({name:"addToCollection",channelId:e.id,title:`Add to ${e.display_name}`})}}),_[0]=G,_[1]=T,_[2]=t):t=_[2],_[3]===Symbol.for("react.memo_cache_sentinel")?(l={maxHeight:"calc(100vh - 300px)"},_[3]=l):l=_[3];let M=`container-${F}`;return _[4]!==R||_[5]!==H||_[6]!==O||_[7]!==k||_[8]!==F||_[9]!==I||_[10]!==V?.name||_[11]!==S||_[12]!==$||_[13]!==z||_[14]!==A||_[15]!==G?(n=F?(0,i.jsx)(u.A,{}):(0,i.jsxs)(i.Fragment,{children:[I&&z&&V?.name!=="addToCollection"&&(0,i.jsx)(y.Ay,{channel:R,className:""}),R&&(0,i.jsx)(v.A,{className:(0,d.cn)(C),channel:R}),H?.map(e=>{let t=(0,d.cn)(b.U4,C,b.Om);return 0===e.num_children?S?(0,i.jsxs)("div",{className:t,onClick:()=>S(e),children:[(0,i.jsx)(b.fL,{channel:e}),A?.includes(e.id)&&(0,i.jsx)(b.fe,{})]},e.id):(0,i.jsx)(w,{channelId:e.id,gifId:k,className:t,children:(0,i.jsx)(b.fL,{channel:e})},e.id):(0,i.jsxs)("div",{className:t,onClick:()=>{G({name:"addToCollection",channelId:e.id,title:e.display_name})},children:[(0,i.jsx)(b.fL,{channel:e}),(0,i.jsx)(b.sS,{count:e.num_children})]},e.id)}),!O&&(0,i.jsx)("div",{ref:$,children:(0,i.jsx)(u.A,{})})]}),_[4]=R,_[5]=H,_[6]=O,_[7]=k,_[8]=F,_[9]=I,_[10]=V?.name,_[11]=S,_[12]=$,_[13]=z,_[14]=A,_[15]=G,_[16]=n):n=_[16],_[17]!==M||_[18]!==n?(o=(0,i.jsx)("div",{className:"flex animate-fade-in flex-wrap justify-start gap-4 overflow-x-hidden overflow-y-auto pt-2",style:l,children:n},M),_[17]=M,_[18]=n,_[19]=o):o=_[19],_[20]!==R||_[21]!==S||_[22]!==z||_[23]!==A?(p=S&&R&&!z&&(0,i.jsxs)("button",{type:"button",onClick:()=>S(R),className:(0,d.cn)("mt-2 flex w-full cursor-pointer items-center gap-2 rounded-md p-3 text-left text-giphyWhite",A?.includes(R.id)?"bg-giphyAqua text-black":"bg-giphyDarkCharcoal"),children:[(0,i.jsx)("span",{"aria-hidden":"true",className:"shrink-0",children:"+"}),(0,i.jsxs)("span",{className:"truncate",children:["Add to ",(0,i.jsx)("b",{children:R.display_name})]})]}),_[20]=R,_[21]=S,_[22]=z,_[23]=A,_[24]=p):p=_[24],_[25]!==R||_[26]!==V?.name?(x=V?.name!=="addToCollection"&&(0,i.jsx)(g,{channel:R}),_[25]=R,_[26]=V?.name,_[27]=x):x=_[27],_[28]!==t||_[29]!==o||_[30]!==p||_[31]!==x?(f=(0,i.jsxs)("div",{className:"flex flex-col gap-2 p-2",children:[t,o,p,x]}),_[28]=t,_[29]=o,_[30]=p,_[31]=x,_[32]=f):f=_[32],f}}
1,72249:(e,t,l)=>{l.d(t,{A:()=>c});var i=l(54568),a=l(99680),s=l(29306),n=l(7620),r=l(6164),o=l(29617);let c=e=>{let t,l,c,d,h,u,m=(0,a.c)(16),{className:p,channel:x,height:f}=e,{setModalType:g}=(0,n.useContext)(r.Vs),y=x.ancestors.length>0;m[0]!==x.display_name||m[1]!==x.id||m[2]!==g?(t=e=>{e.preventDefault(),e.stopPropagation(),g({name:"createCollection",channelId:x.id,title:`Create new collection in "${x.display_name}"`})},m[0]=x.display_name,m[1]=x.id,m[2]=g,m[3]=t):t=m[3],m[4]!==p?(l=(0,s.cn)(o.U4,"bg-giphyDarkCharcoal outline-2 outline-transparent hover:border-giphyDarkCharcoal",p),m[4]=p,m[5]=l):l=m[5],m[6]===Symbol.for("react.memo_cache_sentinel")?(c=(0,i.jsx)("div",{className:(0,s.cn)(o.c8,"absolute inset-0")}),m[6]=c):c=m[6],m[7]!==f?(d=(0,i.jsx)(o.zE,{src:o.qv,width:"100%",height:f}),m[7]=f,m[8]=d):d=m[8];let v=`New ${y?"Sub-":""}Collection`;return m[9]!==v?(h=(0,i.jsx)(o.bV,{label:v}),m[9]=v,m[10]=h):h=m[10],m[11]!==t||m[12]!==l||m[13]!==d||m[14]!==h?(u=(0,i.jsxs)("div",{onClick:t,className:l,children:[c,d,h]}),m[11]=t,m[12]=l,m[13]=d,m[14]=h,m[15]=u):u=m[15],u}},72629:(e,t,l)=>{l.d(t,{x:()=>r});var i=l(99680),a=l(42761),s=l(18853),n=l(62605);function r(){let e,t=(0,i.c)(2),{mutate:l}=(0,s.iX)();return t[0]!==l?(e=async e=>{if(e.children=e.children||[],e.ancestors=e.ancestors||[],(0,a.YD)(e.id,e.children),await l((0,n.b)(e.id),e,{optimisticData:e,revalidate:!1}),e.parent){let t=(0,a.ZG)(e.parent);t=t.find(t=>t.id===e.id)?t.map(t=>t.id===e.id?e:t):[...t,e],(0,a.YD)(e.parent,t)}},t[0]=l,t[1]=e):e=t[1],e}},74932:(e,t,l)=>{l.d(t,{Q:()=>o,default:()=>c});var i=l(54568),a=l(99680),s=l(7620);let n={panel:"none",setPanel:()=>{}},r=(e,t)=>({...e,panel:t.type}),o=(0,s.createContext)(n),c=e=>{let t,l,c,d=(0,a.c)(6),{children:h}=e,[u,m]=(0,s.useReducer)(r,n);d[0]===Symbol.for("react.memo_cache_sentinel")?(t=e=>{m({type:e})},d[0]=t):t=d[0];let p=t;return d[1]!==u?(l={...u,setPanel:p},d[1]=u,d[2]=l):l=d[2],d[3]!==h||d[4]!==l?(c=(0,i.jsx)(o.Provider,{value:l,children:h}),d[3]=h,d[4]=l,d[5]=c):c=d[5],c}},77672:(e,t,l)=>{l.d(t,{A:()=>n});var i=l(54568),a=l(99680),s=l(29306);let n=e=>{let t,l,n,r,o,c,d,h=(0,a.c)(9),{className:u}=e;return h[0]!==u?(t=(0,s.cn)("loader",u),h[0]=u,h[1]=t):t=h[1],h[2]===Symbol.for("react.memo_cache_sentinel")?(l=(0,i.jsx)("div",{}),n=(0,i.jsx)("div",{}),r=(0,i.jsx)("div",{}),o=(0,i.jsx)("div",{}),c=(0,i.jsx)("div",{}),h[2]=l,h[3]=n,h[4]=r,h[5]=o,h[6]=c):(l=h[2],n=h[3],r=h[4],o=h[5],c=h[6]),h[7]!==t?(d=(0,i.jsxs)("div",{className:t,children:[l,n,r,o,c]}),h[7]=t,h[8]=d):d=h[8],d}},77736:(e,t,l)=>{l.d(t,{A4:()=>p,Ay:()=>f,ci:()=>x});var i=l(54568),a=l(99680),s=l(51176),n=l(35949),r=l(39865),o=l(41198),c=l.n(o),d=l(29306),h=l(7620),u=l(6164),m=l(29617);let p=e=>{let t,l,n,r=(0,a.c)(3);return r[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,i.jsx)("img",{src:"https://media0.giphy.com/media/ViHbdDMcIOeLeblrbq/200w.webp",alt:"",width:90,height:90}),l=(0,i.jsx)("h1",{className:`${c().className}`,children:"There's nothing here yet"}),r[0]=t,r[1]=l):(t=r[0],l=r[1]),r[2]===Symbol.for("react.memo_cache_sentinel")?(n=(0,i.jsxs)("div",{className:"hidden flex-1 flex-col items-center justify-center md:flex",children:[t,l,(0,i.jsxs)("p",{className:"my-2",children:["Add Gifs to a Collection by clicking the"," ",(0,i.jsx)(s.A,{className:"mx-1 inline-block size-3 [--stop-color-1:var(--giphy-yellow)] [--stop-color-2:var(--giphy-red)]"})," ","icon on a Gif page."]}),(0,i.jsx)("div",{children:"At the moment, you can only add your own content to Collections."})]}),r[2]=n):n=r[2],n},x=e=>{let t,l,s,r,o,d,h,u,m,p=(0,a.c)(9);return p[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,i.jsx)("path",{d:"M75 149C115.869 149 149 115.869 149 75C149 34.1309 115.869 1 75 1C34.1309 1 1 34.1309 1 75C1 115.869 34.1309 149 75 149Z",fill:"url(#paint0_radial_3443_67111)",stroke:"url(#paint1_linear_3443_67111)",strokeWidth:"2"}),p[0]=t):t=p[0],p[1]===Symbol.for("react.memo_cache_sentinel")?(l=(0,i.jsx)("mask",{id:"mask0_3443_67111",maskUnits:"userSpaceOnUse",x:"57",y:"57",width:"36",height:"36",children:(0,i.jsx)("path",{d:"M78.25 71.75V59.4H71.75V71.75H59.4V78.25H71.75V90.6H78.25V78.25H90.6V71.75H78.25ZM93 69.35V80.65H80.65V93H69.35V80.65H57V69.35H69.35V
157H80.65V69.35H93Z",fill:"white"})}),p[1]=l):l=p[1],p[2]===Symbol.for("react.memo_cache_sentinel")?(s=(0,i.jsx)("g",{mask:"url(#mask0_3443_67111)",children:(0,i.jsx)("path",{d:"M78.25 71.75V59.4H71.75V71.75H59.4V78.25H71.75V90.6H78.25V78.25H90.6V71.75H78.25ZM93 69.35V80.65H80.65V93H69.35V80.65H57V69.35H69.35V57H80.65V69.35H93Z",fill:"url(#paint2_linear_3443_67111)"})}),p[2]=s):s=p[2],p[3]===Symbol.for("react.memo_cache_sentinel")?(r=(0,i.jsxs)("radialGradient",{id:"paint0_radial_3443_67111",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(-70.1299 75) rotate(90) scale(73.4141 71.5462)",children:[(0,i.jsx)("stop",{}),(0,i.jsx)("stop",{offset:"0.405749"}),(0,i.jsx)("stop",{offset:"1",stopColor:"#002013"})]}),p[3]=r):r=p[3],p[4]===Symbol.for("react.memo_cache_sentinel")?(o=(0,i.jsxs)("linearGradient",{id:"paint1_linear_3443_67111",x1:"20.237",y1:"120.908",x2:"149",y2:"-5.68561",gradientUnits:"userSpaceOnUse",children:[(0,i.jsx)("stop",{stopColor:"#00FF99"}),(0,i.jsx)("stop",{offset:"1",stopColor:"#00CCFF"})]}),p[4]=o):o=p[4],p[5]===Symbol.for("react.memo_cache_sentinel")?(d=(0,i.jsxs)("svg",{width:"150",height:"150",viewBox:"0 0 150 150",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[t,l,s,(0,i.jsxs)("defs",{children:[r,o,(0,i.jsxs)("linearGradient",{id:"paint2_linear_3443_67111",x1:"51.9581",y1:"97.3667",x2:"93",y2:"57",gradientUnits:"userSpaceOnUse",children:[(0,i.jsx)("stop",{stopColor:"#00CCFF"}),(0,i.jsx)("stop",{offset:"1",stopColor:"#00FF99"})]})]})]}),p[5]=d):d=p[5],p[6]===Symbol.for("react.memo_cache_sentinel")?(h=(0,i.jsx)("h1",{className:`${c().className}`,children:"There's nothing here yet"}),u=(0,i.jsx)("p",{className:"text-center",children:"Create your first GIF to get started!"}),p[6]=h,p[7]=u):(h=p[6],u=p[7]),p[8]===Symbol.for("react.memo_cache_sentinel")?(m=(0,i.jsxs)("div",{className:"hidden w-full flex-1 flex-col items-center justify-center gap-4 md:flex",children:[d,(0,i.jsxs)("div",{className:"flex flex-col gap-3",children:[h,u,(0,i.jsxs)("div",{className:"flex justify-center gap-4",children:[(0,i.jsx)(n.default,{href:"/upload",isExternal:!0,className:"bg-gradient-grey px-6",children:"Upload"}),(0,i.jsx)(n.default,{href:"/create/gifmaker",isExternal:!0,className:"bg-gradient-grey px-6",children:"Create"})]})]})]}),p[8]=m):m=p[8],m},f=e=>{let t,l=(0,a.c)(5),{className:n,channel:o,hideLabel:c}=e,{user:p}=(0,h.useContext)(r.A),x=!!(p&&(p.is_staff||p.username===o.user.username));return l[0]!==x||l[1]!==o||l[2]!==n||l[3]!==c?(t=x?(0,i.jsxs)(u.ClickToShowModal,{modal:{name:"addGifsToCollection",channel:o,channelId:o.id},className:(0,d.cn)(m.U4,"basis-full hover:border-giphyLightCharcoal","hidden items-center justify-center md:flex",n),children:[(0,i.jsx)(s.A,{className:(0,d.cn)("size-5",c&&"size-8")}),!c&&(0,i.jsx)(m.bV,{label:`Add to ${o?.display_name}`})]}):null,l[0]=x,l[1]=o,l[2]=n,l[3]=c,l[4]=t):t=l[4],t}},77797:(e,t,l)=>{l.d(t,{A:()=>o});var i=l(54568),a=l(99680),s=l(14159),n=l(29306),r=l(10797);let o=e=>{let t,l,o,c,d=(0,a.c)(12),{user:h,noLink:u,className:m,alternateName:p,href:x}=e,f=x||h.profile_url||`/${h.username}`;d[0]!==m?(t=(0,n.cn)("flex min-w-0 cursor-pointer items-center gap-1 text-sm font-bold text-giphyWhiteSmoke",m),d[0]=m,d[1]=t):t=d[1];let g=(void 0===p?"":p)||`@${h.username}`;return d[2]!==g?(l=(0,i.jsx)("div",{className:"overflow-hidden text-ellipsis whitespace-nowrap subpixel-antialiased",children:g}),d[2]=g,d[3]=l):l=d[3],d[4]!==h.is_verified?(o=h.is_verified&&(0,i.jsx)(s.A,{className:"size-3.5 shrink-0 fill-giphyBlue"}),d[4]=h.is_verified,d[5]=o):o=d[5],d[6]!==u||d[7]!==t||d[8]!==l||d[9]!==o||d[10]!==f?(c=(0,i.jsxs)(r.default,{noLink:u,href:f,className:t,children:[l,o]}),d[6]=u,d[7]=t,d[8]=l,d[9]=o,d[10]=f,d[11]=c):c=d[11],c}},78804:(e,t,l)=>{l.d(t,{A:()=>s});var i=l(54568),a=l(99680);let s=e=>{let t,l,s=(0,a.c)(4),n=e.color||"white";return s[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,i.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.5827e-08 8.99561C3.68746e-08 8.90776 0.0390433 8.81991 0.117131 8.73206L9.69253 0.105419C9.77713 0.0351411 9.87799 1.07147e-06 9.99512 1.07286e-06C10.1122 1.07426e-06 10.2131 0.0351411 10.297
17 0.105419L19.8731 8.73206C19.9577 8.80234 20 8.89165 20 9C20 9.10835 19.9577 9.19766 19.8731 9.26794L16.9546 11.8946C16.8765 11.9649 16.7773 12 16.6569 12C16.5365 12 16.4373 11.9649 16.3592 11.8946L9.99512 6.16691L3.63104 11.8946C3.55295 11.9649 3.45372 12 3.33333 12C3.21295 12 3.11371 11.9649 3.03563 11.8946L0.117131 9.26794C0.0390433 9.18009 3.47096e-08 9.08931 3.5827e-08 8.99561Z"}),s[0]=t):t=s[0],s[1]!==e||s[2]!==n?(l=(0,i.jsx)("svg",{fill:n,viewBox:"0 0 20 12",xmlns:"http://www.w3.org/2000/svg",...e,children:t}),s[1]=e,s[2]=n,s[3]=l):l=s[3],l}},83500:(e,t,l)=>{l.d(t,{A:()=>c});var i=l(54568),a=l(7620),s=l(75646),n=l(92805),r=l(85129);let o=l(54713).Ay.i.withConfig({componentId:"sc-d571b98-0"})(["display:inline-block;"]),c=({className:e,color:t="#fff",gradient:l,height:c,icon:d,style:h,width:u})=>{let[m,p]=(0,a.useState)({}),x=(0,a.useMemo)(()=>(0,r.f)(d),[d]),f=(0,a.useMemo)(()=>(0,s.F0)((0,i.jsx)(x,{})),[d]),g={height:c,width:u,...h,...m};return(0,a.useEffect)(()=>{if(!l)return void p({});let e=`url(data:image/svg+xml,${encodeURIComponent(f)}) center center/${u}px ${c}px no-repeat`;p({background:(0,n.$_)(l),display:"inline-block",WebkitMask:e,mask:e})},[l,c,f,u]),l?(0,i.jsx)(o,{className:e,style:g}):(0,i.jsx)(x,{className:e,color:t,style:g})}},84405:(e,t,l)=>{l.d(t,{default:()=>d});var i=l(54568),a=l(99680),s=l(18275),n=l(89905),r=l.n(n),o=l(29306);let c="border-t-giphyLightCharcoal hover:bg-giphyCharcoal cursor-pointer border-t-2 border-solid p-2",d=e=>{let t,l,n,d,h,m,p,x,f,g,y,v=(0,a.c)(20);return v[0]!==e?({options:l,placeholder:n,className:t,...d}=e,v[0]=e,v[1]=t,v[2]=l,v[3]=n,v[4]=d):(t=v[1],l=v[2],n=v[3],d=v[4]),v[5]!==t?(h=(0,o.cn)("relative w-[230px]",t),v[5]=t,v[6]=h):h=v[6],v[7]===Symbol.for("react.memo_cache_sentinel")?(m=(0,o.cn)("h-12 w-full cursor-pointer appearance-none bg-giphyDarkGrey p-3 text-giphyWhite",r().className),v[7]=m):m=v[7],v[8]!==n?(p=(0,i.jsx)("option",{label:n,className:c,value:"",children:n}),v[8]=n,v[9]=p):p=v[9],v[10]!==l?(x=l.map(u),v[10]=l,v[11]=x):x=v[11],v[12]!==d||v[13]!==p||v[14]!==x?(f=(0,i.jsxs)("select",{className:m,...d,children:[p,x]}),v[12]=d,v[13]=p,v[14]=x,v[15]=f):f=v[15],v[16]===Symbol.for("react.memo_cache_sentinel")?(g=(0,i.jsx)("div",{className:"pointer-events-none absolute top-0 right-0 bottom-0 flex h-12 items-center justify-center",children:(0,i.jsx)(s.A,{className:"m-4 size-4 fill-giphyBlue"})}),v[16]=g):g=v[16],v[17]!==h||v[18]!==f?(y=(0,i.jsxs)("div",{className:h,children:[f,g]}),v[17]=h,v[18]=f,v[19]=y):y=v[19],y};function h(){}function u(e){let{label:t,value:l}=e;return(0,i.jsx)("option",{value:l||t,className:c,onClick:h,children:t},`${t}`)}},85874:(e,t,l)=>{l.d(t,{default:()=>m});var i=l(54568),a=l(74932),s=l(61475),n=l(36119),r=l(5458),o=l(39865),c=l(29306),d=l(19010),h=l(7620),u=l(3135);let m=({gif:e,iconSize:t,className:l="",isFavorite:m,iconClassName:p,hideLabel:x})=>{let{user:f}=(0,h.useContext)(o.A),[g,y]=(0,u.A)("hasSeenLocalFavoritesMessage",!1),{showMessage:v}=(0,h.useContext)(r.J),j=(0,n.jn)(),{setFavorites:b}=(0,h.useContext)(n.Ay),{setPanel:C}=(0,h.useContext)(a.Q);(0,h.useEffect)(()=>{m&&b(t=>[...t,e.id])},[m,e.id,b]);let[w,_]=(0,h.useState)(void 0),N=void 0===w?m:w,[k,S]=(0,h.useState)("Favorite");return(0,h.useEffect)(()=>{let e;return w?(S("Favorited!"),e=setTimeout(()=>{S("Favorite")},2e3),C("favorited")):!1===w&&(e=setTimeout(()=>{S("Favorite")},2e3),S("Removed")),()=>clearTimeout(e)},[w,C]),(0,i.jsxs)("div",{className:l,onClick:async t=>{if(t.preventDefault(),t.stopPropagation(),_(!N),await j(e.id))try{(0,d.Ed)({event:"favorite_success",options:{content:(0,d.Jc)(e),creator:{...(0,d.OV)(e),user_is_creator:f?.id===e.user?.id}}})}catch(e){}f||g||(y(!0),v({message:"Favorite saved! You can access your favorites from the user menu."}))},children:[(0,i.jsx)(s.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)]",p,N&&"[--stop-color-1:var(--giphy-pink)] [--stop-color-2:var(--giphy-red)]","Removed"===k&&"[--stop-color-1:var(--giphy-white)]! [--stop-color-2:var(--giphy-white)]!")}
1),!x&&(0,i.jsx)("label",{className:(0,c.cn)("hidden md:block","text-lg font-bold","Removed"===k?"text-giphyWhite":"from-giphyRed to-giphyPink bg-clip-text group-hover:bg-linear-to-b group-hover:text-transparent"),children:k})]})}},87909:(e,t,l)=>{l.d(t,{A:()=>s});var i=l(54568),a=l(99680);let s=e=>{let t,l,s=(0,a.c)(4),n=e.color||"white";return s[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,i.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 0.999999C0 0.447714 0.447715 0 1 0H17C17.5523 0 18 0.447715 18 1V1.8C18 2.35229 17.5523 2.8 17 2.8H1C0.447716 2.8 0 2.35228 0 1.8V0.999999ZM0 7.6C0 7.04771 0.447715 6.6 1 6.6H17C17.5523 6.6 18 7.04772 18 7.6V8.4C18 8.95229 17.5523 9.4 17 9.4H1C0.447716 9.4 0 8.95228 0 8.4V7.6ZM0 14.2C0 13.6477 0.447715 13.2 1 13.2H17C17.5523 13.2 18 13.6477 18 14.2V15C18 15.5523 17.5523 16 17 16H1C0.447716 16 0 15.5523 0 15V14.2Z"}),s[0]=t):t=s[0],s[1]!==e||s[2]!==n?(l=(0,i.jsx)("svg",{fill:n,viewBox:"0 0 18 16",xmlns:"http://www.w3.org/2000/svg",...e,children:t}),s[1]=e,s[2]=n,s[3]=l):l=s[3],l}},87956:(e,t,l)=>{l.r(t),l.d(t,{default:()=>W});var i=l(54568),a=l(99680),s=l(72505),n=l(5817),r=l(85874),o=l(36119),c=l(39865),d=l(29306),h=l(61127),u=l(65784),m=l(902),p=l(7620),x=l(54713),f=l(82576),g=l(82994);let y=x.Ay.div.withConfig({componentId:"sc-17aa61f3-0"})(["position:absolute;bottom:0;color:white;justify-content:flex-start;align-items:flex-end;font-size:12px;white-space:nowrap;padding:4px;overflow:hidden;width:100%;text-overflow:ellipsis;font-weight:bold;background:linear-gradient(180deg,rgba(0,0,0,0) 0%,rgba(0,0,0,0.5) 100%);opacity:",";transition:opacity 300ms;box-sizing:border-box;"],e=>+!!e.$isHovered),v=({tag:e})=>(e=(0,f.Bn)(e))?(0,i.jsxs)("span",{onClick:t=>{t.preventDefault(),t.stopPropagation();let l=(0,g.vz)(e);t.metaKey?window.open(`${location.origin}${l}`):location.href=l},children:["#",e,"\xa0"]}):null,j=e=>{let t,l,s=(0,a.c)(5),{gif:n,isHovered:r}=e;return s[0]!==n.tags?(t=n.tags.map(b),s[0]=n.tags,s[1]=t):t=s[1],s[2]!==r||s[3]!==t?(l=(0,i.jsx)(y,{$isHovered:r,children:t}),s[2]=r,s[3]=t,s[4]=l):l=s[4],l};function b(e){return(0,i.jsx)(v,{tag:e},e)}var C=l(23305),w=l(89785),_=l(16496),N=l(41798),k=l(94613);let S=e=>{let t,l=(0,a.c)(6),{gif:n,isHovered:r,width:o}=e,c=void 0!==r&&r,h=(0,p.useContext)(s.B);if(!h)return null;let{soundOn:u,setSoundOn:m}=h;return l[0]!==n||l[1]!==c||l[2]!==m||l[3]!==u||l[4]!==o?(t="video"===n.type?(0,i.jsxs)("div",{className:"absolute inset-0",children:[u&&c&&(0,i.jsx)(N.Video,{gif:n,width:o||0,height:(0,_._2)(n,o||0),muted:!1,loop:!0}),(0,i.jsx)(k.SoundOnIcon,{onClick:e=>{e.preventDefault(),e.stopPropagation(),m(!u)},color:"#fff",className:(0,d.cn)("absolute top-4 left-4 h-6 w-6 cursor-pointer opacity-70",c&&"opacity-100")})]}):null,l[0]=n,l[1]=c,l[2]=m,l[3]=u,l[4]=o,l[5]=t):t=l[5],t},A="link-icon",L=e=>{let t,l,s,n,r,o=(0,a.c)(10),c=e.id||A;o[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,i.jsx)("stop",{id:"gradient-stop-1",offset:"0%",stopColor:"var(--stop-color-1)"}),l=(0,i.jsx)("stop",{id:"gradient-stop-2",offset:"100%",stopColor:"var(--stop-color-2)"}),o[0]=t,o[1]=l):(t=o[0],l=o[1]),o[2]!==c?(s=(0,i.jsx)("defs",{children:(0,i.jsxs)("linearGradient",{x1:"0%",y1:"10%",x2:"0%",y2:"90%",id:c,children:[t,l]})}),o[2]=c,o[3]=s):s=o[3];let d=e.className?.indexOf("--stop-color-1")===-1?"":`url(#${e.id||A})`;return o[4]!==d?(n=(0,i.jsx)("path",{fill:d,d:"M20.397 11.2546L17.5764 14.0751C17.674 13.0113 17.5374 11.9768 17.1665 10.9813L18.6402 9.47835C19.7724 8.33646 19.7724 6.49189 18.6402 5.35977C17.5081 4.22764 15.6635 4.22764 14.5217 5.35977L11.3986 8.45358C10.2664 9.61498 10.2664 11.44 11.3986 12.6014C11.9158 13.0797 11.9158 13.8702 11.3986 14.3582C10.9203 14.8462 10.1298 14.8462 9.64182 14.3582C7.54349 12.2306 7.54349 8.80493 9.64182 6.69684L12.7454 3.60303C14.873 1.46566 18.2986 1.46566 20.397 3.60303C22.5343 5.70135 22.5343 9.127 20.397 11.2546ZM14.3655 17.2958L11.2424 20.4189C9.13432 22.527 5.70867 22.527 3.58107 20.4189C1.47298 18.2913 1.47298 14.8657 3.58107 12.7576L6.43089 9.91753C6.33329 10.9813 6.46993 12.0451 6.8408 13.0406L5.36709 14.5143C4.23496 15.6562 4.23496 17.5008 5.36709 18.6329C6.49921 19.765 8.34378 19.765 9.48567 18.6329L12.5795 15.5391C13.7409 14.407 13.7409 12.5526 12.5795 11.4205C12.0915 10.9325 12.0915 10.1225 12.5795 9.6345C13.0675 9.14652 13.8775 9.14652 14.3655 9.6345C16.4638 11.7621 16.4638 15.1878 14.3655 17.2958Z"}),o[4]=d,o[5]=n):n=o[5],o[6]!==e||o[7]!==s||o[8]!==n?(r=(0,i.jsxs)("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[s,n]}),o[6]=e,o[7]=s,o[8]=n,o[9]=r):r=o[9],r};var I=l(39712),G=l(34874),V=l(19010),T=l(98399),D=l(5458);let R=e=>{let t,l,s,n=(0,a.c)(11),{gif:r,isClip:o}=e,c=void 0!==o&&o,{showMessage:d}=(0,p.useContext)(D.J),{url:h,images:u}=r,{original:m}=u,{url:x}=m;n[0]!==c||n[1]!==x||n[2]!==h?(t=c?h:(0,g.x5)(x),n[0]=c,n[1]=x,n[2]=h,n[3]=t):t=n[3];let f=t;n[4]!==r||n[5]!==f?(l=(0,I.VJ)(r)?(0,G.ck)(f):f,n[4]=r,n[5]=f,n[6]=l):l=n[6];let y=l;return n[7]!==y||n[8]!==r||n[9]!==d?(s=(0,i.jsx)(L,{className:"size-5 fill-giphyWhite transition-transform hover:scale-125",onClick:e=>{e.stopPropagation(),e.preventDefault(),navigator.clipboard.writeText(y),d({message:"Link copied to clipboard!",type:"success"}),(0,V.Ed)({event:"share_success",options:{social:{socialChannel:"share"},content:(0,V.Jc)(r,{rendition:T.m.Original,format:r.images.original.url}),creator:(0,V.OV)(r)}})}}),n[7]=y,n[8]=r,n[9]=d,n[10]=s):s=n[10],s};var F=l(6479),$=l(88267);let H=e=>{let t,l,s,n=(0,a.c)(8),{gif:r,className:o}=e,{addToEdit:c}=(0,p.useContext)($.iO);return n[0]!==o?(t=(0,d.cn)("size-5 transition-transform hover:scale-110",o),n[0]=o,n[1]=t):t=n[1],n[2]!==c||n[3]!==r.id?(l=e=>{e.stopPropagation(),e.preventDefault(),c(r.id)},n[2]=c,n[3]=r.id,n[4]=l):l=n[4],n[5]!==t||n[6]!==l?(s=(0,i.jsx)(F.A,{className:t,onClick:l}),n[5]=t,n[6]=l,n[7]=s):s=n[7],s};var O=l(63522);let z=e=>{let t,l=(0,a.c)(2),{gif:s}=e;return l[0]!==s.is_hidden?(t=s.is_hidden?(0,i.jsx)("div",{className:"pointer-events-none absolute inset-0 flex items-center justify-center select-none",children:(0,i.jsx)(O.A,{className:"size-10 fill-giphyRed"})}):null,l[0]=s.is_hidden,l[1]=t):t=l[1],t},M=e=>{let t,l=(0,a.c)(2),{children:s}=e;return l[0]!==s?(t=(0,i.jsx)("div",{className:"absolute top-0 left-0 h-full w-full",children:s}),l[0]=s,l[1]=t):t=l[1],t},E=e=>{let t,l,s=(0,a.c)(5),{tag:n}=e;return s[0]!==n?(t=e=>{e.preventDefault(),e.stopPropagation(),location.href="/edit/gifs?query="+encodeURIComponent(n)},s[0]=n,s[1]=t):t=s[1],s[2]!==t||s[3]!==n?(l=(0,i.jsxs)("a",{className:"absolute top-1/2 left-1/2 h-9 max-w-full -translate-x-1/2 -translate-y-1/2 transform overflow-hidden rounded-full bg-giphyBlack px-[18px] text-[15px] leading-9 font-bold text-ellipsis whitespace-nowrap text-giphyGreen italic",onClick:t,children:["#",n]}),s[2]=t,s[3]=n,s[4]=l):l=s[4],l},B=e=>{let t,l=(0,a.c)(2),{colorClass:s}=e,n=`absolute top-2 left-2 h-3.5 w-3.5 rounded-full ${s}`;return l[0]!==n?(t=(0,i.jsx)("div",{className:n}),l[0]=n,l[1]=t):t=l[1],t},P=e=>{let t,l,s=(0,a.c)(5),{user:n}=e,r=n?.user_type,o=n?.is_community;s[0]!==r||s[1]!==o?(t=(0,u.T)(r,o),s[0]=r,s[1]=o,s[2]=t):t=s[2];let c=t;
1return s[3]!==c?(l=c?(0,i.jsx)("div",{"aria-hidden":!0,className:"pointer-events-none absolute inset-x-0 bottom-0 h-1",style:{backgroundColor:c}}):null,s[3]=c,s[4]=l):l=s[4],l},W=e=>{let t,l,u,x=(0,a.c)(22),{isHovered:f,gif:g,width:y,hideAttribution:v}=e,{user:b}=(0,p.useContext)(c.A),_=(0,o._I)(f?g.id:void 0),N=(0,m.usePathname)(),k=(0,C.Qt)();x[0]!==k||x[1]!==N?(t=k||N.includes("/edit/gifs"),x[0]=k,x[1]=N,x[2]=t):t=x[2];let A=t,{params:L}=(0,p.useContext)(s.B),I=Array.isArray(g.gps_tags)&&"string"==typeof g.gps_tags[0]?g.gps_tags[0]:void 0;x[3]!==g.tags||x[4]!==L?.publicTrending||x[5]!==N?(l=N.includes("/edit/gifs")&&L?.publicTrending==="Yes"&&Array.isArray(g.tags)?g.tags.find(U):void 0,x[3]=g.tags,x[4]=L?.publicTrending,x[5]=N,x[6]=l):l=x[6];let G=l,V=I||G,T=null;if(Array.isArray(g.tags)){if(g.tags.includes("giphytrending")){let e;x[7]===Symbol.for("react.memo_cache_sentinel")?(e=(0,i.jsx)(B,{colorClass:"bg-giphyGreen"}),x[7]=e):e=x[7],T=e}else if(g.tags.includes("giphytrendingqueue")){let e;x[8]===Symbol.for("react.memo_cache_sentinel")?(e=(0,i.jsx)(B,{colorClass:"bg-blue-500"}),x[8]=e):e=x[8],T=e}else if(g.tags.includes("giphytrendingschedule")){let e;x[9]===Symbol.for("react.memo_cache_sentinel")?(e=(0,i.jsx)(B,{colorClass:"bg-yellow-400"}),x[9]=e):e=x[9],T=e}}return x[10]!==k||x[11]!==g||x[12]!==v||x[13]!==V||x[14]!==_||x[15]!==f||x[16]!==N||x[17]!==A||x[18]!==T||x[19]!==b||x[20]!==y?(u=k?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(S,{gif:g,isHovered:f,width:y}),(0,i.jsx)(z,{gif:g}),(0,i.jsx)(n.z,{isHovered:f,gif:g,width:y}),A&&(0,i.jsx)(P,{user:g.user})]}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(S,{gif:g,isHovered:f,width:y}),!f&&T,f&&V?(0,i.jsxs)(M,{children:[(0,i.jsxs)("div",{className:"absolute top-2.5 right-2.5 flex items-center gap-3 rounded-md bg-giphyBlack/10 p-2",children:[b&&(0,h.p2)(b,g)&&(0,i.jsx)(H,{gif:g}),(0,i.jsx)(r.default,{hideLabel:!0,gif:g,className:(0,d.cn)("size-5 fill-giphyWhite opacity-5 duration-300 ease-in-out",(void 0!==_||!b)&&"opacity-100"),iconClassName:"hover:scale-110 transition-all",isFavorite:!!_}),(0,i.jsx)(R,{gif:g})]}),(0,i.jsx)(E,{tag:V})]}):f&&(0,i.jsxs)("div",{className:"absolute top-2.5 right-2.5 flex items-center gap-3 rounded-md bg-giphyBlack/10 p-2",children:[b&&(0,h.p2)(b,g)&&(0,i.jsx)(H,{gif:g}),(0,i.jsx)(r.default,{hideLabel:!0,gif:g,className:(0,d.cn)("size-5 fill-giphyWhite opacity-5 duration-300 ease-in-out",(void 0!==_||!b)&&"opacity-100"),iconClassName:"hover:scale-110 transition-all",isFavorite:!!_}),(0,i.jsx)(R,{gif:g})]}),!v&&(0,i.jsx)(i.Fragment,{children:g.user&&0!==N.indexOf(`/${g.user.username}`)?(0,i.jsx)(w.e,{gif:g,width:y,isHovered:f}):(0,i.jsx)(j,{gif:g,isHovered:f,width:y})}),(0,i.jsx)(z,{gif:g}),A&&(0,i.jsx)(P,{user:g.user})]}),x[10]=k,x[11]=g,x[12]=v,x[13]=V,x[14]=_,x[15]=f,x[16]=N,x[17]=A,x[18]=T,x[19]=b,x[20]=y,x[21]=u):u=x[21],u};function U(e){return"string"==typeof e&&e.trim()&&!["giphytrending","giphytrendingqueue","giphytrendingschedule"].includes(e)}},89785:(e,t,l)=>{l.d(t,{e:()=>u});var i=l(54568),a=l(85922),s=l(77797),n=l(29306),r=l(19010),o=l(10933),c=l.n(o),d=l(902),h=l(7620);let u=({gif:e,isHovered:t,asLink:l=!1,attributionClassName:o})=>{let u=(0,h.useRef)(t),m=(0,d.useRouter)();t&&(u.current=!0);let{user:p}=e;if(!p||!u.current)return null;let x=t=>{t.stopPropagation(),(0,r.Ed)({event:"attribution_open_click",options:{content:(0,r.Jc)(e),creator:(0,r.OV)(e)}})},f=(0,n.cn)("pointer-events-auto absolute bottom-2.5 left-2.5 flex min-w-0 cursor-pointer gap-2 focus-visible:rounded-sm focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-giphyBlue",o),g=(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(a.default,{className:"pointer-events-none shrink-0",user:p,size:32}),(0,i.jsx)(s.A,{noLink:!0,user:p,className:"text-[16px] font-semibold text-giphyWhite group-hover:underline [&_svg]:fill-giphyWhite",alternateName:p.display_name})]});return(0,i.jsxs)("div",{className:(0,n.cn)("group pointer-events-none transition-opacity ease-in",t?"opacity-100":"opacity-0"),children:[(0,i.jsx)("div",{className:"pointer-events-none absolute inset-x-0 bottom-0 h-18.75 cursor-default",style:{background:"linear-gradient(rgba(0, 0, 0, 0), rgba(18, 18, 18, 0.6))"}}),l?(0,i.jsx)(c(),{href:`/${p.username}`,className:f,"data-testid":"gif-attribution",onClick:x,children:g}):(0,i.jsx)("div",{className:f,"data-testid":"gif-attribution",onClick:e=>{x(e),m.push(`/${p.username}`)},children:g})]})}},98399:(e,t,l)=>{l.d(t,{m:()=>i});let i={Small:"downsized",Social:"fixed_width",Original:"original",OriginalStill:"original_still",MP4:"original_mp4"}},99340:(e,t,l)=>{l.d(t,{A:()=>y,$:()=>g});var i=l(54568),a=l(99680),s=l(72629),n=l(40047),r=l(63522);let o=e=>{let t,l,s=(0,a.c)(4),n=e.color||"white";return s[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,i.jsx)("path",{d:"M8.79653 27.3591C7.19421 28.1467 6.14342 27.4328 6.44904 25.7651L7.73476 18.7576L2.28878 13.7951C0.992457 12.6138 1.39386 11.4592 3.18509 11.2159L10.7118 10.1932L14.0778 3.81788C14.8789 2.30029 16.1778 2.30029 16.979 3.81788L20.3447 10.1932L27.8714 11.2159C29.6628 11.4593 30.0641 12.6139 28.768 13.7951L23.322 18.7578L24.608 25.7653C24.9138 27.433 23.8629 28.1466 22.2606 27.3593L15.5286 24.0508L8.79653 27.3591Z"}),s[0]=t):t=s[0],s[1]!==e||s[2]!==n?(l=(0,i.jsx)("svg",{fill:n,width:"31",height:"32",viewBox:"0 0 31 32",xmlns:"http://www.w3.org/2000/svg",...e,children:t}),s[1]=e,s[2]=n,s[3]=l):l=s[3],l};var c=l(37807),d=l(76353),h=l(88275),u=l(87956),m=l(5458),p=l(39865),x=l(29306),f=l(7620);function g(e){return`${e}${Math.random().toString(36).substring(2,11)}`}let y=e=>{let t,l,g,y,v,j,b=(0,a.c)(26),{gif:C,isHovered:w,width:_,channel:N}=e,{setGifs:k}=(0,f.useContext)(h.kv),{showMessage:S}
1=(0,f.useContext)(m.J),[A,L]=(0,f.useState)(!1),I=(0,s.x)(),{user:G}=(0,f.useContext)(p.A);if(!(G&&(G.is_staff||G.username===N.user.username))){let e;return b[0]!==C||b[1]!==w?(e=(0,i.jsx)(u.default,{gif:C,isHovered:w}),b[0]=C,b[1]=w,b[2]=e):e=b[2],e}let V=N.featured_gif?.id===C.id;b[3]!==C.is_hidden?(t=C.is_hidden&&(0,i.jsx)("div",{className:"pointer-events-none absolute inset-0 flex items-center justify-center select-none",children:(0,i.jsx)(r.A,{className:"size-10 fill-giphyRed"})}),b[3]=C.is_hidden,b[4]=t):t=b[4],b[5]!==N||b[6]!==C||b[7]!==V||b[8]!==w||b[9]!==I||b[10]!==k||b[11]!==S?(l=w&&(0,i.jsxs)("div",{className:"absolute top-2.5 left-2.5 flex items-center gap-3 rounded-md bg-giphyBlack/10 p-2",children:[(0,i.jsx)(n.A,{label:"Remove from Channel",children:(0,i.jsx)(c.A,{className:"block size-5 cursor-pointer hover:fill-giphyRed",onClick:async e=>{L(!0),e.preventDefault(),e.stopPropagation();let t=function(){S({message:"There was an error removing the gif",type:"error"}),L(!1)};try{(await (0,d.D$)([C.id],N.id)).ok?k(e=>e.filter(e=>e.id!==C.id)):t()}catch(e){t()}}})}),(0,i.jsx)(n.A,{label:V?"Click another GIF to change the cover GIF":"Make Cover GIF",children:(0,i.jsx)(o,{onClick:async e=>{e.preventDefault(),e.stopPropagation();try{await (0,d.o4)(N.id,{id:N.id,parent:N.parent,featured_gif:C.id.toString()}),I({...N,featured_gif:C})}catch(e){S({message:"There was an error making the gif cover",type:"error"})}},className:(0,x.cn)("block size-5 cursor-pointer hover:fill-giphyYellow",V&&"cursor-default fill-giphyRed hover:fill-giphyRed")})})]}),b[5]=N,b[6]=C,b[7]=V,b[8]=w,b[9]=I,b[10]=k,b[11]=S,b[12]=l):l=b[12],b[13]!==C||b[14]!==w||b[15]!==_?(g=(0,i.jsx)(u.default,{gif:C,isHovered:w,width:_}),b[13]=C,b[14]=w,b[15]=_,b[16]=g):g=b[16];let T=A&&"pointer-events-none absolute inset-0 bg-giphyBlack/40";return b[17]!==T?(y=(0,x.cn)(T),b[17]=T,b[18]=y):y=b[18],b[19]!==y?(v=(0,i.jsx)("div",{className:y}),b[19]=y,b[20]=v):v=b[20],b[21]!==t||b[22]!==l||b[23]!==g||b[24]!==v?(j=(0,i.jsxs)(i.Fragment,{children:[t,l,g,v]}),b[21]=t,b[22]=l,b[23]=g,b[24]=v,b[25]=j):j=b[25],j}}}]); 2//# sourceMappingURL=7404-641328ce6b32a598.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.