You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 lines
2.6 KiB
1 lines
2.6 KiB
var v=Object.defineProperty;var x=(o,t,e)=>t in o?v(o,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):o[t]=e;var m=(o,t,e)=>x(o,typeof t!="symbol"?t+"":t,e);import{V as g,f as w,e as y,C,_ as b,g as u,h as _,i as p,j as n,k as h,F as $,x as N}from"./index-BLqts8WY.js";import{u as S}from"./index-CsfPLOYu.js";import{Q as V}from"./QuickNav-DgCyvgDx.js";import{T as k}from"./TopMessage-BE0GBIgW.js";import{r as I,ab as M}from"./index-MyY_xqVN.js";var T=Object.defineProperty,D=Object.getOwnPropertyDescriptor,O=(o,t,e,a)=>{for(var s=a>1?void 0:a?D(t,e):t,i=o.length-1,r;i>=0;i--)(r=o[i])&&(s=(a?r(t,e,s):r(s))||s);return a&&s&&T(t,e,s),s};let d=class extends g{constructor(){super(...arguments);m(this,"$notify")}async onClickShare(){const e=await w(),a=e.activeDid||"",s=e.firstName||"",i=!!e.isRegistered,r=e.profileImageUrl||"",c=await I(a),l=await y.contacts.count();if(c){const f=await M(c,i,s,r,!0);S().copy(f).then(()=>{this.$notify({group:"alert",type:"info",title:"Copied",text:"Your contact info was copied to the clipboard. Have them paste it in the box on their 'Contacts' screen."},5e3),l>0&&setTimeout(()=>{this.$notify({group:"alert",type:"success",title:"Share Other Contacts",text:"You may want to share some of your contacts with them. Select them below to copy and send."},1e4)},3e3)}),this.$router.push({name:"contacts"})}else this.$notify({group:"alert",type:"error",title:"Error",text:"No account was found for the active DID."},5e3)}};d=O([C({components:{QuickNav:V,TopMessage:k}})],d);const j={id:"Content",class:"p-2 pb-24 max-w-3xl mx-auto"},A={class:"text-lg text-center font-light relative px-7"},F={class:"flex justify-center mt-8"},P={class:"ml-12"};function Q(o,t,e,a,s,i){const r=u("QuickNav"),c=u("TopMessage"),l=u("fa");return N(),_($,null,[p(r),p(c),n("section",j,[n("div",null,[n("div",A,[n("h1",{class:"text-lg text-center px-2 py-1 absolute -left-2 -top-1",onClick:t[0]||(t[0]=f=>o.$router.back())},[p(l,{icon:"chevron-left",class:"fa-fw"})])]),t[2]||(t[2]=n("h1",{id:"ViewHeading",class:"text-4xl text-center font-light"}," Share Your Contact Info ",-1))]),n("div",F,[n("button",{class:"block w-fit text-center text-lg font-bold bg-gradient-to-b from-blue-400 to-blue-700 shadow-[inset_0_-1px_0_0_rgba(0,0,0,0.5)] text-white px-2 py-3 rounded-md",onClick:t[1]||(t[1]=f=>o.onClickShare())}," Copy to Clipboard ")]),n("div",P,[t[5]||(t[5]=n("div",{class:"mt-8"},"Click to copy your info, then send it to them.",-1)),n("div",null,[t[3]||(t[3]=h(" They will paste it in the input box on the Contacts ")),p(l,{icon:"users"}),t[4]||(t[4]=h(" screen. "))])])])],64)}const q=b(d,[["render",Q]]);export{q as default};
|
|
|