PageSourceSearch

https://homeres.ai/assets/rtk-transcripts.entry-CRhITbd5.js

js homeres.ai collected 2026-10-05 12:03:47 UTC 3,383 bytes, 1 lines download raw bytes

1import{dX as l,dW as f,dZ as u,ek as v,e4 as m,d_ as p,d$ as g,e2 as T}from"./index-DDc8rVt5.js";import{S as o}from"./index-BnFmFXDx-CUqF0PTJ.js";const I=()=>":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{position:absolute;top:var(--rtk-space-4, 16px);right:var(--rtk-space-4, 16px);bottom:var(--rtk-space-4, 16px);left:var(--rtk-space-4, 16px);top:auto;display:flex;flex-direction:column;pointer-events:none;justify-content:center;width:100%;z-index:5}rtk-transcript{margin-top:var(--rtk-space-2, 8px)}";var c=function(e,t,r,i){var n=arguments.length,s=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,d;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,r,i);else for(var h=e.length-1;h>=0;h--)(d=e[h])&&(s=(n<3?d(s):n>3?d(t,r,s):d(t,r))||s);return n>3&&s&&Object.defineProperty(t,r,s),s};const a=class{constructor(e){l(this,e),this.config=f(),this.t=u(),this.transcripts=[],this.listenerAttached=!1,this.onTranscript=t=>{t.transcript&&this.add(t)}}connectedCallback(){this.meetingChanged(this.meeting)}addListener(e){var t;(t=e?.ai)===null||t===void 0||t.addListener("transcript",this.onTranscript),this.listenerAttached=!0}clearListeners(e){var t;this.onTranscript&&((t=e?.ai)===null||t===void 0||t.removeListener("transcript",this.onTranscript)),this.listenerAttached=!1,clearTimeout(this.disconnectTimeout),this.transcripts=[]}disconnectedCallback(){this.meeting&&this.clearListeners(this.meeting)}meetingChanged(e,t){clearTimeout(this.disconnectTimeout),t&&this.clearListeners(t),e&&this.states.activeCaptions&&this.addListener(e)}statesChanged(e){e&&(e.activeCaptions&&!this.listenerAttached&&this.addListener(this.meeting),!e.activeCaptions&&this.listenerAttached&&this.clearListeners(this.meeting))}transcriptionsReducer(e,t){if(!e.length)return[t];let r=e[e.length-1];return r.peerId!==t.peerId?e.concat(t):r.id===t.id?(r.transcript=t.transcript,e.pop(),e.concat(v(r))):e.concat(t)}add(e){this.transcripts=this.transcriptionsReducer(this.transcripts,e)}remove(e){this.transcripts=this.transcripts.filter(t=>t.renderedId!==e)}handleDismiss(e){e.stopPropagation();const{id:t,renderedId:r}=e.detail,i=this.host.shadowRoot.querySelector(`[data-id="${t}"]`);i?.classList.add("exit"),setTimeout(()=>{m(()=>{this.remove(r)})},400)}renderTranscripts(){const e=[];return this.transcripts.forEach(t=>{const r={name:t.name,date:t.date,peerId:t.peerId,transcript:t.transcript,id:t.id,renderedId:t.id};if(!e.length){t.renderedId=r.renderedId,e.push(r);return}const i=e[e.length-1];if(i.transcript.length+r.transcript.length>400||i.peerId!==t.peerId){t.renderedId=r.renderedId,e.push(r);return}i.transcript+=" "+t.transcript,t.renderedId=i.renderedId}),e.splice(0,e.length-2),e?.map(t=>p("rtk-transcript",{key:t.id,"data-id":t.id,transcript:t,onRtkTranscriptDismiss:r=>this.handleDismiss(r),t:this.t}))}render(){if(this.states.activeCaptions)return p(g,null,this.renderTranscripts())}get host(){return T(this)}static get watchers(){return{meeting:[{meetingChanged:0}],states:[{statesChanged:0}]}}};c([o()],a.prototype,"meeting",void 0);c([o()],a.prototype,"states",void 0);c([o()],a.prototype,"config",void 0);c([o()],a.prototype,"t",void 0);a.style=I();export{a as rtk_transcripts};

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.