PageSourceSearch

https://app.conserv.io/static/js/3510.0fe2eff5.chunk.js

js conserv.io collected 2026-10-02 03:32:03 UTC 9,216 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkmnmx_io_ui=self.webpackChunkmnmx_io_ui||[]).push([[3510],{66225:(function(Y,f,e){var t=e(35199),s=e(8342),O=e(71179),m=e(50550),h=e(8619),r=e(22728),o=e(23700),g=e(17419),p=e(6072),L=e.n(p),y=e(22161),_=e(43687),N=Object.defineProperty,V=Object.defineProperties,C=Object.getOwnPropertyDescriptors,R=Object.getOwnPropertySymbols,A=Object.prototype.hasOwnProperty,I=Object.prototype.propertyIsEnumerable,M=(a,n,l)=>n in a?N(a,n,{enumerable:!0,configurable:!0,writable:!0,value:l}):a[n]=l,T=(a,n)=>{for(var l in n||(n={}))A.call(n,l)&&M(a,l,n[l]);if(R)for(var l of R(n))I.call(n,l)&&M(a,l,n[l]);return a},U=(a,n)=>V(a,C(n));const B=(0,o.Z)(()=>({wrapChipSelectMenu:{overflow:"visible",whiteSpace:"normal"}}));function i(a){const n=B();let l=null;a.iconPath?l=a.iconPath:l=y.Z[a.conservField];const z=v=>v?(0,t.jsx)("div",{children:v.map(K=>{const G=a.children.find(d=>d.props.value===K);return(0,t.jsx)(s.Z,{style:{margin:".1rem",maxWidth:"250px"},label:(G==null?void 0:G.props.children)||"Unknown",onDelete:a.editing?()=>{}:null,deleteIcon:(0,t.jsx)("div",{onMouseDown:d=>{Z(K),d.stopPropagation()},children:(0,t.jsx)(g.Z,{})})},K)})}):(0,t.jsx)("div",{}),Z=v=>{a.value.splice(a.value.indexOf(v),1),a.onChange({target:{value:a.value}})},x=T({},a);return delete x.conservField,delete x.afterAction,delete x.editing,(0,t.jsxs)(O.Z,{display:"flex",flexWrap:"nowrap",alignItems:"center",flexDirection:"row",style:{width:"100%"},children:[(0,t.jsx)(O.Z,{style:{minWidth:"24px"},children:l?(0,t.jsx)(p.Icon,{path:l,size:1,color:_.O9.text.primary}):null}),(0,t.jsx)(O.Z,{pl:2,flexGrow:1,children:(0,t.jsxs)(m.Z,{style:{width:"100%",maxWidth:"440px"},children:[(0,t.jsx)(h.Z,{shrink:!0,children:a.label}),(0,t.jsx)(r.Z,U(T({classes:{selectMenu:n.wrapChipSelectMenu}},x),{disabled:!a.editing,multiple:!0,renderValue:v=>z(v),children:a.children}))]})})]})}f.Z=i}),28348:(function(Y,f,e){e.d(f,{Z:function(){return B}});var t=e(35199),s=e(71179),O=e(50550),m=e(43755),h=e(46390),r=e(97913),o=e(5379),g=e(65166),p=e(6072),L=e.n(p),y=e(22161),_=Object.defineProperty,N=Object.defineProperties,V=Object.getOwnPropertyDescriptors,C=Object.getOwnPropertySymbols,R=Object.prototype.hasOwnProperty,A=Object.prototype.propertyIsEnumerable,I=(i,a,n)=>a in i?_(i,a,{enumerable:!0,configurable:!0,writable:!0,value:n}):i[a]=n,M=(i,a)=>{for(var n in a||(a={}))R.call(a,n)&&I(i,n,a[n]);if(C)for(var n of C(a))A.call(a,n)&&I(i,n,a[n]);return i},T=(i,a)=>N(i,V(a)),U=(i,a)=>{var n={};for(var l in i)R.call(i,l)&&a.indexOf(l)<0&&(n[l]=i[l]);if(i!=null&&C)for(var l of C(i))a.indexOf(l)<0&&A.call(i,l)&&(n[l]=i[l]);return n};function B(i){let a=null;i.iconPath?a=i.iconPath:a=y.Z[i.conservField];const n=i,{conservField:l,includeTime:z,editing:Z,format:x,variant:v,autoOk:K,iconPath:G,error:d,helperText:c,required:D,onBlur:S,name:X,id:u,"aria-label":F,emptyLabel:$,maxDateMessage:b,minDateMessage:w,invalidDateMessage:J}=n,H=U(n,["conservField","includeTime","editing","format","variant","autoOk","iconPath","error","helperText","required","onBlur","name","id","aria-label","emptyLabel","maxDateMessage","minDateMessage","invalidDateMessage"]),W=z?r.h:h.$;return(0,t.jsxs)(s.Z,{display:"flex",flexWrap:"nowrap",alignItems:"flex-end",flexDirection:"row",style:{width:"100%"},children:[(0,t.jsx)(s.Z,{pb:Z?1:1.5,style:{minWidth:"24px"},children:a?(0,t.jsx)(p.Icon,{path:a,size:1}):null}),(0,t.jsx)(s.Z,{pl:2,flexGrow:1,children:(0,t.jsx)(O.Z,{style:{width:"100%"},children:(0,t.jsx)(o._,{dateAdapter:g.y,children:(0,t.jsx)(W,T(M({},H),{disabled:!Z,inputFormat:x,renderInput:j=>(0,t.jsx)(m.Z,T(M({},j),{fullWidth:!0,id:u,name:X,required:D,onBlur:S,error:!!d||!!j.error,helperText:c||j.helperText,inputProps:M(M({},j.inputProps),F?{"aria-label":F}:{})}))}))})})})]})}}),73510:(function(Y,f,e){e.r(f);var t=e(35199),s=e(87163),O=e(21293),m=e(52444),h=e(74061),r=e(71179),o=e(21075),g=e(87383),p=e(25499),L=e(23700),y=e(12722),_=e.n(y),N=e(46203),V=e.n(N),C=e(57391),R=e(3178),A=e(9884),I=e(66225),M=e(28348),T=e(17543),U=e(40120),B=e(60063),i=e(35508),a=e(84602),n=Object.defineProperty,l=Object.getOwnPropertySymbols,z=Object.prototype.hasOwnProperty,Z=Object.prototype.propertyIsEnumerable,x=(d,c,D)=>c in d?n(d,c,{enumerable:!0,configurable:!0,writable:!0,value:D}):d[c]=D,v=(d,c)=>{for(var D in c||(c={}))z.call(c,D)&&x(d,D,c[D]);if(l)for(var D of l(c))Z.call(c,D)&&x(d,D,c[D]);return d};_().extend(V());const K=(0,L.Z)(()=>({scrollModalForms:{overflowY:"scroll",whiteSpace:"normal",maxHeight:"220px"},paper:{minWidth:"720px"}}));
1function G(d){const[c,D]=(0,s.useState)([]),[S,X]=(0,s.useState)([]),[u,F]=(0,s.useState)({}),[$,b]=(0,s.useState)(""),[w,J]=(0,s.useState)(""),{dispatch:H,spaces:W}=(0,C.bI)("spaces"),j=K();(0,s.useEffect)(()=>{H("spaces/refresh"),q()},[]),(0,s.useEffect)(()=>{J((0,a.v)(u.start,u.end,1096,"facilities"))},[u.start,u.end]);const Q=()=>{if(!W.list)return[];const E=[];return W.activeList.forEach(P=>{E.push((0,t.jsx)(O.Z,{value:P.uuid,children:P.name},P.uuid))}),E},k=()=>{if(!W.list)return[];const E=[];return W.activeList.forEach(P=>{E.push((0,t.jsx)(O.Z,{value:P.uuid,children:P.name},P.uuid))}),E},q=()=>{const E=_()().subtract(1,"year"),P=_()();F({start:E,end:P})},ee=E=>{const P=v({},u);P.start=E,F(P)},te=E=>{const P=v({},u);P.end=E,F(P)},ae=()=>{d.onClose(),H("navstate/update",{dialogOpen:!0,dialogContent:(0,t.jsx)(A.Z,{report:"facilities",onClose:ne,open:!0,notes:$,selectedSpaces1:c,selectedSpaces2:S,start:(0,B.Uq)(u.start),end:(0,B.Uq)(u.end)})}),U.Z.track(U.Z.actions.facilityreport,{category:"app",name:"facility report",totalSpaces:W.activeList.length,selectedSpacesGallery:c.length,selectedSpacesStorage:S.length,startDayFromToday:_()().diff(_()(u.start),"days"),rangeInDays:_()(u.start).diff(_()(u.end),"days"),hasNotes:$.length>0,notesLength:$.length})},ne=()=>{b(""),D(c),X(S),H("navstate/update",{dialogOpen:!0,dialogContent:null})};return(0,t.jsxs)(m.Z,{classes:{paper:j.paper},open:d.open,onClose:d.onClose,children:[(0,t.jsx)(R.Z,{title:"Facilities Report",subtitle:`For the time period of ${_()(u.start).format("L")} to ${_()(u.end).format("L")}`,onClose:d.onClose}),(0,t.jsx)(h.Z,{children:(0,t.jsxs)(r.Z,{children:[(0,t.jsx)(r.Z,{children:(0,t.jsx)(I.Z,{style:{minWidth:"600px"},classes:{selectMenu:j.scrollModalForms},conservField:"space",id:"selectedspaces1",label:"Which spaces are temporary exhibition galleries?",multiple:!0,onChange:E=>D([...E.target.value]),value:c,editing:!0,children:Q()})}),(0,t.jsx)(r.Z,{pt:2,children:(0,t.jsx)(I.Z,{style:{minWidth:"600px"},classes:{selectMenu:j.scrollModalForms},conservField:"space",id:"selectedspaces2",label:"Which spaces are for temporary exhibition storage?",multiple:!0,onChange:E=>X([...E.target.value]),value:S,editing:!0,children:k()})}),(0,t.jsxs)(r.Z,{pt:2,children:[(0,t.jsxs)(r.Z,{display:"flex",justifyContent:"space-between",children:[(0,t.jsx)(r.Z,{width:"280px",children:(0,t.jsx)(M.Z,{conservField:"time",includeTime:!1,format:"YYYY-MM-DD",label:"Start Date",value:u.start,maxDate:_()(u.end).subtract(1,"year"),onChange:ee,editing:!0})}),(0,t.jsx)(r.Z,{width:"280px",children:(0,t.jsx)(M.Z,{conservField:"time",includeTime:!1,format:"YYYY-MM-DD",label:"End Date",value:u.end,disableFuture:!0,onChange:te,editing:!0})})]}),(0,t.jsx)(i.Z,{error:w})]}),(0,t.jsx)(r.Z,{pt:1,children:(0,t.jsx)(T.Z,{conservField:"comment",id:"facilitiesreportnotes",label:"Facilities Report Notes","aria-label":"facilities report notes",onChange:E=>b(E.target.value),value:$,multiline:!0,editing:!0})}),(0,t.jsxs)(r.Z,{pt:2,children:[(0,t.jsxs)(r.Z,{display:"flex",children:[(0,t.jsx)(o.Z,{style:{fontWeight:500,paddingRight:4},children:"Spring/Summer:"}),(0,t.jsx)(o.Z,{children:"March 01 to Aug 31"})]}),(0,t.jsxs)(r.Z,{display:"flex",children:[(0,t.jsx)(o.Z,{style:{fontWeight:500,paddingRight:4},children:"Fall/Winter:"}),(0,t.jsx)(o.Z,{children:"Sep 01 to Feb 28/29"})]})]})]})}),(0,t.jsx)(g.Z,{children:(0,t.jsx)(r.Z,{children:(0,t.jsx)(p.Z,{variant:"contained",color:"primary",disableRipple:!0,disabled:!!w,onClick:ae,children:"Create Report"})})})]})}f.default=G}),35508:(function(Y,f,e){e.d(f,{Z:function(){return O}});var t=e(35199),s=e(71179);function O({error:m}){return m?(0,t.jsx)(s.Z,{mt:1,ml:1,children:(0,t.jsx)("span",{style:{color:"red",fontSize:14},children:m})}):null}}),84602:(function(Y,f,e){e.d(f,{v:function(){return h}});var t=e(12722),s=e.n(t),O=e(40120);const m=1096;function h(r,o,g=m,p="unknown"){if(!r||!o)return"";const L=s()(r),y=s()(o),_=y.diff(L,"day");return _>g?(O.Z.track("Date Range Validation Failed",{category:"validation",name:"date_range_too_large",attemptedRangeDays:_,maxAllowedDays:g,startDate:L.format("YYYY-MM-DD"),endDate:y.format("YYYY-MM-DD"),reportType:p}),"The selected date range cannot exceed 3 years."):_<0?"End date must be after start date.":""}}),60063:(function(Y,f,e){e.d(f,{Uq:function(){return O},b7:function(){return m},iX:function(){return h},qF:function(){return s}});var t=e(4989);function s(r){if(r==null)return null;const o=(0,t.Bv)(r);return o.isValid()?o:null}function O(r){return r==null?Number.NaN:(0,t.Bv)(r).valueOf()}function m(r){const o=s(r);return o?o.startOf("day"):null}function h(r){const o=s(r);return o?o.endOf("day"):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.