1import{r as b,j as s}from"./vendor-react-72e4a099.js";import{B as d}from"./Toast-43ee7788.js";import{C as h,a as u,E as C,T as o,b as M}from"./Display-48adcc24.js";import{u as T}from"./format-5039f022.js";import{r as z}from"./buildLifecycle-a44b0e05.js";import{N as $}from"./NotificationsPopover-e8b89aa4.js";import{a as v,c as w,f as R,h as I}from"./zoned-50a8f13e.js";import{u as D,g as P,t as x,a as S,b as k,m as B,c as L,k as O,e as A,w as E,d as F,f as U,h as q}from"./speakerShared-f4f2c69c.js";import{C as W}from"./circle-alert-67975319.js";import{M as H}from"./mic-098d6d5b.js";import{V as g}from"./video-a08888e9.js";import{R as _}from"./radio-dc3b7f8c.js";import{C as V}from"./clock-e6794ea5.js";import{A as X}from"./arrow-right-eda8f931.js";import{L as G}from"./list-ordered-28cc4cb1.js";import{P as J}from"./play-3580deb4.js";import{C as y}from"./check-083433f7.js";import{T as f}from"./triangle-alert-cdc85d96.js";import{C as K}from"./corner-down-left-87f64a70.js";import{U as Q}from"./upload-34ad8b6a.js";import"./createLucideIcon-581cd729.js";import"./eye-5711d0dd.js";import"./x-b9f3d093.js";import"./circle-check-63b159d4.js";import"./api-d8a57490.js";import"./CabinetContext-31fc5321.js";import"./shared-303b156a.js";import"./refresh-cw-98362cea.js";import"./lock-73755c1f.js";import"./sparkles-e0558c3e.js";import"./file-play-96922e92.js";import"./crown-fdf36aa5.js";import"./user-2d8f405f.js";import"./shield-b21f8aed.js";import"./bell-521a1a83.js";import"./check-check-9685683e.js";import"./chevron-down-888c3b30.js";import"./sliders-horizontal-41aa44a5.js";import"./users-a990a1e8.js";import"./file-text-e7c68864.js";import"./user-plus-d862ebc6.js";import"./list-checks-f8235a5c.js";import"./share-2-50cd044b.js";import"./user-check-ea278564.js";import"./eventDuration-e09aabf0.js";import"./shared-ca8c7fb4.js";import"./Controls-5a18fd37.js";import"./copy-34f4069e.js";import"./calendar-plus-0f511f3c.js";import"./chevron-left-39dc0897.js";import"./plus-39793e81.js";import"./presentation-e2109ecf.js";import"./shield-check-111738a3.js";import"./trash-2-7a739e24.js";import"./film-0ba9e353.js";const Y=["вÑ","пн","вÑ","ÑÑ","ÑÑ","пÑ","Ñб"],Z=["Ñнв","Ñев","маÑ","апÑ","маÑ","иÑн","иÑл","авг","Ñен","окÑ","ноÑ","дек"];function ss({talk:e,dark:i}){if(!e.scheduledAt)return s.jsx("span",{className:`sn-c-daybox${i?" is-dark":""}`,children:s.jsx("b",{children:"â"})});const a=R(new Date(e.scheduledAt),x(e));return s.jsxs("span",{className:`sn-c-daybox${i?" is-dark":""}`,"aria-hidden":"true",children:[s.jsx("b",{children:a.day}),s.jsxs("span",{children:[Z[a.month-1]," · ",Y[a.weekday]]})]})}function es({talk:e,now:i}){const a=e.techCheck,l=x(e),r=e.scheduledAt?v(e.scheduledAt,l)==="ÑегоднÑ"||e.status==="live":!1,n=e.backstageOpensAt?new Date(e.backstageOpensAt).getTime():null,c=e.status==="live"||n!=null&&n<=i;return s.jsxs("div",{className:"sn-c-talk-tags",children:[(a==null?void 0:a.status)==="ok"?s.jsxs(o,{tone:"green",icon:s.jsx(y,{className:"sn-i sn-i-14"}),children:["ТеÑ
ника · пÑовеÑена ",E(a.checkedAt).replace(/^ÑÐµÐ³Ð¾Ð´Ð½Ñ /,"")]}):a?s.jsx(o,{tone:"amber",icon:s.jsx(f,{className:"sn-i sn-i-14"}),children:"ТеÑ
ника · еÑÑÑ Ð¿ÑоблемÑ"}):r?s.jsx(o,{tone:"amber",icon:s.jsx(g,{className:"sn-i sn-i-14"}),children:"ТеÑ
ника · не пÑовеÑена"}):s.jsx(o,{tone:"gray",icon:s.jsx(g,{className:"sn-i sn-i-14"}),children:"ТеÑ
ника · пÑовеÑÑÑе в Ð´ÐµÐ½Ñ ÑÑиÑа"}),e.materials.length?s.jsxs(o,{tone:"green",icon:s.jsx(y,{className:"sn-i sn-i-14"}),children:["ÐаÑеÑÐ¸Ð°Ð»Ñ Â· ",F(e.materials)]}):s.jsx(o,{tone:"amber",icon:s.jsx(f,{className:"sn-i sn-i-14"}),children:"ÐаÑеÑÐ¸Ð°Ð»Ñ Ð½Ðµ загÑÑженÑ"}),r&&s.jsx(o,{tone:"gray",icon:s.jsx(K,{className:"sn-i sn-i-14"}),children:c?e.kind==="meeting"?"ÐомнаÑа оÑкÑÑÑа":"ÐÑлиÑÑ Ð¾ÑкÑÑÑÑ":`ÐÑлиÑÑ Ð¾ÑкÑоÑÑÑÑ Ð² ${n?I(new Date(n),l):""}`})]})}function ns({talk:e,onChange:i}){const a=b.useRef(null),{upload:l,progress:r}=U(e.roomId,n=>i(e.roomId,n));return s.jsxs(s.Fragment,{children:[s.jsx(d,{variant:"quiet",block:!0,icon:s.jsx(Q,{className:"sn-i"}),loading:r!=null,onClick:()=>{var n;return(n=a.current)==null?void 0:n.click()},children:r!=null?`${Math.round(r*100)}%`:e.materials.length?"ÐобавиÑÑ Ñайл":"ÐагÑÑзиÑÑ"}),s.jsx("span",{className:"sn-hint",style:{fontSize:13,textAlign:"center"},children:"PDF, PPTX или MP4 до 1 ÐÐ"}),s.jsx("input",{ref:a,type:"file",hidden:!0,accept:q,onChange:n=>{var t;const c=(t=n.target.files)==null?void 0:t[0];n.target.value="",l(c)}})]})}function N({talk:e,now:i,today:a,onMaterials:l}){const r=x(e),n=S(r),c=k(e),t=B(e),m=t!=null?Math.round((t-i)/6e4):null,j=e.kind==="meeting",p=L(e);return s.jsxs(h,{className:`sn-c-talk${a?" is-today":""}`,children:[s.jsx(ss,{talk:e,dark:a}),s.jsxs("div",{className:"sn-c-talk-body",children:[a?s.jsxs("div",{style:{display:"flex",flexWrap:"wrap",gap:8},children:[s.jsxs(o,{tone:"blue",icon:j?s.jsx(g,{className:"sn-i sn-i-14"}):s.jsx(_,{className:"sn-i sn-i-14"}),children:[O(e),p&&s.jsxs(s.Fragment,{children:[" · ",s.jsx("span",{className:"sn-mono",children:p})]}),n&&` ${n}`]}),e.status==="live"?s.jsxs(o,{tone:"red",children:[s.jsx("span",{className:"sn-live-dot"}),"Ð ÑÑиÑе"]}):m!=null&&m>0?s.jsxs(o,{tone:"amber",children:["ÐÐ°Ñ Ð²ÑÑ
од ÑеÑез ",s.jsx("span",{className:"sn-mono",children:m<60?`${m} мин`:`${Math.floor(m/60)} Ñ ${m%60} мин`})]}):null]}):s.jsxs("div",{className:"sn-c-talk-eyebrow",children:[A(e)," · ",e.scheduledAt?v(e.scheduledAt,r):""," ",p&&s.jsx("span",{className:"sn-mono",children:p}),n&&` ${n}`,e.producer&&` · пÑодÑÑÐµÑ ${e.producer.name}`]}),s.jsx("h3",{className:a?"sn-display sn-c-talk-title":"sn-c-talk-title",children:e.title}),s.jsxs("div",{className:"sn-c-talk-meta",children:[c?s.jsxs("span",{style:{display:"inline-flex",alignItems:"center",gap:6},children:[a&&s.jsx(V,{className:"sn-i sn-i-16",style:{color:"var(--sn-ink-3)"}}),"ÐÐ°Ñ Ð±Ð»Ð¾Ðº ",s.jsx("b",{className:"sn-mono",children:c})]}):s.jsx("span",{children:"Ðлок пока не назнаÑен"}),e.myBlock&&s.jsxs("span",{children:["· «",e.myBlock.title,"»"]}),a&&e.producer&&s.jsxs("span",{style:{display:"inline-flex",alignItems:"center",gap:6},children:[s.jsx(M,{name:e.producer.name,src:e.producer.avatarUrl,size:22}),"пÑодÑÑÐµÑ ",e.producer.name]})]}),s.jsx(es,{talk:e,now:i})]}),s.jsx("div",{className:"sn-c-talk-actions",children:a?s.jsxs(s.Fragment,{children:[s.jsx(d,{variant:"primary",size:"lg",block:!0,to:e.enterPath,iconRight:s.jsx(X,{className:"sn-i"}),children:j?"ÐойÑи в комнаÑÑ":"ÐойÑи за кÑлиÑÑ"}),s.jsx(d,{variant:"quiet",block:!0,to:`${z.speakerHome()}?talk=${encodeURIComponent(e.roomId)}`,icon:s.jsx(G,{className:"sn-i"}),children:j?"ÐовеÑÑка":"ÐÑогÑамма ÑÑиÑа"})]}):s.jsx(ns,{talk:e,onChange:l})})]})}function is({items:e}){return s.jsx(h,{as:"ul",className:"sn-c-past",children:e.map(i=>s.jsxs("li",{children:[s.jsx("span",{className:"sn-c-past-date",children:i.scheduledAt?w(i.scheduledAt,x(i)):"â"}),s.jsxs("span",{className:"sn-c-past-body",children:[s.jsx("b",{className:"sn-ellipsis",children:i.title}),s.jsx("span",{className:"sn-ellipsis",children:i.myBlock?`ÐÐ°Ñ Ð±Ð»Ð¾Ðº «${i.myBlock.title}»`:A(i)})]}),s.jsx("span",{className:"sn-c-past-dur sn-mono",children:i.myBlock?`${i.myBlock.durationMin} мин`:i.durationMinutes?`${i.durationMinutes} мин`:""}),i.recording.available&&i.recording.path?s.jsx(d,{variant:"quiet",size:"sm",to:i.recording.path,icon:s.jsx(J,{className:"sn-i sn-i-16"}),children:"ÐапиÑÑ"}):s.jsx("span",{className:"sn-hint sn-c-past-norec",children:"запиÑи неÑ"})]},i.roomId))})}function re(){const{items:e,error:i,reload:a,setMaterials:l}=D(),r=T(3e4),n=b.useMemo(()=>P(e||[],r),[e,r]),c=e&&!n.today.length&&!n.soon.length&&!n.past.length;return s.jsxs("div",{className:"sn-c-page sn-c-speaker",style:{display:"flex",flexDirection:"column",gap:28,minWidth:0},children:[s.jsxs("section",{className:"sn-c-spk-head",children:[s.jsxs("div",{style:{minWidth:0,flex:1},children:[s.jsx("h1",{className:"sn-display sn-cab-title",children:"Ðои вÑÑÑÑплениÑ"}),s.jsx("p",{style:{fontSize:15,color:"var(--sn-ink-2)",marginTop:8},children:"ÐÑемÑ, ÑеÑ
ника и маÑеÑÐ¸Ð°Ð»Ñ Ðº ÐºÐ°Ð¶Ð´Ð¾Ð¼Ñ ÑÑиÑÑ â и вÑ
од за кÑлиÑÑ Ð² один клик."})]}),s.jsx($,{})]}),i?s.jsxs(h,{pad:!0,style:{display:"flex",alignItems:"center",gap:12},children:[s.jsx(W,{className:"sn-i",style:{color:"var(--sn-red)"}}),s.jsx("span",{style:{flex:1},children:i}),s.jsx(d,{variant:"quiet",size:"sm",onClick:()=>a(),children:"ÐовÑоÑиÑÑ"})]}):e?c?s.jsx(h,{children:s.jsx(C,{icon:s.jsx(H,{className:"sn-i sn-i-24"}),title:"ÐÑÑÑÑплений пока неÑ",children:"Ðогда пÑодÑÑÐµÑ Ð¿ÑиглаÑÐ¸Ñ Ð²Ð°Ñ Ð² ÑÑиÑ, вÑÑÑÑпление поÑвиÑÑÑ Ð·Ð´ÐµÑÑ â Ñ Ð²Ñеменем ваÑего блока, пÑогÑаммой и вÑ
одом за кÑлиÑÑ."})}):s.jsxs(s.Fragment,{children:[n.today.length>0&&s.jsxs("section",{className:"sn-c-talks","aria-labelledby":"talks-today",children:[s.jsx("h2",{id:"talks-today",className:"sn-eyebrow",children:"СегоднÑ"}),n.today.map(t=>s.jsx(N,{talk:t,now:r,today:!0,onMaterials:l},t.roomId))]}),n.soon.length>0&&s.jsxs("section",{className:"sn-c-talks","aria-labelledby":"talks-soon",children:[s.jsx("h2",{id:"talks-soon",className:"sn-eyebrow",children:"СкоÑо"}),n.soon.map(t=>s.jsx(N,{talk:t,now:r,onMaterials:l},t.roomId))]}),n.past.length>0&&s.jsxs("section",{className:"sn-c-talks","aria-labelledby":"talks-past",children:[s.jsxs("div",{style:{display:"flex",alignItems:"baseline",justifyContent:"space-between",gap:12},children:[s.jsx("h2",{id:"talks-past",className:"sn-eyebrow",children:"ÐÑоÑедÑие"}),s.jsx("span",{className:"sn-hint",style:{fontSize:13},children:"запиÑи доÑÑÑÐ¿Ð½Ñ 90 дней"})]}),s.jsx(is,{items:n.past})]}),n.today.length===0&&n.soon.length===0&&s.jsx("p",{className:"sn-hint",style:{margin:0,fontSize:14},children:"ÐÑедÑÑоÑÑиÑ
вÑÑÑÑплений Ð½ÐµÑ â новÑе поÑвÑÑÑÑ Ð·Ð´ÐµÑÑ, когда пÑодÑÑÐµÑ Ð¿ÑиглаÑÐ¸Ñ Ð²Ð°Ñ."})]}):s.jsxs(s.Fragment,{children:[s.jsx(u,{height:178,radius:18}),s.jsx(u,{height:160,radius:18}),s.jsx(u,{height:200,radius:18})]})]})}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.