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
7.7 KiB

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! ")])]),t[20]||(t[20]=e("p",{class:"mt-4 flex items-center"},[s(" To see these instructions and more, click above on "),e("span",{class:"ml-1 mr-1 text-xs uppercase 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-1.5 py-1 rounded-md"}," Help ")],-1))])):m("",!0),o.page===o.OnboardPage.Discover?(g(),p("div",Y,[e("h1",E,[t[21]||(t[21]=s(" Offer to Interesting Events & People ")),e("div",{class:"text-lg text-center leading-none absolute right-0 -top-1",onClick:t[3]||(t[3]=u=>o.onClickClose(!0))},[d(i,{icon:"xmark",class:"w-[1em]"})])]),t[24]||(t[24]=e("p",null," Once you've seen things that others have given or done, you may find ways you want to contribute, too. It turns out others have proposed activities together, and this page is where you find projects. ",-1)),t[25]||(t[25]=e("p",{class:"mt-4"},' Search for a topic, or search around your neighborhod under "Nearby". ',-1)),t[26]||(t[26]=e("p",{class:"mt-4"}," When you find some that seem interesting, you can offer your help. You are welcome to make your offer conditional, for example if they get 2 other people to help besides you. ",-1)),e("p",W,[t[22]||(t[22]=s(" The ")),d(i,{icon:"magnifying-glass",class:"ml-1 mr-1 text-lg text-white bg-slate-400 px-2 py-2 rounded"}),t[23]||(t[23]=s(" button below brings you to this discovery screen. "))]),e("div",z,[e("div",G,[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[4]||(t[4]=u=>o.onClickClose(!0))}," No more 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[5]||(t[5]=u=>o.$router.push({name:"projects"}))}," Show me even more. ")])])])):m("",!0),o.page===o.OnboardPage.Create?(g(),p("div",L,[e("h1",M,[t[27]||(t[27]=s(" Fish for Others with Your Projects ")),e("div",{class:"text-lg text-center leading-none absolute right-0 -top-1",onClick:t[6]||(t[6]=u=>o.onClickClose(!0))},[d(i,{icon:"xmark",class:"w-[1em]"})])]),e("p",q,[t[28]||(t[28]=s(" Now you can take a turn: click on the ")),e("span",J,[d(i,{icon:"plus",class:"fa-fw"})]),t[29]||(t[29]=s(" button to throw out projects of your own... anything you'd like to see happen. If your first idea doesn't catch anyone, try, try again... and let others know that this is a good place to find help. "))]),e("p",K,[t[30]||(t[30]=s(" The ")),d(i,{icon:"hand",class:"ml-1 mr-1 text-lg text-white bg-slate-400 px-2 py-2 rounded"}),t[31]||(t[31]=s(" button below brings you here to see your ideas. "))]),e("p",Q,[t[32]||(t[32]=s(" By the way, one good way to get to know your neighbors and their interests is to offer time directly to them. You can do this on the contacts screen ")),d(i,{icon:"users",class:"text-slate-500"}),t[33]||(t[33]=s(" which is a great way to get to know a neighbor's interests. "))]),e("div",U,[e("div",X,[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[7]||(t[7]=u=>o.onClickClose(!0,!0))},t[34]||(t[34]=[s(" Let's go! "),e("br",null,null,-1),s(" See & record gratitude. ")])),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[8]||(t[8]=u=>o.$router.push({name:"help"}))}," I want to read more Help. ")])])])):m("",!0)])):m("",!0)}const nt=O(f,[["render",Z]]);export{nt as O};