1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[369],{31390:function(e,t,o){(window.__NEXT_P=window.__NEXT_P||[]).push(["/committee-work",function(){return o(80726)}])},24134:function(e,t,o){"use strict";var n=o(85893),a=o(52832),r=o.n(a);t.Z=function(e){var t=e.label,o=e.showAllOption,a=e.options,l=e.state,c=e.setState;return(0,n.jsxs)("div",{className:r().space,children:[(0,n.jsx)("label",{htmlFor:r().redirectSelect,className:r().label,children:t}),(0,n.jsxs)("select",{name:r().redirectSelect,id:r().redirectSelect,value:l,onChange:function(e){return c(e.target.value)},children:[o&&(0,n.jsx)("option",{value:"showAll",children:"Show All"}),a.map((function(e,t){return(0,n.jsx)("option",{value:e.value||t.toString(),children:e.display||e},t)}))]})]})}},80726:function(e,t,o){"use strict";o.r(t);var n=o(85893),a=o(67294),r=o(95534),l=o(41664),c=o.n(l),s=o(85017),i=o(92054),m=o(24134),u=o(92645),g=o(8549),d=o(8290),f=o(29271),h=o.n(f);function S(){var e=(0,a.useState)(void 0),t=e[0],o=e[1],l=(0,a.useState)([]),d=l[0],f=l[1],S=(0,a.useState)(""),v=S[0],p=S[1],x=(0,a.useState)([]),_=x[0],w=x[1],N=(0,a.useState)(!1),j=N[0],I=N[1],C=Number((new Date).getFullYear()),k=C+"-"+(Number(C)+1),b=[];return(0,a.useEffect)((function(){I(null!==localStorage.getItem("CommWorkExpiryDate")&&new Date(localStorage.getItem("CommWorkExpiryDate"))<new Date)}),[]),(0,a.useEffect)((function(){j&&(0,g.X)()}),[j]),(0,a.useEffect)((function(){o(null!==localStorage.getItem("UserID")&&!j)}),[j]),(0,a.useEffect)((function(){t&&fetch("/api/committeeWork/schedules/".concat(function(){var e="";return null!==localStorage.getItem("AllComms")&&localStorage.getItem("AllComms").split("|").forEach((function(t){e+=t+","})),e.substring(0,e.length-1)}())).then((function(e){return e.json()})).then((function(e){f(e[0]),w(e[1]),e[0].length>0&&p(e[0][0].value)}))}),[t]),_&&(b=_.filter((function(e){return e.Committee_House===v}))),void 0===t&&""===v?(0,n.jsx)(s.Z,{message:"Loading..."}):(0,n.jsx)("main",{className:h().main,children:(0,n.jsxs)("section",{className:"".concat(h().container," njContainer"),children:[t&&d&&d.length>0&&d.filter((function(e){return e.value==v}))[0]&&(0,n.jsx)(u.Z,{title:"".concat(d.filter((function(e){return e.value==v}))[0].display," Schedule"),subTitle:"".concat(""===localStorage.getItem("Party")?"":localStorage.getItem("UserName")+" ("+localStorage.getItem("Party")+")")}),t&&("ABUB"===v||"SBAB"===v)&&(0,n.jsx)("div",{className:h().governorsBudgetContainer,children:(0,n.jsx)(c(),{href:"/budget-finance/governors-budget",children:(0,n.jsx)("a",{className:h().governorsBudget,children:"Analysis of the Governor's Budget for FY ".concat(k)})})}),t&&d.length>0&&(0,n.jsx)("div",{className:h().selectRow,children:(0,n.jsx)(m.Z,{label:"Select a Committee",showAllOption:!1,options:d,state:v,setState:p})}),t&&d.length>0&&(0,n.jsx)(r.Z,{}),t&&d.length>0&&(0,n.jsx)(i.Z,{filteredSchedules:b,isCommitteeWork:!0}),t&&0===d.length&&(0,n.jsx)("p",{className:h().noData,children:"No Committees Found!"}),t&&b&&0===b.length&&(0,n.jsx)("p",{className:h().noData,children:"No Agendas for this Committee."}),!t&&(0,n.jsx)("p",{className:h().noData,children:"You do not have access to this data."})]})})}S.pageClass="committee-work",S.meta={title:"Committee Work",description:"committee work",keywords:"committee work",canonical:"".concat(d.Z.domain,"/committee-work"),robots:"noindex, nofollow"},t.default=S},8549:function(e,t,o){"use strict";function n(){localStorage.removeItem("UserID"),localStorage.removeItem("UserGroup"),localStorage.removeItem("UserName"),localStorage.removeItem("Party"),localStorage.removeItem("House"),localStorage.removeItem("Identifier"),localStorage.removeItem("UserDesc"),localStorage.removeItem("HouseNumber"),localStorage.removeItem("AllComms"),localStorage.removeItem("CommWorkExpiryDate")}o.d(t,{X:function(){return n}})},52832:function(e){e.exports={space:"on-change-select_space___rkcK",label:"on-change-select_label__2mGpP",redirectSelect:"on-change-select_redirectSelect__rVwE_"}}},function(e){e.O(0,[6846,9774,2888,179],(function(){return t=31390,e(e.s=t);var t}));var t=e.O();_N_E=t}]);
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.