PageSourceSearch

https://sheeta.jp/portal/assets/DetailScreen-BJlVA3CD.js

js sheeta.jp collected 2026-09-24 19:36:12 UTC 3,192 bytes, 1 lines download raw bytes

1import{s as g,a as o,j as t,A as j,ad as N,z as r}from"./vendor-react-mui-B_on-Y9x.js";import{j as C}from"./vendor-redux-DBgsxJkZ.js";import{u as $,e as b,U as B,V as D,C as l,B as A}from"./index-B6tHxdHk.js";import{b as I,a as k,N as v}from"./notice.constants-B9eb7rsE.js";import{C as n,f as E,c as T,a as M}from"./date-BUtsqg0d.js";import{a as _,u as R}from"./vendor-router-x4M5OwFy.js";import"./vendor-swiper-rACut1mu.js";import"./vendor-auth-DXBuXNeD.js";const c="DetailScreen",s={wrapBox:`${c}-wrapBox`,backBtn:`${c}-backBtn`,wrapContent:`${c}-wrapContent`,desc:`${c}-desc`},L=g("div")(({theme:a})=>({[`&.${s.wrapBox}`]:{margin:a.spacing(6,6,20),[a.breakpoints.up("sm")]:{margin:a.spacing(6,12,20),maxWidth:768}},[`& .${s.backBtn}`]:{padding:a.spacing(1,1.25),"& .MuiButton-startIcon":{marginRight:a.spacing(2)},height:22},[`& .${s.wrapContent}`]:{padding:a.spacing(2,0),[a.breakpoints.down("md")]:{paddingBottom:0}},[`& .${s.desc}`]:{wordBreak:"break-all"}})),p="NoticeDetailSkeleton",i={wrapper:`${p}-wrapper`,labelAndChip:`${p}-labelAndChip`,content:`${p}-content`},P=g("div")(({theme:a})=>({[`&.${i.wrapper}`]:{display:"flex",flexDirection:"column",marginTop:a.spacing(2),"& .MuiSkeleton-text":{transform:"scale(1,1)",width:"100%",height:"100%",borderRadius:12}},[`& .${i.labelAndChip}`]:{display:"flex",alignItems:"center",gap:a.spacing(2),marginBottom:a.spacing(2)},[`& .${i.content}`]:{marginTop:a.spacing(6),display:"flex",flexDirection:"column",gap:a.spacing(2)}})),H=()=>t.jsxs(P,{className:i.wrapper,children:[t.jsxs("div",{className:i.labelAndChip,children:[t.jsx(n,{width:100,height:19,variant:"text"}),t.jsx(n,{variant:"text",width:76,height:18})]}),t.jsx(n,{variant:"text",width:280,height:24}),t.jsxs("div",{className:i.content,children:[t.jsx(n,{variant:"text",width:"100%",height:80}),t.jsx(n,{variant:"text",width:276,height:20}),t.jsx(n,{variant:"text",width:134,height:20})]})]}),F=o.memo(H),W=()=>{const a=$(),x=_(),d=R(),e=b(S=>S.notice.platformNewsDetail),m=new URLSearchParams(window.location.search).get("id"),[h,u]=o.useState(!0),w=o.useMemo(()=>e?.content?e.content.replace(/\n/g,"<br>"):"",[e?.content]),f=o.useMemo(()=>e?e.title==="MSGPFNM02011"?I:e.title:"",[e]);o.useEffect(()=>{a(B(Number(m))).then(C).finally(()=>{u(!1)})},[a,m]);const y=()=>{x.push(`${A.LIST}${d.state?.category?`?category=${d.state.category}`:""}`)};return!e&&!h?t.jsx(D,{notFound:!0}):t.jsxs(L,{className:s.wrapBox,children:[t.jsx(j,{className:s.backBtn,startIcon:t.jsx(N,{}),size:"small",color:"primary",onClick:y,children:"お知らせ"}),e?t.jsxs(r,{className:s.wrapContent,children:[t.jsxs(r,{mb:2,display:"flex",alignItems:"center",children:[t.jsx(r,{height:19,mr:2,children:t.jsx(l,{variant:"caption",color:"textSecondary",children:E(T(e.publicStartAt),"yyyy/MM/dd HH:mm")})}),t.jsx(M,{extraSmall:!0,size:"small",variant:"outlined",label:v[e.platformNewsCategory.categoryName],outlineCustomColor:k[e.platformNewsCategory.categoryName]})]}),t.jsx(r,{mb:6,children:t.jsx(l,{fontWeight:"fontWeightBold",fontSize:18,lineHeight:"24px",children:f})}),t.jsx(l,{variant:"body2",className:s.desc,dangerouslySetInnerHTML:{__html:w}})]}):t.jsx(F,{})]})},q=o.memo(W);export{q as default};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.