monica-alexandria 3.71.18 → 3.72.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js CHANGED
@@ -2964,7 +2964,7 @@ object-assign
2964
2964
  fill: var(--mainLight);
2965
2965
  }
2966
2966
  }
2967
- `;function Ud(n){const[r,o]=t(n.files),i=(e,t)=>{n.boomRejected(e,t)},{getRootProps:c,getInputProps:l,isDragActive:s,isDragAccept:u,isDragReject:d}=Hd({accept:n.accept?n.accept:"image/svg, image/jpeg, image/png, image/jpg, video/mp4, video/mpeg, video/webm",onDrop:e=>{let t=e?.map((e=>Object.assign(e,{preview:URL.createObjectURL(e)}))),r=[];t.forEach(((e,t)=>{"video"===n.type&&e.size>n.maxSize?i("videoSize",e.name):n.accept&&""!==n.accept&&!n.accept.split(",").map((e=>e.trim())).includes(e.type)||"image/png"!==e.type&&"image/jpeg"!==e.type&&"video/mp4"!==e.type&&"video/mpeg"!==e.type&&"image/webm"!==e.type?i("fileMimetype",e.name):e.size>n.maxSize?i("fileSize",e.name):r.push(e)})),r?.length>0&&o(r)},onDropRejected:()=>{"video"===n.type?i("videoType",""):"avatar"===n.type||"cover"===n.type?i("imageType",""):"media"===n.type&&i("mediaType","")},maxFiles:n.maxFiles});return a((()=>{n.getFilesFromChild(r)}),[r]),e.createElement(Gd,Bu({className:"Upload",noPadding:n.noPadding},c({isDragActive:s,isDragAccept:u,isDragReject:d})),e.createElement(y,{Icon:n.iconUpload?n.iconUpload:"Upload"}),e.createElement("span",null,n.text),e.createElement("input",l()))}const qd=m.div`
2967
+ `;function Ud(n){const[r,o]=t(n.files),i=(e,t)=>{n.boomRejected(e,t)},{getRootProps:l,getInputProps:s,isDragActive:u,isDragAccept:d,isDragReject:m}=Hd({accept:n.accept?n.accept:"image/svg, image/jpeg, image/png, image/jpg, video/mp4, video/mpeg, video/webm",onDrop:c((e=>{const t=e.map((e=>{const t=e.name.split(".").pop(),r=n.userId?`${n.userId}.${t}`:e.name;return{...e,preview:URL.createObjectURL(e),name:r,lastModified:e.lastModified,lastModifiedDate:e.lastModifiedDate,type:e.type,webkitRelativePath:e.webkitRelativePath}}));let r=[];t.forEach((e=>{"video"===n.type&&e.size>n.maxSize?i("videoSize",e.name):n.accept&&""!==n.accept&&!n.accept?.split(",")?.map((e=>e?.trim()))?.includes(e.type)||"image/png"!==e?.type&&"image/jpeg"!==e?.type&&"video/mp4"!==e?.type&&"video/mpeg"!==e?.type&&"image/webm"!==e?.type?i("fileMimetype",e.name):e.size>n.maxSize?i("fileSize",e?.name):r.push(e)})),r?.length>0&&o(r)}),[n.userId,n.accept,n.maxSize,n.type,i]),onDropRejected:()=>{"video"===n.type?i("videoType",""):"avatar"===n.type||"cover"===n.type?i("imageType",""):"media"===n.type&&i("mediaType","")},maxFiles:n.maxFiles});return a((()=>{n.getFilesFromChild(r)}),[r]),e.createElement(Gd,Bu({className:"Upload",noPadding:n.noPadding},l({isDragActive:u,isDragAccept:d,isDragReject:m})),e.createElement(y,{Icon:n.iconUpload?n.iconUpload:"Upload"}),e.createElement("span",null,n.text),e.createElement("input",s()))}const qd=m.div`
2968
2968
  background: ${e=>e.theme.low};
2969
2969
  padding: var(--largePads);
2970
2970
  border-radius: var(--normalRadius);