Files
cssd-back/public/js/vue/chunks/32.a269049ab44827c301e7.js
T
2023-09-23 02:29:26 -07:00

1 line
11 KiB
JavaScript
Vendored

(window.webpackJsonp=window.webpackJsonp||[]).push([[32],{GLrF:function(t,e,r){"use strict";r.r(e);var n=r("Y8XJ");function o(t){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(){i=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,a=Object.defineProperty||function(t,e,r){t[e]=r.value},l="function"==typeof Symbol?Symbol:{},c=l.iterator||"@@iterator",s=l.asyncIterator||"@@asyncIterator",u=l.toStringTag||"@@toStringTag";function f(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{f({},"")}catch(t){f=function(t,e,r){return t[e]=r}}function h(t,e,r,n){var o=e&&e.prototype instanceof v?e:v,i=Object.create(o.prototype),l=new A(n||[]);return a(i,"_invoke",{value:k(t,r,l)}),i}function m(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=h;var d="suspendedStart",g="executing",p="completed",y={};function v(){}function x(){}function w(){}var b={};f(b,c,(function(){return this}));var L=Object.getPrototypeOf,G=L&&L(L(j([])));G&&G!==r&&n.call(G,c)&&(b=G);var S=w.prototype=v.prototype=Object.create(b);function _(t){["next","throw","return"].forEach((function(e){f(t,e,(function(t){return this._invoke(e,t)}))}))}function E(t,e){function r(i,a,l,c){var s=m(t[i],t,a);if("throw"!==s.type){var u=s.arg,f=u.value;return f&&"object"==o(f)&&n.call(f,"__await")?e.resolve(f.__await).then((function(t){r("next",t,l,c)}),(function(t){r("throw",t,l,c)})):e.resolve(f).then((function(t){u.value=t,l(u)}),(function(t){return r("throw",t,l,c)}))}c(s.arg)}var i;a(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function k(e,r,n){var o=d;return function(i,a){if(o===g)throw new Error("Generator is already running");if(o===p){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var l=n.delegate;if(l){var c=M(l,n);if(c){if(c===y)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===d)throw o=p,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=g;var s=m(e,r,n);if("normal"===s.type){if(o=n.done?p:"suspendedYield",s.arg===y)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=p,n.method="throw",n.arg=s.arg)}}}function M(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,M(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var i=m(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function O(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function T(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function A(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(O,this),this.reset(!0)}function j(e){if(e||""===e){var r=e[c];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function r(){for(;++i<e.length;)if(n.call(e,i))return r.value=e[i],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(o(e)+" is not iterable")}return x.prototype=w,a(S,"constructor",{value:w,configurable:!0}),a(w,"constructor",{value:x,configurable:!0}),x.displayName=f(w,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===x||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,w):(t.__proto__=w,f(t,u,"GeneratorFunction")),t.prototype=Object.create(S),t},e.awrap=function(t){return{__await:t}},_(E.prototype),f(E.prototype,s,(function(){return this})),e.AsyncIterator=E,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new E(h(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},_(S),f(S,u,"Generator"),f(S,c,(function(){return this})),f(S,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=j,A.prototype={constructor:A,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(T),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return l.type="throw",l.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],l=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),s=n.call(a,"finallyLoc");if(c&&s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),T(r),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;T(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:j(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}function a(t,e,r,n,o,i,a){try{var l=t[i](a),c=l.value}catch(t){return void r(t)}l.done?e(c):Promise.resolve(c).then(n,o)}var l,c,s={data:function(){return{AdminCards:[{title:"Manage Users",text:"You can Manage the users information",icon:"/img/Static/Dashboard/manageusers.png",color:"WM-LightGreenGradient-BG",route:{name:"ManageUsers"},aligntext:"text-md-center",alignimg:"text-md-left",column:"xs12 md12 sm12",role:"Admin|Supervisor"},{title:"Manage Medical Center",text:"You can edit the medical center information",icon:"/img/Static/Dashboard/settings.png",color:"WM-MuskGradient-BG",route:{name:"ManageMedicalCenter"},aligntext:"text-md-left",alignimg:"text-md-right",column:"xs12 md7 sm7",role:"Admin"},{title:"List Test Type",text:"You can simply add your test type",icon:"/img/Static/Dashboard/result.png",color:"WM-GreyGradient-BG",route:{name:"ListTestType"},aligntext:"text-md-left",alignimg:"text-md-right",column:"xs12 md5 sm5",role:"Admin"}],SupervisorCards:[{title:"Manage Users",text:"You can Manage the users information",icon:"/img/Static/Dashboard/manageusers.png",color:"WM-LightGreenGradient-BG",route:{name:"ManageUsers"},aligntext:"text-md-center",alignimg:"text-md-left",column:"xs12 md12 sm12",role:"Admin|Supervisor"},{title:"Test to Verify",text:"You can simply verify your own medical center test result in this section of website",icon:"/img/Static/Dashboard/verify.png",color:"WM-PinkGradient-BG",route:{name:"NotVerifyTestResult"},aligntext:"text-md-center",alignimg:"text-md-left",column:"xs12 md12 sm12",role:"Admin|Supervisor"}],UsersCards:[{title:"My Info",text:"You can easily edit your registration information",icon:"/img/Static/Dashboard/info.png",color:"WM-OrangeGradient-BG",route:{name:"MyInfo"},aligntext:"text-md-left",alignimg:"text-md-right",column:"xs12 md6 sm6"},{title:"All Test Result",text:"You can see all user tests and own tests",icon:"/img/Static/Dashboard/alltest.png",color:"WM-GreenGradient-BG",route:{name:"AllResultTest"},aligntext:"text-md-left",alignimg:"text-md-right",column:"xs12 md6 sm6"},{title:"Add a Test Result",text:"You can add the test result",icon:"/img/Static/Dashboard/addtest.png",color:"WM-YellowGradient-BG",route:{name:"SubmitTestResult"},aligntext:"text-md-center",alignimg:"text-md-left",column:"xs12 md12 sm12"}]}},created:(l=i().mark((function t(){return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.t0=console,t.next=3,n.d.getInfo();case 3:t.t1=t.sent,t.t0.log.call(t.t0,t.t1);case 5:case"end":return t.stop()}}),t)})),c=function(){var t=this,e=arguments;return new Promise((function(r,n){var o=l.apply(t,e);function i(t){a(o,r,n,i,c,"next",t)}function c(t){a(o,r,n,i,c,"throw",t)}i(void 0)}))},function(){return c.apply(this,arguments)})},u=r("KHd+"),f=Object(u.a)(s,(function(){var t=this,e=t._self._c;return e("v-container",{attrs:{fluid:""}},[t.$hasRole("Admin")?e("material-card",{attrs:{color:"black",title:"Admin",text:""}},[e("v-layout",{attrs:{row:"",wrap:""}},[t._l(t.AdminCards,(function(r,n){return[!r.role||t.$hasRole(r.role)?e("v-flex",{key:n,class:[r.column,"pa-2"]},[e("router-link",{attrs:{to:r.route}},[e("material-cards",{attrs:{title:r.title,icon:r.icon,color:r.color,text:r.text,aligntext:r.aligntext,alignimg:r.alignimg}})],1)],1):t._e()]}))],2)],1):t._e(),t._v(" "),t.$hasRole("Supervisor|Admin")?e("material-card",{attrs:{color:"black",title:"Supervisor",text:""}},[e("v-layout",{attrs:{row:"",wrap:""}},[t._l(t.SupervisorCards,(function(r,n){return[!r.role||t.$hasRole(r.role)?e("v-flex",{key:n,class:[r.column,"pa-2"]},[e("router-link",{attrs:{to:r.route}},[e("material-cards",{attrs:{title:r.title,icon:r.icon,color:r.color,text:r.text,aligntext:r.aligntext,alignimg:r.alignimg}})],1)],1):t._e()]}))],2)],1):t._e(),t._v(" "),e("material-card",{attrs:{color:"black",title:"User",text:""}},[e("v-layout",{attrs:{row:"",wrap:""}},[t._l(t.UsersCards,(function(r,n){return[!r.role||t.$hasRole(r.role)?e("v-flex",{key:n,class:[r.column,"pa-2"]},[e("router-link",{attrs:{to:r.route}},[e("material-cards",{attrs:{title:r.title,icon:r.icon,color:r.color,text:r.text,aligntext:r.aligntext,alignimg:r.alignimg}})],1)],1):t._e()]}))],2)],1)],1)}),[],!1,null,null,null);e.default=f.exports}}]);