PageSourceSearch

https://milly-platform.app/_next/static/chunks/3130.cc7f399b1c2e5356.js

js milly-platform.app collected 2026-10-04 19:31:03 UTC 14,862 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3130],{20:(e,t,r)=>{r.d(t,{P:()=>s});var n=r(37876),l=r(86198),a=r(14232),i=r(88992);let s=e=>{let{name:t,control:r,...s}=e,o=(0,a.useId)();return(0,n.jsx)(i.xI,{name:t,control:r,render:e=>{let{field:{value:t,...r}}=e;return(0,n.jsx)(l.A,{...r,id:o,checked:t,...s})}})}},2838:(e,t,r)=>{r.d(t,{F:()=>m});var n=r(37876),l=r(71733),a=r(6482),i=r(89037),s=r(48230),o=r.n(s),d=r(89099),c=r(14232),u=r(77164);let m=e=>{let{sx:t,title:r,rightItem:s,enablePopover:m=!1,popoverLinkPath:p,fallbackHref:x="/",...h}=e,g=(0,d.useRouter)(),[j,y]=(0,c.useState)(null);return(0,n.jsxs)(i.A,{sx:{display:"flex",alignItems:"center",borderBottom:"1px solid #DDDDDD",background:"white",position:"relative",height:"64px",flexShrink:0,...t},...h,children:[(0,n.jsx)(l.A,{onClick:()=>{if(window.history.length<=1)return void g.push(x);let e=window.location.href;g.back(),window.setTimeout(()=>{window.location.href===e&&g.push(x)},600)},"aria-label":"back",sx:{marginLeft:"10px"},children:(0,n.jsx)(u.FZc,{size:24})}),(0,n.jsx)(i.A,{component:"h1",className:"ellipsis",sx:{...s?{marginRight:"auto"}:{position:"absolute",top:"50%",left:"50%",transform:"translateY(-50%) translateX(-50%)",margin:"auto"},fontWeight:"bold",marginRight:"5px",fontSize:"16px",maxWidth:"70%"},onClick:e=>{y(e.currentTarget)},children:r}),m&&(0,n.jsx)(a.Ay,{open:!!j,anchorEl:j,anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},onClose:()=>{y(null)},children:(0,n.jsx)(i.A,{sx:{p:1},children:p?(0,n.jsx)(o(),{href:p,children:r}):(0,n.jsx)(i.A,{children:r})})}),s||null]})}},5001:(e,t,r)=>{r.d(t,{Y:()=>n});let n=(e,t,r)=>{var n,l,a;return[...null!=(a=null==e||null==(l=e.find(e=>e.name===t&&"OPTION"===e.type))||null==(n=l.options)?void 0:n.map(e=>({value:e.id,label:"ja"===r?e.name:e.nameEn})))?a:[]]}},28848:(e,t,r)=>{r.d(t,{H:()=>o});var n=r(37876),l=r(14232),a=r(88992),i=r(88064),s=r(21834);let o=e=>{let{name:t,options:r,control:o,...d}=e,c=(0,l.useId)(),{isMobileOrTablet:u}=(0,s.b)();return(0,n.jsx)(a.xI,{name:t,control:o,render:e=>{let{field:{onChange:t,onBlur:l,value:a,name:s,ref:o}}=e;return(0,n.jsx)(i.Ay,{ref:o,instanceId:c,name:s,options:r,value:a,onChange:t,onBlur:l,isMulti:!0,components:{IndicatorSeparator:void 0},isSearchable:!u,styles:{container:e=>({...e,width:"100%"}),control:e=>({...e,height:"48px"}),menuPortal:e=>({...e,zIndex:5}),valueContainer:e=>({...e,display:"flex",alignItems:"center",flexWrap:"nowrap",padding:"2px"}),multiValue:e=>({...e,fontSize:"18px"}),multiValueRemove:e=>({...e,":hover":{backgroundColor:"transparent"}}),placeholder:e=>({...e,marginLeft:"8px"})},isClearable:!1,menuPosition:"fixed",noOptionsMessage:()=>"選択肢がありません",getOptionValue:e=>e.label,...d})}})}},36846:(e,t,r)=>{r.d(t,{Bx:()=>a,W:()=>s,Yx:()=>d,t_:()=>o,td:()=>i});var n=r(6381);let l=e=>n.z.string().regex(/^\d+$/,{message:"0以上の数値を入力してください"}).transform((t,r)=>(Number(t)>e&&r.addIssue({code:n.z.ZodIssueCode.too_big,inclusive:!0,type:"number",maximum:e}),t));l(1e6);let a=n.z.union([l(1e6),n.z.string().max(0)]),i=e=>n.z.union([l(e),n.z.string().max(0)]),s=n.z.custom().refine(e=>!e||e.size<1e3*Number("200")*1e3,{message:"ファイルサイズは最大".concat("200","MBです")}),o=n.z.custom().nullable().refine(e=>!e||e.size<1e3*Number("200")*1e3,{message:"ファイルサイズは最大".concat("200","MBです")}),d=n.z.date().nullable().transform((e,t)=>(null==e&&t.addIssue({code:n.z.ZodIssueCode.custom,message:"日付を入力してください"}),e))},55666:(e,t,r)=>{r.d(t,{q:()=>s});var n=r(37876),l=r(1912),a=r(14232),i=r(88992);let s=e=>{let{name:t,control:r,...s}=e,o=(0,a.useId)();return(0,n.jsx)(i.xI,{name:t,control:r,render:e=>{var t;let{field:r,fieldState:a}=e;return(0,n.jsx)(l.A,{...r,id:o,variant:"outlined",fullWidth:!0,error:a.invalid,helperText:null==(t=a.error)?void 0:t.message,...s})}})}},56939:(e,t,r)=>{r.d(t,{n:()=>i});var n=r(15681),l=r(91040);let a=async e=>{let t=new URLSearchParams;t.set("count",e.query.count.toString());let{data:r}=await l.A.get("/api/upload_signed_urls?".concat(t.toString()));return r},i=e=>(0,n.I)({queryKey:["getUploadSignedUrls"],queryFn:()=>a(e),enabled:!1})},63130:(e,t,r)=>{r.r(t),r.d(t,{NewJob:()=>O});var n=r(37876),l=r(38388),a=r(82907),i=r(67282),s=r(41316),o=r(39467),d=r(14232),c=r(36846),u=r(13810),m=r(88992),p=r(6381);let x=p.z.object({showCompanyName:p.z.boolean(),productName:p.z.string().min(1).max(20),budget:c.Bx,file:c.t_,desiredDeliveryDate:p.z.date().nullable(),expiredAt:c.Yx,description:p.z.string().min(1).max(2e3),processes:p.z.object({value:p.z.string(),label:p.z.string()}).array(),supplyFor:p.z.object({value:p.z.string(),label:p.z.string()}).array(),materials:p.z.object({value:p.z.string(),label:p.z.string()}).array(),length:c.Bx,width:c.Bx,height:c.Bx,diameter:c.Bx,fullLength:c.Bx}),h=()=>(0,m.xW)(),g=e=>{let{children:t}=e,r=(0,m.mN)({mode:"onSubmit",resolver:(0,u.u)(x),defaultValues:{showCompanyName:!0,productName:"",budget:"",file:null,desiredDeliveryDate:null,description:"",processes:[],supplyFor:[],materials:[],length:"",width:"",height:"",diameter:"",fullLength:""}});return(0,n.jsx)(m.Op,{...r,children:t})};var j=r(89848),y=r(5001),b=r(20),f=r(2547),v=r(91040);let A=async e=>{let{data:t}=await v.A.post("/api/jobs",e.body);return t};var w=r(28902),_=r(63356),N=r(40295);let z=()=>{let{t:e}=(0,N.B)(),{control:t,setValue:r}=h(),a=(0,m.FH)({control:t,name:"file"}),i=(0,d.useRef)(null),s=async t=>{let n=t.target.files||[];
1if(n.length<1)return;let l=n[0];if(l.size>1e3*Number("200")*1e3)return void j.oR.error(e("shared.file.error.large",{value:"200"}));r("file",l)};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(w.A,{variant:"contained",color:"primary",onClick:()=>{var e;return null==(e=i.current)?void 0:e.click()},children:e("shared.file.label")}),a&&(0,n.jsx)(l.A,{sx:{marginTop:"10px"},children:(0,n.jsx)(_.A,{label:a.name,onDelete:()=>r("file",null),sx:{mr:2}})}),(0,n.jsx)("input",{ref:i,type:"file",onChange:s,style:{display:"none"}})]})};var k=r(97250),C=r(89099),I=r(8719),D=r(83998),B=r(94696),S=r(28848),F=r(55666),W=r(56939);let q=(0,d.memo)(e=>{var t,r;let{t:a}=(0,N.B)(),{locale:d}=(0,C.useRouter)(),c=(0,C.useRouter)(),{companyProperties:u}=e,{handleSubmit:m,control:p,formState:{errors:x}}=h(),{postJob:g}={postJob:(0,f.n)({mutationFn:e=>A(e)})},{refetch:w}=(0,W.n)({query:{count:1}}),_=async e=>{var t,r;let n,l=null==(r=(await w()).data)||null==(t=r.uploads)?void 0:t[0];if(!l)return void j.oR.error(a("job.new.error"));e.file&&(await v.A.put(l.url,e.file,{headers:{"Content-Type":"application/octet-stream"}}),n={fileKey:l.fileKey,originalFilename:e.file.name});let i={job:{showCompanyName:e.showCompanyName,productName:e.productName,description:e.description,expiredAt:e.expiredAt.toISOString(),...e.budget&&{budget:Number(e.budget)},...e.desiredDeliveryDate&&{desiredDeliveryDate:e.desiredDeliveryDate.toISOString()}},jobPropertyIntegers:[...e.length&&"0"!==e.length?[{name:"length",value:Number(e.length)}]:[],...e.width&&"0"!==e.width?[{name:"width",value:Number(e.width)}]:[],...e.height&&"0"!==e.height?[{name:"height",value:Number(e.height)}]:[],...e.diameter&&"0"!==e.diameter?[{name:"diameter",value:Number(e.diameter)}]:[],...e.fullLength&&"0"!==e.fullLength?[{name:"fullLength",value:Number(e.fullLength)}]:[]],jobPropertyOptionIdsInFields:[...e.processes.map(e=>e.value),...e.supplyFor.map(e=>e.value),...e.materials.map(e=>e.value)],jobFiles:[...n?[n]:[]]};g.mutate({body:i},{onSuccess:async e=>{j.oR.success(a("job.new.success")),c.push("/jobs")}})};return(0,n.jsxs)(l.A,{component:"form",onSubmit:m(_),children:[(0,n.jsxs)(s.Ay,{container:!0,spacing:3,children:[(0,n.jsxs)(s.Ay,{item:!0,xs:12,children:[(0,n.jsx)(l.A,{sx:{fontWeight:"bold"},children:a("job.new.show_company_name")}),(0,n.jsx)(b.P,{name:"showCompanyName",control:p})]}),(0,n.jsx)(s.Ay,{item:!0,xs:12,children:(0,n.jsx)(D.J,{name:"productName",label:a("job.detail.delete.order_title"),control:p,fullWidth:!0})}),(0,n.jsx)(s.Ay,{item:!0,xs:12,children:(0,n.jsx)(D.J,{name:"budget",label:a("shared.budget"),control:p,type:"number",fullWidth:!0,endAdornment:(0,n.jsx)(o.A,{position:"end",sx:{marginRight:"15px"},children:"円"})})}),(0,n.jsx)(s.Ay,{item:!0,xs:12,children:(0,n.jsx)(B.B,{name:"desiredDeliveryDate",label:a("orders.edit_quote_request.due_data"),control:p,endIcon:(0,n.jsx)(k.u$_,{size:30}),minDate:new Date})}),(0,n.jsx)(s.Ay,{item:!0,xs:12,children:(0,n.jsx)(B.B,{name:"expiredAt",label:a("shared.expired_at"),control:p,endIcon:(0,n.jsx)(k.u$_,{size:30}),minDate:new Date})}),(0,n.jsx)(s.Ay,{item:!0,xs:12,children:(0,n.jsx)(S.H,{name:"processes",control:p,placeholder:a("edit_company.processes"),options:(0,y.Y)(u,"processes",d||"ja")})}),(0,n.jsx)(s.Ay,{item:!0,xs:12,children:(0,n.jsx)(S.H,{name:"supplyFor",control:p,placeholder:a("shared.search.supply_for"),options:(0,y.Y)(u,"supplyFor",d||"ja")})}),(0,n.jsx)(s.Ay,{item:!0,xs:12,children:(0,n.jsx)(S.H,{name:"materials",control:p,placeholder:a("edit_company.material"),options:(0,y.Y)(u,"materials",d||"ja")})}),(0,n.jsxs)(s.Ay,{item:!0,xs:12,children:[(0,n.jsx)(l.A,{sx:{fontWeight:"bold",marginBottom:"8px"},children:a("shared.sunpou")}),(0,n.jsxs)(l.A,{sx:{display:"flex",alignItems:"center"},children:[(0,n.jsx)(F.q,{type:"number",name:"length",control:p,placeholder:a("shared.height_with_unit"),sx:{flexGrow:1}}),(0,n.jsx)(I.j55,{style:{margin:"0px 8px",width:"10px",flexShrink:0}}),(0,n.jsx)(F.q,{type:"number",name:"width",control:p,placeholder:a("shared.width_with_unit"),sx:{flexGrow:1}}),(0,n.jsx)(I.j55,{style:{margin:"0px 8px",width:"10px",flexShrink:0}}),(0,n.jsx)(F.q,{type:"number",name:"height",control:p,placeholder:a("shared.takasa_width_unit"),sx:{flexGrow:1}})]}),(0,n.jsxs)(l.A,{sx:{display:"flex",alignItems:"center",mt:2,gap:2},children:[(0,n.jsx)(F.q,{type:"number",name:"diameter",control:p,placeholder:a("edit_company.diameter"),sx:{flexGrow:1}}),(0,n.jsx)(F.q,{type:"number",name:"fullLength",control:p,placeholder:a("edit_company.full_length"),sx:{flexGrow:1}})]})]}),(0,n.jsxs)(s.Ay,{item:!0,xs:12,children:[(0,n.jsx)(l.A,{component:"label",sx:{dis
1play:"inline-block ",marginBottom:"8px",fontWeight:"bold"},children:a("orders.edit_quote_request.file")}),(0,n.jsx)(l.A,{children:(0,n.jsx)(z,{})}),(null==(t=x.file)?void 0:t.message)&&(0,n.jsx)(l.A,{sx:{color:"red",fontSize:"10px",marginTop:"3px"},children:null==(r=x.file)?void 0:r.message})]}),(0,n.jsx)(s.Ay,{item:!0,xs:12,children:(0,n.jsx)(D.J,{name:"description",label:a("shared.description"),control:p,fullWidth:!0,multiline:!0,minRows:5,placeholder:a("edit_company.description_placeholder")})})]}),(0,n.jsx)(l.A,{sx:{display:"flex",mt:4},children:(0,n.jsx)(i.A,{type:"submit",variant:"contained",color:"primary",size:"large",sx:{width:"100%"},loading:g.isPending,children:a("job.new.submit")})})]})});q.displayName="NewJobForm";var P=r(84042),R=r(2838),L=r(66681);let O=()=>{let{t:e}=(0,N.B)(),{data:t,status:r}=(0,P.q)();return(0,n.jsxs)(l.A,{sx:{display:"flex",flexDirection:"column",height:"100%",pb:{xs:6,sm:0}},children:[(0,n.jsx)(l.A,{sx:{flexShrink:0},children:(0,n.jsx)(R.F,{title:e("job.new.title")})}),(0,n.jsxs)(l.A,{sx:{flexGrow:1,minHeight:0,overflowY:"auto"},children:["pending"===r&&(0,n.jsx)(L.k,{}),"success"===r&&(0,n.jsx)(a.A,{sx:{padding:"24px",display:"flex",flexDirection:"column",gap:"15px"},maxWidth:"sm",children:(0,n.jsx)(g,{children:(0,n.jsx)(q,{companyProperties:t.companyProperties})})})]})]})}},83998:(e,t,r)=>{r.d(t,{J:()=>c});var n=r(37876),l=r(18952),a=r(38388),i=r(6854),s=r(4728),o=r(14232),d=r(88992);let c=e=>{let{name:t,label:r,control:c,labelSxProps:u,inputProps:m,sx:p,required:x,...h}=e,g=(0,o.useId)();return(0,n.jsx)(d.xI,{name:t,control:c,render:e=>{var t;let{field:o,fieldState:d}=e;return(0,n.jsxs)(l.A,{fullWidth:!0,error:d.invalid,children:[(0,n.jsxs)(a.A,{component:"label",htmlFor:g,sx:{marginBottom:"8px",fontWeight:"bold",...u},children:[r,x&&(0,n.jsx)(a.A,{component:"span",sx:{color:"error.main",ml:.5},children:"*"})]}),(0,n.jsx)(i.A,{id:g,...o,fullWidth:!0,sx:{padding:0,...p},inputProps:{style:{padding:"12.5px 14px"},...m},...h}),(0,n.jsx)(s.A,{children:null==(t=d.error)?void 0:t.message})]})}})}},84042:(e,t,r)=>{r.d(t,{q:()=>i});var n=r(15681),l=r(91040);let a=async()=>{let{data:e}=await l.A.get("/api/company_properties");return e},i=function(){let e=!(arguments.length>0)||void 0===arguments[0]||arguments[0];return(0,n.I)({queryKey:["getCompanyProperties"],queryFn:()=>a(),enabled:e})}},94696:(e,t,r)=>{r.d(t,{B:()=>y});var n=r(37876),l=r(18952),a=r(38388),i=r(6854),s=r(39467),o=r(4728),d=r(71346),c=r(22265),u=r(76734),m=r(40850),p=r(14232),x=r(39200),h=r.n(x),g=r(88992);(0,x.registerLocale)("ja",m.ja);let j=e=>{let{date:t,decreaseMonth:r,increaseMonth:l,decreaseYear:a,increaseYear:i}=e;return(0,n.jsxs)("div",{className:"datepicker__header",children:[(0,n.jsx)("button",{type:"button",className:"datepicker__button-prev",onClick:a,style:{marginRight:"10px"},children:"<<"}),(0,n.jsx)("button",{type:"button",className:"datepicker__button-prev",onClick:r,style:{marginRight:"10px"},children:"<"}),(0,n.jsxs)("span",{className:"datepicker__header-date",children:[(0,n.jsxs)("span",{className:"datepicker__header-date__year",children:[(0,c.C)(t),"年"]}),(0,n.jsxs)("span",{className:"datepicker__header-date__month",children:[(0,u.t)(t)+1,"月"]})]}),(0,n.jsx)("button",{type:"button",className:"datepicker__button-next",onClick:l,style:{marginLeft:"10px"},children:">"}),(0,n.jsx)("button",{type:"button",className:"datepicker__button-next",onClick:i,style:{marginLeft:"10px"},children:">>"})]})},y=e=>{let{name:t,control:r,startIcon:c,startIconProps:u,endIcon:x,endIconProps:y,placeholder:b,isClearable:f,wrapperClassName:v,calendarClassName:A,inputProps:w,minDate:_,label:N,labelSxProps:z,disabled:k}=e,C=(0,p.useId)();return(0,n.jsx)(g.xI,{name:t,control:r,render:e=>{var t;let{field:r,fieldState:p}=e;return(0,n.jsxs)(l.A,{fullWidth:!0,error:p.invalid,children:[(0,n.jsx)(a.A,{component:"label",htmlFor:C,sx:{marginBottom:"8px",fontWeight:"bold",...z},children:N}),(0,n.jsx)(h(),{id:C,name:r.name,onChange:r.onChange,onBlur:r.onBlur,dateFormat:"yyyy/MM/dd",selected:r.value,isClearable:f,wrapperClassName:v,calendarClassName:A,locale:m.ja,calendarStartDay:1,renderCustomHeader:j,autoComplete:"off",minDate:_,popperProps:{strategy:"fixed"},disabled:k,customInput:(0,n.jsx)(i.A,{ref:r.ref,fullWidth:!0,placeholder:b,inputProps:{style:{padding:"12.5px 0px"},...w},sx:{px:"8px"},startAdornment:(0,n.jsx)(s.A,{position:"start",className:"react-datepicker-left-icon",color:d.A[100],...u,children:c}),endAdornment:(0,n.jsx)(s.A,{position:"end",className:"react-datepicker-rigth-icon",color:d.A[100],...y,children:x})})}),(0,n.jsx)(o.A,{children:null==(t=p.error)?void 0:t.message})]})}})}}}]);

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.