Your IP : 3.144.92.231


Current Path : /home/ncdcgo/admin.ncdc.go.ug/static/js/
Upload File :
Current File : /home/ncdcgo/admin.ncdc.go.ug/static/js/4.0c532e8d.chunk.js.map

{"version":3,"sources":["utils/format.js","../node_modules/dayjs/dayjs.min.js","../../src/FileSaver.js","features/applications/api/getApplication.js","features/applications/routes/Application.jsx","features/applications/api/getApplications.js","features/applications/api/deleteApplication.js","features/applications/components/DeleteApplication.jsx","features/applications/components/ApplicationsList.jsx","features/applications/routes/Applications.jsx","features/applications/routes/index.jsx"],"names":["formatDate","date","dayjs","format","propTypes","PropTypes","string","isRequired","module","exports","t","e","n","r","i","s","u","a","o","f","h","c","d","$","l","y","M","name","weekdays","split","months","m","String","length","Array","join","g","z","utcOffset","Math","abs","floor","year","month","clone","add","ceil","p","w","D","ms","Q","toLowerCase","replace","v","_","S","args","arguments","O","locale","$L","utc","$u","x","$x","$offset","this","parse","prototype","$d","Date","NaN","test","match","substring","UTC","init","$y","getFullYear","$M","getMonth","$D","getDate","$W","getDay","$H","getHours","$m","getMinutes","$s","getSeconds","$ms","getMilliseconds","$utils","isValid","toString","isSame","startOf","endOf","isAfter","isBefore","$g","set","unix","valueOf","getTime","toDate","apply","slice","$locale","weekStart","$set","min","daysInMonth","get","Number","round","subtract","invalidDate","substr","meridiem","YY","YYYY","MM","MMM","monthsShort","MMMM","DD","dd","weekdaysMin","ddd","weekdaysShort","dddd","H","HH","hh","A","mm","ss","SSS","Z","getTimezoneOffset","diff","toJSON","toISOString","toUTCString","b","forEach","extend","$i","isDayjs","en","Ls","autoBom","console","Blob","type","status","MouseEvent","document","window","self","global","navigator","HTMLAnchorElement","location","setTimeout","open","saveAs","getApplication","applicationId","axios","Application","applicationQuery","config","useQuery","queryKey","queryFn","useApplication","useParams","useState","download","setDownload","useEffect","data","UPLOADS_API_URL","resume","log","isLoading","className","size","Head","title","firstName","createdAt","lastName","email","onClick","preventDefault","getApplications","deleteApplication","delete","DeleteApplication","id","deleteApplicationMutation","addNotification","useNotificationStore","useMutation","onMutate","deletedApplication","queryClient","cancelQueries","previousApplications","getQueryData","setQueryData","filter","application","onError","__","context","onSuccess","invalidateQueries","mutationFn","useDeleteApplication","allowedRoles","ROLES","ADMIN","icon","body","triggerButton","variant","confirmButton","mutateAsync","ApplicationsList","applicationsQuery","useApplications","columns","field","Cell","entry","_id","to","Applications","ApplicationsRoutes","path","element"],"mappings":"gHAAA,wEAGaA,EAAa,SAACC,GAAD,OAAUC,IAAMD,GAAME,OAAO,wBAEvDH,EAAWI,UAAY,CACrBH,KAAMI,IAAUC,OAAOC,a,oBCN2CC,EAAOC,QAAmI,WAAW,aAAa,IAAIC,EAAE,IAAIC,EAAE,IAAIC,EAAE,KAAKC,EAAE,cAAcC,EAAE,SAASC,EAAE,SAASC,EAAE,OAAOC,EAAE,MAAMC,EAAE,OAAOC,EAAE,QAAQC,EAAE,UAAUC,EAAE,OAAOC,EAAE,OAAOC,EAAE,eAAeC,EAAE,6FAA6FC,EAAE,sFAAsFC,EAAE,CAACC,KAAK,KAAKC,SAAS,2DAA2DC,MAAM,KAAKC,OAAO,wFAAwFD,MAAM,MAAME,EAAE,SAASrB,EAAEC,EAAEC,GAAG,IAAIC,EAAEmB,OAAOtB,GAAG,OAAOG,GAAGA,EAAEoB,QAAQtB,EAAED,EAAE,GAAGwB,MAAMvB,EAAE,EAAEE,EAAEoB,QAAQE,KAAKvB,GAAGF,GAAG0B,EAAE,CAACrB,EAAEgB,EAAEM,EAAE,SAAS3B,GAAG,IAAIC,GAAGD,EAAE4B,YAAY1B,EAAE2B,KAAKC,IAAI7B,GAAGE,EAAE0B,KAAKE,MAAM7B,EAAE,IAAIE,EAAEF,EAAE,GAAG,OAAOD,GAAG,EAAE,IAAI,KAAKoB,EAAElB,EAAE,EAAE,KAAK,IAAIkB,EAAEjB,EAAE,EAAE,MAAMiB,EAAE,SAASrB,EAAEC,EAAEC,GAAG,GAAGD,EAAEV,OAAOW,EAAEX,OAAO,OAAOS,EAAEE,EAAED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E9D,cAAeiC,IAAzE,mFAJX,qCCfG8B,EAAmB,WAC9B,IAAMC,EHDuB,WAAsB,IAAnB5D,GAAkB,uDAAP,IAAXA,OAChC,OAAOC,YAAS,2BACXD,GADU,IAEbE,SAAU,CAAC,gBACXC,QAAS,kBAAMsB,QGHSoC,GAE1B,OAAID,EAAkB9C,UAElB,qBAAKC,UAAU,+CAAf,SACE,cAAC,IAAD,CAASC,KAAK,SAKf4C,EAAkBlD,KAGrB,cAAC,IAAD,CACEA,KAAMkD,EAAkBlD,KACxBoD,QAAS,CACP,CACE5C,MAAO,OACP6C,MAAO,aAET,CACE7C,MAAO,aACP6C,MAAO,YACPC,KAHF,YAGkC,IAAhB5C,EAAe,EAAxB6C,MAAS7C,UACd,OAAO,+BAAOnM,YAAWmM,OAG7B,CACEF,MAAO,GACP6C,MAAO,MACPC,KAHF,YAG4B,IAAVE,EAAS,EAAlBD,MAASC,IACd,OAAO,cAAC,IAAD,CAAMC,GAAE,YAAOD,GAAf,oBAGX,CACEhD,MAAO,GACP6C,MAAO,MACPC,KAHF,YAG4B,IAAVE,EAAS,EAAlBD,MAASC,IACd,OAAO,cAAC,EAAD,CAAmBrC,GAAIqC,SA5BJ,MCdzBE,EAAe,WAC1B,OACE,cAAC,IAAD,CAAelD,MAAM,eAArB,SACE,qBAAKH,UAAU,OAAf,SACE,cAAC,EAAD,SCHKsD,EAAqB,WAChC,OACE,eAAC,IAAD,WACE,cAAC,IAAD,CAAOC,KAAK,GAAGC,QAAS,cAAC,EAAD,MACxB,cAAC,IAAD,CAAOD,KAAK,iBAAiBC,QAAS,cAAC,EAAD,MACtC,cAAC,IAAD,CAAOD,KAAK,IAAIC,QAAS,cAAC,IAAD,CAAUJ,GAAG","file":"static/js/4.0c532e8d.chunk.js","sourcesContent":["import { default as dayjs } from 'dayjs';\nimport PropTypes from 'prop-types';\n\nexport const formatDate = (date) => dayjs(date).format('MMMM D, YYYY h:mm A');\n\nformatDate.propTypes = {\n  date: PropTypes.string.isRequired,\n};\n","!function(t,e){\"object\"==typeof exports&&\"undefined\"!=typeof module?module.exports=e():\"function\"==typeof define&&define.amd?define(e):(t=\"undefined\"!=typeof globalThis?globalThis:t||self).dayjs=e()}(this,(function(){\"use strict\";var t=1e3,e=6e4,n=36e5,r=\"millisecond\",i=\"second\",s=\"minute\",u=\"hour\",a=\"day\",o=\"week\",f=\"month\",h=\"quarter\",c=\"year\",d=\"date\",$=\"Invalid Date\",l=/^(\\d{4})[-/]?(\\d{1,2})?[-/]?(\\d{0,2})[Tt\\s]*(\\d{1,2})?:?(\\d{1,2})?:?(\\d{1,2})?[.:]?(\\d+)?$/,y=/\\[([^\\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,M={name:\"en\",weekdays:\"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday\".split(\"_\"),months:\"January_February_March_April_May_June_July_August_September_October_November_December\".split(\"_\")},m=function(t,e,n){var r=String(t);return!r||r.length>=e?t:\"\"+Array(e+1-r.length).join(n)+t},g={s:m,z:function(t){var e=-t.utcOffset(),n=Math.abs(e),r=Math.floor(n/60),i=n%60;return(e<=0?\"+\":\"-\")+m(r,2,\"0\")+\":\"+m(i,2,\"0\")},m:function t(e,n){if(e.date()<n.date())return-t(n,e);var r=12*(n.year()-e.year())+(n.month()-e.month()),i=e.clone().add(r,f),s=n-i<0,u=e.clone().add(r+(s?-1:1),f);return+(-(r+(n-i)/(s?i-u:u-i))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(t){return{M:f,y:c,w:o,d:a,D:d,h:u,m:s,s:i,ms:r,Q:h}[t]||String(t||\"\").toLowerCase().replace(/s$/,\"\")},u:function(t){return void 0===t}},D=\"en\",v={};v[D]=M;var p=function(t){return t instanceof _},S=function(t,e,n){var r;if(!t)return D;if(\"string\"==typeof t)v[t]&&(r=t),e&&(v[t]=e,r=t);else{var i=t.name;v[i]=t,r=i}return!n&&r&&(D=r),r||!n&&D},w=function(t,e){if(p(t))return t.clone();var n=\"object\"==typeof e?e:{};return n.date=t,n.args=arguments,new _(n)},O=g;O.l=S,O.i=p,O.w=function(t,e){return w(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var _=function(){function M(t){this.$L=S(t.locale,null,!0),this.parse(t)}var m=M.prototype;return m.parse=function(t){this.$d=function(t){var e=t.date,n=t.utc;if(null===e)return new Date(NaN);if(O.u(e))return new Date;if(e instanceof Date)return new Date(e);if(\"string\"==typeof e&&!/Z$/i.test(e)){var r=e.match(l);if(r){var i=r[2]-1||0,s=(r[7]||\"0\").substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,s)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,s)}}return new Date(e)}(t),this.$x=t.x||{},this.init()},m.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},m.$utils=function(){return O},m.isValid=function(){return!(this.$d.toString()===$)},m.isSame=function(t,e){var n=w(t);return this.startOf(e)<=n&&n<=this.endOf(e)},m.isAfter=function(t,e){return w(t)<this.startOf(e)},m.isBefore=function(t,e){return this.endOf(e)<w(t)},m.$g=function(t,e,n){return O.u(t)?this[e]:this.set(n,t)},m.unix=function(){return Math.floor(this.valueOf()/1e3)},m.valueOf=function(){return this.$d.getTime()},m.startOf=function(t,e){var n=this,r=!!O.u(e)||e,h=O.p(t),$=function(t,e){var i=O.w(n.$u?Date.UTC(n.$y,e,t):new Date(n.$y,e,t),n);return r?i:i.endOf(a)},l=function(t,e){return O.w(n.toDate()[t].apply(n.toDate(\"s\"),(r?[0,0,0,0]:[23,59,59,999]).slice(e)),n)},y=this.$W,M=this.$M,m=this.$D,g=\"set\"+(this.$u?\"UTC\":\"\");switch(h){case c:return r?$(1,0):$(31,11);case f:return r?$(1,M):$(0,M+1);case o:var D=this.$locale().weekStart||0,v=(y<D?y+7:y)-D;return $(r?m-v:m+(6-v),M);case a:case d:return l(g+\"Hours\",0);case u:return l(g+\"Minutes\",1);case s:return l(g+\"Seconds\",2);case i:return l(g+\"Milliseconds\",3);default:return this.clone()}},m.endOf=function(t){return this.startOf(t,!1)},m.$set=function(t,e){var n,o=O.p(t),h=\"set\"+(this.$u?\"UTC\":\"\"),$=(n={},n[a]=h+\"Date\",n[d]=h+\"Date\",n[f]=h+\"Month\",n[c]=h+\"FullYear\",n[u]=h+\"Hours\",n[s]=h+\"Minutes\",n[i]=h+\"Seconds\",n[r]=h+\"Milliseconds\",n)[o],l=o===a?this.$D+(e-this.$W):e;if(o===f||o===c){var y=this.clone().set(d,1);y.$d[$](l),y.init(),this.$d=y.set(d,Math.min(this.$D,y.daysInMonth())).$d}else $&&this.$d[$](l);return this.init(),this},m.set=function(t,e){return this.clone().$set(t,e)},m.get=function(t){return this[O.p(t)]()},m.add=function(r,h){var d,$=this;r=Number(r);var l=O.p(h),y=function(t){var e=w($);return O.w(e.date(e.date()+Math.round(t*r)),$)};if(l===f)return this.set(f,this.$M+r);if(l===c)return this.set(c,this.$y+r);if(l===a)return y(1);if(l===o)return y(7);var M=(d={},d[s]=e,d[u]=n,d[i]=t,d)[l]||1,m=this.$d.getTime()+r*M;return O.w(m,this)},m.subtract=function(t,e){return this.add(-1*t,e)},m.format=function(t){var e=this,n=this.$locale();if(!this.isValid())return n.invalidDate||$;var r=t||\"YYYY-MM-DDTHH:mm:ssZ\",i=O.z(this),s=this.$H,u=this.$m,a=this.$M,o=n.weekdays,f=n.months,h=function(t,n,i,s){return t&&(t[n]||t(e,r))||i[n].substr(0,s)},c=function(t){return O.s(s%12||12,t,\"0\")},d=n.meridiem||function(t,e,n){var r=t<12?\"AM\":\"PM\";return n?r.toLowerCase():r},l={YY:String(this.$y).slice(-2),YYYY:this.$y,M:a+1,MM:O.s(a+1,2,\"0\"),MMM:h(n.monthsShort,a,f,3),MMMM:h(f,a),D:this.$D,DD:O.s(this.$D,2,\"0\"),d:String(this.$W),dd:h(n.weekdaysMin,this.$W,o,2),ddd:h(n.weekdaysShort,this.$W,o,3),dddd:o[this.$W],H:String(s),HH:O.s(s,2,\"0\"),h:c(1),hh:c(2),a:d(s,u,!0),A:d(s,u,!1),m:String(u),mm:O.s(u,2,\"0\"),s:String(this.$s),ss:O.s(this.$s,2,\"0\"),SSS:O.s(this.$ms,3,\"0\"),Z:i};return r.replace(y,(function(t,e){return e||l[t]||i.replace(\":\",\"\")}))},m.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},m.diff=function(r,d,$){var l,y=O.p(d),M=w(r),m=(M.utcOffset()-this.utcOffset())*e,g=this-M,D=O.m(this,M);return D=(l={},l[c]=D/12,l[f]=D,l[h]=D/3,l[o]=(g-m)/6048e5,l[a]=(g-m)/864e5,l[u]=g/n,l[s]=g/e,l[i]=g/t,l)[y]||g,$?D:O.a(D)},m.daysInMonth=function(){return this.endOf(f).$D},m.$locale=function(){return v[this.$L]},m.locale=function(t,e){if(!t)return this.$L;var n=this.clone(),r=S(t,e,!0);return r&&(n.$L=r),n},m.clone=function(){return O.w(this.$d,this)},m.toDate=function(){return new Date(this.valueOf())},m.toJSON=function(){return this.isValid()?this.toISOString():null},m.toISOString=function(){return this.$d.toISOString()},m.toString=function(){return this.$d.toUTCString()},M}(),b=_.prototype;return w.prototype=b,[[\"$ms\",r],[\"$s\",i],[\"$m\",s],[\"$H\",u],[\"$W\",a],[\"$M\",f],[\"$y\",c],[\"$D\",d]].forEach((function(t){b[t[1]]=function(e){return this.$g(e,t[0],t[1])}})),w.extend=function(t,e){return t.$i||(t(e,_,w),t.$i=!0),w},w.locale=S,w.isDayjs=p,w.unix=function(t){return w(1e3*t)},w.en=v[D],w.Ls=v,w.p={},w}));","/*\n* FileSaver.js\n* A saveAs() FileSaver implementation.\n*\n* By Eli Grey, http://eligrey.com\n*\n* License : https://github.com/eligrey/FileSaver.js/blob/master/LICENSE.md (MIT)\n* source  : http://purl.eligrey.com/github/FileSaver.js\n*/\n\n// The one and only way of getting global scope in all environments\n// https://stackoverflow.com/q/3277182/1008999\nvar _global = typeof window === 'object' && window.window === window\n  ? window : typeof self === 'object' && self.self === self\n  ? self : typeof global === 'object' && global.global === global\n  ? global\n  : this\n\nfunction bom (blob, opts) {\n  if (typeof opts === 'undefined') opts = { autoBom: false }\n  else if (typeof opts !== 'object') {\n    console.warn('Deprecated: Expected third argument to be a object')\n    opts = { autoBom: !opts }\n  }\n\n  // prepend BOM for UTF-8 XML and text/* types (including HTML)\n  // note: your browser will automatically convert UTF-16 U+FEFF to EF BB BF\n  if (opts.autoBom && /^\\s*(?:text\\/\\S*|application\\/xml|\\S*\\/\\S*\\+xml)\\s*;.*charset\\s*=\\s*utf-8/i.test(blob.type)) {\n    return new Blob([String.fromCharCode(0xFEFF), blob], { type: blob.type })\n  }\n  return blob\n}\n\nfunction download (url, name, opts) {\n  var xhr = new XMLHttpRequest()\n  xhr.open('GET', url)\n  xhr.responseType = 'blob'\n  xhr.onload = function () {\n    saveAs(xhr.response, name, opts)\n  }\n  xhr.onerror = function () {\n    console.error('could not download file')\n  }\n  xhr.send()\n}\n\nfunction corsEnabled (url) {\n  var xhr = new XMLHttpRequest()\n  // use sync to avoid popup blocker\n  xhr.open('HEAD', url, false)\n  try {\n    xhr.send()\n  } catch (e) {}\n  return xhr.status >= 200 && xhr.status <= 299\n}\n\n// `a.click()` doesn't work for all browsers (#465)\nfunction click (node) {\n  try {\n    node.dispatchEvent(new MouseEvent('click'))\n  } catch (e) {\n    var evt = document.createEvent('MouseEvents')\n    evt.initMouseEvent('click', true, true, window, 0, 0, 0, 80,\n                          20, false, false, false, false, 0, null)\n    node.dispatchEvent(evt)\n  }\n}\n\n// Detect WebView inside a native macOS app by ruling out all browsers\n// We just need to check for 'Safari' because all other browsers (besides Firefox) include that too\n// https://www.whatismybrowser.com/guides/the-latest-user-agent/macos\nvar isMacOSWebView = _global.navigator && /Macintosh/.test(navigator.userAgent) && /AppleWebKit/.test(navigator.userAgent) && !/Safari/.test(navigator.userAgent)\n\nvar saveAs = _global.saveAs || (\n  // probably in some web worker\n  (typeof window !== 'object' || window !== _global)\n    ? function saveAs () { /* noop */ }\n\n  // Use download attribute first if possible (#193 Lumia mobile) unless this is a macOS WebView\n  : ('download' in HTMLAnchorElement.prototype && !isMacOSWebView)\n  ? function saveAs (blob, name, opts) {\n    var URL = _global.URL || _global.webkitURL\n    var a = document.createElement('a')\n    name = name || blob.name || 'download'\n\n    a.download = name\n    a.rel = 'noopener' // tabnabbing\n\n    // TODO: detect chrome extensions & packaged apps\n    // a.target = '_blank'\n\n    if (typeof blob === 'string') {\n      // Support regular links\n      a.href = blob\n      if (a.origin !== location.origin) {\n        corsEnabled(a.href)\n          ? download(blob, name, opts)\n          : click(a, a.target = '_blank')\n      } else {\n        click(a)\n      }\n    } else {\n      // Support blobs\n      a.href = URL.createObjectURL(blob)\n      setTimeout(function () { URL.revokeObjectURL(a.href) }, 4E4) // 40s\n      setTimeout(function () { click(a) }, 0)\n    }\n  }\n\n  // Use msSaveOrOpenBlob as a second approach\n  : 'msSaveOrOpenBlob' in navigator\n  ? function saveAs (blob, name, opts) {\n    name = name || blob.name || 'download'\n\n    if (typeof blob === 'string') {\n      if (corsEnabled(blob)) {\n        download(blob, name, opts)\n      } else {\n        var a = document.createElement('a')\n        a.href = blob\n        a.target = '_blank'\n        setTimeout(function () { click(a) })\n      }\n    } else {\n      navigator.msSaveOrOpenBlob(bom(blob, opts), name)\n    }\n  }\n\n  // Fallback to using FileReader and a popup\n  : function saveAs (blob, name, opts, popup) {\n    // Open a popup immediately do go around popup blocker\n    // Mostly only available on user interaction and the fileReader is async so...\n    popup = popup || open('', '_blank')\n    if (popup) {\n      popup.document.title =\n      popup.document.body.innerText = 'downloading...'\n    }\n\n    if (typeof blob === 'string') return download(blob, name, opts)\n\n    var force = blob.type === 'application/octet-stream'\n    var isSafari = /constructor/i.test(_global.HTMLElement) || _global.safari\n    var isChromeIOS = /CriOS\\/[\\d]+/.test(navigator.userAgent)\n\n    if ((isChromeIOS || (force && isSafari) || isMacOSWebView) && typeof FileReader !== 'undefined') {\n      // Safari doesn't allow downloading of blob URLs\n      var reader = new FileReader()\n      reader.onloadend = function () {\n        var url = reader.result\n        url = isChromeIOS ? url : url.replace(/^data:[^;]*;/, 'data:attachment/file;')\n        if (popup) popup.location.href = url\n        else location = url\n        popup = null // reverse-tabnabbing #460\n      }\n      reader.readAsDataURL(blob)\n    } else {\n      var URL = _global.URL || _global.webkitURL\n      var url = URL.createObjectURL(blob)\n      if (popup) popup.location = url\n      else location.href = url\n      popup = null // reverse-tabnabbing #460\n      setTimeout(function () { URL.revokeObjectURL(url) }, 4E4) // 40s\n    }\n  }\n)\n\n_global.saveAs = saveAs.saveAs = saveAs\n\nif (typeof module !== 'undefined') {\n  module.exports = saveAs;\n}\n","import { axios } from '@/lib/axios';\nimport { useQuery } from 'react-query';\n\nexport const getApplication = async ({ applicationId }) => {\n  return await axios.get(`/applications/${applicationId}`);\n};\n\nexport const useApplication = ({ applicationId, config }) => {\n  return useQuery({\n    ...config,\n    queryKey: ['application', applicationId],\n    queryFn: () => getApplication({ applicationId }),\n  });\n};\n","import { Button, Spinner } from '@/components/Elements';\nimport { Head } from '@/components/Head';\nimport { ContentLayout } from '@/components/Layout';\nimport { UPLOADS_API_URL } from '@/config';\nimport { formatDate } from '@/utils/format';\nimport { saveAs } from 'file-saver';\nimport { useEffect, useState } from 'react';\nimport { useParams } from 'react-router-dom';\n\nimport { useApplication } from '../api/getApplication';\n\nexport const Application = () => {\n  const { applicationId } = useParams();\n  const applicationQuery = useApplication({ applicationId });\n\n  const [download, setDownload] = useState(false);\n\n  useEffect(() => {\n    if (applicationQuery.data) {\n      setDownload(`${UPLOADS_API_URL}/applications/${applicationQuery.data.resume}`);\n    }\n    console.log(download);\n  }, [applicationQuery.data, download]);\n\n  const saveFile = (e) => {\n    e.preventDefault();\n    saveAs(download, 'resume.pdf');\n  };\n\n  if (applicationQuery.isLoading) {\n    return (\n      <div className=\"w-full h-48 flex justify-center items-center\">\n        <Spinner size=\"lg\" />\n      </div>\n    );\n  }\n\n  if (!applicationQuery.data) return null;\n\n  return (\n    <>\n      <Head title={applicationQuery.data.firstName} />\n      <ContentLayout title={applicationQuery.data.firstName}>\n        <span className=\"text-xs font-bold\">{formatDate(applicationQuery.data.createdAt)}</span>\n        <div className=\"mt-6 flex flex-col space-y-16\">\n          <div>\n            <div className=\"bg-white shadow overflow-hidden sm:rounded-lg\">\n              {/* email */}\n              <div className=\"px-4 py-5 border-b border-gray-200 sm:px-6\">\n                <div className=\"-ml-4 -mt-2 flex items-center justify-between flex-wrap sm:flex-no-wrap\">\n                  <div className=\"ml-4 mt-2\">\n                    <h3 className=\"text-lg leading-6 font-medium text-gray-900\">First Name</h3>\n                    <p className=\"mt-1 text-base leading-6 text-gray-500\">\n                      {applicationQuery.data.firstName}\n                    </p>\n                  </div>\n                </div>\n                <hr className=\"my-4\" />\n                <div className=\"-ml-4 -mt-2 flex items-center justify-between flex-wrap sm:flex-no-wrap\">\n                  <div className=\"ml-4 mt-2\">\n                    <h3 className=\"text-lg leading-6 font-medium text-gray-900\">Last Name</h3>\n                    <p className=\"mt-1 text-base leading-6 text-gray-500\">\n                      {applicationQuery.data.lastName}\n                    </p>\n                  </div>\n                </div>\n                <hr className=\"my-4\" />\n                <div className=\"-ml-4 -mt-2 flex items-center justify-between flex-wrap sm:flex-no-wrap\">\n                  <div className=\"ml-4 mt-2\">\n                    <h3 className=\"text-lg leading-6 font-medium text-gray-900\">Email</h3>\n                    <p className=\"mt-1 text-base leading-6 text-gray-500\">\n                      {applicationQuery.data.email}\n                    </p>\n                  </div>\n                </div>\n                <hr className=\"my-4\" />\n                <div className=\"-ml-4 -mt-2 flex items-center justify-between flex-wrap sm:flex-no-wrap\">\n                  <div className=\"ml-4 mt-2\">\n                    <h3 className=\"text-lg leading-6 font-medium text-gray-900\">Resume</h3>\n                    <p className=\"mt-2 text-base leading-6 text-gray-500\">\n                      <Button onClick={saveFile}>Download Resume</Button>\n                    </p>\n                  </div>\n                </div>\n              </div>\n            </div>\n          </div>\n        </div>\n      </ContentLayout>\n    </>\n  );\n};\n","import { axios } from '@/lib/axios';\nimport { useQuery } from 'react-query';\n\nexport const getApplications = () => {\n  return axios.get('/applications');\n};\n\nexport const useApplications = ({ config } = {}) => {\n  return useQuery({\n    ...config,\n    queryKey: ['applications'],\n    queryFn: () => getApplications(),\n  });\n};\n","import { axios } from '@/lib/axios';\nimport { queryClient } from '@/lib/react-query';\nimport { useNotificationStore } from '@/stores/notifications';\nimport PropTypes from 'prop-types';\nimport { useMutation } from 'react-query';\n\nexport const deleteApplication = ({ applicationId }) => {\n  return axios.delete(`/applications/${applicationId}`);\n};\n\ndeleteApplication.propTypes = {\n  applicationId: PropTypes.string.isRequired,\n};\n\nexport const useDeleteApplication = ({ config } = {}) => {\n  const { addNotification } = useNotificationStore();\n\n  return useMutation({\n    onMutate: async (deletedApplication) => {\n      await queryClient.cancelQueries('applications');\n\n      const previousApplications = queryClient.getQueryData('applications');\n\n      queryClient.setQueryData(\n        'applications',\n        previousApplications?.filter(\n          (application) => application.id !== deletedApplication.applicationId\n        )\n      );\n\n      return { previousApplications };\n    },\n    onError: (_, __, context) => {\n      if (context?.previousApplications) {\n        queryClient.setQueryData('applications', context.previousApplications);\n      }\n    },\n    onSuccess: () => {\n      queryClient.invalidateQueries('applications');\n      addNotification({\n        type: 'success',\n        title: 'Application Deleted',\n      });\n    },\n    ...config,\n    mutationFn: deleteApplication,\n  });\n};\n","import { Button, ConfirmationDialog } from '@/components/Elements';\nimport { Authorization, ROLES } from '@/lib/authorization';\nimport { TrashIcon } from '@heroicons/react/outline';\nimport PropTypes from 'prop-types';\n\nimport { useDeleteApplication } from '../api/deleteApplication';\n\nexport const DeleteApplication = ({ id }) => {\n  const deleteApplicationMutation = useDeleteApplication();\n\n  return (\n    <Authorization allowedRoles={[ROLES.ADMIN]}>\n      <ConfirmationDialog\n        icon=\"danger\"\n        title=\"Delete Application\"\n        body=\"Are you sure you want to delete this Application?\"\n        triggerButton={\n          <Button variant=\"danger\">\n            <TrashIcon className=\"h-4 w-4\" />\n          </Button>\n        }\n        confirmButton={\n          <Button\n            isLoading={deleteApplicationMutation.isLoading}\n            type=\"button\"\n            className=\"bg-red-600\"\n            onClick={async () => await deleteApplicationMutation.mutateAsync({ applicationId: id })}\n          >\n            Delete Application\n          </Button>\n        }\n      />\n    </Authorization>\n  );\n};\n\nDeleteApplication.propTypes = {\n  id: PropTypes.string.isRequired,\n};\n","import { Table, Spinner, Link } from '@/components/Elements';\nimport { formatDate } from '@/utils/format';\n\nimport { useApplications } from '../api/getApplications';\n\nimport { DeleteApplication } from './DeleteApplication';\n\nexport const ApplicationsList = () => {\n  const applicationsQuery = useApplications();\n\n  if (applicationsQuery.isLoading) {\n    return (\n      <div className=\"w-full h-48 flex justify-center items-center\">\n        <Spinner size=\"lg\" />\n      </div>\n    );\n  }\n\n  if (!applicationsQuery.data) return null;\n\n  return (\n    <Table\n      data={applicationsQuery.data}\n      columns={[\n        {\n          title: 'Name',\n          field: 'firstName',\n        },\n        {\n          title: 'Created At',\n          field: 'createdAt',\n          Cell({ entry: { createdAt } }) {\n            return <span>{formatDate(createdAt)}</span>;\n          },\n        },\n        {\n          title: '',\n          field: '_id',\n          Cell({ entry: { _id } }) {\n            return <Link to={`./${_id}`}>View</Link>;\n          },\n        },\n        {\n          title: '',\n          field: '_id',\n          Cell({ entry: { _id } }) {\n            return <DeleteApplication id={_id} />;\n          },\n        },\n      ]}\n    />\n  );\n};\n","import { ContentLayout } from '@/components/Layout';\n\nimport { ApplicationsList } from '../components/ApplicationsList';\n\nexport const Applications = () => {\n  return (\n    <ContentLayout title=\"Applications\">\n      <div className=\"mt-4\">\n        <ApplicationsList />\n      </div>\n    </ContentLayout>\n  );\n};\n","import { Navigate, Route, Routes } from 'react-router-dom';\n\nimport { Application } from './Application';\nimport { Applications } from './Applications';\n\nexport const ApplicationsRoutes = () => {\n  return (\n    <Routes>\n      <Route path=\"\" element={<Applications />} />\n      <Route path=\":applicationId\" element={<Application />} />\n      <Route path=\"*\" element={<Navigate to=\".\" />} />\n    </Routes>\n  );\n};\n"],"sourceRoot":""}