1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5122],{95122:function(t,e,n){n.d(e,{Nv:function(){return ReportContentArea},NJ:function(){return ReportEquips},Xl:function(){return ReportInfo},xn:function(){return ReportSection},Ij:function(){return ReportTable},so:function(){return ReportWork},W9:function(){return ReportWorkMaterials},n_:function(){return ReportWorkWorkers},jZ:function(){return useDayoff}});var r,o,i=n(28677);let useDayoff=()=>{let{t}=(0,i.$G)("intro"),getDayoffReasonCategory=e=>{var n;let r=[{label:t("intro:report_dayoff_reason_weather"),value:"WEATHER"},{label:t("intro:report_dayoff_reason_holiday"),value:"HOLIDAY"},{label:t("intro:report_dayoff_reason_complain"),value:"COMPLAIN"},{label:t("intro:report_dayoff_reason_on_strike"),value:"ON_STRIKE"},{label:t("intro:report_dayoff_reason_etc"),value:"ETC"}],o=r.find(t=>t.value===e);return null!==(n=null==o?void 0:o.label)&&void 0!==n?n:""};return{getDayoffText:(t,e)=>t?"\n ".concat(getDayoffReasonCategory(t),"\n ").concat(e?" - ".concat(e):"","\n "):"",getDayoffReasonCategory}};var l=n(85893),a=n(67294),c=n(23070);let ReportContentArea=t=>{let{children:e}=t;return(0,l.jsx)(c.xu,{p:"18px var(--share-layout-spacing) 40px",children:e})},ReportInfo=t=>{let{data:e}=t;return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(Dayoff,{dayoff:e.dayoff,dayoffReason:e.dayoffReason}),(0,l.jsx)(Content,{content:e.content}),(0,l.jsx)(ContentNext,{contentNext:e.contentNext}),(0,l.jsx)(SpecialNote,{specialNote:e.specialNote}),(0,l.jsx)(Milestone,{milestone:e.milestone})]})},Dayoff=t=>{let{dayoff:e,dayoffReason:n}=t,{getDayoffText:r}=useDayoff(),{t:o}=(0,i.$G)("intro");return e?(0,l.jsx)(ReportSection,{title:o("intro:report_info_dayoff"),children:r(null==n?void 0:n.category,null==n?void 0:n.text)}):null},Content=t=>{let{t:e}=(0,i.$G)("intro");return t.content?(0,l.jsx)(ReportSection,{title:e("intro:report_info_content"),children:(0,l.jsx)("pre",{children:t.content})}):null},ContentNext=t=>{let{t:e}=(0,i.$G)("intro");return(0,l.jsx)(ReportSection,{title:e("intro:report_info_content_next"),children:(0,l.jsx)(c.xv,{color:"#BBBFC5",children:(0,l.jsx)("pre",{children:t.contentNext||e("report_info_empty")})})})},SpecialNote=t=>{let{t:e}=(0,i.$G)("intro");return(0,l.jsx)(ReportSection,{title:e("intro:report_info_special_note"),children:t.specialNote||e("report_info_empty")})},Milestone=t=>{let{t:e}=(0,i.$G)("intro");return(0,l.jsx)(ReportSection,{title:e("intro:report_info_milestone"),children:t.milestone||e("report_info_empty")})};var p=n(82729),u=n(40988),d=n(94589);function _templateObject(){let t=(0,p._)(["\n border-bottom: none;\n "]);return _templateObject=function(){return t},t}function _templateObject1(){let t=(0,p._)(["\n border-bottom: 1px solid var(--ci-color-gray-100);\n ","\n"]);return _templateObject1=function(){return t},t}function _templateObject2(){let t=(0,p._)(["\n ","\n"]);return _templateObject2=function(){return t},t}function _templateObject3(){let t=(0,p._)(["\n padding: 8px 0;\n font-size: 0.875rem;\n line-height: 26px;\n "]);return _templateObject3=function(){return t},t}function _templateObject4(){let t=(0,p._)(["\n display: flex;\n justify-content: space-between;\n align-items: center;\n padding: 8px 12px;\n\n color: var(--ci-color-primary-400);\n font-size: 1rem;\n line-height: 21px;\n\n ","\n"]);return _templateObject4=function(){return t},t}function _templateObject5(){let t=(0,p._)(["\n padding: 0 0 12px;\n font-size: 1.125rem;\n "]);return _templateObject5=function(){return t},t}function _templateObject6(){let t=(0,p._)(["\n padding: 12px;\n font-size: 1rem;\n font-weight: 300;\n line-height: 1.5;\n\n ","\n"]);return _templateObject6=function(){return t},t}let ReportSection=t=>{let{children:e,title:n,hiddenBorder:r=!1,extra:o}=t;return(0,l.jsxs)(_,{hiddenBorder:r,children:[(0,l.jsxs)(m,{children:[(0,l.jsx)("h3",{children:n}),(0,l.jsx)(c.xu,{children:o})]}),(0,l.jsx)(f,{children:e})]})},s=(0,d.iv)(_templateObject1(),(0,u.wz)(_templateObject())),_=d.ZP.section.withConfig({componentId:"sc-b4233fc5-0"}
1)(_templateObject2(),t=>{let{hiddenBorder:e}=t;return e?null:s}),m=d.ZP.div.withConfig({componentId:"sc-b4233fc5-1"})(_templateObject4(),(0,u.wz)(_templateObject3())),f=d.ZP.div.withConfig({componentId:"sc-b4233fc5-2"})(_templateObject6(),(0,u.wz)(_templateObject5()));var b=n(97004);function ReportTable_templateObject(){let t=(0,p._)(["\n width: 100%;\n border: none;\n border-collapse: collapse;\n"]);return ReportTable_templateObject=function(){return t},t}function ReportTable_templateObject1(){let t=(0,p._)([""]);return ReportTable_templateObject1=function(){return t},t}function ReportTable_templateObject2(){let t=(0,p._)([""]);return ReportTable_templateObject2=function(){return t},t}function ReportTable_templateObject3(){let t=(0,p._)(["\n padding: 4px 8px;\n font-size: 0.875rem;\n line-height: 18px;\n "]);return ReportTable_templateObject3=function(){return t},t}function ReportTable_templateObject4(){let t=(0,p._)(["\n height: 18px;\n "]);return ReportTable_templateObject4=function(){return t},t}function ReportTable_templateObject5(){let t=(0,p._)(["\n position: relative;\n padding: 8px;\n min-width: ",";\n ","\n\n color: var(--ci-color-gray-900);\n font-size: 1rem;\n font-weight: 400;\n line-height: 21px;\n word-break: break-all;\n\n background-color: #fafafa;\n border-bottom: 1px solid #f0f0f0;\n\n ","\n\n &:not(:last-child)::after {\n content: '';\n position: absolute;\n top: 50%;\n transform: translateY(-50%);\n right: 0;\n\n height: 22px;\n border-right: 1px solid #d7d7d7;\n\n ","\n }\n"]);return ReportTable_templateObject5=function(){return t},t}function ReportTable_templateObject6(){let t=(0,p._)(["\n padding: 12px;\n color: var(--ci-color-gray-900);\n font-size: 1rem;\n font-weight: 300;\n line-height: 21px;\n border-bottom: 1px solid #f0f0f0;\n min-width: ",";\n ","\n word-break: break-all;\n\n &:first-child {\n border-left: none;\n }\n &:last-child {\n border-right: none;\n }\n"]);return ReportTable_templateObject6=function(){return t},t}let ReportTable=t=>{let{columns:e,dataSource:n}=t,r=(0,b.dD)(),getColWidth=t=>{let{width:e}=t;return e?"string"==typeof e?e:r&&Array.isArray(e)?e[1]:e[0]:null};return(0,l.jsxs)(h,{children:[(0,l.jsx)(x,{children:(0,l.jsx)(j,{children:e.map((t,e)=>r&&t.hiddenOnMobile?null:(0,l.jsx)(g,{align:"center",width:getColWidth({width:null==t?void 0:t.width}),children:t.name},e))})}),(0,l.jsx)("tbody",{children:n.map((t,n)=>(0,l.jsx)(j,{children:e.map((e,n)=>r&&e.hiddenOnMobile?null:(0,l.jsx)(R,{align:null==e?void 0:e.align,width:getColWidth({width:null==e?void 0:e.width}),children:e.render?e.render(t[e.dataIndex]):t[e.dataIndex]},n))},n))})]})},h=d.ZP.table.withConfig({componentId:"sc-d77eda6-0"})(ReportTable_templateObject()),x=d.ZP.thead.withConfig({componentId:"sc-d77eda6-1"})(ReportTable_templateObject1()),j=d.ZP.tr.withConfig({componentId:"sc-d77eda6-2"})(ReportTable_templateObject2()),g=d.ZP.th.withConfig({componentId:"sc-d77eda6-3"})(ReportTable_templateObject5(),t=>{let{width:e}=t;return e},t=>{let{align:e}=t;return e?"text-align: ".concat(e,";"):null},(0,u.wz)(ReportTable_templateObject3()),(0,u.wz)(ReportTable_templateObject4())),R=d.ZP.td.withConfig({componentId:"sc-d77eda6-4"})(ReportTable_templateObject6(),t=>{let{width:e}=t;return e},t=>{let{align:e}=t;return e?"text-align: ".concat(e,";"):null});var w=n(46397);function ReportWork_templateObject(){let t=(0,p._)(["\n &:first-child {\n margin-top: -12px;\n }\n "]);return ReportWork_templateObject=function(){return t},t}function ReportWork_templateObject1(){let t=(0,p._)(["\n &:not(:last-child) {\n border-bottom: 1px solid var(--ci-color-gray-100);\n }\n ","\n"]);return ReportWork_templateObject1=function(){return t},t}function ReportWork_templateObject2(){let t=(0,p._)(["\n padding: 1rem;\n "]);return ReportWork_templateObject2=function(){return t},t}function ReportWork_templateObject3(){let t=(0,p._)(["\n padding: 24px 8px 8px;\n color: var(--ci-color-primary-400);\n font-size: 1.125rem;\n font-weight: 500;\n line-height: 22px;\n text-align: center;\n\n ","\n"]);
1return ReportWork_templateObject3=function(){return t},t}function ReportWork_templateObject4(){let t=(0,p._)(["\n &:not(:last-child) {\n margin-bottom: 1rem;\n }\n"]);return ReportWork_templateObject4=function(){return t},t}let ReportWork=t=>{let{accumulation:e,works:n}=t;return(0,l.jsx)(c.xu,{children:n.map(t=>(0,l.jsx)(ReportWorkItem,{work:t,accumulation:e},t._id))})},ReportWorkItem=t=>{var e,n,r;let{accumulation:o,work:i}=t,p=(0,a.useMemo)(()=>{var t,e;return null===(e=o.workerNumPerProcess)||void 0===e?void 0:null===(t=e.find(t=>t.process_id===i.process_id))||void 0===t?void 0:t.totalNum},[o.workerNumPerProcess,i.process_id]);return(0,l.jsxs)(O,{children:[(0,l.jsx)(k,{children:null==i?void 0:null===(e=i.process)||void 0===e?void 0:e.title}),(0,l.jsx)(ReportWorkWorkers,{processTitle:(null==i?void 0:null===(n=i.process)||void 0===n?void 0:n.title)||"",workers:i.workers,totalWorkerCount:p,accumulations:o.workers}),(0,l.jsx)(ReportWorkMaterials,{materials:i.materials,accumulations:o.materials}),(0,l.jsx)(c.xu,{as:"ul",mb:"1rem",children:null==i?void 0:null===(r=i.photos)||void 0===r?void 0:r.map((t,e)=>(0,l.jsx)(y,{children:(0,l.jsx)(w.MB,{src:t.url,alt:t.url})},e))})]})},O=d.ZP.div.withConfig({componentId:"sc-d4af9c0e-0"})(ReportWork_templateObject1(),(0,u.wz)(ReportWork_templateObject())),k=d.ZP.h2.withConfig({componentId:"sc-d4af9c0e-1"})(ReportWork_templateObject3(),(0,u.wz)(ReportWork_templateObject2())),y=d.ZP.li.withConfig({componentId:"sc-d4af9c0e-2"})(ReportWork_templateObject4());var v=n(69813),T=n(67421);(r=o||(o={})).Day="DAY",r.Night="NIGHT",r.OverNight="OVERNIGHT";let ReportWorkShiftTag=t=>{let{workShift:e=o.Day}=t,{t:n}=(0,T.useTranslation)("global");switch(e){case o.Day:return(0,l.jsx)(v.Tag,{color:"blue",variant:"filled",children:n("m_work_shift_day")});case o.Night:return(0,l.jsx)(v.Tag,{style:{color:"#FFF",background:"#2DD4BF",border:"1px solid rgba(0, 0, 0, 0.05)"},children:n("m_work_shift_night")});case o.OverNight:return(0,l.jsx)(v.Tag,{style:{background:"rgba(255, 102, 97, 0.10)",color:"#DD5854",border:"1px solid rgba(255, 102, 97, 0.20)"},children:n("m_work_shift_overnight")})}},ReportWorkWorkers=t=>{let{accumulations:e,workers:n,totalWorkerCount:r}=t,{t:o}=(0,i.$G)("intro"),p=[{name:o("intro:report_worker_position_name"),dataIndex:"title",align:"left"},{name:o("intro:report_work_shift"),align:"center",dataIndex:"workShift",width:["14%","20%"],render:t=>(0,l.jsx)(ReportWorkShiftTag,{workShift:t})},{name:o("intro:report_worker_main_num_label"),dataIndex:"mainNum",align:"center",width:["14%","20%"]},{name:o("intro:report_worker_sub_num_label"),dataIndex:"subNum",align:"center",width:["14%","20%"]}],u=(0,a.useMemo)(()=>(null==n?void 0:n.map(t=>({title:t.title,mainNum:"".concat(t.mainNum).concat(o("intro:report_worker_unit")),subNum:"".concat(t.subNum).concat(o("intro:report_worker_unit")),totalNum:(()=>{let n=e.find(e=>e._id===t.title);return n?(null==n?void 0:n.totalNum)+o("intro:report_worker_unit"):""})(),workShift:t.workShift})))||[],[e,n,o]);return n&&0!==n.length?(0,l.jsx)(ReportSection,{title:o("intro:report_worker_section_title"),extra:r?(0,l.jsxs)(c.xu,{children:[o("intro:report_worker_count_by_process"),":"," ",r,o("intro:report_worker_unit")]}):null,hiddenBorder:!0,children:(0,l.jsx)(ReportTable,{columns:p,dataSource:u})}):null},ReportWorkMaterials=t=>{let{accumulations:e,materials:n}=t,{t:r}=(0,i.$G)("intro"),o=[{name:r("intro:report_material_name"),dataIndex:"title",align:"left"},{name:r("intro:report_material_size"),dataIndex:"size",align:"center",width:["14%","24%"]},{name:r("intro:report_material_unit"),dataIndex:"unit",align:"center",width:"14%",hiddenOnMobile:!0},{name:r("intro:report_material_quantity"),dataIndex:"quantity",align:"center",width:["12%","24%"]},{name:r("intro:report_material_total_quantity"),dataIndex:"totalQuantity",align:"center",width:"12%",hiddenOnMobile:!0},{name:r("intro:report_material_memo"),dataIndex:"memo",align:"left",hiddenOnMobile:!0}],c=(0,a.useMemo)(()=>(null==n?void 0:n.map(t=>({...t,quantity:"".concat(t.quantity).concat(t.unit),totalQuantity:(()=>{let n=e.find(e=>e._id.title===t.title);return n?n.quantity+t.unit:""})()})))||[],[e,n]);return n&&0!==n.length?(0,l.jsx)(ReportSection,{title:r("intro:report_material_section_title"),children:(0,l.jsx)(ReportTable,{columns:o,dataSource:c})}):null},ReportEquips=t=>{let{accumulations:e,equips:n}=t,{t:r}=(0,i.$G)("intro"),o=[{name:r("intro:report_equip_name"),dataIndex:"title"},{name:r("intro:report_equip_quantity"),dataIndex:"quantity",align:"center"},{name:r("intro:report_equip_total_quantity"),dataIndex:"totalQuantity",align:"center"},{name:r("intro:report_equip_memo"),dataIndex:"memo",align:"center"}],c=(0,a.useMemo)(()=>n.map(t=>({...t,quantity:t.quantity+r("intro:report_equip_quantity_unit"),totalQuantity:(()=>{let n=e.find(e=>e._id===t.title);return n?(null==n?void 0:n.totalQuantity)+r("intro:report_equip_quantity_unit"):""})()})),[e,n,r]);return n&&0!==n.length?(0,l.jsx)(ReportSection,{title:r("intro:report_equip_section_title"),children:(0,l.jsx)(ReportTable,{columns:o,dataSource:c})}):null}}}]);
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.