PageSourceSearch

https://www.sassy.social/assets/index-B4KYCv9P.js

js sassy.social collected 2026-10-04 03:18:18 UTC 4,271 bytes, 16 lines download raw bytes

1import{u as g,j as e,h as p,i as n,k as u,b5 as b,B as x}from"./vendor-mui-CYq-6ego.js";import{j as c,d as k,t as r,y as j,f as y}from"./index-5sb0ZHD_.js";import{P as w}from"./PageLayout-BHoO67qe.js";import{u as v}from"./vendor-redux-CUeFAPXf.js";import{m as f}from"./vendor-motion-BPjkBOu7.js";import"./vendor-three-B82KWFtT.js";import"./vendor-query-C1eo258M.js";import"./logo-BkSacLXu.js";/**
2 * @license lucide-react v0.475.0 - ISC
3 *
4 * This source code is licensed under the ISC license.
5 * See the LICENSE file in the root directory of this source tree.
6 */const C=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],S=c("Copy",C);/**
7 * @license lucide-react v0.475.0 - ISC
8 *
9 * This source code is licensed under the ISC license.
10 * See the LICENSE file in the root directory of this source tree.
11 */const I=[["rect",{x:"3",y:"8",width:"18",height:"4",rx:"1",key:"bkv52"}],["path",{d:"M12 8v13",key:"1c76mn"}],["path",{d:"M19 12v7a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2v-7",key:"6wjy6b"}],["path",{d:"M7.5 8a2.5 2.5 0 0 1 0-5A4.8 8 0 0 1 12 8a4.8 8 0 0 1 4.5-5 2.5 2.5 0 0 1 0 5",key:"1ihvrl"}]],W=c("Gift",I);/**
12 * @license lucide-react v0.475.0 - ISC
13 *
14 * This source code is licensed under the ISC license.
15 * See the LICENSE file in the root directory of this source tree.
16 */const T=[["circle",{cx:"18",cy:"5",r:"3",key:"gq8acd"}],["circle",{cx:"6",cy:"12",r:"3",key:"w7nqdw"}],["circle",{cx:"18",cy:"19",r:"3",key:"1xt0gg"}],["line",{x1:"8.59",x2:"15.42",y1:"13.51",y2:"17.49",key:"47mynk"}],["line",{x1:"15.41",x2:"8.59",y1:"6.51",y2:"10.49",key:"1n3mei"}]],$=c("Share2",T),z=()=>{var d;const{data:o}=k({url:"referral",key:["referral"]}),{userDetails:t}=v(i=>i==null?void 0:i.user),l=(d=o==null?void 0:o.data)==null?void 0:d.referralCode,a=g(),s=`${j.appUrl}/app/register?code=${l}`,h=async()=>{await navigator.clipboard.writeText(l),y({text:r.referral.success.copiedSuccessMessage})},m=async()=>{try{navigator.share?await navigator.share({title:r.referral.title,text:r.referral.subtitle,url:s}):(await navigator.clipboard.writeText(s),y({text:r.referral.success.copyToClipBoardSuccessMessage}))}catch(i){console.error("Share failed:",i)}};return e.jsx(w,{label:r.referral.label.referral,children:e.jsxs(p,{component:f.div,initial:{opacity:0,y:30},animate:{opacity:1,y:0},transition:{duration:.6},sx:{display:"flex",flexDirection:"column",alignItems:"center",textAlign:"center",background:`linear-gradient(135deg, ${a.palette.mode==="dark"?"#1f1b2e":"#f0f4ff"}, ${a.palette.background.secondary})`,borderRadius:4,boxShadow:"0 8px 24px rgba(0,0,0,0.1)",p:{xs:3,sm:5},mx:"auto",maxWidth:600},children:[e.jsx(f.div,{animate:{rotate:[0,10,-10,0]},transition:{duration:2,repeat:1/0},children:e.jsx(W,{size:80,color:a.palette.primary.main})}),e.jsx(n,{variant:"h4",fontWeight:700,mt:3,sx:{background:`linear-gradient(90deg, ${a.palette.primary.main}, ${a.palette.secondary.main})`,WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent"},children:r.referral.heading}),e.jsxs(n,{variant:"body1",mt:2,children:[(t==null?void 0:t.gender)=="man"?r.referral.wrapping.maleshareReferralCode:r.referral.wrapping.femaleshareReferralCode,e.jsx("b",{children:(t==null?void 0:t.gender)=="man"?r.referral.wrapping.malecreditsInstantly:r.referral.wrapping.femalecreditsInstantly})]}),e.jsx(p,{mt:4,display:"flex",alignItems:"center",gap:2,sx:{background:a.palette.background.paper,borderRadius:3,boxShadow:"0 4px 10px rgba(0,0,0,0.05)",p:2,width:"100%",justifyContent:"space-between"},children:e.jsx(u,{value:l||"Loading...",fullWidth:!0,InputProps:{readOnly:!0,sx:{fontWeight:"bold",letterSpacing:1}}})}),e.jsxs(b,{direction:"row",spacing:2,mt:3,children:[e.jsx(x,{onClick:h,variant:"contained",startIcon:e.jsx(S,{}),sx:{fontWeight:"bold"},children:r.referral.button.copyCode}),e.jsx(x,{onClick:m,startIcon:e.jsx($,{}),sx:{px:4,py:1,fontWeight:"bold",color:"white",borderColor:"white"},children:r.referral.button.shareLink})]}),e.jsxs(n,{variant:"body2",mt:3,children:[r.referral.wrapping.yourReferralLink," ",e.jsx("br",{}),e.jsx(n,{component:"span",sx:{color:a.palette.primary.main,wordBreak:"break-all",fontWeight:500},children:s})]})]})})};export{z as default};

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.