PageSourceSearch

https://hoshino-supika.com/assets/SurveyListScreen-C3SflEHI.js

js hoshino-supika.com collected 2026-10-06 20:13:07 UTC 2,727 bytes, 1 lines download raw bytes

1import{r as a,j as t,R as E}from"./vendor-react-CYOoHjOf.js";import{j as I}from"./vendor-redux-BXotTMQH.js";import{C as L}from"./CustomInfiniteScroll-CkmUM1wU.js";import{T as l,M as S,i as P,b as M,a as h,fu as R,fv as w,q as B,t as F,fw as $,v as O}from"./index-NXCSpy0w.js";import{R as A}from"./ReturnButton-C43vaIAe.js";import{aH as x,aV as T,aK as u,b6 as N}from"./vendor-mui-A_M4pNO3.js";import{g as _}from"./mypage.helpers-Cgz7ANCy.js";import"./vendor-lodash-Cp5T_Ztg.js";import"./vendor-axios-BLlBCaos.js";import"./vendor-auth-DXBuXNeD.js";import"./vendor-motion-CwbUqb9k.js";import"./form-validate-BSI3dMt8.js";import"./mypage.types-BZip3ud9.js";const D="SurveyItem",b={btnOptionalQuestion:`${D}-btnOptionalQuestion`},G=x(T)(()=>({[`&.${b.btnOptionalQuestion}`]:{fontWeight:400}})),Q=({title:s,subtitle:r,textButton:p,colorButton:d,domain:m})=>t.jsxs(u,{pt:4,pb:8,children:[t.jsx(l,{fontSize:16,fontWeight:500,lineHeight:"28px",children:s}),t.jsx(u,{mb:4,children:t.jsx(l,{variant:"caption",color:"textSecondary",lineHeight:"19px",children:r})}),t.jsx(G,{href:`${m}${S.OPTIONAL_QUESTION}`,variant:"contained",color:d||"primary",fullWidth:!0,size:"large",className:b.btnOptionalQuestion,children:p})]}),C=a.memo(Q),W="SurveyListScreen",y={wrapper:`${W}-wrapper`},H=x(u)(({theme:s})=>({[`&.${y.wrapper}`]:{paddingTop:s.spacing(10),[s.breakpoints.down("sm")]:{padding:s.spacing(6)}}})),U=()=>{const s=P(),[r,p]=a.useState(1),[d,m]=a.useState(!0),[g,j]=a.useState(!0),{fanclubMemberId:o}=M(),i=h(e=>e.mypage.nfcSiteSurveys),n=h(e=>e.mypage.loadMoreInfo),c=a.useCallback(async e=>(p(e),o&&n.canLoadMore&&await s(R({fanclubGroupId:B(),fanclubMemberId:o.toString(),params:{page:e,perPage:w}})).then(I),Promise.resolve()),[s,o,n.canLoadMore]);return a.useEffect(()=>{g&&c(r).catch(e=>F({dispatch:s,error:e})).finally(()=>{m(!1),j(!1)})},[s,o,c,g,r]),a.useEffect(()=>()=>{s($())},[s]),d?t.jsx(O,{isFullScreen:!0}
1):t.jsxs(H,{className:y.wrapper,maxWidth:504,mx:"auto",width:"100%",mb:16,children:[t.jsx(u,{mb:2,children:t.jsx(A,{path:S.MY_PAGE})}),t.jsx(l,{variant:"h5",marginBottom:24,children:"アンケート"}),t.jsx(L,{dataLength:i?.list?.length||0,hasMore:n.canLoadMore,isError:n.isFetchDataError,handleReloadOnError:()=>c(r),isLoading:n.isLoading,fetchMoreData:()=>c(r+1),children:i&&i.list.length>0?i.list.map((e,v)=>{const f=_(e.isAnswered);return t.jsxs(E.Fragment,{children:[v!==0&&t.jsx(N,{}),t.jsx(C,{colorButton:f.colorButton,subtitle:f.subtitle,textButton:f.textButton,domain:e.fanclubSite.contentProvider.domain,title:e.fanclubSite.fanclubSiteName})]},e.id)}):t.jsx(l,{variant:"body2",children:"現在、回答を受け付けているアンケートはありません"})})]})},rt=a.memo(U);export{rt 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.