import{j as s,an as y,ao as u,aq as m,B as g,bn as f,T as x,ar as c,am as T,p as e}from"./mui-vendor-CkIVaoQP.js";import{r as A}from"./react-vendor-CmFgShSM.js";import{hW as P,k as b,p as E,q as D}from"./index-Vwb3Bce5.js";const F=({heading:i,message:a,linkText:n,link:j,image:r,time:o,number:l})=>{const[t,h]=A.useState(!1),d=()=>{h(!t)};return s.jsxs(y,{children:[s.jsxs(u,{children:[s.jsx(m,{primary:i?`${l+1} - ${i}`:`${l+1} بدون عنوان`}),s.jsx(g,{variant:"text",onClick:d,children:t?s.jsx(P,{}):s.jsx(b,{})})]}),s.jsx(f,{in:t,children:s.jsx(u,{children:s.jsx(x,{color:"primary",textAlign:"justify",children:a||"برای این پیام توضیحی نوشته نشده است"})})}),s.jsx(u,{children:s.jsxs(x,{fontSize:13,color:"red",mt:1,textAlign:"justify",children:["تاریخ ثبت پیام: ",E(o)," - ساعت ",D(o)]})}),n&&s.jsxs(s.Fragment,{children:[s.jsx(u,{children:s.jsx(c,{label:"پیوند"})}),s.jsx(u,{children:s.jsx("a",{style:{textDecoration:"none"},href:j,children:n})})]}),s.jsx(T,{}),r&&r.length>0&&s.jsxs("div",{children:[s.jsx(u,{children:s.jsx(c,{label:"تصاویر"})}),r.map((p,C)=>s.jsx(u,{children:s.jsx("a",{href:p,style:{textDecoration:"none"},children:s.jsx("img",{src:p,alt:"Slaughter Payment Factor",width:"100"})})},C))]})]})};F.propTypes={message:e.PropTypes.string,heading:e.PropTypes.string,link:e.PropTypes.string,linkText:e.PropTypes.string,image:e.PropTypes.array,time:e.PropTypes.string,number:e.PropTypes.number};export{F as M};
