PageSourceSearch

https://www.sortabase.com/_next/static/chunks/5724.1a0f3b45aefd0e25.js

js sortabase.com collected 2026-10-08 12:28:39 UTC 3,670 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5724],{54328:function(e,n,t){t.d(n,{i:function(){return l}});var s=t(67294),a=t(99455),r=t(35875),i=t(79729);function l(e){return n=>s.createElement(r.ZP,{theme:{token:{motion:!1,zIndexPopupBase:0}}},s.createElement(e,Object.assign({},n)))}n.Z=(e,n,t,r)=>l(l=>{let{prefixCls:o,style:c}=l,u=s.useRef(null),[d,m]=s.useState(0),[g,p]=s.useState(0),[f,h]=(0,a.Z)(!1,{value:l.open}),{getPrefixCls:b}=s.useContext(i.E_),x=b(n||"select",o);s.useEffect(()=>{if(h(!0),"undefined"!=typeof ResizeObserver){let e=new ResizeObserver(e=>{let n=e[0].target;m(n.offsetHeight+8),p(n.offsetWidth)}),n=setInterval(()=>{var s;let a=t?".".concat(t(x)):".".concat(x,"-dropdown"),r=null===(s=u.current)||void 0===s?void 0:s.querySelector(a);r&&(clearInterval(n),e.observe(r))},10);return()=>{clearInterval(n),e.disconnect()}}},[]);let j=Object.assign(Object.assign({},l),{style:Object.assign(Object.assign({},c),{margin:0}),open:f,visible:f,getPopupContainer:()=>u.current});return r&&(j=r(j)),s.createElement("div",{ref:u,style:{paddingBottom:d,position:"relative",minWidth:g}},s.createElement(e,Object.assign({},j)))})},59642:function(e,n,t){t.r(n),t.d(n,{default:function(){return f}});var s=t(85893),a=t(24986),r=t(69961),i=t(55764),l=t(27746),o=t(72098),c=t(12930),u=t(67294),d=t(5152),m=t.n(d);let g=m()(()=>Promise.all([t.e(2156),t.e(9891)]).then(t.bind(t,52156)),{loadableGenerated:{webpack:()=>[52156]},loading:()=>(0,s.jsx)("p",{children:"Loading..."}),ssr:!1}),p=m()(()=>Promise.all([t.e(1569),t.e(1353)]).then(t.bind(t,91569)),{loadableGenerated:{webpack:()=>[91569]},loading:()=>(0,s.jsx)("p",{children:"Loading..."}),ssr:!1});function f(e){let{open:n}=e,t=a.S.useContext(),d=a.S.me.createMe.useMutation(),[m,f]=(0,u.useState)("onSubmit"),[h]=r.Z.useForm(),[b,x]=(0,u.useState)(!1),[j,y]=(0,u.useState)(!1);return(0,s.jsxs)(l.Z,{title:"You're almost there!",footer:null,open:n,closable:!1,maskClosable:!1,children:[(0,s.jsx)("p",{children:"Create your username to finish signing up"}),(0,s.jsxs)(r.Z,{name:"new-post",onFinish:function(e){let{username:n}=e;d.mutate({username:n},{onError(e){i.ZP.error(e.message)},onSuccess(){i.ZP.success("Welcome, "+n+"!"),t.invalidate()}})},onFinishFailed:e=>{console.log("Failed:",e),f("onChange")},form:h,autoComplete:"off",validateTrigger:m,disabled:d.isLoading,children:[(0,s.jsx)(r.Z.Item,{name:"username",rules:[{required:!0,message:"Please enter a username"},{type:"string",min:3,message:"Must be between 3 and 20 characters"},{type:"string",max:20,message:"Must be between 3 and 20 characters"},{pattern:/^[a-zA-Z0-9]+$/,message:"Letters and numbers only!"}],style:{margin:"12px 0 20px"},children:(0,s.jsx)(o.default,{placeholder:"DancingPlatypus",size:"large",showCount:!0,maxLength:20})}),(0,s.jsxs)("p",{style:{marginBottom:"16px",fontSize:"11px",color:"gray"},children:["By signing up to Sortabase, you agree to our"," ",(0,s.jsx)("span",{onClick:()=>x(!0),className:"fake-link",children:"Terms of Service"})," ","and"," ",(0,s.jsx)("span",{onClick:()=>y(!0),className:"fake-link",children:"Privacy Policy."})," ","You can"," ",(0,s.jsx)("a",{href:"/api/auth/logout",className:"fake-link",children:(0,s.jsx)("span",{children:"abort signup"})})," ","if you do not agree."]}),(0,s.jsx)(l.Z,{title:"Terms of Service",open:b,footer:null,onCancel:()=>x(!1),children:(0,s.jsx)(p,{})}),(0,s.jsx)(l.Z,{title:"Privacy Policy",open:j,footer:null,onCancel:()=>y(!1),children:(0,s.jsx)(g,{})}),(0,s.jsx)(r.Z.Item,{style:{marginBottom:"12px"},children:(0,s.jsx)(c.ZP,{size:"large",block:!0,type:"primary",htmlType:"submit",loading:d.isLoading,children:"Submit"})})]})]})}}}]);

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.