PageSourceSearch

https://orivis.ai/_app/immutable/nodes/15.DdkF06wG.js

js orivis.ai collected 2026-10-05 14:16:50 UTC 14,348 bytes, 5 lines download raw bytes

1import"../chunks/CWj6FrbW.js";import{a as _,c as m,d as t,aj as we,r,p as De,B as Ze,L as J,f as se,t as b,b as Je,G as s,K as Ee,s as n,ah as Q}from"../chunks/HisrgPqw.js";import{p as Le,i as F,s as Qe,a as Xe}from"../chunks/yfmgMsFs.js";import{g as X,d as er,s as i,b as rr}from"../chunks/BUVR0i-D.js";import{c as tr,d as Ae,$ as Y,g as ar,e as sr,f as nr,h as ir,i as or,I as cr,j as Be,k as ne,s as lr,m as Me,B as Ne,n as W}from"../chunks/bQLRoVdD.js";import{s as vr}from"../chunks/3X9DI5v9.js";import"../chunks/CMAPYpAq.js";import{w as Re}from"../chunks/DPU2VCqv.js";import{C as dr}from"../chunks/DzF02JRB.js";var ur=m("<div><!></div>");function pr(g,p){let e=Le(p,"class",3,""),S=Le(p,"style",3,"");var x=ur();tr(x,()=>({class:`card ${e()??""}`,style:S(),...p.id?{id:p.id}:{}}),void 0,void 0,void 0,"svelte-1ad6qoz");var T=t(x);vr(T,()=>p.children??we),r(x),_(g,x)}const hr="https://payment.orivis.ai/__/",Fe=hr;async function _r(g,p=3e4){let e=()=>{};const S=new Promise((x,T)=>{e=ir(g,j=>{if(!j.exists()){T(new Error(X(Y)("errors.checkoutNotFound"))),e();return}const U=j.data();if("checkout_id"in U&&typeof U.checkout_id=="string"){x({ok:!0,data:{...U,id:j.id}}),e();return}if("error"in U){console.error(U.error),T(new Error(U.error)),e();return}})}).catch(x=>(console.error(X(Y)("errors.errorCreatingCheckout"),x),{ok:!1,error:x}));return await or(S,p,e)}async function Se(){const g=new URL("checkout-return",Fe);g.searchParams.set("status","success");const p=g.toString();g.searchParams.set("status","cancel");const e=g.toString();return{success_url:p,cancel_url:e}}async function mr(g,p){const e=async()=>await new Promise(j=>setTimeout(j,0)),{cancel_url:S,success_url:x}=await Se(),T=new URL("checkout",Fe);if(T.searchParams.set("cid",g.id),g.status==="completed")return p.location.href=x,await e();if(g.status==="pending")return p.location.href=T.toString(),await e();if(g.status==="canceled")return p.location.href=S,await e();throw g.status==="failed"?new Error(X(Y)("errors.checkoutFailed")):new Error(X(Y)("errors.checkoutNotFound"))}async function fr(g,p){const e=await Ae();if(!e)return{ok:!1,error:X(Y)("common.pleaseSignInFirst")};const S={...p,uid:e.uid,items:g,created_at:nr(),site:window.location.hostname,payment_provider:(p==null?void 0:p.payment_provider)??"950729f3c537d4e36f2b191e7113311a1f0
1abfb6b542bcfc07224cae1bbe660a"},x=ar("checkouts"),T=await sr(x,S);return await _r(T,6e4)}var gr=m('<span class="price-original svelte-1hrotn9"> </span>'),kr=m('<span class="discount-tag svelte-1hrotn9"> </span>'),wr=m('<div class="order-head svelte-1hrotn9"><span class="order-name svelte-1hrotn9"> </span> <span class="order-price svelte-1hrotn9"><!> </span></div> <div class="order-sub svelte-1hrotn9"><span> <span class="per-ticket svelte-1hrotn9"> </span></span> <!></div>',1),br=m('<span class="btn-content svelte-1hrotn9"><svg class="btn-icon svelte-1hrotn9" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="2" y="5" width="20" height="14" rx="2"></rect><path d="M2 10h20"></path></svg> </span>'),xr=m('<span class="btn-content svelte-1hrotn9"><svg class="btn-icon svelte-1hrotn9" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="12" cy="12" r="9"></circle><path d="M9.5 9h4a2 2 0 0 1 0 4h-4v3.5M9.5 9v7.5M10.5 7.5v1.5M10.5 16.5V18"></path></svg> </span>'),Tr=m("<!> <!>",1),yr=m('<li class="svelte-1hrotn9"><svg class="check-icon svelte-1hrotn9" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="12" cy="12" r="10"></circle><path d="M8 12.5l2.5 2.5 5-5.5"></path></svg> <span> </span></li>'),Cr=m('<ul class="about-list svelte-1hrotn9"></ul>'),$r=m('<span class="row-tag special svelte-1hrotn9"> </span>'),Pr=m('<span class="row-tag svelte-1hrotn9"> </span>'),Er=m('<span class="price-original svelte-1hrotn9"> </span>'),Lr=m('<span class="discount-tag svelte-1hrotn9"> </span>'),Br=m('<span class="row-bestvalue svelte-1hrotn9"><svg viewBox="0 0 24 24" fill="currentColor" aria-hidden="true" class="svelte-1hrotn9"><path d="M12 2l2.9 6.1 6.6.8-4.9 4.5 1.3 6.6L12 17.8 6.1 20.6l1.3-6.6L2.5 8.9l6.6-.8L12 2Z"></path></svg> </span>'),Mr=m('<button type="button" role="radio"><!> <span class="row-radio svelte-1hrotn9" aria-hidden="true"></span> <span class="row-info svelte-1hrotn9"><span class="row-name svelte-1hrotn9"> </span> <span class="row-meta svelte-1hrotn9"> <span class="per-ticket svelte-1hrotn9"> </span></span></span> <span class="row-price svelte-1hrotn9"><span class="row-price-line svelte-1hrotn9"><!> <span class="row-price-now svelte-1hrotn9"> </span></span> <!></span> <!></button>'),Nr=m('<div class="order-line svelte-1hrotn9"><dt class="svelte-1hrotn9"> </dt> <dd class="order-discount svelte-1hrotn9"> </dd></div>'),Rr=m('<aside class="order-panel svelte-1hrotn9"><h2 class="order-title svelte-1hrotn9"> </h2> <div class="order-item svelte-1hrotn9"><span class="order-item-name svelte-1hrotn9"> </span> <span class="order-item-meta svelte-1hrotn9"> <span class="per-ticket svelte-1hrotn9"> </span></span></div> <div class="panel-divider svelte-1hrotn9"></div> <dl class="order-breakdown svelte-1hrotn9"><div class="order-line svelte-1hrotn9"><dt class="svelte-1hrotn9"> </dt> <dd class="svelte-1hrotn9"> </dd></div> <!></dl> <div class="panel-divider svelte-1hrotn9"></div> <div class="order-total svelte-1hrotn9"><span class="order-total-label svelte-1hrotn9"> </span> <span class="order-total-amount svelte-1hrotn9"> </span></div> <!> <div class="panel-divider svelte-1hrotn9" aria-hidden="true"></div> <h3 class="about-title svelte-1hrotn9"> </h3> <!></aside>'),Ar=m('<h3 class="about-title svelte-1hrotn9"> </h3> <!>',1),Fr=m('<div class="cta-bar svelte-1hrotn9"><!> <!></div>'),Sr=m('<!> <div class="container svelte-1hrotn9"><div class="layout svelte-1hrotn9"><div class="layout-main svelte-1hrotn9"><div class="intro-head svelte-1hrotn9"><a href="/" class="back-link svelte-1hrotn9"><!></a> <h1 class="intro-title svelte-1hrotn9"> </h1></div> <div class="intro-meta svelte-1hrotn9"><p class="intro-subtitle svelte-1hrotn9"> </p> <span class="intro-pill svelte-1hrotn9"><svg class="info-icon svelte-1hrotn9" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="12" cy="12" r="10"></circle><path d="M12 11v5M12 8h.01"></path></svg> </span></div> <div class="packs svelte-1hrotn9" role="radiogroup"></div></div> <!></div> <!> <!></div>',1);function Vr(g,p){De(p,!0);const e=()=>Xe(Y,"$_",S),[S,x]=Qe();let T=Ee(!1);Ze(()=>void J(T,!1));let j=Ee(null);const U=(y,q,G)=>h=>{G??(G="2848dfe2860dd1ca86e3f46a3424779f8b09f560ee59ce70af03c3f6416680d5");const a=async o=>{if(!await Ae()){W(e()("pricing.loginRequired"),"error"),location.hash="#login",o.close();return}o.document.title=e()("common.redirectingToCheckout"),o.document.body.innerHTML=`
2				<div style="display: flex; justify-content: center; align-items: center; height: 100vh;">
3					<h1 style="font-size: 2rem; color: var(--color-text-on-light);">${e()("common.redirectingMessage")}</h1>
4				</div>
5			`,J(T,!0);try{const w=await Se(),v=await fr([{name:y,quantity:q}],{...w,...G?{payment_provider:G}:{}});if(!v.ok||!v.value.ok){const f=v.ok?v.value.ok?"UNREACHABLE":v.value.error:e()("pricing.errors.timeout");throw typeof f=="string"?W(f,"error"):f instanceof Error?(console.error(f),W(e()("common.unexpectedError"),"error")):W(e()("common.unknownError"),"error"),new Error(e()("pricing.errors.checkoutFailed")+f)}mr(v.value.data,o).catch(()=>{o&&!o.closed&&o.close(),W(e()("pricing.errors.sessionFailed"),"error")})}catch(w){console.error("An error occurred while creating the checkout session.",w),o&&!o.closed&&o.close()}finally{J(T,!1)}},c=window.open("about:blank","_blank");if(!c){W(e()("pricing.errors.popupBlocked"),"error");return}a(c)},be=2.99,ie=y=>(y*be).toFixed(2),Ue=(y,q)=>(y*be-q).toFixed(2),oe=(y,q)=>(y/q).toFixed(2);let ee=Q(()=>[...Re.readyState&&Re.firstTime?[{name:e()("pricing.plans.firstTime.name"),itemName:"Ticket",price:.99,credits:3,discount:89,popular:!1,linkTarget:"first-time"}]:[],{name:e()("pricing.plans.pack35.name"),itemName:"Ticket",price:88.99,credits:35,discount:15,popular:!0,linkTarget:"thirty-times"},{name:e()("pricing.plans.pack10.name"),itemName:"Ticket",price:26.99,credits:10,discount:10,popular:!1,linkTarget:"ten-times"},{name:e()("pricing.plans.pack5.name"),itemName:"Ticket",price:13.99,credits:5,discount:6,popular:!1,linkTarget:"five-times"},{name:e()("pricing.plans.single.name"),itemName:"Ticket",price:2.99,credits:1,discount:null,popular:!1,linkTarget:"one-time"}]),k=Q(()=>s(ee).find(y=>y.linkTarget===s(j))??s(ee).find(y=>y.popular)??s(ee)[0]);const Ie="0a7e7380e057ddc1ff86fcbe04946f16fc60b2ba3cc7612ef30305685dbca8e8",je=6;let qe=Q(()=>[e()("pricing.aboutTickets.immediate"),e()("pricing.aboutTickets.expiry")]);var xe=Sr(),Te=se(xe);dr(Te,{get show(){return s(T)},set show(y){J(T,y,!0)}});var ye=n(Te,2);{const y=(h,a=we)=>{var c=wr(),o=se(c),u=t(o),w=t(u,!0);r(u);var v=n(u,2),f=t(v);{var M=L=>{var $=gr(),A=t($,!0);r($),b(I=>i(A,I),[()=>e()("pricing.plans.price",{values:{price:ie(a().credits)}})]),_(L,$)};F(f,L=>{a().discount&&L(M)})}var N=n(f);r(v),r(o);var E=n(o,2),C=t(E),R=t(C),z=n(R),K=t(z,!0);r(z),r(C);var H=n(C,2);{var V=L=>{var $=kr(),A=t($,!0);r($),b(I=>i(A,I),[()=>e()("pricing.plans.discount",{values:{discount:a().discount}})]),_(L,$)};F(H,L=>{a().discount&&L(V)})}r(E),b((L,$,A)=>{i(w,a().name),i(N,` ${L??""}`),i(R,`${$??""} `),i(K,A)},[()=>e()("pricing.plans.price",{values:{price:a().price}}),()=>e()("pricing.plans.ticketCount",{values:{quantity:a().credits}}),()=>e()("pricing.plans.perTicket",{values:{price:oe(a().price,a().credits)}})]),_(h,c)},q=(h,a=we)=>{var c=Tr(),o=se(c);{let v=Q(()=>U(a().itemName,a().credits));
5Ne(o,{class:"purchase-button",size:"medium",get onclick(){return s(v)},children:(f,M)=>{var N=br(),E=n(t(N));r(N),b(C=>i(E,` ${C??""}`),[()=>e()("pricing.buttons.payWithCard")]),_(f,N)},$$slots:{default:!0}})}var u=n(o,2);{var w=v=>{{let f=Q(()=>U(a().itemName,a().credits,Ie));Ne(v,{class:"purchase-button crypto-button",size:"medium",get onclick(){return s(f)},children:(M,N)=>{var E=xr(),C=n(t(E));r(E),b(R=>i(C,` ${R??""}`),[()=>e()("pricing.buttons.payWithCrypto")]),_(M,E)},$$slots:{default:!0}})}};F(u,v=>{a().price>je&&v(w)})}_(h,c)},G=h=>{var a=Cr();Be(a,21,()=>s(qe),Me,(c,o)=>{var u=yr(),w=n(t(u),2),v=t(w,!0);r(w),r(u),b(()=>i(v,s(o))),_(c,u)}),r(a),_(h,a)};var ce=t(ye),le=t(ce),ve=t(le),re=t(ve),ze=t(re);cr(ze,{icon:"arrowLeft",color:"white",width:18,height:18}),r(re);var Ce=n(re,2),He=t(Ce,!0);r(Ce),r(ve);var de=n(ve,2),ue=t(de),Oe=t(ue,!0);r(ue);var $e=n(ue,2),Ke=n(t($e));r($e),r(de);var pe=n(de,2);Be(pe,21,()=>s(ee),Me,(h,a)=>{var c=Mr();let o;var u=t(c);{var w=d=>{var l=$r(),B=t(l,!0);r(l),b(P=>i(B,P),[()=>e()("pricing.plans.special")]),_(d,l)},v=d=>{var l=Pr(),B=t(l,!0);r(l),b(P=>i(B,P),[()=>e()("pricing.plans.popular")]),_(d,l)};F(u,d=>{s(a).linkTarget==="first-time"?d(w):s(a).popular&&d(v,1)})}var f=n(u,4),M=t(f),N=t(M,!0);r(M);var E=n(M,2),C=t(E),R=n(C),z=t(R,!0);r(R),r(E),r(f);var K=n(f,2),H=t(K),V=t(H);{var L=d=>{var l=Er(),B=t(l,!0);r(l),b(P=>i(B,P),[()=>e()("pricing.plans.price",{values:{price:ie(s(a).credits)}})]),_(d,l)};F(V,d=>{s(a).discount&&d(L)})}var $=n(V,2),A=t($,!0);r($),r(H);var I=n(H,2);{var he=d=>{var l=Lr(),B=t(l,!0);r(l),b(P=>i(B,P),[()=>e()("pricing.plans.discount",{values:{discount:s(a).discount}})]),_(d,l)};F(I,d=>{s(a).discount&&d(he)})}r(K);var te=n(K,2);{var _e=d=>{var l=Br(),B=n(t(l));r(l),b(P=>i(B,` ${P??""}`),[()=>e()("pricing.plans.bestValue")]),_(d,l)};F(te,d=>{s(a).popular&&d(_e)})}r(c),b((d,l,B)=>{var P,O;o=lr(c,1,"pack-row svelte-1hrotn9",null,o,{selected:((P=s(k))==null?void 0:P.linkTarget)===s(a).linkTarget,special:s(a).linkTarget==="first-time"}),ne(c,"aria-checked",((O=s(k))==null?void 0:O.linkTarget)===s(a).linkTarget),ne(c,"id",s(a).linkTarget),i(N,s(a).name),i(C,`${d??""} `),i(z,l),i(A,B)},[()=>e()("pricing.plans.ticketCount",{values:{quantity:s(a).credits}}),()=>e()("pricing.plans.perTicket",{values:{price:oe(s(a).price,s(a).credits)}}),()=>e()("pricing.plans.price",{values:{price:s(a).price}})]),rr("click",c,()=>{J(j,s(a).linkTarget,!0)}),_(h,c)}),r(pe),r(le);var Ge=n(le,2);{var Ve=h=>{var a=Rr(),c=t(a),o=t(c,!0);r(c);var u=n(c,2),w=t(u),v=t(w,!0);r(w);var f=n(w,2),M=t(f),N=n(M),E=t(N,!0);r(N),r(f),r(u);var C=n(u,4),R=t(C),z=t(R),K=t(z,!0);r(z);var H=n(z,2),V=t(H,!0);r(H),r(R);var L=n(R,2);{var $=O=>{var D=Nr(),Z=t(D),me=t(Z,!0);r(Z);var ae=n(Z,2),fe=t(ae);r(ae),r(D),b((ge,ke)=>{i(me,ge),i(fe,`−${ke??""}`)},[()=>e()("pricing.order.discount"),()=>e()("pricing.plans.price",{values:{price:Ue(s(k).credits,s(k).price)}})]),_(O,D)};F(L,O=>{s(k).discount&&O($)})}r(C);var A=n(C,4),I=t(A),he=t(I,!0);r(I);var te=n(I,2),_e=t(te,!0);r(te),r(A);var d=n(A,2);q(d,()=>s(k));var l=n(d,4),B=t(l,!0);r(l);var P=n(l,2);G(P),r(a),b((O,D,Z,me,ae,fe,ge,ke)=>{i(o,O),i(v,s(k).name),i(M,`${D??""} `),i(E,Z),i(K,me),i(V,ae),i(he,fe),i(_e,ge),i(B,ke)},[()=>e()("pricing.orderTitle"),()=>e()("pricing.plans.ticketCount",{values:{quantity:s(k).credits}}),()=>e()("pricing.plans.perTicket",{values:{price:oe(s(k).price,s(k).credits)}}),()=>e()("pricing.order.subtotal"),()=>e()("pricing.plans.price",{values:{price:s(k).discount?ie(s(k).credits):s(k).price}}),()=>e()("pricing.order.total"),()=>e()("pricing.plans.price",{values:{price:s(k).price}}),()=>e()("pricing.aboutTickets.title")]),_(h,a)};F(Ge,h=>{s(k)&&h(Ve)})}r(ce);var Pe=n(ce,2);pr(Pe,{class:"about-card",children:(h,a)=>{var c=Ar(),o=se(c),u=t(o,!0);r(o);var w=n(o,2);G(w),b(v=>i(u,v),[()=>e()("pricing.aboutTickets.title")]),_(h,c)},$$slots:{default:!0}});var We=n(Pe,2);{var Ye=h=>{var a=Fr(),c=t(a);y(c,()=>s(k));var o=n(c,2);q(o,()=>s(k)),r(a),_(h,a)};F(We,h=>{s(k)&&h(Ye)})}r(ye),b((h,a,c,o,u)=>{ne(re,"aria-label",h),i(He,a),i(Oe,c),i(Ke,` ${o??""}`),ne(pe,"aria-label",u)},[()=>e()("common.backToApp"),()=>
5e()("pricing.subtitle"),()=>e()("pricing.description"),()=>e()("pricing.ticketExplanation"),()=>e()("pricing.subtitle")])}_(g,xe),Je(),x()}er(["click"]);export{Vr as component};

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.