@medipha/feed 0.1.8 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -25,4 +25,4 @@ ${t} {`;return Ft(n,function(e,t){ht(e,t)&&(r=`${r} ${Mt.genRule(e,t)}`)}),`${r}
25
25
  `),c=s.map(e=>{let t=Math.min(Math.floor((e.match(/^ */)?.[0].length??0)/2),4),n=Math.max(0,Math.min(4,t+r));return Rh.repeat(n)+e.trimStart()}),l=c.join(`
26
26
  `),u=c[0].length-s[0].length;return{text:e.slice(0,i)+l+e.slice(o),selectionStart:Math.max(i,t+u),selectionEnd:Math.max(i,n+l.length-s.join(`
27
27
  `).length)}}function Bh(e,t,n,r,i){let a=e.slice(0,t),o=e.slice(n),s=a.lastIndexOf(`{`);if(s!==-1&&a.indexOf(`}`,s)===-1&&o.startsWith(`}`)){let i=a.slice(s+1),c=i.indexOf(`|`);if(c!==-1){let a=i.slice(0,c).split(` `),l=i.slice(c+1),u=e.slice(t,n),d=wh(r),f=a.filter(e=>e!==r&&wh(e)!==d),p=a.includes(r)?f:[...f,r],m=s+l.length;if(p.length===0)return{text:e.slice(0,s)+l+u+o.slice(1),selectionStart:m,selectionEnd:m+u.length};let h=`{${[...p.filter(e=>!wh(e)),...p.filter(wh)].join(` `)}|`;return{text:`${e.slice(0,s)}${h}${l}${u}}${o.slice(1)}`,selectionStart:s+h.length+l.length,selectionEnd:s+h.length+l.length+u.length}}}let c=`{${r}|`,l=e.slice(t,n)||i;return{text:`${a}${c}${l}}${o}`,selectionStart:t+c.length,selectionEnd:t+c.length+l.length}}function Vh(e,t,n,r){return Bh(e,t,n,r,`chữ đổi màu`)}function Hh(e,t,n,r){return Bh(e,t,n,r,`chữ đổi cỡ`)}function Uh(e,t){let n=e.slice(0,t),r=n.lastIndexOf(`{`);if(r===-1||n.indexOf(`}`,r)!==-1)return[];let i=n.slice(r+1),a=i.indexOf(`|`);return a===-1?[]:i.slice(0,a).split(` `)}function Wh(e,t){return Uh(e,t).find(Th)??null}function Gh(e,t){return Uh(e,t).find(wh)??null}var Kh=[{format:`bold`,label:`In đậm (Ctrl+B)`,icon:(0,f.jsx)(m.BoldOutlined,{})},{format:`italic`,label:`In nghiêng (Ctrl+I)`,icon:(0,f.jsx)(m.ItalicOutlined,{})},{format:`underline`,label:`Gạch chân (Ctrl+U)`,icon:(0,f.jsx)(m.UnderlineOutlined,{})},{format:`strike`,label:`Gạch ngang`,icon:(0,f.jsx)(m.StrikethroughOutlined,{})}],qh=[{format:`heading`,label:`Tiêu đề`,icon:(0,f.jsx)(m.FontSizeOutlined,{})},{format:`bullets`,label:`Danh sách`,icon:(0,f.jsx)(m.UnorderedListOutlined,{})},{format:`numbers`,label:`Danh sách đánh số`,icon:(0,f.jsx)(m.OrderedListOutlined,{})},{format:`quote`,label:`Trích dẫn`,icon:(0,f.jsx)(`span`,{className:`med-feed-format-bar__quote`,children:`❝`})}],Jh=[{color:`red`,hex:`#dc2626`,label:`Đỏ`},{color:`orange`,hex:`#ea580c`,label:`Cam`},{color:`green`,hex:`#16a34a`,label:`Xanh lá`},{color:`blue`,hex:`#2563eb`,label:`Xanh dương`},{color:`purple`,hex:`#9333ea`,label:`Tím`},{color:`gray`,hex:`#6b7280`,label:`Xám`}],Yh=[{size:`sm`,label:`Nhỏ`,preview:12},{size:`lg`,label:`Lớn`,preview:17},{size:`xl`,label:`Rất lớn`,preview:21}];function Xh({onInline:e,onLines:t,activeInline:n=[],activeLines:r=[],onColor:i,activeColor:a,onIndent:o,onSize:s,activeSize:c,onUndo:u,onRedo:d,canUndo:p,canRedo:h}){let g=e=>e.preventDefault(),_=(e,t,n,r,i,a=!1)=>(0,f.jsx)(l.Tooltip,{title:e,children:(0,f.jsx)(l.Button,{type:`text`,size:`small`,icon:t,"aria-label":e,"aria-pressed":n||void 0,disabled:a,className:n?`med-feed-format-bar__btn--active`:void 0,onMouseDown:g,onClick:r})},i);return(0,f.jsxs)(`div`,{className:`med-feed-format-bar`,role:`toolbar`,"aria-label":`Định dạng văn bản`,children:[_(`Hoàn tác (Ctrl+Z)`,(0,f.jsx)(m.UndoOutlined,{}),!1,()=>u?.(),`undo`,!p),_(`Làm lại (Ctrl+Y)`,(0,f.jsx)(m.RedoOutlined,{}),!1,()=>d?.(),`redo`,!h),(0,f.jsx)(`span`,{className:`med-feed-format-bar__divider`,"aria-hidden":!0}),Kh.map(t=>_(t.label,t.icon,n.includes(t.format),()=>e(t.format),t.format)),(0,f.jsx)(l.Popover,{trigger:`click`,placement:`bottom`,content:(0,f.jsx)(`div`,{className:`med-feed-format-bar__colors`,role:`menu`,"aria-label":`Màu chữ`,children:Jh.map(e=>(0,f.jsx)(`button`,{type:`button`,role:`menuitem`,"aria-label":`Màu ${e.label}`,"aria-pressed":a===e.color,className:a===e.color?`med-feed-format-bar__swatch med-feed-format-bar__swatch--active`:`med-feed-format-bar__swatch`,style:{color:e.hex},onMouseDown:g,onClick:()=>i?.(e.color),children:`A`},e.color))}),children:(0,f.jsx)(l.Tooltip,{title:`Màu chữ`,children:(0,f.jsx)(l.Button,{type:`text`,size:`small`,icon:(0,f.jsx)(m.FontColorsOutlined,{}),"aria-label":`Màu chữ`,className:a?`med-feed-format-bar__btn--active`:void 0,onMouseDown:g})})},`color`),(0,f.jsx)(l.Popover,{trigger:`click`,placement:`bottom`,content:(0,f.jsx)(`div`,{className:`med-feed-format-bar__sizes`,role:`menu`,"aria-label":`Cỡ chữ`,children:Yh.map(e=>(0,f.jsxs)(`button`,{type:`button`,role:`menuitem`,"aria-label":`Cỡ chữ ${e.label}`,"aria-pressed":c===e.size,className:c===e.size?`med-feed-format-bar__size med-feed-format-bar__size--active`:`med-feed-format-bar__size`,style:{fontSize:e.preview},onMouseDown:g,onClick:()=>s?.(e.size),children:[`A`,(0,f.jsx)(`span`,{className:`med-feed-format-bar__size-label`,children:e.label})]},e.size))}),children:(0,f.jsx)(l.Tooltip,{title:`Cỡ chữ`,children:(0,f.jsx)(l.Button,{type:`text`,size:`small`,icon:(0,f.jsx)(`span`,{className:`med-feed-format-bar__size-icon`,children:`Aa`}),"aria-label":`Cỡ chữ`,className:c?`med-feed-format-bar__btn--active`:void 0,onMouseDown:g})})},`size`),(0,f.jsx)(`span`,{className:`med-feed-format-bar__divider`,"aria-hidden":!0}),qh.map(e=>_(e.label,e.icon,r.includes(e.format),()=>t(e.format),e.format)),_(`Thụt đầu dòng`,(0,f.jsx)(m.MenuUnfoldOutlined,{}),!1,()=>o?.(1),`indent`),_(`Bỏ thụt đầu dòng`,(0,f.jsx)(m.MenuFoldOutlined,{}),!1,()=>o?.(-1),`outdent`)]})}function Zh(e,t){return e instanceof y&&e.status>=400&&e.status<500?`${t}: ${e.message}`:`Không tải lên được ${t}`}var Qh=[{key:`image`,label:`Ảnh`,icon:(0,f.jsx)(m.PictureOutlined,{style:{color:`#45bd62`}}),accept:`.jpg,.jpeg,.png,.gif,.webp`,kind:`image`},{key:`video`,label:`Video`,icon:(0,f.jsx)(m.PlayCircleOutlined,{style:{color:`#f3425f`}}),accept:`.mp4,.webm,.mov`,kind:`video`},{key:`document`,label:`Tài liệu`,icon:(0,f.jsx)(m.FileTextOutlined,{style:{color:`var(--feed-primary)`}}),accept:`.pdf,.doc,.docx,.xls,.xlsx,.ppt,.pptx`,kind:`document`}];function $h({count:e,disabled:t,variant:n=`label`,onUploadStart:r,onUploaded:i,onQuestion:a}){let{api:o,me:s}=P(),c=s.mediaLimitsMb??k,u=({file:e})=>{let t=e;r(),o.uploadMedia(t,t.name).then(i,e=>{l.message.error(Zh(e,t.name)),i(null)})},d=t=>(n,r)=>e+r.length>10?(l.message.warning(`Mỗi bài tối đa 10 tệp`),l.Upload.LIST_IGNORE):n.size>c[t]*1024*1024?(l.message.warning(`${n.name}: tối đa ${c[t]} MB`),l.Upload.LIST_IGNORE):!0,p=(e,r,i)=>n===`icon`?(0,f.jsx)(l.Tooltip,{title:e,children:(0,f.jsx)(l.Button,{type:`text`,shape:`circle`,size:`large`,icon:r,disabled:t,"aria-label":e,onClick:i,className:`med-feed-picker-icon`})}):(0,f.jsx)(l.Button,{type:`text`,icon:r,disabled:t,onClick:i,children:e});return(0,f.jsxs)(f.Fragment,{children:[Qh.map(e=>(0,f.jsx)(l.Upload,{accept:e.accept,multiple:!0,showUploadList:!1,customRequest:u,beforeUpload:d(e.kind),children:p(e.label,e.icon)},e.key)),a&&p(`Hỏi đáp`,(0,f.jsx)(m.QuestionCircleOutlined,{style:{color:`#f7b928`}}),a)]})}function eg({media:e,uploadingCount:t,onRemove:n}){let r=e.filter(e=>e.kind!==`DOCUMENT`),i=e.filter(e=>e.kind===`DOCUMENT`);return e.length===0&&t===0?null:(0,f.jsxs)(`div`,{className:`med-feed-attached`,children:[(r.length>0||t>0)&&(0,f.jsxs)(`div`,{className:`med-feed-attached__images`,children:[r.map(e=>(0,f.jsxs)(`div`,{className:`med-feed-attached__thumb`,children:[e.kind===`VIDEO`?(0,f.jsxs)(f.Fragment,{children:[e.thumbnailUrl?(0,f.jsx)(`img`,{src:e.thumbnailUrl,alt:e.fileName,referrerPolicy:`no-referrer`}):(0,f.jsx)(`video`,{src:e.fileUrl,muted:!0,preload:`metadata`}),(0,f.jsx)(m.PlayCircleOutlined,{className:`med-feed-attached__play`})]}):(0,f.jsx)(`img`,{src:e.fileUrl,alt:e.fileName,referrerPolicy:`no-referrer`}),(0,f.jsx)(l.Button,{size:`small`,shape:`circle`,icon:(0,f.jsx)(m.CloseOutlined,{}),className:`med-feed-attached__remove`,"aria-label":`Bỏ ${e.fileName}`,onClick:()=>n(e.id)})]},e.id)),Array.from({length:t},(e,t)=>(0,f.jsx)(`div`,{className:`med-feed-attached__thumb med-feed-attached__thumb--loading`,children:(0,f.jsx)(m.LoadingOutlined,{})},`uploading-${t}`))]}),i.length>0&&(0,f.jsx)(l.List,{size:`small`,dataSource:i,renderItem:e=>(0,f.jsx)(l.List.Item,{actions:[(0,f.jsx)(l.Button,{type:`text`,size:`small`,icon:(0,f.jsx)(m.CloseOutlined,{}),"aria-label":`Bỏ ${e.fileName}`,onClick:()=>n(e.id)},`remove`)],children:(0,f.jsx)(l.List.Item.Meta,{avatar:(0,f.jsx)(um,{fileName:e.fileName}),title:e.fileName,description:Dp(e.fileSize)})})})]})}var tg=`hỏi đáp`,ng=85;function rg(e){return e.find(e=>e.name.trim().toLowerCase()===tg)}var ig=(0,d.forwardRef)(function({categories:e=[],initialPost:t,intent:n=`text`,onDirtyChange:r,onSaved:i,zoomed:a=!1,showPreview:o=!1},s){let{api:c,me:u}=P(),p=(0,d.useRef)(null),h=(0,d.useRef)(new Map(t?.mentionedUsers.map(e=>[e.fullName,e]))),g=(0,d.useRef)(crypto.randomUUID()),_=rg(e),[v,y]=(0,d.useState)(tp(t?.content??``,t?.mentionedUsers??[])),[b,x]=(0,d.useState)(t?.category?.id??(n===`question`?_?.id??null:null)),[S,C]=(0,d.useState)(t?.media??[]),[w,T]=(0,d.useState)(0),[E,D]=(0,d.useState)(null),[O,k]=(0,d.useState)(null),[A,j]=(0,d.useState)(``),[ee,M]=(0,d.useState)(!1),[te,ne]=(0,d.useState)(!0),[N,re]=(0,d.useState)({start:0,end:0}),[ie,ae]=(0,d.useState)([]),[oe,se]=(0,d.useState)([]),ce=!!t,le=!v.trim()&&S.length===0,ue=ve(v),de=E!==null||w>0,fe=S.length===0&&v.length<ng&&!v.includes(`
28
- `),pe=Ph(v,N.start,N.end),me=Fh(v,N.start),he=e=>{e!==v&&(ae(e=>[...e.slice(-99),v]),se([]),y(e))},ge=()=>{if(ie.length===0)return;let e=ie[ie.length-1];ae(ie.slice(0,-1)),se([...oe,v]),y(e)},_e=()=>{if(oe.length===0)return;let e=oe[oe.length-1];se(oe.slice(0,-1)),ae([...ie,v]),y(e)};(0,d.useEffect)(()=>{p.current?.focus()},[]),(0,d.useEffect)(()=>{r?.(!ce&&!le)},[ce,le,r]);let ye=async e=>{if(le)return l.message.warning(`Bài viết cần có nội dung hoặc tệp đính kèm`),!1;D(e);let n={content:ep(v,h.current),mediaIds:S.map(e=>e.id),categoryId:b};try{let r;return t?(r=await c.updatePost(t.id,n),e===`submit`&&r.status===`DRAFT`&&(r=await c.submitPost(r.id))):(r=await c.createPost({...n,clientPostId:g.current,submit:e===`submit`}),g.current=crypto.randomUUID()),l.message.success(r.status===`DRAFT`?`Đã lưu nháp`:r.status===`PENDING`?`Bài viết đã vào hàng chờ duyệt`:r.status===`APPROVED`?`Bài viết đã được duyệt, chờ phát hành`:`Đã lưu bài viết`),i(r),!0}catch{return l.message.error(`Không lưu được bài viết, vui lòng thử lại`),!1}finally{D(null)}},be=()=>p.current?.textarea??null,xe=()=>{let e=be();e&&re({start:e.selectionStart??0,end:e.selectionEnd??0})},Se=e=>{he(e.text),requestAnimationFrame(()=>{let t=be();t?.focus(),t?.setSelectionRange(e.selectionStart,e.selectionEnd),xe()})},Ce=e=>{let t=be(),n=t?.selectionStart??v.length,r=t?.selectionEnd??v.length;Se(e(v,n,r))},we=e=>Ce((t,n,r)=>Oh(t,n,r,e)),Te=e=>Ce((t,n,r)=>Lh(t,n,r,e)),Ee={b:`bold`,i:`italic`,u:`underline`},De=e=>{let t=be(),n=t?.selectionStart??v.length,r=t?.selectionEnd??v.length;if(e.key===`Enter`&&(e.shiftKey||e.altKey)&&n===r){e.preventDefault(),Se({text:`${v.slice(0,n)}\n${v.slice(r)}`,selectionStart:n+1,selectionEnd:n+1});return}if(e.key===`Enter`&&!e.shiftKey&&n===r){let t=Ih(v,n);if(t){e.preventDefault(),Se(t);return}}let i=Ee[e.key.toLowerCase()];if((e.ctrlKey||e.metaKey)&&!e.shiftKey&&!e.altKey&&i){e.preventDefault(),we(i);return}if((e.ctrlKey||e.metaKey)&&!e.altKey){let t=e.key.toLowerCase();t===`z`&&!e.shiftKey?(e.preventDefault(),ge()):(t===`z`&&e.shiftKey||t===`y`)&&(e.preventDefault(),_e())}},F={id:t?.id??`draft-preview`,author:u.user??{id:u.userId,fullName:``,avatarUrl:null,departmentName:null},content:ep(v,h.current),mentionedUsers:[...h.current.values()],media:S,status:`PUBLISHED`,commentsLocked:t?.commentsLocked??!1,reactionCount:t?.reactionCount??0,topReactionTypes:t?.topReactionTypes??[],myReaction:null,commentCount:t?.commentCount??0,shareCount:t?.shareCount??0,sharedByMe:!1,createdAt:t?.createdAt??new Date().toISOString()};(0,d.useImperativeHandle)(s,()=>({saveDraft:()=>ye(`draft`),isDirty:()=>!ce&&!le}));let Oe=(0,f.jsxs)(`div`,{className:`med-feed-composer-form`,children:[(0,f.jsxs)(`div`,{className:`med-feed-composer-form__author`,children:[(0,f.jsx)(Hm,{size:40}),(0,f.jsxs)(`span`,{className:`med-feed-composer-form__author-info`,children:[(0,f.jsx)(`span`,{className:`med-feed-composer-form__author-name`,children:Hp.name}),(0,f.jsx)(`span`,{className:`med-feed-composer-form__pills`,children:(0,f.jsx)(Ch,{categories:e,value:b,onChange:x})})]})]}),(0,f.jsxs)(`div`,{className:`med-feed-composer-form__body`,children:[te&&(0,f.jsx)(Xh,{onInline:we,onLines:Te,activeInline:pe,activeLines:me,onColor:e=>Ce((t,n,r)=>Vh(t,n,r,e)),activeColor:Wh(v,N.start),onIndent:e=>Ce((t,n,r)=>zh(t,n,r,e)),onSize:e=>Ce((t,n,r)=>Hh(t,n,r,e)),activeSize:Gh(v,N.start),onUndo:ge,onRedo:_e,canUndo:ie.length>0,canRedo:oe.length>0}),(0,f.jsx)($f,{ref:p,value:v,onChange:e=>{he(e),xe()},onPick:e=>h.current.set(e.fullName,e),onKeyUp:xe,onMouseUp:xe,onKeyDown:De,placeholder:`Bạn ơi, bạn đang nghĩ gì thế?`,autoSize:a||o?{minRows:12,maxRows:30}:{minRows:4,maxRows:14},style:O?{background:O,borderRadius:8,padding:`8px 12px`}:void 0,className:fe?`med-feed-composer-form__text med-feed-composer-form__text--large`:`med-feed-composer-form__text`}),A&&(0,f.jsx)(l.Tag,{icon:(0,f.jsx)(m.EnvironmentOutlined,{}),color:`blue`,closable:!0,onClose:()=>j(``),className:`med-feed-composer-form__location-tag`,children:A}),ue&&(0,f.jsx)(sm,{url:ue}),(0,f.jsx)(eg,{media:S,uploadingCount:w,onRemove:e=>C(t=>t.filter(t=>t.id!==e))})]}),(0,f.jsxs)(`div`,{className:`med-feed-composer-form__toolbar`,children:[(0,f.jsxs)(`div`,{className:`med-feed-composer-form__toolbar-group`,children:[(0,f.jsx)(l.Popover,{trigger:`click`,content:(0,f.jsx)(`div`,{className:`med-feed-composer-form__color-grid`,children:[`#ffffff`,`#fde68a`,`#fca5a5`,`#86efac`,`#93c5fd`,`#d8b4fe`,`#f9a8d4`,`#c7d2fe`].map(e=>(0,f.jsx)(`button`,{type:`button`,className:`med-feed-composer-form__color-btn`,style:{background:e,borderColor:O===e?`var(--feed-primary)`:`#e5e7eb`},onClick:()=>k(e===`#ffffff`?null:e),"aria-label":e},e))}),children:(0,f.jsx)(l.Button,{type:`text`,icon:(0,f.jsx)(m.BgColorsOutlined,{style:{color:`var(--feed-primary)`,fontSize:20}}),className:`med-feed-composer-form__toolbar-btn`,"aria-label":`Màu nền`})}),(0,f.jsx)(l.Tooltip,{title:te?`Ẩn định dạng`:`Định dạng văn bản`,children:(0,f.jsx)(l.Button,{type:`text`,icon:(0,f.jsx)(m.FontColorsOutlined,{style:{fontSize:18}}),className:te?`med-feed-composer-form__toolbar-btn med-feed-composer-form__toolbar-btn--active`:`med-feed-composer-form__toolbar-btn`,"aria-label":`Định dạng văn bản`,"aria-pressed":te,onClick:()=>ne(e=>!e)})}),O&&O!==`#ffffff`&&(0,f.jsx)(l.Button,{type:`text`,size:`small`,onClick:()=>k(null),children:`Xóa màu`})]}),(0,f.jsx)(`div`,{className:`med-feed-composer-form__toolbar-group`,children:(0,f.jsx)(l.Popover,{trigger:`click`,overlayClassName:`med-feed-portal med-feed-emoji-popover`,content:(0,f.jsx)(Vf,{onPick:e=>he(`${v}${e}`)}),children:(0,f.jsx)(l.Button,{type:`text`,icon:(0,f.jsx)(m.SmileOutlined,{style:{color:`#f7b928`,fontSize:20}}),className:`med-feed-composer-form__toolbar-btn`,"aria-label":`Cảm xúc`})})})]}),(0,f.jsxs)(`div`,{className:`med-feed-composer-form__add`,children:[(0,f.jsx)(`span`,{className:`med-feed-composer-form__add-label`,children:`Thêm vào bài viết của bạn`}),(0,f.jsxs)(`span`,{className:`med-feed-composer-form__add-actions`,children:[(0,f.jsx)($h,{variant:`icon`,count:S.length+w,disabled:E!==null,onUploadStart:()=>T(e=>e+1),onUploaded:e=>{T(e=>e-1),e&&C(t=>[...t,e])},onQuestion:_?()=>x(_.id):void 0}),(0,f.jsx)(l.Popover,{trigger:`click`,open:ee,onOpenChange:M,content:(0,f.jsxs)(`div`,{style:{display:`flex`,gap:8,minWidth:220},children:[(0,f.jsx)(l.Input,{size:`small`,placeholder:`Nhập vị trí...`,value:A,onChange:e=>j(e.target.value),onPressEnter:()=>M(!1),prefix:(0,f.jsx)(m.EnvironmentOutlined,{})}),(0,f.jsx)(l.Button,{size:`small`,type:`primary`,onClick:()=>M(!1),children:`Xong`})]}),children:(0,f.jsx)(l.Button,{type:`text`,shape:`circle`,size:`large`,icon:(0,f.jsx)(m.EnvironmentOutlined,{style:{color:`#10b981`,fontSize:22}}),"aria-label":`Vị trí`,className:`med-feed-picker-icon`})})]})]}),(0,f.jsx)(`div`,{className:`med-feed-composer-form__actions`,children:(0,f.jsx)(l.Button,{type:`primary`,block:!0,size:`large`,className:`med-feed-composer-form__submit`,disabled:de||le,loading:E===`submit`,onClick:()=>void ye(`submit`),children:`Hoàn thành`})})]});return o?(0,f.jsxs)(`div`,{className:`med-feed-composer-split`,children:[(0,f.jsx)(`div`,{className:`med-feed-composer-split__editor`,children:Oe}),(0,f.jsx)(`aside`,{className:`med-feed-composer-split__preview`,"aria-label":`Xem trước bài viết`,children:v.trim()||S.length>0?(0,f.jsx)(Jm,{post:F,mode:`preview`}):(0,f.jsx)(`div`,{className:`med-feed-composer-split__empty`,children:`Nội dung bài sẽ hiện ở đây khi bạn gõ.`})})]}):Oe});function ag({open:e,categories:t,intent:n,initialPost:r,onClose:i,onSaved:a}){let o=(0,d.useRef)(!1),s=(0,d.useRef)(null),[c,u]=(0,d.useState)(!1),[p,h]=(0,d.useState)(!1),[g,_]=(0,d.useState)(!1),[v,y]=(0,d.useState)(!1),b=(0,d.useCallback)(e=>{o.current=e},[]),x=()=>{if(!(s.current?.isDirty()??o.current)){i();return}u(!0)},S=async()=>{if(p)return;if(!s.current){u(!1),i();return}h(!0);let e=await s.current.saveDraft();h(!1),e&&(u(!1),i())};return(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(l.Modal,{open:e,title:(0,f.jsxs)(`span`,{className:`med-feed-create-modal__title`,children:[r?`Sửa bài viết`:`Tạo bài viết`,(0,f.jsxs)(`span`,{className:`med-feed-create-modal__tools`,children:[(0,f.jsx)(l.Tooltip,{title:g?`Thoát toàn màn hình`:`Mở trình soạn toàn màn hình`,children:(0,f.jsx)(l.Button,{type:`text`,shape:`circle`,icon:g?(0,f.jsx)(m.CompressOutlined,{}):(0,f.jsx)(m.ExpandOutlined,{}),"aria-label":g?`Thu nhỏ`:`Phóng to`,"aria-pressed":g,className:g?`med-feed-create-modal__tool--active`:void 0,onClick:()=>_(e=>!e)})}),(0,f.jsx)(l.Tooltip,{title:v?`Ẩn`:`Xem`,children:(0,f.jsx)(l.Button,{type:`text`,shape:`circle`,icon:v?(0,f.jsx)(m.EyeInvisibleOutlined,{}):(0,f.jsx)(m.EyeOutlined,{}),"aria-label":`Xem trước`,"aria-pressed":v,className:v?`med-feed-create-modal__tool--active`:void 0,onClick:()=>y(e=>!e)})})]})]}),footer:null,width:g?`100vw`:v?1180:680,style:g?{top:0,maxWidth:`100vw`,margin:0,paddingBottom:0}:void 0,centered:!g,destroyOnClose:!0,maskClosable:!1,onCancel:x,closeIcon:(0,f.jsx)(m.CloseOutlined,{}),className:g?`med-feed-portal med-feed-create-modal med-feed-create-modal--fullscreen`:`med-feed-portal med-feed-create-modal`,children:(0,f.jsx)(ig,{ref:s,zoomed:g,showPreview:v,categories:t,intent:n,initialPost:r,onDirtyChange:b,onSaved:e=>{o.current=!1,u(!1),a(e),i()}})}),(0,f.jsx)(l.Modal,{open:c,zIndex:1100,width:560,maskStyle:{zIndex:1099,background:`rgba(0, 0, 0, 0.65)`},title:`Lưu bài viết này làm bản nháp?`,onCancel:()=>{p||u(!1)},footer:[(0,f.jsx)(l.Button,{type:`text`,disabled:p,onClick:()=>{p||(u(!1),i())},children:`Xóa bản nhập`},`discard`),(0,f.jsx)(l.Button,{type:`primary`,loading:p,onClick:()=>void S(),children:`Lưu làm bản nháp`},`draft`)],centered:!0,destroyOnClose:!0,closeIcon:(0,f.jsx)(m.CloseOutlined,{}),className:`med-feed-portal med-feed-confirm-modal`,children:(0,f.jsx)(`p`,{children:`Nếu bỏ bây giờ, bạn sẽ mất bài viết này.`})})]})}function og({categories:e,onSaved:t}){let{me:n}=P(),[r,i]=(0,d.useState)(null);return n.canPost?(0,f.jsxs)(f.Fragment,{children:[(0,f.jsxs)(l.Button,{type:`primary`,className:`med-feed-create-button`,onClick:()=>i(Date.now()),children:[(0,f.jsx)(`span`,{className:`med-feed-create-button__icon`,"aria-hidden":!0}),`Tạo bài viết`]}),(0,f.jsx)(ag,{open:r!==null,categories:e,intent:`text`,onClose:()=>i(null),onSaved:t},r??`closed`)]}):null}function sg({title:e,description:t,extra:n}){return(0,f.jsxs)(`div`,{className:`med-feed-page-header`,children:[(0,f.jsxs)(`div`,{children:[(0,f.jsx)(l.Typography.Title,{level:4,className:`med-feed-page-header__title`,children:e}),t&&(0,f.jsx)(l.Typography.Text,{type:`secondary`,children:t})]}),n]})}var cg=[{key:`ALL`,label:`Tất cả`},{key:`DRAFT`,label:`Nháp`},{key:`PENDING`,label:`Chờ duyệt`},{key:`APPROVED`,label:`Đã duyệt`},{key:`PUBLISHED`,label:`Đang phát hành`},{key:`UNPUBLISHED`,label:`Đã gỡ`}];function lg(){let{api:e,me:t,isPostFeed:n}=P(),[r,i]=(0,d.useState)(`ALL`),[a,o]=(0,d.useState)(null),s=r===`ALL`?void 0:r,c=F((0,d.useCallback)(()=>e.listCategories(),[e]),`categories`),u=Oe((0,d.useCallback)(t=>e.listMyPosts({status:s,cursor:t}),[e,s]),`my-posts|${r}`),p=async t=>{try{let n=await e.submitPost(t.id);u.updateItem(t.id,()=>n),l.message.success(n.status===`APPROVED`?`Bài viết đã được duyệt, chờ phát hành`:`Bài viết đã vào hàng chờ duyệt`)}catch{l.message.error(`Không gửi được bài viết`)}};return(0,f.jsxs)(`div`,{className:`med-feed-my-posts med-feed-stack`,children:[(0,f.jsx)(sg,{title:`Bài của tôi`,description:`Quản lý nháp, bài chờ duyệt và bài đang phát hành của bạn`,extra:n&&(0,f.jsx)(og,{categories:c.data??[],onSaved:e=>{(r===`ALL`||r===e.status)&&u.prependItem(e)}})}),(0,f.jsx)(l.Tabs,{activeKey:r,onChange:e=>i(e),items:cg.map(e=>({key:e.key,label:e.label}))}),(0,f.jsx)(Ym,{list:u,emptyText:`Không có bài viết`,renderFooter:e=>n&&(e.status===`DRAFT`||e.status===`PENDING`)&&(0,f.jsxs)(l.Space,{wrap:!0,className:`med-feed-my-posts__footer-actions`,children:[(0,f.jsx)(l.Button,{className:`med-feed-my-posts__edit`,icon:(0,f.jsx)(m.EditOutlined,{}),onClick:()=>o(e),children:`Sửa`}),e.status===`DRAFT`&&t.canPost&&(0,f.jsx)(l.Button,{className:`med-feed-my-posts__done`,type:`primary`,icon:(0,f.jsx)(m.SendOutlined,{}),onClick:()=>void p(e),children:`Hoàn thành`})]})}),(0,f.jsx)(ag,{open:a!==null,categories:c.data??[],intent:`text`,initialPost:a??void 0,onClose:()=>o(null),onSaved:e=>u.updateItem(e.id,()=>e)},a?.id??`closed`)]})}function ug({value:e,onChange:t,aspectRatio:n=`16 / 9`,maxWidth:r}){let{api:i}=P(),a=(0,d.useRef)(null),[o,s]=(0,d.useState)(!1),[c,u]=(0,d.useState)(!1),p=async e=>{if(e){if(!e.type.startsWith(`image/`)){l.message.error(`Chỉ nhận file ảnh`);return}s(!0);try{let n=await i.uploadMedia(e,e.name);t?.(n.fileUrl)}catch{l.message.error(`Không tải được ảnh`)}finally{s(!1)}}};return(0,f.jsxs)(`div`,{className:c?`med-feed-image-field med-feed-image-field--drag`:`med-feed-image-field`,style:{maxWidth:r},onDragOver:e=>{e.preventDefault(),u(!0)},onDragLeave:()=>u(!1),onDrop:e=>{e.preventDefault(),u(!1),p(e.dataTransfer.files?.[0])},children:[(0,f.jsxs)(`button`,{type:`button`,className:`med-feed-image-field__drop`,style:{aspectRatio:n},disabled:o,onClick:()=>a.current?.click(),children:[e?(0,f.jsx)(`img`,{src:e,alt:`Ảnh đã chọn`,className:`med-feed-image-field__preview`}):(0,f.jsxs)(`span`,{className:`med-feed-image-field__placeholder`,children:[(0,f.jsx)(m.PictureOutlined,{}),(0,f.jsx)(`strong`,{children:`Tải ảnh lên`}),(0,f.jsx)(`span`,{children:`Kéo thả hoặc bấm để chọn ảnh`})]}),e&&(0,f.jsxs)(`span`,{className:`med-feed-image-field__change`,children:[(0,f.jsx)(m.CameraOutlined,{}),` Đổi ảnh`]}),o&&(0,f.jsxs)(`span`,{className:`med-feed-image-field__busy`,children:[(0,f.jsx)(m.LoadingOutlined,{}),` Đang tải...`]})]}),(0,f.jsx)(`input`,{ref:a,type:`file`,accept:`image/*`,hidden:!0,onChange:e=>{p(e.target.files?.[0]),e.target.value=``}})]})}var dg=`DD/MM/YYYY HH:mm`;function fg(){let{api:e}=P(),t=F((0,d.useCallback)(()=>e.listManageEvents(),[e]),`manage-events`),[n,r]=(0,d.useState)(null),[i,a]=(0,d.useState)(!1),[o]=l.Form.useForm(),s=e=>{o.setFieldsValue(e===`new`?{title:``,startsAt:(0,_.default)().add(1,`day`).startOf(`hour`),endsAt:null,location:``,description:``,imageUrl:``}:{title:e.title,startsAt:(0,_.default)(e.startsAt),endsAt:e.endsAt?(0,_.default)(e.endsAt):null,location:e.location??``,description:e.description??``,imageUrl:e.imageUrl}),r(e)},c=async()=>{let i=await o.validateFields(),s={title:i.title.trim(),startsAt:i.startsAt.toISOString(),endsAt:i.endsAt?i.endsAt.toISOString():null,location:i.location.trim()||null,description:i.description.trim()||null,imageUrl:i.imageUrl};a(!0);try{n===`new`?await e.createEvent(s):n&&await e.updateEvent(n.id,s),l.message.success(`Đã lưu sự kiện`),r(null),t.reload()}catch(e){l.message.error(b(e,`FEED_EVENT_INVALID`)?`Thông tin sự kiện không hợp lệ`:`Không lưu được sự kiện`)}finally{a(!1)}},u=async n=>{try{await e.deleteEvent(n.id),l.message.success(`Đã xoá sự kiện`),t.reload()}catch{l.message.error(`Không xoá được sự kiện`)}};return(0,f.jsxs)(`div`,{className:`med-feed-wide med-feed-events-admin`,children:[(0,f.jsx)(sg,{title:`Sự kiện`,description:`Khung bên phải bảng tin hiện sự kiện mới tạo gần nhất`,extra:(0,f.jsx)(l.Button,{type:`primary`,icon:(0,f.jsx)(m.PlusOutlined,{}),onClick:()=>s(`new`),children:`Thêm sự kiện`})}),(0,f.jsx)(l.Table,{rowKey:`id`,columns:[{title:`Ảnh`,dataIndex:`imageUrl`,width:90,render:e=>(0,f.jsx)(`img`,{src:e,alt:``,className:`med-feed-events-admin__thumb`})},{title:`Sự kiện`,dataIndex:`title`},{title:`Thời gian`,width:260,render:(e,t)=>nh(t.startsAt,t.endsAt)},{title:`Địa điểm`,dataIndex:`location`,width:180,render:e=>e??``},{title:``,fixed:`right`,width:100,render:(e,t)=>(0,f.jsxs)(l.Space,{size:8,children:[(0,f.jsx)(l.Button,{icon:(0,f.jsx)(m.EditOutlined,{}),"aria-label":`Sửa`,onClick:()=>s(t)}),(0,f.jsx)(l.Popconfirm,{title:`Xoá sự kiện này?`,okText:`Xoá`,cancelText:`Huỷ`,okButtonProps:{danger:!0},onConfirm:()=>u(t),children:(0,f.jsx)(l.Button,{danger:!0,icon:(0,f.jsx)(m.DeleteOutlined,{}),"aria-label":`Xoá`})})]})}],dataSource:t.data??[],loading:t.loading,pagination:!1,scroll:{x:`max-content`}}),(0,f.jsx)(l.Modal,{open:n!==null,title:(0,f.jsxs)(`div`,{className:`med-feed-events-form__head`,children:[(0,f.jsx)(`strong`,{children:n===`new`?`Thêm sự kiện`:`Sửa sự kiện`}),(0,f.jsx)(`span`,{children:`Hiện ở khung bên phải bảng tin cho mọi người`})]}),okText:n===`new`?`Thêm sự kiện`:`Lưu thay đổi`,cancelText:`Huỷ`,confirmLoading:i,width:560,centered:!0,wrapClassName:`med-feed-portal med-feed-events-form-modal`,maskStyle:{background:`rgba(11, 28, 48, 0.5)`,backdropFilter:`blur(4px)`},onOk:()=>void c(),onCancel:()=>r(null),destroyOnClose:!0,children:(0,f.jsxs)(l.Form,{form:o,layout:`vertical`,preserve:!1,requiredMark:!1,children:[(0,f.jsx)(l.Form.Item,{name:`imageUrl`,label:`Ảnh bìa`,rules:[{required:!0,message:`Cần có ảnh bìa`}],children:(0,f.jsx)(ug,{aspectRatio:`16 / 9`})}),(0,f.jsx)(l.Form.Item,{name:`title`,label:`Tên sự kiện`,rules:[{required:!0,whitespace:!0,message:`Nhập tên sự kiện`}],children:(0,f.jsx)(l.Input,{size:`large`,maxLength:120,placeholder:`Ví dụ: Hội thao Meditech 2026`})}),(0,f.jsxs)(`div`,{className:`med-feed-events-form__row`,children:[(0,f.jsx)(l.Form.Item,{name:`startsAt`,label:`Bắt đầu`,rules:[{required:!0,message:`Chọn giờ bắt đầu`}],children:(0,f.jsx)(l.DatePicker,{size:`large`,showTime:!0,format:dg,style:{width:`100%`}})}),(0,f.jsx)(l.Form.Item,{name:`endsAt`,label:`Kết thúc`,dependencies:[`startsAt`],rules:[({getFieldValue:e})=>({validator:(t,n)=>{let r=e(`startsAt`);return n&&r&&n.isBefore(r)?Promise.reject(Error(`Giờ kết thúc phải sau giờ bắt đầu`)):Promise.resolve()}})],children:(0,f.jsx)(l.DatePicker,{size:`large`,showTime:!0,format:dg,placeholder:`Không bắt buộc`,style:{width:`100%`}})})]}),(0,f.jsx)(l.Form.Item,{name:`location`,label:`Địa điểm`,children:(0,f.jsx)(l.Input,{size:`large`,maxLength:200,placeholder:`Ví dụ: Sân vận động Quân khu 7`})}),(0,f.jsx)(l.Form.Item,{name:`description`,label:`Mô tả ngắn`,children:(0,f.jsx)(l.Input.TextArea,{rows:4,maxLength:2e3,showCount:!0,placeholder:`Giới thiệu nội dung, đối tượng tham gia...`})})]})})]})}var pg=300;function mg({value:e,onChange:t,placeholder:n=`Tất cả tác giả`}){let{api:r}=P(),[i,a]=(0,d.useState)([]),[o,s]=(0,d.useState)(!1),c=(0,d.useRef)();return(0,d.useEffect)(()=>()=>clearTimeout(c.current),[]),(0,f.jsx)(l.Select,{showSearch:!0,allowClear:!0,value:e,placeholder:n,suffixIcon:(0,f.jsx)(m.UserOutlined,{}),filterOption:!1,onSearch:e=>{clearTimeout(c.current),e.trim()&&(s(!0),c.current=setTimeout(()=>{r.searchUsers(e).then(e=>{a(e),s(!1)},()=>s(!1))},pg))},onChange:e=>t(e),notFoundContent:o?(0,f.jsx)(l.Spin,{size:`small`}):`Gõ tên hoặc mã nhân viên`,style:{minWidth:200},className:`med-feed-author-select`,options:i.map(e=>({value:e.id,label:e.departmentName?`${e.fullName} · ${e.departmentName}`:e.fullName}))})}var hg={"7d":`7 ngày gần nhất`,"30d":`30 ngày gần nhất`,"90d":`90 ngày gần nhất`,"this-month":`Tháng này`,"this-year":`Năm nay`};function gg(e){let t=String(e.getMonth()+1).padStart(2,`0`),n=String(e.getDate()).padStart(2,`0`);return`${e.getFullYear()}-${t}-${n}`}function _g(e){return typeof e==`object`}function vg(e,t=new Date){if(_g(e))return e;let n=e,r=new Date(t);return n===`this-month`?r.setDate(1):n===`this-year`?r.setMonth(0,1):r.setDate(t.getDate()-(Number.parseInt(n,10)-1)),{from:gg(r),to:gg(t)}}var yg=`YYYY-MM-DD`;function bg({value:e,onChange:t}){let n=vg(e),r=(0,d.useMemo)(()=>Object.fromEntries(Object.keys(hg).map(e=>{let{from:t,to:n}=vg(e);return[hg[e],[(0,_.default)(t,yg),(0,_.default)(n,yg)]]})),[]);return(0,f.jsx)(`span`,{className:`med-feed-date-range med-feed-pill-fields`,children:(0,f.jsx)(l.DatePicker.RangePicker,{value:[(0,_.default)(n.from,yg),(0,_.default)(n.to,yg)],format:`DD/MM/YYYY`,allowClear:!1,ranges:r,placeholder:[`Từ ngày`,`Đến ngày`],disabledDate:e=>e.isAfter((0,_.default)(),`day`),onChange:e=>{let[n,r]=e??[];n&&r&&t({from:n.format(yg),to:r.format(yg)})}})})}function xg({post:e,onOpen:t}){let n=new Map(e.mentionedUsers.map(e=>[e.id,e.fullName])),r=e.media.find(e=>e.kind===`IMAGE`);return(0,f.jsxs)(`button`,{type:`button`,className:`med-feed-table-post`,onClick:()=>t(e),children:[r?(0,f.jsx)(`img`,{src:r.fileUrl,alt:``,referrerPolicy:`no-referrer`}):(0,f.jsx)(`span`,{className:`med-feed-table-post__placeholder`,"aria-hidden":!0,children:e.media.length>0?`📎`:`Aa`}),(0,f.jsxs)(`span`,{className:`med-feed-table-post__body`,children:[(0,f.jsx)(l.Typography.Paragraph,{ellipsis:{rows:2},className:`med-feed-table-post__text`,children:xe(e.content,160,n)||(r?`[Hình ảnh]`:`[Tài liệu]`)}),(0,f.jsxs)(`span`,{className:`med-feed-table-post__meta`,children:[Ep(e.createdAt),e.media.length>0&&` · ${e.media.length} tệp đính kèm`]})]})]})}function Sg({post:e,onClose:t,onChanged:n,onRemoved:r,onEdit:i,readOnly:a=!1}){let{api:o}=P(),[s,c]=(0,d.useState)(!1),u=async(e,r)=>{c(!0);try{n(await e()),l.message.success(r),t()}catch{l.message.error(`Thao tác không thành công, bài có thể đã được người khác xử lý`)}finally{c(!1)}},p=e&&(0,f.jsxs)(l.Space,{children:[(0,f.jsx)(Vm,{post:e,labelled:!0,onRemoved:e=>{r(e),t()}}),e.status===`PENDING`&&(0,f.jsx)(l.Button,{type:`primary`,loading:s,onClick:()=>void u(()=>o.approvePost(e.id),`Đã duyệt bài, chờ phát hành`),children:`Duyệt`}),e.status===`APPROVED`&&(0,f.jsx)(l.Button,{type:`primary`,loading:s,onClick:()=>void u(()=>o.publishPost(e.id),`Đã phát hành bài lên bảng tin`),children:`Phát Hành`}),e.status===`PUBLISHED`&&(e.commentsLocked?(0,f.jsx)(l.Button,{loading:s,onClick:()=>void u(()=>o.unlockComments(e.id),`Đã mở bình luận`),children:`Mở bình luận`}):(0,f.jsx)(l.Button,{loading:s,onClick:()=>void u(()=>o.lockComments(e.id),`Đã khoá bình luận`),children:`Khoá bình luận`})),e.status===`PUBLISHED`&&(0,f.jsx)(l.Button,{loading:s,onClick:()=>void u(()=>e.pinnedAt?o.unpinPost(e.id):o.pinPost(e.id),e.pinnedAt?`Đã bỏ ghim bài`:`Đã ghim bài lên đầu bảng tin`),children:e.pinnedAt?`Bỏ ghim`:`Ghim lên đầu`}),e.status===`PUBLISHED`&&(0,f.jsx)(l.Button,{danger:!0,loading:s,onClick:()=>void u(()=>o.unpublishPost(e.id),`Đã gỡ bài khỏi bảng tin`),children:`Gỡ bài`}),e.status===`UNPUBLISHED`&&(0,f.jsxs)(f.Fragment,{children:[i&&(0,f.jsx)(l.Button,{disabled:s,onClick:()=>{i(e),t()},children:`Sửa`}),(0,f.jsx)(l.Button,{type:`primary`,loading:s,onClick:()=>void u(()=>o.submitPost(e.id),`Đã gửi duyệt lại`),children:`Gửi duyệt lại`})]})]});return(0,f.jsx)(l.Drawer,{title:`Xem bài viết`,width:720,open:e!==null,onClose:t,extra:a?void 0:p,destroyOnClose:!0,className:`med-feed-portal med-feed-review-drawer`,children:e&&(0,f.jsx)(Jm,{post:e,mode:`preview`})})}var Cg=10,wg=[{key:`PENDING`,label:`Chờ duyệt`,hint:`Cần xử lý`,tone:`pending`},{key:`APPROVED`,label:`Đã duyệt`,hint:`Chờ phát hành`,tone:`approved`},{key:`PUBLISHED`,label:`Đang phát hành`,hint:`Đang hiển thị`,tone:`published`},{key:`UNPUBLISHED`,label:`Đã gỡ`,hint:`Gỡ khỏi bảng tin`,tone:`unpublished`},{key:`DELETED`,label:`Đã xoá`,hint:`Lưu cho báo cáo`,tone:`deleted`},{key:`ALL`,label:`Tất cả`,hint:`Mọi trạng thái`,tone:`all`}];function Tg(){let{api:e}=P(),[t,n]=(0,d.useState)(`30d`),[r,i]=(0,d.useState)(`PENDING`),[a,o]=(0,d.useState)(),[s,c]=(0,d.useState)(``),[u,p]=(0,d.useState)(``),[h,g]=(0,d.useState)(1),[_,v]=(0,d.useState)([]),[y,b]=(0,d.useState)(null),[x,S]=(0,d.useState)(null),[C,w]=(0,d.useState)(null),T=(0,d.useMemo)(()=>vg(t),[t]),E=F((0,d.useCallback)(()=>e.listCategories(),[e]),`categories`),D=F((0,d.useCallback)(()=>e.listManagePosts({...T,status:r===`ALL`?void 0:r,authorId:a,q:s||void 0,page:h,pageSize:Cg}),[e,T,r,a,s,h]),JSON.stringify({range:T,status:r,authorId:a,q:s,page:h})),O=F((0,d.useCallback)(()=>e.getManageCounts(T),[e,T]),JSON.stringify(T)),k=()=>{v([]),D.reload(),O.reload()};(0,d.useEffect)(()=>{let e=u.trim();if(e===s)return;let t=setTimeout(()=>{c(e),g(1),v([])},350);return()=>clearTimeout(t)},[u,s]);let A=e=>t=>{e(t),g(1),v([])},j=async(e,t,n)=>{S(e.id);try{await t(),l.message.success(n),k()}catch{l.message.error(`Thao tác không thành công, bài có thể đã được người khác xử lý`)}finally{S(null)}},ee=async()=>{try{await e.approvePosts(_),l.message.success(`Đã duyệt ${_.length} bài viết, chờ phát hành`),k()}catch{l.message.error(`Không duyệt được các bài đã chọn`)}},M=(e,t,n,r,i=`default`)=>(0,f.jsx)(l.Tooltip,{title:t,children:(0,f.jsx)(l.Button,{size:`small`,icon:n,"aria-label":t,loading:x===e.id&&i!=="default",className:`med-feed-manage__action med-feed-manage__action--${i}`,onClick:r})});return(0,f.jsxs)(`div`,{className:`med-feed-wide med-feed-manage`,children:[(0,f.jsx)(sg,{title:`Trung tâm duyệt bài viết`,description:`Duyệt, phát hành, gỡ và theo dõi tương tác của mọi bài viết trên bảng tin`,extra:(0,f.jsx)(og,{categories:E.data??[],onSaved:k})}),(0,f.jsxs)(`section`,{className:`med-feed-manage__panel`,children:[(0,f.jsx)(`div`,{className:`med-feed-manage__tabs`,role:`tablist`,"aria-label":`Lọc theo trạng thái`,children:wg.map(e=>{let t=e.key===`ALL`?O.data?O.data.PENDING+O.data.APPROVED+O.data.PUBLISHED+O.data.UNPUBLISHED+O.data.DELETED:void 0:O.data?.[e.key],n=r===e.key;return(0,f.jsxs)(`button`,{type:`button`,role:`tab`,"aria-selected":n,title:e.hint,className:`med-feed-manage__tab med-feed-manage__tab--${e.tone}${n?` med-feed-manage__tab--active`:``}`,onClick:()=>A(i)(e.key),children:[e.label,(0,f.jsx)(`span`,{className:`med-feed-manage__tab-count`,children:t===void 0?`–`:$(t)})]},e.key)})}),(0,f.jsxs)(`div`,{className:`med-feed-manage__toolbar med-feed-pill-fields`,children:[(0,f.jsx)(l.Input,{allowClear:!0,value:u,prefix:(0,f.jsx)(m.SearchOutlined,{}),placeholder:`Tìm theo nội dung bài viết…`,className:`med-feed-manage__search`,onPressEnter:()=>A(c)(u.trim()),onChange:e=>{p(e.target.value),e.target.value||A(c)(``)}}),(0,f.jsx)(bg,{value:t,onChange:A(n)}),(0,f.jsx)(mg,{value:a,onChange:A(o)}),(s||a||JSON.stringify(T)!==JSON.stringify(vg(`30d`)))&&(0,f.jsx)(l.Button,{type:`link`,icon:(0,f.jsx)(m.CloseCircleOutlined,{}),className:`med-feed-manage__clear`,onClick:()=>{p(``),c(``),o(void 0),n(`30d`),g(1),v([])},children:`Xoá bộ lọc`})]}),_.length>0&&(0,f.jsxs)(`div`,{className:`med-feed-manage__bulk`,children:[(0,f.jsxs)(`span`,{children:[`Đã chọn `,(0,f.jsx)(`strong`,{children:_.length}),` bài chờ duyệt`]}),(0,f.jsxs)(l.Space,{children:[(0,f.jsx)(l.Button,{onClick:()=>v([]),children:`Bỏ chọn`}),(0,f.jsx)(l.Button,{type:`primary`,icon:(0,f.jsx)(m.CheckOutlined,{}),onClick:()=>void ee(),children:`Duyệt hàng loạt`})]})]}),(0,f.jsx)(l.Table,{className:`med-feed-manage-table`,rowKey:`id`,columns:[{title:`Bài viết`,key:`content`,render:(e,t)=>(0,f.jsx)(xg,{post:t,onOpen:b})},{title:`Tác giả`,key:`author`,width:220,render:(e,t)=>(0,f.jsxs)(`span`,{className:`med-feed-table-author`,children:[(0,f.jsx)(Gf,{user:t.author,size:32}),(0,f.jsxs)(`span`,{children:[(0,f.jsx)(`strong`,{children:t.author.fullName}),t.author.departmentName&&(0,f.jsx)(`span`,{children:t.author.departmentName})]})]})},{title:`Trạng thái`,key:`status`,width:130,render:(e,t)=>(0,f.jsxs)(`span`,{className:`med-feed-table-status`,children:[(0,f.jsx)(Wm,{status:t.status}),t.pinnedAt&&t.status===`PUBLISHED`&&(0,f.jsx)(Um,{})]})},{title:`Ngày tạo`,key:`createdAt`,width:150,render:(e,t)=>(0,f.jsx)(`span`,{className:`med-feed-table-date`,children:Ep(t.createdAt)})},{title:`Tương tác`,key:`engagement`,width:220,render:(e,t)=>(0,f.jsxs)(`span`,{className:`med-feed-table-engagement`,children:[(0,f.jsxs)(`span`,{children:[(0,f.jsx)(m.LikeOutlined,{}),` `,$(t.reactionCount)]}),(0,f.jsxs)(`span`,{children:[(0,f.jsx)(m.CommentOutlined,{}),` `,$(t.commentCount)]}),(0,f.jsxs)(`span`,{children:[(0,f.jsx)(m.ShareAltOutlined,{}),` `,$(t.shareCount)]})]})},{title:`Thao tác`,key:`actions`,fixed:`right`,width:180,align:`right`,render:(t,n)=>(0,f.jsxs)(l.Space,{size:6,children:[n.status===`PENDING`&&M(n,`Duyệt`,(0,f.jsx)(m.CheckOutlined,{}),()=>void j(n,()=>e.approvePost(n.id),`Đã duyệt bài, chờ phát hành`),`primary`),n.status===`APPROVED`&&M(n,`Phát Hành`,(0,f.jsx)(m.CloudUploadOutlined,{}),()=>void j(n,()=>e.publishPost(n.id),`Đã phát hành bài lên bảng tin`),`primary`),n.status===`PUBLISHED`&&M(n,n.pinnedAt?`Bỏ ghim`:`Ghim lên đầu`,n.pinnedAt?(0,f.jsx)(m.PushpinFilled,{}):(0,f.jsx)(m.PushpinOutlined,{}),()=>void j(n,()=>n.pinnedAt?e.unpinPost(n.id):e.pinPost(n.id),n.pinnedAt?`Đã bỏ ghim bài`:`Đã ghim bài lên đầu bảng tin`)),n.status===`PUBLISHED`&&M(n,`Gỡ bài`,(0,f.jsx)(m.EyeInvisibleOutlined,{}),()=>void j(n,()=>e.unpublishPost(n.id),`Đã gỡ bài khỏi bảng tin`),`danger`),n.status===`UNPUBLISHED`&&(0,f.jsxs)(f.Fragment,{children:[M(n,`Sửa bài`,(0,f.jsx)(m.EditOutlined,{}),()=>w(n)),M(n,`Gửi duyệt lại`,(0,f.jsx)(m.SendOutlined,{}),()=>void j(n,()=>e.submitPost(n.id),`Đã gửi duyệt lại`),`primary`),M(n,`Xoá bài`,(0,f.jsx)(m.DeleteOutlined,{}),()=>Rm(()=>j(n,()=>e.deletePost(n.id),`Đã xoá bài viết`)))]}),M(n,`Xem chi tiết`,(0,f.jsx)(m.EyeOutlined,{}),()=>b(n))]})}],dataSource:D.data?.items??[],loading:D.loading,rowSelection:{selectedRowKeys:_,onChange:e=>v(e),getCheckboxProps:e=>({disabled:e.status!==`PENDING`})},locale:{emptyText:D.error?`Không tải được danh sách bài`:`Không có bài viết nào`},scroll:{x:1040},pagination:{current:h,pageSize:Cg,total:D.data?.total??0,showSizeChanger:!1,showTotal:(e,[t,n])=>`Hiển thị ${t}–${n} trong ${$(e)} bài viết`,onChange:e=>{g(e),v([])}}})]}),(0,f.jsx)(Sg,{post:y,onClose:()=>b(null),onChanged:k,onRemoved:k,onEdit:w}),(0,f.jsx)(ag,{open:C!==null,categories:E.data??[],intent:`text`,initialPost:C??void 0,onClose:()=>w(null),onSaved:k},C?.id??`closed`)]})}var Eg=/^https?:\/\/\S+$/;function Dg(){let{api:e}=P(),t=F((0,d.useCallback)(()=>e.getRightBanner(),[e]),`banner-settings`),[n]=l.Form.useForm(),[r,i]=(0,d.useState)(!1),a=t.data?.imageUrl?t.data:null;(0,d.useEffect)(()=>{t.data&&n.setFieldsValue({imageUrl:t.data.imageUrl??``,linkUrl:t.data.linkUrl??``})},[t.data,n]);let o=async()=>{let r=await n.validateFields();i(!0);try{await e.setRightBanner({imageUrl:r.imageUrl,linkUrl:r.linkUrl.trim()||null}),l.message.success(`Đã lưu banner`),t.reload()}catch{l.message.error(`Không lưu được banner`)}finally{i(!1)}},s=async()=>{try{await e.clearRightBanner(),n.setFieldsValue({imageUrl:``,linkUrl:``}),l.message.success(`Đã gỡ banner`),t.reload()}catch{l.message.error(`Không gỡ được banner`)}};return(0,f.jsxs)(`div`,{className:`med-feed-banner-settings`,children:[(0,f.jsx)(sg,{title:`Banner bên phải`,description:`Ảnh quảng cáo hiện dưới khung sự kiện ở cột phải bảng tin`}),(0,f.jsx)(`section`,{className:`med-feed-banner-settings__panel`,children:(0,f.jsxs)(l.Form,{form:n,layout:`vertical`,requiredMark:!1,children:[(0,f.jsx)(l.Form.Item,{name:`imageUrl`,label:`Ảnh banner`,extra:`Nên dùng ảnh dọc; ảnh hiện rộng đúng bằng cột phải và giữ nguyên tỉ lệ.`,rules:[{required:!0,message:`Cần chọn ảnh banner`}],children:(0,f.jsx)(ug,{aspectRatio:`4 / 7`,maxWidth:280})}),(0,f.jsx)(l.Form.Item,{name:`linkUrl`,label:`Đường dẫn khi bấm vào (không bắt buộc)`,rules:[{pattern:Eg,message:`Đường dẫn phải bắt đầu bằng http:// hoặc https://`}],children:(0,f.jsx)(l.Input,{size:`large`,maxLength:2048,placeholder:`https://...`})}),(0,f.jsxs)(`div`,{className:`med-feed-banner-settings__actions`,children:[(0,f.jsx)(l.Button,{type:`primary`,loading:r,onClick:()=>void o(),children:`Lưu banner`}),a&&(0,f.jsx)(l.Popconfirm,{title:`Gỡ banner này?`,okText:`Gỡ`,cancelText:`Huỷ`,okButtonProps:{danger:!0},onConfirm:()=>s(),children:(0,f.jsx)(l.Button,{danger:!0,icon:(0,f.jsx)(m.DeleteOutlined,{}),children:`Gỡ banner`})})]})]})})]})}var Og=`#2ea053`;function kg(){let{api:e}=P(),t=F((0,d.useCallback)(()=>e.listManageCategories(),[e]),`manage-categories`),[n,r]=(0,d.useState)(null),[i,a]=(0,d.useState)(!1),[o]=l.Form.useForm(),s=l.Form.useWatch(`color`,o),c=l.Form.useWatch(`name`,o),u=n===`new`||!n?null:n.id,p=s?(t.data??[]).find(e=>e.id!==u&&e.color?.toLowerCase()===s.toLowerCase()):void 0,h=e=>{let n=(t.data??[]).reduce((e,t)=>Math.max(e,t.sortOrder+1),0);o.setFieldsValue(e===`new`?{name:``,color:Og,sortOrder:n,hidden:!1}:{name:e.name,color:e.color??Og,sortOrder:e.sortOrder,hidden:e.hidden}),r(e)},g=async()=>{let i=await o.validateFields(),s={...i,name:i.name.trim()};a(!0);try{n===`new`?await e.createCategory(s):n&&await e.updateCategory(n.id,s),l.message.success(`Đã lưu chuyên mục`),r(null),t.reload()}catch(e){l.message.error(b(e,`FEED_CATEGORY_INVALID`)?`Tên chuyên mục đã tồn tại hoặc không hợp lệ`:`Không lưu được chuyên mục`)}finally{a(!1)}},_=async n=>{try{await e.deleteCategory(n.id),l.message.success(`Đã xoá chuyên mục`),t.reload()}catch(e){l.message.error(b(e,`FEED_CATEGORY_IN_USE`)?`Chuyên mục đã có bài viết, hãy ẩn thay vì xoá`:`Không xoá được chuyên mục`)}},v=async(n,r)=>{try{await e.updateCategory(n.id,{hidden:r}),t.reload()}catch{l.message.error(`Không cập nhật được chuyên mục`)}};return(0,f.jsxs)(`div`,{className:`med-feed-categories`,children:[(0,f.jsx)(sg,{title:`Thiết lập chuyên mục`,description:`Tạo, sửa, ẩn hoặc xoá các chuyên mục của bảng tin`,extra:(0,f.jsx)(l.Button,{type:`primary`,icon:(0,f.jsx)(m.PlusOutlined,{}),onClick:()=>h(`new`),children:`Thêm chuyên mục`})}),(0,f.jsxs)(`section`,{className:`med-feed-categories__panel`,children:[(0,f.jsxs)(`div`,{className:`med-feed-categories__head`,children:[(0,f.jsx)(`h3`,{className:`med-feed-categories__title`,children:t.data?`${t.data.length} chuyên mục`:`Chuyên mục`}),(0,f.jsx)(`span`,{className:`med-feed-categories__hint`,children:`Chuyên mục bị ẩn không hiện ở bảng tin nhưng bài cũ vẫn giữ nhãn`})]}),(0,f.jsx)(l.Table,{className:`med-feed-categories-table`,rowKey:`id`,columns:[{title:`Chuyên mục`,dataIndex:`name`,render:(e,t)=>(0,f.jsx)(Ag,{name:e,color:t.color})},{title:`Thứ tự`,dataIndex:`sortOrder`,width:90},{title:`Số bài`,dataIndex:`postCount`,width:90,render:e=>(0,f.jsx)(`span`,{className:`med-feed-categories__count`,children:e})},{title:`Hiển thị`,width:100,render:(e,t)=>(0,f.jsx)(l.Switch,{size:`small`,checked:!t.hidden,onChange:e=>void v(t,!e),"aria-label":`Hiển thị ${t.name}`})},{title:``,fixed:`right`,width:100,render:(e,t)=>(0,f.jsxs)(l.Space,{size:8,children:[(0,f.jsx)(l.Button,{className:`med-feed-categories__action`,icon:(0,f.jsx)(m.EditOutlined,{}),"aria-label":`Sửa`,onClick:()=>h(t)}),(0,f.jsx)(l.Popconfirm,{title:`Xoá chuyên mục này?`,okText:`Xoá`,cancelText:`Huỷ`,okButtonProps:{danger:!0},onConfirm:()=>_(t),children:(0,f.jsx)(l.Button,{className:`med-feed-categories__action med-feed-categories__action--danger`,icon:(0,f.jsx)(m.DeleteOutlined,{}),"aria-label":`Xoá`})})]})}],dataSource:t.data??[],loading:t.loading,pagination:!1,scroll:{x:`max-content`},rowClassName:e=>e.hidden?`med-feed-categories__row--hidden`:``})]}),(0,f.jsx)(l.Modal,{open:n!==null,title:n===`new`?`Thêm chuyên mục`:`Sửa chuyên mục`,okText:`Lưu`,cancelText:`Huỷ`,confirmLoading:i,onOk:()=>void g(),onCancel:()=>r(null),destroyOnClose:!0,children:(0,f.jsxs)(l.Form,{form:o,layout:`vertical`,preserve:!1,children:[(0,f.jsxs)(`div`,{className:`med-feed-category-preview`,children:[`Xem trước`,(0,f.jsx)(Ag,{name:c?.trim()||`Tên chuyên mục`,color:s})]}),(0,f.jsx)(l.Form.Item,{name:`name`,label:`Tên chuyên mục`,rules:[{required:!0,whitespace:!0,message:`Nhập tên chuyên mục`}],children:(0,f.jsx)(l.Input,{maxLength:60})}),(0,f.jsx)(l.Form.Item,{name:`color`,label:`Màu`,rules:[{pattern:/^#[0-9a-fA-F]{6}$/,message:`Màu dạng #rrggbb`}],validateStatus:p?`warning`:void 0,help:p?`Màu này đã dùng cho "${p.name}"`:void 0,children:(0,f.jsx)(jg,{})}),(0,f.jsx)(l.Form.Item,{name:`sortOrder`,label:`Thứ tự hiển thị`,children:(0,f.jsx)(l.InputNumber,{precision:0,style:{width:`100%`}})}),(0,f.jsx)(l.Form.Item,{name:`hidden`,label:`Ẩn khỏi bảng tin`,valuePropName:`checked`,children:(0,f.jsx)(l.Switch,{})})]})})]})}function Ag({name:e,color:t}){return(0,f.jsxs)(`span`,{className:`med-feed-category-chip`,style:t?{"--tone":t}:void 0,children:[(0,f.jsx)(`span`,{className:`med-feed-category-chip__dot`,"aria-hidden":!0}),(0,f.jsx)(`span`,{className:`med-feed-category-chip__name`,children:e})]})}function jg({value:e,onChange:t}){let n=/^#[0-9a-fA-F]{6}$/.test(e??``);return(0,f.jsxs)(`div`,{className:`med-feed-category-color`,children:[(0,f.jsx)(`input`,{type:`color`,"aria-label":`Chọn màu`,value:n?e:Og,onChange:e=>t?.(e.target.value)}),(0,f.jsx)(l.Input,{maxLength:7,placeholder:`#2ea053`,value:e,onChange:e=>t?.(e.target.value)})]})}function Mg(){let{basePath:e}=P(),t=`${e.replace(/\/+$/,``)}/settings`,n=[{to:`${t}/categories`,label:`Thiết lập chuyên mục`},{to:`${t}/banner`,label:`Banner`}];return(0,f.jsxs)(`div`,{className:`med-feed-wide med-feed-settings`,children:[(0,f.jsx)(`nav`,{className:`med-feed-settings__tabs`,"aria-label":`Cấu hình`,children:n.map(e=>(0,f.jsx)(p.NavLink,{to:e.to,className:({isActive:e})=>e?`med-feed-settings__tab med-feed-settings__tab--active`:`med-feed-settings__tab`,children:e.label},e.to))}),(0,f.jsxs)(p.Routes,{children:[(0,f.jsx)(p.Route,{index:!0,element:(0,f.jsx)(p.Navigate,{to:`categories`,replace:!0})}),(0,f.jsx)(p.Route,{path:`categories`,element:(0,f.jsx)(kg,{})}),(0,f.jsx)(p.Route,{path:`banner`,element:(0,f.jsx)(Dg,{})})]})]})}var Ng={ZALO:`Zalo`,FACEBOOK:`Facebook`,CHAT:`Chat`,LINK:`Liên kết`};function Pg({title:e,value:t,icon:n,tone:r,detail:i,loading:a}){return(0,f.jsxs)(`div`,{className:`med-feed-kpi med-feed-kpi--${r}`,children:[(0,f.jsx)(`span`,{className:`med-feed-kpi__icon`,"aria-hidden":!0,children:n}),(0,f.jsxs)(`div`,{className:`med-feed-kpi__body`,children:[(0,f.jsx)(`span`,{className:`med-feed-kpi__title`,children:e}),a?(0,f.jsx)(l.Skeleton.Input,{active:!0,size:`small`,className:`med-feed-kpi__skeleton`}):(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(`span`,{className:`med-feed-kpi__value`,children:$(t??0)}),i&&(0,f.jsx)(`span`,{className:`med-feed-kpi__detail`,children:i})]})]})]})}function Fg({overview:e,loading:t}){let n=Se.filter(t=>(e?.reactionsByType[t]??0)>0),r=e?.postsByStatus??{},i=[`ZALO`,`FACEBOOK`,`CHAT`,`LINK`].filter(t=>(e?.sharesByChannel?.[t]??0)>0);return(0,f.jsxs)(`div`,{className:`med-feed-kpis`,children:[(0,f.jsx)(Pg,{title:`Bài viết`,tone:`posts`,value:e?.postCount,icon:(0,f.jsx)(m.FileTextOutlined,{}),loading:t,detail:`${$(r.PUBLISHED??0)} đang phát hành · ${$(r.UNPUBLISHED??0)} đã gỡ · ${$(r.PENDING??0)} chờ duyệt`}),(0,f.jsx)(Pg,{title:`Reaction`,tone:`reactions`,value:e?.reactionTotal,icon:(0,f.jsx)(m.LikeFilled,{}),loading:t,detail:n.length>0?n.map(t=>`${bm[t].label} ${$(e?.reactionsByType[t]??0)}`).join(` · `):`Chưa có cảm xúc nào`}),(0,f.jsx)(Pg,{title:`Bình luận`,tone:`comments`,value:e?.commentCount,icon:(0,f.jsx)(m.CommentOutlined,{}),loading:t,detail:`${$(e?.rootCommentCount??0)} bình luận · ${$(e?.replyCount??0)} trả lời`}),(0,f.jsx)(Pg,{title:`Chia sẻ`,tone:`shares`,value:e?.shareTotal,icon:(0,f.jsx)(m.ShareAltOutlined,{}),loading:t,detail:i.length>0?i.map(t=>`${Ng[t]} ${$(e?.sharesByChannel?.[t]??0)}`).join(` · `):`Chưa có lượt chia sẻ`})]})}var Ig=[{value:`day`,label:`Ngày`},{value:`week`,label:`Tuần`},{value:`month`,label:`Tháng`}];function Lg(e){let t=String(e.getMonth()+1).padStart(2,`0`);return`${e.getFullYear()}-${t}-${String(e.getDate()).padStart(2,`0`)}`}function Rg(e,t=new Date){let n=new Date(t);return e===`week`&&n.setDate(t.getDate()-(t.getDay()+6)%7),e===`month`&&n.setDate(1),{from:Lg(n),to:Lg(t)}}function zg({value:e,onChange:t}){let n=vg(e),r=Ig.find(({value:e})=>{let t=Rg(e);return t.from===n.from&&t.to===n.to})?.value;return(0,f.jsx)(l.Radio.Group,{className:`med-feed-segmented`,optionType:`button`,options:Ig,value:r,onChange:e=>t(Rg(e.target.value))})}var Bg=10,Vg=[{value:`total`,label:`Tổng tương tác`},{value:`reactions`,label:`Reaction`},{value:`comments`,label:`Bình luận`}];function Hg({range:e}){let{api:t}=P(),[n,r]=(0,d.useState)(`total`),[i,a]=(0,d.useState)({from:e.from,to:e.to}),[o,s]=(0,d.useState)(``),[c,u]=(0,d.useState)(``),[p,h]=(0,d.useState)(null),g=(0,d.useMemo)(()=>({...e,...vg(i),...c?{q:c}:{}}),[e,i,c]),_=F((0,d.useCallback)(()=>t.getTopPosts({...g,sortBy:n,limit:Bg}),[t,g,n]),`${JSON.stringify(g)}|${n}`);return(0,f.jsxs)(f.Fragment,{children:[(0,f.jsxs)(`div`,{className:`med-feed-report-toolbar med-feed-pill-fields`,children:[(0,f.jsx)(l.Input,{allowClear:!0,value:o,prefix:(0,f.jsx)(m.SearchOutlined,{}),placeholder:`Tìm theo nội dung bài viết… (Enter để tìm)`,className:`med-feed-report-toolbar__search`,onPressEnter:()=>u(o.trim()),onChange:e=>{s(e.target.value),e.target.value||u(``)}}),(0,f.jsx)(zg,{value:i,onChange:a}),(0,f.jsx)(bg,{value:i,onChange:a}),(0,f.jsx)(l.Select,{value:n,onChange:r,options:Vg,style:{minWidth:170},"aria-label":`Xếp theo`})]}),(0,f.jsx)(l.Table,{className:`med-feed-manage-table`,rowKey:`id`,pagination:!1,loading:_.loading,dataSource:_.data??[],locale:{emptyText:_.error?`Không tải được danh sách`:c?`Không có bài nào khớp`:`Chưa có bài trong khoảng này`},scroll:{x:900},columns:[{title:`#`,key:`rank`,width:56,render:(e,t,n)=>(0,f.jsx)(`span`,{className:n<3?`med-feed-top-rank med-feed-top-rank--top`:`med-feed-top-rank`,children:n+1})},{title:`Bài viết`,key:`post`,render:(e,t)=>(0,f.jsx)(xg,{post:t,onOpen:h})},{title:`Tương tác`,key:`engagement`,width:280,render:(e,t)=>(0,f.jsxs)(`span`,{className:`med-feed-table-engagement`,children:[(0,f.jsxs)(`span`,{title:`Reaction`,children:[(0,f.jsx)(m.LikeOutlined,{}),` `,$(t.reactionCount)]}),(0,f.jsxs)(`span`,{title:`Bình luận`,children:[(0,f.jsx)(m.CommentOutlined,{}),` `,$(t.commentCount)]}),(0,f.jsxs)(`span`,{title:`Chia sẻ`,children:[(0,f.jsx)(m.ShareAltOutlined,{}),` `,$(t.shareCount)]})]})},{title:`Tổng tương tác`,key:`total`,width:130,align:`right`,render:(e,t)=>(0,f.jsx)(`strong`,{children:$(t.reactionCount+t.commentCount+t.shareCount)})},{title:``,key:`actions`,fixed:`right`,width:64,align:`right`,render:(e,t)=>(0,f.jsx)(l.Tooltip,{title:`Xem chi tiết`,children:(0,f.jsx)(l.Button,{size:`small`,icon:(0,f.jsx)(m.EyeOutlined,{}),"aria-label":`Xem chi tiết`,className:`med-feed-manage__action`,onClick:()=>h(t)})})}]}),(0,f.jsx)(Sg,{post:p,onClose:()=>h(null),onChanged:()=>_.reload(),onRemoved:()=>_.reload(),readOnly:!0})]})}var Ug=10;function Wg({range:e}){let{api:t}=P(),[n,r]=(0,d.useState)({from:e.from,to:e.to}),[i,a]=(0,d.useState)(),[o,s]=(0,d.useState)(null),c=(0,d.useMemo)(()=>({...e,...vg(n),...i?{userId:i}:{}}),[e,n,i]),u=F((0,d.useCallback)(()=>t.getTopUsers({...c,limit:Ug}),[t,c]),JSON.stringify(c));return(0,f.jsxs)(f.Fragment,{children:[(0,f.jsxs)(`div`,{className:`med-feed-report-toolbar med-feed-pill-fields`,children:[(0,f.jsx)(mg,{value:i,onChange:a,placeholder:`Tất cả nhân viên`}),(0,f.jsx)(zg,{value:n,onChange:r}),(0,f.jsx)(bg,{value:n,onChange:r})]}),(0,f.jsx)(l.Table,{className:`med-feed-manage-table`,rowKey:e=>e.user.id,pagination:!1,loading:u.loading,dataSource:u.data??[],locale:{emptyText:u.error?`Không tải được số liệu`:`Chưa có hoạt động`},scroll:{x:1200},columns:[{title:`#`,key:`rank`,width:56,render:(e,t,n)=>(0,f.jsx)(`span`,{className:!i&&n<3?`med-feed-top-rank med-feed-top-rank--top`:`med-feed-top-rank`,children:n+1})},{title:`Nhân viên`,key:`user`,width:240,render:(e,t)=>(0,f.jsxs)(`span`,{className:`med-feed-report-person`,children:[(0,f.jsx)(Gf,{user:t.user,size:32}),(0,f.jsxs)(`span`,{children:[(0,f.jsx)(`strong`,{children:t.user.fullName}),t.user.departmentName&&(0,f.jsx)(`span`,{children:t.user.departmentName})]})]})},{title:`Bài tương tác nhiều nhất`,key:`topPost`,render:(e,t)=>t.topPost?(0,f.jsx)(xg,{post:t.topPost.post,onOpen:s}):(0,f.jsx)(`span`,{className:`med-feed-report-muted`,children:`—`})},{title:`Reaction`,dataIndex:`reactions`,width:100,align:`right`,render:$},{title:`Bình luận`,dataIndex:`comments`,width:100,align:`right`,render:$},{title:`Chia sẻ`,dataIndex:`shares`,width:90,align:`right`,render:$},{title:`Tổng tương tác`,dataIndex:`total`,width:130,align:`right`,render:e=>(0,f.jsx)(`strong`,{children:$(e)})}]}),(0,f.jsx)(Sg,{post:o,onClose:()=>s(null),onChanged:()=>u.reload(),onRemoved:()=>u.reload(),readOnly:!0})]})}var Gg=[`#7c3aed`,`#2563eb`,`#0d9488`],Kg=[{label:`Ngày`,value:`day`},{label:`Tuần`,value:`week`},{label:`Tháng`,value:`month`}];function qg(e,t){let[n,r,i]=e.slice(0,10).split(`-`);return t===`month`?`${r}/${n}`:t===`week`?`Tuần ${i}/${r}`:`${i}/${r}`}function Jg({range:e}){let{api:t}=P(),[n,r]=(0,d.useState)(`day`),[i,a]=(0,d.useState)({from:e.from,to:e.to}),o=(0,d.useMemo)(()=>({...e,...vg(i)}),[e,i]),[s,c]=(0,d.useState)(!1),u=F((0,d.useCallback)(()=>t.getReportsTimeseries({...o,groupBy:n}),[t,o,n]),`${JSON.stringify(o)}|${n}`),p=u.data??[],m=p.map(e=>qg(e.bucket,n)),h={chart:{type:`line`,toolbar:{show:!1},zoom:{enabled:!1},fontFamily:`inherit`},colors:Gg,stroke:{width:2,curve:`smooth`},markers:{size:0,hover:{size:5},strokeColors:`#ffffff`,strokeWidth:2},dataLabels:{enabled:!1},legend:{position:`top`,horizontalAlign:`right`,fontSize:`13px`},grid:{borderColor:`#eef0f4`,strokeDashArray:4},xaxis:{categories:m,tickAmount:Math.min(m.length,10),labels:{style:{colors:`#65676b`}},axisBorder:{show:!1},crosshairs:{show:!0}},yaxis:{min:0,forceNiceScale:!0,labels:{formatter:e=>$(Math.round(e))}},tooltip:{shared:!0,intersect:!1,y:{formatter:e=>$(e)}}};return(0,f.jsx)(l.Card,{bordered:!1,className:`med-feed-report-panel`,title:`Xu hướng tương tác`,extra:(0,f.jsxs)(l.Space,{wrap:!0,children:[(0,f.jsx)(bg,{value:i,onChange:a}),(0,f.jsx)(l.Radio.Group,{size:`small`,className:`med-feed-segmented`,optionType:`button`,options:Kg,value:n,onChange:e=>r(e.target.value)}),(0,f.jsx)(l.Button,{size:`small`,type:`text`,onClick:()=>c(!s),children:s?`Biểu đồ`:`Bảng số liệu`})]}),children:u.loading?(0,f.jsx)(l.Skeleton,{active:!0,paragraph:{rows:6}}):p.length===0?(0,f.jsx)(l.Empty,{description:u.error?`Không tải được số liệu`:`Chưa có tương tác trong khoảng này`}):s?(0,f.jsx)(l.Table,{className:`med-feed-manage-table`,rowKey:`bucket`,size:`small`,pagination:!1,scroll:{y:320},dataSource:p,columns:[{title:`Thời gian`,key:`bucket`,render:(e,t)=>qg(t.bucket,n)},{title:`Reaction`,dataIndex:`reactions`,align:`right`,render:$},{title:`Bình luận`,dataIndex:`comments`,align:`right`,render:$}]}):(0,f.jsx)(v.default,{type:`line`,height:320,options:h,series:[{name:`Reaction`,data:p.map(e=>e.reactions)},{name:`Bình luận`,data:p.map(e=>e.comments)}]})})}function Yg(){let{api:e}=P(),[t,n]=(0,d.useState)(`30d`),r=(0,d.useMemo)(()=>vg(t),[t]),i=F((0,d.useCallback)(()=>e.getReportsOverview(r),[e,r]),JSON.stringify(r));return(0,f.jsxs)(`div`,{className:`med-feed-wide`,children:[(0,f.jsx)(sg,{title:`Thống kê & báo cáo`,description:`Tương tác trên bảng tin nội bộ theo khoảng thời gian`,extra:(0,f.jsx)(bg,{value:t,onChange:n})}),(0,f.jsxs)(`div`,{className:`med-feed-stack`,children:[(0,f.jsx)(Fg,{overview:i.data,loading:i.loading}),(0,f.jsx)(Jg,{range:r},JSON.stringify(r)),(0,f.jsx)(l.Card,{bordered:!1,className:`med-feed-report-panel med-feed-report-tabs`,children:(0,f.jsx)(l.Tabs,{items:[{key:`posts`,label:`Bài có tương tác cao`,children:(0,f.jsx)(Hg,{range:r},JSON.stringify(r))},{key:`people`,label:`Người tương tác nhiều nhất`,children:(0,f.jsx)(Wg,{range:r},JSON.stringify(r))}]})})]})]})}function Xg(){let{me:e,basePath:t}=P(),n=t.replace(/\/+$/,``),r=[...e.canManage?[{to:n||`/`,label:`Duyệt bài viết`,icon:(0,f.jsx)(m.FileDoneOutlined,{}),end:!0}]:[],...e.canPost?[{to:`${n}/my-posts`,label:`Bài của tôi`,icon:(0,f.jsx)(m.ProfileOutlined,{})}]:[],...e.canManage?[{to:`${n}/reports`,label:`Thống kê & Báo cáo`,icon:(0,f.jsx)(m.BarChartOutlined,{})},{to:`${n}/events`,label:`Sự kiện`,icon:(0,f.jsx)(m.CalendarOutlined,{})},{to:`${n}/settings`,label:`Cấu hình`,icon:(0,f.jsx)(m.SettingOutlined,{})}]:[]];return r.length===0?(0,f.jsx)(`div`,{className:`med-feed-content`,children:(0,f.jsx)(l.Result,{status:`403`,title:`Bạn không có quyền quản lý bảng tin`})}):(0,f.jsxs)(`div`,{className:`med-feed-admin`,children:[(0,f.jsxs)(`aside`,{className:`med-feed-admin__sidebar`,children:[(0,f.jsxs)(`div`,{className:`med-feed-admin__brand`,children:[(0,f.jsx)(`span`,{className:`med-feed-admin__logo`,"aria-hidden":!0,children:`N`}),(0,f.jsxs)(`span`,{className:`med-feed-admin__brand-text`,children:[(0,f.jsx)(`strong`,{children:`Quản trị bảng tin`}),(0,f.jsx)(`span`,{children:`Bảng tin nội bộ`})]})]}),(0,f.jsx)(`div`,{className:`med-feed-admin__section`,children:`Điều hướng`}),(0,f.jsx)(`nav`,{className:`med-feed-admin__nav`,"aria-label":`Quản trị bảng tin`,children:r.map(e=>(0,f.jsxs)(p.NavLink,{to:e.to,end:e.end,className:({isActive:e})=>e?`med-feed-admin__nav-item med-feed-admin__nav-item--active`:`med-feed-admin__nav-item`,children:[(0,f.jsx)(`span`,{className:`med-feed-admin__nav-icon`,children:e.icon}),e.label]},e.to))})]}),(0,f.jsx)(`main`,{className:`med-feed-admin__main`,children:(0,f.jsxs)(p.Routes,{children:[(0,f.jsx)(p.Route,{index:!0,element:e.canManage?(0,f.jsx)(Tg,{}):(0,f.jsx)(p.Navigate,{to:`${n}/my-posts`,replace:!0})}),(0,f.jsx)(p.Route,{path:`my-posts`,element:(0,f.jsx)(Zg,{allowed:e.canPost,page:(0,f.jsx)(lg,{})})}),(0,f.jsx)(p.Route,{path:`reports`,element:(0,f.jsx)(Zg,{allowed:e.canManage,page:(0,f.jsx)(Yg,{})})}),(0,f.jsx)(p.Route,{path:`events`,element:(0,f.jsx)(Zg,{allowed:e.canManage,page:(0,f.jsx)(fg,{})})}),(0,f.jsx)(p.Route,{path:`settings/*`,element:(0,f.jsx)(Zg,{allowed:e.canManage,page:(0,f.jsx)(Mg,{})})}),(0,f.jsx)(p.Route,{path:`posts/:postId`,element:(0,f.jsx)(bh,{})}),(0,f.jsx)(p.Route,{path:`*`,element:(0,f.jsx)(l.Result,{status:`404`,title:`Không tìm thấy trang`})})]})})]})}function Zg({allowed:e,page:t}){return e?(0,f.jsx)(f.Fragment,{children:t}):(0,f.jsx)(l.Result,{status:`403`,title:`Bạn không có quyền truy cập trang này`})}function Qg(e){return(0,f.jsx)(Ee,{runtimeProps:{...e,isPostFeed:!0},isAdmin:!0,children:(0,f.jsx)(Xg,{})})}exports.NewsfeedAdminModule=Qg,exports.NewsfeedModule=Sh;
28
+ `),pe=Ph(v,N.start,N.end),me=Fh(v,N.start),he=e=>{e!==v&&(ae(e=>[...e.slice(-99),v]),se([]),y(e))},ge=()=>{if(ie.length===0)return;let e=ie[ie.length-1];ae(ie.slice(0,-1)),se([...oe,v]),y(e)},_e=()=>{if(oe.length===0)return;let e=oe[oe.length-1];se(oe.slice(0,-1)),ae([...ie,v]),y(e)};(0,d.useEffect)(()=>{p.current?.focus()},[]),(0,d.useEffect)(()=>{r?.(!ce&&!le)},[ce,le,r]);let ye=async e=>{if(le)return l.message.warning(`Bài viết cần có nội dung hoặc tệp đính kèm`),!1;D(e);let n={content:ep(v,h.current),mediaIds:S.map(e=>e.id),categoryId:b};try{let r;return t?(r=await c.updatePost(t.id,n),e===`submit`&&r.status===`DRAFT`&&(r=await c.submitPost(r.id))):(r=await c.createPost({...n,clientPostId:g.current,submit:e===`submit`}),g.current=crypto.randomUUID()),l.message.success(r.status===`DRAFT`?`Đã lưu nháp`:r.status===`PENDING`?`Bài viết đã vào hàng chờ duyệt`:r.status===`APPROVED`?`Bài viết đã được duyệt, chờ phát hành`:`Đã lưu bài viết`),i(r),!0}catch{return l.message.error(`Không lưu được bài viết, vui lòng thử lại`),!1}finally{D(null)}},be=()=>p.current?.textarea??null,xe=()=>{let e=be();e&&re({start:e.selectionStart??0,end:e.selectionEnd??0})},Se=e=>{he(e.text),requestAnimationFrame(()=>{let t=be();t?.focus(),t?.setSelectionRange(e.selectionStart,e.selectionEnd),xe()})},Ce=e=>{let t=be(),n=t?.selectionStart??v.length,r=t?.selectionEnd??v.length;Se(e(v,n,r))},we=e=>Ce((t,n,r)=>Oh(t,n,r,e)),Te=e=>Ce((t,n,r)=>Lh(t,n,r,e)),Ee={b:`bold`,i:`italic`,u:`underline`},De=e=>{let t=be(),n=t?.selectionStart??v.length,r=t?.selectionEnd??v.length;if(e.key===`Enter`&&(e.shiftKey||e.altKey)&&n===r){e.preventDefault(),Se({text:`${v.slice(0,n)}\n${v.slice(r)}`,selectionStart:n+1,selectionEnd:n+1});return}if(e.key===`Enter`&&!e.shiftKey&&n===r){let t=Ih(v,n);if(t){e.preventDefault(),Se(t);return}}let i=Ee[e.key.toLowerCase()];if((e.ctrlKey||e.metaKey)&&!e.shiftKey&&!e.altKey&&i){e.preventDefault(),we(i);return}if((e.ctrlKey||e.metaKey)&&!e.altKey){let t=e.key.toLowerCase();t===`z`&&!e.shiftKey?(e.preventDefault(),ge()):(t===`z`&&e.shiftKey||t===`y`)&&(e.preventDefault(),_e())}},F={id:t?.id??`draft-preview`,author:u.user??{id:u.userId,fullName:``,avatarUrl:null,departmentName:null},content:ep(v,h.current),mentionedUsers:[...h.current.values()],media:S,status:`PUBLISHED`,commentsLocked:t?.commentsLocked??!1,reactionCount:t?.reactionCount??0,topReactionTypes:t?.topReactionTypes??[],myReaction:null,commentCount:t?.commentCount??0,shareCount:t?.shareCount??0,sharedByMe:!1,createdAt:t?.createdAt??new Date().toISOString()};(0,d.useImperativeHandle)(s,()=>({saveDraft:()=>ye(`draft`),isDirty:()=>!ce&&!le}));let Oe=(0,f.jsxs)(`div`,{className:`med-feed-composer-form`,children:[(0,f.jsxs)(`div`,{className:`med-feed-composer-form__author`,children:[(0,f.jsx)(Hm,{size:40}),(0,f.jsxs)(`span`,{className:`med-feed-composer-form__author-info`,children:[(0,f.jsx)(`span`,{className:`med-feed-composer-form__author-name`,children:Hp.name}),(0,f.jsx)(`span`,{className:`med-feed-composer-form__pills`,children:(0,f.jsx)(Ch,{categories:e,value:b,onChange:x})})]})]}),(0,f.jsxs)(`div`,{className:`med-feed-composer-form__body`,children:[te&&(0,f.jsx)(Xh,{onInline:we,onLines:Te,activeInline:pe,activeLines:me,onColor:e=>Ce((t,n,r)=>Vh(t,n,r,e)),activeColor:Wh(v,N.start),onIndent:e=>Ce((t,n,r)=>zh(t,n,r,e)),onSize:e=>Ce((t,n,r)=>Hh(t,n,r,e)),activeSize:Gh(v,N.start),onUndo:ge,onRedo:_e,canUndo:ie.length>0,canRedo:oe.length>0}),(0,f.jsx)($f,{ref:p,value:v,onChange:e=>{he(e),xe()},onPick:e=>h.current.set(e.fullName,e),onKeyUp:xe,onMouseUp:xe,onKeyDown:De,placeholder:`Tạo bài viết mới...`,autoSize:a||o?{minRows:12,maxRows:30}:{minRows:4,maxRows:14},style:O?{background:O,borderRadius:8,padding:`8px 12px`}:void 0,className:fe?`med-feed-composer-form__text med-feed-composer-form__text--large`:`med-feed-composer-form__text`}),A&&(0,f.jsx)(l.Tag,{icon:(0,f.jsx)(m.EnvironmentOutlined,{}),color:`blue`,closable:!0,onClose:()=>j(``),className:`med-feed-composer-form__location-tag`,children:A}),ue&&(0,f.jsx)(sm,{url:ue}),(0,f.jsx)(eg,{media:S,uploadingCount:w,onRemove:e=>C(t=>t.filter(t=>t.id!==e))})]}),(0,f.jsxs)(`div`,{className:`med-feed-composer-form__toolbar`,children:[(0,f.jsxs)(`div`,{className:`med-feed-composer-form__toolbar-group`,children:[(0,f.jsx)(l.Popover,{trigger:`click`,content:(0,f.jsx)(`div`,{className:`med-feed-composer-form__color-grid`,children:[`#ffffff`,`#fde68a`,`#fca5a5`,`#86efac`,`#93c5fd`,`#d8b4fe`,`#f9a8d4`,`#c7d2fe`].map(e=>(0,f.jsx)(`button`,{type:`button`,className:`med-feed-composer-form__color-btn`,style:{background:e,borderColor:O===e?`var(--feed-primary)`:`#e5e7eb`},onClick:()=>k(e===`#ffffff`?null:e),"aria-label":e},e))}),children:(0,f.jsx)(l.Button,{type:`text`,icon:(0,f.jsx)(m.BgColorsOutlined,{style:{color:`var(--feed-primary)`,fontSize:20}}),className:`med-feed-composer-form__toolbar-btn`,"aria-label":`Màu nền`})}),(0,f.jsx)(l.Tooltip,{title:te?`Ẩn định dạng`:`Định dạng văn bản`,children:(0,f.jsx)(l.Button,{type:`text`,icon:(0,f.jsx)(m.FontColorsOutlined,{style:{fontSize:18}}),className:te?`med-feed-composer-form__toolbar-btn med-feed-composer-form__toolbar-btn--active`:`med-feed-composer-form__toolbar-btn`,"aria-label":`Định dạng văn bản`,"aria-pressed":te,onClick:()=>ne(e=>!e)})}),O&&O!==`#ffffff`&&(0,f.jsx)(l.Button,{type:`text`,size:`small`,onClick:()=>k(null),children:`Xóa màu`})]}),(0,f.jsx)(`div`,{className:`med-feed-composer-form__toolbar-group`,children:(0,f.jsx)(l.Popover,{trigger:`click`,overlayClassName:`med-feed-portal med-feed-emoji-popover`,content:(0,f.jsx)(Vf,{onPick:e=>he(`${v}${e}`)}),children:(0,f.jsx)(l.Button,{type:`text`,icon:(0,f.jsx)(m.SmileOutlined,{style:{color:`#f7b928`,fontSize:20}}),className:`med-feed-composer-form__toolbar-btn`,"aria-label":`Cảm xúc`})})})]}),(0,f.jsxs)(`div`,{className:`med-feed-composer-form__add`,children:[(0,f.jsx)(`span`,{className:`med-feed-composer-form__add-label`,children:`Thêm vào bài viết của bạn`}),(0,f.jsxs)(`span`,{className:`med-feed-composer-form__add-actions`,children:[(0,f.jsx)($h,{variant:`icon`,count:S.length+w,disabled:E!==null,onUploadStart:()=>T(e=>e+1),onUploaded:e=>{T(e=>e-1),e&&C(t=>[...t,e])},onQuestion:_?()=>x(_.id):void 0}),(0,f.jsx)(l.Popover,{trigger:`click`,open:ee,onOpenChange:M,content:(0,f.jsxs)(`div`,{style:{display:`flex`,gap:8,minWidth:220},children:[(0,f.jsx)(l.Input,{size:`small`,placeholder:`Nhập vị trí...`,value:A,onChange:e=>j(e.target.value),onPressEnter:()=>M(!1),prefix:(0,f.jsx)(m.EnvironmentOutlined,{})}),(0,f.jsx)(l.Button,{size:`small`,type:`primary`,onClick:()=>M(!1),children:`Xong`})]}),children:(0,f.jsx)(l.Button,{type:`text`,shape:`circle`,size:`large`,icon:(0,f.jsx)(m.EnvironmentOutlined,{style:{color:`#10b981`,fontSize:22}}),"aria-label":`Vị trí`,className:`med-feed-picker-icon`})})]})]}),(0,f.jsx)(`div`,{className:`med-feed-composer-form__actions`,children:(0,f.jsx)(l.Button,{type:`primary`,block:!0,size:`large`,className:`med-feed-composer-form__submit`,disabled:de||le,loading:E===`submit`,onClick:()=>void ye(`submit`),children:`Hoàn thành`})})]});return o?(0,f.jsxs)(`div`,{className:`med-feed-composer-split`,children:[(0,f.jsx)(`div`,{className:`med-feed-composer-split__editor`,children:Oe}),(0,f.jsx)(`aside`,{className:`med-feed-composer-split__preview`,"aria-label":`Xem trước bài viết`,children:v.trim()||S.length>0?(0,f.jsx)(Jm,{post:F,mode:`preview`}):(0,f.jsx)(`div`,{className:`med-feed-composer-split__empty`,children:`Nội dung bài sẽ hiện ở đây khi bạn gõ.`})})]}):Oe});function ag({open:e,categories:t,intent:n,initialPost:r,onClose:i,onSaved:a}){let o=(0,d.useRef)(!1),s=(0,d.useRef)(null),[c,u]=(0,d.useState)(!1),[p,h]=(0,d.useState)(!1),[g,_]=(0,d.useState)(!1),[v,y]=(0,d.useState)(!1),b=(0,d.useCallback)(e=>{o.current=e},[]),x=()=>{if(!(s.current?.isDirty()??o.current)){i();return}u(!0)},S=async()=>{if(p)return;if(!s.current){u(!1),i();return}h(!0);let e=await s.current.saveDraft();h(!1),e&&(u(!1),i())};return(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(l.Modal,{open:e,title:(0,f.jsxs)(`span`,{className:`med-feed-create-modal__title`,children:[r?`Sửa bài viết`:`Tạo bài viết`,(0,f.jsxs)(`span`,{className:`med-feed-create-modal__tools`,children:[(0,f.jsx)(l.Tooltip,{title:g?`Thoát toàn màn hình`:`Mở trình soạn toàn màn hình`,children:(0,f.jsx)(l.Button,{type:`text`,shape:`circle`,icon:g?(0,f.jsx)(m.CompressOutlined,{}):(0,f.jsx)(m.ExpandOutlined,{}),"aria-label":g?`Thu nhỏ`:`Phóng to`,"aria-pressed":g,className:g?`med-feed-create-modal__tool--active`:void 0,onClick:()=>_(e=>!e)})}),(0,f.jsx)(l.Tooltip,{title:v?`Ẩn`:`Xem`,children:(0,f.jsx)(l.Button,{type:`text`,shape:`circle`,icon:v?(0,f.jsx)(m.EyeInvisibleOutlined,{}):(0,f.jsx)(m.EyeOutlined,{}),"aria-label":`Xem trước`,"aria-pressed":v,className:v?`med-feed-create-modal__tool--active`:void 0,onClick:()=>y(e=>!e)})})]})]}),footer:null,width:g?`100vw`:v?1180:680,style:g?{top:0,maxWidth:`100vw`,margin:0,paddingBottom:0}:void 0,centered:!g,destroyOnClose:!0,maskClosable:!1,onCancel:x,closeIcon:(0,f.jsx)(m.CloseOutlined,{}),className:g?`med-feed-portal med-feed-create-modal med-feed-create-modal--fullscreen`:`med-feed-portal med-feed-create-modal`,children:(0,f.jsx)(ig,{ref:s,zoomed:g,showPreview:v,categories:t,intent:n,initialPost:r,onDirtyChange:b,onSaved:e=>{o.current=!1,u(!1),a(e),i()}})}),(0,f.jsx)(l.Modal,{open:c,zIndex:1100,width:560,maskStyle:{zIndex:1099,background:`rgba(0, 0, 0, 0.65)`},title:`Lưu bài viết này làm bản nháp?`,onCancel:()=>{p||u(!1)},footer:[(0,f.jsx)(l.Button,{type:`text`,disabled:p,onClick:()=>{p||(u(!1),i())},children:`Xóa bản nhập`},`discard`),(0,f.jsx)(l.Button,{type:`primary`,loading:p,onClick:()=>void S(),children:`Lưu làm bản nháp`},`draft`)],centered:!0,destroyOnClose:!0,closeIcon:(0,f.jsx)(m.CloseOutlined,{}),className:`med-feed-portal med-feed-confirm-modal`,children:(0,f.jsx)(`p`,{children:`Nếu bỏ bây giờ, bạn sẽ mất bài viết này.`})})]})}function og({categories:e,onSaved:t}){let{me:n}=P(),[r,i]=(0,d.useState)(null);return n.canPost?(0,f.jsxs)(f.Fragment,{children:[(0,f.jsxs)(l.Button,{type:`primary`,className:`med-feed-create-button`,onClick:()=>i(Date.now()),children:[(0,f.jsx)(`span`,{className:`med-feed-create-button__icon`,"aria-hidden":!0}),`Tạo bài viết`]}),(0,f.jsx)(ag,{open:r!==null,categories:e,intent:`text`,onClose:()=>i(null),onSaved:t},r??`closed`)]}):null}function sg({title:e,description:t,extra:n}){return(0,f.jsxs)(`div`,{className:`med-feed-page-header`,children:[(0,f.jsxs)(`div`,{children:[(0,f.jsx)(l.Typography.Title,{level:4,className:`med-feed-page-header__title`,children:e}),t&&(0,f.jsx)(l.Typography.Text,{type:`secondary`,children:t})]}),n]})}var cg=[{key:`ALL`,label:`Tất cả`},{key:`DRAFT`,label:`Nháp`},{key:`PENDING`,label:`Chờ duyệt`},{key:`APPROVED`,label:`Đã duyệt`},{key:`PUBLISHED`,label:`Đang phát hành`},{key:`UNPUBLISHED`,label:`Đã gỡ`}];function lg(){let{api:e,me:t,isPostFeed:n}=P(),[r,i]=(0,d.useState)(`ALL`),[a,o]=(0,d.useState)(null),s=r===`ALL`?void 0:r,c=F((0,d.useCallback)(()=>e.listCategories(),[e]),`categories`),u=Oe((0,d.useCallback)(t=>e.listMyPosts({status:s,cursor:t}),[e,s]),`my-posts|${r}`),p=async t=>{try{let n=await e.submitPost(t.id);u.updateItem(t.id,()=>n),l.message.success(n.status===`APPROVED`?`Bài viết đã được duyệt, chờ phát hành`:`Bài viết đã vào hàng chờ duyệt`)}catch{l.message.error(`Không gửi được bài viết`)}};return(0,f.jsxs)(`div`,{className:`med-feed-my-posts med-feed-stack`,children:[(0,f.jsx)(sg,{title:`Bài của tôi`,description:`Quản lý nháp, bài chờ duyệt và bài đang phát hành của bạn`,extra:n&&(0,f.jsx)(og,{categories:c.data??[],onSaved:e=>{(r===`ALL`||r===e.status)&&u.prependItem(e)}})}),(0,f.jsx)(l.Tabs,{activeKey:r,onChange:e=>i(e),items:cg.map(e=>({key:e.key,label:e.label}))}),(0,f.jsx)(Ym,{list:u,emptyText:`Không có bài viết`,renderFooter:e=>n&&(e.status===`DRAFT`||e.status===`PENDING`)&&(0,f.jsxs)(l.Space,{wrap:!0,className:`med-feed-my-posts__footer-actions`,children:[(0,f.jsx)(l.Button,{className:`med-feed-my-posts__edit`,icon:(0,f.jsx)(m.EditOutlined,{}),onClick:()=>o(e),children:`Sửa`}),e.status===`DRAFT`&&t.canPost&&(0,f.jsx)(l.Button,{className:`med-feed-my-posts__done`,type:`primary`,icon:(0,f.jsx)(m.SendOutlined,{}),onClick:()=>void p(e),children:`Hoàn thành`})]})}),(0,f.jsx)(ag,{open:a!==null,categories:c.data??[],intent:`text`,initialPost:a??void 0,onClose:()=>o(null),onSaved:e=>u.updateItem(e.id,()=>e)},a?.id??`closed`)]})}function ug({value:e,onChange:t,aspectRatio:n=`16 / 9`,maxWidth:r}){let{api:i}=P(),a=(0,d.useRef)(null),[o,s]=(0,d.useState)(!1),[c,u]=(0,d.useState)(!1),p=async e=>{if(e){if(!e.type.startsWith(`image/`)){l.message.error(`Chỉ nhận file ảnh`);return}s(!0);try{let n=await i.uploadMedia(e,e.name);t?.(n.fileUrl)}catch{l.message.error(`Không tải được ảnh`)}finally{s(!1)}}};return(0,f.jsxs)(`div`,{className:c?`med-feed-image-field med-feed-image-field--drag`:`med-feed-image-field`,style:{maxWidth:r},onDragOver:e=>{e.preventDefault(),u(!0)},onDragLeave:()=>u(!1),onDrop:e=>{e.preventDefault(),u(!1),p(e.dataTransfer.files?.[0])},children:[(0,f.jsxs)(`button`,{type:`button`,className:`med-feed-image-field__drop`,style:{aspectRatio:n},disabled:o,onClick:()=>a.current?.click(),children:[e?(0,f.jsx)(`img`,{src:e,alt:`Ảnh đã chọn`,className:`med-feed-image-field__preview`}):(0,f.jsxs)(`span`,{className:`med-feed-image-field__placeholder`,children:[(0,f.jsx)(m.PictureOutlined,{}),(0,f.jsx)(`strong`,{children:`Tải ảnh lên`}),(0,f.jsx)(`span`,{children:`Kéo thả hoặc bấm để chọn ảnh`})]}),e&&(0,f.jsxs)(`span`,{className:`med-feed-image-field__change`,children:[(0,f.jsx)(m.CameraOutlined,{}),` Đổi ảnh`]}),o&&(0,f.jsxs)(`span`,{className:`med-feed-image-field__busy`,children:[(0,f.jsx)(m.LoadingOutlined,{}),` Đang tải...`]})]}),(0,f.jsx)(`input`,{ref:a,type:`file`,accept:`image/*`,hidden:!0,onChange:e=>{p(e.target.files?.[0]),e.target.value=``}})]})}var dg=`DD/MM/YYYY HH:mm`;function fg(){let{api:e}=P(),t=F((0,d.useCallback)(()=>e.listManageEvents(),[e]),`manage-events`),[n,r]=(0,d.useState)(null),[i,a]=(0,d.useState)(!1),[o]=l.Form.useForm(),s=e=>{o.setFieldsValue(e===`new`?{title:``,startsAt:(0,_.default)().add(1,`day`).startOf(`hour`),endsAt:null,location:``,description:``,imageUrl:``}:{title:e.title,startsAt:(0,_.default)(e.startsAt),endsAt:e.endsAt?(0,_.default)(e.endsAt):null,location:e.location??``,description:e.description??``,imageUrl:e.imageUrl}),r(e)},c=async()=>{let i=await o.validateFields(),s={title:i.title.trim(),startsAt:i.startsAt.toISOString(),endsAt:i.endsAt?i.endsAt.toISOString():null,location:i.location.trim()||null,description:i.description.trim()||null,imageUrl:i.imageUrl};a(!0);try{n===`new`?await e.createEvent(s):n&&await e.updateEvent(n.id,s),l.message.success(`Đã lưu sự kiện`),r(null),t.reload()}catch(e){l.message.error(b(e,`FEED_EVENT_INVALID`)?`Thông tin sự kiện không hợp lệ`:`Không lưu được sự kiện`)}finally{a(!1)}},u=async n=>{try{await e.deleteEvent(n.id),l.message.success(`Đã xoá sự kiện`),t.reload()}catch{l.message.error(`Không xoá được sự kiện`)}};return(0,f.jsxs)(`div`,{className:`med-feed-wide med-feed-events-admin`,children:[(0,f.jsx)(sg,{title:`Sự kiện`,description:`Khung bên phải bảng tin hiện sự kiện mới tạo gần nhất`,extra:(0,f.jsx)(l.Button,{type:`primary`,icon:(0,f.jsx)(m.PlusOutlined,{}),onClick:()=>s(`new`),children:`Thêm sự kiện`})}),(0,f.jsx)(l.Table,{rowKey:`id`,columns:[{title:`Ảnh`,dataIndex:`imageUrl`,width:90,render:e=>(0,f.jsx)(`img`,{src:e,alt:``,className:`med-feed-events-admin__thumb`})},{title:`Sự kiện`,dataIndex:`title`},{title:`Thời gian`,width:260,render:(e,t)=>nh(t.startsAt,t.endsAt)},{title:`Địa điểm`,dataIndex:`location`,width:180,render:e=>e??``},{title:``,fixed:`right`,width:100,render:(e,t)=>(0,f.jsxs)(l.Space,{size:8,children:[(0,f.jsx)(l.Button,{icon:(0,f.jsx)(m.EditOutlined,{}),"aria-label":`Sửa`,onClick:()=>s(t)}),(0,f.jsx)(l.Popconfirm,{title:`Xoá sự kiện này?`,okText:`Xoá`,cancelText:`Huỷ`,okButtonProps:{danger:!0},onConfirm:()=>u(t),children:(0,f.jsx)(l.Button,{danger:!0,icon:(0,f.jsx)(m.DeleteOutlined,{}),"aria-label":`Xoá`})})]})}],dataSource:t.data??[],loading:t.loading,pagination:!1,scroll:{x:`max-content`}}),(0,f.jsx)(l.Modal,{open:n!==null,title:(0,f.jsxs)(`div`,{className:`med-feed-events-form__head`,children:[(0,f.jsx)(`strong`,{children:n===`new`?`Thêm sự kiện`:`Sửa sự kiện`}),(0,f.jsx)(`span`,{children:`Hiện ở khung bên phải bảng tin cho mọi người`})]}),okText:n===`new`?`Thêm sự kiện`:`Lưu thay đổi`,cancelText:`Huỷ`,confirmLoading:i,width:560,centered:!0,wrapClassName:`med-feed-portal med-feed-events-form-modal`,maskStyle:{background:`rgba(11, 28, 48, 0.5)`,backdropFilter:`blur(4px)`},onOk:()=>void c(),onCancel:()=>r(null),destroyOnClose:!0,children:(0,f.jsxs)(l.Form,{form:o,layout:`vertical`,preserve:!1,requiredMark:!1,children:[(0,f.jsx)(l.Form.Item,{name:`imageUrl`,label:`Ảnh bìa`,rules:[{required:!0,message:`Cần có ảnh bìa`}],children:(0,f.jsx)(ug,{aspectRatio:`16 / 9`})}),(0,f.jsx)(l.Form.Item,{name:`title`,label:`Tên sự kiện`,rules:[{required:!0,whitespace:!0,message:`Nhập tên sự kiện`}],children:(0,f.jsx)(l.Input,{size:`large`,maxLength:120,placeholder:`Ví dụ: Hội thao Meditech 2026`})}),(0,f.jsxs)(`div`,{className:`med-feed-events-form__row`,children:[(0,f.jsx)(l.Form.Item,{name:`startsAt`,label:`Bắt đầu`,rules:[{required:!0,message:`Chọn giờ bắt đầu`}],children:(0,f.jsx)(l.DatePicker,{size:`large`,showTime:!0,format:dg,style:{width:`100%`}})}),(0,f.jsx)(l.Form.Item,{name:`endsAt`,label:`Kết thúc`,dependencies:[`startsAt`],rules:[({getFieldValue:e})=>({validator:(t,n)=>{let r=e(`startsAt`);return n&&r&&n.isBefore(r)?Promise.reject(Error(`Giờ kết thúc phải sau giờ bắt đầu`)):Promise.resolve()}})],children:(0,f.jsx)(l.DatePicker,{size:`large`,showTime:!0,format:dg,placeholder:`Không bắt buộc`,style:{width:`100%`}})})]}),(0,f.jsx)(l.Form.Item,{name:`location`,label:`Địa điểm`,children:(0,f.jsx)(l.Input,{size:`large`,maxLength:200,placeholder:`Ví dụ: Sân vận động Quân khu 7`})}),(0,f.jsx)(l.Form.Item,{name:`description`,label:`Mô tả ngắn`,children:(0,f.jsx)(l.Input.TextArea,{rows:4,maxLength:2e3,showCount:!0,placeholder:`Giới thiệu nội dung, đối tượng tham gia...`})})]})})]})}var pg=300;function mg({value:e,onChange:t,placeholder:n=`Tất cả tác giả`}){let{api:r}=P(),[i,a]=(0,d.useState)([]),[o,s]=(0,d.useState)(!1),c=(0,d.useRef)();return(0,d.useEffect)(()=>()=>clearTimeout(c.current),[]),(0,f.jsx)(l.Select,{showSearch:!0,allowClear:!0,value:e,placeholder:n,suffixIcon:(0,f.jsx)(m.UserOutlined,{}),filterOption:!1,onSearch:e=>{clearTimeout(c.current),e.trim()&&(s(!0),c.current=setTimeout(()=>{r.searchUsers(e).then(e=>{a(e),s(!1)},()=>s(!1))},pg))},onChange:e=>t(e),notFoundContent:o?(0,f.jsx)(l.Spin,{size:`small`}):`Gõ tên hoặc mã nhân viên`,style:{minWidth:200},className:`med-feed-author-select`,options:i.map(e=>({value:e.id,label:e.departmentName?`${e.fullName} · ${e.departmentName}`:e.fullName}))})}var hg={"7d":`7 ngày gần nhất`,"30d":`30 ngày gần nhất`,"90d":`90 ngày gần nhất`,"this-month":`Tháng này`,"this-year":`Năm nay`};function gg(e){let t=String(e.getMonth()+1).padStart(2,`0`),n=String(e.getDate()).padStart(2,`0`);return`${e.getFullYear()}-${t}-${n}`}function _g(e){return typeof e==`object`}function vg(e,t=new Date){if(_g(e))return e;let n=e,r=new Date(t);return n===`this-month`?r.setDate(1):n===`this-year`?r.setMonth(0,1):r.setDate(t.getDate()-(Number.parseInt(n,10)-1)),{from:gg(r),to:gg(t)}}var yg=`YYYY-MM-DD`;function bg({value:e,onChange:t}){let n=vg(e),r=(0,d.useMemo)(()=>Object.fromEntries(Object.keys(hg).map(e=>{let{from:t,to:n}=vg(e);return[hg[e],[(0,_.default)(t,yg),(0,_.default)(n,yg)]]})),[]);return(0,f.jsx)(`span`,{className:`med-feed-date-range med-feed-pill-fields`,children:(0,f.jsx)(l.DatePicker.RangePicker,{value:[(0,_.default)(n.from,yg),(0,_.default)(n.to,yg)],format:`DD/MM/YYYY`,allowClear:!1,ranges:r,placeholder:[`Từ ngày`,`Đến ngày`],disabledDate:e=>e.isAfter((0,_.default)(),`day`),onChange:e=>{let[n,r]=e??[];n&&r&&t({from:n.format(yg),to:r.format(yg)})}})})}function xg({post:e,onOpen:t}){let n=new Map(e.mentionedUsers.map(e=>[e.id,e.fullName])),r=e.media.find(e=>e.kind===`IMAGE`);return(0,f.jsxs)(`button`,{type:`button`,className:`med-feed-table-post`,onClick:()=>t(e),children:[r?(0,f.jsx)(`img`,{src:r.fileUrl,alt:``,referrerPolicy:`no-referrer`}):(0,f.jsx)(`span`,{className:`med-feed-table-post__placeholder`,"aria-hidden":!0,children:e.media.length>0?`📎`:`Aa`}),(0,f.jsxs)(`span`,{className:`med-feed-table-post__body`,children:[(0,f.jsx)(l.Typography.Paragraph,{ellipsis:{rows:2},className:`med-feed-table-post__text`,children:xe(e.content,160,n)||(r?`[Hình ảnh]`:`[Tài liệu]`)}),(0,f.jsxs)(`span`,{className:`med-feed-table-post__meta`,children:[Ep(e.createdAt),e.media.length>0&&` · ${e.media.length} tệp đính kèm`]})]})]})}function Sg({post:e,onClose:t,onChanged:n,onRemoved:r,onEdit:i,readOnly:a=!1}){let{api:o}=P(),[s,c]=(0,d.useState)(!1),u=async(e,r)=>{c(!0);try{n(await e()),l.message.success(r),t()}catch{l.message.error(`Thao tác không thành công, bài có thể đã được người khác xử lý`)}finally{c(!1)}},p=e&&(0,f.jsxs)(l.Space,{children:[(0,f.jsx)(Vm,{post:e,labelled:!0,onRemoved:e=>{r(e),t()}}),e.status===`PENDING`&&(0,f.jsx)(l.Button,{type:`primary`,loading:s,onClick:()=>void u(()=>o.approvePost(e.id),`Đã duyệt bài, chờ phát hành`),children:`Duyệt`}),e.status===`APPROVED`&&(0,f.jsx)(l.Button,{type:`primary`,loading:s,onClick:()=>void u(()=>o.publishPost(e.id),`Đã phát hành bài lên bảng tin`),children:`Phát Hành`}),e.status===`PUBLISHED`&&(e.commentsLocked?(0,f.jsx)(l.Button,{loading:s,onClick:()=>void u(()=>o.unlockComments(e.id),`Đã mở bình luận`),children:`Mở bình luận`}):(0,f.jsx)(l.Button,{loading:s,onClick:()=>void u(()=>o.lockComments(e.id),`Đã khoá bình luận`),children:`Khoá bình luận`})),e.status===`PUBLISHED`&&(0,f.jsx)(l.Button,{loading:s,onClick:()=>void u(()=>e.pinnedAt?o.unpinPost(e.id):o.pinPost(e.id),e.pinnedAt?`Đã bỏ ghim bài`:`Đã ghim bài lên đầu bảng tin`),children:e.pinnedAt?`Bỏ ghim`:`Ghim lên đầu`}),e.status===`PUBLISHED`&&(0,f.jsx)(l.Button,{danger:!0,loading:s,onClick:()=>void u(()=>o.unpublishPost(e.id),`Đã gỡ bài khỏi bảng tin`),children:`Gỡ bài`}),e.status===`UNPUBLISHED`&&(0,f.jsxs)(f.Fragment,{children:[i&&(0,f.jsx)(l.Button,{disabled:s,onClick:()=>{i(e),t()},children:`Sửa`}),(0,f.jsx)(l.Button,{type:`primary`,loading:s,onClick:()=>void u(()=>o.submitPost(e.id),`Đã gửi duyệt lại`),children:`Gửi duyệt lại`})]})]});return(0,f.jsx)(l.Drawer,{title:`Xem bài viết`,width:720,open:e!==null,onClose:t,extra:a?void 0:p,destroyOnClose:!0,className:`med-feed-portal med-feed-review-drawer`,children:e&&(0,f.jsx)(Jm,{post:e,mode:`preview`})})}var Cg=10,wg=[{key:`PENDING`,label:`Chờ duyệt`,hint:`Cần xử lý`,tone:`pending`},{key:`APPROVED`,label:`Đã duyệt`,hint:`Chờ phát hành`,tone:`approved`},{key:`PUBLISHED`,label:`Đang phát hành`,hint:`Đang hiển thị`,tone:`published`},{key:`UNPUBLISHED`,label:`Đã gỡ`,hint:`Gỡ khỏi bảng tin`,tone:`unpublished`},{key:`DELETED`,label:`Đã xoá`,hint:`Lưu cho báo cáo`,tone:`deleted`},{key:`ALL`,label:`Tất cả`,hint:`Mọi trạng thái`,tone:`all`}];function Tg(){let{api:e}=P(),[t,n]=(0,d.useState)(`30d`),[r,i]=(0,d.useState)(`PENDING`),[a,o]=(0,d.useState)(),[s,c]=(0,d.useState)(``),[u,p]=(0,d.useState)(``),[h,g]=(0,d.useState)(1),[_,v]=(0,d.useState)([]),[y,b]=(0,d.useState)(null),[x,S]=(0,d.useState)(null),[C,w]=(0,d.useState)(null),T=(0,d.useMemo)(()=>vg(t),[t]),E=F((0,d.useCallback)(()=>e.listCategories(),[e]),`categories`),D=F((0,d.useCallback)(()=>e.listManagePosts({...T,status:r===`ALL`?void 0:r,authorId:a,q:s||void 0,page:h,pageSize:Cg}),[e,T,r,a,s,h]),JSON.stringify({range:T,status:r,authorId:a,q:s,page:h})),O=F((0,d.useCallback)(()=>e.getManageCounts(T),[e,T]),JSON.stringify(T)),k=()=>{v([]),D.reload(),O.reload()};(0,d.useEffect)(()=>{let e=u.trim();if(e===s)return;let t=setTimeout(()=>{c(e),g(1),v([])},350);return()=>clearTimeout(t)},[u,s]);let A=e=>t=>{e(t),g(1),v([])},j=async(e,t,n)=>{S(e.id);try{await t(),l.message.success(n),k()}catch{l.message.error(`Thao tác không thành công, bài có thể đã được người khác xử lý`)}finally{S(null)}},ee=async()=>{try{await e.approvePosts(_),l.message.success(`Đã duyệt ${_.length} bài viết, chờ phát hành`),k()}catch{l.message.error(`Không duyệt được các bài đã chọn`)}},M=(e,t,n,r,i=`default`)=>(0,f.jsx)(l.Tooltip,{title:t,children:(0,f.jsx)(l.Button,{size:`small`,icon:n,"aria-label":t,loading:x===e.id&&i!=="default",className:`med-feed-manage__action med-feed-manage__action--${i}`,onClick:r})});return(0,f.jsxs)(`div`,{className:`med-feed-wide med-feed-manage`,children:[(0,f.jsx)(sg,{title:`Trung tâm duyệt bài viết`,description:`Duyệt, phát hành, gỡ và theo dõi tương tác của mọi bài viết trên bảng tin`,extra:(0,f.jsx)(og,{categories:E.data??[],onSaved:k})}),(0,f.jsxs)(`section`,{className:`med-feed-manage__panel`,children:[(0,f.jsx)(`div`,{className:`med-feed-manage__tabs`,role:`tablist`,"aria-label":`Lọc theo trạng thái`,children:wg.map(e=>{let t=e.key===`ALL`?O.data?O.data.PENDING+O.data.APPROVED+O.data.PUBLISHED+O.data.UNPUBLISHED+O.data.DELETED:void 0:O.data?.[e.key],n=r===e.key;return(0,f.jsxs)(`button`,{type:`button`,role:`tab`,"aria-selected":n,title:e.hint,className:`med-feed-manage__tab med-feed-manage__tab--${e.tone}${n?` med-feed-manage__tab--active`:``}`,onClick:()=>A(i)(e.key),children:[e.label,(0,f.jsx)(`span`,{className:`med-feed-manage__tab-count`,children:t===void 0?`–`:$(t)})]},e.key)})}),(0,f.jsxs)(`div`,{className:`med-feed-manage__toolbar med-feed-pill-fields`,children:[(0,f.jsx)(l.Input,{allowClear:!0,value:u,prefix:(0,f.jsx)(m.SearchOutlined,{}),placeholder:`Tìm theo nội dung bài viết…`,className:`med-feed-manage__search`,onPressEnter:()=>A(c)(u.trim()),onChange:e=>{p(e.target.value),e.target.value||A(c)(``)}}),(0,f.jsx)(bg,{value:t,onChange:A(n)}),(0,f.jsx)(mg,{value:a,onChange:A(o)}),(s||a||JSON.stringify(T)!==JSON.stringify(vg(`30d`)))&&(0,f.jsx)(l.Button,{type:`link`,icon:(0,f.jsx)(m.CloseCircleOutlined,{}),className:`med-feed-manage__clear`,onClick:()=>{p(``),c(``),o(void 0),n(`30d`),g(1),v([])},children:`Xoá bộ lọc`})]}),_.length>0&&(0,f.jsxs)(`div`,{className:`med-feed-manage__bulk`,children:[(0,f.jsxs)(`span`,{children:[`Đã chọn `,(0,f.jsx)(`strong`,{children:_.length}),` bài chờ duyệt`]}),(0,f.jsxs)(l.Space,{children:[(0,f.jsx)(l.Button,{onClick:()=>v([]),children:`Bỏ chọn`}),(0,f.jsx)(l.Button,{type:`primary`,icon:(0,f.jsx)(m.CheckOutlined,{}),onClick:()=>void ee(),children:`Duyệt hàng loạt`})]})]}),(0,f.jsx)(l.Table,{className:`med-feed-manage-table`,rowKey:`id`,columns:[{title:`Bài viết`,key:`content`,render:(e,t)=>(0,f.jsx)(xg,{post:t,onOpen:b})},{title:`Tác giả`,key:`author`,width:220,render:(e,t)=>(0,f.jsxs)(`span`,{className:`med-feed-table-author`,children:[(0,f.jsx)(Gf,{user:t.author,size:32}),(0,f.jsxs)(`span`,{children:[(0,f.jsx)(`strong`,{children:t.author.fullName}),t.author.departmentName&&(0,f.jsx)(`span`,{children:t.author.departmentName})]})]})},{title:`Trạng thái`,key:`status`,width:130,render:(e,t)=>(0,f.jsxs)(`span`,{className:`med-feed-table-status`,children:[(0,f.jsx)(Wm,{status:t.status}),t.pinnedAt&&t.status===`PUBLISHED`&&(0,f.jsx)(Um,{})]})},{title:`Ngày tạo`,key:`createdAt`,width:150,render:(e,t)=>(0,f.jsx)(`span`,{className:`med-feed-table-date`,children:Ep(t.createdAt)})},{title:`Tương tác`,key:`engagement`,width:220,render:(e,t)=>(0,f.jsxs)(`span`,{className:`med-feed-table-engagement`,children:[(0,f.jsxs)(`span`,{children:[(0,f.jsx)(m.LikeOutlined,{}),` `,$(t.reactionCount)]}),(0,f.jsxs)(`span`,{children:[(0,f.jsx)(m.CommentOutlined,{}),` `,$(t.commentCount)]}),(0,f.jsxs)(`span`,{children:[(0,f.jsx)(m.ShareAltOutlined,{}),` `,$(t.shareCount)]})]})},{title:`Thao tác`,key:`actions`,fixed:`right`,width:180,align:`right`,render:(t,n)=>(0,f.jsxs)(l.Space,{size:6,children:[n.status===`PENDING`&&M(n,`Duyệt`,(0,f.jsx)(m.CheckOutlined,{}),()=>void j(n,()=>e.approvePost(n.id),`Đã duyệt bài, chờ phát hành`),`primary`),n.status===`APPROVED`&&M(n,`Phát Hành`,(0,f.jsx)(m.CloudUploadOutlined,{}),()=>void j(n,()=>e.publishPost(n.id),`Đã phát hành bài lên bảng tin`),`primary`),n.status===`PUBLISHED`&&M(n,n.pinnedAt?`Bỏ ghim`:`Ghim lên đầu`,n.pinnedAt?(0,f.jsx)(m.PushpinFilled,{}):(0,f.jsx)(m.PushpinOutlined,{}),()=>void j(n,()=>n.pinnedAt?e.unpinPost(n.id):e.pinPost(n.id),n.pinnedAt?`Đã bỏ ghim bài`:`Đã ghim bài lên đầu bảng tin`)),n.status===`PUBLISHED`&&M(n,`Gỡ bài`,(0,f.jsx)(m.EyeInvisibleOutlined,{}),()=>void j(n,()=>e.unpublishPost(n.id),`Đã gỡ bài khỏi bảng tin`),`danger`),n.status===`UNPUBLISHED`&&(0,f.jsxs)(f.Fragment,{children:[M(n,`Sửa bài`,(0,f.jsx)(m.EditOutlined,{}),()=>w(n)),M(n,`Gửi duyệt lại`,(0,f.jsx)(m.SendOutlined,{}),()=>void j(n,()=>e.submitPost(n.id),`Đã gửi duyệt lại`),`primary`),M(n,`Xoá bài`,(0,f.jsx)(m.DeleteOutlined,{}),()=>Rm(()=>j(n,()=>e.deletePost(n.id),`Đã xoá bài viết`)))]}),M(n,`Xem chi tiết`,(0,f.jsx)(m.EyeOutlined,{}),()=>b(n))]})}],dataSource:D.data?.items??[],loading:D.loading,rowSelection:{selectedRowKeys:_,onChange:e=>v(e),getCheckboxProps:e=>({disabled:e.status!==`PENDING`})},locale:{emptyText:D.error?`Không tải được danh sách bài`:`Không có bài viết nào`},scroll:{x:1040},pagination:{current:h,pageSize:Cg,total:D.data?.total??0,showSizeChanger:!1,showTotal:(e,[t,n])=>`Hiển thị ${t}–${n} trong ${$(e)} bài viết`,onChange:e=>{g(e),v([])}}})]}),(0,f.jsx)(Sg,{post:y,onClose:()=>b(null),onChanged:k,onRemoved:k,onEdit:w}),(0,f.jsx)(ag,{open:C!==null,categories:E.data??[],intent:`text`,initialPost:C??void 0,onClose:()=>w(null),onSaved:k},C?.id??`closed`)]})}var Eg=/^https?:\/\/\S+$/;function Dg(){let{api:e}=P(),t=F((0,d.useCallback)(()=>e.getRightBanner(),[e]),`banner-settings`),[n]=l.Form.useForm(),[r,i]=(0,d.useState)(!1),a=t.data?.imageUrl?t.data:null;(0,d.useEffect)(()=>{t.data&&n.setFieldsValue({imageUrl:t.data.imageUrl??``,linkUrl:t.data.linkUrl??``})},[t.data,n]);let o=async()=>{let r=await n.validateFields();i(!0);try{await e.setRightBanner({imageUrl:r.imageUrl,linkUrl:r.linkUrl.trim()||null}),l.message.success(`Đã lưu banner`),t.reload()}catch{l.message.error(`Không lưu được banner`)}finally{i(!1)}},s=async()=>{try{await e.clearRightBanner(),n.setFieldsValue({imageUrl:``,linkUrl:``}),l.message.success(`Đã gỡ banner`),t.reload()}catch{l.message.error(`Không gỡ được banner`)}};return(0,f.jsxs)(`div`,{className:`med-feed-banner-settings`,children:[(0,f.jsx)(sg,{title:`Banner bên phải`,description:`Ảnh quảng cáo hiện dưới khung sự kiện ở cột phải bảng tin`}),(0,f.jsx)(`section`,{className:`med-feed-banner-settings__panel`,children:(0,f.jsxs)(l.Form,{form:n,layout:`vertical`,requiredMark:!1,children:[(0,f.jsx)(l.Form.Item,{name:`imageUrl`,label:`Ảnh banner`,extra:`Nên dùng ảnh dọc; ảnh hiện rộng đúng bằng cột phải và giữ nguyên tỉ lệ.`,rules:[{required:!0,message:`Cần chọn ảnh banner`}],children:(0,f.jsx)(ug,{aspectRatio:`4 / 7`,maxWidth:280})}),(0,f.jsx)(l.Form.Item,{name:`linkUrl`,label:`Đường dẫn khi bấm vào (không bắt buộc)`,rules:[{pattern:Eg,message:`Đường dẫn phải bắt đầu bằng http:// hoặc https://`}],children:(0,f.jsx)(l.Input,{size:`large`,maxLength:2048,placeholder:`https://...`})}),(0,f.jsxs)(`div`,{className:`med-feed-banner-settings__actions`,children:[(0,f.jsx)(l.Button,{type:`primary`,loading:r,onClick:()=>void o(),children:`Lưu banner`}),a&&(0,f.jsx)(l.Popconfirm,{title:`Gỡ banner này?`,okText:`Gỡ`,cancelText:`Huỷ`,okButtonProps:{danger:!0},onConfirm:()=>s(),children:(0,f.jsx)(l.Button,{danger:!0,icon:(0,f.jsx)(m.DeleteOutlined,{}),children:`Gỡ banner`})})]})]})})]})}var Og=`#2ea053`;function kg(){let{api:e}=P(),t=F((0,d.useCallback)(()=>e.listManageCategories(),[e]),`manage-categories`),[n,r]=(0,d.useState)(null),[i,a]=(0,d.useState)(!1),[o]=l.Form.useForm(),s=l.Form.useWatch(`color`,o),c=l.Form.useWatch(`name`,o),u=n===`new`||!n?null:n.id,p=s?(t.data??[]).find(e=>e.id!==u&&e.color?.toLowerCase()===s.toLowerCase()):void 0,h=e=>{let n=(t.data??[]).reduce((e,t)=>Math.max(e,t.sortOrder+1),0);o.setFieldsValue(e===`new`?{name:``,color:Og,sortOrder:n,hidden:!1}:{name:e.name,color:e.color??Og,sortOrder:e.sortOrder,hidden:e.hidden}),r(e)},g=async()=>{let i=await o.validateFields(),s={...i,name:i.name.trim()};a(!0);try{n===`new`?await e.createCategory(s):n&&await e.updateCategory(n.id,s),l.message.success(`Đã lưu chuyên mục`),r(null),t.reload()}catch(e){l.message.error(b(e,`FEED_CATEGORY_INVALID`)?`Tên chuyên mục đã tồn tại hoặc không hợp lệ`:`Không lưu được chuyên mục`)}finally{a(!1)}},_=async n=>{try{await e.deleteCategory(n.id),l.message.success(`Đã xoá chuyên mục`),t.reload()}catch(e){l.message.error(b(e,`FEED_CATEGORY_IN_USE`)?`Chuyên mục đã có bài viết, hãy ẩn thay vì xoá`:`Không xoá được chuyên mục`)}},v=async(n,r)=>{try{await e.updateCategory(n.id,{hidden:r}),t.reload()}catch{l.message.error(`Không cập nhật được chuyên mục`)}};return(0,f.jsxs)(`div`,{className:`med-feed-categories`,children:[(0,f.jsx)(sg,{title:`Thiết lập chuyên mục`,description:`Tạo, sửa, ẩn hoặc xoá các chuyên mục của bảng tin`,extra:(0,f.jsx)(l.Button,{type:`primary`,icon:(0,f.jsx)(m.PlusOutlined,{}),onClick:()=>h(`new`),children:`Thêm chuyên mục`})}),(0,f.jsxs)(`section`,{className:`med-feed-categories__panel`,children:[(0,f.jsxs)(`div`,{className:`med-feed-categories__head`,children:[(0,f.jsx)(`h3`,{className:`med-feed-categories__title`,children:t.data?`${t.data.length} chuyên mục`:`Chuyên mục`}),(0,f.jsx)(`span`,{className:`med-feed-categories__hint`,children:`Chuyên mục bị ẩn không hiện ở bảng tin nhưng bài cũ vẫn giữ nhãn`})]}),(0,f.jsx)(l.Table,{className:`med-feed-categories-table`,rowKey:`id`,columns:[{title:`Chuyên mục`,dataIndex:`name`,render:(e,t)=>(0,f.jsx)(Ag,{name:e,color:t.color})},{title:`Thứ tự`,dataIndex:`sortOrder`,width:90},{title:`Số bài`,dataIndex:`postCount`,width:90,render:e=>(0,f.jsx)(`span`,{className:`med-feed-categories__count`,children:e})},{title:`Hiển thị`,width:100,render:(e,t)=>(0,f.jsx)(l.Switch,{size:`small`,checked:!t.hidden,onChange:e=>void v(t,!e),"aria-label":`Hiển thị ${t.name}`})},{title:``,fixed:`right`,width:100,render:(e,t)=>(0,f.jsxs)(l.Space,{size:8,children:[(0,f.jsx)(l.Button,{className:`med-feed-categories__action`,icon:(0,f.jsx)(m.EditOutlined,{}),"aria-label":`Sửa`,onClick:()=>h(t)}),(0,f.jsx)(l.Popconfirm,{title:`Xoá chuyên mục này?`,okText:`Xoá`,cancelText:`Huỷ`,okButtonProps:{danger:!0},onConfirm:()=>_(t),children:(0,f.jsx)(l.Button,{className:`med-feed-categories__action med-feed-categories__action--danger`,icon:(0,f.jsx)(m.DeleteOutlined,{}),"aria-label":`Xoá`})})]})}],dataSource:t.data??[],loading:t.loading,pagination:!1,scroll:{x:`max-content`},rowClassName:e=>e.hidden?`med-feed-categories__row--hidden`:``})]}),(0,f.jsx)(l.Modal,{open:n!==null,title:n===`new`?`Thêm chuyên mục`:`Sửa chuyên mục`,okText:`Lưu`,cancelText:`Huỷ`,confirmLoading:i,onOk:()=>void g(),onCancel:()=>r(null),destroyOnClose:!0,children:(0,f.jsxs)(l.Form,{form:o,layout:`vertical`,preserve:!1,children:[(0,f.jsxs)(`div`,{className:`med-feed-category-preview`,children:[`Xem trước`,(0,f.jsx)(Ag,{name:c?.trim()||`Tên chuyên mục`,color:s})]}),(0,f.jsx)(l.Form.Item,{name:`name`,label:`Tên chuyên mục`,rules:[{required:!0,whitespace:!0,message:`Nhập tên chuyên mục`}],children:(0,f.jsx)(l.Input,{maxLength:60})}),(0,f.jsx)(l.Form.Item,{name:`color`,label:`Màu`,rules:[{pattern:/^#[0-9a-fA-F]{6}$/,message:`Màu dạng #rrggbb`}],validateStatus:p?`warning`:void 0,help:p?`Màu này đã dùng cho "${p.name}"`:void 0,children:(0,f.jsx)(jg,{})}),(0,f.jsx)(l.Form.Item,{name:`sortOrder`,label:`Thứ tự hiển thị`,children:(0,f.jsx)(l.InputNumber,{precision:0,style:{width:`100%`}})}),(0,f.jsx)(l.Form.Item,{name:`hidden`,label:`Ẩn khỏi bảng tin`,valuePropName:`checked`,children:(0,f.jsx)(l.Switch,{})})]})})]})}function Ag({name:e,color:t}){return(0,f.jsxs)(`span`,{className:`med-feed-category-chip`,style:t?{"--tone":t}:void 0,children:[(0,f.jsx)(`span`,{className:`med-feed-category-chip__dot`,"aria-hidden":!0}),(0,f.jsx)(`span`,{className:`med-feed-category-chip__name`,children:e})]})}function jg({value:e,onChange:t}){let n=/^#[0-9a-fA-F]{6}$/.test(e??``);return(0,f.jsxs)(`div`,{className:`med-feed-category-color`,children:[(0,f.jsx)(`input`,{type:`color`,"aria-label":`Chọn màu`,value:n?e:Og,onChange:e=>t?.(e.target.value)}),(0,f.jsx)(l.Input,{maxLength:7,placeholder:`#2ea053`,value:e,onChange:e=>t?.(e.target.value)})]})}function Mg(){let{basePath:e}=P(),t=`${e.replace(/\/+$/,``)}/settings`,n=[{to:`${t}/categories`,label:`Thiết lập chuyên mục`},{to:`${t}/banner`,label:`Banner`}];return(0,f.jsxs)(`div`,{className:`med-feed-wide med-feed-settings`,children:[(0,f.jsx)(`nav`,{className:`med-feed-settings__tabs`,"aria-label":`Cấu hình`,children:n.map(e=>(0,f.jsx)(p.NavLink,{to:e.to,className:({isActive:e})=>e?`med-feed-settings__tab med-feed-settings__tab--active`:`med-feed-settings__tab`,children:e.label},e.to))}),(0,f.jsxs)(p.Routes,{children:[(0,f.jsx)(p.Route,{index:!0,element:(0,f.jsx)(p.Navigate,{to:`categories`,replace:!0})}),(0,f.jsx)(p.Route,{path:`categories`,element:(0,f.jsx)(kg,{})}),(0,f.jsx)(p.Route,{path:`banner`,element:(0,f.jsx)(Dg,{})})]})]})}var Ng={ZALO:`Zalo`,FACEBOOK:`Facebook`,CHAT:`Chat`,LINK:`Liên kết`};function Pg({title:e,value:t,icon:n,tone:r,detail:i,loading:a}){return(0,f.jsxs)(`div`,{className:`med-feed-kpi med-feed-kpi--${r}`,children:[(0,f.jsx)(`span`,{className:`med-feed-kpi__icon`,"aria-hidden":!0,children:n}),(0,f.jsxs)(`div`,{className:`med-feed-kpi__body`,children:[(0,f.jsx)(`span`,{className:`med-feed-kpi__title`,children:e}),a?(0,f.jsx)(l.Skeleton.Input,{active:!0,size:`small`,className:`med-feed-kpi__skeleton`}):(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(`span`,{className:`med-feed-kpi__value`,children:$(t??0)}),i&&(0,f.jsx)(`span`,{className:`med-feed-kpi__detail`,children:i})]})]})]})}function Fg({overview:e,loading:t}){let n=Se.filter(t=>(e?.reactionsByType[t]??0)>0),r=e?.postsByStatus??{},i=[`ZALO`,`FACEBOOK`,`CHAT`,`LINK`].filter(t=>(e?.sharesByChannel?.[t]??0)>0);return(0,f.jsxs)(`div`,{className:`med-feed-kpis`,children:[(0,f.jsx)(Pg,{title:`Bài viết`,tone:`posts`,value:e?.postCount,icon:(0,f.jsx)(m.FileTextOutlined,{}),loading:t,detail:`${$(r.PUBLISHED??0)} đang phát hành · ${$(r.UNPUBLISHED??0)} đã gỡ · ${$(r.PENDING??0)} chờ duyệt`}),(0,f.jsx)(Pg,{title:`Reaction`,tone:`reactions`,value:e?.reactionTotal,icon:(0,f.jsx)(m.LikeFilled,{}),loading:t,detail:n.length>0?n.map(t=>`${bm[t].label} ${$(e?.reactionsByType[t]??0)}`).join(` · `):`Chưa có cảm xúc nào`}),(0,f.jsx)(Pg,{title:`Bình luận`,tone:`comments`,value:e?.commentCount,icon:(0,f.jsx)(m.CommentOutlined,{}),loading:t,detail:`${$(e?.rootCommentCount??0)} bình luận · ${$(e?.replyCount??0)} trả lời`}),(0,f.jsx)(Pg,{title:`Chia sẻ`,tone:`shares`,value:e?.shareTotal,icon:(0,f.jsx)(m.ShareAltOutlined,{}),loading:t,detail:i.length>0?i.map(t=>`${Ng[t]} ${$(e?.sharesByChannel?.[t]??0)}`).join(` · `):`Chưa có lượt chia sẻ`})]})}var Ig=[{value:`day`,label:`Ngày`},{value:`week`,label:`Tuần`},{value:`month`,label:`Tháng`}];function Lg(e){let t=String(e.getMonth()+1).padStart(2,`0`);return`${e.getFullYear()}-${t}-${String(e.getDate()).padStart(2,`0`)}`}function Rg(e,t=new Date){let n=new Date(t);return e===`week`&&n.setDate(t.getDate()-(t.getDay()+6)%7),e===`month`&&n.setDate(1),{from:Lg(n),to:Lg(t)}}function zg({value:e,onChange:t}){let n=vg(e),r=Ig.find(({value:e})=>{let t=Rg(e);return t.from===n.from&&t.to===n.to})?.value;return(0,f.jsx)(l.Radio.Group,{className:`med-feed-segmented`,optionType:`button`,options:Ig,value:r,onChange:e=>t(Rg(e.target.value))})}var Bg=10,Vg=[{value:`total`,label:`Tổng tương tác`},{value:`reactions`,label:`Reaction`},{value:`comments`,label:`Bình luận`}];function Hg({range:e}){let{api:t}=P(),[n,r]=(0,d.useState)(`total`),[i,a]=(0,d.useState)({from:e.from,to:e.to}),[o,s]=(0,d.useState)(``),[c,u]=(0,d.useState)(``),[p,h]=(0,d.useState)(null),g=(0,d.useMemo)(()=>({...e,...vg(i),...c?{q:c}:{}}),[e,i,c]),_=F((0,d.useCallback)(()=>t.getTopPosts({...g,sortBy:n,limit:Bg}),[t,g,n]),`${JSON.stringify(g)}|${n}`);return(0,f.jsxs)(f.Fragment,{children:[(0,f.jsxs)(`div`,{className:`med-feed-report-toolbar med-feed-pill-fields`,children:[(0,f.jsx)(l.Input,{allowClear:!0,value:o,prefix:(0,f.jsx)(m.SearchOutlined,{}),placeholder:`Tìm theo nội dung bài viết… (Enter để tìm)`,className:`med-feed-report-toolbar__search`,onPressEnter:()=>u(o.trim()),onChange:e=>{s(e.target.value),e.target.value||u(``)}}),(0,f.jsx)(zg,{value:i,onChange:a}),(0,f.jsx)(bg,{value:i,onChange:a}),(0,f.jsx)(l.Select,{value:n,onChange:r,options:Vg,style:{minWidth:170},"aria-label":`Xếp theo`})]}),(0,f.jsx)(l.Table,{className:`med-feed-manage-table`,rowKey:`id`,pagination:!1,loading:_.loading,dataSource:_.data??[],locale:{emptyText:_.error?`Không tải được danh sách`:c?`Không có bài nào khớp`:`Chưa có bài trong khoảng này`},scroll:{x:900},columns:[{title:`#`,key:`rank`,width:56,render:(e,t,n)=>(0,f.jsx)(`span`,{className:n<3?`med-feed-top-rank med-feed-top-rank--top`:`med-feed-top-rank`,children:n+1})},{title:`Bài viết`,key:`post`,render:(e,t)=>(0,f.jsx)(xg,{post:t,onOpen:h})},{title:`Tương tác`,key:`engagement`,width:280,render:(e,t)=>(0,f.jsxs)(`span`,{className:`med-feed-table-engagement`,children:[(0,f.jsxs)(`span`,{title:`Reaction`,children:[(0,f.jsx)(m.LikeOutlined,{}),` `,$(t.reactionCount)]}),(0,f.jsxs)(`span`,{title:`Bình luận`,children:[(0,f.jsx)(m.CommentOutlined,{}),` `,$(t.commentCount)]}),(0,f.jsxs)(`span`,{title:`Chia sẻ`,children:[(0,f.jsx)(m.ShareAltOutlined,{}),` `,$(t.shareCount)]})]})},{title:`Tổng tương tác`,key:`total`,width:130,align:`right`,render:(e,t)=>(0,f.jsx)(`strong`,{children:$(t.reactionCount+t.commentCount+t.shareCount)})},{title:``,key:`actions`,fixed:`right`,width:64,align:`right`,render:(e,t)=>(0,f.jsx)(l.Tooltip,{title:`Xem chi tiết`,children:(0,f.jsx)(l.Button,{size:`small`,icon:(0,f.jsx)(m.EyeOutlined,{}),"aria-label":`Xem chi tiết`,className:`med-feed-manage__action`,onClick:()=>h(t)})})}]}),(0,f.jsx)(Sg,{post:p,onClose:()=>h(null),onChanged:()=>_.reload(),onRemoved:()=>_.reload(),readOnly:!0})]})}var Ug=10;function Wg({range:e}){let{api:t}=P(),[n,r]=(0,d.useState)({from:e.from,to:e.to}),[i,a]=(0,d.useState)(),[o,s]=(0,d.useState)(null),c=(0,d.useMemo)(()=>({...e,...vg(n),...i?{userId:i}:{}}),[e,n,i]),u=F((0,d.useCallback)(()=>t.getTopUsers({...c,limit:Ug}),[t,c]),JSON.stringify(c));return(0,f.jsxs)(f.Fragment,{children:[(0,f.jsxs)(`div`,{className:`med-feed-report-toolbar med-feed-pill-fields`,children:[(0,f.jsx)(mg,{value:i,onChange:a,placeholder:`Tất cả nhân viên`}),(0,f.jsx)(zg,{value:n,onChange:r}),(0,f.jsx)(bg,{value:n,onChange:r})]}),(0,f.jsx)(l.Table,{className:`med-feed-manage-table`,rowKey:e=>e.user.id,pagination:!1,loading:u.loading,dataSource:u.data??[],locale:{emptyText:u.error?`Không tải được số liệu`:`Chưa có hoạt động`},scroll:{x:1200},columns:[{title:`#`,key:`rank`,width:56,render:(e,t,n)=>(0,f.jsx)(`span`,{className:!i&&n<3?`med-feed-top-rank med-feed-top-rank--top`:`med-feed-top-rank`,children:n+1})},{title:`Nhân viên`,key:`user`,width:240,render:(e,t)=>(0,f.jsxs)(`span`,{className:`med-feed-report-person`,children:[(0,f.jsx)(Gf,{user:t.user,size:32}),(0,f.jsxs)(`span`,{children:[(0,f.jsx)(`strong`,{children:t.user.fullName}),t.user.departmentName&&(0,f.jsx)(`span`,{children:t.user.departmentName})]})]})},{title:`Bài tương tác nhiều nhất`,key:`topPost`,render:(e,t)=>t.topPost?(0,f.jsx)(xg,{post:t.topPost.post,onOpen:s}):(0,f.jsx)(`span`,{className:`med-feed-report-muted`,children:`—`})},{title:`Reaction`,dataIndex:`reactions`,width:100,align:`right`,render:$},{title:`Bình luận`,dataIndex:`comments`,width:100,align:`right`,render:$},{title:`Chia sẻ`,dataIndex:`shares`,width:90,align:`right`,render:$},{title:`Tổng tương tác`,dataIndex:`total`,width:130,align:`right`,render:e=>(0,f.jsx)(`strong`,{children:$(e)})}]}),(0,f.jsx)(Sg,{post:o,onClose:()=>s(null),onChanged:()=>u.reload(),onRemoved:()=>u.reload(),readOnly:!0})]})}var Gg=[`#7c3aed`,`#2563eb`,`#0d9488`],Kg=[{label:`Ngày`,value:`day`},{label:`Tuần`,value:`week`},{label:`Tháng`,value:`month`}];function qg(e,t){let[n,r,i]=e.slice(0,10).split(`-`);return t===`month`?`${r}/${n}`:t===`week`?`Tuần ${i}/${r}`:`${i}/${r}`}function Jg({range:e}){let{api:t}=P(),[n,r]=(0,d.useState)(`day`),[i,a]=(0,d.useState)({from:e.from,to:e.to}),o=(0,d.useMemo)(()=>({...e,...vg(i)}),[e,i]),[s,c]=(0,d.useState)(!1),u=F((0,d.useCallback)(()=>t.getReportsTimeseries({...o,groupBy:n}),[t,o,n]),`${JSON.stringify(o)}|${n}`),p=u.data??[],m=p.map(e=>qg(e.bucket,n)),h={chart:{type:`line`,toolbar:{show:!1},zoom:{enabled:!1},fontFamily:`inherit`},colors:Gg,stroke:{width:2,curve:`smooth`},markers:{size:0,hover:{size:5},strokeColors:`#ffffff`,strokeWidth:2},dataLabels:{enabled:!1},legend:{position:`top`,horizontalAlign:`right`,fontSize:`13px`},grid:{borderColor:`#eef0f4`,strokeDashArray:4},xaxis:{categories:m,tickAmount:Math.min(m.length,10),labels:{style:{colors:`#65676b`}},axisBorder:{show:!1},crosshairs:{show:!0}},yaxis:{min:0,forceNiceScale:!0,labels:{formatter:e=>$(Math.round(e))}},tooltip:{shared:!0,intersect:!1,y:{formatter:e=>$(e)}}};return(0,f.jsx)(l.Card,{bordered:!1,className:`med-feed-report-panel`,title:`Xu hướng tương tác`,extra:(0,f.jsxs)(l.Space,{wrap:!0,children:[(0,f.jsx)(bg,{value:i,onChange:a}),(0,f.jsx)(l.Radio.Group,{size:`small`,className:`med-feed-segmented`,optionType:`button`,options:Kg,value:n,onChange:e=>r(e.target.value)}),(0,f.jsx)(l.Button,{size:`small`,type:`text`,onClick:()=>c(!s),children:s?`Biểu đồ`:`Bảng số liệu`})]}),children:u.loading?(0,f.jsx)(l.Skeleton,{active:!0,paragraph:{rows:6}}):p.length===0?(0,f.jsx)(l.Empty,{description:u.error?`Không tải được số liệu`:`Chưa có tương tác trong khoảng này`}):s?(0,f.jsx)(l.Table,{className:`med-feed-manage-table`,rowKey:`bucket`,size:`small`,pagination:!1,scroll:{y:320},dataSource:p,columns:[{title:`Thời gian`,key:`bucket`,render:(e,t)=>qg(t.bucket,n)},{title:`Reaction`,dataIndex:`reactions`,align:`right`,render:$},{title:`Bình luận`,dataIndex:`comments`,align:`right`,render:$}]}):(0,f.jsx)(v.default,{type:`line`,height:320,options:h,series:[{name:`Reaction`,data:p.map(e=>e.reactions)},{name:`Bình luận`,data:p.map(e=>e.comments)}]})})}function Yg(){let{api:e}=P(),[t,n]=(0,d.useState)(`30d`),r=(0,d.useMemo)(()=>vg(t),[t]),i=F((0,d.useCallback)(()=>e.getReportsOverview(r),[e,r]),JSON.stringify(r));return(0,f.jsxs)(`div`,{className:`med-feed-wide`,children:[(0,f.jsx)(sg,{title:`Thống kê & báo cáo`,description:`Tương tác trên bảng tin nội bộ theo khoảng thời gian`,extra:(0,f.jsx)(bg,{value:t,onChange:n})}),(0,f.jsxs)(`div`,{className:`med-feed-stack`,children:[(0,f.jsx)(Fg,{overview:i.data,loading:i.loading}),(0,f.jsx)(Jg,{range:r},JSON.stringify(r)),(0,f.jsx)(l.Card,{bordered:!1,className:`med-feed-report-panel med-feed-report-tabs`,children:(0,f.jsx)(l.Tabs,{items:[{key:`posts`,label:`Bài có tương tác cao`,children:(0,f.jsx)(Hg,{range:r},JSON.stringify(r))},{key:`people`,label:`Người tương tác nhiều nhất`,children:(0,f.jsx)(Wg,{range:r},JSON.stringify(r))}]})})]})]})}function Xg(){let{me:e,basePath:t}=P(),n=t.replace(/\/+$/,``),r=[...e.canManage?[{to:n||`/`,label:`Duyệt bài viết`,icon:(0,f.jsx)(m.FileDoneOutlined,{}),end:!0}]:[],...e.canPost?[{to:`${n}/my-posts`,label:`Bài của tôi`,icon:(0,f.jsx)(m.ProfileOutlined,{})}]:[],...e.canManage?[{to:`${n}/reports`,label:`Thống kê & Báo cáo`,icon:(0,f.jsx)(m.BarChartOutlined,{})},{to:`${n}/events`,label:`Sự kiện`,icon:(0,f.jsx)(m.CalendarOutlined,{})},{to:`${n}/settings`,label:`Cấu hình`,icon:(0,f.jsx)(m.SettingOutlined,{})}]:[]];return r.length===0?(0,f.jsx)(`div`,{className:`med-feed-content`,children:(0,f.jsx)(l.Result,{status:`403`,title:`Bạn không có quyền quản lý bảng tin`})}):(0,f.jsxs)(`div`,{className:`med-feed-admin`,children:[(0,f.jsxs)(`aside`,{className:`med-feed-admin__sidebar`,children:[(0,f.jsxs)(`div`,{className:`med-feed-admin__brand`,children:[(0,f.jsx)(`span`,{className:`med-feed-admin__logo`,"aria-hidden":!0,children:`N`}),(0,f.jsxs)(`span`,{className:`med-feed-admin__brand-text`,children:[(0,f.jsx)(`strong`,{children:`Quản trị bảng tin`}),(0,f.jsx)(`span`,{children:`Bảng tin nội bộ`})]})]}),(0,f.jsx)(`div`,{className:`med-feed-admin__section`,children:`Điều hướng`}),(0,f.jsx)(`nav`,{className:`med-feed-admin__nav`,"aria-label":`Quản trị bảng tin`,children:r.map(e=>(0,f.jsxs)(p.NavLink,{to:e.to,end:e.end,className:({isActive:e})=>e?`med-feed-admin__nav-item med-feed-admin__nav-item--active`:`med-feed-admin__nav-item`,children:[(0,f.jsx)(`span`,{className:`med-feed-admin__nav-icon`,children:e.icon}),e.label]},e.to))})]}),(0,f.jsx)(`main`,{className:`med-feed-admin__main`,children:(0,f.jsxs)(p.Routes,{children:[(0,f.jsx)(p.Route,{index:!0,element:e.canManage?(0,f.jsx)(Tg,{}):(0,f.jsx)(p.Navigate,{to:`${n}/my-posts`,replace:!0})}),(0,f.jsx)(p.Route,{path:`my-posts`,element:(0,f.jsx)(Zg,{allowed:e.canPost,page:(0,f.jsx)(lg,{})})}),(0,f.jsx)(p.Route,{path:`reports`,element:(0,f.jsx)(Zg,{allowed:e.canManage,page:(0,f.jsx)(Yg,{})})}),(0,f.jsx)(p.Route,{path:`events`,element:(0,f.jsx)(Zg,{allowed:e.canManage,page:(0,f.jsx)(fg,{})})}),(0,f.jsx)(p.Route,{path:`settings/*`,element:(0,f.jsx)(Zg,{allowed:e.canManage,page:(0,f.jsx)(Mg,{})})}),(0,f.jsx)(p.Route,{path:`posts/:postId`,element:(0,f.jsx)(bh,{})}),(0,f.jsx)(p.Route,{path:`*`,element:(0,f.jsx)(l.Result,{status:`404`,title:`Không tìm thấy trang`})})]})})]})}function Zg({allowed:e,page:t}){return e?(0,f.jsx)(f.Fragment,{children:t}):(0,f.jsx)(l.Result,{status:`403`,title:`Bạn không có quyền truy cập trang này`})}function Qg(e){return(0,f.jsx)(Ee,{runtimeProps:{...e,isPostFeed:!0},isAdmin:!0,children:(0,f.jsx)(Xg,{})})}exports.NewsfeedAdminModule=Qg,exports.NewsfeedModule=Sh;
package/dist/index.js CHANGED
@@ -10129,7 +10129,7 @@ var vv = ue(function({ categories: e = [], initialPost: t, intent: n = "text", o
10129
10129
  onKeyUp: be,
10130
10130
  onMouseUp: be,
10131
10131
  onKeyDown: De,
10132
- placeholder: "Bạn ơi, bạn đang nghĩ gì thế?",
10132
+ placeholder: "Tạo bài viết mới...",
10133
10133
  autoSize: a || o ? {
10134
10134
  minRows: 12,
10135
10135
  maxRows: 30
package/dist/styles.css CHANGED
@@ -1,2 +1,2 @@
1
- .med-feed-emoji-popover .ant-popover-inner{border-radius:12px;overflow:hidden}.med-feed-emoji-popover .epr-emoji-category>.epr-emoji-category-label{background:#fff}.med-feed-emoji-popover button.epr-emoji:hover>*{background:var(--feed-surface-low)}.med-feed-mention-dropdown .med-feed-mention-filter-row.ant-mentions-dropdown-menu-item{display:none}.med-feed-mention-filter-slot{background:var(--feed-surface-low,#f5f7fb);border-bottom:1px solid var(--feed-surface-container,#e6ebf3);border-radius:8px 8px 0 0;padding:10px 12px}.med-feed-mention-filter{gap:8px;display:flex}.med-feed-mention-filter .ant-select{flex:1;min-width:0;font-size:13px}.med-feed-mention-filter .ant-select .ant-select-selector{background:var(--feed-surface,#fff);height:32px;box-shadow:0 0 0 1px var(--feed-surface-container,var(--feed-surface-container));border-radius:999px;padding:0 14px;transition:box-shadow .15s,background .15s}.med-feed-mention-filter .ant-select .ant-select-selection-search-input,.med-feed-mention-filter .ant-select .ant-select-selection-item,.med-feed-mention-filter .ant-select .ant-select-selection-placeholder{line-height:32px}.med-feed-mention-filter .ant-select .ant-select-selection-placeholder{color:var(--feed-text-secondary,#434655)}.med-feed-mention-filter .ant-select:hover .ant-select-selector{box-shadow:0 0 0 1px var(--feed-primary,var(--feed-primary))}.med-feed-mention-filter .ant-select-focused .ant-select-selector{box-shadow:0 0 0 2px rgba(var(--feed-primary-rgb), .25)!important}.med-feed-mention-filter .ant-select-has-value .ant-select-selector{background:var(--feed-surface-low,var(--feed-surface-low));box-shadow:0 0 0 1px var(--feed-primary,var(--feed-primary))}.med-feed-mention-filter .ant-select-has-value .ant-select-selection-item{color:var(--feed-primary,var(--feed-primary));font-weight:600}.med-feed-mention-filter .ant-select-arrow,.med-feed-mention-filter .ant-select-clear{right:12px}.med-feed-mention-filter__dropdown.ant-select-dropdown{border-radius:12px;padding:6px;box-shadow:0 8px 24px #0b1c301f}.med-feed-mention-filter__dropdown .ant-select-item{border-radius:8px}.med-feed-mention-filter__dropdown .ant-select-item-option-selected:not(.ant-select-item-option-disabled){color:var(--feed-primary,var(--feed-primary));background:var(--feed-surface-low,var(--feed-surface-low))}.med-feed-comment-composer{align-items:flex-start;gap:8px;display:flex}.med-feed-comment-composer__card{background:var(--feed-surface);min-width:0;box-shadow:var(--feed-shadow-sm);border-radius:18px;flex-direction:row;flex:1;align-items:center;gap:4px;padding:4px 4px 4px 12px;display:flex}.med-feed-comment-composer__card--typing{border-radius:12px;flex-direction:column;align-items:stretch;padding:8px 8px 4px 12px}.med-feed-comment-composer__card .ant-mentions{flex:1;min-width:0}.med-feed-comment-composer__card .ant-mentions,.med-feed-comment-composer__card .ant-mentions-focused{box-shadow:none;border:0;font-size:14px;line-height:22px}.med-feed-comment-composer__card .ant-mentions>textarea{padding:0}.med-feed-comment-composer__footer{flex-shrink:0;justify-content:flex-end;align-items:center;gap:8px;display:flex}.med-feed-comment-composer__card--typing .med-feed-comment-composer__footer{justify-content:space-between}.med-feed-comment-composer__tools{align-items:center;gap:2px;display:inline-flex}.med-feed-comment-composer__tool.ant-btn{color:var(--feed-text-secondary);font-size:16px;font-weight:600}.med-feed-comment-composer__tool.ant-btn:hover{color:var(--feed-text);background:var(--feed-surface-low)}.med-feed-emoji-popover .ant-popover-inner-content{padding:0}.med-feed-comment-composer__send.ant-btn{color:var(--feed-primary);font-size:16px}.med-feed-comment-composer__send.ant-btn:disabled{color:var(--feed-outline);background:0 0}.med-feed-comment-composer__send.ant-btn:not(:disabled):hover{color:var(--feed-primary);background:var(--feed-surface-low)}.med-feed-mention-option{align-items:center;gap:8px;display:inline-flex}.med-feed-mention-option__department{color:var(--feed-text-secondary)}.med-feed-comment-composer__card .ant-mentions,.med-feed-comment-composer__card .ant-mentions>textarea{background:0 0}.med-feed-comment-composer__card{border:1px solid var(--feed-surface-container);transition:border-color .2s}.med-feed-comment-composer__card:focus-within{border-color:rgba(var(--feed-primary-rgb), .45)}.med-feed-clamped-text-wrap{align-items:baseline;gap:4px;display:flex}.med-feed-clamped-text-wrap--expanded,.med-feed-clamped-text-wrap--stack{display:block}.med-feed-clamped-text{-webkit-line-clamp:1;line-clamp:1;-webkit-box-orient:vertical;flex:0 auto;min-width:0;display:-webkit-box;overflow:hidden}.med-feed-clamped-text__toggle{color:var(--feed-primary);white-space:nowrap;background:var(--feed-surface-low);cursor:pointer;border:0;border-radius:999px;flex-shrink:0;align-items:center;padding:3px 12px;font-size:13px;font-weight:600;transition:background .15s,color .15s;display:inline-flex}.med-feed-clamped-text-wrap--stack .med-feed-clamped-text__toggle{margin-top:6px}.med-feed-clamped-text-wrap--expanded>div,.med-feed-clamped-text-wrap--expanded>div>div,.med-feed-clamped-text-wrap--expanded>div>.med-feed-rich-content__paragraph:last-child,.med-feed-clamped-text-wrap--expanded>div>div>.med-feed-rich-content__paragraph:last-child{display:inline}.med-feed-clamped-text-wrap--expanded .med-feed-clamped-text__toggle{margin-left:8px}.med-feed-clamped-text__toggle:hover{color:var(--feed-primary-active);background:var(--feed-primary-soft-strong);text-decoration:none}.med-feed-mention--clickable.ant-typography{cursor:pointer}.med-feed-mention-card-popover .ant-popover-inner{border-radius:12px}.med-feed-mention-card{align-items:center;gap:12px;min-width:220px;max-width:300px;display:flex}.med-feed-mention-card__info{flex-direction:column;gap:2px;min-width:0;display:flex}.med-feed-mention-card__name.ant-typography{color:var(--feed-text,#0b1c30);font-size:15px}.med-feed-mention-card__line{color:var(--feed-text-secondary,#434655);font-size:13px}.med-feed-rich-content{color:var(--feed-text);white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px;line-height:21px}.med-feed-hashtag,.med-feed-hashtag:hover,.med-feed-mention.ant-typography{color:var(--feed-primary);font-weight:500}.med-feed-rich-content--formatted{white-space:normal}.med-feed-rich-content--formatted>*{margin:0 0 6px}.med-feed-rich-content--formatted>:last-child{margin-bottom:0}.med-feed-rich-content__paragraph{white-space:pre-wrap}.med-feed-rich-content__heading{color:var(--feed-text);font-size:18px;font-weight:700;line-height:24px}.med-feed-rich-content__quote{color:var(--feed-text-secondary);white-space:pre-wrap;border-left:3px solid var(--feed-surface-container);padding:2px 0 2px 12px}.med-feed-rich-content__list{padding-left:22px}.med-feed-rich-content__list li+li{margin-top:2px}.med-feed-rich-content--formatted>:has(+.med-feed-rich-content__toggle){margin-bottom:0}.med-feed-rich-content--formatted>.med-feed-rich-content__paragraph:has(+.med-feed-rich-content__toggle){display:inline}.med-feed-rich-content__toggle.ant-typography{color:var(--feed-primary);background:var(--feed-surface-low);border:0;border-radius:999px;align-items:center;margin:2px 0 0 8px;padding:3px 12px;font-size:13px;font-weight:600;transition:background .15s,color .15s;display:inline-flex}.med-feed-rich-content__toggle.ant-typography:hover{color:var(--feed-primary-active);background:var(--feed-primary-soft-strong);text-decoration:none}.med-feed-images{border-radius:12px;gap:2px;display:grid;overflow:hidden}.med-feed-images--1{grid-template-columns:1fr}.med-feed-images--2,.med-feed-images--3,.med-feed-images--4{grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:1fr}.med-feed-images--2 .med-feed-images__cell,.med-feed-images--3 .med-feed-images__cell,.med-feed-images--4 .med-feed-images__cell{aspect-ratio:1}.med-feed-images--3 .med-feed-images__cell:nth-child(3){aspect-ratio:2;grid-column:span 2}.med-feed-images__cell{background:var(--feed-surface-container);position:relative;overflow:hidden}.med-feed-images__cell .ant-image,.med-feed-images__cell .ant-image-img{object-fit:cover;width:100%;height:100%;transition:transform .3s}.med-feed-images__cell:hover .ant-image-img{transform:scale(1.05)}.med-feed-images--1 .ant-image-img{max-height:420px}.med-feed-images__more{color:#fff;pointer-events:none;background:#0b1c308c;justify-content:center;align-items:center;font-size:28px;font-weight:700;display:flex;position:absolute;inset:0}.med-feed-reaction-button__emoji{background:var(--feed-surface-low);border-radius:50%;justify-content:center;align-items:center;width:22px;height:22px;font-size:14px;line-height:1;display:inline-flex}@keyframes med-feed-like-pop{0%{transform:scale(1)}35%{transform:scale(1.55)rotate(-10deg)}70%{transform:scale(.92)}to{transform:scale(1)}}.med-feed-like-btn--liked .anticon{transform-origin:50%;animation:.4s cubic-bezier(.34,1.56,.64,1) med-feed-like-pop}.med-feed-like-btn:active:not(:disabled){transition:transform 80ms;transform:scale(.94)}.med-feed-reaction-popover .ant-popover-inner{box-shadow:none;border-radius:999px}.med-feed-reaction-popover .ant-popover-arrow{display:none}.med-feed-reaction-popover .ant-popover-inner-content{padding:0}.med-feed-reaction-compact{color:var(--feed-text-secondary);font:inherit;cursor:pointer;background:0 0;border:0;align-items:center;gap:4px;padding:0;font-weight:500;display:inline-flex}.med-feed-reaction-compact .anticon{font-size:16px}.med-feed-reaction-compact__emoji{background:var(--feed-surface-low);border-radius:50%;justify-content:center;align-items:center;width:20px;height:20px;font-size:12px;line-height:1;display:inline-flex}.med-feed-reaction-compact:hover:not(:disabled){color:var(--feed-text)}.med-feed-reaction-compact:disabled{cursor:default}.med-feed-comment{align-items:flex-start;gap:8px;display:flex}.med-feed-comment--reply{margin-top:4px;padding-left:8px}.med-feed-comment__main{flex-direction:column;flex:1;gap:4px;min-width:0;display:flex}.med-feed-comment__pinned{color:var(--feed-primary);align-items:center;gap:4px;font-size:11px;font-weight:600;display:inline-flex}.med-feed-comment__bubble{padding:0}.med-feed-comment__head{align-items:baseline;gap:6px;display:flex}.med-feed-comment__author.ant-typography{color:var(--feed-text-secondary);font-size:13px;font-weight:600;line-height:20px}.med-feed-comment--reply .med-feed-comment__author.ant-typography{font-size:12px}.med-feed-comment__time{color:var(--feed-outline);flex-shrink:0;font-size:12px;line-height:16px}.med-feed-comment__content{margin-top:2px}.med-feed-comment__content .med-feed-rich-content{font-size:15px}.med-feed-comment__actions{color:var(--feed-text-secondary);align-items:center;gap:16px;margin-top:4px;font-size:13px;line-height:18px;display:flex}.med-feed-comment__action{color:inherit;font:inherit;cursor:pointer;background:0 0;border:0;padding:0;font-weight:500}.med-feed-comment__action:hover:not(:disabled){text-decoration:underline}.med-feed-comment__action--danger{color:#ba1a1a}.med-feed-comment__more{align-items:center;font-size:16px;display:inline-flex}.med-feed-comment__more:hover:not(:disabled){color:var(--feed-text);text-decoration:none}.med-feed-comment__reactions{align-items:center;gap:4px;font-size:12px;display:inline-flex}.med-feed-comment__reactions .med-feed-reaction-icons__item{width:18px;height:18px;font-size:15px}.med-feed-comment__images{max-width:320px;margin-top:6px}.med-feed-comment__images .med-feed-images--1 .ant-image-img{max-height:240px}.med-feed-typing{background:var(--feed-surface-container,var(--feed-surface-container));border-radius:18px;align-self:flex-start;align-items:center;gap:4px;padding:10px 14px;display:inline-flex}.med-feed-typing__dot{background:var(--feed-outline,#737686);border-radius:50%;width:7px;height:7px;animation:1.2s ease-in-out infinite med-feed-typing-bounce}.med-feed-typing__dot:nth-child(2){animation-delay:.15s}.med-feed-typing__dot:nth-child(3){animation-delay:.3s}@keyframes med-feed-typing-bounce{0%,60%,to{opacity:.4;transform:translateY(0)}30%{opacity:1;transform:translateY(-4px)}}@media (prefers-reduced-motion:reduce){.med-feed-typing__dot{animation:none}}.med-feed-typing--centered{align-self:center;margin:24px auto}.med-feed-comments{background:var(--feed-surface-low);border-top:1px solid var(--feed-surface-container);flex-direction:column;gap:12px;padding:12px;display:flex}.med-feed-comments__more.ant-btn{align-self:flex-start;padding:0;font-size:12px;font-weight:600}.med-feed-comments__replies-toggle{color:var(--feed-text-secondary);cursor:pointer;background:0 0;border:0;align-self:flex-start;align-items:center;gap:6px;margin-top:4px;padding:0;font-size:13px;font-weight:600;display:inline-flex}.med-feed-comments__replies-toggle .anticon{font-size:11px}.med-feed-comments__replies-toggle:hover{color:var(--feed-text)}.med-feed-comments__list{flex-direction:column;gap:12px;display:flex}.med-feed-comments__load-more.ant-btn{height:30px;color:var(--feed-primary);background:var(--feed-surface);border:1px solid var(--feed-border);border-radius:999px;align-self:flex-start;padding:0 14px;font-size:13px;font-weight:600;transition:background-color .15s,border-color .15s}.med-feed-comments__load-more.ant-btn:hover,.med-feed-comments__load-more.ant-btn:focus-visible{color:var(--feed-primary);background:var(--feed-surface-container);border-color:var(--feed-primary)}.med-feed-comments--empty{display:none}.med-feed-comments-modal.med-feed-create-modal.ant-modal .ant-modal-body{flex-direction:column;max-height:calc(100vh - 140px);padding:0;display:flex;overflow:hidden}.med-feed-comments-modal__scroll{background:var(--feed-bg);flex:1;min-height:0;overflow:hidden auto}.med-feed-comments-modal__scroll::-webkit-scrollbar{width:6px}.med-feed-comments-modal__scroll::-webkit-scrollbar-thumb{background:#ced0d4;border-radius:6px}.med-feed-comments-modal__composer{background:var(--feed-surface);flex-shrink:0;box-shadow:0 -8px 24px #0b1c300f}.med-feed-comments-modal__composer:not(:empty){border-top:1px solid var(--feed-surface-container);padding:14px 20px}.med-feed-comments-modal .med-feed-post.ant-card{box-shadow:none;border:0;border-radius:0}.med-feed-comments-modal .med-feed-post,.med-feed-comments-modal .med-feed-post__body,.med-feed-comments-modal .med-feed-post__text{min-width:0;max-width:100%}.med-feed-comments-modal .med-feed-post__text{overflow-wrap:anywhere}.med-feed-comments-modal .med-feed-post__body img,.med-feed-comments-modal .med-feed-post__body video{max-width:100%}.med-feed-comments-modal .med-feed-comments{background:var(--feed-surface);border-top:1px solid var(--feed-surface-container)}.med-feed-comments-modal__composer .med-feed-comment-composer__card{background:var(--feed-surface-low);box-shadow:none}.med-feed-link-card__link{color:inherit;display:block}.med-feed-link-card.ant-card{background:var(--feed-surface-low);box-shadow:none;overflow:hidden}.med-feed-link-card__cover{aspect-ratio:7/6;background:#000;border-radius:12px;max-height:560px;position:relative;overflow:hidden}.med-feed-link-card__cover img{object-fit:contain;width:100%;height:100%}.med-feed-link-card__frame{border:0;width:100%;height:100%}.med-feed-link-card__unmute{z-index:1;color:#fff;cursor:pointer;background:#0b1c30b8;border:0;border-radius:999px;align-items:center;gap:6px;padding:4px 12px;font-size:13px;font-weight:600;display:inline-flex;position:absolute;top:10px;left:10px}.med-feed-link-card__unmute:hover{background:#0b1c30e6}.med-feed-link-card__thumb{cursor:pointer;background:0 0;border:0;width:100%;height:100%;padding:0;display:block}.med-feed-link-card__play{color:#fff;filter:drop-shadow(0 2px 8px #0006);font-size:56px;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.med-feed-link-card__site{letter-spacing:.02em;font-size:11px}.med-feed-link-card__title.ant-typography{margin:4px 0 0}.med-feed-link-card__facebook{color:#1877f2;font-size:32px}.med-feed-link-card__skeleton.ant-skeleton-element{width:100%}.med-feed-link-card__wrap{position:relative}.med-feed-link-card__copy.ant-btn{color:var(--feed-text-secondary);background:var(--feed-surface);box-shadow:var(--feed-shadow-sm);position:absolute;bottom:12px;right:12px}.med-feed-link-card__wrap .med-feed-link-card.ant-card>.ant-card-body{padding-right:52px}.med-feed-link-card.ant-card{border:1px solid var(--feed-border);border-radius:12px}.med-feed-link-card.ant-card-small>.ant-card-body,.med-feed-link-card.ant-card>.ant-card-body{padding:14px 20px 18px}.med-feed-link-card .ant-card-cover img{border-radius:0}.med-feed-documents.ant-list{background:var(--feed-surface-low);border:0;border-radius:12px}.med-feed-documents .ant-list-item{border-bottom-color:var(--feed-surface-container)}.med-feed-documents .ant-list-item-meta-title{margin-bottom:0;font-size:13px;font-weight:600}.med-feed-documents .ant-list-item-meta-description{color:var(--feed-outline);font-size:11px}.med-feed-documents__icon{background:var(--feed-surface);border-radius:8px;justify-content:center;align-items:center;width:36px;height:36px;font-size:20px;display:inline-flex}.med-feed-documents__open{min-width:0;color:inherit;flex:1;display:block}.med-feed-documents__open:hover .ant-list-item-meta-title{color:var(--feed-primary)}.med-feed-documents .ant-list-footer{border-top:1px solid var(--feed-surface-container);padding:4px 8px}.med-feed-video{aspect-ratio:7/6;background:#000;border-radius:12px;max-height:560px;position:relative;overflow:hidden}.med-feed-video__player{object-fit:contain;cursor:pointer;background:#000;width:100%;height:100%;display:block}.med-feed-video:fullscreen{border-radius:0;max-height:none}.med-feed-video__controls{color:#fff;background:linear-gradient(#0000,#000000b3);align-items:center;gap:8px;padding:24px 10px 8px;display:flex;position:absolute;bottom:0;left:0;right:0}.med-feed-video__btn{color:#fff;cursor:pointer;background:0 0;border:0;border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;width:32px;height:32px;font-size:18px;transition:background .15s;display:flex}.med-feed-video__btn:hover{background:#ffffff2e}.med-feed-video__sound{font-size:22px}.med-feed-video__time{font-variant-numeric:tabular-nums;flex-shrink:0;font-size:12px}.med-feed-video__seek{accent-color:#fff;cursor:pointer;flex:1;min-width:0;height:4px}.med-feed-post__engagement{color:var(--feed-text-secondary);border-top:1px solid var(--feed-surface-container);align-items:center;gap:20px;margin-top:4px;padding:10px 16px;font-size:14px;display:flex}.med-feed-post__engagement>span{align-items:center;gap:6px;display:inline-flex}.med-feed-post__engagement .anticon{color:var(--feed-outline);font-size:15px}.med-feed-reactors-modal.ant-modal .ant-modal-body{max-height:70vh;padding:4px 16px 20px;overflow-y:auto}.med-feed-reactors-modal .ant-tabs-nav{z-index:1;background:var(--feed-surface);margin-bottom:8px;position:sticky;top:0}.med-feed-reactors-modal .ant-tabs-tab{font-weight:600}.med-feed-reactors-modal .ant-tabs-tab-active .ant-tabs-tab-btn{color:var(--feed-primary)}.med-feed-reactors-modal .ant-tabs-ink-bar{background:var(--feed-primary);border-radius:2px}.med-feed-reactors__tab{font-weight:600}.med-feed-reactors__list .ant-list-item{border-bottom:0;border-radius:10px;justify-content:flex-start;gap:12px;padding:10px 8px;transition:background .15s}.med-feed-reactors__list .ant-list-item:hover{background:var(--feed-surface-low)}.med-feed-reactors__avatar{flex-shrink:0;display:inline-flex;position:relative}.med-feed-reactors__badge{background:#fff;border-radius:50%;justify-content:center;align-items:center;width:20px;height:20px;font-size:12px;display:inline-flex;position:absolute;bottom:-4px;right:-4px;box-shadow:0 0 0 2px #fff}.med-feed-reactors__text{flex-direction:column;min-width:0;display:flex}.med-feed-reactors__name{color:var(--feed-text);white-space:nowrap;text-overflow:ellipsis;font-weight:600;overflow:hidden}.med-feed-reactors__meta{color:var(--feed-outline);font-size:12px}.med-feed-chat-share{flex-direction:column;gap:14px;display:flex}.med-feed-chat-share__source{color:var(--feed-text-secondary,#65676b);background:var(--feed-surface-low,#f0f2f5);border-radius:12px;align-items:center;gap:10px;margin:0;padding:10px 12px;font-size:13px;display:flex;overflow:hidden}.med-feed-chat-share__source span{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.med-feed-chat-share__tabs{background:var(--feed-surface-low,#f0f2f5);border-radius:12px;gap:4px;padding:4px;display:flex}.med-feed-chat-share__tab{color:var(--feed-text-secondary,#65676b);font:inherit;cursor:pointer;background:0 0;border:0;border-radius:9px;flex:1;padding:7px 12px;font-size:13px;font-weight:600;transition:background-color .15s,color .15s,box-shadow .15s}.med-feed-chat-share__tab.is-active{color:var(--feed-primary,#1677ff);background:#fff;box-shadow:0 1px 3px #0f172a1f}.med-feed-chat-share__search{color:var(--feed-text-secondary,#65676b);border:1px solid var(--feed-border,#e4e6eb);background:#fff;border-radius:12px;align-items:center;gap:8px;padding:0 14px;transition:border-color .15s,box-shadow .15s;display:flex}.med-feed-chat-share__search:focus-within{border-color:var(--feed-primary,#1677ff);box-shadow:0 0 0 3px #1677ff24}.med-feed-chat-share__search input{min-width:0;height:40px;color:var(--feed-text,#050505);font:inherit;background:0 0;border:0;outline:0;flex:1;font-size:14px}.med-feed-chat-share__chips{flex-wrap:wrap;gap:6px;display:flex}.med-feed-chat-share__chip{max-width:190px;color:var(--feed-text,#050505);border:1px solid var(--feed-border,#e4e6eb);cursor:pointer;background:#fff;border-radius:999px;align-items:center;gap:6px;padding:3px 6px 3px 3px;font-size:13px;font-weight:600;transition:border-color .15s;display:inline-flex}.med-feed-chat-share__chip:hover{border-color:var(--feed-primary,#1677ff)}.med-feed-chat-share__chip span:nth-child(2){text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.med-feed-chat-share__chip-x{color:var(--feed-text-secondary,#65676b);font-size:10px}.med-feed-chat-share__list{flex-direction:column;gap:2px;max-height:340px;margin:0 -6px;padding:0 6px;display:flex;overflow-y:auto}.med-feed-chat-share__row{width:100%;color:var(--feed-text,#050505);font:inherit;text-align:left;cursor:pointer;background:0 0;border:0;border-radius:12px;align-items:center;gap:12px;padding:9px 10px;transition:background-color .12s;display:flex}.med-feed-chat-share__row:hover{background:var(--feed-surface-low,#f0f2f5)}.med-feed-chat-share__row.is-selected{background:#1677ff14}.med-feed-chat-share__row:disabled{cursor:not-allowed;opacity:.45}.med-feed-chat-share__name{flex-direction:column;flex:1;min-width:0;display:flex}.med-feed-chat-share__name strong{text-overflow:ellipsis;white-space:nowrap;font-size:14px;font-weight:600;overflow:hidden}.med-feed-chat-share__name small{color:var(--feed-text-secondary,#65676b);font-size:12px}.med-feed-chat-share__avatar{color:#fff;border-radius:50%;flex:none;justify-content:center;align-items:center;width:44px;height:44px;font-size:16px;font-weight:700;display:inline-flex;overflow:hidden}.med-feed-chat-share__avatar--small{width:24px;height:24px;font-size:11px}.med-feed-chat-share__avatar img{object-fit:cover;width:100%;height:100%}.med-feed-chat-share__checkbox{color:#fff;border:2px solid #c4c8cd;border-radius:50%;flex:none;justify-content:center;align-items:center;width:22px;height:22px;font-size:12px;transition:background-color .12s,border-color .12s;display:inline-flex}.med-feed-chat-share__checkbox.is-checked{background:var(--feed-primary,#1677ff);border-color:var(--feed-primary,#1677ff)}.med-feed-chat-share__empty{color:var(--feed-text-secondary,#65676b);text-align:center;padding:28px 0;font-size:14px}.med-feed-chat-share__footer{border-top:1px solid var(--feed-border,#e4e6eb);justify-content:flex-end;align-items:center;gap:8px;padding-top:12px;display:flex}.med-feed-chat-share__count{color:var(--feed-text-secondary,#65676b);margin-right:auto;font-size:13px}.med-feed-chat-share__footer .ant-btn{border-radius:10px;min-width:84px;height:36px;font-weight:600}.med-feed-chat-share-modal .ant-modal-content{border-radius:20px;padding:0;overflow:hidden;box-shadow:0 24px 64px #0f172a38,0 4px 12px #0f172a14}.med-feed-chat-share-modal .ant-modal-header{border-bottom:0;border-radius:20px 20px 0 0;margin:0;padding:18px 24px 12px}.med-feed-chat-share-modal .ant-modal-title{font-size:17px;font-weight:700}.med-feed-chat-share-modal .ant-modal-body{padding:4px 24px 20px}.med-feed-chat-share-modal .ant-modal-close{top:14px;background:var(--feed-surface-low,#f0f2f5);border-radius:50%;width:32px;height:32px;inset-inline-end:16px}.med-feed-chat-share-modal .ant-modal-close-x{justify-content:center;align-items:center;width:32px;height:32px;line-height:1;display:flex}.med-feed-share-menu.ant-dropdown-menu{background:#fff;border:1px solid #e4e6eb;border-radius:14px;min-width:252px;padding:8px;box-shadow:0 12px 32px #0f172a29,0 2px 6px #0f172a0f}.med-feed-share-menu.ant-dropdown-menu .ant-dropdown-menu-item{min-height:44px;color:var(--feed-text,#050505);border-radius:10px;align-items:center;gap:12px;margin:2px 0;padding:6px 12px;font-size:14px;font-weight:500;line-height:20px;display:flex}.med-feed-share-menu.ant-dropdown-menu .ant-dropdown-menu-item:hover,.med-feed-share-menu.ant-dropdown-menu .ant-dropdown-menu-item-active{color:var(--feed-primary,var(--feed-primary));background:var(--feed-surface-low,var(--feed-surface-low))}.med-feed-share-menu.ant-dropdown-menu .ant-dropdown-menu-item .anticon{background:#f2f4f7;border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;width:32px;height:32px;font-size:15px;display:inline-flex}.med-feed-share-menu.ant-dropdown-menu .ant-dropdown-menu-item-disabled{color:#98a2b3;cursor:not-allowed}.med-feed-share-menu.ant-dropdown-menu .ant-dropdown-menu-item-disabled:hover,.med-feed-share-menu.ant-dropdown-menu .ant-dropdown-menu-item-disabled.ant-dropdown-menu-item-active{color:#98a2b3;background:0 0}.med-feed-share-menu.ant-dropdown-menu .ant-dropdown-menu-item-disabled .anticon{background:#f2f4f7;color:#98a2b3!important}.med-feed-post__footer-row{flex-direction:column;margin-top:4px;display:flex}.med-feed-post__footer-stats{color:var(--feed-text-secondary);border-top:1px solid #f0f2f7;flex-wrap:wrap;align-items:center;gap:8px;padding:10px 16px 6px;font-size:13px;display:flex}.med-feed-post__stats-counts{align-items:center;gap:8px;margin-left:auto;display:inline-flex}.med-feed-post__stat{background:var(--feed-surface-low);border:1px solid #0000;border-radius:999px;align-items:center;gap:6px;padding:4px 10px;font-weight:600;transition:background .15s,border-color .15s;display:inline-flex}.med-feed-post__stat:hover{background:var(--feed-surface-container)}.med-feed-post__stat .anticon{color:var(--feed-outline);font-size:14px}.med-feed-post__reactors{color:var(--feed-text-secondary);background:var(--feed-surface);cursor:pointer;border:1px solid #dbe6ff;border-radius:999px;align-items:center;gap:7px;padding:3px 12px 3px 9px;font-size:13px;transition:background .15s,border-color .15s,box-shadow .15s;display:inline-flex;box-shadow:0 1px 2px #0b1c300d}.med-feed-post__reactors:hover{background:var(--feed-surface-low);border-color:rgba(var(--feed-like-rgb), .3);box-shadow:0 2px 6px rgba(var(--feed-like-rgb), .14)}.med-feed-post__reactor-count{color:var(--feed-like);font-weight:700}.med-feed-post__reactors-icon{color:var(--feed-like);font-size:15px}.med-feed-post__reactor-avatars{align-items:center;display:inline-flex}.med-feed-post__reactor-avatars .ant-avatar{border:2px solid #fff;margin-left:-7px}.med-feed-post__reactor-avatars .ant-avatar:first-child{margin-left:0}.med-feed-post__footer-actions{border-top:1px solid #f0f2f7;align-items:center;gap:4px;padding:6px 16px 8px;display:flex}.med-feed-post__footer-actions>*{flex:1 1 0;min-width:0}.med-feed-post__footer-actions .ant-btn,.med-feed-post__footer-actions>*>.ant-btn{width:100%;min-width:0;height:36px;color:var(--feed-outline);border-radius:10px;flex:1 1 0;justify-content:center;align-items:center;gap:8px;padding:0 12px;font-size:13px;font-weight:600;transition:color .15s,background .15s;display:inline-flex}.med-feed-post__footer-actions .ant-btn .anticon{font-size:17px}.med-feed-post__footer-actions .ant-btn>.anticon+span,.med-feed-post__footer-actions .ant-btn>span+span{margin-left:0}.med-feed-post__footer-actions .ant-btn>span{line-height:1}.med-feed-post__footer-actions .ant-btn:not(:disabled):hover{color:var(--feed-primary);background:var(--feed-surface-low)}.med-feed-post__footer-actions .ant-btn:disabled{color:var(--feed-outline);cursor:default}.med-feed-post__footer-actions .ant-btn:disabled:hover,.med-feed-post__footer-actions .ant-btn:disabled:focus{color:var(--feed-primary);background:var(--feed-surface-low)}.med-feed-publisher-avatar.ant-avatar{border:1px solid var(--feed-border,var(--feed-surface-container));background:#fff;flex-shrink:0;padding:3px}.med-feed-publisher-avatar.ant-avatar img{object-fit:contain}.med-feed-post__featured.ant-tag{color:#fff;letter-spacing:.03em;text-transform:uppercase;white-space:nowrap;background:linear-gradient(135deg,#ff512f 0%,#dd2476 100%);border:0;border-radius:999px;flex-shrink:0;align-items:center;gap:5px;margin:0 0 0 8px;padding:2px 12px 2px 9px;font-size:12px;font-weight:700;line-height:20px;display:inline-flex;box-shadow:0 0 0 3px #ff512f2e,0 2px 8px #dd247666}.med-feed-post__featured.ant-tag .anticon{color:#fff;font-size:12px}.med-feed-status-pill{white-space:nowrap;border-radius:999px;flex-shrink:0;align-items:center;gap:6px;padding:2px 10px;font-size:11px;font-weight:600;line-height:16px;display:inline-flex}.med-feed-status-pill__dot{border-radius:50%;width:6px;height:6px}.med-feed-post__header{align-items:center;gap:10px;padding:14px 16px 6px;display:flex}.med-feed-post__header .ant-avatar{flex-shrink:0}.med-feed-post__author{flex-direction:column;flex:1;gap:2px;min-width:0;display:flex;overflow:hidden}.med-feed-post__author-line{white-space:nowrap;flex-wrap:nowrap;align-items:center;gap:5px;display:flex;overflow:hidden}.med-feed-post__author-name.ant-typography{color:var(--feed-text);letter-spacing:-.01em;font-size:16px;font-weight:700;line-height:24px}.med-feed-post__verified{color:var(--feed-primary);font-size:15px}.med-feed-post__job-title{color:var(--feed-primary);background:var(--feed-surface-container);border-radius:999px;padding:0 8px;font-size:11px;font-weight:600;line-height:18px}.med-feed-post__meta{color:var(--feed-outline);white-space:nowrap;text-overflow:ellipsis;flex-wrap:nowrap;align-items:center;gap:6px;font-size:13px;line-height:20px;display:inline-flex;overflow:hidden}.med-feed-post__meta>[aria-hidden]{color:#c5c9d4;font-size:11px}.med-feed-post__meta a{color:inherit}.med-feed-post__meta a:hover{color:var(--feed-primary);text-decoration:none}.med-feed-post__category{color:var(--feed-primary);background:var(--feed-surface-low);border:0;border-radius:999px;flex-shrink:0;align-items:center;gap:4px;padding:1px 10px;font-weight:500;display:inline-flex}.med-feed-post__category .anticon{font-size:11px}.med-feed-post__header .ant-btn-text{color:var(--feed-outline)}.med-feed-post__header .med-feed-status-pill{flex-shrink:0}.med-feed-post{overflow:hidden}.med-feed-post.ant-card{background:var(--feed-surface);border:0;border-radius:16px;transition:box-shadow .2s,transform .2s;box-shadow:0 1px 2px #0b1c300a,0 4px 16px #0b1c300f}.med-feed-post.ant-card:hover{box-shadow:0 2px 4px #0b1c300d,0 8px 28px #0b1c301a}.med-feed-post.ant-card .ant-card-body{padding:0}.med-feed-post__header-actions{flex-shrink:0;align-items:center;gap:0;display:inline-flex}.med-feed-post__title{color:var(--feed-text);margin:0;font-size:20px;font-weight:700;line-height:28px}.med-feed-post__pending-note{color:var(--feed-outline);align-items:center;gap:6px;margin:0 16px 12px;font-size:12px;font-style:italic;line-height:16px;display:flex}.med-feed-post__pending-note .anticon{flex-shrink:0;line-height:1}.med-feed-post__body{flex-direction:column;gap:2px;padding:0 16px 12px;display:flex}.med-feed-post__text{min-width:0;margin-bottom:8px}.med-feed-post__text .med-feed-rich-content{font-family:Segoe UI,Inter,Roboto,sans-serif;font-size:.9375rem}.med-feed-post__text--large .med-feed-rich-content{font-size:20px;font-weight:500;line-height:28px}.med-feed-post__footer{justify-content:flex-end;padding:8px 20px 16px;display:flex}.med-feed-load-more.ant-btn{height:40px;color:var(--feed-primary);background:var(--feed-surface-low);border:1px dashed #c7d5f5;border-radius:999px;margin-top:4px;font-size:14px;font-weight:600;transition:background .15s,border-color .15s}.med-feed-load-more.ant-btn:hover:not(:disabled){color:var(--feed-primary-active);border-color:var(--feed-primary);background:#dbe6ff}.med-feed-load-more.ant-btn:disabled{color:var(--feed-outline);background:var(--feed-surface-low);border-color:#0000}.med-feed-events{flex-direction:column;flex-shrink:0;gap:8px;display:flex}.med-feed-events__heading{color:var(--feed-text-secondary);margin:0;padding:0 4px;font-size:17px;font-weight:600;line-height:24px}.med-feed-events__card{text-align:left;cursor:pointer;background:0 0;border:0;border-radius:12px;align-items:center;gap:12px;width:100%;padding:8px;transition:background .15s;display:flex}.med-feed-events__card:hover,.med-feed-events__card:focus-visible{background:rgba(var(--feed-primary-rgb), .08)}.med-feed-events__thumb{object-fit:cover;background:var(--feed-surface-container);border-radius:12px;flex-shrink:0;width:112px;height:112px}.med-feed-events__text{flex-direction:column;gap:4px;min-width:0;display:flex}.med-feed-events__title{color:var(--feed-text);-webkit-line-clamp:3;line-clamp:3;-webkit-box-orient:vertical;font-size:15px;font-weight:700;line-height:20px;display:-webkit-box;overflow:hidden}.med-feed-events__time{color:var(--feed-outline);font-size:13px;line-height:18px}.med-feed-events-modal .ant-modal-content{background:var(--feed-surface);border-radius:24px;overflow:hidden;box-shadow:0 24px 64px #0b1c3047}.med-feed-events-modal .ant-modal-body{padding:0}.med-feed-events-modal .ant-modal-close{top:14px;right:14px}.med-feed-events-modal .ant-modal-close-x{color:#fff;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);background:#0006;border-radius:50%;justify-content:center;align-items:center;width:36px;height:36px;line-height:1;transition:background .15s;display:flex}.med-feed-events-modal .ant-modal-close:hover .ant-modal-close-x{background:#0009}.med-feed-event-detail{animation:.28s ease-out med-feed-event-rise}@keyframes med-feed-event-rise{0%{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}.med-feed-event-detail__hero{aspect-ratio:16/10;background:var(--feed-surface-container);position:relative}.med-feed-event-detail__image{object-fit:cover;width:100%;height:100%;display:block}.med-feed-event-detail__shade{background:linear-gradient(#0000,#000000c7);flex-direction:column;align-items:flex-start;gap:8px;padding:56px 24px 20px;display:flex;position:absolute;bottom:0;left:0;right:0}.med-feed-event-detail__title{color:#fff;margin:0;font-size:22px;font-weight:800;line-height:28px}.med-feed-event-detail__phase{color:#fff;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);background:#ffffff38;border-radius:999px;padding:3px 12px;font-size:12px;font-weight:700}.med-feed-event-detail__phase--upcoming{background:var(--feed-primary)}.med-feed-event-detail__phase--ongoing{background:#ea580c}.med-feed-event-detail__body{flex-direction:column;gap:16px;max-height:46vh;padding:20px 24px 24px;display:flex;overflow-y:auto}.med-feed-event-detail__facts{flex-direction:column;gap:8px;display:flex}.med-feed-event-detail__fact{background:var(--feed-surface-low);border-radius:16px;align-items:center;gap:12px;padding:10px 12px;display:flex}.med-feed-event-detail__icon{width:36px;height:36px;color:var(--feed-primary);background:var(--feed-surface);border-radius:12px;flex-shrink:0;justify-content:center;align-items:center;font-size:17px;display:inline-flex}.med-feed-event-detail__fact-text{flex-direction:column;min-width:0;display:flex}.med-feed-event-detail__label{color:var(--feed-outline);font-size:12px;line-height:16px}.med-feed-event-detail__value{color:var(--feed-text);font-size:14px;font-weight:600;line-height:20px}.med-feed-event-detail__text{color:var(--feed-text-secondary);white-space:pre-wrap;margin:0;font-size:14px;line-height:22px}@media (prefers-reduced-motion:reduce){.med-feed-event-detail{animation:none}}.med-feed-category-nav .ant-card-body,.med-feed-channels .ant-card-body{flex-direction:column;gap:2px;padding:4px 6px 8px;display:flex}.med-feed-sidebar-label{color:var(--feed-text-secondary);letter-spacing:.05em;text-transform:uppercase;padding:0 8px 6px;font-size:11px;font-weight:600}.med-feed-nav-item{width:100%;min-height:46px;color:var(--feed-text);text-align:left;cursor:pointer;background:0 0;border:0;border-radius:8px;align-items:center;gap:14px;padding:10px 12px;font-size:15px;transition:background .15s;display:flex}.med-feed-nav-item:hover{background:var(--feed-surface-low)}.med-feed-nav-item.med-feed-nav-item--active,.med-feed-nav-item.med-feed-nav-item--active:hover{color:var(--feed-text);background:var(--feed-surface-container)}.med-feed-nav-item__icon{width:28px;color:var(--feed-text-secondary);flex-shrink:0;justify-content:center;font-size:26px;display:inline-flex}.med-feed-nav-item__label{white-space:nowrap;text-overflow:ellipsis;flex:1;min-width:0;overflow:hidden}.med-feed-nav-item__chevron{width:28px;height:28px;color:var(--feed-text);background:var(--feed-surface-container);border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;font-size:12px;transition:transform .2s;display:inline-flex}.med-feed-nav-item__chevron--up{transform:rotate(180deg)}.med-feed-nav-item__badge{border-radius:999px;flex-shrink:0;padding:0 6px;font-size:11px;font-weight:600;line-height:18px}.med-feed-nav-item__badge--primary{color:#fff;background:var(--feed-primary)}.med-feed-nav-item__badge--danger{color:#93000a;background:#ffdad6}.med-feed-nav-item__badge--muted{color:var(--feed-text-secondary)}.med-feed-category-nav__head{color:var(--feed-text-secondary);letter-spacing:.05em;text-transform:uppercase;padding:4px 8px 8px;font-size:11px;font-weight:700}.med-feed-category-nav__divider{background:var(--feed-surface-container);height:1px;margin:6px 8px}.med-feed-layout{--feed-sticky-top:76px;grid-template-columns:1fr;gap:20px;width:100%;min-height:calc(100vh - 40px);margin-inline:auto;display:grid}.med-feed-layout__left,.med-feed-layout__right{flex-direction:column;gap:16px;min-width:0;display:none}.med-feed-layout__divider{border:0;border-top:1px solid var(--feed-surface-container);flex-shrink:0;width:100%;height:0;margin:0;display:none}.med-feed-events+.med-feed-layout__divider:has(+.med-feed-banner){display:block}.med-feed-banner{flex-shrink:0}.med-feed-banner__image{width:100%;height:auto;box-shadow:var(--feed-shadow);border-radius:12px;display:block}.med-feed-banner__link{cursor:pointer;border-radius:12px;transition:opacity .15s;display:block}.med-feed-banner__link:hover{opacity:.92}.med-feed-layout__left,.med-feed-layout__right{scrollbar-color:transparent transparent;scrollbar-gutter:stable;scrollbar-width:thin}.med-feed-layout__left:hover,.med-feed-layout__right:hover{scrollbar-color:#ced0d4 transparent}.med-feed-layout__left::-webkit-scrollbar{width:6px}.med-feed-layout__right::-webkit-scrollbar{width:6px}.med-feed-layout__left::-webkit-scrollbar-thumb{background:0 0;border-radius:6px}.med-feed-layout__right::-webkit-scrollbar-thumb{background:0 0;border-radius:6px}.med-feed-layout__left:hover::-webkit-scrollbar-thumb{background:#ced0d4}.med-feed-layout__right:hover::-webkit-scrollbar-thumb{background:#ced0d4}.med-feed-layout__main{flex-direction:column;gap:16px;width:80%;min-width:0;margin-inline:auto;display:flex}.med-feed-layout__toolbar{justify-content:space-between;align-items:center;min-height:24px;display:flex}.med-feed-layout__filter.ant-tag{color:var(--feed-primary);background:var(--feed-surface-container);border:0;border-radius:999px;padding:2px 10px;font-size:12px;font-weight:600}@media (width>=1200px){.med-feed-layout{grid-template-columns:260px minmax(0,1fr) 320px}.med-feed-layout__left,.med-feed-layout__right{top:var(--feed-sticky-top);max-height:calc(100vh - var(--feed-sticky-top) - 20px);align-self:start;display:flex;position:sticky;overflow-y:auto}}@media (width>=900px) and (width<=1199px){.med-feed-layout{grid-template-columns:minmax(0,1fr) 280px}.med-feed-layout__right{top:var(--feed-sticky-top);max-height:calc(100vh - var(--feed-sticky-top) - 20px);align-self:start;display:flex;position:sticky;overflow-y:auto}}.med-feed-left-rail{flex-direction:column;gap:16px;display:flex}.med-feed-calendar .ant-card-body{padding:12px}.med-feed-calendar__head{justify-content:space-between;align-items:center;margin-bottom:8px;display:flex}.med-feed-calendar__nav{width:28px;height:28px;color:var(--feed-text-secondary);cursor:pointer;background:0 0;border:0;border-radius:8px;justify-content:center;align-items:center;font-size:16px;font-weight:700;line-height:1;transition:background .15s;display:inline-flex}.med-feed-calendar__nav:hover{color:var(--feed-primary);background:var(--feed-surface-low)}.med-feed-calendar__label{color:var(--feed-text);font-size:13px;font-weight:700}.med-feed-calendar__range{color:var(--feed-primary);text-align:center;background:rgba(var(--feed-primary-rgb), .08);border-radius:8px;margin-bottom:6px;padding:4px 8px;font-size:12px;font-weight:700}.med-feed-calendar__range--empty{color:var(--feed-outline);background:var(--feed-surface-low);font-weight:500}.med-feed-calendar__weekdays{grid-template-columns:repeat(7,1fr);margin-bottom:4px;display:grid}.med-feed-calendar__weekdays span{color:var(--feed-outline);text-align:center;text-transform:uppercase;font-size:10px;font-weight:700}.med-feed-calendar__grid{grid-template-columns:repeat(7,1fr);gap:2px;display:grid}.med-feed-calendar__day{aspect-ratio:1;color:var(--feed-text);cursor:pointer;background:0 0;border:0;border-radius:8px;justify-content:center;align-items:center;font-size:12px;font-weight:500;transition:background .15s,color .15s;display:inline-flex}.med-feed-calendar__day:hover{background:var(--feed-surface-low)}.med-feed-calendar__day--range{color:var(--feed-primary);background:rgba(var(--feed-primary-rgb), .1);border-radius:0;font-weight:600}.med-feed-calendar__day--today{color:var(--feed-primary);font-weight:700}.med-feed-calendar__day--active{color:#fff;background:var(--feed-primary);box-shadow:0 2px 8px rgba(var(--feed-primary-rgb), .35);font-weight:700}.med-feed-calendar__day--active:hover{background:var(--feed-primary)}.med-feed-calendar__day--disabled{color:#0003;cursor:not-allowed}.med-feed-calendar__day--disabled:hover{background:0 0}.med-feed-calendar__clear{width:100%;color:var(--feed-primary);cursor:pointer;background:0 0;border:0;border-radius:8px;margin-top:8px;padding:6px 0;font-size:12px;font-weight:600}.med-feed-calendar__clear:hover:not(:disabled){background:var(--feed-surface-low)}.med-feed-calendar__clear:disabled{color:#00000040;cursor:default}.med-feed-content{flex:1;padding:20px}@media (width<=576px){.med-feed-content{padding:12px 0}}.med-feed-root,.med-feed-portal{--feed-primary:#2ea053;--feed-primary-rgb:46, 160, 83;--feed-like:#1877f2;--feed-like-rgb:24, 119, 242;--feed-primary-hover:#3fb866;--feed-primary-active:#248045;--feed-primary-dark:#1b6b3a;--feed-primary-light:#6fcf8c;--feed-primary-border:#b7e3c6;--feed-primary-soft:#effaf2;--feed-primary-soft-strong:#d3f0dc;--feed-bg:#f6fbf7;--feed-surface:#fff;--feed-surface-low:#eef8f1;--feed-surface-low-rgb:238, 248, 241;--feed-surface-container:#dcf0e3;--feed-border:#dcf0e3;--feed-text:#0b1c30;--feed-text-secondary:#434655;--feed-outline:#737686;--feed-secondary:#006a61;--feed-shadow-sm:0 1px 2px #0b1c300f;--feed-radius:12px;--feed-gap:16px;--feed-shadow:0 1px 3px #0b1c300f, 0 1px 2px #0b1c300a}.med-feed-root{background:var(--feed-bg);min-height:100%;color:var(--feed-text);flex-direction:column;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;font-size:14px;display:flex}.med-feed-root .ant-card{border-radius:var(--feed-radius);box-shadow:var(--feed-shadow)}.med-feed-center{flex:1;justify-content:center;align-items:center;padding:48px 16px;display:flex}.med-feed-column{gap:var(--feed-gap);flex-direction:column;width:100%;max-width:680px;margin:0 auto;display:flex}.med-feed-wide{width:100%;max-width:1200px;margin:0 auto}.med-feed-stack{gap:var(--feed-gap);flex-direction:column;display:flex}.med-feed-root .ant-dropdown-menu{background:#fff;border:1px solid #e4e6eb;border-radius:8px;padding:8px 0;box-shadow:0 12px 28px #0003,0 2px 4px #0000001a}.med-feed-root .ant-dropdown-menu-item{color:#050505;border-radius:0;align-items:center;gap:12px;min-height:36px;padding:6px 16px;font-size:14px;line-height:20px;display:flex}.med-feed-root .ant-dropdown-menu-item:hover,.med-feed-root .ant-dropdown-menu-item-active,.med-feed-root .ant-dropdown-menu-item-selected{color:#050505;background:#f2f2f2}.med-feed-root .ant-dropdown-menu-item .anticon{color:#65676b;font-size:16px}.med-feed-root .ant-dropdown-menu-item-divider{background:#e4e6eb;margin:8px 0}.med-feed-root .ant-btn-primary{background:var(--feed-primary);border-color:var(--feed-primary)}.med-feed-root .ant-btn-primary:hover,.med-feed-root .ant-btn-primary:focus{background:var(--feed-primary-hover);border-color:var(--feed-primary-hover)}.med-feed-root .ant-btn-primary:active{background:var(--feed-primary-active);border-color:var(--feed-primary-active)}.med-feed-root .ant-btn-link{color:var(--feed-primary)}.med-feed-root .ant-switch-checked,.med-feed-root .ant-radio-button-wrapper-checked,.med-feed-root .ant-pagination-item-active{border-color:var(--feed-primary)}.med-feed-root .ant-switch-checked{background:var(--feed-primary)}.med-feed-root .ant-pagination-item-active a{color:var(--feed-primary)}.med-feed-format-bar{background:var(--feed-surface-low);border-radius:10px;flex-wrap:wrap;align-items:center;gap:2px;margin-bottom:8px;padding:4px 6px;display:flex}.med-feed-format-bar .ant-btn{width:32px;height:32px;color:var(--feed-text-secondary);border-radius:8px}.med-feed-format-bar .ant-btn:hover{color:var(--feed-text);background:var(--feed-surface)}.med-feed-format-bar__divider{background:var(--feed-surface-container);width:1px;height:20px;margin:0 6px}.med-feed-format-bar__quote{font-size:18px;line-height:1}.med-feed-format-bar .ant-btn.med-feed-format-bar__btn--active{color:var(--feed-primary,#0866ff);background:var(--feed-surface,#fff);box-shadow:inset 0 0 0 1px var(--feed-primary,#0866ff)}.med-feed-format-bar .ant-btn:disabled{color:#00000040;background:0 0}.med-feed-format-bar__size-icon{font-size:13px;font-weight:700;line-height:1}.med-feed-format-bar__sizes{flex-direction:column;gap:2px;min-width:120px;display:flex}.med-feed-format-bar__size{color:var(--feed-text);cursor:pointer;background:0 0;border:0;border-radius:8px;align-items:baseline;gap:10px;padding:4px 10px;font-weight:700;line-height:1.3;display:flex}.med-feed-format-bar__size:hover{background:var(--feed-surface-low)}.med-feed-format-bar__size--active{color:var(--feed-primary,#0866ff);background:var(--feed-surface-low)}.med-feed-format-bar__size-label{color:var(--feed-text-secondary);font-size:12px;font-weight:400}.med-feed-format-bar__colors{gap:6px;display:flex}.med-feed-format-bar__swatch{cursor:pointer;background:#fff;border:1px solid #e5e7eb;border-radius:50%;justify-content:center;align-items:center;width:28px;height:28px;font-size:14px;font-weight:700;transition:border-color .15s,box-shadow .15s;display:inline-flex}.med-feed-format-bar__swatch:hover{border-color:currentColor}.med-feed-format-bar__swatch--active{box-shadow:inset 0 0 0 2px}.med-feed-picker-icon.ant-btn .anticon{font-size:22px}.med-feed-picker-icon.ant-btn:not(:disabled):hover{background:var(--feed-surface-low)}.med-feed-attached__images{flex-wrap:wrap;gap:8px;display:flex}.med-feed-attached__thumb{background:var(--feed-surface-low);border-radius:8px;justify-content:center;align-items:center;width:96px;height:96px;display:flex;position:relative;overflow:hidden}.med-feed-attached__thumb video,.med-feed-attached__thumb img{object-fit:cover;width:100%;height:100%}.med-feed-attached__play{color:#fff;filter:drop-shadow(0 1px 4px #00000080);font-size:28px;position:absolute}.med-feed-attached__remove{position:absolute;top:4px;right:4px}.med-feed-composer-form{flex-direction:column;gap:14px;font-family:Segoe UI,Helvetica,Arial,sans-serif;display:flex}.med-feed-composer-form__author{align-items:center;gap:10px;display:flex}.med-feed-composer-form__author-info{flex-direction:column;gap:4px;min-width:0;display:flex}.med-feed-composer-form__author-name{color:#050505;font-size:15px;font-weight:600;line-height:20px}.med-feed-composer-form__pills{flex-wrap:wrap;gap:6px;display:flex}.med-feed-composer-form__pills .ant-select{font-size:12px;font-weight:600}.med-feed-composer-form__pills .ant-select:not(.ant-select-customize-input) .ant-select-selector{background:#e4e6eb;border:0;border-radius:6px;height:24px;min-height:24px;padding:0 8px}.med-feed-composer-form__pills .ant-select-selector:hover{background:#d8dade!important}.med-feed-composer-form__pills .ant-select-selection-placeholder,.med-feed-composer-form__pills .ant-select-selection-item{color:#050505;line-height:24px}.med-feed-composer-form__notice{color:#050505;background:#e7f3ff;border-radius:8px;align-items:flex-start;gap:8px;padding:10px 12px;font-size:12px;line-height:16px;display:flex}.med-feed-composer-form__notice .anticon{color:#0064d1;margin-top:2px;font-size:14px}.med-feed-composer-form__body{flex-direction:column;gap:10px;max-height:52vh;padding-right:2px;display:flex;overflow-y:auto}.med-feed-composer-form__body::-webkit-scrollbar{width:6px}.med-feed-composer-form__body::-webkit-scrollbar-thumb{background:#ced0d4;border-radius:6px}.med-feed-composer-form__title.ant-input{color:#050505;padding:6px 0 2px;font-size:16px;font-weight:600;box-shadow:none!important;border:0!important}.med-feed-composer-form__text.ant-mentions,.med-feed-composer-form__text.ant-mentions>textarea{color:#050505;resize:none;background:0 0;padding:6px 0;font-size:15px;line-height:20px;box-shadow:none!important;border:0!important}.med-feed-composer-form__text--large.ant-mentions,.med-feed-composer-form__text--large.ant-mentions>textarea{font-size:24px!important;line-height:28px!important}.med-feed-composer-form__text.ant-mentions>textarea::placeholder,.med-feed-composer-form__title.ant-input::placeholder{color:#8a8d91}.med-feed-composer-form__toolbar{border-top:0;justify-content:space-between;align-items:center;margin-top:0;padding:8px 0 4px;display:flex}.med-feed-composer-form__toolbar-group{align-items:center;gap:4px;display:inline-flex}.med-feed-composer-form__toolbar-btn.ant-btn{color:#65676b;background:var(--feed-surface-container);width:36px;height:36px;box-shadow:none;border:0;border-radius:50%;justify-content:center;align-items:center;padding:0;font-size:15px;font-weight:500;display:inline-flex}.med-feed-composer-form__toolbar-btn.ant-btn:hover,.med-feed-composer-form__toolbar-btn.ant-btn:focus{color:#050505;background:#d7e5ff}.med-feed-composer-form__toolbar-btn.ant-btn:active{background:#c9dcff}.med-feed-composer-form__toolbar-btn .anticon{font-size:20px}.med-feed-composer-form__color-grid{grid-template-columns:repeat(4,36px);gap:10px;padding:6px;display:grid}.med-feed-composer-form__color-btn{cursor:pointer;border:2px solid #e4e6eb;border-radius:50%;width:36px;height:36px;transition:transform .12s,box-shadow .15s,border-color .15s;box-shadow:0 1px 2px #00000014,inset 0 0 0 1px #0000000a}.med-feed-composer-form__color-btn:hover{transform:scale(1.08);box-shadow:0 2px 6px #0000001f}.med-feed-composer-form__color-btn[style*="var(--feed-primary)"]{box-shadow:0 0 0 2px #fff,0 0 0 4px #0866ff}.med-feed-composer-form__location-tag{background:#e7f3ff;border:0;border-radius:12px;align-self:flex-start;margin:2px 0 0;padding:2px 8px;font-size:13px}.med-feed-composer-form__add{background:#fff;border:1px solid #ced0d4;border-radius:8px;justify-content:space-between;align-items:center;gap:8px;padding:8px 12px 8px 16px;display:flex;box-shadow:0 1px 2px #0000000d}.med-feed-composer-form__add-label{color:#050505;font-size:15px;font-weight:600;line-height:20px}.med-feed-composer-form__add-actions{align-items:center;gap:2px;display:inline-flex}.med-feed-composer-form__actions{gap:8px;display:flex}.med-feed-composer-form__submit.ant-btn{height:40px;box-shadow:none;background:#0866ff;border:0;border-radius:6px;font-size:16px;font-weight:600}.med-feed-composer-form__submit.ant-btn:not(:disabled):hover{background:#075eec}.med-feed-composer-form__submit.ant-btn:disabled{color:#bcc0c4;background:#e4e6eb}.med-feed-composer-form__submit.ant-btn:not(:disabled):active{background:#0752d1;transform:scale(.99)}.med-feed-composer-form__toolbar-btn--active.ant-btn{color:var(--feed-primary);background:var(--feed-surface-low)}.med-feed-composer-split{grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:start;gap:20px;display:grid}.med-feed-composer-split__preview{background:var(--feed-bg,var(--feed-bg));border-radius:12px;max-height:calc(100vh - 200px);padding:12px;position:sticky;top:0;overflow-y:auto}.med-feed-composer-split__preview .med-feed-post.ant-card{box-shadow:var(--feed-shadow)}.med-feed-composer-split__empty{color:var(--feed-outline);text-align:center;padding:48px 16px}@media (width<=900px){.med-feed-composer-split{grid-template-columns:minmax(0,1fr)}}.med-feed-create-modal.ant-modal .ant-modal-content{background:var(--feed-surface);border:1px solid #0b1c300f;border-radius:20px;padding:0;overflow:hidden;box-shadow:0 24px 64px #0b1c3029,0 4px 16px #0b1c300f}.med-feed-create-modal.ant-modal .ant-modal-header{text-align:center;border-bottom:1px solid var(--feed-surface-container);background:linear-gradient(#fff 0%,#fbfcff 100%);margin:0;padding:18px 100px 18px 24px;position:relative}.med-feed-create-modal.ant-modal .ant-modal-title{color:var(--feed-text);letter-spacing:-.01em;font-size:18px;font-weight:700}.med-feed-create-modal.ant-modal .ant-modal-close{margin:0;top:14px;right:16px}.med-feed-create-modal.ant-modal .ant-modal-close-x{width:36px;height:36px;color:var(--feed-text-secondary);background:var(--feed-surface-container);border-radius:50%;justify-content:center;align-items:center;font-size:15px;line-height:1;transition:background .2s,color .2s,transform .15s;display:flex}.med-feed-create-modal.ant-modal .ant-modal-close-x:hover{color:var(--feed-text);background:#d7e5ff;transform:rotate(90deg)}.med-feed-create-modal.ant-modal .ant-modal-body{padding:20px 24px 24px}.med-feed-create-modal__title{line-height:1.3;display:block;position:static}.med-feed-create-modal__tools{align-items:center;gap:8px;display:inline-flex;position:absolute;top:14px;right:60px}.med-feed-create-modal__tools .ant-btn{width:36px;height:36px;color:var(--feed-text-secondary);background:var(--feed-surface-container);border:0;border-radius:50%;justify-content:center;align-items:center;transition:background .2s,color .2s;display:inline-flex}.med-feed-create-modal__tools .ant-btn:hover{color:var(--feed-primary);background:#d7e5ff}.med-feed-create-modal__tools .med-feed-create-modal__tool--active.ant-btn{color:#fff;background:var(--feed-primary);box-shadow:0 4px 12px rgba(var(--feed-primary-rgb), .35)}.med-feed-create-modal--fullscreen.ant-modal .ant-modal-content{height:100vh;box-shadow:none;border:0;border-radius:0;flex-direction:column;display:flex}.med-feed-create-modal--fullscreen.ant-modal .ant-modal-body{flex:1;min-height:0;padding:20px 32px;overflow-y:auto}.med-feed-create-modal--fullscreen .med-feed-composer-split{grid-template-columns:minmax(0,3fr) minmax(0,2fr);gap:32px;max-width:1600px;margin:0 auto}.med-feed-create-modal--fullscreen .med-feed-composer-split__preview{max-height:calc(100vh - 120px)}.med-feed-confirm-modal.ant-modal .ant-modal-content{background:var(--feed-surface);border:1px solid #0b1c300f;border-radius:16px;overflow:hidden;box-shadow:0 20px 48px #0b1c3024,0 4px 12px #0b1c300d}.med-feed-confirm-modal.ant-modal .ant-modal-header{background:0 0;border-bottom:none;padding:22px 56px 0 24px}.med-feed-confirm-modal.ant-modal .ant-modal-title{color:var(--feed-text);letter-spacing:-.01em;font-size:17px;font-weight:700;line-height:1.4}.med-feed-confirm-modal.ant-modal .ant-modal-close{color:var(--feed-text-secondary);top:16px;right:16px}.med-feed-confirm-modal.ant-modal .ant-modal-close-x{background:var(--feed-surface-container);border-radius:50%;justify-content:center;align-items:center;width:32px;height:32px;font-size:14px;line-height:1;transition:background .2s,color .2s;display:flex}.med-feed-confirm-modal.ant-modal .ant-modal-close:hover,.med-feed-confirm-modal.ant-modal .ant-modal-close:focus{color:var(--feed-text)}.med-feed-confirm-modal.ant-modal .ant-modal-close:hover .ant-modal-close-x{background:#d7e5ff}.med-feed-confirm-modal.ant-modal .ant-modal-body{padding:10px 24px 8px}.med-feed-confirm-modal.ant-modal .ant-modal-body p{color:var(--feed-text-secondary);margin:0;font-size:14px;line-height:1.6}.med-feed-confirm-modal.ant-modal .ant-modal-footer{border-top:none;padding:16px 24px 22px}.med-feed-confirm-modal.ant-modal .ant-modal-footer .ant-btn{height:40px;box-shadow:none;border-radius:10px;padding:0 20px;font-size:14px;font-weight:600;transition:background .2s,color .2s,border-color .2s}.med-feed-confirm-modal.ant-modal .ant-modal-footer .ant-btn+.ant-btn{margin-left:12px}.med-feed-confirm-modal.ant-modal .ant-modal-footer .ant-btn-text{color:var(--feed-text-secondary)}.med-feed-confirm-modal.ant-modal .ant-modal-footer .ant-btn-text:hover,.med-feed-confirm-modal.ant-modal .ant-modal-footer .ant-btn-text:focus{color:var(--feed-text);background:var(--feed-surface-low);border-color:#0000}.med-feed-confirm-modal.ant-modal .ant-modal-footer .ant-btn-text:active{color:var(--feed-text);background:var(--feed-surface-container);border-color:#0000}.med-feed-confirm-modal.ant-modal .ant-modal-footer .ant-btn-text:disabled{color:#00000040;background:0 0;border-color:#0000}.med-feed-confirm-modal.ant-modal .ant-modal-footer .ant-btn-primary{background:var(--feed-primary);border-color:var(--feed-primary)}.med-feed-confirm-modal.ant-modal .ant-modal-footer .ant-btn-primary:hover,.med-feed-confirm-modal.ant-modal .ant-modal-footer .ant-btn-primary:focus{background:var(--feed-primary-hover);border-color:var(--feed-primary-hover)}.med-feed-confirm-modal.ant-modal .ant-modal-footer .ant-btn-primary:active{background:var(--feed-primary-active);border-color:var(--feed-primary-active)}.med-feed-create-button.ant-btn{background:linear-gradient(135deg, var(--feed-primary-hover) 0%, var(--feed-primary) 55%, var(--feed-primary-active) 100%);height:40px;box-shadow:0 6px 16px rgba(var(--feed-primary-rgb), .28);border:0;border-radius:999px;align-items:center;gap:10px;padding:0 20px 0 6px;font-weight:600;line-height:1;transition:transform .15s,box-shadow .15s;display:inline-flex}.med-feed-create-button.ant-btn:hover,.med-feed-create-button.ant-btn:focus{background:linear-gradient(135deg, var(--feed-primary-hover) 0%, var(--feed-primary) 55%, var(--feed-primary-active) 100%);box-shadow:0 10px 22px rgba(var(--feed-primary-rgb), .34);transform:translateY(-1px)}.med-feed-create-button.ant-btn:active{box-shadow:0 4px 10px rgba(var(--feed-primary-rgb), .28);transform:translateY(0)}.med-feed-create-button__icon{background:#ffffff38;border-radius:50%;flex-shrink:0;width:28px;height:28px;position:relative}.med-feed-create-button__icon:before,.med-feed-create-button__icon:after{content:"";background:#fff;border-radius:1px;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.med-feed-create-button__icon:before{width:12px;height:2px}.med-feed-create-button__icon:after{width:2px;height:12px}.med-feed-page-header{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;margin-bottom:4px;display:flex}.med-feed-page-header__title.ant-typography{margin:0}.med-feed-wide .med-feed-page-header{margin-bottom:var(--feed-gap)}@media (width<=576px){.med-feed-page-header{padding:0 12px}}.med-feed-image-field{border-radius:16px;width:100%}.med-feed-image-field__drop{background:var(--feed-surface-low);border:2px dashed var(--feed-primary-border);cursor:pointer;border-radius:16px;width:100%;padding:0;transition:border-color .15s,background .15s;display:block;position:relative;overflow:hidden}.med-feed-image-field__drop:hover,.med-feed-image-field--drag .med-feed-image-field__drop{background:var(--feed-primary-soft);border-color:var(--feed-primary)}.med-feed-image-field__preview{object-fit:cover;width:100%;height:100%;display:block}.med-feed-image-field__placeholder{height:100%;color:var(--feed-primary);flex-direction:column;justify-content:center;align-items:center;gap:4px;font-size:13px;display:flex}.med-feed-image-field__placeholder .anticon{font-size:32px}.med-feed-image-field__placeholder strong{color:var(--feed-text);font-size:15px}.med-feed-image-field__placeholder span:last-child{color:var(--feed-outline)}.med-feed-image-field__change{color:#fff;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);background:#0000008c;border-radius:999px;align-items:center;gap:6px;padding:6px 14px;font-size:13px;font-weight:600;display:inline-flex;position:absolute;bottom:12px;right:12px}.med-feed-image-field__busy{color:var(--feed-primary);background:#ffffffbf;justify-content:center;align-items:center;gap:8px;font-weight:600;display:flex;position:absolute;inset:0}.med-feed-events-admin__thumb{object-fit:cover;border-radius:6px;width:64px;height:48px;display:block}.med-feed-events-form-modal .ant-modal-content{background:var(--feed-surface);border-radius:24px;overflow:hidden;box-shadow:0 24px 64px #0b1c3047}.med-feed-events-form-modal .ant-modal-header{background:0 0;border-bottom:0;padding:24px 28px 8px}.med-feed-events-form-modal .ant-modal-body{max-height:68vh;padding:12px 28px 8px;overflow-y:auto}.med-feed-events-form-modal .ant-modal-footer{border-top:0;justify-content:flex-end;gap:8px;padding:16px 28px 24px;display:flex}.med-feed-events-form-modal .ant-modal-close-x{width:48px;height:56px;color:var(--feed-outline);justify-content:center;align-items:center;display:flex}.med-feed-events-form-modal .ant-form-item{margin-bottom:16px}.med-feed-events-form-modal .ant-form-item-label>label{color:var(--feed-text);font-size:13px;font-weight:600}.med-feed-events-form-modal .ant-input,.med-feed-events-form-modal .ant-input-affix-wrapper,.med-feed-events-form-modal .ant-picker{background:var(--feed-surface-low);border-color:#0000;border-radius:12px}.med-feed-events-form-modal .ant-input:hover,.med-feed-events-form-modal .ant-picker:hover{border-color:var(--feed-primary-border)}.med-feed-events-form-modal .ant-input:focus,.med-feed-events-form-modal .ant-input-focused,.med-feed-events-form-modal .ant-picker-focused{background:var(--feed-surface);border-color:var(--feed-primary);box-shadow:0 0 0 3px rgba(var(--feed-primary-rgb), .16)}.med-feed-events-form-modal .ant-btn{border-radius:999px;height:40px;padding:0 20px;font-weight:600}.med-feed-events-form__head{flex-direction:column;gap:2px;display:flex}.med-feed-events-form__head strong{color:var(--feed-text);font-size:20px;font-weight:800;line-height:28px}.med-feed-events-form__head span{color:var(--feed-outline);font-size:13px;font-weight:400}.med-feed-events-form__row{grid-template-columns:1fr 1fr;gap:12px;display:grid}@media (width<=520px){.med-feed-events-form__row{grid-template-columns:1fr}}.med-feed-date-range{flex-wrap:wrap;align-items:center;gap:8px;display:inline-flex}.med-feed-pill-fields .ant-input-affix-wrapper,.med-feed-pill-fields .ant-picker,.med-feed-pill-fields .ant-select:not(.ant-select-customize-input) .ant-select-selector{background:var(--feed-surface-low);height:38px;box-shadow:none;border-color:#0000;border-radius:999px;padding:0 14px;transition:background .15s,border-color .15s,box-shadow .15s}.med-feed-pill-fields .ant-select-single .ant-select-selector .ant-select-selection-item,.med-feed-pill-fields .ant-select-single .ant-select-selector .ant-select-selection-placeholder{line-height:36px}.med-feed-pill-fields .ant-select-single .ant-select-selector .ant-select-selection-search{left:14px;right:14px}.med-feed-pill-fields .ant-select-single .ant-select-selector .ant-select-selection-search-input{height:36px}.med-feed-pill-fields .ant-input-affix-wrapper>input.ant-input{background:0 0}.med-feed-pill-fields .ant-input-prefix,.med-feed-pill-fields .ant-select-arrow{color:var(--feed-outline)}.med-feed-pill-fields .ant-select-arrow{right:14px}.med-feed-pill-fields .ant-input-affix-wrapper:hover,.med-feed-pill-fields .ant-picker:hover,.med-feed-pill-fields .ant-select:not(.ant-select-disabled):hover .ant-select-selector{border-color:var(--feed-surface-container)}.med-feed-pill-fields .ant-input-affix-wrapper-focused,.med-feed-pill-fields .ant-picker-focused,.med-feed-pill-fields .ant-select-focused:not(.ant-select-disabled) .ant-select-selector,.med-feed-pill-fields .ant-select-open .ant-select-selector{background:var(--feed-surface);border-color:rgba(var(--feed-primary-rgb), .5)!important;box-shadow:0 0 0 3px rgba(var(--feed-primary-rgb), .12)!important}.med-feed-table-post{width:100%;color:inherit;text-align:left;cursor:pointer;background:0 0;border:0;align-items:center;gap:12px;padding:0;display:flex}.med-feed-table-post img,.med-feed-table-post__placeholder{border-radius:10px;flex-shrink:0;width:52px;height:52px}.med-feed-table-post img{object-fit:cover}.med-feed-table-post__placeholder{color:var(--feed-primary);background:var(--feed-surface-container);justify-content:center;align-items:center;font-weight:700;display:inline-flex}.med-feed-table-post__body{flex-direction:column;gap:2px;min-width:0;display:flex}.med-feed-table-post__text.ant-typography{color:var(--feed-text);margin:0;font-weight:600}.med-feed-table-post:hover .med-feed-table-post__text.ant-typography{color:var(--feed-primary)}.med-feed-table-post__meta{color:var(--feed-outline);font-size:12px}.med-feed-review-drawer .med-feed-post{box-shadow:none}.med-feed-manage{flex-direction:column;gap:20px;display:flex}.med-feed-manage .med-feed-page-header{margin-bottom:0}.med-feed-manage__tabs{border-bottom:1px solid var(--feed-border);scrollbar-width:none;gap:4px;padding:0 12px;display:flex;overflow:auto hidden}.med-feed-manage__tabs::-webkit-scrollbar{display:none}.med-feed-manage__tab{--tone:var(--feed-primary);height:48px;color:var(--feed-text-secondary);white-space:nowrap;cursor:pointer;background:0 0;border:0;flex-shrink:0;align-items:center;gap:8px;padding:0 12px;font-size:14px;font-weight:500;transition:color .15s;display:inline-flex;position:relative}.med-feed-manage__tab:after{content:"";background:0 0;border-radius:2px 2px 0 0;height:2px;position:absolute;bottom:0;left:12px;right:12px}.med-feed-manage__tab:hover{color:var(--feed-text)}.med-feed-manage__tab--pending{--tone:#4f46e5}.med-feed-manage__tab--approved{--tone:#0f766e}.med-feed-manage__tab--published{--tone:#15803d}.med-feed-manage__tab--unpublished{--tone:#b45309}.med-feed-manage__tab--deleted{--tone:#6b7280}.med-feed-manage__tab--active{color:var(--feed-text);font-weight:600}.med-feed-manage__tab--active:after{background:var(--tone)}.med-feed-manage__tab-count{min-width:22px;color:var(--feed-text-secondary);text-align:center;background:var(--feed-surface-low);border-radius:999px;padding:0 7px;font-size:12px;font-weight:600;line-height:20px}.med-feed-manage__tab--active .med-feed-manage__tab-count{color:#fff;background:var(--tone)}.med-feed-manage__panel{background:var(--feed-surface);border:1px solid var(--feed-border);border-radius:var(--feed-radius);box-shadow:var(--feed-shadow);overflow:hidden}.med-feed-manage__toolbar{border-bottom:1px solid var(--feed-border);flex-wrap:wrap;align-items:center;gap:12px;padding:16px;display:flex}.med-feed-manage__search{flex:1;min-width:240px;max-width:420px}.med-feed-manage__clear.ant-btn{color:var(--feed-text-secondary);padding:0 4px}.med-feed-manage__clear.ant-btn:hover{color:#b91c1c}.med-feed-manage__bulk{color:#3730a3;background:#eef2ff;border-bottom:1px solid #c7d2fe;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;padding:10px 16px;display:flex}.med-feed-manage-table .ant-table-thead>tr>th{color:var(--feed-text-secondary);letter-spacing:.05em;text-transform:uppercase;background:var(--feed-surface-low);font-size:11px;font-weight:600}.med-feed-manage-table .ant-table-tbody>tr>td{padding-top:14px;padding-bottom:14px}.med-feed-manage-table .ant-table-tbody>tr:hover>td{background:#eff4ff99}.med-feed-manage-table .ant-table-pagination.ant-pagination{margin:0;padding:14px 16px}.med-feed-table-date{color:var(--feed-outline);font-size:12px}.med-feed-table-author{align-items:center;gap:10px;display:flex}.med-feed-table-author>span:last-child{flex-direction:column;min-width:0;line-height:18px;display:flex}.med-feed-table-author strong{color:var(--feed-text);font-weight:600}.med-feed-table-author>span:last-child>span{color:var(--feed-outline);font-size:12px}.med-feed-table-engagement{color:var(--feed-text-secondary);white-space:nowrap;gap:12px;font-size:13px;display:inline-flex}.med-feed-table-engagement .anticon{color:var(--feed-outline)}.med-feed-manage__action.ant-btn{border-radius:8px;width:32px;height:32px}.med-feed-manage__action--primary.ant-btn{color:#fff;background:var(--feed-primary);border-color:var(--feed-primary)}.med-feed-manage__action--primary.ant-btn:hover{color:#fff;background:var(--feed-primary-active);border-color:var(--feed-primary-active)}.med-feed-manage__action--danger.ant-btn{color:#b91c1c;border-color:#fecaca}.med-feed-manage__action--danger.ant-btn:hover{color:#991b1b;background:#fef2f2;border-color:#fca5a5}@media (width<=640px){.med-feed-manage__search{max-width:none}}.med-feed-table-status{flex-direction:column;align-items:flex-start;gap:4px;display:inline-flex}.med-feed-table-status .ant-tag{margin:0}.med-feed-banner-settings__panel{background:var(--feed-surface);max-width:560px;box-shadow:var(--feed-shadow);border-radius:16px;padding:24px}.med-feed-banner-settings__panel .ant-input{background:var(--feed-surface-low);border-color:#0000;border-radius:12px}.med-feed-banner-settings__panel .ant-input:focus{background:var(--feed-surface);border-color:var(--feed-primary);box-shadow:0 0 0 3px rgba(var(--feed-primary-rgb), .16)}.med-feed-banner-settings__panel .ant-form-item-label>label{color:var(--feed-text);font-weight:600}.med-feed-banner-settings__actions{align-items:center;gap:8px;display:flex}.med-feed-banner-settings__actions .ant-btn{border-radius:999px;height:40px;padding:0 20px;font-weight:600}.med-feed-categories{flex-direction:column;gap:20px;display:flex}.med-feed-categories .med-feed-page-header{margin-bottom:0}.med-feed-categories__panel{background:var(--feed-surface);border:1px solid var(--feed-border);border-radius:var(--feed-radius);box-shadow:var(--feed-shadow);overflow:hidden}.med-feed-categories__head{border-bottom:1px solid var(--feed-border);justify-content:space-between;align-items:baseline;gap:12px;padding:16px 20px;display:flex}.med-feed-categories__title{color:var(--feed-text);margin:0;font-size:15px;font-weight:600}.med-feed-categories__hint{color:var(--feed-outline);font-size:13px}.med-feed-categories-table .ant-table-thead>tr>th{color:var(--feed-text-secondary);letter-spacing:.05em;text-transform:uppercase;background:var(--feed-surface-low);font-size:11px;font-weight:600}.med-feed-categories-table .ant-table-tbody>tr>td{padding-top:14px;padding-bottom:14px}.med-feed-categories-table .ant-table-tbody>tr:hover>td{background:#eff4ff99}.med-feed-categories-table .ant-table-tbody>tr.med-feed-categories__row--hidden>td{color:var(--feed-outline)}.med-feed-category-chip{--tone:var(--feed-primary);min-width:0;color:var(--feed-text);align-items:center;gap:10px;font-weight:600;display:inline-flex}.med-feed-category-chip__dot{background:var(--tone);width:12px;height:12px;box-shadow:0 0 0 3px color-mix(in srgb, var(--tone) 18%, transparent);border-radius:4px;flex-shrink:0}.med-feed-category-chip__name{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.med-feed-categories__count{min-width:28px;color:var(--feed-text-secondary);text-align:center;background:var(--feed-surface-low);border-radius:999px;padding:1px 10px;font-size:12px;font-weight:600;display:inline-block}.med-feed-categories__action.ant-btn{border-radius:8px;width:32px;height:32px}.med-feed-categories__action--danger.ant-btn{color:#b91c1c;border-color:#fecaca}.med-feed-categories__action--danger.ant-btn:hover{color:#991b1b;background:#fef2f2;border-color:#fca5a5}.med-feed-category-color{align-items:center;gap:10px;display:flex}.med-feed-category-color input[type=color]{background:var(--feed-surface);cursor:pointer;border:1px solid #d9d9d9;border-radius:8px;flex-shrink:0;width:40px;height:32px;padding:2px}.med-feed-category-preview{color:var(--feed-outline);background:var(--feed-surface-low);border-radius:10px;align-items:center;gap:12px;margin-bottom:20px;padding:12px 14px;font-size:12px;display:flex}.med-feed-settings{flex-direction:column;gap:20px;display:flex}.med-feed-settings__tabs{border-bottom:1px solid var(--feed-border);gap:4px;display:flex}.med-feed-settings__tab{height:44px;color:var(--feed-text-secondary);align-items:center;padding:0 14px;font-size:14px;font-weight:500;text-decoration:none;display:inline-flex;position:relative}.med-feed-settings__tab:hover{color:var(--feed-text)}.med-feed-settings__tab--active{color:var(--feed-primary)}.med-feed-settings__tab--active:after{background:var(--feed-primary);content:"";border-radius:2px 2px 0 0;height:2px;position:absolute;bottom:-1px;left:14px;right:14px}@media (width<=640px){.med-feed-categories__head{flex-direction:column;gap:4px}}.med-feed-kpis{grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;display:grid}.med-feed-kpi{--tone:var(--feed-primary);--tone-soft:var(--feed-surface-low);background:var(--feed-surface);border:1px solid var(--feed-border);border-radius:var(--feed-radius);min-width:0;box-shadow:var(--feed-shadow);align-items:flex-start;gap:14px;padding:16px 18px;display:flex}.med-feed-kpi--posts,.med-feed-kpi--reactions{--tone:var(--feed-primary);--tone-soft:var(--feed-primary-soft)}.med-feed-kpi--comments{--tone:#0f766e;--tone-soft:#ecfdf5}.med-feed-kpi--shares{--tone:#7c3aed;--tone-soft:#f5f3ff}.med-feed-kpi__icon{width:40px;height:40px;color:var(--tone);background:var(--tone-soft);border-radius:10px;flex-shrink:0;justify-content:center;align-items:center;font-size:18px;display:inline-flex}.med-feed-kpi__body{flex-direction:column;flex:1;gap:2px;min-width:0;display:flex}.med-feed-kpi__title{color:var(--feed-text-secondary);letter-spacing:.04em;text-transform:uppercase;font-size:12px;font-weight:600}.med-feed-kpi__row{flex-wrap:wrap;align-items:baseline;gap:4px 10px;display:flex}.med-feed-kpi__value{color:var(--feed-text);font-size:26px;font-weight:700;line-height:34px}.med-feed-kpi__change{border-radius:999px;align-items:center;gap:3px;padding:0 7px;font-size:12px;font-weight:600;line-height:20px;display:inline-flex}.med-feed-kpi__change .anticon{font-size:10px}.med-feed-kpi__change--up{color:#047857;background:#ecfdf5}.med-feed-kpi__change--down{color:#b91c1c;background:#fef2f2}.med-feed-kpi__change--none{color:var(--feed-outline);padding:0;font-weight:400}.med-feed-kpi__detail{color:var(--feed-outline);white-space:nowrap;text-overflow:ellipsis;font-size:12px;line-height:18px;overflow:hidden}.med-feed-kpi__skeleton.ant-skeleton-element{width:100%;margin-top:6px}@media (width<=1200px){.med-feed-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (width<=576px){.med-feed-kpis{grid-template-columns:minmax(0,1fr)}}.med-feed-report-panel{height:100%}.med-feed-reports-grid{gap:var(--feed-gap);grid-template-columns:minmax(0,2fr) minmax(0,3fr);display:grid}@media (width<=1100px){.med-feed-reports-grid{grid-template-columns:minmax(0,1fr)}}.med-feed-dept-list{flex-direction:column;gap:14px;margin:0;padding:0;list-style:none;display:flex}.med-feed-dept-list__head{justify-content:space-between;align-items:baseline;gap:12px;display:flex}.med-feed-dept-list__name{color:var(--feed-text);white-space:nowrap;text-overflow:ellipsis;font-weight:600;overflow:hidden}.med-feed-dept-list__value{color:var(--feed-text-secondary);flex-shrink:0;font-size:12px}.med-feed-dept-list__value strong{color:var(--feed-text)}.med-feed-dept-list .ant-progress{margin:2px 0 0}.med-feed-report-person{align-items:center;gap:8px;min-width:0;display:flex}.med-feed-report-person>span:last-child{flex-direction:column;min-width:0;line-height:16px;display:flex}.med-feed-report-person strong{color:var(--feed-text);white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.med-feed-report-person>span:last-child>span{color:var(--feed-outline);font-size:11px}.med-feed-segmented.ant-radio-group{background:var(--feed-surface-low);border-radius:999px;align-items:center;height:38px;padding:3px;display:inline-flex}.med-feed-segmented .ant-radio-button-wrapper{height:32px;color:var(--feed-text-secondary);background:0 0;border:0;padding:0 18px;font-weight:500;line-height:32px;border-radius:999px!important}.med-feed-segmented .ant-radio-button-wrapper:before{display:none}.med-feed-segmented .ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled){color:var(--feed-primary);background:var(--feed-surface);box-shadow:0 1px 3px #0b1c301f}.med-feed-segmented .ant-radio-button-wrapper:focus-within{box-shadow:none}.med-feed-report-panel .ant-card-head{border-bottom-color:var(--feed-surface-container)}.med-feed-report-panel .ant-card-head-title{font-weight:600}.med-feed-report-tabs .ant-card-body{padding-top:4px}.med-feed-report-tabs .ant-tabs-tab{font-weight:500}.med-feed-report-tabs .ant-tabs-tab-active .ant-tabs-tab-btn{font-weight:600}.med-feed-report-toolbar{flex-wrap:wrap;align-items:center;gap:10px;margin-bottom:14px;display:flex}.med-feed-report-toolbar__search{flex:1;min-width:240px;max-width:420px}.med-feed-report-muted{color:var(--feed-outline);font-size:12px}.med-feed-inline-user{align-items:center;gap:8px;display:inline-flex}.med-feed-top-rank{width:26px;height:26px;color:var(--feed-text-secondary);background:var(--feed-surface-low);border-radius:50%;justify-content:center;align-items:center;font-weight:700;display:inline-flex}.med-feed-top-rank--top{color:#fff;background:var(--feed-primary)}.med-feed-admin{background:var(--feed-bg);flex:1;grid-template-columns:248px minmax(0,1fr);min-height:100%;display:grid}.med-feed-admin__sidebar{background:var(--feed-surface);border-right:1px solid var(--feed-border);flex-direction:column;align-self:start;gap:4px;height:100vh;padding:20px 12px;display:flex;position:sticky;top:0}.med-feed-admin__brand{align-items:center;gap:10px;padding:0 8px 20px;display:flex}.med-feed-admin__logo{color:#fff;background:var(--feed-primary);border-radius:10px;flex-shrink:0;justify-content:center;align-items:center;width:36px;height:36px;font-size:18px;font-weight:700;display:inline-flex}.med-feed-admin__brand-text{flex-direction:column;min-width:0;line-height:18px;display:flex}.med-feed-admin__brand-text strong{color:var(--feed-primary);font-size:15px}.med-feed-admin__brand-text span{color:var(--feed-outline);letter-spacing:.02em;text-transform:uppercase;font-size:11px}.med-feed-admin__section{color:var(--feed-outline);letter-spacing:.06em;text-transform:uppercase;padding:0 12px 6px;font-size:11px;font-weight:600}.med-feed-admin__nav{flex-direction:column;gap:2px;display:flex}.med-feed-admin__nav-item{height:40px;color:var(--feed-text-secondary);border-radius:10px;align-items:center;gap:12px;padding:0 12px;font-weight:500;transition:background .15s,color .15s;display:flex}.med-feed-admin__nav-item:hover{color:var(--feed-text);background:var(--feed-surface-low)}.med-feed-admin__nav-item--active,.med-feed-admin__nav-item--active:hover{color:#fff;background:var(--feed-primary);box-shadow:0 4px 12px rgba(var(--feed-primary-rgb), .25)}.med-feed-admin__nav-icon{font-size:16px;display:inline-flex}.med-feed-admin__main{min-width:0;padding:24px 28px 32px}.med-feed-admin .med-feed-wide{max-width:none}@media (width<=900px){.med-feed-admin{grid-template-columns:minmax(0,1fr)}.med-feed-admin__sidebar{border-right:0;border-bottom:1px solid var(--feed-border);flex-flow:wrap;align-items:center;height:auto;padding:12px 16px;position:static}.med-feed-admin__brand{padding:0 12px 0 0}.med-feed-admin__section{display:none}.med-feed-admin__nav{flex-direction:row;overflow-x:auto}.med-feed-admin__nav-item{white-space:nowrap}.med-feed-admin__main{padding:16px}}.med-feed-my-posts{width:100%;max-width:900px;margin:0 auto}.med-feed-my-posts .med-feed-page-header{background:radial-gradient(circle at 88% -30%, rgba(var(--feed-primary-rgb), .16), transparent 42%), linear-gradient(135deg, var(--feed-primary-soft) 0%, #f8faff 60%, #eef2ff 100%);border:1px solid #e0e9ff;border-radius:16px;gap:16px;padding:22px 24px;box-shadow:0 1px 2px #0b1c300a}.med-feed-my-posts .med-feed-page-header__title.ant-typography{color:var(--feed-text);letter-spacing:-.01em;font-size:20px;font-weight:700}.med-feed-my-posts .med-feed-page-header .ant-typography[type=secondary]{color:var(--feed-text-secondary);font-size:13px}.med-feed-my-posts .ant-tabs-top>.ant-tabs-nav{background:var(--feed-surface-low);border:1px solid var(--feed-border);border-radius:12px;margin:0 0 16px;padding:4px}.med-feed-my-posts .ant-tabs-nav:before{display:none}.med-feed-my-posts .ant-tabs-nav-list{width:100%}.med-feed-my-posts .ant-tabs-tab{color:var(--feed-text-secondary);border-radius:9px;flex:1;justify-content:center;font-size:13px;font-weight:600;transition:color .16s,background .16s,box-shadow .16s;margin:0!important;padding:7px 14px!important}.med-feed-my-posts .ant-tabs-tab:hover{color:var(--feed-primary);background:#ffffffbf}.med-feed-my-posts .ant-tabs-tab.ant-tabs-tab-active{background:var(--feed-surface);box-shadow:0 1px 3px #0b1c301a}.med-feed-my-posts .ant-tabs-tab.ant-tabs-tab-active .ant-tabs-tab-btn{color:var(--feed-primary)}.med-feed-my-posts .ant-tabs-ink-bar{display:none}@media (width<=768px){.med-feed-my-posts .ant-tabs-top>.ant-tabs-nav{overflow-x:auto}.med-feed-my-posts .ant-tabs-tab{white-space:nowrap;flex:none}}.med-feed-my-posts__footer-actions.ant-space{gap:12px!important}.med-feed-my-posts__edit.ant-btn{height:40px;color:var(--feed-text);background:var(--feed-surface);border:1px solid var(--feed-surface-container);box-shadow:var(--feed-shadow-sm);border-radius:10px;padding:0 20px;font-size:15px;font-weight:600;transition:color .2s,background .2s,border-color .2s,box-shadow .2s}.med-feed-my-posts__edit.ant-btn:hover,.med-feed-my-posts__edit.ant-btn:focus{color:var(--feed-primary);background:var(--feed-surface-low);border-color:var(--feed-primary-border);box-shadow:0 2px 8px rgba(var(--feed-primary-rgb), .12)}.med-feed-my-posts__edit.ant-btn .anticon{color:var(--feed-primary)}.med-feed-my-posts__done.ant-btn{background:linear-gradient(135deg, var(--feed-primary-hover) 0%, var(--feed-primary) 55%, var(--feed-primary-active) 100%);height:40px;box-shadow:0 4px 14px rgba(var(--feed-primary-rgb), .3);border:0;border-radius:10px;padding:0 22px;font-size:15px;font-weight:600;transition:box-shadow .2s,transform .15s}.med-feed-my-posts__done.ant-btn:hover,.med-feed-my-posts__done.ant-btn:focus{background:linear-gradient(135deg, var(--feed-primary-hover) 0%, var(--feed-primary) 55%, var(--feed-primary-active) 100%);box-shadow:0 6px 18px rgba(var(--feed-primary-rgb), .38);transform:translateY(-1px)}.med-feed-my-posts__done.ant-btn:active{box-shadow:0 2px 8px rgba(var(--feed-primary-rgb), .28);transform:translateY(0)}
1
+ .med-feed-emoji-popover .ant-popover-inner{border-radius:12px;overflow:hidden}.med-feed-emoji-popover .epr-emoji-category>.epr-emoji-category-label{background:#fff}.med-feed-emoji-popover button.epr-emoji:hover>*{background:var(--feed-surface-low)}.med-feed-mention-dropdown .med-feed-mention-filter-row.ant-mentions-dropdown-menu-item{display:none}.med-feed-mention-filter-slot{background:var(--feed-surface-low,#f5f7fb);border-bottom:1px solid var(--feed-surface-container,#e6ebf3);border-radius:8px 8px 0 0;padding:10px 12px}.med-feed-mention-filter{gap:8px;display:flex}.med-feed-mention-filter .ant-select{flex:1;min-width:0;font-size:13px}.med-feed-mention-filter .ant-select .ant-select-selector{background:var(--feed-surface,#fff);height:32px;box-shadow:0 0 0 1px var(--feed-surface-container,var(--feed-surface-container));border-radius:999px;padding:0 14px;transition:box-shadow .15s,background .15s}.med-feed-mention-filter .ant-select .ant-select-selection-search-input,.med-feed-mention-filter .ant-select .ant-select-selection-item,.med-feed-mention-filter .ant-select .ant-select-selection-placeholder{line-height:32px}.med-feed-mention-filter .ant-select .ant-select-selection-placeholder{color:var(--feed-text-secondary,#434655)}.med-feed-mention-filter .ant-select:hover .ant-select-selector{box-shadow:0 0 0 1px var(--feed-primary,var(--feed-primary))}.med-feed-mention-filter .ant-select-focused .ant-select-selector{box-shadow:0 0 0 2px rgba(var(--feed-primary-rgb), .25)!important}.med-feed-mention-filter .ant-select-has-value .ant-select-selector{background:var(--feed-surface-low,var(--feed-surface-low));box-shadow:0 0 0 1px var(--feed-primary,var(--feed-primary))}.med-feed-mention-filter .ant-select-has-value .ant-select-selection-item{color:var(--feed-primary,var(--feed-primary));font-weight:600}.med-feed-mention-filter .ant-select-arrow,.med-feed-mention-filter .ant-select-clear{right:12px}.med-feed-mention-filter__dropdown.ant-select-dropdown{border-radius:12px;padding:6px;box-shadow:0 8px 24px #0b1c301f}.med-feed-mention-filter__dropdown .ant-select-item{border-radius:8px}.med-feed-mention-filter__dropdown .ant-select-item-option-selected:not(.ant-select-item-option-disabled){color:var(--feed-primary,var(--feed-primary));background:var(--feed-surface-low,var(--feed-surface-low))}.med-feed-comment-composer{align-items:flex-start;gap:8px;display:flex}.med-feed-comment-composer__card{background:var(--feed-surface);min-width:0;box-shadow:var(--feed-shadow-sm);border-radius:18px;flex-direction:row;flex:1;align-items:center;gap:4px;padding:4px 4px 4px 12px;display:flex}.med-feed-comment-composer__card--typing{border-radius:12px;flex-direction:column;align-items:stretch;padding:8px 8px 4px 12px}.med-feed-comment-composer__card .ant-mentions{flex:1;min-width:0}.med-feed-comment-composer__card .ant-mentions,.med-feed-comment-composer__card .ant-mentions-focused{box-shadow:none;border:0;font-size:14px;line-height:22px}.med-feed-comment-composer__card .ant-mentions>textarea{padding:0}.med-feed-comment-composer__footer{flex-shrink:0;justify-content:flex-end;align-items:center;gap:8px;display:flex}.med-feed-comment-composer__card--typing .med-feed-comment-composer__footer{justify-content:space-between}.med-feed-comment-composer__tools{align-items:center;gap:2px;display:inline-flex}.med-feed-comment-composer__tool.ant-btn{color:var(--feed-text-secondary);font-size:16px;font-weight:600}.med-feed-comment-composer__tool.ant-btn:hover{color:var(--feed-text);background:var(--feed-surface-low)}.med-feed-emoji-popover .ant-popover-inner-content{padding:0}.med-feed-comment-composer__send.ant-btn{color:var(--feed-primary);font-size:16px}.med-feed-comment-composer__send.ant-btn:disabled{color:var(--feed-outline);background:0 0}.med-feed-comment-composer__send.ant-btn:not(:disabled):hover{color:var(--feed-primary);background:var(--feed-surface-low)}.med-feed-mention-option{align-items:center;gap:8px;display:inline-flex}.med-feed-mention-option__department{color:var(--feed-text-secondary)}.med-feed-comment-composer__card .ant-mentions,.med-feed-comment-composer__card .ant-mentions>textarea{background:0 0}.med-feed-comment-composer__card{border:1px solid var(--feed-surface-container);transition:border-color .2s}.med-feed-comment-composer__card:focus-within{border-color:rgba(var(--feed-primary-rgb), .45)}.med-feed-clamped-text-wrap{align-items:baseline;gap:4px;display:flex}.med-feed-clamped-text-wrap--expanded,.med-feed-clamped-text-wrap--stack{display:block}.med-feed-clamped-text{-webkit-line-clamp:1;line-clamp:1;-webkit-box-orient:vertical;flex:0 auto;min-width:0;display:-webkit-box;overflow:hidden}.med-feed-clamped-text__toggle{color:var(--feed-primary);white-space:nowrap;background:var(--feed-surface-low);cursor:pointer;border:0;border-radius:999px;flex-shrink:0;align-items:center;padding:3px 12px;font-size:13px;font-weight:600;transition:background .15s,color .15s;display:inline-flex}.med-feed-clamped-text-wrap--stack .med-feed-clamped-text__toggle{margin-top:6px}.med-feed-clamped-text-wrap--expanded>div,.med-feed-clamped-text-wrap--expanded>div>div,.med-feed-clamped-text-wrap--expanded>div>.med-feed-rich-content__paragraph:last-child,.med-feed-clamped-text-wrap--expanded>div>div>.med-feed-rich-content__paragraph:last-child{display:inline}.med-feed-clamped-text-wrap--expanded .med-feed-clamped-text__toggle{margin-left:8px}.med-feed-clamped-text__toggle:hover{color:var(--feed-primary-active);background:var(--feed-primary-soft-strong);text-decoration:none}.med-feed-mention--clickable.ant-typography{cursor:pointer}.med-feed-mention-card-popover .ant-popover-inner{border-radius:12px}.med-feed-mention-card{align-items:center;gap:12px;min-width:220px;max-width:300px;display:flex}.med-feed-mention-card__info{flex-direction:column;gap:2px;min-width:0;display:flex}.med-feed-mention-card__name.ant-typography{color:var(--feed-text,#0b1c30);font-size:15px}.med-feed-mention-card__line{color:var(--feed-text-secondary,#434655);font-size:13px}.med-feed-rich-content{color:var(--feed-text);white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px;line-height:21px}.med-feed-hashtag,.med-feed-hashtag:hover,.med-feed-mention.ant-typography{color:var(--feed-primary);font-weight:500}.med-feed-rich-content--formatted{white-space:normal}.med-feed-rich-content--formatted>*{margin:0 0 6px}.med-feed-rich-content--formatted>:last-child{margin-bottom:0}.med-feed-rich-content__paragraph{white-space:pre-wrap}.med-feed-rich-content__heading{color:var(--feed-text);font-size:18px;font-weight:700;line-height:24px}.med-feed-rich-content__quote{color:var(--feed-text-secondary);white-space:pre-wrap;border-left:3px solid var(--feed-surface-container);padding:2px 0 2px 12px}.med-feed-rich-content__list{padding-left:22px}.med-feed-rich-content__list li+li{margin-top:2px}.med-feed-rich-content--formatted>:has(+.med-feed-rich-content__toggle){margin-bottom:0}.med-feed-rich-content--formatted>.med-feed-rich-content__paragraph:has(+.med-feed-rich-content__toggle){display:inline}.med-feed-rich-content__toggle.ant-typography{color:var(--feed-primary);background:var(--feed-surface-low);border:0;border-radius:999px;align-items:center;margin:2px 0 0 8px;padding:3px 12px;font-size:13px;font-weight:600;transition:background .15s,color .15s;display:inline-flex}.med-feed-rich-content__toggle.ant-typography:hover{color:var(--feed-primary-active);background:var(--feed-primary-soft-strong);text-decoration:none}.med-feed-images{border-radius:12px;gap:2px;display:grid;overflow:hidden}.med-feed-images--1{grid-template-columns:1fr}.med-feed-images--2,.med-feed-images--3,.med-feed-images--4{grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:1fr}.med-feed-images--2 .med-feed-images__cell,.med-feed-images--3 .med-feed-images__cell,.med-feed-images--4 .med-feed-images__cell{aspect-ratio:1}.med-feed-images--3 .med-feed-images__cell:nth-child(3){aspect-ratio:2;grid-column:span 2}.med-feed-images__cell{background:var(--feed-surface-container);position:relative;overflow:hidden}.med-feed-images__cell .ant-image,.med-feed-images__cell .ant-image-img{object-fit:cover;width:100%;height:100%;transition:transform .3s}.med-feed-images__cell:hover .ant-image-img{transform:scale(1.05)}.med-feed-images--1 .ant-image-img{max-height:420px}.med-feed-images__more{color:#fff;pointer-events:none;background:#0b1c308c;justify-content:center;align-items:center;font-size:28px;font-weight:700;display:flex;position:absolute;inset:0}.ant-image-preview-mask{background:#000000eb}.ant-image-preview-operations{color:#fff;background:#000000d9}.ant-image-preview-operations-icon{color:#fff}.ant-image-preview-operations-operation:hover:not(.ant-image-preview-operations-operation-disabled){background:#ffffff40}.ant-image-preview-operations-operation-disabled .ant-image-preview-operations-icon{color:#ffffff4d}.ant-image-preview-switch-left,.ant-image-preview-switch-right{color:#fff;background:#000000bf;border:1px solid #fff9}.ant-image-preview-switch-left:hover,.ant-image-preview-switch-right:hover{color:#000;background:#fff}.ant-image-preview-switch-left-disabled,.ant-image-preview-switch-right-disabled{opacity:.35}.med-feed-reaction-button__emoji{background:var(--feed-surface-low);border-radius:50%;justify-content:center;align-items:center;width:22px;height:22px;font-size:14px;line-height:1;display:inline-flex}@keyframes med-feed-like-pop{0%{transform:scale(1)}35%{transform:scale(1.55)rotate(-10deg)}70%{transform:scale(.92)}to{transform:scale(1)}}.med-feed-like-btn--liked .anticon{transform-origin:50%;animation:.4s cubic-bezier(.34,1.56,.64,1) med-feed-like-pop}.med-feed-like-btn:active:not(:disabled){transition:transform 80ms;transform:scale(.94)}.med-feed-reaction-popover .ant-popover-inner{box-shadow:none;border-radius:999px}.med-feed-reaction-popover .ant-popover-arrow{display:none}.med-feed-reaction-popover .ant-popover-inner-content{padding:0}.med-feed-reaction-compact{color:var(--feed-text-secondary);font:inherit;cursor:pointer;background:0 0;border:0;align-items:center;gap:4px;padding:0;font-weight:500;display:inline-flex}.med-feed-reaction-compact .anticon{font-size:16px}.med-feed-reaction-compact__emoji{background:var(--feed-surface-low);border-radius:50%;justify-content:center;align-items:center;width:20px;height:20px;font-size:12px;line-height:1;display:inline-flex}.med-feed-reaction-compact:hover:not(:disabled){color:var(--feed-text)}.med-feed-reaction-compact:disabled{cursor:default}.med-feed-comment{align-items:flex-start;gap:8px;display:flex}.med-feed-comment--reply{margin-top:4px;padding-left:8px}.med-feed-comment__main{flex-direction:column;flex:1;gap:4px;min-width:0;display:flex}.med-feed-comment__pinned{color:var(--feed-primary);align-items:center;gap:4px;font-size:11px;font-weight:600;display:inline-flex}.med-feed-comment__bubble{padding:0}.med-feed-comment__head{align-items:baseline;gap:6px;display:flex}.med-feed-comment__author.ant-typography{color:var(--feed-text-secondary);font-size:13px;font-weight:600;line-height:20px}.med-feed-comment--reply .med-feed-comment__author.ant-typography{font-size:12px}.med-feed-comment__time{color:var(--feed-outline);flex-shrink:0;font-size:12px;line-height:16px}.med-feed-comment__content{margin-top:2px}.med-feed-comment__content .med-feed-rich-content{font-size:15px}.med-feed-comment__actions{color:var(--feed-text-secondary);align-items:center;gap:16px;margin-top:4px;font-size:13px;line-height:18px;display:flex}.med-feed-comment__action{color:inherit;font:inherit;cursor:pointer;background:0 0;border:0;padding:0;font-weight:500}.med-feed-comment__action:hover:not(:disabled){text-decoration:underline}.med-feed-comment__action--danger{color:#ba1a1a}.med-feed-comment__more{align-items:center;font-size:16px;display:inline-flex}.med-feed-comment__more:hover:not(:disabled){color:var(--feed-text);text-decoration:none}.med-feed-comment__reactions{align-items:center;gap:4px;font-size:12px;display:inline-flex}.med-feed-comment__reactions .med-feed-reaction-icons__item{width:18px;height:18px;font-size:15px}.med-feed-comment__images{max-width:320px;margin-top:6px}.med-feed-comment__images .med-feed-images--1 .ant-image-img{max-height:240px}.med-feed-typing{background:var(--feed-surface-container,var(--feed-surface-container));border-radius:18px;align-self:flex-start;align-items:center;gap:4px;padding:10px 14px;display:inline-flex}.med-feed-typing__dot{background:var(--feed-outline,#737686);border-radius:50%;width:7px;height:7px;animation:1.2s ease-in-out infinite med-feed-typing-bounce}.med-feed-typing__dot:nth-child(2){animation-delay:.15s}.med-feed-typing__dot:nth-child(3){animation-delay:.3s}@keyframes med-feed-typing-bounce{0%,60%,to{opacity:.4;transform:translateY(0)}30%{opacity:1;transform:translateY(-4px)}}@media (prefers-reduced-motion:reduce){.med-feed-typing__dot{animation:none}}.med-feed-typing--centered{align-self:center;margin:24px auto}.med-feed-comments{background:var(--feed-surface-low);border-top:1px solid var(--feed-surface-container);flex-direction:column;gap:12px;padding:12px;display:flex}.med-feed-comments__more.ant-btn{align-self:flex-start;padding:0;font-size:12px;font-weight:600}.med-feed-comments__replies-toggle{color:var(--feed-text-secondary);cursor:pointer;background:0 0;border:0;align-self:flex-start;align-items:center;gap:6px;margin-top:4px;padding:0;font-size:13px;font-weight:600;display:inline-flex}.med-feed-comments__replies-toggle .anticon{font-size:11px}.med-feed-comments__replies-toggle:hover{color:var(--feed-text)}.med-feed-comments__list{flex-direction:column;gap:12px;display:flex}.med-feed-comments__load-more.ant-btn{height:30px;color:var(--feed-primary);background:var(--feed-surface);border:1px solid var(--feed-border);border-radius:999px;align-self:flex-start;padding:0 14px;font-size:13px;font-weight:600;transition:background-color .15s,border-color .15s}.med-feed-comments__load-more.ant-btn:hover,.med-feed-comments__load-more.ant-btn:focus-visible{color:var(--feed-primary);background:var(--feed-surface-container);border-color:var(--feed-primary)}.med-feed-comments--empty{display:none}.med-feed-comments-modal.med-feed-create-modal.ant-modal .ant-modal-body{flex-direction:column;max-height:calc(100vh - 140px);padding:0;display:flex;overflow:hidden}.med-feed-comments-modal__scroll{background:var(--feed-bg);flex:1;min-height:0;overflow:hidden auto}.med-feed-comments-modal__scroll::-webkit-scrollbar{width:6px}.med-feed-comments-modal__scroll::-webkit-scrollbar-thumb{background:#ced0d4;border-radius:6px}.med-feed-comments-modal__composer{background:var(--feed-surface);flex-shrink:0;box-shadow:0 -8px 24px #0b1c300f}.med-feed-comments-modal__composer:not(:empty){border-top:1px solid var(--feed-surface-container);padding:14px 20px}.med-feed-comments-modal .med-feed-post.ant-card{box-shadow:none;border:0;border-radius:0}.med-feed-comments-modal .med-feed-post,.med-feed-comments-modal .med-feed-post__body,.med-feed-comments-modal .med-feed-post__text{min-width:0;max-width:100%}.med-feed-comments-modal .med-feed-post__text{overflow-wrap:anywhere}.med-feed-comments-modal .med-feed-post__body img,.med-feed-comments-modal .med-feed-post__body video{max-width:100%}.med-feed-comments-modal .med-feed-comments{background:var(--feed-surface);border-top:1px solid var(--feed-surface-container)}.med-feed-comments-modal__composer .med-feed-comment-composer__card{background:var(--feed-surface-low);box-shadow:none}.med-feed-link-card__link{color:inherit;display:block}.med-feed-link-card.ant-card{background:var(--feed-surface-low);box-shadow:none;overflow:hidden}.med-feed-link-card__cover{aspect-ratio:7/6;background:#000;border-radius:12px;max-height:560px;position:relative;overflow:hidden}.med-feed-link-card__cover img{object-fit:contain;width:100%;height:100%}.med-feed-link-card__frame{border:0;width:100%;height:100%}.med-feed-link-card__unmute{z-index:1;color:#fff;cursor:pointer;background:#0b1c30b8;border:0;border-radius:999px;align-items:center;gap:6px;padding:4px 12px;font-size:13px;font-weight:600;display:inline-flex;position:absolute;top:10px;left:10px}.med-feed-link-card__unmute:hover{background:#0b1c30e6}.med-feed-link-card__thumb{cursor:pointer;background:0 0;border:0;width:100%;height:100%;padding:0;display:block}.med-feed-link-card__play{color:#fff;filter:drop-shadow(0 2px 8px #0006);font-size:56px;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.med-feed-link-card__site{letter-spacing:.02em;font-size:11px}.med-feed-link-card__title.ant-typography{margin:4px 0 0}.med-feed-link-card__facebook{color:#1877f2;font-size:32px}.med-feed-link-card__skeleton.ant-skeleton-element{width:100%}.med-feed-link-card__wrap{position:relative}.med-feed-link-card__copy.ant-btn{color:var(--feed-text-secondary);background:var(--feed-surface);box-shadow:var(--feed-shadow-sm);position:absolute;bottom:12px;right:12px}.med-feed-link-card__wrap .med-feed-link-card.ant-card>.ant-card-body{padding-right:52px}.med-feed-link-card.ant-card{border:1px solid var(--feed-border);border-radius:12px}.med-feed-link-card.ant-card-small>.ant-card-body,.med-feed-link-card.ant-card>.ant-card-body{padding:14px 20px 18px}.med-feed-link-card .ant-card-cover img{border-radius:0}.med-feed-documents.ant-list{background:var(--feed-surface-low);border:0;border-radius:12px}.med-feed-documents .ant-list-item{border-bottom-color:var(--feed-surface-container)}.med-feed-documents .ant-list-item-meta-title{margin-bottom:0;font-size:13px;font-weight:600}.med-feed-documents .ant-list-item-meta-description{color:var(--feed-outline);font-size:11px}.med-feed-documents__icon{background:var(--feed-surface);border-radius:8px;justify-content:center;align-items:center;width:36px;height:36px;font-size:20px;display:inline-flex}.med-feed-documents__open{min-width:0;color:inherit;flex:1;display:block}.med-feed-documents__open:hover .ant-list-item-meta-title{color:var(--feed-primary)}.med-feed-documents .ant-list-footer{border-top:1px solid var(--feed-surface-container);padding:4px 8px}.med-feed-video{aspect-ratio:7/6;background:#000;border-radius:12px;max-height:560px;position:relative;overflow:hidden}.med-feed-video__player{object-fit:contain;cursor:pointer;background:#000;width:100%;height:100%;display:block}.med-feed-video:fullscreen{border-radius:0;max-height:none}.med-feed-video__controls{color:#fff;background:linear-gradient(#0000,#000000b3);align-items:center;gap:8px;padding:24px 10px 8px;display:flex;position:absolute;bottom:0;left:0;right:0}.med-feed-video__btn{color:#fff;cursor:pointer;background:0 0;border:0;border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;width:32px;height:32px;font-size:18px;transition:background .15s;display:flex}.med-feed-video__btn:hover{background:#ffffff2e}.med-feed-video__sound{font-size:22px}.med-feed-video__time{font-variant-numeric:tabular-nums;flex-shrink:0;font-size:12px}.med-feed-video__seek{accent-color:#fff;cursor:pointer;flex:1;min-width:0;height:4px}.med-feed-post__engagement{color:var(--feed-text-secondary);border-top:1px solid var(--feed-surface-container);align-items:center;gap:20px;margin-top:4px;padding:10px 16px;font-size:14px;display:flex}.med-feed-post__engagement>span{align-items:center;gap:6px;display:inline-flex}.med-feed-post__engagement .anticon{color:var(--feed-outline);font-size:15px}.med-feed-reactors-modal.ant-modal .ant-modal-body{max-height:70vh;padding:4px 16px 20px;overflow-y:auto}.med-feed-reactors-modal .ant-tabs-nav{z-index:1;background:var(--feed-surface);margin-bottom:8px;position:sticky;top:0}.med-feed-reactors-modal .ant-tabs-tab{font-weight:600}.med-feed-reactors-modal .ant-tabs-tab-active .ant-tabs-tab-btn{color:var(--feed-primary)}.med-feed-reactors-modal .ant-tabs-ink-bar{background:var(--feed-primary);border-radius:2px}.med-feed-reactors__tab{font-weight:600}.med-feed-reactors__list .ant-list-item{border-bottom:0;border-radius:10px;justify-content:flex-start;gap:12px;padding:10px 8px;transition:background .15s}.med-feed-reactors__list .ant-list-item:hover{background:var(--feed-surface-low)}.med-feed-reactors__avatar{flex-shrink:0;display:inline-flex;position:relative}.med-feed-reactors__badge{background:#fff;border-radius:50%;justify-content:center;align-items:center;width:20px;height:20px;font-size:12px;display:inline-flex;position:absolute;bottom:-4px;right:-4px;box-shadow:0 0 0 2px #fff}.med-feed-reactors__text{flex-direction:column;min-width:0;display:flex}.med-feed-reactors__name{color:var(--feed-text);white-space:nowrap;text-overflow:ellipsis;font-weight:600;overflow:hidden}.med-feed-reactors__meta{color:var(--feed-outline);font-size:12px}.med-feed-chat-share{flex-direction:column;gap:14px;display:flex}.med-feed-chat-share__source{color:var(--feed-text-secondary,#65676b);background:var(--feed-surface-low,#f0f2f5);border-radius:12px;align-items:center;gap:10px;margin:0;padding:10px 12px;font-size:13px;display:flex;overflow:hidden}.med-feed-chat-share__source span{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.med-feed-chat-share__tabs{background:var(--feed-surface-low,#f0f2f5);border-radius:12px;gap:4px;padding:4px;display:flex}.med-feed-chat-share__tab{color:var(--feed-text-secondary,#65676b);font:inherit;cursor:pointer;background:0 0;border:0;border-radius:9px;flex:1;padding:7px 12px;font-size:13px;font-weight:600;transition:background-color .15s,color .15s,box-shadow .15s}.med-feed-chat-share__tab.is-active{color:var(--feed-primary,#1677ff);background:#fff;box-shadow:0 1px 3px #0f172a1f}.med-feed-chat-share__search{color:var(--feed-text-secondary,#65676b);border:1px solid var(--feed-border,#e4e6eb);background:#fff;border-radius:12px;align-items:center;gap:8px;padding:0 14px;transition:border-color .15s,box-shadow .15s;display:flex}.med-feed-chat-share__search:focus-within{border-color:var(--feed-primary,#1677ff);box-shadow:0 0 0 3px #1677ff24}.med-feed-chat-share__search input{min-width:0;height:40px;color:var(--feed-text,#050505);font:inherit;background:0 0;border:0;outline:0;flex:1;font-size:14px}.med-feed-chat-share__chips{flex-wrap:wrap;gap:6px;display:flex}.med-feed-chat-share__chip{max-width:190px;color:var(--feed-text,#050505);border:1px solid var(--feed-border,#e4e6eb);cursor:pointer;background:#fff;border-radius:999px;align-items:center;gap:6px;padding:3px 6px 3px 3px;font-size:13px;font-weight:600;transition:border-color .15s;display:inline-flex}.med-feed-chat-share__chip:hover{border-color:var(--feed-primary,#1677ff)}.med-feed-chat-share__chip span:nth-child(2){text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.med-feed-chat-share__chip-x{color:var(--feed-text-secondary,#65676b);font-size:10px}.med-feed-chat-share__list{flex-direction:column;gap:2px;max-height:340px;margin:0 -6px;padding:0 6px;display:flex;overflow-y:auto}.med-feed-chat-share__row{width:100%;color:var(--feed-text,#050505);font:inherit;text-align:left;cursor:pointer;background:0 0;border:0;border-radius:12px;align-items:center;gap:12px;padding:9px 10px;transition:background-color .12s;display:flex}.med-feed-chat-share__row:hover{background:var(--feed-surface-low,#f0f2f5)}.med-feed-chat-share__row.is-selected{background:#1677ff14}.med-feed-chat-share__row:disabled{cursor:not-allowed;opacity:.45}.med-feed-chat-share__name{flex-direction:column;flex:1;min-width:0;display:flex}.med-feed-chat-share__name strong{text-overflow:ellipsis;white-space:nowrap;font-size:14px;font-weight:600;overflow:hidden}.med-feed-chat-share__name small{color:var(--feed-text-secondary,#65676b);font-size:12px}.med-feed-chat-share__avatar{color:#fff;border-radius:50%;flex:none;justify-content:center;align-items:center;width:44px;height:44px;font-size:16px;font-weight:700;display:inline-flex;overflow:hidden}.med-feed-chat-share__avatar--small{width:24px;height:24px;font-size:11px}.med-feed-chat-share__avatar img{object-fit:cover;width:100%;height:100%}.med-feed-chat-share__checkbox{color:#fff;border:2px solid #c4c8cd;border-radius:50%;flex:none;justify-content:center;align-items:center;width:22px;height:22px;font-size:12px;transition:background-color .12s,border-color .12s;display:inline-flex}.med-feed-chat-share__checkbox.is-checked{background:var(--feed-primary,#1677ff);border-color:var(--feed-primary,#1677ff)}.med-feed-chat-share__empty{color:var(--feed-text-secondary,#65676b);text-align:center;padding:28px 0;font-size:14px}.med-feed-chat-share__footer{border-top:1px solid var(--feed-border,#e4e6eb);justify-content:flex-end;align-items:center;gap:8px;padding-top:12px;display:flex}.med-feed-chat-share__count{color:var(--feed-text-secondary,#65676b);margin-right:auto;font-size:13px}.med-feed-chat-share__footer .ant-btn{border-radius:10px;min-width:84px;height:36px;font-weight:600}.med-feed-chat-share-modal .ant-modal-content{border-radius:20px;padding:0;overflow:hidden;box-shadow:0 24px 64px #0f172a38,0 4px 12px #0f172a14}.med-feed-chat-share-modal .ant-modal-header{border-bottom:0;border-radius:20px 20px 0 0;margin:0;padding:18px 24px 12px}.med-feed-chat-share-modal .ant-modal-title{font-size:17px;font-weight:700}.med-feed-chat-share-modal .ant-modal-body{padding:4px 24px 20px}.med-feed-chat-share-modal .ant-modal-close{top:14px;background:var(--feed-surface-low,#f0f2f5);border-radius:50%;width:32px;height:32px;inset-inline-end:16px}.med-feed-chat-share-modal .ant-modal-close-x{justify-content:center;align-items:center;width:32px;height:32px;line-height:1;display:flex}.med-feed-share-menu.ant-dropdown-menu{background:#fff;border:1px solid #e4e6eb;border-radius:14px;min-width:252px;padding:8px;box-shadow:0 12px 32px #0f172a29,0 2px 6px #0f172a0f}.med-feed-share-menu.ant-dropdown-menu .ant-dropdown-menu-item{min-height:44px;color:var(--feed-text,#050505);border-radius:10px;align-items:center;gap:12px;margin:2px 0;padding:6px 12px;font-size:14px;font-weight:500;line-height:20px;display:flex}.med-feed-share-menu.ant-dropdown-menu .ant-dropdown-menu-item:hover,.med-feed-share-menu.ant-dropdown-menu .ant-dropdown-menu-item-active{color:var(--feed-primary,var(--feed-primary));background:var(--feed-surface-low,var(--feed-surface-low))}.med-feed-share-menu.ant-dropdown-menu .ant-dropdown-menu-item .anticon{background:#f2f4f7;border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;width:32px;height:32px;font-size:15px;display:inline-flex}.med-feed-share-menu.ant-dropdown-menu .ant-dropdown-menu-item-disabled{color:#98a2b3;cursor:not-allowed}.med-feed-share-menu.ant-dropdown-menu .ant-dropdown-menu-item-disabled:hover,.med-feed-share-menu.ant-dropdown-menu .ant-dropdown-menu-item-disabled.ant-dropdown-menu-item-active{color:#98a2b3;background:0 0}.med-feed-share-menu.ant-dropdown-menu .ant-dropdown-menu-item-disabled .anticon{background:#f2f4f7;color:#98a2b3!important}.med-feed-post__footer-row{flex-direction:column;margin-top:4px;display:flex}.med-feed-post__footer-stats{color:var(--feed-text-secondary);border-top:1px solid #f0f2f7;flex-wrap:wrap;align-items:center;gap:8px;padding:10px 16px 6px;font-size:13px;display:flex}.med-feed-post__stats-counts{align-items:center;gap:8px;margin-left:auto;display:inline-flex}.med-feed-post__stat{background:var(--feed-surface-low);border:1px solid #0000;border-radius:999px;align-items:center;gap:6px;padding:4px 10px;font-weight:600;transition:background .15s,border-color .15s;display:inline-flex}.med-feed-post__stat:hover{background:var(--feed-surface-container)}.med-feed-post__stat .anticon{color:var(--feed-outline);font-size:14px}.med-feed-post__reactors{color:var(--feed-text-secondary);background:var(--feed-surface);cursor:pointer;border:1px solid #dbe6ff;border-radius:999px;align-items:center;gap:7px;padding:3px 12px 3px 9px;font-size:13px;transition:background .15s,border-color .15s,box-shadow .15s;display:inline-flex;box-shadow:0 1px 2px #0b1c300d}.med-feed-post__reactors:hover{background:var(--feed-surface-low);border-color:rgba(var(--feed-like-rgb), .3);box-shadow:0 2px 6px rgba(var(--feed-like-rgb), .14)}.med-feed-post__reactor-count{color:var(--feed-like);font-weight:700}.med-feed-post__reactors-icon{color:var(--feed-like);font-size:15px}.med-feed-post__reactor-avatars{align-items:center;display:inline-flex}.med-feed-post__reactor-avatars .ant-avatar{border:2px solid #fff;margin-left:-7px}.med-feed-post__reactor-avatars .ant-avatar:first-child{margin-left:0}.med-feed-post__footer-actions{border-top:1px solid #f0f2f7;align-items:center;gap:4px;padding:6px 16px 8px;display:flex}.med-feed-post__footer-actions>*{flex:1 1 0;min-width:0}.med-feed-post__footer-actions .ant-btn,.med-feed-post__footer-actions>*>.ant-btn{width:100%;min-width:0;height:36px;color:var(--feed-outline);border-radius:10px;flex:1 1 0;justify-content:center;align-items:center;gap:8px;padding:0 12px;font-size:13px;font-weight:600;transition:color .15s,background .15s;display:inline-flex}.med-feed-post__footer-actions .ant-btn .anticon{font-size:17px}.med-feed-post__footer-actions .ant-btn>.anticon+span,.med-feed-post__footer-actions .ant-btn>span+span{margin-left:0}.med-feed-post__footer-actions .ant-btn>span{line-height:1}.med-feed-post__footer-actions .ant-btn:not(:disabled):hover{color:var(--feed-primary);background:var(--feed-surface-low)}.med-feed-post__footer-actions .ant-btn:disabled{color:var(--feed-outline);cursor:default}.med-feed-post__footer-actions .ant-btn:disabled:hover,.med-feed-post__footer-actions .ant-btn:disabled:focus{color:var(--feed-primary);background:var(--feed-surface-low)}.med-feed-publisher-avatar.ant-avatar{border:1px solid var(--feed-border,var(--feed-surface-container));background:#fff;flex-shrink:0;padding:3px}.med-feed-publisher-avatar.ant-avatar img{object-fit:contain}.med-feed-post__featured.ant-tag{color:#fff;letter-spacing:.03em;text-transform:uppercase;white-space:nowrap;background:linear-gradient(135deg,#ff512f 0%,#dd2476 100%);border:0;border-radius:999px;flex-shrink:0;align-items:center;gap:5px;margin:0 0 0 8px;padding:2px 12px 2px 9px;font-size:12px;font-weight:700;line-height:20px;display:inline-flex;box-shadow:0 0 0 3px #ff512f2e,0 2px 8px #dd247666}.med-feed-post__featured.ant-tag .anticon{color:#fff;font-size:12px}.med-feed-status-pill{white-space:nowrap;border-radius:999px;flex-shrink:0;align-items:center;gap:6px;padding:2px 10px;font-size:11px;font-weight:600;line-height:16px;display:inline-flex}.med-feed-status-pill__dot{border-radius:50%;width:6px;height:6px}.med-feed-post__header{align-items:center;gap:10px;padding:14px 16px 6px;display:flex}.med-feed-post__header .ant-avatar{flex-shrink:0}.med-feed-post__author{flex-direction:column;flex:1;gap:2px;min-width:0;display:flex;overflow:hidden}.med-feed-post__author-line{white-space:nowrap;flex-wrap:nowrap;align-items:center;gap:5px;display:flex;overflow:hidden}.med-feed-post__author-name.ant-typography{color:var(--feed-text);letter-spacing:-.01em;font-size:16px;font-weight:700;line-height:24px}.med-feed-post__verified{color:var(--feed-primary);font-size:15px}.med-feed-post__job-title{color:var(--feed-primary);background:var(--feed-surface-container);border-radius:999px;padding:0 8px;font-size:11px;font-weight:600;line-height:18px}.med-feed-post__meta{color:var(--feed-outline);white-space:nowrap;text-overflow:ellipsis;flex-wrap:nowrap;align-items:center;gap:6px;font-size:13px;line-height:20px;display:inline-flex;overflow:hidden}.med-feed-post__meta>[aria-hidden]{color:#c5c9d4;font-size:11px}.med-feed-post__meta a{color:inherit}.med-feed-post__meta a:hover{color:var(--feed-primary);text-decoration:none}.med-feed-post__category{color:var(--feed-primary);background:var(--feed-surface-low);border:0;border-radius:999px;flex-shrink:0;align-items:center;gap:4px;padding:1px 10px;font-weight:500;display:inline-flex}.med-feed-post__category .anticon{font-size:11px}.med-feed-post__header .ant-btn-text{color:var(--feed-outline)}.med-feed-post__header .med-feed-status-pill{flex-shrink:0}.med-feed-post{overflow:hidden}.med-feed-post.ant-card{background:var(--feed-surface);border:0;border-radius:16px;transition:box-shadow .2s,transform .2s;box-shadow:0 1px 2px #0b1c300a,0 4px 16px #0b1c300f}.med-feed-post.ant-card:hover{box-shadow:0 2px 4px #0b1c300d,0 8px 28px #0b1c301a}.med-feed-post.ant-card .ant-card-body{padding:0}.med-feed-post__header-actions{flex-shrink:0;align-items:center;gap:0;display:inline-flex}.med-feed-post__title{color:var(--feed-text);margin:0;font-size:20px;font-weight:700;line-height:28px}.med-feed-post__pending-note{color:var(--feed-outline);align-items:center;gap:6px;margin:0 16px 12px;font-size:12px;font-style:italic;line-height:16px;display:flex}.med-feed-post__pending-note .anticon{flex-shrink:0;line-height:1}.med-feed-post__body{flex-direction:column;gap:2px;padding:0 16px 12px;display:flex}.med-feed-post__text{min-width:0;margin-bottom:8px}.med-feed-post__text .med-feed-rich-content{font-family:Segoe UI,Inter,Roboto,sans-serif;font-size:.9375rem}.med-feed-post__text--large .med-feed-rich-content{font-size:20px;font-weight:500;line-height:28px}.med-feed-post__footer{justify-content:flex-end;padding:8px 20px 16px;display:flex}.med-feed-load-more.ant-btn{height:40px;color:var(--feed-primary);background:var(--feed-surface-low);border:1px dashed #c7d5f5;border-radius:999px;margin-top:4px;font-size:14px;font-weight:600;transition:background .15s,border-color .15s}.med-feed-load-more.ant-btn:hover:not(:disabled){color:var(--feed-primary-active);border-color:var(--feed-primary);background:#dbe6ff}.med-feed-load-more.ant-btn:disabled{color:var(--feed-outline);background:var(--feed-surface-low);border-color:#0000}.med-feed-events{flex-direction:column;flex-shrink:0;gap:8px;display:flex}.med-feed-events__heading{color:var(--feed-text-secondary);margin:0;padding:0 4px;font-size:17px;font-weight:600;line-height:24px}.med-feed-events__card{text-align:left;cursor:pointer;background:0 0;border:0;border-radius:12px;align-items:center;gap:12px;width:100%;padding:8px;transition:background .15s;display:flex}.med-feed-events__card:hover,.med-feed-events__card:focus-visible{background:rgba(var(--feed-primary-rgb), .08)}.med-feed-events__thumb{object-fit:cover;background:var(--feed-surface-container);border-radius:12px;flex-shrink:0;width:112px;height:112px}.med-feed-events__text{flex-direction:column;gap:4px;min-width:0;display:flex}.med-feed-events__title{color:var(--feed-text);-webkit-line-clamp:3;line-clamp:3;-webkit-box-orient:vertical;font-size:15px;font-weight:700;line-height:20px;display:-webkit-box;overflow:hidden}.med-feed-events__time{color:var(--feed-outline);font-size:13px;line-height:18px}.med-feed-events-modal .ant-modal-content{background:var(--feed-surface);border-radius:24px;overflow:hidden;box-shadow:0 24px 64px #0b1c3047}.med-feed-events-modal .ant-modal-body{padding:0}.med-feed-events-modal .ant-modal-close{top:14px;right:14px}.med-feed-events-modal .ant-modal-close-x{color:#fff;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);background:#0006;border-radius:50%;justify-content:center;align-items:center;width:36px;height:36px;line-height:1;transition:background .15s;display:flex}.med-feed-events-modal .ant-modal-close:hover .ant-modal-close-x{background:#0009}.med-feed-event-detail{animation:.28s ease-out med-feed-event-rise}@keyframes med-feed-event-rise{0%{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}.med-feed-event-detail__hero{aspect-ratio:16/10;background:var(--feed-surface-container);position:relative}.med-feed-event-detail__image{object-fit:cover;width:100%;height:100%;display:block}.med-feed-event-detail__shade{background:linear-gradient(#0000,#000000c7);flex-direction:column;align-items:flex-start;gap:8px;padding:56px 24px 20px;display:flex;position:absolute;bottom:0;left:0;right:0}.med-feed-event-detail__title{color:#fff;margin:0;font-size:22px;font-weight:800;line-height:28px}.med-feed-event-detail__phase{color:#fff;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);background:#ffffff38;border-radius:999px;padding:3px 12px;font-size:12px;font-weight:700}.med-feed-event-detail__phase--upcoming{background:var(--feed-primary)}.med-feed-event-detail__phase--ongoing{background:#ea580c}.med-feed-event-detail__body{flex-direction:column;gap:16px;max-height:46vh;padding:20px 24px 24px;display:flex;overflow-y:auto}.med-feed-event-detail__facts{flex-direction:column;gap:8px;display:flex}.med-feed-event-detail__fact{background:var(--feed-surface-low);border-radius:16px;align-items:center;gap:12px;padding:10px 12px;display:flex}.med-feed-event-detail__icon{width:36px;height:36px;color:var(--feed-primary);background:var(--feed-surface);border-radius:12px;flex-shrink:0;justify-content:center;align-items:center;font-size:17px;display:inline-flex}.med-feed-event-detail__fact-text{flex-direction:column;min-width:0;display:flex}.med-feed-event-detail__label{color:var(--feed-outline);font-size:12px;line-height:16px}.med-feed-event-detail__value{color:var(--feed-text);font-size:14px;font-weight:600;line-height:20px}.med-feed-event-detail__text{color:var(--feed-text-secondary);white-space:pre-wrap;margin:0;font-size:14px;line-height:22px}@media (prefers-reduced-motion:reduce){.med-feed-event-detail{animation:none}}.med-feed-category-nav .ant-card-body,.med-feed-channels .ant-card-body{flex-direction:column;gap:2px;padding:4px 6px 8px;display:flex}.med-feed-sidebar-label{color:var(--feed-text-secondary);letter-spacing:.05em;text-transform:uppercase;padding:0 8px 6px;font-size:11px;font-weight:600}.med-feed-nav-item{width:100%;min-height:46px;color:var(--feed-text);text-align:left;cursor:pointer;background:0 0;border:0;border-radius:8px;align-items:center;gap:14px;padding:10px 12px;font-size:15px;transition:background .15s;display:flex}.med-feed-nav-item:hover{background:var(--feed-surface-low)}.med-feed-nav-item.med-feed-nav-item--active,.med-feed-nav-item.med-feed-nav-item--active:hover{color:var(--feed-text);background:var(--feed-surface-container)}.med-feed-nav-item__icon{width:28px;color:var(--feed-text-secondary);flex-shrink:0;justify-content:center;font-size:26px;display:inline-flex}.med-feed-nav-item__label{white-space:nowrap;text-overflow:ellipsis;flex:1;min-width:0;overflow:hidden}.med-feed-nav-item__chevron{width:28px;height:28px;color:var(--feed-text);background:var(--feed-surface-container);border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;font-size:12px;transition:transform .2s;display:inline-flex}.med-feed-nav-item__chevron--up{transform:rotate(180deg)}.med-feed-nav-item__badge{border-radius:999px;flex-shrink:0;padding:0 6px;font-size:11px;font-weight:600;line-height:18px}.med-feed-nav-item__badge--primary{color:#fff;background:var(--feed-primary)}.med-feed-nav-item__badge--danger{color:#93000a;background:#ffdad6}.med-feed-nav-item__badge--muted{color:var(--feed-text-secondary)}.med-feed-category-nav__head{color:var(--feed-text-secondary);letter-spacing:.05em;text-transform:uppercase;padding:4px 8px 8px;font-size:11px;font-weight:700}.med-feed-category-nav__divider{background:var(--feed-surface-container);height:1px;margin:6px 8px}.med-feed-layout{--feed-sticky-top:76px;grid-template-columns:1fr;gap:20px;width:100%;min-height:calc(100vh - 40px);margin-inline:auto;display:grid}.med-feed-layout__left,.med-feed-layout__right{flex-direction:column;gap:16px;min-width:0;display:none}.med-feed-layout__divider{border:0;border-top:1px solid var(--feed-surface-container);flex-shrink:0;width:100%;height:0;margin:0;display:none}.med-feed-events+.med-feed-layout__divider:has(+.med-feed-banner){display:block}.med-feed-banner{flex-shrink:0}.med-feed-banner__image{width:100%;height:auto;box-shadow:var(--feed-shadow);border-radius:12px;display:block}.med-feed-banner__link{cursor:pointer;border-radius:12px;transition:opacity .15s;display:block}.med-feed-banner__link:hover{opacity:.92}.med-feed-layout__left,.med-feed-layout__right{scrollbar-color:transparent transparent;scrollbar-gutter:stable;scrollbar-width:thin}.med-feed-layout__left:hover,.med-feed-layout__right:hover{scrollbar-color:#ced0d4 transparent}.med-feed-layout__left::-webkit-scrollbar{width:6px}.med-feed-layout__right::-webkit-scrollbar{width:6px}.med-feed-layout__left::-webkit-scrollbar-thumb{background:0 0;border-radius:6px}.med-feed-layout__right::-webkit-scrollbar-thumb{background:0 0;border-radius:6px}.med-feed-layout__left:hover::-webkit-scrollbar-thumb{background:#ced0d4}.med-feed-layout__right:hover::-webkit-scrollbar-thumb{background:#ced0d4}.med-feed-layout__main{flex-direction:column;gap:16px;width:80%;min-width:0;margin-inline:auto;display:flex}.med-feed-layout__toolbar{justify-content:space-between;align-items:center;min-height:24px;display:flex}.med-feed-layout__filter.ant-tag{color:var(--feed-primary);background:var(--feed-surface-container);border:0;border-radius:999px;padding:2px 10px;font-size:12px;font-weight:600}@media (width>=1200px){.med-feed-layout{grid-template-columns:260px minmax(0,1fr) 320px}.med-feed-layout__left,.med-feed-layout__right{top:var(--feed-sticky-top);max-height:calc(100vh - var(--feed-sticky-top) - 20px);align-self:start;display:flex;position:sticky;overflow-y:auto}}@media (width>=900px) and (width<=1199px){.med-feed-layout{grid-template-columns:minmax(0,1fr) 280px}.med-feed-layout__right{top:var(--feed-sticky-top);max-height:calc(100vh - var(--feed-sticky-top) - 20px);align-self:start;display:flex;position:sticky;overflow-y:auto}}.med-feed-left-rail{flex-direction:column;gap:16px;display:flex}.med-feed-calendar .ant-card-body{padding:12px}.med-feed-calendar__head{justify-content:space-between;align-items:center;margin-bottom:8px;display:flex}.med-feed-calendar__nav{width:28px;height:28px;color:var(--feed-text-secondary);cursor:pointer;background:0 0;border:0;border-radius:8px;justify-content:center;align-items:center;font-size:16px;font-weight:700;line-height:1;transition:background .15s;display:inline-flex}.med-feed-calendar__nav:hover{color:var(--feed-primary);background:var(--feed-surface-low)}.med-feed-calendar__label{color:var(--feed-text);font-size:13px;font-weight:700}.med-feed-calendar__range{color:var(--feed-primary);text-align:center;background:rgba(var(--feed-primary-rgb), .08);border-radius:8px;margin-bottom:6px;padding:4px 8px;font-size:12px;font-weight:700}.med-feed-calendar__range--empty{color:var(--feed-outline);background:var(--feed-surface-low);font-weight:500}.med-feed-calendar__weekdays{grid-template-columns:repeat(7,1fr);margin-bottom:4px;display:grid}.med-feed-calendar__weekdays span{color:var(--feed-outline);text-align:center;text-transform:uppercase;font-size:10px;font-weight:700}.med-feed-calendar__grid{grid-template-columns:repeat(7,1fr);gap:2px;display:grid}.med-feed-calendar__day{aspect-ratio:1;color:var(--feed-text);cursor:pointer;background:0 0;border:0;border-radius:8px;justify-content:center;align-items:center;font-size:12px;font-weight:500;transition:background .15s,color .15s;display:inline-flex}.med-feed-calendar__day:hover{background:var(--feed-surface-low)}.med-feed-calendar__day--range{color:var(--feed-primary);background:rgba(var(--feed-primary-rgb), .1);border-radius:0;font-weight:600}.med-feed-calendar__day--today{color:var(--feed-primary);font-weight:700}.med-feed-calendar__day--active{color:#fff;background:var(--feed-primary);box-shadow:0 2px 8px rgba(var(--feed-primary-rgb), .35);font-weight:700}.med-feed-calendar__day--active:hover{background:var(--feed-primary)}.med-feed-calendar__day--disabled{color:#0003;cursor:not-allowed}.med-feed-calendar__day--disabled:hover{background:0 0}.med-feed-calendar__clear{width:100%;color:var(--feed-primary);cursor:pointer;background:0 0;border:0;border-radius:8px;margin-top:8px;padding:6px 0;font-size:12px;font-weight:600}.med-feed-calendar__clear:hover:not(:disabled){background:var(--feed-surface-low)}.med-feed-calendar__clear:disabled{color:#00000040;cursor:default}.med-feed-content{flex:1;padding:20px}@media (width<=576px){.med-feed-content{padding:12px 0}}.med-feed-root,.med-feed-portal{--feed-primary:#2ea053;--feed-primary-rgb:46, 160, 83;--feed-like:#1877f2;--feed-like-rgb:24, 119, 242;--feed-primary-hover:#3fb866;--feed-primary-active:#248045;--feed-primary-dark:#1b6b3a;--feed-primary-light:#6fcf8c;--feed-primary-border:#b7e3c6;--feed-primary-soft:#effaf2;--feed-primary-soft-strong:#d3f0dc;--feed-bg:#f6fbf7;--feed-surface:#fff;--feed-surface-low:#eef8f1;--feed-surface-low-rgb:238, 248, 241;--feed-surface-container:#dcf0e3;--feed-border:#dcf0e3;--feed-text:#0b1c30;--feed-text-secondary:#434655;--feed-outline:#737686;--feed-secondary:#006a61;--feed-shadow-sm:0 1px 2px #0b1c300f;--feed-radius:12px;--feed-gap:16px;--feed-shadow:0 1px 3px #0b1c300f, 0 1px 2px #0b1c300a}.med-feed-root{background:var(--feed-bg);min-height:100%;color:var(--feed-text);flex-direction:column;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;font-size:14px;display:flex}.med-feed-root .ant-card{border-radius:var(--feed-radius);box-shadow:var(--feed-shadow)}.med-feed-center{flex:1;justify-content:center;align-items:center;padding:48px 16px;display:flex}.med-feed-column{gap:var(--feed-gap);flex-direction:column;width:100%;max-width:680px;margin:0 auto;display:flex}.med-feed-wide{width:100%;max-width:1200px;margin:0 auto}.med-feed-stack{gap:var(--feed-gap);flex-direction:column;display:flex}.med-feed-root .ant-dropdown-menu{background:#fff;border:1px solid #e4e6eb;border-radius:8px;padding:8px 0;box-shadow:0 12px 28px #0003,0 2px 4px #0000001a}.med-feed-root .ant-dropdown-menu-item{color:#050505;border-radius:0;align-items:center;gap:12px;min-height:36px;padding:6px 16px;font-size:14px;line-height:20px;display:flex}.med-feed-root .ant-dropdown-menu-item:hover,.med-feed-root .ant-dropdown-menu-item-active,.med-feed-root .ant-dropdown-menu-item-selected{color:#050505;background:#f2f2f2}.med-feed-root .ant-dropdown-menu-item .anticon{color:#65676b;font-size:16px}.med-feed-root .ant-dropdown-menu-item-divider{background:#e4e6eb;margin:8px 0}.med-feed-root .ant-btn-primary{background:var(--feed-primary);border-color:var(--feed-primary)}.med-feed-root .ant-btn-primary:hover,.med-feed-root .ant-btn-primary:focus{background:var(--feed-primary-hover);border-color:var(--feed-primary-hover)}.med-feed-root .ant-btn-primary:active{background:var(--feed-primary-active);border-color:var(--feed-primary-active)}.med-feed-root .ant-btn-link{color:var(--feed-primary)}.med-feed-root .ant-switch-checked,.med-feed-root .ant-radio-button-wrapper-checked,.med-feed-root .ant-pagination-item-active{border-color:var(--feed-primary)}.med-feed-root .ant-switch-checked{background:var(--feed-primary)}.med-feed-root .ant-pagination-item-active a{color:var(--feed-primary)}.med-feed-format-bar{background:var(--feed-surface-low);border-radius:10px;flex-wrap:wrap;align-items:center;gap:2px;margin-bottom:8px;padding:4px 6px;display:flex}.med-feed-format-bar .ant-btn{width:32px;height:32px;color:var(--feed-text-secondary);border-radius:8px}.med-feed-format-bar .ant-btn:hover{color:var(--feed-text);background:var(--feed-surface)}.med-feed-format-bar__divider{background:var(--feed-surface-container);width:1px;height:20px;margin:0 6px}.med-feed-format-bar__quote{font-size:18px;line-height:1}.med-feed-format-bar .ant-btn.med-feed-format-bar__btn--active{color:var(--feed-primary,#0866ff);background:var(--feed-surface,#fff);box-shadow:inset 0 0 0 1px var(--feed-primary,#0866ff)}.med-feed-format-bar .ant-btn:disabled{color:#00000040;background:0 0}.med-feed-format-bar__size-icon{font-size:13px;font-weight:700;line-height:1}.med-feed-format-bar__sizes{flex-direction:column;gap:2px;min-width:120px;display:flex}.med-feed-format-bar__size{color:var(--feed-text);cursor:pointer;background:0 0;border:0;border-radius:8px;align-items:baseline;gap:10px;padding:4px 10px;font-weight:700;line-height:1.3;display:flex}.med-feed-format-bar__size:hover{background:var(--feed-surface-low)}.med-feed-format-bar__size--active{color:var(--feed-primary,#0866ff);background:var(--feed-surface-low)}.med-feed-format-bar__size-label{color:var(--feed-text-secondary);font-size:12px;font-weight:400}.med-feed-format-bar__colors{gap:6px;display:flex}.med-feed-format-bar__swatch{cursor:pointer;background:#fff;border:1px solid #e5e7eb;border-radius:50%;justify-content:center;align-items:center;width:28px;height:28px;font-size:14px;font-weight:700;transition:border-color .15s,box-shadow .15s;display:inline-flex}.med-feed-format-bar__swatch:hover{border-color:currentColor}.med-feed-format-bar__swatch--active{box-shadow:inset 0 0 0 2px}.med-feed-picker-icon.ant-btn .anticon{font-size:22px}.med-feed-picker-icon.ant-btn:not(:disabled):hover{background:var(--feed-surface-low)}.med-feed-attached__images{flex-wrap:wrap;gap:8px;display:flex}.med-feed-attached__thumb{background:var(--feed-surface-low);border-radius:8px;justify-content:center;align-items:center;width:96px;height:96px;display:flex;position:relative;overflow:hidden}.med-feed-attached__thumb video,.med-feed-attached__thumb img{object-fit:cover;width:100%;height:100%}.med-feed-attached__play{color:#fff;filter:drop-shadow(0 1px 4px #00000080);font-size:28px;position:absolute}.med-feed-attached__remove{position:absolute;top:4px;right:4px}.med-feed-composer-form{flex-direction:column;gap:14px;font-family:Segoe UI,Helvetica,Arial,sans-serif;display:flex}.med-feed-composer-form__author{align-items:center;gap:10px;display:flex}.med-feed-composer-form__author-info{flex-direction:column;gap:4px;min-width:0;display:flex}.med-feed-composer-form__author-name{color:#050505;font-size:15px;font-weight:600;line-height:20px}.med-feed-composer-form__pills{flex-wrap:wrap;gap:6px;display:flex}.med-feed-composer-form__pills .ant-select{font-size:12px;font-weight:600}.med-feed-composer-form__pills .ant-select:not(.ant-select-customize-input) .ant-select-selector{background:#e4e6eb;border:0;border-radius:6px;height:24px;min-height:24px;padding:0 8px}.med-feed-composer-form__pills .ant-select-selector:hover{background:#d8dade!important}.med-feed-composer-form__pills .ant-select-selection-placeholder,.med-feed-composer-form__pills .ant-select-selection-item{color:#050505;line-height:24px}.med-feed-composer-form__notice{color:#050505;background:#e7f3ff;border-radius:8px;align-items:flex-start;gap:8px;padding:10px 12px;font-size:12px;line-height:16px;display:flex}.med-feed-composer-form__notice .anticon{color:#0064d1;margin-top:2px;font-size:14px}.med-feed-composer-form__body{flex-direction:column;gap:10px;max-height:52vh;padding-right:2px;display:flex;overflow-y:auto}.med-feed-composer-form__body::-webkit-scrollbar{width:6px}.med-feed-composer-form__body::-webkit-scrollbar-thumb{background:#ced0d4;border-radius:6px}.med-feed-composer-form__title.ant-input{color:#050505;padding:6px 0 2px;font-size:16px;font-weight:600;box-shadow:none!important;border:0!important}.med-feed-composer-form__text.ant-mentions,.med-feed-composer-form__text.ant-mentions>textarea{color:#050505;resize:none;background:0 0;padding:6px 0;font-size:15px;line-height:20px;box-shadow:none!important;border:0!important}.med-feed-composer-form__text--large.ant-mentions,.med-feed-composer-form__text--large.ant-mentions>textarea{font-size:24px!important;line-height:28px!important}.med-feed-composer-form__text.ant-mentions>textarea::placeholder,.med-feed-composer-form__title.ant-input::placeholder{color:#8a8d91}.med-feed-composer-form__toolbar{border-top:0;justify-content:space-between;align-items:center;margin-top:0;padding:8px 0 4px;display:flex}.med-feed-composer-form__toolbar-group{align-items:center;gap:4px;display:inline-flex}.med-feed-composer-form__toolbar-btn.ant-btn{color:#65676b;background:var(--feed-surface-container);width:36px;height:36px;box-shadow:none;border:0;border-radius:50%;justify-content:center;align-items:center;padding:0;font-size:15px;font-weight:500;display:inline-flex}.med-feed-composer-form__toolbar-btn.ant-btn:hover,.med-feed-composer-form__toolbar-btn.ant-btn:focus{color:#050505;background:#d7e5ff}.med-feed-composer-form__toolbar-btn.ant-btn:active{background:#c9dcff}.med-feed-composer-form__toolbar-btn .anticon{font-size:20px}.med-feed-composer-form__color-grid{grid-template-columns:repeat(4,36px);gap:10px;padding:6px;display:grid}.med-feed-composer-form__color-btn{cursor:pointer;border:2px solid #e4e6eb;border-radius:50%;width:36px;height:36px;transition:transform .12s,box-shadow .15s,border-color .15s;box-shadow:0 1px 2px #00000014,inset 0 0 0 1px #0000000a}.med-feed-composer-form__color-btn:hover{transform:scale(1.08);box-shadow:0 2px 6px #0000001f}.med-feed-composer-form__color-btn[style*="var(--feed-primary)"]{box-shadow:0 0 0 2px #fff,0 0 0 4px #0866ff}.med-feed-composer-form__location-tag{background:#e7f3ff;border:0;border-radius:12px;align-self:flex-start;margin:2px 0 0;padding:2px 8px;font-size:13px}.med-feed-composer-form__add{background:#fff;border:1px solid #ced0d4;border-radius:8px;justify-content:space-between;align-items:center;gap:8px;padding:8px 12px 8px 16px;display:flex;box-shadow:0 1px 2px #0000000d}.med-feed-composer-form__add-label{color:#050505;font-size:15px;font-weight:600;line-height:20px}.med-feed-composer-form__add-actions{align-items:center;gap:2px;display:inline-flex}.med-feed-composer-form__actions{gap:8px;display:flex}.med-feed-composer-form__submit.ant-btn{height:40px;box-shadow:none;background:#0866ff;border:0;border-radius:6px;font-size:16px;font-weight:600}.med-feed-composer-form__submit.ant-btn:not(:disabled):hover{background:#075eec}.med-feed-composer-form__submit.ant-btn:disabled{color:#bcc0c4;background:#e4e6eb}.med-feed-composer-form__submit.ant-btn:not(:disabled):active{background:#0752d1;transform:scale(.99)}.med-feed-composer-form__toolbar-btn--active.ant-btn{color:var(--feed-primary);background:var(--feed-surface-low)}.med-feed-composer-split{grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:start;gap:20px;display:grid}.med-feed-composer-split__preview{background:var(--feed-bg,var(--feed-bg));border-radius:12px;max-height:calc(100vh - 200px);padding:12px;position:sticky;top:0;overflow-y:auto}.med-feed-composer-split__preview .med-feed-post.ant-card{box-shadow:var(--feed-shadow)}.med-feed-composer-split__empty{color:var(--feed-outline);text-align:center;padding:48px 16px}@media (width<=900px){.med-feed-composer-split{grid-template-columns:minmax(0,1fr)}}.med-feed-create-modal.ant-modal .ant-modal-content{background:var(--feed-surface);border:1px solid #0b1c300f;border-radius:20px;padding:0;overflow:hidden;box-shadow:0 24px 64px #0b1c3029,0 4px 16px #0b1c300f}.med-feed-create-modal.ant-modal .ant-modal-header{text-align:center;border-bottom:1px solid var(--feed-surface-container);background:linear-gradient(#fff 0%,#fbfcff 100%);margin:0;padding:18px 100px 18px 24px;position:relative}.med-feed-create-modal.ant-modal .ant-modal-title{color:var(--feed-text);letter-spacing:-.01em;font-size:18px;font-weight:700}.med-feed-create-modal.ant-modal .ant-modal-close{margin:0;top:14px;right:16px}.med-feed-create-modal.ant-modal .ant-modal-close-x{width:36px;height:36px;color:var(--feed-text-secondary);background:var(--feed-surface-container);border-radius:50%;justify-content:center;align-items:center;font-size:15px;line-height:1;transition:background .2s,color .2s,transform .15s;display:flex}.med-feed-create-modal.ant-modal .ant-modal-close-x:hover{color:var(--feed-text);background:#d7e5ff;transform:rotate(90deg)}.med-feed-create-modal.ant-modal .ant-modal-body{padding:20px 24px 24px}.med-feed-create-modal__title{line-height:1.3;display:block;position:static}.med-feed-create-modal__tools{align-items:center;gap:8px;display:inline-flex;position:absolute;top:14px;right:60px}.med-feed-create-modal__tools .ant-btn{width:36px;height:36px;color:var(--feed-text-secondary);background:var(--feed-surface-container);border:0;border-radius:50%;justify-content:center;align-items:center;transition:background .2s,color .2s;display:inline-flex}.med-feed-create-modal__tools .ant-btn:hover{color:var(--feed-primary);background:#d7e5ff}.med-feed-create-modal__tools .med-feed-create-modal__tool--active.ant-btn{color:#fff;background:var(--feed-primary);box-shadow:0 4px 12px rgba(var(--feed-primary-rgb), .35)}.med-feed-create-modal--fullscreen.ant-modal .ant-modal-content{height:100vh;box-shadow:none;border:0;border-radius:0;flex-direction:column;display:flex}.med-feed-create-modal--fullscreen.ant-modal .ant-modal-body{flex:1;min-height:0;padding:20px 32px;overflow-y:auto}.med-feed-create-modal--fullscreen .med-feed-composer-split{grid-template-columns:minmax(0,3fr) minmax(0,2fr);gap:32px;max-width:1600px;margin:0 auto}.med-feed-create-modal--fullscreen .med-feed-composer-split__preview{max-height:calc(100vh - 120px)}.med-feed-confirm-modal.ant-modal .ant-modal-content{background:var(--feed-surface);border:1px solid #0b1c300f;border-radius:16px;overflow:hidden;box-shadow:0 20px 48px #0b1c3024,0 4px 12px #0b1c300d}.med-feed-confirm-modal.ant-modal .ant-modal-header{background:0 0;border-bottom:none;padding:22px 56px 0 24px}.med-feed-confirm-modal.ant-modal .ant-modal-title{color:var(--feed-text);letter-spacing:-.01em;font-size:17px;font-weight:700;line-height:1.4}.med-feed-confirm-modal.ant-modal .ant-modal-close{color:var(--feed-text-secondary);top:16px;right:16px}.med-feed-confirm-modal.ant-modal .ant-modal-close-x{background:var(--feed-surface-container);border-radius:50%;justify-content:center;align-items:center;width:32px;height:32px;font-size:14px;line-height:1;transition:background .2s,color .2s;display:flex}.med-feed-confirm-modal.ant-modal .ant-modal-close:hover,.med-feed-confirm-modal.ant-modal .ant-modal-close:focus{color:var(--feed-text)}.med-feed-confirm-modal.ant-modal .ant-modal-close:hover .ant-modal-close-x{background:#d7e5ff}.med-feed-confirm-modal.ant-modal .ant-modal-body{padding:10px 24px 8px}.med-feed-confirm-modal.ant-modal .ant-modal-body p{color:var(--feed-text-secondary);margin:0;font-size:14px;line-height:1.6}.med-feed-confirm-modal.ant-modal .ant-modal-footer{border-top:none;padding:16px 24px 22px}.med-feed-confirm-modal.ant-modal .ant-modal-footer .ant-btn{height:40px;box-shadow:none;border-radius:10px;padding:0 20px;font-size:14px;font-weight:600;transition:background .2s,color .2s,border-color .2s}.med-feed-confirm-modal.ant-modal .ant-modal-footer .ant-btn+.ant-btn{margin-left:12px}.med-feed-confirm-modal.ant-modal .ant-modal-footer .ant-btn-text{color:var(--feed-text-secondary)}.med-feed-confirm-modal.ant-modal .ant-modal-footer .ant-btn-text:hover,.med-feed-confirm-modal.ant-modal .ant-modal-footer .ant-btn-text:focus{color:var(--feed-text);background:var(--feed-surface-low);border-color:#0000}.med-feed-confirm-modal.ant-modal .ant-modal-footer .ant-btn-text:active{color:var(--feed-text);background:var(--feed-surface-container);border-color:#0000}.med-feed-confirm-modal.ant-modal .ant-modal-footer .ant-btn-text:disabled{color:#00000040;background:0 0;border-color:#0000}.med-feed-confirm-modal.ant-modal .ant-modal-footer .ant-btn-primary{background:var(--feed-primary);border-color:var(--feed-primary)}.med-feed-confirm-modal.ant-modal .ant-modal-footer .ant-btn-primary:hover,.med-feed-confirm-modal.ant-modal .ant-modal-footer .ant-btn-primary:focus{background:var(--feed-primary-hover);border-color:var(--feed-primary-hover)}.med-feed-confirm-modal.ant-modal .ant-modal-footer .ant-btn-primary:active{background:var(--feed-primary-active);border-color:var(--feed-primary-active)}.med-feed-create-button.ant-btn{background:linear-gradient(135deg, var(--feed-primary-hover) 0%, var(--feed-primary) 55%, var(--feed-primary-active) 100%);height:40px;box-shadow:0 6px 16px rgba(var(--feed-primary-rgb), .28);border:0;border-radius:999px;align-items:center;gap:10px;padding:0 20px 0 6px;font-weight:600;line-height:1;transition:transform .15s,box-shadow .15s;display:inline-flex}.med-feed-create-button.ant-btn:hover,.med-feed-create-button.ant-btn:focus{background:linear-gradient(135deg, var(--feed-primary-hover) 0%, var(--feed-primary) 55%, var(--feed-primary-active) 100%);box-shadow:0 10px 22px rgba(var(--feed-primary-rgb), .34);transform:translateY(-1px)}.med-feed-create-button.ant-btn:active{box-shadow:0 4px 10px rgba(var(--feed-primary-rgb), .28);transform:translateY(0)}.med-feed-create-button__icon{background:#ffffff38;border-radius:50%;flex-shrink:0;width:28px;height:28px;position:relative}.med-feed-create-button__icon:before,.med-feed-create-button__icon:after{content:"";background:#fff;border-radius:1px;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.med-feed-create-button__icon:before{width:12px;height:2px}.med-feed-create-button__icon:after{width:2px;height:12px}.med-feed-page-header{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;margin-bottom:4px;display:flex}.med-feed-page-header__title.ant-typography{margin:0}.med-feed-wide .med-feed-page-header{margin-bottom:var(--feed-gap)}@media (width<=576px){.med-feed-page-header{padding:0 12px}}.med-feed-image-field{border-radius:16px;width:100%}.med-feed-image-field__drop{background:var(--feed-surface-low);border:2px dashed var(--feed-primary-border);cursor:pointer;border-radius:16px;width:100%;padding:0;transition:border-color .15s,background .15s;display:block;position:relative;overflow:hidden}.med-feed-image-field__drop:hover,.med-feed-image-field--drag .med-feed-image-field__drop{background:var(--feed-primary-soft);border-color:var(--feed-primary)}.med-feed-image-field__preview{object-fit:cover;width:100%;height:100%;display:block}.med-feed-image-field__placeholder{height:100%;color:var(--feed-primary);flex-direction:column;justify-content:center;align-items:center;gap:4px;font-size:13px;display:flex}.med-feed-image-field__placeholder .anticon{font-size:32px}.med-feed-image-field__placeholder strong{color:var(--feed-text);font-size:15px}.med-feed-image-field__placeholder span:last-child{color:var(--feed-outline)}.med-feed-image-field__change{color:#fff;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);background:#0000008c;border-radius:999px;align-items:center;gap:6px;padding:6px 14px;font-size:13px;font-weight:600;display:inline-flex;position:absolute;bottom:12px;right:12px}.med-feed-image-field__busy{color:var(--feed-primary);background:#ffffffbf;justify-content:center;align-items:center;gap:8px;font-weight:600;display:flex;position:absolute;inset:0}.med-feed-events-admin__thumb{object-fit:cover;border-radius:6px;width:64px;height:48px;display:block}.med-feed-events-form-modal .ant-modal-content{background:var(--feed-surface);border-radius:24px;overflow:hidden;box-shadow:0 24px 64px #0b1c3047}.med-feed-events-form-modal .ant-modal-header{background:0 0;border-bottom:0;padding:24px 28px 8px}.med-feed-events-form-modal .ant-modal-body{max-height:68vh;padding:12px 28px 8px;overflow-y:auto}.med-feed-events-form-modal .ant-modal-footer{border-top:0;justify-content:flex-end;gap:8px;padding:16px 28px 24px;display:flex}.med-feed-events-form-modal .ant-modal-close-x{width:48px;height:56px;color:var(--feed-outline);justify-content:center;align-items:center;display:flex}.med-feed-events-form-modal .ant-form-item{margin-bottom:16px}.med-feed-events-form-modal .ant-form-item-label>label{color:var(--feed-text);font-size:13px;font-weight:600}.med-feed-events-form-modal .ant-input,.med-feed-events-form-modal .ant-input-affix-wrapper,.med-feed-events-form-modal .ant-picker{background:var(--feed-surface-low);border-color:#0000;border-radius:12px}.med-feed-events-form-modal .ant-input:hover,.med-feed-events-form-modal .ant-picker:hover{border-color:var(--feed-primary-border)}.med-feed-events-form-modal .ant-input:focus,.med-feed-events-form-modal .ant-input-focused,.med-feed-events-form-modal .ant-picker-focused{background:var(--feed-surface);border-color:var(--feed-primary);box-shadow:0 0 0 3px rgba(var(--feed-primary-rgb), .16)}.med-feed-events-form-modal .ant-btn{border-radius:999px;height:40px;padding:0 20px;font-weight:600}.med-feed-events-form__head{flex-direction:column;gap:2px;display:flex}.med-feed-events-form__head strong{color:var(--feed-text);font-size:20px;font-weight:800;line-height:28px}.med-feed-events-form__head span{color:var(--feed-outline);font-size:13px;font-weight:400}.med-feed-events-form__row{grid-template-columns:1fr 1fr;gap:12px;display:grid}@media (width<=520px){.med-feed-events-form__row{grid-template-columns:1fr}}.med-feed-date-range{flex-wrap:wrap;align-items:center;gap:8px;display:inline-flex}.med-feed-pill-fields .ant-input-affix-wrapper,.med-feed-pill-fields .ant-picker,.med-feed-pill-fields .ant-select:not(.ant-select-customize-input) .ant-select-selector{background:var(--feed-surface-low);height:38px;box-shadow:none;border-color:#0000;border-radius:999px;padding:0 14px;transition:background .15s,border-color .15s,box-shadow .15s}.med-feed-pill-fields .ant-select-single .ant-select-selector .ant-select-selection-item,.med-feed-pill-fields .ant-select-single .ant-select-selector .ant-select-selection-placeholder{line-height:36px}.med-feed-pill-fields .ant-select-single .ant-select-selector .ant-select-selection-search{left:14px;right:14px}.med-feed-pill-fields .ant-select-single .ant-select-selector .ant-select-selection-search-input{height:36px}.med-feed-pill-fields .ant-input-affix-wrapper>input.ant-input{background:0 0}.med-feed-pill-fields .ant-input-prefix,.med-feed-pill-fields .ant-select-arrow{color:var(--feed-outline)}.med-feed-pill-fields .ant-select-arrow{right:14px}.med-feed-pill-fields .ant-input-affix-wrapper:hover,.med-feed-pill-fields .ant-picker:hover,.med-feed-pill-fields .ant-select:not(.ant-select-disabled):hover .ant-select-selector{border-color:var(--feed-surface-container)}.med-feed-pill-fields .ant-input-affix-wrapper-focused,.med-feed-pill-fields .ant-picker-focused,.med-feed-pill-fields .ant-select-focused:not(.ant-select-disabled) .ant-select-selector,.med-feed-pill-fields .ant-select-open .ant-select-selector{background:var(--feed-surface);border-color:rgba(var(--feed-primary-rgb), .5)!important;box-shadow:0 0 0 3px rgba(var(--feed-primary-rgb), .12)!important}.med-feed-table-post{width:100%;color:inherit;text-align:left;cursor:pointer;background:0 0;border:0;align-items:center;gap:12px;padding:0;display:flex}.med-feed-table-post img,.med-feed-table-post__placeholder{border-radius:10px;flex-shrink:0;width:52px;height:52px}.med-feed-table-post img{object-fit:cover}.med-feed-table-post__placeholder{color:var(--feed-primary);background:var(--feed-surface-container);justify-content:center;align-items:center;font-weight:700;display:inline-flex}.med-feed-table-post__body{flex-direction:column;gap:2px;min-width:0;display:flex}.med-feed-table-post__text.ant-typography{color:var(--feed-text);margin:0;font-weight:600}.med-feed-table-post:hover .med-feed-table-post__text.ant-typography{color:var(--feed-primary)}.med-feed-table-post__meta{color:var(--feed-outline);font-size:12px}.med-feed-review-drawer .med-feed-post{box-shadow:none}.med-feed-manage{flex-direction:column;gap:20px;display:flex}.med-feed-manage .med-feed-page-header{margin-bottom:0}.med-feed-manage__tabs{border-bottom:1px solid var(--feed-border);scrollbar-width:none;gap:4px;padding:0 12px;display:flex;overflow:auto hidden}.med-feed-manage__tabs::-webkit-scrollbar{display:none}.med-feed-manage__tab{--tone:var(--feed-primary);height:48px;color:var(--feed-text-secondary);white-space:nowrap;cursor:pointer;background:0 0;border:0;flex-shrink:0;align-items:center;gap:8px;padding:0 12px;font-size:14px;font-weight:500;transition:color .15s;display:inline-flex;position:relative}.med-feed-manage__tab:after{content:"";background:0 0;border-radius:2px 2px 0 0;height:2px;position:absolute;bottom:0;left:12px;right:12px}.med-feed-manage__tab:hover{color:var(--feed-text)}.med-feed-manage__tab--pending{--tone:#4f46e5}.med-feed-manage__tab--approved{--tone:#0f766e}.med-feed-manage__tab--published{--tone:#15803d}.med-feed-manage__tab--unpublished{--tone:#b45309}.med-feed-manage__tab--deleted{--tone:#6b7280}.med-feed-manage__tab--active{color:var(--feed-text);font-weight:600}.med-feed-manage__tab--active:after{background:var(--tone)}.med-feed-manage__tab-count{min-width:22px;color:var(--feed-text-secondary);text-align:center;background:var(--feed-surface-low);border-radius:999px;padding:0 7px;font-size:12px;font-weight:600;line-height:20px}.med-feed-manage__tab--active .med-feed-manage__tab-count{color:#fff;background:var(--tone)}.med-feed-manage__panel{background:var(--feed-surface);border:1px solid var(--feed-border);border-radius:var(--feed-radius);box-shadow:var(--feed-shadow);overflow:hidden}.med-feed-manage__toolbar{border-bottom:1px solid var(--feed-border);flex-wrap:wrap;align-items:center;gap:12px;padding:16px;display:flex}.med-feed-manage__search{flex:1;min-width:240px;max-width:420px}.med-feed-manage__clear.ant-btn{color:var(--feed-text-secondary);padding:0 4px}.med-feed-manage__clear.ant-btn:hover{color:#b91c1c}.med-feed-manage__bulk{color:#3730a3;background:#eef2ff;border-bottom:1px solid #c7d2fe;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;padding:10px 16px;display:flex}.med-feed-manage-table .ant-table-thead>tr>th{color:var(--feed-text-secondary);letter-spacing:.05em;text-transform:uppercase;background:var(--feed-surface-low);font-size:11px;font-weight:600}.med-feed-manage-table .ant-table-tbody>tr>td{padding-top:14px;padding-bottom:14px}.med-feed-manage-table .ant-table-tbody>tr:hover>td{background:#eff4ff99}.med-feed-manage-table .ant-table-pagination.ant-pagination{margin:0;padding:14px 16px}.med-feed-table-date{color:var(--feed-outline);font-size:12px}.med-feed-table-author{align-items:center;gap:10px;display:flex}.med-feed-table-author>span:last-child{flex-direction:column;min-width:0;line-height:18px;display:flex}.med-feed-table-author strong{color:var(--feed-text);font-weight:600}.med-feed-table-author>span:last-child>span{color:var(--feed-outline);font-size:12px}.med-feed-table-engagement{color:var(--feed-text-secondary);white-space:nowrap;gap:12px;font-size:13px;display:inline-flex}.med-feed-table-engagement .anticon{color:var(--feed-outline)}.med-feed-manage__action.ant-btn{border-radius:8px;width:32px;height:32px}.med-feed-manage__action--primary.ant-btn{color:#fff;background:var(--feed-primary);border-color:var(--feed-primary)}.med-feed-manage__action--primary.ant-btn:hover{color:#fff;background:var(--feed-primary-active);border-color:var(--feed-primary-active)}.med-feed-manage__action--danger.ant-btn{color:#b91c1c;border-color:#fecaca}.med-feed-manage__action--danger.ant-btn:hover{color:#991b1b;background:#fef2f2;border-color:#fca5a5}@media (width<=640px){.med-feed-manage__search{max-width:none}}.med-feed-table-status{flex-direction:column;align-items:flex-start;gap:4px;display:inline-flex}.med-feed-table-status .ant-tag{margin:0}.med-feed-banner-settings__panel{background:var(--feed-surface);max-width:560px;box-shadow:var(--feed-shadow);border-radius:16px;padding:24px}.med-feed-banner-settings__panel .ant-input{background:var(--feed-surface-low);border-color:#0000;border-radius:12px}.med-feed-banner-settings__panel .ant-input:focus{background:var(--feed-surface);border-color:var(--feed-primary);box-shadow:0 0 0 3px rgba(var(--feed-primary-rgb), .16)}.med-feed-banner-settings__panel .ant-form-item-label>label{color:var(--feed-text);font-weight:600}.med-feed-banner-settings__actions{align-items:center;gap:8px;display:flex}.med-feed-banner-settings__actions .ant-btn{border-radius:999px;height:40px;padding:0 20px;font-weight:600}.med-feed-categories{flex-direction:column;gap:20px;display:flex}.med-feed-categories .med-feed-page-header{margin-bottom:0}.med-feed-categories__panel{background:var(--feed-surface);border:1px solid var(--feed-border);border-radius:var(--feed-radius);box-shadow:var(--feed-shadow);overflow:hidden}.med-feed-categories__head{border-bottom:1px solid var(--feed-border);justify-content:space-between;align-items:baseline;gap:12px;padding:16px 20px;display:flex}.med-feed-categories__title{color:var(--feed-text);margin:0;font-size:15px;font-weight:600}.med-feed-categories__hint{color:var(--feed-outline);font-size:13px}.med-feed-categories-table .ant-table-thead>tr>th{color:var(--feed-text-secondary);letter-spacing:.05em;text-transform:uppercase;background:var(--feed-surface-low);font-size:11px;font-weight:600}.med-feed-categories-table .ant-table-tbody>tr>td{padding-top:14px;padding-bottom:14px}.med-feed-categories-table .ant-table-tbody>tr:hover>td{background:#eff4ff99}.med-feed-categories-table .ant-table-tbody>tr.med-feed-categories__row--hidden>td{color:var(--feed-outline)}.med-feed-category-chip{--tone:var(--feed-primary);min-width:0;color:var(--feed-text);align-items:center;gap:10px;font-weight:600;display:inline-flex}.med-feed-category-chip__dot{background:var(--tone);width:12px;height:12px;box-shadow:0 0 0 3px color-mix(in srgb, var(--tone) 18%, transparent);border-radius:4px;flex-shrink:0}.med-feed-category-chip__name{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.med-feed-categories__count{min-width:28px;color:var(--feed-text-secondary);text-align:center;background:var(--feed-surface-low);border-radius:999px;padding:1px 10px;font-size:12px;font-weight:600;display:inline-block}.med-feed-categories__action.ant-btn{border-radius:8px;width:32px;height:32px}.med-feed-categories__action--danger.ant-btn{color:#b91c1c;border-color:#fecaca}.med-feed-categories__action--danger.ant-btn:hover{color:#991b1b;background:#fef2f2;border-color:#fca5a5}.med-feed-category-color{align-items:center;gap:10px;display:flex}.med-feed-category-color input[type=color]{background:var(--feed-surface);cursor:pointer;border:1px solid #d9d9d9;border-radius:8px;flex-shrink:0;width:40px;height:32px;padding:2px}.med-feed-category-preview{color:var(--feed-outline);background:var(--feed-surface-low);border-radius:10px;align-items:center;gap:12px;margin-bottom:20px;padding:12px 14px;font-size:12px;display:flex}.med-feed-settings{flex-direction:column;gap:20px;display:flex}.med-feed-settings__tabs{border-bottom:1px solid var(--feed-border);gap:4px;display:flex}.med-feed-settings__tab{height:44px;color:var(--feed-text-secondary);align-items:center;padding:0 14px;font-size:14px;font-weight:500;text-decoration:none;display:inline-flex;position:relative}.med-feed-settings__tab:hover{color:var(--feed-text)}.med-feed-settings__tab--active{color:var(--feed-primary)}.med-feed-settings__tab--active:after{background:var(--feed-primary);content:"";border-radius:2px 2px 0 0;height:2px;position:absolute;bottom:-1px;left:14px;right:14px}@media (width<=640px){.med-feed-categories__head{flex-direction:column;gap:4px}}.med-feed-kpis{grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;display:grid}.med-feed-kpi{--tone:var(--feed-primary);--tone-soft:var(--feed-surface-low);background:var(--feed-surface);border:1px solid var(--feed-border);border-radius:var(--feed-radius);min-width:0;box-shadow:var(--feed-shadow);align-items:flex-start;gap:14px;padding:16px 18px;display:flex}.med-feed-kpi--posts,.med-feed-kpi--reactions{--tone:var(--feed-primary);--tone-soft:var(--feed-primary-soft)}.med-feed-kpi--comments{--tone:#0f766e;--tone-soft:#ecfdf5}.med-feed-kpi--shares{--tone:#7c3aed;--tone-soft:#f5f3ff}.med-feed-kpi__icon{width:40px;height:40px;color:var(--tone);background:var(--tone-soft);border-radius:10px;flex-shrink:0;justify-content:center;align-items:center;font-size:18px;display:inline-flex}.med-feed-kpi__body{flex-direction:column;flex:1;gap:2px;min-width:0;display:flex}.med-feed-kpi__title{color:var(--feed-text-secondary);letter-spacing:.04em;text-transform:uppercase;font-size:12px;font-weight:600}.med-feed-kpi__row{flex-wrap:wrap;align-items:baseline;gap:4px 10px;display:flex}.med-feed-kpi__value{color:var(--feed-text);font-size:26px;font-weight:700;line-height:34px}.med-feed-kpi__change{border-radius:999px;align-items:center;gap:3px;padding:0 7px;font-size:12px;font-weight:600;line-height:20px;display:inline-flex}.med-feed-kpi__change .anticon{font-size:10px}.med-feed-kpi__change--up{color:#047857;background:#ecfdf5}.med-feed-kpi__change--down{color:#b91c1c;background:#fef2f2}.med-feed-kpi__change--none{color:var(--feed-outline);padding:0;font-weight:400}.med-feed-kpi__detail{color:var(--feed-outline);white-space:nowrap;text-overflow:ellipsis;font-size:12px;line-height:18px;overflow:hidden}.med-feed-kpi__skeleton.ant-skeleton-element{width:100%;margin-top:6px}@media (width<=1200px){.med-feed-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (width<=576px){.med-feed-kpis{grid-template-columns:minmax(0,1fr)}}.med-feed-report-panel{height:100%}.med-feed-reports-grid{gap:var(--feed-gap);grid-template-columns:minmax(0,2fr) minmax(0,3fr);display:grid}@media (width<=1100px){.med-feed-reports-grid{grid-template-columns:minmax(0,1fr)}}.med-feed-dept-list{flex-direction:column;gap:14px;margin:0;padding:0;list-style:none;display:flex}.med-feed-dept-list__head{justify-content:space-between;align-items:baseline;gap:12px;display:flex}.med-feed-dept-list__name{color:var(--feed-text);white-space:nowrap;text-overflow:ellipsis;font-weight:600;overflow:hidden}.med-feed-dept-list__value{color:var(--feed-text-secondary);flex-shrink:0;font-size:12px}.med-feed-dept-list__value strong{color:var(--feed-text)}.med-feed-dept-list .ant-progress{margin:2px 0 0}.med-feed-report-person{align-items:center;gap:8px;min-width:0;display:flex}.med-feed-report-person>span:last-child{flex-direction:column;min-width:0;line-height:16px;display:flex}.med-feed-report-person strong{color:var(--feed-text);white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.med-feed-report-person>span:last-child>span{color:var(--feed-outline);font-size:11px}.med-feed-segmented.ant-radio-group{background:var(--feed-surface-low);border-radius:999px;align-items:center;height:38px;padding:3px;display:inline-flex}.med-feed-segmented .ant-radio-button-wrapper{height:32px;color:var(--feed-text-secondary);background:0 0;border:0;padding:0 18px;font-weight:500;line-height:32px;border-radius:999px!important}.med-feed-segmented .ant-radio-button-wrapper:before{display:none}.med-feed-segmented .ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled){color:var(--feed-primary);background:var(--feed-surface);box-shadow:0 1px 3px #0b1c301f}.med-feed-segmented .ant-radio-button-wrapper:focus-within{box-shadow:none}.med-feed-report-panel .ant-card-head{border-bottom-color:var(--feed-surface-container)}.med-feed-report-panel .ant-card-head-title{font-weight:600}.med-feed-report-tabs .ant-card-body{padding-top:4px}.med-feed-report-tabs .ant-tabs-tab{font-weight:500}.med-feed-report-tabs .ant-tabs-tab-active .ant-tabs-tab-btn{font-weight:600}.med-feed-report-toolbar{flex-wrap:wrap;align-items:center;gap:10px;margin-bottom:14px;display:flex}.med-feed-report-toolbar__search{flex:1;min-width:240px;max-width:420px}.med-feed-report-muted{color:var(--feed-outline);font-size:12px}.med-feed-inline-user{align-items:center;gap:8px;display:inline-flex}.med-feed-top-rank{width:26px;height:26px;color:var(--feed-text-secondary);background:var(--feed-surface-low);border-radius:50%;justify-content:center;align-items:center;font-weight:700;display:inline-flex}.med-feed-top-rank--top{color:#fff;background:var(--feed-primary)}.med-feed-admin{background:var(--feed-bg);flex:1;grid-template-columns:248px minmax(0,1fr);min-height:100%;display:grid}.med-feed-admin__sidebar{background:var(--feed-surface);border-right:1px solid var(--feed-border);flex-direction:column;align-self:start;gap:4px;height:100vh;padding:20px 12px;display:flex;position:sticky;top:0}.med-feed-admin__brand{align-items:center;gap:10px;padding:0 8px 20px;display:flex}.med-feed-admin__logo{color:#fff;background:var(--feed-primary);border-radius:10px;flex-shrink:0;justify-content:center;align-items:center;width:36px;height:36px;font-size:18px;font-weight:700;display:inline-flex}.med-feed-admin__brand-text{flex-direction:column;min-width:0;line-height:18px;display:flex}.med-feed-admin__brand-text strong{color:var(--feed-primary);font-size:15px}.med-feed-admin__brand-text span{color:var(--feed-outline);letter-spacing:.02em;text-transform:uppercase;font-size:11px}.med-feed-admin__section{color:var(--feed-outline);letter-spacing:.06em;text-transform:uppercase;padding:0 12px 6px;font-size:11px;font-weight:600}.med-feed-admin__nav{flex-direction:column;gap:2px;display:flex}.med-feed-admin__nav-item{height:40px;color:var(--feed-text-secondary);border-radius:10px;align-items:center;gap:12px;padding:0 12px;font-weight:500;transition:background .15s,color .15s;display:flex}.med-feed-admin__nav-item:hover{color:var(--feed-text);background:var(--feed-surface-low)}.med-feed-admin__nav-item--active,.med-feed-admin__nav-item--active:hover{color:#fff;background:var(--feed-primary);box-shadow:0 4px 12px rgba(var(--feed-primary-rgb), .25)}.med-feed-admin__nav-icon{font-size:16px;display:inline-flex}.med-feed-admin__main{min-width:0;padding:24px 28px 32px}.med-feed-admin .med-feed-wide{max-width:none}@media (width<=900px){.med-feed-admin{grid-template-columns:minmax(0,1fr)}.med-feed-admin__sidebar{border-right:0;border-bottom:1px solid var(--feed-border);flex-flow:wrap;align-items:center;height:auto;padding:12px 16px;position:static}.med-feed-admin__brand{padding:0 12px 0 0}.med-feed-admin__section{display:none}.med-feed-admin__nav{flex-direction:row;overflow-x:auto}.med-feed-admin__nav-item{white-space:nowrap}.med-feed-admin__main{padding:16px}}.med-feed-my-posts{width:100%;max-width:900px;margin:0 auto}.med-feed-my-posts .med-feed-page-header{background:radial-gradient(circle at 88% -30%, rgba(var(--feed-primary-rgb), .16), transparent 42%), linear-gradient(135deg, var(--feed-primary-soft) 0%, #f8faff 60%, #eef2ff 100%);border:1px solid #e0e9ff;border-radius:16px;gap:16px;padding:22px 24px;box-shadow:0 1px 2px #0b1c300a}.med-feed-my-posts .med-feed-page-header__title.ant-typography{color:var(--feed-text);letter-spacing:-.01em;font-size:20px;font-weight:700}.med-feed-my-posts .med-feed-page-header .ant-typography[type=secondary]{color:var(--feed-text-secondary);font-size:13px}.med-feed-my-posts .ant-tabs-top>.ant-tabs-nav{background:var(--feed-surface-low);border:1px solid var(--feed-border);border-radius:12px;margin:0 0 16px;padding:4px}.med-feed-my-posts .ant-tabs-nav:before{display:none}.med-feed-my-posts .ant-tabs-nav-list{width:100%}.med-feed-my-posts .ant-tabs-tab{color:var(--feed-text-secondary);border-radius:9px;flex:1;justify-content:center;font-size:13px;font-weight:600;transition:color .16s,background .16s,box-shadow .16s;margin:0!important;padding:7px 14px!important}.med-feed-my-posts .ant-tabs-tab:hover{color:var(--feed-primary);background:#ffffffbf}.med-feed-my-posts .ant-tabs-tab.ant-tabs-tab-active{background:var(--feed-surface);box-shadow:0 1px 3px #0b1c301a}.med-feed-my-posts .ant-tabs-tab.ant-tabs-tab-active .ant-tabs-tab-btn{color:var(--feed-primary)}.med-feed-my-posts .ant-tabs-ink-bar{display:none}@media (width<=768px){.med-feed-my-posts .ant-tabs-top>.ant-tabs-nav{overflow-x:auto}.med-feed-my-posts .ant-tabs-tab{white-space:nowrap;flex:none}}.med-feed-my-posts__footer-actions.ant-space{gap:12px!important}.med-feed-my-posts__edit.ant-btn{height:40px;color:var(--feed-text);background:var(--feed-surface);border:1px solid var(--feed-surface-container);box-shadow:var(--feed-shadow-sm);border-radius:10px;padding:0 20px;font-size:15px;font-weight:600;transition:color .2s,background .2s,border-color .2s,box-shadow .2s}.med-feed-my-posts__edit.ant-btn:hover,.med-feed-my-posts__edit.ant-btn:focus{color:var(--feed-primary);background:var(--feed-surface-low);border-color:var(--feed-primary-border);box-shadow:0 2px 8px rgba(var(--feed-primary-rgb), .12)}.med-feed-my-posts__edit.ant-btn .anticon{color:var(--feed-primary)}.med-feed-my-posts__done.ant-btn{background:linear-gradient(135deg, var(--feed-primary-hover) 0%, var(--feed-primary) 55%, var(--feed-primary-active) 100%);height:40px;box-shadow:0 4px 14px rgba(var(--feed-primary-rgb), .3);border:0;border-radius:10px;padding:0 22px;font-size:15px;font-weight:600;transition:box-shadow .2s,transform .15s}.med-feed-my-posts__done.ant-btn:hover,.med-feed-my-posts__done.ant-btn:focus{background:linear-gradient(135deg, var(--feed-primary-hover) 0%, var(--feed-primary) 55%, var(--feed-primary-active) 100%);box-shadow:0 6px 18px rgba(var(--feed-primary-rgb), .38);transform:translateY(-1px)}.med-feed-my-posts__done.ant-btn:active{box-shadow:0 2px 8px rgba(var(--feed-primary-rgb), .28);transform:translateY(0)}
2
2
  /*$vite$:1*/
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@medipha/feed",
3
- "version": "0.1.8",
3
+ "version": "0.2.0",
4
4
  "description": "Embeddable Medic-ERP newsfeed module for React applications.",
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",