PageSourceSearch

https://www.nitemovesny.com/_next/static/chunks/modern-form-file-input.2714009bf005895e.js

js nitemovesny.com collected 2026-09-26 17:59:25 UTC 5,040 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[12023],{20729:(e,t,o)=>{o.d(t,{A:()=>a});let a={...o(80930).A,"&:disabled":{cursor:"default"}}},66439:(e,t,o)=>{o.r(t),o.d(t,{default:()=>m});var a=o(6029),r=o(88351),l=o(81553),n=o(7703),s=o(20729),i=o(71348),d=o(97018),u=o(82372),c=o(80787);let p=(0,n.n9)({uniqId:"mFiUp3"})((e,t,o)=>({uploadButton:{...s.A,borderRadius:5,color:c._R,backgroundColor:"#F6F6F6","&:hover":{color:e.palette.text.primary,boxShadow:"inset 0 0 100px 100px rgba(255, 255, 255, 0.1)"},display:"flex",alignItems:"center",justifyContent:"center",width:"100%",height:"100%",paddingTop:40,paddingBottom:40},uploadButtonContent:{borderRadius:5,background:"transparent"},uploadIcon:{marginBottom:8,fontSize:40,color:"inherit"},uploadButtonPrimaryText:{color:c._R},uploadButtonSecondaryText:{color:c._R},dropzoneContainer:{width:"100%",border:"0.6px solid #F6F6F6",borderRadius:5},accept:{borderStyle:"dashed",borderColor:e.palette.secondary.main,[`& .${o.uploadIcon}`]:{color:e.palette.secondary.main},[`& .${o.uploadButtonPrimaryText}`]:{color:e.palette.text.primary}},reject:{borderColor:e.palette.error.main,[`& .${o.uploadIcon}`]:{color:e.palette.error.main},[`& .${o.uploadButtonPrimaryText}`]:{color:e.palette.error.main}},trashIcon:{fontSize:18,marginLeft:14,color:e.palette.error.main},uploadedFile:{backgroundColor:"#F6F6F6",padding:"15px 20px",display:"flex",alignItems:"center",marginTop:8,borderRadius:5},uploadedFileText:{flexGrow:1,display:"flex",overflow:"hidden",marginRight:8},uploadedFileNameWithoutExtension:{overflow:"hidden"}}));function m(e){let{formItem:t,onChange:o,onError:n,disabled:s}=e,{classes:c,cx:m}=p(),{getDropzoneInputProps:g,maxSizeMB:x,openFileDialog:h,dropzoneRootProps:v,fileExtension:f,fileNameWithoutExtension:y}=(0,u.A)({formItem:t,onChange:o,onError:n,disabled:s,classes:c});return(0,a.jsxs)("div",{children:[(0,a.jsx)("div",{...v,children:(0,a.jsx)("button",{type:"button",className:c.uploadButton,onClick:h,children:(0,a.jsxs)("div",{className:c.uploadButtonContent,children:[(0,a.jsx)("i",{className:m("fas fa-upload",c.uploadIcon)}),(0,a.jsx)(d.default,{align:"center",className:c.uploadButtonPrimaryText,children:t.input.placeholder??"Upload a File"}),(0,a.jsxs)(d.default,{align:"center",className:c.uploadButtonSecondaryText,children:["Max size per file:"," ",x," ","MB"]})]})})}),(0,a.jsx)("input",{...g()}),t.value&&(0,a.jsxs)("div",{className:c.uploadedFile,children:[(0,a.jsx)("img",{style:{marginRight:14},src:(0,i.A)(t.value.name)??"",alt:"icon"}),(0,a.jsxs)("div",{className:c.uploadedFileText,children:[(0,a.jsx)("div",{className:c.uploadedFileNameWithoutExtension,children:(0,a.jsx)(d.default,{style:{whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden"},children:y})}),(0,a.jsx)(d.default,{children:f})]}),(0,a.jsx)(r.A,{color:"error",onClick:()=>o(void 0),disabled:s,"aria-label":"Remove file",children:(0,a.jsx)(l.A,{className:"fa fa-tras
1h"})})]})]})}},71348:(e,t,o)=>{o.d(t,{A:()=>A});var a=o(40073),r=o(7652),l=o(69937);let n=(0,a.Ay)("CustomerUISvgs/audio.svg"),s=(0,a.Ay)("CustomerUISvgs/doc.svg"),i=(0,a.Ay)("CustomerUISvgs/gif.svg"),d=(0,a.Ay)("CustomerUISvgs/pdf.svg"),u=(0,a.Ay)("CustomerUISvgs/xls.svg"),c=(0,a.Ay)("CustomerUISvgs/ppt.svg"),p=(0,a.Ay)("CustomerUISvgs/fallback.svg"),m=(0,a.Ay)("CustomerUISvgs/video.svg"),g=(0,a.Ay)("CustomerUISvgs/img.svg"),x=(0,a.Ay)("CustomerUISvgs/txt.svg"),h=/mp3|m4a|aac|flac|ogg|wav|webm|wma/,v=/doc|docx/,f=/gif/,y=/pdf/,b=/xls|xlsx/,C=/ppt|pptx/,j=/txt/,I=new RegExp(r.JK.join("|"));function A(e){let t=e.lastIndexOf(".");if(t<1)return null;let o=e.slice(t+1);return o.match(h)?n:o.match(v)?s:o.match(f)?i:o.match(y)?d:o.match(b)?u:o.match(C)?c:o.match(j)?x:(0,l.s5)(`.${o}`)?m:o.match(I)?g:p}},82372:(e,t,o)=>{o.d(t,{A:()=>n});var a=o(32988),r=o.n(a),l=o(84242);function n(e){let{formItem:t,onChange:o,onError:a,disabled:n,classes:s}=e,{accept:i,maxSize:d=1e7}=t.input,{getDropzoneRootProps:u,getDropzoneInputProps:c,isDropzoneAccept:p,isDropzoneReject:m,openFileDialog:g}=(e=>{let{accept:t,disabled:o,onFileDropped:a,onUploadError:r,maxSize:n}=e;async function s(e){let[t]=e;t&&a(t)}let{getRootProps:i,getInputProps:d,isDragAccept:u,isDragReject:c,open:p}=(0,l.VB)({accept:t,maxSize:n,onDropAccepted:s,onDropRejected:function(e){r&&(e[0]?.errors?.[0]?.code==="file-too-large"?r(`File is too large. It must be under ${n/1e6} MB.`):r(e[0]?.errors?.[0]?.message||"There was a problem uploading this file."))},disabled:o,multiple:!1,noClick:!0});return{getDropzoneRootProps:i,getDropzoneInputProps:d,isDropzoneAccept:u,isDropzoneReject:c,openFileDialog:p}})({accept:i,disabled:n,maxSize:d,onFileDropped:o,onUploadError:a}),x=s?u({className:r()(s.dropzoneContainer,{[s.accept]:p,[s.reject]:m})}):{},h=t.value?.name.lastIndexOf(".")||0,v=t.value&&-1!==h?t.value.name.substring(h):"";return{getDropzoneInputProps:c,maxSizeMB:Math.floor(d/1e6*10)/10,openFileDialog:g,dropzoneRootProps:x,fileExtension:v,fileNameWithoutExtension:-1!==h?t.value?.name.substring(0,h):t.value?.name}}}}]);

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.