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.
2 lines
7.7 KiB
2 lines
7.7 KiB
4 weeks ago
|
var w=Object.defineProperty;var c=(o,t,n)=>t in o?w(o,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):o[t]=n;var a=(o,t,n)=>c(o,typeof t!="symbol"?t+"":t,n);import{C as v,V as x,f as k,e as C,u as y,_ as O,g as $,x as g,h as p,j as e,k as s,i as d,t as D,l as m}from"./index-BLqts8WY.js";import{ao as h}from"./index-MyY_xqVN.js";var N=Object.defineProperty,P=Object.getOwnPropertyDescriptor,T=(o,t,n,l)=>{for(var r=l>1?void 0:l?P(t,n):t,b=o.length-1,i;b>=0;b--)(i=o[b])&&(r=(l?i(t,n,r):i(r))||r);return l&&r&&N(t,n,r),r};let f=class extends x{constructor(){super(...arguments);a(this,"$notify");a(this,"activeDid","");a(this,"firstContactName",null);a(this,"givenName","");a(this,"isRegistered",!1);a(this,"numContacts",0);a(this,"page",h.Home);a(this,"visible",!1)}async open(n){this.page=n;const l=await k();this.activeDid=l.activeDid||"",this.isRegistered=!!l.isRegistered;const r=await C.contacts.toArray();this.numContacts=r.length,this.numContacts>0&&(this.firstContactName=r[0].name),this.visible=!0,this.page===h.Create&&await y(this.activeDid,{finishedOnboarding:!0})}async onClickClose(n,l){this.visible=!1,n&&(await y(this.activeDid,{finishedOnboarding:!0}),l&&this.$router.push({name:"home"}))}};f=T([v({computed:{OnboardPage(){return h}},components:{OnboardPage:h}})],f);const S={key:0,class:"dialog-overlay"},j={key:0,class:"dialog"},A={class:"text-xl font-bold text-center mb-4 relative"},I={key:0,class:"mt-4"},_={key:0},V={class:"bg-green-600 text-white rounded-full"},F={key:1,class:"mt-4"},B={class:"mt-4 flex items-center"},H={class:"mt-8"},R={class:"grid grid-cols-1 sm:grid-cols-2 gap-2"},Y={key:1,class:"dialog"},E={class:"text-xl font-bold text-center mb-4 relative"},W={class:"mt-4 flex items-center"},z={class:"mt-8"},G={class:"grid grid-cols-1 sm:grid-cols-2 gap-2"},L={key:2,class:"dialog"},M={class:"text-xl font-bold text-center mb-4 relative"},q={class:"relative"},J={class:"bg-green-600 text-white rounded-full"},K={class:"mt-4 flex items-center"},Q={class:"mt-4"},U={class:"mt-8"},X={class:"grid grid-cols-1 sm:grid-cols-2 gap-2"};function Z(o,t,n,l,r,b){const i=$("fa");return o.visible?(g(),p("div",S,[o.page===o.OnboardPage.Home?(g(),p("div",j,[e("h1",A,[t[9]||(t[9]=s(" Welcome to Time Safari ")),t[10]||(t[10]=e("br",null,null,-1)),t[11]||(t[11]=s(" - Showcasing Gratitude & Magnifing Time ")),e("div",{class:"text-lg text-center leading-none absolute right-0 -top-1",onClick:t[0]||(t[0]=u=>o.onClickClose(!0))},[d(i,{icon:"xmark",class:"w-[1em]"})])]),o.isRegistered?(g(),p("p",I,[t[12]||(t[12]=s(" You can now log things that you've seen: ")),o.numContacts>0?(g(),p("span",_," click on any name (like "+D(o.firstContactName)+") or ",1)):m("",!0),t[13]||(t[13]=s(" click on the ")),e("span",V,[d(i,{icon:"plus",class:"fa-fw"})]),t[14]||(t[14]=s(" button to express your appreciation for... whatever -- maybe thanks for showing you all these fascinating stories of ")),t[15]||(t[15]=e("em",null,"gratitude",-1)),t[16]||(t[16]=s(". "))])):(g(),p("p",F," The feed underneath this pop-up shows the latest gifts that others have recognized. Once someone registers you, you can log your appreciation, too. ")),t[19]||(t[19]=e("p",{class:"mt-4"}," The more you illuminate cool things people are doing, the more you attract people to work with you. ",-1)),e("p",B,[t[17]||(t[17]=s(" The ")),d(i,{icon:"house-chimney",class:"ml-1 mr-1 text-lg text-white bg-slate-400 px-2 py-2 rounded"}),t[18]||(t[18]=s(" button below brings you back to this feed screen. "))]),e("div",H,[e("div",R,[e("button",{type:"button","data-testId":"closeOnboardingAndFinish",class:"block w-full text-center text-md bg-gradient-to-b from-slate-400 to-slate-700 shadow-[inset_0_-1px_0_0_rgba(0,0,0,0.5)] text-white px-2 py-3 rounded-md mb-2",onClick:t[1]||(t[1]=u=>o.onClickClose(!0))}," That's enough help, thanks. "),e("button",{type:"button",class:"block w-full text-center text-md 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 mb-2",onClick:t[2]||(t[2]=u=>o.$router.push({name:"discover"}))}," Show me more! "
|