1(this["webpackJsonpgeetee-web"]=this["webpackJsonpgeetee-web"]||[]).push([[93],{1924:function(e,t,a){"use strict";a.r(t);var n=a(8),c=a(9),r=a(0),i=a.n(r),o=a(237),s=a(132),j=a(40),f=a(25),d=a(44),u=a.n(d),b=a(307),l=a(402),O=a.n(l),h=a(361),p=a(384),x=a.n(p),g=a(2),m=Object(o.a)((function(e){return{card:{padding:e.spacing(4),width:"100%",height:"100%"},content:{display:"flex",justifyContent:"center",width:"100%"},grid:{marginTop:e.spacing(2),maxWidth:"1200px"},table:{display:"flex",justifyContent:"center"},tile:{width:"300px",height:"300px"},tileContent:{display:"flex",justifyContent:"space-evenly",alignItems:"center",flexDirection:"column",width:"100%",height:"100%",padding:e.spacing(4)},tileIcon:{color:"rgba(0, 0, 0, 0.54)",width:"100px",height:"100px"},tileText:{fontSize:"1.10rem"},btn:{marginBottom:"20px",marginTop:"20px"}}})),w=Object(j.i)((function(e){var t=m();return Object(g.jsxs)(i.a.Fragment,{children:[Object(g.jsx)(s.a,{item:!0,xs:12,className:t.btn,children:Object(g.jsx)(b.a,{variant:"contained",onClick:function(){return e.tileClickHandler("new")},startIcon:Object(g.jsx)(x.a,{}),children:"Create New SDS"})}),e.loading?null:Object(g.jsx)(s.a,{item:!0,sm:12,xs:12,className:t.table,children:Object(g.jsx)(O.a,{columns:[{title:"Name",field:"name"},{title:"Known As",render:function(e){return e.aliases.join("\n")}},{title:"Emergency #",field:"emergencyPhone"},{title:"Last Updated",render:function(e){return u.a.unix(e.dateUpdated).format("YYYY-MM-DD")}}],data:e.msdsData,onSearchChange:function(t){e.setSearchBarValue(t),sessionStorage.setItem("msdsSearchBarValue",JSON.stringify(t))},style:{minWidth:"800px"},title:"Safety Data Sheets",actions:[function(t){return{icon:h.a.OpenInNew,tooltip:"Show Newest Safety Data Sheets",onClick:function(t,a){e.history.push({pathname:"/dashboard/msds/form",search:"?"+new URLSearchParams({docId:a.docId}).toString()})}}}],options:{toolbar:!0,paging:!0,pageSizeOptions:!1,pageSize:5,actionsColumnIndex:-1,search:!0,emptyRowsWhenPaging:!1,thirdSortClick:!1,searchText:e.searchBarValue,rowStyle:{whiteSpace:"pre-wrap"}}})})]})})),S=Object(o.a)((function(e){return{card:{padding:e.spacing(4),width:"100%",height:"100%"},content:{display:"flex",justifyContent:"center",width:"100%"},grid:{marginTop:e.spacing(2),maxWidth:"1200px"},table:{display:"flex",justifyContent:"center"},tile:{width:"300px",height:"300px"},tileContent:{display:"flex",justifyContent:"space-evenly",alignItems:"center",flexDirection:"column",width:"100%",height:"100%",padding:e.spacing(4)},tileIcon:{color:"rgba(0, 0, 0, 0.54)",width:"100px",height:"100px"},tileText:{fontSize:"1.10rem"},btn:{marginBottom:"20px",marginTop:"20px"}}}));t.default=Object(j.i)((function(e){var t=Object(r.useState)([]),a=Object(c.a)(t,2),i=a[0],o=a[1],j=Object(r.useState)(!1),d=Object(c.a)(j,2),u=d[0],b=d[1],l=Object(r.useState)(!1),O=Object(c.a)(l,2),h=O[0],p=O[1],x=Object(r.useState)("msdsSearchBarValue"in sessionStorage?JSON.parse(sessionStorage.getItem("msdsSearchBarValue")):null),m=Object(c.a)(x,2),v=m[0],y=m[1],R=S();Object(r.useEffect)((function(){f.c.collection("msds").orderBy("dateCreated").get().then((function(e){var t=e.docs.map((function(e){return Object(n.a)(Object(n.a)({},e.data()),{},{docId:e.id})}));o(t),b(!1)})).catch((function(e){p("Unable to Process"),b(!1),console.warn(e.message)}))}),[]);return Object(g.jsx)("div",{className:R.content,children:Object(g.jsx)(s.a,{children:Object(g.jsx)(w,{loading:u,error:h,msdsData:i,searchBarValue:v,setSearchBarValue:y,tileClickHandler:function(t){e.history.push({pathname:"msds/"+t})}})})})}))},361:function(e,t,a){"use strict";a.d(t,"a",(function(){return U}));var n=a(8),c=a(0),r=a(384),i=a.n(r),o=a(371),s=a.n(o),j=a(155),f=a.n(j),d=a(156),u=a.n(d),b=a(389),l=a.n(b),O=a(367),h=a.n(O),p=a(422),x=a.n(p),g=a(135),m=a.n(g),w=a(459),S=a.n(w),v=a(458),y=a.n(v),R=a(457),C=a.n(R),V=a(456),I=a.n(V),P=a(460),z=a.n(P),N=a(414),D=a.n(N),M=a(421),B=a.n(M),k=a(470),E=a(369),H=a.n(E),T=a(363),L=a.n(T),_=a(2),U={Add:Object(c.forwardRef)((function(e,t){return Object(_.jsx)(i.a,Object(n.a)(Object(n.a)({},e),{},{ref:t}))})),Check:Object(c.forwardRef)((function(e,t){return Object(_.jsx)(f.a,Object(n.a)(Object(n.a)({},e),{},{ref:t}))})),Clear:Object(c.forwardRef)((function(e,t){return Object(_.jsx)(h.a,Object(n.a)(Object(n.a)({},e),{},{ref:t}))})),Delete:Object(c.forwardRef)((function(e,t){return Object(_.jsx)(x.a,Object(n.a)(Object(n.a)({},e),{},{ref:t}))})),DetailPanel:Object(c.forwardRef)((function(e,t){return Object(_.jsx)(l.a,Object(n.a)(Object(n.a)({},e),{},{ref:t}))})),Edit:Object(c.forwardRef)((function(e,t){return Object(_.jsx)(m.a,Object(n.a)(Object(n.a)({},e),{},{ref:t}))})),Export:Object(c.forwardRef)((function(e,t){return Object(_.jsx)(z.a,Object(n.a)(Object(n.a)({},e),{},{ref:t}))})),Filter:Object(c.forwardRef)((function(e,t){return Object(_.jsx)(S.a,Object(n.a)(Object(n.a)({},e),{},{ref:t}))})),FirstPage:Object(c.forwardRef)((function(e,t){return Object(_.jsx)(y.a,Object(n.a)(Object(n.a)({},e),{},{ref:t}))})),LastPage:Object(c.forwardRef)((function(e,t){return Object(_.jsx)(C.a,Object(n.a)(Object(n.a)({},e),{},{ref:t}))})),NextPage:Object(c.forwardRef)((function(e,t){return Object(_.jsx)(l.a,Object(n.a)(Object(n.a)({},e),{},{ref:t}))})),OpenInNew:Object(c.forwardRef)((function(e,t){return Object(_.jsx)(L.a,Object(n.a)(Object(n.a)({},e),{},{ref:t}))})),PreviousPage:Object(c.forwardRef)((function(e,t){return Object(_.jsx)(u.a,Object(n.a)(Object(n.a)({},e),{},{ref:t}))})),PhotoIcon:Object(c.forwardRef)((function(e,t){return Object(_.jsx)(H.a,Object(n.a)(Object(n.a)({},e),{},{ref:t}))})),ResetSearch:Object(c.forwardRef)((function(e,t){return Object(_.jsx)(h.a,Object(n.a)(Object(n.a)({},e),{},{ref:t}))})),Save:Object(c.forwardRef)((function(e,t){return Object(_.jsx)(k.a,Object(n.a)(Object(n.a)({},e),{},{ref:t}))})),Search:Object(c.forwardRef)((function(e,t){return Object(_.jsx)(D.a,Object(n.a)(Object(n.a)({},e),{},{ref:t}))})),SortArrow:Object(c.forwardRef)((function(e,t){return Object(_.jsx)(s.a,Object(n.a)(Object(n.a)({},e),{},{ref:t}))})),ThirdStateCheck:Object(c.forwardRef)((function(e,t){return Object(_.jsx)(I.a,Object(n.a)(Object(n.a)({},e),{},{ref:t}))})),ViewColumn:Object(c.forwardRef)((function(e,t){return Object(_.jsx)(B.a,Object(n.a)(Object(n.a)({},e),{},{ref:t}))}))}},363:function(e,t,a){"use strict";var n=a(31),c=a(32);
1Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=c(a(0)),i=(0,n(a(33)).default)(r.createElement("path",{d:"M19 19H5V5h7V3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2v-7h-2v7zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3h-7z"}),"OpenInNew");t.default=i},369:function(e,t,a){"use strict";var n=a(31),c=a(32);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=c(a(0)),i=(0,n(a(33)).default)(r.createElement("path",{d:"M21 19V5c0-1.1-.9-2-2-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2zM8.5 13.5l2.5 3.01L14.5 12l4.5 6H5l3.5-4.5z"}),"Photo");t.default=i},371:function(e,t,a){"use strict";var n=a(31),c=a(32);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=c(a(0)),i=(0,n(a(33)).default)(r.createElement("path",{d:"M4 12l1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z"}),"ArrowUpward");t.default=i},470:function(e,t,a){"use strict";var n=a(0),c=a(89);t.a=Object(c.a)(n.createElement("path",{d:"M17 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V7l-4-4zm-5 16c-1.66 0-3-1.34-3-3s1.34-3 3-3 3 1.34 3 3-1.34 3-3 3zm3-10H5V5h10v4z"}),"Save")}}]); 2//# sourceMappingURL=MSDSHome.2d81e0f2.chunk.js.map
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.