Did you know you can have your own sovereign shop like this?
If you knew this, congratulations, you're quite the nerd 🤓. If you didn’t, there is a short write-up on how this works at https://nostr.boutique/explain.
If you already have a key, you can clone by clicking I'm already on Nostr. If you are new, follow the I'm new here path and have your own store in under 15 seconds.
',6)),s(m)==="choice"?(i(),d("div",Wt,[e("button",{class:"rounded-lg border border-violet-300 bg-violet-600 px-4 py-2 text-sm font-semibold text-white",onClick:Pe}," I’m new here "),e("button",{class:"rounded-lg border border-[var(--line)] px-4 py-2 text-sm font-semibold",onClick:Ce}," I’m already on Nostr ")])):s(m)==="new"?(i(),d("div",Gt,[l[15]||(l[15]=e("label",{class:"text-xs font-semibold uppercase tracking-[0.1em] text-[var(--muted)]"},"Your display name",-1)),Y(e("input",{"onUpdate:modelValue":l[1]||(l[1]=N=>W(f)?f.value=N:null),type:"text",placeholder:"Sovereign Shop Owner",class:"mt-2 w-full rounded-lg border border-[var(--line)] bg-white/95 px-3 py-2 text-sm text-black"},null,512),[[oe,s(f)]]),e("button",{class:"mt-3 rounded-lg border border-violet-300 bg-violet-600 px-4 py-2 text-sm font-semibold text-white",onClick:Ee}," Generate my keys "),s(y)?(i(),d("div",Jt,[l[13]||(l[13]=e("p",{class:"font-semibold"},"Important: We do not store these keys.",-1)),l[14]||(l[14]=e("p",{class:"mt-1"},"If you lose them, you can’t access this site anymore. You can always create a new one.",-1)),e("p",Qt,[l[7]||(l[7]=e("span",{class:"font-semibold"},"npub:",-1)),l[8]||(l[8]=M()),e("span",Zt,x(s(y).npub),1)]),e("p",Xt,[l[9]||(l[9]=e("span",{class:"font-semibold"},"nsec:",-1)),l[10]||(l[10]=M()),e("span",es,x(s(y).nsec),1)]),e("div",ts,[e("button",{class:"rounded border border-amber-300 bg-white px-2 py-1 text-xs",onClick:l[2]||(l[2]=N=>ie(s(y).npub))},"Copy npub"),e("button",{class:"rounded border border-amber-300 bg-white px-2 py-1 text-xs",onClick:l[3]||(l[3]=N=>ie(s(y).nsec))},"Copy nsec")]),e("label",ss,[Y(e("input",{"onUpdate:modelValue":l[4]||(l[4]=N=>W(u)?u.value=N:null),type:"checkbox"},null,512),[[Fe,s(u)]]),l[11]||(l[11]=e("span",null,"I saved these keys securely.",-1))]),e("button",{class:"mt-3 rounded-lg border border-violet-300 bg-violet-700 px-4 py-2 text-sm font-semibold text-white disabled:cursor-not-allowed disabled:opacity-60",disabled:s(c),onClick:$e},x(s(c)?"Publishing and cloning...":"Publish profile and clone now"),9,os),s(c)?(i(),d("div",ns,[e("img",{src:ve,alt:"",class:"h-5 w-5 object-contain","aria-hidden":"true"}),l[12]||(l[12]=e("span",null,"Deploying and running on Nostr...",-1))])):P("",!0)])):P("",!0)])):s(m)==="new-success"?(i(),d("div",rs,[l[17]||(l[17]=e("p",{class:"font-semibold text-emerald-200"},"Your sovereign shop clone is live.",-1)),e("p",as,[l[16]||(l[16]=M("New npub: ",-1)),e("span",ls,x(s(y)?.npub),1)]),e("p",is,"Published relays: "+x(s(k).join(", ")),1),e("a",{href:s(h),target:"_blank",rel:"noopener noreferrer",class:"mt-3 inline-flex rounded-lg border border-emerald-300 bg-emerald-600 px-4 py-2 text-sm font-semibold text-white"}," Open my new Nsite ",8,ds)])):(i(),d("div",us,[e("button",{class:"rounded-lg border border-violet-300 bg-violet-500 px-4 py-2 text-sm font-semibold text-white",disabled:s(w),onClick:Me},x(s(w)?"Cloning with your signer...":"Clone this Nsite to my own Npub !"),9,cs),l[18]||(l[18]=e("p",{class:"mt-2 text-xs text-[var(--muted)]"}," This uses your Nostr browser signer and always publishes the clone as your root site with the template `muse` tag. ",-1)),s(T)?(i(),d("a",{key:0,href:s(T),target:"_blank",rel:"noopener noreferrer",class:"mt-3 inline-flex rounded-lg border border-emerald-300 bg-emerald-600 px-4 py-2 text-sm font-semibold text-white"}," Open my cloned Nsite ",8,ms)):P("",!0),s(_)?(i(),d("p",ps,x(s(_)),1)):P("",!0)])),s(r)?(i(),d("p",fs,x(s(r)),1)):P("",!0),e("div",hs,[s(m)!=="choice"?(i(),d("button",{key:0,class:"rounded-lg border border-[var(--line)] px-4 py-2 text-sm",onClick:l[5]||(l[5]=N=>m.value="choice")}," Back ")):P("",!0),e("button",{class:"rounded-lg border border-[var(--line)] px-4 py-2 text-sm",onClick:ae}," Close ")])])])):P("",!0)],64))}},ys={class:"mt-12 border-t border-[var(--line)] bg-[var(--surface)]/70"},vs={class:"mx-auto grid max-w-6xl gap-8 px-4 py-8 sm:px-6 lg:grid-cols-[1.5fr_0.7fr_0.9fr] lg:px-8"},gs={class:"mt-2 text-xl font-semibold tracking-tight"},xs=["href"],ws={class:"flex flex-col items-start justify-center gap-2 place-self-start sm:items-center sm:place-self-center"},ks={key:0,class:"inline-flex items-center","aria-label":"PayPal payment option"},_s={class:"mt-3 grid grid-cols-2 gap-x-6 gap-y-2 text-sm font-medium md:grid-cols-3"},Ss={class:"border-t border-[var(--line)]"},Ns={class:"mx-auto flex max-w-6xl flex-col gap-3 px-4 py-4 text-xs text-[var(--muted)] sm:px-6 md:flex-row md:items-center md:justify-between lg:px-8"},Cs={class:"md:ml-auto"},Rs={__name:"ShopFooter",props:{merchantProfile:{type:Object,default:null},merchantNpub:{type:String,default:""}},setup(t){const n=t,a=new Date().getFullYear(),m=L(()=>n.merchantProfile?.name||"Nostr Boutique"),f=L(()=>{const c=String(n.merchantProfile?.website||n.merchantProfile?.url||"").trim();return c?c.startsWith("http://")||c.startsWith("https://")?c:`https://${c}`:""}),y=L(()=>f.value?f.value.replace(/^https?:\/\//,""):""),u=L(()=>String(n.merchantProfile?.paypal||"").trim().length>0);return(c,r)=>{const h=ke;return i(),d("footer",ys,[e("div",vs,[e("div",null,[r[0]||(r[0]=e("p",{class:"text-xs font-semibold uppercase tracking-[0.18em] text-[var(--muted)]"},"Nostr Boutique",-1)),e("h2",gs,x(s(m)),1),s(f)?(i(),d("a",{key:0,href:s(f),target:"_blank",rel:"noopener noreferrer",class:"mt-3 inline-flex text-sm font-medium underline underline-offset-4 hover:text-[var(--text)]"},x(s(y)),9,xs)):P("",!0)]),e("div",ws,[r[2]||(r[2]=e("div",{class:"inline-flex items-center","aria-label":"Bitcoin payment option"},[e("img",{src:It,alt:"Pay with Bitcoin",class:"h-9 w-auto"})],-1)),s(u)?(i(),d("div",ks,[...r[1]||(r[1]=[e("img",{src:Tt,alt:"Pay with PayPal",class:"h-8 w-auto"},null,-1)])])):P("",!0)]),e("div",null,[r[8]||(r[8]=e("p",{class:"text-xs font-semibold uppercase tracking-[0.18em] text-[var(--muted)]"},"Browse",-1)),e("div",_s,[$(h,{to:"/"},{default:C(()=>[...r[3]||(r[3]=[M("Home",-1)])]),_:1}),$(h,{to:"/products"},{default:C(()=>[...r[4]||(r[4]=[M("Products",-1)])]),_:1}),$(h,{to:"/categories"},{default:C(()=>[...r[5]||(r[5]=[M("Categories",-1)])]),_:1}),$(h,{to:"/contact"},{default:C(()=>[...r[6]||(r[6]=[M("About",-1)])]),_:1}),$(h,{to:"/cart"},{default:C(()=>[...r[7]||(r[7]=[M("Cart",-1)])]),_:1})])])]),e("div",Ss,[e("div",Ns,[e("div",null,[e("p",null,x(s(a))+" "+x(s(m))+". Powered by Nostr.",1),r[9]||(r[9]=e("p",{class:"mt-1"},"Decentralized products, merchant-owned identity.",-1))]),e("div",Cs,[$(bs,{embedded:""})])])])])}}};export{Ts as S,Rs as _,zt as a,ye as f,Ut as g,Is as u};