PageSourceSearch

https://worbler.ai/_next/static/chunks/6805-594018a477c324fc.js

js worbler.ai collected 2026-10-04 13:48:19 UTC 9,136 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6805],{15339:function(e,t,r){"use strict";r.d(t,{Z:function(){return o}});var n=r(57437),a=r(36760),l=r.n(a),i=r(27648);function o(e){let{className:t,href:r,prefetch:a,showText:o}=e;return(0,n.jsx)(i.default,{className:l()("flex flex-row items-center justify-center",t),href:r||"/",prefetch:a,children:(0,n.jsx)("div",{className:l()((!o||"desktop"===o||"never"===o)&&"w-[30px] overflow-hidden","desktop"===o&&"lg:w-auto"),children:(0,n.jsx)("img",{alt:"Worbler AI",className:"h-[27px] w-[159px] max-w-none lg:h-[34px] lg:w-[202px]",src:"/logo.svg"})})})}},29767:function(e,t,r){"use strict";r.d(t,{Z:function(){return i}});var n=r(57437),a=r(36760),l=r.n(a);function i(e){let{className:t,user:r}=e;return(0,n.jsx)("span",{className:l()("user-avatar flex shrink-0 items-center justify-center overflow-hidden rounded-full font-bold leading-none text-background-layer-1",(null==r?void 0:r.avatarUrl)?"bg-transparent":"bg-white",t),children:(null==r?void 0:r.avatarUrl)?(0,n.jsx)("img",{alt:"Avatar for ".concat(r.userName||r.fullName||"Anonymous"),className:"size-full object-cover",loading:"lazy",src:r.avatarUrl}):(null==r?void 0:r.fullName)?r.fullName.split(" ").map(e=>e.charAt(0)).join(""):"U"})}},45286:function(e,t,r){"use strict";r.d(t,{Z:function(){return j}});var n=r(57437),a=r(36760),l=r.n(a),i=r(27648),o=r(99376),s=r(2265),u=r(44984),c=r(83500),f=r(48202),d=r(20138);let m=/\/$/;function x(e,t){return e.replace(m,"")===t.replace(m,"")}var h=r(95804),p=r(15339),v=r(29767);function g(e){let{children:t,className:r,contentClassName:a}=e;return(0,n.jsx)("div",{className:l()("fixed left-0 top-0 z-50 transition-[transform,opacity,visibility] lg:absolute","lg:inset-x-auto lg:-right-4 lg:left-auto lg:top-[calc(100%+0.5rem)] lg:perspective-[300px]",r),children:(0,n.jsx)("div",{className:l()("flex h-view w-view flex-col gap-6 bg-background-layer-1 px-6 pb-6 pt-3 lg:h-auto lg:w-[272px] lg:rounded-2xl lg:pt-6","lg:origin-top lg:shadow-[0_0.25rem_0.25rem_rgba(0,0,0,0.25)] lg:-rotate-x-45","transform-gpu transition-transform",a),children:t})})}let b=[{href:"/account/projects",label:"Projects"},{href:"/account/profile",label:"Profile"},{href:"/account/settings",label:"Settings"}],N=[{href:"/admin/recent",label:"Recent"},{href:"/admin/contest",label:"Contest"},{href:"/admin/submitted",label:"Submitted"},{href:"/admin/featured",label:"Featured"}];function j(e){let{className:t}
1=e,[r,a]=(0,s.useState)(!1),{admin:m,user:j}=(0,u.a)(),{isDesktop:w}=(0,c.L)(),y=(0,s.useRef)(null),C=(0,o.usePathname)();return(0,s.useEffect)(()=>{a(!1)},[C]),(0,s.useEffect)(()=>{r&&!w&&window.scrollTo({top:0,behavior:"smooth"}),function(e){let t=document.documentElement;t&&(t.style.overflow=e?"hidden":"")}(r&&!w)},[w,r]),(0,f.Z)({element:y,onClose:()=>a(!1),open:r}),(0,n.jsxs)("div",{ref:y,className:l()("group/user h-full lg:relative",t),children:[(0,n.jsxs)(h.Z,{"aria-label":"Account",className:l()("z-10 h-full border-b-2 !font-normal transition-colors","before:absolute before:inset-x-0 before:top-full before:h-5","after:absolute after:inset-x-0 after:bottom-0 after:hidden after:h-[2px] after:bg-primary lg:after:block","after:transition-[transform,opacity]","group-hover/user:font-bold group-hover/user:text-primary group-hover/user:after:scale-x-100 group-hover/user:after:opacity-100",r?"font-bold text-primary after:scale-x-100 after:opacity-100":"!font-normal after:scale-x-0 after:opacity-0"),onClick:()=>{a(!r)},children:[(0,n.jsx)(v.Z,{className:"size-[34px] lg:size-[24px]",user:j}),(0,n.jsx)("span",{className:"hidden pb-1 lg:inline-block",children:(null==j?void 0:j.userName)?"@".concat(j.userName):(null==j?void 0:j.fullName)||""})]}),(0,n.jsxs)(g,{className:l()("lg:translate-x-0 lg:group-hover/user:visible lg:group-hover/user:translate-x-0 lg:group-hover/user:opacity-100",r?"visible translate-x-0 opacity-100":"invisible translate-x-full opacity-0"),contentClassName:l()("lg:group-hover/user:transform-none",r&&"!transform-none"),children:[(0,n.jsxs)("div",{className:"mb-2 flex flex-row items-center justify-between lg:hidden",children:[(0,n.jsx)(p.Z,{showText:"always"}),(0,n.jsx)(h.Z,{"aria-label":"Close Menu",className:"btn-icon-medium btn-transparent",onClick:()=>a(!1),children:(0,n.jsx)(d.Z,{className:"size-6"})})]}),(0,n.jsxs)("div",{className:"flex flex-col items-center justify-center text-center font-bold",children:[(0,n.jsx)(v.Z,{className:"size-[80px]",user:j}),(0,n.jsx)("div",{className:"mt-4",children:(null==j?void 0:j.fullName)||""}),(0,n.jsx)("div",{className:"mt-1 text-xs text-gray",children:(null==j?void 0:j.userName)?"@".concat(j.userName):""})]}),(0,n.jsxs)("div",{className:"flex flex-col gap-4",children:[b.map(e=>(0,n.jsx)(i.default,{className:l()("link font-bold",x(C||"",e.href)&&"!text-primary"),href:e.href,prefetch:!1,children:e.label},e.href)),(0,n.jsx)("a",{className:"link font-bold",href:"/api/auth/logout?".concat(C?new URLSearchParams({return_to:encodeURIComponent(C)}):""),children:"Sign out"}),m&&(0,n.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,n.jsx)("div",{className:"border-t border-t-border-light py-2 text-sm font-bold text-gray",children:"Admin"}),N.map(e=>(0,n.jsx)(i.default,{className:l()("link font-bold",x(C||"",e.href)&&"!text-primary"),href:e.href,prefetch:!1,children:e.label},e.href))]})]})]})]})}},83500:function(e,t,r){"use strict";r.d(t,{DesktopProvider:function(){return u},L:function(){return s}});var n=r(57437),a=r(7310),l=r.n(a),i=r(2265);let o=(0,i.createContext)({isDesktop:!1}),s=()=>(0,i.useContext)(o);function u(e){let{children:t}=e,[r,a]=(0,i.useState)(!1);return(0,i.useEffect)(()=>{function e(){a(window.innerWidth>=1024)}let t=l()(e,100);return window.addEventListener("resize",t),e(),()=>{window.removeEventListener("resize",t)}},[]),(0,n.jsx)(o.Provider,{value:{isDesktop:r},children:t})}},40816:function(e,t,r){"use strict";r.d(t,{Z:function(){return i}});var n=r(57437),a=r(36760),l=r.n(a);function i(e){let{className:t}=e;return(0,n.jsx)("svg",{className:l()("icon",t),height:"41",viewBox:"0 0 40 41",width:"40",children:(0,n.jsx)("path",{d:"M36.2346 33.7799C33.9022 29.762 30.1689 26.7463 25.7503 25.3111C27.8682 24.0517 29.5141 22.1317 30.435 19.8462C31.356 17.5607 31.501 15.036 30.848 12.66C30.1949 10.284 28.7798 8.18813 26.8201 6.69437C24.8603 5.20062 22.4644 4.3916 20.0003 4.3916C17.5362 4.3916 15.1402 5.20062 13.1805 6.69437C11.2207 8.18813 9.80565 10.284 9.15258 12.66C8.49951 15.036 8.64459 17.5607 9.56553 19.8462C10.4865 22.1317 12.1323 24.0517 14.2503 25.3111C9.83167 26.7463 6.09829 29.762 3.7659 33.7799C3.65138 33.9683 3.59082 34.1845 3.59082 34.4049C3.59082 34.6253 3.65138 34.8415 3.7659 35.0299C3.87274 35.2214 4.02929 35.3806 4.21904 35.4906C4.40879 35.6006 4.62471 35.6574 4.84402 35.6549H35.1565C35.3758 35.6574 35.5918 35.6006 35.7815 35.4906C35.9713 35.3806 36.1278 35.2214 36.2346 35.0299C36.3492 34.8415 36.4097 34.6253 36.4097 34.4049C36.4097 34.1845 36.3492 33.9683 36.2346 33.7799Z"})})}},73086:function(e,t,r){"use strict";r.d(t,{Z:function(){return s}});
1var n=r(57437),a=r(36760),l=r.n(a),i=r(85602),o=r(40816);function s(e){let{className:t}=e,{setLoginOpen:r}=(0,i.N)();return(0,n.jsxs)("button",{"aria-label":"Log in",className:l()("btn btn-transparent btn-small lg:btn-medium rounded-button text-lg",t),onClick:()=>{r(!0)},children:[(0,n.jsx)(o.Z,{className:"hidden size-6 lg:inline-block"}),"Log in"]})}},55041:function(e,t,r){var n=r(5035),a=/^\s+/;e.exports=function(e){return e?e.slice(0,n(e)+1).replace(a,""):e}},5035:function(e){var t=/\s/;e.exports=function(e){for(var r=e.length;r--&&t.test(e.charAt(r)););return r}},7310:function(e,t,r){var n=r(28302),a=r(11121),l=r(6660),i=Math.max,o=Math.min;e.exports=function(e,t,r){var s,u,c,f,d,m,x=0,h=!1,p=!1,v=!0;if("function"!=typeof e)throw TypeError("Expected a function");function g(t){var r=s,n=u;return s=u=void 0,x=t,f=e.apply(n,r)}function b(e){var r=e-m,n=e-x;return void 0===m||r>=t||r<0||p&&n>=c}function N(){var e,r,n,l=a();if(b(l))return j(l);d=setTimeout(N,(e=l-m,r=l-x,n=t-e,p?o(n,c-r):n))}function j(e){return(d=void 0,v&&s)?g(e):(s=u=void 0,f)}function w(){var e,r=a(),n=b(r);if(s=arguments,u=this,m=r,n){if(void 0===d)return x=e=m,d=setTimeout(N,t),h?g(e):f;if(p)return clearTimeout(d),d=setTimeout(N,t),g(m)}return void 0===d&&(d=setTimeout(N,t)),f}return t=l(t)||0,n(r)&&(h=!!r.leading,c=(p="maxWait"in r)?i(l(r.maxWait)||0,t):c,v="trailing"in r?!!r.trailing:v),w.cancel=function(){void 0!==d&&clearTimeout(d),x=0,s=m=u=d=void 0},w.flush=function(){return void 0===d?f:j(a())},w}},11121:function(e,t,r){var n=r(74288);e.exports=function(){return n.Date.now()}},6660:function(e,t,r){var n=r(55041),a=r(28302),l=r(78371),i=0/0,o=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,u=/^0o[0-7]+$/i,c=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(l(e))return i;if(a(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=a(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=n(e);var r=s.test(e);return r||u.test(e)?c(e.slice(2),r?2:8):o.test(e)?i:+e}},27648:function(e,t,r){"use strict";r.d(t,{default:function(){return a.a}});var n=r(72972),a=r.n(n)}}]);

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.