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)),r(m)==="choice"?(d(),c("div",Ot,[t("button",{class:"rounded-lg border border-violet-300 bg-violet-600 px-4 py-2 text-sm font-semibold text-white",onClick:_e}," I’m new here "),t("button",{class:"rounded-lg border border-[var(--line)] px-4 py-2 text-sm font-semibold",onClick:ke}," I’m already on Nostr ")])):r(m)==="new"?(d(),c("div",At,[l[15]||(l[15]=t("label",{class:"text-xs font-semibold uppercase tracking-[0.1em] text-[var(--muted)]"},"Your display name",-1)),X(t("input",{"onUpdate:modelValue":l[1]||(l[1]=S=>Z(f)?f.value=S: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),[[be,r(f)]]),t("button",{class:"mt-3 rounded-lg border border-violet-300 bg-violet-600 px-4 py-2 text-sm font-semibold text-white",onClick:Se}," Generate my keys "),r(b)?(d(),c("div",Lt,[l[13]||(l[13]=t("p",{class:"font-semibold"},"Important: We do not store these keys.",-1)),l[14]||(l[14]=t("p",{class:"mt-1"},"If you lose them, you can’t access this site anymore. You can always create a new one.",-1)),t("p",Ut,[l[7]||(l[7]=t("span",{class:"font-semibold"},"npub:",-1)),l[8]||(l[8]=E()),t("span",Kt,_(r(b).npub),1)]),t("p",zt,[l[9]||(l[9]=t("span",{class:"font-semibold"},"nsec:",-1)),l[10]||(l[10]=E()),t("span",qt,_(r(b).nsec),1)]),t("div",Ft,[t("button",{class:"rounded border border-amber-300 bg-white px-2 py-1 text-xs",onClick:l[2]||(l[2]=S=>re(r(b).npub))},"Copy npub"),t("button",{class:"rounded border border-amber-300 bg-white px-2 py-1 text-xs",onClick:l[3]||(l[3]=S=>re(r(b).nsec))},"Copy nsec")]),t("label",Ht,[X(t("input",{"onUpdate:modelValue":l[4]||(l[4]=S=>Z(i)?i.value=S:null),type:"checkbox"},null,512),[[qe,r(i)]]),l[11]||(l[11]=t("span",null,"I saved these keys securely.",-1))]),t("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:r(u),onClick:Ne},_(r(u)?"Publishing and cloning...":"Publish profile and clone now"),9,Dt),r(u)?(d(),c("div",Vt,[t("img",{src:ce,alt:"",class:"h-5 w-5 object-contain","aria-hidden":"true"}),l[12]||(l[12]=t("span",null,"Deploying and running on Nostr...",-1))])):T("",!0)])):T("",!0)])):r(m)==="new-success"?(d(),c("div",Yt,[l[17]||(l[17]=t("p",{class:"font-semibold text-emerald-200"},"Your sovereign shop clone is live.",-1)),t("p",Gt,[l[16]||(l[16]=E("New npub: ",-1)),t("span",Wt,_(r(b)?.npub),1)]),t("p",Jt,"Published relays: "+_(r(x).join(", ")),1),t("a",{href:r(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,Qt)])):(d(),c("div",Xt,[t("button",{class:"rounded-lg border border-violet-300 bg-violet-500 px-4 py-2 text-sm font-semibold text-white",disabled:r(w),onClick:Ce},_(r(w)?"Cloning with your signer...":"Clone this Nsite to my own Npub !"),9,Zt),l[18]||(l[18]=t("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)),r(I)?(d(),c("a",{key:0,href:r(I),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,es)):T("",!0),r(k)?(d(),c("p",ts,_(r(k)),1)):T("",!0)])),r(n)?(d(),c("p",ss,_(r(n)),1)):T("",!0),t("div",os,[r(m)!=="choice"?(d(),c("button",{key:0,class:"rounded-lg border border-[var(--line)] px-4 py-2 text-sm",onClick:l[5]||(l[5]=S=>m.value="choice")}," Back ")):T("",!0),t("button",{class:"rounded-lg border border-[var(--line)] px-4 py-2 text-sm",onClick:oe}," Close ")])])])):T("",!0)],64))}},rs={class:"mt-12 border-t border-[var(--line)] bg-[var(--surface)]/70"},as={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"},ls={class:"mt-2 text-xl font-semibold tracking-tight"},is=["href"],us={class:"flex flex-col items-center justify-center gap-2 place-self-center"},ds={key:0,class:"inline-flex items-center","aria-label":"PayPal payment option"},cs={class:"mt-3 grid grid-cols-2 gap-x-6 gap-y-2 text-sm font-medium md:grid-cols-3"},ms={class:"border-t border-[var(--line)]"},ps={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"},fs={class:"md:ml-auto"},ws={__name:"ShopFooter",props:{merchantProfile:{type:Object,default:null},merchantNpub:{type:String,default:""}},setup(e){const s=e,a=new Date().getFullYear(),m=O(()=>s.merchantProfile?.name||"Nostr Boutique"),f=O(()=>{const u=String(s.merchantProfile?.website||s.merchantProfile?.url||"").trim();return u?u.startsWith("http://")||u.startsWith("https://")?u:`https://${u}`:""}),b=O(()=>f.value?f.value.replace(/^https?:\/\//,""):""),i=O(()=>String(s.merchantProfile?.paypal||"").trim().length>0);return(u,n)=>{const h=ye;return d(),c("footer",rs,[t("div",as,[t("div",null,[n[0]||(n[0]=t("p",{class:"text-xs font-semibold uppercase tracking-[0.18em] text-[var(--muted)]"},"Nostr Boutique",-1)),t("h2",ls,_(r(m)),1),r(f)?(d(),c("a",{key:0,href:r(f),target:"_blank",rel:"noopener noreferrer",class:"mt-3 inline-flex text-sm font-medium underline underline-offset-4 hover:text-[var(--text)]"},_(r(b)),9,is)):T("",!0)]),t("div",us,[n[2]||(n[2]=t("div",{class:"inline-flex items-center","aria-label":"Bitcoin payment option"},[t("img",{src:gt,alt:"Pay with Bitcoin",class:"h-9 w-auto"})],-1)),r(i)?(d(),c("div",ds,[...n[1]||(n[1]=[t("img",{src:xt,alt:"Pay with PayPal",class:"h-8 w-auto"},null,-1)])])):T("",!0)]),t("div",null,[n[8]||(n[8]=t("p",{class:"text-xs font-semibold uppercase tracking-[0.18em] text-[var(--muted)]"},"Browse",-1)),t("div",cs,[P(h,{to:"/"},{default:C(()=>[...n[3]||(n[3]=[E("Home",-1)])]),_:1}),P(h,{to:"/products"},{default:C(()=>[...n[4]||(n[4]=[E("Products",-1)])]),_:1}),P(h,{to:"/categories"},{default:C(()=>[...n[5]||(n[5]=[E("Categories",-1)])]),_:1}),P(h,{to:"/contact"},{default:C(()=>[...n[6]||(n[6]=[E("About us",-1)])]),_:1}),P(h,{to:"/cart"},{default:C(()=>[...n[7]||(n[7]=[E("Cart",-1)])]),_:1})])])]),t("div",ms,[t("div",ps,[t("div",null,[t("p",null,_(r(a))+" "+_(r(m))+". Powered by Nostr.",1),n[9]||(n[9]=t("p",{class:"mt-1"},"Decentralized products, merchant-owned identity.",-1))]),t("div",fs,[P(ns,{embedded:""})])])])])}}};export{xs as S,ws as _,Et as a,de as f,Pt as g,gs as u};