PageSourceSearch

https://accreditation.tass.gov.uk/_next/static/chunks/pages/verification/overview-3f753a36d5a57ac83971.js

js tass.gov.uk collected 2026-10-02 17:22:12 UTC 12,625 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[537],{1615:function(e,t,n){"use strict";n.d(t,{H:function(){return b}});var r,s=n(1508),a=n(266),i=n(2809),l=n(809),c=n.n(l),o=n(7294),d=n(6263),u=n(4047),m=n(2008),p=n(4014),x=n(5893);function h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?h(Object(n),!0).forEach((function(t){(0,i.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var g=(r={},(0,i.Z)(r,p.Iv.UNI,["Academic Flexibility","Annual Review","Dual Career Policy","Workshops","Agreement","Uploads","Other"]),(0,i.Z)(r,p.Iv.CLG,["Academic Flexibility","Annual Review","Dual Career Policy","College Strategy","Workshops","Agreement","Uploads","Other"]),r),b=function(e){var t=e.isAdmin,n=e.institutionType,r=e.comments,i=e.verificationID;n=[p.Iv.UNI,p.Iv.CLG].includes(n)?n:"UNI";var l=(0,o.useState)({display:!1,type:"success",message:"Status Update Successful"}),h=l[0],b=l[1],v=(0,o.useState)({section:g[n][0],comment:""}),j=v[0],N=v[1],y=(0,o.useState)([]),w=y[0],E=y[1],A=function(e){N(f(f({},j),{},{section:e.target.value}))},I=function(e){N(f(f({},j),{},{comment:e.target.value}))},_=function(){var e=(0,a.Z)(c().mark((function e(t){var n,r,s,a;return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.preventDefault(),n=j.section,r=j.comment,!(n.length<2||r.length<2)){e.next=5;break}return b({display:!0,type:"danger",message:"Section & comment are mandatory fields."}),e.abrupt("return");case 5:return e.next=7,(0,u.WY)(m.FX.VERIFICATION_COMMENT,"POST",f(f({},j),{},{verification_id:i}));case 7:s=e.sent,a={type:"success",message:j.section+" Comment Added",display:!0},s.error&&(a.message="Unable to add comment",a.type="danger"),b(a),"danger"!==a.type&&N(f(f({},j),{},{comment:""}));case 12:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),C=function(){var e=(0,a.Z)(c().mark((function e(n,r){var a,i,l;return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n.preventDefault(),a=t?m.FX.VERIFICATION_CMT_RESOLVE_ADM:m.FX.VERIFICATION_CMT_RESOLVE_USR,e.next=4,(0,u.WY)(a,"PATCH",{comment_id:r});case 4:i=e.sent,l={type:"success",message:"Comment Resolved",display:!0},i.error&&(l.message="Unable to Resolve Comment",l.type="danger"),b(l),"success"===l.type&&E([].concat((0,s.Z)(w),[r]));case 9:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}();return(0,x.jsxs)("div",{className:"overflow-x-auto shadow-xl rounded-md animate animate-fadeIn",children:[(0,x.jsx)("div",{className:"m-2 px-2 mb-4",children:h.display&&(0,x.jsx)(d.P,f({},h))}),r||t?(0,x.jsxs)("table",{className:"w-full table-auto bg-white",children:[(0,x.jsx)("thead",{children:(0,x.jsxs)("tr",{className:"text-left bg-gray-200 border-l-4 border-gray-500",children:[(0,x.jsx)("th",{className:"p-4 w-32",children:"Date"}),(0,x.jsx)("th",{className:"p-4 w-52",children:"Section"}),(0,x.jsx)("th",{className:"p-4",children:"Message"}),(0,x.jsx)("th",{className:"p-4"}),(0,x.jsx)("th",{className:"p-4 w-12",children:"Action"})]})}),(0,x.jsxs)("tbody",{children:[t&&(0,x.jsxs)("tr",{className:"bg-gray-100 border-l-4",children:[(0,x.jsx)("td",{}),(0,x.jsx)("td",{className:"p-4",colSpan:1,children:(0,x.jsx)("select",{className:"border w-full bg-gray-200 rounded placeholder-gray-400 focus:border-indigo-400 pl-2 focus:outline-none py-2 px-2",onChange:A,defaultValue:g[n][0],children:o.Children.toArray(g[n].map((function(e,t){return(0,x.jsx)("option",{value:e,children:e})})))})}),(0,x.jsx)("td",{className:"p-4",colSpan:2,children:(0,x.jsx)("textarea",{rows:4,className:"w-full border bg-gray-200 rounded placeholder-gray-400 focus:border-indigo-400 pl-2 focus:outline-none py-2",placeholder:"e.g., Message ...",onChange:I,value:j.comment})}),(0,x.jsx)("td",{className:"p-4",children:(0,x.jsx)("button",{className:"focus:outline-none w-full h-10 border-1 bg-tblue hover:bg-blue-800 text-white py-2 px-4 roun
1ded",onClick:_,children:"Add"})})]}),r&&o.Children.toArray(r.map((function(e,t){return(0,x.jsxs)("tr",{className:"border-l-4 hover:border-green-500 ".concat(t%2==0?"":"bg-gray-100"),children:[(0,x.jsx)("td",{className:"p-4",children:e.created_at&&e.created_at.split("T")[0]}),(0,x.jsx)("td",{className:"p-4",children:e.section}),(0,x.jsx)("td",{className:"p-4",colSpan:2,children:e.comment}),(0,x.jsx)("td",{className:"p-4",children:e.resolved_on&&("0001-01-01T00:00:00Z"!==e.resolved_on||w.includes(e.id))?"Resolved":(0,x.jsx)("button",{className:"focus:outline-none w-full bg-red-100 h-10 border-1 border-red-500 hover:bg-red-500 hover:text-white text-red-500 py-2 px-4 rounded",onClick:function(t){return C(t,e.id)},children:"Resolve"})})]})})))]})]}):(0,x.jsx)("div",{className:"text-center bg-gray-200 p-4 shadow-xl rounded-md mt-4",children:"No Comments"})]})}},1377:function(e,t,n){"use strict";var r=n(7294),s=n(1163),a=n(2008),i=n(7315),l=n(5893),c={Applications:a.FX.APPLICATION_REVIEW_PAGE,Verifications:a.FX.VERIFICATION_REVIEW_PAGE,Resources:a.FX.RESOURCE_ADMIN_PAGE,Taste:a.FX.TASTE_ADMIN_PAGE,Users:a.FX.USER_LIST_PAGE},o={Overview:a.FX.VERIFICATION_OVERVIEW_PAGE,Resources:a.FX.RESOURCE_PAGE,Taste:a.FX.TASTE_PAGE};t.Z=(0,s.withRouter)((function(){var e=(0,i.aC)().logout,t=(0,r.useState)(!1),n=t[0],a=t[1],d=(0,s.useRouter)(),u={};return u=Object.values(c).includes(d.pathname)?c:o,(0,l.jsx)(l.Fragment,{children:(0,l.jsx)("nav",{className:"fixed z-10 flex flex-wrap items-center border-b-4 border-double border-red-700 shadow-lg justify-between px-2 bg-white lg:h-16 ",children:(0,l.jsxs)("div",{className:" w-screen h-full px-4 flex flex-wrap items-center justify-between",children:[(0,l.jsxs)("div",{className:"w-full relative flex justify-between lg:w-auto px-4 lg:static lg:block lg:justify-start",children:[(0,l.jsx)("a",{className:"animation-bounce-in-left text-sm font-bold leading-relaxed inline-block mr-4 py-2 whitespace-no-wrap uppercase text-tblue",href:"#",children:"Dual Career"}),(0,l.jsxs)("button",{className:"cursor-pointer text-xl leading-none px-3 py-1 border border-solid border-transparent rounded bg-transparent block lg:hidden outline-none focus:outline-none",type:"button",onClick:function(){return a(!n)},children:[(0,l.jsx)("span",{className:"block relative w-6 h-px rounded-sm bg-black"}),(0,l.jsx)("span",{className:"block relative w-6 h-px rounded-sm bg-black mt-1"}),(0,l.jsx)("span",{className:"block relative w-6 h-px rounded-sm bg-black mt-1"})]})]}),(0,l.jsx)("div",{className:"animate animate-fadeIn lg:flex lg:flex-grow items-center h-full"+(n?" flex":" hidden"),id:"example-navbar-info",children:(0,l.jsxs)("ul",{className:"flex flex-col lg:flex-row list-none ml-auto h-full",children:[r.Children.toArray(Object.keys(u).map((function(e){return(0,l.jsx)("li",{className:"animation-bounce-in-right nav-item hover:bg-tred ".concat(d.pathname===u[e]?"bg-tred":""," "),children:(0,l.jsx)("a",{className:"px-3 py-2 flex items-center text-xs uppercase font-bold leading:snub lg:leading-12 hover:text-white ".concat(d.pathname===u[e]?"text-white":""),href:u[e],children:e})})}))),(0,l.jsx)("li",{className:"nav-item hover:bg-tred cursor-pointer animation-bounce-in-right",children:(0,l.jsx)("a",{className:"px-3 py-2 flex items-center text-xs uppercase font-bold leading:snub lg:leading-12 hover:text-white",onClick:function(){return e()},children:"Sign Out"})})]})})]})})})}))},6263:function(e,t,n){"use strict";n.d(t,{P:function(){return a}});var r=n(7294),s=n(5893),a=function(e){var t=e.message,n=e.type,a=(0,r.useState)(!0),i=a[0],l=a[1];return(0,s.jsxs)("div",{className:"justify-between ".concat(i?"animation-scale-in py-2 px-4 w-full text-white shadow-md rounded font-light flex":"hidden"," ").concat("danger"===n?"bg-red-500":"success"===n?"bg-green-500":"bg-blue-500"),children:[t,(0,s.jsx)("svg",{className:"h-6 w-6 flex cursor-pointer",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",onClick:function(){l(!1)},children:(0,s.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M6 18L18 6M6 6l12 12"})})]})}},2144:function(e,t,n){"use strict";n.d(t,{b:function(){return r},L:function(){return s}});var r={INP:"In-Progress",SLT:"Shortlist",APP:"Approved",EXP:"Expired",RNW:"Renewed"},s={NEW:"New",INP:"In-Progress",APP:"Approved",RJT:"Rejected"}},1866:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return f}});var r=n(1377),s=n(266),a=n(809),i=n.n(a),l=n(7294),c=n(7315),o=n(4047),d=n(2008),u=n(4014),m=n(2144),p=n(1615),x=n(5893),h=function(){var e=(0,c.aC)().user,t=(0,l.useState)({}),n=t[0],r=t[1],a=(0,l.useState)(),h=a[0],f=a[1],g=(0,l.useState)({dis
1play:!1,url:""}),b=g[0],v=g[1],j={INP:"Continue Application Here",EXP:"Renew Application Here",APP:"Continue Assessment Here",RNW:"Edit Application Here"},N=Object.keys(j);(function(){var e=(0,s.Z)(i().mark((function e(){var t,s;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(0!==Object.keys(n).length){e.next=11;break}return e.next=3,(0,c.g$)();case 3:return e.next=5,(0,o.WY)(d.FX.VERIFICATION_OVERVIEW,"GET","");case 5:return(t=e.sent).data&&r(t.data),e.next=9,(0,o.WY)(d.FX.VERIFICATION_COMMENT,"GET","");case 9:(s=e.sent).data&&f(s.data);case 11:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}})()();return(0,l.useEffect)((function(){if(e&&n){var t={display:!0,url:d.FX.VERIFICATION_UNI_PAGE};switch(n.status){case"APP":t.url=d.FX.VERIFICATION_BRANDING_PAGE;break;case"SLT":t.display=!1;break;default:e.institution_type==u.Iv.CLG&&(t.url=d.FX.VERIFICATION_CLG_PAGE)}v(t)}}),[e,n]),(0,x.jsxs)("div",{className:"mt-4 md:mt-20 mx-auto  md:p-7 md:pl-14 md:pr-14 container p-2 animation-bounce-in-left",children:[(0,x.jsx)("div",{className:"px-4 border-l-4 border-green-500 text-3xl ml-4 font-normal",children:"Application Status"}),(0,x.jsxs)("div",{className:"mt-12 grid grid-cols-1 md:grid-cols-3",children:[(0,x.jsxs)("div",{className:"p-4 ml-4 mt-2 bg-indigo-50 rounded text-indigo-700 h-44 animation-scale-in",children:[(0,x.jsx)("span",{className:"font-light text-7xl block",children:Object.keys(n).length?function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.reduce((function(e,t){return e+(t>0?1:0)}),0)}(n.commitment,n.strategy,n.workshop,n.policy,n.certificate,n.agreement):"-"}),(0,x.jsx)("p",{className:"font-light text-2xl mt-4",children:"Sections completed"})]}),(0,x.jsxs)("div",{className:"bg-indigo-50 p-4 ml-4 mt-2 rounded text-indigo-700 h-44 animation-scale-in",children:[(0,x.jsx)("span",{className:"font-light text-4xl block mt-2",children:n.expiry_date?"0001-01-01"==n.expiry_date.split("T")[0]?"-":n.expiry_date.split("T")[0]:"-"}),(0,x.jsx)("p",{className:"font-light text-2xl mt-10",children:"Expiry Date"})]}),(0,x.jsxs)("div",{className:"bg-pink-50 p-4 ml-4 mt-2 rounded text-pink-700 h-44 animation-scale-in",children:[(0,x.jsx)("span",{className:"font-light text-4xl block mt-2",children:m.b[n.status]||"-"}),(0,x.jsx)("p",{className:"font-light text-2xl mt-10",children:"Status"})]})]}),(0,x.jsxs)("div",{className:"mt-20 grid grid-cols-1 md:grid-cols-3",children:[(0,x.jsx)("div",{}),(0,x.jsx)("div",{className:"bg-white ml-4",children:b.display&&N.includes(n.status)&&(0,x.jsx)("button",{className:"w-full mt-4 mx-auto bg-tblue h-14 hover:bg-blue-800 text-white block rounded",onClick:function(e){window.location.pathname=b.url},children:j[n.status]})}),(0,x.jsx)("div",{})]}),(0,x.jsx)("div",{className:"px-4 mt-4 md:mt-20 border-l-4 border-green-500 text-3xl ml-4 font-normal",children:"Admin Comments"}),(0,x.jsx)("div",{className:"mt-12 px-4",children:(0,x.jsx)(p.H,{comments:h,institutionType:e.institution_type})})]})},f=function(){return(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(r.Z,{}),(0,x.jsx)("div",{className:"py-4 md:py-8"}),(0,x.jsx)("div",{className:"absolute w-2/3 -bottom-1/2 h-2/3 -z-1 plus-svg-blue"}),(0,x.jsx)("div",{className:"absolute w-2/3 top-0 right-0 h-1/3 -z-1 plus-svg transform -rotate-12"}),(0,x.jsx)(h,{})]})}},3160:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/verification/overview",function(){return n(1866)}])}},function(e){e.O(0,[774,888,179],(function(){return t=3160,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.