PageSourceSearch

https://talktinker.com/build/assets/Show-B7NVL8JW.js

js talktinker.com collected 2026-09-24 14:54:04 UTC 8,486 bytes, 1 lines download raw bytes

1import{A as B}from"./ActivityRenderer-llI1HU8S.js";import{Q as $,d as U,u as G,N as H,o as r,c,a as u,b as e,h as z,e as o,w as h,f as y,g as n,t as s,i as W,q as A,F as j,B as O,m as g,a9 as X,r as N,n as J,x as Q,j as Y,ar as K,y as f}from"./app-Covcbx5H.js";import{_ as Z}from"./DialogContent.vue_vue_type_script_setup_true_lang-CItwj9II.js";import{A as ee}from"./arrow-left-C-SUrdmq.js";import{C as te}from"./clock-v6tW_Zzk.js";import{E as se}from"./worksheet-DU-XEZ_3.js";import{I as C}from"./image-JO-X4mKL.js";import{L as ae}from"./loader-circle-D3AhoiQY.js";import{G as oe}from"./grid-3x3-CpiTeoeH.js";import"./check-BinA7AR5.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";import"./rotate-ccw-D-tazT_C.js";import"./star-DljXlzNi.js";import"./index-CX7AH4hg.js";import"./tts-yHUoP9gt.js";import"./mic-DvkE1yOV.js";import"./chevron-left-CpyyIqZG.js";import"./chevron-right-BIGmr2By.js";import"./volume-2-DsSfEA6Y.js";import"./play-HgRqqvmu.js";const ne=$("Gamepad2Icon",[["line",{x1:"6",x2:"10",y1:"11",y2:"11",key:"1gktln"}],["line",{x1:"8",x2:"8",y1:"9",y2:"13",key:"qnk9ow"}],["line",{x1:"15",x2:"15.01",y1:"12",y2:"12",key:"krot7o"}],["line",{x1:"18",x2:"18.01",y1:"10",y2:"10",key:"1lcuu1"}],["path",{d:"M17.32 5H6.68a4 4 0 0 0-3.978 3.59c-.006.052-.01.101-.017.152C2.604 9.416 2 14.456 2 16a3 3 0 0 0 3 3c1 0 1.5-.5 2-1l1.414-1.414A2 2 0 0 1 9.828 16h4.344a2 2 0 0 1 1.414.586L17 18c.5.5 1 1 2 1a3 3 0 0 0 3-3c0-1.545-.604-6.584-.685-7.258-.007-.05-.011-.1-.017-.151A4 4 0 0 0 17.32 5z",key:"mfqc10"}]]);const ie=$("HashIcon",[["line",{x1:"4",x2:"20",y1:"9",y2:"9",key:"4lhtct"}],["line",{x1:"4",x2:"20",y1:"15",y2:"15",key:"vyu0kd"}],["line",{x1:"10",x2:"8",y1:"3",y2:"21",key:"1ggp8o"}],["line",{x1:"16",x2:"14",y1:"3",y2:"21",key:"weycgp"}]]);const re=$("LogInIcon",[["path",{d:"M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4",key:"u53s6r"}],["polyline",{points:"10 17 15 12 10 7",key:"1ail0h"}],["line",{x1:"15",x2:"3",y1:"12",y2:"12",key:"v6grx8"}]]),le={class:"mx-auto max-w-5xl px-4 py-10 sm:px-6 lg:px-8"},ce={class:"mb-8 flex items-center gap-4"},ue={class:"text-4xl"},de={class:"text-3xl font-bold text-gray-900"},me={key:0,class:"mt-1 text-sm text-gray-600"},pe={key:1,class:"mt-1 text-sm text-gray-600"},he={class:"mb-3 text-sm font-semibold uppercase tracking-wide text-gray-500"},fe={key:0,class:"space-y-2"},xe={class:"flex h-10 w-10 flex-none items-center justify-center rounded-full bg-pink-50 text-pink-600"},ye={class:"min-w-0 flex-1"},_e={class:"flex flex-wrap items-center gap-2"},ge={class:"truncate font-medium text-gray-900"},ve=["title"],we={class:"mt-0.5 flex flex-wrap items-center gap-x-3 gap-y-1 text-sm text-gray-500"},ke={class:"inline-flex items-center gap-1"},be=["href"],Ie=["title"],Se={key:1,class:"rounded-lg border border-dashed bg-white p-12 text-center"},Ae={class:"mt-3 text-sm text-gray-500"},Ce={class:"flex shrink-0 items-center gap-3 border-b border-gray-200 bg-white px-4 py-3 pr-12"},$e={class:"min-h-0 flex-1 overflow-y-auto bg-gray-100 p-6"},Me={key:0,class:"flex h-full items-center justify-center"},Le={key:1,class:"flex h-full items-center justify-center"},je={class:"text-sm text-gray-500"},Ke=U({__name:"Show",props:{client:{},attendances:{}},setup(d){const R=G(),v=Y(()=>R.props.locale),w=a=>a?new Date(a).toLocaleDateString(void 0,{year:"numeric",month:"short",day:"numeric"}):"",D=a=>{if(!a)return"";const i=new Date(a).getTime(),l=Date.now()-i;if(Number.isNaN(l))return"";const p=Math.max(0,Math.floor(l/1e3));if(p<60)return s("just now");const I=Math.floor(p/60);if(I<60)return s(":count min ago",{count:String(I)});const S=Math.floor(I/60);if(S<24)return s(":count h ago",{count:String(S)});const L=Math.floor(S/24);return L<7?s(":count d ago",{count:String(L)}):w(a)},P=a=>{if(!Number.isFinite(a)||a<=0)return"0s";const i=Math.floor(a),t=Math.floor(i/3600),l=Math.floor(i%3600/60),p=i%60;return t>0?l>0?`${t}h ${l}m`:`${t}h`:l>0?p>0?`${l}m ${p}s`:`${l}m`:`${p}s`},T=a=>{switch(a){case"bingo":return oe;case"memory":return ne;case"crossword":case"wordsearch":return ie;case"image-with-name":case"image-with-dashes":case"image-with-lines":case"image-with-lines-only":case"image-text-lines":case"text-with-lines":return K;case"image-to-text":return C;default:return C}},E=H("Activity log"),k=f(!1),b=f(!1),_=f(null),M=f(""),x=f(null),m=f(null),F={currentPage:1,inputs:{},completedInputs:[],bingoSelections:[],matchedPairs:[],incorrectAttempt:null,matchingShuffleSeed:0,memoryFlippedCards:[],memoryMatchedPairs:[],memoryIncorrectPair:null,memoryShuffleSeed:1,crosswordFilledCells:{},crosswordCompletedWords:[],wordSearchFoundWords:[],wordSearchIncorrectCells:[],audioIdRoundIndex:0,audioIdShuffleSeed:1,audioIdCompletedRounds:[],audioIdIncorrectAttempt:null,audioIdTypedInputs:{},audioIdPlaybackSpeed:1,audioIdVoice:null,sortShuffleSeed:1,sortItemOrder:[],sortConnections:[],sortIncorrectAttempt:null};async function q(a){if(!(!a.live_session_id||!a.result_accessible)){M.value=a.creation_snapshot.name||s("Untitled"),x.value=null,m.value=null,_.value=null,k.value=!0,b.value=!0;try{const i=await fetch(`/${v.value}/live-sessions/${a.live_session_id}`,{headers:{Accept:"application/json","X-Requested-With":"XMLHttpRequest"}});if(!i.ok)throw new Error(String(i.status));const l=(await i.json())?.data??{};x.value=l.creation??null,m.value={...F,...l.session?.state??{}}}catch{_.value=s("Result no longer available")}finally{b.value=!1}}}function V(){k.value=!1,x.value=null,m.value=null}return(a,i)=>(r(),c(j,null,[u(e(z),{title:e(E)},null,8,["title"]),o("div",le,[u(e(W),{href:`/${v.value}/clients`,class:"mb-6 inline-flex items-center gap-2 text-sm text-gray-600 hover:text-gray-900"},{default:h(()=>[u(e(ee),{class:"h-4 w-4"}),y(" "+n(e(s)("My clients")),1)]),_:1},8,["href"]),o("div",ce,[o("span",ue,n(d.client.display_emoji),1),o("div",null,[o("h1",de,n(d.client.display_initials||e(s)("Anonymous")),1),d.client.state==="active"&&d.client.practitioner_access_expires_at?(r(),c("p",me,n(e(s)("Access expires :when",{when:w(d.client.practitioner_access_expires_at)})),1)):d.client.state==="expired"?(r(),c("p",pe,n(e(s)("Access expired :when",{when:w(d.client.practitioner_access_expires_at)})),1)):A("",!0)])]),o("h2",he,n(e(s)("Activity log")),1),d.attendances.length?(r(),c("div",fe,[(r(!0),c(j,null,O(d.attendances,t=>(r(),c("div",{key:t.id,class:"flex flex-wrap items-center gap-3 rounded-lg border bg-white p-4"},[o("div",xe,[(r(),g(X(T(t.creation_snapshot.type)),{class:"h-5 w-5"}))]),o("div",ye,[o("div",_e,[o("span",ge,n(t.creation_snapshot.name||e(s)("Untitled")),1),t.repeat_index>1?(r(),c("span",{key:0,class:"rounded-full bg-gray-100 px-2 py-0.5 text-xs font-semibold text-gray-700",title:e(s)("You've done this :count times",{count:String(t.repeat_index)})}," ×"+n(t.repeat_index),9,ve)):A("",!0)]),o("div",we,[o("span",null,n(e(s)("Started :time ago",{time:D(t.started_at)})),1),o("span",ke,[u(e(te),{class:"h-3.5 w-3.5"}),y(" "+n(e(s)("Active for :duration",{duration:P(t.active_seconds)})),1)])])]),t.is_session_active&&t.session_pin?(r(),g(e(N),{key:0,size:"sm","as-child":""},{default:h(()=>[o("a",{href:`/${v.value}/live/join/${t.session_pin}`,target:"_blank",rel:"noopener"},[u(e(re),{class:"mr-1 h-4 w-4"}),y(" "+n(e(s)("Join exercise")),1)],8,be)]),_:2},1024)):t.result_accessible&&t.live_session_id?(r(),g(e(N),{key:1,size:"sm",variant:"outline",onClick:l=>q(t)},{default:h(()=>[u(e(se),{class:"mr-1 h-4 w-4"}),y(" "+n(e(s)("View result")),1)]),_:1},8,["onClick"])):(r(),c("span",{key:2,class:"text-xs text-gray-400",title:e(s)("Result no longer available")},n(e(s)("Result no longer available")),9,Ie))]))),128))])):(r(),c("div",Se,[u(e(C),{class:"mx-auto h-10 w-10 text-gray-300"}),o("p",Ae,n(e(s)("No activities yet")),1)]))]),u(e(Q),{open:k.value,"onUpdate:open":i[1]||(i[1]=t=>t?null:V())},{default:h(()=>[u(e(Z),{class:"flex h-[100dvh] max-h-none w-screen max-w-none flex-col gap-0 overflow-hidden rounded-none border-0 p-0 sm:max-w-none"},{default:h(()=>[o("div",Ce,[u(e(J),{class:"truncate text-lg font-semibold text-gray-900"},{default:h(()=>[y(n(M.value),1)]),_:1})]),o("div",$e,[b.value?(r(),c("div",Me,[u(e(ae),{class:"h-8 w-8 animate-spin text-pink-500"})])):_.value?(r(),c("div",Le,[o("p",je,n(_.value),1)])):x.value&&m.value?(r(),g(B,{key:2,creation:x.value,state:m.value,"is-host":!0,"read-only":!0,"onUpdate:currentPage":i[0]||(i[0]=t=>{m.value&&(m.value.currentPage=t)})},null,8,["creation","state"])):A("",!0)])]),_:1})]),_:1},8,["open"])],64))}});
1export{Ke 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.