PageSourceSearch

https://ryfma.com/build-chunks/23886.c7955a3ed7c587f4.js

js ryfma.com collected 2026-10-01 12:18:03 UTC 5,190 bytes, 5 lines download raw bytes

1"use strict";(self.rspackChunkryfma=self.rspackChunkryfma||[]).push([[23886],{35101(e,s,l){l.r(s),l.d(s,{default:()=>f});var r=l(74848),t=l(82804),i=l(21540),n=l(86952),a=l(38784);let c=(0,a.J1)`
2	query getWinners($festId: String!, $sortType: String, $limit: Int) {
3		getWinners(festId: $festId, sortType: $sortType, limit: $limit)
4	}
5`;var m=l(92368),d=l(72407),o=l(25274),x=l(58037);let u=({winner:e,order:s,place:l,showCity:t=!1,coins:n,isFestival:a=!1})=>{let[c]=(0,i.Bd)("contest"),u=1===l,f="";u?f="p-2 border-4 border-yellow-400":2===l?f="p-1.5 border-4 border-gray-400":3===l&&(f="p-1.5 border-4 border-orange-400");let p=(0,r.jsx)(o.A,{trigger:(0,r.jsxs)("span",{className:"mx-auto mt-2 flex items-center justify-center space-x-1",children:[(0,r.jsx)(x.A,{}),(0,r.jsx)("span",{className:"font-bold",children:n})]}),content:c("ryfmaPrize")+n,className:"w-auto"}),h=(0,r.jsx)("span",{className:`absolute -top-2 -left-2 z-10 flex h-6 w-6 items-center justify-center rounded-full px-1 text-sm font-bold text-white ${u?"bg-yellow-400":""} ${2===l?"bg-gray-400":""} ${3===l?" bg-orange-400":""}`,children:c(String(l))});return e?(0,r.jsxs)("div",{className:`flex-column relative min-w-0 basis-1/3 items-center text-center ${!u?"mt-14":""}`,style:{order:s},children:[(0,r.jsx)("div",{className:`inline-flex rounded-full ${f}`,children:(0,r.jsx)(d.A,{type:u?"full":"big",image:e.user.profile.image??"",name:e.user.profile.name,username:e.user.username,badge:!a&&h,iconSize:u?"text-5xl":"text-3xl"})}),p,(0,r.jsx)(m.N_,{to:`/u/${e.user.username}`,className:"mt-2 block text-sm leading-4 font-semibold",children:e.user.profile.name}),(0,r.jsx)(m.N_,{to:`/p/${e.post._id}/${e.post.slug}`,className:"mt-1 block truncate text-sm text-gray-600 capitalize",children:e.post.title}),t&&(0,r.jsx)("div",{className:"mt-2 text-sm text-gray-600",children:e.user.profile.city})]}):(0,r.jsxs)("div",{className:`flex-column relative min-w-0 basis-1/3 items-center text-center ${!u?"mt-14":""}`,style:{order:s},children:[(0,r.jsx)("div",{className:`inline-flex rounded-full ${f}`,children:(0,r.jsx)(d.A,{image:"https://cdn.ryfma.com/defaults/icons/default_middle_avatar.jpg",username:"deleted",name:"Deleted",noLink:!0,badge:!a&&h})}),p,(0,r.jsx)("div",{className:"mt-2 block text-sm leading-4 font-semibold",children:"Deleted"})]})},f=function({festId:e,isFestival:s,sortType:l,noJury:a,isGranPri:m,currUserId:d}){let[o]=(0,i.Bd)("contest"),{loading:x,error:f,data:p}=(0,t.I)(c,{variables:{festId:e,sortType:a?"likes":l,limit:s&&"jury"===l?4:3}});if(x)return(0,r.jsx)("div",{className:"mx-auto mt-6 mb-12 flex",children:Array.from({length:3}).map((e,s)=>(0,r.jsxs)("div",{className:`flex-column relative min-w-0 basis-1/3 items-center text-center ${1===s?"":"mt-14"}`,children:[(0,r.jsx)("div",{className:"inline-flex rounded-full",children:(0,r.jsx)(n.E,{className:`rounded-full ${1===s?"size-24":"size-16"}`})}),(0,r.jsx)(n.E,{className:"mx-auto mt-2 h-4 w-16 rounded-full"}),(0,r.jsx)(n.E,{className:"mx-auto mt-2 h-4 w-24 rounded-full"}),(0,r.jsx)(n.E,{className:"mx-auto mt-1 h-4 w-32 rounded-full"})]},s))});if(f||!p?.getWinners)return null;let h=p?.getWinners??[],j=h.map((e,l)=>{let t=s?500:200,i=l+1;return 0===l?(t=s?1e3:500,i=2):1===l&&(t=s?700:300,i=1),(0,r.jsx)(u,{order:i,place:l+1,winner:e,coins:t,currUserId:d},l)});return m?(0,r.jsxs)("div",{className:"winners-wrapper",children:[m&&(0,r.jsxs)("div",{className:"winners-header",children:[(0,r.jsx)("h2",{children:o("granpri")}),(0,r.jsx)(u,{order:2,place:1,winner:h[0],coins:2e3,currUserId:d})]}),j]}):(0,r.jsx)("div",{className:"mx-auto mt-6 mb-12 flex",children:h.map((e,l)=>{let t=s?500:200,i=l+1;return 0===l?(t=s?1e3:500,i=2):1===l&&(t=s?700:300,i=1),(0,r.jsx)(u,{order:i,place:l+1,winner:e,coins:t,currUserId:d},l)})})}},58037(e,s,l){var r=l(74848);l.d(s,{},{A:({color:e="currentColor",size:s=24,...l})=>(0,r.jsx)("span",{className:"mx-[2px] my-0 inline-block h-[var(--size)] w-[var(--size)] align-middle",style:{"--size":`${s}px`},children:(0,r.jsxs)("svg",{xmlns:"https://www.w3.org/2000/svg",width:s,height:s,viewBox:"0 0 640 640",fill:"none",stroke:e,...l,children:[(0,r.jsx)("circle",{r:"317.5",cy:"317.49999",cx:"317.50001",fill:"#F6D738"}),(0,r.jsx)("path",{d:"m293.00101,149.87799c49.741,0 87.836,8.845 114.303,26.539c26.461,17.695 39.694,45.196 39.694,82.497c0,23.28 -5.345,42.165 -16.023,56.673c-10.684,14.508 -26.064,25.908 -46.152,34.193c6.698,8.291 13.708,17.779 21.044,28.457c7.329,10.684 14.586,21.837 21.759,33.472c7.173,11.646 14.111,23.755 20.803,36.351c6.698,12.596 12.915,24.946 18.651,37.061l-83.398,0c-6.083,-10.835 -12.249,-21.832 -18.489,-32.997c-6.239,-11.159 -12.635,-22 -19.199,-32.521c-6.558,-10.522 -13.043,-20.484 -19.439,-29.888c-6.407,-9.404 -12.808,-17.935 -19.204,-25.589l-36.826,0l0,120.995l-74.603,0l0,-326.638c16.258,-3.181 33.069,-5.417 50.451,-6.692c17.377,-1.27 32.919,-1.913 46.628,-1.913zm4.304,63.606c-5.423,0 -10.281,0.162 -14.586,0.475c-4.305,0.324 -8.369,0.643 -12.193,0.956l0,89.91l21.044,0c28.049,0 48.136,-3.505 60.257,-10.522c12.115,-7.011 18.17,-18.964 18.17,-35.865c0,-16.263 -6.139,-27.814 -18.41,-34.674c-12.278,-6.853 -30.37,-10.28 -54.282,-10.28z",fill:"#C67D26"})]})})})}}]);

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.