PageSourceSearch

https://snapdemo.io/_nuxt/DISCU94R.js

js snapdemo.io collected 2026-10-02 00:37:56 UTC 6,694 bytes, 1 lines download raw bytes

1import{aV as T,bc as x,b8 as _,aX as a,b1 as o,b0 as l,a$ as e,aY as t,aZ as g,a_ as b,bn as Y,ba as j,aU as U,be as V,br as N,bj as p,aW as c,b2 as B,bp as L,bw as R,b6 as w,b7 as C,bg as I,bk as E,b5 as W}from"./DFnoOuCN.js";import{_ as z}from"./CfvdGO3G.js";import{d as $}from"./RONJDATE.js";import{_ as q,a as F,b as G,c as v}from"./BrwEvsaf.js";import{r as H}from"./BBR_4pO7.js";import{m as O}from"./CQPmwwBR.js";import{_ as P,a as X}from"./361SkdBA.js";import{_ as Z,a as A}from"./zNxba-Vm.js";import{_ as J}from"./BL5L4TO0.js";import{C as K}from"./BWPBV4rm.js";import"./BG73bjWY.js";import"./Dkof0vbR.js";import"./Cq4L3RS7.js";import"./K5pGO3ek.js";import"./DHEzQD8g.js";import"./BZ2INAmF.js";import"./CgYdQNtG.js";import"./Du9Qexml.js";import"./kW8ZrzNE.js";(function(){try{var m=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},f=new m.Error().stack;f&&(m._sentryDebugIds=m._sentryDebugIds||{},m._sentryDebugIds[f]="a0d2ebad-50ed-43f7-acb2-6ea5b673b827",m._sentryDebugIdIdentifier="sentry-dbid-a0d2ebad-50ed-43f7-acb2-6ea5b673b827")}catch{}})();const Q={style:{position:"relative","box-sizing":"content-box","max-width":"100%",width:"100%","aspect-ratio":"1.9611260053619304",padding:"21px 0"}},ee=["src"],te=T({__name:"Inspiration",props:["title","sharedDemoUrl"],emits:["destroy"],setup(m,{emit:f}){const r=f,n=x(!0);function k(){n.value=!1,r("destroy")}return(D,u)=>(a(),_(e(X),{open:e(n),"onUpdate:open":u[0]||(u[0]=h=>Y(n)?n.value=h:null)},{default:o(()=>[l(e(P),{class:"max-w-screen-lg"},{default:o(()=>[l(e(Z),null,{default:o(()=>[l(e(A),{class:"text-center text-3xl mb-4"},{default:o(()=>[g(b(m.title),1)]),_:1})]),_:1}),t("div",null,[t("div",Q,[t("iframe",{style:{width:"100%",height:"100%",position:"absolute",top:"0"},src:m.sharedDemoUrl},null,8,ee)])]),t("div",{class:"flex justify-end mt-10"},[t("button",{class:"bg-primary rounded-md text-white px-4 py-2",onClick:k},"Got it!")])]),_:1})]),_:1},8,["open"]))}}),se={class:"p-4 space-y-4"},ae={key:1,class:"rounded-lg border"},oe={class:"border-b bg-gray-100 p-4 space-x-2 rounded-t-lg"},re={class:"flex justify-between items-center"},ne={class:"space-x-2"},ie={key:0,class:"p-4 text-center space-y-3"},le=["disabled"],de={key:1},ce={key:0,class:"flex items-center"},me={class:"flex items-center"},ue=["src"],pe={key:1,class:"w-6 h-6 rounded-full border flex bg-gray-50 justify-center items-center mr-2"},fe={class:"border rounded-lg"},be={class:"flex space-x-4 p-4"},_e=["onClick"],ge=["src"],he={class:"p-2 text-sm font-semibold bg-white text-gray-800 group-hover:text-primary transition min-h-14"},Re={__name:"home",setup(m){$.extend(H);const f=U();j({title:`Home - ${f.public.appName}`,description:"Supercharge sales enablement with intelligent, interactive demos that turn prospects into customers faster and more effectively."});const r=x(null),n=x(null);V(()=>{N.get("/api/demo/recent-list").then(({data:d})=>{r.value=d.demos,n.value=d.users})});const k=[{title:"Boost Conversion on Your Website",src:"https://static.snapdemo.io/images/c3d5d98cb06b44379a25e74e12ed97b8.png",iframe:"https://snapdemo.io/embed/2eb448f2-4db7-43f1-99ec-29e71cc0532a",bg:"bg-brand-secondary-light"},{title:"Supercharge Your Sales Team To Close More Deals",src:"https://static.snapdemo.io/images/4c741883c0ed42cf96d209db5f587764.png",iframe:"https://snapdemo.io/embed/5f858963-ce66-4228-9510-3626ca14fdc0",bg:"bg-brand-tertiary-light"},{title:"Let Customers Experience What’s New",src:"https://static.snapdemo.io/images/a16e36b5e60f459c90f953672f8f5a9d.png",iframe:"https://snapdemo.io/embed/6198061b-250b-41d1-bbc2-927379131e28",bg:"bg-brand-primary-light"},{title:"Drive Customer Success with Seamless Onboarding",src:"https://static.snapdemo.io/images/85872a47bd7f4fc9a016f7bc7369e9da.png",iframe:"https://snapdemo.io/embed/2d91669f-d6c3-4e3e-a5cf-dcd91ab6f3c8",bg:"bg-brand-quaternary-light"}];function D(d){O(W(te,{title:d.title,sharedDemoUrl:d.iframe}))}const u=x(!1);function h(){u.value=!0,N.post("/api/demo/create-by-dashboard",{name:`New demo (${$().format("MMM D, YYYY")})`}).then(({data:d})=>{I({name:"demo-token",params:{token:d.token}})}).finally(()=>{u.value=!1})}return(d,i)=>{const M=B,S=z;return a(),_(S,{name:"dashboard"},{default:o(()=>[t("div",se,[e(r)&&e(r).length===0?(a(),_(J,{key:0})):p("",!0),e(r)&&e(r).length>0?(a(),c("div",ae,[t("div",oe,[t("div",re,[t("div",ne,[i[1]||(i[1]=t("h2",{class:"inline-block text-xl"},"Recent Demos",-1)),l(M,{to:"/app/demos",class:"text-primary text-xs"},{default:o(()=>i[0]||(i[0]=[g("View all")])),_:1})]),e(r).length>0?(a(),_(e(L),{key:0,variant:"outline",onClick:h,disabled:e(u)},{default:o(()=>i[2]||(i[2]=[g("Create new")])),_:1},8,["disabled"])):p("",!0)])]),e(r).length===0?(a(),c("div",ie,[i[3]||(i[3]=t("span",{class:"text-gray-600"},"No demos yet, ",-1)),t("button",{class:"text-primary hover:underline disabled:opacity-50",onClick:R(h,["prevent"]),disabled:e(u)},"create your first demo",8,le)])):p("",!0),e(r).length>0?(a(),c("div",de,[l(e(q),null,{default:o(()=>[l(e(F),null,{default:o(()=>[(a(!0),c(w,null,C(e(r),s=>(a(),_(e(G),{key:s.token,class:"cursor-pointer hover:text-primary",onClick:y=>("navigateTo"in d?d.navigateTo:e(I))({name:"demo-token",params:{token:s.token}})},{default:o(()=>[l(e(v),null,{default:o(()=>[g(b(s.name),1)]),_:2},1024),l(e(v),null,{default:o(()=>[s.share==="public_view"?(a(),c("div",ce,[l(e(K),{class:"w-5 h-5 fill-green-500 text-white mr-1"}),i[4]||(i[4]=t("span",null,"Published",-1))])):p("",!0)]),_:2},1024),l(e(v),null,{default:o(()=>[e(n)[s.creator]?(a(!0),c(w,{key:0},C([e(n)[s.creator]],y=>(a(),c("div",me,[y.avatar?(a(),c("img",{key:0,src:y.avatar,alt:"",class:"w-6 h-6 rounded-full mr-2"},null,8,ue)):(a(),c("div",pe,b((e(n)[s.creator].name||e(n)[s.creator].email.split("@")[0])[0]),1)),t("span",null,b(e(n)[s.creator].name||e(n)[s.creator].email.split("@")[0]),1)]))),256)):p("",!0)]),_:2},1024),l(e(v),null,{default:o(()=>[g(b(e($)(s.updated_at_unix).fromNow()),1)]),_:2},1024)]),_:2},1032,["onClick"]))),128))]),_:1})]),_:1})])):p("",!0)])):p("",!0),t("div",fe,[i[5]||(i[5]=t("div",{class:"border-b bg-gray-100 p-4 space-x-2 rounded-t-lg"},[t("h2",{class:"inline-block text-xl"},"Resources & User Cases")],-1)),t("div",be,[(a(),c(w,null,C(k,s=>t("div",{class:"rounded-md w-72 cursor-pointer group",onClick:y=>D(s)},[t("div",{class:E(["rounded-md overflow-hidden border group-hover:ring-2 group-hover:ring-brand-primary group-hover:border-brand-primary group-hover:shadow-md transition",{[s.bg]:!0}])},[t("img",{src:s.src,alt:"",crossorigin:"anonymous",class:"object-contain w-full h-full aspect-video"},null,8,ge),t("div",he,b(s.title),1)],2)],8,_e)),64))])])])]),_:1})}}};export{Re 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.