1import{y as v,aP as ge,aF as Ae,aO as ke,j as e,B as i,S as A,H as xe,o as E,a5 as V,n as q,Q as Z,T as b,aI as Pe,aQ as Me,aR as Ee,aS as Ge,aT as Ne,aU as We,bn as be,aE as Se,aV as Oe,u as Fe,hO as _e,hP as ze,br as Be,bg as Ce,bh as we,bi as J,O as ee,gf as te,c as G,hG as ve,hQ as De,bq as ne,h as I,a2 as Te,hR as He,l as Ue,L as qe,c5 as pe,bD as Ve,hS as K,c6 as $e,hF as Ye,hT as Qe,aX as Ke,bk as Xe,as as Ze,hN as fe,bl as Je,bm as et,bo as tt,bp as st,P as nt,aY as at,b as ot,a6 as it,am as ue,$ as rt,d as lt,D as dt,hU as ye,an as ct,b4 as ut}from"./index-DoHfWnJw.js";import{u as je}from"./use-staff-group-sequence-numbers-to-ids-DFouzM6G.js";import{S as O}from"./search-condition-tag-D0YIuJct.js";import{S as ht,u as mt}from"./use-staff-group-filter-to-ids-MyKMO62Z.js";import{S as xt}from"./staff-filter-popover-neOYdE_S.js";import{u as pt,S as ft}from"./use-handle-staff-training-status-change-KFpaGQJl.js";import{u as jt,T as gt,a as bt,b as St}from"./training-importance-filter-popover-ee1xXClG.js";import{T as Ct,u as wt}from"./use-customer-fiscal-year-period-Hd5hNR2T.js";import{I as vt}from"./input-group-BwtJ3192.js";import{I as Dt}from"./input-addon-BuJrWdR8.js";import{S as se}from"./lecture-attended-rate-help-popover-BHX_OL0H.js";import{T as Tt}from"./training-circular-progress-CSgwZtBq.js";import{T as yt}from"./training-completed-staffs-circular-progress-wrvFT5OE.js";import{A as It}from"./announce-training-create-modal-DqppiMQ-.js";import{P as Rt}from"./page-shell-DHz7wAKI.js";import{c as Lt}from"./convert-dDCI-dLa.js";import{u as At}from"./use-training-period-filter-value-U9Ru7cKX.js";import{u as kt,G as Pt,A as de,D as Mt,a as Et,b as Gt}from"./guide-to-app-banner-ByTtmI_q.js";import{T as Nt,a as Wt}from"./tab-list-uKhITSn3.js";import{r as Ot}from"./remove-trailing-slash-BFbzpk6j.js";import"./staff-group-empty-view-Cw25RKWV.js";import"./functions-D2YnNmio.js";import"./button-group-Cj_R6lk6.js";import"./unordered-equals-B0751GSe.js";import"./popover-footer-97yVDWlA.js";import"./index-DMBgZG9H.js";import"./calc-fiscal-year-of-date--xnXqLzk.js";import"./index-BFuCDyPm.js";import"./index-BxwVZc2Z.js";import"./index-B8TjDH9n.js";import"./range-zBruEkTF.js";import"./_curry2-BYmCXiMl.js";import"./index-B-iZtRyg.js";import"./index-BEkzwZE_.js";import"./index-BFhGsfxZ.js";import"./index-D-SyBGbq.js";import"./index-CLNvoSP4.js";import"./index-BJykm8D1.js";import"./index-BKUdhxvS.js";import"./index-BMqE3kI8.js";import"./heading-BZ7DzEl4.js";import"./hide-on-mobile-CTHn8U-i.js";import"./download-material-labels-d38lV3C2.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};t.SENTRY_RELEASE={id:"5aabe4b5dd57684e1dd383609f3a5f0a3e2bef08"}}catch{}})();try{(function(){var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},s=new t.Error().stack;s&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[s]="dc464756-3fee-481c-af4a-007474227aec",t._sentryDebugIdIdentifier="sentry-dbid-dc464756-3fee-481c-af4a-007474227aec")})()}catch{}const Ft=[E.CurrentlyRunning,E.DueThisMonth,E.FinishedLastMonth,E.SpecificFiscalYear,E.CustomPeriod,E.NoPeriodSpecification];function _t({name:t,authorities:s,includeUnsubscribed:r,staffGroupIds:p,includeDraftTraining:h,periodFilterValue:m,isDefaultPeriodFilterValueSelected:f,importances:l,hasIncompleteTrainingStaff:d,orderInSearchParam:x,currentPath:c}){const j=v.useRef(null),n=ge({from:c}),{isOpen:C,onOpen:w,onClose:y}=Ae(),{convertIdsToSequenceNumbers:S}=ke(),[k,P]=v.useState(t!=null?t:""),F=a=>{P(a.target.value)},_=v.useCallback(a=>{n({search:o=>({...o,page:1,authorities:a.authorities,includeUnsubscribed:a.includeUnsubscribed?!0:void 0})})},[n]),N=v.useCallback(a=>{const o=s.filter(g=>g!==a);n({search:g=>({...g,page:1,authorities:o})})},[s,n]),z=v.useCallback(a=>{n({search:o=>({...o,includeUnsubscribed:void 0,page:1})})},[n]),R=v.useCallback(a=>{n({search:o=>({...o,includeDraftTraining:void 0,page:1})})},[n]),W=v.useCallback(a=>{n(a?{search:o=>({...o,includeDraftTraining:!0,page:1})}:{search:o=>({...o,includeDraftTraining:void 0,page:1})})},[n]),B=v.useCallback(a=>{n({search:o=>({...o,page:1,importances:a})})},[n]),H=v.useCallback(a=>{const o=l.filter(g=>g!==a);n({search:g=>({...g,importances:o,page:1})})}
1,[l,n]),{handleChangePeriodFilter:U,handleRemovePeriod:ae}=jt(c),{handleStaffTrainingStatusChange:oe,handleRemoveHasIncompleteTrainingStaff:ie}=pt(c),re=a=>{a.preventDefault(),n({search:o=>({...o,name:k===""?void 0:k,page:1})})},le=()=>{P(""),j.current!==null&&(j.current.value="")},$=v.useCallback(({staffGroupFilter:a,onSuccess:o})=>{y(),o==null||o();const g=S(a.withDescendants),u=S(a.withoutDescendants);n({search:M=>({...M,page:1,withDescendants:g,withoutDescendants:u})})},[S,n,y]);return e.jsxs(e.Fragment,{children:[e.jsx(ht,{isOpen:C,onClose:y,onComplete:$,defaultValue:p,confirmLabel:"çµãè¾¼ã"}),e.jsxs(i,{bg:"primary.thin",borderWidth:1,borderRadius:"md",p:{sm:3,md:6},children:[e.jsxs(A,{direction:{sm:"column",md:"row"},spacing:{sm:3,md:4},divider:e.jsx(V,{}),children:[e.jsxs(i,{flexGrow:1,children:[e.jsx(i,{fontSize:"sm",fontWeight:"bold",children:"éè¨å¯¾è±¡ã®ç ä¿®"}),e.jsxs(xe,{mt:{sm:2,md:4},spacing:2,divider:e.jsx(V,{}),children:[e.jsx(gt,{defaultValues:m,onChange:U,selectablePeriodTypes:Ft,flex:{sm:1,md:"auto"}}),e.jsx(Ct,{includeDraftTraining:h,onChange:W,flex:{sm:1,md:"auto"}},h?"includeDraftTraining":""),e.jsx(bt,{importances:l,onChange:B,flex:{sm:1,md:"auto"}},`TrainingImportanceFilterPopover_${l.join(",")}`)]})]}),e.jsxs(i,{flexGrow:1,children:[e.jsx(i,{fontSize:"sm",fontWeight:"bold",children:"表示ããè·å¡"}),e.jsxs(q,{as:"form",mt:{sm:2,md:4},flexDir:{base:"column",lg:"row"},align:{base:"stretch",lg:"center"},gap:{base:2,lg:0},onSubmit:re,children:[e.jsxs(xe,{mt:{sm:1,md:0},spacing:2,divider:e.jsx(V,{}),children:[e.jsx(Z,{variant:"unstyled",rightIcon:e.jsx(Pe,{}),w:"auto",fontSize:"sm",display:{sm:"flex",md:"inline-flex"},justifyContent:{sm:"space-between",md:"center"},onClick:w,wordBreak:"keep-all",flex:{sm:1,md:"auto"},children:e.jsxs(b,{textAlign:"left",children:[e.jsx(b,{as:"span",display:{md:"inline-block",lg:"inline"},children:"è·å¡"}),e.jsx(b,{as:"span",display:{md:"inline-block",lg:"inline"},children:"ã°ã«ã¼ã"})]})}),e.jsx(ft,{values:{hasIncompleteTrainingStaff:d},onClickSearch:oe}),e.jsx(xt,{values:{authorities:s,includeUnsubscribed:r},flex:{sm:1,md:"auto"},onClickSearch:_},s.join(",")+(r?"includeUnsubscribed":""))]}),e.jsxs(vt,{flexGrow:1,w:"none",ml:{base:0,lg:2},children:[e.jsx(Me,{bg:"white",defaultValue:t!=null?t:"",placeholder:"è·å¡åã§æ¢ã",onChange:F,ref:j}),e.jsx(Dt,{p:0,children:e.jsx(Ee,{type:"submit","aria-label":"è·å¡åã§æ¢ã",colorScheme:"blue",borderLeftRadius:0,icon:e.jsx(i,{as:Ge})})})]})]})]})]}),e.jsxs(Ne,{mt:4,align:"center",children:[e.jsx(St,{periodFilterValue:m,onRemove:ae,isRemovable:!f}),h&&e.jsx(O,{value:h,label:"å
¬éç¶æ
ï¼ä¸æ¸ãã®ç ä¿®ãå«ãã",onRemove:R}),l.map(a=>e.jsx(O,{value:a,label:`éè¦åº¦ï¼${We[a]}`,onRemove:()=>H(a)},a)),p.length!==0&&e.jsx(O,{value:void 0,label:"è·å¡ã°ã«ã¼ãã§çµãè¾¼ã¿",onRemove:()=>$({staffGroupFilter:{withoutDescendants:[],withDescendants:[]}})}),d&&e.jsx(O,{value:d,label:"ç ä¿®ãå®äºãã¦ããªãè·å¡",onRemove:ie}),s.map(a=>e.jsx(O,{value:a,label:`権éï¼${be[a]}`,onRemove:N},a)),r&&e.jsx(O,{value:r,label:"é伿¸ã¿ã®è·å¡ãå«ãã",onRemove:z}),e.jsx(Se,{to:c,search:()=>({order:x,page:1,name:null,withDescendants:[],withoutDescendants:[],authorities:[],includeUnsubscribed:!1,includeDraftTraining:!1,periodType:null,startDate:null,endDate:null,fiscalYear:null,importances:[],hasIncompleteTrainingStaff:!1}),children:e.jsx(Z,{size:"sm",variant:"textOnThin",w:"auto",onClick:le,children:"æ¡ä»¶ããªã»ãã"})})]})]})]})}function zt({page:t,name:s,authorities:r,includeUnsubscribed:p,staffGroupSelections:h,includeDraftTraining:m,periodType:f,startDate:l,endDate:d,fiscalYear:x,importances:c,hasIncompleteTrainingStaff:j,order:n}){const C=Oe({periodType:f,startDate:l,endDate:d,fiscalYear:x}),{data:w,loading:y,error:S}=Fe(_e,{fetchPolicy:"no-cache",variables:{input:{page:t,staffName:s,includeDraftTraining:m,includeUnsubscribedStaff:p,staffAuthority:r,staffGroupSelections:h,attendancePeriodFilter:C,importances:c,hasIncompleteTrainingStaff:j,order:n}}});return{data:w==null?void 0:w.attendanceStatusPerStaff,loading:y,error:S}}function Bt({name:t,authorities:s,includeUnsubscribed:r,staffGroupSelections:p,includeDraftTraining:h,periodType:m,startDate:f,endDate:l,fiscalYear:d,importances:x,hasIncompleteTrainingStaff:c}){const{attendanceStatusCsvDownload:j,isLoading:n,isError:C}=ze(),w=Be.attendanceStatuses.staffs.statusCSV();return{downloadCsv:v.useCallback(({isCombinedStaffGroups:S})=>j({staffName:t,authorities:s,includeUnsubscribed:r,staffGroupSelections:p,includeDraftTraining:h,attendancePeriodFilter:{type:m,startDate:f,endDate:l,fiscalYear:d},importances:x,restApiPath:w,isCombinedStaffGroups:S,hasIncompleteTrainingStaff:c}),[j,t,s,r,p,h,m,f,l,d,x,w,c]),isLoading:n,isError:C}}function Ie(){return e.jsx(Ce,{formItemId:"ç ä¿®å®äºç",content:e.jsx(Ht,{})})}function Ht(){return e.jsxs(A,{spacing:4,divider:e.jsx(V,{borderColor:"gray.200"}),children:[e.jsxs(A,{spacing:2,children:[e.jsxs(b,{children:["ãç ä¿®å®äºçãã¯",e.jsx(b,{as:"u",children:"è·å¡ãã©ãã ãç ä¿®ãåãçµãã£ã¦ããã"}
1),"ã示ãã¦ãã¾ãã"]}),e.jsx(b,{children:"ç ä¿®å
ã®ãã¹ã¦ã®ã¬ãã¼ãæåºãå®äºãããã¨ãåæ ¼åºæºãè¨å®ããã¦ããå ´åã¯ãã¹ã¦ã®ç¢ºèªãã¹ããåæ ¼ã«ãªããã¨ã§æ°å¤ãå¢ããã®ã§ãç ä¿®ãéå§ãã¦ãããã°ããçµéããã¨ç¶æ³ãææ¡ã§ããããã«ãªãã¾ãã"}),e.jsxs(b,{children:["ãã®ããã",e.jsx(b,{as:"u",children:"䏿¬ãææ«ã¯ãç ä¿®å®äºçããè¦ã¤ã¤ãç ä¿®ãé²ãã§ããããåãããåè¬éæçããåããã¦è¦ã"}),"ãã¨ããªã¹ã¹ã¡ã§ãã"]})]}),e.jsxs(A,{spacing:0,children:[e.jsx(b,{children:"ï¼æ´»ç¨ä¾ï¼"}),e.jsxs(we,{pl:6,children:[e.jsxs(J,{children:["ææ«ã«ç¢ºèªããã¨ç ä¿®å®äºçã¯50%ã§ãåè¬éæçã¯80%ã ã£ã",e.jsx(ee,{children:e.jsx(te,{text:"ç ä¿®ã¯ã¾ã å®äºã§ãã¦ããªãããåè¬èªä½ã¯é²ãããã¦ããã®ã§ããã¨å°ãã§ç ä¿®ãå®äºãããã "})})]}),e.jsxs(J,{children:["ææ«ã«ç¢ºèªããã¨ç ä¿®å®äºçã¯30%ã§ãåè¬éæçã¯40%ã ã£ã",e.jsx(ee,{children:e.jsx(te,{text:"åè¬ãé²ãããã¦ããªãã®ã§ã声æããå¿
è¦ãããããªã"})})]})]})]})]})}function Re(){return e.jsx(Ce,{formItemId:"ç ä¿®å®äºè
æ°",content:e.jsx(Ut,{})})}function Ut(){return e.jsxs(A,{spacing:4,divider:e.jsx(V,{borderColor:"gray.200"}),children:[e.jsxs(A,{spacing:2,children:[e.jsxs(b,{children:["ãç ä¿®å®äºè
æ°ãã¯",e.jsx(b,{as:"u",children:"ãã¹ã¦ã®ç ä¿®ãåãçµãã£ã¦ããè·å¡ã®æ°"}),"ã示ãã¦ãã¾ãã"]}),e.jsx(b,{children:"è·å¡ããã¹ã¦ã®ç ä¿®ãå®äºããã¨æ°å¤ãå¢ãããããææ«ä»è¿ããç ä¿®ãå®äºã§ãã¦ããè·å¡æ°ãææ¡ã§ãã¾ãã"}),e.jsxs(b,{children:["ãã®ããã",e.jsx(b,{as:"u",children:"ææ«ã¯ãç ä¿®å®äºè
æ°ãããç ä¿®ãå®äºãã¦ããªãè·å¡æ°ã確èªãã¦ãåè¬ãä¿ã対象æ°ãææ¡ãã"}),"ãã¨ããªã¹ã¹ã¡ã§ãã"]})]}),e.jsxs(A,{spacing:0,children:[e.jsx(b,{children:"ï¼æ´»ç¨ä¾ï¼"}),e.jsxs(we,{pl:6,children:[e.jsxs(J,{children:["ææ«ã«ç¢ºèªããã¨ç ä¿®å®äºè
æ°ã¯10人ä¸8人ã ã£ã",e.jsx(ee,{children:e.jsx(te,{text:"æ®ãã¯2人ã ããåå¥ã«å£°ããããã"})})]}),e.jsxs(J,{children:["ææ«ã«ç¢ºèªããã¨ç ä¿®å®äºè
æ°ã¯20人ä¸5人ã ã£ã",e.jsx(ee,{children:e.jsx(te,{text:"å®äºã§ãã¦ããªã人ãå¤ãããå
¨ä½ã«å¯¾ãã¦ã¢ãã¦ã³ã¹ããã"})})]})]})]})]})}const me={sm:"repeat(2, 1fr)",md:"repeat(4, 1fr)"},Y={height:{sm:"50px",md:"100%"},alignItems:"center",display:"flex",my:{sm:"5px",md:"0px"}};function X({summary:t,...s}){return e.jsxs(i,{...s,borderWidth:1,borderColor:"border.base",borderRadius:"md",children:[e.jsx(Le,{}),e.jsxs(G,{templateColumns:me,py:{base:2,md:4},rowGap:4,children:[e.jsxs(L,{children:[e.jsxs(i,{display:{base:"flex",md:"none"},gap:1,fontSize:"xs",fontWeight:"bold",children:["åè¬éæç",e.jsx(se,{})]}),e.jsx(ve,{lecturesCount:t.totalLecturesCount,attendedLecturesCount:t.totalAttendedLecturesCount,py:{sm:1,md:0},...Y})]}),e.jsxs(L,{children:[e.jsxs(i,{display:{base:"flex",md:"none"},gap:1,fontSize:"xs",fontWeight:"bold",children:["ç ä¿®å®äºç",e.jsx(Ie,{})]}),e.jsx(Tt,{mt:{sm:1,md:0},trainingsCount:t.totalTrainingsCount,completedTrainingsCount:t.totalCompletedTrainingsCount,...Y})]}),e.jsxs(L,{children:[e.jsxs(i,{display:{base:"flex",md:"none"},gap:1,fontSize:"xs",fontWeight:"bold",children:["ç ä¿®å®äºè
æ°",e.jsx(Re,{})]}),e.jsx(yt,{completedStaffsCount:t.completedStaffsCount,staffsCount:t.staffsCount,mt:{sm:1,md:0},...Y})]}),e.jsxs(L,{children:[e.jsx(i,{display:{base:"block",md:"none"},fontSize:"xs",fontWeight:"bold",children:"ç·åè¬æé"}),e.jsx(De,{attendanceDuration:t.totalAttendedLecturesDurationSec,...Y})]})]})]})}function Le(){return e.jsxs(G,{templateColumns:me,py:"16px",fontSize:"sm",fontWeight:"bold",background:"primary.thin",display:{base:"none",md:"grid"},children:[e.jsxs(Q,{children:["åè¬éæç ",e.jsx(se,{})]}),e.jsxs(Q,{children:["ç ä¿®å®äºç ",e.jsx(Ie,{})]}),e.jsxs(Q,{children:["ç ä¿®å®äºè
æ° ",e.jsx(Re,{})]}),e.jsx(Q,{children:"ç·åè¬æé"})]})}function qt(t){return e.jsxs(i,{borderWidth:1,borderColor:"border.base",borderRadius:"md",...t,children:[e.jsx(Le,{}),e.jsxs(G,{templateColumns:me,py:{base:2,md:4},rowGap:4,children:[e.jsx(L,{alignItems:{base:"start",md:"center"},px:3,children:e.jsx(I,{height:{base:"66px",sm:"78px",md:"48px"},width:"full"})}),e.jsx(L,{px:3,children:e.jsx(I,{height:{base:"66px",sm:"78px",md:"48px"},width:"full"})}),e.jsx(L,{px:3,children:e.jsx(I,{height:{base:"42px",sm:"78px",md:"48px"},width:"full"})}),e.jsx(L,{px:3,children:e.jsx(I,{height:{base:"42px",sm:"78px",md:"48px"},width:"full"})})]})]})}function Q({children:t}){return e.jsx(ne,{display:"flex",alignItems:"center",justifyContent:"center",borderRightWidth:1,borderRightColor:"border.base",_last:{borderRight:"none"},gap:1,children:t})}function L({children:t,...s}){return e.jsx(ne,{display:"flex",flexDir:"column",alignItems:"center",justifyContent:"center",...s,children:t})}X.Skeleton=qt;
1const Vt={sm:"repeat(3, 1fr)",md:"14% 11% 14% 19% 16% 13% 13%"},he={sm:"repeat(3, 1fr)",md:"15% 15% 24% 16% 15% 15%"},ce={height:{sm:"50px",md:"100%"},alignItems:"center",display:"flex",my:{sm:"5px",md:"0px"}},$t=20;function Yt({page:t,name:s,authorities:r,includeUnsubscribed:p,staffGroupSelections:h,includeDraftTraining:m,periodType:f,startDate:l,endDate:d,fiscalYear:x,importances:c,order:j,staffAttendanceDetailLink:n,hasIncompleteTrainingStaff:C,currentPath:w,...y}){const S=Te(!0),k=S.hasMultipleIndustriesInCustomer?Vt:he,P=ge({from:w}),{data:F,loading:_,error:N}=zt({page:t,name:s,authorities:r,includeUnsubscribed:p,staffGroupSelections:h,includeDraftTraining:m,periodType:f,startDate:l,endDate:d,fiscalYear:x,importances:c,hasIncompleteTrainingStaff:C,order:j}),{downloadCsv:z,isLoading:R,isError:W}=Bt({name:s,authorities:r,includeUnsubscribed:p,staffGroupSelections:h,includeDraftTraining:m,periodType:f,startDate:l,endDate:d,fiscalYear:x,importances:c,hasIncompleteTrainingStaff:C}),{onOpen:B,onClose:H,isOpen:U,selectedSplitType:ae,setSelectedSplitType:oe,handleSubmit:ie}=He({onSubmit:z}),{requestModal:re,completedModal:le,requestButton:$}=Ue({}),a=S.isManager&&!S.isBelongingToGroup;return e.jsx(i,{...y,children:e.jsx(qe,{data:F,isLoading:_,error:N,Skeleton:e.jsxs(A,{spacing:4,children:[e.jsx(X.Skeleton,{}),e.jsx(q,{align:"center",h:{base:"24px",md:"40px"},my:"auto",children:e.jsx(pe.Skeleton,{unit:"å"})}),e.jsx(Qt,{})]}),children:({staffAttendancesSummary:o,summariesPerStaff:g})=>e.jsxs(e.Fragment,{children:[e.jsx(It,{}),o?e.jsx(X,{summary:o}):e.jsx(X.Skeleton,{}),e.jsxs(q,{align:{sm:"top",md:"end"},justify:"space-between",direction:{sm:"column-reverse",md:"row"},my:{sm:2,md:4},children:[e.jsxs(q,{align:{sm:"end",md:"center"},gap:2,children:[e.jsx(pe,{pagination:g.pagination,unit:"å"}),e.jsxs(Ve,{w:"auto",ml:"auto",isDisabled:g.summaries.length===0,mt:{sm:"2",md:"0"},value:j,size:{sm:"xs",md:"md"},onChange:u=>P({search:M=>({...M,order:u.target.value,page:1})}),children:[e.jsx("option",{value:K.LectureCompletionRateAsc,children:"åè¬éæçãä½ãé "}),e.jsx("option",{value:K.LectureCompletionRateDesc,children:"åè¬éæçãé«ãé "}),e.jsx("option",{value:K.NameAsc,children:"ååé "})]})]}),e.jsxs(q,{align:"end",direction:{sm:"column",md:"row"},w:{sm:"100%",md:"auto"},gap:2,children:[$,e.jsx(Z,{variant:"primary",onClick:B,isDisabled:g.summaries.length===0,w:{sm:"100%",md:"auto"},size:"md",leftIcon:e.jsx(i,{as:$e}),isLoading:R,children:"åè¬ç¶æ³CSV"}),e.jsx(Ye,{isLoading:R,isError:W}),re,le]})]}),e.jsx(Qe,{onSubmit:ie,isSubmitting:R,isOpen:U,onClose:H,onChange:oe,selectedType:ae}),a?e.jsx(i,{padding:6,children:e.jsxs(b,{textAlign:"center",children:["è·å¡ã°ã«ã¼ãã«æå±ãã¦ããªãããã表示ã§ããåè¬ç¶æ³ãããã¾ãã",e.jsx("br",{}),"çµ±æ¬ç®¡çè ã®æ¹ã«ã確èªãã ãã"]})}):g.summaries.length===0?e.jsx(Ke,{target:"æ¤ç´¢æ¡ä»¶ã«ä¸è´ããç ä¿®ãã¾ãã¯ãã®ç ä¿®ãåè¬ããè·å¡",border:"none"}):e.jsxs(i,{borderWidth:1,borderColor:"border.base",borderRadius:"md",children:[e.jsxs(G,{templateColumns:k,py:4,fontSize:"sm",fontWeight:"bold",background:"primary.thin",display:{sm:"none",md:"grid"},children:[e.jsx(D,{children:"åå"}),S.hasMultipleIndustriesInCustomer&&e.jsx(D,{children:"æ¥ç¨®"}),e.jsx(D,{children:"権é"}),e.jsx(D,{children:"è·å¡ã°ã«ã¼ã"}),e.jsxs(D,{children:["åè¬éæç",e.jsx(se,{})]}),e.jsx(D,{children:"ç ä¿®å®äºæ°"}),e.jsx(D,{children:"ç·åè¬æé"})]}),g.summaries.map(u=>e.jsxs(i,{py:{sm:2,md:4},px:{sm:3,md:6},borderBottomWidth:1,_last:{borderBottomWidth:0},children:[e.jsxs(G,{templateColumns:k,rowGap:4,children:[e.jsxs(T,{alignItems:"start",colSpan:{sm:3,md:1},children:[u.staff.unsubscribedDate!==null&&e.jsx(Xe,{mb:2,children:"é伿¸ã¿"}),e.jsx(i,{color:"text.lighten",fontSize:"2xs",children:u.staff.nameKana}),e.jsx(Ze,{...n(u.staff.id),wordBreak:"break-word",children:u.staff.name}),u.unreadCommentsCount>0&&e.jsx(fe,{display:{sm:"block",md:"none"}})]}),S.hasMultipleIndustriesInCustomer&&e.jsx(T,{fontSize:"md",whiteSpace:"pre-wrap",display:{sm:"none",md:"flex"},children:Je(u.staff.availableIndustries).map(M=>et[M]).join(` 2`)}),e.jsx(T,{fontSize:"md",display:{sm:"none",md:"flex"},children:be[u.staff.authority]}),e.jsx(T,{alignItems:"start",display:{sm:"none",md:"flex"},children:e.jsx(tt,{groups:u.staff.belongingGroups})}),e.jsxs(T,{justifyContent:{sm:"start",md:"center"},children:[e.jsxs(i,{display:{sm:"flex",md:"none"},fontSize:"xs",fontWeight:"bold",gap:1,children:["åè¬éæç",e.jsx(se,{})]}),e.jsx(ve,{lecturesCount:u.totalLecturesCount,attendedLecturesCount:u.totalAttendedLecturesCount,py:{sm:1,md:0},...ce})]}),e.jsxs(T,{children:[e.jsx(i,{display:{sm:"block",md:"none"},fontSize:"xs",fontWeight:"bold",children:"ç ä¿®å®äºæ°"}),e.jsx(st,{mt:{sm:1,md:0},trainingsCount:u.totalTrainingsCount,completedTrainingsCount:u.totalCompletedTrainingsCount,...ce})]}),e.jsxs(T,{justifyContent:{sm:"start",md:"center"},children:[e.jsx(i,{display:{sm:"block",md:"none"},fontSize:"xs",fontWeight:"bold",children:"ç·åè¬æé"}),e.jsx(De,{mt:{sm:1,md:0},attendanceDuration:u.totalAttendedLecturesDurationSec,...ce})]})]}),e.jsx(i,{display:{sm:"none",md:"block"},children:u.unreadCommentsCount>0&&e.jsx(fe,{})})]},u.staff.id))]}),e.jsx(nt,{children:e.jsx(at,{onClick:u=>{P({search:M=>({...M,page:u})})},totalCount:g.pagination.totalCount,currentPage:t,pageSize:$t})})]})})})}function Qt(){return e.jsxs(i,{borderWidth:1,borderColor:"border.base",borderRadius:"md",children:[e.jsxs(G,{templateColumns:he,py:4,fontSize:"sm",fontWeight:"bold",background:"primary.thin",display:{sm:"none",md:"grid"},children:[e.jsx(D,{children:"åå"}),e.jsx(D,{children:"権é"}),e.jsx(D,{children:"è·å¡ã°ã«ã¼ã"}),e.jsx(D,{children:"åè¬éæç"}),e.jsx(D,{children:"ç ä¿®å®äºæ°"}),e.jsx(D,{children:"ç·åè¬æé"})]}),[...Array(5)].map((t,s)=>e.jsxs(G,{templateColumns:he,borderBottomWidth:1,py:{sm:2,md:4},rowGap:4,_last:{borderBottomWidth:0},children:[e.jsx(T,{px:{sm:3,md:6},alignItems:"start",colSpan:{sm:3,md:1},children:e.jsx(I,{height:"40px",w:"full"})}),e.jsx(T,{display:{sm:"none",md:"flex"},px:4,children:e.jsx(I,{height:"40px",w:"full"})}),e.jsx(T,{display:{sm:"none",md:"flex"},px:4,children:e.jsx(I,{height:"40px",w:"full"})}),e.jsx(T,{px:4,children:e.jsx(I,{height:"40px",w:"full"})}),e.jsx(T,{px:4,children:e.jsx(I,{height:"40px",w:"full"})}),e.jsx(T,{px:4,children:e.jsx(I,{height:"40px",w:"full"})})]},s))]})}function D({children:t}){return e.jsx(ne,{display:"flex",justifyContent:"center",alignItems:"center",borderRightWidth:1,borderRightColor:"border.base",whiteSpace:"pre-wrap",_last:{borderRight:"none"},gap:1,children:t})}function T({children:t,...s}){return e.jsx(ne,{display:"flex",flexDir:"column",alignItems:"center",justifyContent:"center",...s,children:t})}function Kt({page:t,name:s,staffGroupFilter:r,authorities:p,includeUnsubscribed:h,includeDraftTraining:m,periodType:f,startDate:l,endDate:d,fiscalYear:x,importances:c,hasIncompleteTrainingStaff:j,order:n,currentPath:C}){const w=n!=null?n:K.LectureCompletionRateAsc,{hasStaffGroupInCustomer:y,authority:S}=Te(!0),k=v.useMemo(()=>Lt(r),[r]),P=mt(r),{start:F,end:_}=wt(),{periodFilterValue:N,isDefault:z}=At({periodType:f,startDate:l,endDate:d,fiscalYear:x,defaultStartDate:F,defaultEndDate:_,defaultPeriodType:E.CurrentlyRunning}),{attendanceStatusOfStaffGroupsLink:R,attendanceStatusOfTrainingsLink:W}=kt(`${C}/`),B=U=>({to:dt.attendanceStatusesStaffDetails,params:{staffId:U}
2,search:{startDate:l?l.toISOString():null,endDate:d?d.toISOString():null,periodType:f,includeDraftTraining:m,fiscalYear:x,importances:c,page:1,name:null}}),H=ot();return e.jsxs(Rt,{parentPages:[],pageTitle:"ç ä¿®åè¬ç¶æ³",customHelp:e.jsx(Gt,{}),children:[e.jsx(Pt,{}),e.jsx(Nt,{index:y?1:0,variant:"enclosed-colored",size:"lg",children:e.jsxs(Wt,{children:[y&&e.jsx(de,{to:R.to,search:R.search,withPx:!1,children:"è·å¡ã°ã«ã¼ã"}),e.jsx(de,{children:"è·å¡"}),e.jsx(de,{to:W.to,search:W.search,children:"ç ä¿®"}),e.jsx(it,{minW:4}),S===ue.Supervise&&e.jsx(Se,{to:lt.attendanceStatusesStaffMonthlyLectureMetrics,search:{page:1,name:null,withDescendants:[],withoutDescendants:[],authorities:[],includeUnsubscribed:!1,targetMonth:rt(new Date,"yyyy-MM")},children:e.jsxs(Z,{size:{sm:"xs",md:"md"},w:"auto",children:["æå¥ã®",H&&e.jsx("span",{children:` 3`}),e.jsx("span",{children:"è¬ç¾©åè¬ç¶æ³"})]})}),e.jsx(i,{w:2}),e.jsx(Mt,{})]})}),e.jsx(Et,{}),e.jsx(_t,{name:s,staffGroupIds:P,authorities:p,includeUnsubscribed:h,includeDraftTraining:m,periodFilterValue:N,isDefaultPeriodFilterValueSelected:z,importances:c,hasIncompleteTrainingStaff:j,orderInSearchParam:n,currentPath:C}),e.jsx(Yt,{page:t,name:s,authorities:p,includeUnsubscribed:h,staffGroupSelections:k,includeDraftTraining:m,staffAttendanceDetailLink:B,importances:c,hasIncompleteTrainingStaff:j,order:w,currentPath:C,...N})]})}function zs(){const t=ye.useSearch(),{page:s,name:r,withDescendants:p,withoutDescendants:h,authorities:m,includeUnsubscribed:f,includeDraftTraining:l,periodType:d,startDate:x,endDate:c,fiscalYear:j,importances:n,hasIncompleteTrainingStaff:C,order:w}=t;return e.jsx(ct,{pageTitle:"ç ä¿®åè¬ç¶æ³",authorities:[ue.Supervise,ue.Manager],children:e.jsx(Xt,{page:s,name:r,withDescendantsSequenceNumbers:p,withoutDescendantsSequenceNumbers:h,authorities:m,includeUnsubscribed:f,includeDraftTraining:l,periodType:d,startDateStr:x,endDateStr:c,fiscalYear:j,importances:n,hasIncompleteTrainingStaff:C,order:w})})}function Xt(t){const{startDateStr:s,endDateStr:r,withDescendantsSequenceNumbers:p,withoutDescendantsSequenceNumbers:h,...m}=t,f=s===null?null:new Date(s),l=r===null?null:new Date(r),d=je(p),x=je(h),c=v.useMemo(()=>{if(!(d===void 0||x===void 0))return{withDescendants:d,withoutDescendants:x}},[d,x]);return c===void 0?e.jsx(ut,{}):e.jsx(Kt,{currentPath:Ot(ye.id),startDate:f,endDate:l,staffGroupFilter:c,...m})}export{zs as component}; 4//# sourceMappingURL=index-DVK5CdJC.js.map
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.