PageSourceSearch

https://wuolah.com/_next/static/chunks/pages/giveaway-0ce2bdcf7ab4d28d.js

js wuolah.com collected 2026-09-24 18:52:02 UTC 31,574 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[25525],{88270:function(e,i,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/giveaway",function(){return t(25083)}])},21084:function(e,i,t){"use strict";t.d(i,{R6:function(){return x},RS:function(){return d},xO:function(){return c}});var n=t(78744),r=t(82066),s=t(40856),a=t(10733),l=t(83711);let o={query:{filter:{},pagination:{page:0,pageSize:n.hU.DEFAULT}}},c=e=>[{id:"giveaways",scope:"giveaway",entity:"list",...(0,l.T)(o,e)}],d=async e=>{var i;let{queryKey:[{query:t}],pageParam:r}=e,a=(0,n.Pz)({...t,pagination:{...null==t?void 0:t.pagination,page:r||(null==t?void 0:null===(i=t.pagination)||void 0===i?void 0:i.page)}});return await (0,s._i)("/v2/giveaways".concat(a))},x=e=>(0,r.useInfiniteQuery)({queryKey:c(e),queryFn:d,getNextPageParam:a.H})},22299:function(e,i,t){"use strict";t.d(i,{P:function(){return l},w:function(){return o}});var n=t(78744),r=t(82066),s=t(48937),a=t(21084);let l=()=>{var e,i;let{isSignUpCompleted:t}=(0,s.C6)(),l=(0,s.L6)(),o=(0,r.useQuery)({queryKey:[{...s.gL,...(0,a.xO)({query:{filter:{communityId:null==l?void 0:null===(e=l.data)||void 0===e?void 0:e.communityId,status:n.a6.IN_PROGRESS},pagination:{page:0,pageSize:n.hU.MAX}}})[0]}],queryFn:a.RS,enabled:!!(null==l?void 0:null===(i=l.data)||void 0===i?void 0:i.communityId),select:e=>((null==e?void 0:e.items)||[]).reduce((e,i)=>({...e,[i.id]:!0}),{})});return t?o:{...l,data:void 0}},o=e=>{var i;let{giveawayId:t}=e,n=l();return{...n,data:null===(i=n.data)||void 0===i?void 0:i[t]}}},3830:function(e,i,t){"use strict";t.d(i,{a:function(){return r}});var n=t(2784);let r=e=>{let i=new Date(e).getTime(),[t,r]=(0,n.useState)(i-new Date().getTime());return(0,n.useEffect)(()=>{let e=setInterval(()=>{r(i-new Date().getTime())},1e3);return()=>clearInterval(e)},[i]),s(t)},s=e=>e<=0?[0,0,0,0]:[Math.floor(e/864e5),Math.floor(e/36e5%24),Math.floor(e/6e4%60),Math.floor(e/1e3%60)]},10733:function(e,i,t){"use strict";t.d(i,{H:function(){return r}});var n=t(78744);let r=e=>{var i,t;if((null===(i=e.pagination)||void 0===i?void 0:i.type)===n.eI.PAGE){let i=e.items.length,{page:t,pageSize:n,totalItems:r}=e.pagination;return(void 0!==r?t*n+i<r:i===n)?t+1:void 0}if((null===(t=e.pagination)||void 0===t?void 0:t.type)===n.eI.TOKEN)return e.pagination.token}},52635:function(e,i,t){"use strict";t.d(i,{O:function(){return n}});let n=(0,t(44169).D)({lazyModal:()=>Promise.all([t.e(37804),t.e(66084)]).then(t.bind(t,66084)).then(e=>e.ParticipateGiveawayModal)})},8700:function(e,i,t){"use strict";t.d(i,{R:function(){return d}});var n=t(52322),r=t(51402),s=t(67887),a=t(31171),l=t(9734),o=t(99133),c=t(48937);let d=e=>{let{forceExtended:i,...t}=e,{t:d}=(0,a.qM)(),x=(0,c.L6)(),{uploadModalOpen:u}=(0,o.z)(),h=()=>{var e;return u({initialCommunityId:null===(e=x.data)||void 0===e?void 0:e.communityId})};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(r.z,{display:i?"inline-flex":{base:"none",md:"inline-flex"},colorScheme:"blue",variant:"solid",size:"sm",isLoading:x.isLoading,onClick:h,leftIcon:(0,n.jsx)(l.Kaj,{color:"white"}),"data-testid":"get-tickets",...t,children:d("get-tickets-cta")}),(0,n.jsx)(s.h,{display:i?"none":{base:"inline-flex",md:"none"},"aria-label":d("get-tickets-cta"),variant:"solid",colorScheme:"blue",size:"sm",width:"32px",height:"32px",borderRadius:"full",gap:"2",isLoading:x.isLoading,onClick:h,icon:(0,n.jsx)(l.Kaj,{color:"white"}),...t})]})}},25893:function(e,i,t){"use strict";t.d(i,{F:function(){return d}});var n=t(52322),r=t(94659),s=t(8283),a=t(91012),l=t(31171),o=t(3830),c=e=>{let{value:i,type:t}=e;return(0,n.jsxs)(r.g,{children:[(0,n.jsx)(a.x,{fontWeight:"700",fontSize:"md",lineHeight:"5",children:t}),(0,n.jsx)(a.x,{fontFamily:"mono",fontSize:"2xl",children:i})]})};let d=e=>{let{date:i,type:t,...d}=e,[x,u,h,p]=(0,o.a)(i),{t:g}=(0,l.qM)();return(0,n.jsx)(r.g,{spacing:"2",children:(0,n.jsxs)(s.U,{fontWeight:"400",fontSize:"3xl",lineHeight:"8",spacing:"4",alignItems:"flex-end","data-testid":"countdown-timer",...d,children:[(0,n.jsx)(c,{value:x.toString(),type:g("days")}),(0,n.jsx)(a.x,{children:":"}),(0,n.jsx)(c,{value:u.toString(),type:g("hours")}),(0,n.jsx)(a.x,{children:":"}),(0,n.jsx)(c,{value:h.toString(),type:g("minutes")}),(0,n.jsx)(a.x,{children:":"}),(0,n.jsx)(c,{value:p.toString(),type:g("seconds")})]})})}},23067:function(e,i,t){"use strict";t.d(i,{Q:function(){return C}});
1var n=t(52322),r=t(53738),s=t(11919),a=t(11881),l=t(71354),o=t(8283),c=t(27302),d=t(67887),x=t(91012),u=t(40110),h=t(31171),p=t(5632),g=t(9734),j=t(60557),f=t(91543),v=t(17225),m=t(44093),y=t(12754),w=t(8700);let b=()=>{let e=(0,p.useRouter)(),{t:i}=(0,h.qM)(),{isMobile:t}=(0,v.B)();return(0,n.jsxs)(l.K,{w:"full",maxWidth:"980px",margin:"auto",direction:"row",justifyContent:"space-between",alignItems:"center",height:{base:"50px",md:"73px"},padding:{base:"10px 16px",md:"16px"},background:"white",borderColor:"#EDEDED",borderBottomWidth:"0px",children:[(0,n.jsxs)(o.U,{spacing:"12px",children:[(0,n.jsx)(c.M,{width:"32px",height:"32px",children:(0,n.jsx)(d.h,{onClick:e.back,variant:"ghost",icon:(0,n.jsx)(g.jTe,{}),size:"32px","aria-label":"Volver","data-testid":"back-giveaway-button"})}),(0,n.jsxs)(o.U,{spacing:{base:"3",md:"4"},children:[(0,n.jsx)(m.x,{size:{base:"32px",md:"40px"},background:"rgba(237, 237, 237, 0.5)",borderRadius:"8px"}),(0,n.jsxs)(l.K,{spacing:"2px",children:[(0,n.jsx)(f.p,{href:(0,y.L)(),children:(0,n.jsx)(x.x,{fontWeight:"600",fontSize:"md",lineHeight:"1.5rem",noOfLines:1,as:"span",cursor:"pointer",color:"var(--wuolah-on-surface)",children:i("giveaways-header-title")})}),!t&&(0,n.jsx)(x.x,{fontSize:"xs",fontWeight:"500",color:"var(--wuolah-on-surface-variant)",noOfLines:1,wordBreak:"break-all",children:i("giveaways-header-subtitle")})]})]})]}),(0,n.jsxs)(o.U,{spacing:"12px",children:[(0,n.jsx)(w.R,{}),!t&&(0,n.jsx)(u.i,{orientation:"vertical",height:"32px",opacity:"1",borderColor:"#EDEDED"}),(0,n.jsx)(j.h,{})]})]})},C=e=>{let{children:i,...t}=e;return(0,n.jsx)(a.d,{children:(0,n.jsxs)(r.xu,{position:"relative",backgroundColor:"#f1f0f4",zIndex:0,children:[(0,n.jsx)(r.xu,{position:"sticky",top:{base:"0",md:"64px"},zIndex:2,backgroundColor:"white",borderBottomWidth:"1px",borderColor:"#EDEDED",borderTopLeftRadius:"16px",overflow:"hidden",children:(0,n.jsx)(b,{})}),(0,n.jsx)(r.xu,{as:"main",maxWidth:"980px",h:"full",w:"full",margin:"0 auto",children:(0,n.jsx)(s.k,{position:"relative",height:"full",width:"full",direction:"column",gap:{base:"16px",lg:"40px"},paddingY:{base:"16px",lg:"40px"},...t,children:i})})]})})}},14876:function(e,i,t){"use strict";t.d(i,{m:function(){return o}});var n=t(52322),r=t(8283),s=t(81927),a=t(91012),l=t(44093);let o=e=>{let{number:i}=e;return(0,n.jsxs)(r.U,{spacing:"1",fontWeight:"700",fontSize:"sm",lineHeight:"4",color:"gray.800",children:[(0,n.jsx)(l.x,{w:"20px"}),void 0===i?(0,n.jsx)(s.O,{h:"14px",w:"20px"}):(0,n.jsx)(a.x,{fontFamily:"monospace",children:i})]})}},6912:function(e,i,t){"use strict";t.d(i,{u:function(){return m}});var n=t(52322),r=t(71354),s=t(91012),a=t(8283),l=t(31171),o=t(78620),c=t(78744),d=t(82066),x=t(40856),u=t(83711);let h={query:{populate:["user"]}},p=e=>[{id:"giveaway-ticket",scope:"giveaway-ticket",entity:"detail",...(0,u.T)(h,e)}],g=async e=>{let{queryKey:[{params:i,query:t}]}=e,n=(0,c.Pz)(t);return(await (0,x._i)("/v2/giveaway-tickets/".concat(null==i?void 0:i.id).concat(n))).item},j=e=>{var i;return(0,d.useQuery)({queryKey:p(e),queryFn:g,enabled:!!(null==e?void 0:null===(i=e.params)||void 0===i?void 0:i.id)})};var f=t(38460),v=t(14876);let m=e=>{var i;let{id:t}=e,{t:c}=(0,l.qM)(),{data:d}=j({params:{id:t}});return(0,n.jsxs)(r.K,{borderRadius:"md",bgColor:"gray.200",p:"2",children:[(0,n.jsx)(s.x,{fontWeight:"700",fontSize:"0.625rem",lineHeight:"3",color:"gray.800",textTransform:"uppercase","data-testid":"finished-giveaway-winner",children:c("giveaway-details-finished-winner")}),(0,n.jsxs)(a.U,{justifyContent:"space-between",children:[(0,n.jsx)("a",{href:(0,f.d)({userSlug:null==d?void 0:null===(i=d.user)||void 0===i?void 0:i.nickname}),children:(0,n.jsx)(o.b,{user:null==d?void 0:d.user,"data-testid":"winner"})}),(0,n.jsx)(v.m,{number:null==d?void 0:d.number})]})]})}},81174:function(e,i,t){"use strict";t.d(i,{x:function(){return S}});var n=t(52322),r=t(71354),s=t(91012),a=t(27302),l=t(27440),o=t(31171),c=t(78744),d=t(2784),x=t(21084),u=t(22299),h=t(38717),p=t(11919),g=t(31311),j=t(81927),f=t(8283),v=t(420),m=t(9734),y=t(91543),w=t(87788),b=t(25893),C=t(60332);let L=e=>{let{giveaway:i,...t}=e;return(0,n.jsxs)(h.f,{as:p.k,w:"full",shadow:"md",borderRadius:"md",direction:"column",overflow:"hidden",bg:"white",_hover:{img:{transition:"transform .4s",transform:"auto",scale:"1.05"}},...t,children:[i?(0,n.jsx)(y.p,{avoidAnchor:!0,href:(0,w.P)({giveawayId:null==i?void 0:i.id}),children:(0,n.jsx)(h.A,{href:(0,w.P)({giveawayId:null==i?void 0:i.id}),children:(0,n.jsx)(g.E,{alt:null==i?void 0:i.title,src:null==i?void 0:i.imgSrc,fit:"contain",w:"full",h:"220px",fallback:(0,n.jsx)(j.O,{w:"full",h:"220px"}),draggable:"false",pointerEvents:"none","data-testid":"giveaway-image"})})}):(0,n.jsx)(j.O,{w:"full",h:"220px"}),(0,n.jsxs)(p.k,{direction:"column",justifyContent:"space-between",gap:"3",w:"full",flex:"1",p:"4",children:[(0,n.jsx)(r.K,{spacing:"1",children:i?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(s.x,{noOfLines:1,fontWeight:"bold",children:null==i?void 0:i.title}),(0,n.jsx)(s.x,{noOfLines:2,fontSize:"xs",color:"wGray.500",children:null==i?void 0:i.subtitle})]}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(j.O,{w:"80px",h:"14px",mt:"2px",mb:"8px"}),(0,n.jsx)(j.O,{w:"full",h:"10px"})]})}),i?(0,n.jsx)(b.F,{date:i.end,type:"card",fontSize:"sm",spacing:"1"}):(0,n.jsx)(j.O,{width:"full",height:"60px"}),(0,n.jsxs)(p.k,{justifyContent:"space-between",children:[(0,n.jsxs)(f.U,{children:[(0,n.jsx)(m.TSD,{}),(0,n.jsx)(s.x,{fontSize:"xs",h:"16px",children:null==i?void 0:i.participants})]}),i?(0,n.jsx)(C.z,{size:"md",giveaway:i}):(0,n.jsx)(v.$,{})]})]})]})},S=e=>{let{...i}=e,{t}=(0,o.qM)(),{data:h,isLoading:p}=(0,x.R6)({query:{filter:{status:c.a6.IN_PROGRESS},pagination:{pageSize:c.hU.MAX}}}),g=(0,u.P)(),j=(0,d.useMemo)(()=>((null==h?void 0:h.pages[0].items)||[]).filter(e=>{var i;return!g.isSuccess||(null===(i=g.data)||void 0===i?void 0:i[e.id])}),[h,g]);return(0,n.jsxs)(r.K,{spacing:"4",...i,children:[(0,n.jsxs)(r.K,{spacing:"0",children:[(0,n.jsx)(s.x,{fontSize:"xs",color:"blue.500",letterSpacing:"-0.46px",fontWeight:"700",children:t("in-progress-giveaways-title",{param:j.length})}),(0,n.jsx)(s.x,{fontSize:"lg",fontWeight:"700",as:"h2",children:t("in-progress-giveaways-subtitle")})]}),!p&&j.length<=0&&(0,n.jsx)(a.M,{p:"4",h:"410px",children:(0,n.jsx)(s.x,{alignSelf:"center",justifyContent:"center","data-testid":"no-in-progress-giveaway",children:t("no-in-progress-giveaways")})}),(0,n.jsxs)(l.r,{gridTemplateColumns:"repeat(auto-fill, minmax(280px, 1fr))",gap:"24px",children:[p&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(L,{opacity:.8}),(0,n.jsx)(L,{opacity:.6}),(0,n.jsx)(L,{opacity:.4})]}),j.map(e=>(0,n.jsx)(L,{giveaway:e,"data-testid":"card-giveaway"},e.id))]})]})}},55343:function(e,i,t){"use strict";t.d(i,{J:function(){return o}});var n=t(52322),r=t(51402),s=t(91012),a=t(31171),l=t(9734);let o=e=>{let{...i}=e;return(0,n.jsx)(r.z,{variant:"solid",fontWeight:"600",fontSize:"xs",lineHeight:"10",leftIcon:(0,n.jsx)(l.QNV,{}),...i,children:(0,n.jsx)(s.x,{children:(0,n.jsx)(a.T,{keyName:"giveaway-detail
1s-not-elegible",params:{red:(0,n.jsx)(s.x,{color:"red",as:"span"})}})})})}},60332:function(e,i,t){"use strict";t.d(i,{z:function(){return x}});var n=t(52322),r=t(51402),s=t(31171),a=t(15357),l=t(52635),o=t(22299),c=t(48937),d=t(55343);let x=e=>{let{giveaway:i,...t}=e,{t:x}=(0,s.qM)(),{isUnauthenticated:u}=(0,c.hD)(),{data:h,isLoading:p,isIdle:g}=(0,o.w)({giveawayId:i.id});return u?(0,n.jsx)(r.z,{variant:"solid",colorScheme:"blue",fontWeight:"600",fontSize:"xs",lineHeight:"10",onClick:()=>{a.L.onOpen()},"data-testid":"participate-giveaway",...t,children:x("participate-button")}):h||p||g?(0,n.jsx)(r.z,{variant:"solid",colorScheme:"blue",fontWeight:"600",fontSize:"xs",lineHeight:"10",isLoading:p||g,onClick:()=>{l.O.onOpen({giveaway:i})},"data-testid":"participate-giveaway",...t,children:x("participate-button")}):(0,n.jsx)(d.J,{...t})}},78620:function(e,i,t){"use strict";t.d(i,{b:function(){return p}});var n=t(52322),r=t(8283),s=t(71354),a=t(91012),l=t(13061),o=t(34899),c=t(28637),d=t(58949),x=t(34080),u=t(5121),h=t(10825);let p=e=>{let{user:i,rankingPosition:t,lastYearPopularity:p,showMoney:g=!0,pricePerClass:j,...f}=e,{styles:v}=(0,d.m)(),m=(0,o.h)(),y=(null==i?void 0:i.displayMoney)&&i.totalMoney?m({amount:i.totalMoney}):"",w=p?"".concat(y.length>0?" \xb7 ":"").concat((0,c.j)(p)):"";return i?(0,n.jsxs)(r.U,{spacing:"3",textAlign:"left",width:"100%",...f,children:[(0,n.jsx)(u.Y,{avatarUrl:i.avatarUrl,avatarAlt:i.nickname,rankingPosition:t,size:"md"}),(0,n.jsxs)(s.K,{direction:"column",spacing:"0",width:"calc(100% - 50px)",children:[(0,n.jsxs)(r.U,{spacing:"6px",children:[(0,n.jsx)(a.x,{fontSize:"xs",fontWeight:"normal",noOfLines:1,color:v.onSurface,maxW:"250px",children:i.nickname}),!!i.subscriptionTier&&(0,n.jsx)(x.Z,{tier:i.subscriptionTier}),!!i.verifiedSubscriptionTier&&(0,n.jsx)(h.X,{tier:i.verifiedSubscriptionTier,size:12})]}),(0,n.jsxs)(r.U,{children:[g&&(0,n.jsx)(a.x,{fontSize:"10px",color:"gray.600",children:y}),!!w&&(0,n.jsx)(a.x,{fontSize:"10px",color:"gray.600",children:w}),!!j&&(0,n.jsx)(l.Vp,{size:"xs",background:"#E5F9EE",color:"#00C853",children:"".concat(j,"€/h")})]})]})]}):null}},11881:function(e,i,t){"use strict";t.d(i,{d:function(){return s}});var n=t(52322),r=t(91854);let s=e=>{let{children:i,hasMobileNavbar:t=!0,isUploadButtonPrimary:s=!0}=e;return(0,n.jsx)(r.Q,{hasMobileNavbar:t,isUploadButtonPrimary:s,children:i})}},60557:function(e,i,t){"use strict";t.d(i,{h:function(){return o}});var n=t(52322),r=t(92909),s=t(67887),a=t(9734),l=t(41953);let o=()=>{let e=(0,r.p)(),i="linkCopied";return(0,n.jsx)(s.h,{"aria-label":"compartir",icon:(0,n.jsx)(a.qyl,{}),onClick:t=>{t.preventDefault(),navigator.clipboard.writeText((null===l.h||void 0===l.h?void 0:l.h.location.href)||""),e.isActive(i)||e({id:i,title:"Enlace copiado.",status:"success",duration:3e3,isClosable:!0,position:"bottom-right"})},width:"32px",height:"32px","data-testid":"share-button"})}},44093:function(e,i,t){"use strict";t.d(i,{x:function(){return s}});var n=t(52322),r=t(43638);let s=e=>{let{size:i="38px",...t}=e;return(0,n.jsxs)(r.J,{name:"giveaway-ticket",w:i,h:i,viewBox:"0 0 108 109",...t,children:[(0,n.jsx)("path",{d:"M14.1295 62.9754L13.4402 81.5851L33.7731 101.918H53.0721L100.63 54.3598V36.4393L80.2974 16.1064L61.6877 15.4172L14.1295 62.9754Z",fill:"#6163FF"}),(0,n.jsx)("mask",{id:"path-2-inside-1_3966_70071",fill:"white",children:(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M62.1706 10.1097L9.51133 62.769C13.4891 68.2863 13.289 75.8833 8.91102 81.1914L34.5119 106.792C40.0742 102.205 48.1498 102.205 53.712 106.792L106.194 54.3104C101.606 48.7482 101.606 40.6726 106.194 35.1104L80.5929 9.50928C75.2848 13.8873 67.6879 14.0874 62.1706 10.1097Z"})}),(0,n.jsx)("path",{d:"M9.51133 62.769L4.68658 57.9443L0.581108 62.0497L3.97658 66.7594L9.51133 62.769ZM62.1706 10.1097L66.1609 4.57494L61.4513 1.17956L57.3459 5.28499L62.1706 10.1097ZM8.91102 81.1914L3.64719 76.8499L-0.297379 81.6324L4.08627 86.0161L8.91102 81.1914ZM34.5119 106.792L29.6872 111.617L34.0708 116.001L38.8533 112.056L34.5119 106.792ZM53.712 106.792L49.3706 112.056L54.1531 116.001L58.5368 111.617L53.712 106.792ZM106.194 54.3104L111.019 59.1352L115.402 54.7516L111.458 49.969L106.194 54.3104ZM106.194 35.
11104L111.458 39.4518L115.402 34.6693L111.019 30.2856L106.194 35.1104ZM80.5929 9.50928L85.4176 4.68453L81.0339 0.300861L76.2513 4.24548L80.5929 9.50928ZM14.3361 67.5938L66.9953 14.9345L57.3459 5.28499L4.68658 57.9443L14.3361 67.5938ZM14.1748 85.5328C20.5392 77.8164 20.826 66.7956 15.0461 58.7787L3.97658 66.7594C6.15218 69.777 6.03878 73.9502 3.64719 76.8499L14.1748 85.5328ZM39.3366 101.967L13.7358 76.3666L4.08627 86.0161L29.6872 111.617L39.3366 101.967ZM38.8533 112.056C41.8947 109.548 46.3292 109.548 49.3706 112.056L58.0535 101.528C49.9703 94.8617 38.2536 94.8617 30.1705 101.528L38.8533 112.056ZM101.369 49.4857L48.8873 101.968L58.5368 111.617L111.019 59.1352L101.369 49.4857ZM100.93 30.7689C94.2634 38.852 94.2634 50.5686 100.93 58.6518L111.458 49.969C108.949 46.9277 108.949 42.4932 111.458 39.4518L100.93 30.7689ZM75.7681 14.334L101.369 39.9351L111.019 30.2856L85.4176 4.68453L75.7681 14.334ZM58.1803 15.6445C66.1973 21.4243 77.218 21.1375 84.9344 14.7731L76.2513 4.24548C73.3517 6.63706 69.1785 6.75049 66.1609 4.57494L58.1803 15.6445Z",fill:"#EFEFEF",mask:"url(#path-2-inside-1_3966_70071)"}),(0,n.jsx)("path",{d:"M80.0041 54.265C79.4379 54.8313 78.8821 55.387 78.3158 55.9533C77.9069 56.3623 77.5236 56.4194 76.9742 56.1427C74.3674 54.8361 71.7497 53.5187 69.1429 52.2122C68.7228 52.0018 68.2918 51.7806 67.8717 51.5702C67.4303 51.3595 67.1852 51.3871 66.8916 51.6807C66.6085 51.9638 66.5809 52.2088 66.813 52.6507C68.1972 55.419 69.5922 58.1982 70.9763 60.9666C71.1095 61.2465 71.2426 61.5264 71.3757 61.8064C71.6086 62.2909 71.5728 62.6746 71.2058 63.0416C70.0632 64.206 68.9206 65.3703 67.745 66.4807C67.3146 66.8893 67.07 66.9383 66.4775 66.6394C63.9573 65.3985 61.4366 64.1362 58.9265 62.8634C55.4146 61.0923 51.9024 59.2998 48.3905 57.5287C47.7119 57.1855 47.0227 56.8529 46.344 56.5098C45.7729 56.2113 45.6239 55.6428 46.0534 55.1915C47.1436 54.0796 48.2447 52.9785 49.3461 51.8988C49.6502 51.5947 50.0133 51.6013 50.412 51.8113C52.1044 52.7277 53.7965 53.6228 55.4994 54.5288C57.0517 55.368 58.5826 56.2068 60.1349 57.046C60.7169 57.3554 61.1114 57.3305 61.4679 56.9739C61.8245 56.6174 61.8603 56.2337 61.5614 55.6413C60.8313 54.219 60.112 52.8077 59.3819 51.3855C58.4305 49.5323 57.4795 47.7005 56.539 45.8582C56.2293 45.2548 56.2775 44.9674 56.7389 44.506C57.7351 43.5099 58.7313 42.5137 59.7275 41.5175C60.2623 40.9827 60.4964 40.9442 61.2077 41.3199C64.3864 42.9676 67.5547 44.6259 70.7443 46.2845C71.1752 46.5057 71.6054 46.6842 72.0486 46.3933C72.5022 46.0919 72.6102 45.5708 72.3226 45.0105C71.8362 44.0837 71.339 43.1461 70.8418 42.2084C69.8034 40.2683 68.7651 38.3281 67.7268 36.388C67.5168 35.9892 67.2963 35.601 67.0968 35.1917C66.8425 34.7068 66.8795 34.3872 67.257 34.0097C68.2951 32.9716 69.3333 31.9334 70.3714 30.8953C70.8852 30.3815 71.4743 30.4881 71.8065 31.1559C73.5998 34.7109 75.3927 38.2445 77.1859 41.7995C78.758 44.9234 80.33 48.0474 81.9129 51.1823C82.2339 51.8179 82.1965 52.1161 81.7037 52.6089C81.1157 53.1535 80.5599 53.7092 80.0041 54.265Z",fill:"white"}),(0,n.jsx)("circle",{cx:"35.8407",cy:"80.5514",r:"4.87373",transform:"rotate(-45 35.8407 80.5514)",fill:"white"}),(0,n.jsx)("line",{x1:"28.9486",y1:"55.049",x2:"60.6541",y2:"86.7545",stroke:"#2A00FF",strokeWidth:"2.92424",strokeLinecap:"round",strokeDasharray:"4.87 4.87"})]})}},87788:function(e,i,t){"use strict";t.d(i,{P:function(){return a}});var n=t(20344),r=t(46952);let s=(e,i)=>{let t=n.R["/giveaway/[giveawayId]"];if(!e.giveawayId)return(0,r.qu)();let s=(0,r.Tx)(t,e);return(0,r.nc)(s,i)},a=(e,i)=>s(e,i)},12754:function(e,i,t){"use strict";t.d(i,{L:function(){return a}});var n=t(20344),r=t(46952);let s=e=>{let i=n.R["/giveaway"];return(0,r.nc)(i,e)},a=e=>s(e)},25083:function(e,i,t){"use strict";t.r(i),t.d(i,{__N_SSG:function(){return eM},default:function(){return eI}});var n=t(59966),r=t(52322),s=t(23067),a=t(81174),l=t(21969),o=t(71354),c=t(91012),d=t(31171),x=t(78744),u=t(2784),h=t(9103),p=t(21084),g=t(38717),j=t(11919),f=t(31311),v=t(81927),m=t(8283),y=t(9734),w=t(91543),b=t(87788),C=e=>{let{giveaway:i,...t}=e;return(0,r.jsxs)(g.f,{as:j.k,w:"100%",h:"210px",shadow:"md",borderRadius:"md",direction:"column",position:"relative",_hover:{transform:"auto",scale:"1.05"},transition:"transform .2s",...t,children:[i&&(0,r.jsx)(w.p,{href:(0,b.P)({giveawayId:i.id}),children:(0,r.jsx)(g.A,{})}),(0,r.jsx)(f.E,{src:null==i?void 0:i.imgSrc,alt:null==i?void 0:i.title,fit:"contain",w:"full",h:"full",fallback:(0,r.jsx)(v.O,{w:"full",h:"full"}),draggable:"false",pointerEvents:"none"}),(0,r.jsxs)(j.k,{position:"absolute",bottom:"0px",p:"10px",fontWeight:"700",w:"100%",justifyContent:"space-between",background:"linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, .5) 100%)",color:"white",children:[i?(0,r.jsx)(w.p,{href:(0,b.P)({giveawayId:i.id}),children:(0,r.jsx)(g.A,{children:(0,r.jsx)(c.x,{noOfLines:1,children:null==i?void 0:i.title})})}):(0,r.jsx)(v.O,{height:"20px",width:"120px"}),(0,r.jsxs)(m.U,{children:[(0,r.jsx)(y.Otr,{}),(0,r.jsx)(c.x,{fontSize:"xs",children:null==i?void 0:i.participants})]})]})]})};let L=(0,l.m)("div",{baseStyle:{height:"210px"}}),S=(0,l.m)("div",{baseStyle:{display:"grid",alignItems:"center",justifyContent:"center",gap:"16px",gridTemplateColumns:{base:"repeat(auto-fill, 100%)",md:"repeat(auto-fill, calc(50% - 8px))",lg:"repeat(auto-fill, calc(33% - 8px))"}}}),k=()=>(0,r.jsxs)(S,{children:[(0,r.jsx)(L,{children:(0,r.jsx)(C,{opacity:.8})}),(0,r.jsx)(L,{children:(0,r.jsx)(C,{opacity:.8})}),(0,r.jsx)(L,{children:(0,r.jsx)(C,{opacity:.8})}),(0,r.jsx)(L,{children:(0,r.jsx)(C,{opacity:.4})}),(0,r.jsx)(L,{children:(0,r.jsx)(C,{opacity:.4})}),(0,r.jsx)(L,{children:(0,r.jsx)(C,{opacity:.4})}),(0,r.jsx)(L,{children:(0,r.jsx)(C,{opacity:.2})}),(0,r.jsx)(L,{children:(0,r.jsx)(C,{opacity:.2})}),(0,r.jsx)(L,{children:(0,r.jsx)(C,{opacity:.2})})]}),z=()=>{let{t:e}=(0,d.qM)(),{data:i,isLoading:t,hasNextPage:n,fetchNextPage:s}=(0,p.R6)({query:{filter:{status:x.a6.FINISHED},pagination:{pageSize:9}}}),a=(0,u.useMemo)(()=>i?i.pages.flatMap(e=>e.items):[],[i]);return(0,r.jsxs)(o.K,{spacing:"4",children:[(0,r.jsxs)(o.K,{spacing:"0",children:[(0,r.jsx)(c.x,{fontSize:"xs",color:"blue.500",letterSpacing:"-0.46px",fontWeight:"700",children:e("finished-giveaways-title")}),(0,r.jsx)(c.x,{fontSize:"lg",fontWeight:"700",as:"h2",children:e("finished-giveaways-subtitle")})]}),t?(0,r.jsx)(k,{}):(0,r.jsx)(h.Mr,{useWindowScroll:!0,endReached:()=>s(),totalCount:a?a.length:0,overscan:900,components:{List:S,Item:L},itemContent:e=>{let i=a[e];return(0,r.jsx)(C,{giveaway:i})}}),n&&(0,r.jsx)(k,{})]})};
1var M=t(27440),I=t(48937),O=t(51402),q=t(15357),E=()=>{let{t:e}=(0,d.qM)();return(0,r.jsxs)(j.k,{direction:{base:"column",lg:"row"},justifyContent:{lg:"space-between"},borderRadius:"md",bgColor:"gray.200",p:"24px 32px",alignItems:"center",children:[(0,r.jsx)(c.x,{children:e("giveaway-ask-join-title")}),(0,r.jsx)(O.z,{mt:"5px",colorScheme:"blue",variant:"solid",onClick:()=>{q.L.onOpen()},children:e("ask-join-cta")})]})},W=t(84103),T=t(20344),R=t(46952);let F=e=>{let i=T.R["/shop/coins"];return(0,R.nc)(i,e)},P=e=>F(e);var _=()=>{let{t:e}=(0,d.qM)();return(0,r.jsxs)(o.K,{spacing:"4",children:[(0,r.jsx)(c.x,{fontWeight:"700",fontSize:"lg",as:"h4",children:e("giveaway-instructions-title")}),(0,r.jsxs)(o.K,{spacing:"2.5",children:[(0,r.jsx)(c.x,{children:e("giveaway-instructions-2")}),(0,r.jsx)(c.x,{children:e("giveaway-instructions-3")}),(0,r.jsx)(c.x,{children:(0,r.jsx)(d.T,{keyName:"giveaway-instructions-4",params:{link:(0,r.jsx)(c.x,{color:"blue.500",href:P(),as:"a"})}})}),(0,r.jsx)(c.x,{children:e("giveaway-instructions-5")}),(0,r.jsx)(c.x,{children:e("giveaway-instructions-6")}),(0,r.jsx)(c.x,{children:(0,r.jsx)(d.T,{keyName:"giveaway-instructions-7",params:{link:(0,r.jsx)(W.r,{isExternal:!0,href:"https://www.instagram.com/wuolah_apuntes",fontWeight:"bold"})}})}),(0,r.jsx)(c.x,{children:(0,r.jsx)(d.T,{keyName:"giveaway-instructions-8",params:{link:(0,r.jsx)(W.r,{isExternal:!0,href:"https://twitter.com/Wuolah?lang=es",fontWeight:"bold"})}})}),(0,r.jsx)(c.x,{children:e("giveaway-instructions-9")}),(0,r.jsx)(c.x,{children:e("giveaway-instructions-10")})]})]})},K=t(5389),D=t(56915),U=t(82962),N=t(92619),Z=t(64827),H=t(2167),A=t(89190),G=t(73848),Q=t(24798),B=t(84520),X=t(95085),J=t(17651),V=t(44093),Y=e=>{let{...i}=e,{t}=(0,d.qM)(),{data:n,isLoading:s}=(0,I.Pi)();return(0,r.jsxs)(o.K,{spacing:"0",alignItems:"center",flexShrink:0,...i,children:[(0,r.jsxs)(m.U,{spacing:"2.5",alignItems:"end",children:[s?(0,r.jsx)(J.D,{size:"50px",isIndeterminate:!0}):(0,r.jsx)(c.x,{fontSize:"50px",lineHeight:"45px",color:"blue.500",fontWeight:"bold",children:(null==n?void 0:n.tickets)||0}),(0,r.jsx)(V.x,{size:"50px"})]}),(0,r.jsx)(c.x,{fontWeight:"bold",fontSize:"xs",children:t("available-tickets")})]})},$=t(33673),ee=t(15342),ei=t(17343),et=t(72028),en=t(6208),er=t(27302),es=t(82066),ea=t(40856),el=t(10733),eo=t(76826),ec=t(83711);let ed={query:{filter:{},pagination:{page:0,pageSize:x.hU.DEFAULT}}},ex=e=>[{...I.gL,id:"me-giveaways",scope:"giveaway",entity:"list",...(0,ec.T)(ed,e)}],eu=async e=>{var i;let{queryKey:[{query:t}],pageParam:n}=e,r=(0,eo.P)({...t,pagination:{...null==t?void 0:t.pagination,page:n||(null==t?void 0:null===(i=t.pagination)||void 0===i?void 0:i.page)}});return await (0,ea._i)("/v2/me/giveaways".concat(r))},eh=e=>(0,es.useInfiniteQuery)({queryKey:ex(e),queryFn:eu,getNextPageParam:el.H});var ep=t(6912);let eg={query:{filter:{},pagination:{page:0,pageSize:x.hU.DEFAULT}}},ej=e=>[{id:"giveaway-tickets",scope:"giveaway-ticket",entity:"list",...(0,ec.T)(eg,e)}],ef=async e=>{var i;let{queryKey:[{query:t}],pageParam:n}=e,r=(0,eo.P)({...t,pagination:{...null==t?void 0:t.pagination,page:n||(null==t?void 0:null===(i=t.pagination)||void 0===i?void 0:i.page)}});return await (0,ea._i)("/v2/giveaway-tickets".concat(r))},ev=e=>(0,es.useInfiniteQuery)({queryKey:ej(e),queryFn:ef,getNextPageParam:el.H});var em=t(14876);let ey=e=>{var i;let{giveaway:t}=e,{t:n}=(0,d.qM)(),{data:s}=(0,I.Pi)(),{data:a,isLoading:l,fetchNextPage:x,isFetchingNextPage:p}=ev({query:{filter:{giveawayId:t.id,userId:null==s?void 0:s.id}}}),g=(0,u.useMemo)(()=>(null==a?void 0:a.pages.flatMap(e=>e.items))||[],[a]);return(0,r.jsxs)(o.K,{spacing:"1",children:[(0,r.jsxs)(c.x,{color:"wGray.500",fontWeight:"400",fontSize:"10px",lineHeight:"12px",children:[n("giveaway-my-participations-used"),(0,r.jsx)(c.x,{fontWeight:"bold",as:l?v.O:"span",children:null==a?void 0:null===(i=a.pages[0].pagination)||void 0===i?void 0:i.totalItems})]}),(0,r.jsx)(h.OO,{data:g,style:{height:"150px"},endReached:()=>x(),overscan:20,itemContent:(e,i)=>(0,r.jsxs)(m.U,{alignItems:"center",children:[(0,r.jsx)(em.m,{number:i.number}),(0,r.jsx)(y.MOd,{}),(0,r.jsx)(c.x,{fontWeight:"bold",color:"wGray.500",fontSize:"12px",children:(0,r.jsx)(d.T,{keyName:"ticket-source-type",params:{type:i.sourceType}})})]}),components:{Footer:()=>p||l?(0,r.jsx)(er.M,{width:"100%",h:"100%",children:(0,r.jsx)(J.D,{isIndeterminate:!0})}):null}})]})},ew=e=>{let{status:i}=e,{t}=(0,d.qM)(),{data:n,isLoading:s,fetchNextPage:a,isFetchingNextPage:l}=eh({query:{filter:{status:i}}}),x=(0,u.useMemo)(()=>(null==n?void 0:n.pages.flatMap(e=>e.items))||[],[n]);return(0,r.jsx)(r.Fragment,{children:(0,r.jsx)($.U,{allowToggle:!0,children:(0,r.jsx)(h.OO,{data:x,useWindowScroll:!0,endReached:()=>a(),overscan:20,itemContent:(e,i)=>(0,r.jsx)(ee.Q,{children:e=>{let{isExpanded:t}=e;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(ei.K,{children:[(0,r.jsx)(c.x,{flex:"1",textAlign:"left",fontWeight:"bold",children:i.title}),(0,r.jsx)(et.X,{})]}),t&&(0,r.jsxs)(en.H,{as:o.K,spacing:"4",children:[i.winnerTicketId&&(0,r.jsx)(ep.u,{id:i.winnerTicketId}),(0,r.jsx)(ey,{giveaway:i})]})]})}},i.id),components:{Footer:()=>s||l?(0,r.jsx)(er.M,{width:"100%",h:"100%",children:(0,r.jsx)(J.D,{isIndeterminate:!0})}):s||0!==x.length?null:(0,r.jsx)(er.M,{width:"100%",h:"100%",children:(0,r.jsx)(c.x,{children:t("no-results")})})}})})})};var eb=()=>{let{data:e}=(0,I.Pi)();return(0,r.jsxs)(j.k,{direction:{sm:"column",md:"row"},alignItems:"center",justifyContent:"center",children:[(0,r.jsx)(f.E,{src:null==e?void 0:e.avatarUrl,alt:null==e?void 0:e.nickname,w:"70px",h:"70px",borderRadius:"full",border:"4px solid #d6cbcb"}),(0,r.jsxs)(j.k,{direction:"column",m:"0 20px",w:"100%",alignItems:{base:"center",md:"flex-start"},justifyItems:{base:"center",md:"flex-start"},children:[(0,r.jsx)(c.x,{fontSize:"14px",fontWeight:"700",children:null==e?void 0:e.nickname}),(0,r.jsx)(c.x,{color:"rgba(0, 0, 0, 0.65)",fontSize:"10px",fontWeight:"400"})]})]})};let eC=e=>{let{isOpen:i,setIsOpen:t}=e,{t:n}=(0,d.qM)();return(0,r.jsx)(r.Fragment,{children:(0,r.jsxs)(K.u_,{preserveScrollBarGap:!0,blockScrollOnMount:!0,isOpen:i,scrollBehavior:"inside",onClose:()=>t(!1),size:{sm:"full",lg:"2xl"},isCentered:!0,children:[(0,r.jsx)(D.Z,{}),(0,r.jsxs)(U.h,{overflow:"hidden",children:[(0,r.jsx)(N.x,{bgColor:"blue.500",children:(0,r.jsxs)(j.k,{children:[(0,r.jsxs)(j.k,{direction:"column",children:[(0,r.jsx)(c.x,{fontSize:"14px",lineHeight:"120%",letterSpacing:"-0.63px",color:"white",children:n("giveaway-my-participations")}),(0,r.jsx)(c.x,{color:"rgba(255, 255, 255, 0.5)",fontSize:"10px",letterSpacing:"0.47px",children:n("giveaway-participations-text-1")})]}),(0,r.jsx)(Z.o,{bgColor:"white",color:"blue.500",borderRadius:"full",alignSelf:"center",justifySelf:"center",top:"initial",border:"1px solid",_hover:{color:"white",bgColor:"blue.500",borderColor:"white"}})]})}),(0,r.jsxs)(H.f,{p:"0",children:[(0,r.jsxs)(o.K,{p:"4",children:[(0,r.jsx)(c.x,{textAlign:"left",fontSize:"16px",fontWeight:"700",letterSpacing:"-0.46px",children:n("giveaway-participations-text-2")}),(0,r.jsxs)(j.k,{direction:{base:"column",sm:"row"},alignItems:"center",justifyContent:"space-between",children:[(0,r.jsx)(eb,{}),(0,r.jsx)(Y,{})]})]}),(0,r.jsxs)(A.m,{isLazy:!0,minH:"240px",children:[(0,r.jsxs)(G.t,{children:[(0,r.jsxs)(Q.O,{"data-testid":"giveaway-in-progress",children:[n("giveaway-in-progress")," "]}),(0,r.jsx)(Q.O,{"data-testid":"giveaway-finished",children:n("giveaway-finished")})]}),(0,r.jsxs)(B.n,{p:"0",children:[(0,r.jsx)(X.x,{p:"0",children:(0,r.jsx)(ew,{status:x.a6.IN_PROGRESS})}),(0,r.jsx)(X.x,{p:"0",children:(0,r.jsx)(ew,{status:x.a6.FINISHED})})]})]})]})]})]})})},eL=()=>{let{t:e}=(0,d.qM)(),[i,t]=(0,u.useState)(!1);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(j.k,{borderRadius:"md",bgColor:"gray.200",h:"auto",p:"20px",alignItems:"center",justifyContent:"space-between",children:[(0,r.jsx)(c.x,{fontWeight:"bold",fontSize:"xs",children:e("giveaway-my-participations")}),(0,r.jsx)(c.x,{as:"a",textDecoration:"underline",fontSize:"11px",color:"blue.500",cursor:"pointer",onClick:()=>{t(!0)},"data-testid":"my-participations",children:e("giveaway-my-participations-cta")})]}),i&&(0,r.jsx)(eC,{isOpen:i,setIsOpen:t})]})};var eS=t(8700);let ek=()=>{let{t:e}=(0,d.qM)();return(0,r.jsxs)(j.k,{gap:"20px",borderRadius:"md",bgColor:"gray.200",p:"20px",alignItems:"center",children:[(0,r.jsx)(Y,{flexGrow:{base:1,lg:0}}),(0,r.jsxs)(o.K,{flex:"1",alignItems:{sm:"left",md:"center",lg:"center"},children:[(0,r.jsx)(c.x,{fontSize:"xs",textAlign:{sm:"left",md:"center",lg:"center"},children:e("get-tickets-title")}),(0,r.jsx)(eS.R,{forceExtended:!0})]})]})},ez=()=>{let{isAuthenticatingOrAuthenticated:e}=(0,I.hD)();return(0,r.jsxs)(M.r,{gridTemplateColumns:{base:"1fr",lg:"1fr 370px"},gap:"8",children:[(0,r.jsx)(_,{}),(0,r.jsx)(o.K,{children:e?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(ek,{}),(0,r.jsx)(eL,{})]}):(0,r.jsx)(E,{})})]})};var eM=!0,eI=(0,n.withSuperJSONPage)(()=>(0,r.jsxs)(s.Q,{px:"4",children:[(0,r.jsx)(a.x,{}),(0,r.jsx)(ez,{}),(0,r.jsx)(z,{})]}))}},function(e){e.O(0,[26425,78898,1859,82578,49410,59966,37893,14281,92416,60686,38325,89689,97966,17387,28780,14666,83127,6362,75044,45068,46265,95985,12846,17964,76288,87465,92888,49774,40179],function(){return e(e.s=88270)}),_N_E=e.O()}]);

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.