1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5182],{24262:function(e,t,n){"use strict";function a(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}n.d(t,{Z:function(){return a}})},13882:function(e,t,n){"use strict";function a(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}n.d(t,{Z:function(){return a}})},35077:function(e,t,n){"use strict";n.d(t,{Z:function(){return b}});var a={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},r=function(e,t,n){var r,i=a[e];return r="string"===typeof i?i:1===t?i.one:i.other.replace("{{count}}",t.toString()),null!==n&&void 0!==n&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function i(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth,a=e.formats[n]||e.formats[e.defaultWidth];return a}}var o={date:i({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:i({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:i({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},s={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},u=function(e,t,n,a){return s[e]};function d(e){return function(t,n){var a,r=n||{};if("formatting"===(r.context?String(r.context):"standalone")&&e.formattingValues){var i=e.defaultFormattingWidth||e.defaultWidth,o=r.width?String(r.width):i;a=e.formattingValues[o]||e.formattingValues[i]}else{var s=e.defaultWidth,u=r.width?String(r.width):e.defaultWidth;a=e.values[u]||e.values[s]}return a[e.argumentCallback?e.argumentCallback(t):t]}}var l={ordinalNumber:function(e,t){var n=Number(e),a=n%100;if(a>20||a<10)switch(a%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:d({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:d({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:d({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:d({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:d({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})};function c(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=n.width,r=a&&e.matchPatterns[a]||e.matchPatterns[e.defaultMatchWidth],i=t.match(r);if(!i)return null;var o,s=i[0],u=a&&e.parsePatterns[a]||e.parsePatterns[e.defaultParseWidth],d=Array.isArray(u)?m(u,(function(e){return e.test(s)})):h(u,(function(e){return e.test(s)}));o=e.valueCallback?e.valueCallback(d):d,o=n.valueCallback?n.valueCallback(o):o;var l=t.slice(s.length);return{value:o,rest:l}}}function h(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n}function m(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return n}var f,g={ordinalNumber:(f={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}},function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.match(f.matchPattern);if(!n)return null;var a=n[0],r=e.match(f.parsePattern);if(!r)return null;var i=f.valueCallback?f.valueCallback(r[0]):r[0];i=t.valueCallback?t.valueCallback(i):i;var o=e.slice(a.length);return{value:i,rest:o}}),era:c({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:c({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:c({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:c({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:c({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},b={code:"en-US",formatDistance:r,formatLong:o,formatRelative:u,localize:l,match:g,options:{weekStartsOn:0,firstWeekContainsDate:1}}},19013:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});var a=n(13882);function r(e){(0,a.Z)(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"===typeof e&&"[object Date]"===t?new Date(e.getTime()):"number"===typeof e||"[object Number]"===t?new Date(e):("string"!==typeof e&&"[object String]"!==t||"undefined"===typeof console||(console.warn("Starting with v2.0.0-beta.
11 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://git.io/fjule"),console.warn((new Error).stack)),new Date(NaN))}},31397:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/dashboard/briefs",function(){return n(83685)}])},69581:function(e,t,n){"use strict";var a=n(85893),r=(n(67294),n(41664)),i=n(53854),o=n(89583),s=n(67926),u=n(25675);t.Z=function(e){var t,n,d,l=e.brief,c=e.user;return(0,a.jsxs)("div",{className:"flex space-x-3 items-center py-4 px-4",children:[(0,a.jsx)("div",{children:(0,a.jsx)(r.default,{href:"/dashboard/briefs/".concat(l.slug),children:(0,a.jsx)("a",{children:(0,a.jsx)(u.default,{src:(null===(t=l.profile)||void 0===t?void 0:t.avatar)||"/images/avatar.png",width:48,height:48,alt:(null===(n=l.profile)||void 0===n?void 0:n.fullname)||"",className:"rounded-full object-cover"})})})}),(0,a.jsxs)("div",{children:[(0,a.jsx)("h3",{className:"font-bold",children:(0,a.jsx)(r.default,{href:"/dashboard/briefs/".concat(l.slug),children:(0,a.jsx)("a",{className:"text-slate-800 hover:underline hover:text-blue-800",children:l.title})})}),(0,a.jsxs)("ul",{className:"flex items-center space-x-4",children:[(0,a.jsx)("li",{children:(0,a.jsxs)("span",{className:"text-slate-400 flex items-center",children:[(0,a.jsx)(i.XAC,{className:"mr-1"})," ",l.city,", ",l.state]})}),(0,a.jsx)("li",{children:(0,a.jsxs)("span",{className:"".concat(new Date(l.date)<Date.now()?"text-red-400":"text-slate-500"," text-sm "),children:["Due"," ",(0,s.Z)(new Date(l.date),Date.now(),{addSuffix:!0})]})}),(0,a.jsx)("li",{children:(d=l.applicants,d.filter((function(e){return e.user===c.id})).length>0?(0,a.jsxs)("div",{className:"text-green-600 flex items-center text-sm ",children:[(0,a.jsx)(o.FJM,{className:"mr-1"})," Applied"]}):null)})]})]})]})}},23500:function(e,t,n){"use strict";var a=n(34051),r=n.n(a),i=n(85893),o=n(67294),s=n(74931),u=n(40611),d=n(2282);function l(e,t,n,a,r,i,o){try{var s=e[i](o),u=s.value}catch(d){return void n(d)}s.done?t(u):Promise.resolve(u).then(a,r)}function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function h(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},a=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),a.forEach((function(t){c(e,t,n[t])}))}return e}t.Z=function(){var e=(0,o.useState)(!1),t=e[0],n=e[1],a=(0,d.a)(),c=(a.user,a.setUser),m=function(){var e,t=(e=r().mark((function e(){var t;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n(!0),e.prev=1,e.next=4,u.Z.post("/api/users/resend-verification/email");case 4:t=e.sent.data,n(!1),console.log(t),"OK"===t&&s.ZP.success("Verification email sent. Please check your mailbox"),"VERIFIED"===t&&(s.ZP.success("Your email is verified, please refresh your browser"),c((function(e){return h({},e,{is_email_verified:!0})}))),e.next=16;break;case 11:e.prev=11,e.t0=e.catch(1),console.log(e.t0),s.ZP.error("An error occurred, please try again"),n(!1);case 16:case"end":return e.stop()}}),e,null,[[1,11]])})),function(){var t=this,n=arguments;return new Promise((function(a,r){var i=e.apply(t,n);function o(e){l(i,a,r,o,s,"next",e)}function s(e){l(i,a,r,o,s,"throw",e)}o(void 0)}))});return function(){return t.apply(this,arguments)}}();return(0,i.jsx)(i.Fragment,{children:(0,i.jsx)("button",{className:"py-3 px-6 bg-blue-600 text-white rounded-md drop-shadow-lg disabled:bg-opacity-30 text-center block",onClick:m,type:"button",disabled:t,children:"Resend verification email"})})}},58874:function(e,t,n){"use strict";n(85893),n(67294),n(41664),n(23500)},83685:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return h}});var a=n(85893),r=n(80575),i=(n(41664),n(67294)),o=n(40611),s=n(4319),u=n(11163),d=(n(89583),n(69581));var l=function(e){var t=e.user,n=(0,i.useState)(null),r=n[0],l=n[1],c=(0,i.useState)(!0),h=c[0],m=c[1],f=(0,u.useRouter)();return(0,i.useEffect)((function(){o.Z.get("/api/cms/briefs",{params:f.query?new URLSearchParams(f.query):{}}).then((function(e){l(e.data)})).catch((function(e){return console.log(e)})).then((function(){m(!1)}))}),[h]),(0,a.jsx)("div",{children:h?null:(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:"bg-white p-4 rounded-md mb-8 border border-slate-200",children:(0,a.jsx)("form",{action:"",method:"get",children:(0,a.jsxs)("div",{className:"flex justify-between items-center",children:[(0,a.jsx)("div",{children:(0,a.jsx)("div",{children:(0,a.jsxs)("select",{name:"state",className:"input",defaultValue:(null===f||void 0===f?void 0:f.query.state)||"",children:[(0,a.jsx)("option",{value:"",children:"State"}),s&&s.map((function(e){return(0,a.jsx)("option",{value:e,children:e},e)}))]})})}),(0,a.jsx)("button",{type:"submit",className:"py-2 px-3 rounded-md bg-blue-500 text-white drop-shadow-lg",children:"Filter"})]})})}),r.data.length>0?(0,a.jsx)("div",{className:"divide-y bg-white border border-slate-200 rounded-md overflow-hidden",children:r.data.map((function(e){return(0,a.jsx)(d.Z,{brief:e,user:t},e.id)}))}):(0,a.jsx)("div",{className:"bg-red-50 border-red-200 border text-red-800 p-4 font-bold rounded-md",children:"No briefs found"})]})})},c=n(2282);n(88133),n(58874);function h(){var e=(0,c.a)(),t=e.user,n=e.loading;return(0,i.useEffect)((function(){}),[n]),(0,a.jsx)(r.Z,{title:"Briefs",action:"/dashboard/briefs/new",children:!n&&t&&(0,a.jsx)(l,{user:t})})}},4319:function(e){"use strict";e.exports=JSON.parse('["Abia","Adamawa","Akwa Ibom","Anambra","Bauchi","Bayelsa","Benue","Borno","Cross River","Delta","Ebonyi","Edo","Ekiti","Enugu","FCT - Abuja","Gombe","Imo","Jigawa","Kaduna","Kano","Katsina","Kebbi","Kogi","Kwara","Lagos","Nasarawa","Niger","Ogun","Ondo","Osun","Oyo","Plateau","Rivers","Sokoto","Taraba","Yobe","Zamfara"]')}},function(e){e.O(0,[5445,2013,9866,3874,4617,6556,3276,6653,7926,575,9774,2888,179],(function(){return t=31397,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.