Your IP : 3.16.135.146


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

{"version":3,"sources":["utils/format.js","../node_modules/dayjs/dayjs.min.js","features/ads/api/getAd.js","features/ads/api/updateAd.js","features/ads/components/UpdateAd.jsx","features/ads/routes/Ad.jsx","features/ads/api/getAds.js","features/ads/api/deleteAd.js","features/ads/components/DeleteAd.jsx","features/ads/components/AdsList.jsx","features/ads/api/createAd.js","features/ads/components/CreateAd.jsx","features/ads/routes/Ads.jsx","features/ads/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","useAd","adId","config","useQuery","queryKey","queryFn","axios","getAd","updateAd","data","patch","shape","title","desc","image","schema","UpdateAd","useState","setImage","preview","setPreview","adQuery","updateAdMutation","addNotification","useNotificationStore","useMutation","onMutate","updatingAd","queryClient","cancelQueries","previousAd","getQueryData","setQueryData","id","onError","__","context","onSuccess","refetchQueries","type","mutationFn","useUpdateAd","allowedRoles","ROLES","ADMIN","Form","size","isDone","isSuccess","triggerButton","startIcon","className","submitButton","form","isLoading","encType","onSubmit","values","bodyFormData","FormData","append","mutateAsync","options","defaultValues","register","formState","label","error","errors","registration","subTitle","onChange","target","files","URL","createObjectURL","Ad","useParams","console","log","Head","_id","button","createdAt","src","UPLOADS_API_URL","alt","getAds","deleteAd","delete","DeleteAd","deleteAdMutation","deletedAd","previousAds","filter","ad","managerId","invalidateQueries","useDeleteAd","icon","body","variant","confirmButton","onClick","AdsList","adsQuery","useAds","columns","field","Cell","entry","to","createAd","post","CreateAd","createAdMutation","newAd","useCreateAd","watch","setValue","editorContent","value","Ads","AdsRoutes","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,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C,GAC5B6C,EAAaE,OAAO,QAAS9C,GALrB,SAMFqG,EAAiBtD,YAAY,CAAEpD,KAAMiD,IANnC,2CAAF,sDAQR3C,OAAQA,EAXV,SAaG,gBAAGiD,EAAH,EAAGA,SAAUC,EAAb,EAAaA,UAAWqD,EAAxB,EAAwBA,MAAOC,EAA/B,EAA+BA,SAA/B,OACC,qCACE,cAAC,IAAD,CACErD,MAAM,QACNC,MAAOF,EAAUG,OAAV,MACPC,aAAcL,EAAS,WAEzB,cAAC,IAAD,CACEE,MAAM,UACNC,MAAOF,EAAUG,OAAV,KACPoD,cAAeF,EAAM,QACrBC,SAAUA,EACVE,MAAM,SAER,cAAC,IAAD,CACE7G,MAAM,yBACN0D,SAAS,2CACTH,MAAOF,EAAUG,OAAV,MACP9J,EAAG,KACHvC,EAAG,IACHwM,SAAU,SAACtN,GACTiK,EAASjK,EAAEuN,OAAOC,MAAM,IACxBrD,EAAWsD,IAAIC,gBAAgB1N,EAAEuN,OAAOC,MAAM,MAEhDtD,QAASA,eCpEZuG,EAAM,WACjB,OACE,cAAC,IAAD,CAAe9G,MAAM,MAAMsE,OAAQ,cAAC,EAAD,IAAnC,SACE,qBAAK/B,UAAU,OAAf,SACE,cAAC,EAAD,SCJKwE,EAAY,WACvB,OACE,eAAC,IAAD,WACE,cAAC,IAAD,CAAOC,KAAK,GAAGC,QAAS,cAAC,EAAD,MACxB,cAAC,IAAD,CAAOD,KAAK,QAAQC,QAAS,cAAC,EAAD,MAC7B,cAAC,IAAD,CAAOD,KAAK,IAAIC,QAAS,cAAC,IAAD,CAAUd,GAAG","file":"static/js/5.ed7e9973.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}));","import { axios } from '@/lib/axios';\nimport { useQuery } from 'react-query';\n\nexport const getAd = ({ adId }) => {\n  return axios.get(`/adverts/${adId}`);\n};\n\nexport const useAd = ({ adId, config }) => {\n  return useQuery({\n    ...config,\n    queryKey: ['ad', adId],\n    queryFn: () => getAd({ adId }),\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 updateAd = ({ data, adId }) => {\n  return axios.patch(`/adverts/${adId}`, data);\n};\n\nupdateAd.propTypes = {\n  data: PropTypes.shape({\n    title: PropTypes.string,\n    desc: PropTypes.string,\n    image: PropTypes.string,\n  }).isRequired,\n  adId: PropTypes.string.isRequired,\n};\n\nexport const useUpdateAd = ({ config } = {}) => {\n  const { addNotification } = useNotificationStore();\n\n  return useMutation({\n    onMutate: async (updatingAd) => {\n      await queryClient.cancelQueries(['ad', updatingAd?.adId]);\n\n      const previousAd = queryClient.getQueryData[('ad', updatingAd?.adId)];\n\n      queryClient.setQueryData(['ad', updatingAd?.adId], {\n        ...previousAd,\n        ...updatingAd.data,\n        id: updatingAd.adId,\n      });\n\n      return { previousAd };\n    },\n    onError: (_, __, context) => {\n      if (context?.previousAd) {\n        queryClient.setQueryData(['ad', context.previousAd.id], context.previousAd);\n      }\n    },\n    onSuccess: (data) => {\n      queryClient.refetchQueries(['ad', data.id]);\n      addNotification({\n        type: 'success',\n        title: 'Ad Updated',\n      });\n    },\n    ...config,\n    mutationFn: updateAd,\n  });\n};\n","import { Button } from '@/components/Elements';\nimport { Form, FormDrawer, InputField, UploadField } from '@/components/Form';\nimport { Authorization, ROLES } from '@/lib/authorization';\nimport { PencilIcon } from '@heroicons/react/solid';\nimport PropTypes from 'prop-types';\nimport { useState } from 'react';\nimport * as z from 'zod';\n\nimport { useAd } from '../api/getAd';\nimport { useUpdateAd } from '../api/updateAd';\n\nconst schema = z.object({});\n\nexport const UpdateAd = ({ adId }) => {\n  const [image, setImage] = useState(null);\n  const [preview, setPreview] = useState(null);\n  const adQuery = useAd({ adId });\n  const updateAdMutation = useUpdateAd();\n\n  return (\n    <Authorization allowedRoles={[ROLES.ADMIN]}>\n      <FormDrawer\n        size=\"sm\"\n        isDone={updateAdMutation.isSuccess}\n        triggerButton={\n          <Button startIcon={<PencilIcon className=\"h-4 w-4\" />} size=\"sm\">\n            Update\n          </Button>\n        }\n        title=\"Update Ad\"\n        submitButton={\n          <Button form=\"update-ad\" type=\"submit\" size=\"sm\" isLoading={updateAdMutation.isLoading}>\n            Submit\n          </Button>\n        }\n      >\n        <Form\n          id=\"update-ad\"\n          encType=\"multipart/form-data\"\n          onSubmit={async (values) => {\n            const { title, desc } = values;\n            const bodyFormData = new FormData();\n            bodyFormData.append('title', title);\n            bodyFormData.append('desc', desc);\n            bodyFormData.append('image', image);\n            await updateAdMutation.mutateAsync({ data: bodyFormData, adId });\n          }}\n          options={{\n            defaultValues: {\n              title: adQuery.data?.title,\n              desc: adQuery.data?.desc,\n            },\n          }}\n          schema={schema}\n        >\n          {({ register, formState }) => (\n            <>\n              <InputField\n                label=\"Title\"\n                error={formState.errors['title']}\n                registration={register('title')}\n              />\n              <InputField\n                label=\"Description\"\n                error={formState.errors['desc']}\n                registration={register('desc')}\n              />\n              <UploadField\n                title=\"Update Banner Image\"\n                subTitle=\"Upload clear image for better visibility\"\n                error={formState.errors['image']}\n                x={1280}\n                y={340}\n                onChange={(e) => {\n                  setImage(e.target.files[0]);\n                  setPreview(URL.createObjectURL(e.target.files[0]));\n                }}\n                preview={preview}\n              />\n            </>\n          )}\n        </Form>\n      </FormDrawer>\n    </Authorization>\n  );\n};\n\nUpdateAd.propTypes = {\n  adId: PropTypes.string.isRequired,\n};\n","import { 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 { useParams } from 'react-router-dom';\n\nimport { useAd } from '../api/getAd';\nimport { UpdateAd } from '../components/UpdateAd';\n\nexport const Ad = () => {\n  const { adId } = useParams();\n  const adQuery = useAd({ adId });\n\n  if (adQuery.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  console.log(adQuery.data);\n\n  if (!adQuery.data) return null;\n\n  return (\n    <>\n      <Head title={adQuery.data._id} />\n      <ContentLayout title={adQuery.data.title} button={<UpdateAd adId={adId} />}>\n        <span className=\"text-xs font-bold text-gray-500\">\n          Ad created on {formatDate(adQuery.data.createdAt)}\n        </span>\n        <div className=\"mt-6 flex flex-col space-y-16\">\n          <div className=\"flex flex-row space-x-4\">\n            <div className=\"w-1/2\">\n              <div className=\"text-sm font-bold\">Title</div>\n              <div className=\"text-sm\">{adQuery.data.title}</div>\n            </div>\n            <div className=\"w-1/2\">\n              <div className=\"text-sm font-bold\">Description</div>\n              <div className=\"text-sm\">{adQuery.data.desc}</div>\n            </div>\n          </div>\n          <div className=\"mx-auto p-2 bg-gray-300 rounded-md\">\n            <img\n              src={`${UPLOADS_API_URL}/ads/resized/${adQuery.data.image}`}\n              alt=\"banner\"\n              className=\"w-full h-full\"\n            />\n          </div>\n        </div>\n      </ContentLayout>\n    </>\n  );\n};\n","import { axios } from '@/lib/axios';\nimport { useQuery } from 'react-query';\n\nexport const getAds = () => {\n  return axios.get('/adverts');\n};\n\nexport const useAds = ({ config } = {}) => {\n  return useQuery({\n    ...config,\n    queryKey: ['ads'],\n    queryFn: () => getAds(),\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 deleteAd = ({ adId }) => {\n  return axios.delete(`/adverts/${adId}`);\n};\n\ndeleteAd.propTypes = {\n  adId: PropTypes.string.isRequired,\n};\n\nexport const useDeleteAd = ({ config } = {}) => {\n  const { addNotification } = useNotificationStore();\n\n  return useMutation({\n    onMutate: async (deletedAd) => {\n      await queryClient.cancelQueries('ads');\n\n      const previousAds = queryClient.getQueryData('ads');\n\n      queryClient.setQueryData(\n        'ads',\n        previousAds?.filter((ad) => ad.id !== deletedAd.managerId)\n      );\n\n      return { previousAds };\n    },\n    onError: (_, __, context) => {\n      if (context?.previousAds) {\n        queryClient.setQueryData('ads', context.previousAds);\n      }\n    },\n    onSuccess: () => {\n      queryClient.invalidateQueries('ads');\n      addNotification({\n        type: 'success',\n        title: 'Ad Deleted',\n      });\n    },\n    ...config,\n    mutationFn: deleteAd,\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 { useDeleteAd } from '../api/deleteAd';\n\nexport const DeleteAd = ({ id }) => {\n  const deleteAdMutation = useDeleteAd();\n\n  return (\n    <Authorization allowedRoles={[ROLES.ADMIN]}>\n      <ConfirmationDialog\n        icon=\"danger\"\n        title=\"Delete Ad\"\n        body=\"Are you sure you want to delete this Ad?\"\n        triggerButton={\n          <Button variant=\"danger\">\n            <TrashIcon className=\"h-4 w-4\" />\n          </Button>\n        }\n        confirmButton={\n          <Button\n            isLoading={deleteAdMutation.isLoading}\n            type=\"button\"\n            className=\"bg-red-600\"\n            onClick={async () => await deleteAdMutation.mutateAsync({ adId: id })}\n          >\n            Delete Ad\n          </Button>\n        }\n      />\n    </Authorization>\n  );\n};\n\nDeleteAd.propTypes = {\n  id: PropTypes.string.isRequired,\n};\n","import { Table, Spinner } from '@/components/Elements';\nimport { Link } from 'react-router-dom';\n\nimport { useAds } from '../api/getAds';\n\nimport { DeleteAd } from './DeleteAd';\n\nexport const AdsList = () => {\n  const adsQuery = useAds();\n\n  if (adsQuery.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 (!adsQuery.data) return null;\n\n  return (\n    <Table\n      data={adsQuery.data}\n      columns={[\n        {\n          title: 'Lists',\n          field: '_id',\n          Cell({ entry: { _id, title } }) {\n            return (\n              <Link to={`./${_id}`}>\n                <span className=\"text-gray-700 text-md\">{title}</span>\n                <br />\n                <span className=\"p-1 rounded bg-gray-200 w-full text-xs\">{_id}</span>\n              </Link>\n            );\n          },\n        },\n        {\n          title: '...',\n          field: '_id',\n          Cell({ entry: { _id } }) {\n            return <DeleteAd id={_id} />;\n          },\n        },\n      ]}\n    />\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 createAd = ({ data }) => {\n  return axios.post(`/adverts`, data);\n};\n\ncreateAd.propTypes = {\n  data: PropTypes.shape({\n    title: PropTypes.string.isRequired,\n    desc: PropTypes.string.isRequired,\n    image: PropTypes.string.isRequired,\n  }).isRequired,\n};\n\nexport const useCreateAd = ({ config } = {}) => {\n  const { addNotification } = useNotificationStore();\n  return useMutation({\n    onMutate: async (newAd) => {\n      await queryClient.cancelQueries('ads');\n\n      const previousAds = queryClient.getQueryData('ads');\n\n      queryClient.setQueryData('ads', [...(previousAds || []), newAd.data]);\n\n      return { previousAds };\n    },\n    onError: (_, __, context) => {\n      if (context?.previousAds) {\n        queryClient.setQueryData('ads', context.previousAds);\n      }\n    },\n    onSuccess: () => {\n      queryClient.invalidateQueries('ads');\n      addNotification({\n        type: 'success',\n        title: 'New ad successfully created',\n      });\n    },\n    ...config,\n    mutationFn: createAd,\n  });\n};\n","import { Button } from '@/components/Elements';\nimport { Form, FormDrawer, InputField, TextAreaField, UploadField } from '@/components/Form';\nimport { Authorization, ROLES } from '@/lib/authorization';\nimport { PlusIcon } from '@heroicons/react/outline';\nimport { useState } from 'react';\nimport * as z from 'zod';\n\nimport { useCreateAd } from '../api/createAd';\n\nconst schema = z.object({\n  title: z.string(),\n  desc: z.string(),\n});\n\nexport const CreateAd = () => {\n  const [image, setImage] = useState(null);\n  const [preview, setPreview] = useState(null);\n  const createAdMutation = useCreateAd();\n\n  return (\n    <Authorization allowedRoles={[ROLES.ADMIN]}>\n      <FormDrawer\n        size=\"sm\"\n        isDone={createAdMutation.isSuccess}\n        triggerButton={\n          <Button size=\"sm\" startIcon={<PlusIcon className=\"h-4 w-4\" />}>\n            Create Ad\n          </Button>\n        }\n        title=\"Create Ad\"\n        submitButton={\n          <Button form=\"create-ad\" type=\"submit\" size=\"sm\" isLoading={createAdMutation.isLoading}>\n            Submit\n          </Button>\n        }\n      >\n        <Form\n          id=\"create-ad\"\n          encType=\"multipart/form-data\"\n          onSubmit={async (values) => {\n            const { title, desc } = values;\n            const bodyFormData = new FormData();\n            bodyFormData.append('title', title);\n            bodyFormData.append('desc', desc);\n            bodyFormData.append('image', image);\n            await createAdMutation.mutateAsync({ data: bodyFormData });\n          }}\n          schema={schema}\n        >\n          {({ register, formState, watch, setValue }) => (\n            <>\n              <InputField\n                label=\"Title\"\n                error={formState.errors['title']}\n                registration={register('title')}\n              />\n              <TextAreaField\n                label=\"Content\"\n                error={formState.errors['desc']}\n                editorContent={watch('desc')}\n                setValue={setValue}\n                value=\"desc\"\n              />\n              <UploadField\n                title=\"Upload Ad Banner Image\"\n                subTitle=\"Upload clear image for better visibility\"\n                error={formState.errors['image']}\n                x={1280}\n                y={340}\n                onChange={(e) => {\n                  setImage(e.target.files[0]);\n                  setPreview(URL.createObjectURL(e.target.files[0]));\n                }}\n                preview={preview}\n              />\n            </>\n          )}\n        </Form>\n      </FormDrawer>\n    </Authorization>\n  );\n};\n","import { ContentLayout } from '@/components/Layout';\n\nimport { AdsList } from '../components/AdsList';\nimport { CreateAd } from '../components/CreateAd';\n\nexport const Ads = () => {\n  return (\n    <ContentLayout title=\"Ads\" button={<CreateAd />}>\n      <div className=\"mt-4\">\n        <AdsList />\n      </div>\n    </ContentLayout>\n  );\n};\n","import { Navigate, Route, Routes } from 'react-router-dom';\n\nimport { Ad } from './Ad';\nimport { Ads } from './Ads';\n\nexport const AdsRoutes = () => {\n  return (\n    <Routes>\n      <Route path=\"\" element={<Ads />} />\n      <Route path=\":adId\" element={<Ad />} />\n      <Route path=\"*\" element={<Navigate to=\".\" />} />\n    </Routes>\n  );\n};\n"],"sourceRoot":""}