PageSourceSearch

https://dashboard.iproyal.com/assets/ReferralDialog-BIUPjwIY.js

js iproyal.com collected 2026-10-01 10:43:00 UTC 5,237 bytes, 3 lines download raw bytes

1/** See vendor.LICENSE.txt for 3rd party license information */
2import{a as E,y as N,bC as D,at as T,cS as B,bf as U,o as v,c as V,w as f,u as t,M as R,Q as n,z as o,T as p,O as i,_ as m,W as y,V as h,N as j,as as P,b0 as O,F as I,i as M,cT as C,cU as x,aY as A}from"./_withdraw-status-label-C_XHOxxk.js";import{b as G}from"./subscription-features-Sot5Ax5k.js";import{_ as z}from"./CopyButton.vue_vue_type_script_setup_true_lang-og3qzScW.js";import{_ as Y}from"./ReferralSteps.vue_vue_type_script_setup_true_lang-CRw0Wq3P.js";import{_ as F}from"./loyalty-progress-query-l6kwDB-a.js";import"./index-DzVsRdPj.js";import"./TextField-YbFGomOL.js";import"./order-auth-validators-DYWxMx4R.js";import"./projects-DDiJpIlV.js";import"./Field.vue_vue_type_script_setup_true_lang-9W-nBLQ-.js";import"./OrderStatusIndicator.vue_vue_type_script_setup_true_lang-BBoeNZpA.js";import"./TimeCircleIcon-BHtGBSRb.js";(function(){try{var a=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};a.SENTRY_RELEASE={id:"0a9fdbed"},a._sentryModuleMetadata=a._sentryModuleMetadata||{},a._sentryModuleMetadata[new a.Error().stack]=(function(r){for(var d=1;d<arguments.length;d++){var c=arguments[d];if(c!=null)for(var l in c)c.hasOwnProperty(l)&&(r[l]=c[l])}return r})({},a._sentryModuleMetadata[new a.Error().stack],{"_sentryBundlerPluginAppKey:iproyal-dashboard-frontend":!0});var g=new a.Error().stack;g&&(a._sentryDebugIds=a._sentryDebugIds||{},a._sentryDebugIds[g]="62626037-81e8-4a2a-ae2c-ce308f0b9fd4",a._sentryDebugIdIdentifier="sentry-dbid-62626037-81e8-4a2a-ae2c-ce308f0b9fd4")}catch{}})();const K="/assets/dark-Idsz9eeB.svg",Q="/assets/dark-Idsz9eeB.svg",W={imageDark:K,imageLight:Q,name:"google-mail"},q={key:0},H={class:"mb-32"},J={class:"flex w-full justify-end"},X=["onClick"],Z={class:"mb-24 flex flex-col gap-24 text-center"},ee={class:"tp-headline-m sm:tp-headline-l"},te={class:"flex flex-col gap-8 sm:flex-row"},ae={class:"w-full truncate rounded-4 border border-solid border-neutral-300 bg-neutral-0 px-16 py-10 tp-body-s text-neutral-550"},se={key:1},ne={class:"flex justify-between"},oe={class:"tp-body-xs font-semibold text-neutral-1000"},ie=["onClick"],le={class:"mt-24 mb-20 text-center tp-headline-m"},re={class:"flex flex-col gap-10"},ke=E({__name:"ReferralDialog",props:{options:{}},setup(a){const{common:g}=N(),r=I(!0),d=I(!1);let c=!1;const l=e=>{c||(c=!0,gtag("event","referral_share",{...e}))},k=M(()=>`${a.options.firstName} ${a.options.lastName}`),b=M(()=>G(a.options.locale,"?r=")+a.options.id);function w(e){return`mailto:?${e.toString().replace(/\+/g,"%20")}`}const L=()=>{const e=new URLSearchParams({subject:x(),body:C({url:b.value,fullName:k.value})}),s=w(e);window.open(s,"_blank"),l({email_invite_sent:1})},S=()=>{const e=new URLSearchParams({view:"cm",to:"",su:x(),body:C({url:b.value,fullName:k.value})});if(A()){const u=w(e);window.open(u,"_blank");return}const s=`https://mail.google.com/mail/?${e.toString()}`;window.open(s,"_blank"),l({email_invite_sent:1})};D(r,e=>{e||l({email_invite_sent:0,link_copied:0})});const{mutate:$}=T({mutation:()=>B("showReferralModal",!1)});return U(()=>{$()}),(e,s)=>(v(),V(t(O),{modelValue:t(r),"onUpdate:modelValue":s[4]||(s[4]=u=>P(r)?r.value=u:null),"hide-close-button":"",class:j(["p-20 xs:px-24 xs:pt-32 xs:pb-24 lg:max-w-618",[t(d)?"":"referral-dialog-size overflow-y-auto"]])},{default:f(({close:u})=>[t(d)?(v(),R("div",se,[n("div",ne,[n("button",{type:"button",class:"flex items-center gap-4",onClick:s[2]||(s[2]=_=>d.value=!1)},[o(t(p),{type:"arrow-back",class:"size-16 text-neutral-1000"}),n("p",oe,i(t(g).back()),1)]),n("button",{type:"button",onClick:u},[o(t(p),{type:"close",class:"size-16 text-neutral-1000"})],8,ie)]),n("p",le,i(("m"in e?e.m:t(m)).dashReferralInviteShareReferralLink()),1),n("div",re,[o(z,{content:t(b),kind:"outlined","color-scheme":"primary",size:"m",onCopied:s[3]||(s[3]=_=>l({link_copied:1}))},{default:f(()=>[o(t(p),{type:"copy"}),y(" "+i(("m"in e?e.m:t(m)).dashReferralInviteCopyLink()),1)]),_:1},8,["content"]),o(t(h),{size:"m",kind:"outlined",onClick:L},{default:f(()=>[o(t(p),{type:"mail"}),y(" "+i(("m"in e?e.m:t(m)).dashReferralInviteEmail()),1)]),_:1}),o(t(h),{size:"m",kind:"outlined",onClick:S},{default:f(()=>[o(F,{image:t(W)},null,8,["image"]),y(" "+i(("m"in e?e.m:t(m)).dashReferralInviteGmail()),1)]),_:1})])])):(v(),R("div",q,[n("div",H,[n("div",J,[n("button",{type:"button",onClick:u},[o(t(p),{type:"close",class:"size-16 text-neutral-1000"})],8,X)]),n("div",Z,[n("h1",ee,i(("m"in e?e.m:t(m)).dashReferralInviteDialogTitle()),1),n("p",null,i(("m"in e?e.m:t(m)).dashReferralInviteDialogText()),1)]),o(Y)]),n("div",te,[n("div",ae,i(t(b)),1),o(z,{content:t(b),kind:"outlined","color-scheme":"primary",size:"m",class:"min-w-120",onCopied:s[0]||(s[0]=_=>l({link_copied:1}))},{default:f(()=>[o(t(p),{type:"copy"}),y(" "+i(("m"in e?e.m:t(m)).dashReferralInviteCopy()),1)]),_:1},8,["content"]),o(t(h),{"color-scheme":"secondary",size:"m",class:"min-w-120",onClick:s[1]||(s[1]=_=>d.value=!0)},{default:f(()=>[y(i(("m"in e?e.m:t(m)).dashReferralInviteShare()),1)]),_:1})])]))]),_:1},8,["modelValue","class"]))}});
2export{ke as default};
3//# sourceMappingURL=ReferralDialog-BIUPjwIY.js.map

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.