1import{j as s,r as m,R as is}from"./vendor-react-72e4a099.js";import{t as U,v as q,w as K,x as W,u as os,b as ls,d as cs,S as ms,T as ds,e as ps,f as us,g as xs,h as hs,D,i as js,j as fs,N as gs,k as Ns,R as vs,E as ys,C as Ss,l as Cs,m as ws,n as Ps,L as Ms,P as ks,c as bs,r as zs}from"./Teleprompter-9c42134d.js";import{u as V,d as Ds,B as f,a as Es,T as Ts}from"./Toast-43ee7788.js";import{T as O,b as X}from"./Display-48adcc24.js";import{a as N}from"./format-5039f022.js";import{s as Fs,a as Q,p as Y,f as _}from"./timeline-686c23c4.js";import{M as $s}from"./message-square-87bea34a.js";import{S as Rs}from"./MaterialsPanels-db2600fc.js";import{C as G}from"./chevron-left-39dc0897.js";import{C as J}from"./chevron-right-b4336544.js";import{C as T}from"./check-083433f7.js";import{U as Z}from"./upload-34ad8b6a.js";import{C as Ls}from"./circle-check-63b159d4.js";import{P as As}from"./presentation-e2109ecf.js";import{T as Is}from"./trash-2-7a739e24.js";import{S as Bs}from"./send-ef7332d3.js";import{c as ft,S as gt}from"./Studio-12de6b79.js";import{A as Os}from"./arrow-right-eda8f931.js";import"./Controls-5a18fd37.js";import"./chevron-down-888c3b30.js";import"./createLucideIcon-581cd729.js";import"./copy-34f4069e.js";import"./eye-5711d0dd.js";import"./clock-e6794ea5.js";import"./log-out-e38723a8.js";import"./radio-dc3b7f8c.js";import"./x-b9f3d093.js";import"./lock-73755c1f.js";import"./ProgramGraphicsLayer-e1e0e604.js";import"./index-d9998155.js";import"./guestAccess-28c96151.js";import"./buildLifecycle-a44b0e05.js";import"./refresh-cw-98362cea.js";import"./globe-e09c7f1b.js";import"./mouse-pointer-2-a64daac3.js";import"./external-link-63c5a0ce.js";import"./mic-off-05523af3.js";import"./film-0ba9e353.js";import"./sparkles-e0558c3e.js";import"./pause-2cb080c5.js";import"./play-3580deb4.js";import"./ellipsis-vertical-09d18e39.js";import"./mic-098d6d5b.js";import"./video-a08888e9.js";import"./video-off-a445220e.js";import"./slotWidgets-57ef49ea.js";import"./crown-fdf36aa5.js";import"./volume-2-a1e941cc.js";import"./user-2d8f405f.js";import"./users-a990a1e8.js";import"./chromaKey-9ef66bf0.js";import"./deviceDetection-9fe14a8f.js";import"./roomAccess-6d61bdfc.js";import"./audioQuality-b8c9f17c.js";import"./snichDenoiseRuntime-273d9ce6.js";import"./StudioRealtime-3ad3f1c0.js";import"./programAspect-1b4b5a03.js";import"./minimize-2-7f4bb98d.js";import"./circle-119050f3.js";import"./sliders-horizontal-41aa44a5.js";import"./arrow-down-5480e148.js";import"./circle-x-d5c7be80.js";import"./square-abcd1e2a.js";import"./monitor-ac1ab9e6.js";import"./chevron-up-f536cc4c.js";import"./circle-alert-67975319.js";import"./api-d8a57490.js";import"./rotate-ccw-738260f2.js";import"./plus-39793e81.js";import"./image-aefc8036.js";import"./file-text-e7c68864.js";import"./Lobby-cd4ae718.js";import"./BackgroundModal-371a8f77.js";import"./mediaPrefs-a1582108.js";/* empty css */import"./smartphone-d9ded3c9.js";import"./headphones-a3105568.js";import"./EntryChrome-3815c94b.js";import"./shield-check-111738a3.js";import"./layout-grid-63073c93.js";import"./user-plus-d862ebc6.js";import"./file-play-96922e92.js";import"./pen-line-729408c9.js";import"./logo-snich-dialogue-bd9a9926.js";import"./LayoutEditorModal-5c2cbcf2.js";import"./pencil-c32e7d9a.js";import"./arrow-up-955249b3.js";import"./maximize-edcb58d4.js";import"./share-2-50cd044b.js";import"./loader-circle-f10bdd75.js";import"./layers-e08031b9.js";import"./type-c9e8ec6d.js";import"./timer-dd0230bd.js";import"./plug-1e9df63e.js";import"./triangle-alert-cdc85d96.js";import"./download-3e69fd6b.js";import"./thumbs-up-f55ea202.js";import"./paperclip-3819f2af.js";import"./music-0f60f4f1.js";import"./sticky-note-012253c0.js";import"./mediaSettingsStore-1783edcc.js";import"./camera-8e9c5806.js";import"./captions-4aebb0bb.js";import"./MicCheckModal-3c0b1b56.js";import"./micDiagnostics-fa65b80f.js";import"./search-01fb0df0.js";import"./user-minus-edd1ae61.js";import"./repeat-a9c26444.js";import"./grip-vertical-b48ba28a.js";import"./languages-9836601a.js";import"./zap-a08e50de.js";import"./volume-x-8aea9e1c.js";import"./shield-b21f8aed.js";import"./WaitingRoom-fe3d8748.js";import"./EventPreview-a5c61118.js";import"./eventDuration-e09aabf0.js";import"./mail-c07c6c62.js";import"./calendar-days-6829c81b.js";import"./EndedScreen-b2678b64.js";import"./publicApi-16230aa9.js";import"./star-f57b9032.js";import"./list-13d531b4.js";import"./arrow-left-6a250fbc.js";function _s({ctx:n}){const{timeline:e,team:t,program:i}=n;if(!e.blocks.length)return s.jsx("div",{className:"sn-tm-note is-dashed",children:n.programError?`ÐÑогÑамма недоÑÑÑпна: ${n.programError}`:i?"ÐÑодÑÑÐµÑ ÐµÑÑ Ð½Ðµ ÑоÑÑавил пÑогÑÐ°Ð¼Ð¼Ñ ÑÑиÑа.":"ÐагÑÑжаем пÑогÑаммÑâ¦"});const r=e.blocks.find(a=>/вопÑоÑ/i.test(a.title)&&a.state!=="done"&&!a.mine)||e.blocks.find(a=>/вопÑоÑ/i.test(a.title)&&a.state!=="done"),o=r?t.find(a=>r.speakerIds.includes(a.id)&&a.role==="host"):null;return s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:"sn-tm-pane-head",children:[s.jsx("span",{children:s.jsx("span",{className:"sn-h",children:"ÐÑогÑамма ÑÑиÑа"})}),e.startMs&&e.endMs&&s.jsxs("span",{className:"sn-mono",style:{fontSize:13,color:"var(--sn-ink-3)",marginTop:4},children:[N(e.startMs),"â",N(e.endMs)]})]}),s.jsx("ol",{className:"sn-tm-plist",children:e.blocks.map(a=>{var j;const l=a.state==="current"?"is-current":a.mine?"is-mine":a.state==="done"?"is-done":"",d=a.speakerIds.map(p=>t.find(u=>
1u.id===p)).filter(Boolean);return s.jsxs("li",{className:l,"aria-current":a.state==="current"?"step":void 0,children:[s.jsx("span",{className:"sn-time",children:a.startMs?N(a.startMs):`+${a.startOffsetMin}â²`}),s.jsxs("span",{className:"sn-txt",children:[s.jsx("span",{className:"sn-t",title:a.title,children:a.title}),s.jsx("span",{className:"sn-s",children:Fs(a,t,(j=n.program)==null?void 0:j.myMemberId)||"без ÑпикеÑов"})]}),s.jsxs("span",{style:{display:"flex",alignItems:"center",gap:4},children:[a.state==="current"&&s.jsxs(O,{tone:"red",children:[s.jsx("span",{className:"sn-live-dot",style:{width:6,height:6}}),"ÑейÑаÑ"]}),a.mine&&s.jsxs(O,{tone:"blue",children:["Ð²Ñ Â· ",a.durationMin," мин"]}),!a.mine&&a.state!=="current"&&d.slice(0,3).map(p=>s.jsx(X,{name:p.name,src:p.avatarUrl,size:24},p.id))]})]},a.id)})}),r&&r.startMs&&s.jsxs("div",{className:"sn-tm-note",children:[s.jsx($s,{className:"sn-i sn-i-16"}),s.jsxs("span",{children:["Ð ",s.jsx("span",{className:"sn-mono",children:N(r.startMs)})," â ",r.title.toLowerCase(),".",o?` ÐедÑÑий ${o.name} Ð¼Ð¾Ð¶ÐµÑ Ð¿ÐµÑедаÑÑ Ð²Ð°Ð¼ Ñлово â Ð²Ñ Ð¿Ð¾Ð»ÑÑиÑе подÑказкÑ.`:" ÐедÑÑий Ð¼Ð¾Ð¶ÐµÑ Ð¿ÐµÑедаÑÑ Ð²Ð°Ð¼ Ñлово â Ð²Ñ Ð¿Ð¾Ð»ÑÑиÑе подÑказкÑ."]})]})]})}function Hs(n){var r,o;const e=n.roomPresentation,t=((r=e==null?void 0:e.presentation)==null?void 0:r.slides)||[],i=((o=e==null?void 0:e.presentation)==null?void 0:o.currentSlide)??0;return{presentation:e,index:i,total:t.length,slides:t,mine:!!e&&e===n.myPresentation,canControl:n.canControlSlides,go:a=>{e&&n.canControlSlides&&n.api.changeSlide(e.id,a)}}}function Us(n,e){const t=m.useRef(n);t.current=n,m.useEffect(()=>{if(!e)return;const i=r=>{const o=r.target;o&&(o.closest('input,textarea,select,[contenteditable="true"]')||o.closest('[role="dialog"]'))||!t.current.canControl||!t.current.total||(r.key==="ArrowRight"||r.key==="PageDown"?(r.preventDefault(),t.current.go(1)):(r.key==="ArrowLeft"||r.key==="PageUp")&&(r.preventDefault(),t.current.go(-1)))};return window.addEventListener("keydown",i),()=>window.removeEventListener("keydown",i)},[e])}function F({src:n,n:e,big:t}){return s.jsxs("span",{className:"sn-tm-slide",style:t?void 0:{display:"block"},children:[n?s.jsx("img",{src:n,alt:`Слайд ${e}`,loading:"lazy"}):null,s.jsx("span",{className:"sn-no",children:String(e).padStart(2,"0")})]})}function $(n){return n.timeline.myCurrent||n.timeline.myNext||null}function E({items:n,size:e}){return s.jsx("ul",{className:"sn-tm-bullets",style:{fontSize:e},children:n.map((t,i)=>s.jsx("li",{children:t},i))})}function ss({notes:n,slides:e,size:t,empty:i}){var a;const r=e.index+1;if(e.presentation){const l=(a=n.bySlide[r])!=null&&a.length?n.bySlide[r]:n.general;return l.length?s.jsx(E,{items:l,size:t}):s.jsx(s.Fragment,{children:i})}const o=Object.keys(n.bySlide).map(Number).sort((l,d)=>l-d).filter(l=>{var d;return(d=n.bySlide[l])==null?void 0:d.length});return!n.general.length&&!o.length?s.jsx(s.Fragment,{children:i}):s.jsxs(s.Fragment,{children:[n.general.length>0&&s.jsx(E,{items:n.general,size:t}),o.map(l=>s.jsxs("section",{style:{display:"flex",flexDirection:"column",gap:6},children:[s.jsxs("span",{className:"sn-eyebrow",children:["Слайд ",s.jsx("span",{className:"sn-mono",style:{letterSpacing:0},children:l})]}),s.jsx(E,{items:n.bySlide[l],size:t})]},l))]})}function R({ctx:n,text:e}){var i;const t=n.uploadingPresentation;if(t){const r=Math.max(0,Math.min(100,Math.round(t.uploadProgress??0)));return s.jsxs("div",{className:"sn-tm-note is-dashed",role:"status",style:{flexDirection:"column",alignItems:"stretch",gap:8},children:[s.jsxs("span",{children:[r<20?"ÐагÑÑжаем":"ÐоÑовим ÑлайдÑ"," «",((i=t.presentation)==null?void 0:i.sourceFileName)||t.name,"»â¦",s.jsxs("span",{className:"sn-mono",style:{marginLeft:6},children:[r,"%"]})]}),s.jsx("span",{className:"sn-tm-upload-bar","aria-hidden":"true",children:s.jsx("i",{style:{width:`${Math.max(4,r)}%`}})})]})}return s.jsxs("div",{className:"sn-tm-note is-dashed",style:{flexDirection:"column",alignItems:"stretch"},children:[s.jsx("span",{children:e||"Слайдов неÑ. ÐÑли они нÑÐ¶Ð½Ñ â загÑÑзиÑе PDF или PPTX: пÑодÑÑÐµÑ Ð²ÑÐ²ÐµÐ´ÐµÑ Ð¸Ñ
в ÑÑиÑ, а лиÑÑаÑÑ Ð±ÑдеÑе вÑ."}),s.jsxs("span",{className:"sn-hint",style:{display:"inline-flex",alignItems:"center",gap:6,fontSize:13},children:[s.jsx(Z,{className:"sn-i sn-i-16","aria-hidden":"true"}),"Ðнопка «ÐÑезенÑаÑиÑ» â внизÑ, ÑÑдом Ñ Ð¼Ð¸ÐºÑоÑоном и ÑкÑаном"]})]})}function qs({ctx:n,slides:e}){const t=$(n),i=m.useMemo(()=>Q(t==null?void 0:t.note),[t==null?void 0:t.note]),[r,o]=U("sn-tm-notes-size",18,14,28),a=e.index+1;return s.jsxs(s.Fragment,{children:[s.jsx(Ks,{ctx:n}),e.presentation&&!e.mine&&s.jsxs("div",{className:"sn-tm-note is-green",children:[s.jsx(Ls,{className:"sn-i sn-i-16"}),s.jsx("span",{children:e.canControl?"ÐÑодÑÑÐµÑ Ð¿ÐµÑедал вам ÑÐ»Ð°Ð¹Ð´Ñ â лиÑÑаеÑе вÑ":"Ð¡Ð»Ð°Ð¹Ð´Ñ ÑÑиÑа загÑÑÐ¶ÐµÐ½Ñ â лиÑÑÐ°ÐµÑ Ð¿ÑодÑÑеÑ"})]}),!n.myPresentation&&s.jsx(Rs,{api:n.api,children:s.jsx(R,{ctx:n,text:e.presentation?"ÐÑжна ÑÐ²Ð¾Ñ Ð¿ÑезенÑаÑиÑ? ÐагÑÑзиÑе PDF или PPTX â пÑодÑÑÐµÑ Ð²ÑÐ²ÐµÐ´ÐµÑ ÐµÑ Ð² ÑÑиÑ, лиÑÑаÑÑ Ð±ÑдеÑе вÑ.":void 0})}),e.presentation&&s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:"sn-tm-slide-meta",children:[s.jsxs("span",{className:"sn-eyebrow",children:["Слайд ",a," из ",e.total]}),s.jsx("span",{children:e.canControl?"лиÑÑаеÑе вÑ":"лиÑÑÐ°ÐµÑ Ð¿ÑодÑÑеÑ"})]}),s.jsx(F,{src:e.slides[e.index],n:a,big:!0}),e.canControl&&s.jsxs("div",{style:{display:"flex",gap:8},children:[s.jsx(f,{size:"sm",variant:"quiet",icon:s.jsx(G,{className:"sn-i sn-i-16"}),disabled:e.index<=0,onClick:()=>e.go(-1),children:"Ðазад"}),s.jsx(f,{size:"sm",variant:"quiet",iconRight:s.jsx(J,{className:"sn-i sn-i-16"}),disabled:e.index>
1=e.total-1,onClick:()=>e.go(1),children:"ÐалÑÑе"})]})]}),s.jsxs("section",{"aria-label":`ÐамеÑки к ÑÐ»Ð°Ð¹Ð´Ñ ${a}`,style:{display:"flex",flexDirection:"column",gap:10},children:[s.jsxs("div",{className:"sn-tm-pane-head",children:[s.jsx("span",{children:s.jsx("b",{style:{fontSize:15,fontWeight:600},children:"ÐаÑи замеÑки"})}),s.jsx(q,{size:r,onChange:o,min:14,max:28})]}),s.jsx(ss,{notes:i,slides:e,size:r,empty:s.jsx("div",{className:"sn-tm-note is-dashed",children:t?"ÐамеÑок к Ð±Ð»Ð¾ÐºÑ Ð½ÐµÑ. ÐÑ
пиÑÐµÑ Ð¿ÑодÑÑÐµÑ Ð² пÑогÑамме ÑобÑÑÐ¸Ñ («ÐамеÑка» блока); к конкÑеÑÐ½Ð¾Ð¼Ñ ÑÐ»Ð°Ð¹Ð´Ñ â ÑÑÑокой «Слайд 3: â¦Â».":"ÐÑодÑÑÐµÑ Ð¿Ð¾Ð·Ð¾Ð²ÑÑ Ð²Ð°Ñ Ð½Ð° ÑÑенÑ."})})]}),e.presentation&&e.index<e.total-1&&s.jsxs("section",{style:{display:"flex",flexDirection:"column",gap:8},children:[s.jsx("span",{className:"sn-eyebrow",children:"ÐалÑÑе"}),s.jsx("div",{className:"sn-tm-slides-next",children:e.slides.slice(e.index+1,e.index+4).map((l,d)=>s.jsx("button",{type:"button",onClick:()=>e.go(d+1),disabled:!e.canControl,title:e.canControl?`ÐеÑейÑи к ÑÐ»Ð°Ð¹Ð´Ñ ${e.index+d+2}`:void 0,children:s.jsx(F,{src:l,n:e.index+d+2})},d))})]})]})}function Ks({ctx:n}){var l,d;const e=n.myPresentation,[t,i]=m.useState(!1);if(m.useEffect(()=>i(!1),[e==null?void 0:e.id]),!e)return null;const r=K(e);if(n.uploadingPresentation)return s.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:6},children:[s.jsx(R,{ctx:n}),s.jsxs("span",{className:"sn-hint",style:{fontSize:12.5},children:["«",r,"» оÑÑаÑÑÑÑ, пока Ð½Ð¾Ð²Ð°Ñ Ð½Ðµ гоÑова"]})]});const o=((d=(l=e.presentation)==null?void 0:l.slides)==null?void 0:d.length)||0,a=n.api.stageParticipants.some(j=>j.id===e.id);return s.jsxs("section",{className:"sn-tm-deck","aria-label":"ÐаÑа пÑезенÑаÑиÑ",children:[s.jsxs("div",{className:"sn-tm-deck-row",children:[s.jsx("span",{className:"sn-tm-deck-ico","aria-hidden":"true",children:s.jsx(As,{className:"sn-i"})}),s.jsxs("span",{className:"sn-tm-deck-text",children:[s.jsx("span",{className:"sn-eyebrow",children:"ÐаÑа пÑезенÑаÑиÑ"}),s.jsxs("b",{title:r,children:["«",r,"»"]}),s.jsxs("span",{className:"sn-s",children:[o," ",W(o)," · ",a?"в ÑÑиÑе":"Ñ Ð¿ÑодÑÑеÑа в «Ðедиа»"]})]})]}),t?s.jsxs("div",{className:"sn-tm-deck-confirm",role:"alert",children:[s.jsx("span",{children:a?"Ð¡Ð»Ð°Ð¹Ð´Ñ ÑейÑÐ°Ñ Ð² ÑÑиÑе â зÑиÑели пеÑеÑÑанÑÑ Ð¸Ñ
видеÑÑ. УбÑаÑÑ?":"УбÑаÑÑ Ð¿ÑезенÑаÑÐ¸Ñ Ð¸Ð· ÑÑÑдии? ÐÑодÑÑÐµÑ ÐµÑ Ð±Ð¾Ð»ÑÑе не ÑвидиÑ."}),s.jsxs("div",{className:"sn-tm-deck-actions",children:[s.jsx(f,{size:"sm",variant:"danger",onClick:()=>{i(!1),n.api.removeMedia(e.id)},children:"УбÑаÑÑ"}),s.jsx(f,{size:"sm",variant:"quiet",onClick:()=>i(!1),children:"ÐÑмена"})]})]}):s.jsxs("div",{className:"sn-tm-deck-actions",children:[s.jsx(f,{size:"sm",variant:"soft",icon:s.jsx(Z,{className:"sn-i sn-i-16"}),onClick:()=>n.api.uploadSlides({replace:e.id}),children:"ÐамениÑÑ Ñайл"}),s.jsx(f,{size:"sm",variant:"quiet",icon:s.jsx(Is,{className:"sn-i sn-i-16"}),onClick:()=>i(!0),children:"УбÑаÑÑ"})]})]})}function Ws(n){var a;const e=V(),t=m.useRef(null),i=m.useRef(null),r=((a=n.myPresentation)==null?void 0:a.id)||null;m.useEffect(()=>{const l=t.current;t.current=r,i.current=l&&r&&l!==r?l:null},[r]);const o=!!i.current&&!n.api.participants.some(l=>l.id===i.current);m.useEffect(()=>{o&&(i.current=null,e.success("ÐÑезенÑаÑÐ¸Ñ Ð·Ð°Ð¼ÐµÐ½ÐµÐ½Ð° â пÑодÑÑÐµÑ Ð²Ð¸Ð´Ð¸Ñ Ð½Ð¾Ð²ÑÑ"))},[o])}function Vs({slides:n}){return!n.presentation||n.mine?null:s.jsx("div",{className:"sn-tm-pane-foot",children:s.jsxs("span",{className:"sn-s",children:["«",K(n.presentation),"» · ",n.total," ",W(n.total)]})})}function Xs({ctx:n,slides:e}){const t=$(n)||n.timeline.current,i=m.useMemo(()=>Q(t==null?void 0:t.note),[t==null?void 0:t.note]),[r,o]=U("sn-tm-notes-size",18,14,28),a=e.index+1;return s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:"sn-tm-pane-head",children:[s.jsxs("span",{children:[s.jsx("span",{className:"sn-eyebrow",children:e.presentation?s.jsxs(s.Fragment,{children:["Слайд ",s.jsx("span",{className:"sn-mono",style:{letterSpacing:0},children:a})]}):"ÐамеÑки"}),s.jsx("span",{className:"sn-h",style:{fontSize:16}
1,children:(t==null?void 0:t.title)||"ÐÐ°Ñ Ð±Ð»Ð¾Ðº"})]}),s.jsx(q,{size:r,onChange:o,min:14,max:28})]}),!n.myPresentation&&s.jsx(R,{ctx:n,text:e.presentation?"Ð¡Ð²Ð¾Ñ Ð¿ÑезенÑаÑиÑ? ÐагÑÑзиÑе PDF или PPTX â пÑодÑÑÐµÑ Ð²ÑÐ²ÐµÐ´ÐµÑ ÐµÑ, лиÑÑаÑÑ Ð±ÑдеÑе вÑ.":"ÐÑÐ¶Ð½Ñ ÑлайдÑ? ÐагÑÑзиÑе PDF или PPTX â пÑодÑÑÐµÑ Ð²ÑÐ²ÐµÐ´ÐµÑ Ð¸Ñ
в ÑÑиÑ, лиÑÑаÑÑ Ð±ÑдеÑе вÑ."}),s.jsx(ss,{notes:i,slides:e,size:r,empty:s.jsxs("div",{className:"sn-tm-note is-dashed",children:["ÐамеÑок к ",e.presentation?"ÑÑÐ¾Ð¼Ñ ÑлайдÑ":"блокÑ"," неÑ."]})}),e.presentation&&e.index<e.total-1&&s.jsxs("section",{style:{display:"flex",flexDirection:"column",gap:8,marginTop:"auto",paddingTop:16,borderTop:"1px solid var(--sn-line)"},children:[s.jsxs("div",{className:"sn-tm-slide-meta",children:[s.jsxs("span",{className:"sn-eyebrow",children:["ÐалÑÑе · Ñлайд ",s.jsx("span",{className:"sn-mono",style:{letterSpacing:0},children:a+1})]}),s.jsx("span",{children:"видиÑе ÑолÑко вÑ"})]}),s.jsx(F,{src:e.slides[e.index+1],n:a+1,big:!0})]})]})}function Qs({slides:n}){return!n.presentation||!n.total?null:s.jsxs("div",{className:"sn-tm-slides",role:"group","aria-label":"СлайдÑ",children:[s.jsx(Ds,{variant:"quiet",label:"ÐÑедÑдÑÑий Ñлайд",disabled:!n.canControl||n.index<=0,onClick:()=>n.go(-1),children:s.jsx(G,{className:"sn-i"})}),s.jsxs("span",{className:"sn-count",children:[n.index+1,s.jsxs("span",{children:["/ ",n.total]})]}),s.jsx(f,{variant:"quiet",iconRight:s.jsx(J,{className:"sn-i sn-i-16"}),disabled:!n.canControl||n.index>=n.total-1,onClick:()=>n.go(1),children:"Ðалее"}),!n.canControl&&s.jsx("span",{className:"sn-tm-slides-who",children:"лиÑÑÐ°ÐµÑ Ð¿ÑодÑÑеÑ"})]})}function H(n){return n?/демо|demo|ÑкÑан|screen/i.test(`${n.title} ${n.sceneName||""}`)?!0:Y(n.note).filter(e=>e.minutes).length>=2:!1}function Ys({ctx:n,block:e}){const t=m.useMemo(()=>Y(e.note),[e.note]),[i,r]=m.useState(null);m.useEffect(()=>r(null),[e.id]);const o=e.startMs&&e.state==="current"?(n.now-e.startMs)/6e4:0;let a=0,l=0;for(let p=0;p<t.length;p+=1){const u=t[p].minutes||0;if(o>=l+u&&p<t.length-1&&u)l+=u,a=p+1;else break}const d=i??a,j=e.startMs&&e.endMs?`${N(e.startMs)}â${N(e.endMs)}`:null;return s.jsxs(s.Fragment,{children:[s.jsx("div",{className:"sn-tm-pane-head",children:s.jsxs("span",{children:[s.jsxs("span",{className:"sn-eyebrow",children:["Ðлан демо",j?s.jsxs(s.Fragment,{children:[" · ",s.jsx("span",{className:"sn-mono",style:{letterSpacing:0},children:j})]}):null]}),s.jsx("span",{className:"sn-h",style:{fontSize:16},children:e.title})]})}),t.length?s.jsx("ol",{className:"sn-tm-plan",children:t.map((p,u)=>s.jsx("li",{className:u===d?"is-current":u<d?"is-done":"",children:s.jsxs("button",{type:"button",onClick:()=>r(u),"aria-current":u===d?"step":void 0,children:[s.jsx("span",{className:"sn-n",children:u<d?s.jsx(T,{className:"sn-i sn-i-14"}):u+1}),s.jsxs("span",{className:"sn-txt",children:[s.jsx("span",{className:"sn-x",children:p.text}),s.jsx("span",{className:"sn-d",children:p.minutes?`${p.minutes} мин`:u===t.length-1&&e.endMs?N(e.endMs):""})]})]})},u))}):s.jsx("div",{className:"sn-tm-note is-dashed",children:"Ðлана демо неÑ. ÐÑодÑÑÐµÑ Ð¼Ð¾Ð¶ÐµÑ Ð½Ð°Ð¿Ð¸ÑаÑÑ Ñаги в «ÐамеÑке» блока â по ÑÑÑоке на Ñаг, Ñ Ð´Ð»Ð¸ÑелÑноÑÑÑÑ: «ÐоказаÑÑ ÐºÐ°Ð±Ð¸Ð½ÐµÑ â 2 мин»."}),s.jsxs("div",{className:"sn-tm-note",children:[s.jsx(Es,{className:"sn-i sn-i-16"}),s.jsx("span",{children:"ÐеÑед показом вÑклÑÑиÑе ÑÐ²ÐµÐ´Ð¾Ð¼Ð»ÐµÐ½Ð¸Ñ Ð½Ð° компÑÑÑеÑе â инаÑе зÑиÑели иÑ
ÑвидÑÑ."})]})]})}function es(n){const{qna:e}=n.rt,t=[...e.onAir?[e.onAir]:[],...e.queue],i=e.questions.filter(r=>!!n.answers.answers[r.id]&&!t.some(o=>o.id===r.id));return[...t,...i]}function Gs({ctx:n,slides:e}){const t=V(),i=es(n),[r,o]=m.useState(null),[a,l]=m.useState(""),[d,j]=m.useState(!1),p=async c=>{const x=e.presentation?`поÑле Ñлайда ${e.index+1}`:null,S=await n.requests.send("answer_on_air",{questionId:c.id,text:x});if(!S.ok){t.error(S.error||"Ðе ÑдалоÑÑ Ð¾ÑпÑавиÑÑ");return}n.sayToProducer(`ÐÑвеÑÑ Ð² ÑÑиÑе на вопÑÐ¾Ñ Â«${c.text.slice(0,140)}»${x?` â ${x}`:""}`)},u=async c=>{if(a.trim()){j(!0);try{const x=await n.answers.answer(c.id,a.trim());if(!x.ok){t.error(x.error||"ÐÑÐ²ÐµÑ Ð½Ðµ оÑпÑавилÑÑ");return}t.success(x.delivered===!1?"ÐÑÐ²ÐµÑ ÑоÑ
ÑанÑн â авÑÐ¾Ñ ÑÐ²Ð¸Ð´Ð¸Ñ ÐµÐ³Ð¾, когда веÑнÑÑÑÑ":`ÐÑÐ²ÐµÑ Ð¾ÑпÑавлен â его ÑÐ²Ð¸Ð´Ð¸Ñ ÑолÑко ${c.isAnonymous?"авÑÐ¾Ñ Ð²Ð¾Ð¿ÑоÑа":_(c.authorName)}`),l(""),o(null)}finally{j(!1)}}};return s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:"sn-tm-qhead",children:[s.jsx("span",{className:"sn-t",children:"ÐопÑоÑÑ Ðº вам"}),s.jsx("span",{className:"sn-n",children:i.filter(c=>!n.answers.answers[c.id]).length}),s.jsx("span",{className:"sn-s",style:{cursor:"default"},children:"оÑобÑал модеÑаÑоÑ"})]}),!n.rt.qna.ready&&(n.rt.qna.error?s.jsxs("div",{className:"sn-tm-note is-amber",children:["ÐопÑоÑÑ Ð½Ðµ загÑÑзилиÑÑ: ",n.rt.qna.error,". Ðни поÑвÑÑÑÑ, как ÑолÑко ÑвÑÐ·Ñ Ñо ÑÑÑдией воÑÑÑановиÑÑÑ."]}):s.jsx("div",{className:"sn-tm-note",children:"ÐагÑÑжаем вопÑоÑÑâ¦"})),n.rt.qna.ready&&!i.length&&s.jsx("div",{className:"sn-tm-note is-dashed",children:"ÐодеÑаÑÐ¾Ñ ÐµÑÑ Ð½Ðµ оÑобÑал вопÑоÑÑ. ÐÑобÑаннÑе поÑвÑÑÑÑ Ð·Ð´ÐµÑÑ â на ниÑ
можно оÑвеÑиÑÑ Ð² ÑÑиÑе или пиÑÑменно."}),s.jsx("ul",{className:"sn-tm-qlist",children:i.map(c=>{const x=n.requests.latest("answer_on_air",c.id),S=n.answers.answers[c.id],h=r===c.id;return s.jsxs("li",{className:`sn-tm-q${c.status==="on_air"?" is-onair":""}${h?" is-open":""}`,children:[s.jsx("span",{className:"sn-text",children:c.text}),s.jsxs("span",{className:"sn-by",children:[s.jsx(X,{name:c.authorName,size:22}),s.jsxs("span",{className:"sn-name",children:[c.authorName," ·"]}),s.jsx("span",{className:"sn-mono",children:N(c.createdAt)}),s.jsxs("span",{className:"sn-tm-votes",children:["â² ",c.votes]})]}),c.status==="on_air"&&s.jsx("span",{className:"sn-tm-answered is-blue",children:"ÐопÑÐ¾Ñ Ð½Ð° ÑкÑане â оÑвеÑайÑе"}),S?s.jsxs("span",{className:"sn-tm-answered",children:[s.jsx(T,{className:"sn-i sn-i-14"}),"ÐÑвеÑили пиÑÑменно"]}
1):x&&x.status!=="cancelled"&&x.status!=="declined"?s.jsxs("span",{className:"sn-tm-answered",children:[s.jsx(T,{className:"sn-i sn-i-14"}),"ÐÑвеÑÑ Ð² ÑÑиÑе",x.text?` · ${x.text}`:"",x.status==="pending"&&s.jsx(f,{size:"xs",variant:"text",onClick:()=>void n.requests.cancel(x.id),children:"ÐÑмениÑÑ"})]}):h?s.jsxs("div",{className:"sn-tm-answer",children:[s.jsx("label",{className:"sn-sr",htmlFor:`sn-tm-answer-${c.id}`,children:"ÐиÑÑменнÑй оÑвеÑ"}),s.jsx(Ts,{id:`sn-tm-answer-${c.id}`,value:a,rows:3,maxLength:500,autoFocus:!0,placeholder:"ÐÐ°Ñ Ð¾ÑвеÑ",onChange:C=>l(C.target.value),onKeyDown:C=>{C.key==="Escape"&&(C.stopPropagation(),o(null),l(""))}}),s.jsxs("div",{className:"sn-tm-answer-foot",children:[s.jsxs("span",{className:"sn-s",children:["ÐÑÐ²ÐµÑ ÑÐ²Ð¸Ð´Ð¸Ñ ÑолÑко ",c.isAnonymous?"авÑÐ¾Ñ Ð²Ð¾Ð¿ÑоÑа":_(c.authorName)]}),s.jsx(f,{size:"xs",variant:"text",onClick:()=>{o(null),l("")},children:"ÐÑмена"}),s.jsx(f,{size:"sm",variant:"primary",icon:s.jsx(Bs,{className:"sn-i sn-i-14"}),loading:d,disabled:!a.trim(),onClick:()=>void u(c),children:"ÐÑпÑавиÑÑ"})]})]}):s.jsxs("span",{className:"sn-acts",children:[c.status!=="on_air"&&s.jsx(f,{size:"sm",variant:"quiet",onClick:()=>void p(c),children:"ÐÑвеÑиÑÑ Ð² ÑÑиÑе"}),s.jsx(f,{size:"sm",variant:"text",onClick:()=>{o(c.id),l("")},children:"ÐÑвеÑиÑÑ Ð¿Ð¸ÑÑменно"})]})]},c.id)})})]})}function xt({api:n}){var B;const e=os(n),t=e.onStage,[i,r]=m.useState(null),[o,a]=m.useState(!1),[l,d]=m.useState(!1),[j,p]=m.useState(!1),[u,c]=m.useState(!1),[x,S]=m.useState(!1),h=Hs(e),C=ls(e);Us(h,t),Ws(e);const L=(B=e.rt.cues.called)==null?void 0:B.at;m.useEffect(()=>{L&&a(!0)},[L]);const A=es(e).filter(y=>!e.answers.answers[y.id]).length,b=m.useMemo(()=>t?[{id:"notes",label:"ÐамеÑки"},{id:"questions",label:"ÐопÑоÑÑ",count:A},{id:"producer",label:"ÐÑодÑÑеÑ",dot:e.producerUnread&&i!=="producer"}]:[{id:"producer",label:"ÐÑодÑÑеÑ",dot:e.producerUnread&&i!=="producer"},{id:"notes",label:"ÐамеÑки и ÑлайдÑ"},{id:"program",label:"ÐÑогÑамма"}],[t,A,e.producerUnread,i]),g=i&&b.some(y=>y.id===i)?i:b[0].id;m.useEffect(()=>{r(null)},[t]),m.useEffect(()=>{g==="notes"&&S(!0)},[g]);const I=e.markProducerRead,ns=e.thread.length+e.rt.cues.inbox.length;m.useEffect(()=>{g==="producer"&&I()},[g,ns,I]);const ts=$(e),M=t&&e.timeline.myCurrent&&H(e.timeline.myCurrent)?e.timeline.myCurrent:null,v=n.isSharingScreen,w=()=>{c(!0),d(!0)},as=[...cs(e,C),h.presentation?{label:h.mine?"Ð¡Ð»Ð°Ð¹Ð´Ñ Ñ Ð¿ÑодÑÑеÑа":"Ð¡Ð»Ð°Ð¹Ð´Ñ Ð·Ð°Ð³ÑÑженÑ",ok:!0,onClick:()=>r("notes"),title:"ÐÑкÑÑÑÑ ÑлайдÑ"}:H(ts)?{label:"Ðкно Ð´Ð»Ñ Ð¿Ð¾ÐºÐ°Ð·Ð°",ok:v,onClick:w,title:"ÐÑбÑаÑÑ, ÑÑо показаÑÑ"}:{label:"ÐамеÑки пÑоÑиÑанÑ",ok:x,onClick:()=>r("notes"),title:"ÐÑкÑÑÑÑ Ð·Ð°Ð¼ÐµÑки"}],k=e.rt.cues.current&&g!=="producer"?s.jsx(ms,{ctx:e,onReply:()=>r("producer")}):null;let P,z=null;g==="notes"?t?P=s.jsxs(s.Fragment,{children:[k,M&&!h.presentation?s.jsx(Ys,{ctx:e,block:M}):s.jsx(Xs,{ctx:e,slides:h})]}):(P=s.jsxs(s.Fragment,{children:[k,s.jsx(qs,{ctx:e,slides:h})]}),z=s.jsx(Vs,{ctx:e,slides:h})):g==="program"?P=s.jsxs(s.Fragment,{children:[k,s.jsx(_s,{ctx:e})]}):g==="questions"?P=s.jsxs(s.Fragment,{children:[k,s.jsx(Gs,{ctx:e,slides:h})]}):(P=s.jsx(ks,{ctx:e,intro:s.jsx(bs,{ctx:e,limit:1})}),z=s.jsx(zs,{ctx:e}));const rs=!!M&&!v&&!u?s.jsxs("button",{type:"button",className:"sn-tm-hint",onClick:w,role:"note",children:[s.jsxs("b",{children:["ÐÐ°Ñ Ð±Ð»Ð¾Ðº â ",M.title.toLowerCase()]}),s.jsx("span",{children:"ÐажмиÑе, ÑÑÐ¾Ð±Ñ Ð¿Ð¾ÐºÐ°Ð·Ð°ÑÑ ÑкÑан зÑиÑелÑм"})]}):null;return s.jsxs("div",{className:"sn sn-studio sn-tm","data-view":"speaker",children:[s.jsx(ds,{ctx:e}),s.jsx(ps,{ctx:e,speaker:!0}),s.jsxs("div",{className:"sn-tm-body",children:[s.jsxs("main",{className:`sn-tm-main ${t?"is-live":"is-backstage"}${v?" has-banner":""}`,children:[s.jsx(us,{ctx:e,head:t?s.jsx(xs,{ctx:e}):s.jsx(hs,{ctx:e,withVolume:!0}),dock:y=>s.jsx(D,{ctx:e,exitFull:y,onScreen:w,onLeaveStage:t?()=>p(!0):void 0,onSlides:()=>r("notes")})},"program"),v&&s.jsx(js,{ctx:e,onChange:w},"sharing"),t?s.jsxs("div",{className:"sn-tm-area-bottom sn-tm-bottom",children:[h.presentation&&!v?s.jsx("div",{className:"sn-tm-bottom-left",children:s.jsx(Qs,{slides:h})}):s.jsx(fs,{ctx:e,small:!0,note:v?"ÐÑ â в ÑÐ³Ð»Ñ ÑÑиÑа":void 0}),s.jsx(D,{ctx:e,onScreen:w,onLeaveStage:()=>p(!0),hint:rs,onSlides:()=>r("notes")}),s.jsx("div",{className:"sn-tm-bottom-right",children:h.presentation&&!v&&h.canControl&&h.index<h.total-1?s.jsxs("span",{className:"sn-tm-nextslide",children:[s.jsx(Os,{className:"sn-i sn-i-14"}),"ÑледÑÑÑий Ñлайд â ÑÑÑелка впÑаво"]}):s.jsx(gs,{ctx:e})})]},"bottom"):s.jsxs(is.Fragment,{children:[s.jsx(Ns,{ctx:e}),s.jsx(vs,{ctx:e}),s.jsx(ys,{ctx:e,checks:as}),s.jsx("div",{className:"sn-tm-area-dock sn-tm-dock-row",children:s.jsx(D,{ctx:e,onScreen:w,onSlides:()=>r("notes")})}),!o&&s.jsx(Ss,{ctx:e,onOpen:()=>a(!0)})]},"backstage")]}),s.jsx(Cs,{tabs:b,active:g,onChange:y=>r(y),footer:z,chat:g==="producer",children:P})]}),s.jsx(ws,{ctx:e,open:o&&!!e.rt.cues.called,onClose:()=>a(!1)}),s.jsx(Ps,{ctx:e,open:l,onClose:()=>d(!1)}),s.jsx(Ms,{ctx:e,open:j,onClose:()=>p(!1)})]})}export{ft as SPEAKER_VIEW_MOBILE,gt as SPEAKER_VIEW_READY,xt as SpeakerView};
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.