PageSourceSearch

https://s-meiban.rentals.link/_next/static/chunks/2718-0597f589f2863ba8.js

js rentals.link collected 2026-10-08 16:26:09 UTC 11,067 bytes, 5 lines download raw bytes

1"use strict";
2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="b04466bb-a37e-541c-9bf9-fee8f863c60a")}catch(e){}}();
3(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2718],{2665:(e,a,t)=>{t.d(a,{a:()=>i});var n=t(64476),s=t(43595),o=t(5365),r=t(87299);function i(e){let{status:a,onConfirm:t}=e,i=(0,r.o)(a);return(0,n.jsxs)(s.p,{variant:i.bannerVariant,children:[i.bannerText,(0,n.jsx)(o.Y,{onClick:t,underline:"always",withArrow:!1,children:"確認する"})]})}},42718:(e,a,t)=>{t.d(a,{Q:()=>E,k:()=>F});var n=t(64476),s=t(5776),o=t(2121),r=t(28154),i=t(84395),l=t(64420),p=t(2665),c=t(75463),d=t(45838),m=t(63709),u=t(36126),v=t(50221),h=t(8551),x=t(22738),g=t(29298),j=t(92931),b=t(33791),w=t(72310),C=t(19387),T=t(25391),f=t(16691),S=t(39623),I=t(29366),k=t(30879);let A=f.FT._50,F=e=>(0,s.useMemo)(()=>{var a,t;return{isResultView:!!e.latestTimestamp&&e.latestTimestamp>0,hasError:!e.latestTimestamp&&!(null==(a=e.inspectionItems)?void 0:a.every(a=>a.questions.every(a=>{let t=e.answeredItems[a.questionId];return(0,S.xA)(a.inputType)?(0,S.ib)(a.inputType,null==t?void 0:t.value):!!(null==t?void 0:t.answerId)}))),hasLengthError:!e.latestTimestamp&&!!(null==(t=e.inspectionItems)?void 0:t.some(a=>a.questions.some(a=>{if(!(0,S.xA)(a.inputType))return!1;let t=e.answeredItems[a.questionId];return(0,S.hj)(a.inputType,null==t?void 0:t.value)})))}},[e]),N=(0,o.A)({MainTemplate:{boxShadow:"none"},MainContent:{maxWidth:"480px !important"},MainContentToast:{":root &":{...(0,k.n)("sm",{maxWidth:480})}},FloatArea:{":root &":{display:"flex",justifyContent:"center",padding:"12px 14px",position:"sticky",bottom:0,...(0,k.n)("md",{backgroundColor:b.Tj.white})},"& > div":{flex:"1 1 100%",...(0,k.n)("md",{flex:"0 0 640px"})}},FloatButton:{boxShadow:"0px 1px 6px rgba(0, 0, 0, 0.25)"}});function y(e){var a,t;
3let{productCode:o,rentalNo:j}=e,[b,S]=(0,s.useState)({answeredItems:{},productCode:o,rentalNo:j,attachFiles:[]}),k=N(),{isResultView:y,hasError:E,hasLengthError:R}=F(b),{initializeApprovalRequest:z,approvalSteps:_,setApprovalSteps:L,isApproverSelected:M,setIsApproverSelected:q,showApprovalRequestSection:B,hasMissingApprover:V,approvalStepsForRequest:W}=(0,m.m)(y),Z=(0,C.Br)(),U=(0,s.useCallback)(async()=>{let e=await Z(o,j);S({product:e.product,inspectionItems:e.inspectionItems,answeredItems:{},productCode:o,rentalNo:j,inspectionRemarks:"",attachFiles:[]}),z(e.enabledApprovalFlow,e.approvalCandidates),window.scrollTo({top:0})},[Z,o,j,z]);(0,w.qK)(U);let[G,O]=(0,w.pE)({block:"start",behavior:"smooth"}),[$,H]=(0,w.pE)({block:"start",behavior:"smooth"}),[D,Q,X]=(0,w.oP)(),J=(0,C.T$)(),K=(0,s.useCallback)(async()=>{var e;if(Q(),E||!b.userName||!b.inspectorName||((null==(e=b.inspectionRemarks)?void 0:e.length)||0)>100||V){O(),S({...b,isSubmitted:!0});return}let a=await J(o,j,{userName:b.userName,inspectorName:b.inspectorName,answeredItems:Object.values(b.answeredItems),locationOfUsedName:b.locationOfUsedName,inspectionRemarks:b.inspectionRemarks,attachFiles:b.attachFiles,approvalSteps:W});S({...b,latestTimestamp:a.updateTimestamp,isSubmitted:!1,isRecorded:!0,inspectionApprovalFlow:W?{approvalStatus:A,approvalSteps:W.map(e=>({approverLevel:e.approverLevel,approvalStatus:A}))}:void 0}),window.scrollTo({top:0})},[J,o,j,b,Q,O,E,V,W]),P=(0,T.rd)();if(!b.product||!b.inspectionItems)return(0,n.jsx)(r.Rh,{isLoading:!0});let Y=!E&&b.userName&&b.inspectorName?((null==(t=b.inspectionRemarks)?void 0:t.length)||0)>100?{message:"点検備考は100文字以内で入力してください",variant:"error"}:V?{message:"1人以上の承認先を選択してください。",variant:"error"}:b.inspectionApprovalFlow?{message:"点検ありがとうございました!承認者に点検承認依頼を送信しました。",variant:"info"}:{message:"点検記録が完了しました。ご協力ありがとうございました!今日も一日ご安全に!",variant:"info"}:{message:"未回答の項目があるため完了できません。該当の項目にお答えください。",variant:"error"},ee=(0,n.jsxs)(h.Z,{backgroundColor:"white",margin:"0 auto",padding:"0",className:k.MainContent,children:[(0,n.jsx)(v.j,{latestTimestamp:b.latestTimestamp,product:b.product,inspectionItems:b.inspectionItems,answeredItems:b.answeredItems,setAnsweredItems:e=>S({...b,answeredItems:e}),scrollAnchorRef:G,isViewError:b.isSubmitted,approvalBanner:y&&b.inspectionApprovalFlow?(0,n.jsx)(p.a,{status:b.inspectionApprovalFlow.approvalStatus,onConfirm:H}):null}),(0,n.jsx)(u.G,{isResultView:y,state:b,setUserName:e=>S({...b,userName:e}),setInspectorName:e=>S({...b,inspectorName:e}),setLocationOfUsed:e=>S({...b,locationOfUsedName:e}),setInspectionRemarks:e=>S({...b,inspectionRemarks:e}),setAttachFiles:e=>S({...b,attachFiles:e})}),B&&_&&(0,n.jsx)(c.I,{approvalSteps:_,setApprovalSteps:L,isSelected:M,setSelected:q,showErrorMessage:!!b.isSubmitted,hideApproverRoleAndEmail:!0}),y&&b.inspectionApprovalFlow&&b.inspectionApprovalFlow.approvalSteps.length>0&&(0,n.jsx)(d.B,{inspectionApprovalStatus:b.inspectionApprovalFlow.approvalStatus,approvalSteps:b.inspectionApprovalFlow.approvalSteps,anchorRef:$}),!y&&(0,n.jsx)(h.Z,{padding:"0 14px 32px",children:(0,n.jsx)(l.$,{onClick:K,fullWidth:!0,size:"large",disabled:b.product.rentalStatus===f.EX._200||!b.userName||!b.inspectorName||((null==(a=b.inspectionRemarks)?void 0:a.length)||0)>100||V||R,children:"点検完了"})}),D&&(0,n.jsx)(i.y,{className:k.MainContentToast,message:Y.message,open:!0,variant:Y.variant,onClose:X,vertical:"top"})]});return(0,n.jsxs)("div",{children:[(0,n.jsx)(g.SN,{hasFullWidth:!0,mainContent:ee,className:k.MainTemplate}),y&&(0,n.jsx)("div",{className:k.FloatArea,children:(0,n.jsxs)(x.s,{children:[(0,n.jsx)(x.Z,{grow:1,className:k.FloatButton,children:(0,n.jsx)(l.$,{size:"large",startIcon:"camera",startIconSize:"24px",onClick:()=>P.push((0,I.oz)()),fullWidth:!0,children:"QRから点検"})}),(0,n.jsx)(x.Z,{grow:1,margin:"0 0 0 16px",className:k.FloatButton,children:(0,n.jsx)(l.$,{size:"large",startIcon:"checkList",startIconSize:"24px",onClick:U,disabled:b.product.rentalStatus===f.EX._200,fullWidth:!0,children:"再点検"})})]})})]})}
3function E(e){let{productCode:a,rentalNo:t}=e;return(0,n.jsx)(j.g,{title:"点検表",productCode:a,rentalNo:t,verifyRentalStatus:!0,verifyCheckList:!0,children:(0,n.jsx)(y,{productCode:a,rentalNo:t})})}},45838:(e,a,t)=>{t.d(a,{B:()=>f});var n=t(64476),s=t(51022),o=t(48923),r=t(43669),i=t(42434),l=t(8167),p=t(62319),c=t(8551),d=t(22738),m=t(33791),u=t(16691),v=t(95293),h=t(2121),x=t(29832),g=t.n(x),j=t(87299);let b=(0,h.A)({InspectionApprovalLabel:{display:"inline-flex",alignItems:"center",fontSize:15,fontWeight:500,lineHeight:1,"&.-variant-square":{padding:"2px 8px",borderRadius:2,fontSize:16,lineHeight:1.5,color:m.Tj.text900,"&.-color-default":{color:m.Tj.disabledTexts},"&.-color-approve":{backgroundColor:m.Tj.info600,color:m.Tj.white},"&.-color-unapprove":{backgroundColor:m.Tj.muiGrey600,color:m.Tj.muiGrey200},"&.-color-reject":{backgroundColor:m.Tj.error600,color:m.Tj.white}}},InspectionApprovalLabelIcon:{":root &":{lineHeight:0,marginRight:"4px"}}});function w(e){let{status:a,variant:t="square",children:s}=e,o=b(),r=(0,j.o)(a),i=r.labelColorClass,l=null!=s?s:r.label;return(0,n.jsxs)("span",{className:g()(o.InspectionApprovalLabel,"-variant-".concat(t),"-color-".concat(i)),children:[(0,n.jsx)(p.I,{iconName:r.icon,className:o.InspectionApprovalLabelIcon,fontSize:"20px"}),l]})}let C=(0,s.Ay)("div")({padding:"8px 0","&:nth-child(n+2)":{borderTop:"1px solid ".concat(m.Tj.grey)}}),T=(0,s.Ay)(i.E)({marginTop:4,whiteSpace:"pre-wrap",wordBreak:"break-all"});function f(e){let{inspectionApprovalStatus:a,approvalSteps:t,anchorRef:s,enableScrollMargin:m}=e;return(0,n.jsxs)(c.Z,{padding:"0 14px 44px",backgroundColor:"white",children:[(0,n.jsx)(o.A,{ref:s,sx:{scrollMarginTop:{md:m?61:void 0}}}),(0,n.jsxs)(d.s,{gap:12,alignItems:"center",margin:"0 0 12px",children:[(0,n.jsx)(l.hE,{component:"h3",children:"承認ステータス"}),(0,n.jsx)(w,{status:a})]}),(0,n.jsx)("div",{children:t.map((e,a)=>{var s;let o=(0,r.V)(t.length,a),l=e.approvalStatus,m=(0,j.o)(l),h=l===u.FT._60||l===u.FT._80,x=h&&(0,v.m2)(null==(s=e.approvalCustomer)?void 0:s.name)||"-";return(0,n.jsxs)(C,{children:[(0,n.jsxs)(d.s,{alignItems:"center",gap:4,padding:"4px 0",children:[(0,n.jsx)(d.Z,{basis:"96px",shrink:0,children:(0,n.jsx)(i.E,{size:"small",fontWeight:500,children:o})}),(0,n.jsx)(p.I,{iconName:m.icon,color:m.iconColor,fontSize:"16px"}),(0,n.jsx)(i.E,{size:"small",children:x})]}),h&&e.approvalComment&&(0,n.jsxs)(c.Z,{backgroundColor:"backgroundGrey",padding:"8px 12px",margin:"8px 0 0",children:[(0,n.jsx)(i.E,{size:"small",children:"コメント"}),(0,n.jsx)(T,{size:"small",children:e.approvalComment})]})]},"approval-step-".concat(e.approverLevel))})})]})}},63709:(e,a,t)=>{t.d(a,{m:()=>s});var n=t(5776);function s(e){let[a,t]=(0,n.useState)(!1),[s,o]=(0,n.useState)(),[r,i]=(0,n.useState)(!1),l=(0,n.useCallback)((e,a)=>{t(e),o(null==a?void 0:a.map(e=>({...e,approvalCustomers:e.approvalCustomers.map(e=>({...e,selected:!1}))}))),i(!1)},[]),p=!e&&a&&!!s&&s.length>0;return{initializeApprovalRequest:l,approvalSteps:s,setApprovalSteps:o,isApproverSelected:r,setIsApproverSelected:i,showApprovalRequestSection:p,hasMissingApprover:p&&!r,approvalStepsForRequest:p?s:void 0}}},75463:(e,a,t)=>{t.d(a,{I:()=>p});var n=t(64476),s=t(53364),o=t(8167),r=t(84091),i=t(8551),l=t(22738);function p(e){let{approvalSteps:a,setApprovalSteps:t,isSelected:p,setSelected:c,showErrorMessage:d,hideApproverRoleAndEmail:m}=e;return(0,n.jsxs)(i.Z,{padding:"0 14px",margin:"0 0 44px",backgroundColor:"white",children:[(0,n.jsxs)(l.s,{alignItems:"center",gap:4,margin:"0 0 4px",children:[(0,n.jsx)(o.hE,{component:"h2",children:"点検の承認依頼"}),(0,n.jsx)(r.C,{labelText:"required",size:"small"})]}),(0,n.jsx)(s.Jw,{approvalSteps:a,setApprovalSteps:t,isSelected:p,setSelected:c,showErrorMessage:d,description:s.DC.inspection,hideApproverRoleAndEmail:m})]})}},87299:(e,a,t)=>{t.d(a,{o:()=>o});var n=t(16691);let s={[n.FT._50]:{labelColorClass:"unapprove",icon:"checkCircleDotted",iconColor:"grey",label:"未承認",bannerVariant:"warning",bannerText:"この点検記録は未承認です。承認者による承認が必要です。"},[n.FT._60]:{labelColorClass:"reject",icon:"closeCircle",iconColor:"error600",label:"却下済み",bannerVariant:"warning",bannerText:"この点検記録は却下済みです。"},[n.FT._80]:{labelColorClass:"approve",icon:"checkCircle",iconColor:"info600",label:"承認済み",bannerVariant:"info",bannerText:"この点検記録は承認済みです。"}};function o(e){if(e!==n.FT._50&&e!==n.FT._60&&e!==n.FT._80)throw Error("Unsupported inspection approval status: ".concat(e));return s[e]}}}]);
4//# sourceMappingURL=2718-0597f589f2863ba8.js.map
5//# debugId=b04466bb-a37e-541c-9bf9-fee8f863c60a

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.