1import{A as U,_ as G}from"./CRhe6qZW.js";import{b as J,_ as K,a as Q}from"./C2833TtA.js";import{_ as Z}from"./CVc8Sm9h.js";import{k as X,H as ee,aT as te,G as se,B as le,r as y,y as ie,z as p,w as l,o as d,a as e,b as i,d as u,n,c as B,F as z,v as A,aL as ne,ax as oe,aQ as ae,aR as re,t as b,I as C,bZ as ue}from"#entry";import{_ as ce}from"./BdfdqCcb.js";import{_ as de}from"./tXH8QJGP.js";import{_ as me}from"./GN0HIJFg.js";import{c as pe}from"./D1KwLR_s.js";import{u as D}from"./2U47Xr0F.js";import{D as fe}from"./CERSzrn-.js";import{L as E}from"./gl12N-fQ.js";import"./CO82wRUX.js";import"./-Zyx4lTc.js";const _e={class:"w-full px-6 pb-12 2xl:px-40 lg:px-20 lg:pb-16"},ve={class:"grid grid-cols-1 md:grid-cols-2 mt-12 gap-y-8 gap-x-6"},ge={class:"flex-1 flex items-center justify-center"},xe={class:"flex flex-1 flex-col lg:max-w-md items-center justify-center w-full"},we={class:"max-w-md"},he={class:"w-full space-y-4 mt-4"},ye=["src"],be={class:"text-sm"},Ce={class:"font-semibold text-xl"},ke={class:"absolute bottom-2 right-2 size-4 lg:bottom-4 lg:right-4 lg:size-6 rounded-full bg-gray-500"},Ie={class:"mt-4 text-base font-semibold"},qe=X({__name:"print",async setup($e){let f,k;const{toast:_}=ee(),{user:v}=te(),I=se(),{data:h}=([f,k]=le(()=>D("/api/reve/reveal",{query:{named:!0}},"$k1ItKDpDrW")),f=await f,k(),f),{data:m,refresh:S}=D("/api/mint/status",{query:{slug:"revisiting-elsewhere-print"}},"$lb1VJru17I"),c=y([]),a=y(null),g=ie(()=>h.value?h.value.filter(s=>!c.value.includes(s.reveId)):[]);function P(s){c.value.includes(s)?c.value=c.value.filter(t=>t!==s):c.value=[...c.value,s]}async function R(){if(!v.value||a.value||!m.value)return;if(m.value.access!=="whitelisted"){_({title:"Error",description:"You can not buy this item at this time."});return}const t=await(await pe(v.value.walletType)).sendPayment({address:m.value.receiveAddress,amount:BigInt(m.value.priceSats)*BigInt(g.value.length)});a.value="bitcoin",$fetch("/api/reve/printBitcoin",{body:{txid:t,slug:"revisiting-elsewhere-print",ids:g.value.map(r=>r.reveId)},method:"POST"}).then(()=>{I.push("/ai/revisiting-elsewhere/mint/thank-you?physical=true&details=true"),S()},r=>{console.log(r.statusMessage),_({title:"Error",description:r.statusMessage||r})}).finally(()=>{a.value=null})}async function N(){v.value&&(a.value||m.value&&(a.value="fiat",$fetch("/api/reve/stripePrint",{body:{recipientAddress:v.value.ordinalsAddress,slug:"revisiting-elsewhere-print",ids:g.value.map(s=>s.reveId)},method:"POST"}).then(s=>{s.session.url?window.location.href=s.session.url:_({title:"Error",description:"Failed to initiate payment session"})},s=>{_({title:"Error",description:s.statusMessage||s})}).finally(()=>{a.value=null})))}const x=y(!1);async function F(){await I.push("/ai/revisiting-elsewhere/mint/thank-you")}return(s,t)=>{const r=G,$=Q,L=K,W=J,w=Z,q=re,M=ae,V=ce,H=ue,O=de,Y=ne,j=me;return d(),p(j,null,{default:l(()=>[e("main",_e,[t[12]||(t[12]=e("section",null,[e("div",{class:"mb-10 w-screen lg:-mx-20 2xl:-mx-40 -mx-6 bg-[#243329] py-3 text-center text-2xl font-semibold uppercase tracking-wider text-white md:py-4 lg:text-6xl"}," Revisiting Elsewhere "),e("div",{class:"text-center mt-12"},[e("h1",{class:"uppercase lg:text-3xl font-semibold mb-4 text-2xl"}," Bring Revisiting Elsewhere into your world. "),e("p",{class:"text-lg max-w-3xl mx-auto mt-8"},[u(" A museum-quality print created "),e("span",{class:"font-bold"},"exclusively for collectors of Revisiting Elsewhere."),u(" Each reproduction is unique, a tangible echo of the work you hold on-chain. ")])])],-1)),e("section",null,[e("div",ve,[e("div",ge,[i(W,{class:"aspect-square max-w-md",plugins:[n(U)({delay:3e3})],opts:{loop:!0}},{default:l(()=>[i(L,{class:""},{default:l(()=>[i($,{class:"h-full w-full"},{default:l(()=>[i(r,{src:"/videos/collections/revisiting-elsewhere/mockup.mp4",index:0})]),_:1}),(d(),B(z,null,A(4,(o,T)=>i($,{key:o,class:"h-full w-full"},{default:l(()=>[i(r,{src:`/images/collections/revisiting-elsewhere/mockup${o}.webp`,index:T+1},null,8,["src","index"])]),_:2},1024)),64))]),_:1})]),_:1},8,["plugins"])]),e("div",xe,[e("div",we,[t[4]||(t[4]=e("p",null,[u(" Complete your journey with a handcrafted print designed to mirror the spirit of your digital piece. This is the "),e("span",{class:"font-semibold"},"only moment to claim a physical counterpart"),u(", once the window closes, it will never be produced again. ")],-1)),t[5]||(t[5]=e("p",{class:"mt-4 font-semibold"}," Includes: ",-1)),t[6]||(t[6]=e("ul",{class:"de dec list-disc pl-4 mt-4"},[e("li",null," Archival pigment print with wooden floater frame "),e("li",null,' Intimate 30 Ã 30 cm format (~12") '),e("li",null," Worldwide shipping included "),e("li",null," Exclusive 1 / 1 reproduction â claimable once. ")],-1)),t[7]||
1(t[7]=e("p",{class:"font-semibold text-lg mt-8"},[u(" Price: 0.0028 BTC "),e("span",{class:"font-normal"},"(299$)")],-1)),e("p",he,[i(w,{onClick:t[0]||(t[0]=o=>x.value=!0),size:"xl",class:"bg-[#243329] hover:bg-[#243329]/80 text-white text-base uppercase w-full"},{default:l(()=>[...t[2]||(t[2]=[u("CLAIM YOUR PRINT",-1)])]),_:1}),i(w,{onClick:F,size:"xl",variant:"outline",class:"text-base w-full"},{default:l(()=>[...t[3]||(t[3]=[u("No, thank you",-1)])]),_:1})])])])])]),i(Y,{open:n(x),"onUpdate:open":t[1]||(t[1]=o=>oe(x)?x.value=o:null)},{default:l(()=>[i(O,{class:"safiro"},{default:l(()=>[i(M,{class:""},{default:l(()=>[i(q,{class:""},{default:l(()=>[...t[8]||(t[8]=[u(" Select the memories you wish to bring home. ",-1)])]),_:1})]),_:1}),t[11]||(t[11]=e("div",null,null,-1)),(d(!0),B(z,null,A(n(h),(o,T)=>(d(),p(V,{onClick:()=>P(o.reveId),key:o.reveId,class:"mt-4 relative flex flex-row gap-6 bg-muted items-center"},{default:l(()=>[e("img",{src:`https://s3.vivid.gallery/website/collections/revisiting-elsewhere/mash/${o.reveId}.webp`,class:"size-24",alt:""},null,8,ye),e("div",null,[e("p",be,"Revisiting Elsewhere #"+b(o.reveId)+" now titled",1),e("p",Ce,b(o.selectedTitle),
11)]),e("div",ke,[n(c).includes(o.reveId)?C("",!0):(d(),p(n(fe),{key:0,class:"lg:size-6 size-4 scale-[3]",color:"#243329"}))])]),_:2},1032,["onClick"]))),128)),e("div",Ie," Total to send: "+b(n(m)?.priceSats*n(g).length/10**8)+" BTC ",1),i(H,{class:"sm:flex-col gap-4 mt-4"},{default:l(()=>[e("div",null,[i(w,{onClick:R,disabled:n(a)!==null,size:"xl",class:"bg-orange-400 hover:bg-orange-500 text-white text-xl w-full"},{default:l(()=>[n(a)==="bitcoin"?(d(),p(n(E),{key:0,class:"mr-2 size-4 animate-spin"})):C("",!0),t[9]||(t[9]=e("span",null,"PAY WITH BITCOIN",-1))]),_:1},8,["disabled"])]),e("div",null,[i(w,{onClick:N,disabled:n(a)!==null,variant:"outline",size:"xl",class:"text-xl w-full"},{default:l(()=>[n(a)==="fiat"?(d(),p(n(E),{key:0,class:"mr-2 size-4 animate-spin"})):C("",!0),t[10]||(t[10]=e("span",null,"PAY WITH FIAT",-1))]),_:1},8,["disabled"])])]),_:1})]),_:1})]),_:1},8,["open"])])]),_:1})}}});export{qe as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.