PageSourceSearch

https://app.put.io/js/742.a6e87035e721d59990d1.js

js put.io collected 2026-10-02 20:21:20 UTC 7,311 bytes, 5 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{};e.SENTRY_RELEASE={id:"[email protected]+e12bf37"};var t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="29a8a7f1-1680-4896-81b8-731fab6e282a",e._sentryDebugIdIdentifier="sentry-dbid-29a8a7f1-1680-4896-81b8-731fab6e282a")}catch(e){}}(),(self.webpackChunk_putdotio_app=self.webpackChunk_putdotio_app||[]).push([[742],{31644:(e,t,i)=>{i.d(t,{l:()=>r});var n=i(2784);const r=(0,i(59177).EN)((function(e){return(0,n.useEffect)((()=>{e.router.replace(e.to||"/")}),[e.router,e.to]),null}))},32e3:(e,t,i)=>{i.r(t),i.d(t,{default:()=>z});var n=i(31644),r=i(32978),s=i(4099),a=i(32315),d=i(96321),l=i(69754),o=i(75778),c=i(75289),x=i(9093);var u=i(85365),_=i(52322);const f=[{person:"invite_friends_dialog_you",says:"invite_friends_dialog_torrenting_is_awesome"},{person:"invite_friends_dialog_friend",says:"invite_friends_dialog_why_pay"},{person:"invite_friends_dialog_you",says:"invite_friends_dialog_take_this"}],h=u.Z.table`
2  margin: ${e=>e.theme.space[3]}px 0;
3`,g=u.Z.td`
4  padding-right: ${e=>e.theme.space[3]}px;
5`,p=()=>(0,_.jsx)(h,{children:(0,_.jsx)("tbody",{children:f.map((e=>(0,_.jsxs)("tr",{children:[(0,_.jsx)(g,{children:(0,_.jsxs)(c.xv,{sx:{fontSize:[1,2],fontWeight:"heading"},children:[s.ZP[e.person](),":"]})}),(0,_.jsx)(g,{children:(0,_.jsx)(c.xv,{sx:{fontSize:[1,2]},children:s.ZP[e.says]()})})]}
5,e.says)))})});var m=i(2754),v=i(2993);const j=i.p+"images/laptop-parrot..gif",b={display:"inline-block",height:28,marginLeft:6,marginTop:-18,width:28},y=e=>{switch(e.status){case"TRIAL_NOT_STARTED":return s.ZP.invite_friends_status_trial_not_started((0,m.bM)(e.created_at));case"IN_TRIAL":return s.ZP.invite_friends_status_in_trial((0,m.bM)(e.created_at));case"CONVERTED":return s.ZP.invite_friends_status_converted();case"TRIAL_ENDED":return s.ZP.invite_friends_status_trial_ended();default:return e.status}},Z=e=>{switch(e.status){case"TRIAL_NOT_STARTED":return"😟";case"IN_TRIAL":return"🤔";case"CONVERTED":return"🎉";case"TRIAL_ENDED":return"😔";default:return""}},w=e=>{let{friends:t}=e;return(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(v.Z,{actions:(0,_.jsx)("img",{alt:"laptop-parrot",src:j,style:b}),title:s.ZP.invite_friends_joined_friends_title()}),t.map((e=>(0,_.jsxs)(c.kC,{sx:{alignItems:"center",justifyContent:"space-between",marginTop:3},children:[(0,_.jsxs)(c.xu,{children:[(0,_.jsx)(c.xv,{sx:{display:"block",fontSize:1},children:e.name}),(0,_.jsx)(c.xv,{sx:{color:"text-secondary",display:"block",fontSize:0,mt:1},children:y(e)})]}),(0,_.jsx)(c.xu,{children:(0,_.jsx)(c.xv,{sx:{fontSize:28},children:Z(e)})})]},e.name)))]})};i(2784);const I=[{subtitle:"invite_friends_reminder_credit_card_subtitle",title:"invite_friends_reminder_credit_card"},{subtitle:"",title:"invite_friends_reminder_account_activity"}],T=()=>(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(v.Z,{title:s.ZP.invite_friends_reminder_title()}),I.map((e=>(0,_.jsxs)(c.xu,{sx:{marginBottom:4,marginTop:3},children:[(0,_.jsx)(c.xv,{children:s.ZP[e.title]()}),e.subtitle&&(0,_.jsx)(c.xv,{sx:{color:"text-secondary",display:"block",fontSize:0,mt:1},children:s.ZP[e.subtitle]()})]},e.title)))]});var E=i(86794),C=i(18756);const S=i.p+"images/friend-invite-card..png",k=e=>{let{creating:t,onCreateInvite:i,remaining:n,total:r}=e;return(0,_.jsxs)(c.kC,{sx:{alignItems:"center",backgroundColor:"component-bg",borderRadius:"default",flexWrap:"wrap"},children:[(0,_.jsx)(c.xu,{sx:{margin:["auto","initial"],maxWidth:[240,320,360]},children:(0,_.jsx)(c.Ee,{alt:"Invite Card",padding:20,src:S,width:"100%"})}),(0,_.jsxs)(c.xu,{padding:2,paddingTop:[0,2],sx:{textAlign:["center","left"],width:["100%","50%"]},children:[(0,_.jsx)(c.xv,{sx:{fontSize:[1,2,3]},children:(0,_.jsx)(E.G,{children:s.ZP.invite_friends_motivation_message()})}),(0,_.jsx)(c.xu,{p:[2,3]}),n>0&&(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(C.z,{loading:t,onClick:i,variant:"primary",children:s.ZP.invite_friends_invite_create_label(r-n+1,r)}),(0,_.jsx)(c.xu,{p:[2,3]})]})]})]})},P=e=>{let{creating:t,invites:i,onCreateInvite:n,remaining:r,username:a}=e;const{codes:d,friends:l}=(e=>e.reduce(((e,t)=>(t.user?e.friends=e.friends.concat(t.user):e.codes=e.codes.concat({code:t.code,created_at:t.created_at}),e)),{codes:[],friends:[]}))(i),o=(0,_.jsx)(c.xu,{py:4});return(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(p,{}),(0,_.jsx)(k,{creating:t,onCreateInvite:n,remaining:r,total:r+i.length,username:a}),o,d.length>0&&(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(x.Y,{baseURL:"https://put.io/hi-friend",invites:d,title:s.ZP.invite_friends_link_list_title()}),o]}),l.length>0&&(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(w,{friends:l}),o]}),(0,_.jsx)(T,{})]})};var R=i(98355),D=i(55830),L=i(58943),A=i(93599),N=i(43079),F=i(49024);const z=(0,r.Z)((()=>{const[e]=(0,d.B)("username"),[t,{createMutation:i}]=(()=>{const e=["friend-invites"],t=(0,D.NL)();return[(0,L.a)({queryFn:async()=>(await F.Z.FriendInvites.GetAll()).data,queryKey:e}),{createMutation:(0,A.D)({mutationFn:async()=>(await F.Z.FriendInvites.Create()).data,onError:e=>{N.Z.Show((0,a.j)(e))},onSuccess:()=>(N.Z.Show({message:(0,R.I)("invite_friends_invite_created"),type:N.Z.TYPE.SUCCESS}),t.invalidateQueries(e))})}]})();switch(t.status){case"loading":return(0,_.jsx)(l.S,{});case"success":return(0,_.jsx)(o.Z,{title:s.ZP.invite_friends_page_title(),children:(0,_.jsx)(P,{creating:i.isLoading,invites:t.data.invites,onCreateInvite:i.mutate,remaining:t.data.remaining_limit,username:e})});case"error":return(0,_.jsx)(o.Z,{error:(0,a.j)(t.error),title:s.ZP.invite_friends_page_title(),type:"error"})}}),{check:e=>e.is_eligible_for_friend_invitation,fallback:()=>(0,_.jsx)(n.l,{})})},9093:(e,t,i)=>{i.d(t,{Y:()=>o});var n=i(13749),r=i(75289),s=i(93993),a=i(40238),d=i(2993),l=i(52322);const o=e=>{let{baseURL:t,invites:i,title:o}=e;const c=i.reduce(((e,i)=>Object.assign(e,{[i.code]:`${t}/${i.code}`})),{});return(0,l.jsxs)(r.xu,{children:[(0,l.jsx)(d.Z,{title:o}),(0,l.jsx)(r.xu,{my:2}),(0,l.jsx)(n.l0,{initialValues:c,onSubmit:()=>{},render:()=>(0,l.jsx)("form",{children:(0,l.jsx)(s.n,{maxHeight:300,children:(0,l.jsx)(r.xu,{sx:{display:"grid",gridGap:2,gridTemplateColumns:["repeat(1, 1fr)","repeat(1, 1fr)","repeat(2, 1fr)"]},children:i.map((e=>(0,l.jsx)(n.gN,{component:a.D,name:e.code},e.code)))})})})})]})}},93993:(e,t,i)=>{i.d(t,{n:()=>o});var n=i(2784),r=i(13405),s=i(75289),a=i(55522),d=i(94115),l=i(52322);const o=e=>{let{children:t,maxHeight:i=250,showAllLabel:o="Show all"}=e;const{theme:c}=(0,d.Fg)(),[x,{height:u}
5]=(0,r.Z)(),[_,f]=(0,n.useState)({configured:!1,hidden:!1});(0,n.useEffect)((()=>{u&&!_.configured&&f({configured:!0,hidden:u>i})}),[_,u,i]);const h=(0,n.useMemo)((()=>_.configured?_.hidden?{maxHeight:i,overflow:"hidden"}:{}:{visibility:"hidden"}),[_,i]);return(0,l.jsxs)(s.xu,{sx:{position:"relative"},children:[(0,l.jsx)(s.xu,{ref:x,sx:h,children:t}),_.hidden&&(0,l.jsx)(s.kC,{sx:{alignItems:"flex-end",background:`linear-gradient(transparent 0px, ${c.colors["app-bg"]} ${i/2}px)`,bottom:0,height:i/2,justifyContent:"center",position:"absolute",width:"100%",zIndex:1},children:(0,l.jsx)(a.e,{onClick:()=>f((e=>({...e,hidden:!1}))),variant:"forms.label",children: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.